]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
ld: Properly override the IR definition
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
05c309a8
SM
12020-07-21 Simon Marchi <simon.marchi@efficios.com>
2
3 * linux-low.cc (stopped_pids): Make static.
4
0e267416
AB
52020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6
7 * tdesc.cc (allocate_target_description): Add header comment.
8 (target_desc_deleter::operator()): New function.
9 * tdesc.h (struct target_desc): Declare as final.
10
b315b67d
SM
112020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * server.cc (handle_query): Use std::vector of
14 std::string for `qsupported` vector. Use separate
15 vector for unknowns.
16 * target.h (class process_stratum_target) <process_qsupported>:
17 Change parameters to array_view of const char *.
18 (target_process_qsupported): Remove `count` parameter.
19 * target.cc (process_stratum_target::process_qsupported): Change
20 parameters to array_view of const char *.
21 * linux-x86-low.cc (class x86_target) <process_qsupported>:
22 Likewise.
23
f638ed73
TV
242020-06-29 Tom de Vries <tdevries@suse.de>
25
26 * ax.h: Include gdbsupport/debug_agent.h.
27
fbf42f4e
AB
282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * tdesc.cc (struct tdesc_compatible_info): New struct.
31 (tdesc_compatible_info_list): New function.
32 (tdesc_compatible_info_arch_name): New function.
33
013e3554
TBA
342020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
35
36 Use std::list to stop pending signal instead of manually-created
37 linked list.
38 * linux-low.h: Include <list>.
39 (struct pending_signal): Move here from linux-low.cc.
40 (struct lwp_info) <pending_signals>
41 <pending_signals_to_report>: Update the type.
42 * linux-low.cc (struct pending_signals): Remove.
43 (linux_process_target::delete_lwp)
44 (linux_process_target::add_lwp)
45 (enqueue_one_deferred_signal)
46 (dequeue_one_deferred_signal)
47 (enqueue_pending_signal)
48 (linux_process_target::resume_one_lwp_throw)
49 (linux_process_target::thread_needs_step_over)
50 (linux_process_target::resume_one_thread)
51 (linux_process_target::proceed_one_lwp): Update the use of pending
52 signal list.
53
7d458ea5
SM
542020-06-17 Simon Marchi <simon.marchi@efficios.com>
55
56 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
57 Remove.
58
84b300de
SM
592020-06-12 Simon Marchi <simon.marchi@efficios.com>
60
61 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
62 * configure.srv: Remove mingw32ce cases.
63 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
64 * win32-low.h (to_back_slashes): Remove.
65 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
66
96c16e2b
SM
672020-06-12 Simon Marchi <simon.marchi@efficios.com>
68
69 * Makefile.in (SFILES): linux-tile-low.cc.
70 * configure.srv: Remove tilegx case.
71 * linux-tile-low.cc: Remove.
72
bd1467ae
SM
732020-06-12 Simon Marchi <simon.marchi@efficios.com>
74
75 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
76 * configure.srv: Remove m32r case.
77 * linux-m32r-low.cc: Remove.
78
7b46bf6f
SM
792020-06-12 Simon Marchi <simon.marchi@efficios.com>
80
81 * Makefile.in (SFILES): Remove linux-cris-low.c.
82 * configure.srv: Remove cris cases.
83 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
84
1fa29f56
SM
852020-06-12 Simon Marchi <simon.marchi@efficios.com>
86
87 * Makefile.in (SFILES): Remove linux-bfin-low.c.
88 * configure.srv: Remove bfin case.
89 * linux-bfin-low.cc: Remove.
90 * linux-low.cc: Remove BFIN-conditional code.
91
613f149a
SM
922020-06-12 Simon Marchi <simon.marchi@efficios.com>
93
94 * configure: Re-generate.
95 * configure.ac: Remove srv_qnx test.
96 * configure.srv: Remove nto case.
97 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
98 * remote-utils.c: Remove __QNX__-guarded code.
99
fdb95bf5
SM
1002020-06-12 Simon Marchi <simon.marchi@efficios.com>
101
102 * configure: Re-generate.
103 * configure.ac: Remove srv_lynxos test.
104 * configure.srv: Remove lynxos cases.
105 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
106 Remove.
107
c00094dc
SM
1082020-06-12 Simon Marchi <simon.marchi@efficios.com>
109
110 * README: Fix a few outdated or incoherent things.
111
6479bf85
HD
1122020-05-27 Hannes Domani <ssbssa@yahoo.de>
113
114 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
115 (win32_clear_inferiors): Use open_process_used.
116 (get_child_debug_event): Likewise.
117
bea571eb
MW
1182020-05-25 Michael Weghorn <m.weghorn@posteo.de>
119
120 PR gdbserver/25893
121 * linux-low.cc (linux_process_target::create_inferior),
122 lynx-low.cc (lynx_process_target::create_inferior),
123 win32-low.cc (win32_process_target::create_inferior): Use
124 construct_inferior_arguments instead of stringify_argv
125 to get string representation which properly escapes
126 special characters.
127 * server.cc (handle_v_run): Just pass empty program arg
128 as such, since any further processing is now handled via
129 construct_inferior_arguments.
130
ace6b919
MW
1312020-05-25 Michael Weghorn <m.weghorn@posteo.de>
132
133 * nto-low.cc (nto_process_target::create_inferior): Pass
134 argv to spawnp function as char **.
135
b69ca137
MW
1362020-05-25 Michael Weghorn <m.weghorn@posteo.de>
137
138 * server.cc (captured_main), (handle_v_run): No longer
139 insert extra NULL element to args vector.
140
51e2cfa2
PA
1412020-05-23 Pedro Alves <palves@redhat.com>
142
143 * gdb-safe-ctype.h: New.
144
8bbf0394
TBA
1452020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
146
147 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
148 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
149 (ia64_target::low_breakpoint_at): Ditto.
150
01370779
HD
1512020-05-15 Hannes Domani <ssbssa@yahoo.de>
152
153 * win32-i386-low.cc (i386_supports_z_point_type): Handle
154 Z_PACKET_HW_BP z_type.
155 (i386_insert_point): Handle raw_bkpt_type type.
156 (i386_remove_point): Likewise.
157
7d186bc0
HD
1582020-04-30 Hannes Domani <ssbssa@yahoo.de>
159
160 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
161 Add arch/i386.o.
162 * win32-arm-low.cc (arm_num_regs): New function.
163 (struct win32_target_ops): Use arm_num_regs.
164 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
165 processes.
166 (i386_get_thread_context): Likewise.
167 (i386_prepare_to_resume): Likewise.
168 (i386_thread_added): Likewise.
169 (i386_single_step): Likewise.
170 (i386_fetch_inferior_register): Likewise.
171 (i386_store_inferior_register): Likewise.
172 (i386_arch_setup): Likewise.
173 (i386_win32_num_regs): New function.
174 (struct win32_target_ops): Use i386_win32_num_regs.
175 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
176 processes.
177 (win32_require_context): Likewise.
178 (child_add_thread): Likewise.
179 (do_initial_child_stuff): Likewise.
180 (continue_one_thread): Likewise.
181 (win32_process_target::resume): Likewise.
182 (load_psapi): Likewise.
183 (win32_add_all_dlls): Likewise.
184 (maybe_adjust_pc): Likewise.
185 (win32_process_target::qxfer_siginfo): Likewise.
186 (initialize_low): Likewise.
187 * win32-low.h (struct win32_target_ops): Change num_regs to
188 callback function.
189
1eb39914
SM
1902020-04-27 Simon Marchi <simon.marchi@efficios.com>
191
192 * configure.ac: Remove check for fs_base/gs_base in
193 user_regs_struct.
194 * configure: Re-generate.
195 * config.in: Re-generate.
196 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
197 x86_store_gregset): Adjust.
198
51ac8e22
HD
1992020-04-22 Hannes Domani <ssbssa@yahoo.de>
200
201 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
202 comparison.
203
a010605f
TT
2042020-04-16 Tom Tromey <tromey@adacore.com>
205
206 * win32-low.cc (windows_nat::handle_access_violation): New
207 function.
208
e2275c6e
SM
2092020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * win32-low.cc (get_child_debug_event): Fix format string warning.
212
73944e9f
TT
2132020-04-13 Tom Tromey <tom@tromey.com>
214
215 * server.h (gdb_fildes_t): Remove typedef.
216 * remote-utils.c (remote_desc, list_desc): Now int.
217 (INVALID_DESCRIPTOR): Remove.
218 (gdb_connected, remote_close)
219 (check_remote_input_interrupt_request): Update.
220 * utils.h (pfildes): Don't declare.
221 * utils.c (pfildes): Remove.
222
55d7aec8
TT
2232020-04-13 Tom Tromey <tom@tromey.com>
224
225 * server.h (handle_serial_event, handle_target_event): Update.
226 * server.c: Don't call initialize_event_loop.
227 (keep_processing_events): New global.
228 (handle_serial_event): Return void. Set keep_processing_events.
229 (handle_target_event): Return void.
230 (start_event_loop): Move from event-loop.c. Rewrite.
231 * remote-utils.c (handle_accept_event): Return void.
232 (reset_readchar): Use delete_timer.
233 (process_remaining): Return void.
234 (reschedule): Use create_timer.
235 * event-loop.h: Remove.
236 * event-loop.cc: Remove.
237 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
238
e487f994
TT
2392020-04-13 Tom Tromey <tom@tromey.com>
240
241 * server.c (invoke_async_signal_handlers)
242 (check_async_event_handlers, flush_streams, gdb_select): New
243 functions.
244
8ae8e197
TT
2452020-04-13 Tom Tromey <tom@tromey.com>
246
247 * configure: Rebuild.
248 * config.in: Rebuild.
249
360ad8b3
TT
2502020-04-08 Tom Tromey <tromey@adacore.com>
251
252 PR gdb/22992
253 * win32-low.c (child_continue): Call matching_pending_stop.
254 (get_child_debug_event): Call fetch_pending_stop. Push pending
255 stop when needed.
256
523d4f80
TT
2572020-04-08 Tom Tromey <tromey@adacore.com>
258
259 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
260 (win32_process_target::supports_stopped_by_sw_breakpoint):
261 Declare.
262 * win32-low.c (win32_supports_z_point_type): Always handle
263 Z_PACKET_SW_BP.
264 (win32_insert_point): Call insert_memory_breakpoint when needed.
265 (win32_remove_point): Call remove_memory_breakpoint when needed.
266 (win32_process_target::stopped_by_sw_breakpoint)
267 (win32_process_target::supports_stopped_by_sw_breakpoint): New
268 methods.
269 (win32_target_ops): Update.
270 (maybe_adjust_pc): New function.
271 (win32_wait): Call maybe_adjust_pc.
272
e54e5929
TT
2732020-04-08 Tom Tromey <tromey@adacore.com>
274
275 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
276 field.
277 * win32-i386-low.c (the_low_target): Update.
278 * win32-arm-low.c (the_low_target): Update.
279
d6225aff
TT
2802020-04-08 Tom Tromey <tromey@adacore.com>
281
282 * win32-low.h (win32_process_target::read_pc)
283 (win32_process_target::write_pc): Declare.
284 * win32-low.c (win32_process_target::read_pc)
285 (win32_process_target::write_pc): New methods.
286 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
287 functions.
288 (the_low_target): Update.
289 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
290 functions.
291 (the_low_target): Update.
292
2c1d95e8
TT
2932020-04-08 Tom Tromey <tromey@adacore.com>
294
295 * win32-low.c (win32_kill, get_child_debug_event): Use
296 wait_for_debug_event.
297
e758e19c
TT
2982020-04-08 Tom Tromey <tromey@adacore.com>
299
300 * win32-low.c (child_continue): Call continue_last_debug_event.
301
8d30e395
TT
3022020-04-08 Tom Tromey <tromey@adacore.com>
303
304 * win32-low.c (handle_exception): Remove.
305 (windows_nat::handle_ms_vc_exception): New function.
306 (get_child_debug_event): Add "continue_status" parameter.
307 Update.
308 (win32_wait): Update.
309
a816ba18
TT
3102020-04-08 Tom Tromey <tromey@adacore.com>
311
312 * win32-low.c (windows_nat::handle_load_dll): Rename from
313 handle_load_dll. No longer static.
314 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
315 No longer static.
316
d41b524f
TT
3172020-04-08 Tom Tromey <tromey@adacore.com>
318
319 * win32-low.c (handle_output_debug_string): Add parameter. Change
320 return type.
321 (win32_kill, get_child_debug_event): Update.
322
3c76026d
TT
3232020-04-08 Tom Tromey <tromey@adacore.com>
324
325 * win32-low.c (current_process_handle, current_process_id)
326 (main_thread_id, last_sig, current_event, siginfo_er): Move to
327 nat/windows-nat.c.
328
9d8679cc
TT
3292020-04-08 Tom Tromey <tromey@adacore.com>
330
331 * win32-low.c (get_image_name): Remove.
332 (handle_load_dll): Update.
333
28688adf
TT
3342020-04-08 Tom Tromey <tromey@adacore.com>
335
336 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
337 No longer static. Change parameters.
338 (child_add_thread, child_fetch_inferior_registers)
339 (child_store_inferior_registers, win32_resume)
340 (win32_get_tib_address): Update.
341
4834dad0
TT
3422020-04-08 Tom Tromey <tromey@adacore.com>
343
344 * win32-low.h (struct win32_target_ops): Use qualified names where
345 needed.
346 * win32-i386-low.c: Add "using namespace".
347 * win32-low.c: Add "using namespace".
348 * win32-arm-low.c: Add "using namespace".
349
65bafd5b
TT
3502020-04-08 Tom Tromey <tromey@adacore.com>
351
352 * win32-low.c (delete_thread_info): Don't call CloseHandle.
353
98a03287
TT
3542020-04-08 Tom Tromey <tromey@adacore.com>
355
356 * win32-low.c (win32_require_context, suspend_one_thread): Use
357 windows_thread_info::suspend.
358 (continue_one_thread): Use windows_thread_info::resume.
359 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
360
62fe396b
TT
3612020-04-08 Tom Tromey <tromey@adacore.com>
362
363 * win32-i386-low.c (update_debug_registers)
364 (i386_prepare_to_resume, i386_thread_added): Update.
365
e9534bd2
TT
3662020-04-08 Tom Tromey <tromey@adacore.com>
367
368 * win32-low.c (child_add_thread): Use new.
369 (delete_thread_info): Use delete.
370
ae1f8880
TT
3712020-04-08 Tom Tromey <tromey@adacore.com>
372
373 * win32-low.h (struct windows_thread_info): Remove.
374
e56f8ccb
TT
3752020-04-08 Tom Tromey <tromey@adacore.com>
376
377 * win32-low.h (struct windows_thread_info): Rename from
378 win32_thread_info. Remove typedef.
379 (struct win32_target_ops, win32_require_context): Update.
380 * win32-low.c (win32_get_thread_context)
381 (win32_set_thread_context, win32_prepare_to_resume)
382 (win32_require_context, thread_rec, child_add_thread)
383 (delete_thread_info, continue_one_thread)
384 (child_fetch_inferior_registers, child_store_inferior_registers)
385 (win32_resume, suspend_one_thread, win32_get_tib_address):
386 Update.
387 * win32-i386-low.c (update_debug_registers)
388 (win32_get_current_dr, i386_get_thread_context)
389 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
390 (i386_fetch_inferior_register, i386_store_inferior_register):
391 Update.
392 * win32-arm-low.c (arm_get_thread_context)
393 (arm_fetch_inferior_register, arm_store_inferior_register):
394 Update.
395
0dd7b52e
TBA
3962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
397
398 * linux-low.h (struct linux_target_ops): Remove.
399 (the_low_target): Remove.
400 * linux-x86-low.cc (the_low_target): Remove.
401 * linux-aarch64-low.cc (the_low_target): Ditto.
402 * linux-arm-low.cc (the_low_target): Ditto.
403 * linux-bfin-low.cc (the_low_target): Ditto.
404 * linux-cris-low.cc (the_low_target): Ditto.
405 * linux-crisv32-low.cc (the_low_target): Ditto.
406 * linux-ia64-low.cc (the_low_target): Ditto.
407 * linux-m32r-low.cc (the_low_target): Ditto.
408 * linux-m68k-low.cc (the_low_target): Ditto.
409 * linux-mips-low.cc (the_low_target): Ditto.
410 * linux-nios2-low.cc (the_low_target): Ditto.
411 * linux-ppc-low.cc (the_low_target): Ditto.
412 * linux-riscv-low.cc (the_low_target): Ditto.
413 * linux-s390-low.cc (the_low_target): Ditto.
414 * linux-sh-low.cc (the_low_target): Ditto.
415 * linux-sparc-low.cc (the_low_target): Ditto.
416 * linux-tic6x-low.cc (the_low_target): Ditto.
417 * linux-tile-low.cc (the_low_target): Ditto.
418 * linux-xtensa-low.cc (the_low_target): Ditto.
419
fc5ecdb6
TBA
4202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
421
422 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
423 linux target define the op by overriding the declaration in
424 process_stratum_target.
425
426 * linux-low.h (struct linux_target_ops): Remove the op.
427 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
428 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
429 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
430 (x86_get_ipa_tdesc_idx): Turn into...
431 (x86_target::get_ipa_tdesc_idx): ...this.
432 (the_low_target): Remove the op field.
433 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
434 (ppc_get_ipa_tdesc_idx): Turn into...
435 (ppc_target::get_ipa_tdesc_idx): ...this.
436 (the_low_target): Remove the op field.
437 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
438 (s390_get_ipa_tdesc_idx): Turn into...
439 (s390_target::get_ipa_tdesc_idx): ...this.
440 (the_low_target): Remove the op field.
441
9eedd27d
TBA
4422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
443
444 Turn the 'get_syscall_trapinfo' linux target op into a method
445 of process_stratum_target.
446
447 * linux-low.h (struct linux_target_ops): Remove the op.
448 (class linux_process_target) <get_syscall_trapinfo>
449 <gdb_catch_this_syscall>
450 <low_supports_catch_syscall>
451 <low_get_syscall_trapinfo>: Declare.
452 * linux-low.cc (get_syscall_trapinfo): Turn into...
453 (linux_process_target::get_syscall_trapinfo): ...this.
454 (linux_process_target::low_get_syscall_trapinfo): Define.
455 (gdb_catch_this_syscall_p): Turn into...
456 (linux_process_target::gdb_catch_this_syscall): ...this.
457 (linux_process_target::low_supports_catch_syscall): Define.
458
459 Update the callers below.
460
461 (linux_process_target::wait_1)
462 (linux_process_target::supports_catch_syscall)
463
464 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
465 <low_get_syscall_trapinfo>: Declare.
466 (x86_target::low_supports_catch_syscall): Define.
467 (x86_get_syscall_trapinfo): Turn into...
468 (x86_target::low_get_syscall_trapinfo): ...this.
469 (the_low_target): Remove the op field.
470 * linux-aarch64-low.cc (class aarch64_target)
471 <low_supports_catch_syscall>
472 <low_get_syscall_trapinfo>: Declare.
473 (aarch64_target::low_supports_catch_syscall): Define.
474 (aarch64_get_syscall_trapinfo): Turn into...
475 (aarch64_target::low_get_syscall_trapinfo): ...this.
476 (the_low_target): Remove the op field.
477 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
478 <low_get_syscall_trapinfo>: Declare.
479 (arm_target::low_supports_catch_syscall): Define.
480 (arm_get_syscall_trapinfo): Turn into...
481 (arm_target::low_get_syscall_trapinfo): ...this.
482 (the_low_target): Remove the op field.
483 * linux-ppc-low.cc (the_low_target): Remove the op field.
484 * linux-s390-low.cc (the_low_target): Remove the op field.
485
b31cdfa6
TBA
4862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
487
488 Remove the 'supports_hardware_single_step' linux target op and
489 override the process_stratum_target's op definition in
490 linux_process_target to return true.
491
492 * linux-low.h (struct linux_target_ops): Remove the op.
493 (class linux_process_target) <finish_step_over>
494 <maybe_hw_step>: Declare.
495 * linux-low.cc (can_hardware_single_step): Remove.
496 (maybe_hw_step): Turn into...
497 (linux_process_target::maybe_hw_step): ...this.
498 (finish_step_over): Turn into...
499 (linux_process_target::finish_step_over): ...this.
500 (linux_process_target::supports_hardware_single_step): Update
501 to return true.
502
503 Update the callers below.
504
505 (linux_process_target::single_step)
506 (linux_process_target::resume_one_lwp_throw)
507
508 * linux-arm-low.cc (class arm_target)
509 <supports_hardware_single_step>: Declare.
510 (arm_supports_hardware_single_step): Turn into...
511 (arm_target::supports_hardware_single_step): ...this.
512 (the_low_target): Remove the op field.
513 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
514 (the_low_target): Remove the op field.
515 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
516 Remove.
517 (the_low_target): Remove the op field.
518 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
519 (the_low_target): Remove the op field.
520 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
521 (the_low_target): Remove the op field.
522 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
523 (the_low_target): Remove the op field.
524 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
525 (the_low_target): Remove the op field.
526 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
527 (the_low_target): Remove the op field.
528 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
529 (the_low_target): Remove the op field.
530 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
531 (the_low_target): Remove the op field.
532 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
533 (the_low_target): Remove the op field.
534 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
535 (the_low_target): Remove the op field.
536 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
537 Remove.
538 (the_low_target): Remove the op field.
539
9cfd8715
TBA
5402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
541
542 Turn the 'supports_range_stepping' linux target op into a method
543 of linux_process_target.
544
545 * linux-low.h (struct linux_target_ops): Remove the op.
546 (class linux_process_target) <low_supports_range_stepping>: Declare.
547 * linux-low.cc (linux_process_target::low_supports_range_stepping):
548 Define.
549 (linux_process_target::supports_range_stepping): Update the call
550 site.
551 * linux-x86-low.cc (class x86_target)
552 <low_supports_range_stepping>: Declare.
553 (x86_supports_range_stepping): Turn into...
554 (x86_target::low_supports_range_stepping): ...this.
555 (the_low_target): Remove the op field.
556 * linux-aarch64-low.cc (class aarch64_target)
557 <low_supports_range_stepping>: Declare.
558 (aarch64_supports_range_stepping): Turn into...
559 (aarch64_target::low_supports_range_stepping): ...this.
560 (the_low_target): Remove the op field.
561 * linux-arm-low.cc (the_low_target): Remove the op field.
562 * linux-bfin-low.cc (the_low_target): Ditto.
563 * linux-crisv32-low.cc (the_low_target): Ditto.
564 * linux-m32r-low.cc (the_low_target): Ditto.
565 * linux-m68k-low.cc (the_low_target): Ditto.
566 * linux-ppc-low.cc (the_low_target): Ditto.
567 * linux-s390-low.cc (the_low_target): Ditto.
568 * linux-sh-low.cc (the_low_target): Ditto.
569 * linux-tic6x-low.cc (the_low_target): Ditto.
570 * linux-tile-low.cc (the_low_target): Ditto.
571 * linux-xtensa-low.cc (the_low_target): Ditto.
572
ab64c999
TBA
5732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
574
575 Remove the 'emit_ops' linux target ops and let the concrete
576 linux target define the op by overriding the declaration of
577 process_stratum_target.
578
579 * linux-low.h (struct linux_target_ops): Remove the op.
580 (class linux_process_target) <emit_ops>: Remove.
581 * linux-low.cc (linux_process_target::emit_ops): Remove.
582 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
583 (x86_emit_ops): Turn into...
584 (x86_target::emit_ops): ...this.
585 (the_low_target): Remove the op field.
586 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
587 (aarch64_emit_ops): Turn into...
588 (aarch64_target::emit_ops): ...this.
589 (the_low_target): Remove the op field.
590 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
591 (ppc_emit_ops): Turn into...
592 (ppc_target::emit_ops): ...this.
593 (the_low_target): Remove the op field.
594 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
595 (s390_emit_ops): Turn into...
596 (s390_target::emit_ops): ...this.
597 (the_low_target): Remove the op field.
598 * linux-arm-low.cc (the_low_target): Remove the op field.
599 * linux-bfin-low.cc (the_low_target): Ditto.
600 * linux-crisv32-low.cc (the_low_target): Ditto.
601 * linux-m32r-low.cc (the_low_target): Ditto.
602 * linux-m68k-low.cc (the_low_target): Ditto.
603 * linux-sh-low.cc (the_low_target): Ditto.
604 * linux-tic6x-low.cc (the_low_target): Ditto.
605 * linux-tile-low.cc (the_low_target): Ditto.
606 * linux-xtensa-low.cc (the_low_target): Ditto.
607
809a0c35
TBA
6082020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
609
610 Remove the 'install_fast_tracepoint_jump_pad' and
611 'get_min_fast_tracepoint_insn_len' linux target ops to let the
612 concrete linux target define the ops by overriding the declarations
613 of process_stratum_target.
614
615 * linux-low.h (struct linux_target_ops): Remove the ops.
616 (class linux_process_target) <supports_fast_tracepoints>
617 <install_fast_tracepoint_jump_pad>
618 <get_min_fast_tracepoint_insn_len>: Remove.
619 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
620 (linux_process_target::install_fast_tracepoint_jump_pad)
621 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
622 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
623 <install_fast_tracepoint_jump_pad>
624 <get_min_fast_tracepoint_insn_len>: Declare.
625 (x86_target::supports_fast_tracepoints): Define.
626 (x86_install_fast_tracepoint_jump_pad): Turn into...
627 (x86_target::install_fast_tracepoint_jump_pad): ...this.
628 (x86_get_min_fast_tracepoint_insn_len): Turn into...
629 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
630 (the_low_target): Remove the op fields.
631 * linux-aarch64-low.cc (class aarch64_target)
632 <supports_fast_tracepoints>
633 <install_fast_tracepoint_jump_pad>
634 <get_min_fast_tracepoint_insn_len>: Declare.
635 (aarch64_target::supports_fast_tracepoints): Define.
636 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
637 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
638 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
639 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
640 (the_low_target): Remove the op fields.
641 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
642 <install_fast_tracepoint_jump_pad>
643 <get_min_fast_tracepoint_insn_len>: Declare.
644 (ppc_target::supports_fast_tracepoints): Define.
645 (ppc_install_fast_tracepoint_jump_pad): Turn into...
646 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
647 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
648 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
649 (the_low_target): Remove the op fields.
650 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
651 <install_fast_tracepoint_jump_pad>
652 <get_min_fast_tracepoint_insn_len>: Declare.
653 (s390_target::supports_fast_tracepoints): Define.
654 (s390_install_fast_tracepoint_jump_pad): Turn into...
655 (s390_target::install_fast_tracepoint_jump_pad): ...this.
656 (s390_get_min_fast_tracepoint_insn_len): Turn into...
657 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
658 (the_low_target): Remove the op fields.
659 * linux-arm-low.cc (the_low_target): Remove the op fields.
660 * linux-bfin-low.cc (the_low_target): Ditto.
661 * linux-crisv32-low.cc (the_low_target): Ditto.
662 * linux-m32r-low.cc (the_low_target): Ditto.
663 * linux-m68k-low.cc (the_low_target): Ditto.
664 * linux-sh-low.cc (the_low_target): Ditto.
665 * linux-tic6x-low.cc (the_low_target): Ditto.
666 * linux-tile-low.cc (the_low_target): Ditto.
667 * linux-xtensa-low.cc (the_low_target): Ditto.
668
13e567af
TBA
6692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
670
671 Turn the 'get_thread_area' linux target op into a method of
672 process_stratum_target.
673
674 * linux-low.h (struct linux_target_ops): Remove the op.
675 (class linux_process_target) <stuck_in_jump_pad>
676 <linux_fast_tracepoint_collecting>
677 <low_get_thread_area>: Declare.
678 * linux-low.cc (supports_fast_tracepoints): Remove.
679 (linux_fast_tracepoint_collecting): Turn into...
680 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
681 (linux_process_target::low_get_thread_area): Define.
682 (stuck_in_jump_pad_callback): Turn into...
683 (linux_process_target::stuck_in_jump_pad): ...this.
684
685 Update the caller below.
686
687 (linux_process_target::stabilize_threads)
688
689 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
690 Declare.
691 (x86_get_thread_area): Turn into...
692 (x86_target::low_get_thread_area): ...this.
693 (the_low_target): Remove the op field.
694 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
695 Declare.
696 (aarch64_get_thread_area): Turn into...
697 (aarch64_target::low_get_thread_area): ...this.
698 (the_low_target): Remove the op field.
699 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
700 Declare.
701 (ppc_get_thread_area): Turn into...
702 (ppc_target::low_get_thread_area): ...this.
703 (the_low_target): Remove the op field.
704 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
705 Declare.
706 (s390_get_thread_area): Turn into...
707 (s390_target::low_get_thread_area): ...this.
708 (the_low_target): Remove the op field.
709 * linux-arm-low.cc (the_low_target): Remove the op field.
710 * linux-bfin-low.cc (the_low_target): Ditto.
711 * linux-crisv32-low.cc (the_low_target): Ditto.
712 * linux-m32r-low.cc (the_low_target): Ditto.
713 * linux-m68k-low.cc (the_low_target): Ditto.
714 * linux-sh-low.cc (the_low_target): Ditto.
715 * linux-tic6x-low.cc (the_low_target): Ditto.
716 * linux-tile-low.cc (the_low_target): Ditto.
717 * linux-xtensa-low.cc (the_low_target): Ditto.
718
47f70aa7
TBA
7192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
720
721 Remote the 'supports_tracepoints' linux target op and let the
722 concrete linux target define it by overriding the op declared in
723 process_stratum_target.
724
725 * linux-low.h (struct linux_target_ops): Remove the op.
726 (class linux_process_target) <supports_tracepoints>: Remove.
727 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
728 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
729 Declare.
730 (x86_supports_tracepoints): Turn into...
731 (x86_target::supports_tracepoints): ...this.
732 (the_low_target): Remove the op field.
733 * linux-aarch64-low.cc (class aarch64_target)
734 <supports_tracepoints>: Declare.
735 (aarch64_supports_tracepoints): Turn into...
736 (aarch64_target::supports_tracepoints): ...this.
737 (the_low_target): Remove the op field.
738 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
739 Declare.
740 (ppc_supports_tracepoints): Turn into...
741 (ppc_target::supports_tracepoints): ...this.
742 (the_low_target): Remove the op field.
743 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
744 Declare.
745 (s390_supports_tracepoints): Turn into...
746 (s390_target::supports_tracepoints): ...this.
747 (the_low_target): Remove the op field.
748 * linux-arm-low.cc (the_low_target): Remove the op field.
749 * linux-bfin-low.cc (the_low_target): Ditto.
750 * linux-crisv32-low.cc (the_low_target): Ditto.
751 * linux-m32r-low.cc (the_low_target): Ditto.
752 * linux-m68k-low.cc (the_low_target): Ditto.
753 * linux-sh-low.cc (the_low_target): Ditto.
754 * linux-tic6x-low.cc (the_low_target): Ditto.
755 * linux-tile-low.cc (the_low_target): Ditto.
756 * linux-xtensa-low.cc (the_low_target): Ditto.
757
a5b5da92
TBA
7582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
759
760 Remove the 'process_qsupported' linux target op and let a concrete
761 linux target define the op by overriding the op declaration in
762 process_stratum_target.
763
764 * linux-low.h (struct linux_target_ops): Remove the op.
765 (class linux_process_target) <process_qsupported>: Remove.
766 * linux-low.cc (linux_process_target::process_qsupported): Remove.
767 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
768 (x86_linux_process_qsupported): Turn into...
769 (x86_target::process_qsupported): ...this.
770 (the_low_target): Remove the op field.
771 * linux-aarch64-low.cc (the_low_target): Remove the op
772 field.
773 * linux-arm-low.cc (the_low_target): Ditto.
774 * linux-bfin-low.cc (the_low_target): Ditto.
775 * linux-crisv32-low.cc (the_low_target): Ditto.
776 * linux-m32r-low.cc (the_low_target): Ditto.
777 * linux-m68k-low.cc (the_low_target): Ditto.
778 * linux-ppc-low.cc (the_low_target): Ditto.
779 * linux-s390-low.cc (the_low_target): Ditto.
780 * linux-sh-low.cc (the_low_target): Ditto.
781 * linux-tic6x-low.cc (the_low_target): Ditto.
782 * linux-tile-low.cc (the_low_target): Ditto.
783 * linux-xtensa-low.cc (the_low_target): Ditto.
784
d7599cc0
TBA
7852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
786
787 Turn the 'prepare_to_resume' linux target op into a method of
788 linux_process_target.
789
790 * linux-low.h (struct linux_target_ops): Remove the op.
791 (class linux_process_target) <low_prepare_to_resume>: Declare.
792 * linux-low.cc (linux_process_target::low_prepare_to_resume):
793 Define.
794
795 Update the callers below:
796
797 (linux_process_target::resume_one_lwp_throw)
798 (linux_process_target::low_prepare_to_resume)
799
800 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
801 Declare.
802 (x86_target::low_prepare_to_resume): Define.
803 (the_low_target): Remove the op field.
804 * linux-aarch64-low.cc (class aarch64_target)
805 <low_prepare_to_resume>: Declare.
806 (aarch64_target::low_prepare_to_resume): Define.
807 (the_low_target): Remove the op field.
808 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
809 Declare.
810 (arm_prepare_to_resume): Turn into...
811 (arm_target::low_prepare_to_resume): ...this.
812 (the_low_target): Remove the op field.
813 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
814 Declare.
815 (mips_linux_prepare_to_resume): Turn into...
816 (mips_target::low_prepare_to_resume): ...this.
817 (the_low_target): Remove the op field.
818 * linux-bfin-low.cc (the_low_target): Remove the op field.
819 * linux-crisv32-low.cc (the_low_target): Ditto.
820 * linux-m32r-low.cc (the_low_target): Ditto.
821 * linux-m68k-low.cc (the_low_target): Ditto.
822 * linux-ppc-low.cc (the_low_target): Ditto.
823 * linux-s390-low.cc (the_low_target): Ditto.
824 * linux-sh-low.cc (the_low_target): Ditto.
825 * linux-tic6x-low.cc (the_low_target): Ditto.
826 * linux-tile-low.cc (the_low_target): Ditto.
827 * linux-xtensa-low.cc (the_low_target): Ditto.
828
fd000fb3
TBA
8292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
830
831 Turn the 'new_process', 'delete_process', 'new_thread',
832 'delete_thread', and 'new_fork' linux target ops into methods
833 of linux_process_target.
834
835 * linux-low.h (struct linux_target_ops): Remove the ops.
836 (class linux_process_target) <add_linux_process>
837 <add_lwp>
838 <delete_lwp>
839 <attach_lwp>
840 <detach_one_lwp>
841 <check_zombie_leaders>
842 <filter_exit_event>
843 <low_new_process>
844 <low_delete_process>
845 <low_new_thread>
846 <low_delete_thread>
847 <low_new_fork>: Declare.
848 * linux-low.cc (delete_lwp): Turn into...
849 (linux_process_target::delete_lwp): ...this.
850 (linux_process_target::low_delete_thread): Define.
851 (linux_add_process): Turn into...
852 (linux_process_target::add_linux_process): ...this.
853 (linux_process_target::low_new_process): Define.
854 (linux_process_target::low_delete_process): Define.
855 (linux_process_target::low_new_fork): Define.
856 (add_lwp): Turn into...
857 (linux_process_target::add_lwp): ...this.
858 (linux_process_target::low_new_thread): Define.
859 (linux_attach_lwp): Turn into...
860 (linux_process_target::attach_lwp): ...this.
861 (linux_detach_one_lwp): Turn into...
862 (linux_process_target::detach_one_lwp): ...this.
863 (linux_detach_lwp_callback): Remove and inline...
864 (linux_process_target::detach): ...here.
865 (check_zombie_leaders): Turn into...
866 (linux_process_target::check_zombie_leaders): ...this.
867 (filter_exit_event): Turn into...
868 (linux_process_target::filter_exit_event): ...this.
869
870 Update the callers below.
871
872 (linux_process_target::handle_extended_wait)
873 (linux_process_target::create_inferior)
874 (attach_proc_task_lwp_callback)
875 (linux_process_target::attach)
876 (linux_process_target::detach)
877 (linux_process_target::mourn)
878 * thread-db.cc (attach_thread)
879
880 * linux-x86-low.cc (class x86_target) <low_new_process>
881 <low_delete_process>
882 <low_new_thread>
883 <low_delete_thread>
884 <low_new_fork>: Declare.
885 (x86_linux_new_process): Turn into...
886 (x86_target::low_new_process): ...this.
887 (x86_linux_delete_process): Turn into...
888 (x86_target::low_delete_process): ...this.
889 (x86_target::low_new_thread): Define.
890 (x86_target::low_delete_thread): Define.
891 (x86_linux_new_fork): Turn into...
892 (x86_target::low_new_fork): ...this.
893 (the_low_target): Remove the op fields.
894 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
895 <low_delete_process>
896 <low_new_thread>
897 <low_delete_thread>
898 <low_new_fork>: Declare.
899 (aarch64_linux_new_process): Turn into...
900 (aarch64_target::low_new_process): ...this.
901 (aarch64_linux_delete_process): Turn into...
902 (aarch64_target::low_delete_process): ...this.
903 (aarch64_target::low_new_thread): Define.
904 (aarch64_target::low_delete_thread): Define.
905 (aarch64_linux_new_fork): Turn into...
906 (aarch64_target::low_new_fork): ...this.
907 (the_low_target): Remove the op fields.
908 * linux-arm-low.cc (class arm_target) <low_new_process>
909 <low_delete_process>
910 <low_new_thread>
911 <low_delete_thread>
912 <low_new_fork>: Declare.
913 (arm_new_process): Turn into...
914 (arm_target::low_new_process): ...this.
915 (arm_delete_process): Turn into...
916 (arm_target::low_delete_process): ...this.
917 (arm_new_thread): Turn into...
918 (arm_target::low_new_thread): ...this.
919 (arm_delete_thread): Turn into...
920 (arm_target::low_delete_thread): ...this.
921 (arm_new_fork): Turn into...
922 (arm_target::low_new_fork): ...this.
923 (the_low_target): Remove the op fields.
924 * linux-mips-low.cc (class mips_target) <low_new_process>
925 <low_delete_process>
926 <low_new_thread>
927 <low_delete_thread>
928 <low_new_fork>: Declare.
929 (mips_linux_new_process): Turn into...
930 (mips_target::low_new_process): ...this.
931 (mips_linux_delete_process): Turn into...
932 (mips_target::low_delete_process): ...this.
933 (mips_linux_new_thread): Turn into...
934 (mips_target::low_new_thread): ...this.
935 (mips_linux_delete_thread): Turn into...
936 (mips_target::low_delete_thread): ...this.
937 (mips_linux_new_fork): Turn into...
938 (mips_target::low_new_fork): ...this.
939 (the_low_target): Remove the op fields.
940 * linux-bfin-low.cc (the_low_target): Remove the op fields.
941 * linux-crisv32-low.cc (the_low_target): Ditto.
942 * linux-m32r-low.cc (the_low_target): Ditto.
943 * linux-m68k-low.cc (the_low_target): Ditto.
944 * linux-ppc-low.cc (the_low_target): Ditto.
945 * linux-s390-low.cc (the_low_target): Ditto.
946 * linux-sh-low.cc (the_low_target): Ditto.
947 * linux-tic6x-low.cc (the_low_target): Ditto.
948 * linux-tile-low.cc (the_low_target): Ditto.
949 * linux-xtensa-low.cc (the_low_target): Ditto.
950
cb63de7c
TBA
9512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
952
953 Turn the 'siginfo_fixup' linux target op into a method of
954 linux_process_target.
955
956 * linux-low.h (struct linux_target_ops): Remove the op.
957 (class linux_process_target) <siginfo_fixup>
958 <low_siginfo_fixup>: Declare.
959 * linux-low.cc (siginfo_fixup): Turn into...
960 (linux_process_target::siginfo_fixup): ...this.
961 (linux_process_target::low_siginfo_fixup): Define.
962 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
963 (x86_siginfo_fixup): Turn into...
964 (x86_target::low_siginfo_fixup): ...this.
965 (the_low_target): Remove the op field.
966 * linux-aarch64-low.cc (class aarch64_target):
967 <low_siginfo_fixup>: Declare.
968 (aarch64_linux_siginfo_fixup): Turn into...
969 (aarch64_target::low_siginfo_fixup): ...this.
970 (the_low_target): Remove the op field.
971 * linux-arm-low.cc (the_low_target): Remove the op field.
972 * linux-bfin-low.cc (the_low_target): Ditto.
973 * linux-crisv32-low.cc (the_low_target): Ditto.
974 * linux-m32r-low.cc (the_low_target): Ditto.
975 * linux-m68k-low.cc (the_low_target): Ditto.
976 * linux-mips-low.cc (the_low_target): Ditto.
977 * linux-ppc-low.cc (the_low_target): Ditto.
978 * linux-s390-low.cc (the_low_target): Ditto.
979 * linux-sh-low.cc (the_low_target): Ditto.
980 * linux-tic6x-low.cc (the_low_target): Ditto.
981 * linux-tile-low.cc (the_low_target): Ditto.
982 * linux-xtensa-low.cc (the_low_target): Ditto.
983
b35db733
TBA
9842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
985
986 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
987 linux target ops into methods of linux_process_target.
988
989 * linux-low.h (struct linux_target_ops): Remove the ops.
990 (class linux_process_target) <low_collect_ptrace_register>
991 <low_store_ptrace_register>: Declare.
992 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
993 (linux_process_target::low_supply_ptrace_register): Define.
994
995 Update the callers below.
996
997 (linux_process_target::fetch_register)
998 (linux_process_target::store_register)
999
1000 * linux-x86-low.cc (the_low_target): Remove the op fields.
1001 * linux-aarch64-low.cc (the_low_target): Ditto.
1002 * linux-arm-low.cc (the_low_target): Ditto.
1003 * linux-bfin-low.cc (the_low_target): Ditto.
1004 * linux-crisv32-low.cc (the_low_target): Ditto.
1005 * linux-m32r-low.cc (the_low_target): Ditto.
1006 * linux-m68k-low.cc (the_low_target): Ditto.
1007 * linux-sh-low.cc (the_low_target): Ditto.
1008 * linux-sparc-low.cc (the_low_target): Ditto.
1009 * linux-tic6x-low.cc (the_low_target): Ditto.
1010 * linux-tile-low.cc (the_low_target): Ditto.
1011 * linux-xtensa-low.cc (the_low_target): Ditto.
1012 * linux-mips-low.cc (class mips_target)
1013 <low_collect_ptrace_register>
1014 <low_supply_ptrace_register>: Declare.
1015 (mips_collect_ptrace_register): Turn into ...
1016 (mips_target::low_collect_ptrace_register): ...this.
1017 (mips_supply_ptrace_register): Turn into...
1018 (mips_target::low_supply_ptrace_register): ...this.
1019 (the_low_target): Remove the op fields.
1020 * linux-ppc-low.cc (class ppc_target)
1021 <low_collect_ptrace_register>
1022 <low_supply_ptrace_register>: Declare.
1023 (ppc_collect_ptrace_register): Turn into ...
1024 (ppc_target::low_collect_ptrace_register): ...this.
1025 (ppc_supply_ptrace_register): Turn into ...
1026 (ppc_target::low_supply_ptrace_register): ...this.
1027 (ppc_fill_gregset): Update for the calls to
1028 low_collect_ptrace_register.
1029 (the_low_target): Remove the op fields.
1030 * linux-s390-low.cc (class s390_target)
1031 <low_collect_ptrace_register>
1032 <low_supply_ptrace_register>: Declare.
1033 (s390_collect_ptrace_register): Turn into ...
1034 (s390_target::low_collect_ptrace_register): ...this.
1035 (s390_supply_ptrace_register): Turn into ...
1036 (s390_target::low_supply_ptrace_register): ...this.
1037 (s390_fill_gregset): Update for the calls to
1038 low_collect_ptrace_register.
1039 (the_low_target): Remove the op fields.
1040
ac1bbaca
TBA
10412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1042
1043 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1044 target ops into methods of linux_process_target.
1045
1046 * linux-low.h (struct linux_target_ops): Remove the ops.
1047 (class linux_process_target) <check_stopped_by_watchpoint>
1048 <low_stopped_by_watchpoint>
1049 <low_stopped_data_address>: Declare.
1050 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1051 (linux_process_target::check_stopped_by_watchpoint): ...this.
1052 (linux_process_target::low_stopped_by_watchpoint): Define.
1053 (linux_process_target::low_stopped_data_address): Define.
1054 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1055 <low_stopped_data_address>: Declare.
1056 (x86_stopped_by_watchpoint): Turn into...
1057 (x86_target::low_stopped_by_watchpoint): ...this.
1058 (x86_stopped_data_address): Turn into...
1059 (x86_target::low_stopped_data_address): ...this.
1060 (the_low_target): Remove the op fields.
1061 * linux-aarch64-low.cc (class aarch64_target)
1062 <low_stopped_by_watchpoint>
1063 <low_stopped_data_address>: Declare.
1064 (aarch64_stopped_by_watchpoint): Turn into...
1065 (aarch64_target::low_stopped_by_watchpoint): ...this.
1066 (aarch64_stopped_data_address): Turn into...
1067 (aarch64_target::low_stopped_data_address): ...this.
1068 (the_low_target): Remove the op fields.
1069 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1070 <low_stopped_data_address>: Declare.
1071 (arm_stopped_by_watchpoint): Turn into...
1072 (arm_target::low_stopped_by_watchpoint): ...this.
1073 (arm_stopped_data_address): Turn into...
1074 (arm_target::low_stopped_data_address): ...this.
1075 (the_low_target): Remove the op fields.
1076 * linux-crisv32-low.cc (class crisv32_target)
1077 <low_stopped_by_watchpoint>
1078 <low_stopped_data_address>: Declare.
1079 (cris_stopped_by_watchpoint): Turn into...
1080 (crisv32_target::low_stopped_by_watchpoint): ...this.
1081 (cris_stopped_data_address): Turn into...
1082 (crisv32_target::low_stopped_data_address): ...this.
1083 (the_low_target): Remove the op fields.
1084 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1085 <low_stopped_data_address>: Declare.
1086 (mips_stopped_by_watchpoint): Turn into...
1087 (mips_target::low_stopped_by_watchpoint): ...this.
1088 (mips_stopped_data_address): Turn into...
1089 (mips_target::low_stopped_data_address): ...this.
1090 (the_low_target): Remove the op fields.
1091 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1092 * linux-m32r-low.cc (the_low_target): Ditto.
1093 * linux-m68k-low.cc (the_low_target): Ditto.
1094 * linux-ppc-low.cc (the_low_target): Ditto.
1095 * linux-s390-low.cc (the_low_target): Ditto.
1096 * linux-sh-low.cc (the_low_target): Ditto.
1097 * linux-sparc-low.cc (the_low_target): Ditto.
1098 * linux-tic6x-low.cc (the_low_target): Ditto.
1099 * linux-tile-low.cc (the_low_target): Ditto.
1100 * linux-xtensa-low.cc (the_low_target): Ditto.
1101
9db9aa23
TBA
11022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1103
1104 Turn the 'insert_point' and 'remove_point' linux target ops into
1105 methods of linux_process_target.
1106
1107 * linux-low.h (struct linux_target_ops): Remove the ops.
1108 (class linux_process_target) <low_insert_point>
1109 <low_remove_point>: Declare.
1110 * linux-low.cc (linux_process_target::low_insert_point)
1111 (linux_process_target::low_remove_point): Define.
1112 (linux_process_target::insert_point)
1113 (linux_process_target::remove_point): Update for calls to
1114 low_insert_point and low_remove_point.
1115 * linux-x86-low.cc (class x86_target) <low_insert_point>
1116 <low_remove_point>: Declare.
1117 (x86_insert_point): Turn into...
1118 (x86_target::low_insert_point): ...this.
1119 (x86_remove_point): Turn into...
1120 (x86_target::low_remove_point): ...this.
1121 (the_low_target): Remove the op fields.
1122 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1123 <low_remove_point>: Declare.
1124 (aarch64_insert_point): Turn into...
1125 (aarch64_target::low_insert_point): ...this.
1126 (aarch64_remove_point): Turn into...
1127 (aarch64_target::low_remove_point): ...this.
1128 (the_low_target): Remove the op fields.
1129 * linux-arm-low.cc (class arm_target) <low_insert_point>
1130 <low_remove_point>: Declare.
1131 (arm_insert_point): Turn into...
1132 (arm_target::low_insert_point): ...this.
1133 (arm_remove_point): Turn into...
1134 (arm_target::low_remove_point): ...this.
1135 (the_low_target): Remove the op fields.
1136 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1137 <low_remove_point>: Declare.
1138 (crisv32_insert_point): Turn into...
1139 (crisv32_target::low_insert_point): ...this.
1140 (crisv32_remove_point): Turn into...
1141 (crisv32_target::low_remove_point): ...this.
1142 (the_low_target): Remove the op fields.
1143 * linux-mips-low.cc (class mips_target) <low_insert_point>
1144 <low_remove_point>: Declare.
1145 (mips_insert_point): Turn into...
1146 (mips_target::low_insert_point): ...this.
1147 (mips_remove_point): Turn into...
1148 (mips_target::low_remove_point): ...this.
1149 (the_low_target): Remove the op fields.
1150 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1151 <low_remove_point>: Declare.
1152 (ppc_insert_point): Turn into...
1153 (ppc_target::low_insert_point): ...this.
1154 (ppc_remove_point): Turn into...
1155 (ppc_target::low_remove_point): ...this.
1156 (the_low_target): Remove the op fields.
1157 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1158 * linux-m32r-low.cc (the_low_target): Ditto.
1159 * linux-m68k-low.cc (the_low_target): Ditto.
1160 * linux-s390-low.cc (the_low_target): Ditto.
1161 * linux-sh-low.cc (the_low_target): Ditto.
1162 * linux-sparc-low.cc (the_low_target): Ditto.
1163 * linux-tic6x-low.cc (the_low_target): Ditto.
1164 * linux-tile-low.cc (the_low_target): Ditto.
1165 * linux-xtensa-low.cc (the_low_target): Ditto.
1166
007c9b97
TBA
11672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1168
1169 Remove the 'supports_z_point_type' linux target op and let the
1170 concrete linux target define it by overriding the op declared in
1171 process_stratum_target.
1172
1173 * linux-low.cc (linux_process_target::supports_z_point_type):
1174 Remove.
1175 * linux-low.h (struct linux_target_ops): Remove the op.
1176 (class linux_process_target) <supports_z_point_type>: Remove.
1177 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1178 Declare.
1179 (x86_supports_z_point_type): Turn into...
1180 (x86_target::supports_z_point_type): ...this.
1181 (the_low_target): Remove the op field.
1182 * linux-aarch64-low.cc (class aarch64_target)
1183 <supports_z_point_type>: Declare.
1184 (aarch64_supports_z_point_type): Turn into...
1185 (aarch64_target::supports_z_point_type): ...this.
1186 (the_low_target): Remove the op field.
1187 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1188 Declare.
1189 (arm_supports_z_point_type): Turn into...
1190 (arm_target::supports_z_point_type): ...this.
1191 (the_low_target): Remove the op field.
1192 * linux-crisv32-low.cc (class crisv32_target)
1193 <supports_z_point_type>: Declare.
1194 (cris_supports_z_point_type): Turn into...
1195 (crisv32_target::supports_z_point_type): ...this.
1196 (the_low_target): Remove the op field.
1197 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1198 Declare.
1199 (mips_supports_z_point_type): Turn into...
1200 (mips_target::supports_z_point_type): ...this.
1201 (the_low_target): Remove the op field.
1202 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1203 Declare.
1204 (ppc_supports_z_point_type): Turn into...
1205 (ppc_target::supports_z_point_type): ...this.
1206 (the_low_target): Remove the op field.
1207 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1208 Declare.
1209 (s390_supports_z_point_type): Turn into...
1210 (s390_target::supports_z_point_type): ...this.
1211 (the_low_target): Remove the op field.
1212 * linux-bfin-low.cc (the_low_target): Remove the op field.
1213 * linux-m32r-low.cc (the_low_target): Ditto.
1214 * linux-m68k-low.cc (the_low_target): Ditto.
1215 * linux-sh-low.cc (the_low_target): Ditto.
1216 * linux-sparc-low.cc (the_low_target): Ditto.
1217 * linux-tic6x-low.cc (the_low_target): Ditto.
1218 * linux-tile-low.cc (the_low_target): Ditto.
1219 * linux-xtensa-low.cc (the_low_target): Ditto.
1220
d7146cda
TBA
12212020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1222
1223 Turn the 'breakpoint_at' linux target op into a method of
1224 linux_process_target.
1225
1226 * linux-low.h (struct linux_target_ops): Remove the op.
1227 (class linux_process_target) <low_breakpoint_at>: Declare.
1228
1229 Update the callers below:
1230
1231 * linux-low.cc (linux_process_target::save_stop_reason)
1232 (linux_process_target::thread_still_has_status_pending)
1233 (linux_process_target::wait_1)
1234
1235 * linux-x86-low.cc (class x86_target)
1236 <low_breakpoint_at>: Declare.
1237 (x86_breakpoint_at): Turn into...
1238 (x86_target::low_breakpoint_at): ...this.
1239 (the_low_target): Remove the op field.
1240 * linux-aarch64-low.cc (class aarch64_target)
1241 <low_breakpoint_at>: Declare.
1242 (aarch64_breakpoint_at): Turn into...
1243 (aarch64_target::low_breakpoint_at): ...this.
1244 (the_low_target): Remove the op field.
1245 * linux-arm-low.cc (class arm_target)
1246 <low_breakpoint_at>: Declare.
1247 (arm_target::low_breakpoint_at): Define.
1248 (the_low_target): Remove the op field.
1249 * linux-bfin-low.cc (class bfin_target)
1250 <low_breakpoint_at>: Declare.
1251 (bfin_breakpoint_at): Turn into...
1252 (bfin_target::low_breakpoint_at): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-cris-low.cc (class cris_target)
1255 <low_breakpoint_at>: Declare.
1256 (cris_breakpoint_at): Turn into...
1257 (cris_target::low_breakpoint_at): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-crisv32-low.cc (class crisv32_target)
1260 <low_breakpoint_at>: Declare.
1261 (crisv32_breakpoint_at): Turn into...
1262 (crisv32_target::low_breakpoint_at): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-ia64-low.cc (class ia64_target)
1265 <low_breakpoint_at>: Declare.
1266 (ia64_target::low_breakpoint_at): Define.
1267 * linux-m32r-low.cc (class m32r_target)
1268 <low_breakpoint_at>: Declare.
1269 (m32r_breakpoint_at): Turn into...
1270 (m32r_target::low_breakpoint_at): ...this.
1271 (the_low_target): Remove the op field.
1272 * linux-m68k-low.cc (class m68k_target)
1273 <low_breakpoint_at>: Declare.
1274 (m68k_breakpoint_at): Turn into...
1275 (m68k_target::low_breakpoint_at): ...this.
1276 (the_low_target): Remove the op field.
1277 * linux-mips-low.cc (class mips_target)
1278 <low_breakpoint_at>: Declare.
1279 (mips_breakpoint_at): Turn into...
1280 (mips_target::low_breakpoint_at): ...this.
1281 (the_low_target): Remove the op field.
1282 * linux-nios2-low.cc (class nios2_target)
1283 <low_breakpoint_at>: Declare.
1284 (nios2_breakpoint_at): Turn into...
1285 (nios2_target::low_breakpoint_at): ...this.
1286 (the_low_target): Remove the op field.
1287 * linux-ppc-low.cc (class ppc_target)
1288 <low_breakpoint_at>: Declare.
1289 (ppc_breakpoint_at): Turn into...
1290 (ppc_target::low_breakpoint_at): ...this.
1291 (the_low_target): Remove the op field.
1292 * linux-riscv-low.cc (class riscv_target)
1293 <low_breakpoint_at>: Declare.
1294 (riscv_breakpoint_at): Turn into...
1295 (riscv_target::low_breakpoint_at): ...this.
1296 (the_low_target): Remove the op field.
1297 * linux-s390-low.cc (class s390_target)
1298 <low_breakpoint_at>: Declare.
1299 (s390_breakpoint_at): Turn into...
1300 (s390_target::low_breakpoint_at): ...this.
1301 (the_low_target): Remove the op field.
1302 * linux-sh-low.cc (class sh_target)
1303 <low_breakpoint_at>: Declare.
1304 (sh_breakpoint_at): Turn into...
1305 (sh_target::low_breakpoint_at): ...this.
1306 (the_low_target): Remove the op field.
1307 * linux-sparc-low.cc (class sparc_target)
1308 <low_breakpoint_at>: Declare.
1309 (sparc_breakpoint_at): Turn into...
1310 (sparc_target::low_breakpoint_at): ...this.
1311 (the_low_target): Remove the op field.
1312 * linux-tic6x-low.cc (class tic6x_target)
1313 <low_breakpoint_at>: Declare.
1314 (tic6x_breakpoint_at): Turn into...
1315 (tic6x_target::low_breakpoint_at): ...this.
1316 (the_low_target): Remove the op field.
1317 * linux-tile-low.cc (class tile_target)
1318 <low_breakpoint_at>: Declare.
1319 (tile_breakpoint_at): Turn into...
1320 (tile_target::low_breakpoint_at): ...this.
1321 (the_low_target): Remove the op field.
1322 * linux-xtensa-low.cc (class xtensa_target)
1323 <low_breakpoint_at>: Declare.
1324 (xtensa_breakpoint_at): Turn into...
1325 (xtensa_target::low_breakpoint_at): ...this.
1326 (the_low_target): Remove the op field.
1327
d4807ea2
TBA
13282020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1329
1330 Turn the 'decr_pc_after_break' linux_target_ops field into
1331 a method of linux_process_target.
1332
1333 * linux-low.h (struct linux_target_ops)
1334 <decr_pc_after_break>: Remove.
1335 (class linux_process_target) <low_decr_pc_after_break>: New method
1336 declaration.
1337 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1338 New method implementation.
1339
1340 Update the users below.
1341
1342 (linux_process_target::save_stop_reason)
1343 (linux_process_target::wait_1)
1344 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1345 New declaration.
1346 (x86_target::low_decr_pc_after_break): New method implementation.
1347 (the_low_target): Remove the field.
1348 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1349 New declaration.
1350 (bfin_target::low_decr_pc_after_break): New method implementation.
1351 (the_low_target): Remove the field.
1352 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1353 New declaration.
1354 (m68k_target::low_decr_pc_after_break): New method implementation.
1355 (the_low_target): Remove the field.
1356 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1357 New declaration.
1358 (s390_target::low_decr_pc_after_break): New method implementation.
1359 (the_low_target): Remove the field.
1360 * linux-aarch64-low.cc (the_low_target): Remove the field.
1361 * linux-arm-low.cc (the_low_target): Remove the field.
1362 * linux-cris-low.cc (the_low_target): Remove the field.
1363 * linux-crisv32-low.cc (the_low_target): Remove the field.
1364 * linux-m32r-low.cc (the_low_target): Remove the field.
1365 * linux-mips-low.cc (the_low_target): Remove the field.
1366 * linux-nios2-low.cc (the_low_target): Remove the field.
1367 * linux-ppc-low.cc (the_low_target): Remove the field.
1368 * linux-riscv-low.cc (the_low_target): Remove the field.
1369 * linux-sh-low.cc (the_low_target): Remove the field.
1370 * linux-sparc-low.cc (the_low_target): Remove the field.
1371 * linux-tic6x-low.cc (the_low_target): Remove the field.
1372 * linux-tile-low.cc (the_low_target): Remove the field.
1373 * linux-xtensa-low.cc (the_low_target): Remove the field.
1374
7582c77c
TBA
13752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1376
1377 Remove the 'supports_software_single_step' linux target op and let
1378 the concrete linux target define it by overriding the op in
1379 process_stratum_target.
1380 Turn the 'get_next_pcs' linux target op into a method of
1381 linux_process_target.
1382
1383 * linux-low.h (struct linux_target_ops): Remove the ops.
1384 (class linux_process_target) <supports_software_single_step>:
1385 Remove.
1386 <low_get_next_pcs>: Declare.
1387 * linux-low.cc (can_software_single_step): Remove.
1388 (linux_process_target::low_get_next_pcs): Define.
1389 (linux_process_target::supports_software_single_step): Remove.
1390
1391 Update the callers below.
1392
1393 (linux_process_target::handle_extended_wait)
1394 (linux_process_target::wait_1)
1395 (linux_process_target::install_software_single_step_breakpoints)
1396 (linux_process_target::single_step)
1397 (linux_process_target::thread_needs_step_over)
1398 (linux_process_target::proceed_one_lwp)
1399 (linux_process_target::supports_range_stepping)
1400
1401 * linux-x86-low.cc (the_low_target): Remove the op field.
1402 * linux-aarch64-low.cc (the_low_target): Ditto.
1403 * linux-bfin-low.cc (the_low_target): Ditto.
1404 * linux-cris-low.cc (the_low_target): Ditto.
1405 * linux-crisv32-low.cc (the_low_target): Ditto.
1406 * linux-m32r-low.cc (the_low_target): Ditto.
1407 * linux-m68k-low.cc (the_low_target): Ditto.
1408 * linux-mips-low.cc (the_low_target): Ditto.
1409 * linux-nios2-low.cc (the_low_target): Ditto.
1410 * linux-ppc-low.cc (the_low_target): Ditto.
1411 * linux-riscv-low.cc (the_low_target): Ditto.
1412 * linux-s390-low.cc (the_low_target): Ditto.
1413 * linux-sh-low.cc (the_low_target): Ditto.
1414 * linux-sparc-low.cc (the_low_target): Ditto.
1415 * linux-tic6x-low.cc (the_low_target): Ditto.
1416 * linux-tile-low.cc (the_low_target): Ditto.
1417 * linux-xtensa-low.cc (the_low_target): Ditto.
1418 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1419 <supports_software_single_step>: Declare.
1420 (arm_target::supports_software_single_step): Define.
1421 (arm_gdbserver_get_next_pcs): Turn into...
1422 (arm_target::low_get_next_pcs): ...this.
1423 (the_low_target): Remove the op field.
1424
3ca4edb6
TBA
14252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1426
1427 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1428 the concrete linux target define it by overriding the op
1429 in process_stratum_target.
1430
1431 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1432 Remove.
1433 * linux-low.h (struct linux_target_ops): Remove the op.
1434 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1435 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1436 Declare.
1437 (x86_sw_breakpoint_from_kind): Turn into...
1438 (x86_target::sw_breakpoint_from_kind): ...this.
1439 (the_low_target): Remove the op field.
1440 * linux-aarch64-low.cc (class aarch64_target)
1441 <sw_breakpoint_from_kind>: Declare.
1442 (aarch64_sw_breakpoint_from_kind): Turn into...
1443 (aarch64_target::sw_breakpoint_from_kind): ...this.
1444 (the_low_target): Remove the op field.
1445 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1446 Declare.
1447 (arm_target::sw_breakpoint_from_kind): Define.
1448 (the_low_target): Remove the op field.
1449 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1450 Declare.
1451 (bfin_sw_breakpoint_from_kind): Turn into...
1452 (bfin_target::sw_breakpoint_from_kind): ...this.
1453 (the_low_target): Remove the op field.
1454 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1455 Declare.
1456 (cris_sw_breakpoint_from_kind): Turn into...
1457 (cris_target::sw_breakpoint_from_kind): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-crisv32-low.cc (class crisv32_target)
1460 <sw_breakpoint_from_kind>: Declare.
1461 (cris_sw_breakpoint_from_kind): Turn into...
1462 (crisv32_target::sw_breakpoint_from_kind): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1465 Declare.
1466 (ia64_target::sw_breakpoint_from_kind): Define.
1467 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1468 Declare.
1469 (m32r_sw_breakpoint_from_kind): Turn into...
1470 (m32r_target::sw_breakpoint_from_kind): ...this.
1471 (the_low_target): Remove the op field.
1472 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1473 Declare.
1474 (m68k_sw_breakpoint_from_kind): Turn into...
1475 (m68k_target::sw_breakpoint_from_kind): ...this.
1476 (the_low_target): Remove the op field.
1477 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1478 Declare.
1479 (mips_sw_breakpoint_from_kind): Turn into...
1480 (mips_target::sw_breakpoint_from_kind): ...this.
1481 (the_low_target): Remove the op field.
1482 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1483 Declare.
1484 (nios2_sw_breakpoint_from_kind): Turn into...
1485 (nios2_target::sw_breakpoint_from_kind): ...this.
1486 (the_low_target): Remove the op field.
1487 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1488 Declare.
1489 (ppc_sw_breakpoint_from_kind): Turn into...
1490 (ppc_target::sw_breakpoint_from_kind): ...this.
1491 (the_low_target): Remove the op field.
1492 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1493 Declare.
1494 (riscv_sw_breakpoint_from_kind): Turn into...
1495 (riscv_target::sw_breakpoint_from_kind): ...this.
1496 (the_low_target): Remove the op field.
1497 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1498 Declare.
1499 (s390_sw_breakpoint_from_kind): Turn into...
1500 (s390_target::sw_breakpoint_from_kind): ...this.
1501 (the_low_target): Remove the op field.
1502 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1503 Declare.
1504 (sh_sw_breakpoint_from_kind): Turn into...
1505 (sh_target::sw_breakpoint_from_kind): ...this.
1506 (the_low_target): Remove the op field.
1507 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1508 Declare.
1509 (sparc_sw_breakpoint_from_kind): Turn into...
1510 (sparc_target::sw_breakpoint_from_kind): ...this.
1511 (the_low_target): Remove the op field.
1512 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1513 Declare.
1514 (tic6x_sw_breakpoint_from_kind): Turn into...
1515 (tic6x_target::sw_breakpoint_from_kind): ...this.
1516 (the_low_target): Remove the op field.
1517 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1518 Declare.
1519 (tile_sw_breakpoint_from_kind): Turn into...
1520 (tile_target::sw_breakpoint_from_kind): ...this.
1521 (the_low_target): Remove the op field.
1522 * linux-xtensa-low.cc (class xtensa_target)
1523 <sw_breakpoint_from_kind>: Declare.
1524 (xtensa_sw_breakpoint_from_kind): Turn into...
1525 (xtensa_target::sw_breakpoint_from_kind): ...this.
1526 (the_low_target): Remove the op field.
1527
06250e4e
TBA
15282020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1529
1530 Remove the 'breakpoint_kind_from_pc' and
1531 'breakpoint_kind_from_current_state' linux target ops, and let the
1532 concrete linux target define them by overriding the ops of
1533 process_stratum_target.
1534
1535 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1536 Remove.
1537 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1538 * linux-low.h (struct linux_target_ops): Remove ops.
1539 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1540 <breakpoint_kind_from_current_state>: Remove.
1541 * linux-x86-low.cc (the_low_target): Remove the op fields.
1542 * linux-bfin-low.cc (the_low_target): Ditto.
1543 * linux-cris-low.cc (the_low_target): Ditto.
1544 * linux-crisv32-low.cc (the_low_target): Ditto.
1545 * linux-m32r-low.cc (the_low_target): Ditto.
1546 * linux-m68k-low.cc (the_low_target): Ditto.
1547 * linux-mips-low.cc (the_low_target): Ditto.
1548 * linux-nios2-low.cc (the_low_target): Ditto.
1549 * linux-ppc-low.cc (the_low_target): Ditto.
1550 * linux-s390-low.cc (the_low_target): Ditto.
1551 * linux-sh-low.cc (the_low_target): Ditto.
1552 * linux-sparc-low.cc (the_low_target): Ditto.
1553 * linux-tic6x-low.cc (the_low_target): Ditto.
1554 * linux-tile-low.cc (the_low_target): Ditto.
1555 * linux-xtensa-low.cc (the_low_target): Ditto.
1556 * linux-aarch64-low.cc (class aarch64_target)
1557 <breakpoint_kind_from_pc>
1558 <breakpoint_kind_from_current_state>: Declare.
1559 (aarch64_breakpoint_kind_from_pc): Turn into...
1560 (aarch64_target::breakpoint_kind_from_pc): ...this.
1561 (aarch64_breakpoint_kind_from_current_state): Turn into...
1562 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1563 (the_low_target): Remove the op fields.
1564 * linux-arm-low.cc (class arm_target):
1565 <breakpoint_kind_from_pc>
1566 <breakpoint_kind_from_current_state>: Declare.
1567 (arm_target::breakpoint_kind_from_pc): Define.
1568 (arm_target::breakpoint_kind_from_current_state): Define.
1569 (the_low_target): Remove the op fields.
1570 * linux-riscv-low.cc (class riscv_target):
1571 <breakpoint_kind_from_pc>: Declare.
1572 (riscv_breakpoint_kind_from_pc): Turn into...
1573 (riscv_target::breakpoint_kind_from_pc): ...this.
1574 (the_low_target): Remove the op fields.
1575
bf9ae9d8
TBA
15762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1577
1578 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1579 of linux_process_target.
1580
1581 * linux-low.h (struct linux_target_ops): Remove the ops.
1582 (class linux_process_target) <low_supports_breakpoints>
1583 <low_get_pc>
1584 <low_set_pc>: Declare.
1585 * linux-low.cc (supports_breakpoints): Turn into...
1586 (linux_process_target::low_supports_breakpoints): ...this.
1587 (linux_process_target::low_get_pc): Define.
1588 (linux_process_target::low_set_pc): Define.
1589
1590 Update the callers below.
1591
1592 (linux_process_target::get_pc)
1593 (linux_process_target::save_stop_reason)
1594 (linux_process_target::maybe_move_out_of_jump_pad)
1595 (linux_process_target::wait_1)
1596 (linux_process_target::resume_one_lwp_throw)
1597 (linux_process_target::resume)
1598 (linux_process_target::proceed_all_lwps)
1599 (linux_process_target::read_pc)
1600 (linux_process_target::write_pc)
1601
1602 * linux-x86-low.cc (class linux_process_target)
1603 <low_supports_breakpoints>
1604 <low_get_pc>
1605 <low_set_pc>: Declare.
1606 (x86_target::low_supports_breakpoints): Define.
1607 (x86_get_pc): Turn into...
1608 (x86_target::low_get_pc): ...this.
1609 (x86_set_pc): Turn into...
1610 (x86_target::low_set_pc): ...this.
1611 (the_low_target): Remove the op fields.
1612 * linux-arm-low.cc (class arm_target)
1613 <low_supports_breakpoints>
1614 <low_get_pc>
1615 <low_set_pc>: Declare.
1616 (arm_target::low_supports_breakpoints)
1617 (arm_target::low_get_pc)
1618 (arm_target::low_set_pc): Define.
1619 (the_low_target): Remove the op fields.
1620 * linux-bfin-low.cc (class bfin_target)
1621 <low_supports_breakpoints>
1622 <low_get_pc>
1623 <low_set_pc>: Declare.
1624 (bfin_target::low_supports_breakpoints)
1625 (bfin_target::low_get_pc)
1626 (bfin_target::low_set_pc): Define.
1627 (the_low_target): Remove the op fields.
1628 * linux-cris-low.cc (class cris_target)
1629 <low_supports_breakpoints>
1630 <low_get_pc>
1631 <low_set_pc>: Declare.
1632 (cris_target::low_supports_breakpoints)
1633 (cris_target::low_get_pc)
1634 (cris_target::low_set_pc): Define.
1635 (the_low_target): Remove the op fields.
1636 * linux-crisv32-low.cc (class crisv32_target)
1637 <low_supports_breakpoints>
1638 <low_get_pc>
1639 <low_set_pc>: Declare.
1640 (crisv32_target::low_supports_breakpoints)
1641 (crisv32_target::low_get_pc)
1642 (crisv32_target::low_set_pc): Define.
1643 (the_low_target): Remove the op fields.
1644 * linux-m32r-low.cc (class m32r_target)
1645 <low_supports_breakpoints>
1646 <low_get_pc>
1647 <low_set_pc>: Declare.
1648 (m32r_target::low_supports_breakpoints)
1649 (m32r_target::low_get_pc)
1650 (m32r_target::low_set_pc): Define.
1651 (the_low_target): Remove the op fields.
1652 * linux-m68k-low.cc (class m68k_target)
1653 <low_supports_breakpoints>
1654 <low_get_pc>
1655 <low_set_pc>: Declare.
1656 (m68k_target::low_supports_breakpoints)
1657 (m68k_target::low_get_pc)
1658 (m68k_target::low_set_pc): Define.
1659 (the_low_target): Remove the op fields.
1660 * linux-nios2-low.cc (class nios2_target)
1661 <low_supports_breakpoints>
1662 <low_get_pc>
1663 <low_set_pc>: Declare.
1664 (nios2_target::low_supports_breakpoints)
1665 (nios2_target::low_get_pc)
1666 (nios2_target::low_set_pc): Define.
1667 (the_low_target): Remove the op fields.
1668 * linux-sh-low.cc (class sh_target)
1669 <low_supports_breakpoints>
1670 <low_get_pc>
1671 <low_set_pc>: Declare.
1672 (sh_target::low_supports_breakpoints)
1673 (sh_target::low_get_pc)
1674 (sh_target::low_set_pc): Define.
1675 (the_low_target): Remove the op fields.
1676 * linux-xtensa-low.cc (class xtensa_target)
1677 <low_supports_breakpoints>
1678 <low_get_pc>
1679 <low_set_pc>: Declare.
1680 (xtensa_target::low_supports_breakpoints)
1681 (xtensa_target::low_get_pc)
1682 (xtensa_target::low_set_pc): Define.
1683 (the_low_target): Remove the op fields.
1684 * linux-sparc-low.cc (class sparc_target)
1685 <low_supports_breakpoints>
1686 <low_get_pc>: Declare.
1687 (sparc_target::low_supports_breakpoints)
1688 (sparc_target::low_get_pc): Define.
1689 (the_low_target): Remove the op fields.
1690 * linux-tile-low.cc (class tile_target)
1691 <low_supports_breakpoints>
1692 <low_get_pc>
1693 <low_set_pc>: Declare.
1694 (tile_target::low_supports_breakpoints)
1695 (tile_target::low_get_pc)
1696 (tile_target::low_set_pc): Define.
1697 (the_low_target): Remove the op fields.
1698 * linux-aarch64-low.cc (class aarch64_target)
1699 <low_supports_breakpoints>
1700 <low_get_pc>
1701 <low_set_pc>: Declare.
1702 (aarch64_target::low_supports_breakpoints): Define.
1703 (aarch64_get_pc): Turn into...
1704 (aarch64_target::low_get_pc): ...this.
1705 (aarch64_set_pc): Turn into...
1706 (aarch64_target::low_set_pc): ...this.
1707 (the_low_target): Remove the op fields.
1708 * linux-mips-low.cc (class mips_target)
1709 <low_supports_breakpoints>
1710 <low_get_pc>
1711 <low_set_pc>: Declare.
1712 (mips_target::low_supports_breakpoints): Define.
1713 (mips_get_pc): Turn into...
1714 (mips_target::low_get_pc): ...this.
1715 (mips_set_pc): Turn into...
1716 (mips_target::low_set_pc): ...this.
1717 (the_low_target): Remove the op fields.
1718 * linux-ppc-low.cc (class ppc_target)
1719 <low_supports_breakpoints>
1720 <low_get_pc>
1721 <low_set_pc>: Declare.
1722 (ppc_target::low_supports_breakpoints): Define.
1723 (ppc_get_pc): Turn into...
1724 (ppc_target::low_get_pc): ...this.
1725 (ppc_set_pc): Turn into...
1726 (ppc_target::low_set_pc): ...this.
1727 (the_low_target): Remove the op fields.
1728 * linux-riscv-low.cc (class riscv_target)
1729 <low_supports_breakpoints>
1730 <low_get_pc>
1731 <low_set_pc>: Declare.
1732 (riscv_target::low_supports_breakpoints): Define.
1733 (riscv_get_pc): Turn into...
1734 (riscv_target::low_get_pc): ...this.
1735 (riscv_set_pc): Turn into...
1736 (riscv_target::low_set_pc): ...this.
1737 (the_low_target): Remove the op fields.
1738 * linux-s390-low.cc (class s390_target)
1739 <low_supports_breakpoints>
1740 <low_get_pc>
1741 <low_set_pc>: Declare.
1742 (s390_target::low_supports_breakpoints): Define.
1743 (s390_get_pc): Turn into...
1744 (s390_target::low_get_pc): ...this.
1745 (s390_set_pc): Turn into...
1746 (s390_target::low_set_pc): ...this.
1747 (the_low_target): Remove the op fields.
1748 * linux-tic6x-low.cc (class tic6x_target)
1749 <low_supports_breakpoints>
1750 <low_get_pc>
1751 <low_set_pc>: Declare.
1752 (tic6x_target::low_supports_breakpoints): Define.
1753 (tic6x_get_pc): Turn into...
1754 (tic6x_target::low_get_pc): ...this.
1755 (tic6x_set_pc): Turn into...
1756 (tic6x_target::low_set_pc): ...this.
1757 (the_low_target): Remove the op fields.
1758
df95181f
TBA
17592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1760
1761 Turn some more static methods in linux-low into private methods
1762 of linux_process_target.
1763
1764 * linux-low.cc (get_pc): Turn into...
1765 (linux_process_target::get_pc): ...this.
1766 (save_stop_reason): Turn into...
1767 (linux_process_target::save_stop_reason): ...this.
1768 (thread_still_has_status_pending_p): Turn into...
1769 (linux_process_target::thread_still_has_status_pending): ...this.
1770 (status_pending_p_callback): Turn into...
1771 (linux_process_target::status_pending_p_callback): ...this.
1772 (resume_stopped_resumed_lwps): Turn into...
1773 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1774 (install_software_single_step_breakpoints): Turn into...
1775 (linux_process_target::install_software_single_step_breakpoints):
1776 ...this.
1777 (single_step): Turn into...
1778 (linux_process_target::single_step): ...this.
1779 (linux_resume_one_lwp_throw): Turn into...
1780 (linux_process_target::resume_one_lwp_throw): ...this.
1781 (linux_resume_one_lwp): Turn into...
1782 (linux_process_target::resume_one_lwp): ...this.
1783 (resume_status_pending_p): Turn into...
1784 (linux_process_target::resume_status_pending): ...this.
1785 (need_step_over_p): Turn into...
1786 (linux_process_target::thread_needs_step_over): ...this.
1787 (linux_resume_one_thread): Turn into...
1788 (linux_process_target::resume_one_thread): ...this.
1789 (proceed_one_lwp): Turn into...
1790 (linux_process_target::proceed_one_lwp): ...this.
1791 (unsuspend_and_proceed_one_lwp): Turn into...
1792 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1793
1794 Update the calls/references to the above functions below.
1795
1796 (linux_process_target::handle_extended_wait)
1797 (linux_process_target::filter_event)
1798 (linux_process_target::wait_for_event_filtered)
1799 (linux_process_target::wait_1)
1800 (linux_process_target::move_out_of_jump_pad)
1801 (linux_process_target::start_step_over)
1802 (linux_process_target::resume)
1803 (linux_process_target::proceed_all_lwps)
1804 (regsets_store_inferior_registers)
1805 (linux_process_target::store_register)
1806
1807 * linux-low.h (class linux_process_target)
1808 <get_pc>
1809 <save_stop_reason>
1810 <thread_still_has_status_pending>
1811 <status_pending_p_callback>
1812 <resume_stopped_resumed_lwps>
1813 <install_software_single_step_breakpoints>
1814 <single_step>
1815 <resume_one_lwp_throw>
1816 <resume_one_lwp>
1817 <resume_status_pending>
1818 <thread_needs_step_over>
1819 <resume_one_thread>
1820 <proceed_one_lwp>
1821 <unsuspend_and_proceed_one_lwp>: Declare.
1822
bd70b1f2
TBA
18232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1824
1825 Turn the 'fetch_register' linux target op into a method of
1826 linux_process_target.
1827
1828 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1829 (class linux_process_target) <low_fetch_register>: Declare.
1830 * linux-x86-low.cc (the_low_target)
1831 * linux-aarch64-low.cc (the_low_target)
1832 * linux-arm-low.cc (the_low_target)
1833 * linux-bfin-low.cc (the_low_target)
1834 * linux-cris-low.cc (the_low_target)
1835 * linux-crisv32-low.cc (the_low_target)
1836 * linux-m32r-low.cc (the_low_target)
1837 * linux-m68k-low.cc (the_low_target)
1838 * linux-nios2-low.cc (the_low_target)
1839 * linux-ppc-low.cc (the_low_target)
1840 * linux-s390-low.cc (the_low_target)
1841 * linux-sh-low.cc (the_low_target)
1842 * linux-sparc-low.cc (the_low_target)
1843 * linux-tic6x-low.cc (the_low_target)
1844 * linux-tile-low.cc (the_low_target)
1845 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1846 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1847 Declare.
1848 (ia64_fetch_register): Turn into...
1849 (ia64_target::low_fetch_register): ...this.
1850 (the_low_target): Remove the op field.
1851 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1852 Declare.
1853 (mips_fetch_register): Turn into...
1854 (mips_target::low_fetch_register): ...this.
1855 (the_low_target): Remove the op field.
1856 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1857 Declare.
1858 (riscv_fetch_register): Turn into...
1859 (riscv_target::low_fetch_register): ...this.
1860 (the_low_target): Remove the op field.
1861
1862 Update the callers below.
1863
1864 * linux-low.cc (linux_process_target::fetch_registers)
1865 (linux_process_target::low_fetch_register)
1866
daca57a7
TBA
18672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1868
1869 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1870 linux target ops into methods of linux_process_target.
1871
1872 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1873 (class linux_process_target) <fetch_register>
1874 <store_register>
1875 <usr_fetch_inferior_registers>
1876 <usr_store_inferior_registers>
1877 <low_cannot_fetch_register>
1878 <low_cannot_fetch_register> Declare.
1879 * linux-low.cc (fetch_register): Turn into...
1880 (linux_process_target::fetch_register): ...this.
1881 (store_register): Turn into ...
1882 (linux_process_target::store_register): ...this.
1883 (usr_fetch_inferior_registers): Turn into...
1884 (linux_process_target::usr_fetch_inferior_registers): ...this.
1885 (usr_store_inferior_registers): Turn into...
1886 (linux_process_target::usr_store_inferior_registers): ...this.
1887 * linux-x86-low.cc (class x86_target)
1888 <low_cannot_fetch_register>
1889 <low_cannot_store_register>: Declare.
1890 (x86_cannot_store_register): Turn into...
1891 (x86_target::low_cannot_store_register): ...this.
1892 (x86_cannot_fetch_register): Turn into...
1893 (x86_target::low_cannot_fetch_register): ...this.
1894 (the_low_target): Remove the target op fields.
1895 * linux-aarch64-low.cc (class aarch64_target)
1896 <low_cannot_fetch_register>
1897 <low_cannot_store_register>: Declare.
1898 (aarch64_target::low_cannot_fetch_register)
1899 (aarch64_target::low_cannot_store_register): Define.
1900 (the_low_target): Remove the op fields.
1901 * linux-arm-low.cc (class arm_target)
1902 <low_cannot_fetch_register>
1903 <low_cannot_store_register>: Declare.
1904 (arm_cannot_fetch_register): Turn into...
1905 (arm_target::low_cannot_fetch_register): ...this.
1906 (arm_cannot_store_register): Turn into...
1907 (arm_target::low_cannot_store_register): ...this.
1908 (the_low_target): Remove the op fields.
1909 * linux-bfin-low.cc (class bfin_target)
1910 <low_cannot_fetch_register>
1911 <low_cannot_store_register>: Declare.
1912 (bfin_cannot_fetch_register): Turn into...
1913 (bfin_target::low_cannot_fetch_register): ...this.
1914 (bfin_cannot_store_register): Turn into...
1915 (bfin_target::low_cannot_store_register): ...this.
1916 (the_low_target): Remove the op fields.
1917 * linux-cris-low.cc (class cris_target)
1918 <low_cannot_fetch_register>
1919 <low_cannot_store_register>: Declare.
1920 (cris_cannot_fetch_register): Turn into...
1921 (cris_target::low_cannot_fetch_register): ...this.
1922 (cris_cannot_store_register): Turn into...
1923 (cris_target::low_cannot_store_register): ...this.
1924 (the_low_target): Remove the op fields.
1925 * linux-crisv32-low.cc (class crisv32_target)
1926 <low_cannot_fetch_register>
1927 <low_cannot_store_register>: Declare.
1928 (crisv32_target::low_cannot_fetch_register)
1929 (crisv32_target::low_cannot_store_register): Define.
1930 (the_low_target): Remove the op fields.
1931 * linux-ia64-low.cc (class ia64_target)
1932 <low_cannot_fetch_register>
1933 <low_cannot_store_register>: Declare.
1934 (ia64_cannot_fetch_register): Turn into...
1935 (ia64_target::low_cannot_fetch_register): ...this.
1936 (ia64_cannot_store_register): Turn into...
1937 (ia64_target::low_cannot_store_register): ...this.
1938 (the_low_target): Remove the op fields.
1939 * linux-m32r-low.cc (class m32r_target)
1940 <low_cannot_fetch_register>
1941 <low_cannot_store_register>: Declare.
1942 (m32r_cannot_fetch_register): Turn into...
1943 (m32r_target::low_cannot_fetch_register): ...this.
1944 (m32r_cannot_store_register): Turn into...
1945 (m32r_target::low_cannot_store_register): ...this.
1946 (the_low_target): Remove the op fields.
1947 * linux-m68k-low.cc (class m68k_target)
1948 <low_cannot_fetch_register>
1949 <low_cannot_store_register>: Declare.
1950 (m68k_cannot_fetch_register): Turn into...
1951 (m68k_target::low_cannot_fetch_register): ...this.
1952 (m68k_cannot_store_register): Turn into...
1953 (m68k_target::low_cannot_store_register): ...this.
1954 (the_low_target): Remove the op fields.
1955 * linux-mips-low.cc (class mips_target)
1956 <low_cannot_fetch_register>
1957 <low_cannot_store_register>: Declare.
1958 (mips_cannot_fetch_register): Turn into...
1959 (mips_target::low_cannot_fetch_register): ...this.
1960 (mips_cannot_store_register): Turn into...
1961 (mips_target::low_cannot_store_register): ...this.
1962 (get_usrregs_info): Inline at the call sites in
1963 low_cannot_fetch_register and low_cannot_store_register,
1964 and remove.
1965 (the_low_target): Remove the op fields.
1966 * linux-nios2-low.cc (class nios2_target)
1967 <low_cannot_fetch_register>
1968 <low_cannot_store_register>: Declare.
1969 (nios2_cannot_fetch_register): Turn into...
1970 (nios2_target::low_cannot_fetch_register): ...this.
1971 (nios2_cannot_store_register): Turn into...
1972 (nios2_target::low_cannot_store_register): ...this.
1973 (the_low_target): Remove the op fields.
1974 * linux-ppc-low.cc (class ppc_target)
1975 <low_cannot_fetch_register>
1976 <low_cannot_store_register>: Declare.
1977 (ppc_cannot_fetch_register): Turn into...
1978 (ppc_target::low_cannot_fetch_register): ...this.
1979 (ppc_cannot_store_register): Turn into...
1980 (ppc_target::low_cannot_store_register): ...this.
1981 (the_low_target): Remove the op fields.
1982 * linux-riscv-low.cc (class riscv_target)
1983 <low_cannot_fetch_register>
1984 <low_cannot_store_register>: Declare.
1985 (riscv_target::low_cannot_fetch_register)
1986 (riscv_target::low_cannot_store_register): Define.
1987 (the_low_target): Remove the op fields.
1988 * linux-s390-low.cc (class s390_target)
1989 <low_cannot_fetch_register>
1990 <low_cannot_store_register>: Declare.
1991 (s390_cannot_fetch_register): Turn into...
1992 (s390_target::low_cannot_fetch_register): ...this.
1993 (s390_cannot_store_register): Turn into...
1994 (s390_target::low_cannot_store_register): ...this.
1995 (the_low_target): Remove the op fields.
1996 * linux-sh-low.cc (class sh_target)
1997 <low_cannot_fetch_register>
1998 <low_cannot_store_register>: Declare.
1999 (sh_cannot_fetch_register): Turn into...
2000 (sh_target::low_cannot_fetch_register): ...this.
2001 (sh_cannot_store_register): Turn into...
2002 (sh_target::low_cannot_store_register): ...this.
2003 (the_low_target): Remove the op fields.
2004 * linux-sparc-low.cc (class sparc_target)
2005 <low_cannot_fetch_register>
2006 <low_cannot_store_register>: Declare.
2007 (sparc_cannot_fetch_register): Turn into...
2008 (sparc_target::low_cannot_fetch_register): ...this.
2009 (sparc_cannot_store_register): Turn into...
2010 (sparc_target::low_cannot_store_register): ...this.
2011 (the_low_target): Remove the op fields.
2012 * linux-tic6x-low.cc (class tic6x_target)
2013 <low_cannot_fetch_register>
2014 <low_cannot_store_register>: Declare.
2015 (tic6x_cannot_fetch_register): Turn into...
2016 (tic6x_target::low_cannot_fetch_register): ...this.
2017 (tic6x_cannot_store_register): Turn into...
2018 (tic6x_target::low_cannot_store_register): ...this.
2019 (the_low_target): Remove the op fields.
2020 * linux-tile-low.cc (class tile_target)
2021 <low_cannot_fetch_register>
2022 <low_cannot_store_register>: Declare.
2023 (tile_cannot_fetch_register): Turn into...
2024 (tile_target::low_cannot_fetch_register): ...this.
2025 (tile_cannot_store_register): Turn into...
2026 (tile_target::low_cannot_store_register): ...this.
2027 (the_low_target): Remove the op fields.
2028 * linux-xtensa-low.cc (class xtensa_target)
2029 <low_cannot_fetch_register>
2030 <low_cannot_store_register>: Declare.
2031 (xtensa_target::low_cannot_fetch_register)
2032 (xtensa_target::low_cannot_store_register): Define.
2033 (the_low_target): Remove the op fields.
2034
aa8d21c9
TBA
20352020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2036
2037 Turn the 'regs_info' linux target op into a method of
2038 linux_process_target.
2039
2040 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2041 (class linux_process_target) <get_regs_info>: Define.
2042
2043 Update the callers below.
2044
2045 * linux-low.cc (linux_process_target::fetch_registers)
2046 (linux_process_target::store_registers)
2047 * proc-service.cc (gregset_info)
2048
2049 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2050 (x86_linux_regs_info): Turn into ...
2051 (x86_target::get_regs_info): ...this.
2052 (the_low_target): Remove the op field.
2053 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2054 Declare.
2055 (aarch64_regs_info): Turn into ...
2056 (aarch64_target::get_regs_info): ...this.
2057 (the_low_target): Remove the op field.
2058 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2059 (arm_regs_info): Turn into ...
2060 (arm_target::get_regs_info): ...this.
2061 (the_low_target): Remove the op field.
2062 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2063 (bfin_regs_info): Turn into ...
2064 (bfin_target::get_regs_info): ...this.
2065 (the_low_target): Remove the op field.
2066 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2067 (cris_regs_info): Turn into ...
2068 (cris_target::get_regs_info): ...this.
2069 (the_low_target): Remove the op field.
2070 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2071 Declare.
2072 (crisv32_regs_info): Turn into ...
2073 (crisv32_target::get_regs_info): ...this.
2074 (the_low_target): Remove the op field.
2075 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2076 (ia64_regs_info): Turn into ...
2077 (ia64_target::get_regs_info): ...this.
2078 (the_low_target): Remove the op field.
2079 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2080 (m32r_regs_info): Turn into ...
2081 (m32r_target::get_regs_info): ...this.
2082 (the_low_target): Remove the op field.
2083 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2084 (m68k_regs_info): Turn into ...
2085 (m68k_target::get_regs_info): ...this.
2086 (the_low_target): Remove the op field.
2087 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2088 (mips_regs_info): Turn into ...
2089 (mips_target::get_regs_info): ...this.
2090 (the_low_target): Remove the op field.
2091 (get_usrregs_info): Update the call to the op.
2092 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2093 (nios2_regs_info): Turn into ...
2094 (nios2_target::get_regs_info): ...this.
2095 (the_low_target): Remove the op field.
2096 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2097 (ppc_regs_info): Turn into ...
2098 (ppc_target::get_regs_info): ...this.
2099 (the_low_target): Remove the op field.
2100 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2101 (riscv_regs_info): Turn into ...
2102 (riscv_target::get_regs_info): ...this.
2103 (the_low_target): Remove the op field.
2104 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2105 (s390_regs_info): Turn into ...
2106 (s390_target::get_regs_info): ...this.
2107 (the_low_target): Remove the op field.
2108 (s390_collect_ptrace_register)
2109 (s390_supply_ptrace_register)
2110 (s390_fill_gregset): Update the call to the op.
2111 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2112 (sh_regs_info): Turn into ...
2113 (sh_target::get_regs_info): ...this.
2114 (the_low_target): Remove the op field.
2115 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2116 (sparc_regs_info): Turn into ...
2117 (sparc_target::get_regs_info): ...this.
2118 (the_low_target): Remove the op field.
2119 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2120 (tic6x_regs_info): Turn into ...
2121 (tic6x_target::get_regs_info): ...this.
2122 (the_low_target): Remove the op field.
2123 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2124 (tile_regs_info): Turn into ...
2125 (tile_target::get_regs_info): ...this.
2126 (the_low_target): Remove the op field.
2127 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2128 Declare.
2129 (xtensa_regs_info): Turn into ...
2130 (xtensa_target::get_regs_info): ...this.
2131 (the_low_target): Remove the op field.
2132
797bcff5
TBA
21332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2134
2135 Turn the 'arch_setup' linux target op into a method of
2136 linux_process_target.
2137
2138 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2139 (class linux_process_target) <arch_setup_thread>
2140 <low_arch_setup>: New declarations.
2141 * linux-low.cc (linux_arch_setup): Delete.
2142 (linux_arch_setup_thread): Turn into...
2143 (linux_process_target::arch_setup_thread): ... this.
2144
2145 Update the callers below.
2146
2147 (linux_process_target::handle_extended_wait)
2148 (linux_process_target::post_create_inferior)
2149 (linux_process_target::filter_event)
2150
2151 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2152 declaration.
2153 (x86_linux_update_xmltarget): Turn into...
2154 (x86_target::update_xmltarget): ...this.
2155 (x86_linux_process_qsupported): Update the call to
2156 x86_linux_update_xmltarget.
2157 (x86_arch_setup): Turn into ...
2158 (x86_target::low_arch_setup): ...this.
2159 (the_low_target): Remove the op field.
2160 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2161 declaration.
2162 (aarch64_arch_setup): Turn into ...
2163 (aarch64_target::low_arch_setup): ...this.
2164 (the_low_target): Remove the op field.
2165 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2166 declaration.
2167 (arm_arch_setup): Turn into ...
2168 (arm_target::low_arch_setup): ...this.
2169 (the_low_target): Remove the op field.
2170 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2171 declaration.
2172 (bfin_arch_setup): Turn into ...
2173 (bfin_target::low_arch_setup): ...this.
2174 (the_low_target): Remove the op field.
2175 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2176 declaration.
2177 (cris_arch_setup): Turn into ...
2178 (cris_target::low_arch_setup): ...this.
2179 (the_low_target): Remove the op field.
2180 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2181 declaration.
2182 (crisv32_arch_setup): Turn into ...
2183 (crisv32_target::low_arch_setup): ...this.
2184 (the_low_target): Remove the op field.
2185 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2186 declaration.
2187 (ia64_arch_setup): Turn into ...
2188 (ia64_target::low_arch_setup): ...this.
2189 (the_low_target): Remove the op field.
2190 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2191 declaration.
2192 (m32r_arch_setup): Turn into ...
2193 (m32r_target::low_arch_setup): ...this.
2194 (the_low_target): Remove the op field.
2195 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2196 declaration.
2197 (m68k_arch_setup): Turn into ...
2198 (m68k_target::low_arch_setup): ...this.
2199 (the_low_target): Remove the op field.
2200 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2201 declaration.
2202 (mips_arch_setup): Turn into ...
2203 (mips_target::low_arch_setup): ...this.
2204 (the_low_target): Remove the op field.
2205 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2206 declaration.
2207 (nios2_arch_setup): Turn into ...
2208 (nios2_target::low_arch_setup): ...this.
2209 (the_low_target): Remove the op field.
2210 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2211 declaration.
2212 (ppc_arch_setup): Turn into ...
2213 (ppc_target::low_arch_setup): ...this.
2214 (the_low_target): Remove the op field.
2215 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2216 declaration.
2217 (riscv_arch_setup): Turn into ...
2218 (riscv_target::low_arch_setup): ...this.
2219 (the_low_target): Remove the op field.
2220 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2221 declaration.
2222 (s390_arch_setup): Turn into ...
2223 (s390_target::low_arch_setup): ...this.
2224 (the_low_target): Remove the op field.
2225 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2226 declaration.
2227 (sh_arch_setup): Turn into ...
2228 (sh_target::low_arch_setup): ...this.
2229 (the_low_target): Remove the op field.
2230 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2231 declaration.
2232 (sparc_arch_setup): Turn into ...
2233 (sparc_target::low_arch_setup): ...this.
2234 (the_low_target): Remove the op field.
2235 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2236 declaration.
2237 (tic6x_arch_setup): Turn into ...
2238 (tic6x_target::low_arch_setup): ...this.
2239 (the_low_target): Remove the op field.
2240 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2241 declaration.
2242 (tile_arch_setup): Turn into ...
2243 (tile_target::low_arch_setup): ...this.
2244 (the_low_target): Remove the op field.
2245 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2246 declaration.
2247 (xtensa_arch_setup): Turn into ...
2248 (xtensa_target::low_arch_setup): ...this.
2249 (the_low_target): Remove the op field.
2250
ef0478f6
TBA
22512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2252
2253 * linux-low.h (the_linux_target): New extern declaration.
2254 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2255 'the_target'.
2256 (the_linux_target): Remove.
2257 * linux-x86-low.cc (class x86_target): New class.
2258 (the_x86_target): New static object.
2259 (the_linux_target): Define as pointer to the_x86_target.
2260 * linux-aarch64-low.cc (class aarch64_target): New class.
2261 (the_aarch64_target): New static object.
2262 (the_linux_target): Define as pointer to the_aarch64_target.
2263 * linux-arm-low.cc (class arm_target): New class.
2264 (the_arm_target): New static object.
2265 (the_linux_target): Define as pointer to the_arm_target.
2266 * linux-bfin-low.cc (class bfin_target): New class.
2267 (the_bfin_target): New static object.
2268 (the_linux_target): Define as pointer to the_bfin_target.
2269 * linux-cris-low.cc (class cris_target): New class.
2270 (the_cris_target): New static object.
2271 (the_linux_target): Define as pointer to the_cris_target.
2272 * linux-crisv32-low.cc (class crisv32_target): New class.
2273 (the_crisv32_target): New static object.
2274 (the_linux_target): Define as pointer to the_crisv32_target.
2275 * linux-ia64-low.cc (class ia64_target): New class.
2276 (the_ia64_target): New static object.
2277 (the_linux_target): Define as pointer to the_ia64_target.
2278 * linux-m32r-low.cc (class m32r_target): New class.
2279 (the_m32r_target): New static object.
2280 (the_linux_target): Define as pointer to the_m32r_target.
2281 * linux-m68k-low.cc (class m68k_target): New class.
2282 (the_m68k_target): New static object.
2283 (the_linux_target): Define as pointer to the_m68k_target.
2284 * linux-mips-low.cc (class mips_target): New class.
2285 (the_mips_target): New static object.
2286 (the_linux_target): Define as pointer to the_mips_target.
2287 * linux-nios2-low.cc (class nios2_target): New class.
2288 (the_nios2_target): New static object.
2289 (the_linux_target): Define as pointer to the_nios2_target.
2290 * linux-ppc-low.cc (class ppc_target): New class.
2291 (the_ppc_target): New static object.
2292 (the_linux_target): Define as pointer to the_ppc_target.
2293 * linux-riscv-low.cc (class riscv_target): New class.
2294 (the_riscv_target): New static object.
2295 (the_linux_target): Define as pointer to the_riscv_target.
2296 * linux-s390-low.cc (class s390_target): New class.
2297 (the_s390_target): New static object.
2298 (the_linux_target): Define as pointer to the_s390_target.
2299 * linux-sh-low.cc (class sh_target): New class.
2300 (the_sh_target): New static object.
2301 (the_linux_target): Define as pointer to the_sh_target.
2302 * linux-sparc-low.cc (class sparc_target): New class.
2303 (the_sparc_target): New static object.
2304 (the_linux_target): Define as pointer to the_sparc_target.
2305 * linux-tic6x-low.cc (class tic6x_target): New class.
2306 (the_tic6x_target): New static object.
2307 (the_linux_target): Define as pointer to the_tic6x_target.
2308 * linux-tile-low.cc (class tile_target): New class.
2309 (the_tile_target): New static object.
2310 (the_linux_target): Define as pointer to the_tile_target.
2311 * linux-xtensa-low.cc (class xtensa_target): New class.
2312 (the_xtensa_target): New static object.
2313 (the_linux_target): Define as pointer to the_xtensa_target.
2314
d16f3f6c
TBA
23152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2316
2317 Turn some static functions in linux-low.cc into private methods of
2318 linux_process_target.
2319
2320 * linux-low.cc (handle_extended_wait): Turn into ...
2321 (linux_process_target::handle_extended_wait): ...this. Call
2322 'mourn' on 'this' object instead of 'the_target'.
2323 (maybe_move_out_of_jump_pad): Turn into...
2324 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2325 (linux_low_filter_event): Turn into...
2326 (linux_process_target::filter_event): ...this.
2327 (linux_wait_for_event_filtered): Turn into...
2328 (linux_process_target::wait_for_event_filtered): ...this.
2329 (linux_wait_for_event): Turn into...
2330 (linux_process_target::wait_for_event): ...this.
2331 (linux_wait_1): Turn into...
2332 (linux_process_target::wait_1): ...this.
2333 (wait_for_sigstop): Turn into...
2334 (linux_process_target::wait_for_sigstop): ...this.
2335 (move_out_of_jump_pad_callback): Turn into...
2336 (linux_process_target::move_out_of_jump_pad): ...this.
2337 (stop_all_lwps): Turn into...
2338 (linux_process_target::stop_all_lwps): ...this.
2339 (start_step_over): Turn into...
2340 (linux_process_target::start_step_over): ...this.
2341 (complete_ongoing_step_over): Turn into...
2342 (linux_process_target::complete_ongoing_step_over): ...this.
2343 (proceed_all_lwps): Turn into...
2344 (linux_process_target::proceed_all_lwps): ...this.
2345 (unstop_all_lwps): Turn into...
2346 (linux_process_target::unstop_all_lwps): ...this.
2347
2348 * linux-low.h (class linux_process_target)
2349 <handle_extended_wait>
2350 <maybe_move_out_of_jump_pad>
2351 filter_event>
2352 <wait_for_event_filtered>
2353 <wait_for_event>
2354 <wait_1>
2355 <wait_for_sigstop>
2356 <move_out_of_jump_pad>
2357 <stop_all_lwps>
2358 <start_step_over>
2359 <complete_ongoing_step_over>
2360 <proceed_all_lwps>
2361 <unstop_all_lwps>: Declare.
2362
2363 Update the callers below.
2364
2365 * linux-low.cc (linux_process_target::attach): Update.
2366 (linux_process_target::stabilize_threads): Ditto.
2367 (linux_process_target::wait): Ditto.
2368
a5863204
TBA
23692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2370
2371 * linux-low.h (struct linux_target_ops): Update the comment for
2372 'cannot_store_register' to return 0 or 1.
2373 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2374 of 2.
2375
c884cc46
SM
23762020-03-20 Simon Marchi <simon.marchi@efficios.com>
2377
2378 * config.in: Re-generate.
2379 * configure: Re-generate.
2380
5a82b8a1
KR
23812020-03-17 Kamil Rytarowski <n54@gmx.com>
2382
2383 * regcache.cc (find_register_by_number): Update.
2384 * tdesc.cc (init_target_desc): Likewise.
2385 * tdesc.h (target_desc::reg_defs): Likewise.
2386
4635ff97
TT
23872020-03-12 Tom Tromey <tom@tromey.com>
2388
2389 * configure: Rebuild.
2390 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2391 (WIN32APILIBS): New subst.
2392 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2393 gdbsupport files.
2394 (gdbsupport/%.o): Remove target.
2395 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2396 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2397 (WIN32APILIBS): New variable.
2398 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2399 (gdbreplay$(EXEEXT)): Likewise.
2400
9a665d62
TT
24012020-03-12 Tom Tromey <tom@tromey.com>
2402
2403 * config.in, configure: Rebuild.
2404 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2405 * acinclude.m4: Include gettext-sister.m4.
2406 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2407 variables.
2408 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2409 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2410
272cd5a3
SM
24112020-03-12 Simon Marchi <simon.marchi@efficios.com>
2412
2413 * acinclude.m4: Update path to selftest.m4.
2414
db6878ac
SM
24152020-03-12 Simon Marchi <simon.marchi@efficios.com>
2416
2417 * configure.ac: Don't source bfd/development.sh, move
2418 GDB_AC_COMMON higher.
2419 * configure: Re-generate.
2420
4d696a5c
SM
24212020-03-12 Simon Marchi <simon.marchi@efficios.com>
2422
2423 * configure: Re-generate.
2424
a0761e34
SM
24252020-03-11 Simon Marchi <simon.marchi@efficios.com>
2426
2427 * configure: Re-generate.
2428
20ea4a60
AB
24292020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 * .dir-locals.el: New file.
2432
842806cb
TBA
24332020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2434
2435 * .gitattributes: New file.
2436
442131c1
AB
24372020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2438
2439 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2440 reply into an S reply.
2441 * server.cc (disable_packet_T): New global.
2442 (captured_main): Set new global when appropriate.
2443 * server.h (disable_packet_T): Declare.
2444
dda42c0b
TT
24452020-02-21 Tom Tromey <tom@tromey.com>
2446
2447 * Makefile.in (mostlyclean): New target.
2448
52405d85
TBA
24492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2450
2451 * target.h (struct process_stratum_target): Remove.
2452 (class process_target): Rename to ...
2453 (class process_stratum_target): ... this.
2454 * linux-low.h (class linux_process_target): Derive from
2455 'process_stratum_target'.
2456 * linux-low.cc (linux_target_ops): Remove.
2457 (initialize_low): Set the_target to the singleton instance of
2458 linux_process_target.
2459 * lynx-low.h (class lynx_process_target): Derive from
2460 'process_stratum_target'.
2461 * lynx-low.cc (lynx_target_ops): Remove.
2462 (initialize_low): Set the_target to the singleton instance of
2463 lynx_process_target.
2464 * nto-low.h (class nto_process_target): Derive from
2465 'process_stratum_target'.
2466 * nto-low.cc (nto_target_ops): Remove.
2467 (initialize_low): Set the_target to the singleton instance of
2468 nto_process_target.
2469 * win32-low.h (class win32_process_target): Derive from
2470 'process_stratum_target'.
2471 * win32-low.cc (win32_target_ops): Remove.
2472 (initialize_low): Set the_target to the singleton instance of
2473 win32_process_target.
2474
2475 Replace 'the_target->pt' with 'the_target' in the uses below.
2476
2477 * hostio.cc (hostio_error)
2478 (handle_setfs)
2479 (handle_open)
2480 (handle_unlink)
2481 (handle_readlink)
2482 * linux-aarch32-low.cc (arm_breakpoint_at)
2483 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2484 * linux-arm-low.cc (arm_sigreturn_next_pc)
2485 (arm_get_hwcap)
2486 (arm_get_syscall_trapinfo)
2487 * linux-cris-low.cc (cris_breakpoint_at)
2488 * linux-crisv32-low.cc (cris_breakpoint_at)
2489 * linux-low.cc (handle_extended_wait)
2490 (linux_wait_1)
2491 (linux_read_memory)
2492 (linux_process_target::breakpoint_kind_from_pc)
2493 (linux_get_auxv)
2494 * linux-m32r-low.cc (m32r_breakpoint_at)
2495 * linux-mips-low.cc (mips_breakpoint_at)
2496 * linux-nios2-low.cc (nios2_breakpoint_at)
2497 * linux-ppc-low.cc (ppc_breakpoint_at)
2498 * linux-s390-low.cc (s390_get_hwcap)
2499 * linux-sh-low.cc (sh_breakpoint_at)
2500 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2501 (sparc_store_gregset_from_stack)
2502 (sparc_breakpoint_at)
2503 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2504 * linux-tile-low.cc (tile_breakpoint_at)
2505 * linux-x86-low.cc (x86_breakpoint_at)
2506 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2507 * mem-break.cc (bp_size)
2508 (bp_opcode)
2509 (insert_memory_breakpoint)
2510 (set_raw_breakpoint_at)
2511 (delete_raw_breakpoint)
2512 (z_type_supported)
2513 (uninsert_raw_breakpoint)
2514 (reinsert_raw_breakpoint)
2515 (validate_inserted_breakpoint)
2516 * regcache.cc (regcache_read_pc)
2517 (regcache_write_pc)
2518 * remote-utils.cc (putpkt_binary_1)
2519 (input_interrupt)
2520 (getpkt)
2521 (prepare_resume_reply)
2522 * server.cc (handle_general_set)
2523 (handle_detach)
2524 (handle_qxfer_auxv)
2525 (handle_qxfer_exec_file)
2526 (handle_qxfer_libraries_svr4)
2527 (handle_qxfer_osdata)
2528 (handle_qxfer_siginfo)
2529 (handle_qxfer_fdpic)
2530 (handle_query)
2531 (resume)
2532 (handle_v_requests)
2533 (queue_stop_reply_callback)
2534 (captured_main)
2535 * target.cc (prepare_to_access_memory)
2536 (done_accessing_memory)
2537 (read_inferior_memory)
2538 (target_write_memory)
2539 (target_stop_and_wait)
2540 (target_wait)
2541 (target_mourn_inferior)
2542 (target_continue_no_signal)
2543 (target_continue)
2544 (target_supports_multi_process)
2545 (kill_inferior)
2546 * target.h
2547 (target_create_inferior)
2548 (target_post_create_inferior)
2549 (myattach)
2550 (target_supports_fork_events)
2551 (target_supports_vfork_events)
2552 (target_supports_exec_events)
2553 (target_handle_new_gdb_connection)
2554 (detach_inferior)
2555 (mythread_alive)
2556 (fetch_inferior_registers)
2557 (store_inferior_registers)
2558 (join_inferior)
2559 (target_supports_non_stop)
2560 (target_async)
2561 (target_process_qsupported)
2562 (target_supports_catch_syscall)
2563 (target_get_ipa_tdesc_idx)
2564 (target_supports_tracepoints)
2565 (target_supports_fast_tracepoints)
2566 (target_get_min_fast_tracepoint_insn_len)
2567 (target_thread_stopped)
2568 (target_pause_all)
2569 (target_unpause_all)
2570 (target_stabilize_threads)
2571 (target_install_fast_tracepoint_jump_pad)
2572 (target_emit_ops)
2573 (target_supports_disable_randomization)
2574 (target_supports_agent)
2575 (target_enable_btrace)
2576 (target_disable_btrace)
2577 (target_read_btrace)
2578 (target_read_btrace_conf)
2579 (target_supports_range_stepping)
2580 (target_supports_stopped_by_sw_breakpoint)
2581 (target_stopped_by_sw_breakpoint)
2582 (target_supports_stopped_by_hw_breakpoint)
2583 (target_supports_hardware_single_step)
2584 (target_stopped_by_hw_breakpoint)
2585 (target_breakpoint_kind_from_pc)
2586 (target_breakpoint_kind_from_current_state)
2587 (target_supports_software_single_step)
2588 (target_core_of_thread)
2589 (target_thread_name)
2590 (target_thread_handle)
2591 * win32-low.cc (do_initial_child_stuff)
2592
2593 Rename target op default definitions listed below.
2594
2595 * target.cc (process_target::post_create_inferior): Rename as ...
2596 (process_stratum_target::post_create_inferior): ... this.
2597 (process_target::prepare_to_access_memory): Rename as ...
2598 (process_stratum_target::prepare_to_access_memory): ... this.
2599 (process_target::done_accessing_memory): Rename as ...
2600 (process_stratum_target::done_accessing_memory): ... this.
2601 (process_target::look_up_symbols): Rename as ...
2602 (process_stratum_target::look_up_symbols): ... this.
2603 (process_target::supports_read_auxv): Rename as ...
2604 (process_stratum_target::supports_read_auxv): ... this.
2605 (process_target::read_auxv): Rename as ...
2606 (process_stratum_target::read_auxv): ... this.
2607 (process_target::supports_z_point_type): Rename as ...
2608 (process_stratum_target::supports_z_point_type): ... this.
2609 (process_target::insert_point): Rename as ...
2610 (process_stratum_target::insert_point): ... this.
2611 (process_target::remove_point): Rename as ...
2612 (process_stratum_target::remove_point): ... this.
2613 (process_target::stopped_by_sw_breakpoint): Rename as ...
2614 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2615 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2616 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2617 (process_target::stopped_by_hw_breakpoint): Rename as ...
2618 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2619 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2620 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2621 (process_target::supports_hardware_single_step): Rename as ...
2622 (process_stratum_target::supports_hardware_single_step): ... this.
2623 (process_target::stopped_by_watchpoint): Rename as ...
2624 (process_stratum_target::stopped_by_watchpoint): ... this.
2625 (process_target::stopped_data_address): Rename as ...
2626 (process_stratum_target::stopped_data_address): ... this.
2627 (process_target::supports_read_offsets): Rename as ...
2628 (process_stratum_target::supports_read_offsets): ... this.
2629 (process_target::read_offsets): Rename as ...
2630 (process_stratum_target::read_offsets): ... this.
2631 (process_target::supports_get_tls_address): Rename as ...
2632 (process_stratum_target::supports_get_tls_address): ... this.
2633 (process_target::get_tls_address): Rename as ...
2634 (process_stratum_target::get_tls_address): ... this.
2635 (process_target::hostio_last_error): Rename as ...
2636 (process_stratum_target::hostio_last_error): ... this.
2637 (process_target::supports_qxfer_osdata): Rename as ...
2638 (process_stratum_target::supports_qxfer_osdata): ... this.
2639 (process_target::qxfer_osdata): Rename as ...
2640 (process_stratum_target::qxfer_osdata): ... this.
2641 (process_target::supports_qxfer_siginfo): Rename as ...
2642 (process_stratum_target::supports_qxfer_siginfo): ... this.
2643 (process_target::qxfer_siginfo): Rename as ...
2644 (process_stratum_target::qxfer_siginfo): ... this.
2645 (process_target::supports_non_stop): Rename as ...
2646 (process_stratum_target::supports_non_stop): ... this.
2647 (process_target::async): Rename as ...
2648 (process_stratum_target::async): ... this.
2649 (process_target::start_non_stop): Rename as ...
2650 (process_stratum_target::start_non_stop): ... this.
2651 (process_target::supports_multi_process): Rename as ...
2652 (process_stratum_target::supports_multi_process): ... this.
2653 (process_target::supports_fork_events): Rename as ...
2654 (process_stratum_target::supports_fork_events): ... this.
2655 (process_target::supports_vfork_events): Rename as ...
2656 (process_stratum_target::supports_vfork_events): ... this.
2657 (process_target::supports_exec_events): Rename as ...
2658 (process_stratum_target::supports_exec_events): ... this.
2659 (process_target::handle_new_gdb_connection): Rename as ...
2660 (process_stratum_target::handle_new_gdb_connection): ... this.
2661 (process_target::handle_monitor_command): Rename as ...
2662 (process_stratum_target::handle_monitor_command): ... this.
2663 (process_target::core_of_thread): Rename as ...
2664 (process_stratum_target::core_of_thread): ... this.
2665 (process_target::supports_read_loadmap): Rename as ...
2666 (process_stratum_target::supports_read_loadmap): ... this.
2667 (process_target::read_loadmap): Rename as ...
2668 (process_stratum_target::read_loadmap): ... this.
2669 (process_target::process_qsupported): Rename as ...
2670 (process_stratum_target::process_qsupported): ... this.
2671 (process_target::supports_tracepoints): Rename as ...
2672 (process_stratum_target::supports_tracepoints): ... this.
2673 (process_target::read_pc): Rename as ...
2674 (process_stratum_target::read_pc): ... this.
2675 (process_target::write_pc): Rename as ...
2676 (process_stratum_target::write_pc): ... this.
2677 (process_target::supports_thread_stopped): Rename as ...
2678 (process_stratum_target::supports_thread_stopped): ... this.
2679 (process_target::thread_stopped): Rename as ...
2680 (process_stratum_target::thread_stopped): ... this.
2681 (process_target::supports_get_tib_address): Rename as ...
2682 (process_stratum_target::supports_get_tib_address): ... this.
2683 (process_target::get_tib_address): Rename as ...
2684 (process_stratum_target::get_tib_address): ... this.
2685 (process_target::pause_all): Rename as ...
2686 (process_stratum_target::pause_all): ... this.
2687 (process_target::unpause_all): Rename as ...
2688 (process_stratum_target::unpause_all): ... this.
2689 (process_target::stabilize_threads): Rename as ...
2690 (process_stratum_target::stabilize_threads): ... this.
2691 (process_target::supports_fast_tracepoints): Rename as ...
2692 (process_stratum_target::supports_fast_tracepoints): ... this.
2693 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2694 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2695 (process_target::emit_ops): Rename as ...
2696 (process_stratum_target::emit_ops): ... this.
2697 (process_target::supports_disable_randomization): Rename as ...
2698 (process_stratum_target::supports_disable_randomization): ... this.
2699 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2700 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2701 (process_target::qxfer_libraries_svr4): Rename as ...
2702 (process_stratum_target::qxfer_libraries_svr4): ... this.
2703 (process_target::supports_agent): Rename as ...
2704 (process_stratum_target::supports_agent): ... this.
2705 (process_target::enable_btrace): Rename as ...
2706 (process_stratum_target::enable_btrace): ... this.
2707 (process_target::disable_btrace): Rename as ...
2708 (process_stratum_target::disable_btrace): ... this.
2709 (process_target::read_btrace): Rename as ...
2710 (process_stratum_target::read_btrace): ... this.
2711 (process_target::read_btrace_conf): Rename as ...
2712 (process_stratum_target::read_btrace_conf): ... this.
2713 (process_target::supports_range_stepping): Rename as ...
2714 (process_stratum_target::supports_range_stepping): ... this.
2715 (process_target::supports_pid_to_exec_file): Rename as ...
2716 (process_stratum_target::supports_pid_to_exec_file): ... this.
2717 (process_target::pid_to_exec_file): Rename as ...
2718 (process_stratum_target::pid_to_exec_file): ... this.
2719 (process_target::supports_multifs): Rename as ...
2720 (process_stratum_target::supports_multifs): ... this.
2721 (process_target::multifs_open): Rename as ...
2722 (process_stratum_target::multifs_open): ... this.
2723 (process_target::multifs_unlink): Rename as ...
2724 (process_stratum_target::multifs_unlink): ... this.
2725 (process_target::multifs_readlink): Rename as ...
2726 (process_stratum_target::multifs_readlink): ... this.
2727 (process_target::breakpoint_kind_from_pc): Rename as ...
2728 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2729 (process_target::breakpoint_kind_from_current_state): Rename as ...
2730 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2731 (process_target::thread_name): Rename as ...
2732 (process_stratum_target::thread_name): ... this.
2733 (process_target::thread_handle): Rename as ...
2734 (process_stratum_target::thread_handle): ... this.
2735 (process_target::supports_software_single_step): Rename as ...
2736 (process_stratum_target::supports_software_single_step): ... this.
2737 (process_target::supports_catch_syscall): Rename as ...
2738 (process_stratum_target::supports_catch_syscall): ... this.
2739 (process_target::get_ipa_tdesc_idx): Rename as ...
2740 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2741
478f9adf
PA
27422020-02-20 Pedro Alves <palves@redhat.com>
2743
2744 * target.cc (set_target_ops): Simply copy the given target pointer
2745 instead of creating a copy of the pointed object.
2746
d633e831
TBA
27472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2748
2749 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2750 of process_target.
2751
2752 * target.h (struct process_stratum_target): Remove the target op.
2753 (class process_target): Add the target op.
2754 (target_get_ipa_tdesc_idx): Update the macro.
2755 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2756
2757 Update the derived classes and callers below.
2758
2759 * linux-low.cc (linux_target_ops): Update.
2760 (linux_get_ipa_tdesc_idx): Turn into ...
2761 (linux_process_target::get_ipa_tdesc_idx): ... this.
2762 * linux-low.h (class linux_process_target): Update.
2763 * lynx-low.cc (lynx_target_ops): Update.
2764 * nto-low.cc (nto_target_ops): Update.
2765 * win32-low.cc (win32_target_ops): Update.
2766
bc8d3ae4
TBA
27672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2768
2769 Turn process_stratum_target's supports_catch_syscall op into a
2770 method of process_target.
2771
2772 * target.h (struct process_stratum_target): Remove the target op.
2773 (class process_target): Add the target op.
2774 (target_supports_catch_syscall): Update the macro.
2775 * target.cc (process_target::supports_catch_syscall): Define.
2776
2777 Update the derived classes and callers below.
2778
2779 * linux-low.cc (linux_target_ops): Update.
2780 (linux_supports_catch_syscall): Turn into ...
2781 (linux_process_target::supports_catch_syscall): ... 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
5303a34f
TBA
27872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2788
2789 Turn process_stratum_target's supports_software_single_step op
2790 into a method of 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_software_single_step): Update the macro.
2795 * target.cc (process_target::supports_software_single_step): Define.
2796
2797 Update the derived classes and callers below.
2798
2799 * linux-low.cc (linux_target_ops): Update.
2800 (linux_supports_software_single_step): Turn into ...
2801 (linux_process_target::supports_software_single_step): ... 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
7f63b89b
TBA
28072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2808
2809 Turn process_stratum_target's thread_name and thread_handle ops
2810 into methods of process_target.
2811
2812 * target.h (struct process_stratum_target): Remove the target ops.
2813 (class process_target): Add the target ops.
2814 (target_thread_name): Update the macro.
2815 (target_thread_handle): Update the macro.
2816 * target.cc (process_target::thread_name): Define.
2817 (process_target::thread_handle): Define.
2818
2819 Update the derived classes and callers below.
2820
2821 * linux-low.cc (linux_target_ops): Update.
2822 (linux_process_target::thread_name): Define.
2823 (linux_process_target::thread_handle): Define.
2824 * linux-low.h (class linux_process_target): Update.
2825 * lynx-low.cc (lynx_target_ops): Update.
2826 * nto-low.cc (nto_target_ops): Update.
2827 * win32-low.cc (win32_target_ops): Update.
2828
d367006f
TBA
28292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2830
2831 Turn process_stratum_target's breakpoint_kind_from_pc,
2832 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2833 ops into methods of process_target.
2834
2835 * target.h (struct process_stratum_target): Remove the target op.
2836 (class process_target): Add the target op.
2837 (target_breakpoint_kind_from_pc): Update the macro.
2838 (target_breakpoint_kind_from_current_state): Update the macro.
2839 (default_breakpoint_kind_from_pc): Remove declaration.
2840 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2841 (process_target::breakpoint_kind_from_pc): ... this.
2842 (process_target::breakpoint_kind_from_current_state): Define.
2843
2844 Update the derived classes and callers below.
2845
2846 * mem-break.cc (bp_size): Update.
2847 (bp_opcode): Update.
2848 * linux-low.cc (linux_target_ops): Update.
2849 (linux_wait_1): Update.
2850 (linux_breakpoint_kind_from_pc): Turn into ...
2851 (linux_process_target::breakpoint_kind_from_pc): ... this.
2852 (linux_sw_breakpoint_from_kind): Turn into ...
2853 (linux_process_target::sw_breakpoint_from_kind): ... this.
2854 (linux_breakpoint_kind_from_current_state): Turn into ...
2855 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2856 * linux-low.h (class linux_process_target): Update.
2857 * lynx-low.cc (lynx_target_ops): Update.
2858 (lynx_process_target::sw_breakpoint_from_kind): Define.
2859 * lynx-low.h (class lynx_process_target): Update.
2860 * nto-low.cc (nto_target_ops): Update.
2861 (nto_sw_breakpoint_from_kind): Turn into ...
2862 (nto_process_target::sw_breakpoint_from_kind): ... this.
2863 * nto-low.h (class nto_process_target): Update.
2864 * win32-low.cc (win32_target_ops): Update.
2865 (win32_sw_breakpoint_from_kind): Turn into ...
2866 (win32_process_target::sw_breakpoint_from_kind): ... this.
2867 * win32-low.h (class win32_process_target): Update.
2868
c9b7b804
TBA
28692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2870
2871 Turn process_stratum_target's multifs_open, multifs_readlink,
2872 multifs_unlink ops into methods of process_target.
2873
2874 * target.h (struct process_stratum_target): Remove the target ops.
2875 (class process_target): Add the target ops. Also add
2876 'supports_multifs'.
2877 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2878 "sys/stat.h".
2879 (process_target::supports_multifs): Define.
2880 (process_target::multifs_open): Define.
2881 (process_target::multifs_readlink): Define.
2882 (process_target::multifs_unlink): Define.
2883
2884 Update the derived classes and callers below.
2885
2886 * hostio.cc (handle_setfs): Update.
2887 (handle_open): Update.
2888 (handle_unlink): Update.
2889 (handle_readlink): Update.
2890 * linux-low.cc (linux_target_ops): Update.
2891 (linux_process_target::supports_multifs): Define.
2892 (linux_process_target::multifs_open): Define.
2893 (linux_process_target::multifs_readlink): Define.
2894 (linux_process_target::multifs_unlink): Define.
2895 * linux-low.h (class linux_process_target): Update.
2896 * lynx-low.cc (lynx_target_ops): Update.
2897 * nto-low.cc (nto_target_ops): Update.
2898 * win32-low.cc (win32_target_ops): Update.
2899
8247b823
TBA
29002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2901
2902 Turn process_stratum_target's pid_to_exec_file op into a method
2903 of process_target.
2904
2905 * target.h (struct process_stratum_target): Remove the target op.
2906 (class process_target): Add the target op. Also add
2907 'supports_pid_to_exec_file'.
2908 * target.cc (process_target::pid_to_exec_file): Define.
2909 (process_target::supports_pid_to_exec_file): Define.
2910
2911 Update the derived classes and callers below.
2912
2913 * server.cc (handle_qxfer_exec_file): Update.
2914 (handle_query): Update.
2915 * linux-low.cc (linux_target_ops): Update.
2916 (linux_process_target::supports_pid_to_exec_file): Define.
2917 (linux_process_target::pid_to_exec_file): Define.
2918 * linux-low.h (class linux_process_target): Update.
2919 * lynx-low.cc (lynx_target_ops): Update.
2920 * nto-low.cc (nto_target_ops): Update.
2921 * win32-low.cc (win32_target_ops): Update.
2922
2526e0cd
TBA
29232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2924
2925 Turn process_stratum_target's supports_range_stepping op into a
2926 method of process_target.
2927
2928 * target.h (struct process_stratum_target): Remove the target op.
2929 (class process_target): Add the target op.
2930 (target_supports_range_stepping): Update the macro.
2931 * target.cc (process_target::supports_range_stepping): Define.
2932
2933 Update the derived classes and callers below.
2934
2935 * linux-low.cc (linux_target_ops): Update.
2936 (linux_supports_range_stepping): Turn into ...
2937 (linux_process_target::supports_range_stepping): ... this.
2938 * linux-low.h (class linux_process_target): Update.
2939 * lynx-low.cc (lynx_target_ops): Update.
2940 * nto-low.cc (nto_target_ops): Update.
2941 * win32-low.cc (win32_target_ops): Update.
2942
79597bdd
TBA
29432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2944
2945 Turn process_stratum_target's btrace-related ops (enable_btrace,
2946 disable_btrace, read_btrace, read_btrace_conf) into methods of
2947 process_target.
2948
2949 * target.h (struct process_stratum_target): Remove the target ops.
2950 (class process_target): Add the target ops.
2951 (target_enable_btrace): Update.
2952 (target_disable_btrace): Update.
2953 (target_read_btrace): Update.
2954 (target_read_btrace_conf): Update.
2955 * target.cc (process_target::enable_btrace): Define.
2956 (process_target::disable_btrace): Define.
2957 (process_target::read_btrace): Define.
2958 (process_target::read_btrace_conf): Define.
2959
2960 Update the derived classes and callers below.
2961
2962 * linux-low.cc (linux_target_ops): Update.
2963 (linux_process_target:enable_btrace): Define as a wrapper around
2964 linux_enable_btrace.
2965 (linux_low_disable_btrace): Turn into ...
2966 (linux_process_target::disable_btrace): ... this.
2967 (linux_low_read_btrace): Turn into ...
2968 (linux_process_target::read_btrace): ... this.
2969 (linux_low_btrace_conf): Turn into ...
2970 (linux_process_target::read_btrace_conf): ... this.
2971 * linux-low.h (class linux_process_target): Update.
2972 * lynx-low.cc (lynx_target_ops): Update.
2973 * nto-low.cc (nto_target_ops): Update.
2974 * win32-low.cc (win32_target_ops): Update.
2975
c0245cb9
TBA
29762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2977
2978 Turn process_stratum_target's supports_agent op into a method of
2979 process_target.
2980
2981 * target.h (struct process_stratum_target): Remove the target op.
2982 (class process_target): Add the target op.
2983 (target_supports_agent): Update the macro.
2984 * target.cc (process_target::supports_agent): Define.
2985
2986 Update the derived classes and callers below.
2987
2988 * linux-low.cc (linux_target_ops): Update.
2989 (linux_supports_agent): Turn into ...
2990 (linux_process_target::supports_agent): ... this.
2991 * linux-low.h (class linux_process_target): Update.
2992 * lynx-low.cc (lynx_target_ops): Update.
2993 * nto-low.cc (nto_target_ops): Update.
2994 * win32-low.cc (win32_target_ops): Update.
2995
974387bb
TBA
29962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2997
2998 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2999 method of process_target.
3000
3001 * target.h (struct process_stratum_target): Remove the target op.
3002 (class process_target): Add the target op. Also add
3003 'supports_qxfer_libraries_svr4'.
3004 * target.cc (process_target::qxfer_libraries_svr4): Define.
3005 (process_target::supports_qxfer_libraries_svr4): Define.
3006
3007 Update the derived classes and callers below.
3008
3009 * server.cc (handle_qxfer_libraries_svr4): Update.
3010 (handle_query): Update.
3011 * linux-low.cc (linux_target_ops): Update.
3012 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3013 (linux_qxfer_libraries_svr4): Turn into ...
3014 (linux_process_target::qxfer_libraries_svr4): ... this.
3015 * linux-low.h (class linux_process_target): Update.
3016 * lynx-low.cc (lynx_target_ops): Update.
3017 * nto-low.cc (nto_target_ops): Update.
3018 * win32-low.cc (win32_target_ops): Update.
3019
c756403b
TBA
30202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3021
3022 Turn process_stratum_target's supports_disable_randomization op
3023 into a method of process_target.
3024
3025 * target.h (struct process_stratum_target): Remove the target op.
3026 (class process_target): Add the target op.
3027 (target_supports_disable_randomization): Update the macro.
3028 * target.cc (process_target::supports_disable_randomization): Define.
3029
3030 Update the derived classes and callers below.
3031
3032 * linux-low.cc (linux_target_ops): Update.
3033 (linux_supports_disable_randomization): Turn into ...
3034 (linux_process_target::supports_disable_randomization): ... this.
3035 * linux-low.h (class linux_process_target): Update.
3036 * lynx-low.cc (lynx_target_ops): Update.
3037 * nto-low.cc (nto_target_ops): Update.
3038 * win32-low.cc (win32_target_ops): Update.
3039
345dafad
TBA
30402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3041
3042 Turn process_stratum_target's emit_ops op into a method of
3043 process_target.
3044
3045 * target.h (struct process_stratum_target): Remove the target op.
3046 (class process_target): Add the target op.
3047 (target_emit_ops): Update the macro.
3048 * target.cc (process_target::emit_ops): Define.
3049
3050 Update the derived classes and callers below.
3051
3052 * linux-low.cc (linux_target_ops): Update.
3053 (linux_emit_ops): Turn into ...
3054 (linux_process_target::emit_ops): ... this.
3055 * linux-low.h (class linux_process_target): Update.
3056 * lynx-low.cc (lynx_target_ops): Update.
3057 * nto-low.cc (nto_target_ops): Update.
3058 * win32-low.cc (win32_target_ops): Update.
3059
c23c9391
TBA
30602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3061
3062 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3063 and get_min_fast_tracepoint_insn_len ops into methods of
3064 process_target.
3065
3066 * target.h (struct process_stratum_target): Remove the target ops.
3067 (class process_target): Add the target ops. Also add
3068 'supports_fast_tracepoints'.
3069 (target_supports_fast_tracepoints): Update the macro.
3070 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3071 (install_fast_tracepoint_jump_pad): Update and rename the macro
3072 to ...
3073 (target_install_fast_tracepoint_jump_pad): ... this.
3074 * target.cc (process_target::supports_fast_tracepoints): Define.
3075 (process_target::install_fast_tracepoint_jump_pad): Define.
3076 (process_target::get_min_fast_tracepoint_insn_len): Define.
3077
3078 Update the derived classes and callers below.
3079
3080 * tracepoint.cc (install_fast_tracepoint): Update.
3081 * linux-low.cc (linux_target_ops): Update.
3082 (linux_process_target::supports_fast_tracepoints): Define.
3083 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3084 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3085 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3086 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3087 * linux-low.h (class linux_process_target): Update.
3088 * lynx-low.cc (lynx_target_ops): Update.
3089 * nto-low.cc (nto_target_ops): Update.
3090 * win32-low.cc (win32_target_ops): Update.
3091
5c9eb2f2
TBA
30922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3093
3094 Turn process_stratum_target's stabilize_threads op into a
3095 method of process_target.
3096
3097 * target.h (struct process_stratum_target): Remove the target op.
3098 (class process_target): Add the target op.
3099 (target_stabilize_threads): Update the macro.
3100 * target.cc (process_target::stabilize_threads): Define.
3101
3102 Update the derived classes and callers below.
3103
3104 * server.cc (handle_status): Update.
3105 * tracepoint.cc (cmd_qtdp): Update.
3106 (cmd_qtstart): Update.
3107 * linux-low.cc (linux_target_ops): Update.
3108 (linux_stabilize_threads): Turn into ...
3109 (linux_process_target::stabilize_threads): ... this.
3110 (linux_wait_1): Update.
3111 * linux-low.h (class linux_process_target): Update.
3112 * lynx-low.cc (lynx_target_ops): Update.
3113 * nto-low.cc (nto_target_ops): Update.
3114 * win32-low.cc (win32_target_ops): Update.
3115
29e8dc09
TBA
31162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3117
3118 Turn process_stratum_target's pause_all and unpause_all ops
3119 into methods of process_target.
3120
3121 * target.h (struct process_stratum_target): Remove the target ops.
3122 (class process_target): Add the target ops.
3123 (pause_all): Update the macro and rename to...
3124 (target_pause_all): ... this.
3125 (unpause_all): Update the macro and rename to...
3126 (target_unpause_all): ... this.
3127 * target.cc (process_target::pause_all): Define.
3128 (process_target::unpause_all): Define.
3129
3130 Update the derived classes and callers below.
3131
3132 * server.cc (handle_status): Update.
3133 * tracepoint.cc (clear_installed_tracepoints): Update.
3134 (cmd_qtdp): Update.
3135 (cmd_qtstart): Update.
3136 (stop_tracing): Update.
3137 (cmd_qtstatus): Update.
3138 (upload_fast_traceframes): Update.
3139 (run_inferior_command): Update.
3140 * linux-low.cc (linux_target_ops): Update.
3141 (linux_pause_all): Turn into ...
3142 (linux_process_target::pause_all): ... this.
3143 (linux_unpause_all): Turn into ...
3144 (linux_process_target::unpause_all): ... this.
3145 (linux_process_target::prepare_to_access_memory): Update.
3146 (linux_process_target::done_accessing_memory): Update.
3147 * linux-low.h (class linux_process_target): Update.
3148 * lynx-low.cc (lynx_target_ops): Update.
3149 * nto-low.cc (nto_target_ops): Update.
3150 * win32-low.cc (win32_target_ops): Update.
3151
4e2e869c
TBA
31522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3153
3154 Turn process_stratum_target's get_tib_address op into a method of
3155 process_target.
3156
3157 * target.h (struct process_stratum_target): Remove the target op.
3158 (class process_target): Add the target op. Also add
3159 'supports_get_tib_address'.
3160 * target.cc (process_target::get_tib_address): Define.
3161 (process_target::supports_get_tib_address): Define.
3162
3163 Update the derived classes and callers below.
3164
3165 * server.cc (handle_query): Update.
3166 * linux-low.cc (win32_target_ops): Update.
3167 * lynx-low.cc (lynx_target_ops): Update.
3168 * nto-low.cc (nto_target_ops): Update.
3169 * win32-low.cc (win32_target_ops): Update.
3170 (win32_process_target::supports_get_tib_address): Define.
3171 (win32_get_tib_address): Turn into ...
3172 (win32_process_target::get_tib_address): ... this.
3173 * win32-low.h (class win32_process_target): Update.
3174
68119632
TBA
31752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3176
3177 Turn process_stratum_target's thread_stopped op into a method of
3178 process_target.
3179
3180 * target.h (struct process_stratum_target): Remove the target op.
3181 (class process_target): Add the target op. Also add
3182 'supports_thread_stopped'.
3183 (target_thread_stopped): Update the macro.
3184 * target.cc (process_target::thread_stopped): Define.
3185 (process_target::supports_thread_stopped): Define.
3186 (prepare_to_access_memory): Update.
3187
3188 Update the derived classes and callers below.
3189
3190 * server.cc (queue_stop_reply_callback): Update.
3191 * linux-low.cc (linux_target_ops): Update.
3192 (linux_process_target::supports_thread_stopped): Define.
3193 (linux_thread_stopped): Turn into ...
3194 (linux_process_target::thread_stopped): ... this.
3195 * linux-low.h (class linux_process_target): Update.
3196 * lynx-low.cc (lynx_target_ops): Update.
3197 * nto-low.cc (nto_target_ops): Update.
3198 * win32-low.cc (win32_target_ops): Update.
3199
770d8f6a
TBA
32002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3201
3202 Turn process_stratum_target's read_pc and write_pc ops into
3203 methods of process_target.
3204
3205 * target.h (struct process_stratum_target): Remove the target ops.
3206 (class process_target): Add the target ops.
3207 * target.cc (process_target::read_pc): Define.
3208 (process_target::write_pc): Define.
3209
3210 Update the derived classes and callers below.
3211
3212 * regcache.cc (regcache_read_pc): Update.
3213 (regcache_write_pc): Update.
3214 * linux-low.cc (linux_target_ops): Update.
3215 (linux_read_pc): Turn into ...
3216 (linux_process_target::read_pc): ... this.
3217 (linux_write_pc): Turn into ...
3218 (linux_process_target::write_pc): ... this.
3219 * linux-low.h (class linux_process_target): Update.
3220 * lynx-low.cc (lynx_target_ops): Update.
3221 * nto-low.cc (nto_target_ops): Update.
3222 * win32-low.cc (win32_target_ops): Update.
3223
290732bf
TBA
32242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3225
3226 Turn process_stratum_target's supports_tracepoints op into a
3227 method of process_target.
3228
3229 * target.h (struct process_stratum_target): Remove the target op.
3230 (class process_target): Add the target op.
3231 (target_supports_tracepoints): Update the macro.
3232 * target.cc (process_target::supports_tracepoints): Define.
3233
3234 Update the derived classes and callers below.
3235
3236 * linux-low.cc (linux_target_ops): Update.
3237 (linux_supports_tracepoints): Turn into ...
3238 (linux_process_target::supports_tracepoints): ... this.
3239 * linux-low.h (class linux_process_target): Update.
3240 * lynx-low.cc (lynx_target_ops): Update.
3241 * nto-low.cc (nto_target_ops): Update.
3242 * win32-low.cc (win32_target_ops): Update.
3243
0df28b1b
TBA
32442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3245
3246 Turn process_stratum_target's process_qsupported op into a method
3247 of process_target.
3248
3249 * target.h (struct process_stratum_target): Remove the target op.
3250 (class process_target): Add the target op.
3251 (target_process_qsupported): Update the macro.
3252 * target.cc (process_target::process_qsupported): Define.
3253
3254 Update the derived classes and callers below.
3255
3256 * linux-low.cc (linux_target_ops): Update.
3257 (linux_process_qsupported): Turn into ...
3258 (linux_process_target::process_qsupported): ... 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
9da41fda
TBA
32642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3265
3266 Turn process_stratum_target's read_loadmap 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_read_loadmap'.
3272 * target.cc (process_target::read_loadmap): Define.
3273 (process_target::supports_read_loadmap): Define.
3274
3275 Update the derived classes and callers below.
3276
3277 * server.cc (handle_qxfer_fdpic): Update.
3278 (handle_query): Update.
3279 * linux-low.cc (linux_target_ops): Update.
3280 (linux_process_target::supports_read_loadmap): Define.
3281 (linux_read_loadmap): Turn into ...
3282 (linux_process_target::read_loadmap): ... 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
95a45fc1
TBA
32882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3289
3290 Turn process_stratum_target's core_of_thread op into a method of
3291 process_target.
3292
3293 * target.h (struct process_stratum_target): Remove the target op.
3294 (class process_target): Add the target op.
3295 (target_core_of_thread): Update the macro.
3296 * target.cc (process_target::core_of_thread): Define.
3297
3298 Update the derived classes and callers below.
3299
3300 * linux-low.cc (linux_target_ops): Update.
3301 (linux_process_target::core_of_thread): Define.
3302 * linux-low.h (class linux_process_target): Update.
3303 * lynx-low.cc (lynx_target_ops): Update.
3304 * nto-low.cc (nto_target_ops): Update.
3305 * win32-low.cc (win32_target_ops): Update.
3306
55cf3021
TBA
33072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3308
3309 Turn process_stratum_target's handle_monitor_command op into a
3310 method of process_target.
3311
3312 * target.h (struct process_stratum_target): Remove the target op.
3313 (class process_target): Add the target op.
3314 (target_handle_monitor_command): Update the macro.
3315 * target.cc (process_target::handle_monitor_command): Define.
3316
3317 Update the derived classes and callers below.
3318
3319 * server.cc (handle_query): Update.
3320 * linux-low.cc (linux_target_ops): Update.
3321 (linux_process_target::handle_monitor_command): Define.
3322 * linux-low.h (class linux_process_target): Update.
3323 * lynx-low.cc (lynx_target_ops): Update.
3324 * nto-low.cc (nto_target_ops): Update.
3325 * win32-low.cc (win32_target_ops): Update.
3326
fb00dfce
TBA
33272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3328
3329 Turn process_stratum_target's handle_new_gdb_connection op into a
3330 method of process_target.
3331
3332 * target.h (struct process_stratum_target): Remove the target op.
3333 (class process_target): Add the target op.
3334 (target_handle_new_gdb_connection): Update the macro.
3335 * target.cc (process_target::handle_new_gdb_connection): Define.
3336
3337 Update the derived classes and callers below.
3338
3339 * linux-low.cc (linux_target_ops): Update.
3340 (linux_handle_new_gdb_connection): Turn into ...
3341 (linux_process_target::handle_new_gdb_connection): ... this.
3342 * linux-low.h (class linux_process_target): Update.
3343 * lynx-low.cc (lynx_target_ops): Update.
3344 * nto-low.cc (nto_target_ops): Update.
3345 * win32-low.cc (win32_target_ops): Update.
3346
9690a72a
TBA
33472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3348
3349 Turn process_stratum_target's supports_fork_events,
3350 supports_vfork_events, and supports_exec_events ops into methods
3351 of process_target.
3352
3353 * target.h (struct process_stratum_target): Remove the target ops.
3354 (class process_target): Add the target ops.
3355 (target_supports_fork_events): Update the macro.
3356 (target_supports_vfork_events): Update the macro.
3357 (target_supports_exec_events): Update the macro.
3358 * target.cc (process_target::supports_fork_events): Define.
3359 (process_target::supports_vfork_events): Define.
3360 (process_target::supports_exec_events): Define.
3361
3362 Update the derived classes and callers below.
3363
3364 * linux-low.cc (linux_target_ops): Update.
3365 (linux_supports_fork_events): Turn into ...
3366 (linux_process_target::supports_fork_events): ... this.
3367 (linux_supports_vfork_events): Turn into ...
3368 (linux_process_target::supports_vfork_events): ... this.
3369 (linux_supports_exec_events): Turn into ...
3370 (linux_process_target::supports_exec_events): ... this.
3371 * linux-low.h (class linux_process_target): Update.
3372 * lynx-low.cc (lynx_target_ops): Update.
3373 * nto-low.cc (nto_target_ops): Update.
3374 * win32-low.cc (win32_target_ops): Update.
3375
652aef77
TBA
33762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3377
3378 Turn process_stratum_target's supports_multi_process op into a
3379 method of process_target.
3380
3381 * target.h (struct process_stratum_target): Remove the target op.
3382 (class process_target): Add the target op.
3383 * target.cc (process_target::supports_multi_process): Define.
3384 (target_supports_multi_process): Update.
3385
3386 Update the derived classes and callers below.
3387
3388 * linux-low.cc (linux_target_ops): Update.
3389 (linux_supports_multi_process): Turn into ...
3390 (linux_process_target::supports_multi_process): ... this.
3391 * linux-low.h (class linux_process_target): Update.
3392 * lynx-low.cc (lynx_target_ops): Update.
3393 * nto-low.cc (nto_target_ops): Update.
3394 * win32-low.cc (win32_target_ops): Update.
3395
0dc587d4
TBA
33962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3397
3398 Turn process_stratum_target's supports_non_stop, async, and
3399 start_non_stop ops into methods of process_target.
3400
3401 * target.h (struct process_stratum_target): Remove the target ops.
3402 (class process_target): Add the target ops.
3403 (target_supports_non_stop): Update the macro.
3404 (target_async): Update the macro.
3405 (start_non_stop): Remove declaration.
3406 * target.cc (process_target::supports_non_stop): Define.
3407 (process_target::async): Define.
3408 (process_target::start_non_stop): Define.
3409 (start_non_stop): Remove.
3410
3411 Update the derived classes and callers below.
3412
3413 * server.cc (handle_qxfer_siginfo): Update.
3414 (handle_query): Update.
3415 * linux-low.cc (linux_target_ops): Update.
3416 (linux_supports_non_stop): Turn into ...
3417 (linux_process_target::supports_non_stop): ... this.
3418 (linux_async): Turn into ...
3419 (linux_process_target::async): ... this.
3420 (linux_start_non_stop): Turn into ...
3421 (linux_process_target::start_non_stop): ... this.
3422 * linux-low.h (class linux_process_target): Update.
3423 * lynx-low.cc (lynx_target_ops): Update.
3424 * nto-low.cc (nto_target_ops): Update.
3425 (nto_supports_non_stop): Remove; rely on the default behavior
3426 instead.
3427 * win32-low.cc (win32_target_ops): Update.
3428
d7abedf7
TBA
34292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3430
3431 Turn process_stratum_target's qxfer_siginfo op into a method of
3432 process_target.
3433
3434 * target.h (struct process_stratum_target): Remove the target op.
3435 (class process_target): Add the target op. Also add
3436 'supports_qxfer_siginfo'.
3437 * target.cc (process_target::qxfer_siginfo): Define.
3438 (process_target::supports_qxfer_siginfo): Define.
3439
3440 Update the derived classes and callers below.
3441
3442 * server.cc (handle_qxfer_siginfo): Update.
3443 (handle_query): Update.
3444 * linux-low.cc (linux_target_ops): Update.
3445 (linux_process_target::supports_qxfer_siginfo): Define.
3446 (linux_xfer_siginfo): Turn into ...
3447 (linux_process_target::qxfer_siginfo): ... this.
3448 * linux-low.h (class linux_process_target): Update.
3449 * lynx-low.cc (lynx_target_ops): Update.
3450 * nto-low.cc (nto_target_ops): Update.
3451 * win32-low.cc (win32_target_ops): Update.
3452
2d0795ee
TBA
34532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3454
3455 Turn process_stratum_target's qxfer_osdata op into a method of
3456 process_target.
3457
3458 * target.h (struct process_stratum_target): Remove the target op.
3459 (class process_target): Add the target op. Also add
3460 'supports_qxfer_osdata'.
3461 * target.cc (process_target::qxfer_osdata): Define.
3462 (process_target::supports_qxfer_osdata): Define.
3463
3464 Update the derived classes and callers below.
3465
3466 * server.cc (handle_qxfer_osdata): Update.
3467 (handle_query): Update.
3468 * linux-low.cc (linux_target_ops): Update.
3469 (linux_process_target::supports_qxfer_osdata): Define.
3470 (linux_qxfer_osdata): Turn into ...
3471 (linux_process_target::qxfer_osdata): ... this.
3472 * linux-low.h (class linux_process_target): Update.
3473 * lynx-low.cc (lynx_target_ops): Update.
3474 * nto-low.cc (nto_target_ops): Update.
3475 * win32-low.cc (win32_target_ops): Update.
3476
ea06bbaa
TBA
34772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3478
3479 Turn process_stratum_target's hostio_last_error op into a
3480 method of process_target.
3481
3482 * target.h (struct process_stratum_target): Remove the target op.
3483 (class process_target): Add the target op.
3484 * target.cc: Add "hostio.h" to includes.
3485 (process_target::hostio_last_error): Define.
3486
3487 Update the derived classes and callers below.
3488
3489 * hostio.cc (hostio_error): Update.
3490 * linux-low.cc: Remove "hostio.h" from includes.
3491 (linux_target_ops): Update.
3492 * lynx-low.cc (lynx_target_ops): Update.
3493 * nto-low.cc (nto_target_ops): Update.
3494 * win32-low.h (class win32_process_target): Update.
3495 * win32-low.cc (win32_target_ops): Update.
3496 (wince_hostio_last_error): Turn into ...
3497 (win32_process_target::hostio_last_error): ... this.
3498
6e3fd7e9
TBA
34992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3500
3501 Turn process_stratum_target's get_tls_address op into a method of
3502 process_target.
3503
3504 * target.h (struct process_stratum_target): Remove the target op.
3505 (class process_target): Add the target op. Also add
3506 'supports_get_tls_address'.
3507 * target.cc (process_target::get_tls_address): Define.
3508 (process_target::supports_get_tls_address): Define.
3509
3510 Update the derived classes and callers below.
3511
3512 * server.cc (handle_query): Update.
3513 * linux-low.cc (linux_target_ops): Update.
3514 (linux_process_target::supports_get_tls_address): Define.
3515 (linux_process_target::get_tls_address): Define.
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 * win32-low.cc (win32_target_ops): Update.
3520
5203ae1e
TBA
35212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3522
3523 Turn process_stratum_target's read_offsets op into a method of
3524 process_target.
3525
3526 * target.h (struct process_stratum_target): Remove the target op.
3527 (class process_target): Add the target op. Also add
3528 'supports_read_offsets'.
3529 * target.cc (process_target::read_offsets): Define.
3530 (process_target::supports_read_offsets): Define.
3531
3532 Update the derived classes and callers below.
3533
3534 * server.cc (handle_query): Update.
3535 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3536 (linux_target_ops): Update.
3537 (linux_process_target::supports_read_offsets): Define.
3538 (linux_read_offsets): Turn into ...
3539 (linux_process_target::read_offsets): ... this.
3540 * linux-low.h (class linux_process_target): Update.
3541 * lynx-low.cc (lynx_target_ops): Update.
3542 * nto-low.cc (nto_target_ops): Update.
3543 * win32-low.cc (win32_target_ops): Update.
3544
6eeb5c55
TBA
35452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3546
3547 Turn process_stratum_target's stopped_by_watchpoint and
3548 stopped_data_address ops into methods of process_target.
3549
3550 * target.h (struct process_stratum_target): Remove the target ops.
3551 (class process_target): Add the target ops.
3552 * target.cc (process_target::stopped_by_watchpoint): Define.
3553 (process_target::stopped_data_address): Define.
3554
3555 Update the derived classes and callers below.
3556
3557 * remote-utils.cc (prepare_resume_reply): Update.
3558 * linux-low.cc (linux_target_ops): Update.
3559 (linux_stopped_by_watchpoint): Turn into ...
3560 (linux_process_target::stopped_by_watchpoint): ... this.
3561 (linux_stopped_data_address): Turn into ...
3562 (linux_process_target::stopped_data_address): ... this.
3563 * linux-low.h (class linux_process_target): Update.
3564 * lynx-low.cc (lynx_target_ops): Update.
3565 * nto-low.cc (nto_target_ops): Update.
3566 (nto_stopped_by_watchpoint): Turn into ...
3567 (nto_process_target::stopped_by_watchpoint): ... this.
3568 (nto_stopped_data_address): Turn into ...
3569 (nto_process_target::stopped_data_address): ... this.
3570 * nto-low.h (class nto_process_target): Update.
3571 * win32-low.cc (win32_target_ops): Update.
3572 (win32_stopped_by_watchpoint): Turn into ...
3573 (win32_process_target::stopped_by_watchpoint): ... this.
3574 (win32_stopped_data_address): Turn into ...
3575 (win32_process_target::stopped_data_address): ... this.
3576 * win32-low.h (class win32_process_target): Update.
3577
22aa6223
TBA
35782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3579
3580 Turn process_stratum_target's supports_hardware_single_step op into
3581 a method of process_target.
3582
3583 * target.h (struct process_stratum_target): Remove the target op.
3584 (class process_target): Add the target op.
3585 (target_supports_hardware_single_step): Update the macro.
3586 (target_can_do_hardware_single_step): Remove declaration.
3587 * target.cc (process_target::supports_hardware_single_step): Define.
3588 (target_can_do_hardware_single_step): Remove.
3589
3590 Update the derived classes and callers below.
3591
3592 * linux-low.h (class linux_process_target): Update.
3593 * linux-low.cc (linux_target_ops): Update.
3594 (linux_supports_hardware_single_step): Turn into ...
3595 (linux_process_target::supports_hardware_single_step): ... this.
3596 * lynx-low.h (class lynx_process_target): Update.
3597 * lynx-low.cc (lynx_target_ops): Update.
3598 (lynx_process_target::supports_hardware_single_step): Define.
3599 * nto-low.h (class nto_process_target): Update.
3600 * nto-low.cc (nto_target_ops): Update.
3601 (nto_process_target::supports_hardware_single_step): Define.
3602 * win32-low.h (class win32_process_target): Update.
3603 * win32-low.cc (win32_target_ops): Update.
3604 (win32_process_target::supports_hardware_single_step): Define.
3605
93fe88b2
TBA
36062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3607
3608 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
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 (target_stopped_by_hw_breakpoint): Update the macro.
3614 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3615 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3616 (process_target::supports_stopped_by_hw_breakpoint): Define.
3617
3618 Update the derived classes and callers below.
3619
3620 * linux-low.cc (linux_target_ops): Update.
3621 (linux_stopped_by_hw_breakpoint): Turn into ...
3622 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3623 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3624 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3625 * linux-low.h (class linux_process_target): Update.
3626 * lynx-low.cc (lynx_target_ops): Update.
3627 * nto-low.cc (nto_target_ops): Update.
3628 * win32-low.cc (win32_target_ops): Update.
3629
84320c4e
TBA
36302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3631
3632 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3633 ops into methods of process_target.
3634
3635 * target.h (struct process_stratum_target): Remove the target ops.
3636 (class process_target): Add the target ops.
3637 (target_stopped_by_sw_breakpoint): Update the macro.
3638 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3639 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3640 (process_target::supports_stopped_by_sw_breakpoint): Define.
3641
3642 Update the derived classes and callers below.
3643
3644 * linux-low.cc (linux_target_ops): Update.
3645 (linux_stopped_by_sw_breakpoint): Turn into ...
3646 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3647 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3648 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3649 * linux-low.h (class linux_process_target): Update.
3650 * lynx-low.cc (lynx_target_ops): Update.
3651 * nto-low.cc (nto_target_ops): Update.
3652 * win32-low.cc (win32_target_ops): Update.
3653
7e0bde70
TBA
36542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3655
3656 Turn process_stratum_target's insert_point and remove_point ops
3657 into methods of process_target.
3658
3659 * target.h (struct process_stratum_target): Remove the target ops.
3660 (class process_target): Add the target ops.
3661 * target.cc (process_target::insert_point): Define.
3662 (process_target::remove_point): Define.
3663
3664 Update the derived classes and callers below.
3665
3666 * mem-break.cc (set_raw_breakpoint_at): Update.
3667 (delete_raw_breakpoint): Update.
3668 (uninsert_raw_breakpoint): Update.
3669 (reinsert_raw_breakpoint): Update.
3670 * linux-low.cc (linux_target_ops): Update.
3671 (linux_insert_point): Turn into ...
3672 (linux_process_target::insert_point): ... this.
3673 (linux_remove_point): Turn into ...
3674 (linux_process_target::remove_point): ... this.
3675 * linux-low.h (class linux_process_target): Update.
3676 * lynx-low.cc (lynx_target_ops): Update.
3677 * nto-low.cc (nto_target_ops): Update.
3678 (nto_insert_point): Turn into ...
3679 (nto_process_target::insert_point): ... this.
3680 (nto_remove_point): Turn into ...
3681 (nto_process_target::remove_point): ... this.
3682 * nto-low.h (class nto_process_target): Update.
3683 * win32-low.cc (win32_target_ops): Update.
3684 (win32_insert_point): Turn into ...
3685 (win32_process_target::insert_point): ... this.
3686 (win32_remove_point): Turn into ...
3687 (win32_process_target::remove_point): ... this.
3688 * win32-low.h (class win32_process_target): Update.
3689
a2b2297a
TBA
36902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3691
3692 Turn process_stratum_target's supports_z_point_type op into a
3693 method of process_target.
3694
3695 * target.h (struct process_stratum_target): Remove the target op.
3696 (class process_target): Add the target op.
3697 * target.cc (process_target::supports_z_point_type): Define.
3698
3699 Update the derived classes and callers below.
3700
3701 * mem-break.cc (z_type_supported): Update.
3702 * linux-low.cc (linux_target_ops): Update.
3703 (linux_supports_z_point_type): Turn into ...
3704 (linux_process_target::supports_z_point_type): ... this.
3705 * linux-low.h (class linux_process_target): Update.
3706 * lynx-low.cc (lynx_target_ops): Update.
3707 * nto-low.cc (nto_target_ops): Update.
3708 (nto_supports_z_point_type): Turn into ...
3709 (nto_process_target::supports_z_point_type): ... this.
3710 * nto-low.h (class nto_process_target): Update.
3711 * win32-low.cc (win32_target_ops): Update.
3712 (win32_supports_z_point_type): Turn into ...
3713 (win32_process_target::supports_z_point_type): ... this.
3714 * win32-low.h (class win32_process_target): Update.
3715
eac215cc
TBA
37162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3717
3718 Turn process_stratum_target's read_auxv op into a method of
3719 process_target.
3720
3721 * target.h (class process_stratum_target): Remove the target op.
3722 (struct process_target): Add the target op. Also add
3723 'supports_read_auxv'.
3724 * target.cc (process_target::read_auxv): Define.
3725 (process_target::supports_read_auxv): Define.
3726
3727 Update the derived classes and callers below.
3728
3729 * server.cc (handle_qxfer_auxv): Update.
3730 (handle_query): Update.
3731 * linux-low.cc (linux_target_ops): Update.
3732 (linux_process_target::supports_read_auxv): Define.
3733 (linux_read_auxv): Turn into ...
3734 (linux_process_target::read_auxv): ... this.
3735 * linux-low.h (class linux_process_target): Update.
3736 * lynx-low.cc (lynx_target_ops): Update.
3737 * nto-low.cc (nto_target_ops): Update.
3738 (nto_process_target::supports_read_auxv): Define.
3739 (nto_read_auxv): Turn into ...
3740 (nto_process_target::read_auxv): ... this.
3741 * nto-low.h (class nto_process_target): Update.
3742 * win32-low.cc (win32_target_ops): Update.
3743
eb497a2a
TBA
37442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3745
3746 Turn process_stratum_target's request_interrupt op into a method of
3747 process_target.
3748
3749 * target.h (struct process_stratum_target): Remove the target op.
3750 (class process_target): Add the target op.
3751
3752 Update the derived classes and callers below.
3753
3754 * remote-utils.cc (putpkt_binary_1): Update.
3755 (input_interrupt): Update.
3756 (getpkt): Update.
3757 * server.cc (handle_v_requests): Update.
3758 * linux-low.cc (linux_target_ops): Update.
3759 (linux_request_interrupt): Turn into ...
3760 (linux_process_target::request_interrupt): ... this.
3761 * linux-low.h (class linux_process_target): Update.
3762 * lynx-low.cc (lynx_target_ops): Update.
3763 (lynx_request_interrupt): Turn into ...
3764 (lynx_process_target::request_interrupt): ... this.
3765 * lynx-low.h (class lynx_process_target): Update.
3766 * nto-low.cc (nto_target_ops): Update.
3767 (nto_request_interrupt): Turn into ...
3768 (nto_process_target::request_interrupt): ... this.
3769 * nto-low.h (class nto_process_target): Update.
3770 * win32-low.cc (win32_target_ops): Update.
3771 (win32_request_interrupt): Turn into ...
3772 (win32_process_target::request_interrupt): ... this.
3773 * win32-low.h (class win32_process_target): Update.
3774
2a31c7aa
TBA
37752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3776
3777 Turn process_stratum_target's look_up_symbols op into a method of
3778 process_target.
3779
3780 * target.h (struct process_stratum_target): Remove the target op.
3781 (class process_target): Add the target op.
3782 * target.cc (process_target::look_up_symbols): Define.
3783
3784 Update the derived classes and callers below.
3785
3786 * server.cc (handle_query): Update.
3787 * linux-low.cc (linux_target_ops): Update.
3788 (linux_look_up_symbols): Turn into ...
3789 (linux_process_target::look_up_symbols): ... this.
3790 * linux-low.h (class linux_process_target): Update.
3791 * lynx-low.cc (lynx_target_ops): Update.
3792 * nto-low.cc (nto_target_ops): Update.
3793 * win32-low.cc (win32_target_ops): Update.
3794
e2558df3
TBA
37952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3796
3797 Turn process_stratum_target's read_memory and write_memory
3798 ops into methods of process_target.
3799
3800 * target.h (struct process_stratum_target): Remove the target ops.
3801 (class process_target): Add the target ops.
3802
3803 Update the derived classes and callers below.
3804
3805 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3806 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3807 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3808 (arm_get_syscall_trapinfo): Update.
3809 * linux-cris-low.cc (cris_breakpoint_at): Update.
3810 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3811 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3812 * linux-mips-low.cc (mips_breakpoint_at): Update.
3813 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3814 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3815 * linux-sh-low.cc (sh_breakpoint_at): Update.
3816 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3817 (sparc_store_gregset_from_stack): Update.
3818 (sparc_breakpoint_at): Update.
3819 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3820 * linux-tile-low.cc (tile_breakpoint_at): Update.
3821 * linux-x86-low.cc (x86_breakpoint_at): Update.
3822 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3823 * mem-brea.cc (insert_memory_breakpoint): Update.
3824 (validate_inserted_breakpoint): Update.
3825 * target.cc (read_inferior_memory): Update.
3826 (target_write_memory): Update.
3827 * linux-low.cc (linux_target_ops): Update.
3828 (linux_read_memory): Make a wrapper around the read_memory target
3829 op call.
3830 (linux_process_target::read_memory): Rename from linux_read_memory.
3831 (linux_write_memory): Turn into ...
3832 (linux_process_target::write_memory): ... this.
3833 * linux-low.h (class linux_process_target): Update.
3834 * lynx-low.cc (lynx_target_ops): Update.
3835 (lynx_read_memory): Turn into ...
3836 (lynx_process_target::read_memory): ... this.
3837 (lynx_write_memory): Turn into ...
3838 (lynx_process_target::write_memory): ... this.
3839 * lynx-low.h (class lynx_process_target): Update.
3840 * nto-low.cc (nto_target_ops): Update.
3841 (nto_read_memory): Turn into ...
3842 (nto_process_target::read_memory): ... this.
3843 (nto_write_memory): Turn into ...
3844 (nto_process_target::write_memory): ... this.
3845 * nto-low.h (class nto_process_target): Update.
3846 * win32-low.cc (win32_target_ops): Update.
3847 (win32_read_inferior_memory): Turn into ...
3848 (win32_process_target::read_memory): ... this.
3849 (win32_write_inferior_memory): Turn into ...
3850 (win32_process_target::write_memory): ... this.
3851 * win32-low.h (class win32_process_target): Update.
3852
79b44087
TBA
38532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3854
3855 Turn process_stratum_target's prepare_to_access_memory and
3856 done_accessing_memory ops into methods of process_target.
3857
3858 * target.h (struct process_stratum_target): Remove the target ops.
3859 (class process_target): Add the target ops.
3860 * target.cc (process_target::prepare_to_access_memory): Define.
3861 (process_target::done_accessing_memory): Define.
3862 (prepare_to_access_memory): Update.
3863 (done_accessing_memory): Update.
3864
3865 Update the derived classes and callers below.
3866
3867 * linux-low.cc (linux_target_ops): Update.
3868 (linux_prepare_to_access_memory): Turn into ...
3869 (linux_process_target::prepare_to_access_memory): ... this.
3870 (linux_done_accessing_memory): Turn into ...
3871 (linux_process_target::done_accessing_memory): ... this.
3872 * linux-low.h (class linux_process_target): Update.
3873 * lynx-low.cc (lynx_target_ops): Update.
3874 * nto-low.cc (nto_target_ops): Update.
3875 * win32-low.cc (win32_target_ops): Update.
3876
a5a4d4cd
TBA
38772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3878
3879 Turn process_stratum_target's fetch_registers and store_registers
3880 ops into methods of process_target.
3881
3882 * target.h (struct process_stratum_target): Remove the target ops.
3883 (class process_target): Add the target ops.
3884 (fetch_inferior_registers): Update the macro.
3885 (store_inferior_registers): Update the macro.
3886
3887 Update the derived classes and callers below.
3888
3889 * linux-low.cc (linux_target_ops): Update.
3890 (linux_fetch_registers): Turn into ...
3891 (linux_process_target::fetch_registers): ... this.
3892 (linux_store_registers): Turn into ...
3893 (linux_process_target::store_registers): ... this.
3894 * linux-low.h (class linux_process_target): Update.
3895 * lynx-low.cc (lynx_target_ops): Update.
3896 (lynx_fetch_registers): Turn into ...
3897 (lynx_process_target::fetch_registers): ... this.
3898 (lynx_store_registers): Turn into ...
3899 (lynx_process_target::store_registers): ... this.
3900 * lynx-low.h (class lynx_process_target): Update.
3901 * nto-low.cc (nto_target_ops): Update.
3902 (nto_fetch_registers): Turn into ...
3903 (nto_process_target::fetch_registers): ... this.
3904 (nto_store_registers): Turn into ...
3905 (nto_process_target::store_registers): ... this.
3906 * nto-low.h (class nto_process_target): Update.
3907 * win32-low.cc (win32_target_ops): Update.
3908 (win32_fetch_inferior_registers): Turn into ...
3909 (win32_process_target::fetch_registers): ... this.
3910 (win32_store_inferior_registers): Turn into ...
3911 (win32_process_target::store_registers): ... this.
3912 * win32-low.h (class win32_process_target): Update.
3913
6532e7e3
TBA
39142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3915
3916 Turn process_stratum_target's wait op into a method of
3917 process_target.
3918
3919 * target.h (struct process_stratum_target): Remove the target op.
3920 (class process_target): Add the target op.
3921
3922 Update the derived classes and callers below.
3923
3924 * target.cc (target_wait): Update.
3925 * linux-low.cc (linux_target_ops): Update.
3926 (linux_wait): Turn into ...
3927 (linux_process_target::wait): ... this.
3928 * linux-low.h (class linux_process_target): Update.
3929 * lynx-low.cc (lynx_target_ops): Update.
3930 (lynx_wait): Turn into ...
3931 (lynx_process_target::wait): ... this.
3932 * lynx-low.h (class lynx_process_target): Update.
3933 * nto-low.cc (nto_target_ops): Update.
3934 (nto_wait): Turn into ...
3935 (nto_process_target::wait): ... this.
3936 * nto-low.h (class nto_process_target): Update.
3937 * win32-low.cc (win32_target_ops): Update.
3938 (win32_wait): Turn into ...
3939 (win32_process_target::wait): ... this.
3940 (do_initial_child_stuff): Update.
3941 * win32-low.h (class win32_process_target): Update.
3942
0e4d7e35
TBA
39432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3944
3945 Turn process_stratum_target's resume op into a method of
3946 process_target.
3947
3948 * target.h (struct process_stratum_target): Remove the target op.
3949 (class process_target): Add the target op.
3950
3951 Update the derived classes and callers below.
3952
3953 * server.cc (resume): Update.
3954 * target.cc (target_stop_and_wait): Update.
3955 (target_continue_no_signal): Update.
3956 (target_continue): Update.
3957 * linux-low.cc (linux_target_ops): Update.
3958 (linux_resume): Turn into ...
3959 (linux_process_target::resume): ... this.
3960 * linux-low.h (class linux_process_target): Update.
3961 * lynx-low.cc (lynx_target_ops): Update.
3962 (lynx_resume): Turn into ...
3963 (lynx_process_target::resume): ... this.
3964 * lynx-low.h (class lynx_process_target): Update.
3965 * nto-low.cc (nto_target_ops): Update.
3966 (nto_resume): Turn into ...
3967 (nto_process_target::resume): ... this.
3968 * nto-low.h (class nto_process_target): Update.
3969 * win32-low.cc (win32_target_ops): Update.
3970 (win32_resume): Turn into ...
3971 (win32_process_target::resume): ... this.
3972 (win32_process_target::detach): Update.
3973 (do_initial_child_stuff): Update.
3974 * win32-low.h (class win32_process_target): Update.
3975
13d3d99b
TBA
39762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3977
3978 Turn process_stratum_target's thread_alive op into a method of
3979 process_target.
3980
3981 * target.h (struct process_stratum_target): Remove the target op.
3982 (class process_target): Add the target op.
3983 (mythread_alive): Update the macro.
3984
3985 Update the derived classes and callers below.
3986
3987 * linux-low.cc (linux_target_ops): Update.
3988 (linux_thread_alive): Turn into ...
3989 (linux_process_target::thread_alive): ... this.
3990 (wait_for_sigstop): Update.
3991 * linux-low.h (class linux_process_target): Update.
3992 * lynx-low.cc (lynx_target_ops): Update.
3993 (lynx_thread_alive): Turn into ...
3994 (lynx_process_target::thread_alive): ... this.
3995 * lynx-low.h (class lynx_process_target): Update.
3996 * nto-low.cc (nto_target_ops): Update.
3997 (nto_thread_alive): Turn into ...
3998 (nto_process_target::thread_alive): ... this.
3999 * nto-low.h (class nto_process_target): Update.
4000 * win32-low.cc (win32_target_ops): Update.
4001 (win32_thread_alive): Turn into ...
4002 (win32_process_target::thread_alive): ... this.
4003 * win32-low.h (class win32_process_target): Update.
4004
95a49a39
TBA
40052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4006
4007 Turn process_stratum_target's join op into a method of
4008 process_target.
4009
4010 * target.h (struct process_stratum_target): Remove the target op.
4011 (class process_target): Add the target op.
4012 (join_inferior): Update the macro.
4013
4014 Update the derived classes and callers below.
4015
4016 * linux-low.cc (linux_target_ops): Update.
4017 (linux_join): Turn into ...
4018 (linux_process_target::join): ... this.
4019 * linux-low.h (class linux_process_target): Update.
4020 * lynx-low.cc (lynx_target_ops): Update.
4021 (lynx_join): Turn into ...
4022 (lynx_process_target::join): ... this.
4023 * lynx-low.h (class lynx_process_target): Update.
4024 * nto-low.cc (nto_target_ops): Update.
4025 (nto_process_target::join): Define.
4026 * nto-low.h (class nto_process_target): Update.
4027 * win32-low.cc (win32_target_ops): Update.
4028 (win32_join): Turn into ...
4029 (win32_process_target::join): ... this.
4030 * win32-low.h (class win32_process_target): Update.
4031
8adb37b9
TBA
40322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4033
4034 Turn process_stratum_target's mourn op into a method of
4035 process_target.
4036
4037 * target.h (struct process_stratum_target): Remove the target op.
4038 (class process_target): Add the target op.
4039
4040 Update the derived classes and callers below.
4041
4042 * target.cc (target_mourn_inferior): Update.
4043 * linux-low.cc (linux_target_ops): Update.
4044 (linux_mourn): Turn into ...
4045 (linux_process_target::mourn): ... this.
4046 (handle_extended_wait): Update.
4047 (linux_process_target::kill): Update.
4048 (linux_process_target::detach): Update.
4049 * linux-low.h (class linux_process_target): Update.
4050 * lynx-low.cc (lynx_target_ops): Update.
4051 (lynx_mourn): Turn into ...
4052 (lynx_process_target::mourn): ... this.
4053 * lynx-low.h (class lynx_process_target): Update.
4054 * nto-low.cc (nto_target_ops): Update.
4055 (nto_mourn): Turn into ...
4056 (nto_process_target::mourn): ... this.
4057 * nto-low.h (class nto_process_target): Update.
4058 * win32-low.cc (win32_target_ops): Update.
4059 (win32_mourn): Turn into ...
4060 (win32_process_target::mourn): ... this.
4061 * win32-low.h (class win32_process_target): Update.
4062
9061c9cf
TBA
40632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4064
4065 Turn process_stratum_target's detach op into a method of
4066 process_target.
4067
4068 * target.h (struct process_stratum_target): Remove the target op.
4069 (class process_target): Add the target op.
4070 (detach_inferior): Update the macro.
4071
4072 Update the derived classes and callers below.
4073
4074 * linux-low.cc (linux_target_ops): Update.
4075 (linux_detach): Turn into ...
4076 (linux_process_target::detach): ... this.
4077 * linux-low.h (class linux_process_target): Update.
4078 * lynx-low.cc (lynx_target_ops): Update.
4079 (lynx_detach): Turn into ...
4080 (lynx_process_target::detach): ... this.
4081 * lynx-low.h (class lynx_process_target): Update.
4082 * nto-low.cc (nto_target_ops): Update.
4083 (nto_detach): Turn into ...
4084 (nto_process_target::detach): ... this.
4085 * nto-low.h (class nto_process_target): Update.
4086 * win32-low.cc (win32_target_ops): Update.
4087 (win32_detach): Turn into ...
4088 (win32_process_target::detach): ... this.
4089 * win32-low.h (class win32_process_target): Update.
4090
c6885a57
TBA
40912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4092
4093 Turn process_stratum_target's kill op into a method of
4094 process_target.
4095
4096 * target.h (struct process_stratum_target): Remove the target op.
4097 (class process_target): Add the target op.
4098
4099 Update the derived classes and callers below.
4100
4101 * target.cc (kill_inferior): Update.
4102 * linux-low.cc (linux_target_ops): Update.
4103 (linux_kill): Turn into ...
4104 (linux_process_target::kill): ... this.
4105 * linux-low.h (class linux_process_target): Update.
4106 * lynx-low.cc (lynx_target_ops): Update.
4107 (lynx_kill): Turn into ...
4108 (lynx_process_target::kill): ... this.
4109 * lynx-low.h (class lynx_process_target): Update.
4110 * nto-low.cc (nto_target_ops): Update.
4111 (nto_kill): Turn into ...
4112 (nto_process_target::kill): ... this.
4113 * nto-low.h (class nto_process_target): Update.
4114 * win32-low.cc (win32_target_ops): Update.
4115 (win32_kill): Turn into ...
4116 (win32_process_target::kill): ... this.
4117 * win32-low.h (class win32_process_target): Update.
4118
ef03dad8
TBA
41192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4120
4121 Turn process_stratum_target's attach op into a method of
4122 process_target.
4123
4124 * target.h (struct process_stratum_target): Remove the target op.
4125 (class process_target): Add the target op.
4126 (myattach): Update the macro.
4127
4128 Update the derived classes and callers below.
4129
4130 * linux-low.cc (linux_target_ops): Update.
4131 (linux_attach): Turn into ...
4132 (linux_process_target::attach): ... this.
4133 * linux-low.h (class linux_process_target): Update.
4134 * lynx-low.cc (lynx_target_ops): Update.
4135 (lynx_attach): Turn into ...
4136 (lynx_process_target::attach): ... this.
4137 * lynx-low.h (class lynx_process_target): Update.
4138 * nto-low.cc (nto_target_ops): Update.
4139 (nto_attach): Turn into ...
4140 (nto_process_target::attach): ... this.
4141 * nto-low.h (class nto_process_target): Update.
4142 * win32-low.cc (win32_target_ops): Update.
4143 (win32_attach): Turn into ...
4144 (win32_process_target::attach): ... this.
4145 * win32-low.h (class win32_process_target): Update.
4146
6dee9afb
TBA
41472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4148
4149 Turn process_stratum_target's post_create_inferior op into a method
4150 of process_target.
4151
4152 * target.h (struct process_stratum_target): Remove the target op.
4153 (class process_target): Add the target op.
4154 (target_post_create_inferior): Update the macro.
4155 * target.cc (process_target::post_create_inferior): Define.
4156
4157 Update the derived classes and callers below.
4158
4159 * linux-low.cc (linux_target_ops): Update.
4160 (linux_post_create_inferior): Turn into ...
4161 (linux_process_target::post_create_inferior): ... this.
4162 * linux-low.h (class linux_process_target): Update.
4163 * lynx-low.cc (lynx_target_ops): Update.
4164 * nto-low.cc (nto_target_ops): Update.
4165 * win32-low.cc (win32_target_ops): Update.
4166
15295543
TBA
41672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4168
4169 Turn process_stratum_target's create_inferior op into a method of
4170 process_target.
4171
4172 * target.h (struct process_stratum_target): Remove the target op.
4173 (class process_target): Add the target op.
4174 (create_inferior): Rename the macro to ...
4175 (target_create_inferior): ... this.
4176
4177 Update the derived classes and callers below.
4178
4179 * server.cc (handle_v_run): Update.
4180 (captured_main): Update.
4181 (process_serial_event): Update.
4182 * linux-low.cc (linux_target_ops): Update.
4183 (linux_create_inferior): Turn into ...
4184 (linux_process_target::create_inferior): ... this.
4185 * linux-low.h (class linux_process_target): Update.
4186 * lynx-low.cc (lynx_target_ops): Update.
4187 (lynx_create_inferior): Turn into ...
4188 (lynx_process_target::create_inferior): ... this.
4189 * lynx-low.h (class lynx_process_target): Update.
4190 * nto-low.cc (nto_target_ops): Update.
4191 (nto_create_inferior): Turn into ...
4192 (nto_process_target::create_inferior): ... this.
4193 * nto-low.h (class nto_process_target): Update.
4194 * win32-low.cc (win32_target_ops): Update.
4195 (win32_create_inferior): Turn into ...
4196 (win32_process_target::create_inferior): ... this.
4197 * win32-low.h (class win32_process_target): Update.
4198
5ef9273d
TBA
41992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4200
4201 * target.h (class process_target): New class definition.
4202 (struct process_stratum_target) <pt>: New field with type
4203 'process_target*'.
4204 * linux-low.h (class linux_process_target): Define as a derived
4205 class of 'process_target'.
4206 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4207 as the 'pt' field.
4208 * lynx-low.h (class lynx_process_target): Define as a derived
4209 class of 'process_target'.
4210 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4211 as the 'pt' field.
4212 * nto-low.h (class nto_process_target): Define as a derived
4213 class of 'process_target'.
4214 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4215 as the 'pt' field.
4216 * win32-low.h (class win32_process_target): Define as a derived
4217 class of 'process_target'.
4218 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4219 as the 'pt' field.
4220
9f1528a1
AB
42212020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4222
4223 * configure: Regenerate.
4224
bf84f706
MR
42252020-02-19 Maciej W. Rozycki <macro@wdc.com>
4226 Andrew Burgess <andrew.burgess@embecosm.com>
4227
4228 * linux-riscv-low.cc: New file.
4229 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4230 and nat/riscv-linux-tdesc.c.
4231 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4232 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4233 Define.
4234
1a627e7e
TT
42352020-02-14 Tom Tromey <tom@tromey.com>
4236
4237 * acinclude.m4: Don't include acx_configure_dir.m4.
4238 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4239 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4240 (all, install-only, uninstall, clean-info, clean)
4241 (maintainer-clean): Don't recurse.
4242 (subdir_do, all-lib): Remove.
4243 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4244 (GNULIB_H): Remove.
4245 (generated_files): Update.
4246 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4247 * configure: Rebuild.
4248 * configure.ac: Don't configure gnulib or libiberty.
4249 (GNULIB): Update.
4250
a9b34532
EZ
42512020-02-14 Eli Zaretskii <eliz@gnu.org>
4252
4253 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4254 preparing the command line for CreateProcess.
4255 (win32_create_inferior): Reflect the program name in debugging
4256 output that shows the process and its command line.
4257
feacfcac
SM
42582020-02-13 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * Makefile.in: Rename source files from .c to .cc.
4261 * %.c: Rename to %.cc.
4262 * configure.ac: Rename server.c to server.cc.
4263 * configure: Re-generate.
4264
06b3c5bd
SM
42652020-02-13 Simon Marchi <simon.marchi@efficios.com>
4266
4267 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4268
052793ad
HD
42692020-02-12 Hannes Domani <ssbssa@yahoo.de>
4270
4271 * win32-low.c (win32_create_inferior): Set signal_pid.
4272
f20e3e82
MR
42732020-02-12 Maciej W. Rozycki <macro@wdc.com>
4274 Pedro Alves <palves@redhat.com>
4275
4276 Skip building gdbserver in a cross-configuration.
4277 * configure.srv: Set $gdbserver_host depending on whether $target
4278 is $host. Use $gdbserver_host instead of $host.
4279
8ddd8e0e
SM
42802020-02-11 Simon Marchi <simon.marchi@efficios.com>
4281
4282 * configure: Re-generate.
4283
898e7f60
SM
42842020-02-11 Simon Marchi <simon.marchi@efficios.com>
4285
4286 * configure: Re-generate.
4287
58df732b
SM
42882020-02-11 Simon Marchi <simon.marchi@efficios.com>
4289
4290 * acinclude.m4: Update warning.m4 path.
4291
7928d571
HD
42922020-02-09 Hannes Domani <ssbssa@yahoo.de>
4293
4294 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4295 (handle_exception): Set siginfo_er.
4296 (win32_xfer_siginfo): New function.
4297
919adfe8
TT
42982020-02-07 Tom Tromey <tom@tromey.com>
4299 Pedro Alves <palves@redhat.com>
4300
4301 * README: Update build documentation.
4302 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4303 host, not target.
4304 * configure.ac: Update paths.
4305 * configure: Rebuild.
4306 * acinclude.m4: Update paths.
4307 * Makefile.in: Update include paths.
4308 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4309 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4310 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4311 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4312 (%-generated.c): Update paths.
4313 * Move entire directory from ../gdb/gdbserver.
4314
287c844a
MR
43152020-01-29 Maciej W. Rozycki <macro@wdc.com>
4316
4317 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4318
548a204f
PFC
43192020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4320
4321 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4322 assignment instead of srv_linux_obj.
4323
a2236a08
HD
43242020-01-28 Hannes Domani <ssbssa@yahoo.de>
4325
4326 * server.c (handle_qxfer_libraries): Write segment-address with
4327 paddress.
4328
bdaed379
HD
43292020-01-24 Hannes Domani <ssbssa@yahoo.de>
4330
4331 * Makefile.in (install-strip): New target.
4332 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4333 * aclocal.m4: Regenerate.
4334 * configure: Regenerate.
4335 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4336
42cd72aa
MR
43372020-01-24 Maciej W. Rozycki <macro@wdc.com>
4338
4339 * Makefile.in (SFILES): Adjust paths to point to real files.
4340 (OBS): Move waitstatus.o to target/waitstatus.o.
4341 (TAGS): Transform paths appropriately.
4342 (%.o): Rename to...
4343 (nat/%.o): ... this pattern rule.
4344 (%.o): Rename to...
4345 (target/%.o): ... this pattern rule.
4346 * configure.srv: Adjust paths throughout to include nat/ prefix
4347 with the revant files.
4348 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4349 * configure: Regenerate.
4350
42ba50ec
MR
43512020-01-24 Maciej W. Rozycki <macro@wdc.com>
4352
4353 * Makefile.in (TAGS): Remove config files from the recipe.
4354
05ea2a05
TT
43552020-01-14 Tom Tromey <tom@tromey.com>
4356
4357 * configure: Rebuild.
4358 * configure.ac: Remove any checks that were added to common.m4.
4359 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4360 lib-link.m4.
4361
01027315
TT
43622020-01-14 Tom Tromey <tom@tromey.com>
4363
4364 * server.h: Include config.h.
4365 * gdbreplay.c: Include config.h.
4366 * configure: Rebuild.
4367 * configure.ac: Don't source common.host.
4368 * acinclude.m4: Update path.
4369 * Makefile.in (INCSUPPORT): New variable.
4370 (INCLUDE_CFLAGS): Add INCSUPPORT.
4371 (SFILES): Update paths.
4372 (version-generated.c): Update path to create-version.sh.
4373 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4374
b2ceabe8
TT
43752020-01-14 Tom Tromey <tom@tromey.com>
4376
4377 * configure.ac (LIBS): Use WIN32APILIBS.
4378 (USE_WIN32API): Don't define.
4379 * configure: Rebuild.
4380
25c51f71
TT
43812020-01-14 Tom Tromey <tom@tromey.com>
4382
4383 * configure: Rebuild.
4384
c0bd321d
SM
43852020-01-13 Simon Marchi <simon.marchi@efficios.com>
4386
4387 * Makefile.in (%-generated.c): Remove rule for files from
4388 regformats/i386.
4389
bb564c58
SM
43902020-01-13 Simon Marchi <simon.marchi@efficios.com>
4391
4392 * configure: Re-generate.
4393
6e37c371
SM
43942020-01-13 Simon Marchi <simon.marchi@efficios.com>
4395
4396 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4397 Define to static.
4398 * tracepoint.c (stop_tracing, flush_trace_buffer,
4399 about_to_request_buffer_space, get_trace_state_variable_value,
4400 set_trace_state_variable_value, gdb_collect): Add declaration.
4401
df4a0200
SM
44022020-01-13 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4405 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4406 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4407 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4408 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4409 static.
4410
89e94ec9
SM
44112020-01-13 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * inferiors.c: Include gdbsupport/common-inferior.h.
4414
2552728a
SM
44152020-01-13 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * hostio-errno.c: Include hostio.h.
4418
4025fa09
SM
44192020-01-13 Simon Marchi <simon.marchi@efficios.com>
4420
4421 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4422 prerequisite.
4423
c0b0a142
SM
44242020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4425
4426 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4427 * linux-arm-tdesc.h: Include arch/arm.h.
4428
bb1183e2
SM
44292020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4430
4431 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4432
f5df0b5f
SM
44332020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4434
4435 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4436 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4437
5b6d1e4f
PA
44382020-01-10 Pedro Alves <palves@redhat.com>
4439
4440 * fork-child.c (post_fork_inferior): Pass target down to
4441 startup_inferior.
4442 * inferiors.c (switch_to_thread): Add process_stratum_target
4443 parameter.
4444 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4445 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4446 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4447 * remote-utils.c (prepare_resume_reply): Pass the target to
4448 switch_to_thread.
4449 * target.c (the_target): Now a process_stratum_target.
4450 (done_accessing_memory): Pass the target to switch_to_thread.
4451 (set_target_ops): Ajust to use process_stratum_target.
4452 * target.h (struct target_ops): Rename to ...
4453 (struct process_stratum_target): ... this.
4454 (the_target, set_target_ops): Adjust.
4455 (prepare_to_access_memory): Adjust comment.
4456 * win32-low.c (child_xfer_memory): Adjust to use
4457 process_stratum_target.
4458 (win32_target_ops): Now a process_stratum_target.
4459
559e7e50
EZ
44602020-01-06 Eli Zaretskii <eliz@gnu.org>
4461 Pedro Alves <palves@redhat.com>
4462
4463 * win32-low.c (get_child_debug_event): Extract the fatal exception
4464 from the exit status and convert to the equivalent Posix signal
4465 number.
4466 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4467 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4468
48189bec
HD
44692020-01-01 Hannes Domani <ssbssa@yahoo.de>
4470
4471 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4472
5dd8bf88
JB
44732020-01-01 Joel Brobecker <brobecker@adacore.com>
4474
4475 * server.c (gdbserver_version): Change copyright year to 2020.
4476 * gdbreplay.c (gdbreplay_version): Likewise.
4477
0ad6b8ee
CB
44782019-12-19 Christian Biesinger <cbiesinger@google.com>
4479
4480 * configure: Regenerate.
4481 * configure.ac: Quote variable arguments of test.
4482
1ee7b812
BE
44832019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4484
4485 * Makefile.in: Fix build with GNU Make 3.81
4486
d9fa87f4
TT
44872019-12-16 Tom Tromey <tromey@adacore.com>
4488
4489 * server.c (get_exec_file): Constify result.
4490
ab7d13f0
CB
44912019-12-10 Christian Biesinger <cbiesinger@google.com>
4492
4493 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4494 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4495 * config.in: Regenerate.
4496 * configure: Regenerate.
4497 * configure.ac: Don't check for strerror.
4498 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4499 Call safe_strerror instead of strerror.
4500 * server.h (strerror): Remove this now-unnecessary declaration.
4501 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4502 strerror.
4503 (gdb_agent_helper_thread): Likewise.
4504 * utils.c (perror_with_name): Likewise.
4505
4da8c3a8
TT
45062019-11-26 Tom Tromey <tom@tromey.com>
4507
4508 * configure, config.in: Rebuild.
4509
21987b9c
TT
45102019-11-26 Tom Tromey <tom@tromey.com>
4511
4512 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4513 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4514 gdb_sigmask.
4515 * configure, config.in: Rebuild.
4516
5e030278
TT
45172019-11-26 Tom Tromey <tom@tromey.com>
4518
4519 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4520 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4521 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4522 * acinclude.m4: Include ax_pthread.m4.
4523 * config.in, configure: Rebuild.
4524
6d91ce9a
CB
45252019-11-26 Christian Biesinger <cbiesinger@google.com>
4526
4527 * debug.c (debug_set_output): Call safe_strerror instead of
4528 strerror.
4529 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4530 (linux_kill_one_lwp): Likewise.
4531 (linux_detach_one_lwp): Likewise.
4532 (linux_wait_for_event_filtered): Likewise.
4533 (store_register): Likewise.
4534 * lynx-low.c (lynx_attach): Likewise.
4535 * mem-break.c (insert_memory_breakpoint): Likewise.
4536 (remove_memory_breakpoint): Likewise.
4537 (delete_fast_tracepoint_jump): Likewise.
4538 (set_fast_tracepoint_jump): Likewise.
4539 (uninsert_fast_tracepoint_jumps_at): Likewise.
4540 (reinsert_fast_tracepoint_jumps_at): Likewise.
4541 * nto-low.c (nto_xfer_memory): Likewise.
4542 (nto_resume): Likewise.
4543
6cdd651f
LM
45442019-11-20 Luis Machado <luis.machado@linaro.org>
4545
4546 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4547 instead of register count.
4548 * tdesc.c (tdesc_contains_feature): New function.
4549 * tdesc.h (tdesc_contains_feature): New prototype.
4550
cd850b40
CB
45512019-11-15 Christian Biesinger <cbiesinger@google.com>
4552
4553 * Makefile.in: Add safe-strerror.c.
4554 * configure: Regenerate.
4555 * configure.ac: Don't source common.host.
4556
5abebf3c
CB
45572019-11-15 Christian Biesinger <cbiesinger@google.com>
4558
4559 * config.in: Regenerate.
4560 * configure: Regenerate.
4561
e06f3d6e
AB
45622019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4563
4564 * ax.c (ax_printf): Handle size_t_arg.
4565
ca3a04f6
CB
45662019-11-06 Christian Biesinger <cbiesinger@google.com>
4567
4568 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4569 * mi/mi-main.c (output_cores): Likewise.
4570 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4571 (linux_xfer_osdata_modules): Likewise.
4572 * remote.c (register_remote_support_xml): Likewise.
4573 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4574 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4575
e48f6033
CB
45762019-11-01 Christian Biesinger <cbiesinger@google.com>
4577
4578 * configure: Regenerate.
4579 * configure.ac: Remove check for strerror_r.
4580
e7e97a2e
CB
45812019-10-31 Christian Biesinger <cbiesinger@google.com>
4582
4583 * config.in: Regenerate.
4584 * configure: Regenerate.
4585 * configure.ac: Also check for strerror_r.
4586
75cafaa6
CB
45872019-10-31 Christian Biesinger <cbiesinger@google.com>
4588
4589 * ax.h (debug_agent): Remove duplicate declaration.
4590
30baf67b
TV
45912019-10-26 Tom de Vries <tdevries@suse.de>
4592
4593 * linux-aarch64-low.c: Fix typos in comments.
4594 * linux-arm-low.c: Same.
4595 * linux-low.c: Same.
4596 * linux-ppc-low.c: Same.
4597 * proc-service.c: Same.
4598 * regcache.h: Same.
4599 * server.c: Same.
4600 * tracepoint.c: Same.
4601 * win32-low.c: Same.
4602
52c64cf7
TT
46032019-10-25 Tom Tromey <tromey@adacore.com>
4604
4605 * utils.c (xstrdup): Remove.
4606
c12d372d
TT
46072019-10-23 Tom Tromey <tom@tromey.com>
4608
4609 * configure, config.in: Rebuild.
4610
4d0b984b
TT
46112019-10-23 Tom Tromey <tom@tromey.com>
4612
4613 * configure: Rebuild.
4614 * acinclude.m4: Use m4_include, not sinclude.
4615
c5adaa19
TT
46162019-10-17 Tom Tromey <tromey@adacore.com>
4617
4618 * configure: Rebuild.
4619 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4620 in AC_CONFIG_FILES invocation.
4621 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4622 invocation.
4623
fec4e896
CB
46242019-10-16 Christian Biesinger <cbiesinger@google.com>
4625
4626 * server.c: Include xml-builtin.h.
4627 (get_xml_features): Don't declare xml_builtins here.
4628
00975ff6
AB
46292019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4630
4631 * Makefile.in: Remove references to vec-ipa.o.
4632
0dc32745
AB
46332019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4634
4635 * Makefile.in: Remove references to vec.c.
4636
3e6ec53a
CB
46372019-10-02 Christian Biesinger <cbiesinger@google.com>
4638
4639 * server.c (server_waiting): Change to bool.
4640 (extended_protocol): Likewise.
4641 (response_needed): Likewise.
4642 (exit_requested): Likewise.
4643 (run_once): Likewise.
4644 (report_no_resumed): Likewise.
4645 (non_stop): Likewise.
4646 (disable_packet_vCont): Likewise.
4647 (disable_packet_Tthread): Likewise.
4648 (disable_packet_qC): Likewise.
4649 (disable_packet_qfThreadInfo): Likewise.
4650 (handle_general_set): Update.
4651 (handle_detach): Update.
4652 (handle_monitor_command): Update.
4653 (handle_query): Update.
4654 (captured_main): Update.
4655 (process_serial_event): Update.
4656 * server.h (server_waiting): Change to bool.
4657 (disable_packet_vCont): Likewise.
4658 (disable_packet_Tthread): Likewise.
4659 (disable_packet_qC): Likewise.
4660 (disable_packet_qfThreadInfo): Likewise.
4661 (run_once): Likewise.
4662 (non_stop): Likewise.
4663 * target.c (target_stop_and_wait): Update.
4664
80fd2826
TT
46652019-10-02 Tom Tromey <tromey@adacore.com>
4666
4667 * Makefile.in (SFILES): Add common-inferior.c.
4668 (OBS): Add common-inferior.o.
4669 * server.c (startup_with_shell): Don't define.
4670
46f29a9a
AB
46712019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4672
4673 * linux-low.c (linux_low_read_btrace): Update for change to
4674 std::vector.
4675
f9d949fb
CB
46762019-09-20 Christian Biesinger <cbiesinger@google.com>
4677
4678 * debug.c (debug_threads): Remove comment in favor of the header.
4679 * debug.h (using_threads): Add declaration.
4680 (debug_threads): Add comment.
4681 * linux-aarch64-low.c: Include debug.h and remove declaration of
4682 debug_threads.
4683 * nto-low.c: Likewise.
4684 * remote-utils.c: Likewise.
4685 * thread-db.c: Likewise.
4686
abf516c6
UW
46872019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4688
4689 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4690 and powerpc-cell64l-ipa.o.
4691 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4692 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4693 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4694 (spu*-*-*): Remove.
4695
4696 * spu-low.c: Remove file.
4697
4698 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4699 (parse_spufs_run): Remove.
4700 (ppc_get_pc): Remove Cell/B.E. support.
4701 (ppc_set_pc): Likewise.
4702 (ppc_breakpoint_at): Likewise.
4703 (ppc_arch_setup): Likewise.
4704 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4705 tdesc_powerpc_cell32l.
4706 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4707 or init_registers_powerpc_cell32l.
4708 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4709 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4710 or init_registers_powerpc_cell32l.
4711 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4712 (init_registers_powerpc_cell32l): Remove prototype.
4713 (init_registers_powerpc_cell64l): Likewise.
4714
4715 * target.h (struct target_ops): Remove qxfer_spu member.
4716 * server.c (handle_qxfer_spu): Remove.
4717 (qxfer_packets): Remove entry for "spu".
4718 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4719 * linux-low.c (SPUFS_MAGIC): Remove.
4720 (spu_enumerate_spu_ids): Remove.
4721 (linux_qxfer_spu): Remove.
4722 (linux_target_ops): Remove qxfer_spu member.
4723 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4724 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4725 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4726
2d41fa11
SDJ
47272019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4728
4729 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4730 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4731 * config.in: Regenerate.
4732 * configure: Regenerate.
4733
d59b55f0
TT
47342019-08-15 Tom Tromey <tromey@adacore.com>
4735
4736 * target.c (target_write_memory): Use gdb::byte_vector.
4737
4196ab2a
TT
47382019-08-15 Tom Tromey <tromey@adacore.com>
4739
4740 * tracepoint.c (write_inferior_data_pointer)
4741 (write_inferior_integer, write_inferior_int8)
4742 (write_inferior_uinteger, m_tracepoint_action_download)
4743 (r_tracepoint_action_download, x_tracepoint_action_download)
4744 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4745 (download_agent_expr, download_tracepoint_1)
4746 (download_trace_state_variables, upload_fast_traceframes): Update.
4747 * server.c (gdb_write_memory): Update.
4748 * remote-utils.c (relocate_instruction): Update.
4749 * proc-service.c (ps_pdwrite): Update.
4750 * mem-break.c (remove_memory_breakpoint)
4751 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4752 (uninsert_fast_tracepoint_jumps_at)
4753 (reinsert_fast_tracepoint_jumps_at): Update.
4754 * linux-x86-low.c (append_insns)
4755 (i386_install_fast_tracepoint_jump_pad)
4756 (amd64_write_goto_address, i386_write_goto_address): Update.
4757 * linux-s390-low.c (append_insns, s390_write_goto_address):
4758 Update.
4759 * linux-ppc-low.c (ppc_relocate_instruction)
4760 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4761 (ppc_write_goto_address): Update.
4762 * linux-aarch64-low.c (append_insns): Update.
4763 * target.h (struct target_ops): Update.
4764 (write_inferior_memory): Don't declare.
4765 * target.c (target_write_memory): Rename from
4766 write_inferior_memory. Remove old target_write_memory.
4767
c6778d00
TT
47682019-08-15 Tom Tromey <tromey@adacore.com>
4769
4770 * target.c (write_inferior_memory): Use std::vector.
4771
404f2902
FCE
47722019-08-06 Frank Ch. Eigler <fche@redhat.com>
4773
4774 PR build/24886
4775 * configure.ac: Drop enable-libmcheck support.
4776 * configure, config.in: Rebuild.
4777 * acinclude.m4: Don't include it.
4778
4c5aa8e0
AH
47792019-07-19 Alan Hayward <alan.hayward@arm.com>
4780
4781 * configure.srv: Remove Arm xml files.
4782
7cc17433
AH
47832019-07-19 Alan Hayward <alan.hayward@arm.com>
4784
4785 * configure.srv: Add new files. Remove xml generated files.
4786 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4787 registers.
4788 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4789 * linux-aarch32-tdesc.c: New file.
4790 * linux-aarch32-tdesc.h: New file.
4791 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4792 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4793 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4794 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4795 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4796 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4797 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4798 (arm_read_description): Call arm_linux_read_description.
4799 (initialize_low_arch): Don't init registers.
4800 * linux-arm-tdesc.c: New file.
4801 * linux-arm-tdesc.h: New file.
4802
166a82be
AH
48032019-07-10 Alan Hayward <alan.hayward@arm.com>
4804
4805 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4806 Move counter inside for.
4807 (arm_read_description): Check ptrace earlier.
4808 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4809
268a13a5
TT
48102019-07-09 Tom Tromey <tom@tromey.com>
4811
4812 * configure: Rebuild.
4813 * configure.ac: Change common to gdbsupport.
4814 * acinclude.m4: Change common to gdbsupport.
4815 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4816 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4817 common to gdbsupport.
4818 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4819 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4820 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4821 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4822 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4823 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4824 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4825 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4826 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4827 common to gdbsupport.
4828
350fab54
AH
48292019-07-04 Alan Hayward <alan.hayward@arm.com>
4830
4831 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4832 defines.
4833 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4834
2b40fda7
AH
48352019-07-04 Alan Hayward <alan.hayward@arm.com>
4836
4837 * configure.srv: Remove legacy xml.
4838 * linux-aarch64-low.c (initialize_low_arch): Remove
4839 initialize_low_tdesc call.
4840 * linux-aarch64-tdesc-selftest.c: Remove file.
4841 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4842 * linux-x86-low.c (initialize_low_arch): Remove
4843 initialize_low_tdesc call.
4844 * linux-x86-tdesc-selftest.c: Remove file.
4845 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4846
7d10623d
TV
48472019-06-20 Tom de Vries <tdevries@suse.de>
4848
4849 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4850 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4851
8d6a48df
TV
48522019-06-19 Tom de Vries <tdevries@suse.de>
4853
4854 * debug.h (debug_write): Change return type to ssize_t.
4855 * debug.c (debug_write): Same.
4856
73cc7272
TT
48572019-06-14 Tom Tromey <tom@tromey.com>
4858
4859 * configure.ac: Use new path to gnulib.
4860 * configure: Rebuild.
4861 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4862 to gnulib.
4863
08f10e02
TT
48642019-06-11 Tom Tromey <tom@tromey.com>
4865
4866 * Makefile.in (SFILES): Add alloc.c.
4867 (OBS): Add alloc.o.
4868 (IPA_OBJS): Add alloc-ipa.o.
4869 (alloc-ipa.o): New target.
4870 (%.o: ../%.c): New pattern rule.
4871
422186a9
TT
48722019-06-10 Tom Tromey <tromey@adacore.com>
4873
4874 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4875 end warning with a newline.
4876 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4877 newline.
4878 * thread-db.c (attach_thread): Don't end warning with a newline.
4879 (thread_db_notice_clone): Likewise.
4880 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4881 newline.
4882 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4883 end warning with a newline.
4884
b02f78f9
PA
48852019-06-04 Pedro Alves <palves@redhat.com>
4886
4887 * server.c (captured_main): Use make_unique_xstrdup.
4888
88ed7edb
TT
48892019-06-02 Tom Tromey <tom@tromey.com>
4890
4891 * gdbreplay.c (fromhex): Remove.
4892 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4893
33a6bc35
TT
48942019-05-29 Tom Tromey <tromey@adacore.com>
4895
4896 * configure: Rebuild.
4897
e90a813d
KB
48982019-05-06 Kevin Buettner <kevinb@redhat.com>
4899
4900 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4901 sign extension code on 32-bit builds.
4902
353ea2d1
EZ
49032019-05-03 Eli Zaretskii <eliz@gnu.org>
4904
4905 * remote-utils.c:
4906 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4907
b494cdff
TT
49082019-04-19 Tom Tromey <tom@tromey.com>
4909
4910 * server.c (struct vstop_notif): Derive from notif_event.
4911 <base>: Remove.
4912 (queue_stop_reply): Update.
4913 (remove_all_on_match_ptid): Change type. Rewrite.
4914 (discard_queued_stop_replies): Rewrite.
4915 (in_queued_stop_replies_ptid): Change type.
4916 (in_queued_stop_replies): Rewrite.
4917 (notif_stop): Update.
4918 (queue_stop_reply_callback): Update.
4919 (captured_main): Don't call initialize_notif.
4920 (push_stop_notification): Update.
4921 * notif.c (notif_write_event, handle_notif_ack)
4922 (notif_event_enque, notif_push): Update.
4923 (notif_event_xfree, initialize_notif): Remove.
4924 * notif.h (struct notif_event): Include <list>, not
4925 "common/queue.h".
4926 (struct notif_server) <queue>: Now a std::list.
4927 (notif_event_p): Remove typedef.
4928 (initialize_notif): Don't declare.
4929 (struct notif_event): Add virtual destructor.
4930
a7e559cc
AH
49312019-04-17 Alan Hayward <alan.hayward@arm.com>
4932
4933 * ax.c (ax_vdebug): Call debug_printf.
4934 * debug.c (debug_write): New function.
4935 * debug.h (debug_write): New declaration.
4936 * linux-low.c (sigchld_handler): Call debug_write.
4937
aeb2e706
AH
49382019-04-17 Alan Hayward <alan.hayward@arm.com>
4939
4940 * debug.c (debug_set_output): New function.
4941 (debug_vprintf): Send output to debug_file.
4942 (debug_flush): Likewise.
4943 * debug.h (debug_set_output): New declaration.
4944 * server.c (handle_monitor_command): Add debug-file option.
4945 (captured_main): Likewise.
4946
c1bc0935
AH
49472019-04-17 Alan Hayward <alan.hayward@arm.com>
4948
4949 * debug.c (remote_debug): Add definition.
4950 * debug.h (remote_debug): Add declaration.
4951 * hostio.c (remote_debug): Remove declaration.
4952 * remote-utils.c (struct ui_file): Likewise.
4953 (remote_debug): Likewise.
4954 * remote-utils.h (remote_debug): Likewise,
4955 * server.c (remote_debug): Remove definition.
4956
3f52fdbc
KB
49572019-04-10 Kevin Buettner <kevinb@redhat.com>
4958
4959 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4960 when using a 64-bit gdbserver.
4961
b0319eaa
TT
49622019-04-09 Tom Tromey <tromey@adacore.com>
4963
4964 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4965
eedc3f4f
TT
49662019-04-08 Tom Tromey <tom@tromey.com>
4967
4968 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4969 throw.
4970 (linux_resume_one_lwp): Likewise.
4971
230d2906
TT
49722019-04-08 Tom Tromey <tom@tromey.com>
4973
4974 * gdbreplay.c: Update.
4975 * linux-low.c: Update.
4976 * server.c: Update.
4977
a70b8144
TT
49782019-04-08 Tom Tromey <tom@tromey.com>
4979
4980 * server.c: Use C++ exception handling.
4981 * linux-low.c: Use C++ exception handling.
4982 * gdbreplay.c: Use C++ exception handling.
4983
3d6e9d23
TT
49842019-04-08 Tom Tromey <tom@tromey.com>
4985
4986 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4987 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4988 (captured_main, main): Update.
4989 * gdbreplay.c (main): Update.
4990
0570503d
PFC
49912019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4992
4993 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4994 value in argument pointer, return 1 if the entry is found and 0
4995 otherwise. Move comment.
4996 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4997 * linux-low.h (linux_get_auxv): Declare.
4998 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4999
227a9e65
TT
50002019-04-05 Tom Tromey <tromey@adacore.com>
5001
5002 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5003 variables.
5004
69f4c9cc
AH
50052019-03-28 Alan Hayward <alan.hayward@arm.com>
5006
5007 * linux-low.c (AT_HWCAP2): Add define if not already included.
5008
974c89e0
AH
50092019-03-26 Alan Hayward <alan.hayward@arm.com>
5010
5011 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5012 (aarch64_arch_setup): Call linux_get_hwcap.
5013 * linux-arm-low.c (arm_get_hwcap): Remove function.
5014 (arm_read_description): Call linux_get_hwcap.
5015 * linux-low.c (linux_get_auxv): New function.
5016 (linux_get_hwcap): Likewise.
5017 (linux_get_hwcap2): Likewise.
5018 * linux-low.h (linux_get_hwcap): New declaration.
5019 (linux_get_hwcap2): Likewise.
5020 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5021 (ppc_arch_setup): Call linux_get_hwcap.
5022 * linux-s390-low.c (s390_get_hwcap): Remove function.
5023 (s390_arch_setup): Call linux_get_hwcap.
5024
1ef53e6b
AH
50252019-03-22 Alan Hayward <alan.hayward@arm.com>
5026 Jiong Wang <jiong.wang@arm.com>
5027
5028 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5029 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5030 to fail.
5031 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5032
ee4fbcfa
AH
50332019-03-22 Alan Hayward <alan.hayward@arm.com>
5034 Jiong Wang <jiong.wang@arm.com>
5035
5036 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5037 (aarch64_get_hwcap): New function.
5038 (aarch64_arch_setup): Read APIA hwcap.
5039
6dc0ebde
AH
50402019-03-22 Alan Hayward <alan.hayward@arm.com>
5041 Jiong Wang <jiong.wang@arm.com>
5042
5043 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5044 (initialize_low_tracepoint): Likewise.
5045 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5046 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5047 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5048 (aarch64_linux_read_description): Likewise.
5049 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5050
1163a4b7
JB
50512019-03-12 John Baldwin <jhb@FreeBSD.org>
5052
5053 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5054 i386_create_target_description for 'segments' parameter.
5055 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5056 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5057 * win32-i386-low.c (i386_arch_setup): Likewise.
5058
d3a70e03
TT
50592019-03-12 Tom Tromey <tromey@adacore.com>
5060
5061 * linux-low.c (iterate_over_lwps): Update.
5062
37991b4f
TT
50632019-03-06 Tom Tromey <tom@tromey.com>
5064
5065 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5066 (captured_main): Use SCOPE_EXIT.
5067
45950eb6
SDJ
50682019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5069
5070 * configure.srv: Use '$enable_unittest' instead of '$development'
5071 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5072 case.
5073
43ac54fc
TT
50742019-02-27 Tom Tromey <tromey@adacore.com>
5075
5076 * gdbreplay.c (logchar): Handle \r\n.
5077
df0da8a2
AH
50782019-02-07 Alan Hayward <alan.hayward@arm.com>
5079
5080 * linux-low.c (linux_attach): Add process before lwp.
5081 * server.c (attach_inferior): Check if already attached.
5082
1a5c2598
TT
50832019-02-07 Tom Tromey <tom@tromey.com>
5084
5085 * x86-tdesc.h: Rename include guard.
5086 * x86-low.h: Add include guard.
5087 * wincecompat.h: Rename include guard.
5088 * win32-low.h: Add include guard.
5089 * utils.h: Rename include guard.
5090 * tracepoint.h: Rename include guard.
5091 * tdesc.h: Rename include guard.
5092 * target.h: Rename include guard.
5093 * server.h: Rename include guard.
5094 * remote-utils.h: Rename include guard.
5095 * regcache.h: Rename include guard.
5096 * nto-low.h: Rename include guard.
5097 * notif.h: Add include guard.
5098 * mem-break.h: Rename include guard.
5099 * lynx-low.h: Add include guard.
5100 * linux-x86-tdesc.h: Add include guard.
5101 * linux-s390-tdesc.h: Add include guard.
5102 * linux-ppc-tdesc-init.h: Add include guard.
5103 * linux-low.h: Add include guard.
5104 * linux-aarch64-tdesc.h: Add include guard.
5105 * linux-aarch32-low.h: Add include guard.
5106 * inferiors.h: Rename include guard.
5107 * i387-fp.h: Rename include guard.
5108 * hostio.h: Rename include guard.
5109 * gdbthread.h: Rename include guard.
5110 * gdb_proc_service.h: Rename include guard.
5111 * event-loop.h: Rename include guard.
5112 * dll.h: Rename include guard.
5113 * debug.h: Rename include guard.
5114 * ax.h: Rename include guard.
5115
956cc47c
SN
51162018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5117
5118 PR gdb/23985
5119 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5120 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5121
a0707f3c
TT
51222019-01-25 Tom Tromey <tom@tromey.com>
5123
5124 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5125
0747795c
TT
51262019-01-25 Tom Tromey <tom@tromey.com>
5127
5128 * win32-low.c: Fix common/ includes.
5129 * win32-i386-low.c: Fix common/ includes.
5130 * tracepoint.c: Fix common/ includes.
5131 * thread-db.c: Fix common/ includes.
5132 * target.h: Fix common/ includes.
5133 * symbol.c: Fix common/ includes.
5134 * spu-low.c: Fix common/ includes.
5135 * server.h: Fix common/ includes.
5136 * server.c: Fix common/ includes.
5137 * remote-utils.c: Fix common/ includes.
5138 * regcache.h: Fix common/ includes.
5139 * regcache.c: Fix common/ includes.
5140 * nto-x86-low.c: Fix common/ includes.
5141 * notif.h: Fix common/ includes.
5142 * mem-break.h: Fix common/ includes.
5143 * lynx-low.c: Fix common/ includes.
5144 * lynx-i386-low.c: Fix common/ includes.
5145 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5146 * linux-x86-low.c: Fix common/ includes.
5147 * linux-low.c: Fix common/ includes.
5148 * inferiors.h: Fix common/ includes.
5149 * i387-fp.c: Fix common/ includes.
5150 * hostio.c: Fix common/ includes.
5151 * hostio-errno.c: Fix common/ includes.
5152 * gdbthread.h: Fix common/ includes.
5153 * gdbreplay.c: Fix common/ includes.
5154 * fork-child.c: Fix common/ includes.
5155 * event-loop.c: Fix common/ includes.
5156 * ax.c:
5157 (enum gdb_agent_op): Fix common/ includes.
5158
be6d4f74
TT
51592019-01-21 Tom Tromey <tom@tromey.com>
5160
5161 * tracepoint.c: Fix includes.
5162 * remote-utils.c: Fix includes.
5163 * linux-x86-low.c: Fix includes.
5164
66d91b39
JB
51652019-01-01 Joel Brobecker <brobecker@adacore.com>
5166
5167 * gdbreplay.c (gdbreplay_version): Update copyright year in
5168 version message.
5169 * server.c (gdbserver_version): Likewise.
5170
754e3168
AH
51712018-12-05 Alan Hayward <alan.hayward@arm.com>
5172
5173 * linux-low.c (add_lwp): Switch ordering.
5174
d105de22
TT
51752018-11-29 Tom Tromey <tom@tromey.com>
5176
5177 * win32-low.c (win32_join): Take pid, not process.
5178 * target.h (struct target_ops) <join>: Change argument type.
5179 (join_inferior): Change argument name.
5180 * spu-low.c (spu_join): Take pid, not process.
5181 * server.c (handle_detach): Preserve pid before destroying
5182 process.
5183 * lynx-low.c (lynx_join): Take pid, not process.
5184 * linux-low.c (linux_join): Take pid, not process.
5185
50138245
AH
51862018-11-23 Alan Hayward <alan.hayward@arm.com>
5187
5188 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5189 (aarch64_cannot_fetch_register): Likewise.
5190 (struct linux_target_ops): Update references.
5191
64f57f3d
PFC
51922018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5193
5194 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5195
8d619c01
EBM
51962018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5197
5198 * configure.srv (ipa_ppc_linux_regobj): Add
5199 powerpc-isa207-htm-vsx32l-ipa.o and
5200 powerpc-isa207-htm-vsx64l-ipa.o.
5201 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5202 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5203 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5204 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5205 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5206 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5207 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5208 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5209 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5210 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5211 (init_registers_powerpc_isa207_htm_vsx32l)
5212 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5213 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5214 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5215 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5216 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5217 (ppc_store_tm_ctarregset): New functions.
5218 (ppc_regsets): Add entries for HTM regsets.
5219 (ppc_arch_setup): Set htm in features struct when needed. Set
5220 sizes for the HTM regsets.
5221 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5222 (initialize_low_arch): Call
5223 init_registers_powerpc_isa207_htm_vsx32l and
5224 init_registers_powerpc_isa207_htm_vsx64l.
5225 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5226 PPC_TDESC_ISA207_HTM_VSX.
5227 (initialize_low_tracepoint): Call
5228 init_registers_powerpc_isa207_htm_vsx32l and
5229 init_registers_powerpc_isa207_htm_vsx64l.
5230
232bfb86
EBM
52312018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5232
5233 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5234 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5235 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5236 (ppc_store_pmuregset): New functions.
5237 (ppc_regsets): Add entries for ebb and pmu regsets.
5238 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5239 pmu regsets are available. Set sizes for these regsets.
5240
f2cf6173
EBM
52412018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5242
5243 * configure.srv (ipa_ppc_linux_regobj): Add
5244 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5245 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5246 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5247 rs6000/powerpc-isa207-vsx32l.xml, and
5248 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5249 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5250 <PPC_TDESC_ISA207_VSX>: New enum value.
5251 (init_registers_powerpc_isa207_vsx32l): Declare.
5252 (init_registers_powerpc_isa207_vsx64l): Declare.
5253 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5254 (ppc_store_tarregset): New function.
5255 (ppc_regsets): Add entry for the TAR regset.
5256 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5257 size for the TAR regsets.
5258 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5259 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5260 and init_registers_powerpc_isa207_vsx64l.
5261 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5262 (initialize_low_tracepoint): Call
5263 init_registers_powerpc_isa207_vsx32l and
5264 init_registers_powerpc_isa207_vsx64l.
5265
7ca18ed6
EBM
52662018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5267 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5268
5269 * configure.srv (ipa_ppc_linux_regobj): Add
5270 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5271 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5272 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5273 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5274 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5275 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5276 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5277 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5278 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5279 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5280 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5281 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5282 (ppc_hwcap): Add comment.
5283 (ppc_hwcap2): New global.
5284 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5285 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5286 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5287 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5288 when needed. Set sizes for the the DSCR and PPR regsets.
5289 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5290 (initialize_low_arch): Call
5291 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5292 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5293 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5294 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5295 (initialize_low_tracepoint): Call
5296 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5297 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5298
5c849b22
PFC
52992018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5300
5301 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5302
8ecfd7bd
SDJ
53032018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5304 Simon Marchi <simark@simark.ca>
5305
5306 * acinclude.m4: Include "../selftest.m4".
5307 * configure: Regenerate.
5308 * configure.ac: Use "GDB_AC_SELFTEST".
5309 * configure.srv: Use "$enable_unittests" instead of
5310 "$development" when checking whether unit tests have been
5311 enabled.
5312 * server.c (captured_main): Update message informing that
5313 selftests have been disabled.
5314
96643e35
TT
53152018-10-04 Tom Tromey <tom@tromey.com>
5316
5317 * configure: Rebuild.
5318
da4ae14a
TT
53192018-10-04 Tom Tromey <tom@tromey.com>
5320
5321 * server.c (handle_status): Rename inner "thread".
5322 (process_serial_event): Declare "res" in 'm' case.
5323 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5324 (iterate_over_lwps): Rename inner "thread".
5325 (linux_qxfer_libraries_svr4): Rename inner "len".
5326 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5327
7c619dbd
GB
53282018-10-01 Gary Benson <gbenson@redhat.com>
5329
5330 * gdb_proc_service.h: Moved common code to
5331 common/gdb_proc_service.h.
5332
3795e814
GB
53332018-10-01 Gary Benson <gbenson@redhat.com>
5334
5335 * gdb_proc_service.h: Synchronize comments and whitespace with
5336 GDB's version of this file.
5337
49b036f1
TT
53382018-09-25 Tom Tromey <tom@tromey.com>
5339
5340 * configure: Rebuild.
5341 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5342
8ff03f0b
SM
53432018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5344
5345 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5346 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5347 ($(IPA_LIB)): Sort IPA_OBJS.
5348
a1cd91dc
SM
53492018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5350
5351 * Makefile.in: Remove references to $(ADD_DEPS).
5352
752312ba
TT
53532018-09-16 Tom Tromey <tom@tromey.com>
5354
5355 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5356 variables.
5357 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5358 variables.
5359
f1628857
TT
53602018-09-05 Tom Tromey <tom@tromey.com>
5361
5362 * configure: Rebuild.
5363
ad202fcc
SM
53642018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5365
5366 PR build/23399
5367 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5368
d3d8724a
TT
53692018-08-27 Tom Tromey <tom@tromey.com>
5370
5371 PR build/23087:
5372 * configure: Rebuild.
5373
b4f183d2
TT
53742018-08-27 Tom Tromey <tom@tromey.com>
5375
5376 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5377 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5378 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5379 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5380 (s390x_emit_stack_adjust): Add casts to unsigned char.
5381
4e2aa472
SM
53822018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5383
5384 PR gdb/23374
5385 PR gdb/23375
5386 * server.h (struct client_state) <disable_randomization>:
5387 Initialize to 1.
5388
cf4088a9
SM
53892018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5390
5391 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5392 variable.
5393 (mips_supply_ptrace_register): Likewise.
5394
a0de763e
TT
53952018-07-22 Tom Tromey <tom@tromey.com>
5396
5397 * configure: Rebuild.
5398
b0a7723d
TT
53992018-07-22 Tom Tromey <tom@tromey.com>
5400
5401 * win32-low.c (win32_create_inferior): Remove unused variables.
5402 * gdbreplay.c (remote_open): Remove unused variable.
5403 * remote-utils.c (remote_prepare): Remove unused variable.
5404 * x86-tdesc.h (X86_TDESC_H): Define.
5405 (amd64_expedite_regs): Define conditionally.
5406 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5407 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5408 * remote-utils.c (readchar): Remove unused variable.
5409
a780ef4f
PA
54102018-07-13 Pedro Alves <palves@redhat.com>
5411
5412 * linux-low.c (linux_kill): Change parameter to process_info
5413 pointer instead of pid. Adjust.
5414 * lynx-low.c (lynx_kill): Likewise.
5415 * nto-low.c (nto_kill): Likewise.
5416 * spu-low.c (spu_kill): Likewise.
5417 * win32-low.c (win32_kill): Likewise.
5418 * server.c (handle_v_kill, kill_inferior_callback)
5419 (detach_or_kill_for_exit): Adjust.
5420 * target.c (kill_inferior): Change parameter to process_info
5421 pointer instead of pid. Adjust.
5422 * target.h (struct target_ops) <kill>: Change parameter to
5423 process_info pointer instead of pid. Adjust all implementations
5424 and callers.
5425 (kill_inferior): Likewise.
5426
ef2ddb33
PA
54272018-07-13 Pedro Alves <palves@redhat.com>
5428
5429 * linux-low.c (linux_detach, linux_join): Change parameter to
5430 process_info pointer instead of pid. Adjust.
5431 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5432 * nto-low.c (nto_detach): Likewise.
5433 * spu-low.c (spu_detach, spu_join): Likewise.
5434 * win32-low.c (win32_detach, win32_join): Likewise.
5435 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5436 * target.h (struct target_ops) <detach, join>: Change parameter to
5437 process_info pointer instead of pid. Adjust all implementations
5438 and callers.
5439 (detach_inferior, join_inferior): Rename 'pid' parameter to
5440 'proc'.
5441
c7ab0aef
SDJ
54422018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5443 Jan Kratochvil <jan.kratochvil@redhat.com>
5444 Paul Fertser <fercerpav@gmail.com>
5445 Tsutomu Seki <sekiriki@gmail.com>
5446
5447 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5448 (OBS): Add 'common/netstuff.o'.
5449 (GDBREPLAY_OBS): Likewise.
5450 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5451 (remote_open): Implement support for IPv6
5452 connections.
5453 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5454 and 'wspiapi.h'.
5455 (handle_accept_event): Accept connections from IPv6 sources.
5456 (remote_prepare): Handle IPv6-style hostnames; implement
5457 support for IPv6 connections.
5458 (remote_open): Implement support for printing connections from
5459 IPv6 sources.
5460
31445d10
PA
54612018-07-11 Pedro Alves <palves@redhat.com>
5462
5463 PR gdb/23377
5464 * mem-break.c (any_persistent_commands): Add process_info
5465 parameter and use it instead of relying on the current process.
5466 Change return type to bool.
5467 * mem-break.h (any_persistent_commands): Add process_info
5468 parameter and change return type to bool.
5469 * server.c (handle_detach): Remove require_running_or_return call.
5470 Look up the process_info for the process we're about to detach.
5471 If not found, return back error to GDB. Adjust
5472 any_persistent_commands call to pass down a process pointer.
5473
cb197132
PA
54742018-07-11 Pedro Alves <palves@redhat.com>
5475
5476 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5477 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5478 instead of collect_register_by_name.
5479 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5480 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5481
1b919490
VB
54822018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5483 Pedro Alves <palves@redhat.com>
5484
5485 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5486
d7e15655
TT
54872018-07-03 Tom Tromey <tom@tromey.com>
5488
5489 * linux-low.c: Update.
5490 * lynx-low.c: Update.
5491 * mem-break.c: Update.
5492 * nto-low.c: Update.
5493 * remote-utils.c: Update.
5494 * server.c: Update.
5495 * spu-low.c: Update.
5496 * target.c: Update.
5497 * win32-low.c: Update.
5498
26a57c92
TT
54992018-07-03 Tom Tromey <tom@tromey.com>
5500
5501 * server.c: Update.
5502
0e998d96
TT
55032018-07-03 Tom Tromey <tom@tromey.com>
5504
5505 * linux-low.c: Update.
5506
cc6bcb54
TT
55072018-07-03 Tom Tromey <tom@tromey.com>
5508
5509 * target.c: Update.
5510
e38504b3
TT
55112018-07-03 Tom Tromey <tom@tromey.com>
5512
5513 * linux-low.c: Update.
5514 * linux-mips-low.c: Update.
5515 * lynx-low.c: Update.
5516 * nto-low.c: Update.
5517 * remote-utils.c: Update.
5518 * server.c: Update.
5519 * spu-low.c: Update.
5520 * target.c: Update.
5521 * thread-db.c: Update.
5522
e99b03dc
TT
55232018-07-03 Tom Tromey <tom@tromey.com>
5524
5525 * linux-low.c: Update.
5526 * linux-mips-low.c: Update.
5527 * lynx-low.c: Update.
5528 * mem-break.c: Update.
5529 * nto-low.c: Update.
5530 * remote-utils.c: Update.
5531 * server.c: Update.
5532 * spu-low.c: Update.
5533 * target.c: Update.
5534 * tracepoint.c: Update.
5535
f2907e49
TT
55362018-07-03 Tom Tromey <tom@tromey.com>
5537
5538 * linux-low.c: Update.
5539 * linux-ppc-low.c: Update.
5540 * linux-x86-low.c: Update.
5541 * proc-service.c: Update.
5542 * server.c: Update.
5543 * spu-low.c: Update.
5544 * thread-db.c: Update.
5545 * win32-low.c: Update.
5546
fd79271b
TT
55472018-07-03 Tom Tromey <tom@tromey.com>
5548
5549 * linux-low.c: Update.
5550 * lynx-low.c: Update.
5551 * nto-low.c: Update.
5552 * remote-utils.c: Update.
5553 * spu-low.c: Update.
5554 * thread-db.c: Update.
5555 * win32-low.c: Update.
5556
c0867626
SDJ
55572018-06-29 Joel Brobecker <brobecker@adacore.com>
5558
5559 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5560 parameter in call to 'amd64_create_target_description'.
5561
2512d7ef
JK
55622018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5563
5564 * x86-tdesc.h: Remove executable permission flag.
5565
d0ac1c44
SM
55662018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5567
5568 * configure.ac: Remove AC_PREREQ, add missing quoting.
5569 * configure: Re-generate.
5570 * config.in: Re-generate.
5571 * aclocal.m4: Re-generate.
5572
c4eb05ff
SM
55732018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5574
5575 * tracepoint.h (current_traceframe): Remove declaration.
5576
02895270
AH
55772018-06-18 Alan Hayward <alan.hayward@arm.com>
5578
5579 * linux-aarch64-low.c (is_sve_tdesc): New function.
5580 (aarch64_sve_regs_copy_to_regcache): Likewise.
5581 (aarch64_sve_regs_copy_from_regcache): Likewise.
5582 (aarch64_regs_info): Add SVE checks.
5583 (initialize_low_arch): Initialize SVE.
5584
e9902bfc
AH
55852018-06-18 Alan Hayward <alan.hayward@arm.com>
5586
5587 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5588
fefa175e
AH
55892018-06-11 Alan Hayward <alan.hayward@arm.com>
5590
5591 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5592 (initialize_low_tracepoint): Likewise
5593 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5594 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5595 param.
5596 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5597 checks.
5598 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5599
b91ad3ff
AH
56002018-06-11 Alan Hayward <alan.hayward@arm.com>
5601
5602 * server.h (PBUFSIZ): Increase size
5603
f868386e
AH
56042018-06-11 Alan Hayward <alan.hayward@arm.com>
5605
5606 * regcache.c (regcache::raw_compare): New function.
5607 * regcache.h (regcache::raw_compare): New declaration.
5608
9c861883
AH
56092018-06-11 Alan Hayward <alan.hayward@arm.com>
5610
5611 * regcache.c (new_register_cache): Use new.
5612 (free_register_cache): Use delete.
5613 (register_data): Use const.
5614 (supply_register): Move body inside regcache.
5615 (regcache::raw_supply): New override function.
5616 (collect_register): Move body inside regcache.
5617 (regcache::raw_collect): New override function.
5618 (regcache::get_register_status): New override function.
5619 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5620
40591844
TT
56212018-06-09 Tom Tromey <tom@tromey.com>
5622
5623 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5624 declare queue.
5625 (event_queue): Use std::queue.
5626 (gdb_event_xfree): Remove.
5627 (initialize_event_loop, process_event, wait_for_event): Update.
5628
6341380d
SC
56292018-06-08 Stan Cox <scox@redhat.com>
5630
5631 * win32-low.c (win32_create_inferior): last_ptid and last_status
5632 moved to client_state.
5633
03349c93
PA
56342018-06-08 Pedro Alves <palves@redhat.com>
5635
5636 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5637 common/common-exceptions.o, common/common-utils.o,
5638 common/errors.o, common/print-utils.o and utils.o.
5639 * gdbreplay.c: Include "common-defs.h" instead of the two
5640 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5641 string.h or alloca.h.
5642 (perror_with_name): Delete.
5643 (remote_open): Use xstrdup instead of strdup.
5644 (main): Rename to ...
5645 (captured_main): ... this.
5646 (main): New.
5647
8dcc53b3
TT
56482018-06-08 Tom Tromey <tom@tromey.com>
5649
5650 * linux-low.c (linux_low_read_btrace): Update.
5651
c12a5089
SC
56522018-06-04 Stan Cox <scox@redhat.com>
5653
5654 * server.h (struct client_state): New.
5655 * server.c (cont_thread, general_thread, multi_process)
5656 (report_fork_events, report_vfork_events, report_exec_events)
5657 (report_thread_events, swbreak_feature, hwbreak_feature)
5658 (vCont_supported, disable_randomization, pass_signals)
5659 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5660 Moved to client_state.
5661 * remote-utils.c (remote_debug, noack_mode)
5662 (transport_is_reliable): Moved to client_state.
5663 * tracepoint.c (current_traceframe): Moved to client_state.
5664
5665 Update all callers.
5666 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5667 linux-low.c, remote-utils.h, target.c: Use client_state.
5668
122394f1
AH
56692018-05-31 Alan Hayward <alan.hayward@arm.com>
5670
5671 * configure.srv: Add new c/h file.
5672
95228a0d
AH
56732018-05-31 Alan Hayward <alan.hayward@arm.com>
5674
5675 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5676 null VQ.
5677
d8dab6c3
MR
56782018-05-25 Maciej W. Rozycki <macro@mips.com>
5679
5680 * gdb.arch/mips-fpregset-core.exp: New test.
5681 * gdb.arch/mips-fpregset-core.c: New test source.
5682
81e25b7c
EK
56832018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5684
5685 PR server/23198
5686 * hostio.c (require_int): Do not report overflow for integers
5687 between 0xfffffff and 0x7fffffff.
5688
7e947ad3
MR
56892018-05-22 Maciej W. Rozycki <macro@mips.com>
5690
5691 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5692 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5693 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5694 functions.
5695 (the_low_target): Wire them.
5696
1d75a658
PFC
56972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5698
5699 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5700 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5701 mode. Call collect_register_by_name with vscr using
5702 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5703 (ppc_store_vrregset): Add and set vscr_offset variable as in
5704 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5705 vscr_offset.
5706
d078308a
PFC
57072018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5708
5709 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5710 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5711 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5712
7273b5fc
PFC
57132018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5714
5715 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5716 (ppc_store_vsxregset): Likewise.
5717 (ppc_fill_vrregset): Likewise.
5718 (ppc_store_vrregset): Likewise.
5719 (ppc_fill_evrregset): Likewise.
5720 (ppc_store_evrregset): Likewise.
5721 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5722 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5723 needed.
5724
2e077f5e
PFC
57252018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5726
5727 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5728 wordsize of the inferior. Call ppc_linux_target_wordsize.
5729
bd64614e
PFC
57302018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5731
5732 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5733 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5734 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5735 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5736 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5737 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5738 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5739 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5740 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5741 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5742 (tdesc_powerpc_e500l): Remove.
5743 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5744 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5745 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5746 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5747 linux-ppc-tdesc.h.
5748 (ppc_arch_setup): Remove target description matching code. Fill a
5749 ppc_linux_features struct and call ppc_linux_match_description
5750 with it.
5751
75d74cca
MR
57522018-05-22 Maciej W. Rozycki <macro@mips.com>
5753
5754 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5755 width of the requested register exceeds the width of the
5756 `ptrace' data type.
5757 (mips_cannot_store_register): Likewise.
5758
e4439e43
MR
57592018-05-21 Maciej W. Rozycki <macro@mips.com>
5760
5761 * linux-mips-low.c (mips_fetch_register): New function. Update
5762 preceding comment.
5763 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5764 (the_low_target): Wire `mips_fetch_register'.
5765
55271bf9
JB
57662018-05-10 Joel Brobecker <brobecker@adacore.com>
5767
5768 * lynx-i386-low.c (LYNXOS_178): New macro.
5769 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5770 the layout on LynxOS-178.
5771 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5772 handle floating point registers that are not supported by
5773 LynxOS-178.
5774
1a34f210
TT
57752018-05-10 Tom Tromey <tom@tromey.com>
5776
5777 * configure: Rebuild.
5778
190852c8
JB
57792018-05-10 Joel Brobecker <brobecker@adacore.com>
5780
5781 PR server/23158:
5782 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5783 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5784 Use it to set the expedite_regs field in the given tdesc.
5785 * x86-tdesc.h: New file.
5786 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5787 Adjust following the addition of the new expedite_regs parameter
5788 to init_target_desc.
5789 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5790 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5791 (i386_linux_read_description, amd64_linux_read_description):
5792 Adjust following the addition of the new expedite_regs parameter
5793 to init_target_desc.
5794 * lynx-i386-low.c: #include "x86-tdesc.h".
5795 (lynx_i386_arch_setup): Adjust following the addition of the new
5796 expedite_regs parameter to init_target_desc.
5797 * nto-x86-low.c: #include "x86-tdesc.h".
5798 (nto_x86_arch_setup): Adjust following the addition of the new
5799 expedite_regs parameter to init_target_desc.
5800 * win32-i386-low.c: #include "x86-tdesc.h".
5801 (i386_arch_setup): Adjust following the addition of the new
5802 expedite_regs parameter to init_target_desc.
5803
7dbac825
JB
58042018-05-10 Joel Brobecker <brobecker@adacore.com>
5805
5806 PR server/23158:
5807 * win32-low.c (win32_create_inferior): Add call to my_wait
5808 setting last_status global.
5809
906994d9
JB
58102018-05-10 Joel Brobecker <brobecker@adacore.com>
5811
5812 PR server/23158:
5813 * win32-low.c (create_process): Only call gdb_tilde_expand if
5814 inferior_cwd is not NULL.
5815
8ee22052
AB
58162018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5817
5818 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5819 registers to the cache if their values have changed.
5820 (i387_xsave_to_cache): Provide default values for x87 control
5821 registers when these features are available, but disabled.
5822 * regcache.c (supply_register_by_name_zeroed): New function.
5823 * regcache.h (supply_register_by_name_zeroed): Declare new
5824 function.
5825
aff689d3
TT
58262018-05-07 Tom Tromey <tom@tromey.com>
5827
5828 * configure: Rebuild.
5829
85e26832
TT
58302018-05-04 Tom Tromey <tom@tromey.com>
5831
5832 * configure: Rebuild.
5833
a3b60e45
JK
58342018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5835 Pedro Alves <palves@redhat.com>
5836
5837 * linux-aarch64-low.c (aarch64_stopped_data_address):
5838 Likewise.
5839
632e107b
TT
58402018-04-27 Tom Tromey <tom@tromey.com>
5841
5842 * configure: Rebuild.
5843
458412c3
TT
58442018-04-23 Tom Tromey <tom@tromey.com>
5845
5846 * configure: Rebuild.
5847
f31c089e
SM
58482018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5849
5850 * Makefile.in (depcomp): Add "..".
5851 (all_deps_files): New and use it.
5852
b319b098
AH
58532018-04-18 Alan Hayward <alan.hayward@arm.com>
5854
5855 * configure.srv (aarch64*-*-linux*): Don't include xml.
5856 (i[34567]86-*-cygwin*): Likewise.
5857 (i[34567]86-*-linux*): Likewise.
5858 (i[34567]86-*-lynxos*): Likewise.
5859 (i[34567]86-*-mingw32ce*): Likewise.
5860 (i[34567]86-*-mingw*): Likewise.
5861 (i[34567]86-*-nto*): Likewise.
5862 (tic6x-*-uclinux): Likewise.
5863 (x86_64-*-linux*): Likewise.
5864 (x86_64-*-mingw*): Likewise.
5865 (x86_64-*-cygwin*): Likewise.
5866
3b74854b
AH
58672018-04-18 Alan Hayward <alan.hayward@arm.com>
5868
5869 * tdesc.c: Remove xml parameter.
5870
e98577a9
AH
58712018-04-18 Alan Hayward <alan.hayward@arm.com>
5872
5873 * server.c (get_features_xml): Remove cast.
5874 * tdesc.c (void target_desc::accept): Fill in function.
5875 (tdesc_get_features_xml): Remove old xml creation.
5876 (print_xml_feature::visit_pre): Add xml vistor.
5877 * tdesc.h (struct target_desc): Make xmltarget mutable.
5878 (tdesc_get_features_xml): Remove declaration.
5879
d278f585
AH
58802018-04-18 Alan Hayward <alan.hayward@arm.com>
5881
5882 * tdesc.c (tdesc_architecture_name): Add new function.
5883 (tdesc_osabi_name): Likewise.
5884 (tdesc_get_features_xml): Use new functions.
5885
eee8a18d
AH
58862018-04-18 Alan Hayward <alan.hayward@arm.com>
5887
5888 * tdesc.c (tdesc_create_flags): Remove.
5889 (tdesc_add_flag): Likewise.
5890 (tdesc_named_type): Likewise.
5891 (tdesc_create_union): Likewise.
5892 (tdesc_create_struct): Likewise.
5893 (tdesc_create_vector): Likewise.
5894 (tdesc_add_bitfield): Likewise.
5895 (tdesc_add_field): Likewise.
5896 (tdesc_set_struct_size): Likewise.
5897
82ec9bc7
AH
58982018-04-18 Alan Hayward <alan.hayward@arm.com>
5899
5900 * tdesc.c (~target_desc): Remove implictly deleted items.
5901 (init_target_desc): Iterate all features.
5902 (tdesc_get_features_xml): Use vector.
5903 (tdesc_create_feature): Create feature.
5904 * tdesc.h (tdesc_feature) Remove
5905 (target_desc): Add features.
5906
ea3e7d71
AH
59072018-04-18 Alan Hayward <alan.hayward@arm.com>
5908
5909 * Makefile.in: Add common/tdesc.c
5910 * tdesc.c (init_target_desc): init all reg_defs from register
5911 vector.
5912 (tdesc_create_reg): Create tdesc_reg.
5913 * tdesc.h (tdesc_feature): Add register vector.
5914
17d08cd4
SM
59152018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5916
5917 * tdesc.h (struct target_desc) <features>: Change type to
5918 std::vector<std::string>.
5919 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5920 changes.
5921 (tdesc_get_features_xml): Likewise.
5922 (tdesc_create_feature): Likewise.
5923
5cd3e386
AH
59242018-03-26 Alan Hayward <alan.hayward@arm.com>
5925
5926 * regcache.c (find_register_by_number): Return a ref.
5927 (find_regno): Use references.
5928 (register_size): Likewise.
5929 (register_data): Likewise.
5930 * tdesc.c (target_desc::~target_desc): Remove free calls.
5931 (target_desc::operator==): Use std::vector compare.
5932 (init_target_desc): Use reference.
5933 (tdesc_create_reg): Use reg constructors.
5934 * tdesc.h (struct target_desc): Replace pointer with object.
5935
dff7492c
AH
59362018-03-23 Alan Hayward <alan.hayward@arm.com>
5937
5938 * regcache.c (find_register_by_number): Make static.
5939 (find_regno): Use find_register_by_number
5940 * regcache.h (struct reg): Remove declaration.
5941
d80e5242
AH
59422018-03-23 Alan Hayward <alan.hayward@arm.com>
5943
5944 * tdesc.c (target_desc::~target_desc): Move to here.
5945 (target_desc::operator==): Likewise.
5946 * tdesc.h (target_desc::~target_desc): Move from here.
5947 (target_desc::operator==): Likewise.
5948
f69c5afb
AA
59492018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5950
5951 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5952
ce29f843
AA
59532018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5954
5955 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5956 S390_TDESC_GS.
5957 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5958 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5959 and init_registers_s390_gs_linux64.
5960
c49bd90b
AA
59612018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5962
5963 * linux-s390-low.c (s390_fill_gs): Remove function.
5964 (s390_fill_gsbc): Remove function.
5965 (s390_regsets): Set fill functions for the guarded storage regsets
5966 to NULL.
5967
7edb9bd3
AA
59682018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5969
5970 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5971 the word size. Add comment.
5972 (s390_get_wordsize): New function.
5973 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5974 pswm with it. Instead, use s390_get_wordsize to determine the
5975 word size first and derive the correct tdesc from that directly.
5976
39be3c7e
SM
59772018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5978
5979 * Makefile.in: Include silent-rules.mk.
5980 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5981 (COMPILE): Add ECHO_CXX.
5982 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5983 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5984 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5985 (version-generated.c): Add ECHO_GEN.
5986 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5987 (IPAGENT_COMPILE): Add ECHO_CXX.
5988 (%-generated.c): Add ECHO_REGDAT.
5989
3ae9ce5d
TT
59902018-03-14 Tom Tromey <tom@tromey.com>
5991
5992 PR cli/14977:
5993 * ax.c (ax_printf): Special case for NULL.
5994
e6a58aa8
SM
59952018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5996
5997 * linux-low.c (linux_qxfer_libraries_svr4): Use
5998 xml_escape_text_append.
5999
f6e8a41e
SM
60002018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6001
6002 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6003
b9671caf
SM
60042018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6005
6006 * server.c (handle_general_set): Remove unnecessary xstrdup.
6007
e80aaf61
SM
60082018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6009
6010 * server.c (parse_debug_format_options): Adjust to
6011 delim_string_to_char_ptr_vec changes.
6012 * thread-db.c (thread_db_load_search): Adjust to
6013 dirnames_to_char_ptr_vec changes.
6014
b1223e78
MM
60152018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6016
6017 * target.h (target_enable_btrace, target_disable_btrace)
6018 (target_read_btrace, target_read_btrace_conf): Turn macro into
6019 inline function. Throw error if target method is not defined.
6020 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6021 check for btrace target method. Be prepared to handle exceptions
6022 from btrace target methods.
6023
81561546
SDJ
60242018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6025
6026 * server.c (captured_main): Change order of error message printed
6027 when the current working directory cannot be found.
6028
25e3c82c
SDJ
60292018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6030
6031 * server.c: Include "filenames.h" and "pathstuff.h".
6032 (program_name): Delete variable.
6033 (program_path): New anonymous class.
6034 (get_exec_wrapper): Use "program_path" instead of
6035 "program_name".
6036 (handle_v_run): Likewise.
6037 (captured_main): Likewise.
6038 (process_serial_event): Likewise.
6039
b4987c95
SDJ
60402018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6041
6042 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6043 (OBJS): Add "pathstuff.o".
6044 * server.c (current_directory): New global variable.
6045 (captured_main): Initialize "current_directory".
6046
f46cd62a
AH
60472018-02-26 Alan Hayward <alan.hayward@arm.com>
6048
6049 * tdesc.c: Use common/tdesc.h.
6050 * tdesc.h: Likewise.
6051
a543c5ca
AH
60522018-02-20 Alan Hayward <alan.hayward@arm.com>
6053 Simon Marchi <simon.marchi@ericsson.com>
6054
6055 * Makefile.in: Switch order of make rules.
6056
b5884fa7
AH
60572018-02-19 Alan Hayward <alan.hayward@arm.com>
6058
6059 * Makefile.in: Add common directory in build.
6060 * configure.ac: Add common reference.
6061 * configure: Regenerate.
6062
de6242d3
MM
60632018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6064
6065 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6066 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6067 * spu-low.c (spu_target_ops): Likewise.
6068 * win32-low.c (win32_target_ops): Likewise.
6069 * server.c (supported_btrace_packets): Report packets unconditionally.
6070 * target.h (target_ops) <supports_btrace>: Remove.
6071 (target_supports_btrace): Remove.
6072
9ee23a85
MM
60732018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6074
6075 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6076 (handle_btrace_disable): Change return type to void. Use exceptions
6077 to report errors.
6078 (handle_btrace_general_set): Catch exception and copy message to
6079 return message.
6080
8ce47547
TT
60812018-02-08 Tom Tromey <tom@tromey.com>
6082
6083 * linux-low.c (install_software_single_step_breakpoints): Use
6084 make_scoped_restore.
6085 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6086 (do_restore_current_thread_cleanup): Remove.
6087 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6088 declare.
6089
45dd3607
TT
60902018-02-08 Tom Tromey <tom@tromey.com>
6091
6092 * mem-break.c (set_raw_breakpoint_at): Use
6093 gdb::unique_xmalloc_ptr.
6094
e671cd59
PA
60952018-01-30 Pedro Alves <palves@redhat.com>
6096
6097 PR gdb/13211
6098 * target.c (target_terminal::terminal_state): Rename to ...
6099 (target_terminal::m_terminal_state): ... this.
6100
a0aad537
JC
61012018-01-19 James Clarke <jrtc27@jrtc27.com>
6102
6103 * linux-low.c (handle_extended_wait): Surround call to
6104 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6105
4d9b86e1
SM
61062018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6107
6108 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6109 linux_ptrace_attach_fail_reason_string now returning an
6110 std::string.
6111 (linux_attach): Likewise.
6112 * thread-db.c (attach_thread): Likewise.
6113
f517c180
EA
61142018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6115
6116 PR gdb/21559
6117 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6118 checking for fs_base/gs_base fields in struct user_regs_struct.
6119 * configure: Regenerate.
6120
9a70f35c
YQ
61212018-01-16 Yao Qi <yao.qi@linaro.org>
6122
6123 PR gdb/18749
6124 * linux-low.c (fetch_register): Call supply_register instead of
6125 error.
6126
605fd3c6
YQ
61272018-01-08 Yao Qi <yao.qi@linaro.org>
6128 Simon Marchi <simon.marchi@ericsson.com>
6129
6130 * Makefile.in (OBS): Remove selftest.o.
6131 * configure.ac: Set srv_selftest_objs if $development is true.
6132 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6133 * configure: Re-generated.
6134 * server.c (captured_main): Wrap variable selftest_filter with
6135 GDB_SELF_TEST.
6136
2cc05030
SM
61372018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6138
6139 * server.c (parse_debug_format_options): Return std::string.
6140 (handle_monitor_command, captured_main): Adjust.
6141
e379cee6
PA
61422018-01-05 Pedro Alves <palves@redhat.com>
6143
6144 PR gdb/18653
6145 * server.c (captured_main): Pass quiet=false to
6146 save_original_signals_state.
6147
82e1e79a
JB
61482018-01-01 Joel Brobecker <brobecker@adacore.com>
6149
6150 * gdbreplay.c (gdbreplay_version): Update copyright year in
6151 version message.
6152 * server.c (gdbserver_version): Likewise.
6153
8e481c3b
TT
61542017-12-08 Tom Tromey <tom@tromey.com>
6155
6156 * ax.c (ax_printf): Update.
6157
a8806230
YQ
61582017-12-07 Yao Qi <yao.qi@linaro.org>
6159
6160 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6161 aarch64_linux_read_description.
6162 * linux-amd64-ipa.c (idx2mask): New array.
6163 (get_ipa_tdesc): Move idx2mask out.
6164 (initialize_low_tracepoint): Initialize target descriptions.
6165 * linux-i386-ipa.c (idx2mask): New array.
6166 (get_ipa_tdesc): Move idx2mask out.
6167 (initialize_low_tracepoint): Initialize target descriptions.
6168
d4a0e8b5
SM
61692017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6170
6171 * tdesc.c (struct tdesc_type): Change return type.
6172 (tdesc_add_flag): Change parameter type.
6173 (tdesc_add_bitfield): Likewise.
6174 (tdesc_add_field): Likewise.
6175 (tdesc_set_struct_size): Likewise.
6176
798a7429
SM
61772017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6178
6179 * regcache.c (registers_to_string): Remove unused variable.
6180
c0e15c9b
SM
61812017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * inferiors.c (for_each_inferior_with_data): Remove.
6184 * inferiors.h (for_each_inferior_with_data): Remove.
6185 * server.c (handle_qxfer_threads_worker): Change parameter type.
6186 (handle_qxfer_threads_proper): Use for_each_thread.
6187
f0045347
SM
61882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6189
6190 * inferiors.c (for_each_inferior): Remove.
6191 (clear_inferiors): Use for_each_thread.
6192 * inferiors.h (for_each_inferior): Remove.
6193 * linux-low.c (linux_wait_for_event_filtered): Use
6194 for_each_thread.
6195 (linux_stabilize_threads): Likewise.
6196 * regcache.c (regcache_release): Likewise.
6197 * server.c (gdb_wants_all_threads_stopped): Likewise.
6198 (clear_pending_status_callback): Remove.
6199 (handle_status): Use for_each_thread.
6200 (captured_main): Likewise.
6201 * win32-low.c (child_init_thread_list): Likewise.
6202 (win32_clear_inferiors): Likewise.
6203 (fake_breakpoint_event): Likewise.
6204
9521758b
SM
62052017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6206
6207 * inferiors.h (find_inferior): Remove.
6208 * inferiors.c (find_inferior): Remove.
6209
8f86d7aa
SM
62102017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6211
6212 * linux-low.c (resume_status_pending_p): Update comment.
6213 (need_step_over_p): Update comment.
6214
e2b44075
SM
62152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6216
6217 * linux-low.c (proceed_one_lwp): Return void, change parameter
6218 type.
6219 (unsuspend_and_proceed_one_lwp): Likewise.
6220 (proceed_all_lwps): Use for_each_thread.
6221 (unstop_all_lwps): Likewise.
6222
c80825ff
SM
62232017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6224
6225 * linux-low.c (linux_resume_one_thread): Return void, take
6226 parameter directly.
6227 (linux_resume): Use for_each_thread.
6228
df3e4dbe
SM
62292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6230
6231 * linux-low.c (send_sigstop_callback): Return void, change
6232 parameter type. Rename to...
6233 (send_sigstop): ... this.
6234 (suspend_and_send_sigstop_callback): Return void, change parameter
6235 type. Rename to...
6236 (suspend_and_send_sigstop): ... this.
6237 (stop_all_lwps): Use for_each_thread.
6238
5a6b0a41
SM
62392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6240
6241 * linux-low.c (lwp_running): Return bool, remove unused
6242 argument.
6243 (linux_stabilize_threads): Use find_thread.
6244
39a64da5
SM
62452017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6246
6247 * linux-low.c (select_singlestep_lwp_callback): Remove.
6248 (count_events_callback): Remove.
6249 (select_event_lwp_callback): Remove.
6250 (select_event_lwp): Use find_thread/for_each_thread.
6251
a1385b7b
SM
62522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6253
6254 * linux-low.c (not_stopped_callback): Return bool, take filter
6255 argument directly.
6256 (linux_wait_for_event_filtered): Use find_thread.
6257 (linux_wait_1): Likewise.
6258
454296a2
SM
62592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6260
6261 * linux-low.c (same_lwp): Remove.
6262 (find_lwp_pid): Use find_thread.
6263
6b2a85da
SM
62642017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6265
6266 * linux-low.c (delete_lwp_callback): Remove.
6267 (linux_mourn): Use for_each_thread.
6268
798a38e8
SM
62692017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6270
6271 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6272 args parameter, don't check for pid.
6273 (linux_detach): Use for_each_thread.
6274
e4eb0dec
SM
62752017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6276
6277 * linux-low.c (struct counter): Remove.
6278 (second_thread_of_pid_p): Remove.
6279 (last_thread_of_process_p): Use find_thread.
6280
83e1b6c1
SM
62812017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6282
6283 * inferiors.c (find_inferior_in_random): Remove.
6284 * inferiors.h (find_inferior_in_random): Remove.
6285 * linux-low.c (status_pending_p_callback): Return bool, accept
6286 parameter ptid directly.
6287 (linux_wait_for_event_filtered): Use find_thread_in_random.
6288 (linux_wait_1): Likewise.
6289
8dc7b443
SM
62902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6291
6292 * inferiors.c (find_inferior_id): Remove.
6293 (find_thread_ptid): Move implemention from find_inferior_id to
6294 here.
6295 * inferiors.h (find_inferior_id): Remove.
6296 * server.c (handle_status): Use find_thread_ptid.
6297 (process_serial_event): Likewise.
6298 * thread-db.c (find_one_thread): Likewise.
6299 (thread_db_thread_handle): Likewise.
6300 * win32-low.c (thread_rec): Likewise.
6301 (child_delete_thread): Likewise.
6302 (win32_thread_alive): Likewise.
6303 (get_child_debug_event): Likewise.
6304
da25033c
SM
63052017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6306
6307 * linux-mips-low.c (update_watch_registers_callback): Return
6308 void, remove pid_p parameter, don't check for pid.
6309 (mips_insert_point, mips_remove_point): Use for_each_thread.
6310
c91bb56b
SM
63112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6312
6313 * lynx.low (lynx_delete_thread_callback): Remove.
6314 (lynx_mourn): Use for_each_thread.
6315
634a3254
SM
63162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6317
6318 * regcache.c (regcache_invalidate_one): Remove.
6319 (regcache_invalidate_pid): use for_each_thread.
6320
41272101
TT
63212017-11-26 Tom Tromey <tom@tromey.com>
6322
6323 * linux-low.c (linux_create_inferior): Update.
6324
f5291a6f
UW
63252017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6326
6327 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6328
6654d750
AH
63292017-11-24 Alan Hayward <alan.hayward@arm.com>
6330
6331 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6332 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6333 * linux-aarch64-tdesc-selftest.c: New file.
6334 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6335
63362017-11-24 Alan Hayward <alan.hayward@arm.com>
6337
6338 * configure.srv: Add new file.
6339 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6340 * linux-aarch64-tdesc-selftest.c: New file.
6341 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6342
49bdb7ee
AH
63432017-11-24 Alan Hayward <alan.hayward@arm.com>
6344
6345 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6346 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6347 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6348
d6d7ce56
AH
63492017-11-24 Alan Hayward <alan.hayward@arm.com>
6350
6351 * configure.srv: Add new files.
6352 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6353 aarch64_linux_read_description.
6354 * linux-aarch64-low.c (aarch64_linux_read_description):
6355 Merge with aarch64_arch_setup.
6356 (aarch64_arch_setup): Call aarch64_linux_read_description.
6357 * linux-aarch64-tdesc.c: New file.
6358 * linux-aarch64-tdesc.h: New file.
6359
506fe5f4
YQ
63602017-11-24 Yao Qi <yao.qi@linaro.org>
6361
6362 * configure.srv: Set $srv_regobj for tic6x-linux.
6363 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6364 (tic6x_read_description): Move some code to tic6x_arch_setup.
6365 (tic6x_tdesc_test): New function.
6366 (initialize_low_arch): Call selftests::register_test.
6367
29f9a567
YQ
63682017-11-22 Yao Qi <yao.qi@linaro.org>
6369
6370 * remote-utils.c (prepare_resume_reply): Use memcpy.
6371
578290ec
SM
63722017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6373
6374 * linux-low.c (kill_one_lwp_callback): Return void, take
6375 argument directly, don't filter on pid.
6376 (linux_kill): Use for_each_thread.
6377
eca55aec
SM
63782017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6379
6380 * linux-low.c (need_step_over_p): Return bool, remove dummy
6381 argument.
6382 (linux_resume, proceed_all_lwps): Use find_thread.
6383
25c28b4d
SM
63842017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6385
6386 * linux-low.c (resume_status_pending_p): Return bool, remove
6387 flag_p argument.
6388 (linux_resume): Use find_thread.
6389
5fdda392
SM
63902017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6391
6392 * linux-low.c (struct thread_resume_array): Remove.
6393 (linux_set_resume_request): Return void, take arguments
6394 directly.
6395 (linux_resume): Use for_each_thread.
6396
fcb056a5
SM
63972017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6398
6399 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6400 return bool, remove data argument.
6401 (linux_stabilize_threads): Use find_thread.
6402
139720c5
SM
64032017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6404
6405 * linux-low.c (unsuspend_one_lwp): Remove.
6406 (unsuspend_all_lwps): Use for_each_thread, inline code from
6407 unsuspend_one_lwp.
6408
6d1e5673
SM
64092017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6410
6411 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6412 * linux-low.c (struct iterate_over_lwps_args): Remove.
6413 (iterate_over_lwps_filter): Remove.
6414 (iterate_over_lwps): Use find_thread.
6415
bbf550d5
SM
64162017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6417
6418 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6419 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6420 code from reset_lwp_ptrace_options_callback.
6421
00192f77
SM
64222017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6423
6424 * linux-arm-low.c (struct update_registers_data): Remove.
6425 (update_registers_callback): Return void, take arguments
6426 directly, don't check thread's pid.
6427 (arm_insert_point, arm_remove_point): Use for_each_thread.
6428
2bee2b6c
SM
64292017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6430
6431 * win32-low.c (continue_one_thread): Return void, take argument
6432 directly.
6433 (child_continue): Use for_each_thread.
6434
0b360f19
SM
64352017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6436
6437 * win32-i386-low.c (update_debug_registers_callback): Rename
6438 to ...
6439 (update_debug_registers): ... this, return void, remove pid_p arg.
6440 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6441
f27866ba
SM
64422017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6443
6444 * inferiors.h (struct process_info): Add constructor, initialize
6445 fields..
6446 <syscalls_to_catch>: Change type to std::vector<int>.
6447 * inferiors.c (add_process): Allocate process_info with new.
6448 (remove_process): Free process_info with delete.
6449 * linux-low.c (handle_extended_wait): Adjust.
6450 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6451 * server.c (handle_general_set): Adjust.
6452
e849ea89
PA
64532017-11-16 Pedro Alves <palves@redhat.com>
6454
6455 * remote-utils.c (remote_close): Block SIGIO signals instead of
6456 uninstalling the SIGIO handler.
6457
1d0aa65c
AH
64582017-11-16 Alan Hayward <alan.hayward@arm.com>
6459
6460 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6461
3491a34c
YQ
64622017-11-16 Yao Qi <yao.qi@linaro.org>
6463
6464 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6465 (tic6x_store_gregset): Likewise.
6466 (tic6x_usrregs_info): Move it up.
6467
a602f924
AH
64682017-11-15 Alan Hayward <alan.hayward@arm.com>
6469
6470 * Makefile.in: Update arch rules.
6471 * configure.srv: Explicitly mark arch/ files.
6472
5616b6c3
AS
64732017-11-13 Andreas Schwab <schwab@suse.de>
6474
6475 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6476 function.
6477 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6478
d1928160
PA
64792017-11-06 Pedro Alves <palves@redhat.com>
6480
6481 * config.in, configure: Regenerate.
6482
bac608e7
SM
64832017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6484
6485 * target.c (struct thread_search): Remove.
6486 (thread_search_callback): Remove.
6487 (prepare_to_access_memory): Use for_each_thread instead of
6488 find_inferior. Inline code from thread_search_callback.
6489
eaddb425
SM
64902017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6491
6492 * server.c (struct visit_actioned_threads_data): Remove.
6493 (visit_actioned_threads): Change prototype to take arguments
6494 directly.
6495 (resume): Use find_thread instead of find_inferior.
6496
99078d34
SM
64972017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6498
6499 * server.c (queue_stop_reply_callback): Change prototype, return
6500 void.
6501 (find_status_pending_thread_callback): Remove.
6502 (handle_status): Replace find_inferior with find_thread and
6503 for_each_thread.
6504
cc628f3d
AH
65052017-10-25 Alan Hayward <alan.hayward@arm.com>
6506
6507 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6508 with REGNO.
6509 (aarch64_store_gregset): Likewise.
6510 (aarch64_fill_fpregset): Likewise.
6511 (aarch64_store_fpregset): Likewise.
6512
4d3bb80e
SM
65132017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6514
6515 * gdbthread.h (find_thread, for_each_thread): New functions.
6516 * inferiors.c (thread_of_pid): Remove.
6517 (find_any_thread_of_pid): Use find_thread.
6518 * linux-low.c (num_lwps): Use for_each_thread.
6519
7a7cdfa0
YQ
65202017-10-17 Yao Qi <yao.qi@linaro.org>
6521
6522 * Makefile.in: Remove one rule.
6523 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6524
e675d170
YQ
65252017-10-17 Yao Qi <yao.qi@linaro.org>
6526
6527 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6528 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6529
7eb4e0f9
YQ
65302017-10-17 Yao Qi <yao.qi@linaro.org>
6531
6532 * configure.srv: Rename arm.o with arch/arm.o.
6533
60d6cfc9
YQ
65342017-10-17 Yao Qi <yao.qi@linaro.org>
6535
6536 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6537 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6538 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6539 (arch-i386.o, arch-amd64.o): Remove rules.
6540 (arch/%.o): New rule.
6541 Update POSTCOMPILE and COMPILE.pre.
6542 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6543 * configure: Re-generated.
6544 * configure.srv: Replace arch-i386.o with arch/i386.o.
6545 Replace arch-amd64.o with arch/amd64.o.
6546
5bfda255
YQ
65472017-10-16 Yao Qi <yao.qi@linaro.org>
6548
6549 * configure: Regenerated.
6550
9c80ecd6
SM
65512017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6552
6553 * inferiors.h: (struct inferior_list): Remove.
6554 (struct inferior_list_entry); Remove.
6555 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6556 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6557 get_first_inferior): Remove.
6558 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6559 find_inferior_id, find_inferior_in_random): Change signature.
6560 * inferiors.c (all_threads): Change type to
6561 std::list<thread_info *>.
6562 (get_thread): Remove macro.
6563 (find_inferior, find_inferior_id): Change signature, implement
6564 using find_thread.
6565 (find_inferior_in_random): Change signature, implement using
6566 find_thread_in_random.
6567 (for_each_inferior, for_each_inferior_with_data): Change
6568 signature, implement using for_each_thread.
6569 (add_inferior_to_list, remove_inferior): Remove.
6570 (add_thread, get_first_thread, thread_of_pid,
6571 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6572 (get_first_inferior, one_inferior_p, clear_inferior_list):
6573 Remove.
6574 (clear_inferiors, get_thread_process): Update.
6575 * gdbthread.h: Include <list>.
6576 (struct thread_info) <entry>: Remove field.
6577 <id>: New field.
6578 (all_threads): Change type to std::list<thread_info *>.
6579 (get_first_inferior): Add doc.
6580 (find_thread, for_each_thread, find_thread_in_random): New
6581 functions.
6582 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6583 * linux-arm-low.c (update_registers_callback): Update.
6584 * linux-low.c (second_thread_of_pid_p): Update.
6585 (kill_one_lwp_callback, linux_detach_lwp_callback,
6586 delete_lwp_callback, status_pending_p_callback, same_lwp,
6587 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6588 iterate_over_lwps, not_stopped_callback,
6589 resume_stopped_resumed_lwps, count_events_callback,
6590 select_singlestep_lwp_callback, select_event_lwp_callback,
6591 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6592 suspend_and_send_sigstop_callback, wait_for_sigstop,
6593 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6594 lwp_running, linux_set_resume_request, resume_status_pending_p,
6595 need_step_over_p, start_step_over, linux_resume_one_thread,
6596 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6597 reset_lwp_ptrace_options_callback): Update.
6598 * linux-mips-low.c (update_watch_registers_callback): Update.
6599 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6600 Update.
6601 (free_register_cache_thread_one): Remove.
6602 (regcache_release): Update.
6603 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6604 handle_qxfer_threads_worker): Update.
6605 (handle_query): Update, use list iterator.
6606 (visit_actioned_threads, handle_pending_status,
6607 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6608 clear_pending_status_callback, set_pending_status_callback,
6609 find_status_pending_thread_callback, handle_status,
6610 process_serial_event): Update.
6611 * target.c (thread_search_callback): Update.
6612 * thread-db.c (thread_db_get_tls_address): Update.
6613 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6614 Update.
6615 * win32-i386-low.c (update_debug_registers_callback): Update.
6616 * win32-low.c (delete_thread_info, child_delete_thread,
6617 continue_one_thread, suspend_one_thread,
6618 get_child_debug_event): Adjust.
6619
9179355e
SM
66202017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6621
6622 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6623 * inferiors.h: Include <list>.
6624 (struct process_info) <entry>: Remove field.
6625 <pid>: New field.
6626 (pid_of): Change macro to function.
6627 (ptid_of, lwpid_of): Remove macro.
6628 (all_processes): Change type to std::list<process_info *>.
6629 (ALL_PROCESSES): Remove macro.
6630 (for_each_process, find_process): New function.
6631 * inferiors.c (all_processes): Change type to
6632 std::list<process_info *>.
6633 (find_thread_process): Adjust.
6634 (add_process): Likewise.
6635 (remove_process): Likewise.
6636 (find_process_pid): Likewise.
6637 (get_first_process): Likewise.
6638 (started_inferior_callback): Remove.
6639 (have_started_inferiors_p): Adjust.
6640 (attached_inferior_callback): Remove.
6641 (have_attached_inferiors_p): Adjust.
6642 * linux-low.c (check_zombie_leaders): Likewise.
6643 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6644 (x86_linux_update_xmltarget): Adjust.
6645 * server.c (handle_query): Likewise.
6646 (gdb_reattached_process): Remove.
6647 (handle_status): Adjust.
6648 (kill_inferior_callback): Likewise.
6649 (detach_or_kill_inferior): Remove.
6650 (print_started_pid): Likewise.
6651 (print_attached_pid): Likewise.
6652 (detach_or_kill_for_exit): Update.
6653 (process_serial_event): Likewise.
6654 * linux-arm-low.c (arm_new_fork): Likewise.
6655
c9cb8905
SM
66562017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6657
6658 * dll.h: Include <list>.
6659 (struct dll_info): Add constructor.
6660 <entry>: Remove field.
6661 (all_dlls): Change type to std::list<dll_info>.
6662 * dll.c: Include <algorithm>.
6663 (get_dll): Remove macro.
6664 (all_dlls): Change type to std::list<dll_info *>.
6665 (free_one_dll): Remove.
6666 (match_dll): Likewise.
6667 (loaded_dll): Adjust.
6668 (unloaded_dll): Adjust to all_dlls type change, use
6669 std::find_if. Inline code from match_dll.
6670 (clear_dlls): Adjust to all_dlls type change.
6671 * server.c (emit_dll_description): Remove.
6672 (handle_qxfer_libraries): Adjust to all_dlls type change,
6673 integrate emit_dll_description's functionality.
6674
04ec7890
SM
66752017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6676
6677 * linux-low.h (struct linux_target_ops) <delete_process>: New
6678 field.
6679 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6680 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6681 (struct linux_target_ops): Add delete_process callback.
6682 * linux-arm-low.c (arm_delete_process): New.
6683 (struct linux_target_ops): Add delete_process callback.
6684 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6685 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6686 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6687 * linux-mips-low.c (mips_linux_delete_process): New.
6688 (struct linux_target_ops): Add delete_process callback.
6689 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6690 * linux-s390-low.c (struct linux_target_ops): Likewise.
6691 * linux-sh-low.c (struct linux_target_ops): Likewise.
6692 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6693 * linux-tile-low.c (struct linux_target_ops): Likewise.
6694 * linux-x86-low.c (x86_linux_delete_process): New.
6695 (struct linux_target_ops): Add delete_process callback.
6696 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6697
466eecee
SM
66982017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6699
6700 * linux-aarch64-low.c (the_low_target): Add thread delete
6701 callback.
6702 * linux-arm-low.c (arm_delete_thread): New function.
6703 (the_low_target): Add thread delete callback.
6704 * linux-bfin-low.c (the_low_target): Likewise.
6705 * linux-crisv32-low.c (the_low_target): Likewise.
6706 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6707 set.
6708 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6709 field.
6710 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6711 * linux-mips-low.c (mips_linux_delete_thread): New function.
6712 (the_low_target): Add thread delete callback.
6713 * linux-ppc-low.c (the_low_target): Likewise.
6714 * linux-s390-low.c (the_low_target): Likewise.
6715 * linux-sh-low.c (the_low_target): Likewise.
6716 * linux-tic6x-low.c (the_low_target): Likewise.
6717 * linux-tile-low.c (the_low_target): Likewise.
6718 * linux-x86-low.c (the_low_target): Likewise.
6719 * linux-xtensa-low.c (the_low_target): Likewise.
6720
b79f7801
YZ
67212017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6722
6723 * win32-low.c: Include "common-inferior.h".
6724
bc3b087d
SDJ
67252017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6726
6727 * inferiors.c (set_inferior_cwd): New function.
6728 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6729 (handle_query): Inform that QSetWorkingDir is supported.
6730 * win32-low.c (create_process): Pass the inferior's cwd to
6731 CreateProcess.
6732
d092c5a2
SDJ
67332017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6734
6735 * inferiors.c (current_inferior_cwd): New global variable.
6736 (get_inferior_cwd): New function.
6737 * inferiors.h (struct process_info) <cwd>: New field.
6738
7da0a886
SDJ
67392017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6740
6741 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6742 (OBS): Add gdb_tilde_expand.o.
6743
289a6840
SM
67442017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6745
6746 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6747 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6748
256642e8
PA
67492017-09-29 Pedro Alves <palves@redhat.com>
6750
6751 * ax.c (gdb_parse_agent_expr): Constify.
6752 * ax.h (gdb_parse_agent_expr): Constify.
6753 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6754 Constify.
6755 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6756 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6757 * remote-utils.h (read_ptid): Constify.
6758 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6759 (process_point_options, process_serial_event): Constify.
6760 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6761 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6762 (cmd_qtbuffer): Constify.
6763
5b9ca4d4
PA
67642017-09-29 Pedro Alves <palves@redhat.com>
6765
6766 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6767 fails.
6768
94c207e0
PA
67692017-09-29 Pedro Alves <palves@redhat.com>
6770
6771 * linux-low.c (handle_extended_wait): Pass parent thread instead
6772 of process to thread_db_notice_clone.
6773 * linux-low.h (thread_db_notice_clone): Replace parent process
6774 parameter with parent thread parameter.
6775 * thread-db.c (find_one_thread): Add comment.
6776 (thread_db_notice_clone): Replace parent process parameter with
6777 parent thread parameter. Temporarily switch to the parent thread.
6778
75352e28
SDJ
67792017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6780
6781 * gdbthread.h: Include "common-gdbthread.h".
6782 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6783 "if" when validating the ptid.
6784 * remote-utils.c: Include "gdbthread.h".
6785 (prepare_resume_reply): Use "switch_to_thread".
6786 * target.c (done_accessing_memory): Likewise.
6787
ad339634
AA
67882017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6789
6790 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6791 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6792 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6793 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6794 s390x-gs-linux64-ipa.o to ipa_obj.
6795 * linux-s390-low.c (HWCAP_S390_GS): New define.
6796 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6797 New functions.
6798 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6799 (s390_arch_setup): Check for guarded-storage support and choose
6800 appropriate tdesc.
6801 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6802 init_registers_s390x_gs_linux64.
6803 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6804 enum value.
6805 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6806 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6807
cc4d742f
SM
68082017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6809
6810 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6811
f6327dcb
KB
68122017-09-21 Kevin Buettner <kevinb@redhat.com>
6813
6814 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6815 (thread_db_thread_handle): Declare.
6816 * linux-low.c (linux_target_ops): Initialize thread_handle.
6817 * server.c (handle_qxfer_threads_worker): Add support for
6818 "handle" attribute.
6819 * target.h (struct target_ops): Add new function pointer,
6820 thread_handle.
6821 (target_thread_handle): Define.
6822 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6823 field in lwp.
6824 (thread_db_thread_handle): New function.
6825
86299109
KB
68262017-09-21 Kevin Buettner <kevinb@redhat.com>
6827
6828 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6829 * linux-low.h (thread_db_notice_clone): Declare.
6830 * thread-db.c (thread_db_notice_clone): New function.
6831
f557a88a
PA
68322017-09-21 Pedro Alves <palves@redhat.com>
6833
6834 * server.c (gdb_read_memory, handle_status, process_serial_event)
6835 (handle_serial_event, handle_target_event): Adjust to
6836 set_desired_thread prototype change.
6837 * target.c (set_desired_thread): Remove 'use_general' parameter
6838 and adjust.
6839 * target.h (set_desired_thread): Remove 'use_general' parameter.
6840
223ffa71
TT
68412017-09-20 Tom Tromey <tom@tromey.com>
6842
6843 * target.c (target_terminal::terminal_state): Define.
6844 (target_terminal::init): Rename from target_terminal_init.
6845 (target_terminal::inferior): Rename from
6846 target_terminal_inferior.
6847 (target_terminal::ours): Rename from target_terminal_ours.
6848 (target_terminal::ours_for_output, target_terminal::info): New.
6849
04fd3ba9
SM
68502017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6851
6852 * server.c (accumulate_file_name_length): Remove.
6853 (emit_dll_description): Adjust to std::string change.
6854 (handle_qxfer_libraries): Use std::string to hold document.
6855
5e187554
SM
68562017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6857
6858 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6859 return type of xml_escape_text.
6860 * server.c (emit_dll_description): Likewise.
6861
1526853e
SM
68622017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6863
6864 * server.c (captured_main): Accept argument for --selftest.
6865 Update run_tests call.
6866 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6867 when registering selftests.
6868
c4dfafab
SDJ
68692017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6870
6871 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6872 instead of "VEC" for "target_desc.reg_defs".
6873 (regcache_cpy): Likewise.
6874 (registers_to_string): Likewise.
6875 (registers_from_string): Likewise.
6876 (find_regno): Likewise.
6877 (supply_regblock): Likewise.
6878 (regcache_raw_read_unsigned): Likewise.
6879 * tdesc.c (init_target_desc): Likewise.
6880 (tdesc_create_reg): Likewise.
6881 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6882 (struct target_desc) <reg_defs>: Convert to "std::vector".
6883 (target_desc): Do not initialize "reg_defs".
6884 (~target_desc): Update code to use "std::vector" instead of "VEC"
6885 for "target_desc.reg_defs".
6886 (operator==): Likewise.
6887
124aceb4
SM
68882017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6889
6890 * inferiors.h (thread_to_gdb_id): Remove.
6891 * inferiors.c (thread_to_gdb_id): Remove.
6892 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6893 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6894 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6895 Likewise.
6896 * nto-low.c (nto_fetch_registers, nto_store_registers,
6897 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6898
96cde54f
SM
68992017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6900
6901 * inferiors.h (gdb_id_to_thread_id): Remove.
6902 * inferiors.c (gdb_id_to_thread_id): Remove.
6903 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6904 removal. Move pid declaration closer to where it's used.
6905
e8ca139e
SM
69062017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6907
6908 * server.c (handle_detach): New function.
6909 (process_serial_event): Move code out, call handle_detach.
6910
f8a4e119
SM
69112017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6912
6913 * server.c (require_running): Rename to ...
6914 (require_running_or_return): ... this ...
6915 (require_running_or_break): ... and this.
6916 (handle_query, process_serial_event): Adjust.
6917
0eb0a407
SM
69182017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6919
6920 * linux-low.c (linux_set_resume_request): Remove unused
6921 variables.
6922
785922a5
SM
69232017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6924
6925 * server.c (first_thread_of): Remove.
6926 (process_serial_event): Replace usage of first_thread_of with
6927 find_any_thread_of_pid.
6928 * tracepoint.c (same_process_p): Remove.
6929 (gdb_agent_about_to_close): Replace usage of same_process_p with
6930 find_any_thread_of_pid.
6931 * linux-x86-low.c (same_process_callback): Remove.
6932 (x86_arch_setup_process_callback): Replace usage of
6933 same_process_callback with find_any_thread_of_pid.
6934 * thread-db.c (any_thread_of): Remove.
6935 (switch_to_process): Replace usage of any_thread_of with
6936 find_any_thread_of_pid.
6937 * inferiors.c (thread_pid_matches_callback): Remove.
6938 (find_thread_process): Adjust to use find_any_thread_of_pid.
6939
a059f00c
SDJ
69402017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6941
6942 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6943 with "!VEC_empty".
a059f00c 6944
cc397f3a
SDJ
69452017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6946
6947 * linux-low.c (handle_extended_wait): Use
6948 "allocate_target_description" instead of "XNEW".
6949 * linux-x86-low.c (initialize_low_arch): Likewise.
6950
22916b07
YQ
69512017-09-05 Yao Qi <yao.qi@linaro.org>
6952
6953 * configure.srv (srv_i386_regobj): Remove.
6954 (srv_amd64_regobj): Remove.
6955 (srv_regobj): Set it to "" for x86 non-linux targets.
6956 * linux-x86-tdesc.c (i386_linux_read_description):
6957 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6958 (init_registers_i386): Remove the declaration.
6959 (tdesc_i386): Remove the declaration.
6960 (lynx_i386_arch_setup): Call i386_create_target_description.
6961 * nto-x86-low.c: Likewise.
6962 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6963 [!__x86_64__]: include arch/i386.h.
6964 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6965
38602d55
YQ
69662017-09-05 Yao Qi <yao.qi@linaro.org>
6967
6968 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6969 i386/amd64-XXX-linux from it.
6970
44b886ff
YQ
69712017-09-05 Yao Qi <yao.qi@linaro.org>
6972
6973 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6974 false.
6975 (ipa_amd64_linux_regobj): Remove.
6976 (ipa_x32_linux_regobj): Remove.
6977
b4570e4b
YQ
69782017-09-05 Yao Qi <yao.qi@linaro.org>
6979
6980 * Makefile.in (arch-amd64.o): New rule.
6981 * configure.srv: Append arch-amd64.o.
6982 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6983 (get_ipa_tdesc): Call amd64_linux_read_description.
6984 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6985 and init_registers_amd64_XXX.
6986 * linux-x86-low.c (x86_linux_read_description): Call
6987 amd64_linux_read_description.
6988 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6989 (initialize_low_arch): Don't call init_registers_x32_XXX and
6990 init_registers_amd64_XXX.
6991 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6992 and tdesc_amd64_XXX.
6993 [__x86_64__] (amd64_tdesc_test): New function.
6994 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6995 and init_registers_amd64_XXX.
6996 * linux-x86-tdesc.c: Include arch/amd64.h.
6997 (xcr0_to_tdesc_idx): New function.
6998 (i386_linux_read_description): New function.
6999 (amd64_get_ipa_tdesc_idx): New function.
7000 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7001 (amd64_get_ipa_tdesc): Declare.
7002
d1f28ea2
YQ
70032017-09-05 Yao Qi <yao.qi@linaro.org>
7004
7005 * configure.srv (srv_i386_linux_xmlfiles): Remove
7006 i386/i386-XXX-linux.xml from it.
7007
25a93583
YQ
70082017-09-05 Yao Qi <yao.qi@linaro.org>
7009
7010 * configure.srv: Set srv_i386_linux_regobj empty if $development
7011 is false.
7012 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7013 initialize_low_tdesc.
7014 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7015 with #if initialize_low_tdesc.
7016 * linux-x86-tdesc-selftest.c: New file.
7017 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7018
5f035c07
YQ
70192017-09-05 Yao Qi <yao.qi@linaro.org>
7020
7021 * Makefile.in (arch-i386.o): New rule.
7022 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7023 (x86_64-*-linux*): Likewise.
7024 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7025 include arch/i386.h.
7026 (i386_linux_read_description): Remove code and call
7027 i386_create_target_description.
7028 * tdesc.c (allocate_target_description): New function.
7029 * tdesc.h (set_tdesc_architecture): Remove declaration.
7030 (set_tdesc_osabi): Likewise.
7031
0abe8a89
YQ
70322017-09-05 Yao Qi <yao.qi@linaro.org>
7033
7034 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7035 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7036 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7037 .xmltarget.
7038 * server.c (get_features_xml): Call tdesc_get_features_xml.
7039 * tdesc.c (set_tdesc_architecture): New function.
7040 (set_tdesc_osabi): New function.
7041 (tdesc_get_features_xml): New function.
7042 (tdesc_create_feature): Add an argument.
7043 * tdesc.h (struct target_desc) <features>: New field.
7044 <arch, osabi>: New field.
7045 (~target_desc): xfree features, arch, and osabi.
7046 (target_desc::oerator==): Don't compare .xmltarget.
7047 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7048 (set_tdesc_osabi): Likewise.
7049 (tdesc_get_features_xml): Likewise.
7050
0a188386
YQ
70512017-09-05 Yao Qi <yao.qi@linaro.org>
7052
7053 * linux-x86-tdesc.c: Include selftest.h.
7054 (i386_tdesc_test): New function.
7055 (initialize_low_tdesc): Call selftests::register_test.
7056 * tdesc.h: Include regdef.h.
7057 (target_desc): Override operator == and !=.
7058
f49ff000
YQ
70592017-09-05 Yao Qi <yao.qi@linaro.org>
7060
7061 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7062 (ipa_obj): Likewise.
7063 * linux-i386-ipa.c: Include common/x86-xstate.h
7064 (get_ipa_tdesc): Call i386_linux_read_description.
7065 (initialize_low_tracepoint): Don't call init_registers_XXX
7066 functions, call initialize_low_tdesc instead.
7067 * linux-x86-low.c (x86_linux_read_description): Call
7068 i386_linux_read_description.
7069 (initialize_low_arch): Don't call init_registers_i386_XXX
7070 functions, call initialize_low_tdesc.
7071 * linux-x86-tdesc.c: New file.
7072 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7073 (i386_get_ipa_tdesc_idx): Declare.
7074 (i386_get_ipa_tdesc): Declare.
7075 (initialize_low_tdesc): Declare.
7076
2b68ef2f
YQ
70772017-09-05 Yao Qi <yao.qi@linaro.org>
7078
7079 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7080 instead of 0.
7081
f7000548
YQ
70822017-09-05 Yao Qi <yao.qi@linaro.org>
7083
7084 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7085 * regcache.c (get_thread_regcache): Use VEC_length.
7086 (init_register_cache): Likewise.
7087 (regcache_cpy): Likewise.
7088 (registers_to_string): Iterate reg_defs via VEC_iterate.
7089 (find_regno): Likewise.
7090 (find_register_by_number): Use VEC_index.
7091 (register_size): Call find_register_by_number.
7092 (register_data): Call find_register_by_number.
7093 (supply_regblock): Use VEC_length.
7094 (regcache_raw_read_unsigned): Likewise.
7095 * tdesc.c (init_target_desc): Iterate reg_defs via
7096 VEC_iterate.
7097 (default_description): Update initializer.
7098 (copy_target_description): Don't update field num_registers.
7099 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7100 <num_registers>: Remove.
7101
50a421ac
SM
71022017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7103
7104 * Makefile.in (.SECONDARY): Define target.
7105
23fdd69e
SM
71062017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7107
7108 * linux-low.c (linux_wait_1): Adjust.
7109 * server.c (queue_stop_reply_callback): Adjust.
7110
0a2dde4a
SDJ
71112017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7112
7113 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7114 QEnvironmentUnset and QEnvironmentReset packets.
7115 (handle_query): Inform remote that QEnvironmentHexEncoded,
7116 QEnvironmentUnset and QEnvironmentReset are supported.
7117
6afd337d
SM
71182017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7119
7120 * inferiors.h (inferior_target_data): Rename to ...
7121 (thread_target_data): ... this.
7122 (inferior_regcache_data): Rename to ...
7123 (thread_regcache_data): ... this.
7124 (set_inferior_regcache_data): Rename to ...
7125 (set_thread_regcache_data): ... this.
7126 * inferiors.c (inferior_target_data): Rename to ...
7127 (thread_target_data): ... this.
7128 (inferior_regcache_data): Rename to ...
7129 (thread_regcache_data): ... this.
7130 (set_inferior_regcache_data): Rename to ...
7131 (set_thread_regcache_data): ... this.
7132 (free_one_thread): Update.
7133 * linux-low.h (get_thread_lwp): Update.
7134 * regcache.c (get_thread_regcache): Update.
7135 (regcache_invalidate_thread): Update.
7136 (free_register_cache_thread): Update.
7137 * win32-i386-low.c (update_debug_registers_callback): Update.
7138 (win32_get_current_dr): Update.
7139 * win32-low.c (thread_rec): Update.
7140 (delete_thread_info): Update.
7141 (continue_one_thread): Update.
7142 (suspend_one_thread): Update.
7143
a160cc46
SM
71442017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7145
7146 * inferiors.c (set_inferior_target_data): Remove.
7147 * inferiors.h (set_inferior_target_data): Remove.
7148
6d580b63
YQ
71492017-08-18 Yao Qi <yao.qi@linaro.org>
7150
7151 * Makefile.in (OBS): Add selftest.o.
7152 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7153 * configure, config.in: Re-generated.
7154 * server.c: Include common/sefltest.h.
7155 (captured_main): Handle option --selftest.
7156
f5a29eb0
YQ
71572017-08-09 Yao Qi <yao.qi@linaro.org>
7158
7159 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7160 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7161 i386-avx-mpx.o and i386-mmx.o.
7162 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7163 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7164 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7165 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7166 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7167 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7168 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7169 i386/amd64-avx-mpx.xml.
7170
57757c2f
YQ
71712017-08-09 Yao Qi <yao.qi@linaro.org>
7172
7173 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7174 and x32-avx-avx512.o.
7175 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7176 i386/x32-avx-avx512.xml.
7177
229d26fc
SM
71782017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7179
7180 * tracepoint.h (enum class fast_tpoint_collect_result): New
7181 enumeration.
7182 (fast_tracepoint_collecting): Change return type to
7183 fast_tpoint_collect_result.
7184 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7185 * linux-low.h: Include tracepoint.h.
7186 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7187 fast_tpoint_collect_result.
7188 * linux-low.c (handle_tracepoints): Adjust.
7189 (linux_fast_tracepoint_collecting): Change return type to
7190 fast_tpoint_collect_result.
7191 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7192 linux_wait_1, stuck_in_jump_pad_callback,
7193 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7194 proceed_one_lwp): Adjust to type change.
7195
2e1e43e1
YQ
71962017-07-10 Yao Qi <yao.qi@linaro.org>
7197
7198 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7199
adc764e7
YQ
72002017-06-29 Yao Qi <yao.qi@linaro.org>
7201
7202 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7203 Remove.
7204 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7205
a206891a
SM
72062017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7207
7208 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7209
9a6c7d9c
SDJ
72102017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7211
7212 * linux-low.c (linux_create_inferior): Adjust code to access the
7213 environment information via 'gdb_environ' class.
7214 * lynx-low.c (lynx_create_inferior): Likewise.
7215 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7216 (get_environ): Return a pointer to 'our_environ'.
7217 (captured_main): Initialize 'our_environ'.
7218 * server.h (get_environ): Adjust prototype.
7219 * spu-low.c (spu_create_inferior): Adjust code to access the
7220 environment information via 'gdb_environ' class.
7221
ae3e2ccf
SM
72222017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7223
7224 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7225 usage of "register" keyword.
7226
3e019bdc
SM
72272017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7228
7229 * configure: Re-generate.
7230
8465943a
SM
72312017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7232
7233 * configure: Re-generate.
7234
cf0dd6f0
SM
72352017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7236
7237 * Makefile.in (COMPILE.pre): Add "-x c++".
7238
9845682b
SDJ
72392017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7240
7241 * fork-child.c: Conditionally include <signal.h>.
7242
aefd8b33
SDJ
72432017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7244
7245 * server.c (handle_general_set): Handle new packet
7246 "QStartupWithShell".
7247 (handle_query): Add "QStartupWithShell" to the list of supported
7248 packets.
7249 (gdbserver_usage): Add help text explaining the
7250 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7251 options.
7252 (captured_main): Recognize and act upon the presence of the new
7253 CLI options.
7254
2090129c
SDJ
72552017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7256 Pedro Alves <palves@redhat.com>
7257
7258 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7259 * configure: Regenerate.
7260 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7261 "fork-inferior.o".
7262 (i[34567]86-*-lynxos*): Likewise.
7263 (spu*-*-*): Likewise.
7264 * fork-child.c: New file.
7265 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7266 and "environ.h".
7267 (linux_ptrace_fun): New function.
7268 (linux_create_inferior): Adjust function prototype to reflect
7269 change on "target.h". Adjust function code to use
7270 "fork_inferior".
7271 (linux_request_interrupt): Delete "signal_pid".
7272 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7273 (lynx_ptrace_fun): New function.
7274 (lynx_create_inferior): Adjust function prototype to reflect
7275 change on "target.h". Adjust function code to use
7276 "fork_inferior".
7277 * nto-low.c (nto_create_inferior): Adjust function prototype and
7278 code to reflect change on "target.h". Update comments.
7279 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7280 "common-terminal.h" and "environ.h".
7281 (terminal_fd): Moved to fork-child.c.
7282 (old_foreground_pgrp): Likewise.
7283 (restore_old_foreground_pgrp): Likewise.
7284 (last_status): Make it global.
7285 (last_ptid): Likewise.
7286 (our_environ): New variable.
7287 (startup_with_shell): Likewise.
7288 (program_name): Likewise.
7289 (program_argv): Rename to...
7290 (program_args): ...this.
7291 (wrapper_argv): New variable.
7292 (start_inferior): Delete function.
7293 (get_exec_wrapper): New function.
7294 (get_exec_file): Likewise.
7295 (get_environ): Likewise.
7296 (prefork_hook): Likewise.
7297 (post_fork_inferior): Likewise.
7298 (postfork_hook): Likewise.
7299 (postfork_child_hook): Likewise.
7300 (handle_v_run): Update code to deal with arguments coming from the
7301 remote host. Update calls from "start_inferior" to
7302 "create_inferior".
7303 (captured_main): Likewise. Initialize environment variable. Call
7304 "have_job_control".
7305 * server.h (post_fork_inferior): New prototype.
7306 (get_environ): Likewise.
7307 (last_status): Declare.
7308 (last_ptid): Likewise.
7309 (signal_pid): Likewise.
7310 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7311 (spu_ptrace_fun): New function.
7312 (spu_create_inferior): Adjust function prototype to reflect change
7313 on "target.h". Adjust function code to use "fork_inferior".
7314 * target.c (target_terminal_init): New function.
7315 (target_terminal_inferior): Likewise.
7316 (target_terminal_ours): Likewise.
7317 * target.h: Include <vector>.
7318 (struct target_ops) <create_inferior>: Update prototype.
7319 (create_inferior): Update macro.
7320 * utils.c (gdb_flush_out_err): New function.
7321 * win32-low.c (win32_create_inferior): Adjust function prototype
7322 and code to reflect change on "target.h".
7323
043a4934
SDJ
73242017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7325
7326 * inferiors.c (switch_to_thread): New function.
7327
15652511
SDJ
73282017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7329
7330 * Makefile.in (SFILE): Add "common/job-control.c".
7331 (OBS): Add "job-control.o".
7332
21ea5acd
SDJ
73332017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7334
7335 * Makefile: Remove "@host_makefile_frag@".
7336
e13cb306
PA
73372017-05-05 Pedro Alves <palves@redhat.com>
7338
7339 * configure: Regenerate.
7340
c94fee56
SDJ
73412017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7342
7343 * configure: Regenerate.
7344
a0ff9e1a
SM
73452017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7346
7347 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7348 software_single_step change of return type to
7349 std::vector<CORE_ADDR>.
7350 * linux-low.c (install_software_single_step_breakpoints):
7351 Likewise.
7352 * linux-low.h (install_software_single_step_breakpoints):
7353 Likewise.
7354
be628ab8
SDJ
73552017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7356
7357 * remote-utils.c: Include "gdb_termios.h" instead of
7358 "terminal.h".
7359 * terminal.h: Delete file.
7360
7c5ded6a
SDJ
73612017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7362
7363 * server.c: Include <vector>.
7364 <program_argv, wrapper_argv>: Convert to std::vector.
7365 (start_inferior): Rewrite function to use C++.
7366 (handle_v_run): Likewise. Update code that calculates the argv
7367 based on the vRun packet; use C++.
7368 (captured_main): Likewise.
7369
436252de
SM
73702017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7371
7372 * server.c (handle_v_cont): Initialize thread_resume::thread
7373 with null_ptid.
7374
9bf2a700
PA
73752017-04-05 Pedro Alves <palves@redhat.com>
7376
7377 * configure: Regenerate.
7378
a121b7c1
PA
73792017-04-05 Pedro Alves <palves@redhat.com>
7380
7381 * gdbreplay.c (sync_error): Constify.
7382 * linux-x86-low.c (push_opcode): Constify.
7383
21c8a587
PA
73842017-04-05 Pedro Alves <palves@redhat.com>
7385
7386 * win32-low.c (get_child_debug_event)
7387 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7388 Report TARGET_WAITKIND_SPURIOUS instead.
7389
fb32b4f7
PA
73902017-04-05 Pedro Alves <palves@redhat.com>
7391
e79be6e5
SM
7392 * remote-utils.c (remote_prepare, remote_open): Constify.
7393 * remote-utils.h (remote_prepare, remote_open): Constify.
7394 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7395
65dd1e59
SM
73962017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7397
7398 * Makefile.in (clean): Clear .deps.
7399
8fa5b777
SM
74002017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7401
7402 * .gitignore: Remove generated files, replace with wildcard.
7403 * (clean): Replace removal of generated files with wildcard.
7404 (version.c): Replace with...
7405 (version-generated.c): ...this.
7406 (xml-builtin.c): Replace with...
7407 (xml-builtin-generated.c): ...this.
7408 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7409 (%.c: *regformats*): Replace with...
7410 (%-generated.c: *regformats*): ...this.
7411
a12e714b
MF
74122017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7413
7414 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7415 (xtensa_fill_gregset): Call collect_register_by_name for
7416 threadptr register.
7417 (xtensa_store_gregset): Call supply_register_by_name for
7418 threadptr register.
7419
1a09b50a
MF
74202017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7421
7422 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7423 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7424 (xtensa_store_gregset): Call supply_register for all registers in
7425 a0_regnum..a0_regnum + C0_NREGS range.
7426
1a01e7c6
SM
74272017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7428
7429 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7430 (ax-ipa.o: ax.c): Remove.
7431 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7432 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7433 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7434 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7435 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7436
36bc18a8
SM
74372017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7438
7439 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7440 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7441 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7442 (errors-ipa.o: ../common/errors.c): Remove.
7443 (format-ipa.o: ../common/format.c): Remove.
7444 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7445
a8ebe3d5
SM
74462017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7447
7448 * Makefile.in (%-ipa.o: %.c): New rule.
7449 (tracepoint-ipa.o: tracepoint.c): Remove.
7450 (utils-ipa.o: utils.c): Remove.
7451 (remote-utils-ipa.o: remote-utils.c): Remove.
7452 (regcache-ipa.o: regcache.c): Remove.
7453 (i386-linux-ipa.o: i386-linux.c): Remove.
7454 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7455 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7456 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7457 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7458 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7459 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7460 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7461 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7462 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7463 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7464 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7465 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7466 (aarch64-ipa.o: aarch64.c): Remove.
7467 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7468 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7469 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7470 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7471 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7472 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7473 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7474 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7475 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7476 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7477 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7478 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7479 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7480 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7481 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7482 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7483 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7484 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7485 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7486 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7487 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7488 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7489 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7490 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7491 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7492 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7493 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7494 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7495 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7496 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7497 (tdesc-ipa.o: tdesc.c): Remove.
7498 (x32-linux-ipa.o: x32-linux.c): Remove.
7499 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7500 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7501
50cfacb7
SM
75022017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7503
7504 * Makefile.in (%.o: ../arch/%.c): New rule.
7505 (arm.o: ../arch/arm.c): Remove.
7506 (arm-linux.o: ../arch/arm-linux.c): Remove.
7507 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7508 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7509
c5a22423
SM
75102017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7511
7512 * Makefile.in (%.o: ../nat/%.c): New rule.
7513 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7514 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7515 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7516 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7517 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7518 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7519 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7520 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7521 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7522 (linux-personality.o: ../nat/linux-personality.c): Remove.
7523 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7524 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7525 (x86-linux.o: ../nat/x86-linux.c): Remove.
7526 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7527 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7528
6bda016b
SM
75292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7530
7531 * Makefile.in (%.o: ../common/%.c): New rule.
7532 (signals.o: ../common/signals.c): Remove.
7533 (print-utils.o: ../common/print-utils.c): Remove.
7534 (rsp-low.o: ../common/rsp-low.c): Remove.
7535 (common-utils.o: ../common/common-utils.c): Remove.
7536 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7537 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7538 (vec.o: ../common/vec.c): Remove.
7539 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7540 (xml-utils.o: ../common/xml-utils.c): Remove.
7541 (ptid.o: ../common/ptid.c): Remove.
7542 (buffer.o: ../common/buffer.c): Remove.
7543 (format.o: ../common/format.c): Remove.
7544 (filestuff.o: ../common/filestuff.c): Remove.
7545 (agent.o: ../common/agent.c): Remove.
7546 (errors.o: ../common/errors.c): Remove.
7547 (environ.o: ../common/environ.c): Remove.
7548 (common-debug.o: ../common/common-debug.c): Remove.
7549 (cleanups.o: ../common/cleanups.c): Remove.
7550 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7551 (fileio.o: ../common/fileio.c): Remove.
7552 (common-regcache.o: ../common/common-regcache.c): Remove.
7553 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7554 (new-op.o: ../common/new-op.c): Remove.
7555 (btrace-common.o: ../common/btrace-common.c): Remove.
7556
21122961
SM
75572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7558
7559 * Makefile.in (%.o: ../target/%.c): New rule.
7560 (waitstatus.o: ../target/waitstatus.c): Remove.
7561
c362e621
SM
75622017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7563
7564 * Makefile.in
7565 (%.c: ../regformats/%.dat,
7566 (%.c: ../regformats/arm/%.dat,
7567 (%.c: ../regformats/i386/%.dat,
7568 (%.c: ../regformats/rs6000/%.dat): New rules.
7569 (aarch64.c): Remove.
7570 (reg-arm.c): Remove.
7571 (arm-with-iwmmxt.c): Remove.
7572 (arm-with-vfpv2.c): Remove.
7573 (arm-with-vfpv3.c): Remove.
7574 (arm-with-neon.c): Remove.
7575 (reg-bfin.c): Remove.
7576 (reg-cris.c): Remove.
7577 (reg-crisv32.c): Remove.
7578 (i386.c): Remove.
7579 (i386-linux.c): Remove.
7580 (i386-avx.c): Remove.
7581 (i386-avx-linux.c): Remove.
7582 (i386-avx-avx512.c): Remove.
7583 (i386-avx-avx512-linux.c): Remove.
7584 (i386-mpx.c): Remove.
7585 (i386-mpx-linux.c): Remove.
7586 (i386-avx-mpx-avx512-pku.c): Remove.
7587 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7588 (i386-avx-mpx.c): Remove.
7589 (i386-avx-mpx-linux.c): Remove.
7590 (i386-mmx.c): Remove.
7591 (i386-mmx-linux.c): Remove.
7592 (reg-ia64.c): Remove.
7593 (reg-m32r.c): Remove.
7594 (reg-m68k.c): Remove.
7595 (reg-cf.c): Remove.
7596 (mips-linux.c): Remove.
7597 (mips-dsp-linux.c): Remove.
7598 (mips64-linux.c): Remove.
7599 (mips64-dsp-linux.c): Remove.
7600 (nios2-linux.c): Remove.
7601 (powerpc-32.c): Remove.
7602 (powerpc-32l.c): Remove.
7603 (powerpc-altivec32l.c): Remove.
7604 (powerpc-cell32l.c): Remove.
7605 (powerpc-vsx32l.c): Remove.
7606 (powerpc-isa205-32l.c): Remove.
7607 (powerpc-isa205-altivec32l.c): Remove.
7608 (powerpc-isa205-vsx32l.c): Remove.
7609 (powerpc-e500l.c): Remove.
7610 (powerpc-64l.c): Remove.
7611 (powerpc-altivec64l.c): Remove.
7612 (powerpc-cell64l.c): Remove.
7613 (powerpc-vsx64l.c): Remove.
7614 (powerpc-isa205-64l.c): Remove.
7615 (powerpc-isa205-altivec64l.c): Remove.
7616 (powerpc-isa205-vsx64l.c): Remove.
7617 (s390-linux32.c): Remove.
7618 (s390-linux32v1.c): Remove.
7619 (s390-linux32v2.c): Remove.
7620 (s390-linux64.c): Remove.
7621 (s390-linux64v1.c): Remove.
7622 (s390-linux64v2.c): Remove.
7623 (s390-te-linux64.c): Remove.
7624 (s390-vx-linux64.c): Remove.
7625 (s390-tevx-linux64.c): Remove.
7626 (s390x-linux64.c): Remove.
7627 (s390x-linux64v1.c): Remove.
7628 (s390x-linux64v2.c): Remove.
7629 (s390x-te-linux64.c): Remove.
7630 (s390x-vx-linux64.c): Remove.
7631 (s390x-tevx-linux64.c): Remove.
7632 (tic6x-c64xp-linux.c): Remove.
7633 (tic6x-c64x-linux.c): Remove.
7634 (tic6x-c62x-linux.c): Remove.
7635 (reg-sh.c): Remove.
7636 (reg-sparc64.c): Remove.
7637 (reg-spu.c): Remove.
7638 (amd64.c): Remove.
7639 (amd64-linux.c): Remove.
7640 (amd64-avx.c): Remove.
7641 (amd64-avx-linux.c): Remove.
7642 (amd64-avx-avx512.c): Remove.
7643 (amd64-avx-avx512-linux.c): Remove.
7644 (amd64-mpx.c): Remove.
7645 (amd64-mpx-linux.c): Remove.
7646 (amd64-avx-mpx-avx512-pku.c): Remove.
7647 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7648 (amd64-avx-mpx.c): Remove.
7649 (amd64-avx-mpx-linux.c): Remove.
7650 (x32.c): Remove.
7651 (x32-linux.c): Remove.
7652 (x32-avx.c): Remove.
7653 (x32-avx-linux.c): Remove.
7654 (x32-avx-avx512.c): Remove.
7655 (x32-avx-avx512-linux.c): Remove.
7656 (reg-xtensa.c): Remove.
7657 (reg-tilegx.c): Remove.
7658 (reg-tilegx32.c): Remove.
7659
1672e0d9
SDJ
76602017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7661
7662 * Makefile.in (SFILES): Add "common/environ.c".
7663 (OBJS): Add "common/environ.h".
7664
239b6d10
WT
76652017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7666
7667 * configure.ac: Check if the fs_base and gs_base members of
7668 `struct user_regs_struct' exist.
7669 * config.in: Regenerated.
7670 * configure: Likewise.
7671
694b382c
AT
76722017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7673
7674 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7675 target_read_memory.
7676 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7677 (get_next_pcs_syscall_next_pc): Likewise.
7678
7dc53023
LM
76792016-12-23 Luis Machado <lgustavo@codesourcery.com>
7680
7681 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7682 * nto-x86-low.c: Likewise.
7683
ad02e4fe
SM
76842016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7685
7686 * Makefile.in: Include disable-implicit-rules.mk.
7687
dcb07cfa
PA
76882016-11-23 Pedro Alves <palves@redhat.com>
7689
7690 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7691 (debug_vprintf): Use std::chrono::steady_clock instead of
7692 gettimeofday. Use '.' instead of ':'.
7693 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7694 (get_timestamp): Use std::chrono::steady_clock instead of
7695 gettimeofday.
7696
8629c02c
SM
76972016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7698
7699 * Makefile.in: Fix whitespace formatting.
7700
b593ecca
SM
77012016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7702
7703 * Makefile.in (SFILES, OBS): Flatten list and order
7704 alphabetically.
7705
9986ba08
PA
77062016-11-23 Pedro Alves <palves@redhat.com>
7707
7708 * event-loop.c (handle_file_event): Use warning.
7709 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7710 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7711 Use warning.
7712
4eefa7bc
PA
77132016-11-23 Pedro Alves <palves@redhat.com>
7714
7715 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7716 output.
7717 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7718 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7719 debug_printf and debug_flush for debug output.
7720 * server.c (handle_general_set): Likewise.
7721 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7722 output.
7723
5443506e
SM
77242016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7725
7726 * Makefile.in (.c.o): Replace rule with ...
7727 (%.o: %.c): ... this one.
7728
3b165252
SM
77292016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7730
7731 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7732 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7733 make.
7734 * configure.ac: Remove checks for the make program.
7735 * configure: Re-generate.
7736
0bcda685
PA
77372016-10-28 Pedro Alves <palves@redhat.com>
7738
7739 * Makefile.in (CXX_DIALECT): Get from configure.
7740 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7741 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7742 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7743 * config.in: Regenerate.
7744 * configure: Regenerate.
7745
c3805894
YQ
77462016-10-27 Yao Qi <yao.qi@linaro.org>
7747
7748 * linux-low.c (linux_supports_range_stepping): Return true if
7749 can_software_single_step return true.
7750
89342618
YQ
77512016-10-27 Yao Qi <yao.qi@linaro.org>
7752
7753 * inferiors.c (find_inferior_in_random): New function.
7754 * inferiors.h (find_inferior_in_random): Declare.
7755 * linux-low.c (linux_wait_for_event_filtered): Call
7756 find_inferior_in_random instead of find_inferior.
7757
e3652c84
YQ
77582016-10-27 Yao Qi <yao.qi@linaro.org>
7759
7760 * linux-low.c (linux_wait_1): If single-step breakpoints are
7761 inserted, remove them.
7762
5a04c4cf
PA
77632016-10-26 Pedro Alves <palves@redhat.com>
7764
7765 * linux-low.c (handle_extended_wait): Link parent/child fork
7766 threads.
7767 (linux_wait_1): Unlink them.
7768 (linux_set_resume_request): Ignore resume requests for
7769 already-resumed and unhandled fork child threads.
7770 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7771 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7772 New functions.
7773 (handle_v_requests) <vCont>: Don't call require_running.
7774 * server.h (in_queued_stop_replies): New declaration.
7775
cb93dc7f
YQ
77762016-10-24 Yao Qi <yao.qi@linaro.org>
7777
7778 PR server/20733
7779 * linux-aarch64-low.c (append_insns): Cast the return value to
7780 'uint32_t *'.
7781
a1078bea
YQ
77822016-10-10 Yao Qi <yao.qi@linaro.org>
7783
7784 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7785
1fb77080
SDJ
77862016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7787
7788 * target.c (target_supports_multi_process): New function, moved
7789 from...
7790 * target.h (target_supports_multi_process): ... here. Remove
7791 macro.
7792
39b5a3b9
TT
77932016-10-05 Tom Tromey <tom@tromey.com>
7794
7795 PR remote/20655:
7796 * tracepoint.c (handle_tracepoint_bkpts): Check
7797 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7798
c1d0b70a
YQ
77992016-10-05 Yao Qi <yao.qi@linaro.org>
7800
7801 * configure.srv: Update the path of arm-*.xml files.
7802
0a69eedb
YQ
78032016-10-05 Terry Guo <terry.guo@arm.com>
7804 Yao Qi <yao.qi@linaro.org>
7805
7806 * Makefile.in: Adjust the path of rules.
7807 * configure.srv: Update the path of xml files.
7808 * regformats/arm-with-iwmmxt.dat: Regenerated.
7809 * regformats/arm-with-neon.dat: Likewise.
7810 * regformats/arm-with-vfpv2.dat: Likewise.
7811 * regformats/arm-with-vfpv3.dat Likewise.
7812
17e16485
YQ
78132016-09-30 Yao Qi <yao.qi@linaro.org>
7814
7815 PR gdbserver/20627
7816 * target.c (target_stop_and_wait): Don't call
7817 target_continue_no_signal, use resume_stop instead.
7818
edeeb602
YQ
78192016-09-26 Yao Qi <yao.qi@linaro.org>
7820
7821 * linux-low.c (linux_wait_1): Call debug_exit.
7822
503b1c39
PA
78232016-09-23 Pedro Alves <palves@redhat.com>
7824
7825 * Makefile.in (SFILES): Add common/new-op.c.
7826 (OBS): Add common/new-op.o.
7827 (new-op.o): New rule.
7828
74172ecf
SM
78292016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7830
7831 * .gitinore: Ignore more files.
7832
fc6cda2e
YQ
78332016-09-21 Yao Qi <yao.qi@linaro.org>
7834
7835 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7836 23.
7837
bc1e6c81
SDJ
78382016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7839
7840 * server.c (start_inferior): Call target_mourn_inferior instead of
7841 mourn_inferior; pass ptid_t argument to it.
7842 (resume): Likewise.
7843 (handle_target_event): Likewise.
7844 * target.c (target_mourn_inferior): New function.
7845 * target.h (mourn_inferior): Delete macro.
7846
0e00e962
AA
78472016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7848
7849 * linux-low.c (lwp_is_stepping): New function.
7850
1d8cb77d
CL
78512016-09-06 Carl Love <cel@us.ibm.com>
7852
7853 * server.c (start_inferior): Fixed comment, requested comment change
7854 didn't get updated correctly. Removed reference to ptrace () call as
7855 it is only true on Linux systems.
7856
7313bced
CL
78572016-09-06 Carl Love <cel@us.ibm.com>
7858
7859 * server.c (start_inferior): Do not call
7860 function target_post_create_inferior () if the
7861 inferior process has already exited.
7862
cf6de44d
PA
78632016-09-05 Pedro Alves <palves@redhat.com>
7864
7865 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7866 (COMPILE.pre, CC_LD): Use CXX directly.
7867 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7868 * acinclude.m4: Don't include build-with-cxx.m4.
7869 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7870 * configure: Regenerate.
7871
c1da6748
AT
78722016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7873
7874 PR gdb/19495
7875 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7876 call writing data to own_buf.
7877
f2b9e3df
SDJ
78782016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7879
7880 * target.c (mywait): Call target_wait instead of
7881 the_target->wait.
7882 (target_wait): New function.
7883
049a8570
SDJ
78842016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7885
7886 * server.c (start_inferior): New variable 'ptid'. Replace calls
7887 to the_target->resume by target_continue{,_no_signal}, depending
7888 on the case.
7889 * target.c (target_stop_and_wait): Call target_continue_no_signal
7890 instead of the_target->resume.
7891 (target_continue): New function.
7892
3aa5cfa0
AT
78932016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7894
7895 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7896
754653a7
AZ
78972016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7898
7899 PR server/20491
7900 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7901 ps_prochandle.
7902 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7903 * linux-arm-low.c (ps_get_thread_area): Likewise.
7904 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7905 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7906 * linux-mips-low.c (ps_get_thread_area): Likewise.
7907 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7908 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7909 * linux-x86-low.c (ps_get_thread_area): Likewise.
7910 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7911
ed036b40
PA
79122016-08-19 Pedro Alves <palves@redhat.com>
7913
7914 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7915
c8ef42ee
PA
79162016-08-19 Pedro Alves <palves@redhat.com>
7917
7918 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7919 comment. Use memcpy instead of casting through unsigned long.
7920
9c235a72
PA
79212016-08-19 Pedro Alves <palves@redhat.com>
7922
7923 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7924 allocating around 0x80000000.
7925
201506da
PA
79262016-08-19 Pedro Alves <palves@redhat.com>
7927
7928 PR gdb/20415
7929 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7930 (x32-avx512-linux-ipa.o): New rules.
7931 * configure.ac (x86_64-*-linux*): New x32 check.
7932 * configure.srv (ipa_x32_linux_regobj): New.
7933 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7934 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7935 descriptions.
7936 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7937 descriptions.
7938 * configure: Regenerate.
7939
f348d89a
PA
79402016-08-09 Pedro Alves <palves@redhat.com>
7941
7942 PR gdb/18653
7943 * Makefile.in (OBS): Add signals-state-save-restore.o.
7944 (signals-state-save-restore.o): New rule.
7945 * config.in: Regenerate.
7946 * configure: Regenerate.
7947 * linux-low.c: Include "signals-state-save-restore.h".
7948 (linux_create_inferior): Call
7949 restore_original_signals_state.
7950 * server.c: Include "dispositions-save-restore.h".
7951 (captured_main): Call save_original_signals_state.
7952
1baf5149
PA
79532016-08-05 Pedro Alves <palves@redhat.com>
7954
7955 * configure: Regenerate.
7956
fcd4a73d
YQ
79572016-08-04 Yao Qi <yao.qi@linaro.org>
7958
7959 * linux-low.c (regsets_fetch_inferior_registers): Check
7960 errno is ESRCH or not.
7961
979659d0
YQ
79622016-08-02 Yao Qi <yao.qi@linaro.org>
7963
7964 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7965 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7966 (thread_db_load_search): Update.
7967 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7968 td_ta_set_event and td_ta_event_getmsg.
7969
6598661d
PA
79702016-07-26 Pedro Alves <palves@redhat.com>
7971
7972 PR server/20414
7973 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7974 of unsigned long for 64-bit registers and use uint32_t instead of
7975 unsigned int for 32-bit registers.
7976
9cf12d57
PA
79772016-07-26 Pedro Alves <palves@redhat.com>
7978
7979 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7980 to 'ptrace'.
7981
305450ed
TT
79822016-07-21 Tom Tromey <tom@tromey.com>
7983
7984 * configure: Rebuild.
7985
2583da7c
YQ
79862016-07-21 Yao Qi <yao.qi@linaro.org>
7987
7988 * mem-break.c (find_gdb_breakpoint): Cast bp to
7989 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7990
21536b36
YQ
79912016-07-21 Yao Qi <yao.qi@linaro.org>
7992
7993 * server.c (handle_v_requests): Support s and S actions
7994 if target_supports_software_single_step return true.
7995
8901d193
YQ
79962016-07-21 Yao Qi <yao.qi@linaro.org>
7997
7998 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7999 is resume_step, call maybe_hw_step.
8000 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8001 and unstop them.
8002 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8003 breakpoints or not.
8004 (proceed_one_lwp): If resume request is resume_step, install
8005 reinsert breakpoints and call maybe_hw_step.
8006
0e9a339e
YQ
80072016-07-21 Yao Qi <yao.qi@linaro.org>
8008
8009 * linux-low.c (proceed_one_lwp): Declare.
8010 (linux_resume_one_thread): Remove local variable 'step'.
8011 Lift code enqueue signal. Call proceed_one_lwp instead of
8012 linux_resume_one_lwp.
8013
4281b351
YQ
80142016-07-21 Yao Qi <yao.qi@linaro.org>
8015
8016 * linux-low.c (linux_resume_one_thread): Call
8017 enqueue_pending_signal.
8018
984a2c04
YQ
80192016-07-21 Yao Qi <yao.qi@linaro.org>
8020
8021 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8022 * inferiors.c (do_restore_current_thread_cleanup): New function.
8023 (make_cleanup_restore_current_thread): Likewise.
8024 * linux-low.c (install_software_single_step_breakpoints): Call
8025 make_cleanup_restore_current_thread. Switch current_thread to
8026 thread.
8027
bec903c9
YQ
80282016-07-21 Yao Qi <yao.qi@linaro.org>
8029
8030 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8031 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8032 (clone_one_breakpoint): Likewise.
8033 (delete_reinsert_breakpoints): Change parameter to thread.
8034 Callers updated.
8035 (has_reinsert_breakpoints): Likewise.
8036 (uninsert_reinsert_breakpoints): Likewise.
8037 (reinsert_reinsert_breakpoints): Likewise.
8038 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8039 (delete_reinsert_breakpoints): Likewise.
8040 (reinsert_reinsert_breakpoints): Likewise.
8041 (uninsert_reinsert_breakpoints): Likewise.
8042 (has_reinsert_breakpoints): Likewise.
8043
63c40ec7
YQ
80442016-07-21 Yao Qi <yao.qi@linaro.org>
8045
8046 * inferiors.c (get_thread_process): Make parameter const.
8047 * inferiors.h (get_thread_process): Update declaration.
8048 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8049 Add new parameters child_thread and parent_thread. Callers
8050 updated.
8051 * mem-break.h (clone_all_breakpoints): Update declaration.
8052
9aa76cd0
YQ
80532016-07-21 Yao Qi <yao.qi@linaro.org>
8054
8055 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8056 <command_list, handler>: Remove.
8057 (struct gdb_breakpoint): New.
8058 (struct other_breakpoint): New.
8059 (struct reinsert_breakpoint): New.
8060 (is_gdb_breakpoint): New function.
8061 (any_persistent_commands): Update command_list if
8062 is_gdb_breakpoint returns true.
8063 (set_breakpoint): Create breakpoints according to their types.
8064 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8065 (set_gdb_breakpoint_1): Likewise.
8066 (set_gdb_breakpoint): Likewise.
8067 (clear_breakpoint_conditions): Change parameter type to
8068 'struct gdb_breakpoint *'.
8069 (clear_breakpoint_commands): Likewise.
8070 (clear_breakpoint_conditions_and_commands): Likewise.
8071 (add_condition_to_breakpoint): Likewise.
8072 (add_breakpoint_condition): Likewise.
8073 (add_commands_to_breakpoint): Likewise.
8074 (check_breakpoints): Check other_breakpoint.
8075 (clone_one_breakpoint): Clone breakpopint according to its type.
8076 * mem-break.h (struct gdb_breakpoint): Declare.
8077 (set_gdb_breakpoint): Update declaration.
8078 (clear_breakpoint_conditions_and_commands): Likewise.
8079 (add_breakpoint_condition): Likewise.
8080 (add_breakpoint_commands): Likewise.
8081 * server.c (process_point_options): Change parameter type to
8082 'struct gdb_breakpoint *'.
8083
811f8301
YQ
80842016-07-21 Yao Qi <yao.qi@linaro.org>
8085
8086 * mem-break.c (set_breakpoint_at): Rename it to ...
8087 (set_breakpoint_type_at): ... it.
8088 (set_breakpoint_at): Call set_breakpoint_type_at.
8089 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8090 * mem-break.h (set_breakpoint_at): Update comments.
8091
b1c51e36
CLT
80922016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8093
8094 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8095 to buf parameter.
8096 (nios2_store_gregset): Likewise.
8097
ced2dffb
PA
80982016-07-01 Pedro Alves <palves@redhat.com>
8099 Antoine Tremblay <antoine.tremblay@ericsson.com>
8100
8101 * linux-low.c: Change interface to take the target lwp_info
8102 pointer directly and return void. Handle detaching from a zombie
8103 thread.
8104 (linux_detach_lwp_callback): New function.
8105 (linux_detach): Detach from the leader thread after detaching from
8106 the clone threads.
8107
2ac09a5b
YQ
81082016-06-28 Yao Qi <yao.qi@linaro.org>
8109
8110 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8111 for variable new_offset.
8112 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8113 (aarch64_ftrace_insn_reloc_cb): Likewise.
8114 (aarch64_ftrace_insn_reloc_tb): Likewise.
8115 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8116 PRIx64 instead of PRIx32.
8117
79e7fd4f
YQ
81182016-06-28 Yao Qi <yao.qi@linaro.org>
8119
8120 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8121 (the_low_target): Install arm_get_syscall_trapinfo.
8122
061fc021
YQ
81232016-06-28 Yao Qi <yao.qi@linaro.org>
8124
8125 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8126 function.
8127 (the_low_target): Install aarch64_get_syscall_trapinfo.
8128
4cc32bec
YQ
81292016-06-28 Yao Qi <yao.qi@linaro.org>
8130
8131 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8132 Callers updated.
8133 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8134 Remove parameter sysno.
8135 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8136 sysret.
8137
782c1122
AA
81382016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8139
8140 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8141 (s390_emit_ne_goto): Likewise.
8142 (s390_emit_lt_goto): Likewise.
8143 (s390_emit_le_goto): Likewise.
8144 (s390_emit_gt_goto): Likewise.
8145 (s390_emit_ge_goto): Likewise.
8146 (s390x_emit_eq_goto): Likewise.
8147 (s390x_emit_ne_goto): Likewise.
8148 (s390x_emit_lt_goto): Likewise.
8149 (s390x_emit_le_goto): Likewise.
8150 (s390x_emit_gt_goto): Likewise.
8151 (s390x_emit_ge_goto): Likewise.
8152 (s390_emit_ops_impl): Mark variable static.
8153 (s390x_emit_ops): Likewise.
8154
2e7b624b
YQ
81552016-06-17 Yao Qi <yao.qi@linaro.org>
8156
8157 * linux-low.c (handle_extended_wait): Call
8158 uninsert_reinsert_breakpoints for the parent process. Remove
8159 reinsert breakpoints from the child process. Reinsert them to
8160 the parent process when vfork is done.
8161 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8162 (reinsert_reinsert_breakpoints): New function.
8163 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8164 (reinsert_reinsert_breakpoints): Declare.
8165
8a81c5d7
YQ
81662016-06-17 Yao Qi <yao.qi@linaro.org>
8167
8168 * linux-low.c (handle_extended_wait): If the parent is doing
8169 step-over, remove the reinsert breakpoints from the forked child.
8170
f50bf8e5
YQ
81712016-06-17 Yao Qi <yao.qi@linaro.org>
8172
8173 * linux-low.c (unsuspend_all_lwps): Declare.
8174 (linux_low_filter_event): If thread exited, call finish_step_over.
8175 If step-over is finished, unsuspend other threads.
8176
8376a3cb
YQ
81772016-06-17 Yao Qi <yao.qi@linaro.org>
8178
8179 * linux-low.c (linux_resume_one_lwp_throw): Assert
8180 has_reinsert_breakpoints returns false.
8181 * mem-break.c (delete_disabled_breakpoints): Assert
8182 bp type isn't reinsert_breakpoint.
8183
f79b145d
YQ
81842016-06-17 Yao Qi <yao.qi@linaro.org>
8185
8186 * linux-low.c (maybe_hw_step): New function.
8187 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8188 (finish_step_over): Switch current_thread to lwp temporarily,
8189 and assert has_reinsert_breakpoints returns true.
8190 (proceed_one_lwp): Call maybe_hw_step.
8191 * mem-break.c (has_reinsert_breakpoints): New function.
8192 * mem-break.h (has_reinsert_breakpoints): Declare.
8193
0ae534d2
JT
81942016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8195
8196 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8197
fcdad592
YQ
81982016-05-17 Yao Qi <yao.qi@linaro.org>
8199
8200 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8201 instead of find_inferior.
8202
9e784964
YQ
82032016-05-05 Yao Qi <yao.qi@linaro.org>
8204
8205 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8206 Initialize res to zero.
8207
cf2ebb6e
YQ
82082016-05-05 Yao Qi <yao.qi@linaro.org>
8209
8210 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8211 to uint32_t.
8212
c1aebf87
UW
82132016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8214
8215 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8216 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8217 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8218
35fd2deb 82192016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8220 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8221
8222 * tracepoint.c (write_inferior_int8): New function.
8223 (cmd_qtenable_disable): Write enable flag using
8224 write_inferior_int8.
8225
484b3c32
YQ
82262016-04-25 Yao Qi <yao.qi@linaro.org>
8227
8228 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8229 (need_step_over_p): Return zero if the LWP has pending signals
8230 can be delivered on software single step target.
8231
85ba7d86
YQ
82322016-04-25 Yao Qi <yao.qi@linaro.org>
8233
8234 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8235 return instead of error.
8236
3539aa13
YQ
82372016-04-22 Yao Qi <yao.qi@linaro.org>
8238
8239 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8240 to 23.
8241
5b061e98
YQ
82422016-04-22 Yao Qi <yao.qi@linaro.org>
8243
8244 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8245 signal when stepping over breakpoint with software single
8246 step.
8247
3451269c
PA
82482016-04-21 Pedro Alves <palves@redhat.com>
8249
8250 * linux-s390-low.c (s390_collect_ptrace_register)
8251 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8252 add casts.
8253 (s390_check_regset): Use void * instead of gdb_byte *.
8254
a2358508
PA
82552016-04-20 Pedro Alves <palves@redhat.com>
8256
8257 * configure: Renegerate.
8258
6885166d
YQ
82592016-04-20 Yao Qi <yao.qi@linaro.org>
8260
8261 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8262 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8263 number 16.
8264 (arm_store_gregset): Likewise.
8265
2b863f51
WT
82662016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8267
8268 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8269 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8270 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8271 (amd64-avx-mpx-linux.c): New rules.
8272 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8273 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8274 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8275 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8276 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8277 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8278 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8279 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8280 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8281 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8282 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8283 * linux-x86-low.c (x86_linux_read_description): Add case for
8284 X86_XSTATE_AVX_MPX_MASK.
8285 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8286 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8287 init_registers_i386_avx_mpx_linux.
8288 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8289 (initialize_low_tracepoint): Call
8290 init_registers_i386_avx_mpx_linux.
8291 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8292 (initialize_low_tracepoint): Call
8293 init_registers_amd64_avx_mpx_linux.
8294 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8295 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8296 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8297 declarations.
8298
9b30624b
PA
82992016-04-18 Pedro Alves <palves@redhat.com>
8300
8301 * configure: Regenerate.
8302
45e3745e
AT
83032016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8304
8305 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8306 (aarch64_emit_sub): Likewise.
8307
2afc13ff
PA
83082016-04-12 Pedro Alves <palves@redhat.com>
8309
8310 * utils.c (prepare_to_throw_exception): Delete.
8311
6e774b13
SM
83122016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8313
8314 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8315
4dca19f8
MK
83162016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8317
8318 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8319
d0a9981f
MK
83202016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8321
8322 * linux-aarch64-ipa.c: Add <elf.h> include.
8323 * linux-ppc-ipa.c: Add <elf.h> include.
8324 * linux-s390-ipa.c: Add <elf.h> include.
8325
252db07e
MK
83262016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8327
8328 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8329 (get_raw_reg_ptr): Likewise.
8330 (get_trace_state_variable_value_ptr): Likewise.
8331 (set_trace_state_variable_value_ptr): Likewise.
8332 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8333 char *.
8334
14e2b6d9
MK
83352016-03-31 Wei-cheng Wang <cole945@gmail.com>
8336 Marcin Kościelnicki <koriakin@0x04.net>
8337
8338 PR/17221
8339 * linux-ppc-low.c (emit_insns): New function.
8340 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8341 (ppc_emit_prologue): New function.
8342 (ppc_emit_epilogue): New function.
8343 (ppc_emit_add): New function.
8344 (ppc_emit_sub): New function.
8345 (ppc_emit_mul): New function.
8346 (ppc_emit_lsh): New function.
8347 (ppc_emit_rsh_signed): New function.
8348 (ppc_emit_rsh_unsigned): New function.
8349 (ppc_emit_ext): New function.
8350 (ppc_emit_zero_ext): New function.
8351 (ppc_emit_log_not): New function.
8352 (ppc_emit_bit_and): New function.
8353 (ppc_emit_bit_or): New function.
8354 (ppc_emit_bit_xor): New function.
8355 (ppc_emit_bit_not): New function.
8356 (ppc_emit_equal): New function.
8357 (ppc_emit_less_signed): New function.
8358 (ppc_emit_less_unsigned): New function.
8359 (ppc_emit_ref): New function.
8360 (ppc_emit_const): New function.
8361 (ppc_emit_reg): New function.
8362 (ppc_emit_pop): New function.
8363 (ppc_emit_stack_flush): New function.
8364 (ppc_emit_swap): New function.
8365 (ppc_emit_stack_adjust): New function.
8366 (ppc_emit_call): New function.
8367 (ppc_emit_int_call_1): New function.
8368 (ppc_emit_void_call_2): New function.
8369 (ppc_emit_if_goto): New function.
8370 (ppc_emit_goto): New function.
8371 (ppc_emit_eq_goto): New function.
8372 (ppc_emit_ne_goto): New function.
8373 (ppc_emit_lt_goto): New function.
8374 (ppc_emit_le_goto): New function.
8375 (ppc_emit_gt_goto): New function.
8376 (ppc_emit_ge_goto): New function.
8377 (ppc_write_goto_address): New function.
8378 (ppc_emit_ops_impl): New static variable.
8379 (ppc64v1_emit_prologue): New function.
8380 (ppc64v2_emit_prologue): New function.
8381 (ppc64_emit_epilogue): New function.
8382 (ppc64_emit_add): New function.
8383 (ppc64_emit_sub): New function.
8384 (ppc64_emit_mul): New function.
8385 (ppc64_emit_lsh): New function.
8386 (ppc64_emit_rsh_signed): New function.
8387 (ppc64_emit_rsh_unsigned): New function.
8388 (ppc64_emit_ext): New function.
8389 (ppc64_emit_zero_ext): New function.
8390 (ppc64_emit_log_not): New function.
8391 (ppc64_emit_bit_and): New function.
8392 (ppc64_emit_bit_or): New function.
8393 (ppc64_emit_bit_xor): New function.
8394 (ppc64_emit_bit_not): New function.
8395 (ppc64_emit_equal): New function.
8396 (ppc64_emit_less_signed): New function.
8397 (ppc64_emit_less_unsigned): New function.
8398 (ppc64_emit_ref): New function.
8399 (ppc64_emit_const): New function.
8400 (ppc64v1_emit_reg): New function.
8401 (ppc64v2_emit_reg): New function.
8402 (ppc64_emit_pop): New function.
8403 (ppc64_emit_stack_flush): New function.
8404 (ppc64_emit_swap): New function.
8405 (ppc64v1_emit_call): New function.
8406 (ppc64v2_emit_call): New function.
8407 (ppc64v1_emit_int_call_1): New function.
8408 (ppc64v2_emit_int_call_1): New function.
8409 (ppc64v1_emit_void_call_2): New function.
8410 (ppc64v2_emit_void_call_2): New function.
8411 (ppc64_emit_if_goto): New function.
8412 (ppc64_emit_eq_goto): New function.
8413 (ppc64_emit_ne_goto): New function.
8414 (ppc64_emit_lt_goto): New function.
8415 (ppc64_emit_le_goto): New function.
8416 (ppc64_emit_gt_goto): New function.
8417 (ppc64_emit_ge_goto): New function.
8418 (ppc64v1_emit_ops_impl): New static variable.
8419 (ppc64v2_emit_ops_impl): New static variable.
8420 (ppc_emit_ops): New function.
8421 (linux_low_target): Wire in ppc_emit_ops.
8422
a2174ba4
MK
84232016-03-31 Wei-cheng Wang <cole945@gmail.com>
8424 Marcin Kościelnicki <koriakin@0x04.net>
8425
8426 PR/17221
8427 * Makefile.in: Add powerpc-*-ipa.o
8428 * configure.srv: Add ipa_obj for powerpc*-linux.
8429 * linux-ppc-ipa.c: New file.
8430 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8431 includes.
8432 (PPC_FIELD): New macro.
8433 (PPC_SEXT): New macro.
8434 (PPC_OP6): New macro.
8435 (PPC_BO): New macro.
8436 (PPC_LI): New macro.
8437 (PPC_BD): New macro.
8438 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8439 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8440 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8441 (ppc_get_thread_area): New function.
8442 (is_elfv2_inferior): New function.
8443 (gen_ds_form): New function.
8444 (GEN_STD): New macro.
8445 (GEN_STDU): New macro.
8446 (GEN_LD): New macro.
8447 (GEN_LDU): New macro.
8448 (gen_d_form): New function.
8449 (GEN_ADDI): New macro.
8450 (GEN_ADDIS): New macro.
8451 (GEN_LI): New macro.
8452 (GEN_LIS): New macro.
8453 (GEN_ORI): New macro.
8454 (GEN_ORIS): New macro.
8455 (GEN_LWZ): New macro.
8456 (GEN_STW): New macro.
8457 (GEN_STWU): New macro.
8458 (gen_xfx_form): New function.
8459 (GEN_MFSPR): New macro.
8460 (GEN_MTSPR): New macro.
8461 (GEN_MFCR): New macro.
8462 (GEN_MTCR): New macro.
8463 (GEN_SYNC): New macro.
8464 (GEN_LWSYNC): New macro.
8465 (gen_x_form): New function.
8466 (GEN_OR): New macro.
8467 (GEN_MR): New macro.
8468 (GEN_LWARX): New macro.
8469 (GEN_STWCX): New macro.
8470 (GEN_CMPW): New macro.
8471 (gen_md_form): New function.
8472 (GEN_RLDICL): New macro.
8473 (GEN_RLDICR): New macro.
8474 (gen_i_form): New function.
8475 (GEN_B): New macro.
8476 (GEN_BL): New macro.
8477 (gen_b_form): New function.
8478 (GEN_BNE): New macro.
8479 (GEN_LOAD): New macro.
8480 (GEN_STORE): New macro.
8481 (gen_limm): New function.
8482 (gen_atomic_xchg): New function.
8483 (gen_call): New function.
8484 (ppc_relocate_instruction): New function.
8485 (ppc_install_fast_tracepoint_jump_pad): New function.
8486 (ppc_get_min_fast_tracepoint_insn_len): New function.
8487 (ppc_get_ipa_tdesc_idx): New function.
8488 (the_low_target): Wire in the new functions.
8489 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8490 tdescs.
8491 * linux-ppc-tdesc.h: New file.
8492
a13c4696
MK
84932016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8494
8495 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8496 (alloc_jump_pad_buffer): New function.
8497 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8498 (alloc_jump_pad_buffer): New function.
8499 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8500 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8501 (alloc_jump_pad_buffer): New function.
8502 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8503 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8504 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8505 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8506
1cda1512
MK
85072016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8508
8509 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8510 * linux-amd64-ipa.c: Likewise.
8511 * linux-i386-ipa.c: Likewise.
8512 * linux-s390-ipa.c: Likewise.
8513 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8514 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8515 set_trace_state_variable_value_ptr.
8516 (struct ipa_sym_addresses): Likewise.
8517 (symbol_list): Likewise.
8518 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8519 accessing gdb_collect directly.
8520 (gdb_collect_ptr_type): New typedef.
8521 (get_raw_reg_ptr_type): New typedef.
8522 (get_trace_state_variable_value_ptr_type): New typedef.
8523 (set_trace_state_variable_value_ptr_type): New typedef.
8524 (gdb_collect_ptr): New global.
8525 (get_raw_reg_ptr): New global.
8526 (get_trace_state_variable_value_ptr): New global.
8527 (set_trace_state_variable_value_ptr): New global.
8528 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8529 accessing get_raw_reg directly.
8530 (get_get_tsv_func_addr): Likewise for
8531 get_trace_state_variable_value_ptr.
8532 (get_set_tsv_func_addr): Likewise for
8533 set_trace_state_variable_value_ptr.
8534 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8535
72fb5488
SM
85362016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8537
8538 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8539
28170b88
MK
85402016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8541
8542 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8543 packets.
8544 (relocate_instruction): Remove own_buf.
8545 * server.c (own_buf): Make global.
8546 (handle_v_requests): Make global.
8547 * server.h (own_buf): New declaration.
8548 (handle_v_requests): New prototype.
8549
f39e8743
MK
85502016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8551
8552 PR 18377
8553 * linux-s390-low.c (add_insns): New function.
8554 (s390_emit_prologue): New function.
8555 (s390_emit_epilogue): New function.
8556 (s390_emit_add): New function.
8557 (s390_emit_sub): New function.
8558 (s390_emit_mul): New function.
8559 (s390_emit_lsh): New function.
8560 (s390_emit_rsh_signed): New function.
8561 (s390_emit_rsh_unsigned): New function.
8562 (s390_emit_ext): New function.
8563 (s390_emit_log_not): New function.
8564 (s390_emit_bit_and): New function.
8565 (s390_emit_bit_or): New function.
8566 (s390_emit_bit_xor): New function.
8567 (s390_emit_bit_not): New function.
8568 (s390_emit_equal): New function.
8569 (s390_emit_less_signed): New function.
8570 (s390_emit_less_unsigned): New function.
8571 (s390_emit_ref): New function.
8572 (s390_emit_if_goto): New function.
8573 (s390_emit_goto): New function.
8574 (s390_write_goto_address): New function.
8575 (s390_emit_litpool): New function.
8576 (s390_emit_const): New function.
8577 (s390_emit_call): New function.
8578 (s390_emit_reg): New function.
8579 (s390_emit_pop): New function.
8580 (s390_emit_stack_flush): New function.
8581 (s390_emit_zero_ext): New function.
8582 (s390_emit_swap): New function.
8583 (s390_emit_stack_adjust): New function.
8584 (s390_emit_set_r2): New function.
8585 (s390_emit_int_call_1): New function.
8586 (s390_emit_void_call_2): New function.
8587 (s390_emit_eq_goto): New function.
8588 (s390_emit_ne_goto): New function.
8589 (s390_emit_lt_goto): New function.
8590 (s390_emit_le_goto): New function.
8591 (s390_emit_gt_goto): New function.
8592 (s390_emit_ge_goto): New function.
8593 (s390x_emit_prologue): New function.
8594 (s390x_emit_epilogue): New function.
8595 (s390x_emit_add): New function.
8596 (s390x_emit_sub): New function.
8597 (s390x_emit_mul): New function.
8598 (s390x_emit_lsh): New function.
8599 (s390x_emit_rsh_signed): New function.
8600 (s390x_emit_rsh_unsigned): New function.
8601 (s390x_emit_ext): New function.
8602 (s390x_emit_log_not): New function.
8603 (s390x_emit_bit_and): New function.
8604 (s390x_emit_bit_or): New function.
8605 (s390x_emit_bit_xor): New function.
8606 (s390x_emit_bit_not): New function.
8607 (s390x_emit_equal): New function.
8608 (s390x_emit_less_signed): New function.
8609 (s390x_emit_less_unsigned): New function.
8610 (s390x_emit_ref): New function.
8611 (s390x_emit_if_goto): New function.
8612 (s390x_emit_const): New function.
8613 (s390x_emit_call): New function.
8614 (s390x_emit_reg): New function.
8615 (s390x_emit_pop): New function.
8616 (s390x_emit_stack_flush): New function.
8617 (s390x_emit_zero_ext): New function.
8618 (s390x_emit_swap): New function.
8619 (s390x_emit_stack_adjust): New function.
8620 (s390x_emit_int_call_1): New function.
8621 (s390x_emit_void_call_2): New function.
8622 (s390x_emit_eq_goto): New function.
8623 (s390x_emit_ne_goto): New function.
8624 (s390x_emit_lt_goto): New function.
8625 (s390x_emit_le_goto): New function.
8626 (s390x_emit_gt_goto): New function.
8627 (s390x_emit_ge_goto): New function.
8628 (s390_emit_ops): New function.
8629 (struct linux_target_ops): Fill in emit_ops hook.
8630
abd9baf9
MK
86312016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8632
8633 PR 18377
8634 * Makefile.in: Add s390 IPA files.
8635 * configure.srv: Build IPA for s390.
8636 * linux-s390-ipa.c: New file.
8637 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8638 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8639 (tdesc_s390_linux32): Likewise.
8640 (init_registers_s390_linux32v1): Likewise.
8641 (tdesc_s390_linux32v1): Likewise.
8642 (init_registers_s390_linux32v2): Likewise.
8643 (tdesc_s390_linux32v2): Likewise.
8644 (init_registers_s390_linux64): Likewise.
8645 (tdesc_s390_linux64): Likewise.
8646 (init_registers_s390_linux64v1): Likewise.
8647 (tdesc_s390_linux64v1): Likewise.
8648 (init_registers_s390_linux64v2): Likewise.
8649 (tdesc_s390_linux64v2): Likewise.
8650 (init_registers_s390_te_linux64): Likewise.
8651 (tdesc_s390_te_linux64): Likewise.
8652 (init_registers_s390_vx_linux64): Likewise.
8653 (tdesc_s390_vx_linux64): Likewise.
8654 (init_registers_s390_tevx_linux64): Likewise.
8655 (tdesc_s390_tevx_linux64): Likewise.
8656 (init_registers_s390x_linux64): Likewise.
8657 (tdesc_s390x_linux64): Likewise.
8658 (init_registers_s390x_linux64v1): Likewise.
8659 (tdesc_s390x_linux64v1): Likewise.
8660 (init_registers_s390x_linux64v2): Likewise.
8661 (tdesc_s390x_linux64v2): Likewise.
8662 (init_registers_s390x_te_linux64): Likewise.
8663 (tdesc_s390x_te_linux64): Likewise.
8664 (init_registers_s390x_vx_linux64): Likewise.
8665 (tdesc_s390x_vx_linux64): Likewise.
8666 (init_registers_s390x_tevx_linux64): Likewise.
8667 (tdesc_s390x_tevx_linux64): Likewise.
8668 (have_hwcap_s390_vx): New static variable.
8669 (s390_arch_setup): Fill have_hwcap_s390_vx.
8670 (s390_get_thread_area): New function.
8671 (s390_ft_entry_gpr_esa): New const.
8672 (s390_ft_entry_gpr_zarch): New const.
8673 (s390_ft_entry_misc): New const.
8674 (s390_ft_entry_fr): New const.
8675 (s390_ft_entry_vr): New const.
8676 (s390_ft_main_31): New const.
8677 (s390_ft_main_64): New const.
8678 (s390_ft_exit_fr): New const.
8679 (s390_ft_exit_vr): New const.
8680 (s390_ft_exit_misc): New const.
8681 (s390_ft_exit_gpr_esa): New const.
8682 (s390_ft_exit_gpr_zarch): New const.
8683 (append_insns): New function.
8684 (s390_relocate_instruction): New function.
8685 (s390_install_fast_tracepoint_jump_pad): New function.
8686 (s390_get_min_fast_tracepoint_insn_len): New function.
8687 (s390_get_ipa_tdesc_idx): New function.
8688 (struct linux_target_ops): Wire in the above functions.
8689 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8690 * linux-s390-tdesc.h: New file.
8691
a4105d04
MK
86922016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8693
8694 * linux-s390-low.c (s390_supports_tracepoints): New function.
8695 (struct linux_target_ops): Fill supports_tracepoints hook.
8696
35ac8b3e
YQ
86972016-03-18 Yao Qi <yao.qi@linaro.org>
8698
8699 * linux-low.c (lwp_signal_can_be_delivered): New function.
8700 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8701
94610ec4
YQ
87022016-03-18 Yao Qi <yao.qi@linaro.org>
8703
8704 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8705 0 if signal is enqueued. Remove 'signal' from one debugging
8706 message. Move one debugging message to some lines below.
8707 Remove code setting 'signal' to 0.
8708
80aea927
YQ
87092016-03-18 Yao Qi <yao.qi@linaro.org>
8710
8711 * linux-low.c (linux_low_filter_event): Remove redundant
8712 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8713
b04fd3be
MK
87142016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8715
8716 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8717 (struct linux_target_ops): Wire in the above.
8718
c40c8d4b
YQ
87192016-03-03 Yao Qi <yao.qi@linaro.org>
8720
8721 * linux-low.c: Update comments to start_step_over.
8722
0f8288ae
YQ
87232016-03-03 Yao Qi <yao.qi@linaro.org>
8724
8725 PR server/19736
8726 * linux-low.c (handle_extended_wait): Set child suspended
8727 if event_lwp->bp_reinsert isn't zero.
8728
fdbd04a8
YQ
87292016-03-02 Yao Qi <yao.qi@linaro.org>
8730
8731 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8732 enqueue_pending_signal.
8733
6896a8fa
MK
87342016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8735
8736 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8737 is actually loaded.
8738
ab503087
MK
87392016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8740
8741 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8742 (s390_regmap_3264) [!__s390x__]: New global.
8743 (s390_collect_ptrace_register): Skip map entries containing -1.
8744 (s390_supply_ptrace_register): Ditto.
8745 (s390_fill_gprs_high): New function.
8746 (s390_store_gprs_high): New function.
8747 (s390_regsets): Add NT_S390_HIGH_GPRS.
8748 (s390_get_hwcap): Enable on 31-bit.
8749 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8750 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8751 Detect NT_S390_HIGH_GPRS.
8752 (s390_usrregs_info_3264): Enable on 31-bit.
8753 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8754 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8755
ae91f625
MK
87562016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8757
8758 PR gdb/13808
8759 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8760 * configure.srv: Ditto.
8761 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8762 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8763 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8764 (init_registers_amd64_linux): Remove prototype.
8765 (tdesc_amd64_linux): Remove declaration.
8766 (get_ipa_tdesc): New function.
8767 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8768 initialize remaining tdescs.
8769 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8770 (init_registers_i386_linux): Remove prototype.
8771 (tdesc_i386_linux): Remove declaration.
8772 (get_ipa_tdesc): New function.
8773 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8774 initialize remaining tdescs.
8775 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8776 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8777 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8778 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8779 (x86_get_ipa_tdesc_idx): New function.
8780 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8781 * linux-x86-tdesc.h: New file.
8782 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8783 (target_get_ipa_tdesc_idx): New macro.
8784 * tracepoint.c (ipa_tdesc_idx): New macro.
8785 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8786 (symbol_list): Add ipa_tdesc_idx.
8787 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8788 (ipa_tdesc): Remove.
8789 (ipa_tdesc_idx): New variable.
8790 (get_context_regcache): Use get_ipa_tdesc.
8791 (gdb_collect): Ditto.
8792 (gdb_probe): Ditto.
8793 * tracepoint.h (get_ipa_tdesc): New prototype.
8794 (ipa_tdesc): Remove.
8795
e7ad2f14
PA
87962016-02-24 Pedro Alves <palves@redhat.com>
8797
8798 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8799 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8800 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8801 Factor out common code between the USE_SIGTRAP_SIGINFO and
8802 !USE_SIGTRAP_SIGINFO blocks.
8803 (linux_low_filter_event): Call save_stop_reason instead of
8804 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8805 Update comments.
8806 (linux_wait_1): Update comments.
8807
657f9cde
WW
88082016-02-24 Wei-cheng Wang <cole945@gmail.com>
8809
8810 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8811 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8812 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8813 ppc_insert_point, ppc_remove_point.
8814
b00b61e1
MK
88152016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8816
8817 * linux-s390-low.c (s390_supports_z_point_type): New function.
8818 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8819
553cb527
YQ
88202016-02-16 Yao Qi <yao.qi@linaro.org>
8821
8822 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8823 PC. Get pc from regcache_read_pc.
8824
a5652c21
YQ
88252016-02-12 Yao Qi <yao.qi@linaro.org>
8826
8827 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8828 or linux_get_pc_32bit.
8829 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8830
ed443b61
YQ
88312016-02-12 Yao Qi <yao.qi@linaro.org>
8832
8833 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8834 arm_linux_get_next_pcs_fixup.
8835
020ecd38
MK
88362016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8837
8838 * tracepoint.c (x_tracepoint_action_download): Change
8839 write_inferior_data_ptr to write_inferior_data_pointer.
8840 (cmd_qtstart): Likewise.
8841 (write_inferior_data_ptr): Remove.
8842 (download_agent_expr): Change write_inferior_data_ptr to
8843 write_inferior_data_pointer.
8844 (download_tracepoint_1): Likewise.
8845 (download_tracepoint): Likewise.
8846 (download_trace_state_variables): Likewise.
8847
7cae9051
WW
88482016-02-11 Wei-cheng Wang <cole945@gmail.com>
8849 Marcin Kościelnicki <koriakin@0x04.net>
8850
8851 * tracepoint.c (struct tracepoint_action_ops): Remove.
8852 (struct tracepoint_action): Remove ops.
8853 (m_tracepoint_action_download, r_tracepoint_action_download)
8854 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8855 size and offset accordingly.
8856 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8857 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8858 (tracepoint_action_send, tracepoint_action_download): New functions.
8859 Helpers for trace action handlers.
8860 (add_tracepoint_action): Remove setup actions ops.
8861 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8862
9f6a71b4
YQ
88632016-02-10 Yao Qi <yao.qi@linaro.org>
8864
8865 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8866
1e94266c
SM
88672016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8868
8869 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8870 to AC_OUTPUT.
8871 * configure: Regenerate.
8872
8adce034
SM
88732016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8874
8875 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8876 void * to gdb_byte *.
8877 * linux-low.c (siginfo_fixup): Likewise.
8878 (linux_xfer_siginfo): Likewise.
8879 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8880 Likewise.
8881 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8882
93813b37
WT
88832016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8884
8885 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8886 to srv_tgtobj.
8887 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8888 to srv_tgtobj.
8889 * linux-x86-low.c [__x86_64__]: Include
8890 "nat/amd64-linux-siginfo.h".
8891 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8892 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8893 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8894 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8895 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8896 (cpt_si_fd, si_timerid, si_overrun): Move from
8897 nat/amd64-linux-siginfo.c.
8898 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8899
8424cc97
SM
89002016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8901
8902 * server.c (skip_to_semicolon): Remove.
8903 (process_point_options): Use strchrnul instead of
8904 skip_to_semicolon.
8905
4d18591b
YQ
89062016-01-26 Yao Qi <yao.qi@linaro.org>
8907
8908 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8909 * linux-low.c (install_software_single_step_breakpoints): Don't
8910 call regcache_read_pc.
8911 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8912 argument pc.
8913
d8020970
YQ
89142016-01-26 Yao Qi <yao.qi@linaro.org>
8915
8916 * linux-low.c (install_software_single_step_breakpoints): Call
8917 regcache_read_pc instead of get_pc.
8918
8b207339
YQ
89192016-01-26 Yao Qi <yao.qi@linaro.org>
8920
8921 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8922 (unblock_async_io): Rename to ...
8923 (block_unblock_async_io): ... it. New function.
8924 (enable_async_io): Don't install SIGIO handler. Unblock it
8925 instead.
8926 (disable_async_io): Don't ignore SIGIO. Block it instead.
8927 (initialize_async_io): Install SIGIO handler. Don't call
8928 unblock_async_io.
8929
18879fef
YQ
89302016-01-26 Yao Qi <yao.qi@linaro.org>
8931
8932 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8933 first character is '\003', call *the_target->request_interrupt.
8934
a0f8e08a
YQ
89352016-01-25 Yao Qi <yao.qi@linaro.org>
8936
8937 * remote-utils.c (new_thread_notify): Remove.
8938 (dead_thread_notify): Likewise.
8939 * remote-utils.h (new_thread_notify): Remove declaration.
8940 (dead_thread_notify): Likewise.
8941
cc5fd9ab
MK
89422016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8943
8944 * gdb.trace/pending.exp: Fix expected message on continue.
8945
99e8eb11
MK
89462016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8947
8948 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8949 it works properly on big-endian machines where sizeof (CORE_ADDR)
8950 != sizeof (void *).
8951
a994041d
PA
89522016-01-21 Pedro Alves <palves@redhat.com>
8953
8954 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8955 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8956 * configure: Regenerate.
8957
f7a6a40d
YQ
89582016-01-21 Yao Qi <yao.qi@linaro.org>
8959
8960 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8961 is_thumb and set it according to CPSR saved on the stack.
8962 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8963 arm_sigreturn_next_pc.
8964
6f69e520
YQ
89652016-01-18 Yao Qi <yao.qi@linaro.org>
8966
8967 * linux-low.c (linux_set_pc_64bit): New function.
8968 (linux_get_pc_64bit): New function.
8969 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8970 Declare.
8971 * linux-sparc-low.c (debug_threads): Remove declaration.
8972 (sparc_get_pc): Remove.
8973 (the_low_target): Use linux_get_pc_64bit instead of
8974 sparc_get_pc.
8975 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8976 (the_low_target): Use linux_get_pc_64bit and
8977 linux_set_pc_64bit.
8978
276d4552
YQ
89792016-01-18 Yao Qi <yao.qi@linaro.org>
8980
8981 * linux-arm-low.c (debug_threads): Remove declaration.
8982 (arm_get_pc, arm_set_pc): Remove.
8983 (the_low_target): Use linux_get_pc_32bit and
8984 linux_set_pc_32bit.
8985 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8986 (the_low_target): Use linux_get_pc_32bit and
8987 linux_set_pc_32bit.
8988 * linux-cris-low.c (debug_threads): Remove declaration.
8989 (cris_get_pc, cris_set_pc,): Remove.
8990 (the_low_target): Use linux_get_pc_32bit and
8991 linux_set_pc_32bit.
8992 * linux-crisv32-low.c (debug_threads): Remove declaration.
8993 (cris_get_pc, cris_set_pc): Remove.
8994 (the_low_target): Use linux_get_pc_32bit and
8995 linux_set_pc_32bit.
8996 * linux-low.c: Include inttypes.h.
8997 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8998 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8999 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9000 (the_low_target): Use linux_get_pc_32bit and
9001 linux_set_pc_32bit.
9002 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9003 (the_low_target): Use linux_get_pc_32bit and
9004 linux_set_pc_32bit.
9005 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9006 (the_low_target): Use linux_get_pc_32bit and
9007 linux_set_pc_32bit.
9008 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9009 (the_low_target): Use linux_get_pc_32bit and
9010 linux_set_pc_32bit.
9011 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9012 (the_low_target): Use linux_get_pc_32bit and
9013 linux_set_pc_32bit.
9014
eb0edac8
GB
90152016-01-18 Gary Benson <gbenson@redhat.com>
9016
9017 * configure.ac (AC_FUNC_FORK): New check.
9018 * config.in: Regenerate.
9019 * configure: Likewise.
9020
1b451dda
YQ
90212016-01-14 Yao Qi <yao.qi@linaro.org>
9022
9023 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9024 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9025 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9026 arm_get_next_pcs_ctor.
9027
82075af2
JS
90282016-01-12 Josh Stone <jistone@redhat.com>
9029 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9030
9031 * inferiors.h: Include "gdb_vecs.h".
9032 (struct process_info): Add syscalls_to_catch.
9033 * inferiors.c (remove_process): Free syscalls_to_catch.
9034 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9035 syscall_return stops.
9036 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9037 * server.c (handle_general_set): Handle QCatchSyscalls.
9038 (handle_query): Report support for QCatchSyscalls.
9039 * target.h (struct target_ops): Add supports_catch_syscall.
9040 (target_supports_catch_syscall): New macro.
9041 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9042 (struct lwp_info): Add syscall_state.
9043 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9044 Maintain syscall_state and syscalls_to_catch across exec.
9045 (get_syscall_trapinfo): New function, proxy to the_low_target.
9046 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9047 (linux_low_filter_event): Toggle syscall_state entry/return for
9048 syscall traps, and set it ignored for all others.
9049 (gdb_catching_syscalls_p): New function.
9050 (gdb_catch_this_syscall_p): New function.
9051 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9052 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9053 (linux_supports_catch_syscall): New function.
9054 (linux_target_ops): Install it.
9055 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9056 (the_low_target): Install it.
9057
8f13a3ce
MF
90582016-01-12 Mike Frysinger <vapier@gentoo.org>
9059
9060 * acinclude.m4: Include new ../warning.m4 file.
9061 * configure: Regenerated.
9062 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9063
5b3da067
MF
90642016-01-12 Mike Frysinger <vapier@gentoo.org>
9065
9066 * ax.c (is_goto_target): Mark static.
9067 * linux-low.c (register_addr): Likewise.
9068 (linux_fetch_registers, linux_store_registers): Likewise.
9069 * mem-break.c (any_persistent_commands): Fix old prototype.
9070 (add_commands_to_breakpoint): Mark static.
9071 * regcache.c (find_register_by_name): Delete unused func.
9072 * remote-utils.c (hex_or_minus_one): Mark static.
9073 * server.c (monitor_show_help): Mark static.
9074 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9075 handle_v_requests): Likewise.
9076
bc504a31
PA
90772016-01-12 Pedro Alves <palves@redhat.com>
9078
9079 Remove use of the registered trademark symbol throughout.
9080
5a0dd67a
YQ
90812016-01-08 Yao Qi <yao.qi@linaro.org>
9082
9083 * remote-utils.c (getpkt): If c is '\003', call target hook
9084 request_interrupt.
9085
b2ca446f
YQ
90862016-01-06 Yao Qi <yao.qi@linaro.org>
9087
9088 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9089 linux-aarch32-low.c.
9090 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9091 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9092 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9093 (thumb2_breakpoint): Declare.
9094 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9095 linux-aarch32-low.h.
9096 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9097 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9098 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9099
edd88788
JB
91002016-01-01 Joel Brobecker <brobecker@adacore.com>
9101
9102 * gdbreplay.c (gdbreplay_version): Change copyright year in
9103 version message.
9104 * server.c (gdbserver_version): Likewise.
9105
65da7f14
PP
91062015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9107
9108 * server.c (crc32_table): Delete.
9109 (crc32): Use libiberty's xcrc32 function.
9110
4abd5ed2
JB
91112015-12-22 Joel Brobecker <brobecker@adacore.com>
9112
9113 * lynx-low.c (lynx_delete_thread_callback): New function.
9114 (lynx_mourn): Properly delete our process and all of its
9115 threads. Remove call to clear_inferiors.
9116
0e50fe5c
JB
91172015-12-22 Joel Brobecker <brobecker@adacore.com>
9118
9119 * target.c (thread_search_callback): Add check that
9120 the thread_stopped target callback is not NULL before
9121 calling it.
9122
35adc03f
YQ
91232015-12-21 Yao Qi <yao.qi@linaro.org>
9124
9125 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9126 arm breakpoint.
9127
bd2b2909
AT
91282015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9129
9130 * server.c (handle_query): Call target_supports_software_single_step.
9131
7fe5e27e
AT
91322015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9133
9134 * linux-low.c (single_step): New function.
9135 (linux_resume_one_lwp_throw): Call single_step.
9136 (start_step_over): Likewise.
9137
d9311bfa
AT
91382015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9139
9140 * Makefile.in (SFILES): Append arch/arm-linux.c,
9141 arch/arm-get-next-pcs.c.
9142 (arm-linux.o): New rule.
9143 (arm-get-next-pcs.o): New rule.
9144 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9145 arm-linux.o.
9146 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9147 to linux-aarch32-low.c.
9148 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9149 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9150 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9151 (thumb2_breakpoint_len): Likewise.
9152 (arm_is_thumb_mode): Make non-static.
9153 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9154 from linux-aarch32-low.c.
9155 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9156 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9157 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9158 (thumb2_breakpoint_len): Likewise.
9159 (arm_is_thumb_mode): New declaration.
9160 * linux-arm-low.c: Include arch/arm-linux.h
9161 aarch/arm-get-next-pcs.h, sys/syscall.h.
9162 (get_next_pcs_ops): New struct.
9163 (get_next_pcs_addr_bits_remove): New function.
9164 (get_next_pcs_is_thumb): New function.
9165 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9166 (arm_sigreturn_next_pc): Likewise.
9167 (get_next_pcs_syscall_next_pc): Likewise.
9168 (arm_gdbserver_get_next_pcs): Likewise.
9169 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9170 Initialize.
9171 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9172 * server.h: Include gdb_vecs.h.
9173
68ce2059
AT
91742015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9175
9176 * Makefile.in (SFILES): Append common/common-regcache.c.
9177 (OBS): Append common-regcache.o.
9178 (common-regcache.o): New rule.
9179 * regcache.c (init_register_cache): Initialize cache to
9180 REG_UNAVAILABLE.
9181 (regcache_raw_read_unsigned): New function.
9182 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9183 register_status enum.
9184
fa5308bd
AT
91852015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9186
9187 * linux-aarch64-low.c (the_low_targets): Rename
9188 breakpoint_reinsert_addr to get_next_pcs.
9189 * linux-arm-low.c (the_low_targets): Likewise.
9190 * linux-bfin-low.c (the_low_targets): Likewise.
9191 * linux-cris-low.c (the_low_targets): Likewise.
9192 * linux-crisv32-low.c (the_low_targets): Likewise.
9193 * linux-low.c (can_software_single_step): Likewise.
9194 (install_software_single_step_breakpoints): New function.
9195 (start_step_over): Use install_software_single_step_breakpoints.
9196 * linux-low.h: New CORE_ADDR vector.
9197 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9198 get_next_pcs.
9199 * linux-mips-low.c (the_low_targets): Likewise.
9200 * linux-nios2-low.c (the_low_targets): Likewise.
9201 * linux-sparc-low.c (the_low_targets): Likewise.
9202
4a6ed09b
PA
92032015-12-17 Pedro Alves <palves@redhat.com>
9204
9205 * linux-low.c (linux_kill_one_lwp): Remove references to
9206 LinuxThreads.
9207 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9208 to 'kill'.
9209 (linux_init_signals): Delete.
9210 (initialize_low): Adjust.
9211 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9212
7544db95
PA
92132015-12-16 Pedro Alves <palves@redhat.com>
9214
9215 * configure.ac (compiler warning flags): When testing a
9216 -Wno-foo option, check whether -Wfoo works instead.
9217 * configure: Regenerate.
9218
8020350c
DB
92192015-12-11 Don Breazeal <donb@codesourcery.com>
9220
9221 * server.c (process_serial_event): Don't exit from gdbserver
9222 in remote mode if there are still active inferiors.
9223
db91f502
YQ
92242015-12-11 Yao Qi <yao.qi@linaro.org>
9225
9226 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9227 arm_breakpoint_at if the process is 32-bit.
9228
b37a6290
YQ
92292015-12-11 Yao Qi <yao.qi@linaro.org>
9230
9231 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9232 arm breakpoint.
9233
17b1509a
YQ
92342015-12-07 Yao Qi <yao.qi@linaro.org>
9235
9236 * configure.srv: Append arm.o to srv_tgtobj for
9237 aarch64*-*-linux* target.
9238 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9239 from linux-arm-low.c.
9240 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9241 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9242 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9243 (thumb2_breakpoint_len): Likewise.
9244 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9245 (arm_breakpoint_kinds): Likewise.
9246 (arm_breakpoint_kind_from_pc): Likewise.
9247 (arm_sw_breakpoint_from_kind): Likewise.
9248 (arm_breakpoint_kind_from_current_state): Likewise.
9249 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9250 (arm_sw_breakpoint_from_kind): Declare.
9251 (arm_breakpoint_kind_from_current_state): Declare.
9252 (arm_breakpoint_at): Declare.
9253 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9254 arm_sw_breakpoint_from_kind if process is 32-bit.
9255 (aarch64_breakpoint_kind_from_pc): New function.
9256 (aarch64_breakpoint_kind_from_current_state): New function.
9257 (the_low_target): Initialize fields breakpoint_kind_from_pc
9258 and breakpoint_kind_from_current_state.
9259 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9260 linux-aarch32-low.c.
9261 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9262 (arm_breakpoint, arm_breakpoint_len): Likewise.
9263 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9264 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9265 (arm_is_thumb_mode): Likewise.
9266 (arm_breakpoint_at): Likewise.
9267 (arm_breakpoint_kind_from_pc): Likewise.
9268 (arm_sw_breakpoint_from_kind): Likewise.
9269 (arm_breakpoint_kind_from_current_state): Likewise.
9270
9271 Revert:
9272 2015-08-04 Yao Qi <yao.qi@linaro.org>
9273
9274 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9275 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9276 * server.c (extended_protocol): Remove "static".
9277 * server.h (extended_protocol): Declare it.
9278
ece66d65
JS
92792015-12-04 Josh Stone <jistone@redhat.com>
9280
9281 * target.h (struct target_ops) <arch_setup>: Rename to ...
9282 (struct target_ops) <post_create_inferior>: ... this.
9283 (target_arch_setup): Rename to ...
9284 (target_post_create_inferior): ... this, calling post_create_inferior.
9285 * server.c (start_inferior): Update target_arch_setup calls to
9286 target_post_create_inferior.
9287 * linux-low.c (linux_low_ptrace_options): Forward declare.
9288 (linux_arch_setup): Update its comment for general use.
9289 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9290 (struct linux_target_ops): Use linux_post_create_inferior.
9291 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9292 to post_create_inferior.
9293 * nto-low.c (struct nto_target_ops): Likewise.
9294 * spu-low.c (struct spu_target_ops): Likewise.
9295 * win32-low.c (struct win32_target_ops): Likewise.
9296
e58c48b4
AT
92972015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9298
9299 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9300
fbec8956
AT
93012015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9302
9303 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9304 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9305 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9306 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9307 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9308 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9309 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9310 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9311 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9312 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9313 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9314 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9315
9b4c5f87
AT
93162015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9317
9318 * linux-low.c (linux_look_up_symbols): Don't call
9319 linux_supports_traceclone.
9320 * linux-low.h (thread_db_init): Remove use_events argument.
9321 * thread-db.c (thread_db_use_event): Remove global variable.
9322 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9323 (struct thread_db) <td_create_bp>: Remove field.
9324 (thread_db_create_event): Remove function.
9325 (thread_db_enable_reporting): Likewise.
9326 (find_one_thread): Don't check for thread_db_use_events.
9327 (attach_thread): Likewise.
9328 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9329 (try_thread_db_load_1): Don't check for thread_db_use_events.
9330 (thread_db_init): Remove use_events argument and thread events
9331 handling.
9332 (remove_thread_event_breakpoints): Remove function.
9333 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9334
7d00775e
AT
93352015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9336
9337 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9338 New function.
9339 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9340 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9341 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9342 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9343 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9344 Initialize.
9345 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9346 New function.
9347 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9348 * linux-low.c (can_hardware_single_step): Use
9349 supports_hardware_single_step.
9350 (can_software_single_step): New function.
9351 (start_step_over): Call can_software_single_step.
9352 (linux_supports_hardware_single_step): New function.
9353 (struct target_ops) <supports_software_single_step>: Initialize.
9354 * linux-low.h (struct linux_target_ops)
9355 <supports_hardware_single_step>: Initialize.
9356 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9357 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9358 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9359 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9360 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9361 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9362 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9363 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9364 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9365 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9366 Initialize.
9367 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9368 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9369 Initialize.
9370 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9371 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9372 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9373 New function.
9374 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9375 * target.h (struct target_ops): <supports_software_single_step>:
9376 New field.
9377 (target_supports_software_single_step): New macro.
9378
2d97cd35
AT
93792015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9380
9381 * linux-low.c (linux_wait_1): Fix pc advance condition.
9382 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9383 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9384
769ef81f
AT
93852015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9386
9387 * linux-arm-low.c (arm_is_thumb_mode): New function.
9388 (arm_breakpoint_at): Use arm_is_thumb_mode.
9389 (arm_breakpoint_kind_from_current_state): New function.
9390 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9391 Initialize.
9392 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9393 (linux_breakpoint_kind_from_current_state): New function.
9394 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9395 * linux-low.h (struct linux_target_ops)
9396 <breakpoint_kind_from_current_state>: New field.
9397 * target.h (struct target_ops): Likewise.
9398 (target_breakpoint_kind_from_current_state): New macro.
9399
1bebeeca
PA
94002015-11-30 Pedro Alves <palves@redhat.com>
9401
9402 * linux-low.c (linux_resume): Wake up the event loop before
9403 returning.
9404
a67a9fae
PA
94052015-11-30 Pedro Alves <palves@redhat.com>
9406
9407 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9408 check.
9409 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9410 to -1.
9411 * target.c (struct thread_search): New structure.
9412 (thread_search_callback): New function.
9413 (prev_general_thread): New global.
9414 (prepare_to_access_memory, done_accessing_memory): New functions.
9415 * target.h (prepare_to_access_memory, done_accessing_memory):
9416 Replace macros with function declarations.
9417
f2faf941
PA
94182015-11-30 Pedro Alves <palves@redhat.com>
9419
9420 PR 14618
9421 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9422 report TARGET_WAITKIND_NO_RESUMED.
9423 * remote-utils.c (prepare_resume_reply): Handle
9424 TARGET_WAITKIND_NO_RESUMED.
9425 * server.c (report_no_resumed): New global.
9426 (handle_query) <qSupported>: Handle "no-resumed+". Report
9427 "no-resumed+" support.
9428 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9429 return error if the client doesn't support no-resumed events.
9430 (push_stop_notification): New function.
9431 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9432 events if the client supports them.
9433
a681f9c9
PA
94342015-11-30 Pedro Alves <palves@redhat.com>
9435
9436 * linux-low.c (thread_still_has_status_pending_p): Don't check
9437 vCont;t here.
9438 (lwp_resumed): New function.
9439 (status_pending_p_callback): Return early if the LWP is not
9440 supposed to be resumed.
9441
65706a29
PA
94422015-11-30 Pedro Alves <palves@redhat.com>
9443
9444 * linux-low.c (handle_extended_wait): Assert that the LWP's
9445 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9446 thread create events, leave the new child's status pending.
9447 (linux_low_filter_event): If GDB wants to hear about thread exit
9448 events, leave the LWP marked dead and don't delete it.
9449 (linux_wait_for_event_filtered): Don't check for thread exit.
9450 (filter_exit_event): New function.
9451 (linux_wait_1): Use it, when returning an exit event.
9452 (linux_resume_one_lwp_throw): Assert that the LWP's
9453 waitstatus is TARGET_WAITKIND_IGNORE.
9454 * remote-utils.c (prepare_resume_reply): Handle
9455 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9456 * server.c (report_thread_events): New global.
9457 (handle_general_set): Handle QThreadEvents.
9458 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9459 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9460 TARGET_WAITKIND_THREAD_EXITED.
9461 * server.h (report_thread_events): Declare.
9462
56cf4bed
PA
94632015-11-30 Pedro Alves <palves@redhat.com>
9464
9465 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9466 the thread's last_resume_kind was resume_stop.
9467
500c1d85
PA
94682015-11-30 Pedro Alves <palves@redhat.com>
9469
9470 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9471 before returning.
9472
de979965
PA
94732015-11-30 Pedro Alves <palves@redhat.com>
9474
9475 * server.c (handle_v_requests): Handle vCtrlC.
9476
34c65914
PA
94772015-11-30 Pedro Alves <palves@redhat.com>
9478
9479 * gdbthread.h (find_any_thread_of_pid): Declare.
9480 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9481 functions.
9482 * server.c (handle_query): If current_thread is NULL, look for
9483 another thread of the selected process.
9484
79efa585 94852015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9486 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9487
9488 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9489 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9490 name in reply.
9491 * target.h (struct target_ops) <thread_name>: New field.
9492 (target_thread_name): New macro.
9493
80d82c19
JB
94942015-11-23 Joel Brobecker <brobecker@adacore.com>
9495
9496 * regcache.h (regcache_invalidate_pid): Add declaration.
9497 * regcache.c (regcache_invalidate_pid): New function, extracted
9498 from regcache_invalidate.
9499 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9500 Add trivial documentation comment.
9501 * lynx-low.c: Use regcache_invalidate_pid instead of
9502 regcache_invalidate.
9503
64da5dd5
JB
95042015-11-23 Joel Brobecker <brobecker@adacore.com>
9505
9506 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9507 and Elf64_auxv_t if the target is Android.
9508
37ce4055
DE
95092015-11-22 Doug Evans <xdje42@gmail.com>
9510
9511 * target.h: #include <sys/types.h>.
9512
06e03fff
PA
95132015-11-19 Pedro Alves <palves@redhat.com>
9514
9515 * linux-low.c (linux_process_qsupported): Change prototype.
9516 Adjust.
9517 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9518 Change prototype.
9519 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9520 and adjust to loop over all features.
9521 * server.c (handle_query) <qSupported>: Adjust to call
9522 target_process_qsupported once, passing it a vector of unprocessed
9523 features.
9524 * target.h (struct target_ops) <process_qsupported>: Change
9525 prototype.
9526 (target_process_qsupported): Adjust.
9527
9a084706
PA
95282015-11-19 Pedro Alves <palves@redhat.com>
9529
9530 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9531 mode.
9532 * configure: Regenerate.
9533
dad44a1f
PA
95342015-11-19 Pedro Alves <palves@redhat.com>
9535
9536 * configure: Regenerate.
9537
231c0592
YQ
95382015-11-19 Yao Qi <yao.qi@linaro.org>
9539
9540 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9541 type to uint32_t.
9542
6c1c9a8b
YQ
95432015-11-19 Yao Qi <yao.qi@linaro.org>
9544
9545 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9546 (struct aarch64_operand): Move enum out.
9547
9caa3311
YQ
95482015-11-19 Yao Qi <yao.qi@linaro.org>
9549
9550 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9551 struct user_fpsimd_state *.
9552 (aarch64_store_fpregset): Likewise.
9553
6a69a054
YQ
95542015-11-19 Yao Qi <yao.qi@linaro.org>
9555
9556 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9557 struct user_pt_regs *.
9558 (aarch64_store_gregset): Likewise.
9559
1798301e
PA
95602015-11-18 Pedro Alves <palves@redhat.com>
9561
9562 * Makefile.in (all_object_files): Add $IPA_OBJS.
9563
ce7715e2
PA
95642015-11-17 Pedro Alves <palves@redhat.com>
9565
9566 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9567 GDB_SIGNAL_0 and gdb_signal_to_string.
9568
c0879059
PA
95692015-11-17 Pedro Alves <palves@redhat.com>
9570
9571 * win32-low.c (handle_output_debug_string): Remove parameter.
9572 (win32_kill): Remove our_status local and adjust call to
9573 handle_output_debug_string.
9574 (get_child_debug_event): Adjust call to
9575 handle_output_debug_string.
9576
1996e237
SM
95772015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9578
9579 * linux-mips-low.c (mips_fill_gregset): Add cast.
9580 (mips_store_gregset): Likewise.
9581 (mips_fill_fpregset): Likewise.
9582 (mips_store_fpregset): Likewise.
9583
cbec665b
SM
95842015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9585
9586 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9587 priv.
9588
eb3e3c67
SM
95892015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9590
9591 * linux-mips-low.c (mips_linux_new_thread): Change type of
9592 watch_type to enum target_hw_bp_type.
9593
171de4b8
SM
95942015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9595
9596 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9597 Change return type to arm_hwbp_type.
9598
04248ead
SM
95992015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9600
9601 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9602 (arm_store_gregset): Likewise.
9603 * linux-arm-low.c (arm_get_hwcap): Likewise.
9604 (arm_read_description): Likewise.
9605
04b3479c
SM
96062015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9607
9608 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9609
2bc84e8a
SM
96102015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9611
9612 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9613 (ppc_fill_vsxregset): Likewise.
9614 (ppc_store_vsxregset): Likewise.
9615 (ppc_fill_vrregset): Likewise.
9616 (ppc_store_vrregset): Likewise.
9617 (ppc_fill_evrregset): Likewise.
9618 (ppc_store_evrregset): Likewise.
9619
e6c5bb05
SM
96202015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9621
9622 * linux-ppc-low.c (ppc_usrregs_info): Remove
9623 forward-declaration.
9624 (ppc_arch_setup): Move lower in file.
9625
7ea45d72
SM
96262015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9627
9628 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9629 (ps_pdwrite): Likewise.
9630
69291610
HW
96312015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9632
9633 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9634 to after assert checks.
9635
b42945fd
SM
96362015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9637
9638 * proc-service.c (ps_pdread): Add/adjust casts.
9639 (ps_pdwrite): Add/adjust casts.
9640
d6f85c84
SM
96412015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9642
9643 * server.c (handle_search_memory_1): Cast return value of
9644 memmem.
9645
f98cd059
SM
96462015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9647
9648 * server.c (write_qxfer_response): Change type of data to
9649 gdb_byte *.
9650
d2412fa5
PA
96512015-10-29 Pedro Alves <palves@redhat.com>
9652
9653 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9654
c17414a2
PA
96552015-10-29 Pedro Alves <palves@redhat.com>
9656
9657 * tracepoint.c (clear_installed_tracepoints): Add casts.
9658
e053fbc4
PA
96592015-10-29 Pedro Alves <palves@redhat.com>
9660
9661 * server.c (handle_v_cont, process_serial_event): Add enum
9662 gdb_signal casts to signal parsing code.
9663
add67df8
PA
96642015-10-29 Pedro Alves <palves@redhat.com>
9665
9666 * linux-low.h (NULL_REGSET): Define.
9667 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9668 * linux-arm-low.c (arm_regsets): Likewise.
9669 * linux-crisv32-low.c (cris_regsets): Likewise.
9670 * linux-m68k-low.c (m68k_regsets): Likewise.
9671 * linux-mips-low.c (mips_regsets): Likewise.
9672 * linux-nios2-low.c (nios2_regsets): Likewise.
9673 * linux-ppc-low.c (ppc_regsets): Likewise.
9674 * linux-s390-low.c (s390_regsets): Likewise.
9675 * linux-sh-low.c (sh_regsets): Likewise.
9676 * linux-sparc-low.c (sparc_regsets): Likewise.
9677 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9678 * linux-tile-low.c (tile_regsets): Likewise.
9679 * linux-x86-low.c (x86_regsets): Likewise.
9680 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9681
50bc912a
PA
96822015-10-29 Pedro Alves <palves@redhat.com>
9683
9684 * linux-low.h (NULL_REGSET): Define.
9685 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9686 * linux-arm-low.c (arm_regsets): Likewise.
9687 * linux-crisv32-low.c (cris_regsets): Likewise.
9688 * linux-m68k-low.c (m68k_regsets): Likewise.
9689 * linux-mips-low.c (mips_regsets): Likewise.
9690 * linux-nios2-low.c (nios2_regsets): Likewise.
9691 * linux-ppc-low.c (ppc_regsets): Likewise.
9692 * linux-s390-low.c (s390_regsets): Likewise.
9693 * linux-sh-low.c (sh_regsets): Likewise.
9694 * linux-sparc-low.c (sparc_regsets): Likewise.
9695 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9696 * linux-tile-low.c (tile_regsets): Likewise.
9697 * linux-x86-low.c (x86_regsets): Likewise.
9698 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9699
682b2546
DE
97002015-10-26 Doug Evans <dje@google.com>
9701
9702 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9703
963843d4
DE
97042015-10-26 Doug Evans <dje@google.com>
9705
9706 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9707
d41401ac
DE
97082015-10-26 Doug Evans <dje@google.com>
9709
9710 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9711 for debug_printf.
9712 (attach_thread, find_new_threads_callback): Ditto.
9713
3db28855
AT
97142015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9715
9716 * mem-break.h (set_breakpoint_data): Remove.
9717
fb78e89c
AT
97182015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9719
9720 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9721 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9722 (initialize_low): Remove set_breakpoint_data call.
9723 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9724 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9725 (initialize_low): Remove set_breakpoint_data call.
9726 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9727 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9728 (initialize_low): Remove set_breakpoint_data call.
9729
2e6ee069
AT
97302015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9731
9732 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9733 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9734 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9735 * target.h (target_breakpoint_kind_from_pc): New macro.
9736
1652a986
AT
97372015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9738
9739 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9740 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9741 the default breakpoint kind.
9742
abeead09
AT
97432015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9744
9745 * linux-arm-low.c (arm_supports_z_point_type): Add software
9746 breakpoint support.
9747
b0b4b501
AT
97482015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9749
9750 * linux-arm-low.c: Refactor breakpoint definitions.
9751 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9752 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9753
8689682c
AT
97542015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9755
9756 * Makefile.in: Add arm.c/o.
9757 * configure.srv: Likewise.
9758 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9759 (arm_breakpoint_kind_from_pc): New function.
9760 (arm_sw_breakpoint_from_kind): Return proper kind.
9761 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9762
27165294
AT
97632015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9764
9765 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9766 removal.
9767 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9768 (struct raw_breakpoint) <size>: Remove.
9769 (struct raw_breakpoint) <kind>: Add.
9770 (bp_size): New function.
9771 (bp_opcode): Likewise.
9772 (find_raw_breakpoint_at): Adjust for kind.
9773 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9774 (remove_memory_breakpoint): Adjust for kind call bp_size.
9775 (set_raw_breakpoint_at): Adjust for kind.
9776 (set_breakpoint): Likewise.
9777 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9778 (delete_raw_breakpoint): Adjust for kind.
9779 (delete_breakpoint): Likewise.
9780 (find_gdb_breakpoint): Likewise.
9781 (set_gdb_breakpoint_1): Likewise.
9782 (set_gdb_breakpoint): Likewise.
9783 (delete_gdb_breakpoint_1): Likewise.
9784 (delete_gdb_breakpoint): Likewise.
9785 (uninsert_raw_breakpoint): Likewise.
9786 (reinsert_raw_breakpoint): Likewise.
9787 (set_breakpoint_data): Remove.
9788 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9789 (check_mem_read): Adjust for kind call bp_size.
9790 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9791 (clone_one_breakpoint): Adjust for kind.
9792 * mem-break.h (set_gdb_breakpoint): Likewise.
9793 (delete_gdb_breakpoint): Likewise.
9794 * server.c (process_serial_event): Likewise.
9795
dd373349
AT
97962015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9797
9798 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9799 (struct linux_target_ops) <breakpoint>: Remove.
9800 (struct linux_target_ops) <breakpoint_len>: Remove.
9801 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9802 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9803 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9804 (arm_sw_breakpoint_from_kind): New function.
9805 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9806 (struct linux_target_ops) <breakpoint>: Remove.
9807 (struct linux_target_ops) <breakpoint_len>: Remove.
9808 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9809 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9810 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9811 (struct linux_target_ops) <breakpoint>: Remove.
9812 (struct linux_target_ops) <breakpoint_len>: Remove.
9813 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9814 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9815 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9816 (struct linux_target_ops) <breakpoint>: Remove.
9817 (struct linux_target_ops) <breakpoint_len>: Remove.
9818 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9819 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9820 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9821 and sw_breakpoint_from_kind to increment the pc.
9822 (linux_breakpoint_kind_from_pc): New function.
9823 (linux_sw_breakpoint_from_kind): New function.
9824 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9825 (initialize_low): Call breakpoint_kind_from_pc and
9826 sw_breakpoint_from_kind to replace breakpoint_data/len.
9827 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9828 New field.
9829 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9830 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9831 (struct linux_target_ops) <breakpoint>: Remove.
9832 (struct linux_target_ops) <breakpoint_len>: Remove.
9833 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9834 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9835 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9836 (struct linux_target_ops) <breakpoint>: Remove.
9837 (struct linux_target_ops) <breakpoint_len>: Remove.
9838 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9839 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9840 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9841 (struct linux_target_ops) <breakpoint>: Remove.
9842 (struct linux_target_ops) <breakpoint_len>: Remove.
9843 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9844 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9845 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9846 (struct linux_target_ops) <breakpoint>: Remove.
9847 (struct linux_target_ops) <breakpoint_len>: Remove.
9848 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9849 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9850 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9851 (struct linux_target_ops) <breakpoint>: Remove.
9852 (struct linux_target_ops) <breakpoint_len>: Remove.
9853 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9854 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9855 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9856 (struct linux_target_ops) <breakpoint>: Remove.
9857 (struct linux_target_ops) <breakpoint_len>: Remove.
9858 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9859 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9860 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9861 (struct linux_target_ops) <breakpoint>: Remove.
9862 (struct linux_target_ops) <breakpoint_len>: Remove.
9863 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9864 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9865 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9866 (struct linux_target_ops) <breakpoint>: Remove.
9867 (struct linux_target_ops) <breakpoint_len>: Remove.
9868 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9869 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9870 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9871 (struct linux_target_ops) <breakpoint>: Remove.
9872 (struct linux_target_ops) <breakpoint_len>: Remove.
9873 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9874 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9875 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9876 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9877 (struct linux_target_ops) <breakpoint>: Remove.
9878 (struct linux_target_ops) <breakpoint_len>: Remove.
9879 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9880 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9881 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9882 (struct linux_target_ops) <breakpoint>: Remove.
9883 (struct linux_target_ops) <breakpoint_len>: Remove.
9884 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9885 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9886
4cd98a19
AT
98872015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9888
9889 * linux-cris-low.c (cris_get_pc): Remove void arg.
9890
774ee6d2
AR
98912015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9892
9893 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9894 variable name.
9895
833dcd29
AR
98962015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9897
9898 * inferiors.c (thread_pid_matches_callback): New function.
9899 (find_thread_process): New function.
9900 (remove_thread): Reset current_thread.
9901 (remove_process): Assert threads have been removed first.
9902
8d689ee5
YQ
99032015-10-15 Yao Qi <yao.qi@linaro.org>
9904
9905 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9906 if it is 3.
9907 (aarch64_remove_point): Likewise.
9908 * regcache.c (regcache_register_size): New function.
9909
1c2e1515
YQ
99102015-10-12 Yao Qi <yao.qi@linaro.org>
9911
9912 * linux-aarch64-low.c: Update all callers as emit_load_store
9913 is renamed to aarch64_emit_load_store.
9914
e1c587c3
YQ
99152015-10-12 Yao Qi <yao.qi@linaro.org>
9916
9917 * linux-aarch64-low.c: Update all callers of function renaming
9918 from emit_insn to aarch64_emit_insn.
9919
b6542f81
YQ
99202015-10-12 Yao Qi <yao.qi@linaro.org>
9921
9922 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9923 arch/aarch64-insn.h.
9924 (struct aarch64_memory_operand): Likewise.
9925 (ENCODE): Likewise.
9926 (emit_insn): Move to arch/aarch64-insn.c.
9927 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9928 (emit_load_store): Move to arch/aarch64-insn.c.
9929 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9930 (can_encode_int32): Remove.
9931
246994ce
YQ
99322015-10-12 Yao Qi <yao.qi@linaro.org>
9933
9934 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9935 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9936 (aarch64_relocate_instruction): Likewise.
9937 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9938 (struct aarch64_insn_visitor): Likewise.
9939
0badd99f
YQ
99402015-10-12 Yao Qi <yao.qi@linaro.org>
9941
9942 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9943 (struct aarch64_insn_visitor): New.
9944 (struct aarch64_insn_relocation_data): New.
9945 (aarch64_ftrace_insn_reloc_b): New function.
9946 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9947 (aarch64_ftrace_insn_reloc_cb): Likewise.
9948 (aarch64_ftrace_insn_reloc_tb): Likewise.
9949 (aarch64_ftrace_insn_reloc_adr): Likewise.
9950 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9951 (aarch64_ftrace_insn_reloc_others): Likewise.
9952 (visitor): New.
9953 (aarch64_relocate_instruction): Use visitor.
9954
dfaffe9d
YQ
99552015-10-12 Yao Qi <yao.qi@linaro.org>
9956
9957 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9958 int. Add argument buf.
9959 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9960 aarch64_relocate_instruction.
9961
70b439f0
YQ
99622015-10-12 Yao Qi <yao.qi@linaro.org>
9963
9964 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9965 argument insn. Remove local variable insn. Don't call
9966 target_read_uint32.
9967 (aarch64_install_fast_tracepoint_jump_pad): Call
9968 target_read_uint32.
9969
7781c06f
YQ
99702015-09-30 Yao Qi <yao.qi@linaro.org>
9971
9972 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9973 (emit_load_store_pair): Likewise.
9974
9a3c8263
SM
99752015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9976
9977 * dll.c (match_dll): Add cast(s).
9978 (unloaded_dll): Likewise.
9979 * linux-low.c (second_thread_of_pid_p): Likewise.
9980 (delete_lwp_callback): Likewise.
9981 (count_events_callback): Likewise.
9982 (select_event_lwp_callback): Likewise.
9983 (linux_set_resume_request): Likewise.
9984 * server.c (accumulate_file_name_length): Likewise.
9985 (emit_dll_description): Likewise.
9986 (handle_qxfer_threads_worker): Likewise.
9987 (visit_actioned_threads): Likewise.
9988 * thread-db.c (any_thread_of): Likewise.
9989 * tracepoint.c (same_process_p): Likewise.
9990 (match_blocktype): Likewise.
9991 (build_traceframe_info_xml): Likewise.
9992
224c3ddb
SM
99932015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9994
9995 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9996 assignment.
9997 (gdb_unparse_agent_expr): Likewise.
9998 * hostio.c (require_data): Likewise.
9999 (handle_pread): Likewise.
10000 * linux-low.c (disable_regset): Likewise.
10001 (fetch_register): Likewise.
10002 (store_register): Likewise.
10003 (get_dynamic): Likewise.
10004 (linux_qxfer_libraries_svr4): Likewise.
10005 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10006 (set_fast_tracepoint_jump): Likewise.
10007 (uninsert_fast_tracepoint_jumps_at): Likewise.
10008 (reinsert_fast_tracepoint_jumps_at): Likewise.
10009 (validate_inserted_breakpoint): Likewise.
10010 (clone_agent_expr): Likewise.
10011 * regcache.c (init_register_cache): Likewise.
10012 * remote-utils.c (putpkt_binary_1): Likewise.
10013 (decode_M_packet): Likewise.
10014 (decode_X_packet): Likewise.
10015 (look_up_one_symbol): Likewise.
10016 (relocate_instruction): Likewise.
10017 (monitor_output): Likewise.
10018 * server.c (handle_search_memory): Likewise.
10019 (handle_qxfer_exec_file): Likewise.
10020 (handle_qxfer_libraries): Likewise.
10021 (handle_qxfer): Likewise.
10022 (handle_query): Likewise.
10023 (handle_v_cont): Likewise.
10024 (handle_v_run): Likewise.
10025 (captured_main): Likewise.
10026 * target.c (write_inferior_memory): Likewise.
10027 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10028 * tracepoint.c (init_trace_buffer): Likewise.
10029 (add_tracepoint_action): Likewise.
10030 (add_traceframe): Likewise.
10031 (add_traceframe_block): Likewise.
10032 (cmd_qtdpsrc): Likewise.
10033 (cmd_qtdv): Likewise.
10034 (cmd_qtstatus): Likewise.
10035 (response_source): Likewise.
10036 (response_tsv): Likewise.
10037 (cmd_qtnotes): Likewise.
10038 (gdb_collect): Likewise.
10039 (initialize_tracepoint): Likewise.
10040
afbe19f8
PL
100412015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10042
10043 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10044 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10045 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10046 <NOP>: New.
10047 (enum aarch64_condition_codes): New enum.
10048 (w0): New static global.
10049 (fp): Likewise.
10050 (lr): Likewise.
10051 (struct aarch64_memory_operand) <type>: New
10052 MEMORY_OPERAND_POSTINDEX type.
10053 (postindex_memory_operand): New helper function.
10054 (emit_ret): New function.
10055 (emit_load_store_pair): New function, factored out of emit_stp
10056 with support for MEMORY_OPERAND_POSTINDEX.
10057 (emit_stp): Rewrite using emit_load_store_pair.
10058 (emit_ldp): New function.
10059 (emit_load_store): Likewise.
10060 (emit_ldr): Mention post-index instruction in comment.
10061 (emit_ldrh): New function.
10062 (emit_ldrb): New function.
10063 (emit_ldrsw): Mention post-index instruction in comment.
10064 (emit_str): Likewise.
10065 (emit_subs): New function.
10066 (emit_cmp): Likewise.
10067 (emit_and): Likewise.
10068 (emit_orr): Likewise.
10069 (emit_orn): Likewise.
10070 (emit_eor): Likewise.
10071 (emit_mvn): Likewise.
10072 (emit_lslv): Likewise.
10073 (emit_lsrv): Likewise.
10074 (emit_asrv): Likewise.
10075 (emit_mul): Likewise.
10076 (emit_sbfm): Likewise.
10077 (emit_sbfx): Likewise.
10078 (emit_ubfm): Likewise.
10079 (emit_ubfx): Likewise.
10080 (emit_csinc): Likewise.
10081 (emit_cset): Likewise.
10082 (emit_nop): Likewise.
10083 (emit_ops_insns): New helper function.
10084 (emit_pop): Likewise.
10085 (emit_push): Likewise.
10086 (aarch64_emit_prologue): New function.
10087 (aarch64_emit_epilogue): Likewise.
10088 (aarch64_emit_add): Likewise.
10089 (aarch64_emit_sub): Likewise.
10090 (aarch64_emit_mul): Likewise.
10091 (aarch64_emit_lsh): Likewise.
10092 (aarch64_emit_rsh_signed): Likewise.
10093 (aarch64_emit_rsh_unsigned): Likewise.
10094 (aarch64_emit_ext): Likewise.
10095 (aarch64_emit_log_not): Likewise.
10096 (aarch64_emit_bit_and): Likewise.
10097 (aarch64_emit_bit_or): Likewise.
10098 (aarch64_emit_bit_xor): Likewise.
10099 (aarch64_emit_bit_not): Likewise.
10100 (aarch64_emit_equal): Likewise.
10101 (aarch64_emit_less_signed): Likewise.
10102 (aarch64_emit_less_unsigned): Likewise.
10103 (aarch64_emit_ref): Likewise.
10104 (aarch64_emit_if_goto): Likewise.
10105 (aarch64_emit_goto): Likewise.
10106 (aarch64_write_goto_address): Likewise.
10107 (aarch64_emit_const): Likewise.
10108 (aarch64_emit_call): Likewise.
10109 (aarch64_emit_reg): Likewise.
10110 (aarch64_emit_pop): Likewise.
10111 (aarch64_emit_stack_flush): Likewise.
10112 (aarch64_emit_zero_ext): Likewise.
10113 (aarch64_emit_swap): Likewise.
10114 (aarch64_emit_stack_adjust): Likewise.
10115 (aarch64_emit_int_call_1): Likewise.
10116 (aarch64_emit_void_call_2): Likewise.
10117 (aarch64_emit_eq_goto): Likewise.
10118 (aarch64_emit_ne_goto): Likewise.
10119 (aarch64_emit_lt_goto): Likewise.
10120 (aarch64_emit_le_goto): Likewise.
10121 (aarch64_emit_gt_goto): Likewise.
10122 (aarch64_emit_ge_got): Likewise.
10123 (aarch64_emit_ops_impl): New static global variable.
10124 (aarch64_emit_ops): New target function, return
10125 &aarch64_emit_ops_impl.
10126 (struct linux_target_ops): Install it.
10127
bb903df0
PL
101282015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10129
10130 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10131 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10132 aarch64-ipa.o.
10133 * linux-aarch64-ipa.c: New file.
10134 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10135 and endian.h.
10136 (aarch64_get_thread_area): New target method.
10137 (extract_signed_bitfield): New helper function.
10138 (aarch64_decode_ldr_literal): New function.
10139 (enum aarch64_opcodes): New enum.
10140 (struct aarch64_register): New struct.
10141 (struct aarch64_operand): New struct.
10142 (x0): New static global.
10143 (x1): Likewise.
10144 (x2): Likewise.
10145 (x3): Likewise.
10146 (x4): Likewise.
10147 (w2): Likewise.
10148 (ip0): Likewise.
10149 (sp): Likewise.
10150 (xzr): Likewise.
10151 (aarch64_register): New helper function.
10152 (register_operand): Likewise.
10153 (immediate_operand): Likewise.
10154 (struct aarch64_memory_operand): New struct.
10155 (offset_memory_operand): New helper function.
10156 (preindex_memory_operand): Likewise.
10157 (enum aarch64_system_control_registers): New enum.
10158 (ENCODE): New macro.
10159 (emit_insn): New helper function.
10160 (emit_b): New function.
10161 (emit_bcond): Likewise.
10162 (emit_cb): Likewise.
10163 (emit_tb): Likewise.
10164 (emit_blr): Likewise.
10165 (emit_stp): Likewise.
10166 (emit_ldp_q_offset): Likewise.
10167 (emit_stp_q_offset): Likewise.
10168 (emit_load_store): Likewise.
10169 (emit_ldr): Likewise.
10170 (emit_ldrsw): Likewise.
10171 (emit_str): Likewise.
10172 (emit_ldaxr): Likewise.
10173 (emit_stxr): Likewise.
10174 (emit_stlr): Likewise.
10175 (emit_data_processing_reg): Likewise.
10176 (emit_data_processing): Likewise.
10177 (emit_add): Likewise.
10178 (emit_sub): Likewise.
10179 (emit_mov): Likewise.
10180 (emit_movk): Likewise.
10181 (emit_mov_addr): Likewise.
10182 (emit_mrs): Likewise.
10183 (emit_msr): Likewise.
10184 (emit_sevl): Likewise.
10185 (emit_wfe): Likewise.
10186 (append_insns): Likewise.
10187 (can_encode_int32_in): New helper function.
10188 (aarch64_relocate_instruction): New function.
10189 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10190 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10191 (struct linux_target_ops): Install aarch64_get_thread_area,
10192 aarch64_install_fast_tracepoint_jump_pad and
10193 aarch64_get_min_fast_tracepoint_insn_len.
10194
787749ea
PL
101952015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10196
10197 * Makefile.in (aarch64-insn.o): New rule.
10198 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10199
9812b2e6
YQ
102002015-09-21 Yao Qi <yao.qi@linaro.org>
10201
10202 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10203
18fe412b
YQ
102042015-09-21 Yao Qi <yao.qi@linaro.org>
10205
10206 * tracepoint.c (max_jump_pad_size): Remove.
10207
a0cc84cd
YQ
102082015-09-18 Yao Qi <yao.qi@linaro.org>
10209
10210 * linux-aarch64-low.c: Don't include sys/uio.h.
10211 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10212
d78908cf
WW
102132015-09-16 Wei-cheng Wang <cole945@gmail.com>
10214
10215 * tracepoint.c (eval_result_type): Change prototype.
10216 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10217
d57e0d50
PA
102182015-09-15 Pedro Alves <palves@redhat.com>
10219
10220 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10221 Check whether to report exec events instead of checking whether
10222 multiprocess is enabled.
10223
5a676acc
PA
102242015-09-15 Pedro Alves <palves@redhat.com>
10225
10226 PR remote/18965
10227 * remote-utils.c (prepare_resume_reply): Merge
10228 TARGET_WAITKIND_VFORK_DONE switch case with the
10229 TARGET_WAITKIND_FORKED case.
10230
7c5d0fad
YQ
102312015-09-15 Yao Qi <yao.qi@linaro.org>
10232
10233 * server.c (handle_query): Check string comparison using
10234 "else if" instead of "if".
10235
750ce8d1
YQ
102362015-09-15 Yao Qi <yao.qi@linaro.org>
10237
10238 * server.c (vCont_supported): New global variable.
10239 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10240 matches. Append ";vContSupported+" to own_buf.
10241 (handle_v_requests): Append ";s;S" to own_buf if target supports
10242 hardware single step or vCont_supported is false.
10243 (capture_main): Set vCont_supported to zero.
10244
70b90b91
YQ
102452015-09-15 Yao Qi <yao.qi@linaro.org>
10246
10247 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10248 it to ...
10249 (linux_supports_hardware_single_step): ... New function.
10250 (linux_target_ops): Update.
10251 * lynx-low.c (lynx_target_ops): Set field
10252 supports_hardware_single_step to target_can_do_hardware_single_step.
10253 * nto-low.c (nto_target_ops): Likewise.
10254 * spu-low.c (spu_target_ops): Likewise.
10255 * win32-low.c (win32_target_ops): Likewise.
10256 * target.c (target_can_do_hardware_single_step): New function.
10257 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10258 Remove. <supports_hardware_single_step>: New field.
10259 (target_supports_conditional_breakpoints): Remove.
10260 (target_supports_hardware_single_step): New macro.
10261 (target_can_do_hardware_single_step): Declare.
10262 * server.c (handle_query): Use target_supports_hardware_single_step
10263 instead of target_supports_conditional_breakpoints.
10264
ade90bde
YQ
102652015-09-15 Yao Qi <yao.qi@linaro.org>
10266
10267 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10268 function.
10269 (struct linux_target_ops the_low_target): Install
10270 aarch64_linux_siginfo_fixup.
10271
94585166
DB
102722015-09-11 Don Breazeal <donb@codesourcery.com>
10273 Luis Machado <lgustavo@codesourcery.com>
10274
10275 * linux-low.c (linux_mourn): Static declaration.
10276 (linux_arch_setup): Move in front of
10277 handle_extended_wait.
10278 (linux_arch_setup_thread): New function.
10279 (handle_extended_wait): Handle exec events. Call
10280 linux_arch_setup_thread. Make event_lwp argument a
10281 pointer-to-a-pointer.
10282 (check_zombie_leaders): Do not check stopped threads.
10283 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10284 (linux_low_filter_event): Add lwp and thread for exec'ing
10285 non-leader thread if leader thread has been deleted.
10286 Refactor code into linux_arch_setup_thread and call it.
10287 Pass child lwp pointer by reference to handle_extended_wait.
10288 (linux_wait_for_event_filtered): Update comment.
10289 (linux_wait_1): Prevent clobbering exec event status.
10290 (linux_supports_exec_events): New function.
10291 (linux_target_ops) <supports_exec_events>: Initialize new member.
10292 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10293 new member.
10294 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10295 * server.c (report_exec_events): New global variable.
10296 (handle_query): Handle qSupported query for exec-events feature.
10297 (captured_main): Initialize report_exec_events.
10298 * server.h (report_exec_events): Declare new global variable.
10299 * target.h (struct target_ops) <supports_exec_events>: New
10300 member.
10301 (target_supports_exec_events): New macro.
10302 * win32-low.c (win32_target_ops) <supports_exec_events>:
10303 Initialize new member.
10304
0568462b
MM
103052015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10306
10307 * linux-low.c (linux_low_enable_btrace): Remove.
10308 (linux_target_ops): Replace linux_low_enable_btrace with
10309 linux_enable_btrace.
10310
39edd165
YQ
103112015-09-03 Yao Qi <yao.qi@linaro.org>
10312
10313 * linux-aarch64-low.c (aarch64_insert_point): Call
10314 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10315 returns true.
10316
1db33b5a
UW
103172015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10318
10319 * linux-low.c (check_stopped_by_breakpoint): Use
10320 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10321
ab290430
PA
103222015-08-27 Pedro Alves <palves@redhat.com>
10323
10324 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10325
8d749320
SM
103262015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10327
6711b7f8
SM
10328 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10329 the XNEW-family equivalent.
8d749320
SM
10330 (compile_bytecodes): Likewise.
10331 * dll.c (loaded_dll): Likewise.
10332 * event-loop.c (append_callback_event): Likewise.
10333 (create_file_handler): Likewise.
10334 (create_file_event): Likewise.
10335 * hostio.c (handle_open): Likewise.
10336 * inferiors.c (add_thread): Likewise.
10337 (add_process): Likewise.
10338 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10339 * linux-arm-low.c (arm_new_process): Likewise.
10340 (arm_new_thread): Likewise.
10341 * linux-low.c (add_to_pid_list): Likewise.
10342 (linux_add_process): Likewise.
10343 (handle_extended_wait): Likewise.
10344 (add_lwp): Likewise.
10345 (enqueue_one_deferred_signal): Likewise.
10346 (enqueue_pending_signal): Likewise.
10347 (linux_resume_one_lwp_throw): Likewise.
10348 (linux_resume_one_thread): Likewise.
10349 (linux_read_memory): Likewise.
10350 (linux_write_memory): Likewise.
10351 * linux-mips-low.c (mips_linux_new_process): Likewise.
10352 (mips_linux_new_thread): Likewise.
10353 (mips_add_watchpoint): Likewise.
10354 * linux-x86-low.c (initialize_low_arch): Likewise.
10355 * lynx-low.c (lynx_add_process): Likewise.
10356 * mem-break.c (set_raw_breakpoint_at): Likewise.
10357 (set_breakpoint): Likewise.
10358 (add_condition_to_breakpoint): Likewise.
10359 (add_commands_to_breakpoint): Likewise.
10360 (clone_agent_expr): Likewise.
10361 (clone_one_breakpoint): Likewise.
10362 * regcache.c (new_register_cache): Likewise.
10363 * remote-utils.c (look_up_one_symbol): Likewise.
10364 * server.c (queue_stop_reply): Likewise.
10365 (start_inferior): Likewise.
10366 (queue_stop_reply_callback): Likewise.
10367 (handle_target_event): Likewise.
10368 * spu-low.c (fetch_ppc_memory): Likewise.
10369 (store_ppc_memory): Likewise.
10370 * target.c (set_target_ops): Likewise.
10371 * thread-db.c (thread_db_load_search): Likewise.
10372 (try_thread_db_load_1): Likewise.
10373 * tracepoint.c (add_tracepoint): Likewise.
10374 (add_tracepoint_action): Likewise.
10375 (create_trace_state_variable): Likewise.
10376 (cmd_qtdpsrc): Likewise.
10377 (cmd_qtro): Likewise.
10378 (add_while_stepping_state): Likewise.
10379 * win32-low.c (child_add_thread): Likewise.
10380 (get_image_name): Likewise.
10381
ed8b7b42
YQ
103822015-08-25 Yao Qi <yao.qi@linaro.org>
10383
10384 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10385
db3cb7cb
YQ
103862015-08-25 Yao Qi <yao.qi@linaro.org>
10387
10388 * Makefile.in (aarch64-linux.o): New rule.
10389 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10390 srv_tgtobj.
10391 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10392 (aarch64_init_debug_reg_state): Make it extern.
10393 (aarch64_linux_prepare_to_resume): Remove.
10394
f6011a1c
YQ
103952015-08-25 Yao Qi <yao.qi@linaro.org>
10396
10397 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10398 lwp_arch_private_info and ptid_of_lwp.
10399
88e2cf7e
YQ
104002015-08-25 Yao Qi <yao.qi@linaro.org>
10401
10402 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10403 Find proc_info by find_process_pid. All callers updated.
10404
5e35436e
YQ
104052015-08-25 Yao Qi <yao.qi@linaro.org>
10406
10407 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10408 Remove.
10409 (debug_reg_change_callback): Remove.
10410 (aarch64_notify_debug_reg_change): Remove.
10411
4a8a7965
YQ
104122015-08-25 Yao Qi <yao.qi@linaro.org>
10413
10414 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10415 Call current_lwp_ptid.
10416
32a271ee
YQ
104172015-08-25 Yao Qi <yao.qi@linaro.org>
10418
10419 * linux-aarch64-low.c (debug_reg_change_callback): Use
10420 debug_printf.
10421
0d51c8d7
YQ
104222015-08-25 Yao Qi <yao.qi@linaro.org>
10423
10424 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10425
31a43dd5
YQ
104262015-08-25 Yao Qi <yao.qi@linaro.org>
10427
10428 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10429
8ee52567
YQ
104302015-08-25 Yao Qi <yao.qi@linaro.org>
10431
10432 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10433 the code.
10434
ff3f0f45
YQ
104352015-08-25 Yao Qi <yao.qi@linaro.org>
10436
10437 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10438 Remove.
10439 (debug_reg_change_callback): Remove argument entry and add argument
10440 lwp. Remove local variable thread. Don't print thread id in the
10441 debugging output. Don't check whether pid of thread equals to pid.
10442 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10443 iterate_over_lwps instead find_inferior.
10444
3d40fbb5
PA
104452015-08-24 Pedro Alves <palves@redhat.com>
10446
10447 * inferiors.c (get_first_process): New function.
10448 * inferiors.h (get_first_process): New declaration.
10449 * remote-utils.c (read_ptid): Default to the first process in the
10450 list, instead of to the current thread's process.
10451
438e1e42
PA
104522015-08-24 Pedro Alves <palves@redhat.com>
10453
10454 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10455 * event-loop.c: Likewise.
10456 * remote-utils.c: Likewise.
10457 * tracepoint.c: Likewise.
10458
a8c6d4fc
PA
104592015-08-24 Pedro Alves <palves@redhat.com>
10460
10461 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10462 ptid_get_lwp.
10463
99b0bb12
PA
104642015-08-21 Pedro Alves <palves@redhat.com>
10465
10466 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10467 instead of literal 1.
10468
f8904751
PA
104692015-08-21 Pedro Alves <palves@redhat.com>
10470
10471 * tdesc.c (default_description): Explicitly zero-initialize.
10472
465a859e
PA
104732015-08-21 Pedro Alves <palves@redhat.com>
10474
10475 PR gdb/18749
10476 * inferiors.c (remove_thread): Discard any pending stop reply for
10477 this thread.
10478 * server.c (remove_all_on_match_pid): Rename to ...
10479 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10480 instead of a pid.
10481 (discard_queued_stop_replies): Change parameter to a ptid. Now
10482 extern.
10483 (handle_v_kill, kill_inferior_callback, captured_main)
10484 (process_serial_event): Adjust.
10485 * server.h (discard_queued_stop_replies): Declare.
10486
f0db101d
PA
104872015-08-21 Pedro Alves <palves@redhat.com>
10488
10489 * linux-low.c (wait_for_sigstop): Always switch to no thread
10490 selected if the previously current thread dies.
10491 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10492 process instead of the current thread's.
10493 * remote-utils.c (input_interrupt): Don't check if there's no
10494 current thread.
10495 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10496 current thread to the general thread fails, error out.
10497 (handle_qxfer_auxv, handle_qxfer_libraries)
10498 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10499 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10500 (handle_query): Check if there's a thread selected instead of
10501 checking whether there's any thread in the thread list.
10502 (handle_qxfer_threads, handle_qxfer_btrace)
10503 (handle_qxfer_btrace_conf): Don't error out early if there's no
10504 thread in the thread list.
10505 (handle_v_cont, myresume): Don't set the current thread to the
10506 continue thread.
10507 (process_serial_event) <Hg handling>: Also set thread_id if the
10508 previous general thread is still alive.
10509 (process_serial_event) <g/G handling>: If setting the current
10510 thread to the general thread fails, error out.
10511 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10512 thread's lwp instead of the current thread's.
10513 * target.c (set_desired_thread): If the desired thread was not
10514 found, leave the current thread pointing to NULL. Return an int
10515 (boolean) indicating success.
10516 * target.h (set_desired_thread): Change return type to int.
10517
40045d91
MF
105182015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10519
10520 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10521 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10522 #includes.
10523 (ps_get_thread_area): New function.
10524
45face3b
GB
105252015-08-19 Gary Benson <gbenson@redhat.com>
10526
10527 * hostio.c (handle_pread): Do not attempt to read more data
10528 than hostio_reply_with_data can fit in a packet.
10529
16d5f642
JB
105302015-08-18 Joel Brobecker <brobecker@adacore.com>
10531
10532 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10533
a738da3a
MF
105342015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10535
10536 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10537
33ebda9d
PA
105382015-08-06 Pedro Alves <palves@redhat.com>
10539
10540 * tracepoint.c (expr_eval_result): Now an int.
10541
a44892be
PA
105422015-08-06 Pedro Alves <palves@redhat.com>
10543
10544 * gdbthread.h (struct regcache): Forward declare.
10545 (struct thread_info) <regcache_data>: Now a struct regcache
10546 pointer.
10547 * inferiors.c (inferior_regcache_data)
10548 (set_inferior_regcache_data): Now work with struct regcache
10549 pointers.
10550 * inferiors.h (struct regcache): Forward declare.
10551 (inferior_regcache_data, set_inferior_regcache_data): Now work
10552 with struct regcache pointers.
10553 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10554 (free_register_cache_thread): Remove struct regcache pointer
10555 casts.
10556
608a1e46
PA
105572015-08-06 Pedro Alves <palves@redhat.com>
10558
10559 * server.c (captured_main): On error, print the exception message
10560 to stderr, and if run_once is set, throw a quit.
10561
f0ce0d3a
PA
105622015-08-06 Pedro Alves <palves@redhat.com>
10563
10564 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10565 the current thread.
10566
bf47e248
PA
105672015-08-06 Pedro Alves <palves@redhat.com>
10568
10569 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10570 reading beyond the passed in buffer length.
10571
b6b9ffcc
PL
105722015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10573
10574 * tracepoint.c (symbol_list) <required>: Remove.
10575
863d01bd
PA
105762015-08-06 Pedro Alves <palves@redhat.com>
10577
10578 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10579 count if stopping and suspending threads.
10580 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10581 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10582 (linux_detach): Complete an ongoing step-over.
10583 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10584 throughout.
10585 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10586 (linux_wait_1): If passing a signal to the inferior after
10587 finishing a step-over, unsuspend and re-resume all lwps. If we
10588 see a single-step event but the thread should be continuing, don't
10589 pass the trap to gdb.
10590 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10591 internal_error instead of gdb_assert.
10592 (enqueue_pending_signal): New function.
10593 (check_ptrace_stopped_lwp_gone): Add debug output.
10594 (start_step_over): Use internal_error instead of gdb_assert.
10595 (complete_ongoing_step_over): New function.
10596 (linux_resume_one_thread): Don't resume a suspended thread.
10597 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10598 it stepping.
10599
00db26fa
PA
106002015-08-06 Pedro Alves <palves@redhat.com>
10601
10602 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10603 (linux_thread_alive): Use lwp_is_marked_dead.
10604 (extended_event_reported): Delete.
10605 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10606 instead of extended_event_reported.
10607 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10608 as well.
10609 (lwp_is_marked_dead): New function.
10610 (lwp_running): Use lwp_is_marked_dead.
10611 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10612 comment.
10613
ad071a30
PA
106142015-08-06 Pedro Alves <palves@redhat.com>
10615
10616 * linux-low.c (linux_wait_1): Move fork event output out of the
10617 !report_to_gdb check. Pass event_child->waitstatus to
10618 target_waitstatus_to_string instead of ourstatus.
10619
524b57e6
YQ
106202015-08-04 Yao Qi <yao.qi@linaro.org>
10621
10622 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10623 if current_thread is 32 bit.
10624
6085d6f6
YQ
106252015-08-04 Yao Qi <yao.qi@linaro.org>
10626
10627 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10628 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10629 * server.c (extended_protocol): Remove "static".
10630 * server.h (extended_protocol): Declare it.
10631
8a7e4587
YQ
106322015-08-04 Yao Qi <yao.qi@linaro.org>
10633
10634 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10635 both aarch64 and aarch32.
10636 (aarch64_set_pc): Likewise.
10637
3b53ae99
YQ
106382015-08-04 Yao Qi <yao.qi@linaro.org>
10639
10640 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10641 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10642 arm-with-neon.xml to srv_xmlfiles.
10643 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10644 (is_64bit_tdesc): New function.
10645 (aarch64_linux_read_description): New function.
10646 (aarch64_arch_setup): Call aarch64_linux_read_description.
10647 (regs_info): Rename to regs_info_aarch64.
10648 (aarch64_regs_info): Return right regs_info.
10649 (initialize_low_arch): Call initialize_low_arch_aarch32.
10650
bd9e6534
YQ
106512015-08-04 Yao Qi <yao.qi@linaro.org>
10652
10653 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10654 * linux-aarch32-low.c: New file.
10655 * linux-aarch32-low.h: New file.
10656 * linux-arm-low.c (arm_fill_gregset): Move it to
10657 linux-aarch32-low.c.
10658 (arm_store_gregset): Likewise.
10659 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10660 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10661 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10662 (regs_info): Rename to regs_info_arm.
10663 (arm_regs_info): Return regs_info_aarch32 if
10664 have_ptrace_getregset is 1 and target description is
10665 arm_with_neon or arm_with_vfpv3.
10666 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10667 Call initialize_low_arch_aarch32 instead.
10668
ded48a5e
YQ
106692015-08-04 Yao Qi <yao.qi@linaro.org>
10670
10671 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10672 * linux-low.c: ... here.
10673 * linux-low.h (have_ptrace_getregset): Declare it.
10674
96e9210f
PA
106752015-08-04 Pedro Alves <palves@redhat.com>
10676
10677 * thread-db.c (struct thread_db): Use new typedefs.
10678 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10679 CHK calls.
10680 (disable_thread_event_reporting): Cast result of dlsym to
10681 destination function pointer type.
10682 (thread_db_mourn): Use td_ta_delete_ftype.
10683
af60a1ef
SL
106842015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10685
10686 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10687 arch variant.
10688 (CDX_BREAKPOINT): Define for R2.
10689 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10690 (the_low_target): Add comments.
10691
e8b41681
YQ
106922015-07-30 Yao Qi <yao.qi@linaro.org>
10693
10694 * linux-arm-low.c (arm_hwcap): Remove it.
10695 (arm_read_description): New local variable arm_hwcap. Don't
10696 set arm_hwcap to zero.
10697
89abb039
YQ
106982015-07-30 Yao Qi <yao.qi@linaro.org>
10699
10700 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10701 Use regcache->tdesc instead.
10702 (arm_store_wmmxregset): Likewise.
10703 (arm_fill_vfpregset): Likewise.
10704 (arm_store_vfpregset): Likewise.
10705
deca266c
YQ
107062015-07-30 Yao Qi <yao.qi@linaro.org>
10707
10708 * linux-arm-low.c: Include arch/arm.h.
10709 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10710 (arm_store_gregset): Likewise.
10711
aa58a496
SM
107122015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10713
10714 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10715 ptrace's 4th parameter.
10716
50904b25
YQ
107172015-07-27 Yao Qi <yao.qi@linaro.org>
10718
10719 * configure.srv (case aarch64*-*-linux*): Don't set
10720 srv_linux_usrregs.
10721
5826e159
PA
107222015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10723
10724 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10725 sys/ptrace.h.
10726 * linux-arm-low.c: Likewise.
10727 * linux-cris-low.c: Likewise.
10728 * linux-crisv32-low.c: Likewise.
10729 * linux-low.c: Likewise.
10730 * linux-m68k-low.c: Likewise.
10731 * linux-mips-low.c: Likewise.
10732 * linux-nios2-low.c: Likewise.
10733 * linux-s390-low.c: Likewise.
10734 * linux-sparc-low.c: Likewise.
10735 * linux-tic6x-low.c: Likewise.
10736 * linux-tile-low.c: Likewise.
10737 * linux-x86-low.c: Likewise.
10738
54019719
PA
107392015-07-24 Pedro Alves <palves@redhat.com>
10740
10741 * config.in: Regenerate.
10742 * configure: Regenerate.
10743
eb7aa561
PA
107442015-07-24 Pedro Alves <palves@redhat.com>
10745
10746 * acinclude.m4: Include ../ptrace.m4.
10747 * configure.ac: Call GDB_AC_PTRACE.
10748 * config.in, configure: Regenerate.
10749
55d7b841
YQ
107502015-07-24 Yao Qi <yao.qi@linaro.org>
10751
10752 * linux-low.c (linux_create_inferior): Remove setting to
10753 proc->priv->new_inferior.
10754 (linux_attach): Likewise.
10755 (linux_low_filter_event): Likewise.
10756 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10757
c06cbd92
YQ
107582015-07-24 Yao Qi <yao.qi@linaro.org>
10759
10760 * linux-low.c (linux_arch_setup): New function.
10761 (linux_low_filter_event): If proc->tdesc is NULL and
10762 proc->attached is true, call the_low_target.arch_setup.
10763 Otherwise, keep status pending, and return.
10764 (linux_resume_one_lwp_throw): Don't call get_pc if
10765 thread->while_stepping isn't NULL. Don't call
10766 get_thread_regcache if proc->tdesc is NULL.
10767 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10768 (linux_target_ops): Install arch_setup.
10769 * server.c (start_inferior): Call the_target->arch_setup.
10770 * target.h (struct target_ops) <arch_setup>: New field.
10771 (target_arch_setup): New marco.
10772 * lynx-low.c (lynx_target_ops): Update.
10773 * nto-low.c (nto_target_ops): Update.
10774 * spu-low.c (spu_target_ops): Update.
10775 * win32-low.c (win32_target_ops): Update.
10776
5ae3ebba
YQ
107772015-07-24 Yao Qi <yao.qi@linaro.org>
10778
10779 * linux-low.c (linux_add_process): Don't set
10780 proc->priv->new_inferior.
10781 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10782 (linux_attach): Likewise.
10783
eb97750b
YQ
107842015-07-24 Yao Qi <yao.qi@linaro.org>
10785
10786 * server.c (start_inferior): Code refactor.
10787
51aee833
YQ
107882015-07-24 Yao Qi <yao.qi@linaro.org>
10789
10790 * server.c (process_serial_event): Set general_thread.
10791
af1b22f3
YQ
107922015-07-21 Yao Qi <yao.qi@linaro.org>
10793
10794 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10795 aarch64_linux_get_debug_reg_capacity.
10796
554717a3
YQ
107972015-07-17 Yao Qi <yao.qi@linaro.org>
10798
10799 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10800 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10801 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10802 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10803 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10804 (AARCH64_HWP_ALIGNMENT): Likewise.
10805 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10806 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10807 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10808 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10809 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10810 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10811 (struct aarch64_debug_reg_state): Likewise.
10812 (struct arch_lwp_info): Likewise.
10813 (aarch64_align_watchpoint): Likewise.
10814 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10815 (aarch64_watchpoint_length): Likewise.
10816 (aarch64_point_encode_ctrl_reg): Likewise
10817 (aarch64_point_is_aligned): Likewise.
10818 (aarch64_align_watchpoint): Likewise.
10819 (aarch64_linux_set_debug_regs):
10820 (aarch64_dr_state_insert_one_point): Likewise.
10821 (aarch64_dr_state_remove_one_point): Likewise.
10822 (aarch64_handle_breakpoint): Likewise.
10823 (aarch64_handle_aligned_watchpoint): Likewise.
10824 (aarch64_handle_unaligned_watchpoint): Likewise.
10825 (aarch64_handle_watchpoint): Likewise.
10826
c67ca4de
YQ
108272015-07-17 Yao Qi <yao.qi@linaro.org>
10828
10829 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10830 and don't aarch64_get_debug_reg_state. All callers update.
10831 (aarch64_handle_aligned_watchpoint): Likewise.
10832 (aarch64_handle_unaligned_watchpoint): Likewise.
10833 (aarch64_handle_watchpoint): Likewise.
10834 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10835 (aarch64_remove_point): Likewise.
10836
25abf979
YQ
108372015-07-17 Yao Qi <yao.qi@linaro.org>
10838
10839 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10840 debug_printf.
10841 (aarch64_handle_unaligned_watchpoint): Likewise.
10842
db1ff28b
JK
108432015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10844
10845 Revert the previous 3 commits:
10846 Move gdb_regex* to common/
10847 Move linux_find_memory_regions_full & co.
10848 gdbserver build-id attribute generator
10849
700ca40f
JK
108502015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10851 Jan Kratochvil <jan.kratochvil@redhat.com>
10852
10853 gdbserver build-id attribute generator.
10854 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10855 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10856 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10857 (find_phdr): New.
10858 (get_dynamic): Use find_pdhr to traverse program headers.
10859 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10860 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10861 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10862 (get_hex_build_id): New.
10863 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10864 to reply XML document.
10865
9904185c
JK
108662015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10867 Jan Kratochvil <jan.kratochvil@redhat.com>
10868
10869 * target.c: Include target/target-utils.h and fcntl.h.
10870 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10871 (target_fileio_read_stralloc): New functions.
10872
6e5b4429
JK
108732015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10874
10875 * Makefile.in (OBS): Add gdb_regex.o.
10876 (gdb_regex.o): New.
10877 * config.in: Rebuilt.
10878 * configure: Rebuilt.
10879
ddc98fbf
JK
108802015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10881 Jan Kratochvil <jan.kratochvil@redhat.com>
10882
10883 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10884 * Makefile.in (OBS): Add target-utils.o.
10885 (linux-maps.o, target-utils.o): New.
10886 * configure.srv (srv_linux_obj): Add linux-maps.o.
10887
e57bb7a0
PL
108882015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10889
10890 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10891 function, return 1.
10892 (the_low_target): Install it.
10893
586b02a9
PA
108942015-07-14 Pedro Alves <palves@redhat.com>
10895
10896 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10897 Instead, ignore ECHILD, and throw an error for other errnos.
10898
58c1b36c
PA
108992015-07-10 Pedro Alves <palves@redhat.com>
10900
10901 * event-loop.c (struct callback_event) <data>: Change type to
10902 gdb_client_data instance instead of gdb_client_data pointer.
10903 (append_callback_event): Adjust.
10904
421530db
PL
109052015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10906
10907 * linux-aarch64-low.c: Add comments for each linux_target_ops
10908 method. Remove comments already covered in target_ops and
10909 linux_target_ops definitions.
10910 (the_low_target): Add comments for each unimplemented method.
10911
c2d65f38
YQ
109122015-07-09 Yao Qi <yao.qi@linaro.org>
10913
10914 * linux-aarch64-low.c (aarch64_regmap): Remove.
10915 (aarch64_usrregs_info): Remove.
10916 (regs_info): Set field usrregs to NULL.
10917
b20a6524
MM
109182015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10919
10920 * linux-low.c: Include "rsp-low.h"
10921 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10922 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10923 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10924 (handle_btrace_enable_pt): New.
10925 (handle_btrace_general_set): Support "pt".
10926 (handle_btrace_conf_general_set): Support "pt:size".
10927
96c97461
PL
109282015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10929
10930 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10931 Z_PACKET_SW_BP.
10932
37d66942
PL
109332015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10934
10935 * linux-aarch64-low.c: Remove comment about endianness.
10936 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10937 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10938 memcmp.
10939
dc06243f
GB
109402015-06-24 Gary Benson <gbenson@redhat.com>
10941
10942 * linux-i386-ipa.c (stdint.h): Do not include.
10943 * lynx-i386-low.c (stdint.h): Likewise.
10944 * lynx-ppc-low.c (stdint.h): Likewise.
10945 * mem-break.c (stdint.h): Likewise.
10946 * thread-db.c (stdint.h): Likewise.
10947 * tracepoint.c (stdint.h): Likewise.
10948 * win32-low.c (stdint.h): Likewise.
10949
124e13d9
SM
109502015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10951
10952 * server.c (write_qxfer_response): Update call to
10953 remote_escape_output.
10954
909c2cda
JK
109552015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10956 Jan Kratochvil <jan.kratochvil@redhat.com>
10957
10958 Merge multiple hex conversions.
10959 * gdbreplay.c (tohex): Rename to 'fromhex'.
10960 (logchar): Use fromhex.
10961
24c05f46
JK
109622015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10963
10964 * server.c (handle_qxfer_libraries): Set `version' attribute for
10965 <library-list>.
10966
14d2069a
GB
109672015-06-10 Gary Benson <gbenson@redhat.com>
10968
10969 * target.h (struct target_ops) <multifs_open>: New field.
10970 <multifs_unlink>: Likewise.
10971 <multifs_readlink>: Likewise.
10972 * linux-low.c (nat/linux-namespaces.h): New include.
10973 (linux_target_ops): Initialize the_target->multifs_open,
10974 the_target->multifs_unlink and the_target->multifs_readlink.
10975 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10976 * hostio.c (hostio_fs_pid): New static variable.
10977 (hostio_handle_new_gdb_connection): New function.
10978 (handle_setfs): Likewise.
10979 (handle_open): Use the_target->multifs_open as appropriate.
10980 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10981 (handle_readlink): Use the_target->multifs_readlink as
10982 appropriate.
10983 (handle_vFile): Handle vFile:setfs packets.
10984 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10985 after target_handle_new_gdb_connection.
10986
4b8b5e72
GB
109872015-06-10 Gary Benson <gbenson@redhat.com>
10988
10989 * configure.ac (AC_CHECK_FUNCS): Add setns.
10990 * config.in: Regenerate.
10991 * configure: Likewise.
10992 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10993 (linux-namespaces.o): New rule.
10994 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10995
3ac2e371
GB
109962015-06-09 Gary Benson <gbenson@redhat.com>
10997
10998 * hostio.c (handle_open): Process mode argument with
10999 fileio_to_host_mode.
11000
ca9b78ce
YQ
110012015-06-01 Yao Qi <yao.qi@linaro.org>
11002
11003 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11004 * linux-x86-low.c: Likewise.
11005
bfacd19d
DB
110062015-05-28 Don Breazeal <donb@codesourcery.com>
11007
11008 * linux-low.c (handle_extended_wait): Initialize
11009 thread_info.last_resume_kind for new fork children.
11010
452003ef
PA
110112015-05-15 Pedro Alves <palves@redhat.com>
11012
11013 * target.h (target_handle_new_gdb_connection): Rewrite using if
11014 wrapped in do/while.
11015
1041a03c
JB
110162015-05-14 Joel Brobecker <brobecker@adacore.com>
11017
11018 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11019 * configure, config.in: Regenerate.
11020 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11021 Declare typedef.
11022
c269dbdb
DB
110232015-05-12 Don Breazeal <donb@codesourcery.com>
11024
11025 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11026 PTRACE_EVENT_VFORK_DONE.
11027 (linux_low_ptrace_options, extended_event_reported): Add vfork
11028 events.
11029 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11030 and "vforkdone" for RSP 'T' Stop Reply Packet.
11031 * server.h (report_vfork_events): Declare
11032 global variable.
11033
3a8a0396
DB
110342015-05-12 Don Breazeal <donb@codesourcery.com>
11035
11036 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11037 (the_low_target) <new_fork>: Initialize new member.
11038 * linux-arm-low.c (arm_new_fork): New function.
11039 (the_low_target) <new_fork>: Initialize new member.
11040 * linux-low.c (handle_extended_wait): Call new target function
11041 new_fork.
11042 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11043 * linux-mips-low.c (mips_add_watchpoint): New function
11044 extracted from mips_insert_point.
11045 (the_low_target) <new_fork>: Initialize new member.
11046 (mips_linux_new_fork): New function.
11047 (mips_insert_point): Call mips_add_watchpoint.
11048 * linux-x86-low.c (x86_linux_new_fork): New function.
11049 (the_low_target) <new_fork>: Initialize new member.
11050
de0d863e
DB
110512015-05-12 Don Breazeal <donb@codesourcery.com>
11052
11053 * linux-low.c (handle_extended_wait): Implement return value,
11054 rename argument 'event_child' to 'event_lwp', handle
11055 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11056 (linux_low_ptrace_options): New function.
11057 (linux_low_filter_event): Call linux_low_ptrace_options,
11058 use different argument fo linux_enable_event_reporting,
11059 use return value from handle_extended_wait.
11060 (extended_event_reported): New function.
11061 (linux_wait_1): Call extended_event_reported and set
11062 status to report fork events.
11063 (linux_write_memory): Add pid to debug message.
11064 (reset_lwp_ptrace_options_callback): New function.
11065 (linux_handle_new_gdb_connection): New function.
11066 (linux_target_ops): Initialize new structure member.
11067 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11068 * lynx-low.c: Initialize new structure member.
11069 * remote-utils.c (prepare_resume_reply): Implement stop reason
11070 "fork" for "T" stop message.
11071 * server.c (handle_query): Call handle_new_gdb_connection.
11072 * server.h (report_fork_events): Declare global flag.
11073 * target.h (struct target_ops) <handle_new_gdb_connection>:
11074 New member.
11075 (target_handle_new_gdb_connection): New macro.
11076 * win32-low.c: Initialize new structure member.
11077
ddcbc397
DB
110782015-05-12 Don Breazeal <donb@codesourcery.com>
11079
11080 * mem-break.c (APPEND_TO_LIST): Define macro.
11081 (clone_agent_expr): New function.
11082 (clone_one_breakpoint): New function.
11083 (clone_all_breakpoints): New function.
11084 * mem-break.h: Declare new functions.
11085
89245bc0
DB
110862015-05-12 Don Breazeal <donb@codesourcery.com>
11087
11088 * linux-low.c (linux_supports_fork_events): New function.
11089 (linux_supports_vfork_events): New function.
11090 (linux_target_ops): Initialize new structure members.
11091 (initialize_low): Call linux_check_ptrace_features.
11092 * lynx-low.c (lynx_target_ops): Initialize new structure
11093 members.
11094 * server.c (report_fork_events, report_vfork_events):
11095 New global flags.
11096 (handle_query): Add new features to qSupported packet and
11097 response.
11098 (captured_main): Initialize new global variables.
11099 * target.h (struct target_ops) <supports_fork_events>:
11100 New member.
11101 <supports_vfork_events>: New member.
11102 (target_supports_fork_events): New macro.
11103 (target_supports_vfork_events): New macro.
11104 * win32-low.c (win32_target_ops): Initialize new structure
11105 members.
11106
835205d0
GB
111072015-05-12 Gary Benson <gbenson@redhat.com>
11108
11109 * server.c (handle_qxfer_exec_file): Use current process
11110 if annex is empty.
11111
21e94bd9
SL
111122015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11113
11114 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11115 Remove HAVE_PTRACE_GETREGS conditionals.
11116 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11117 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11118
45614f15
YQ
111192015-05-08 Yao Qi <yao.qi@linaro.org>
11120
11121 * linux-low.c (linux_supports_conditional_breakpoints): New
11122 function.
11123 (linux_target_ops): Install new target method.
11124 * lynx-low.c (lynx_target_ops): Install NULL hook for
11125 supports_conditional_breakpoints.
11126 * nto-low.c (nto_target_ops): Likewise.
11127 * spu-low.c (spu_target_ops): Likewise.
11128 * win32-low.c (win32_target_ops): Likewise.
11129 * server.c (handle_query): Check
11130 target_supports_conditional_breakpoints.
11131 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11132 New field.
11133 (target_supports_conditional_breakpoints): New macro.
11134
80ad801e
PA
111352015-05-06 Pedro Alves <palves@redhat.com>
11136
11137 PR server/18081
11138 * server.c (start_inferior): If the process exits, mourn it.
11139
819843c7
GB
111402015-04-21 Gary Benson <gbenson@redhat.com>
11141
11142 * hostio.c (fileio_open_flags_to_host): Factored out to
11143 fileio_to_host_openflags in common/fileio.c. Single use
11144 updated.
11145
a2d5a9d7
MF
111462015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11147
11148 * linux-xtensa-low.c (xtensa_fill_gregset)
11149 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11150 XCHAL_HAVE_LOOP.
11151
deb44829
MF
111522015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11153
11154 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11155 (regs_info): Replace usrregs pointer with NULL.
11156
e57f1de3
GB
111572015-04-17 Gary Benson <gbenson@redhat.com>
11158
11159 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11160 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11161 * server.c (handle_qxfer_exec_file): New function.
11162 (qxfer_packets): Add exec-file entry.
11163 (handle_query): Report qXfer:exec-file:read as supported packet.
11164
62828379
RN
111652015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11166
11167 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11168
b88bb450
GB
111692015-04-09 Gary Benson <gbenson@redhat.com>
11170
11171 * hostio-errno.c (errno_to_fileio_error): Remove function.
11172 Update caller to use remote_fileio_to_fio_error.
11173
c8f4bfdd
YQ
111742015-04-09 Yao Qi <yao.qi@linaro.org>
11175
11176 * linux-low.c (linux_insert_point): Call
11177 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11178 (linux_remove_point): Call remove_memory_breakpoint if type is
11179 raw_bkpt_type_sw.
11180 * linux-x86-low.c (x86_insert_point): Don't call
11181 insert_memory_breakpoint.
11182 (x86_remove_point): Don't call remove_memory_breakpoint.
11183
41f98f02
PA
111842015-04-01 Pedro Alves <palves@redhat.com>
11185 Cleber Rosa <crosa@redhat.com>
11186
11187 * server.c (gdbserver_usage): Reorganize and extend the usage
11188 message.
11189
2bf6fb9d
PA
111902015-03-24 Pedro Alves <palves@redhat.com>
11191
11192 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11193 output. Also dump TRAP_TRACE.
11194 (linux_low_filter_event): In debug output, distinguish a
11195 resume_stop SIGSTOP from a delayed SIGSTOP.
11196
369f6daa
GB
111972015-03-24 Gary Benson <gbenson@redhat.com>
11198
11199 * linux-x86-low.c (x86_linux_new_thread): Moved to
11200 nat/x86-linux.c.
11201 (x86_linux_prepare_to_resume): Likewise.
11202
8e5d4070
GB
112032015-03-24 Gary Benson <gbenson@redhat.com>
11204
11205 * Makefile.in (x86-linux-dregs.o): New rule.
11206 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11207 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11208 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11209 (x86_linux_dr_get): Likewise.
11210 (x86_linux_dr_set): Likewise.
11211 (update_debug_registers_callback): Likewise.
11212 (x86_linux_dr_set_addr): Likewise.
11213 (x86_linux_dr_get_addr): Likewise.
11214 (x86_linux_dr_set_control): Likewise.
11215 (x86_linux_dr_get_control): Likewise.
11216 (x86_linux_dr_get_status): Likewise.
11217 (x86_linux_update_debug_registers): Likewise.
11218
2b95d440
GB
112192015-03-24 Gary Benson <gbenson@redhat.com>
11220
11221 * linux-x86-low.c (x86_linux_update_debug_registers):
11222 New function, factored out from...
11223 (x86_linux_prepare_to_resume): ...this.
11224
14b0bc68
GB
112252015-03-24 Gary Benson <gbenson@redhat.com>
11226
11227 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11228 (x86_linux_dr_set): Likewise.
11229 (update_debug_registers_callback): Likewise.
11230 (x86_linux_dr_set_addr): Likewise.
11231 (x86_linux_dr_get_addr): Likewise.
11232 (x86_linux_dr_set_control): Likewise.
11233 (x86_linux_dr_get_control): Likewise.
11234 (x86_linux_dr_get_status): Likewise.
11235 (x86_linux_prepare_to_resume): Likewise.
11236
5dfe6ca8
GB
112372015-03-24 Gary Benson <gbenson@redhat.com>
11238
11239 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11240 Use perror_with_name. Pass string through gettext.
11241 (x86_linux_dr_set): Likewise.
11242
d33472ad
GB
112432015-03-24 Gary Benson <gbenson@redhat.com>
11244
11245 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11246 (x86_linux_dr_set_addr): ...this.
11247 (x86_dr_low_get_addr): Rename to...
11248 (x86_linux_dr_get_addr): ...this.
11249 (x86_dr_low_set_control): Rename to...
11250 (x86_linux_dr_set_control): ...this.
11251 (x86_dr_low_get_control): Rename to...
11252 (x86_linux_dr_get_control): ...this.
11253 (x86_dr_low_get_status): Rename to...
11254 (x86_linux_dr_get_status): ...this.
11255 (x86_dr_low): Update with new function names.
11256
4b134ca1
GB
112572015-03-24 Gary Benson <gbenson@redhat.com>
11258
11259 * Makefile.in (x86-linux.o): New rule.
11260 * configure.srv: Add x86-linux.o to relevant targets.
11261 * linux-low.c (lwp_set_arch_private_info): New function.
11262 (lwp_arch_private_info): Likewise.
11263 * linux-x86-low.c: Include nat/x86-linux.h.
11264 (arch_lwp_info): Removed structure.
11265 (update_debug_registers_callback):
11266 Use lwp_set_debug_registers_changed.
11267 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11268 and lwp_set_debug_registers_changed.
11269 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11270
34c703da
GB
112712015-03-24 Gary Benson <gbenson@redhat.com>
11272
11273 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11274 * linux-arm-low.c (arm_new_thread): Likewise.
11275 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11276 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11277 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11278 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11279
cff068da
GB
112802015-03-24 Gary Benson <gbenson@redhat.com>
11281
11282 * linux-low.c (ptid_of_lwp): New function.
11283 (lwp_is_stopped): Likewise.
11284 (lwp_stop_reason): Likewise.
11285 * linux-x86-low.c (update_debug_registers_callback):
11286 Use lwp_is_stopped.
11287 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11288 lwp_stop_reason.
11289
b2f7c7e8
GB
112902015-03-24 Gary Benson <gbenson@redhat.com>
11291
11292 * linux-low.h (linux_stop_lwp): Remove declaration.
11293
6d4ee8c6
GB
112942015-03-24 Gary Benson <gbenson@redhat.com>
11295
11296 * linux-low.h: Include nat/linux-nat.h.
11297 * linux-low.c (iterate_over_lwps_args): New structure.
11298 (iterate_over_lwps_filter): New function.
11299 (iterate_over_lwps): Likewise.
11300 * linux-x86-low.c (update_debug_registers_callback):
11301 Update signature to what iterate_over_lwps expects.
11302 Remove PID check that iterate_over_lwps now performs.
11303 (x86_dr_low_set_addr): Use iterate_over_lwps.
11304 (x86_dr_low_set_control): Likewise.
11305
70a0bb6b
GB
113062015-03-24 Gary Benson <gbenson@redhat.com>
11307
11308 * linux-x86-low.c (x86_debug_reg_state): New function.
11309 (x86_linux_prepare_to_resume): Use the above.
11310
7b669087
GB
113112015-03-24 Gary Benson <gbenson@redhat.com>
11312
11313 * linux-low.c (current_lwp_ptid): New function.
11314 * linux-x86-low.c: Include nat/linux-nat.h.
11315 (x86_dr_low_get_addr): Use current_lwp_ptid.
11316 (x86_dr_low_get_control): Likewise.
11317 (x86_dr_low_get_status): Likewise.
11318
eef49a3d
PA
113192015-03-20 Pedro Alves <palves@redhat.com>
11320
11321 * tracepoint.c (cmd_qtstatus): Make "str" const.
11322
b2333d22
PA
113232015-03-20 Pedro Alves <palves@redhat.com>
11324
11325 * server.c (handle_general_set): Make "req_str" const.
11326
23f238d3
PA
113272015-03-19 Pedro Alves <palves@redhat.com>
11328
11329 * linux-low.c (linux_resume_one_lwp): Rename to ...
11330 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11331 instead call perror_with_name.
11332 (check_ptrace_stopped_lwp_gone): New function.
11333 (linux_resume_one_lwp): Reimplement as wrapper around
11334 linux_resume_one_lwp_throw that swallows errors if the LWP is
11335 gone.
11336
91baf43f
PA
113372015-03-19 Pedro Alves <palves@redhat.com>
11338
11339 * linux-low.c (count_events_callback, select_event_lwp_callback):
11340 No longer check whether the thread has resume_stop as last resume
11341 kind.
11342
8bf3b159
PA
113432015-03-19 Pedro Alves <palves@redhat.com>
11344
11345 * linux-low.c (count_events_callback, select_event_lwp_callback):
11346 Use the lwp's status_pending_p field, not the thread's.
11347
b90fc188
PA
113482015-03-19 Pedro Alves <palves@redhat.com>
11349
11350 * linux-low.c (select_event_lwp_callback): Update comments to
11351 no longer mention SIGTRAP.
11352
464b0089
GB
113532015-03-18 Gary Benson <gbenson@redhat.com>
11354
11355 * server.c (handle_query): Do not report vFile:fstat as supported.
11356
aa9e327f
GB
113572015-03-11 Gary Benson <gbenson@redhat.com>
11358
11359 * hostio.c (sys/types.h): New include.
11360 (sys/stat.h): Likewise.
11361 (common-remote-fileio.h): Likewise.
11362 (handle_fstat): New function.
11363 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11364
791c0056
GB
113652015-03-11 Gary Benson <gbenson@redhat.com>
11366
11367 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11368 struct stat.st_blocks and struct stat.st_blksize.
11369 * configure: Regenerate.
11370 * config.in: Likewise.
11371 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11372 (OBS): Add common-remote-fileio.o.
11373 (common-remote-fileio.o): New rule.
11374
9a9df970
PA
113752015-03-09 Pedro Alves <palves@redhat.com>
11376
11377 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11378 'struct sockaddr' pointer in 'accept' call.
11379
9eb1356e
PA
113802015-03-09 Pedro Alves <palves@redhat.com>
11381
11382 Revert:
11383 2015-03-07 Pedro Alves <palves@redhat.com>
11384 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11385 or <winsock2.h> here. Instead include "gdb_socket.h".
11386 (remote_open): Use union gdb_sockaddr_u.
11387 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11388 or <winsock2.h> here. Instead include "gdb_socket.h".
11389 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11390 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11391 or <sys/un.h>.
11392 (init_named_socket, gdb_agent_helper_thread): Use union
11393 gdb_sockaddr_u.
11394
aac331e4
PA
113952015-03-07 Pedro Alves <palves@redhat.com>
11396
11397 * configure.ac (build_warnings): Move
11398 -Wdeclaration-after-statement to the C-specific set.
11399 * configure: Regenerate.
11400
366c75fc
PA
114012015-03-07 Pedro Alves <palves@redhat.com>
11402
11403 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11404 or <winsock2.h> here. Instead include "gdb_socket.h".
11405 (remote_open): Use union gdb_sockaddr_u.
11406 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11407 or <winsock2.h> here. Instead include "gdb_socket.h".
11408 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11409 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11410 or <sys/un.h>.
11411 (init_named_socket, gdb_agent_helper_thread): Use union
11412 gdb_sockaddr_u.
11413
492d29ea
PA
114142015-03-07 Pedro Alves <palves@redhat.com>
11415
11416 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11417 instead.
11418
60a191ed
YQ
114192015-03-06 Yao Qi <yao.qi@linaro.org>
11420
11421 * linux-aarch64-low.c (aarch64_insert_point): Use
11422 show_debug_regs as a boolean.
11423 (aarch64_remove_point): Likewise.
11424
f5771b1d
PA
114252015-03-05 Pedro Alves <palves@redhat.com>
11426
11427 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11428 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11429 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11430 * nto-low.c (nto_target_ops): Likewise.
11431 * spu-low.c (spu_target_ops): Likewise.
11432 * win32-low.c (win32_target_ops): Likewise.
11433
3e572f71
PA
114342015-03-04 Pedro Alves <palves@redhat.com>
11435
72f4393d 11436 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11437 Decide whether a breakpoint triggered based on the SIGTRAP's
11438 siginfo.si_code.
72f4393d
L
11439 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11440 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11441 (linux_low_filter_event): Check for breakpoints before checking
11442 watchpoints.
11443 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11444 siginfo.si_code.
72f4393d
L
11445 (linux_stopped_by_sw_breakpoint)
11446 (linux_supports_stopped_by_sw_breakpoint)
11447 (linux_stopped_by_hw_breakpoint)
11448 (linux_supports_stopped_by_hw_breakpoint): New functions.
11449 (linux_target_ops): Install new target methods.
3e572f71 11450
1ec68e26
PA
114512015-03-04 Pedro Alves <palves@redhat.com>
11452
11453 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11454 * server.c (swbreak_feature, hwbreak_feature): New globals.
11455 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11456 (captured_main): Clear swbreak_feature and hwbreak_feature.
11457 * server.h (swbreak_feature, hwbreak_feature): Declare.
11458 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11459 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11460 supports_stopped_by_hw_breakpoint>: New fields.
11461 (target_supports_stopped_by_sw_breakpoint)
11462 (target_stopped_by_sw_breakpoint)
11463 (target_supports_stopped_by_hw_breakpoint)
11464 (target_stopped_by_hw_breakpoint): Declare.
11465
15c66dd6
PA
114662015-03-04 Pedro Alves <palves@redhat.com>
11467
11468 enum lwp_stop_reason -> enum target_stop_reason
11469 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11470 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11471 (linux_wait_1, stuck_in_jump_pad_callback)
11472 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11473 (linux_stopped_by_watchpoint):
11474 * linux-low.h (enum lwp_stop_reason): Delete.
11475 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11476 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11477
98fc70d6
YQ
114782015-03-04 Yao Qi <yao.qi@linaro.org>
11479
11480 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11481
dd2ac174
GB
114822015-03-03 Gary Benson <gbenson@redhat.com>
11483
11484 * hostio.c (handle_vFile): Fix prefix lengths.
11485
d68e53f4
MM
114862015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11487
11488 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11489 ptr_bits.
11490
bf2d68ab
AA
114912015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11492
11493 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11494 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11495 (clean): Add "rm -f" for above C files.
11496 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11497 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11498 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11499 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11500 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11501 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11502 (init_registers_s390x_vx_linux64)
11503 (init_registers_s390x_tevx_linux64)
11504 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11505 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11506 declarations.
11507 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11508 (s390_store_vxrs_high): New functions.
11509 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11510 NT_S390_VXRS_HIGH.
11511 (s390_arch_setup): Add logic for selecting one of the new target
11512 descriptions. Activate the new vector regsets if applicable.
11513 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11514 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11515 and init_registers_s390x_tevx_linux64.
11516
c966a859
PA
115172015-03-01 Pedro Alves <palves@redhat.com>
11518
11519 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11520 parameter.
11521
4180215b
PA
115222015-02-27 Pedro Alves <palves@redhat.com>
11523
11524 * linux-x86-low.c (u_debugreg_offset): New function.
11525 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11526
749bab01
PA
115272015-02-27 Pedro Alves <palves@redhat.com>
11528
11529 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11530 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11531 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11532 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11533 (ps_lsetfpregs, ps_getpid)
11534 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11535 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11536 (ps_lsetxregs, ps_plog): Declare.
11537
3c14e5a3
PA
115382015-02-27 Pedro Alves <palves@redhat.com>
11539
11540 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11541 IP_AGENT_EXPORT_FUNC.
11542 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11543 IP_AGENT_EXPORT_FUNC.
11544 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11545 (IP_AGENT_EXPORT): Delete.
11546 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11547 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11548 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11549 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11550 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11551 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11552 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11553 (traceframe_read_count, traceframe_write_count)
11554 (traceframes_created, trace_state_variables, get_raw_reg)
11555 (get_trace_state_variable_value, set_trace_state_variable_value)
11556 (ust_loaded, helper_thread_id, cmd_buf): Use
11557 IPA_SYM_EXPORTED_NAME.
11558 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11559 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11560 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11561 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11562 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11563 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11564 EXTERN_C_PUSH/EXTERN_C_POP.
11565 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11566 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11567 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11568 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11569 (traceframe_write_count, traceframe_read_count)
11570 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11571 (about_to_request_buffer_space, get_trace_state_variable_value)
11572 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11573 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11574 EXTERN_C_PUSH/EXTERN_C_POP.
11575 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11576 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11577 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11578 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11579 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11580 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11581 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11582 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11583 Define.
11584 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11585 (IP_AGENT_EXPORT_VAR_DECL): Define.
11586 (tracing): Declare.
11587 (gdb_agent_get_raw_reg): Declare.
11588
fe978cb0
PA
115892015-02-27 Tom Tromey <tromey@redhat.com>
11590 Pedro Alves <palves@redhat.com>
11591
11592 Rename symbols whose names are reserved C++ keywords throughout.
11593
3bc3d82a
PA
115942015-02-27 Pedro Alves <palves@redhat.com>
11595
11596 * Makefile.in (COMPILER): New, get it from autoconf.
11597 (CXX): Get from autoconf instead.
11598 (COMPILE.pre): Use COMPILER.
11599 (CC-LD): Rename to ...
11600 (CC_LD): ... this. Use COMPILER.
11601 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11602 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11603 * acinclude.m4: Include build-with-cxx.m4.
11604 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11605 Disable -Werror by default if building in C++ mode.
11606 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11607 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11608 the C++ compiler. Save/restore CXXFLAGS too.
11609 * configure: Regenerate.
11610
07697489
PA
116112015-02-27 Pedro Alves <palves@redhat.com>
11612
11613 * acinclude.m4: Include libiberty.m4.
11614 * configure.ac: Call libiberty_INIT.
11615 * config.in, configure: Regenerate.
11616
9beb7c4e
PA
116172015-02-26 Pedro Alves <palves@redhat.com>
11618
11619 * linux-low.c (linux_wait_1): When incrementing the PC past a
11620 program breakpoint always use the_low_target.breakpoint_len as
11621 increment, rather than the maximum between that and
11622 the_low_target.decr_pc_after_break.
11623
8090aef2
PA
116242015-02-23 Pedro Alves <palves@redhat.com>
11625
11626 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11627 thread was doing a step-over; always adjust the PC if
11628 we stepped over a permanent breakpoint.
11629 (linux_wait_1): If we stepped over breakpoint that was on top of a
11630 permanent breakpoint, manually advance the PC past it.
11631
bc9540e8
PA
116322015-02-23 Pedro Alves <palves@redhat.com>
11633
11634 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11635 modes.
11636 (x86_fill_gregset, x86_store_gregset): Use it when handling
11637 $orig_eax.
11638
2db9a427
PA
116392015-02-20 Pedro Alves <palves@redhat.com>
11640
11641 * thread-db.c: Include "nat/linux-procfs.h".
11642 (thread_db_init): Skip listing new threads if the kernel supports
11643 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11644
afa8d396
PA
116452015-02-20 Pedro Alves <palves@redhat.com>
11646
11647 * linux-low.c (status_pending_p_callback): Use ptid_match.
11648
c9587f88
AT
116492015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11650
11651 PR breakpoints/16812
11652 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11653 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11654 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11655
b05ec7a5
AT
116562015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11657
11658 PR breakpoints/15956
11659 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11660
d33501a5
MM
116612015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11662
11663 * linux-low.c (linux_low_btrace_conf): Print size.
11664 * server.c (handle_btrace_conf_general_set): New.
11665 (hanle_general_set): Call handle_btrace_conf_general_set.
11666 (handle_query): Report Qbtrace-conf:bts:size as supported.
11667
f4abbc16
MM
116682015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11669
11670 * linux-low.c (linux_low_enable_btrace): Update parameters.
11671 (linux_low_btrace_conf): New.
11672 (linux_target_ops)<to_btrace_conf>: Initialize.
11673 * server.c (current_btrace_conf): New.
11674 (handle_btrace_enable): Rename to ...
11675 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11676 to target_enable_btrace. Update comment. Update users.
11677 (handle_qxfer_btrace_conf): New.
11678 (qxfer_packets): Add btrace-conf entry.
11679 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11680 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11681 (target_ops)<read_btrace_conf>: New.
11682 (target_enable_btrace): Update parameters.
11683 (target_read_btrace_conf): New.
11684
043c3577
MM
116852015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11686
11687 * server.c (handle_btrace_general_set): Remove call to
11688 target_supports_btrace.
11689 (supported_btrace_packets): New.
11690 (handle_query): Call supported_btrace_packets.
11691 * target.h: include btrace-common.h.
11692 (btrace_target_info): Removed.
11693 (supports_btrace, target_supports_btrace): Update parameters.
11694
734b0e4b
MM
116952015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11696
11697 * Makefile.in (SFILES): Add common/btrace-common.c.
11698 (OBS): Add common/btrace-common.o.
11699 (btrace-common.o): Add build rules.
11700 * linux-low: Include btrace-common.h.
11701 (linux_low_read_btrace): Use struct btrace_data. Call
11702 btrace_data_init and btrace_data_fini.
11703
d6c146e9
PA
117042015-02-06 Pedro Alves <palves@redhat.com>
11705
11706 * thread-db.c (find_new_threads_callback): Add debug output.
11707
20ba1ce6
PA
117082015-02-04 Pedro Alves <palves@redhat.com>
11709
11710 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11711 (resume_stopped_resumed_lwps): New function.
11712 (linux_wait_for_event_filtered): Use it.
11713
8cc73a39
SDJ
117142015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11715
11716 * Makefile.in (SFILES): Add linux-personality.c.
11717 (linux-personality.o): New rule.
11718 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11719 list of objects to be built.
11720 * linux-low.c: Include nat/linux-personality.h.
11721 (linux_create_inferior): Remove code to disable address space
11722 randomization (moved to ../nat/linux-personality.c). Create
11723 cleanup to disable address space randomization.
11724
fb23d554
SDJ
117252015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11726
11727 * Makefile.in (posix-strerror.o): New rule.
11728 (mingw-strerror.o): Likewise.
11729 * configure: Regenerated.
11730 * configure.ac: Source file ../common/common.host. Initialize new
11731 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11732
cdf43629
YQ
117332015-01-14 Yao Qi <yao@codesourcery.com>
11734
11735 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11736 (ppc-linux.o): New rule.
11737 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11738 * configure.ac: AC_CHECK_FUNCS(getauxval).
11739 * config.in: Re-generated.
11740 * configure: Re-generated.
11741 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11742 ppc64_64bit_inferior_p
11743
514c5338
YQ
117442015-01-14 Yao Qi <yao@codesourcery.com>
11745
11746 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11747 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11748 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11749 (PT_ORIG_R3, PT_TRAP): Likewise.
11750 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11751 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11752 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11753
3368c1e5
JB
117542015-01-10 Joel Brobecker <brobecker@adacore.com>
11755
11756 * i387-fp.c (i387_cache_to_xsave): In look over
11757 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11758 zmmh_low_space field by use of zmmh_high_space.
11759
582511be
PA
117602015-01-09 Pedro Alves <palves@redhat.com>
11761
11762 * linux-low.c (step_over_bkpt): Move higher up in the file.
11763 (handle_extended_wait): Don't store the stop_pc here.
11764 (get_stop_pc): Adjust comments and rename to ...
11765 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11766 stopped for a software breakpoint or hardware breakpoint.
11767 (thread_still_has_status_pending_p): New function.
11768 (status_pending_p_callback): Use
11769 thread_still_has_status_pending_p. If the event is no longer
11770 interesting, resume the LWP.
11771 (handle_tracepoints): Add assert.
11772 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11773 (wstatus_maybe_breakpoint): New function.
11774 (cancel_breakpoint): Delete function.
11775 (check_stopped_by_watchpoint): New function, factored out from
11776 linux_low_filter_event.
11777 (lp_status_maybe_breakpoint): Delete function.
11778 (linux_low_filter_event): Remove filter_ptid argument.
11779 Leave thread group exits pending here. Store the LWP's stop PC.
11780 Always leave events pending.
11781 (linux_wait_for_event_filtered): Pull all events out of the
11782 kernel, and leave them all pending.
11783 (count_events_callback, select_event_lwp_callback): Consider all
11784 events.
11785 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11786 (select_event_lwp): Only give preference to the stepping LWP in
11787 all-stop mode. Adjust comments.
11788 (ignore_event): New function.
11789 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11790 references to cancel_breakpoints. Adjust to renames. Also give
11791 equal priority to all LWPs that have had events in non-stop mode.
11792 If reporting a software breakpoint event, unadjust the LWP's PC.
11793 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11794 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11795 Adjust.
11796 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11797 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11798 (linux_stopped_by_watchpoint): Adjust.
11799 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11800 * linux-low.h (enum lwp_stop_reason): New.
11801 (struct lwp_info) <stop_pc>: Adjust comment.
11802 <stopped_by_watchpoint>: Delete field.
11803 <stop_reason>: New field.
11804 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11805 * mem-break.c (software_breakpoint_inserted_here)
11806 (hardware_breakpoint_inserted_here): New function.
11807 * mem-break.h (software_breakpoint_inserted_here)
11808 (hardware_breakpoint_inserted_here): Declare.
11809 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11810 (cancel_breakpoints): Delete.
11811 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11812 (upload_fast_traceframes): Remove references to
11813 cancel_breakpoints.
11814
a33e3959
PA
118152015-01-09 Pedro Alves <palves@redhat.com>
11816
11817 * thread-db.c (find_new_threads_callback): Ignore thread if the
11818 kernel thread ID is -1.
11819
8784d563
PA
118202015-01-09 Pedro Alves <palves@redhat.com>
11821
11822 * linux-low.c (linux_attach_fail_reason_string): Move to
11823 nat/linux-ptrace.c, and rename.
11824 (linux_attach_lwp): Update comment.
11825 (attach_proc_task_lwp_callback): New function.
11826 (linux_attach): Adjust to rename and use
11827 linux_proc_attach_tgid_threads.
11828 (linux_attach_fail_reason_string): Delete declaration.
11829
76f2b779
JB
118302015-01-01 Joel Brobecker <brobecker@adacore.com>
11831
11832 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11833 * server.c (gdbserver_version): Likewise.
11834
fafcc06a
SDJ
118352014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11836
11837 * remote-utils.c: Include ctype.h.
11838 (input_interrupt): Explicitly handle the case when the char
11839 received is the NUL byte. Improve the printing of non-ASCII
11840 characters.
11841
beed38b8
JB
118422014-12-16 Joel Brobecker <brobecker@adacore.com>
11843
11844 * linux-low.c (linux_low_filter_event): Update call to
11845 linux_enable_event_reporting following the addition of
11846 a new parameter to that function.
11847
bf330350
CU
118482014-12-16 Catalin Udma <catalin.udma@freescale.com>
11849
11850 PR server/17457
11851 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11852 (AARCH64_FPCR_REGNO): Likewise.
11853 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11854 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11855 (aarch64_store_fpregset): Likewise.
11856
5227d625
JB
118572014-12-15 Joel Brobecker <brobecker@adacore.com>
11858
11859 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11860 Remove FIXME comment about assumption about N.
11861
f93b65a0
JB
118622014-12-13 Joel Brobecker <brobecker@adacore.com>
11863
11864 * configure.ac: If large-file support is disabled in GDBserver,
11865 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11866 * configure: Regenerate.
11867
e5a9158d
AA
118682014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11869
11870 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11871 warning upon ENODATA from ptrace.
11872 * linux-s390-low.c (s390_store_tdb): New.
11873 (s390_regsets): Add regset for NT_S390_TDB.
11874
feea5f36
AA
118752014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11876
11877 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11878 without a fill_function.
11879 * linux-s390-low.c (s390_fill_last_break): Remove.
11880 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11881 (s390_arch_setup): Use regset's size instead of fill_function for
11882 loop end condition.
11883
098dbe61
AA
118842014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11885
11886 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11887 the regset's store function when ptrace returned an error.
11888 * regcache.c (get_thread_regcache): Invalidate register cache
11889 before fetching inferior's registers.
11890
28eef672
AA
118912014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11892
11893 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11894 while-loop as for-loop.
11895 (regsets_store_inferior_registers): Likewise.
11896
bdca27a2
YQ
118972014-11-28 Yao Qi <yao@codesourcery.com>
11898
11899 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11900 * config.in, configure: Re-generate.
11901 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11902 is defined.
11903
9c232dda
YQ
119042014-11-21 Yao Qi <yao@codesourcery.com>
11905
11906 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11907 (AC_CHECK_HEADERS): Remove malloc.h.
11908 * configure: Re-generated.
11909 * config.in: Re-generated.
11910 * server.h: Don't include alloca.h and malloc.h.
11911 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11912 Don't include malloc.h.
11913
43968415
JB
119142014-11-17 Joel Brobecker <brobecker@adacore.com>
11915
11916 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11917 corresponding ERRNO check in same block.
11918
40e91bc7
PA
119192014-11-12 Pedro Alves <palves@redhat.com>
11920
11921 * server.c (cont_thread): Update comment.
11922 (start_inferior, attach_inferior): No longer clear cont_thread.
11923 (handle_v_cont): No longer set cont_thread.
11924 (captured_main): Clear cont_thread each time a GDB connects.
11925
c2c118cf
PA
119262014-11-12 Pedro Alves <palves@redhat.com>
11927
11928 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11929 thread, and don't resume all threads if the Hc thread has exited.
11930
78708b7c
PA
119312014-11-12 Pedro Alves <palves@redhat.com>
11932
11933 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11934 the process group instead of to a specific LWP.
11935
a2abc7de
PA
119362014-10-15 Pedro Alves <palves@redhat.com>
11937
11938 PR server/17487
11939 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11940 parameter.
11941 (arm_set_thread_context): Delete.
11942 (the_low_target): Adjust.
11943 * win32-i386-low.c (debug_registers_changed)
11944 (debug_registers_used): Delete.
11945 (update_debug_registers_callback): New function.
11946 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11947 needing to update their debug registers.
11948 (win32_get_current_dr): New function.
11949 (x86_dr_low_get_addr, x86_dr_low_get_control)
11950 (x86_dr_low_get_status): Fetch the debug register from the thread
11951 record's context.
11952 (i386_initial_stuff): Adjust.
11953 (i386_get_thread_context): Remove current_event parameter. Don't
11954 clear debug_registers_changed nor copy DR values to
11955 debug_reg_state.
11956 (i386_set_thread_context): Delete.
11957 (i386_prepare_to_resume): New function.
11958 (i386_thread_added): Mark the thread as needing to update irs
11959 debug registers.
11960 (the_low_target): Remove i386_set_thread_context and install
11961 i386_prepare_to_resume.
11962 * win32-low.c (win32_get_thread_context): Adjust.
11963 (win32_set_thread_context): Use SetThreadContext
11964 directly.
11965 (win32_prepare_to_resume): New function.
11966 (win32_require_context): New function, factored out from ...
11967 (thread_rec): ... this.
11968 (continue_one_thread): Call win32_prepare_to_resume on each thread
11969 we're about to continue.
11970 (win32_resume): Call win32_prepare_to_resume on the event thread.
11971 * win32-low.h (struct win32_thread_info)
11972 <debug_registers_changed>: New field.
11973 (struct win32_target_ops): Change prototype of set_thread_context,
11974 delete set_thread_context and add prepare_to_resume.
11975 (win32_require_context): New declaration.
11976
a442d071
GB
119772014-10-08 Gary Benson <gbenson@redhat.com>
11978
11979 * server.h: Do not include common-exceptions.h.
11980
6f1947e8
GB
119812014-10-08 Gary Benson <gbenson@redhat.com>
11982
11983 * server.h: Do not include cleanups.h.
11984
63b434a4
JH
119852014-09-30 James Hogan <james.hogan@imgtec.com>
11986
11987 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11988 mips64-dsp-linux.c.
11989
c4d9ceb6
YQ
119902014-09-23 Yao Qi <yao@codesourcery.com>
11991
11992 * linux-low.c (lp_status_maybe_breakpoint): New function.
11993 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11994 (count_events_callback): Likewise.
11995 (select_event_lwp_callback): Likewise.
11996 (cancel_breakpoints_callback): Likewise.
11997
89a5711c
DB
119982014-09-19 Don Breazeal <donb@codesourcery.com>
11999
12000 * linux-low.c (handle_extended_wait): Call
12001 linux_ptrace_get_extended_event.
12002 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12003 linux_is_extended_waitstatus.
12004
bffc0964
JB
120052014-09-16 Joel Brobecker <brobecker@adacore.com>
12006
12007 * Makefile.in (CPPFLAGS): Define.
12008 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12009 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12010
0bfdf32f
GB
120112014-09-16 Gary Benson <gbenson@redhat.com>
12012
12013 * inferiors.h (current_inferior): Renamed as...
12014 (current_thread): New variable. All uses updated.
12015 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12016 (maybe_move_out_of_jump_pad): Likewise.
12017 (cancel_breakpoint): Likewise.
12018 (linux_low_filter_event): Likewise.
12019 (wait_for_sigstop): Likewise.
12020 (linux_resume_one_lwp): Likewise.
12021 (need_step_over_p): Likewise.
12022 (start_step_over): Likewise.
12023 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12024 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12025 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12026 and save_inferior as saved_thread.
12027 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12028 saved_thread.
12029 (regcache_invalidate_thread): Likewise.
12030 * remote-utils.c (prepare_resume_reply): Likewise.
12031 * thread-db.c (thread_db_get_tls_address): Likewise.
12032 (disable_thread_event_reporting): Likewise.
12033 (remove_thread_event_breakpoints): Likewise.
12034 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12035 as saved_thread.
12036 * target.h (set_desired_inferior): Renamed as...
12037 (set_desired_thread): New declaration. All uses updated.
12038 * server.c (myresume): Updated comment to reference thread instead
12039 of inferior.
12040 (handle_serial_event): Likewise.
12041 (handle_target_event): Likewise.
12042
361c8ade
GB
120432014-09-12 Tom Tromey <tromey@redhat.com>
12044 Gary Benson <gbenson@redhat.com>
12045
12046 * regcache.h: Include common-regcache.h.
12047 (regcache_read_pc): Don't declare.
12048 * regcache.c (get_thread_regcache_for_ptid): New function.
12049
bd9269f7
GB
120502014-09-11 Tom Tromey <tromey@redhat.com>
12051 Gary Benson <gbenson@redhat.com>
12052
12053 * symbol.c: New file.
12054 * Makefile.in (SFILES): Add symbol.c.
12055 (OBS): Add symbol.o.
12056
f8c1d06b
GB
120572014-09-11 Gary Benson <gbenson@redhat.com>
12058
12059 * target.c (target_stop_ptid, target_continue_ptid): New
12060 functions.
12061
721ec300
GB
120622014-09-11 Tom Tromey <tromey@redhat.com>
12063 Gary Benson <gbenson@redhat.com>
12064
12065 * target.h: Include target/target.h.
12066 * target.c (target_read_memory, target_read_uint32)
12067 (target_write_memory): New functions.
12068
c5e92cca
GB
120692014-09-11 Gary Benson <gbenson@redhat.com>
12070
12071 * server.h (debug_hw_points): Don't declare.
12072 * server.c (debug_hw_points): Don't define. Replace all uses
12073 with show_debug_regs.
12074 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12075 all uses with show_debug_regs.
12076
2e4bb98a
EBM
120772014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12078
12079 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12080 endianness into account.
12081 (ppc_supply_ptrace_register): Likewise.
12082
ac740bc7
JH
120832014-09-03 James Hogan <james.hogan@imgtec.com>
12084
12085 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12086 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12087
97ea6506
GB
120882014-09-03 Gary Benson <gbenson@redhat.com>
12089
12090 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12091 ALL_DEBUG_ADDRESS_REGISTERS.
12092
df7e5265
GB
120932014-09-02 Gary Benson <gbenson@redhat.com>
12094
12095 * i386-low.h: Renamed as...
12096 * x86-low.h: New file. All type, function and variable name
12097 prefixes changed from "i386_" to "x86_". All references updated.
12098 * i386-low.c: Renamed as...
12099 * x86-low.c: New file. All type, function and variable name
12100 prefixes changed from "i386_" to "x86_". All references updated.
12101
ed859da7
GB
121022014-09-02 Gary Benson <gbenson@redhat.com>
12103
12104 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12105 (x86_linux_new_thread): Likewise.
12106
860789c7
GB
121072014-08-29 Gary Benson <gbenson@redhat.com>
12108
12109 * server.h (setjmp.h): Do not include.
12110 (toplevel): Do not declare.
12111 (common-exceptions.h): Include.
12112 (cleanups.h): Likewise.
12113 * server.c (toplevel): Do not define.
12114 (exit_code): New static global.
12115 (detach_or_kill_for_exit_cleanup): New function.
12116 (main): New function. Original main renamed to...
12117 (captured_main): New function.
12118 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12119
ff55e1b5
GB
121202014-08-29 Gary Benson <gbenson@redhat.com>
12121
12122 * Makefile.in (SFILES): Add common/common-exceptions.c.
12123 (OBS): Add common-exceptions.o.
12124 (common-exceptions.o): New rule.
12125 * utils.c (prepare_to_throw_exception): New function.
12126
e9bcb658
GB
121272014-08-29 Gary Benson <gbenson@redhat.com>
12128
12129 * config.in: Regenerate.
12130 * configure: Likewise.
12131
e3180625
GB
121322014-08-29 Gary Benson <gbenson@redhat.com>
12133
12134 * Makefile.in (SFILES): Add common/cleanups.c.
12135 (OBS): cleanups.o.
12136 (cleanups.o): New rule.
12137
e3d6ba5d
GB
121382014-08-29 Gary Benson <gbenson@redhat.com>
12139
12140 * utils.c (internal_vwarning): New function.
12141
7096e886
GB
121422014-08-28 Gary Benson <gbenson@redhat.com>
12143
12144 * utils.h (fatal): Remove declaration.
12145 * utils.c (fatal): Remove function.
12146
14ce3192
GB
121472014-08-28 Gary Benson <gbenson@redhat.com>
12148
12149 * tracepoint.c (gdb_agent_init): Replace fatal with
12150 perror_with_name.
12151 (initialize_tracepoint): Likewise.
12152
50278d59
GB
121532014-08-28 Gary Benson <gbenson@redhat.com>
12154
12155 * remote-utils.c (remote_prepare): Replace fatal with error.
12156
aa96c426
GB
121572014-08-28 Gary Benson <gbenson@redhat.com>
12158
12159 * linux-low.c (linux_async): Replace fatal with warning.
12160 Tidy up and return.
12161 (linux_start_non_stop): Return -1 if linux_async failed.
12162
f7160e97
GB
121632014-08-28 Gary Benson <gbenson@redhat.com>
12164
12165 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12166 gdb_assert.
12167 (i386_dr_low_get_addr): Remove vague comment.
12168 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12169 gdb_assert.
12170
38e08fca
GB
121712014-08-28 Gary Benson <gbenson@redhat.com>
12172
12173 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12174 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12175 internal_error.
12176 (linux_resume_one_lwp): Likewise.
12177 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12178 gdb_assert.
12179 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12180 with internal_error.
12181 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12182 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12183 (find_register_by_name): Replace fatal with internal_error.
12184 (find_regno): Likewise.
12185 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12186 * thread-db.c (thread_db_create_event): Likewise.
12187 (thread_db_load_search): Likewise.
12188 (try_thread_db_load_1): Likewise.
12189 * tracepoint.c (get_jump_space_head): Replace fatal with
12190 internal_error.
12191 (claim_trampoline_space): Likewise.
12192 (have_fast_tracepoint_trampoline_buffer): Likewise.
12193 (cmd_qtstart): Likewise.
12194 (stop_tracing): Likewise.
12195 (fast_tracepoint_collecting): Likewise.
12196 (target_malloc): Likewise.
12197 (download_tracepoint): Likewise.
12198 (download_trace_state_variables): Replace check with gdb_assert.
12199 (upload_fast_traceframes): Replace fatal with internal_error.
12200
34abf635
GB
122012014-08-19 Tom Tromey <tromey@redhat.com>
12202 Gary Benson <gbenson@redhat.com>
12203
12204 * Makefile.in (SFILES): Add common/common-debug.c.
12205 (OBS): Add common-debug.o.
12206 (common-debug.o): New rule.
12207 * debug.h (debug_printf): Don't declare.
12208 * debug.c (debug_printf): Renamed and rewritten as...
12209 (debug_vprintf): New function.
12210
f6e94d78
GB
122112014-08-19 Gary Benson <gbenson@redhat.com>
12212
12213 * utils.h: Do not include print-utils.h.
12214
9239eeab
GB
122152014-08-19 Tom Tromey <tromey@redhat.com>
12216 Gary Benson <gbenson@redhat.com>
12217
12218 * server.h: Add static assertion.
12219 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12220
ef87c8bb
GB
122212014-08-19 Tom Tromey <tromey@redhat.com>
12222 Gary Benson <gbenson@redhat.com>
12223
12224 * Makefile.in (SFILES): Add common/errors.c.
12225 (OBS): Add errors.o.
12226 (IPA_OBS): Add errors-ipa.o.
12227 (errors.o): New rule.
12228 (errors-ipa.o): Likewise.
12229 * utils.h (perror_with_name, error, warning): Don't declare.
12230 * utils.c (warning): Renamed and rewritten as...
12231 (vwarning): New function.
12232 (error): Renamed and rewritten as...
12233 (verror): New function.
12234 (internal_error): Renamed and rewritten as...
12235 (internal_verror): New function.
12236
bb974a24
GB
122372014-08-07 Gary Benson <gbenson@redhat.com>
12238
12239 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12240 * configure: Regenerate.
12241 * config.in: Likewise.
12242 * server.h: Do not include errno.h.
12243 * event-loop.c: Likewise.
12244 * hostio-errno.c: Likewise.
12245 * linux-low.c: Likewise.
12246 * remote-utils.c: Likewise.
12247 * spu-low.c: Likewise.
12248 * utils.c: Likewise.
12249 * gdbreplay.c: Unconditionally include errno.h.
12250
6d3d12eb
GB
122512014-08-07 Gary Benson <gbenson@redhat.com>
12252
12253 * server.h: Do not include string.h.
12254 * event-loop.c: Likewise.
12255 * linux-low.c: Likewise.
12256 * regcache.c: Likewise.
12257 * remote-utils.c: Likewise.
12258 * spu-low.c: Likewise.
12259 * utils.c: Likewise.
12260
dccbb609
GB
122612014-08-07 Gary Benson <gbenson@redhat.com>
12262
12263 * server.h: Do not include gdb_assert.h.
12264
e76df0d0
GB
122652014-08-07 Gary Benson <gbenson@redhat.com>
12266
12267 * server.h: Do not include common-utils.h.
12268
4cb9c816
GB
122692014-08-07 Gary Benson <gbenson@redhat.com>
12270
12271 * server.h: Do not include ptid.h.
12272 * notif.h: Likewise.
12273
3995eeee
GB
122742014-08-07 Gary Benson <gbenson@redhat.com>
12275
12276 * server.h: Do not include gdb_locale.h.
12277
cb9f1a9b
GB
122782014-08-07 Gary Benson <gbenson@redhat.com>
12279
12280 * server.h: Do not include gdb/signals.h.
12281 * win32-low.c: Likewise.
12282
a5fceff8
GB
122832014-08-07 Gary Benson <gbenson@redhat.com>
12284
12285 * server.h: Do not include pathmax.h.
12286
b9391142
GB
122872014-08-07 Gary Benson <gbenson@redhat.com>
12288
12289 * server.h: Do not include libiberty.h.
12290 * linux-bfin-low.c: Likewise.
12291
0e443c87
GB
122922014-08-07 Gary Benson <gbenson@redhat.com>
12293
12294 * server.h: Do not include ansidecl.h.
12295
8ebb3f56
GB
122962014-08-07 Gary Benson <gbenson@redhat.com>
12297
12298 * linux-x86-low.c: Do not include stddef.h.
12299 * lynx-ppc-low.c: Likewise.
12300 * tracepoint.c: Likewise.
12301
8980bdf6
GB
123022014-08-07 Gary Benson <gbenson@redhat.com>
12303
12304 * server.h: Do not include stdarg.h.
12305 * nto-low.c: Likewise.
12306
d7096f71
GB
123072014-08-07 Gary Benson <gbenson@redhat.com>
12308
12309 * server.h: Do not include stdlib.h.
12310 * inferiors.c: Likewise.
12311 * linux-low.c: Likewise.
12312 * regcache.c: Likewise.
12313 * spu-low.c: Likewise.
12314 * tracepoint.c: Likewise.
12315 * utils.c: Likewise.
12316
d02f550d
GB
123172014-08-07 Gary Benson <gbenson@redhat.com>
12318
12319 * server.h: Do not include stdio.h.
12320 * linux-low.c: Likewise.
12321 * remote-utils.c: Likewise.
12322 * spu-low.c: Likewise.
12323 * utils.c: Likewise.
12324 * wincecompat.c: Likewise.
12325
87f6c4e3
GB
123262014-08-06 Gary Benson <gbenson@redhat.com>
12327
12328 * regcache.c (init_register_cache): Move conditionals inside if.
12329
7089dca4
GB
123302014-08-06 Gary Benson <gbenson@redhat.com>
12331
12332 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12333
462f517e
GB
123342014-07-31 Gary Benson <gbenson@redhat.com>
12335
12336 * ax.h: Do not include server.h.
12337 * gdbthread.h: Likewise.
12338 * lynx-low.h: Likewise.
12339 * notif.h: Likewise.
12340
976411d6
GB
123412014-07-30 Gary Benson <gbenson@redhat.com>
12342
12343 * server.h: Include common-defs.h.
12344 Do not include config.h or build-gnulib-gdbserver/config.h.
12345
d41f6d8e
GB
123462014-07-30 Gary Benson <gbenson@redhat.com>
12347
12348 * hostio-errno.c: Move server.h to top of includes list.
12349 * inferiors.c: Likewise.
12350 * linux-x86-low.c: Likewise.
12351 * notif.c: Include server.h.
12352
314c6a35
TT
123532014-07-24 Tom Tromey <tromey@redhat.com>
12354 Gary Benson <gbenson@redhat.com>
12355
12356 * server.h (CORE_ADDR): Now unsigned.
12357
69ff6be5
PA
123582014-07-16 Pedro Alves <palves@redhat.com>
12359
12360 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12361
ce9e3fe7
PA
123622014-07-15 Pedro Alves <palves@redhat.com>
12363
12364 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12365 copy.
12366
e76126e8
PA
123672014-07-11 Pedro Alves <palves@redhat.com>
12368
12369 * linux-low.c (kill_wait_lwp): New function, based on
12370 kill_one_lwp_callback, but use my_waitpid directly.
12371 (kill_one_lwp_callback, linux_kill): Use it.
12372
8e9db26e
PA
123732014-06-23 Pedro Alves <palves@redhat.com>
12374
12375 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12376 before setting DR0..DR3.
12377
698b3e08
GB
123782014-06-20 Gary Benson <gbenson@redhat.com>
12379
12380 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12381 * configure: Regenerated.
12382 * config.in: Likewise.
12383
125f8a3d
GB
123842014-06-20 Gary Benson <gbenson@redhat.com>
12385
12386 * Makefile.in (SFILES): Update locations for files moved
12387 from common to nat.
12388 (object file files): Reordered.
12389
42995dbd
GB
123902014-06-20 Gary Benson <gbenson@redhat.com>
12391
12392 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12393 (i386_dr_low_set_addr): Likewise.
12394 (i386_dr_low_get_addr): Likewise.
12395 (i386_dr_low_can_set_control): Likewise.
12396 (i386_dr_low_set_control): Likewise.
12397 (i386_dr_low_get_control): Likewise.
12398 (i386_dr_low_get_status): Likewise.
12399 (i386_get_debug_register_length): Likewise.
12400 * linux-x86-low.c (i386_dr_low_set_addr):
12401 Changed signature. Made static.
12402 (i386_dr_low_get_addr): Likewise.
12403 (i386_dr_low_set_control): Likewise.
12404 (i386_dr_low_get_control): Likewise.
12405 (i386_dr_low_get_status): Likewise.
12406 (i386_dr_low): New global variable.
12407 * win32-i386-low.c (i386_dr_low_set_addr):
12408 Changed signature. Made static.
12409 (i386_dr_low_get_addr): Likewise.
12410 (i386_dr_low_set_control): Likewise.
12411 (i386_dr_low_get_control): Likewise.
12412 (i386_dr_low_get_status): Likewise.
12413 (i386_dr_low): New global variable.
12414
e1d2394b
MS
124152014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12416
12417 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12418 * Makefile.in (AR, AR_FLAGS): Define.
12419 * configure: Regenerate.
12420
3a8ee006
GB
124212014-06-19 Gary Benson <gbenson@redhat.com>
12422
12423 * Makefile.in (i386-dregs.o): New rule.
12424 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12425 * i386-low.c (target.h): Remove include.
12426 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12427 (DR_CONTROL_SHIFT): Likewise.
12428 (DR_CONTROL_SIZE): Likewise.
12429 (DR_RW_EXECUTE): Likewise.
12430 (DR_RW_WRITE): Likewise.
12431 (DR_RW_READ): Likewise.
12432 (DR_RW_IORW): Likewise.
12433 (DR_LEN_1): Likewise.
12434 (DR_LEN_2): Likewise.
12435 (DR_LEN_4): Likewise.
12436 (DR_LEN_8): Likewise.
12437 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12438 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12439 (DR_ENABLE_SIZE): Likewise.
12440 (DR_LOCAL_SLOWDOWN): Likewise.
12441 (DR_GLOBAL_SLOWDOWN): Likewise.
12442 (DR_CONTROL_RESERVED): Likewise.
12443 (I386_DR_CONTROL_MASK): Likewise.
12444 (I386_DR_VACANT): Likewise.
12445 (I386_DR_LOCAL_ENABLE): Likewise.
12446 (I386_DR_GLOBAL_ENABLE): Likewise.
12447 (I386_DR_DISABLE): Likewise.
12448 (I386_DR_SET_RW_LEN): Likewise.
12449 (I386_DR_GET_RW_LEN): Likewise.
12450 (I386_DR_WATCH_HIT): Likewise.
12451 (i386_wp_op_t): Likewise.
12452 (i386_show_dr): Likewise.
12453 (i386_length_and_rw_bits): Likewise.
12454 (i386_insert_aligned_watchpoint): Likewise.
12455 (i386_remove_aligned_watchpoint): Likewise.
12456 (i386_handle_nonaligned_watchpoint): Likewise.
12457 i386_update_inferior_debug_regs(): Likewise.
12458 (i386_dr_insert_watchpoint): Likewise.
12459 (i386_dr_remove_watchpoint): Likewise.
12460 (i386_dr_region_ok_for_watchpoint): Likewise.
12461 (i386_dr_stopped_data_address): Likewise.
12462 (i386_dr_stopped_by_watchpoint): Likewise.
12463
8f26655c
GB
124642014-06-19 Gary Benson <gbenson@redhat.com>
12465
12466 * i386-low.c (i386_dr_show): Renamed to
12467 i386_show_dr and made static. All uses updated.
12468 (i386_dr_length_and_rw_bits): Renamed to
12469 i386_length_and_rw_bits and made static.
12470 All uses updated.
12471 (i386_dr_insert_aligned_watchpoint): Renamed to
12472 i386_insert_aligned_watchpoint and made static.
12473 All uses updated.
12474 (i386_dr_remove_aligned_watchpoint): Renamed to
12475 i386_remove_aligned_watchpoint and made static.
12476 All uses updated.
12477 (i386_dr_update_inferior_debug_regs): Renamed to
12478 i386_update_inferior_debug_regs and made static.
12479 All uses updated.
12480
b9228891
GB
124812014-06-18 Gary Benson <gbenson@redhat.com>
12482
5171def3
GB
12483 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12484 (i386_dr_low_can_set_control): Likewise.
12485 (i386_get_debug_register_length): Likewise.
12486 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12487 (i386_dr_low_can_set_control): Likewise.
12488 (i386_get_debug_register_length): Likewise.
12489
124902014-06-17 Gary Benson <gbenson@redhat.com>
12491
b9228891
GB
12492 * i386-low.h (i386-dregs.h): New include.
12493 (DR_FIRSTADDR): Now in i386-dregs.h.
12494 (DR_LASTADDR): Likewise.
12495 (DR_NADDR): Likewise.
12496 (DR_STATUS): Likewise.
12497 (DR_CONTROL): Likewise.
12498 (i386_debug_reg_state): Likewise.
12499 (i386_dr_insert_watchpoint): Likewise.
12500 (i386_dr_remove_watchpoint): Likewise.
12501 (i386_dr_region_ok_for_watchpoint): Likewise.
12502 (i386_dr_stopped_data_address): Likewise.
12503 (i386_dr_stopped_by_watchpoint): Likewise.
12504 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12505
4be83cc2
GB
125062014-06-18 Gary Benson <gbenson@redhat.com>
12507
12508 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12509 i386_dr_insert_watchpoint.
12510 (i386_low_remove_watchpoint): Renamed to
12511 i386_dr_remove_watchpoint.
12512 (i386_low_region_ok_for_watchpoint): Renamed to
12513 i386_dr_region_ok_for_watchpoint.
12514 (i386_low_stopped_data_address): Renamed to
12515 i386_dr_stopped_data_address.
12516 (i386_low_stopped_by_watchpoint): Renamed to
12517 i386_dr_stopped_by_watchpoint.
12518 * i386-low.c (i386_show_dr): Renamed to
12519 i386_dr_show and made nonstatic. All uses updated.
12520 (i386_length_and_rw_bits): Renamed to
12521 i386_dr_length_and_rw_bits and made nonstatic.
12522 All uses updated.
12523 (i386_insert_aligned_watchpoint): Renamed to
12524 i386_dr_insert_aligned_watchpoint and made nonstatic.
12525 All uses updated.
12526 (i386_remove_aligned_watchpoint): Renamed to
12527 i386_dr_remove_aligned_watchpoint and made nonstatic.
12528 All uses updated.
12529 (i386_update_inferior_debug_regs): Renamed to
12530 i386_dr_update_inferior_debug_regs and made nonstatic.
12531 All uses updated.
12532 (i386_low_insert_watchpoint): Renamed to
12533 i386_dr_insert_watchpoint. All uses updated.
12534 (i386_low_remove_watchpoint): Renamed to
12535 i386_dr_remove_watchpoint. All uses updated.
12536 (i386_low_region_ok_for_watchpoint): Renamed to
12537 i386_dr_region_ok_for_watchpoint. All uses updated.
12538 (i386_low_stopped_data_address): Renamed to
12539 i386_dr_stopped_data_address. All uses updated.
12540 (i386_low_stopped_by_watchpoint): Renamed to
12541 i386_dr_stopped_by_watchpoint. All uses updated.
12542
131aa0d4
GB
125432014-06-18 Gary Benson <gbenson@redhat.com>
12544
12545 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12546 (i386_dr_low_can_set_control): Likewise.
12547 (i386_insert_aligned_watchpoint): New check.
12548
d9305f7f
GB
125492014-06-18 Gary Benson <gbenson@redhat.com>
12550
12551 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12552 Renamed to state.
12553
e927c9fc
GB
125542014-06-18 Gary Benson <gbenson@redhat.com>
12555
12556 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12557 instead of fatal and error.
12558 (i386_handle_nonaligned_watchpoint): Likewise.
12559
1b6d4134
GB
125602014-06-18 Gary Benson <gbenson@redhat.com>
12561
12562 * i386-low.c (i386_get_debug_register_length): New macro.
12563 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12564 (i386_show_dr): Use debug_printf instead of fprintf. Use
12565 phex to format values.
12566
6e62758f
GB
125672014-06-18 Gary Benson <gbenson@redhat.com>
12568
12569 * i386-low.h: Comment changes.
12570 * i386-low.c: Likewise.
12571
fc6e2f03
GB
125722014-06-18 Gary Benson <gbenson@redhat.com>
12573
12574 * i386-low.c: Whitespace changes.
12575
f9d1eeed
TT
125762014-06-12 Tom Tromey <tromey@redhat.com>
12577
12578 * utils.c (freeargv): Remove.
12579
0b04e523
TT
125802014-06-12 Tom Tromey <tromey@redhat.com>
12581
12582 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12583 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12584 (parse_debug_format_options): Likewise.
12585 (gdbserver_usage): Likewise.
12586 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12587 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12588 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12589 against libiberty.
12590 ($(LIBGNU)): Depend on libiberty.
12591 (all-lib): Recurse into all subdirs.
12592 (install-only): Invoke "install" target in subdirs.
12593 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12594 targets.
12595 * configure: Rebuild.
12596 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12597 for vasprintf, vsnprintf, or gettimeofday.
12598 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12599 srv_tgtobj.
12600
270c9937
JB
126012014-06-05 Joel Brobecker <brobecker@adacore.com>
12602
12603 * development.sh: Delete.
12604 * Makefile.in (config.status): Adjust dependency on development.sh.
12605 * configure.ac: Adjust development.sh source call.
12606 * configure: Regenerate.
12607
0a261ed8
PA
126082014-06-02 Pedro Alves <palves@redhat.com>
12609
12610 * ax.c (gdb_free_agent_expr): New function.
12611 * ax.h (gdb_free_agent_expr): New declaration.
12612 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12613 list.
12614 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12615 static.
12616 (clear_breakpoint_conditions_and_commands): New function.
12617 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12618 (clear_breakpoint_conditions_and_commands): New declaration.
12619
e9dae05e
RR
126202014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12621
12622 * linux-aarch64-low.c (asm/ptrace.h): Include.
12623
5876f503
JK
126242014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12625
12626 Fix TLS access for -static -pthread.
12627 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12628 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12629 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12630
802e8e6d
PA
126312014-05-20 Pedro Alves <palves@redhat.com>
12632
12633 * linux-aarch64-low.c (aarch64_insert_point)
12634 (aarch64_remove_point): No longer check whether the type is
12635 supported here. Adjust to new interface.
12636 (the_low_target): Install aarch64_supports_z_point_type as
12637 supports_z_point_type method.
12638 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12639 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12640 instead of a Z packet char. Adjust.
12641 (arm_supports_z_point_type): New function.
12642 (arm_insert_point, arm_remove_point): Adjust to new interface.
12643 (the_low_target): Install arm_supports_z_point_type.
12644 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12645 (cris_insert_point, cris_remove_point): Adjust to new interface.
12646 Don't check whether the type is supported here.
12647 (the_low_target): Install cris_supports_z_point_type.
12648 * linux-low.c (linux_supports_z_point_type): New function.
12649 (linux_insert_point, linux_remove_point): Adjust to new interface.
12650 * linux-low.h (struct linux_target_ops) <insert_point,
12651 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12652 raw_breakpoint pointer parameter.
12653 <supports_z_point_type>: New method.
12654 * linux-mips-low.c (mips_supports_z_point_type): New function.
12655 (mips_insert_point, mips_remove_point): Adjust to new interface.
12656 Use mips_supports_z_point_type.
12657 (the_low_target): Install mips_supports_z_point_type.
12658 * linux-ppc-low.c (the_low_target): Install NULL as
12659 supports_z_point_type method.
12660 * linux-s390-low.c (the_low_target): Install NULL as
12661 supports_z_point_type method.
12662 * linux-sparc-low.c (the_low_target): Install NULL as
12663 supports_z_point_type method.
12664 * linux-x86-low.c (x86_supports_z_point_type): New function.
12665 (x86_insert_point): Adjust to new insert_point interface. Use
12666 insert_memory_breakpoint. Adjust to new
12667 i386_low_insert_watchpoint interface.
12668 (x86_remove_point): Adjust to remove_point interface. Use
12669 remove_memory_breakpoint. Adjust to new
12670 i386_low_remove_watchpoint interface.
12671 (the_low_target): Install x86_supports_z_point_type.
12672 * lynx-low.c (lynx_target_ops): Install NULL as
12673 supports_z_point_type callback.
12674 * nto-low.c (nto_supports_z_point_type): New.
12675 (nto_insert_point, nto_remove_point): Adjust to new interface.
12676 (nto_target_ops): Install nto_supports_z_point_type.
12677 * mem-break.c: Adjust intro comment.
12678 (struct raw_breakpoint) <raw_type, size>: New fields.
12679 <inserted>: Update comment.
12680 <shlib_disabled>: Delete field.
12681 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12682 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12683 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12684 (raw_bkpt_type_to_target_hw_bp_type): New function.
12685 (find_enabled_raw_code_breakpoint_at): New function.
12686 (find_raw_breakpoint_at): New type and size parameters. Use them.
12687 (insert_memory_breakpoint): New function, based off
12688 set_raw_breakpoint_at.
12689 (remove_memory_breakpoint): New function.
12690 (set_raw_breakpoint_at): Reimplement.
12691 (set_breakpoint): New, based on set_breakpoint_at.
12692 (set_breakpoint_at): Reimplement.
12693 (delete_raw_breakpoint): Go through the_target->remove_point
12694 instead of assuming memory breakpoints.
12695 (find_gdb_breakpoint_at): Delete.
12696 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12697 (find_gdb_breakpoint): New function.
12698 (set_gdb_breakpoint_at): Delete.
12699 (z_type_supported): New function.
12700 (set_gdb_breakpoint_1): New function, loosely based off
12701 set_gdb_breakpoint_at.
12702 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12703 (delete_gdb_breakpoint_at): Delete.
12704 (delete_gdb_breakpoint_1): New function, loosely based off
12705 delete_gdb_breakpoint_at.
12706 (delete_gdb_breakpoint): New function.
12707 (clear_gdb_breakpoint_conditions): Rename to ...
12708 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12709 breakpoint.
12710 (add_condition_to_breakpoint): Make static.
12711 (add_breakpoint_condition): Take a struct breakpoint pointer
12712 instead of an address. Adjust.
12713 (gdb_condition_true_at_breakpoint): Rename to ...
12714 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12715 z_type parameter.
12716 (gdb_condition_true_at_breakpoint): Reimplement.
12717 (add_breakpoint_commands): Take a struct breakpoint pointer
12718 instead of an address. Adjust.
12719 (gdb_no_commands_at_breakpoint): Rename to ...
12720 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12721 parameter. Return true if no breakpoint was found. Change debug
12722 output.
12723 (gdb_no_commands_at_breakpoint): Reimplement.
12724 (run_breakpoint_commands): Rename to ...
12725 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12726 and change return type to boolean.
12727 (run_breakpoint_commands): New function.
12728 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12729 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12730 breakpoint. Go through the_target->remove_point instead of
12731 assuming memory breakpoint.
12732 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12733 software and hardware breakpoints.
12734 (reinsert_raw_breakpoint): Go through the_target->insert_point
12735 instead of assuming memory breakpoint.
12736 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12737 software and hardware breakpoints.
12738 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12739 Check both software and hardware breakpoints.
12740 (validate_inserted_breakpoint): Assert the breakpoint is a
12741 software breakpoint. Set the inserted flag to -1 instead of
12742 setting shlib_disabled.
12743 (delete_disabled_breakpoints): Adjust.
12744 (validate_breakpoints): Only validate software breakpoints.
12745 Adjust to inserted flag change.
12746 (check_mem_read, check_mem_write): Skip breakpoint types other
12747 than software breakpoints. Adjust to inserted flag change.
12748 * mem-break.h (enum raw_bkpt_type): New enum.
12749 (raw_breakpoint, struct process_info): Forward declare.
12750 (Z_packet_to_target_hw_bp_type): Delete declaration.
12751 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12752 (set_gdb_breakpoint, delete_gdb_breakpoint)
12753 (clear_breakpoint_conditions): New declarations.
12754 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12755 (breakpoint_inserted_here): Update comment.
12756 (add_breakpoint_condition, add_breakpoint_commands): Replace
12757 address parameter with a breakpoint pointer parameter.
12758 (gdb_breakpoint_here): Update comment.
12759 (delete_gdb_breakpoint_at): Delete.
12760 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12761 * server.c (process_point_options): Take a struct breakpoint
12762 pointer instead of an address. Adjust.
12763 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12764 delete_gdb_breakpoint.
12765 * spu-low.c (spu_target_ops): Install NULL as
12766 supports_z_point_type method.
12767 * target.h: Include mem-break.h.
12768 (struct target_ops) <prepare_to_access_memory>: Update comment.
12769 <supports_z_point_type>: New field.
12770 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12771 instead of a char. Also take a raw breakpoint pointer.
12772 * win32-arm-low.c (the_low_target): Install NULL as
12773 supports_z_point_type.
12774 * win32-i386-low.c (i386_supports_z_point_type): New function.
12775 (i386_insert_point, i386_remove_point): Adjust to new interface.
12776 (the_low_target): Install i386_supports_z_point_type.
12777 * win32-low.c (win32_supports_z_point_type): New function.
12778 (win32_insert_point, win32_remove_point): Adjust to new interface.
12779 (win32_target_ops): Install win32_supports_z_point_type.
12780 * win32-low.h (struct win32_target_ops):
12781 <supports_z_point_type>: New method.
12782 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12783 instead of a char. Also take a raw breakpoint pointer.
12784
932539e3
PA
127852014-05-20 Pedro Alves <palves@redhat.com>
12786
12787 * mem-break.h: Include break-common.h.
12788 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12789 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12790 (Z_packet_to_target_hw_bp_type): New declaration.
12791 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12792 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12793 (Z_PACKET_ACCESS_WP): Delete macros.
12794 (Z_packet_to_hw_type): Delete function.
12795 * i386-low.h: Don't include break-common.h here.
12796 (Z_packet_to_hw_type): Delete declaration.
12797 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12798 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12799 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12800 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12801 * linux-aarch64-low.c: Don't include break-common.h here.
12802 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12803 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12804 (Z_packet_to_target_hw_bp_type): Delete function.
12805 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12806 function.
12807 (mips_insert_point, mips_remove_point): Use
12808 Z_packet_to_target_hw_bp_type.
12809
4ff0d3d8
PA
128102014-05-20 Pedro Alves <palves@redhat.com>
12811
12812 * linux-aarch64-low.c: Include break-common.h.
12813 (enum target_point_type): Delete.
12814 (Z_packet_to_point_type): Rename to ...
12815 (Z_packet_to_target_hw_bp_type): ... this, and return a
12816 target_hw_bp_type instead.
12817 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12818 instead of an enum target_point_type.
12819 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12820 breakpoint type.
12821 (aarch64_dr_state_insert_one_point)
12822 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12823 (aarch64_handle_aligned_watchpoint)
12824 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12825 Take an enum target_hw_bp_type instead of an enum
12826 target_point_type.
12827 (aarch64_supports_z_point_type): New function.
12828 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12829 use Z_packet_to_target_hw_bp_type.
12830
786dc519
JB
128312014-05-20 Joel Brobecker <brobecker@adacore.com>
12832
12833 * configure.ac: Only use -Werror by default when DEVELOPMENT
12834 is true.
12835 * configure: Regenerate.
12836
9e0aa64f
JK
128372014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12838
12839 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12840 * linux-x86-low.c (X86_64_USER_REGS): New.
12841 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12842
2b577b92
YQ
128432014-04-28 Yao Qi <yao@codesourcery.com>
12844
12845 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12846 name.
12847
94611da2
PA
128482014-04-25 Pedro Alves <palves@redhat.com>
12849
12850 PR server/16255
12851 * linux-low.c (linux_attach_fail_reason_string): New function.
12852 (linux_attach_lwp): Delete.
12853 (linux_attach_lwp_1): Rename to ...
12854 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12855 argument. Remove "initial" parameter. Return int instead of
12856 void. Don't error or warn here.
12857 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12858 failure to attach to the tgid. Call warning when failing to
12859 attach to an lwp.
12860 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12861 argument. Remove "initial" parameter. Return int instead of
12862 void. Don't error or warn here.
12863 (linux_attach_fail_reason_string): New declaration.
12864 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12865 interface change. Use linux_attach_fail_reason_string.
12866
01f9f808
MS
128672014-04-24 Michael Sturm <michael.sturm@mintel.com>
12868 Walfred Tedeschi <walfred.tedeschi@intel.com>
12869
12870 * Makefile.in: Added rules to handle new files
12871 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12872 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12873 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12874 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12875 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12876 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12877 x32-avx512-linux.o.
12878 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12879 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12880 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12881 i386/x32-avx512.xml.
12882 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12883 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12884 i386/x32-avx512-linux.xml.
12885 * i387-fp.c (num_avx512_k_registers): New constant for number
12886 of K registers.
12887 (num_avx512_zmmh_low_registers): New constant for number of
12888 lower ZMM registers (0-15).
12889 (num_avx512_zmmh_high_registers): New constant for number of
12890 higher ZMM registers (16-31).
12891 (num_avx512_ymmh_registers): New contant for number of higher
12892 YMM registers (ymm16-31 added by avx521 on x86_64).
12893 (num_avx512_xmm_registers): New constant for number of higher
12894 XMM registers (xmm16-31 added by AVX512 on x86_64).
12895 (struct i387_xsave): Add space for AVX512 registers.
12896 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12897 Add code to handle AVX512 registers.
12898 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12899 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12900 prototypei from generated file.
12901 (tdesc_amd64_avx512_linux): Likewise.
12902 (init_registers_x32_avx512_linux): Likewise.
12903 (tdesc_x32_avx512_linux): Likewise.
12904 (init_registers_i386_avx512_linux): Likewise.
12905 (tdesc_i386_avx512_linux): Likewise.
12906 (x86_64_regmap): Add AVX512 registers.
12907 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12908 mask.
12909 (initialize_low_arch): Add code to initialize AVX512 registers.
12910
51aa91f9
PA
129112014-04-23 Pedro Alves <palves@redhat.com>
12912
12913 * mem-break.c (find_gdb_breakpoint_at): Make static.
12914 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12915
a4165e94
PA
129162014-04-23 Pedro Alves <palves@redhat.com>
12917
12918 * i386-low.c: Don't include break-common.h here.
12919 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12920 prototype to take target_hw_bp_type as argument instead of a Z
12921 packet char.
12922 * i386-low.h: Include break-common.h here.
12923 (Z_packet_to_hw_type): Declare.
12924 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12925 prototypes.
12926 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12927 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12928 (x86_remove_point): Convert the packet number to a
12929 target_hw_bp_type before calling i386_low_remove_watchpoint.
12930 * win32-i386-low.c (i386_insert_point): Convert the packet number
12931 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12932 (i386_remove_point): Convert the packet number to a
12933 target_hw_bp_type before calling i386_low_remove_watchpoint.
12934
b8acf843
PA
129352014-04-23 Pedro Alves <palves@redhat.com>
12936
12937 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12938
d708bcd1
PA
129392014-04-10 Pedro Alves <palves@redhat.com>
12940
12941 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12942 Check if the condition or command is NULL before checking if the
12943 breakpoint is known. On success, return true.
12944 * mem-break.h (add_breakpoint_condition): Document return.
12945 (add_breakpoint_commands): Add describing comment.
12946 * server.c (skip_to_semicolon): New function.
12947 (process_point_options): Use it.
12948
2eec7d5b
PA
129492014-04-09 Pedro Alves <palves@redhat.com>
12950
12951 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12952 to lwpid_of.
12953
fa96cb38
PA
129542014-02-27 Pedro Alves <palves@redhat.com>
12955
12956 PR 12702
12957 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12958 macros.
12959 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12960 output.
12961 (last_thread_of_process_p): Take a PID argument instead of a
12962 thread pointer.
12963 (linux_wait_for_lwp): Delete.
12964 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12965 functions.
12966 (linux_low_filter_event): New function, party factored out from
12967 linux_wait_for_event.
12968 (linux_wait_for_event): Rename to ...
12969 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12970 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12971 sigsuspend. Check for zombie leaders.
12972 (linux_wait_for_event): Reimplement as wrapper around
12973 linux_wait_for_event_filtered.
12974 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12975 a normal or signal exit is seen, it's the whole process exiting.
12976 (wait_for_sigstop): No longer a for_each_inferior callback.
12977 Rewrite on top of linux_wait_for_event_filtered.
12978 (stop_all_lwps): Call wait_for_sigstop directly.
12979 * server.c (resume, handle_target_event): Handle
12980 TARGET_WAITKIND_NO_RESUMED.
12981
d763de10
JB
129822014-02-26 Joel Brobecker <brobecker@adacore.com>
12983
12984 * win32-low.c (psapi_get_dll_name,
12985 * win32_CreateToolhelp32Snapshot): Delete.
12986 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12987 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12988 Delete.
12989 (handle_load_dll): Add function description.
12990 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12991
850a0f76
JB
129922014-02-26 Joel Brobecker <brobecker@adacore.com>
12993
12994 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12995 Add comment.
12996 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12997 base address when calling win32_add_one_solib.
12998 (handle_load_dll): Delete local variable load_addr.
12999 Remove 0x1000 offset applied to DLL base address when calling
13000 win32_add_one_solib.
13001 (handle_unload_dll): Add comment.
13002
f25b3fc3
JB
130032014-02-26 Joel Brobecker <brobecker@adacore.com>
13004
13005 * win32-low.c (win32_add_all_dlls): Renames
13006 win32_ensure_ntdll_loaded. Rewrite function documentation.
13007 Adjust implementation to always load all DLLs.
13008 Add 0x1000 offset to DLL base address when calling
13009 win32_add_one_solib.
13010 (child_initialization_done): New static global.
13011 (do_initial_child_stuff): Set child_initialization_done to
13012 zero during child initialization, and 1 after. Replace call
13013 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13014 Add comment.
13015 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13016 (handle_unload_dll): Add function documentation.
13017 (get_child_debug_event): Ignore load and unload DLL events
13018 during child initialization.
13019
d86d4aaf
DE
130202014-02-20 Doug Evans <dje@google.com>
13021
3bc32da3 13022 Remove global all_lwps.
d86d4aaf
DE
13023 * inferiors.h (ptid_of): Move here from linux-low.h.
13024 (pid_of, lwpid_of): Ditto.
13025 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13026 parameter is a struct thread_info * now.
13027 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13028 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13029 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13030 directly.
13031 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13032 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13033 * linux-arm-low.c (update_registers_callback): Update, "entry"
13034 parameter is a struct thread_info * now.
13035 Fetch lwpid from current_inferior directly.
13036 (arm_insert_point): Pass &all_threads to find_inferior instead of
13037 &all_lwps.
13038 (arm_remove_point): Ditto.
13039 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13040 (arm_prepare_to_resume): Fetch pid from thread.
13041 (arm_read_description): Fetch lwpid from current_inferior directly.
13042 * linux-low.c (all_lwps): Delete.
13043 (delete_lwp): Delete call to remove_inferior.
13044 (handle_extended_wait): Fetch lwpid from thread.
13045 (add_lwp): Don't set lwp->entry.id. Remove call to
13046 add_inferior_to_list.
13047 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13048 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13049 (kill_one_lwp_callback): Ditto.
13050 (linux_kill): Don't dereference NULL pointer.
13051 Fetch ptid,lwpid from thread.
13052 (get_detach_signal): Fetch ptid from thread.
13053 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13054 Simplify call to regcache_invalidate_thread.
13055 (delete_lwp_callback): Update, "entry" parameter is a
13056 struct thread_info * now. Fetch pid from thread.
13057 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13058 (status_pending_p_callback): Update, "entry" parameter is a
13059 struct thread_info * now. Fetch ptid from thread.
13060 (find_lwp_pid): Update, "entry" parameter is a
13061 struct thread_info * now.
13062 (linux_wait_for_lwp): Fetch pid from thread.
13063 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13064 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13065 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13066 (dequeue_one_deferred_signal): Ditto.
13067 (cancel_breakpoint): Fetch ptid from current_inferior.
13068 (linux_wait_for_event): Pass &all_threads to find_inferior,
13069 not &all_lwps. Fetch ptid, lwpid from thread.
13070 (count_events_callback): Update, "entry" parameter is a
13071 struct thread_info * now.
13072 (select_singlestep_lwp_callback): Ditto.
13073 (select_event_lwp_callback): Ditto.
13074 (cancel_breakpoints_callback): Ditto.
13075 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13076 not &all_lwps.
13077 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13078 (unsuspend_one_lwp): Update, "entry" parameter is a
13079 struct thread_info * now.
13080 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13081 not &all_lwps.
13082 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13083 Fetch lwpid from thread, not lwp.
13084 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13085 Pass &all_threads to find_inferior, not &all_lwps.
13086 (send_sigstop): Fetch lwpid from thread, not lwp.
13087 (send_sigstop_callback): Update, "entry" parameter is a
13088 struct thread_info * now.
13089 (suspend_and_send_sigstop_callback): Ditto.
13090 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13091 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13092 struct thread_info * now.
13093 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13094 from thread, lwp.
13095 (lwp_running): Update, "entry" parameter is a
13096 struct thread_info * now.
13097 (stop_all_lwps): Fetch ptid from thread.
13098 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13099 (linux_resume_one_lwp): Fetch lwpid from thread.
13100 (linux_set_resume_request): Update, "entry" parameter is a
13101 struct thread_info * now. Fetch pid, lwpid from thread.
13102 (resume_status_pending_p): Update, "entry" parameter is a
13103 struct thread_info * now.
13104 (need_step_over_p): Ditto. Fetch lwpid from thread.
13105 (start_step_over): Fetch lwpid from thread.
13106 (linux_resume_one_thread): Update, "entry" parameter is a
13107 struct thread_info * now. Fetch lwpid from thread.
13108 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13109 (proceed_one_lwp): Update, "entry" parameter is a
13110 struct thread_info * now. Fetch lwpid from thread.
13111 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13112 struct thread_info * now.
13113 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13114 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13115 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13116 directly.
13117 (regsets_store_inferior_registers): Ditto.
13118 (fetch_register, store_register): Ditto.
13119 (linux_read_memory, linux_write_memory): Ditto.
13120 (linux_request_interrupt): Ditto.
13121 (linux_read_auxv): Ditto.
13122 (linux_xfer_siginfo): Ditto.
13123 (linux_qxfer_spu): Ditto.
13124 (linux_qxfer_libraries_svr4): Ditto.
13125 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13126 moved to inferiors.h.
13127 (get_lwp): Delete.
13128 (get_thread_lwp): Update.
13129 (struct lwp_info): Delete member "entry". Simplify comment for
13130 member "thread".
13131 (all_lwps): Delete.
13132 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13133 current_inferior directly.
13134 (update_watch_registers_callback): Update, "entry" parameter is a
13135 struct thread_info * now. Fetch pid from thread.
13136 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13137 (mips_insert_point): Fetch lwpid from current_inferior.
13138 Pass &all_threads to find_inferior, not &all_lwps.
13139 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13140 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13141 directly.
13142 (mips_stopped_data_address): Ditto.
13143 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13144 directly.
13145 * linux-tile-low.c (tile_arch_setup): Ditto.
13146 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13147 (update_debug_registers_callback): Update, "entry" parameter is a
13148 struct thread_info * now. Fetch pid from thread.
13149 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13150 Pass &all_threads to find_inferior, not &all_lwps.
13151 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13152 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13153 Pass &all_threads to find_inferior, not &all_lwps.
13154 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13155 (i386_dr_low_get_status): Ditto.
13156 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13157 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13158 (x86_linux_read_description): Ditto.
13159 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13160
3b8361aa
DE
131612014-02-20 Doug Evans <dje@google.com>
13162
13163 * inferiors.c (get_first_inferior): Fix buglet.
13164
f7667f0d
DE
131652014-02-19 Doug Evans <dje@google.com>
13166
13167 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13168 * inferiors.c (add_thread): Change result type to struct thread_info *.
13169 All callers updated.
13170 (add_lwp): Call add_thread here instead of in callers.
13171 All callers updated.
13172 * linux-low.h (get_lwp_thread): Rewrite.
13173 (struct lwp_info): New member "thread".
13174
b3312d80
DE
131752014-02-19 Doug Evans <dje@google.com>
13176
13177 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13178 All callers updated.
13179
ecc6f45c
DE
131802014-02-19 Doug Evans <dje@google.com>
13181
13182 * inferiors.c (add_thread): Fix whitespace.
13183
649ebbca
DE
131842014-02-19 Doug Evans <dje@google.com>
13185
13186 * dll.c (clear_dlls): Replace accessing list implemention details
13187 with API function.
13188 * gdbthread.h (get_first_thread): Declare.
13189 * inferiors.c (for_each_inferior_with_data): New function.
13190 (get_first_thread): New function.
13191 (find_thread_ptid): Simplify.
13192 (get_first_inferior): New function.
13193 (clear_list): Delete.
13194 (one_inferior_p): New function.
13195 (clear_inferior_list): New function.
13196 (clear_inferiors): Update.
13197 * inferiors.h (for_each_inferior_with_data): Declare.
13198 (clear_inferior_list): Declare.
13199 (one_inferior_p): Declare.
13200 (get_first_inferior): Declare.
13201 * linux-low.c (linux_wait_for_event): Replace accessing list
13202 implemention details with API function.
13203 * server.c (target_running): Ditto.
13204 (accumulate_file_name_length): New function.
13205 (emit_dll_description): New function.
13206 (handle_qxfer_libraries): Replace accessing list implemention
13207 details with API function.
13208 (handle_qxfer_threads_worker): New function.
13209 (handle_qxfer_threads_proper): Replace accessing list implemention
13210 details with API function.
13211 (handle_query): Ditto.
13212 (visit_actioned_threads_callback_ftype): New typedef.
13213 (visit_actioned_threads_data): New struct.
13214 (visit_actioned_threads): Rewrite to be find_inferior callback.
13215 (resume): Call find_inferior.
13216 (handle_status): Replace accessing list implemention
13217 details with API function.
13218 (process_serial_event): Replace accessing list implemention details
13219 with API function.
13220 * target.c (set_desired_inferior): Replace accessing list implemention
13221 details with API function.
13222 * tracepoint.c (same_process_p): New function.
13223 (gdb_agent_about_to_close): Replace accessing list implemention
13224 details with API function.
13225 * win32-low.c (child_delete_thread): Replace accessing list
13226 implemention details with API function.
13227 (match_dll_by_basename): New function.
13228 (dll_is_loaded_by_basename): New function.
13229 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13230 details call to dll_is_loaded_by_basename.
13231
80894984
DE
132322014-02-19 Doug Evans <dje@google.com>
13233
13234 * dll.h (struct dll_info): Add comment.
13235 * gdbthread.h (struct thread_info): Add comment.
13236 (current_ptid): Simplify.
13237 * inferiors.c (add_process): Update.
13238 (remove_process): Update.
13239 * inferiors.h (struct process_info): Rename member "head" to "entry".
13240 * linux-low.c (delete_lwp): Update.
13241 (add_lwp): Update.
13242 (last_thread_of_process_p): Update.
13243 (kill_one_lwp_callback, linux_kill): Update.
13244 (status_pending_p_callback): Update.
13245 (wait_for_sigstop): Update. Simplify read of ptid.
13246 (start_step_over): Update.
13247 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13248 (get_lwp_thread): Update.
13249 (struct lwp_info): Rename member "head" to "entry".
13250 * regcache.h (inferior_list_entry): Delete.
13251 * server.c (kill_inferior_callback): Update.
13252 (detach_or_kill_inferior_callback): Update.
13253 (print_started_pid): Update.
13254 (print_attached_pid): Update.
13255 (process_serial_event): Simplify read of ptid.
13256 * thread-db.c (thread_db_create_event): Update.
13257 (thread_db_get_tls_address): Update.
13258 * win32-low.c (current_inferior_ptid): Simplify.
13259
46917d26
TT
132602014-02-19 Tom Tromey <tromey@redhat.com>
13261
13262 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13263 argument.
13264 (target_supports_btrace): Update.
13265
0759a81e
YQ
132662014-02-14 Yao Qi <yao@codesourcery.com>
13267
13268 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13269 (rsp-low-ipa.o): New target.
13270
a7191e8b
TT
132712014-02-12 Tom Tromey <tromey@redhat.com>
13272
13273 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13274 convert_ascii_to_int.
13275 * regcache.c (registers_to_string): Likewise.
13276 * remote-utils.c (decode_M_packet): Likewise.
13277 * server.c (process_serial_event): Likewise.
13278
ff0e980e
TT
132792014-02-12 Tom Tromey <tromey@redhat.com>
13280
13281 * server.c (handle_query, handle_v_run): Use hex2bin, not
13282 unhexify.
13283 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13284
e9371aff
TT
132852014-02-12 Tom Tromey <tromey@redhat.com>
13286
13287 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13288 convert_int_to_ascii.
13289 * regcache.c (registers_to_string, collect_register_as_string):
13290 Likewise.
13291 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13292 Likewise.
13293 * server.c (process_serial_event): Likewise.
13294 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13295 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13296
971dc0b8
TT
132972014-02-12 Tom Tromey <tromey@redhat.com>
13298
13299 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13300 bin2hex, not hexify.
13301 * tracepoint.c (cmd_qtstatus): Likewise.
13302
0a822afb
TT
133032014-02-12 Tom Tromey <tromey@redhat.com>
13304
13305 * remote-utils.c (monitor_output): Pass explicit length to
13306 hexify.
13307
9c3d6531
TT
133082014-02-12 Tom Tromey <tromey@redhat.com>
13309
13310 * tracepoint.c: Include rsp-low.h.
13311 * server.c: Include rsp-low.h.
13312 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13313 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13314 declare.
13315 * remote-utils.c: Include rsp-low.h.
13316 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13317 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13318 (convert_int_to_ascii, convert_ascii_to_int): Move to
13319 common/rsp-low.c.
13320 * regcache.c: Include rsp-low.h.
13321 * ax.c: Include rsp-low.h.
13322 * Makefile.in (SFILES): Add common/rsp-low.c.
13323 (OBS): Add rsp-low.o.
13324 (rsp-low.o): New target.
13325
01fd3ea5
TT
133262014-02-12 Tom Tromey <tromey@redhat.com>
13327
13328 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13329 Include print-utils.h.
13330 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13331 (plongest, thirty_two, phex_nz): Remove.
13332 * Makefile.in (SFILES): Add common/print-utils.c.
13333 (OBS): Add print-utils.o.
13334 (print-utils-ipa.o): New target.
13335 (print-utils.o): New target.
13336 (IPA_OBJS): Add print-utils-ipa.o.
13337
e99dc820
TT
133382014-02-06 Tom Tromey <tromey@redhat.com>
13339
13340 * Makefile.in (SFILES): Fix indentation.
13341
ee1e2d4f
DE
133422014-02-05 Doug Evans <dje@google.com>
13343
13344 * linux-low.c (linux_wait_for_event): Improve comment.
13345 (linux_wait_1): Keep current_inferior in sync with event_child.
13346
f5a02773
DE
133472014-01-22 Doug Evans <dje@google.com>
13348
13349 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13350
87ce2a04
DE
133512014-01-22 Doug Evans <dje@google.com>
13352
13353 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13354 * configure: Regenerate.
13355 * config.in: Regenerate.
13356 * Makefile.in (SFILES): Add debug.c.
13357 (OBS): Add debug.o.
13358 * debug.c: New file.
13359 * debug.h: New file.
13360 * linux-aarch64-low.c (*): Update all debugging printfs to use
13361 debug_printf instead of fprintf.
13362 * linux-arm-low.c (*): Ditto.
13363 * linux-cris-low.c (*): Ditto.
13364 * linux-crisv32-low.c (*): Ditto.
13365 * linux-m32r-low.c (*): Ditto.
13366 * linux-sparc-low.c (*): Ditto.
13367 * linux-x86.c (*): Ditto.
13368 * linux-low.c (*): Ditto.
13369 (linux_wait_1): Add calls to debug_enter, debug_exit.
13370 (linux_wait): Remove redundant debugging printf.
13371 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13372 (linux_resume, unstop_all_lwps): Ditto.
13373 * mem-break.c (*): Update all debugging printfs to use
13374 debug_printf instead of fprintf.
13375 * remote-utils.c (*): Ditto.
13376 * thread-db.c (*): Ditto.
13377 * server.c #include <ctype.h>, "gdb_vecs.h".
13378 (debug_threads): Moved to debug.c.
13379 (*): Update all debugging printfs to use debug_printf instead of
13380 fprintf.
13381 (start_inferior): Replace call to fflush with call to debug_flush.
13382 (monitor_show_help): Mention set debug-format.
13383 (parse_debug_format_options): New function.
13384 (handle_monitor_command): Handle "monitor set debug-format".
13385 (gdbserver_usage): Mention --debug-format.
13386 (main): Parse --debug-format.
13387 * server.h (debug_threads): Declaration moved to debug.h.
13388 #include "debug.h".
13389 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13390 trace_debug_1 that uses debug_printf.
13391 (tracepoint_look_up_symbols): Update all debugging printfs to use
13392 debug_printf instead of fprintf.
13393
e671835b
BS
133942014-01-20 Baruch Siach <baruch@tkos.co.il>
13395
13396 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13397 sys/ptrace.h.
13398
b5737fa9
PA
133992014-01-17 Pedro Alves <palves@redhat.com>
13400
ea38d2a9 13401 PR build/16445
c7faa97a
PA
13402 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13403 defined after including gdb_proc_service.h.
b5737fa9 13404
40ed484e
DE
134052014-01-16 Doug Evans <dje@google.com>
13406
13407 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13408 (match_dll): Use it.
13409
969c39fb
MM
134102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13411
13412 * target.h (target_ops) <read_btrace>: Change parameters and
13413 return type to allow error reporting.
13414 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13415 trace reading errors on.
13416 * linux-low.c (linux_low_read_btrace): Pass trace reading
13417 errors on.
13418 (linux_low_disable_btrace): New.
13419
ab7f45ba
DE
134202014-01-15 Doug Evans <dje@google.com>
13421
13422 * inferiors.c (thread_id_to_gdb_id): Delete.
13423 * inferiors.h (thread_id_to_gdb_id): Delete.
13424
66af0f44
EZ
134252014-01-13 Eli Zaretskii <eliz@gnu.org>
13426
13427 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13428 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13429 versions.
13430
9939e131
PA
134312014-01-08 Pedro Alves <palves@redhat.com>
13432
13433 * server.c (handle_status): Don't discard previous queued stop
13434 replies or thread's pending status here.
13435 (main) <disconnection>: Do it here instead.
13436
b7ea362b
PA
134372014-01-08 Pedro Alves <palves@redhat.com>
13438
13439 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13440 * server.c (visit_actioned_threads, handle_pending_status): New
13441 function.
13442 (handle_v_cont): Factor out parts to ...
13443 (resume): ... this new function. If in all-stop, and a thread
13444 being resumed has a pending status, report it without actually
13445 resuming.
13446 (myresume): Adjust to use the new 'resume' function.
13447 (clear_pending_status_callback, set_pending_status_callback)
13448 (find_status_pending_thread_callback): New functions.
13449 (handle_status): Handle the case of multiple threads having
13450 interesting statuses to report. Report threads' real last signal
13451 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13452 with an interesting thread to report the status for, instead of
13453 always reporting the status of the first thread.
13454
28498c42
JB
134552014-01-01 Joel Brobecker <brobecker@adacore.com>
13456
13457 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13458 * gdbreplay.c (gdbreplay_version): Likewise.
13459
f45c82da
YZ
134602013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13461
13462 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13463 iov.iov_len with the real length in use.
13464
379a5e2d
JB
134652013-12-13 Joel Brobecker <brobecker@adacore.com>
13466
13467 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13468 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13469 for all targets that use win32-low.c.
13470 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13471 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13472
4210d83e
PA
134732013-12-13 Pedro Alves <palves@redhat.com>
13474
13475 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13476 if equal to TARGET_WAITKIND_LOADED.
13477 * win32-low.c (cached_status): New static global.
13478 (win32_wait): Add declaration.
13479 (do_initial_child_stuff): Flush all initial pending debug events
13480 up to the initial breakpoint.
13481 (win32_wait): If CACHED_STATUS was set, return that instead
13482 of doing a real wait. Remove the code resuming the execution
13483 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13484 during the initial phase. Also remove the code changing
13485 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13486 TARGET_WAITKIND_STOPPED.
13487
e7f0d979
YQ
134882013-12-11 Yao Qi <yao@codesourcery.com>
13489
13490 * notif.c (handle_notif_ack): Return 0 if no notification
13491 matches.
13492
ebcf782c
DE
134932013-11-20 Doug Evans <dje@google.com>
13494
13495 * linux-low.c (linux_set_resume_request): Fix comment.
13496
20ad9378
DE
134972013-11-20 Doug Evans <dje@google.com>
13498
13499 * linux-low.c (resume_status_pending_p): Tweak comment.
13500
a196ebeb
WT
135012013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13502
13503 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13504 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13505 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13506 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13507 (srv_amd64_regobj): Add amd64-mpx.o.
13508 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13509 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13510 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13511 * i387-fp.c (num_pl_bnd_register) Added constant.
13512 (num_pl_bnd_cfg_registers) Added constant.
13513 (struct i387_xsave) Added reserved area and MPX fields.
13514 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13515 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13516 function.
13517 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13518 (init_registers_amd64_mpx_linux): Declare new function.
13519 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13520 (x86_64_regmap): Add MPX registers.
13521 (x86_linux_read_description): Add MPX case.
13522 (initialize_low_arch): Initialize MPX targets.
13523
0080a2f6
TT
135242013-11-18 Tom Tromey <tromey@redhat.com>
13525
13526 * configure: Rebuild.
13527 * configure.ac: Don't check for stdlib.h.
13528 * gdbreplay.c: Unconditionally include stdlib.h.
13529
2978b111
TT
135302013-11-18 Tom Tromey <tromey@redhat.com>
13531
13532 * config.in: Rebuild.
13533 * configure: Rebuild.
13534 * configure.ac: Don't use AC_HEADER_DIRENT.
13535
a3d08894
TT
135362013-11-18 Tom Tromey <tromey@redhat.com>
13537
13538 * server.h: Don't check HAVE_STRING_H.
13539 * gdbreplay.c: Don't check HAVE_STRING_H.
13540 * configure: Rebuild.
13541
0a5dd17d
TT
135422013-11-18 Tom Tromey <tromey@redhat.com>
13543
13544 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13545 LIBGNU.
13546
1bd2f0ba
TT
135472013-11-08 Tom Tromey <tromey@redhat.com>
13548
13549 * configure, config.in: Rebuild.
13550 * configure.ac: Remove unused configury.
13551
3266f10b
TT
135522013-11-08 Tom Tromey <tromey@redhat.com>
13553
13554 * acinclude.m4: Include common.m4, codeset.m4.
13555 * configure, config.in: Rebuild.
13556 * configure.ac: Use GDB_AC_COMMON.
13557
6682d959
AA
135582013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13559
13560 * linux-s390-low.c (HWCAP_S390_TE): New define.
13561 (s390_arch_setup): Consider the TE field in the HWCAP for
13562 determining 'have_regset_tdb'.
13563
fd0a4d76
SDJ
135642013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13565
13566 PR gdb/16014
13567 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13568 call to sizeof.
13569
1a3d890b
PA
135702013-10-02 Pedro Alves <palves@redhat.com>
13571
13572 * server.c (process_serial_event): Don't output "GDBserver
13573 exiting" if GDB is connected through stdio.
13574 * target.c (mywait): Likewise, be silent if GDB is connected
13575 through stdio.
13576
97ad4581
JB
135772013-10-01 Joel Brobecker <brobecker@adacore.com>
13578
13579 * lynx-low.c (lynx_add_threads_after_attach): New function.
13580 (lynx_attach): Remove call to add_thread. Add call to
13581 lynx_add_threads_after_attach instead.
13582
5b4e221c
MF
135832013-09-28 Mike Frysinger <vapier@gentoo.org>
13584
13585 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13586 * config.in, configure: Regenerated.
13587
ee47b2f8
YQ
135882013-09-18 Yao Qi <yao@codesourcery.com>
13589
13590 PR server/15959
13591 * server.c (start_inferior): Clear 'resume_info'.
13592
d6707650 135932013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13594
d6707650
JW
13595 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13596 for each register.
13597
9243dd0e 135982013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13599
9243dd0e
JW
13600 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13601 linux-tile-low.o to srv_tgtobj.
13602
c623a6ef
WN
136032013-09-16 Will Newton <will.newton@linaro.org>
13604
13605 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13606 out regs.
13607
fb71d39e
PA
136082013-09-06 Pedro Alves <palves@redhat.com>
13609
13610 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13611 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13612 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13613 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13614 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13615 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13616
8e7e9910
PA
136172013-09-06 Pedro Alves <palves@redhat.com>
13618
13619 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13620 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13621
7c3a12ca
PA
136222013-09-06 Pedro Alves <palves@redhat.com>
13623
13624 * linux-amd64-ipa.c: Include tracepoint.h.
13625 * linux-i386-ipa.c: Include tracepoint.h.
13626
8eb3d7b6
RW
136272013-09-06 Ricard Wanderlof <ricardw@axis.com>
13628
13629 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13630 (ps_get_thread_area): New function.
13631
eddddb9d
RW
136322013-09-06 Ricard Wanderlof <ricardw@axis.com>
13633
13634 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13635 (initialize_low_arch): Call init_registers_crisv32 rather than
13636 init_register_crisv32.
13637
533b0600
PA
136382013-09-05 Pedro Alves <palves@redhat.com>
13639
13640 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13641 to ...
13642 * hostio.h: ... this new file.
13643 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13644 win32-low.c: Include hostio.h.
13645
0ce3d3b5
PA
136462013-09-05 Pedro Alves <palves@redhat.com>
13647
13648 * server.h (gdb_client_data, handler_func, callback_handler_func)
13649 (delete_file_handler, add_file_handler, append_callback_event)
13650 (delete_callback_event, start_event_loop, initialize_event_loop):
13651 Move to event-loop.h and include it.
13652 * event-loop.h: New file.
13653
799cdc37
PA
136542013-09-05 Pedro Alves <palves@redhat.com>
13655
13656 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13657 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13658 (loaded_dll, unloaded_dll): Move to ...
13659 * dll.h: ... this new file.
13660 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13661
6a6bbd9d
PA
136622013-09-05 Pedro Alves <palves@redhat.com>
13663
13664 * server.h (current_process, get_thread_process, all_processes)
13665 (add_inferior_to_list, for_each_inferior, current_inferior)
13666 (remove_inferior, add_process, remove_process, find_process_pid)
13667 (have_started_inferiors_p, have_attached_inferiors_p)
13668 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13669 (clear_inferiors, find_inferior, find_inferior_id)
13670 (inferior_target_data, set_inferior_target_data)
13671 (inferior_regcache_data, set_inferior_regcache_data): Move to
13672 inferiors.h, and include it.
13673 * inferiors.h: New file.
13674
f699aaba
PA
136752013-09-05 Pedro Alves <palves@redhat.com>
13676
13677 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13678 Move ...
72f4393d 13679 * ax.h: ... here.
f699aaba 13680
c144c7a0
PA
136812013-09-05 Pedro Alves <palves@redhat.com>
13682
13683 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13684 tracepoint.h.
13685 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13686 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13687 (handle_tracepoint_general_set, handle_tracepoint_query)
13688 (tracepoint_finished_step, tracepoint_was_hit)
13689 (release_while_stepping_state_list, current_traceframe)
13690 (in_readonly_region, traceframe_read_mem)
13691 (fetch_traceframe_registers, traceframe_read_sdata)
13692 (traceframe_read_info, struct fast_tpoint_collect_status)
13693 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13694 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13695 (supply_fast_tracepoint_registers)
13696 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13697 (ipa_tdesc, claim_trampoline_space)
13698 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13699 (agent_mem_read, agent_get_trace_state_variable_value)
13700 (agent_set_trace_state_variable_value, agent_tsv_read)
13701 (agent_mem_read_string, get_raw_reg_func_addr)
13702 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13703 * tracepoint.h: ... this new file.
13704
ff42e6ab
PA
137052013-09-05 Pedro Alves <palves@redhat.com>
13706
13707 * server.h (perror_with_name, error, fatal, warning, paddress)
13708 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13709 include it.
13710 * utils.h: New file.
13711
541af0f4
PA
137122013-09-05 Pedro Alves <palves@redhat.com>
13713
13714 * server.h (remote_debug, noack_mode, transport_is_reliable)
13715 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13716 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13717 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13718 (write_enn, initialize_async_io, enable_async_io)
13719 (disable_async_io, check_remote_input_interrupt_request)
13720 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13721 (dead_thread_notify, prepare_resume_reply)
13722 (decode_address_to_semicolon, decode_address, decode_m_packet)
13723 (decode_M_packet, decode_X_packet, decode_xfer_write)
13724 (decode_search_memory_packet, unhexify, hexify)
13725 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13726 (look_up_one_symbol, relocate_instruction)
13727 (monitor_output): Move to remote-utils.h, and include it.
13728 * remote-utils.h: New file.
13729
eebdf26b
PA
137302013-09-05 Pedro Alves <palves@redhat.com>
13731
13732 * server.h (_): Delete.
13733
3aafd2ff
PA
137342013-09-02 Pedro Alves <palves@redhat.com>
13735
13736 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13737 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13738 allocated.
13739 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13740
cee83bcb
PM
137412013-09-02 Pierre Muller <muller@sourceware.org>
13742
13743 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13744 or WriteProcessMemory complete successfully and handle
13745 ERROR_PARTIAL_COPY error.
13746
9a13b2fa
PA
137472013-09-02 Pedro Alves <palves@redhat.com>
13748
13749 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13750 error instead of EIO.
13751
602e3198
JK
137522013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13753
13754 PR server/15604
13755 * linux-low.c: Include filestuff.h.
13756 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13757 * lynx-low.c: Include filestuff.h.
13758 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13759 * server.c: Include filestuff.h.
13760 (main): Call notice_open_fds.
13761 * spu-low.c: Include filestuff.h.
13762 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13763
96d7229d
LM
137642013-08-22 Luis Machado <lgustavo@codesourcery.com>
13765
13766 * Makefile.in: Explain why ../target and ../nat are not
13767 listed as include file search paths.
13768 (linux-waitpid.o): New object file rule.
13769 * configure.srv (srv_native_linux_obj): New variable.
13770 Replace all occurrences of linux native object files with
13771 $srv_native_linux_obj.
13772 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13773 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13774 (linux_enable_event_reporting): Remove declaration.
13775 (my_waitpid): Moved to common/linux-waitpid.c.
13776 (linux_wait_for_event): Pass ptid when calling
13777 linux_enable_event_reporting.
13778 (linux_supports_tracefork_flag): Remove.
13779 (linux_enable_event_reporting): Likewise.
13780 (linux_tracefork_grandchild): Remove.
13781 (STACK_SIZE): Moved to common/linux-ptrace.c.
13782 (linux_tracefork_child): Remove.
13783 (linux_test_for_tracefork): Remove.
13784 (linux_look_up_symbols): Call linux_supports_traceclone.
13785 (initialize_low): Remove call to linux_test_for_tracefork.
13786 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13787 common/linux-ptrace.h.
13788 (PTRACE_TYPE_ARG4): Likewise.
13789 Include linux-ptrace.h.
13790
32940073
PA
137912013-08-21 Pedro Alves <palves@redhat.com>
13792
13793 * config.in: Renegerate.
13794
33b60d58 137952013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13796
33b60d58
LM
13797 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13798 (SFILES): Remove $(srcdir)/common/target-common.c and
13799 add $(srcdir)/target/waitstatus.c.
13800 (OBS): Remove target-common.o and add waitstatus.o.
13801 (server_h): Remove $(srcdir)/../common/target-common.h and
13802 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13803 and $(srcdir)/../target/waitstatus.h.
13804 (target-common.o): Remove.
13805 (waitstatus.o): New target object file.
13806 * target.h: Do not include target-common.h and
13807 include target/resume.h, target/wait.h and
13808 target/waitstatus.h.
13809
b8e1b30e
LM
138102013-08-13 Luis Machado <lgustavo@codesourcery.com>
13811
13812 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13813 to PTRACE_TYPE_ARG3.
13814 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13815 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13816 PTRACE_TYPE_ARG4.
13817 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13818 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13819
7a60ad40
YQ
138202013-07-27 Jie Zhang <jie@codesourcery.com>
13821 Daniel Jacobowitz <dan@codesourcery.com>
13822 Yao Qi <yao@codesourcery.com>
13823
13824 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13825 (mips-linux-watch.o): New rule.
13826 (mips_linux_watch_h): New variable.
13827 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13828 srv_tgtobj.
13829 * linux-mips-low.c: Include mips-linux-watch.h.
13830 (struct arch_process_info, struct arch_lwp_info): New.
13831 (update_watch_registers_callback): New function.
13832 (mips_linux_new_process, mips_linux_new_thread) New functions.
13833 (mips_linux_prepare_to_resume, mips_insert_point): New
13834 functions.
13835 (mips_remove_point, mips_stopped_by_watchpoint): New
13836 functions.
13837 (rsp_bp_type_to_target_hw_bp_type): New function.
13838 (mips_stopped_data_address): New function.
13839 (the_low_target): Add watchpoint support functions.
13840
de6f69ad
YQ
138412013-07-27 Yao Qi <yao@codesourcery.com>
13842
13843 * i386-low.c: Include break-common.h.
13844 (enum target_hw_bp_type): Remove.
13845
3360c0bf
LM
138462013-07-24 Luis Machado <lgustavo@codesourcery.com>
13847
13848 * Makefile.in (SFILES): /common/target-common.c.
13849 (OBS): Add target-common.o.
13850 (server_h): Add $(srcdir)/../common/target-common.h.
13851 (target-common.o): New target.
13852 * server.c (queue_stop_reply_callback): Free
13853 status string after use.
13854 * target.c (target_waitstatus_to_string): Remove.
13855 * target.h: Include target-common.h.
13856 (resume_kind): Likewise.
13857 (target_waitkind): Likewise.
13858 (target_waitstatus): Likewise.
13859 (TARGET_WNOHANG): Likewise.
13860
bd885420
YQ
138612013-07-04 Yao Qi <yao@codesourcery.com>
13862
13863 * Makefile.in (host_alias): Use @host_noncanonical@.
13864 (target_alias): Use @target_noncanonical@.
13865 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13866 ACX_NONCANONICAL_HOST.
13867 * configure: Regenerated.
13868
13869 Revert:
13870 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13871
13872 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13873 * configure: Rebuild.
13874 * Makefile.in (version_host, version_target): Get from configure.
13875 (version.c): Use $(version_host) and $(version_target).
13876
17ef446e
PA
138772013-07-03 Pedro Alves <palves@redhat.com>
13878
13879 * Makefile.in (config.status): Depend on development.sh.
13880 * acinclude.m4: Include libmcheck.m4.
13881 * configure: Regenerate.
13882
7a9a7487
MG
138832013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13884
13885 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13886 attribute inside the parentheses.
13887 (winapi_DebugSetProcessKillOnExit): Ditto.
13888 (winapi_DebugBreakProcess): Ditto.
13889 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13890
49b64de6
MG
138912013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13892
13893 * notif.h (notif_event): Add a dummy member to avoid compiler
13894 errors.
13895
d5749ee7
PA
138962013-07-01 Pedro Alves <palves@redhat.com>
13897
13898 * hostio.c (HOSTIO_PATH_MAX): Define.
13899 (require_filename, handle_open, handle_unlink, handle_readlink):
13900 Use it.
13901
d8d2a3ee
PA
139022013-07-01 Pedro Alves <palves@redhat.com>
13903
13904 * server.h: Include "pathmax.h".
13905 * linux-low.c: Don't include sys/param.h.
13906 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13907 MAXPATHLEN.
13908 * win32-low.c: Don't include sys/param.h.
13909 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13910
bc7dea8d
PA
139112013-07-01 Pedro Alves <palves@redhat.com>
13912
13913 * event-loop.c: Don't check HAVE_UNISTD_H before including
13914 <unistd.h>.
13915 * gdbreplay.c: Likewise.
13916 * remote-utils.c: Likewise.
13917 * server.c: Likewise.
13918 * configure.ac: Don't check for unistd.h.
13919 * configure: Regenerate.
13920
d6c2da54
TT
139212013-06-28 Tom Tromey <tromey@redhat.com>
13922
13923 * Makefile.in (version.c): Use version.in, not
13924 common/version.in.
13925
257b6bec
MG
139262013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13927
13928 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13929 * configure: Rebuild.
13930 * Makefile.in (version_host, version_target): Get from configure.
13931 (version.c): Use $(version_host) and $(version_target).
13932
86ebe149
DK
139332013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13934
13935 Fix trace-status to output user name without trailing colon.
13936 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13937
f30aa5af
DK
139382013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13939
13940 Fix trace-status to output proper start-time and stop-time.
13941 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13942 output start time and stop time in hex as gdb expects.
13943
28a93511
YQ
139442013-06-26 Pedro Alves <pedro@codesourcery.com>
13945
13946 * tracepoint.c (build_traceframe_info_xml): Output trace state
13947 variables present in the trace buffer.
13948
01208463
TT
139492013-06-24 Tom Tromey <tromey@redhat.com>
13950
13951 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13952 create-version.sh.
13953 (version.o): Remove.
13954 * gdbreplay.c: Include version.h.
13955 (version, host_name): Don't declare.
13956 * server.h: Include version.h.
13957 (version, host_name): Don't declare.
13958
760256f9
PA
139592013-06-12 Pedro Alves <palves@redhat.com>
13960
13961 * linux-x86-low.c (linux_is_elf64): Delete global.
13962 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13963 with local linux_pid_exe_is_elf_64_file use.
13964
030031ee
PA
139652013-06-11 Pedro Alves <palves@redhat.com>
13966
13967 * linux-low.c (regset_disabled, disable_regset): New functions.
13968 (regsets_fetch_inferior_registers)
13969 (regsets_store_inferior_registers): Use them.
13970 (initialize_regsets_info); Don't allocate the disabled_regsets
13971 array here.
13972 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13973 comment.
13974
5da6eb0a
PA
139752013-06-11 Pedro Alves <palves@redhat.com>
13976
13977 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13978 xmalloc.
13979
7e5aaa09
PA
139802013-06-11 Pedro Alves <palves@redhat.com>
13981
13982 * linux-x86-low.c (initialize_low_arch): Call
13983 init_registers_x32_avx_linux.
13984
d878444c
JK
139852013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13986
13987 Fix compatibility with Android Bionic.
13988 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13989 it is not empty.
13990
3aee8918
PA
139912013-06-07 Pedro Alves <palves@redhat.com>
13992
5f2b57b5 13993 PR server/14823
3aee8918
PA
13994 * Makefile.in (OBS): Add tdesc.o.
13995 (IPA_OBJS): Add tdesc-ipa.o.
13996 (tdesc-ipa.o): New rule.
13997 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13998 interface.
13999 * linux-low.c (new_inferior): Delete.
14000 (disabled_regsets, num_regsets): Delete.
14001 (linux_add_process): Adjust to set the new per-process
14002 new_inferior flag.
14003 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14004 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14005 was a stop. When calling arch_setup, switch the current inferior
14006 to the thread that got an event.
14007 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14008 (regsets_fetch_inferior_registers)
14009 (regsets_store_inferior_registers): New regsets_info parameter.
14010 Adjust to use it.
14011 (linux_register_in_regsets): New regs_info parameter. Adjust to
14012 use it.
14013 (register_addr, fetch_register, store_register): New usrregs_info
14014 parameter. Adjust to use it.
14015 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14016 parameter regs_info. Adjust to use it.
14017 (linux_fetch_registers): Get the current inferior's regs_info, and
14018 adjust to use it.
14019 (linux_store_registers): Ditto.
14020 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14021 (initialize_low): Don't initialize the target_regsets here. Call
14022 initialize_low_arch.
14023 * linux-low.h (target_regsets): Delete declaration.
14024 (struct regsets_info): New.
14025 (struct usrregs_info): New.
14026 (struct regs_info): New.
14027 (struct process_info_private) <new_inferior>: New field.
14028 (struct linux_target_ops): Delete the num_regs, regmap, and
14029 regset_bitmap fields. New field regs_info.
14030 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14031 * i387-fp.c (num_xmm_registers): Delete.
14032 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14033 calls to new interface.
14034 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14035 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14036 Infer the number of xmm registers from the regcache's target
14037 description.
14038 * i387-fp.h (num_xmm_registers): Delete.
14039 * inferiors.c (add_thread): Don't install the thread's regcache
14040 here.
14041 * proc-service.c (gregset_info): Fetch the current inferior's
14042 regs_info. Adjust to use it.
14043 * regcache.c: Include tdesc.h.
14044 (register_bytes, reg_defs, num_registers)
14045 (gdbserver_expedite_regs): Delete.
14046 (get_thread_regcache): If the thread doesn't have a regcache yet,
14047 create one, instead of aborting gdbserver.
14048 (regcache_invalidate_one): Rename to ...
14049 (regcache_invalidate_thread): ... this.
14050 (regcache_invalidate_one): New.
14051 (regcache_invalidate): Only invalidate registers of the current
14052 process.
14053 (init_register_cache): Add target_desc parameter, and use it.
14054 (new_register_cache): Ditto. Assert the target description has a
14055 non zero registers_size.
14056 (regcache_cpy): Add assertions. Adjust.
14057 (realloc_register_cache, set_register_cache): Delete.
14058 (registers_to_string, registers_from_string): Adjust.
14059 (find_register_by_name, find_regno, find_register_by_number)
14060 (register_cache_size): Add target_desc parameter, and use it.
14061 (free_register_cache_thread, free_register_cache_thread_one)
14062 (regcache_release, register_cache_size): New.
14063 (register_size): Add target_desc parameter, and use it.
14064 (register_data, supply_register, supply_register_zeroed)
14065 (supply_regblock, supply_register_by_name, collect_register)
14066 (collect_register_as_string, collect_register_by_name): Adjust.
14067 * regcache.h (struct target_desc): Forward declare.
14068 (struct regcache) <tdesc>: New field.
14069 (init_register_cache, new_register_cache): Add target_desc
14070 parameter.
14071 (regcache_invalidate_thread): Declare.
14072 (regcache_invalidate_one): Delete declaration.
14073 (regcache_release): Declare.
14074 (find_register_by_number, register_cache_size, register_size)
14075 (find_regno): Add target_desc parameter.
14076 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14077 declarations.
14078 * remote-utils.c: Include tdesc.h.
14079 (outreg, prepare_resume_reply): Adjust.
14080 * server.c: Include tdesc.h.
14081 (gdbserver_xmltarget): Delete declaration.
14082 (get_features_xml, process_serial_event): Adjust.
14083 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14084 declare.
14085 (struct process_info) <tdesc>: New field.
14086 (ipa_tdesc): Declare.
14087 * tdesc.c: New file.
14088 * tdesc.h: New file.
14089 * tracepoint.c: Include tdesc.h.
14090 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14091 (get_context_regcache): Adjust to pass ipa_tdesc down.
14092 (do_action_at_tracepoint): Adjust to get the register cache size
14093 from the context regcache's description.
14094 (traceframe_walk_blocks): Adjust to get the register cache size
14095 from the current trace frame's description.
14096 (traceframe_get_pc): Adjust to get current trace frame's
14097 description and pass it down.
14098 (gdb_collect): Adjust to get the register cache size from the
14099 IPA's description.
14100 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14101 (gdbserver_xmltarget): Delete.
14102 (initialize_low_tracepoint): Set the ipa's target description.
14103 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14104 (initialize_low_tracepoint): Set the ipa's target description.
14105 * linux-x86-low.c: Include tdesc.h.
14106 [__x86_64__] (is_64bit_tdesc): New.
14107 (ps_get_thread_area, x86_get_thread_area): Use it.
14108 (i386_cannot_store_register): Rename to ...
14109 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14110 (i386_cannot_fetch_register): Rename to ...
14111 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14112 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14113 to new interface.
14114 (target_regsets): Rename to ...
14115 (x86_regsets): ... this.
14116 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14117 interface.
14118 (x86_siginfo_fixup): Use is_64bit_tdesc.
14119 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14120 (tdesc_x32_avx_linux, tdesc_x32_linux)
14121 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14122 Declare.
14123 (x86_linux_update_xmltarget): Delete.
14124 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14125 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14126 (AMD64_LINUX_USER64_CS): New.
14127 (x86_linux_read_description): New, based on
14128 x86_linux_update_xmltarget.
14129 (same_process_callback): New.
14130 (x86_arch_setup_process_callback): New.
14131 (x86_linux_update_xmltarget): New.
14132 (x86_regsets_info): New.
14133 (amd64_linux_regs_info): New.
14134 (i386_linux_usrregs_info): New.
14135 (i386_linux_regs_info): New.
14136 (x86_linux_regs_info): New.
14137 (x86_arch_setup): Reimplement.
14138 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14139 (x86_emit_ops): Ditto.
14140 (the_low_target): Adjust. Install x86_linux_regs_info,
14141 x86_cannot_fetch_register, and x86_cannot_store_register.
14142 (initialize_low_arch): New.
14143 * linux-ia64-low.c (tdesc_ia64): Declare.
14144 (ia64_fetch_register): Adjust.
14145 (ia64_usrregs_info, regs_info): New globals.
14146 (ia64_regs_info): New function.
14147 (the_low_target): Adjust.
14148 (initialize_low_arch): New function.
14149 * linux-sparc-low.c (tdesc_sparc64): Declare.
14150 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14151 Adjust.
14152 (sparc_arch_setup): New function.
14153 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14154 (the_low_target): Adjust.
14155 (initialize_low_arch): New function.
14156 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14157 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14158 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14159 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14160 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14161 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14162 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14163 (tdesc_powerpc_isa205_vsx64l): Declare.
14164 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14165 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14166 (ppc_set_pc, ppc_get_hwcap): Adjust.
14167 (ppc_usrregs_info): Forward declare.
14168 (!__powerpc64__) ppc_regmap_adjusted: New global.
14169 (ppc_arch_setup): Adjust to the current process'es target
14170 description.
14171 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14172 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14173 (ppc_store_evrregset): Adjust.
14174 (target_regsets): Rename to ...
14175 (ppc_regsets): ... this, and make static.
14176 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14177 (ppc_regs_info): New function.
14178 (the_low_target): Adjust.
14179 (initialize_low_arch): New function.
14180 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14181 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14182 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14183 (tdesc_s390x_linux64v2): Declare.
14184 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14185 (s390_fill_gregset, s390_store_last_break): Adjust.
14186 (target_regsets): Rename to ...
14187 (s390_regsets): ... this, and make static.
14188 (s390_get_pc, s390_set_pc): Adjust.
14189 (s390_get_hwcap): New target_desc parameter, and use it.
14190 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14191 (s390_arch_setup): Adjust to set the current process'es target
14192 description. Don't adjust the regmap.
14193 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14194 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14195 (regs_info_3264): New globals.
14196 (s390_regs_info): New function.
14197 (the_low_target): Adjust.
14198 (initialize_low_arch): New function.
14199 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14200 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14201 [__mips64] (init_registers_mips_linux)
14202 (init_registers_mips_dsp_linux): Delete defines.
14203 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14204 (have_dsp): New global.
14205 (mips_read_description): New, based on mips_arch_setup.
14206 (mips_arch_setup): Reimplement.
14207 (get_usrregs_info): New function.
14208 (mips_cannot_fetch_register, mips_cannot_store_register)
14209 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14210 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14211 (target_regsets): Rename to ...
14212 (mips_regsets): ... this, and make static.
14213 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14214 (dsp_regs_info, regs_info): New globals.
14215 (mips_regs_info): New function.
14216 (the_low_target): Adjust.
14217 (initialize_low_arch): New function.
14218 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14219 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14220 Declare.
14221 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14222 (arm_read_description): New, with bits factored from
14223 arm_arch_setup.
14224 (arm_arch_setup): Reimplement.
14225 (target_regsets): Rename to ...
14226 (arm_regsets): ... this, and make static.
14227 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14228 (arm_regs_info): New function.
14229 (the_low_target): Adjust.
14230 (initialize_low_arch): New function.
14231 * linux-m68k-low.c (tdesc_m68k): Declare.
14232 (target_regsets): Rename to ...
14233 (m68k_regsets): ... this, and make static.
14234 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14235 (m68k_regs_info): New function.
14236 (m68k_arch_setup): New function.
14237 (the_low_target): Adjust.
14238 (initialize_low_arch): New function.
14239 * linux-sh-low.c (tdesc_sharch): Declare.
14240 (target_regsets): Rename to ...
14241 (sh_regsets): ... this, and make static.
14242 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14243 (sh_regs_info, sh_arch_setup): New functions.
14244 (the_low_target): Adjust.
14245 (initialize_low_arch): New function.
14246 * linux-bfin-low.c (tdesc_bfin): Declare.
14247 (bfin_arch_setup): New function.
14248 (bfin_usrregs_info, regs_info): New globals.
14249 (bfin_regs_info): New function.
14250 (the_low_target): Adjust.
14251 (initialize_low_arch): New function.
14252 * linux-cris-low.c (tdesc_cris): Declare.
14253 (cris_arch_setup): New function.
14254 (cris_usrregs_info, regs_info): New globals.
14255 (cris_regs_info): New function.
14256 (the_low_target): Adjust.
14257 (initialize_low_arch): New function.
14258 * linux-cris-low.c (tdesc_crisv32): Declare.
14259 (cris_arch_setup): New function.
14260 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14261 (cris_regs_info): New function.
14262 (the_low_target): Adjust.
14263 (initialize_low_arch): New function.
14264 * linux-m32r-low.c (tdesc_m32r): Declare.
14265 (m32r_arch_setup): New function.
14266 (m32r_usrregs_info, regs_info): New globals.
14267 (m32r_regs_info): Adjust.
14268 (initialize_low_arch): New function.
14269 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14270 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14271 (tic6x_usrregs_info): Forward declare.
14272 (tic6x_read_description): New function, based on ...
14273 (tic6x_arch_setup): ... this. Reimplement.
14274 (target_regsets): Rename to ...
14275 (tic6x_regsets): ... this, and make static.
14276 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14277 (tic6x_regs_info): New function.
14278 (the_low_target): Adjust.
14279 (initialize_low_arch): New function.
14280 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14281 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14282 (target_regsets): Rename to ...
14283 (xtensa_regsets): ... this, and make static.
14284 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14285 globals.
14286 (xtensa_arch_setup, xtensa_regs_info): New functions.
14287 (the_low_target): Adjust.
14288 (initialize_low_arch): New function.
14289 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14290 (nios2_arch_setup): Set the current process'es tdesc.
14291 (target_regsets): Rename to ...
14292 (nios2_regsets): ... this.
14293 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14294 (nios2_regs_info): New function.
14295 (the_low_target): Adjust.
14296 (initialize_low_arch): New function.
a261b8f5
PA
14297 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14298 (aarch64_arch_setup): Set the current process'es tdesc.
14299 (target_regsets): Rename to ...
14300 (aarch64_regsets): ... this.
14301 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14302 (aarch64_regs_info): New function.
14303 (the_low_target): Adjust.
14304 (initialize_low_arch): New function.
3aee8918
PA
14305 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14306 globals.
14307 (target_regsets): Rename to ...
14308 (tile_regsets): ... this.
14309 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14310 (tile_regs_info): New function.
14311 (tile_arch_setup): Set the current process'es tdesc.
14312 (the_low_target): Adjust.
14313 (initialize_low_arch): New function.
14314 * spu-low.c (tdesc_spu): Declare.
14315 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14316 * win32-arm-low.c (tdesc_arm): Declare.
14317 (arm_arch_setup): New function.
14318 (the_low_target): Install arm_arch_setup instead of
14319 init_registers_arm.
14320 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14321 (init_windows_x86): Rename to ...
14322 (i386_arch_setup): ... this. Set `win32_tdesc'.
14323 (the_low_target): Adjust.
14324 * win32-low.c (win32_tdesc): New global.
14325 (child_add_thread): Don't create the thread cache here.
14326 (do_initial_child_stuff): Set the new process'es tdesc.
14327 * win32-low.h (struct target_desc): Forward declare.
14328 (win32_tdesc): Declare.
14329 * lynx-i386-low.c (tdesc_i386): Declare global.
14330 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14331 * lynx-low.c (lynx_tdesc): New global.
14332 (lynx_add_process): Set the new process'es tdesc.
14333 * lynx-low.h (struct target_desc): Forward declare.
14334 (lynx_tdesc): Declare global.
14335 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14336 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14337 * nto-low.c (nto_tdesc): New global.
14338 (do_attach): Set the new process'es tdesc.
14339 * nto-low.h (struct target_desc): Forward declare.
14340 (nto_tdesc): Declare.
14341 * nto-x86-low.c (tdesc_i386): Declare.
14342 (nto_x86_arch_setup): Set `nto_tdesc'.
14343
b1fbec62
GB
143442013-06-04 Gary Benson <gbenson@redhat.com>
14345
14346 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14347 to qSupported response when appropriate.
14348 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14349 with nonzero-length annex.
14350 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14351 arguments supplied in annex.
14352
d1ec4ce7
DE
143532013-05-31 Doug Evans <dje@google.com>
14354
ac44adcb 14355 PR server/15594
d1ec4ce7
DE
14356 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14357 64 bits in 64-cross-32 environment.
14358
9b25f2d3
PA
143592013-05-28 Pedro Alves <palves@redhat.com>
14360
14361 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14362 (aarch64-without-fpu.c): Delete rule.
14363 * configure.srv (aarch64*-*-linux*): Remove references to
14364 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14365 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14366 declaration.
14367
6740dc9c
PA
143682013-05-24 Pedro Alves <palves@redhat.com>
14369
14370 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14371 instead of strchr/decode_address. Error if the range isn't split
14372 with a ','. Don't assume there's be a ':' in the action.
14373
c2d6af84
PA
143742013-05-23 Yao Qi <yao@codesourcery.com>
14375 Pedro Alves <palves@redhat.com>
14376
14377 * linux-low.c (lwp_in_step_range): New function.
14378 (linux_wait_1): If the thread was range stepping and stopped
14379 outside the stepping range, report the stop to GDB. Otherwise,
14380 continue stepping. Add range stepping debug output.
14381 (linux_set_resume_request): Copy the step range from the resume
14382 request to the lwp.
14383 (linux_supports_range_stepping): New.
14384 (linux_target_ops) <supports_range_stepping>: Set to
14385 linux_supports_range_stepping.
14386 * linux-low.h (struct linux_target_ops)
14387 <supports_range_stepping>: New field.
14388 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14389 * linux-x86-low.c (x86_supports_range_stepping): New.
14390 (the_low_target) <supports_range_stepping>: Set to
14391 x86_supports_range_stepping.
14392 * server.c (handle_v_cont): Handle 'r' action.
14393 (handle_v_requests): Append ";r" if the target supports range
14394 stepping.
14395 * target.h (struct thread_resume) <step_range_start,
14396 step_range_end>: New fields.
14397 (struct target_ops) <supports_range_stepping>:
14398 New field.
14399 (target_supports_range_stepping): New macro.
14400
58794e1a
JB
144012013-05-17 Joel Brobecker <brobecker@adacore.com>
14402
14403 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14404 confusion in comment.
14405
d631c5a7
JB
144062013-05-17 Joel Brobecker <brobecker@adacore.com>
14407
14408 * lynx-low.c (struct process_info_private): New type.
14409 (lynx_add_process): New function.
14410 (lynx_create_inferior, lynx_attach): Replace calls to
14411 add_process by calls to lynx_add_process.
14412 (lynx_resume): If PTID is null, then try using
14413 current_process()->private->last_wait_event_ptid.
14414 Add comments.
14415 (lynx_clear_inferiors): Delete. The contents of that function
14416 has been inlined in lynx_mourn;
14417 (lynx_wait_1): Save the ptid in the process's private data.
14418 (lynx_mourn): Free the process' private data. Replace call
14419 to lynx_clear_inferiors by call to clear_inferiors.
14420
96f7a20f
YQ
144212013-05-17 Yao Qi <yao@codesourcery.com>
14422
14423 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14424 the right place.
14425
db0dfaa0
LM
144262013-05-16 Luis Machado <lgustavo@codesourcery.com>
14427
14428 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14429 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14430 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14431 PT_TEXT_END_ADDR guards. Update comments.
14432 (linux_target_op) <read_offsets>: Conditionally define to
14433 linux_read_offsets if the target is UCLIBC and if it defines
14434 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14435
68f5f838
SL
144362013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14437 Andrew Jenner <andrew@codesourcery.com>
14438
14439 * Makefile.in (SFILES): Add linux-nios2-low.c.
14440 (clean): Add action to delete nios2-linux.c.
14441 (nios2-linux.c): New rule.
14442 * configure.srv: Add nios2*-*-linux*.
14443 * linux-nios2-low.c: New.
14444
1ebff1fd
HAQ
144452013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14446
14447 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14448
f6150862
HZ
144492013-04-25 Hui Zhu <hui@codesourcery.com>
14450
14451 PR gdb/15186
f6150862
HZ
14452 * ax.c (ax_printf): Add fflush.
14453
614c279d
TT
144542013-04-22 Tom Tromey <tromey@redhat.com>
14455
14456 * Makefile.in (SFILES): Add filestuff.c.
14457 (OBS): Add filestuff.o.
14458 (filestuff.o): New target.
14459 * config.in, configure: Rebuild.
14460 * configure.ac: Check for fdwalk, pipe2.
14461
7d4e5717
PA
144622013-04-17 Pedro Alves <palves@redhat.com>
14463
14464 * configure.ac (USE_THREAD_DB): Delete variable.
14465 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14466 Don't AC_SUBST USE_THREAD_DB.
14467 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14468 * config.in, configure: Regenerate.
14469
d5c93e41
PA
144702013-04-16 Pedro Alves <palves@redhat.com>
14471
14472 * linux-low.h (struct lwp_info) <thread_known>: Move under
14473 the USE_THREAD_DB #ifdef.
14474
04f5fe89
PA
144752013-04-16 Pedro Alves <palves@redhat.com>
14476
14477 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14478 (linux-low.o): Delete rule.
14479 * linux-low.h: Always include "gdb_thread_db.h" instead of
14480 conditionally including thread_db.h.
14481 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14482 HAVE_THREAD_DB_H.
14483
480b27bf
JK
144842013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14485
14486 * Makefile.in (install-only): Fix make install regression.
14487
43662968
JK
144882013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14489
14490 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14491 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14492 installation.
14493 * gdbserver.1: Remove.
14494
3e74e146
PA
144952013-03-22 Pedro Alves <palves@redhat.com>
14496
14497 * linux-low.c (handle_extended_wait): Don't call
14498 linux_enable_event_reporting.
14499
a8347a2a
TT
145002013-03-15 Tony Theodore <tonyt@logyst.com>
14501
14502 PR build/9098:
14503 * Makefile.in (SHELL): Use @SHELL@.
14504
eeb56fa7
SDJ
145052013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14506
14507 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14508 compiler warning.
14509
4fa7e2ff
JB
145102013-03-13 Joel Brobecker <brobecker@adacore.com>
14511
14512 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14513 Remove extraneous NULL element.
14514
8ddb1965
YQ
145152013-03-13 Yao Qi <yao@codesourcery.com>
14516
14517 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14518 'V' block in trace frame.
14519
9accd112
MM
145202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14521
14522 * target.h (struct target_ops): Add btrace ops.
14523 (target_supports_btrace): New macro.
14524 (target_enable_btrace): New macro.
14525 (target_disable_btrace): New macro.
14526 (target_read_btrace): New macro.
14527 * gdbthread.h (struct thread_info): Add btrace field.
14528 * server.c: Include btrace-common.h.
14529 (handle_btrace_general_set): New function.
14530 (handle_btrace_enable): New function.
14531 (handle_btrace_disable): New function.
14532 (handle_general_set): Call handle_btrace_general_set.
14533 (handle_qxfer_btrace): New function.
14534 (struct qxfer qxfer_packets[]): Add btrace entry.
14535 * inferiors.c (remove_thread): Disable btrace.
14536 * linux-low: Include linux-btrace.h.
14537 (linux_low_enable_btrace): New function.
14538 (linux_low_read_btrace): New function.
14539 (linux_target_ops): Add btrace ops.
14540 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14541 Add srv_linux_btrace=yes.
14542 (x86_64-*-linux*): Add linux-btrace.o.
14543 Add srv_linux_btrace=yes.
14544 * configure.ac: Define HAVE_LINUX_BTRACE.
14545 * config.in: Regenerated.
14546 * configure: Regenerated.
14547
5cc22e4c
MM
145482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14549
14550 * server.c (handle_qxfer): Preserve error message if -3 is
14551 returned.
14552 (qxfer): Document the -3 return value.
14553
7c97f91e
MM
145542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14555
14556 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14557 (linux_btrace_h): New variable.
14558 (linux-btrace.o): New rule.
14559
be9a119c 145602013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14561 Hafiz Abid Qadeer <abidh@codesourcery.com>
14562
14563 * tracepoint.c (trace_buffer_size): New global.
14564 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14565 (init_trace_buffer): Change to one-argument function. Allocate
14566 trace buffer memory.
14567 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14568 handle QTBuffer:size packet.
14569 (cmd_bigqtbuffer_size): New function.
14570 (initialize_tracepoint): Call init_trace_buffer with
14571 DEFAULT_TRACE_BUFFER_SIZE.
14572 * server.c (handle_query): Add QTBuffer:size in the
14573 supported packets.
14574
e64f7499
YQ
145752013-03-07 Yao Qi <yao@codesourcery.com>
14576
14577 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14578 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14579 of -1.
14580 (cmd_qtsp): Adjust condition. Do post increment.
14581 Set cur_action and cur_step_action back to 0.
14582
f0ae6fc3
PA
145832013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14584
14585 PR server/15236
14586 * linux-low.c (linux_write_memory): Return early success if LEN is
14587 zero.
14588
b5b0b0af
CV
145892013-03-05 Corinna Vinschen <vinschen@redhat.de>
14590
334ad4a8 14591 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14592
589bc927
TT
145932013-02-28 Tom Tromey <tromey@redhat.com>
14594
14595 * configure.ac: Invoke AC_SYS_LARGEFILE.
14596 * configure, config.in: Rebuild.
14597
dfe07582
CV
145982013-02-28 Corinna Vinschen <vinschen@redhat.com>
14599
14600 * win32-low.c: Throughout, fix format strings and casts of
14601 printf-like functions to avoid type related warnings on all
14602 platforms.
14603 (get_child_debug_event): Print dwDebugEventCode as hex since
14604 that's how it's usually documented.
14605
736cd585
YQ
146062013-02-28 Yao Qi <yao@codesourcery.com>
14607
14608 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14609 pulongest.
14610
e1f58301
JW
146112013-02-27 Jiong Wang <jiwang@tilera.com>
14612
14613 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14614 (reg-tilegx32.c): New rule.
14615 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14616 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14617 different register info initializer according to elf class.
14618 (init_registers_tilgx32): New function. The tilegx32 register info
14619 initializer.
14620 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14621 (tile_store_gregset): Likewise.
14622
d171ca78
YQ
146232013-02-27 Yao Qi <yao@codesourcery.com>
14624
14625 * server.c (process_point_options): Print debug message when
14626 debug_threads is true.
14627
282bbdf3
YQ
146282013-02-26 Yao Qi <yao@codesourcery.com>
14629
14630 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14631
aca22551
PA
146322013-02-19 Pedro Alves <palves@redhat.com>
14633 Kai Tietz <ktietz@redhat.com>
14634
14635 PR gdb/15161
14636
14637 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14638 instead of strtoul to extract address from packet.
14639 (process_serial_event) <'z'>: Likewise.
14640
4f3cee1c
YQ
146412013-02-18 Yao Qi <yao@codesourcery.com>
14642
14643 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14644
8e1d55a3
PA
146452013-02-14 Pedro Alves <palves@redhat.com>
14646
14647 Plug memory leak.
14648
14649 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14650 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14651
458820da
PA
146522013-02-14 Pedro Alves <palves@redhat.com>
14653
14654 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14655
baea0dae
PA
146562013-02-14 Pedro Alves <palves@redhat.com>
14657
14658 * tracepoint.c (save_string): Delete.
14659 (add_tracepoint_action): Use savestring instead of save_string.
14660
0b1afbb3
PA
146612013-02-12 Pedro Alves <palves@redhat.com>
14662
14663 * linux-xtensa-low.c: Ditto.
14664 * xtensa-xtregs.c: Ditto.
14665
8a4ac37e
PA
146662013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14667
14668 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14669 thread_db.
14670
148de6bb
MS
146712013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14672
14673 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14674 aarch64_num_wp_regs and aarch64_num_bp_regs to
14675 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14676
55fac6e0
MS
146772013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14678
14679 * linux-aarch64-low.c (ps_get_thread_area): Replace
14680 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14681
176eb98c
MS
146822013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14683 Marcus Shawcroft <marcus.shawcroft@arm.com>
14684 Nigel Stephens <nigel.stephens@arm.com>
14685 Yufeng Zhang <yufeng.zhang@arm.com>
14686
14687 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14688 (aarch64.c, aarch64-without-fpu.c): New targets.
14689 * configure.srv (aarch64*-*-linux*): New.
14690 * linux-aarch64-low.c: New file.
14691
56f7af9c
MS
146922013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14693
43aaf8b6 14694 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14695 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14696 (dequeue_one_deferred_signal, linux_resume_one_thread)
14697 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14698 (linux_tracefork_grandchild, linux_test_for_tracefork)
14699 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14700 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14701 where the argument is 0.
14702
60f662b0
YQ
147032013-01-25 Yao Qi <yao@codesourcery.com>
14704
14705 * event-loop.c: Include "queue.h".
14706 (gdb_event_p): New typedef.
14707 (struct gdb_event) <next_event>: Remove.
14708 (event_queue): Change to QUEUE(gdb_event_p).
14709 (async_queue_event): Remove.
14710 (gdb_event_xfree): New.
14711 (initialize_event_loop): New.
14712 (process_event): Use API from QUEUE.
14713 (wait_for_event): Likewise.
14714 * server.c (main): Call initialize_event_loop.
14715 * server.h (initialize_event_loop): Declare.
14716
5ae4861a
YQ
147172013-01-18 Yao Qi <yao@codesourcery.com>
14718
14719 * ax.h (struct eval_agent_expr_context): New.
14720 (gdb_eval_agent_expr): Update declaration.
14721 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14722 TFRAME. Add new argument CTX.
14723 * server.h (struct eval_agent_expr_context): Declare.
14724 (agent_mem_read, agent_tsv_read): Update declaration.
14725 (agent_mem_read_string): Likewise.
14726 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14727 (add_traceframe_block): Add new argument TPOINT.
14728 Increase TPOINT->traceframe_usage.
14729 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14730 eval_tracepoint_agent_expr.
14731 (condition_true_at_tracepoint): Likewise.
14732 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14733 (agent_mem_read_string, agent_tsv_read): Likewise.
14734
85e00e85
YQ
147352013-01-16 Yao Qi <yao@codesourcery.com>
14736
14737 * linux-low.c (linux_resume_one_lwp): Don't check
14738 'lwp->bp_reinsert != 0'.
14739
4039cf45
JB
147402013-01-07 Joel Brobecker <brobecker@adacore.com>
14741 Pedro Alves <palves@redhat.com>
14742
14743 * lynx-low.c (ptrace_request_to_str): Define a temporary
14744 macro and use it to simplify this function's implementation.
14745
9044dee2
JB
147462013-01-07 Joel Brobecker <brobecker@adacore.com>
14747
14748 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14749 sets errno.
14750
e6352c8f
JB
147512013-01-07 Joel Brobecker <brobecker@adacore.com>
14752
14753 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14754
50681a27
JB
147552013-01-07 Joel Brobecker <brobecker@adacore.com>
14756
14757 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14758
3f6e77ef
JB
147592013-01-07 Joel Brobecker <brobecker@adacore.com>
14760
14761 * lynx-low.c (lynx_resume): Use the resume_info parameter
14762 to determine the ptid for the lynx_ptrace call, unless
14763 it is equal to minus_one_ptid, in which case we use the
14764 ptid of the current_inferior.
14765 (lynx_wait_1): After having received a thread create/exit
14766 event, resume the inferior's execution using the signaling
14767 thread's ptid, rather than the old ptid.
14768
7fda33ae
JB
147692013-01-07 Joel Brobecker <brobecker@adacore.com>
14770
14771 * lynx-low.c (lynx_resume): Delete variable ret.
14772
b9786c74
JB
147732013-01-01 Joel Brobecker <brobecker@adacore.com>
14774
14775 * gdbreplay.c (gdbreplay_version): Update copyright year.
14776 * server.c (gdbserver_version): Likewise.
14777
8b93d60f
JB
147782012-12-17 Joel Brobecker <brobecker@adacore.com>
14779
14780 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14781 new thread.
14782
037335a7
JB
147832012-12-17 Joel Brobecker <brobecker@adacore.com>
14784
14785 * lynx-low.c (ptrace_request_to_str): Add handling for
14786 PTRACE_GETTRACESIG.
14787
52d4cbd8
JB
147882012-12-17 Joel Brobecker <brobecker@adacore.com>
14789
14790 * lynx-low.c (lynx_attach): Delete variable new_process.
14791
ab8f6ca9
JB
147922012-12-17 Joel Brobecker <brobecker@adacore.com>
14793
14794 * lynx-low.c (lynx_create_inferior): Delete variable
14795 new_process.
14796
78cbc024
JB
147972012-12-17 Joel Brobecker <brobecker@adacore.com>
14798
14799 * lynx-low.c (ptrace_request_to_str): Do not handle
14800 PTRACE_GETTHREADLIST if this macro does not exist.
14801
14a00470
YQ
148022012-12-15 Yao Qi <yao@codesourcery.com>
14803
14804 * Makefile.in (OBS): Add notif.o.
14805 * notif.c, notif.h: New.
14806 * server.c: Include "notif.h".
14807 (struct vstop_notif) <next>: Remove.
14808 <base>: New field.
14809 (queue_stop_reply): Update.
14810 (push_event, send_next_stop_reply): Remove.
14811 (discard_queued_stop_replies): Update.
14812 (notif_stop): New variable.
14813 (handle_v_stopped): Remove.
14814 (handle_v_requests): Don't call handle_v_stopped. Call
14815 handle_ack_notif instead.
14816 (queue_stop_reply_callback): Call notif_event_enque instead
14817 of queue_stop_reply.
14818 (handle_status): Don't call send_next_stop_reply, call
14819 notif_write_event instead.
14820 (kill_inferior_callback): Likewise.
14821 (detach_or_kill_inferior_callback): Likewise.
14822 (main): Call initialize_notif.
14823 (process_serial_event): Call QUEUE_is_empty.
14824 (handle_target_event): Call notif_push instead of push event.
14825 * server.h (push_event): Remove declaration.
14826
61c125b9
TT
148272012-12-10 Tom Tromey <tromey@redhat.com>
14828
14829 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14830 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14831 macros.
14832 (.c.o): Rewrite.
14833 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14834 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14835 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14836 (amd64-linux-ipa.o, ax.o): Rewrite.
14837 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14838 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14839 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14840 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14841 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14842 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14843 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14844 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14845 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14846 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14847 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14848 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14849 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14850 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14851 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14852 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14853 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14854 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14855 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14856 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14857 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14858 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14859 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14860 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14861 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14862 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14863 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14864 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14865 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14866 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14867 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14868 (reg-tilegx.o): Remove.
14869 (all_object_files): New macro.
14870 Include .deps files.
14871 * aclocal.m4, configure: Rebuild.
14872 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14873 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14874 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14875
e90e9ad9
TT
148762012-12-05 Tom Tromey <tromey@redhat.com>
14877
14878 PR gdb/14917:
14879 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14880
02d403bf 148812012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14882
14883 * configure.ac: Check for linux/perf_event.h.
14884 * config.in: Regenerated.
14885 * configure: Regenerated.
14886
0270a750
PA
148872012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14888
14889 * hostio.c (handle_readlink): Decrease buffer size
14890 parameter passed to readlink by one byte.
14891
8c29b58e
YQ
148922012-11-26 Yao Qi <yao@codesourcery.com>
14893
14894 * configure.ac (build_warnings): Append '-Wempty-body'.
14895 * configure: Regenerated.
14896 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14897 body.
14898
8bdce1ff
PM
148992012-11-15 Pierre Muller <muller@sourceware.org>
14900
14901 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14902 * config.in: Regenerate.
14903 * configure: Regenerate.
14904 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14905 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14906 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14907 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14908 header.
14909 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14910 instead of <sys/wait.h> header.
14911 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14912
02d403bf 149132012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14914
14915 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14916 (various make rules): Remove -DGDBSERVER
14917
fbd5db48
YQ
149182012-11-09 Yao Qi <yao@codesourcery.com>
14919
14920 * spu-low.c (current_ptid): Move it to ..
14921 * gdbthread.h: ... here. New.
14922 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14923 * server.c (myresume, process_serial_event): Likewise.
14924 * thread-db.c (thread_db_find_new_threads): Likewise.
14925 * tracepoint.c (run_inferior_command): Likewise.
14926
b3dc46ff
AB
149272012-10-01 Andrew Burgess <aburgess@broadcom.com>
14928
14929 * server.c (handle_search_memory_1): Include access length in
14930 warning message.
14931
07c04788
HPN
149322012-09-05 Michael Brandt <michael.brandt@axis.com>
14933
14934 * linux-crisv32-low.c: Fix compile errors.
14935
918d227b
YQ
149362012-09-04 Yao Qi <yao@codesourcery.com>
14937
14938 * tracepoint.c (cmd_qtsv): Adjust debug message.
14939 Don't check CUR_TPOINT.
14940
18c1b81a
YQ
149412012-08-28 Yao Qi <yao@codesourcery.com>
14942
14943 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14944 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14945 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14946 Remove declarations of xmalloc, xreallloc, xstrdup and
14947 freeargv.
14948 * Makefile.in (libiberty_h): New.
14949 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14950 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14951
dc82f37b
YQ
149522012-08-23 Yao Qi <yao@codesourcery.com>
14953
14954 * server.h: Remove declaration of 'xsnprintf'.
14955
406b1477
KS
149562012-08-22 Keith Seitz <keiths@redhat.com>
14957
14958 * server.h: Include build-gnulib-gbserver/config.h.
14959 * gdbreplay.c: Likewise.
14960
e6712ff1
DE
149612012-08-08 Doug Evans <dje@google.com>
14962
14963 * Makefile.in (SFILES): Add gdb_vecs.c.
14964 (OBS): Add gdb_vecs.o.
14965 (gdb_vecs_h, host_defs_h): New variables.
14966 (thread-db.o): Add $(gdb_vecs_h) dependency.
14967 (gdb_vecs.o): New rule.
14968 * thread-db.c: #include "gdb_vecs.h".
14969 (thread_db_load_search): Use a vector to iterate over path elements.
14970 Handle text appearing after "$pdir".
14971
14972 * configure.ac: Add check for strstr.
14973 * config.in: Regenerate.
14974 * configure: Regenerate.
14975
7c3270ae
UW
149762012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14977
14978 * hostio.c (handle_pread): If pread fails, fall back to attempting
14979 lseek/read.
14980 (handle_pwrite): Likewise for pwrite.
14981
b62e2b27
UW
149822012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14983
14984 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14985 between unsupported TYPE and unimplementable ADDR/LEN combination.
14986 (arm_insert_point): Act on new return value.
14987
78a99e91
PA
149882012-07-31 Pedro Alves <palves@redhat.com>
14989
14990 * server.c (process_point_options): Only skip tokens if we find
14991 one that is unrecognized. Don't treat 'X' specially while
14992 skipping unrecognized tokens.
14993
fcf303ab
UW
149942012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14995
14996 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14997 to 4-byte-align HW breakpoint addresses for Thumb.
14998
7255706c
YQ
149992012-07-27 Yao Qi <yao@codesourcery.com>
15000
15001 PR remote/14161.
15002
15003 * server.h: Declare gdb_agent_about_to_close.
15004 * target.c (kill_inferior): Include "agent.h".
15005 New. Send command 'kill'.
15006 * target.h (kill_inferior): Removed macro.
15007 * tracepoint.c (gdb_agent_about_to_close): New.
15008 (gdb_agent_helper_thread): Handle command 'close'.
15009 Wait endlessly until the inferior stops.
15010 Install gdb_agent_remove_socket to atexit hook.
15011 (agent_socket_name): New static variable.
15012 (gdb_agent_socket_init): Replace local variable 'name' with
15013 'agent_socket_name'.
15014 (gdb_agent_remove_socket): New.
15015
5a3f286f
YQ
150162012-07-27 Yao Qi <yao@codesourcery.com>
15017
15018 * server.c (process_point_options): Stop at 'X' when parsing.
15019
961bd387
ME
150202012-07-19 Michael Eager <eager@eagercon.com>
15021
a261b8f5 15022 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15023 to hw_execute.
15024 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15025 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15026 hardware breakpoint.
15027
aa7c7447
JK
150282012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15029
15030 * gdbserver/linux-low.c (initialize_low): Call
15031 linux_ptrace_init_warnings.
15032
7f216e7c
DE
150332012-07-02 Doug Evans <dje@google.com>
15034
15035 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15036 pointer to int.
15037
d3ce09f5
SS
150382012-07-02 Stan Shebs <stan@codesourcery.com>
15039
15040 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15041 (ax.o): Add it to build rule.
15042 (ax-ipa.o): Ditto.
15043 (OBS): Add format.o.
15044 (IPA_OBS): Add format.o.
15045 * server.c (handle_query): Claim support for breakpoint commands.
15046 (process_point_options): Add command case.
15047 (process_serial_event): Leave running if there are printfs in
15048 effect.
15049 * mem-break.h (any_persistent_commands): Declare.
15050 (add_breakpoint_commands): Declare.
15051 (gdb_no_commands_at_breakpoint): Declare.
15052 (run_breakpoint_commands): Declare.
15053 * mem-break.c (struct point_command_list): New struct.
15054 (struct breakpoint): New field command_list.
15055 (any_persistent_commands): New function.
15056 (add_commands_to_breakpoint): New function.
15057 (add_breakpoint_commands): New function.
15058 (gdb_no_commands_at_breakpoint): New function.
15059 (run_breakpoint_commands): New function.
15060 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15061 locally.
15062 * ax.c: Include format.h.
15063 (ax_printf): New function.
15064 (gdb_eval_agent_expr): Add printf opcode.
15065
2f8f6aed
YQ
150662012-06-13 Yao Qi <yao@codesourcery.com>
15067
15068 * server.c (start_inferior): Remove duplicated writes to fields
15069 'last_resume_kind' and 'last_status' of 'current_inferior'.
15070
0c9070b3
YQ
150712012-06-12 Yao Qi <yao@codesourcery.com>
15072 Pedro Alves <palves@redhat.com>
15073
15074 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15075 comment.
15076 * server.c (handle_v_cont): Extend comment.
15077
c52daf70
YQ
150782012-06-11 Yao Qi <yao@codesourcery.com>
15079
15080 * linux-low.c (linux_attach): Add 'static'.
15081
d38bbb0a
YQ
150822012-06-06 Yao Qi <yao@codesourcery.com>
15083
15084 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15085
89dc0afd
JK
150862012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15087
15088 Fix gcc -flto compilation warning.
15089 * server.c (main): Make variable multi_mode and attach volatile.
15090
75f62ce7
TJB
150912012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15092
15093 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15094 if the platform doesn't know about it.
15095
65f479b6
PA
150962012-05-30 Jeff Kenton <jkenton@tilera.com>
15097
15098 * Makefile.in (SFILES): Add linux-tile-low.c.
15099 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15100 * configure.srv: Handle tilegx-*-linux*.
15101 * linux-tile-low.c: New file.
15102
0c5bf5a9
JK
151032012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15104
15105 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15106
a493e3e2
PA
151072012-05-24 Pedro Alves <palves@redhat.com>
15108
15109 PR gdb/7205
15110
43aaf8b6 15111 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15112
2ea28649
PA
151132012-05-24 Pedro Alves <palves@redhat.com>
15114
15115 PR gdb/7205
15116
15117 Replace target_signal with gdb_signal throughout.
15118
8d409d16
MR
151192012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15120
15121 * linux-low.c (linux_store_registers): Avoid the copying sequence
15122 when no data has been retrieved by ptrace.
15123
23512c01
MGD
151242012-05-22 Will Deacon <will.deacon@arm.com>
15125
15126 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15127 Include asm/ptrace.h.
15128 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15129 already defined.
15130
4934b29e
MR
151312012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15132
15133 * linux-low.c (linux_store_registers): Don't re-retrieve data
15134 with ptrace that has already been obtained from /proc. Always
15135 copy any data retrieved with ptrace to the buffer supplied.
15136
bde24c0a
PA
151372012-05-11 Yao Qi <yao@codesourcery.com>
15138 Pedro Alves <palves@redhat.com>
15139
15140 * linux-low.c (enum stopping_threads_kind): New.
15141 (stopping_threads): Change type to `enum stopping_threads_kind'.
15142 (handle_extended_wait): If stopping and suspending threads, leave
15143 the new_lwp suspended too.
15144 (linux_wait_for_event): Adjust.
15145 (stop_all_lwps): Set `stopping_threads' to
15146 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15147 whether we're suspending threads or just stopping them. Assert no
15148 recursion happens.
15149
623b6bdf
YQ
151502012-04-29 Yao Qi <yao@codesourcery.com>
15151
15152 * server.h: Move some code to ...
15153 * gdbthread.h: ... here. New.
15154 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15155 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15156 (nto-low.o, win32-low.o): Likewise.
15157 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15158 * regcache.c, remote-utils.c, server.c: Likewise.
15159 * target.c, tracepoint.c, win32-low.c: Likewise.
15160
f15f9948
TJB
151612012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15162
15163 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15164 (PTRACE_ARG4_TYPE): Likewise.
15165 (PTRACE_XFER_TYPE): Likewise.
15166 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15167 ptrace to PTRACE_ARG3_TYPE.
15168 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15169 (PTRACE_ARG4_TYPE): Likewise.
15170 (PTRACE_XFER_TYPE): Likewise.
15171 (linux_detach_one_lwp): Cast fourth argument of
15172 ptrace to long then PTRACE_ARG4_TYPE.
15173 (regsets_fetch_inferior_registers): Cast third argument of
15174 ptrace to long then PTRACE_ARG3_TYPE.
15175 (regsets_store_inferior_registers): Likewise.
15176
38ea300a
PA
151772012-04-20 Pedro Alves <palves@redhat.com>
15178
15179 * configure: Regenerate.
15180
c971b7fa
PA
151812012-04-19 Pedro Alves <palves@redhat.com>
15182
43aaf8b6 15183 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15184 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15185 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15186 (all, install-only, uninstall, clean-info, all-lib, clean): No
15187 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15188 (maintainer-clean realclean distclean): Use subdir_do.
15189 (subdir_do): New.
15190 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15191 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15192 * acinclude.m4: Include acx_configure_dir.m4.
15193 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15194 calls. Call AC_PROG_RANLIB. Configure gnulib using
15195 ACX_CONFIGURE_DIR.
15196 (GNULIB): New.
15197 (GNULIB_STDINT_H): Adjust.
15198 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15199 * gdbreplay.c: Include build-gnulib/config.h.
15200 * server.h: Likewise.
15201 * aclocal.m4: Regenerate.
15202 * config.in: Regenerate.
15203 * configure: Regenerate.
c971b7fa 15204
809277f8
PA
152052012-04-19 Pedro Alves <palves@redhat.com>
15206
15207 * Makefile.in (LIBGNU, INCGNU): Adjust.
15208 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15209 (all, install-only, uninstall, clean-info, all-lib, clean)
15210 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15211 * configure.ac: Adjust AC_OUTPUT output.
15212 * aclocal.m4: Regenerate.
15213 * configure: Regenerate.
15214
fd9bb8b8
PA
152152012-04-19 Pedro Alves <palves@redhat.com>
15216
15217 * Makefile.in (generated_files): New.
15218 (server_h): Remove the explicit dependency on config.h, and depend
15219 on $generated_files.
15220
1c298c66
PA
152212012-04-19 Pedro Alves <palves@redhat.com>
15222
15223 * Makefile.in (INCGNU): Add -Ignulib.
15224
57c4b50b
PA
152252012-04-19 Pedro Alves <palves@redhat.com>
15226
15227 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15228 (INCGNU): ... this, and spell out -I here.
15229 (GNULIB_LIB): Rename to ...
15230 (LIBGNU): ... this.
15231 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15232
1030e047
PA
152332012-04-19 Pedro Alves <palves@redhat.com>
15234
15235 * config.in: Regenerate.
15236
447d4319
PA
152372012-04-19 Pedro Alves <palves@redhat.com>
15238
15239 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15240 * server.h (memmem): Remove declaration.
15241 * config.in: Regenerate.
15242 * configure: Regenerate.
15243
aad9eab9
YQ
152442012-04-19 Yao Qi <yao@codesourcery.com>
15245
15246 * Makefile.in (SFILES): Add common/vec.c.
15247 (OBS): Add vec.o.
15248 (vec.o): New rule.
15249
3e10640f
YQ
152502012-04-19 Yao Qi <yao@codesourcery.com>
15251
15252 * remote-utils.c (prepare_resume_reply): Replace with macro
15253 target_core_of_thread.
15254 * server.c (handle_qxfer_threads_proper): Likewise.
15255 * target.h (traget_core_of_thread): New macro.
15256
71622373
PA
152572012-04-18 Pedro Alves <palves@redhat.com>
15258
15259 * aclocal.m4: Regenerate.
15260 * configure: Regenerate.
15261
80d26939
YQ
152622012-04-16 Yao Qi <yao@codesourcery.com>
15263
15264 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15265 duplicated on address.
15266
42476b70
YQ
152672012-04-16 Yao Qi <yao@codesourcery.com>
15268
15269 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15270 (struct tracepoint_action_ops) <send>: New field.
15271 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15272 (agent_expr_send, x_tracepoint_action_send): New.
15273 (l_tracepoint_action_send): New.
15274 (cmd_qtdp): Download and install tracepoint
15275 according to `use_agent'.
15276 (run_inferior_command): Add one more parameter `len'.
15277 Update callers.
15278 (tracepoint_send_agent): New.
15279 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15280
7bc83639
YQ
152812012-04-16 Yao Qi <yao@codesourcery.com>
15282
15283 * tracepoint.c (download_tracepoints): Moved to ...
15284 (cmd_qtstart): ... here.
15285
5f18041e
YQ
152862012-04-14 Yao Qi <yao@codesourcery.com>
15287
15288 * tracepoint.c: Include inttypes.h.
15289 (struct collect_memory_action): Use sized types.
15290 (struct tracepoint): Likewise.
15291 (cmd_qtdp, stop_tracing): Update print specifiers.
15292 (cmd_qtp, response_tracepoint): Likewise.
15293 (collect_data_at_tracepoint): Likewise.
15294 (collect_data_at_step): Likewise.
15295
55a8c076
YQ
152962012-04-14 Yao Qi <yao@codesourcery.com>
15297
15298 Import gnulib module inttypes.
15299 * aclocal.m4, config.in, configure: Regenerated.
15300
dc750257
YQ
153012012-04-14 Yao Qi <yao@codesourcery.com>
15302
15303 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15304 Makefile and config.status at last.
15305
0ab5faf9
YQ
153062012-04-13 Yao Qi <yao@codesourcery.com>
15307
15308 * tracepoint.c: Include stdint.h unconditionally.
15309
18f5fd81
TJB
153102012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15311
15312 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15313 on BFD_HAVE_SYS_PROCFS_TYPE.
15314 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15315 * configure: Regenerate.
15316 * config.in: Likewise.
15317
4d47af5c
L
153182012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15319
15320 * Makefile.in (clean): Also remove x32.c x32-linux.c
15321 x32-avx.c x32-avx-linux.c.
15322 (x32.o): New target.
15323 (x32.c): Likewise.
15324 (x32-linux.o): Likewise.
15325 (x32-linux.c): Likewise.
15326 (x32-avx.o): Likewise.
15327 (x32-avx.c): Likewise.
15328 (x32-avx-linux.o): Likewise.
15329 (x32-avx-linux.c): Likewise.
15330
15331 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15332 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15333 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15334 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15335 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15336 i386/x32-avx-linux.xml.
15337
15338 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15339 (init_registers_x32_avx_linux): Likwise.
15340 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15341 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15342
ecedbe58
PA
153432012-04-13 Pedro Alves <palves@redhat.com>
15344
15345 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15346 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15347 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15348 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15349 the sub-make.
15350
c92b5177
L
153512012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15352
15353 * linux-x86-low.c (compat_x32_clock_t): New.
15354 (compat_x32_siginfo_t): Likewise.
15355 (compat_x32_siginfo_from_siginfo): Likewise.
15356 (siginfo_from_compat_x32_siginfo): Likewise.
15357 (linux_is_elf64): Likewise.
15358 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15359 and siginfo_from_compat_x32_siginfo for x32.
15360 (x86_arch_setup): Set linux_is_elf64.
15361
214d508e
L
153622012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15363
15364 PR gdb/13969
15365 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15366 e_machine field.
15367 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15368 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15369 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15370 compatible with process.
15371
c9a1864a
YQ
153722012-04-12 Yao Qi <yao@codesourcery.com>
15373
15374 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15375 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15376 (install-only, install-info, clean): Handle sub dir gnulib.
15377 (all-lib, am--refresh): New targets.
15378 (memmem.o): Remove target.
15379 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15380 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15381 (AC_REPLACE_FUNCS): Remove memmem.
15382 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15383 (AC_OUTPUT): Generate Makefile in gnulib/.
15384 * aclocal.m4, config.in, configure: Regenerated.
15385
367ba2c2
MR
153862012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15387
15388 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15389
9d236627
PA
153902012-04-05 Pedro Alves <palves@redhat.com>
15391
15392 -Werror=strict-aliasing
15393
15394 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15395 pointer.
15396
111217b3
PA
153972012-04-04 Pedro Alves <palves@redhat.com>
15398
15399 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15400 (sparc_store_gregset_from_stack, sparc_store_gregset)
15401 (sparc_breakpoint_at): Fix formatting.
15402
8365dcf5
TJB
154032012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15404
15405 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15406 are available.
15407 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15408 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15409 * config.in: Regenerate.
15410 * configure: Likewise.
15411
689cc2ae
PA
154122012-03-29 Pedro Alves <palves@redhat.com>
15413
15414 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15415 Correct ptrace arguments.
15416
c14dfd32
PA
154172012-03-28 Pedro Alves <palves@redhat.com>
15418
15419 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15420 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15421 (IA64_FR1_REGNUM): New defines.
15422 (ia64_fetch_register): New.
15423 (the_low_target): Install it.
15424 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15425 field.
15426 * linux-low.c (linux_fetch_registers): Try the
15427 the_low_target.fetch_register hook first.
15428
15429 * linux-arm-low.c (the_low_target): Adjust.
15430 * linux-bfin-low.c (the_low_target): Adjust.
15431 * linux-cris-low.c (the_low_target): Adjust.
15432 * linux-crisv32-low.c (the_low_target): Adjust.
15433 * linux-m32r-low.c (the_low_target): Adjust.
15434 * linux-m68k-low.c (the_low_target): Adjust.
15435 * linux-mips-low.c (the_low_target): Adjust.
15436 * linux-ppc-low.c (the_low_target): Adjust.
15437 * linux-s390-low.c (the_low_target): Adjust.
15438 * linux-sh-low.c (the_low_target): Adjust.
15439 * linux-sparc-low.c (the_low_target): Adjust.
15440 * linux-tic6x-low.c (the_low_target): Adjust.
15441 * linux-x86-low.c (the_low_target): Adjust.
15442 * linux-xtensa-low.c (the_low_target): Adjust.
15443
63c88e13
PA
154442012-03-26 Pedro Alves <palves@redhat.com>
15445
15446 * server.c (handle_qxfer_libraries): Don't bail early if
15447 the_target->qxfer_libraries_svr4 is not NULL.
15448
fb723180
PA
154492012-03-26 Pedro Alves <palves@redhat.com>
15450
15451 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15452
0afae3cf
PA
154532012-03-23 Pedro Alves <palves@redhat.com>
15454
15455 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15456 "library-list-svr4" element's start tag when the the DSO list is
15457 empty.
15458
485f1ee4
PA
154592012-03-23 Pedro Alves <palves@redhat.com>
15460
15461 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15462 a variable whose type size is the same as the inferior's pointer
15463 size.
15464
a5362b9a
TS
154652012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15466
15467 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15468 struct siginfo.
15469 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15470 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15471 * linux-low.h: Include <signal.h>.
15472 (struct siginfo): Remove forward declaration.
15473 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15474 struct siginfo.
15475
d226c142
MF
154762012-03-21 Mike Frysinger <vapier@gentoo.org>
15477
15478 * .gitignore: Ignore more files.
15479
122f36ef
PA
154802012-03-19 Pedro Alves <palves@redhat.com>
15481 Jan Kratochvil <jan.kratochvil@redhat.com>
15482
15483 * server.c (cont_thread, general_thread): Add describing comments.
15484 (start_inferior): Clear `cont_thread'.
15485 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15486 of a process.
15487
fc3e5175
YQ
154882012-03-15 Yao Qi <yao@codesourcery.com>
15489
15490 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15491 handling to ...
15492 (cmd_qtdp): ... here.
15493
8d0d92cd
YQ
154942012-03-15 Yao Qi <yao@codesourcery.com>
15495
15496 * tracepoint.c (struct tracepoint_action_ops): New.
15497 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15498 (m_tracepoint_action_download): New.
15499 (r_tracepoint_action_download): New.
15500 (x_tracepoint_action_download): New.
15501 (l_tracepoint_action_download): New.
15502 (add_tracepoint_action): Install `action->ops' according type.
15503 (download_tracepoint_1): Move code `download' function pointer
15504 of various tracepoint_action_ops.
15505
87b0bb13
JK
155062012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15507
15508 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15509 linux_ptrace_attach_warnings.
15510
5f572dec
JK
155112012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15512
15513 * Makefile.in (linux-ptrace.o): New.
15514 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15515 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15516 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15517 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15518 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15519 of these targets.
15520 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15521
f4647387
YQ
155222012-03-08 Yao Qi <yao@codesourcery.com>
15523 Pedro Alves <palves@redhat.com>
15524
15525 Fix PR server/13392.
15526 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15527 offset of JMP insn.
15528 * tracepoint.c (remove_tracepoint): New.
15529 (cmd_qtdp): Call remove_tracepoint when failed to install.
15530
9b224c5e
PA
155312012-03-07 Pedro Alves <palves@redhat.com>
15532
15533 * linux-low.c (get_detach_signal): New.
15534 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15535 Pass on pending signals to PTRACE_DETACH. Check the result of the
15536 ptrace call.
15537 * server.c (program_signals, program_signals_p): New.
15538 (handle_general_set): Handle QProgramSignals.
15539 * server.h (program_signals, program_signals_p): Declare.
15540
e237a7e2
JK
155412012-03-05 Pedro Alves <palves@redhat.com>
15542 Jan Kratochvil <jan.kratochvil@redhat.com>
15543
15544 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15545 New comment why.
15546
5808517f
YQ
155472012-03-03 Yao Qi <yao@codesourcery.com>
15548
15549 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15550 agent_look_up_symbols.
15551
58b4daa5
YQ
155522012-03-03 Yao Qi <yao@codesourcery.com>
15553
15554 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15555 (linux-x86-low.o): Likewise.
15556 * server.h: Remove in_process_agent_loaded.
15557 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15558 common/agent.c.
15559 Update callers.
15560
8ffcbaaf
YQ
155612012-03-03 Yao Qi <yao@codesourcery.com>
15562
15563 * tracepoint.c (gdb_agent_capability): New global.
15564 (in_process_agent_loaded_ust): Renamed to
15565 `in_process_agent_supports_ust'.
15566 Update callers.
15567 (in_process_agent_supports_ust): Call agent_capability_check.
15568 (clear_installed_tracepoints): Assert that agent supports
15569 agent.
15570
d1feda86
YQ
155712012-03-03 Yao Qi <yao@codesourcery.com>
15572
15573 * linux-low.c (linux_supports_agent): New.
15574 (linux_target_ops): Initialize field `supports_agent' with
15575 linux_supports_agent.
15576 * target.h (struct target_ops) <supports_agent>: New.
15577 (target_supports_agent): New macro.
15578 * server.c (handle_general_set): Handle packet 'QAgent'.
15579 (handle_query): Send `QAgent+'.
15580 * Makefile.in (server.o): Depends on agent.h.
15581
2fa291ac
YQ
155822012-03-03 Yao Qi <yao@codesourcery.com>
15583
15584 * Makefile.in (OBS): Add agent.o.
15585 Add new rule for agent.o.
15586 Track dependence of tracepoint.c on agent.h.
15587 * tracepoint.c (run_inferior_command_1):
15588 (run_inferior_command): Call agent_run_command.
15589 (gdb_ust_connect_sync_socket): Deleted. Move it to
15590 common/agent.c.
15591 (resume_thread, stop_thread): Likewise.
15592 (gdb_ust_socket_init): Renamed to ...
15593 (gdb_agent_socket_init): ... New.
15594 (gdb_ust_thread): Renamed to ...
15595 (gdb_agent_helper_thread): ... New.
15596 (gdb_ust_init): Move some code to ...
15597 (gdb_agent_init): ... here. New.
15598 [HAVE_UST]: Call gdb_ust_init.
15599 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15600 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15601 * config.in, configure: Regenerated.
15602
05044653
PA
156032012-03-02 Pedro Alves <palves@redhat.com>
15604
15605 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15606 * linux-low.c (struct simple_pid_list): New.
15607 (stopped_pids): New a struct simple_pid_list pointer.
15608 (add_to_pid_list, pull_pid_from_list): New.
15609 (handle_extended_wait): Don't assume the first signal new children
15610 report is SIGSTOP. Adjust call to pull_pid_from_list.
15611 (linux_wait_for_lwp): Adjust.
15612
8d00225b
YQ
156132012-03-02 Yao Qi <yao@codesourcery.com>
15614
15615 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15616 debug log.
15617
19560ba5
YQ
156182012-03-02 Yao Qi <yao@codesourcery.com>
15619
15620 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15621 `stop_pc' and `tpoint'. Update caller.
15622
1faeff08
MR
156232012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15624
15625 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15626 * linux-low.c (use_linux_regsets): New macro.
15627 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15628 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15629 (linux_register_in_regsets): New function.
15630 (usr_fetch_inferior_registers): Skip registers covered by
15631 regsets.
15632 (usr_store_inferior_registers): Likewise.
15633 (usr_fetch_inferior_registers): New macro.
15634 (usr_store_inferior_registers): Likewise.
15635 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15636 (linux_store_registers): Likewise.
15637 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15638 prototype.
15639 (init_registers_mips64_dsp_linux): Likewise.
15640 (init_registers_mips_linux): New macro.
15641 (init_registers_mips_dsp_linux): Likewise.
15642 (mips_dsp_num_regs): Likewise.
15643 (DSP_BASE, DSP_CONTROL): New fallback macros.
15644 (mips_base_regs): New macro.
15645 (mips_regmap): Use it. Fix the size.
15646 (mips_dsp_regmap): New variable.
15647 (mips_dsp_regset_bitmap): Likewise.
15648 (mips_arch_setup): New function.
15649 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15650 than mips_regmap.
15651 (mips_cannot_store_register): Likewise.
15652 (the_low_target): Update .arch_setup, .num_regs and .regmap
15653 initializers. Add .regset_bitmap initializer.
15654 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15655 initializer.
15656 * linux-bfin-low.c (the_low_target): Likewise.
15657 * linux-cris-low.c (the_low_target): Likewise.
15658 * linux-crisv32-low.c (the_low_target): Likewise.
15659 * linux-ia64-low.c (the_low_target): Likewise.
15660 * linux-m32r-low.c (the_low_target): Likewise.
15661 * linux-m68k-low.c (the_low_target): Likewise.
15662 * linux-ppc-low.c (the_low_target): Likewise.
15663 * linux-s390-low.c (the_low_target): Likewise.
15664 * linux-sh-low.c (the_low_target): Likewise.
15665 * linux-sparc-low.c (the_low_target): Likewise.
15666 * linux-tic6x-low.c (the_low_target): Likewise.
15667 * linux-x86-low.c (the_low_target): Likewise.
15668 * linux-xtensa-low.c (the_low_target): Likewise.
15669 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15670 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15671 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15672 srv_xmlfiles.
15673 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15674 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15675
c03e6ccc
YQ
156762012-02-29 Yao Qi <yao@codesourcery.com>
15677 Pedro Alves <palves@redhat.com>
15678
15679 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15680 `step_over_finished' is true.
15681
644cebc9
PA
156822012-02-27 Pedro Alves <palves@redhat.com>
15683
15684 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15685 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15686
c14d7ab2
PA
156872012-02-27 Pedro Alves <palves@redhat.com>
15688
15689 PR server/9684
15690 * linux-low.c (pid_is_stopped): New.
15691 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15692
412c89dd
LM
156932012-02-25 Luis Machado <lgustavo@codesourcery.com>
15694
15695 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15696 of conditions.
15697
b745defe
MR
156982012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15699
15700 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15701
9f3a5c85
LM
157022012-02-24 Luis Machado <lgustavo@codesourcery>
15703
15704 * server.c (handle_query): Advertise support for target-side
15705 breakpoint condition evaluation.
15706 (process_point_options): New function.
15707 (process_serial_event): When inserting a breakpoint, check for
15708 a target-side condition that should be evaluated.
15709
15710 * mem-break.c: Include regcache.h and ax.h.
15711 (point_cond_list_t): New data structure.
15712 (breakpoint) <cond_list>: New field.
15713 (find_gdb_breakpoint_at): Make non-static.
15714 (delete_gdb_breakpoint_at): Clear any target-side
15715 conditions.
15716 (clear_gdb_breakpoint_conditions): New function.
15717 (add_condition_to_breakpoint): Likewise.
15718 (add_breakpoint_condition): Likewise.
15719 (gdb_condition_true_at_breakpoint): Likewise.
15720 (gdb_breakpoint_here): Return result directly instead
15721 of going through a local variable.
15722
15723 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15724 (clear_gdb_breakpoint_conditions): Likewise.
15725 (add_breakpoint_condition): Likewise.
15726 (gdb_condition_true_at_breakpoint): Likewise.
15727
15728 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15729 (need_step_over_p): Take target-side breakpoint condition into
15730 consideration.
15731
5e1dc496
LM
157322012-02-24 Luis Machado <lgustavo@codesourcery>
15733
15734 * server.h: Include tracepoint.h.
15735 (agent_mem_read, agent_get_trace_state_variable_value,
15736 agent_set_trace_state_variable_value,
15737 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15738 get_set_tsv_func_addr): New prototypes.
15739
15740 * ax.h: New include file.
15741 * ax.c: New source file.
15742
15743 * tracepoint.c: Include ax.h.
15744 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15745 agent_expr, eval_result_type): Move to ax.h.
15746 (parse_agent_expr): Rename to ...
15747 (gdb_parse_agent_expr): ... this, make it non-static and move
15748 to ax.h.
15749 (unparse_agent_expr) Rename to ...
15750 (gdb_unparse_agent_expr): ... this, make it non-static and move
15751 to ax.h.
15752 (eval_agent_expr): Rename to ...
15753 (eval_tracepoint_agent_expr): ... this.
15754 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15755 forward declarations.
15756 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15757 (agent_get_trace_state_variable_value): New function.
15758 (agent_set_trace_state_variable_value): New function.
15759 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15760 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15761 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15762 (condition_true_at_tracepoint): Likewise.
15763 (parse_agent_expr): Rename to ...
15764 (gdb_parse_agent_expr): ... this and move to ax.c.
15765 (unparse_agent_expr): Rename to ...
15766 (gdb_unparse_agent_expr): ... this and move to ax.c.
15767 (gdb_agent_op_name): Move to ax.c.
15768 (eval_agent_expr): Rename to ...
15769 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15770 and move to ax.c.
15771 (eval_tracepoint_agent_expr): New function.
15772 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15773 non-static.
5e1dc496
LM
15774 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15775 ax.c.
15776 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15777 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15778 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15779 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15780 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15781 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15782 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15783 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15784 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15785 (compile_bytecodes): Remove forward declaration.
15786 (is_goto_target): Move to ax.c.
15787 (compile_bytecodes): Move to ax.c and call
15788 agent_get_trace_state_variable_value (...) and
15789 agent_set_trace_state_variable_value (...).
15790
15791 * Makefile.in: Update ax.c and IPA dependencies.
15792
277e4e52
PA
157932012-02-24 Pedro Alves <palves@redhat.com>
15794
15795 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15796 (cmd_bigqtbuffer_circular): ... this. Only handle
15797 'QTBuffer:circular:'.
15798 (handle_tracepoint_general_set): Adjust.
15799
bf4c19f7
YQ
158002012-02-16 Yao Qi <yao@codesourcery.com>
15801
15802 * inferiors.c: Move code to ...
15803 * dll.c: .... here. New.
15804 * server.h: Declare clear_dlls.
15805 * Makefile.in (SFILES): Add dll.c.
15806 (OBS): Add dll.o
15807 (dll.o): New rule.
15808
d73f2619
YQ
158092012-02-11 Yao Qi <yao@codesourcery.com>
15810
15811 * server.c: (handle_monitor_command): Add a new parameter
15812 `own_buf'.
15813 (handle_query): Update caller.
15814
f8255c2a
JB
158152012-02-09 Joel Brobecker <brobecker@adacore.com>
15816
15817 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15818 * configure, config.in: Regenerate.
15819 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15820 is not defined.
15821
da84f473
PA
158222012-02-02 Pedro Alves <palves@redhat.com>
15823
15824 Try SIGKILL first, then PTRACE_KILL.
15825 * linux-low.c (linux_kill_one_lwp): New.
15826 (linux_kill_one_lwp): Rename to ...
15827 (kill_one_lwp_callback): ... this. Use the new
15828 linux_kill_one_lwp.
15829
e886a173
PA
158302012-02-02 Pedro Alves <palves@redhat.com>
15831
15832 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15833 inferior.
15834
be07f1a2
PA
158352012-01-27 Pedro Alves <palves@redhat.com>
15836
15837 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15838 (elf_64_file_p): Make static.
15839 (linux_pid_exe_is_elf_64_file): New.
15840 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15841 Delete declarations.
15842 (linux_pid_exe_is_elf_64_file): Declare.
15843 * linux-x86-low.c (x86_arch_setup): Use
15844 linux_pid_exe_is_elf_64_file.
15845
d8301ad1
JK
158462012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15847
15848 * linux-low.c (linux_wait_for_event_1): Rename to ...
15849 (linux_wait_for_event): ... here and merge it with former
15850 linux_wait_for_event - new variable wait_ptid, use it.
15851 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15852
01b17894
PA
158532012-01-23 Pedro Alves <palves@redhat.com>
15854
15855 * server.c (main): Avoid yet another case of infinite loop while
15856 detaching/killing after a longjmp.
15857
e825046f
JK
158582012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15859
15860 Code cleanup.
15861 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15862
b9e7b9c3
UW
158632012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15864
15865 * hostio.c (handle_readlink): New function.
15866 (handle_vFile): Call it to handle "vFile:readlink" packets.
15867
901f9912
UW
158682012-01-20 Pedro Alves <palves@redhat.com>
15869 Ulrich Weigand <ulrich.weigand@linaro.org>
15870
15871 * server.c (handle_v_requests): Only support vAttach and vRun to
15872 start multiple processes when in extended protocol mode.
15873
fc1ab1a0
PA
158742012-01-17 Pedro Alves <palves@redhat.com>
15875
15876 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15877 memalign plus mprotect to allocate the scratch buffer.
15878
7d5d4e98
PA
158792012-01-13 Pedro Alves <palves@redhat.com>
15880
15881 * server.c (attach_inferior): Clear `cont_thread'.
15882
f128d5e9
PA
158832012-01-13 Pedro Alves <palves@redhat.com>
15884
15885 * server.c (main): Avoid infinite loop while detaching/killing
15886 after a longjmp.
15887
06db92f0
DE
158882012-01-09 Doug Evans <dje@google.com>
15889
15890 * server.c (start_inferior): Set last_ptid in --wrapper case.
15891
32d92999
YQ
158922012-01-06 Yao Qi <yao@codesourcery.com>
15893
15894 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15895 defined.
15896 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15897
5e0a92a9
YQ
158982012-01-04 Yao Qi <yao@codesourcery.com>
15899
15900 * tracepoint.c (cmd_qtdp): Print debug message
15901 for static tracepoint.
15902
ae639e8c
YQ
159032012-01-04 Yao Qi <yao@codesourcery.com>
15904
15905 * tracepoint.c (trace_vdebug): Differentiate debug message
15906 between gdbserver and IPA.
15907
f72429c5
YQ
159082012-01-03 Yao Qi <yao@codesourcery.com>
15909
15910 * tracepoint.c (tracepoint_was_hit): Don't collect for
15911 static tracepoint.
15912
12c3e59c
JB
159132012-01-02 Joel Brobecker <brobecker@adacore.com>
15914
15915 * terminal.h: Reformat copyright header.
15916
67827812
JB
159172012-01-02 Joel Brobecker <brobecker@adacore.com>
15918
15919 * server.c (gdbserver_version): Update copyright year.
15920 * gdbreplay.c (gdbreplay_version): Likewise.
15921
3e52c33d
JK
159222011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15923
15924 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15925
15926 Revert:
15927 2011-12-18 Hui Zhu <teawater@gmail.com>
15928 * linux-low.c (linux_create_inferior): Save return value to ret.
15929
66f1260e
HZ
159302011-12-18 Hui Zhu <teawater@gmail.com>
15931
15932 * linux-low.c (linux_create_inferior): Save return value to ret.
15933
e77616d7
DE
159342011-12-16 Doug Evans <dje@google.com>
15935
e7b06c57
DE
15936 * linux-low.c (linux_create_inferior): If stdio connection,
15937 redirect stdin from /dev/null, stdout to stderr.
15938 * remote-utils.c (remote_is_stdio): New static global.
15939 (remote_connection_is_stdio): New function.
15940 (remote_prepare): Handle stdio connection.
15941 (remote_open): Ditto.
15942 (remote_close): Don't close stdin for stdio connections.
15943 (read_prim,write_prim): New functions. Replace all calls to
15944 read/write to these.
15945 * server.c (main): Watch for "-" argument. Move call to
15946 remote_prepare before start_inferior.
15947 * server.h (STDIO_CONNECTION_NAME): New macro.
15948 (remote_connection_is_stdio): Declare.
15949
e77616d7
DE
15950 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15951 in debugging output.
15952
82067193
YQ
159532011-12-15 Yao Qi <yao@codesourcery.com>
15954
15955 * tracepoint.c: Include sys/syscall.h.
15956 (gdb_ust_thread): Remove preprocessor conditional.
15957
82bfbe7e
PA
159582011-12-14 Pedro Alves <pedro@codesourcery.com>
15959
15960 * linux-low.c (linux_detach_one_lwp): Call
15961 the_low_target.prepare_to_resume before detaching.
15962
712c6575
YQ
159632011-12-14 Yao Qi <yao@codesourcery.com>
15964
15965 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15966 of write.
15967
d54d1edf
YQ
159682011-12-14 Yao Qi <yao@codesourcery.com>
15969
15970 * i386-low.c (i386_low_stopped_data_address): Initialize local
15971 variable `control'.
15972
6210a125
PA
159732011-12-13 Pedro Alves <pedro@codesourcery.com>
15974
15975 PR remote/13492
15976
15977 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15978 DR_CONTROL unless necessary. Extend comments.
15979 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15980 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15981
2ece8244
YQ
159822011-12-13 Yao Qi <yao@codesourcery.com>
15983
15984 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15985 macros.
15986 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15987
784867a5
JK
159882011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15989
15990 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15991 Print new debug message for such case.
15992
6bf36717
JK
159932011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15994
15995 Fix overlapping memcpy.
15996 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15997 the read_inferior_memory transfer.
15998 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15999 write_inferior_memory transfer.
16000 (set_fast_tracepoint_jump): New variable buf. Use it for the
16001 read_inferior_memory and write_inferior_memory transfers.
16002 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16003 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16004 Use it for the write_inferior_memory transfer.
16005 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16006 buffers.
16007
50275556
MR
160082011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16009
16010 * linux-low.c (fetch_register, store_register): Make code
16011 consistent, fix formatting.
16012
7325beb4
MR
160132011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16014
16015 * linux-low.c (usr_store_inferior_registers): Factor out code
16016 to handle individual registers into...
16017 (store_register): ... this new function.
16018
c642a434
UW
160192011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16020
16021 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16022 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16023 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16024 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16025 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16026 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16027 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16028 (srv_xmlfiles): Add new XML files.
16029
16030 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16031 and <sys/uio.h>.
16032 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16033 (init_registers_s390_linux32v1): Add prototype.
16034 (init_registers_s390_linux32v2): Likewise.
16035 (init_registers_s390_linux64v1): Likewise.
16036 (init_registers_s390_linux64v2): Likewise.
16037 (init_registers_s390x_linux64v1): Likewise.
16038 (init_registers_s390x_linux64v2): Likewise.
16039 (s390_num_regs): Increment to 52.
16040 (s390_regmap): Add orig_r2 register.
16041 (s390_num_regs_3264): Increment to 68.
16042 (s390_regmap_3264): Add orig_r2 register.
16043 (s390_collect_ptrace_register): Handle orig_r2 register.
16044 (s390_supply_ptrace_register): Likewise.
16045 (s390_fill_last_break): New function.
16046 (s390_store_last_break): Likewise.
16047 (s390_fill_system_call): New function.
16048 (s390_store_system_call): Likewise.
16049 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16050 register sets.
16051 (s390_check_regset): New function.
16052 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16053 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16054 Update target_regsets for available register sets.
16055
2268b414
JK
160562011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16057 Jan Kratochvil <jan.kratochvil@redhat.com>
16058
16059 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16060 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16061 New.
16062 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16063 * linux-low.h (struct process_info_private): New member r_debug.
16064 * server.c (handle_qxfer_libraries): Call
16065 the_target->qxfer_libraries_svr4.
16066 (handle_qxfer_libraries_svr4): New function.
16067 (qxfer_packets): New entry "libraries-svr4".
16068 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16069 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16070 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16071 PACKET_qXfer_libraries_svr4.
16072
d6db1fab
UW
160732011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16074
16075 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16076 PSW address/mask between 8-byte and 16-byte formats.
16077 (s390_supply_ptrace_register): Likewise.
16078 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16079 basic addressing mode bit.
16080
242f5f1c
SS
160812011-11-24 Stan Shebs <stan@codesourcery.com>
16082
16083 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16084
f196051f
SS
160852011-11-17 Stan Shebs <stan@codesourcery.com>
16086
16087 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16088 (tracing_start_time): New global.
16089 (tracing_stop_time): New global.
16090 (tracing_user_name): New global.
16091 (tracing_notes): New global.
16092 (tracing_stop_note): New global.
16093 (cmd_qtstart): Set traceframe_usage, start_time.
16094 (stop_tracing): Set stop_time.
16095 (cmd_qtstatus): Report additional status.
16096 (cmd_qtp): New function.
16097 (handle_tracepoint_query): Call it.
16098 (cmd_qtnotes): New function.
16099 (handle_tracepoint_general_set): Call it.
16100 (get_timestamp): Rename from tsv_get_timestamp.
16101
405f8e94
SS
161022011-11-14 Stan Shebs <stan@codesourcery.com>
16103 Kwok Cheung Yeung <kcy@codesourcery.com>
16104
16105 * linux-x86-low.c (small_jump_insn): New.
16106 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16107 trampoline and error message, build a trampoline and issue a small
16108 jump instruction to it.
16109 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16110 trampoline and error message.
16111 (x86_get_min_fast_tracepoint_insn_len): New.
16112 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16113 * linux-low.h (struct linux_target_ops): Add arguments to
16114 install_fast_tracepoint_jump_pad operation, add new operation.
16115 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16116 arguments.
16117 (linux_get_min_fast_tracepoint_insn_len): New function.
16118 (linux_target_op): Add new operation.
16119 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16120 (gdb_trampoline_buffer_end): Ditto.
16121 (gdb_trampoline_buffer_error): Ditto.
16122 (struct ipa_sym_addresses): Add fields for new IPA variables.
16123 (symbol_list): Add entries for new IPA variables.
16124 (struct tracepoint): Add fields to hold the address range of the
16125 trampoline used by the tracepoint.
16126 (trampoline_buffer_head): New static variable.
16127 (trampoline_buffer_tail): Ditto.
16128 (claim_trampoline_space): New function.
16129 (have_fast_tracepoint_trampoline_buffer): New function.
16130 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16131 structure.
16132 (install_fast_tracepoint): Ditto, also add error buffer argument.
16133 (cmd_qtminftpilen): New function.
16134 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16135 (fast_tracepoint_from_trampoline_address): New function.
16136 (fast_tracepoint_collecting): Handle trampoline as part of jump
16137 pad space.
16138 (set_trampoline_buffer_space): New function.
16139 (initialize_tracepoint): Initialize new IPA variables.
16140 * target.h (struct target_ops): Add arguments to
16141 install_fast_tracepoint_jump_pad operation, add new
16142 get_min_fast_tracepoint_insn_len operation.
16143 (target_get_min_fast_tracepoint_insn_len): New.
16144 (install_fast_tracepoint_jump_pad): Add arguments.
16145 * server.h (IPA_BUFSIZ): Define.
16146 * linux-i386-ipa.c: Include extra header files.
16147 (initialize_fast_tracepoint_trampoline_buffer): New function.
16148 (initialize_low_tracepoint): Call it.
16149 * server.h (set_trampoline_buffer_space): Declare.
16150 (claim_trampoline_space): Ditto.
16151 (have_fast_tracepoint_trampoline_buffer): Ditto.
16152
1e4d1764
YQ
161532011-11-14 Yao Qi <yao@codesourcery.com>
16154
16155 * server.c (handle_query): Handle InstallInTrace for qSupported.
16156 * tracepoint.c (add_tracepoint): Sort list.
16157 (install_tracepoint, download_tracepoint): New.
16158 (cmd_qtdp): Call them to install and download tracepoints.
16159 (sort_tracepoints): Removed.
16160 (cmd_qtstart): Update.
16161
5c73ff4e
YQ
161622011-11-14 Yao Qi <yao@codesourcery.com>
16163
16164 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16165 * mem-break.h: Declare.
16166 * tracepoint.c (cmd_qtstart): Move some code to ...
16167 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16168 New.
16169 (download_tracepoints): Move some code to ...
16170 (download_tracepoint_1): ... here. New.
16171
86a30030
YQ
161722011-11-08 Yao Qi <yao@codesourcery.com>
16173
16174 * remote-utils.c (relocate_instruction): A comment fix.
16175
8d26e50c
JB
161762011-11-07 Joel Brobecker <brobecker@adacore.com>
16177
16178 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16179 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16180 dr_status_mirror and dr_control_mirror from debug_reg_state.
16181 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16182 (i386_initial_stuff): Remove use of deleted globals.
16183 (i386_get_thread_context, i386_set_thread_context,
16184 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16185 from debug_reg_state.
16186
a59306a3
YQ
161872011-11-05 Yao Qi <yao@codesourcery.com>
16188
16189 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16190 address as TPOINT's.
16191
3065dfb6
SS
161922011-11-02 Stan Shebs <stan@codesourcery.com>
16193
16194 * tracepoint.c (agent_mem_read_string): New function.
16195 (eval_agent_expr): Call it for tracenz.
16196 * server.c (handle_query): Report support for tracenz.
16197
fd0d8c7c
YQ
161982011-11-02 Yao Qi <yao@codesourcery.com>
16199
16200 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16201
609086b1
YQ
162022011-11-02 Yao Qi <yao@codesourcery.com>
16203
16204 * target.h: Fix a typo in comment.
16205
b9fd1791
PA
162062011-10-31 Pedro Alves <pedro@codesourcery.com>
16207
16208 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16209 clobber the breakpoints' shadows with fast tracepoint jumps.
16210 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16211 * target.c (write_inferior_memory): Also pass MYADDR down to
16212 check_mem_write.
16213
03583c20
UW
162142011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16215
16216 * configure.ac: Check support for personality routine.
16217 * configure: Regenerate.
16218 * config.in: Likewise.
16219 * linux-low.c: Include <sys/personality.h>.
16220 Define ADDR_NO_RANDOMIZE if necessary.
16221 (linux_create_inferior): Disable address space randomization when
16222 forking inferior, if requested.
16223 (linux_supports_disable_randomization): New function.
16224 (linux_target_ops): Install it.
16225 * server.h (disable_randomization): Declare.
16226 * server.c (disable_randomization): New global variable.
16227 (handle_general_set): Handle QDisableRandomization.
16228 (handle_query): Likewise for qSupported.
16229 (main): Support --disable-randomization and --no-disable-randomization
16230 command line arguments.
16231 * target.h (struct target_ops): Add supports_disable_randomization.
16232 (target_supports_disable_randomization): New macro.
16233
723b724b
MF
162342011-09-29 Mike Frysinger <vapier@gentoo.org>
16235
16236 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16237 ifdef check.
16238 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16239 [!PT_GETDSBT] (target_loadmap): New definition.
16240 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16241 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16242 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16243 and PT_GETDSBT to LINUX_LOADMAP.
16244 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16245 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16246
55329a5c 162472011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16248
16249 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16250 (arm_linux_hwbp_cap): New static variable.
16251 (arm_linux_get_hwbp_cap): Replace by ...
16252 (arm_linux_init_hwbp_cap): ... this new function.
16253 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16254 (arm_linux_get_hw_watchpoint_count): Likewise.
16255 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16256 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16257 (arm_prepare_to_resume): Use perror_with_name instead of error.
16258
55329a5c 162592011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16260
16261 * linux-arm-low.c: Include <signal.h>.
16262 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16263 (struct arm_linux_hwbp_cap): New data type.
16264 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16265 (struct arm_linux_hw_breakpoint): New data type.
16266 (MAX_BPTS, MAX_WPTS): Define.
16267 (struct arch_process_info, struct arch_lwp_info): New data types.
16268 (arm_linux_get_hwbp_cap): New function.
16269 (arm_linux_get_hw_breakpoint_count): Likewise.
16270 (arm_linux_get_hw_watchpoint_count): Likewise.
16271 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16272 (arm_hwbp_control_initialize): Likewise.
16273 (arm_hwbp_control_is_enabled): Likewise.
16274 (arm_hwbp_control_is_initialized): Likewise.
16275 (arm_hwbp_control_disable): Likewise.
16276 (arm_linux_hw_breakpoint_equal): Likewise.
16277 (arm_linux_hw_point_initialize): Likewise.
16278 (struct update_registers_data): New data structure.
16279 (update_registers_callback: New function.
16280 (arm_insert_point): Likewise.
16281 (arm_remove_point): Likewise.
16282 (arm_stopped_by_watchpoint): Likewise.
16283 (arm_stopped_data_address): Likewise.
16284 (arm_new_process): Likewise.
16285 (arm_new_thread): Likewise.
16286 (arm_prepare_to_resume): Likewise.
16287 (the_low_target): Register arm_insert_point, arm_remove_point,
16288 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16289 arm_new_thread, and arm_prepare_to_resume.
16290
6b9801d4
SS
162912011-09-15 Stan Shebs <stan@codesourcery.com>
16292
16293 * server.h (struct emit_ops): Add compare-goto fields.
16294 * tracepoint.c (gdb_agent_op_sizes): New table.
16295 (emit_eq_goto): New function.
16296 (emit_ne_goto): New function.
16297 (emit_lt_goto): New function.
16298 (emit_le_goto): New function.
16299 (emit_gt_goto): New function.
16300 (emit_ge_goto): New function.
16301 (is_goto_target): New function.
16302 (compile_bytecodes): Recognize special cases of compare-goto
16303 combinations and call specialized emitters for them.
16304 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16305 (amd64_emit_ne_goto): New function.
16306 (amd64_emit_lt_goto): New function.
16307 (amd64_emit_le_goto): New function.
16308 (amd64_emit_gt_goto): New function.
16309 (amd64_emit_ge_goto): New function.
16310 (amd64_emit_ops): Add the new functions.
16311 (i386_emit_eq_goto): New function.
16312 (i386_emit_ne_goto): New function.
16313 (i386_emit_lt_goto): New function.
16314 (i386_emit_le_goto): New function.
16315 (i386_emit_gt_goto): New function.
16316 (i386_emit_ge_goto): New function.
16317 (i386_emit_ops): Add the new functions.
16318
bf15cbda
SS
163192011-09-08 Stan Shebs <stan@codesourcery.com>
16320
16321 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16322 (i386_emit_epilogue): Restore %ebx.
16323
943ca1dd
JZ
163242011-08-31 Jie Zhang <jzhang918@gmail.com>
16325
16326 * server.c (step_thread): Remove definition.
16327 (process_serial_event): Don't handle Hs.
16328 * server.h (step_thread): Remove declaration.
16329 * target.c (set_desired_inferior): Remove use of step_thread.
16330
e3deef73
LM
163312011-08-24 Luis Machado <lgustavo@codesourcery.com>
16332
16333 * linux-low.c: Include linux-procfs.h.
16334 (linux_attach_lwp_1): Update comments.
16335 (linux_attach): Scan for existing threads when attaching to a
16336 process that is the tgid.
16337 * Makefile.in: Update dependencies.
16338
13da1c97
LM
163392011-08-24 Luis Machado <lgustavo@codesourcery.com>
16340
16341 * configure.srv: Add linux-procfs.o dependencies.
16342
881127c9
YQ
163432011-08-14 Yao Qi <yao@codesourcery.com>
16344
16345 * target.h (struct target_ops): Fix indent.
16346 * win32-low.c (win32_target_ops): Fix comment.
16347
58dbd541
YQ
163482011-08-14 Andrew Jenner <andrew@codesourcery.com>
16349 Yao Qi <yao@codesourcery.com>
16350
16351 * Makefile.in (clean): Remove tic6x-*.c files.
16352 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16353 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16354 (tic6x-c64xp-linux.c): Likewise.
16355 * configure.srv: Add support for tic6x-*-uclinux.
16356 * linux-tic6x-low.c: New.
16357 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16358
78d85199
YQ
163592011-08-14 Andrew Stubbs <ams@codesourcery.com>
16360 Yao Qi <yao@codesourcery.com>
16361
16362 * target.h (struct target_ops): Add read_loadmap.
16363 * linux-low.c (struct target_loadseg): New type.
16364 (struct target_loadmap): New type.
16365 (linux_read_loadmap): New function.
16366 (linux_target_ops): Add linux_read_loadmap.
16367 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16368 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16369 to NULL.
78d85199 16370
a959a88d
EZ
163712011-08-05 Eli Zaretskii <eliz@gnu.org>
16372
16373 * win32-low.c: Include <stdint.h>.
16374
1ced966e
PA
163752011-07-22 Pedro Alves <pedro@codesourcery.com>
16376
16377 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16378 to the inferior here.
16379 (i386_remove_aligned_watchpoint): Ditto.
16380 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16381 fit part of the watchpoint in the debug registers.
16382 (i386_update_inferior_debug_regs): New.
16383 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16384 registers, and only update the inferior on success.
16385 (i386_low_remove_watchpoint): Ditto.
16386
d26e3629
KY
163872011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16388
16389 * linux-low.c (compare_ints, unique, list_threads, show_process,
16390 linux_core_of_thread): Delete.
16391 (linux_target_ops): Change linux_core_of_thread to
16392 linux_common_core_of_thread.
16393 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16394 * utils.c (malloc_failure): Change type of argument.
16395 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16396 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16397 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16398 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16399 (IPA_OBJS): Add common-utils-ipa.o.
16400 (ptid_h, linux_osdata_h): New macros.
16401 (server_h): Add common/common-utils.h, common/xml-utils.h,
16402 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16403 common/ptid.h.
16404 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16405 ptid.o, buffer.o): New rules.
16406 (linux-low.o): Add common/linux-osdata.h as a dependency.
16407 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16408 * configure.ac: Add AC_HEADER_DIRENT check.
16409 * config.in: Regenerate.
16410 * configure: Regenerate.
16411 * remote-utils.c (xml_escape_text): Delete.
16412 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16413 buffer_xml_printf): Move to common/buffer.c.
16414 * server.c (main): Remove call to initialize_inferiors.
16415 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16416 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16417 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16418 internal_error, gdb_assert, gdb_assert_fail): Delete.
16419 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16420 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16421 common/buffer.h.
16422 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16423 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16424 initialize_inferiors): Delete.
16425
2275a1a7
PA
164262011-07-20 Pedro Alves <pedro@codesourcery.com>
16427
16428 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16429 symbol error.
16430
0a5b1e09
PA
164312011-05-31 Pedro Alves <pedro@codesourcery.com>
16432
16433 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16434 assertion.
16435 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16436
6938fd34
YQ
164372011-05-26 Yao Qi <yao@codesourcery.com>
16438
16439 * Makefile.in (thread-db.o): Track dependence to
16440 common/gdb_thread_db.h.
16441 * thread-db.c: include gdb_thread_db.h from right place.
16442
b481f9e0
TT
164432011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16444
16445 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16446 __FILE__ and __LINE__ to internal_error.
16447
98a5dd13
DE
164482011-05-13 Doug Evans <dje@google.com>
16449
16450 * thread-db.c (try_thread_db_load_from_sdir): New function.
16451 (try_thread_db_load_from_dir): New function.
16452 (thread_db_load_search): Handle $sdir, ignore $pdir.
16453 Remove trying of system directories if search of
16454 libthread-db-search-path fails, that is now done via $sdir.
16455
d248b706
KY
164562011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16457
16458 * server.c (handle_query): Add EnableDisableTracepoints to the list
16459 of supported features.
43aaf8b6 16460 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16461 tracepoints.
43aaf8b6
PA
16462 (cmd_qtenable_disable): New.
16463 (cmd_qtstart): Install tracepoints even if disabled.
16464 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16465 receiving a QTEnable or QTDisable packet.
16466 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16467 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16468 tracepoints.
16469 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16470
84e578fb
DE
164712011-05-10 Doug Evans <dje@google.com>
16472
16473 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16474
71f55dd8
DE
164752011-05-04 Doug Evans <dje@google.com>
16476
16477 * linux-low.c (linux_join): Skip process lookup.
16478 * spu-low.c (spu_join): Ditto.
16479 * server.c (join_inferiors_callback): Delete.
16480 (process_serial_event): For 'D' packet (detach) call join_inferior
16481 directly.
16482
4d393d60
JM
164832011-05-04 Joseph Myers <joseph@codesourcery.com>
16484
16485 * README: Don't mention xscale*-*-linux*.
16486 * configure.srv (xscale*-*-linux*): Don't handle target.
16487
b00ad6ff
NF
164882011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16489
16490 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16491 casting pointers.
16492 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16493 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16494 (i386_emit_void_call_2): Likewise.
16495
af96c192
YQ
164962011-04-26 Yao Qi <yao@codesourcery.com>
16497
43aaf8b6
PA
16498 * linux-low.c: Move common macros to linux-ptrace.h.
16499 Include linux-ptrace.h.
af96c192
YQ
16500 * Makefile.in (linux_ptrace_h): New.
16501 (linux-low.o): Depends on linux-ptrace.h.
16502
03f2bd59
JK
165032011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16504
16505 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16506 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16507 (remote_prepare): New function with most of the TCP code from ...
16508 (remote_open): ... here. Detect PORT here unconditionally. Move also
16509 setting transport_is_reliable.
16510 * server.c (run_once): New variable.
16511 (gdbserver_usage): Document it.
16512 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16513 the first run if RUN_ONCE.
16514 * server.h (run_once, remote_prepare): New declarations.
16515
7a9dd1b2
TT
165162011-04-19 Tom Tromey <tromey@redhat.com>
16517
16518 * win32-low.c (handle_load_dll): Remove duplicate "the".
16519
81239425
PM
165202011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16521
16522 Remove support for old Cygwin 1.5 versions.
16523 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16524 function to avoid warning.
16525 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16526 warning.
16527
9e0627f1
PM
165282011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16529
16530 * gdbserver/server.h (Macro _): Define it if not available.
16531
588eebee
MS
165322011-03-14 Michael Snyder <msnyder@vmware.com>
16533
348af9f7 16534 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16535
43f70d4c
JB
165362011-03-10 Joel Brobecker <brobecker@adacore.com>
16537
16538 * Makefile.in (maintainer-clean realclean distclean): Remove
16539 "make ... subdir_do" command.
16540
348af9f7
MS
165412011-03-10 Michael Snyder <msnyder@vmware.com>
16542
16543 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16544
16545 * server.c (handle_v_run): Free alloced buffer on early return.
16546
e637a4f5
YQ
165472011-03-09 Yao Qi <yao@codesourcery.com>
16548
16549 Revert:
16550 2011-03-04 Yao Qi <yao@codesourcery.com>
16551
16552 * Makefile.in: Remove GNU make feature --directory.
16553
16554 2011-03-05 Yao Qi <yao@codesourcery.com>
16555
16556 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16557 (subdir_do): New make target. Copied from gdb/Makefile.
16558 (maintainer-clean, realclean, distclean, clean): Call corresponding
16559 make targets in common/Makefile.
16560
16561 2011-02-11 Yao Qi <yao@codesourcery.com>
16562
16563 * configure.ac: Call AC_PROG_RANLIB.
16564 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16565 * configure: Regenerate.
16566
e6edda56
JK
165672011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16568
16569 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16570
e5141119
JB
165712011-03-06 Yao Qi <yao@codesourcery.com>
16572
16573 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16574
64794aa4
JB
165752011-03-05 Yao Qi <yao@codesourcery.com>
16576
16577 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16578 (subdir_do): New make target. Copied from gdb/Makefile.
16579 (maintainer-clean, realclean, distclean, clean): Call corresponding
16580 make targets in common/Makefile.
16581
7a762829
YQ
165822011-03-04 Yao Qi <yao@codesourcery.com>
16583
16584 * Makefile.in: Remove GNU make feature --directory.
16585
348af9f7
MS
165862011-03-04 Michael Snyder <msnyder@vmware.com>
16587
16588 * server.c (queue_stop_reply): Call xmalloc not malloc.
16589
165902011-03-02 Michael Snyder <msnyder@vmware.com>
16591
16592 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16593
9f72fee2
MS
165942011-02-28 Michael Snyder <msnyder@vmware.com>
16595
588eebee
MS
16596 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16597 (cmd_qtframe): Ditto.
16598 (cmd_qtbuffer): Ditto.
16599 (cmd_bigqtbuffer): Ditto.
16600
9f72fee2
MS
16601 * utils.c (decimal2str): Initialize 'width' to nine, then
16602 don't mess with it.
16603
8040bd49
UW
166042011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16605
16606 * hostio.c (require_data): Free *data, not data.
16607
7e52cbd0
JK
166082011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16609
16610 * hostio.c (require_data): Use free, not xfree.
16611
9130f83e
MS
166122011-02-27 Michael Snyder <msnyder@vmware.com>
16613
4b812f4e
MS
16614 * server.c (handle_query): Discard unused value.
16615
9130f83e
MS
16616 * hostio.c (require_data): Free malloc memory before returning
16617 error.
16618
69d37113
MS
166192011-02-26 Michael Snyder <msnyder@vmware.com>
16620
16621 * linux-low.c (list_threads): Call closedir for dirent.
16622
35f5825a
MS
166232011-02-27 Michael Snyder <msnyder@vmware.com>
16624
2a589cef
MS
16625 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16626 a case statement falls through.
16627
0adea5f7
MS
16628 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16629
35f5825a
MS
16630 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16631 in comparison.
16632
238f1c74
MS
166332011-02-26 Michael Snyder <msnyder@vmware.com>
16634
16635 * utils.c (decimal2str): Eliminate dead code and dead param.
16636 (pulongest): Drop dead param from call to decimal2str.
16637 (plongest): Ditto.
16638
633ff500
JB
166392011-02-24 Joel Brobecker <brobecker@adacore.com>
16640
16641 Revert the following patch (not approved yet):
16642 2011-02-21 Hui Zhu <teawater@gmail.com>
16643 * tracepoint.c (tp_printf): New function.
16644 (eval_agent_expr): Handle gdb_agent_op_printf.
16645
f9c6ff72
HZ
166462011-02-21 Hui Zhu <teawater@gmail.com>
16647
16648 * tracepoint.c (tp_printf): New function.
16649 (eval_agent_expr): Handle gdb_agent_op_printf.
16650
94d5e490
TT
166512011-02-18 Tom Tromey <tromey@redhat.com>
16652
16653 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16654 (tracepoint.o): Likewise.
16655 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16656 (gdb_agent_op_names): Likewise.
16657
c7f96d2b
TT
166582011-02-18 Tom Tromey <tromey@redhat.com>
16659
16660 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16661 gdb_agent_op_rot>: New constants.
16662 (gdb_agent_op_names): Add pick and roll.
16663 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16664 cases.
16665
0feedb2c
JK
166662011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16667
16668 * aclocal.m4: Regenerated with aclocal-1.11.1.
16669
b3b9301e
PA
166702011-02-14 Pedro Alves <pedro@codesourcery.com>
16671
16672 * server.c (handle_qxfer_traceframe_info): New.
16673 (qxfer_packets): Register "traceframe-info".
16674 (handle_query): Report support for qXfer:traceframe-info:read+.
16675 * tracepoint.c (match_blocktype): New.
16676 (traceframe_find_block_type): Rename to ...
16677 (traceframe_walk_blocks): ... this. Add callback filter argument,
16678 and use it.
16679 (traceframe_find_block_type): New, reimplemented on top of
16680 traceframe_walk_blocks.
16681 (build_traceframe_info_xml): New.
16682 (traceframe_read_info): New.
16683 * server.h (traceframe_read_info): Declare.
16684
4f3e6fb7
YQ
166852011-02-11 Yao Qi <yao@codesourcery.com>
16686
16687 * configure.ac: Call AC_PROG_RANLIB.
16688 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16689 * configure: Regenerate.
16690
764880b7
PA
166912011-02-07 Pedro Alves <pedro@codesourcery.com>
16692
16693 * server.c (gdb_read_memory): Change return semantics to allow
16694 partial transfers.
16695 (handle_search_memory_1): Adjust.
16696 (process_serial_event) <'m' packet>: Handle partial transfers.
16697 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16698
1c79eb8a
PA
166992011-01-28 Pedro Alves <pedro@codesourcery.com>
16700
16701 * regcache.c (init_register_cache): Initialize
16702 regcache->register_status.
16703 (free_register_cache): Release regcache->register_status.
16704 (regcache_cpy): Copy register_status.
16705 (registers_to_string): Print 'x's for unavailable registers.
16706 (supply_register): Mark the register's status valid or
16707 unavailable, depending on whether a buffer was passed in or not.
16708 (supply_register_zeroed): New.
16709 (supply_regblock): Mark the registers' status valid or
16710 unavailable, depending on whether a buffer was passed in or not.
16711 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16712 (struct regcache): New `register_status' field.
16713 (supply_register_zeroed): Declare.
16714 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16715 supply_register_zeroed, rather than passing a NULL buffer to
16716 supply_register.
16717 * tracepoint.c (fetch_traceframe_registers): Update comment.
16718
85724a0e
PA
167192011-01-28 Pedro Alves <pedro@codesourcery.com>
16720
16721 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16722 buffer explicit.
16723
d08aafef
PA
167242011-01-25 Pedro Alves <pedro@codesourcery.com>
16725
16726 * server.h (decode_xfer_write): Change prototype.
16727 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16728 and don't extract the annex here.
16729 * server.c (decode_xfer_read): Remove `annex' parameter,
16730 and don't extract the annex here.
16731 (decode_xfer): New.
16732 (struct qxfer): New.
16733 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16734 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16735 (handle_qxfer_statictrace): New functions, abstracted out from
16736 handle_query, and made to use the struct qxfer interface.
16737 (handle_threads_qxfer_proper): Rename to ...
16738 (handle_qxfer_threads_proper): ... this.
16739 (handle_threads_qxfer): Rename to ...
16740 (handle_qxfer_threads): ... this. Adjust.
16741 (qxfer_packets): New array.
16742 (handle_qxfer): New function.
16743 (handle_query): Use handle_qxfer.
16744
493e2a69
MS
167452011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16746
16747 * gdbreplay.c: Shorten lines of >= 80 columns.
16748 * linux-low.c: Ditto.
16749 * linux-ppc-low.c: Ditto.
16750 * linux-s390-low.c: Ditto.
16751 * linux-sparc-low.c: Ditto.
16752 * linux-x86-low.c: Ditto.
16753 * linux-xtensa-low.c: Ditto.
16754 * mem-break.c: Ditto.
16755 * nto-low.c: Ditto.
16756 * regcache.h: Ditto.
16757 * remote-utils.c: Ditto.
16758 * server.c: Ditto.
16759 * server.h: Ditto.
16760 * thread-db.c: Ditto.
16761 * tracepoint.c: Ditto.
16762 * utils.c: Ditto.
16763 * win32-low.h: Ditto.
16764
44944448
JB
167652011-01-05 Joel Brobecker <brobecker@adacore.com>
16766
16767 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16768 update.
16769
71ce852c
JB
167702011-01-01 Joel Brobecker <brobecker@adacore.com>
16771
16772 * server.c (gdbserver_version): Update copyright year in version
16773 output.
16774 * gdbreplay.c (gdbreplay_version): Ditto.
16775
eb826dc6
MF
167762010-12-29 Jie Zhang <jie.zhang@analog.com>
16777
16778 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16779 * linux-bfin-low.c: New file.
16780 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16781 PT_DATA_ADDR for BFIN targets.
16782 * Makefile.in (SFILES): Add linux-bfin-low.c.
16783 (clean): Remove reg-bfin.c.
16784 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16785 * README: Mention supported Blackfin targets.
16786
39ab222a
MF
167872010-12-23 Mike Frysinger <vapier@gentoo.org>
16788
16789 * .gitignore: New file.
16790
a1f2ce7d
MF
167912010-11-16 Mike Frysinger <vapier@gentoo.org>
16792
16793 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16794
f474844c
JZ
167952010-10-22 Jie Zhang <jie@codesourcery.com>
16796
16797 * Makefile.in: Add FLAGS_TO_PASS variable.
16798 (install): Remove dependency of install-only and recursively
16799 invoke make for install-only.
16800
f1048712
DE
168012010-10-04 Doug Evans <dje@google.com>
16802
16803 * Makefile.in (uninstall): Use $(DESTDIR).
16804
b53a1623
PA
168052010-09-24 Pedro Alves <pedro@codesourcery.com>
16806
e6ee044d
PA
16807 PR gdb/11842
16808
b53a1623
PA
16809 * linux-x86-low.c (compat_siginfo_from_siginfo)
16810 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16811 si_code is < 0. Check for si_code == SI_TIMER before checking for
16812 si_code < 0.
16813
fa1bd1e4
JB
168142010-09-13 Joel Brobecker <brobecker@adacore.com>
16815
16816 * lynx-i386-low.c: New file.
16817 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16818
47fac8f8
JB
168192010-09-13 Joel Brobecker <brobecker@adacore.com>
16820
16821 * lynx-low.c (ptrace_request_to_str): Remove handling for
16822 request values that have been removed in LynxOS 5.x.
16823
1adfc54d
JB
168242010-09-13 Joel Brobecker <brobecker@adacore.com>
16825
16826 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16827 <ptrace.h>
16828
c2a66c29
NS
168292010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16830
16831 * configure.ac: Add --enable-inprocess-agent option.
16832 * configure: Rebuilt.
16833
32fcada3
YQ
168342010-09-06 Yao Qi <yao@codesourcery.com>
16835
16836 * linux-low.c (linux_kill): Remove unused variable.
16837 (linux_stabilize_threads): Likewise.
16838 * server.c (start_inferior): Likewise.
16839 (queue_stop_reply_callback): Likewise.
16840 * tracepoint.c (do_action_at_tracepoint): Likewise.
16841
0cccb683
YQ
168422010-09-06 Yao Qi <yao@codesourcery.com>
16843
16844 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16845 on return.
16846
423ec54c
JK
168472010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16848
16849 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16850
12ac6819
PA
168512010-09-06 Pedro Alves <pedro@codesourcery.com>
16852
16853 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16854 "$(IPA_DEPFILES)".
16855
8ed54b31
JB
168562010-09-01 Joel Brobecker <brobecker@adacore.com>
16857
16858 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16859 gdbserver/lynx-ppc-low.c: New files.
16860 * Makefile.in (lynx_low_h): New variable.
16861 (lynx-low.o, lynx-ppc-low.o): New rules.
16862 * configure.ac: On LynxOS, link with -lnetinet.
16863 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16864 * configure: regenerate.
16865
bb0116a4
JB
168662010-09-01 Joel Brobecker <brobecker@adacore.com>
16867
16868 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16869 * configure.ac: Add check for vasprintf and vsnprintf.
16870 * configure, config.in: Regenerate.
16871 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16872
a778ab81 168732010-09-01 Joel Brobecker <brobecker@adacore.com>
16874
16875 * gdbreplay.c: Move include of alloca.h up, next to include of
16876 malloc.h.
16877 * server.h: Add include of malloc.h.
16878 * mem-break.c: Remove include of malloc.h.
16879 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16880
8b034a19 168812010-09-01 Joel Brobecker <brobecker@adacore.com>
16882
16883 * Makefile.in (memmem.o): Build with -Wno-error.
16884
168852010-09-01 Joel Brobecker <brobecker@adacore.com>
16886
16887 * utils.c (xsnprintf): Make non-static.
16888 * server.h: Add xsnprintf declaration.
16889 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16890 replace calls to snprintf by calls to xsnprintf throughout.
16891
168922010-09-01 Joel Brobecker <brobecker@adacore.com>
16893
16894 * configure.ac: Add configure check for alloca.
16895 * configure, config.in: Regenerate.
16896 * server.h: Include alloca.h if it exists.
16897 * gdbreplay.c: Include alloca.h if it exists.
16898
1a981360
PA
168992010-08-28 Pedro Alves <pedro@codesourcery.com>
16900
16901 * linux-low.c (__SIGRTMIN): Define if not already defined.
16902 (linux_create_inferior): Check for __ANDROID__ rather than
16903 __SIGRTMIN.
16904 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16905 are already deferred.
16906 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16907 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16908 stopped and already has a pending signal to report.
16909 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16910 a pending signal to report or is moving out of a jump pad.
16911 (linux_init_signals): Check for __ANDROID__ rather than
16912 __SIGRTMIN.
16913
b4d51a55
PA
169142010-08-28 Pedro Alves <pedro@codesourcery.com>
16915
16916 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16917 debug_threads check. Avoid a linear search when not doing debug
16918 output.
16919
ec48365d
PA
169202010-08-27 Pedro Alves <pedro@codesourcery.com>
16921
16922 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16923 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16924 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16925 (process_event): Change local fd's type to gdb_fildes_t.
16926 (create_file_handler): Adjust prototype.
16927 (delete_file_handler): Adjust prototype.
16928 (handle_file_event): Adjust prototype. Use pfildes.
16929 (create_file_event): Adjsut prototype.
16930 * remote-utils.c (remote_desc, listen_desc): Change type to
16931 gdb_fildes_t.
16932 * server.h: New gdb_fildes_t typedef.
16933 [USE_WIN32API]: Include winsock2.h.
16934 (delete_file_handler, add_file_handler): Adjust prototypes.
16935 (pfildes): Declare.
16936 * utils.c (pfildes): New.
16937
854d88f0
PA
169382010-08-27 Pedro Alves <pedro@codesourcery.com>
16939
16940 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16941 * configure: Regenerate.
16942
0146f85b
PA
169432010-08-27 Pedro Alves <pedro@codesourcery.com>
16944
16945 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16946 (linux_done_accessing_memory): ... this.
16947 (linux_target_ops): Adjust.
16948 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16949 * nto-low.c (nto_target_ops): Adjust comment.
16950 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16951 * spu-low.c (spu_target_ops): Adjust comment.
16952 * target.h (target_ops): Rename unprepare_to_access_memory field
16953 to done_accessing_memory.
16954 (unprepare_to_access_memory): Rename to ...
16955 (done_accessing_memory): ... this.
16956
90d74c30
PA
169572010-08-26 Pedro Alves <pedro@codesourcery.com>
16958
16959 * linux-low.c (linux_prepare_to_access_memory): New.
16960 (linux_unprepare_to_access_memory): New.
16961 (linux_target_ops): Install them.
16962 * server.c (read_memory): Rename to ...
16963 (gdb_read_memory): ... this. Use
16964 prepare_to_access_memory/prepare_to_access_memory.
16965 (write_memory): Rename to ...
16966 (gdb_write_memory): ... this. Use
16967 prepare_to_access_memory/prepare_to_access_memory.
16968 (handle_search_memory_1): Adjust.
16969 (process_serial_event): Adjust.
16970 * target.h (struct target_ops): New fields
16971 prepare_to_access_memory and unprepare_to_access_memory.
16972 (prepare_to_access_memory, unprepare_to_access_memory): New.
16973 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16974 prepare_to_access_memory/prepare_to_access_memory.
16975 * nto-low.c (nto_target_ops): Adjust.
16976 * spu-low.c (spu_target_ops): Adjust.
16977 * win32-low.c (win32_target_ops): Adjust.
16978
fd467969
PA
169792010-08-26 Pedro Alves <pedro@codesourcery.com>
16980
16981 * Makefile.in (WARN_CFLAGS): Get it from configure.
16982 (WERROR_CFLAGS): New.
16983 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16984 * configure.ac: Introduce --enable-werror, which adds -Werror to
16985 the compiler command line. Enabled by default. Disable with
16986 --disable-werror. Add -Wdeclaration-after-statement
16987 Wpointer-arith and -Wformat-nonliteral to warning flags.
16988 * configure: Regenerate.
16989
331e2f5f
PA
169902010-08-26 Pedro Alves <pedro@codesourcery.com>
16991
16992 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16993
e581f2b4
PA
169942010-08-26 Pedro Alves <pedro@codesourcery.com>
16995
16996 * gdbreplay.c (remote_error): New.
16997 (gdbchar): New.
16998 (expect): Use gdbchar. Check for error reading from GDB.
16999 Clarify sync error output.
17000 (play): Check for errors writing to GDB.
17001 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17002 * remote-utils.c (getpkt): Check for errors writing to the remote
17003 descriptor.
17004
3c11dd79
PA
170052010-08-25 Pedro Alves <pedro@codesourcery.com>
17006
17007 * linux-low.c (linux_wait_1): Move non-debugging code out of
17008 `debug_threads' control.
17009
d20a8ad9
PA
170102010-08-25 Pedro Alves <pedro@codesourcery.com>
17011
17012 * linux-low.c (linux_wait_1): Don't set last_status here.
17013 * server.c (push_event, queue_stop_reply_callback): Assert we're
17014 not pushing a TARGET_WAITKIND_IGNORE event.
17015 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17016 (myresume, handle_target_event): Set the thread's last_resume_kind
17017 and last_status from the target returned status.
17018
964e4306
PA
170192010-08-25 Pedro Alves <pedro@codesourcery.com>
17020
17021 PR threads/10729
17022
17023 * linux-x86-low.c (update_debug_registers_callback): New.
17024 (i386_dr_low_set_addr): Use it.
17025 (i386_dr_low_get_addr): New.
17026 (i386_dr_low_set_control): Use update_debug_registers_callback.
17027 (i386_dr_low_get_control): New.
17028 (i386_dr_low_get_status): Adjust.
17029 * linux-low.c (linux_stop_lwp): New.
17030 * linux-low.h (linux_stop_lwp): Declare.
17031
17032 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17033 argument instead of a i386_debug_reg_state.
17034 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17035 a i386_debug_reg_state.
17036 (i386_insert_aligned_watchpoint): Adjust.
17037 (i386_remove_aligned_watchpoint): Adjust.
17038 (i386_low_stopped_data_address): Read the debug registers from the
17039 inferior instead of from the mirrors.
17040 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17041 (i386_dr_low_get_addr): Declare.
17042 (i386_dr_low_get_control): Declare.
17043 (i386_dr_low_get_status): Change prototype.
17044
17045 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17046 (i386_dr_low_get_addr): New.
17047 (i386_dr_low_get_control): New.
17048 (i386_dr_low_get_status): Adjust prototype. Return
17049 dr_status_mirror.
17050 (i386_initial_stuff): Clear dr_status_mirror and
17051 dr_control_mirror.
17052 (i386_get_thread_context): Adjust.
17053 (i386_set_thread_context): Adjust.
17054 (i386_thread_added): Adjust.
17055
5f21a75b
PA
170562010-08-24 Pedro Alves <pedro@codesourcery.com>
17057
17058 * linux-low.h (linux_thread_area): Delete declaration.
17059
3e4c1235
TS
170602010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17061
17062 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17063 after its termination.
17064
1971b033
PA
170652010-08-09 Pedro Alves <pedro@codesourcery.com>
17066
17067 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17068 (gdb_wants_all_stopped): Delete.
17069 (linux_wait_1): Don't call them.
17070 * server.c (handle_v_cont): Tag all threads as want-stopped.
17071 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17072 stopped as "client-wants-stopped".
17073
310444ac
PA
170742010-07-31 Pedro Alves <pedro@codesourcery.com>
17075
17076 * Makefile.in (signals_h): New.
17077 (server_h): Depend on it.
17078 (server.o): Don't depend on $(signals_def).
17079 (signals.o): Depend on $(signals_def).
17080
a19cae16
JK
170812010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17082
17083 * Makefile.in (signals_def): New.
17084 (server_h): Append include/gdb/signals.h and signals_def.
17085 (server.o): Append signals_def.
17086
30d50328
JK
170872010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17088
17089 * server.c (handle_target_event): Use target_signal_to_host for
17090 resume_info.sig initialization.
17091 * target.h (struct thread_resume) <sig>: New comment.
17092
5c3216e2
OS
170932010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17094
c6f46ca0
OS
17095 * server.c (handle_query): strcpy() the returned string from paddress()
17096 instead of sprintf().
5c3216e2
OS
17097 * utils.c (paddress): Return phex_nz().
17098
6bd31874
JB
170992010-07-07 Joel Brobecker <brobecker@adacore.com>
17100
17101 * server.c (handle_v_cont): Call mourn_inferior if process
17102 just exited.
17103 (myresume): Likewise.
17104
0fb4aa4b
PA
171052010-07-01 Pedro Alves <pedro@codesourcery.com>
17106
17107 Static tracepoints, and integration with UST.
17108
17109 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17110 * mem-break.c (uninsert_all_breakpoints)
17111 (reinsert_all_breakpoints): New.
17112 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17113 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17114 (gdb_agent_ust_loaded, helper_thread_id)
17115 (gdb_agent_helper_thread_id): New macros.
17116 (struct ipa_sym_addresses): Add addr_ust_loaded,
17117 addr_helper_thread_id, addr_cmd_buf.
17118 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17119 (in_process_agent_loaded_ust): New.
17120 (write_e_ust_not_loaded): New.
17121 (maybe_write_ipa_ust_not_loaded): New.
17122 (struct collect_static_trace_data_action): New.
17123 (enum tracepoint_type) <static_tracepoint>: New.
17124 (struct tracepoint) <handle>: Mention static tracepoints.
17125 (struct static_tracepoint_ctx): New.
17126 (CMD_BUF_SIZE): New.
17127 (add_tracepoint_action): Handle static tracepoint actions.
17128 (unprobe_marker_at): New.
17129 (clear_installed_tracepoints): Handle static tracepoints.
17130 (cmd_qtdp): Handle static tracepoints.
17131 (probe_marker_at): New.
17132 (cmd_qtstart): Handle static tracepoints.
17133 (response_tracepoint): Handle static tracepoints.
17134 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17135 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17136 (get_context_regcache): Handle static tracepoints.
17137 (do_action_at_tracepoint): Handle static tracepoint actions.
17138 (traceframe_find_block_type): Handle static trace data blocks.
17139 (traceframe_read_sdata): New.
17140 (download_tracepoints): Download static tracepoint actions.
17141 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17142 (GDB_PROBE_NAME): New.
17143 (ust_ops): New.
17144 (GET_UST_SYM): New.
17145 (USTF): New.
17146 (dlsym_ust): New.
17147 (ust_marker_to_static_tracepoint): New.
17148 (gdb_probe): New.
17149 (collect_ust_data_at_tracepoint): New.
17150 (gdb_ust_probe): New.
17151 (UNIX_PATH_MAX, SOCK_DIR): New.
17152 (gdb_ust_connect_sync_socket): New.
17153 (resume_thread, stop_thread): New.
17154 (run_inferior_command): New.
17155 (init_named_socket): New.
17156 (gdb_ust_socket_init): New.
17157 (cstr_to_hexstr): New.
17158 (next_st): New.
17159 (first_marker, next_marker): New.
17160 (response_ust_marker): New.
17161 (cmd_qtfstm, cmd_qtsstm): New.
17162 (unprobe_marker_at, probe_marker_at): New.
17163 (cmd_qtstmat, gdb_ust_thread): New.
17164 (gdb_ust_init): New.
17165 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17166 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17167 (ST_REGENTRY): New.
17168 (x86_64_st_collect_regmap): New.
17169 (X86_64_NUM_ST_COLLECT_GREGS): New.
17170 (AMD64_RIP_REGNUM): New.
17171 (supply_static_tracepoint_registers): New.
17172 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17173 (ST_REGENTRY): New.
17174 (i386_st_collect_regmap): New.
17175 (i386_NUM_ST_COLLECT_GREGS): New.
17176 (supply_static_tracepoint_registers): New.
17177 * server.c (handle_query): Handle qXfer:statictrace:read.
17178 <qSupported>: Report support for StaticTracepoints, and
17179 qXfer:statictrace:read features.
17180 * server.h (traceframe_read_sdata)
17181 (supply_static_tracepoint_registers): Declare.
17182 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17183 (unpack_varlen_hex): Include in IPA build.
17184 * Makefile.in (ustlibs, ustinc): New.
17185 (IPA_OBJS): Add remote-utils-ipa.o.
17186 ($(IPA_LIB)): Link -ldl and -lpthread.
17187 (UST_CFLAGS): New.
17188 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17189 * config.in, configure: Regenerate.
17190
9e4344e5
PA
171912010-06-20 Ian Lance Taylor <iant@google.com>
17192 Pedro Alves <pedro@codesourcery.com>
17193
17194 * linux-x86-low.c (always_true): Delete.
17195 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17196 trying to fool the compiler with always_true.
17197
c6beb2cb
PA
171982010-06-20 Pedro Alves <pedro@codesourcery.com>
17199
17200 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17201 conditions in gdbserver.
17202
d2ed6730
UW
172032010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17204
17205 * spu-low.c (spu_read_memory): Wrap around local store limit.
17206 (spu_write_memory): Likewise.
17207
4e29fb54
PA
172082010-06-15 Pedro Alves <pedro@codesourcery.com>
17209
17210 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17211 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17212 LONGEST uses.
17213 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17214 uses.
17215 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17216 uses with LONGEST uses.
17217
6a271cae
PA
172182010-06-14 Stan Shebs <stan@codesourcery.com>
17219 Pedro Alves <pedro@codesourcery.com>
17220
17221 Bytecode compiler.
17222
17223 * linux-x86-low.c: Include limits.h.
17224 (add_insns): New.
17225 (always_true): New.
17226 (EMIT_ASM): New.
17227 (EMIT_ASM32): New.
17228 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17229 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17230 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17231 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17232 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17233 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17234 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17235 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17236 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17237 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17238 (amd64_emit_void_call_2): New.
17239 (amd64_emit_ops): New.
17240 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17241 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17242 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17243 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17244 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17245 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17246 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17247 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17248 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17249 (i386_emit_stack_adjust, i386_emit_int_call_1)
17250 (i386_emit_void_call_2): New.
17251 (i386_emit_ops): New.
17252 (x86_emit_ops): New.
17253 (the_low_target): Install x86_emit_ops.
17254 * server.h (struct emit_ops): New.
17255 (get_raw_reg_func_addr): Declare.
17256 (current_insn_ptr, emit_error): Declare.
17257 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17258 (set_trace_state_variable_value): New defines.
17259 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17260 addr_get_trace_state_variable_value and
17261 addr_set_trace_state_variable_value.
17262 (symbol_list): New fields for get_raw_reg,
17263 get_trace_state_variable_value and set_trace_state_variable_value.
17264 (condfn): New typedef.
17265 (struct tracepoint): New field `compiled_cond'.
17266 (do_action_at_tracepoint): Clear compiled_cond.
17267 (get_trace_state_variable_value, set_trace_state_variable_value):
17268 Export in the IPA.
17269 (condition_true_at_tracepoint): If there's a compiled condition,
17270 run that.
17271 (current_insn_ptr, emit_error): New globals.
17272 (struct bytecode_address): New.
17273 (get_raw_reg_func_addr): New.
17274 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17275 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17276 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17277 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17278 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17279 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17280 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17281 (compile_tracepoint_condition, compile_bytecodes): New.
17282 * target.h (emit_ops): Forward declare.
17283 (struct target_ops): New field emit_ops.
17284 (target_emit_ops): New.
17285 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17286 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17287 * linux-low.c (linux_emit_ops): New.
17288 (linux_target_ops): Install it.
17289 * linux-low.h (struct linux_target_ops): New field emit_ops.
17290
92b72907
UW
172912010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17292
17293 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17294 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17295
fa593d66
PA
172962010-06-01 Pedro Alves <pedro@codesourcery.com>
17297 Stan Shebs <stan@codesourcery.com>
17298
17299 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17300 (all): Depend on $(extra_libraries).
17301 (install-only): Install the IPA.
17302 (IPA_OBJS, IPA_LIB): New.
17303 (clean): Remove the IPA lib.
17304 (IPAGENT_CFLAGS): New.
17305 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17306 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17307 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17308 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17309 * configure.ac: Check for atomic builtins support in the compiler.
17310 (IPA_DEPFILES, extra_libraries): Define.
17311 * configure.srv (ipa_obj): Add description.
17312 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17313 (i[34567]86-*-linux*): Set ipa_obj.
17314 (x86_64-*-linux*): Set ipa_obj.
17315 * linux-low.c (stabilizing_threads): New.
17316 (supports_fast_tracepoints): New.
17317 (linux_detach): Stabilize threads before detaching.
17318 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17319 the lwp is either not stabilizing, or is moving out of a jump pad.
17320 (linux_fast_tracepoint_collecting): New.
17321 (maybe_move_out_of_jump_pad): New.
17322 (enqueue_one_deferred_signal): New.
17323 (dequeue_one_deferred_signal): New.
17324 (linux_wait_for_event_1): If moving out of a jump pad, defer
17325 pending signals to later.
17326 (linux_stabilize_threads): New.
17327 (linux_wait_1): Check if threads need moving out of jump pads, and
17328 do it if so.
17329 (stuck_in_jump_pad_callback): New.
17330 (move_out_of_jump_pad_callback): New.
17331 (lwp_running): New.
17332 (linux_resume_one_lwp): Handle moving out of jump pads.
17333 (linux_set_resume_request): Dequeue deferred signals.
17334 (need_step_over_p): Also step over fast tracepoint jumps.
17335 (start_step_over): Also uninsert fast tracepoint jumps.
17336 (finish_step_over): Also reinsert fast tracepoint jumps.
17337 (linux_install_fast_tracepoint_jump): New.
17338 (linux_target_ops): Install linux_stabilize_threads and
17339 linux_install_fast_tracepoint_jump_pad.
17340 * linux-low.h (linux_target_ops) <get_thread_area,
17341 install_fast_tracepoint_jump_pad>: New fields.
17342 (struct lwp_info) <collecting_fast_tracepoint,
17343 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17344 (linux_get_thread_area): Declare.
17345 * linux-x86-low.c (jump_insn): New.
17346 (x86_get_thread_area): New.
17347 (append_insns): New.
17348 (push_opcode): New.
17349 (amd64_install_fast_tracepoint_jump_pad): New.
17350 (i386_install_fast_tracepoint_jump_pad): New.
17351 (x86_install_fast_tracepoint_jump_pad): New.
17352 (the_low_target): Install x86_get_thread_area and
17353 x86_install_fast_tracepoint_jump_pad.
17354 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17355 (struct fast_tracepoint_jump): New.
17356 (fast_tracepoint_jump_insn): New.
17357 (fast_tracepoint_jump_shadow): New.
17358 (find_fast_tracepoint_jump_at): New.
17359 (fast_tracepoint_jump_here): New.
17360 (delete_fast_tracepoint_jump): New.
17361 (set_fast_tracepoint_jump): New.
17362 (uninsert_fast_tracepoint_jumps_at): New.
17363 (reinsert_fast_tracepoint_jumps_at): New.
17364 (set_breakpoint_at): Use write_inferior_memory.
17365 (uninsert_raw_breakpoint): Use write_inferior_memory.
17366 (check_mem_read): Mask out fast tracepoint jumps.
17367 (check_mem_write): Mask out fast tracepoint jumps.
17368 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17369 (set_fast_tracepoint_jump): Declare.
17370 (delete_fast_tracepoint_jump)
17371 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17372 (reinsert_fast_tracepoint_jumps_at): Declare.
17373 * regcache.c: Don't compile many functions when building the
17374 in-process agent library.
17375 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17376 the register buffer in the heap.
17377 (free_register_cache): If the register buffer isn't owned by the
17378 regcache, don't free it.
17379 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17380 pre-existing register caches.
17381 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17382 type.
17383 (convert_ascii_to_int): : Constify `from' parameter type.
17384 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17385 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17386 the needed buffer in-place.
17387 (relocate_instruction): New.
17388 * server.c (handle_query) <qSymbols>: If the target supports
17389 tracepoints, give it a chance of looking up symbols. Report
17390 support for fast tracepoints.
17391 (handle_status): Stabilize threads.
17392 (process_serial_event): Adjust.
17393 * server.h (struct fast_tracepoint_jump): Forward declare.
17394 (struct process_info) <fast_tracepoint_jumps>: New field.
17395 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17396 (decode_X_packet, decode_M_packet): Adjust.
17397 (relocate_instruction): Declare.
17398 (in_process_agent_loaded): Declare.
17399 (tracepoint_look_up_symbols): Declare.
17400 (struct fast_tpoint_collect_status): Declare.
17401 (fast_tracepoint_collecting): Declare.
17402 (force_unlock_trace_buffer): Declare.
17403 (handle_tracepoint_bkpts): Declare.
17404 (initialize_low_tracepoint)
17405 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17406 * target.h (struct target_ops) <stabilize_threads,
17407 install_fast_tracepoint_jump_pad>: New fields.
17408 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17409 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17410 [HAVE_STDINT_H]: Include stdint.h.
17411 (trace_debug_1): Rename to ...
17412 (trace_vdebug): ... this.
17413 (trace_debug): Rename to ...
17414 (trace_debug_1): ... this. Add `level' parameter.
17415 (trace_debug): New.
17416 (ATTR_USED, ATTR_NOINLINE): New.
17417 (IP_AGENT_EXPORT): New.
17418 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17419 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17420 (about_to_request_buffer_space, trace_buffer_is_full)
17421 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17422 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17423 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17424 (traceframe_write_count, traceframes_created)
17425 (trace_state_variables)
17426 New renaming defines.
17427 (struct ipa_sym_addresses): New.
17428 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17429 (symbol_list): New.
17430 (ipa_sym_addrs): New.
17431 (all_tracepoint_symbols_looked_up): New.
17432 (in_process_agent_loaded): New.
17433 (write_e_ipa_not_loaded): New.
17434 (maybe_write_ipa_not_loaded): New.
17435 (tracepoint_look_up_symbols): New.
17436 (debug_threads) [IN_PROCESS_AGENT]: New.
17437 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17438 (UNKNOWN_SIDE_EFFECTS): New.
17439 (stop_tracing): New.
17440 (flush_trace_buffer): New.
17441 (stop_tracing_bkpt): New.
17442 (flush_trace_buffer_bkpt): New.
17443 (read_inferior_integer): New.
17444 (read_inferior_uinteger): New.
17445 (read_inferior_data_pointer): New.
17446 (write_inferior_data_pointer): New.
17447 (write_inferior_integer): New.
17448 (write_inferior_uinteger): New.
17449 (struct collect_static_trace_data_action): Delete.
17450 (enum tracepoint_type): New.
17451 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17452 <actions_str, step_actions, step_actions_str>: Only include in
17453 GDBserver.
fa593d66
PA
17454 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17455 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17456 (tracepoints): Use IP_AGENT_EXPORT.
17457 (last_tracepoint): Don't include in the IPA.
17458 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17459 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17460 (alloced_trace_state_variables): New.
17461 (trace_state_variables): Use IP_AGENT_EXPORT.
17462 (traceframe_t): Delete unused variable.
17463 (circular_trace_buffer): Don't include in the IPA.
17464 (trace_buffer_start): Delete.
17465 (struct trace_buffer_control): New.
17466 (trace_buffer_free): Delete.
17467 (struct ipa_trace_buffer_control): New.
17468 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17469 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17470 New.
17471 (trace_buffer_ctrl): New.
17472 (TRACE_BUFFER_CTRL_CURR): New.
17473 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17474 Reimplement as macros.
17475 (trace_buffer_wrap): Delete.
17476 (traceframe_write_count, traceframe_read_count)
17477 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17478 (struct tracepoint_hit_ctx) <type>: New field.
17479 (struct fast_tracepoint_ctx): New.
17480 (memory_barrier): New.
17481 (cmpxchg): New.
17482 (record_tracepoint_error): Update atomically in the IPA.
17483 (clear_inferior_trace_buffer): New.
17484 (about_to_request_buffer_space): New.
17485 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17486 updating the same buffer.
17487 (add_tracepoint): Default the tracepoint's type to trap
17488 tracepoint, and orig_size to -1.
17489 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17490 internal variables.
17491 (create_trace_state_variable): New parameter `gdb'. Handle it.
17492 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17493 (cmd_qtdp): Handle fast tracepoints.
17494 (cmd_qtdv): Adjust.
17495 (max_jump_pad_size): New.
17496 (gdb_jump_pad_head): New.
17497 (get_jump_space_head): New.
17498 (claim_jump_space): New.
17499 (sort_tracepoints): New.
17500 (MAX_JUMP_SIZE): New.
17501 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17502 IPA.
17503 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17504 support. Upload fast traceframes, and delete internal IPA
17505 breakpoints.
17506 (stop_tracing_handler): New.
17507 (flush_trace_buffer_handler): New.
17508 (cmd_qtstop): Upload fast tracepoints.
17509 (response_tracepoint): Handle fast tracepoints.
17510 (tracepoint_finished_step): Upload fast traceframes. Set the
17511 tracepoint hit context's tracepoint type.
17512 (handle_tracepoint_bkpts): New.
17513 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17514 type. Add comment about fast tracepoints.
17515 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17516 non-existing action_str field.
17517 (get_context_regcache): Handle fast tracepoints.
17518 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17519 to the regcache.
17520 (fast_tracepoint_from_jump_pad_address): New.
17521 (fast_tracepoint_from_ipa_tpoint_address): New.
17522 (collecting_t): New.
17523 (force_unlock_trace_buffer): New.
17524 (fast_tracepoint_collecting): New.
17525 (collecting): New.
17526 (gdb_collect): New.
17527 (write_inferior_data_ptr): New.
17528 (target_tp_heap): New.
17529 (target_malloc): New.
17530 (download_agent_expr): New.
17531 (UALIGN): New.
17532 (download_tracepoints): New.
17533 (download_trace_state_variables): New.
17534 (upload_fast_traceframes): New.
17535 (IPA_FIRST_TRACEFRAME): New.
17536 (IPA_NEXT_TRACEFRAME_1): New.
17537 (IPA_NEXT_TRACEFRAME): New.
17538 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17539 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17540 (gdb_jump_pad_buffer_end): New.
17541 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17542 (initialize_tracepoint): Adjust.
17543 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17544 buffer. Initialize the low module.
17545 * utils.c (PREFIX, TOOLNAME): New.
17546 (malloc_failure): Use PREFIX.
17547 (error): In the IPA, an error causes an exit.
17548 (fatal, warning): Use PREFIX.
17549 (internal_error): Use TOOLNAME.
17550 (NUMCELLS): Increase to 10.
17551 * configure, config.in: Regenerate.
17552
d149dd1d
PA
175532010-06-01 Pedro Alves <pedro@codesourcery.com>
17554
17555 * server.c (handle_query) <qSupported>: Do two passes over the
17556 qSupported string to avoid nesting strtok.
17557
f6528abd
JK
175582010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17559
17560 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17561 (CDEPS): New.
17562 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17563 -Wl,--dynamic-list.
17564 * configure: Regenerate.
17565 * proc-service.list: New.
17566
ca2a87a0
JK
175672010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17568
17569 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17570 New comment.
17571
363a6e9f
OS
175722010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17573
17574 * gdbreplay.c (remote_open): Check error return from socket() call by
17575 its equality to -1 not by it being negative.
17576 * remote-utils.c (remote_open): Likewise.
17577
d23b6cb1
PA
175782010-05-23 Pedro Alves <pedro@codesourcery.com>
17579
17580 * config.h: Regenerate.
17581
28d3cf85
MK
175822010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17583
17584 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17585 doesn't provide PTRACE_GET_THREAD_AREA.
17586
fea36a59
MK
175872010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17588
17589 * linux-m68k-low.c: Include <asm/ptrace.h>
17590 (ps_get_thread_area): Implement.
17591
24b066ba
DE
175922010-05-03 Doug Evans <dje@google.com>
17593
17594 * event-loop.c (struct callback_event): New struct.
17595 (callback_list): New global.
17596 (append_callback_event, delete_callback_event): New functions.
17597 (process_callback): New function.
17598 (start_event_loop): Call it.
17599 * remote-utils.c (NOT_SCHEDULED): Define.
17600 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17601 moved out of readchar.
17602 (readchar): Rewrite. Call reschedule before returning.
17603 (reset_readchar): New function.
17604 (remote_close): Call it.
17605 (process_remaining, reschedule): New functions.
17606 * server.h (callback_handler_func): New typedef.
17607 (append_callback_event, delete_callback_event): Declare.
17608
9836d6ea
PA
176092010-05-03 Pedro Alves <pedro@codesourcery.com>
17610
17611 * proc-service.c (ps_pglobal_lookup): Use
17612 thread_db_look_up_one_symbol.
17613 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17614 parameter. Use it instead of all_symbols_looked_up.
17615 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17616 field.
17617 (all_symbols_looked_up): Don't declare.
17618 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17619 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17620 field.
17621 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17622 Set all_symbols_looked_up here.
17623 (thread_db_look_up_one_symbol): New.
17624 (thread_db_get_tls_address): Adjust.
17625 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17626 thread_db object on the heap, and tentatively set it in the
17627 process structure.
17628 (thread_db_init): Don't set all_symbols_looked_up here.
17629 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17630
7984d532
PA
176312010-05-03 Pedro Alves <pedro@codesourcery.com>
17632
17633 * linux-low.c (linux_kill, linux_detach): Adjust.
17634 (status_pending_p_callback): Remove redundant statement. Check
17635 for !TARGET_WAITIKIND_IGNORE, instead of
17636 TARGET_WAITKIND_STOPPED.
17637 (handle_tracepoints): Make sure LWP is locked. Adjust.
17638 (linux_wait_for_event_1): Adjust.
17639 (linux_cancel_breakpoints): New.
17640 (unsuspend_one_lwp): New.
17641 (unsuspend_all_lwps): New.
17642 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17643 (send_sigstop_callback): Change return type to int, add new
17644 `except' parameter and handle it.
17645 (suspend_and_send_sigstop_callback): New.
17646 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17647 pass them down. If SUSPEND, also increment the lwp's suspend
17648 count.
17649 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17650 (need_step_over_p): Don't consider suspended LWPs.
17651 (start_step_over): Adjust.
17652 (proceed_one_lwp): Change return type to int, add new `except'
17653 parameter and handle it.
17654 (unsuspend_and_proceed_one_lwp): New.
17655 (proceed_all_lwps): Use find_inferior instead of
17656 for_each_inferior.
17657 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17658 also decrement the suspend count of LWPs. Pass `except' down,
17659 instead of hacking its suspend count.
17660 (linux_pause_all): Add `freeze' parameter. Adjust.
17661 (linux_unpause_all): New.
17662 (linux_target_ops): Install linux_unpause_all.
17663 * server.c (handle_status): Adjust.
17664 * target.h (struct target_ops): New fields `unpause_all' and
17665 `cancel_breakpoints'. Add new parameter to `pause_all'.
17666 (pause_all): Add new `freeze' parameter.
17667 (unpause_all): New.
17668 (cancel_breakpoints): New.
17669 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17670 cancel breakpoints.
17671 (cmd_qtstart): Pause threads.
17672 (stop_tracing): Pause threads, and cancel breakpoints.
17673 * win32-low.c (win32_target_ops): Adjust.
17674
e471f25b
PA
176752010-05-03 Pedro Alves <pedro@codesourcery.com>
17676
17677 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17678 the inferior right away from here...
17679 (linux_wait_1): ... to here, and adjust to check the thread's
17680 last_resume_kind instead of the lwp's step or stop_expected flags.
17681
1915ef4f
PA
176822010-05-02 Pedro Alves <pedro@codesourcery.com>
17683
17684 * README: Use consistent `GDB' and `GDBserver' spellings.
17685
f9e39928
PA
176862010-05-02 Pedro Alves <pedro@codesourcery.com>
17687
17688 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17689 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17690 (linux_detach_one_lwp): Assume the lwp is stopped.
17691 (any_thread_of): Delete.
17692 (linux_detach): Stop all lwps here. Don't blindly delete all
17693 breakpoints.
17694 (delete_lwp_callback): New.
17695 (linux_mourn): Delete all lwps of the process that is gone.
17696 (linux_wait_1): Don't delete the last lwp of the process here.
17697 * mem-break.h (mark_breakpoints_out): Declare.
17698 * mem-break.c (mark_breakpoints_out): New.
17699 (free_all_breakpoints): Use it.
17700 * server.c (handle_target_event): If the process is gone, mark
17701 breakpoints out.
17702 * thread-db.c (struct thread_db) <create_bp>: New field.
17703 (thread_db_enable_reporting): Fix prototype. Store a thread event
17704 breakpoint reference in the thread_db struct.
17705 (thread_db_load_search): Clear the thread_db object.
17706 (try_thread_db_load_1): Ditto.
17707 (switch_to_process): New.
17708 (disable_thread_event_reporting): Use it.
17709 (remove_thread_event_breakpoints): New.
17710 (thread_db_detach, thread_db_mourn): Use it.
17711
1e7fc18c
PA
177122010-05-01 Pedro Alves <pedro@codesourcery.com>
17713
17714 * linux-low.c (linux_enable_event_reporting): New.
17715 (linux_wait_for_event_1, handle_extended_wait): Use it.
17716
02fc4de7
PA
177172010-04-30 Pedro Alves <pedro@codesourcery.com>
17718
17719 * linux-low.c (linux_kill_one_lwp, linux_kill)
17720 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17721 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17722 SIGSTOP even if the LWP is stopped.
17723 (send_sigstop_callback): New.
17724 (stop_all_lwps): Use send_sigstop_callback instead.
17725 (linux_resume_one_thread): Adjust.
17726 (proceed_one_lwp): Still proceed an LWP that the client has
17727 requested to stop, if we haven't reported it as stopped yet. Make
17728 sure that LWPs the client want stopped, have a pending SIGSTOP.
17729
bc3b5632
DE
177302010-04-26 Doug Evans <dje@google.com>
17731
ae1ada35
DE
17732 * server.c (handle_general_set): Make static.
17733
bc3b5632
DE
17734 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17735 Print received char after testing for error/eof instead of before.
17736 (input_interrupt): Tweak comment.
17737
65730243
DE
177382010-04-23 Doug Evans <dje@google.com>
17739
17740 * server.c (start_inferior): Print inferior argv if --debug.
17741
a8ae7dc0
AR
177422010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17743
17744 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17745 * nto-x86-low.c: Include server.h
17746
1c07cc19
PM
177472010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17748
17749 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17750 be consistent with other sources of this directory.
17751 (init_registers_amd64): Correct name of source file of this function
17752 in the comment.
17753
e0a61e09
PM
177542010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17755
17756 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17757 64-bit executables.
17758
54709339
PM
177592010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17760
17761 * win32-i386-low.c: Add 64-bit support.
17762 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17763 (init_registers_amd64): Declare.
17764 (mappings): Add 64-bit version of array.
17765 (init_windows_x86): New function.
17766 (the_low_target): Change init_arch field to init_windows_x86.
17767
e8f0053d
PM
177682010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17769
17770 * win32-low.c: Adapt to support also 64-bit architecture.
17771 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17772 (get_image_name): Use SIZE_T type for local variable `done'.
17773 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17774 (toolhelp_get_dll_name): Idem.
17775 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17776 Use uintptr_t typecast to avoid warning.
17777 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17778 (handle_exception): Use phex_nz to avoid warning.
17779 (win32_wait): Remove unused local variable `process'.
17780
c481e77e
PM
177812010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17782
17783 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17784 `amd64-avx.o'.
17785
12ea4b69
PM
177862010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17787
17788 * configure.ac: Use `ws2_32' library for srv_mingw.
17789 * configure: Regenerate.
17790 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17791 * remote-utils.c: Likewise.
17792
f6d1620c
L
177932010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17794
17795 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17796 if __x86_64__ is defined.
17797
8e642873
PM
177982010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17799
17800 * configure: Regenerate.
17801
711e434b
PM
178022010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17803
17804 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17805 * target.h (target_ops): New get_tib_address field.
17806 * win32-low.h (win32_thread_info): Add thread_local_base field.
17807 * win32-low.c (child_add_thread): Add tlb argument.
17808 Set thread_local_base field to TLB.
17809 (get_child_debug_event): Adapt to child_add_thread change.
17810 (win32_get_tib_address): New function.
17811 (win32_target_ops): Set get_tib_address field to
17812 win32_get_tib_address.
17813 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17814
505106cd
PA
178152010-04-12 Pedro Alves <pedro@codesourcery.com>
17816
505106cd
PA
17817 * linux-low.c (linux_mourn): Also remove the process.
17818 * server.c (handle_target_event): Don't remove the process here.
17819 * nto-low.c (nto_mourn): New.
17820 (nto_target_ops): Install it.
17821 * spu-low.c (spu_mourn): New.
17822 (spu_target_ops): Install it.
17823 * win32-low.c (win32_mourn): New.
17824 (win32_target_ops): Install it.
17825
e8470a06
PA
178262010-04-12 Pedro Alves <pedro@codesourcery.com>
17827
17828 * server.h (buffer_xml_printf): Remove redundant `;'.
17829
45ba0d02
PA
178302010-04-12 Pedro Alves <pedro@codesourcery.com>
17831
17832 * regcache.c (set_register_cache): Invalidate regcaches before
17833 changing the register cache layout.
17834 (regcache_invalidate_one): Allow a NULL regcache.
17835 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17836 regcaches before changing the register cache layout or the target
17837 regsets.
17838
59e04013
L
178392010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17840
17841 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17842 variable warning on Linux/x86-64.
17843
8336d594
PA
178442010-04-11 Pedro Alves <pedro@codesourcery.com>
17845
17846 GDBserver disconnected tracing support.
17847
17848 * linux-low.c (linux_remove_process): Delete.
17849 (add_lwp): Don't set last_resume_kind here.
17850 (linux_kill): Use `mourn'.
17851 (linux_detach): Use `thread_db_detach', and `mourn'.
17852 (linux_mourn): New.
17853 (linux_attach_lwp_1): Adjust comment.
17854 (linux_attach): last_resume_kind moved the thread_info; adjust.
17855 (status_pending_p_callback): Adjust.
17856 (linux_wait_for_event_1): Adjust.
17857 (count_events_callback, select_singlestep_lwp_callback)
17858 (select_event_lwp_callback, cancel_breakpoints_callback)
17859 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17860 (proceed_one_lwp): Adjust.
17861 (linux_async): Add debug output.
17862 (linux_thread_stopped): New.
17863 (linux_pause_all): New.
17864 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17865 linux_pause_all.
17866 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17867 (thread_db_free): Delete declaration.
17868 (thread_db_detach, thread_db_mourn): Declare.
17869 * thread-db.c (thread_db_init): Use thread_db_mourn.
17870 (thread_db_free): Delete, split in two.
17871 (disable_thread_event_reporting): New.
17872 (thread_db_detach): New.
17873 (thread_db_mourn): New.
17874
17875 * server.h (struct thread_info) <last_resume_kind>: New field.
17876 <attached>: Add comment.
17877 <gdb_detached>: New field.
17878 (handler_func): Change return type to int.
17879 (handle_serial_event, handle_target_event): Ditto.
17880 (gdb_connected): Declare.
17881 (tracing): Delete.
17882 (disconnected_tracing): Declare.
17883 (stop_tracing): Declare.
17884
17885 * server.c (handle_query) <qSupported>: Report support for
17886 disconnected tracing.
17887 (queue_stop_reply_callback): Account for running threads.
17888 (gdb_wants_thread_stopped): New.
17889 (gdb_wants_all_threads_stopped): New.
17890 (gdb_reattached_process): New.
17891 (handle_status): Clear the `gdb_detached' flag of all processes.
17892 In all-stop, stop all threads.
17893 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17894 (process_serial_event): If the remote connection breaks, or if an
17895 exit was forced with "monitor exit", force an event loop exit.
17896 Handle disconnected tracing on detach.
17897 (handle_serial_event): Adjust.
17898 (handle_target_event): If GDB isn't connected, forward events back
17899 to the inferior, unless the last process exited, in which case,
17900 exit gdbserver. Adjust interface.
17901
17902 * remote-utils.c (remote_open): Don't block in accept. Instead
17903 register an event loop source on the listen socket file
17904 descriptor. Refactor bits into ...
17905 (listen_desc): ... this new global.
17906 (gdb_connected): ... this new function.
17907 (enable_async_notification): ... this new function.
17908 (handle_accept_event): ... this new function.
17909 (remote_close): Clear remote_desc.
17910
17911 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17912
17913 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17914 New fields.
17915 (mourn_inferior): Define.
17916 (target_process_qsupported): Avoid the dangling else problem.
17917 (thread_stopped): Define.
17918 (pause_all): Define.
17919 (target_waitstatus_to_string): Declare.
17920 * target.c (target_waitstatus_to_string): New.
17921
17922 * tracepoint.c (tracing): Make extern.
17923 (disconnected_tracing): New.
17924 (stop_tracing): Make extern. Handle tracing stops due to GDB
17925 disconnecting.
17926 (cmd_qtdisconnected): New.
17927 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17928 (handle_tracepoint_general_set): Handle QTDisconnected.
17929
17930 * event-loop.c (event_handler_func): Change return type to int.
17931 (process_event): Bail out if the event handler wants the event
17932 loop to stop.
17933 (handle_file_event): Ditto.
17934 (start_event_loop): Bail out if the event handler wants the event
17935 loop to stop.
17936
17937 * nto-low.c (nto_target_ops): Adjust.
17938 * spu-low.c (spu_wait): Don't remove the process here.
17939 (spu_target_ops): Adjust.
17940 * win32-low.c (win32_wait): Don't remove the process here.
17941 (win32_target_ops): Adjust.
17942
5d267c4c
PA
179432010-04-11 Pedro Alves <pedro@codesourcery.com>
17944
17945 * regcache.c (realloc_register_cache): Invalidate inferior's
17946 regcache before recreating it.
17947
623ccd72
PA
179482010-04-09 Pedro Alves <pedro@codesourcery.com>
17949
17950 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17951
219f2f23
PA
179522010-04-09 Stan Shebs <stan@codesourcery.com>
17953 Pedro Alves <pedro@codesourcery.com>
17954
17955 * server.h (LONGEST): New.
17956 (struct thread_info) <while_stepping>: New field.
17957 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17958 Declare.
17959 (initialize_tracepoint, handle_tracepoint_general_set)
17960 (handle_tracepoint_query, tracepoint_finished_step)
17961 (tracepoint_was_hit, release_while_stepping_state_list):
17962 (current_traceframe): Declare.
17963 * server.c (handle_general_set): Handle tracepoint packets.
17964 (read_memory): New.
17965 (write_memory): New.
17966 (handle_search_memory_1): Use read_memory.
17967 (handle_query): Report support for conditional tracepoints, trace
17968 state variables, and tracepoint sources. Handle tracepoint
17969 queries.
17970 (main): Initialize the tracepoints module.
17971 (process_serial_event): Handle traceframe reads/writes.
17972
17973 * linux-low.c (handle_tracepoints): New.
17974 (linux_wait_1): Call it.
17975 (linux_resume_one_lwp): Handle while-stepping.
17976 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17977 (linux_target_ops): Install them.
17978 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17979 New field.
17980 * linux-x86-low.c (x86_supports_tracepoints): New.
17981 (the_low_target). Install it.
17982
17983 * mem-break.h (delete_breakpoint): Declare.
17984 * mem-break.c (delete_breakpoint): Make external.
17985
17986 * target.h (struct target_ops): Add `supports_tracepoints',
17987 `read_pc', and `write_pc' fields.
17988 (target_supports_tracepoints): Define.
17989 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17990 (phex_nz): New.
17991
17992 * regcache.h (struct regcache) <registers_owned>: New field.
17993 (init_register_cache, regcache_cpy): Declare.
17994 (regcache_read_pc, regcache_write_pc): Declare.
17995 (register_cache_size): Declare.
17996 (supply_regblock): Declare.
17997 * regcache.c (init_register_cache): New.
17998 (new_register_cache): Use it.
17999 (regcache_cpy): New.
18000 (register_cache_size): New.
18001 (supply_regblock): New.
18002 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18003
219f2f23
PA
18004 * tracepoint.c: New.
18005
18006 * Makefile.in (OBS): Add tracepoint.o.
18007 (tracepoint.o): New rule.
18008
3a13a53b
L
180092010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18010
18011 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18012 (i386-mmx.o): New.
18013 (i386-mmx.c): Likewise.
18014 (i386-mmx-linux.o): Likewise.
18015 (i386-mmx-linux.c): Likewise.
18016
18017 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18018 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18019 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18020 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18021
18022 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18023 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18024 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18025
1570b33e
L
180262010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18027
18028 * Makefile.in (clean): Updated.
18029 (i386-avx.o): New.
18030 (i386-avx.c): Likewise.
18031 (i386-avx-linux.o): Likewise.
18032 (i386-avx-linux.c): Likewise.
18033 (amd64-avx.o): Likewise.
18034 (amd64-avx.c): Likewise.
18035 (amd64-avx-linux.o): Likewise.
18036 (amd64-avx-linux.c): Likewise.
18037
18038 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18039 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18040 (srv_amd64_regobj): Add amd64-avx.o.
18041 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18042 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18043 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18044 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18045 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18046 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18047 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18048
18049 * i387-fp.c: Include "i386-xstate.h".
18050 (i387_xsave): New.
18051 (i387_cache_to_xsave): Likewise.
18052 (i387_xsave_to_cache): Likewise.
18053 (x86_xcr0): Likewise.
18054
18055 * i387-fp.h (i387_cache_to_xsave): Likewise.
18056 (i387_xsave_to_cache): Likewise.
18057 (x86_xcr0): Likewise.
18058
18059 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18060 * linux-crisv32-low.c (target_regsets): Likewise.
18061 * linux-m68k-low.c (target_regsets): Likewise.
18062 * linux-mips-low.c (target_regsets): Likewise.
18063 * linux-ppc-low.c (target_regsets): Likewise.
18064 * linux-s390-low.c (target_regsets): Likewise.
18065 * linux-sh-low.c (target_regsets): Likewise.
18066 * linux-sparc-low.c (target_regsets): Likewise.
18067 * linux-xtensa-low.c (target_regsets): Likewise.
18068
18069 * linux-low.c: Include <sys/uio.h>.
18070 (regsets_fetch_inferior_registers): Support nt_type.
18071 (regsets_store_inferior_registers): Likewise.
18072 (linux_process_qsupported): New.
18073 (linux_target_ops): Add linux_process_qsupported.
18074
18075 * linux-low.h (regset_info): Add nt_type.
18076 (linux_target_ops): Add process_qsupported.
18077
18078 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18079 and <sys/uio.h>.
18080 (init_registers_i386_avx_linux): New.
18081 (init_registers_amd64_avx_linux): Likewise.
18082 (xmltarget_i386_linux_no_xml): Likewise.
18083 (xmltarget_amd64_linux_no_xml): Likewise.
18084 (PTRACE_GETREGSET): Likewise.
18085 (PTRACE_SETREGSET): Likewise.
18086 (x86_fill_xstateregset): Likewise.
18087 (x86_store_xstateregset): Likewise.
18088 (use_xml): Likewise.
18089 (x86_linux_update_xmltarget): Likewise.
18090 (x86_linux_process_qsupported): Likewise.
18091 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18092 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18093 init_registers_i386_linux here. Call
18094 x86_linux_update_xmltarget.
18095 (the_low_target): Add x86_linux_process_qsupported.
18096
18097 * server.c (handle_query): Call target_process_qsupported.
18098
18099 * target.h (target_ops): Add process_qsupported.
18100 (target_process_qsupported): New.
18101
fc7238bb
PA
181022010-04-03 Pedro Alves <pedro@codesourcery.com>
18103
18104 * inferiors.c (add_thread): Set last_status kind to
18105 TARGET_WAITKIND_IGNORE.
18106 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18107 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18108 (linux_wait_1): Move `thread' local definition to block that uses
18109 it. Don't NULL initialize `event_child'.
18110 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18111 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18112 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18113
bdabb078
PA
181142010-04-01 Pedro Alves <pedro@codesourcery.com>
18115
18116 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18117 an extended waitstatus, or by a watchpoint.
18118 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18119 thread was stepping or has been stopped by a watchpoint.
18120
d3bbe7a0
PA
181212010-04-01 Pedro Alves <pedro@codesourcery.com>
18122
18123 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18124 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18125 of another, then delete the previous, and validate all
18126 breakpoints.
18127 (validate_inserted_breakpoint): New.
18128 (delete_disabled_breakpoints): New.
18129 (validate_breakpoints): New.
18130 (check_mem_read): Validate breakpoints before trusting their
18131 shadow. Delete disabled breakpoints.
18132 (check_mem_write): Validate breakpoints before trusting they
18133 should be inserted. Delete disabled breakpoints.
18134 * mem-break.h (validate_breakpoints):
18135 * server.c (handle_query): Validate breakpoints when we see a
18136 qSymbol query.
18137
8b07ae33
PA
181382010-04-01 Pedro Alves <pedro@codesourcery.com>
18139
18140 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18141 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18142 if we could tell there's a GDB breakpoint at stop_pc.
18143 (need_step_over_p): Don't do a step over if we find a GDB
18144 breakpoint at the resume PC.
18145
18146 * mem-break.c (struct raw_breakpoint): New.
18147 (enum bkpt_type): New type `gdb_breakpoint'.
18148 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18149 fields. New field `raw'.
18150 (find_raw_breakpoint_at): New.
18151 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18152 breakpoint instead.
18153 (set_breakpoint_at): Adjust.
18154 (delete_raw_breakpoint): New.
18155 (release_breakpoint): New.
18156 (delete_breakpoint): Rename to...
18157 (delete_breakpoint_1): ... this. Add proc parameter. Use
18158 release_breakpoint. Return ENOENT.
18159 (delete_breakpoint): Reimplement.
18160 (find_breakpoint_at): Delete.
18161 (find_gdb_breakpoint_at): New.
18162 (delete_breakpoint_at): Delete.
18163 (set_gdb_breakpoint_at): New.
18164 (delete_gdb_breakpoint_at): New.
18165 (gdb_breakpoint_here): New.
18166 (set_reinsert_breakpoint): Use release_breakpoint.
18167 (uninsert_breakpoint): Rename to ...
18168 (uninsert_raw_breakpoint): ... this.
18169 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18170 (reinsert_raw_breakpoint): Change parameter type to
18171 raw_breakpoint.
18172 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18173 instead.
18174 (check_breakpoints): Adjust. Use release_breakpoint.
18175 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18176 (breakpoint_inserted_here): Ditto.
18177 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18178 Don't trust the breakpoint's shadow if it is not inserted.
18179 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18180 (delete_all_breakpoints): Adjust.
18181 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18182 use delete_breakpoint_1.
18183
18184 * mem-break.h (breakpoints_supported): Delete declaration.
18185 (set_gdb_breakpoint_at): Declare.
18186 (gdb_breakpoint_here): Declare.
18187 (delete_breakpoint_at): Delete.
18188 (delete_gdb_breakpoint_at): Declare.
18189
18190 * server.h (struct raw_breakpoint): Forward declare.
18191 (struct process_info): New field `raw_breakpoints'.
18192
18193 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18194 breakpoints.
18195
6bf5e0ba
PA
181962010-03-24 Pedro Alves <pedro@codesourcery.com>
18197
18198 * linux-low.c (status_pending_p_callback): Fix comment.
18199 (linux_wait_for_event_1): Move most of the internal breakpoint
18200 handling from here...
18201 (linux_wait_1): ... to here.
18202 (count_events_callback): New.
18203 (select_singlestep_lwp_callback): New.
18204 (select_event_lwp_callback): New.
18205 (cancel_breakpoints_callback): New.
18206 (select_event_lwp): New.
18207 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18208 priority to all LWPs that have had events that should be reported
18209 to the client. Cancel breakpoints when about to reporting the
18210 event to the client, not while stopping lwps. No longer cancel
18211 finished single-steps here.
18212 (cancel_finished_single_step): Delete.
18213 (cancel_finished_single_steps): Delete.
18214
414a389f
PA
182152010-03-24 Pedro Alves <pedro@codesourcery.com>
18216
18217 * mem-break.c (enum bkpt_type): New.
18218 (struct breakpoint): New field `type'.
18219 (set_breakpoint_at): Change return type to struct breakpoint
18220 pointer. Set type to `other_breakpoint' by default.
18221 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18222 in the breakpoint list.
18223 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18224 (reinsert_breakpoint): Rename to ...
18225 (reinsert_raw_breakpoint): ... this.
18226 (reinsert_breakpoints_at): Adjust.
18227 * mem-break.h (struct breakpoint): Declare.
18228 (set_breakpoint_at): Change return type to struct breakpoint
18229 pointer.
18230
2280c721
PA
182312010-03-24 Pedro Alves <pedro@codesourcery.com>
18232
18233 * server.c (handle_query): Assign, not compare.
18234
d50171e4
PA
182352010-03-24 Pedro Alves <pedro@codesourcery.com>
18236
18237 Teach linux gdbserver to step-over-breakpoints.
18238
18239 * linux-low.c (can_hardware_single_step): New.
18240 (supports_breakpoints): New.
18241 (handle_extended_wait): If stopping threads, read the stop pc of
18242 the new cloned LWP.
18243 (get_pc): New.
18244 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18245 low target doesn't support retrieving the PC.
18246 (add_lwp): Set last_resume_kind to resume_continue.
18247 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18248 (linux_attach): Don't clear stop_expected. Set the lwp's
18249 last_resume_kind to resume_stop.
18250 (linux_detach_one_lwp): Don't check for removed breakpoints.
18251 (check_removed_breakpoint): Delete.
18252 (status_pending_p): Rename to ...
18253 (status_pending_p_callback): ... this. Don't check for removed
18254 breakpoints. Don't consider threads that are stopped from GDB's
18255 perspective.
18256 (linux_wait_for_lwp): Always read the stop_pc here.
18257 (cancel_breakpoint): New.
18258 (step_over_bkpt): New global.
18259 (linux_wait_for_event_1): Implement stepping over breakpoints.
18260 (gdb_wants_lwp_stopped): New.
18261 (gdb_wants_all_stopped): New.
18262 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18263 single-step traps here. Store the thread's last reported target
18264 wait status.
18265 (send_sigstop): Don't clear stop_expected. Always set it,
18266 instead.
18267 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18268 (cancel_finished_single_step): New.
18269 (cancel_finished_single_steps): New.
18270 (wait_for_sigstop): Don't cancel finished single-step traps here.
18271 (linux_resume_one_lwp): Don't check for removed breakpoints.
18272 Don't set `step' on non-hardware step archs.
18273 (linux_set_resume_request): Ignore resume_stop requests if already
18274 stopping or stopped. Set the lwp's last_resume_kind.
18275 (resume_status_pending_p): Don't check for removed breakpoints.
18276 (need_step_over_p): New.
18277 (start_step_over): New.
18278 (finish_step_over): New.
18279 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18280 requests. Clear the thread's last reported target waitstatus.
18281 Don't use the `suspended' flag. Don't consider pending breakpoints.
18282 (linux_resume): Start a step-over if necessary.
18283 (proceed_one_lwp): New.
18284 (proceed_all_lwps): New.
18285 (unstop_all_lwps): New.
18286 * linux-low.h (struct lwp_info): Rewrite comment for the
18287 `suspended' flag. Add the `stop_pc' field. Delete the
18288 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18289 Add `'last_resume_kind' and `need_step_over' fields.
18290 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18291 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18292 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18293 (set_raw_breakpoint_at): New.
18294 (set_breakpoint_at): Rewrite to use it.
18295 (reinsert_breakpoint_handler): Delete.
18296 (set_reinsert_breakpoint): New.
18297 (reinsert_breakpoint_by_bp): Delete.
18298 (delete_reinsert_breakpoints): New.
18299 (uninsert_breakpoint): Rewrite.
18300 (uninsert_breakpoints_at): New.
18301 (reinsert_breakpoint): Rewrite.
18302 (reinsert_breakpoints_at): New.
18303 (check_breakpoints): Rewrite.
18304 (breakpoint_here): New.
18305 (breakpoint_inserted_here): New.
18306 (check_mem_read): Adjust.
18307 * mem-break.h (breakpoints_supported, breakpoint_here)
18308 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18309 (reinsert_breakpoint_by_bp): Delete declaration.
18310 (delete_reinsert_breakpoints): Declare.
18311 (reinsert_breakpoint): Delete declaration.
18312 (reinsert_breakpoints_at): Declare.
18313 (uninsert_breakpoint): Delete declaration.
18314 (uninsert_breakpoints_at): Declare.
18315 (check_breakpoints): Adjust prototype.
18316 * server.h: Adjust include order.
18317 (struct thread_info): Declare here. Add a `last_status' field.
18318
30ba68cb
MS
183192010-03-23 Michael Snyder <msnyder@vmware.com>
18320
18321 * server.c (crc32): New function.
18322 (handle_query): Add handling for 'qCRC:' request.
18323
b9a881c2
PA
183242010-03-23 Pedro Alves <pedro@codesourcery.com>
18325
18326 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18327 lwp had been stopped by a watchpoint.
18328
e92d13d5
PA
183292010-03-16 Pedro Alves <pedro@codesourcery.com>
18330
18331 * server.h (internal_error): Declare.
18332 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18333 * utils.c (internal_error): New function.
18334
64daa791
AS
183352010-03-15 Andreas Schwab <schwab@redhat.com>
18336
18337 * configure.srv: Fix typo setting srv_regobj.
18338
f52cd8cd
PA
183392010-03-15 Pedro Alves <pedro@codesourcery.com>
18340
18341 * linux-low.c (fetch_register): Avoid passing a non string literal
18342 format to `error'.
18343 (usr_store_inferior_registers): Ditto.
18344
93ae6fdc
PA
183452010-03-14 Pedro Alves <pedro@codesourcery.com>
18346
18347 * linux-low.c (linux_write_memory): Bail out early if peeking
18348 memory failed.
18349
c3adc08c
PA
183502010-03-14 Pedro Alves <pedro@codesourcery.com>
18351
18352 * linux-low.h (struct lwp_info): New fields
18353 `stopped_by_watchpoint' and `stopped_data_address'.
18354 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18355 here, and cache them in the lwp object.
18356 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18357 directly.
18358 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18359 field.
18360 (linux_stopped_by_watchpoint): Rewrite.
18361 (linux_stopped_data_address): Rewrite.
18362
bce522a2
PA
183632010-03-06 Simo Melenius <simo.melenius@iki.fi>
18364
18365 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18366 switching the current inferior, not before.
18367
90884b2b
L
183682010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18369
18370 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18371 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18372 i386-linux.c and amd64-linux.c.
18373 (reg-i386.o): Removed.
18374 (reg-i386.c): Likewise.
18375 (reg-i386-linux.o): Likewise.
18376 (reg-i386-linux.c): Likewise.
18377 (reg-x86-64.o): Likewise.
18378 (reg-x86-64.c): Likewise.
18379 (reg-x86-64-linux.o): Likewise.
18380 (reg-x86-64-linux.c): Likewise.
18381 (i386.o): New.
18382 (i386.c): Likewise.
18383 (i386-linux.o): Likewise.
18384 (i386-linux.c): Likewise.
18385 (amd64.o): Likewise.
18386 (amd64.c): Likewise.
18387 (amd64-linux.o): Likewise.
18388 (amd64-linux.c): Likewise.
18389
18390 * configure.srv (srv_i386_regobj): New.
18391 (srv_i386_linux_regobj): Likewise.
18392 (srv_amd64_regobj): Likewise.
18393 (srv_amd64_linux_regobj): Likewise.
18394 (srv_i386_32bit_xmlfiles): Likewise.
18395 (srv_i386_64bit_xmlfiles): Likewise.
18396 (srv_i386_xmlfiles): Likewise.
18397 (srv_amd64_xmlfiles): Likewise.
18398 (srv_i386_linux_xmlfiles): Likewise.
18399 (srv_amd64_linux_xmlfiles): Likewise.
18400 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18401 srv_xmlfiles to $srv_i386_xmlfiles.
18402 (i[34567]86-*-mingw32ce*): Likewise.
18403 (i[34567]86-*-mingw*): Likewise.
18404 (i[34567]86-*-nto*): Likewise.
18405 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18406 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18407 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18408 (x86_64-*-linux*): Likewise.
18409
18410 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18411 (init_registers_amd64_linux): New.
18412 (x86_arch_setup): Replace init_registers_x86_64_linux with
18413 init_registers_amd64_linux.
18414
193f13e6
MK
184152010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18416
18417 * configure.ac: Check for libdl. If it is not available link against
18418 static libthread_db.
18419 * configure: Regenerate.
18420
85d721b8
PA
184212010-02-22 Pedro Alves <pedro@codesourcery.com>
18422
18423 PR9605
18424
18425 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18426 handing a read watchpoint.
18427 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18428
6076632b
DE
184292010-02-12 Doug Evans <dje@google.com>
18430
18431 * linux-low.c (linux_supports_tracefork_flag): Document.
18432 (linux_look_up_symbols): Add comment.
18433
3327ccf7
L
184342010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18435
18436 * regcache.c (supply_register): Clear regcache if buf is NULL.
18437
0718675c 184382010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18439 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18440
18441 * inferiors.c (find_inferior): Add function documentation.
18442 (unloaded_dll): Handle the case where the unloaded dll has not
18443 been previously registered in the dll list.
18444
177321bd
DJ
184452010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18446
18447 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18448 (thumb2_breakpoint): New.
18449 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18450
2b009048
DJ
184512010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18452
18453 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18454 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18455 breakpoints.
18456
3be029c7
PA
184572010-01-21 Pedro Alves <pedro@codesourcery.com>
18458
18459 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18460
18f5de3b
JK
184612010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18462
18463 * linux-s390-low.c (s390_collect_ptrace_register)
18464 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18465
3743bb4f
DE
184662010-01-21 Doug Evans <dje@google.com>
18467
14ce3065
DE
18468 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18469 (PTRACE_ARG4_TYPE): New macro.
18470 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18471 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18472 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18473 (usr_store_inferior_registers): Ditto.
18474 (linux_read_memory, linux_write_memory): Ditto.
18475 (linux_test_for_tracefork): Ditto.
18476
3743bb4f
DE
18477 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18478 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18479
8b315be5
PA
184802010-01-21 Pedro Alves <pedro@codesourcery.com>
18481
18482 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18483 target.
18484
85492558
PA
184852010-01-21 Pedro Alves <pedro@codesourcery.com>
18486
18487 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18488 prototype to take a regcache. Adjust.
18489
442ea881
PA
184902010-01-20 Pedro Alves <pedro@codesourcery.com>
18491
18492 * regcache.h (struct thread_info): Forward declare.
18493 (struct regcache): New.
18494 (new_register_cache): Adjust prototype.
18495 (get_thread_regcache): Declare.
18496 (free_register_cache): Adjust prototype.
18497 (registers_to_string, registers_from_string): Ditto.
18498 (supply_register, supply_register_by_name, collect_register)
18499 (collect_register_as_string, collect_register_by_name): Ditto.
18500 * regcache.c (struct inferior_regcache_data): Delete.
18501 (get_regcache): Rename to ...
18502 (get_thread_regcache): ... this. Adjust. Switch inferior before
18503 fetching registers.
18504 (regcache_invalidate_one): Adjust.
18505 (regcache_invalidate): Fix prototype.
18506 (new_register_cache): Return the new register cache.
18507 (free_register_cache): Change prototype.
18508 (realloc_register_cache): Adjust.
18509 (registers_to_string): Change prototype to take a regcache. Adjust.
18510 (registers_from_string): Ditto.
18511 (register_data): Ditto.
18512 (supply_register): Ditto.
18513 (supply_register_by_name): Ditto.
18514 (collect_register): Ditto.
18515 (collect_register_as_string): Ditto.
18516 (collect_register_by_name): Ditto.
18517 * server.c (process_serial_event): Adjust.
18518 * linux-low.h (regset_fill_func, regset_store_func): Change
18519 prototype.
18520 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18521 Change prototype.
18522 * linux-low.c (get_stop_pc): Adjust.
18523 (check_removed_breakpoint): Adjust.
18524 (linux_wait_for_event): Adjust.
18525 (linux_resume_one_lwp): Adjust.
18526 (fetch_register): Add regcache parameter. Adjust.
18527 (usr_store_inferior_registers): Ditto.
18528 (regsets_fetch_inferior_registers): Ditto.
18529 (regsets_store_inferior_registers): Ditto.
18530 (linux_fetch_registers, linux_store_registers): Ditto.
18531 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18532 regcache. Adjust.
43aaf8b6
PA
18533 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18534 Ditto.
442ea881
PA
18535 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18536 prototype to take a regcache.
18537 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18538 * remote-utils.c (convert_ascii_to_int, outreg)
18539 (prepare_resume_reply): Change prototype to take a regcache.
18540 Adjust.
18541 * target.h (struct target_ops) <fetch_registers, store_registers>:
18542 Change prototype to take a regcache.
18543 (fetch_inferior_registers, store_inferior_registers): Change
18544 prototype to take a regcache. Adjust.
18545 * proc-service.c (ps_lgetregs): Adjust.
18546 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18547 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18548 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18549 take a regcache. Adjust.
18550 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18551 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18552 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18553 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18554 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18555 (cris_cannot_fetch_register):
18556 (cris_breakpoint_at): Change prototype to take a regcache.
18557 Adjust.
18558 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18559 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18560 to take a regcache. Adjust.
18561 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18562 Adjust.
18563 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18564 take a regcache. Adjust.
18565 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18566 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18567 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18568 * linux-mips-low.c (mips_get_pc):
18569 (mips_set_pc): Change prototype to take a regcache. Adjust.
18570 (mips_reinsert_addr): Adjust.
18571 (mips_collect_register): Change prototype to take a regcache.
18572 Adjust.
18573 (mips_supply_register):
18574 (mips_collect_register_32bit, mips_supply_register_32bit)
18575 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18576 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18577 * linux-ppc-low.c (ppc_supply_ptrace_register)
18578 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18579 (parse_spufs_run): Adjust.
18580 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18581 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18582 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18583 take a regcache. Adjust.
18584 * linux-s390-low.c (s390_collect_ptrace_register)
18585 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18586 (s390_set_pc): Change prototype to take a regcache. Adjust.
18587 (s390_arch_setup): Adjust.
18588 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18589 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18590 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18591 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18592 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18593 regcache. Adjust.
18594 (sparc_breakpoint_at): Adjust.
18595 * linux-xtensa-low.c (xtensa_fill_gregset):
18596 (xtensa_store_gregset):
18597 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18598 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18599 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18600 prototype to take a regcache. Adjust.
18601 * win32-arm-low.c (arm_fetch_inferior_register)
18602 (arm_store_inferior_register): Change prototype to take a
18603 regcache. Adjust.
18604 * win32-i386-low.c (i386_fetch_inferior_register)
18605 (i386_store_inferior_register): Change prototype to take a
18606 regcache. Adjust.
18607 * win32-low.c (child_fetch_inferior_registers)
18608 (child_store_inferior_registers): Change prototype to take a
18609 regcache. Adjust.
18610 (win32_wait): Adjust.
18611 (win32_fetch_inferior_registers): Change prototype to take a
18612 regcache. Adjust.
18613 (win32_store_inferior_registers): Adjust.
18614 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18615 store_inferior_register>: Change prototype to take a regcache.
18616
60c3d7b0
DE
186172010-01-20 Doug Evans <dje@google.com>
18618
18619 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18620 #ifdef.
18621 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18622 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18623
dc146f7c
VP
186242010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18625
18626 * linux-low.c (linux_core_of_thread): New.
18627 (compare_ints, show_process, list_threads): New.
18628 (linux_qxfer_osdata): Report threads and cores.
18629 (linux_target_op): Register linux_core_of_thread.
18630 * remote-utils.c (prepare_resume_reply): Report the core.
18631 (buffer_xml_printf): Support %d specifier.
18632 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18633 New.
18634 (handle_query): Handle qXfer:threads. Announce availability
18635 thereof.
18636 * target.h (struct target_ops): New field core_of_thread.
18637
7803799a
UW
186382010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18639
18640 * Makefile.in (clean): Remove new generated files.
18641 (reg-s390.o, reg-s390.c): Remove rules.
18642 (reg-s390x.o, reg-s390x.c): Likewise.
18643 (s390-linux32.o, s390-linux32.c): Add rules.
18644 (s390-linux64.o, s390-linux64.c): Likewise.
18645 (s390x-linux64.o, s390x-linux64.c): Likewise.
18646 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18647 * linux-s390-low.c: Include <elf.h>.
18648 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18649 (init_registers_s390): Remove prototype.
18650 (init_registers_s390x): Likewise.
18651 (init_registers_s390_linux32): Add prototype.
18652 (init_registers_s390_linux64): Likewise.
18653 (init_registers_s390x_linux64): Likewise.
18654 (s390_num_regs_3264): New define.
18655 (s390_regmap_3264): New global variable.
18656 (s390_cannot_fetch_register): Remove obsolete check.
18657 (s390_cannot_store_register): Likewise.
18658 (s390_collect_ptrace_register): Handle upper/lower register halves.
18659 (s390_supply_ptrace_register): Likewise.
18660 (s390_fill_gregset): Update to register number changes.
18661 (s390_get_hwcap): New routine.
18662 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18663 Install appropriate regmap and register set.
18664
6e7ffa39
JB
186652010-01-01 Joel Brobecker <brobecker@adacore.com>
18666
18667 * server.c (gdbserver_version): Update copyright year to 2010.
18668 * gdbreplay.c (gdbreplay_version): Likewise.
18669
957f3f49
DE
186702009-12-28 Doug Evans <dje@google.com>
18671
18672 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18673 elf/external.h. Include <elf.h> instead but only if necessary.
18674
ca5c370d
PA
186752009-12-28 Pedro Alves <pedro@codesourcery.com>
18676
18677 * linux-low.c (linux_remove_process): Remove `detaching'
18678 parameter. Don't release/detach from thread_db here.
18679 (linux_kill): Release/detach from thread_db here, ...
18680 (linux_detach): ... and here, before actually detaching.
18681 (linux_wait_1): ... and here, when a process exits.
18682 * thread-db.c (any_thread_of): New.
18683 (thread_db_free): Switch the current inferior to a thread of the
18684 passed in process.
18685
4ee62156
DE
186862009-12-21 Doug Evans <dje@google.com>
18687
d90e6a88
DE
18688 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18689
c5f62d5f
DE
18690 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18691 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18692 warning ifndef __NR_tkill. Move setting of errno there too.
18693 Delete unnecessary resetting of errno after syscall.
18694 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18695
10e86dd7
DE
18696 * configure.ac: Check for dladdr.
18697 * config.in: Regenerate.
18698 * configure: Regenerate.
18699 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18700 (try_thread_db_load): Update.
18701
4ee62156
DE
18702 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18703
00f515da
DE
187042009-12-18 Doug Evans <dje@google.com>
18705
e9464885
DE
18706 * event-loop.c: Include unistd.h if it exists.
18707
07d4f67e
DE
18708 * linux-low.c (my_waitpid): Move definition away from being in
18709 between linux_tracefork_child/linux_test_for_tracefork.
18710
00f515da
DE
18711 * gdb_proc_service.h (psaddr_t): Fix type.
18712 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18713 signature to match glibc.
18714
1de1badb
DE
187152009-12-16 Doug Evans <dje@google.com>
18716
18717 * linux-low.c (linux_read_memory): Fix argument to read.
18718
aeeb81d1
PA
187192009-11-26 Pedro Alves <pedro@codesourcery.com>
18720
18721 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18722 events, don't leave current_inferior pointing at null.
18723
10357975
PA
187242009-11-26 Pedro Alves <pedro@codesourcery.com>
18725
18726 * win32-low.c (LOG): Delete.
18727 (OUTMSG): Output to stderr.
18728 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18729 on compile time LOG macro.
18730 (win32_wait): Fix debug output.
18731
cf6e3471
PA
187322009-11-26 Pedro Alves <pedro@codesourcery.com>
18733
18734 * win32-low.c (win32_add_one_solib): If the dll name is
18735 "ntdll.dll", prepend the system directory to the dll path.
18736
0c85e18e
MK
187372009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18738
18739 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18740
9ac544ce 187412009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18742 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18743
18744 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18745 * configure.ac: Check for __mcoldfire__ and set
18746 gdb_cv_m68k_is_coldfire.
18747 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18748 reg-cf.o and reg-m68k.o.
18749 * configure: Regenerated.
18750
fd7dd3e6
PA
187512009-11-16 Pedro Alves <pedro@codesourcery.com>
18752
18753 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18754 Pass it to thread_db_free.
18755 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18756 proper `detaching' argument to linux_remove_process.
18757 * linux-low.h (thread_db_free): Add `detaching' parameter.
18758 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18759 to thread_db_free.
18760 (thread_db_free): Add `detaching' parameter. Only
18761 call td_ta_clear_event if detaching from process.
18762
75aa492e
MK
187632009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18764
18765 * thread-db.c (thread_db_free): Fix typo.
18766
21e1bee4
PP
187672009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18768
18769 PR gdb/10838
18770 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18771
8838b45e
NS
187722009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18773
18774 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18775 with an i686 compiler.
18776 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18777 needed.
18778 * configure: Rebuilt.
18779
8a35fb51
SL
187802009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18781
18782 PR gdb/10783
18783
18784 * server.c (handle_search_memory_1): Correct read_addr initialization
18785 in loop for searching subsequent chunks.
18786
96f15937
PP
187872009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18788
18789 * configure.ac: New --with-libthread-db option.
18790 * thread-db.c: Allow direct dependence on libthread_db.
18791 (thread_db_free): Adjust.
18792 * config.in: Regenerate.
18793 * configure: Likewise.
889bf7c5 18794
5f7d1694
PP
187952009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18796
18797 PR gdb/10757
18798 * thread-db.c (attach_thread): New function.
18799 (maybe_attach_thread): Return success/failure.
18800 (find_new_threads_callback): Adjust.
889bf7c5
PA
18801 (thread_db_find_new_threads): Loop until no new threads.
18802
88e3b899
PA
188032009-10-13 Pedro Alves <pedro@codesourcery.com>
18804
18805 * proc-service.c (ps_lgetregs): Formatting.
18806
cdbfd419
PP
188072009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18808
18809 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18810 * configure.ac: Adjust.
18811 * linux-low.h (struct process_info_private): Move members to struct
18812 thread_db.
18813 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18814 * linux-low.c (linux_remove_process): Adjust.
18815 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18816 * server.c (handle_query): Move code ...
18817 (handle_monitor_command): ... here. New function.
18818 * target.h (struct target_ops): New member.
18819 * thread-db.c (struct thread_db): New.
18820 (libthread_db_search_path): New variable.
18821 (thread_db_create_event, thread_db_enable_reporting)
18822 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18823 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18824 (try_thread_db_load_1, dladdr_to_soname): New functions.
18825 (try_thread_db_load, thread_db_load_search): New functions.
18826 (thread_db_init): Search for libthread_db.
18827 (thread_db_free): New function.
18828 (thread_db_handle_monitor_command): Likewise.
18829 * config.in: Regenerate.
18830 * configure: Regenerate.
889bf7c5 18831
4168d2d6
UW
188322009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18833
18834 * spu-low.c (spu_kill): Wait for inferior to terminate.
18835 Call clear_inferiors.
18836 (spu_detach): Call clear_inferiors.
18837
81ecdfbb
RW
188382009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18839
18840 * aclocal.m4: Regenerate.
18841 * config.in: Likewise.
18842 * configure: Likewise.
18843
0b9ff2c0
UW
188442009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18845
18846 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18847 (parse_spufs_run): New function.
18848 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18849 (ppc_breakpoint_at): Handle SPU breakpoints.
18850
efcbbd14
UW
188512009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18852
18853 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18854 (SPUFS_MAGIC): Define.
18855 (spu_enumerate_spu_ids): New function.
18856 (linux_qxfer_spu): New function.
18857 (linux_target_ops): Install linux_qxfer_spu.
18858
f4d9bade
UW
188592009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18860
18861 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18862 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18863 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18864 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18865 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18866 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18867 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18868 (init_registers_powerpc_cell32l): Add prototype.
18869 (init_registers_powerpc_cell64l): Likewise.
18870 (ppc_arch_setup): Detect Cell/B.E. architecture.
18871
96e946ca
RW
188722009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18873
18874 * Makefile.in (datarootdir): New variable.
18875
58d6951d
DJ
188762009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18877
18878 * linux-low.c (linux_write_memory): Update debugging output.
18879 * Makefile.in (clean): Add new descriptions.
18880 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18881 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18882 * configure.srv: Add new files for arm*-*-linux*.
18883 * linux-arm-low.c: Add new declarations.
18884 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18885 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18886 (HWCAP_VFPv3D16): New.
18887 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18888 instead of __IWMMXT__.
18889 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18890 (arm_arch_setup): New.
18891 (target_regsets): Remove #ifdef. Add VFP regset.
18892 (the_low_target): Use arm_arch_setup.
18893
12b42a12
DJ
188942009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18895
18896 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18897 the main thread again.
18898
ac8c974e
AR
188992009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18900
18901 Adding Neutrino gdbserver.
18902 * configure: Regenerated.
18903 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18904 * configure.srv (i[34567]86-*-nto*): New target.
18905 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18906 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18907 (nto_comctrl) [__QNX__]: New function.
18908 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18909
4424e0c3 189102009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18911
18912 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18913 srv_tgtobj.
18914
912cf4ba
PA
189152009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18916 Pedro Alves <pedro@codesourcery.com>
18917
18918 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18919 don't support CONTEXT_EXTENDED_REGISTERS.
18920 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18921 (the_low_target): Install them.
18922 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18923 failing with ERROR_PIPE_NOT_CONNECTED.
18924
aa5ca48f
DE
189252009-06-30 Doug Evans <dje@google.com>
18926 Pierre Muller <muller@ics.u-strasbg.fr>
18927
18928 Add h/w watchpoint support to x86-linux, win32-i386.
18929 * Makefile.in (SFILES): Add i386-low.c
18930 (i386_low_h): Define.
18931 (i386-low.o): Add dependencies.
18932 (linux-x86-low.o): Add i386-low.h dependency.
18933 (win32-i386-low.o): Ditto.
18934 * i386-low.c: New file.
18935 * i386-low.h: New file.
18936 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18937 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18938 * linux-low.c (linux_add_process): Initialize arch_private.
18939 (linux_remove_process): Free arch_private.
18940 (add_lwp): Initialize arch_private.
18941 (delete_lwp): Free arch_private.
18942 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18943 provided.
18944 * linux-low.h (process_info_private): New member arch_private.
18945 (lwp_info): New member arch_private.
18946 (linux_target_ops): New members new_process, new_thread,
18947 prepare_to_resume.
18948 (ptid_of): New macro.
18949 * linux-x86-low.c: Include stddef.h, i386-low.h.
18950 (arch_process_info): New struct.
18951 (arch_lwp_info): New struct.
18952 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18953 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18954 (i386_dr_low_get_status): New function.
18955 (x86_insert_point, x86_remove_point): New functions.
18956 (x86_stopped_by_watchpoint): New function.
18957 (x86_stopped_data_address): New function.
18958 (x86_linux_new_process, x86_linux_new_thread): New functions.
18959 (x86_linux_prepare_to_resume): New function.
18960 (the_low_target): Add entries for insert_point, remove_point,
18961 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18962 prepare_to_resume.
18963 * server.c (debug_hw_points): New global.
18964 (monitor_show_help): Document set debug-hw-points.
18965 (handle_query): Process "set debug-hw-points".
18966 * server.h (debug_hw_points): Declare.
18967 (paddress): Declare.
18968 * utils.c (NUMCELLS, CELLSIZE): New macros.
18969 (get_sell, xsnprintf, paddress): New functions.
18970 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18971 remove_point, stopped_by_watchpoint, stopped_data_address.
18972 * win32-i386-low.c: Include i386-low.h.
18973 (debug_reg_state): Replaces dr.
18974 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18975 (i386_dr_low_get_status): New function.
18976 (i386_insert_point, i386_remove_point): New functions.
18977 (i386_stopped_by_watchpoint): New function.
18978 (i386_stopped_data_address): New function.
18979 (i386_initial_stuff): Update.
18980 (get_thread_context,set_thread_context,i386_thread_added): Update.
18981 (the_low_target): Add entries for insert_point,
18982 remove_point, stopped_by_watchpoint, stopped_data_address.
18983 * win32-low.c (win32_insert_watchpoint): New function.
18984 (win32_remove_watchpoint): New function.
18985 (win32_stopped_by_watchpoint): New function.
18986 (win32_stopped_data_address): New function.
18987 (win32_target_ops): Add entries for insert_watchpoint,
18988 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18989 * win32-low.h (win32_target_ops): New members insert_point,
18990 remove_point, stopped_by_watchpoint, stopped_data_address.
18991
d993e290
PA
189922009-06-25 Pedro Alves <pedro@codesourcery.com>
18993
18994 * server.c (process_serial_event): Re-return unsupported, not
18995 error, if the type isn't recognized. Re-allow supporting only
18996 insert or remove packets. Also call require_running for
18997 breakpoints. Add missing break statement to default case. Tidy.
18998 * target.h (struct target_ops): Rename insert_watchpoint to
18999 insert_point, and remove_watchpoint to remove_point.
19000
19001 * linux-low.h (struct linux_target_ops): Likewise.
19002 * linux-low.c (linux_insert_watchpoint): Rename to ...
19003 (linux_insert_point): ... this. Adjust.
19004 (linux_remove_watchpoint): Rename to ...
19005 (linux_remove_point): ... this. Adjust.
19006 (linux_target_ops): Adjust.
19007 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19008 (cris_insert_point): ... this.
19009 (cris_remove_watchpoint): Rename to ...
19010 (cris_remove_point): ... this.
19011 (the_low_target): Adjust.
19012
0f54c268
PM
190132009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19014
19015 * server.c (handle_v_kill): Pass signal_pid to
19016 kill_inferior if multi_process is zero.
19017
c6314022
AR
190182009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19019
19020 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19021 * target.h (target_ops): Comment for *_watchpoint to make it clear
19022 the functions can get types '0' and '1'.
19023
4463ce24
AR
190242009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19025
19026 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19027 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19028 * regcache.c (get_regcache): Likewise.
19029 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19030 * win32-low.c (child_fetch_inferior_registers): Remove check for
19031 regno 0.
19032
cf8fd78b
PA
190332009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19034 Pedro Alves <pedro@codesourcery.com>
19035
19036 * target.h (struct target_ops) <supports_multi_process>: New
19037 callback.
19038 (target_supports_multi_process): New.
19039 * server.c (handle_query): Even if GDB reports support, only
19040 enable multi-process if the target also supports it. Report
19041 multi-process support only if the target backend supports it.
19042 * linux-low.c (linux_supports_multi_process): New function.
19043 (linux_target_ops): Install it as target_supports_multi_process
19044 callback.
19045
47c0c975
DE
190462009-05-24 Doug Evans <dje@google.com>
19047
e09875d4
DE
19048 Global renaming of find_thread_pid to find_thread_ptid.
19049 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19050 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19051 All callers updated.
19052
e27d73f6
DE
19053 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19054 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19055 directly.
19056
47c0c975
DE
19057 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19058 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19059 (linux_resume_one_lwp): Ditto.
19060
2acc282a
DE
190612009-05-23 Doug Evans <dje@google.com>
19062
19063 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19064 from struct inferior_list_entry * to struct lwp_info *.
19065 All callers updated.
19066
9f1036c1
DE
190672009-05-13 Doug Evans <dje@google.com>
19068
19069 * linux-x86-low.c: Don't include assert.h.
19070 (x86_siginfo_fixup): Use fatal, not assert.
19071 (x86_arch_setup): Fix comment.
19072
d0722149
DE
190732009-05-12 Doug Evans <dje@google.com>
19074
19075 Biarch support for i386/amd64 gdbserver.
19076 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19077 Add linux-x86-low.c.
19078 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19079 (linux-x86-low.o): Add.
19080 * linux-x86-64-low.c: Delete.
19081 * linux-i386-low.c: Delete.
19082 * linux-x86-low.c: New file.
19083 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19084 linux-x86-low.o.
19085 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19086 linux-x86-low.o.
19087 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19088 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19089 (linux_child_pid_to_exec_file): New function.
19090 (elf_64_header_p, elf_64_file_p): New functions.
19091 (siginfo_fixup): New function.
19092 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19093 give target a chance to convert layout.
19094 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19095 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19096
fdeb2a12
DE
190972009-05-07 Doug Evans <dje@google.com>
19098
19099 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19100 (regsets_store_inferior_registers): Ditto.
19101
a6dbe5df
PA
191022009-05-06 Pedro Alves <pedro@codesourcery.com>
19103
19104 PR server/10048
19105
19106 * linux-low.c (must_set_ptrace_flags): Delete.
19107 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19108 of the global.
19109 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19110 `lwp->must_set_ptrace_flags' instead.
ba42693b 19111 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19112 (linux_wait_1): ... not here.
19113
5091eb23
DE
191142009-04-30 Doug Evans <dje@google.com>
19115
9f767825
DE
19116 * inferiors.c (started_inferior_callback): New function.
19117 (attached_inferior_callback): New function.
19118 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19119 * server.c (print_started_pid, print_attached_pid): New functions.
19120 (detach_or_kill_for_exit): New function.
19121 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19122 * server.h (have_started_inferiors_p): Declare.
19123 (have_attached_inferiors_p): Declare.
19124
5091eb23
DE
19125 * inferiors.c (remove_process): Fix memory leak, free process.
19126 * linux-low.c (linux_remove_process): New function.
19127 (linux_kill): Call it instead of remove_process.
19128 (linux_detach, linux_wait_1): Ditto.
19129
155c8968
PA
191302009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19131
19132 * configure.srv: Add x86 Windows CE target.
19133
7fe519cb
UW
191342009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19135
19136 * inferiors.c (get_thread_process): Make global.
19137 * server.h (get_thread_process): Add prototype.
19138 * thread-db.c (find_one_thread): Use get_thread_process
19139 instead of current_process.
19140 (thread_db_get_tls_address): Do not crash if called when
19141 thread layer is not yet initialized.
19142
5472f405
UW
191432009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19144
19145 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19146 * spu-low.c (current_tid): Rename to ...
19147 (current_ptid): ... this.
19148 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19149 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19150 ptid_get_lwp (current_ptid) instead of current_tid.
19151 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19152 instead of current_tid. Use find_process_pid to verify pid
19153 argument is valid. Pass proper argument to remove_process.
19154 (spu_thread_alive): Compare current_ptid instead of current_tid.
19155 (spu_resume): Likewise.
19156
55ac2b99
PA
191572009-04-02 Pedro Alves <pedro@codesourcery.com>
19158
19159 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19160 variable.
19161
95954743
PA
191622009-04-01 Pedro Alves <pedro@codesourcery.com>
19163
19164 Implement the multiprocess extensions, and add linux multiprocess
19165 support.
19166
19167 * server.h (ULONGEST): Declare.
19168 (struct ptid, ptid_t): New.
19169 (minus_one_ptid, null_ptid): Declare.
19170 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19171 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19172 (struct inferior_list_entry): Change `id' type from unsigned from
19173 to ptid_t.
19174 (struct sym_cache, struct breakpoint, struct
19175 process_info_private): Forward declare.
19176 (struct process_info): Declare.
19177 (current_process): Declare.
19178 (all_processes): Declare.
19179 (initialize_inferiors): Declare.
19180 (add_thread): Adjust to use ptid_t.
19181 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19182 (add_process, remove_process, find_thread_pid): Declare.
19183 (find_inferior_id): Adjust to use ptid_t.
19184 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19185 (multi_process): Declare.
19186 (push_event): Adjust to use ptid_t.
19187 (read_ptid, write_ptid): Declare.
19188 (prepare_resume_reply): Adjust to use ptid_t.
19189 (clear_symbol_cache): Declare.
19190 * inferiors.c (all_processes): New.
19191 (null_ptid, minus_one_ptid): New.
19192 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19193 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19194 (add_thread): Change unsigned long to ptid. Remove gdb_id
19195 parameter. Adjust.
19196 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19197 (gdb_id_to_thread): Rename to ...
19198 (find_thread_pid): ... this. Change unsigned long to ptid.
19199 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19200 (loaded_dll, pull_pid_from_list): Adjust.
19201 (add_process, remove_process, find_process_pid)
19202 (get_thread_process, current_process, initialize_inferiors): New.
19203 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19204 (struct target_waitstatus) <related_pid>: Ditto.
19205 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19206 return type to int.
19207 (struct target_ops) <join>: Add `pid' argument.
19208 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19209 (struct target_ops) <wait>: Add `ptid' field. Change return type
19210 to ptid.
19211 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19212 (mywait): Add `ptid' argument. Change return type to ptid_t.
19213 (target_pid_to_str): Declare.
19214 * target.c (set_desired_inferior): Adjust to use ptids.
19215 (mywait): Add new `ptid' argument. Adjust.
19216 (target_pid_to_str): New.
19217 * mem-break.h (free_all_breakpoints): Declare.
19218 * mem-break.c (breakpoints): Delelete.
19219 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19220 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19221 to use per-process breakpoint list.
19222 (free_all_breakpoints): New.
19223 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19224 (symbol_cache, all_symbols_looked_up): Delete.
19225 (hexchars): New.
19226 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19227 read_ptid): New.
19228 (prepare_resume_reply): Change ptid argument's type from unsigned
19229 long to ptid_t. Adjust. Implement W;process and X;process.
19230 (free_sym_cache, clear_symbol_cache): New.
19231 (look_up_one_symbol): Adjust to per-process symbol cache. *
19232 * server.c (cont_thread, general_thread, step_thread): Change type
19233 to ptid_t.
19234 (attached): Delete.
19235 (multi_process): New.
19236 (last_ptid): Change type to ptid_t.
19237 (struct vstop_notif) <ptid>: Change type to ptid_t.
19238 (queue_stop_reply, push_event): Change `ptid' argument's type to
19239 ptid_t.
19240 (discard_queued_stop_replies): Add `pid' argument.
19241 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19242 changes. Don't reference the `attached' global.
19243 (attach_inferior): Adjust to mywait interface changes.
19244 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19245 features. Handle and report "multiprocess+". Handle
19246 "qAttached:PID".
19247 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19248 changes.
19249 (handle_v_kill): New.
19250 (handle_v_stopped): Adjust to use target_pid_to_str.
19251 (handle_v_requests): Allow multiple attaches and runs when
19252 multiprocess extensions are in effect. Handle "vKill".
19253 (myresume): Adjust to use ptids.
19254 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19255 (handle_status): Adjust to discard_queued_stop_replies interface
19256 change.
19257 (first_thread_of, kill_inferior_callback)
19258 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19259 (main): Call initialize_inferiors. Adjust to use ptids, killing
19260 and detaching from all inferiors. Handle multiprocess packet
19261 variants.
19262 * linux-low.h: Include gdb_proc_service.h.
19263 (struct process_info_private): New.
19264 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19265 <lwpid_of>: Use ptid_get_lwp.
19266 (get_lwp_thread): Adjust.
19267 (struct lwp_info): Add `dead' member.
19268 (find_lwp_pid): Declare.
19269 * linux-low.c (thread_db_active): Delete.
19270 (new_inferior): Adjust comment.
19271 (inferior_pid): Delete.
19272 (linux_add_process): New.
19273 (handle_extended_wait): Adjust.
19274 (add_lwp): Change unsigned long to ptid.
19275 (linux_create_inferior): Add process to processes table. Adjust
19276 to use ptids. Don't set new_inferior here.
19277 (linux_attach_lwp): Rename to ...
19278 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19279 it. Adjust to use ptids.
19280 (linux_attach_lwp): New.
19281 (linux_attach): Add process to processes table. Don't set
19282 new_inferior here.
19283 (struct counter): New.
19284 (second_thread_of_pid_p, last_thread_of_process_p): New.
19285 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19286 multiple processes.
19287 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19288 processes. Remove process from process table.
19289 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19290 to multiple processes.
19291 (any_thread_of): New.
19292 (linux_detach): Add `pid' argument, and handle it. Remove process
19293 from processes table.
19294 (linux_join): Add `pid' argument. Handle it.
19295 (linux_thread_alive): Change unsighed long argument to ptid_t.
19296 Consider dead lwps as not being alive.
19297 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19298 threads we're not interested in.
19299 (same_lwp, find_lwp_pid): New.
19300 (linux_wait_for_lwp): Change `pid' argument's type from int to
19301 ptid_t. Adjust.
19302 (linux_wait_for_event): Rename to ...
19303 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19304 from int to ptid_t. Adjust.
19305 (linux_wait_for_event): New.
19306 (linux_wait_1): Add `ptid' argument. Change return type to
19307 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19308 that exit from the process table.
19309 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19310 Adjust.
19311 (mark_lwp_dead): New.
19312 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19313 stopping all threads, mark its main lwp as dead.
19314 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19315 ptids.
19316 (fetch_register, usr_store_inferior_registers)
19317 (regsets_fetch_inferior_registers)
19318 (regsets_store_inferior_registers, linux_read_memory)
19319 (linux_write_memory): Inline `inferior_pid'.
19320 (linux_look_up_symbols): Adjust to use per-process
19321 `thread_db_active'.
19322 (linux_request_interrupt): Adjust to use ptids.
19323 (linux_read_auxv): Inline `inferior_pid'.
19324 (initialize_low): Don't reference thread_db_active.
19325 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19326 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19327 (ps_getpid): Return the pid of the current inferior.
19328 * thread-db.c (proc_handle, thread_agent): Delete.
19329 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19330 per-process data.
19331 (find_one_thread): Change argument type to ptid_t. Adjust to
19332 per-process data.
19333 (maybe_attach_thread): Adjust to per-process data and ptids.
19334 (thread_db_find_new_threads): Ditto.
19335 (thread_db_init): Ditto.
19336 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19337 processes table. Adjust to use ptids.
19338 (spu_kill, spu_detach): Adjust interface. Remove process from
19339 processes table.
19340 (spu_join, spu_thread_alive): Adjust interface.
19341 (spu_wait): Adjust interface. Remove process from processes
19342 table. Adjust to use ptids.
19343 * win32-low.c (current_inferior_tid): Delete.
19344 (current_inferior_ptid): New.
19345 (debug_event_ptid): New.
19346 (thread_rec): Take a ptid. Adjust.
19347 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19348 (child_delete_thread): Ditto.
19349 (do_initial_child_stuff): Add `attached' argument. Add process to
19350 processes table.
19351 (child_fetch_inferior_registers, child_store_inferior_registers):
19352 Adjust.
19353 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19354 (win32_attach): Pass 1 to do_initial_child_stuff.
19355 (win32_kill): Adjust interface. Remove process from processes
19356 table.
19357 (win32_detach): Ditto.
19358 (win32_join): Adjust interface.
19359 (win32_thread_alive): Take a ptid.
19360 (win32_resume): Adjust to use ptids.
19361 (get_child_debug_event): Ditto.
19362 (win32_wait): Adjust interface. Remove exiting process from
19363 processes table.
19364
bd99dc85
PA
193652009-04-01 Pedro Alves <pedro@codesourcery.com>
19366
19367 Non-stop mode support.
19368
19369 * server.h (non_stop): Declare.
19370 (gdb_client_data, handler_func): Declare.
19371 (delete_file_handler, add_file_handler, start_event_loop):
19372 Declare.
19373 (handle_serial_event, handle_target_event, push_event)
19374 (putpkt_notif): Declare.
19375 * target.h (enum resume_kind): New.
19376 (struct thread_resume): Replace `step' field by `kind' field.
19377 (TARGET_WNOHANG): Define.
19378 (struct target_ops) <wait>: Add `options' argument.
19379 <supports_non_stop, async, start_non_stop>: New fields.
19380 (target_supports_non_stop, target_async): New.
19381 (start_non_stop): Declare.
19382 (mywait): Add `options' argument.
19383 * target.c (mywait): Add `options' argument. Print child exit
19384 notifications here.
19385 (start_non_stop): New.
19386 * server.c (non_stop, own_buf, mem_buf): New globals.
19387 (struct vstop_notif): New.
19388 (notif_queue): New global.
19389 (queue_stop_reply, push_event, discard_queued_stop_replies)
19390 (send_next_stop_reply): New.
19391 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19392 interface changes.
19393 (attach_inferior): In non-stop mode, don't wait for the target
19394 here.
19395 (handle_general_set): Handle QNonStop.
19396 (handle_query): When handling qC, return the current general
19397 thread, instead of the first thread of the list.
19398 (handle_query): If the backend supports non-stop mode, include
19399 QNonStop+ in the qSupported query response.
19400 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19401 and non-stop mode.
19402 (handle_v_attach, handle_v_run): Handle non-stop mode.
19403 (handle_v_stopped): New.
19404 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19405 (myresume): Adjust to use resume_kind. Handle non-stop.
19406 (queue_stop_reply_callback): New.
19407 (handle_status): Handle non-stop mode.
19408 (main): Clear non_stop flag on reconnection. Use the event-loop.
19409 Refactor serial protocol handling from here ...
19410 (process_serial_event): ... to this new function. When GDB
19411 selects any thread, select one here. In non-stop mode, wait until
19412 GDB acks all pending events before exiting.
19413 (handle_serial_event, handle_target_event): New.
19414 * remote-utils.c (remote_open): Install remote_desc in the event
19415 loop.
19416 (remote_close): Remove remote_desc from the event loop.
19417 (putpkt_binary): Rename to...
19418 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19419 (putpkt_binary): New as wrapper around putpkt_binary_1.
19420 (putpkt_notif): New.
19421 (prepare_resume_reply): In non-stop mode, don't change the
19422 general_thread.
19423 * event-loop.c: New.
19424 * Makefile.in (OBJ): Add event-loop.o.
19425 (event-loop.o): New rule.
19426
19427 * linux-low.h (pid_of): Moved here.
19428 (lwpid_of): New.
19429 (get_lwp_thread): Use lwpid_of.
19430 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19431 * linux-low.c (pid_of): Delete.
19432 (inferior_pid): Use lwpid_of.
19433 (linux_event_pipe): New.
19434 (target_is_async_p): New.
19435 (delete_lwp): New.
19436 (handle_extended_wait): Use lwpid_of.
19437 (add_lwp): Don't set lwpid field.
19438 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19439 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19440 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19441 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19442 first. Adjust to linux_wait_for_event interface changes. Use
19443 lwpid_of.
19444 (linux_detach): Don't delete the main lwp here.
19445 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19446 (status_pending_p): Don't consider explicitly suspended lwps.
19447 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19448 pointer. Add OPTIONS argument. Change return type to int. Use
19449 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19450 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19451 pointer. Add status pointer argument. Return a pid instead of a
19452 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19453 changes. In non-stop mode, don't switch to a random thread.
19454 (linux_wait): Rename to...
19455 (linux_wait_1): ... this. Add target_options argument, and handle
19456 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19457 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19458 clean exit and signal exit code. Don't stop all threads in
19459 non-stop mode. In all-stop mode, only stop all threads when
19460 reporting a stop to GDB. Handle explicit thread stop requests.
19461 (async_file_flush, async_file_mark): New.
19462 (linux_wait): New.
19463 (send_sigstop): Use lwpid_of.
19464 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19465 interface changes. In non-stop mode, don't switch to a random
19466 thread.
19467 (linux_resume_one_lwp): Use lwpid_of.
19468 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19469 (linux_resume_one_thread): ... this. Handle resume_stop. In
19470 non-stop mode, don't look for pending flag in all threads.
19471 (resume_status_pending_p): Don't consider explicitly suspended
19472 threads.
19473 (my_waitpid): Reimplement. Emulate __WALL.
19474 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19475 Use lwpid_of.
19476 (sigchld_handler, linux_supports_non_stop, linux_async)
19477 (linux_start_non_stop): New.
19478 (linux_target_ops): Register linux_supports_non_stop, linux_async
19479 and linux_start_non_stop.
19480 (initialize_low): Install SIGCHLD handler.
19481 * thread-db.c (thread_db_create_event, find_one_thread)
19482 (thread_db_get_tls_address): Use lwpid_of.
19483 * win32-low.c (win32_detach): Adjust to use resume_kind.
19484 (win32_wait): Add `options' argument.
19485 * spu-low.c (spu_resume): Adjust to use resume_kind.
19486 (spu_wait): Add `options' argument.
19487
5b1c542e
PA
194882009-04-01 Pedro Alves <pedro@codesourcery.com>
19489
19490 Decouple target code from remote protocol.
19491
19492 * target.h (enum target_waitkind): New.
19493 (struct target_waitstatus): New.
19494 (struct target_ops) <wait>: Return an unsigned long. Take a
19495 target_waitstatus pointer instead of a char pointer.
19496 (mywait): Likewise.
19497 * target.c (mywait): Change prototype to return an unsigned long.
19498 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19499 * server.h (thread_from_wait, old_thread_from_wait): Delete
19500 declarations.
19501 (prepare_resume_reply): Change prototype to take a
19502 target_waitstatus.
19503 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19504 (last_status, last_ptid): New.
19505 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19506 pid instead of a signal.
19507 (attach_inferior): Remove "status" and "signal" parameters.
19508 Adjust.
19509 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19510 not as an address.
19511 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19512 (handle_v_requests, myresume): Remove "status" and "signal"
19513 parameters. Adjust.
19514 (handle_status): New.
19515 (main): Delete local `status'. Adjust.
19516 * remote-utils.c: Include target.h.
19517 (prepare_resume_reply): Change prototype to take a
19518 target_waitstatus. Adjust.
19519
19520 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19521 interface.
19522 * spu-low.c (spu_wait): Adjust.
19523 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19524 Delete.
19525 (win32_wait): Adjust.
19526
2bd7c093
PA
195272009-04-01 Pedro Alves <pedro@codesourcery.com>
19528
19529 * target.h (struct thread_resume): Delete leave_stopped member.
19530 (struct target_ops): Add a `n' argument to the `resume' callback.
19531 * server.c (start_inferior): Adjust.
19532 (handle_v_cont, myresume): Adjust.
19533 * linux-low.c (check_removed_breakpoint): Adjust to resume
19534 interface change, and to removed leave_stopped field.
19535 (resume_ptr): Delete.
19536 (struct thread_resume_array): New.
19537 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19538 resume interface change.
19539 (linux_continue_one_thread, linux_queue_one_thread)
19540 (resume_status_pending_p): Check if the resume field is NULL
19541 instead of checking the leave_stopped member.
19542 (linux_resume): Adjust to the target resume interface change.
19543 * spu-low.c (spu_resume): Adjust to the target resume interface
19544 change.
19545 * win32-low.c (win32_detach, win32_resume): Ditto.
19546
c35fafde
PA
195472009-04-01 Pedro Alves <pedro@codesourcery.com>
19548
19549 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19550 flag.
19551 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19552 pending.
19553 (linux_continue_one_thread): Only preserve the stepping flag if
19554 there's a pending breakpoint.
19555
0a59d50b
PA
195562009-03-31 Pedro Alves <pedro@codesourcery.com>
19557
19558 * server.c (main): After the inferior having exited, call
19559 remote_close before exiting gdbserver.
19560
f04c6d38
TJB
195612009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19562
19563 Fix size of FPSCR in Power 7 processors.
19564 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19565 (PPC_FEATURE_HAS_DFP): New #define.
19566 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19567 size of the FPSCR.
19568
78e5cee6
PA
195692009-03-23 Pedro Alves <pedro@codesourcery.com>
19570
19571 * server.c (handle_query) Whitespace and formatting.
19572
1b3f6016
PA
195732009-03-22 Pedro Alves <pedro@codesourcery.com>
19574
19575 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19576 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19577 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19578 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19579 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19580 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19581 Makefile.in, configure.ac: Fix whitespace throughout.
19582 * configure: Regenerate.
19583
a07b2135
PA
195842009-03-22 Pedro Alves <pedro@codesourcery.com>
19585
19586 * inferiors.c (find_inferior): Make it safe for the callback
19587 function to delete the currently iterated inferior.
19588
67cc2626
PA
195892009-03-22 Pedro Alves <pedro@codesourcery.com>
19590
19591 * Makefile.in (linuw_low_h): Move higher.
19592 (thread-db.o): Depend on $(linux_low_h).
19593
54a0b537
PA
195942009-03-17 Pedro Alves <pedro@codesourcery.com>
19595
19596 Rename "process" to "lwp" throughout.
19597
19598 * linux-low.c (all_processes): Rename to...
19599 (all_lwps): ... this.
19600 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19601 (add_process): Rename to ...
19602 (add_lwp): ... this. Adjust.
19603 (linux_create_inferior): Adjust.
19604 (linux_attach_lwp): Adjust.
19605 (linux_attach): Adjust.
19606 (linux_kill_one_process): Rename to ...
19607 (linux_kill_one_lwp): ... this. Adjust.
19608 (linux_kill): Adjust.
19609 (linux_detach_one_process): Rename to ...
19610 (linux_detach_one_lwp): ... this. Adjust.
19611 (linux_detach): Adjust.
19612 (check_removed_breakpoint): Adjust.
19613 (status_pending_p): Adjust.
19614 (linux_wait_for_process): Rename to ...
19615 (linux_wait_for_lwp): ... this. Adjust.
19616 (linux_wait_for_event): Adjust.
19617 (send_sigstop): Adjust.
19618 (wait_for_sigstop): Adjust.
19619 (stop_all_processes): Rename to ...
19620 (stop_all_lwps): ... this.
19621 (linux_resume_one_process): Rename to ...
19622 (linux_resume_one_lwp): ... this. Adjust.
19623 (linux_set_resume_request, linux_continue_one_thread)
19624 (linux_queue_one_thread, resume_status_pending_p)
19625 (usr_store_inferior_registers, regsets_store_inferior_registers)
19626 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19627 Adjust.
19628 * linux-low.h (get_process): Rename to ...
19629 (get_lwp): ... this. Adjust.
19630 (get_thread_process): Rename to ...
19631 (get_thread_lwp): ... this. Adjust.
19632 (get_process_thread): Rename to ...
19633 (get_lwp_thread): ... this. Adjust.
19634 (struct process_info): Rename to ...
19635 (struct lwp_info): ... this.
19636 (all_processes): Rename to ...
19637 (all_lwps): ... this.
19638 * proc-service.c (ps_lgetregs): Adjust.
19639 * thread-db.c (thread_db_create_event, find_one_thread)
19640 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19641
0b16c5cf
PA
196422009-03-14 Pedro Alves <pedro@codesourcery.com>
19643
19644 * server.c (handle_query): Handle "qAttached".
19645
32de4b9d
NS
196462009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19647
19648 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19649 GPLv3, update license URL.
19650
2aecd87f
DE
196512009-03-01 Doug Evans <dje@google.com>
19652
93efd302 19653 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19654 (server_h): Add gdb_signals.h.
19655 (signals.o): Update.
19656 * server.h (target_signal_from_host,target_signal_to_host_p)
19657 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19658
86b1f9c5
PM
196592009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19660
19661 * remote-utils.c (getpkt): Also generate remote-debug
19662 information if noack_mode is set.
19663
4aa995e1
PA
196642009-02-06 Pedro Alves <pedro@codesourcery.com>
19665
19666 * server.c (handle_query): Report qXfer:siginfo:read and
19667 qXfer:siginfo:write as supported and handle them.
19668 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19669 * linux-low.c (linux_xfer_siginfo): New.
19670 (linux_target_ops): Set it.
19671
62709adf
PA
196722009-01-26 Pedro Alves <pedro@codesourcery.com>
19673
19674 * server.c (gdbserver_usage): Mention --remote-debug.
19675 (main): Accept '--remote-debug' switch.
19676
aef93bd7
DE
196772009-01-18 Doug Evans <dje@google.com>
19678
19679 * regcache.c (new_register_cache): No need to check result of xcalloc.
19680 * server.c (handle_search_memory): Back out calls to xmalloc,
19681 result is checked and error is returned to user upon failure.
19682 (handle_query): Ditto. Add more checks for result of malloc.
19683 (handle_v_cont): Check result of malloc, report error back to
19684 user upon failure.
19685 (handle_v_run): Ditto. Call freeargv.
19686 * server.h (freeargv): Declare.
19687 * utils.c (freeargv): New fn.
19688
54363045
DE
196892009-01-15 Doug Evans <dje@google.com>
19690
f626972c
DE
19691 * gdbreplay.c (perror_with_name): Make arg const char *.
19692 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19693 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19694 * utils.c (perror_with_name): Make arg const char *.
54363045 19695
18aae699
PA
196962009-01-14 Pedro Alves <pedro@codesourcery.com>
19697
19698 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19699 when handling a EXIT_PROCESS_DEBUG_EVENT.
19700
ff703abe
JB
197012009-01-06 Joel Brobecker <brobecker@adacore.com>
19702
19703 * gdbreplay.c (gdbreplay_version): Update copyright year.
19704 * server.c (gdbserver_version): Likewise.
19705
f21cc1a2 197062009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19707
19708 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19709 (handle_extended_wait): Improve comment.
0e21c1ec 19710
bca929d3
DE
197112008-12-13 Doug Evans <dje@google.com>
19712
19713 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19714 * server.h (ATTR_MALLOC): New macro.
19715 (xmalloc,xcalloc,xstrdup): Declare.
19716 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19717 * inferiors.c: Ditto.
19718 * linux-low.c: Ditto.
19719 * mem-break.c: Ditto.
19720 * regcache.c: Ditto.
19721 * remote-utils.c: Ditto.
19722 * server.c: Ditto.
19723 * target.c: Ditto.
19724 * win32-low.c: Ditto.
19725
97438e3f
DE
197262008-12-12 Doug Evans <dje@google.com>
19727
896c7fbb
DE
19728 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19729 in debugging printf.
19730
97438e3f
DE
19731 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19732
e3b886f8
DE
197332008-12-09 Doug Evans <dje@google.com>
19734
19735 * linux-low.h (struct process_info): Delete member tid, unused.
19736 * thread-db.c (find_one_thread): Update.
19737 (maybe_attach_thread): Update.
19738
07e059b5
VP
197392008-12-02 Pedro Alves <pedro@codesourcery.com>
19740
889bf7c5
PA
19741 * target.h (struct target_ops): Add qxfer_osdata member.
19742 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19743 and dirent.h.
19744 (linux_qxfer_osdata): New functions.
19745 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19746 callback.
19747 * server.c (handle_query): Handle "qXfer:osdata:read:".
19748 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19749 (buffer_xml_printf): New functions.
19750 * server.h (struct buffer): New.
19751 (buffer_grow_str, buffer_grow_str0): New macros.
19752 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19753 (buffer_xml_printf): Declare.
07e059b5 19754
4cab47ab
DE
197552008-11-24 Doug Evans <dje@google.com>
19756
19757 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19758
f142445f
DJ
197592008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19760
19761 * server.c (handle_v_run): Always use the supplied argument list.
19762
d0107bb6 197632008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19764
d0107bb6
BW
19765 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19766 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19767
2c4ad781
TJB
197682008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19769
19770 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19771 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19772 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19773 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19774 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19775 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19776 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19777 XML target descriptions.
19778 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19779 when inferior is running on an ISA 2.05 or later processor. Add
19780 special case to return offset for full 64-bit slot of FPSCR when
19781 in 32-bits.
19782
dfb64f85
DJ
197832008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19784
19785 * Makefile.in (SFILES, clean): Added sparc64 files.
19786 (reg-sparc64.o, reg-sparc64.c): New.
19787 * configure.srv (sparc*-*-linux*): New configuration.
19788 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19789 syscall arguments for SPARC.
19790 (regsets_store_inferior_registers): Likewise.
19791 * linux-sparc-low.c: New file.
19792
66b6e1dd
DE
197932008-10-21 Doug Evans <dje@google.com>
19794
19795 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19796 (READLINE_DIR,READLINE_DEP): Delete.
19797 (INTERNAL_CFLAGS): Update.
19798 (LINTFLAGS): Update.
19799
9b710a42
PA
198002008-10-10 Pedro Alves <pedro@codesourcery.com>
19801
19802 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19803 whole argv from the last run, not just argv[0].
19804
5822d809
PA
198052008-09-08 Pedro Alves <pedro@codesourcery.com>
19806
19807 * regcache.c (new_register_cache): Return NULL if the register
19808 cache size isn't known yet.
19809 (free_register_cache): Avoid dereferencing a NULL regcache.
19810
74aac56f
DJ
198112008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19812
19813 * configure.srv: Merge MIPS and MIPS64.
19814
400b20f5
MR
198152008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19816
19817 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19818
677c5bb1
LM
198192008-08-18 Luis Machado <luisgpm@br.ibm.com>
19820
19821 * Makefile.in: Add required vsx dependencies.
19822
19823 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19824 Declare init_registers_powerpc_vsx32l.
19825 Declare init_registers_powerpc_vsx64l.
19826 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19827 (ppc_arch_setup): Check for VSX in hwcap.
19828 (ppc_fill_vsxregset): New function.
19829 (ppc_store_vsxregset): New function.
19830 Add new VSX entry in regset_info target_regsets.
19831
19832 * configure.srv: Add new VSX dependencies.
19833
a6f3e723
SL
198342008-08-12 Pedro Alves <pedro@codesourcery.com>
19835
19836 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19837 (remote_open): Set or clear transport_is_reliable.
19838 (putpkt_binary): Don't expect acks in noack mode.
19839 (getpkt): Don't send ack/nac in noack mode.
19840 * server.c (handle_general_set): Handle QStartNoAckMode.
19841 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19842 qSupported.
19843 (main): Reset noack_mode on every connection.
19844 * server.h (noack_mode): Declare.
19845
a417dc56
RW
198462008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19847
19848 * Makefile.in (GDBREPLAY_OBS): New variable.
19849 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19850
3221518c
UW
198512008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19852 Daniel Jacobowitz <dan@codesourcery.com>
19853
19854 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19855 (usr_store_inferior_registers): Likewise.
19856 (regsets_store_inferior_registers): Likewise.
19857
ec56be1b
PA
198582008-07-31 Rolf Jansen <rj@surtec.com>
19859 Pedro Alves <pedro@codesourcery.com>
19860
19861 * configure.ac: Check for memmem declaration.
19862 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19863 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19864 (disable_packet_qfThreadInfo): Unconditionally compile.
19865 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19866 * configure, config.in: Regenerate.
19867
2fe5e3ff
DE
198682008-07-28 Doug Kwan <dougkwan@google.com>
19869
19870 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19871 (linux_write_memory): Remove declaration of errno.
19872
836acd6d
UW
198732008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19874
19875 * linux-low.c (handle_extended_wait): Do not use "status"
19876 variable uninitialized.
19877
aeba519e
PA
198782008-07-07 Pedro Alves <pedro@codesourcery.com>
19879
19880 * server.c (handle_v_attach): Inhibit reporting dll changes.
19881
db42f210
PA
198822008-06-27 Pedro Alves <pedro@codesourcery.com>
19883
19884 * remote-utils.c (prepare_resume_reply): If requested, don't
19885 output "thread:TID" in the T stop reply.
19886
19887 * server.c (disable_packet_vCont, disable_packet_Tthread)
19888 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19889 (handle_query): If requested, disable support for qC, qfThreadInfo
19890 and qsThreadInfo.
19891 (handle_v_requests): If requested, disable support for vCont.
19892 (gdbserver_show_disableable): New.
19893 (main): Handle --disable-packet and --disable-packet=LIST.
19894
19895 * server.h (disable_packet_vCont, disable_packet_Tthread)
19896 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19897
8e4c5421
CD
198982008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19899
19900 * server.c (gdbserver_usage): Mention --version.
19901
6e23a804
DJ
199022008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19903
19904 * Makefile.in (gdbreplay.o): New rule.
19905
90aa6a40
JM
199062008-06-06 Joseph Myers <joseph@codesourcery.com>
19907
19908 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19909 message, not gdbserver.
19910
c16158bc 199112008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19912 Nathan Sidwell <nathan@codesourcery.com>
19913 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19914
19915 * acinclude.m4: Include ../../config/acx.m4.
19916 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19917 * configure, config.in: Regenerate.
19918 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19919 * server.c (gdbserver_version): Print PKGVERSION.
19920 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19921 (main): Adjust gdbserver_usage calls.
19922 * gdbreplay.c (version, host_name): Add declarations.
19923 (gdbreplay_version, gdbreplay_usage): New.
19924 (main): Accept --version and --help options.
19925
aeb75bf5
DJ
199262008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19927
19928 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19929 (arm_breakpoint_at): Handle Thumb.
19930 (the_low_target): Add comment.
19931
76b233dd
UW
199322008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19933
19934 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19935
08388c79
DE
199362008-05-09 Doug Evans <dje@google.com>
19937
a3c83fae
DE
19938 * server.h (decode_search_memory_packet): Declare.
19939 * remote-utils.c (decode_search_memory_packet): New fn.
19940 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19941 (handle_search_memory): New fn.
19942 (handle_query): Process qSearch:memory packets.
19943
bb9c3d36
UW
199442008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19945
19946 * regcache.c (registers_length): Remove.
19947 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19948 full register packet.
19949 * regcache.h (registers_length): Remove prototype.
19950 * server.h (PBUFSIZ): Define to 16384.
19951
7284e1be
UW
199522008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19953
19954 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19955 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19956 powerpc-64l.o, and powerpc-altivec64l.o.
19957 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19958 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19959 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19960 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19961 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19962 to srv_xmlfiles.
19963
19964 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19965 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19966 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19967 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19968 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19969 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19970 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19971 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19972 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19973 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19974 (clean): Update.
19975
19976 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19977 (init_registers_powerpc_32l): ... this new prototype.
19978 (init_registers_powerpc_32): Remove, replace by ...
19979 (init_registers_powerpc_altivec32l): ... this new prototype.
19980 (init_registers_powerpc_e500): Remove, replace by ...
19981 (init_registers_powerpc_e500l): ... this new prototype.
19982 (init_registers_ppc64): Remove, replace by ...
19983 (init_registers_powerpc_64l): ... this new prototype.
19984 (init_registers_powerpc_64): Remove, replace by ...
19985 (init_registers_powerpc_altivec64l): ... this new prototype.
19986 (ppc_num_regs): Set to 73.
19987 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19988 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19989 (ppc_cannot_store_register): Handle orig_r3 and trap.
19990 (ppc_arch_setup): Update init_registers_... calls.
19991 (ppc_fill_gregset): Handle orig_r3 and trap.
19992
19993 * inferiors.c (clear_inferiors): Reset current_inferior.
19994
fdc59709
PB
199952008-04-23 Paolo Bonzini <bonzini@gnu.org>
19996
889bf7c5
PA
19997 * acinclude.m4: Add override.m4.
19998 * configure: Regenerate.
fdc59709 19999
c9b2f845
UW
200002008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20001
20002 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20003 initial call to init_register_ppc64.
20004
550512b8
UW
200052008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20006
43aaf8b6
PA
20007 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20008 single powerpc*-*-linux* case.
550512b8
UW
20009 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20010
b6430ec3
UW
200112008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20012
20013 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20014 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20015 from reg_xmlfiles.
20016 * linux-ppc-low.c: Include <elf.h>.
20017 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20018 (ppc_hwcap): New global variable.
20019 (ppc_regmap): Remove __SPE__ #ifdef sections.
20020 (ppc_regmap_e500): New global variable.
20021 (ppc_cannot_store_register): Update __SPE__ special case.
20022 (ppc_get_hwcap): New function.
20023 (ppc_arch_setup): Use it to determine whether inferior supports
20024 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20025 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20026 Do not access registers if target does not support AltiVec.
20027 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20028 Do not access registers if target does not support SPE.
20029 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20030
52fa2412
UW
200312008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20032
20033 * linux-low.c (disabled_regsets, num_regsets): New.
20034 (use_regsets_p): Delete.
20035 (linux_wait_for_process): Clear disabled_regsets.
20036 (regsets_fetch_inferior_registers): Check and set it.
20037 (regsets_store_inferior_registers): Likewise.
20038 (linux_fetch_registers, linux_store_registers): Do not use
20039 use_regsets_p.
20040 (initialize_low): Allocate disabled_regsets.
20041
e28b3332
DJ
200422008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20043
20044 * Makefile.in (LIBOBJS): New.
20045 (OBS): Use LIBOBJS.
20046 (memmem.o): New rule.
20047 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20048 * configure: Regenerated.
20049
4536995d
UW
200502008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20051
20052 * server.c (handle_query): Never return "unsupported" for
20053 qXfer:features:read queries.
20054
221c031f
UW
200552008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20056
20057 * server.c (get_features_xml): Fix inverted condition.
20058 (handle_query): Always support qXfer:feature:read.
20059
ccd213ac
DJ
200602008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20061
20062 * server.c (wrapper_argv): New.
20063 (start_inferior): Handle wrapper_argv. If set, expect an extra
20064 trap.
20065 (gdbserver_usage): Document --wrapper.
20066 (main): Parse --wrapper.
20067
6fe305f7
UW
200682008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20069
20070 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20071 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20072 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20073 (ppc_set_pc): Likewise.
20074 (ppc_arch_setup): New function.
20075 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20076 of collect_register.
889bf7c5 20077 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20078
5b0a002e
UW
200792008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20080
20081 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20082 instead of linux-ppc64-low.o.
20083 * linux-ppc64-low.c: Remove file.
20084 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20085 (linux-ppc64-low.o): Remove rule.
20086
20087 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20088 (init_registers_powerpc_64): Likewise.
20089 (ppc_regmap): Conditionally define depending on __powerpc64__.
20090 (ppc_cannot_store_register): Do not special-case "fpscr" when
20091 compiled on __powerpc64__.
20092 (ppc_collect_ptrace_register): New function.
20093 (ppc_supply_ptrace_register): New function.
20094 (ppc_breakpoint): Change type to "unsigned int".
20095 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20096 (the_low_target): Conditionally provide initializers for the
889bf7c5 20097 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20098 collect_ptrace_register and supply_ptrace_register members.
20099
9b4b61c8
UW
201002008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20101
20102 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20103 * server.c (gdbserver_xmltarget): Define.
20104 (get_features_xml): Use it to replace "target.xml" and arch_string.
20105
20106 * configure.srv: Remove srv_xmltarget. Add XML files that were
20107 mentioned there to srv_xmlfiles instead. Remove conditional tests
20108 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20109 srv_xmlfiles and srv_regobj to include all possible choices.
20110 * configure.ac (srv_xmltarget): Remove.
20111 (srv_xmlfiles): Do not add "target.xml".
20112 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20113 checks for supplementary target information.
20114 * configure: Regenerate.
20115 * Makefile.in (XML_TARGET): Remove.
20116 (target.xml): Remove rule.
20117 (clean): Do not clean up target.xml.
20118 (.PRECIOUS): Do not mention target.xml.
20119
20120 * target.h (struct target_ops): Remove arch_string member.
20121 * linux-low.c (linux_arch_string): Remove.
20122 (linux_target_ops): Remove arch_string initializer.
20123 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20124 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20125 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20126 * spu-low.c (spu_arch_string): Remove.
20127 (spu_target_ops): Remove arch_string initializer.
20128 * win32-low.c (win32_arch_string): Remove.
20129 (win32_target_ops): Remove arch_string initializer.
20130 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20131 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20132 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20133
ee1a7ae4
UW
201342008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20135
20136 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20137 by collect_ptrace_register and supply_ptrace_register hooks.
20138 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20139 instead of checking for the_low_target.left_pad_xfer.
20140 (usr_store_inferior_registers): Use collect_ptrace_register callback
20141 instead of checking for the_low_target.left_pad_xfer.
20142
20143 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20144 (s390_supply_ptrace_register): Likewise.
20145 (s390_fill_gregset): Call s390_collect_ptrace_register.
20146 (the_low_target): Update.
20147
20148 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20149 (ppc_supply_ptrace_register): Likewise.
20150 (the_low_target): Update.
20151
20152 * linux-i386-low.c (the_low_target): Update.
20153 * linux-x86-64-low.c (the_low_target): Update.
20154
d61ddec4
UW
201552008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20156
20157 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20158 reg-s390.o and reg-s390x.o.
20159
20160 * linux-low.c (new_inferior): New global variable.
20161 (linux_create_inferior, linux_attach): Set it.
20162 (linux_wait_for_process): Call the_low_target.arch_setup after the
20163 target has stopped for the first time.
20164 (initialize_low): Do not call the_low_target.arch_setup.
20165
20166 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20167 (s390_set_pc): Likewise.
20168 (s390_arch_setup): New function.
20169 (the_low_target): Use s390_arch_setup as arch_setup routine.
20170
20171 * regcache.c (realloc_register_cache): New function.
20172 (set_register_cache): Call it for each existing regcache.
20173
d05b4ac3
UW
201742008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20175
20176 * server.h (init_registers): Remove prototype.
20177
20178 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20179 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20180 instead of init_registers ().
20181 * linux-arm-low.c (init_registers_arm): Add prototype.
20182 (init_registers_arm_with_iwmmxt): Likewise.
20183 (the_low_target): Add initializer for arch_setup field.
20184 * linux-cris-low.c (init_registers_cris): Add prototype.
20185 (the_low_target): Add initializer for arch_setup field.
20186 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20187 (the_low_target): Add initializer for arch_setup field.
20188 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20189 (the_low_target): Add initializer for arch_setup field.
20190 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20191 (the_low_target): Add initializer for arch_setup field.
20192 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20193 (the_low_target): Add initializer for arch_setup field.
20194 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20195 (the_low_target): Add initializer for arch_setup field.
20196 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20197 (init_registers_mips64_linux): Likewise.
20198 (the_low_target): Add initializer for arch_setup field.
20199 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20200 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20201 (the_low_target): Add initializer for arch_setup field.
20202 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20203 (init_registers_powerpc_64): Likewise.
20204 (the_low_target): Add initializer for arch_setup field.
20205 * linux-s390-low.c (init_registers_s390): Add prototype.
20206 (init_registers_s390x): Likewise.
20207 (the_low_target): Add initializer for arch_setup field.
20208 * linux-sh-low.c (init_registers_sh): Add prototype.
20209 (the_low_target): Add initializer for arch_setup field.
20210 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20211 (the_low_target): Add initializer for arch_setup field.
20212 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20213 (the_low_target): Add initializer for arch_setup field.
20214
20215 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20216 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20217 instead of init_registers ().
20218 * win32-arm-low.c (init_registers_arm): Add prototype.
20219 (the_low_target): Add initializer for arch_setup field.
20220 * win32-i386-low.c (init_registers_i386): Add prototype.
20221 (the_low_target): Add initializer for arch_setup field.
20222
20223 * spu-low.c (init_registers_spu): Add prototype.
20224 (initialize_low): Call initialie_registers_spu () instead of
20225 initialize_registers ().
20226
fd96d250
PA
202272008-02-19 Pedro Alves <pedro@codesourcery.com>
20228
20229 * server.c (handle_v_requests): When handling the vRun and vAttach
20230 packets, if already debugging a process, don't kill it. Return an
20231 error instead.
20232
d41b6bb4
DJ
202332008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20234
20235 * server.c (handle_query): Correct length check.
20236
5ac588cf
PA
202372008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20238
20239 * win32-low.c (do_initial_child_stuff): Add process handle
20240 parameter. Set current_process_handle and current_process_id from the
20241 parameters. Clear globals.
20242 (win32_create_inferior): Don't set current_process_handle and
20243 current_process_id here. Instead pass them on the call to
20244 do_initial_child_stuff.
20245 (win32_attach): Likewise.
20246 (win32_clear_inferiors): New.
20247 (win32_kill): Don't close the current process handle or the
20248 current thread handle here. Instead call win32_clear_inferiors.
20249 (win32_detach): Don't open a new handle to the process. Call
20250 win32_clear_inferiors.
20251 (win32_join): Don't rely on current_process_handle; open a new
20252 handle using the process id.
20253 (win32_wait): Call win32_clear_inferiors when the inferior process
20254 has exited.
20255
ecd7ecbc
DJ
202562008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20257
20258 * server.c (monitor_show_help): Add "exit".
20259
1525d545
MG
202602008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20261
ecd7ecbc 20262 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20263 (clean): Add reg-xtensa.c.
20264 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20265 * configure.srv (xtensa*-*-linux*) New target.
20266 * linux-xtensa-low.c: New.
20267 * xtensa-xtregs.c: New.
1525d545 20268
59a016f0
PA
202692008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20270
20271 * hostio.c: Don't include errno.h.
20272 (errno_to_fileio_errno): Move to hostio-errno.
20273 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20274 error number outputting to the target->hostio_last_error callback.
20275 (hostio_packet_error): Use FILEIO_EINVAL directly.
20276 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20277 calls to hostio_error.
20278 * hostio-errno.c: New.
20279 * server.h (hostio_last_error_from_errno): Declare.
20280 * target.h (target_ops): Add hostio_last_error member.
20281 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20282 as hostio_last_error handler.
889bf7c5 20283 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20284 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20285 (wince_hostio_last_error): New functions.
20286 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20287 as hostio_last_error handler.
20288 (win32_target_ops) [!_WIN32_WCE]: Register
20289 hostio_last_error_from_errno as hostio_last_error handler.
20290 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20291 (hostio-errno.o): New rule.
20292 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20293 * configure.srv (srv_hostio_err_objs): New variable. Default to
20294 hostio-errno.o.
20295 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20296 * configure: Regenerate.
20297
2d717e4f
DJ
202982008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20299
20300 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20301 (linux_kill, linux_detach): Clean up the process list.
20302 * remote-utils.c (remote_open): Improve port number parsing.
20303 (putpkt_binary, input_interrupt): Only send interrupts if the target
20304 is running.
20305 * server.c (extended_protocol): Make static.
20306 (attached): Define earlier.
20307 (exit_requested, response_needed, program_argv): New variables.
20308 (target_running): New.
20309 (start_inferior): Clear attached here.
20310 (attach_inferior): Set attached here.
20311 (require_running): Define.
20312 (handle_query): Use require_running and target_running. Implement
20313 "monitor exit".
20314 (handle_v_attach, handle_v_run): New.
20315 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20316 (gdbserver_usage): Update.
20317 (main): Redo argument parsing. Handle --debug and --multi. Handle
20318 --attach along with other options or after the port. Save
20319 program_argv. Support no initial program. Resynchronize
20320 communication with GDB after an error. Handle "monitor exit".
20321 Use require_running and target_running. Always allow the extended
20322 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20323 restart in extended mode.
20324 * README: Refer to the GDB manual. Update --attach usage.
20325
7407e2de
AS
203262007-12-20 Andreas Schwab <schwab@suse.de>
20327
20328 * linux-low.c (STACK_SIZE): Define.
20329 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20330 (linux_test_for_tracefork): Likewise.
20331
b65d95c5
DJ
203322007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20333
20334 * linux-low.c (linux_wait_for_event): Update messages. Do not
20335 reinsert auto-delete breakpoints.
20336 * mem-break.c (struct breakpoint): Change return type of handler to
20337 int.
20338 (set_breakpoint_at): Update handler type.
20339 (reinsert_breakpoint_handler): Return 1 instead of calling
20340 delete_breakpoint.
20341 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20342 setting a new one.
20343 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20344 * mem-break.h (set_breakpoint_at): Update handler type.
20345 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20346 * win32-low.c (auto_delete_breakpoint): New.
20347 (get_child_debug_event): Use it.
20348
4e799345
DJ
203492007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20350
20351 * configure.ac: Check for pread and pwrite.
20352 * hostio.c (handle_pread): Fall back to lseek and read.
20353 (handle_pwrite): Fall back to lseek and write.
20354 * config.in, configure: Regenerated.
20355
27524b67
DJ
203562007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20357
20358 * server.c (myresume): Add own_buf argument.
20359 (main): Update calls.
20360
a20d5e98
DJ
203612007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20362
20363 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20364 * remote-utils.c (remote_open): Do not call disable_async_io.
20365 (block_async_io): Delete.
20366 (unblock_async_io): Make static.
20367 (initialize_async_io): New.
20368 * server.c (handle_v_cont): Handle async I/O here.
20369 (myresume): Likewise. Move other common resume tasks here...
20370 (main): ... from here. Call initialize_async_io. Disable async
20371 I/O before the main loop.
20372 * server.h (initialize_async_io): Declare.
20373 (block_async_io, unblock_async_io): Delete prototypes.
20374 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20375
b79d787e
DJ
203762007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20377
20378 * remote-utils.c (readchar): Allow binary data in received messages.
20379
d97903b2
PA
203802007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20381
20382 * win32-low.c (attaching): New global.
20383 (win32_create_inferior): Clear the `attaching' global.
20384 (win32_attach): Set the `attaching' global.
20385 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20386 attaching. Only set a breakpoint at the entry point if not
20387 attaching.
20388
311de423
PA
203892007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20390
20391 * server.c (main): Don't report dll events on the initial
20392 connection on attaches.
20393
6c2d16d2
PA
203942007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20395
20396 * server.c (main): Relax numerical bases supported for the pid of
20397 the --attach command line argument.
20398
5ca906e6
PA
203992007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20400
20401 * win32-low.c (win32_attach): Call OpenProcess before
20402 DebugActiveProcess, not after. Add last error output to error
20403 call.
20404
9c6c8194
PA
204052007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20406
20407 * win32-low.c (win32_get_thread_context)
20408 (win32_set_thread_context): New functions.
20409 (thread_rec): Use win32_get_thread_context.
20410 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20411 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20412 field.
20413
4d5d1aaa
PA
204142007-12-03 Leo Zayas
20415 Pedro Alves <pedro_alves@portugalmail.pt>
20416
20417 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20418 global variables.
20419 (child_add_thread): Minor cleanup.
20420 (child_continue): Resume artificially suspended threads before
20421 calling ContinueDebugEvent.
20422 (suspend_one_thread): New.
20423 (fake_breakpoint_event): New.
20424 (get_child_debug_event): Change return type to int. Check here if
20425 gdb sent an interrupt request. If a soft interrupt was requested,
20426 fake a breakpoint event. Return 0 if there is no event to handle,
20427 and 1 otherwise.
20428 (win32_wait): Don't check here if gdb sent an interrupt request.
20429 Ensure there is a valid event to handle.
20430 (win32_request_interrupt): Add soft interruption method as last
20431 resort.
20432
c436e841
PA
204332007-12-03 Leo Zayas
20434 Pedro Alves <pedro_alves@portugalmail.pt>
20435
20436 * win32-low.h (win32_thread_info): Add descriptions to the
20437 structure members. Replace `suspend_count' counter by a
20438 `suspended' flag.
20439 * win32-low.c (thread_rec): Update condition of when to get the
20440 context from the inferior. Rely on ContextFlags being set if it
20441 has already been retrieved. Only suspend the inferior thread if
20442 we haven't already. Warn if that fails.
20443 (continue_one_thread): s/suspend_count/suspended/. Only call
20444 ResumeThread once. Warn if that fails.
20445
e7b5fa67
PA
204462007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20447
20448 * win32-low.c (win32_wait): Don't read from the inferior when it
20449 has already exited.
20450
a385171d
PA
204512007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20452
20453 * Makefile.in (win32_low_h): New variable.
20454 (win32-low.o): Add dependency on $(win32_low_h).
20455 (win32-arm-low.o, win32-i386-low.o): New rules.
20456
f80c84b3
DJ
204572007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20458
20459 * hostio.c: Correct copyright year.
20460
a6b151f1
DJ
204612007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20462
20463 * Makefile.in (OBS): Add hostio.o.
20464 (hostio.o): New rule.
20465 * server.h (handle_vFile): Declare.
20466 * hostio.c: New file.
20467 * server.c (handle_v_requests): Take packet_len and new_packet_len
20468 for binary packets. Call handle_vFile.
20469 (main): Update call to handle_v_requests.
20470
f9387fc3
DJ
204712007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20472
20473 * linux-low.c: Include <sched.h>.
20474
51c2684e
DJ
204752007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20476
20477 * linux-low.c (linux_tracefork_grandchild): New.
20478 (linux_tracefork_child): Use clone.
20479 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20480
75f83163
JB
204812007-10-31 Joel Brobecker <brobecker@adacore.com>
20482
20483 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20484
da5898ce
DJ
204852007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20486
20487 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20488
24a09b5f
DJ
204892007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20490
20491 * inferiors.c (change_inferior_id): Delete.
20492 (add_pid_to_list, pull_pid_from_list): New.
20493 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20494 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20495 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20496 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20497 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20498 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20499 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20500 (using_threads): Always set to 1.
20501 (handle_extended_wait): New.
20502 (add_process): Do not set TID.
20503 (linux_create_inferior): Set must_set_ptrace_flags.
20504 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20505 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20506 (linux_thread_alive): Rename TID argument to LWPID.
20507 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20508 (linux_wait_for_event): Do not use TID or check using_threads. Update
20509 call to dead_thread_notify. Call handle_extended_wait.
20510 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20511 (send_sigstop): Delete sigstop_sent.
20512 (wait_for_sigstop): Avoid TID.
20513 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20514 (linux_test_for_tracefork): New.
20515 (linux_lookup_signals): Use thread_db_active and
20516 linux_supports_tracefork_flag.
20517 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20518 * linux-low.h (get_process_thread): Avoid TID.
20519 (struct process_ifo): Move thread_known and tid to the end. Remove
20520 sigstop_sent.
20521 (linux_attach_lwp, thread_db_init): Update prototypes.
20522 * server.h (change_inferior_id): Delete prototype.
20523 (add_pid_to_list, pull_pid_from_list): New prototypes.
20524 * thread-db.c (thread_db_use_events): New.
20525 (find_first_thread): Rename to...
20526 (find_one_thread): ...this. Update callers and messages. Do not
20527 call fatal. Check thread_db_use_events. Do not call
20528 change_inferior_id or new_thread_notify.
20529 (maybe_attach_thread): Update. Do not call new_thread_notify.
20530 (thread_db_init): Set thread_db_use_events. Check use_events.
20531 * utils.c (fatal, warning): Correct message prefix.
20532
30ed0a8f
DJ
205332007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20534
20535 * Makefile.in (clean): Remove new files.
20536 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20537 (powerpc-64.o, powerpc-64.c): New rules.
20538 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20539 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20540 with SPE.
20541 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20542 SPE targets.
20543 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20544 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20545 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20546 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20547 (target_regsets): Add AltiVec and SPE register sets.
20548 * configure.ac: Check for AltiVec and SPE.
20549 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20550 (ppc_fill_vrregset, ppc_store_vrregset): New.
20551 (target_regsets): Add AltiVec register set.
20552 * configure: Regenerated.
20553
fd462a61
DJ
205542007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20555
20556 * linux-low.c (O_LARGEFILE): Define.
20557 (linux_read_memory): Use /proc/PID/mem.
20558 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20559 * configure, config.in: Regenerated.
20560
69f223ed
DJ
205612007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20562
20563 * linux-low.c (linux_wait_for_event): Do not pass signals while
20564 single-stepping.
20565
aec18585
PA
205662007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20567
20568 * win32-low.c (create_process): New.
20569 (win32_create_inferior): Use create_process instead of
20570 CreateProcess. If create_process failed retry appending an ".exe"
20571 suffix. Store the GetLastError result immediatelly after
20572 create_process calls and use it on the call to error.
20573
34d86ddd
PA
205742007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20575
20576 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20577
5a0e3bd0
JB
205782007-08-23 Joel Brobecker <brobecker@adacore.com>
20579
20580 * configure.ac: Switch license to GPLv3.
20581
f88c79e6
MS
205822007-08-01 Michael Snyder <msnyder@access-company.com>
20583
20584 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20585
6b3d9b83
PA
205862007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20587
20588 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20589 typedef.
20590 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20591 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20592 CloseToolhelp32Snapshot.
20593 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20594 CloseToolhelp32Snapshot.
20595
c588c53c
MS
205962007-07-27 Michael Snyder <michael.snyder@access-company.com>
20597
20598 * server.c (main): Check for inferior exit before main loop.
20599
aa0403d9
PA
206002007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20601
20602 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20603 instead of on tmp_desc.
20604
255e7678
DJ
206052007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20606 Daniel Jacobowitz <dan@codesourcery.com>
20607
20608 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20609 (add_thread): Minor cleanups.
20610 (clear_inferiors): Move lower in the file. Clear the DLL
20611 list.
20612 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20613 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20614 (xml_escape_text): New.
20615 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20616 for qSupported.
20617 (handle_v_cont): Report errors.
20618 (gdbserver_version): Update.
20619 (main): Correct size of own_buf. Do not report initial DLL events.
20620 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20621 (unloaded_dll, xml_escape_text): New.
20622 * win32-low.c (enum target_waitkind): Update comments.
20623 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20624 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20625 (win32_EnumProcessModules, win32_GetModuleInformation)
20626 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20627 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20628 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20629 (win32_Module32First, win32_Module32Next, load_toolhelp)
20630 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20631 (get_child_debug_event): Handle DLL events.
20632 (win32_wait): Likewise.
20633
0d37add9
DJ
206342007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20635
20636 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20637 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20638
45e2715e
PA
206392007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20640
20641 * win32-low.c (handle_output_debug_string): Ignore event if not
20642 waiting.
20643
c5674cf1
PA
206442007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20645
20646 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20647
2bbe3cc1
DJ
206482007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20649
20650 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20651
ae13219e
DJ
206522007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20653
20654 * inferiors.c (change_inferior_id): Add comment.
20655 * linux-low.c (check_removed_breakpoint): Add an early
20656 prototype. Improve debug output.
20657 (linux_attach): Doc update.
20658 (linux_detach_one_process, linux_detach): Clean up before releasing
20659 each process.
20660 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20661 * linux-low.h (struct process_info): Doc improvement.
20662 * mem-break.c (delete_all_breakpoints): New.
20663 * mem-break.h (delete_all_breakpoints): New prototype.
20664 * thread-db.c (find_first_thread): New.
20665 (thread_db_create_event): Call it instead of
20666 thread_db_find_new_threads. Clean up unused variables.
20667 (maybe_attach_thread): Remove first thread handling.
20668 (thread_db_find_new_threads): Use find_first_thread.
20669 (thread_db_get_tls_address): Likewise.
20670
4105de34
DJ
206712007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20672
20673 * thread-db.c (thread_db_find_new_threads): Add prototype.
20674 (thread_db_create_event): Check for the main thread before adding
20675 a new thread.
20676 (maybe_attach_thread): Only enable event reporting if TID == 0.
20677 (thread_db_get_tls_address): Check for new threads.
20678
2b876972
DJ
206792007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20680
20681 * linux-low.c (linux_create_inferior): Try execv before execvp.
20682 * spu-low.c (spu_create_inferior): Likewise.
20683
7a245884
DJ
206842007-06-13 Mike Frysinger <vapier@gentoo.org>
20685
20686 * linux-low.c (linux_create_inferior): Change execv to execvp.
20687 * spu-low.c (spu_create_inferior): Likewies.
20688
117ce543
DJ
206892007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20690
20691 * Makefile.in (clean): Clean new files instead of deleted ones.
20692 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20693 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20694 rules.
20695 * configure.srv: Specify XML files and new regformats for MIPS and
20696 MIPS64 GNU/Linux.
20697 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20698 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20699 an entry for the restart register.
20700 (mips_cannot_fetch_register, mips_cannot_store_register)
20701 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20702 register names to match the XML descriptions.
20703 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20704 restart register instead of $0.
20705
0e7f50da
UW
207062007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20707 Markus Deuling <deuling@de.ibm.com>
20708
20709 * remote-utils.c (decode_xfer_write): New function.
20710 * server.h (decode_xfer_write): Add prototype.
20711 * server.c (handle_query): Add PACKET_LEN argument. Support
20712 qXfer:spu:read and qXfer:spu:write packets.
20713 (main): Pass packet_len to handle_query.
20714 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20715 * target.h (target_ops): Add qxfer_spu.
20716
374c1d38
UW
207172007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20718
20719 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20720 accessing non-seekable spufs files.
20721
bb63802a
UW
207222007-05-16 Markus Deuling <deuling@de.ibm.com>
20723
889bf7c5 20724 * server.c (handle_query): Add reply for qC packet.
bb63802a 20725
7390519e
PA
207262007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20727 Leo Zayas <lerele@champenstudios@com>
20728
20729 * server.h (check_remote_input_interrupt_request): New function.
20730 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20731 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20732 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20733 (check_remote_input_interrupt_request): New function.
20734 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20735 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20736 winapi_GenerateConsoleCtrlEvent): New typedefs.
20737 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20738 to 250 ms.
20739 (win32_wait): Check for remote interrupt request
20740 with check_remote_input_interrupt_request.
20741 (win32_request_interrupt): New function.
20742 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20743
34b34921
PA
207442007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20745
20746 * win32-low.c (debug_registers_changed,
20747 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20748 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20749 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20750 (thread_rec): Get context using the low target.
20751 (child_add_thread): Call thread_added on the low target,
20752 which does the same thing.
20753 (regptr): Delete.
20754 (do_initial_child_stuff): Remove debug registers references.
20755 Set context using the low target. Resume threads after
20756 setting the contexts.
20757 (child_continue): Remove dead variable. Remove debug
20758 registers references.
20759 (child_fetch_inferior_registers): Go through the low target.
20760 (do_child_store_inferior_registers): Remove.
20761 (child_store_inferior_registers): Go through the low target.
20762 (win32_resume): Remove debug registers references.
20763 Set context using the low target.
20764 (handle_exception): Change return type to void. Don't record
20765 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20766 first chance exception.
889bf7c5 20767 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20768 goto loop. Always return after waiting for debug event.
20769 (win32_wait): Convert to switch statement. Handle spurious
20770 events.
20771
20772 * win32-i386-low.c (debug_registers_changed,
20773 debug_registers_used): New.
20774 (initial_stuff): Rename to ...
20775 (i386_initial_stuff): ... this. Clear debug registers
20776 state variables.
20777 (store_debug_registers): Delete.
20778 (i386_get_thread_context): New.
20779 (load_debug_registers): Delete.
20780 (i386_set_thread_context): New.
20781 (i386_thread_added): New.
20782 (single_step): Rename to ...
20783 (i386_single_step): ... this.
20784 (do_fetch_inferior_registers): Rename to ...
20785 (i386_fetch_inferior_register): ... this.
20786 (i386_store_inferior_register): New.
20787 (the_low_target): Adapt to new interface.
20788
20789 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20790 (arm_get_thread_context): New.
20791 (arm_set_thread_context): New.
20792 (regptr): New.
20793 (do_fetch_inferior_registers): Rename to ...
20794 (arm_fetch_inferior_register): ... this.
20795 (arm_store_inferior_register): New.
20796 (arm_wince_breakpoint): Reimplement as unsigned long.
20797 (arm_wince_breakpoint_len): Define.
20798 (the_low_target): Adapt to new interface.
20799
20800 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20801 load_debug_registers. Add get_thread_context, set_thread_context,
20802 thread_added and store_inferior_register. Rename
20803 fetch_inferior_registers to fetch_inferior_register.
20804 (regptr): Remove declaration.
20805
dd6953e1
PA
208062007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20807
20808 * linux-low.c (linux_detach): Change return type to int. Return 0.
20809 * spu-low.c (spu_detach): Likewise.
20810
444d6139
PA
208112007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20812
20813 * target.h (target_ops): Change return type of detach to int.
20814 Add join.
20815 (join_inferior): New.
20816 * server.c (main): Don't skip detach support on mingw32.
20817 If the inferior doesn't support detaching return error.
20818 Call join_inferior instead of using waitpid.
20819 * linux-low.c (linux_join): New.
20820 (linux_target_op): Add linux_join.
20821 * spu-low.c (spu_join): New.
20822 (spu_target_ops): Add spu_join.
20823 * win32-low.c (win32_detach): Adapt to new interface.
20824 Reopen current_process_handle before detaching. Issue a child
20825 resume before detaching.
20826 (win32_join): New.
20827 (win32_target_op): Add win32_join.
20828
1d5315fe
PA
208292007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20830
20831 * win32-low.c (win32-attach): Fix return value.
20832 * target.h (target_ops): Describe ATTACH return values.
20833
bf914831
PA
208342007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20835
20836 * win32-low.c (GETPROCADDRESS): Define.
20837 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20838 (winapi_DebugSetProcessKillOnExit): Likewise.
20839 (win32_create_inferior): Force usage of ansi CreateProcessA.
20840 (win32_attach): Use GETPROCADDRESS.
20841 (win32_detach): Likewise.
20842
f72f3e60
PA
208432007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20844
20845 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20846
ed50f18f
PA
208472007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20848
20849 * win32-low.c: Commit leftover changes from 2007-03-29.
20850
0c2ead7e
DJ
208512007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20852
20853 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20854 fields short instead of int. Add explicit padding.
20855 (i387_cache_to_fsave): Remove unnecessary casts.
20856 (i387_fsave_to_cache): Doc fix.
20857 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20858
73725ff3
DJ
208592007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20860
20861 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20862 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20863
d99f33d8
PA
208642007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20865
20866 * configure.srv (arm*-*-mingw32ce*): Move near the other
20867 arm targets.
20868
68070c10
PA
208692007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20870
2482afc6 20871 * configure.ac: Add errno checking.
68070c10
PA
20872 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20873 sys/file.h and malloc.h.
20874 (AC_CHECK_DECLS): Add perror.
20875 (srv_mingwce): Handle.
2482afc6 20876 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20877 win32-i386-low.o to srv_tgtobj.
20878 (i[34567]86-*-mingw*): Likewise.
20879 (arm*-*-mingw32ce*): Add case.
20880 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20881 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20882 [__MINGW32CE__] (strerror): New function.
20883 [__MINGW32CE__] (errno): Define to GetLastError.
20884 [__MINGW32CE__] (COUNTOF): New macro.
20885 (remote_open): Remove extra close call.
20886 * mem-break.c (delete_breakpoint_at): New function.
20887 * mem-break.h (delete_breakpoint_at): Declare.
20888 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20889 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20890 [USE_WIN32API] (read, write): Add char* casts.
20891 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20892 * server.h: Include wincecompat.h on Windows CE.
20893 [HAVE_ERRNO_H]: Check.
20894 (perror): Declare if not declared.
20895 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20896 (perror_with_name): Remove errno declaration.
20897 * wincecompat.h: New.
20898 * wincecompat.c: New.
20899 * win32-low.h: New.
20900 * win32-arm-low.c: New.
20901 * win32-i386-low.c: New.
20902 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20903 (OUTMSG2): Make it safe.
20904 (_T): New macro.
20905 (COUNTOF): New macro.
20906 (NUM_REGS): Get it from the low target.
20907 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20908 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20909 (thread_rec): Let low target handle debug registers.
20910 (child_add_thread): Likewise.
20911 (child_init_thread_list): Likewise.
20912 (continue_one_thread): Likewise.
20913 (regptr): New.
20914 (do_child_fetch_inferior_registers): Move to ...
20915 * win32-i386-low.c: ... here, and rename to ...
20916 (do_fetch_inferior_registers): ... this.
889bf7c5 20917 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20918 Go through the low target.
20919 (do_child_store_inferior_registers): Use regptr.
20920 (strwinerror): New function.
20921 (win32_create_inferior): Handle Windows CE.
20922 Use strwinerror instead of strerror on Windows error
20923 codes. Add program to the error output.
20924 Don't close the main thread handle on Windows CE.
20925 (win32_attach): Use coredll.dll on Windows CE.
20926 (win32_kill): Close current process and current
20927 thread handles.
20928 (win32_detach): Use coredll.dll on Windows CE.
20929 (win32_resume): Let low target handle debug registers, and
20930 step request.
20931 (handle_exception): Add/Remove initial breakpoint. Avoid
20932 non-existant WSTOPSIG on Windows CE.
20933 (win32_read_inferior_memory): Cast to remove warning.
20934 (win32_arch_string): Go through the low target.
20935 (initialize_low): Call set_breakpoint_data with the low
20936 target's breakpoint.
20937 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20938 FOP_REGNUM, mappings): Move to ...
20939 * win32-i386-low.c: ... here.
20940 * win32-low.c (win32_thread_info): Move to ...
20941 * win32-low.h: ... here.
20942 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20943 win32-arm-low.c and wincecompat.c.
20944 (all:): Add $EXEEXT.
20945 (install-only:): Likewise.
20946 (gdbserver:): Likewise.
20947 (gdbreplay:): Likewise.
20948 * config.in: Regenerate.
20949 * configure: Regenerate.
20950
41093d81
PA
209512007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20952
20953 * win32-low.c: Rename typedef thread_info to
20954 win32_thread_info throughout.
20955
544afa54
PA
209562007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20957
20958 * win32-i386-low.c: Rename to ...
20959 * win32-low.c: ... this.
20960 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20961 * Makefile.in: Likewise.
20962
bce7165d
PA
209632007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20964
20965 * remote-utils.c (monitor_output): Constify msg parameter.
20966 * server.h (monitor_output): Likewise.
20967 * win32-i386-low.c (handle_output_debug_string): New.
20968 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20969 handle_output_debug_string.
20970 (get_child_debug_event): Likewise.
20971
506c7aa0
DJ
209722007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20973
20974 * server.c (main): Correct strtoul check.
20975
42c81e2a
DJ
209762007-03-27 Jon Ringle <jon@ringle.org>
20977
20978 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20979
9453113a
DJ
209802007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20981
20982 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20983
64a69107
DJ
209842007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20985
20986 * terminal.h: Check HAVE_SGTTY_H.
20987
209882007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20989
20990 * remote-utils.c (remote_open): Print out the assigned port number.
20991
c74d0ad8
DJ
209922007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20993
20994 * remote-utils.c (monitor_output): New function.
20995 * server.c (debug_threads): Define here.
20996 (monitor_show_help): New function.
20997 (handle_query): Handle qRcmd.
20998 (main): Do not handle 'd' packet.
20999 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21000 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21001 of debug_threads.
21002
de7c3b4a
PA
210032007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21004
21005 * Makefile.in (EXEEXT): New.
21006 (clean): Use $(EXEEXT).
21007
ef57601b
PA
210082007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21009
21010 * target.h (target_ops): Rename send_signal to request_interrupt,
21011 and remove enum target_signal parameter.
21012 * linux-low.c (linux_request_interrupt): Rename from
21013 linux_send_signal, and always send SIGINT.
21014 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21015 and always send SIGINT.
21016 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21017 of send_signal.
21018 (input_interrupt): Likewise.
21019
820f2bda
PA
210202007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21021
21022 * server.c (get_features_xml): Check if target implemented
21023 arch_string.
21024 * win32-i386-low.c (win32_arch_string): New.
21025 (win32_target_ops): Add win32_arch_string as arch_string member.
21026
ab39bf24
UW
210272007-02-22 Markus Deuling <deuling@de.ibm.com>
21028
21029 * spu-low.c (spu_arch_string): New.
21030 (spu_target_ops): Add spu_arch_string.
21031
61ff6e04
DJ
210322007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21033
21034 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21035 * configure.ac: Do not check for terminal.h.
21036 * configure, config.in: Regenerated.
21037
fb1e4ffc
DJ
210382007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21039
21040 * Makefile.in (OBS): Add $(XML_BUILTIN).
21041 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21042 (clean): Update.
21043 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21044 (arm-with-iwmmxt.c): New.
21045 * config.in, configure: Regenerate.
21046 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21047 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21048 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21049 (arm*-*-linux*): Add iWMMXt and regset support.
21050 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21051 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21052 (arm_store_wmmxregset, target_regsets): New.
21053 * server.c (get_features_xml): Take annex argument. Check builtin
21054 XML documents.
21055 (handle_query): Handle multiple annexes.
21056
0f48aa01
DJ
210572007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21058
21059 * remote-utils.c [USE_WIN32API] (read, write): Define.
21060 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21061 write.
21062
23181151
DJ
210632007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21064
21065 * linux-i386-low.c (the_low_target): Set arch_string.
21066 * linux-x86-64-low.c (the_low_target): Likewise.
21067 * linux-low.c (linux_arch_string): New.
21068 (linux_target_ops): Add it.
21069 * linux-low.h (struct linux_target_ops): Add arch_string.
21070 * server.c (write_qxfer_response): Use const void * for DATA.
21071 (get_features_xml): New.
21072 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21073 * target.h (struct target_ops): Add arch_string method.
21074
9d606399
DJ
210752007-01-03 Denis Pilat <denis.pilat@st.com>
21076 Daniel Jacobowitz <dan@codesourcery.com>
21077
21078 * linux-low.c (linux_kill): Handle being called with no threads.
21079 * win32-i386-low.c (win32_kill): Likewise.
21080 (get_child_debug_event): Clear current_process_handle.
21081
210822006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21083 Daniel Jacobowitz <dan@codesourcery.com>
21084
21085 * remote-utils.c (remote_open): Check the type of specified
21086 serial port devices before opening them.
21087 * server.c (main): Kill the inferior if an error occurs during
21088 the first remote_open.
21089
a5e13d24
DJ
210902006-12-05 Markus Deuling <deuling@de.ibm.com>
21091
21092 * README: Update supported targets.
21093
186947f7
DJ
210942006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21095
21096 * Makefile.in (clean): Remove reg-mips64.c.
21097 (reg-mips64.c, reg-mips64.o): New rules.
21098 * configure.srv: Handle mips64. Include regset support for mips.
21099 * linux-mips-low.c (union mips_register): New.
21100 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21101 (mips_breakpoint, mips_breakpoint_at): Use int.
21102 (mips_collect_register, mips_supply_register)
21103 (mips_collect_register_32bit, mips_supply_register_32bit)
21104 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21105 (mips_store_fpregset, target_regsets): New.
21106 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21107
a13e2c95
UW
211082006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21109
21110 * configure.srv: Add target "spu*-*-*".
21111 * Makefile.in (clean): Remove reg-spu.c.
21112 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21113 * spu-low.c: New file.
21114
cb7283db
DJ
211152006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21116
21117 * configure.ac: Correct td_thr_tls_get_addr test.
21118 * configure: Regenerated.
21119
89be2091
DJ
211202006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21121
21122 * linux-low.c (linux_wait_for_event): Reformat. Use the
21123 pass_signals array.
21124 * remote-utils.c (decode_address_to_semicolon): New.
21125 * server.c (pass_signals, handle_general_set): New.
21126 (handle_query): Mention QPassSignals for qSupported.
21127 (main): Call handle_general_set.
21128 * server.h (pass_signals, decode_address_to_semicolon): New.
21129
000ef4f0
DJ
211302006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21131
21132 * server.c (handle_query): Correct error handling for read_auxv.
21133
b7149293
UW
211342005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21135
21136 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21137 and srv_linux_thread_db to yes.
21138 * linux-s390-low.c (s390_fill_gregset): New function.
21139 (target_regsets): Define data structure.
21140
dae5f5cf
DJ
211412006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21142
21143 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21144 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21145 * config.in, configure: Regenerated.
21146 * inferiors.c (gdb_id_to_thread): New function.
21147 (gdb_id_to_thread_id): Use it.
21148 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21149 * linux-low.h (struct process_info): Add th member.
21150 (thread_db_get_tls_address): New prototype.
21151 * remote-utils.c (decode_address): Make non-static.
21152 * server.c (handle_query): Handle qGetTLSAddr.
21153 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21154 * target.h (struct target_ops): Add get_tls_address.
21155 * thread-db.c (maybe_attach_thread): Save the thread handle.
21156 (thread_db_get_tls_address): New.
21157
32ca6d61
DJ
211582006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21159
21160 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21161 (linux_resume_one_process): Take a siginfo_t *. Update all
21162 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21163 (struct pending_signals): Add a siginfo_t.
21164 (linux_wait_for_process): Always set last_status.
21165 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21166 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21167 * linux-low.h (struct process_info): Add last_status.
21168
5ffff7c1
DJ
211692006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21170
21171 * remote-utils.c (try_rle): New function.
21172 (putpkt_binary): Use it.
21173
8695c747
DJ
211742006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21175
21176 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21177 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21178 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21179 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21180 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21181 point registers.
21182
290fadea
RS
211832006-08-08 Richard Sandiford <richard@codesourcery.com>
21184
21185 * server.c (terminal_fd): New variable.
21186 (old_foreground_pgrp): Likewise.
21187 (restore_old_foreground_pgrp): New function.
21188 (start_inferior): Record the terminal file descriptor in terminal_fd
21189 and its original foreground group in old_foreground_pgrp. Register
21190 restore_old_foreground_pgrp with atexit().
21191
9f2e1e63
DJ
211922006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21193
21194 * server.c (handle_query): Correct qPart to qXfer.
21195
b80864fb
DJ
211962006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21197
21198 * configure.ac: Check for more headers which are missing on
21199 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21200 * configure.srv: Add Cygwin and mingw32.
21201 * remote-utils.c: Don't include headers unconditionally which
21202 are missing on mingw32. Include <winsock.h> for mingw32.
21203 (remote_open): Adjust for mingw32 support. Flush
21204 standard error after writing to it.
21205 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21206 (unblock_async_io, enable_async_io, disable_async_io)
21207 (readchar, getpkt): Update for Winsock support.
21208 (prepare_resume_reply): Expect a protocol signal number.
21209 * server.c: Disable <sys/wait.h> on mingw32.
21210 (start_inferior): Adjust for mingw32 support. Flush
21211 standard error after writing to it.
21212 (attach_inferior): Likewise. Use protocol signal
21213 numbers.
21214 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21215 and names.
21216 * win32-i386-low.c: New file.
21217 * Makefile.in (XM_CLIBS): Set.
21218 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21219 (win32-i386-low.o): New dependency rule.
21220 * linux-low.c (linux_wait): Use target signal numbers.
21221 * target.h (struct target_ops): Doc fix.
21222 * server.h (target_signal_to_name): New prototype.
21223 * gdbreplay.c: Don't include headers unconditionally which
21224 are missing on mingw32. Include <winsock.h> for mingw32.
21225 (remote_close, remote_open): Adjust for Winsock support.
21226 * configure, config.in: Regenerated.
21227
0876f84a
DJ
212282006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21229
21230 * server.c (decode_xfer_read, write_qxfer_response): New.
21231 (handle_query): Take a packet length argument. Handle
21232 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21233 the qSupported response.
21234 (main): Update call to handle_query.
21235
01f9e8fa
DJ
212362006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21237
21238 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21239 (putpkt_binary): Renamed from putpkt and adjusted for binary
21240 data.
21241 (putpkt): New wrapper for putpkt_binary.
21242 (readchar): Don't mask off the high bit.
21243 (decode_X_packet): New function.
21244 * server.c (main): Call putpkt_binary if a handler sets the packet
21245 length. Save the length of the incoming packet. Handle 'X'.
21246 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21247
be2a5f71
DJ
212482006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21249
21250 * server.c (handle_query): Handle qSupported.
21251
ea025f5f
DJ
212522006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21253
21254 * remote-utils.c (all_symbols_looked_up): New variable.
21255 (look_up_one_symbol): Check it.
21256 * server.h (look_up_one_symbol): New declaration.
21257 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21258
9308fc88
DJ
212592006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21260
21261 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21262 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21263 (PTRACE_GET_THREAD_AREA): Define.
21264 (ps_get_thread_area): New function.
21265
52fb6437
NS
212662006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21267
21268 * configure.srv (m68k*-*-uclinux*): New target.
21269 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21270 (linux_resume_one_process): Remove extraneous cast.
21271 (linux_read_offsets): New.
21272 (linux_target_op): Add linux_read_offsets on mmuless systems.
21273 * server.c (handle_query): Add qOffsets logic.
21274 * target.h (struct target_ops): Add read_offsets.
21275
21b0f40c
DJ
212762006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21277
21278 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21279 (PTRACE_GET_THREAD_AREA): Define.
21280 (ps_get_thread_area): New function.
21281 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21282 (linux-x86-64-low.o): Update.
21283
0050a760
DJ
212842006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21285
21286 * configure.ac: Remove checks for prfpregset_t.
21287 * gdb_proc_service.h: New file.
21288 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21289 new "gdb_proc_service.h".
21290 * proc-service.c: Likewise.
21291 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21292 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21293 * Makefile.in (gdb_proc_service_h): Updated.
21294 * configure, config.in: Regenerated.
21295
b92a518e
DJ
212962006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21297
21298 * remote-utils.c (prepare_resume_reply): Move declaration
21299 of gdb_id_from_wait to the top of the block.
21300
545587ee
DJ
213012006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21302
21303 * linux-low.c (regsets_store_inferior_registers): Read the regset
21304 from the target before filling it.
21305
9db87ebd
DJ
213062006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21307
21308 * server.c (attach_inferior): Return SIGTRAP for a successful
21309 attach.
21310
dd24457d
DJ
213112006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21312
21313 * Makefile.in (OBS): Add version.o.
21314 (STAGESTUFF): Delete.
21315 (version.o): Add dependencies.
21316 (version.c): Replace rule.
21317 (clean): Remove version.c.
21318 * server.c (gdbserver_version): New.
21319 (gdbserver_usage): Use printf.
21320 (main): Handle --version and --help.
21321 * server.h (version, host_name): Add declarations.
21322
6f0f660e
EZ
213232005-12-23 Eli Zaretskii <eliz@gnu.org>
21324
889bf7c5
PA
21325 * linux-arm-low.c:
21326 * linux-arm-low.c:
21327 * inferiors.c:
21328 * i387-fp.h:
21329 * i387-fp.c:
21330 * gdbreplay.c:
21331 * regcache.c:
21332 * proc-service.c:
21333 * mem-break.h:
21334 * mem-break.c:
21335 * linux-x86-64-low.c:
21336 * linux-sh-low.c:
21337 * linux-s390-low.c:
21338 * linux-ppc64-low.c:
21339 * linux-ppc-low.c:
21340 * linux-mips-low.c:
21341 * linux-m68k-low.c:
21342 * linux-m32r-low.c:
21343 * linux-low.h:
21344 * linux-low.c:
21345 * linux-ia64-low.c:
21346 * linux-i386-low.c:
21347 * linux-crisv32-low.c:
21348 * thread-db.c:
21349 * terminal.h:
21350 * target.h:
21351 * target.c:
21352 * server.h:
21353 * server.c:
21354 * remote-utils.c:
21355 * regcache.h:
21356 * utils.c:
21357 * Makefile.in:
21358 * configure.ac:
6f0f660e
EZ
21359 * gdbserver.1: Add (C) after Copyright. Update the FSF
21360 address.
21361
9d1fb177
DJ
213622005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21363
21364 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21365 (arm_breakpoint_at): Recognize both breakpoints.
21366 (the_low_target): Use the correct breakpoint instruction.
21367
011a70c2
DJ
213682005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21369
21370 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21371 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21372 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21373 (the_low_target): Update.
21374
7fb85e41
AS
213752005-10-25 Andreas Schwab <schwab@suse.de>
21376
21377 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21378
21379 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21380 (ia64_num_regs): Reduce to 462.
21381
3db0444b
DJ
213822005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21383
21384 * acinclude.m4: Correct quoting.
21385 * aclocal.m4: Regenerated.
21386
21387 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21388 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21389 (thread_db_init): Call thread_db_err_str.
21390 * configure.ac: Check for TD_VERSION.
21391 * config.in, configure: Regenerated.
21392
bee0189a
DJ
213932005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21394
21395 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21396
e9d25b98
DJ
213972005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21398
21399 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21400 is not available. Define HAVE_PTRACE_GETREGS if it is.
21401 * config.in, configure: Regenerated.
21402 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21403 * linux-i386-low.c, linux-m68k-low.c: Update to use
21404 HAVE_PTRACE_GETREGS.
21405 * linux-low.c (regsets_fetch_inferior_registers)
21406 (regsets_store_inferior_registers): Only return 0 if we processed
21407 GENERAL_REGS.
21408 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21409 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21410
a06660f7
DJ
214112005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21412
21413 * inferiors.c (struct thread_info): Add gdb_id.
21414 (add_thread): Add gdb_id argument.
21415 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21416 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21417 calls to add_thread.
21418 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21419 * server.c (handle_query): Use thread_to_gdb_id.
21420 (handle_v_cont, main): Use gdb_id_to_thread_id.
21421 * server.h (add_thread): Update prototype.
21422 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21423 prototypes.
21424
5a1f5858
DJ
214252005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21426
21427 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21428 left-padded registers.
21429 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21430 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21431
e122f1f5
SE
214322005-07-01 Steve Ellcey <sje@cup.hp.com>
21433
21434 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21435 * configure: Regenerate.
21436 * config.in: Regenerate.
21437 * server.h (NEED_DECLARATION_STRERROR):
21438 Replace with !HAVE_DECL_STRERROR.
21439
d592fa2f
DJ
214402005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21441
21442 * linux-low.c (linux_wait, linux_send_signal): Don't test
21443 an unsigned long variable for > 0 if it could be MAX_ULONG.
21444 * server.c (myresume): Likewise.
21445 * target.c (set_desired_inferior): Likewise.
21446
ccbd4912
MK
214472005-06-13 Mark Kettenis <kettenis@gnu.org>
21448
21449 * configure.ac: Simplify and improve check for socklen_t.
21450 * configure, config.in: Regenerate.
21451
f450004a
DJ
214522005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21453
21454 * acconfig.h: Remove.
21455 * configure.ac: Add a test for socklen_t. Use three-argument
21456 AC_DEFINE throughout.
21457 * config.in: Regenerated using autoheader 2.59.
21458 * configure: Regenerated.
21459
21460 * gdbreplay.c (socklen_t): Provide a default.
21461 (remote_open): Use socklen_t.
21462 * remote-utils.c (socklen_t): Provide a default.
21463 (remote_open): Use socklen_t.
21464 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21465 unsigned char.
21466
21467 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21468 char for buffers.
21469 * linux-low.c (linux_read_memory, linux_write_memory)
21470 (linux_read_auxv): Likewise.
21471 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21472 (check_mem_write): Likewise.
21473 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21474 Likewise.
21475 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21476 (registers_from_string, register_data): Likewise.
21477 * server.c (handle_query, main): Likewise.
21478 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21479 (decode_M_packet): Likewise.
21480 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21481 * target.h (struct target_ops): Update read_memory, write_memory,
21482 and read_auxv.
21483 (read_inferior_memory, write_inferior_memory): Update.
21484 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21485 to unsigned char *.
21486 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21487 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21488 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21489 linux-s390-low.c, linux-sh-low.c: Update for changes in
21490 read_inferior_memory and the_low_target->breakpoint.
21491
eee84df1
DJ
214922005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21493
21494 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21495 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21496 * configure.srv: Add powerpc64-*-linux*.
21497 * linux-ppc64-low.c: New file.
21498
45b134e5
OF
214992005-05-23 Orjan Friberg <orjanf@axis.com>
21500
21501 * linux-cris-low.c: New file with support for CRIS.
21502 * linux-crisv32-low.c: Ditto for CRISv32.
21503 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21504 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21505 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21506 reg-crisv32.o, and reg-crisv32.c to make rules.
21507 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21508 recognized targets.
21509
48d93c75
UW
215102005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21511
21512 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21513 of sizeof (PTRACE_XFER_TYPE).
21514 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21515
e013ee27
OF
215162005-05-12 Orjan Friberg <orjanf@axis.com>
21517
889bf7c5 21518 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21519 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21520 pointers for hardware watchpoint support.
21521 * linux-low.h (struct linux_target_ops): Ditto.
21522 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21523 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21524 to linux_target_ops.
21525 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21526 reply packet.
21527 * server.c (main): Recognize 'Z' and 'z' packets.
21528
b0ded00b
UW
215292005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21530
21531 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21532 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21533 (the_low_target): Add new members.
21534
8643e2ad
DJ
215352005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21536
21537 * proc-service.c (ps_lgetregs): Search all_processes instead of
21538 all_threads.
21539
fc620387
DJ
215402005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21541
21542 * server.c (start_inferior): Change return type to int.
21543 (attach_inferior): Change sigptr to int *.
21544 (handle_v_cont, handle_v_requests): Change signal to int *.
21545 (main): Change signal to int.
21546
215472005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21548
21549 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21550 * configure.srv: Add m32r*-*-linux*.
21551 * linux-m32r-low.c: New file.
21552
e0e76420
DJ
215532005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21554
21555 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21556
a1928bad
DJ
215572005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21558
21559 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21560 Take unsigned long arguments for PIDs.
21561 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21562 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21563 (wait_for_sigstop, linux_resume_one_process)
21564 (regsets_fetch_inferior_registers, linux_send_signal)
21565 (linux_read_auxv): Likewise. Update the types of variables holding
21566 PIDs. Update format string specifiers.
21567 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21568 * remote-utils.c (prepare_resume_reply): Likewise.
21569 * server.c (cont_thread, general_thread, step_thread)
21570 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21571 unsigned long.
21572 (handle_query): Update format specifiers.
21573 (handle_v_cont, main): Use strtoul for thread IDs.
21574 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21575 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21576 (general_thread, step_thread, thread_from_wait)
21577 (old_thread_from_wait): Update.
21578 * target.h (struct thread_resume): Use unsigned long for THREAD.
21579 (struct target_ops): Use unsigned long for arguments to attach and
21580 thread_alive.
21581
dcdb98d2
DJ
215822005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21583
21584 * acinclude.m4: Include bfd/bfd.m4 directly.
21585 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21586 <agriffis@toolchain.org>.
21587 * aclocal.m4, configure: Regenerated.
21588
bec39cab
AC
215892005-01-07 Andrew Cagney <cagney@gnu.org>
21590
21591 * configure.ac: Rename configure.in, require autoconf 2.59.
21592 * configure: Re-generate.
21593
434c4c77
DJ
215942004-12-08 Daniel Jacobowitz <dan@debian.org>
21595
21596 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21597 LIBS when finished.
21598 * aclocal.m4: Regenerated.
21599 * configure: Regenerated.
21600
db1d3e1b
AS
216012004-11-21 Andreas Schwab <schwab@suse.de>
21602
21603 * linux-m68k-low.c (m68k_num_gregs): Define.
21604 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21605 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21606 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21607 (m68k_breakpoint_at): New. Add to the_low_target.
21608
21609 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21610 srv_linux_thread_db to yes.
21611
43360365
JB
216122004-10-20 Joel Brobecker <brobecker@gnat.com>
21613
21614 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21615 (ARCH_SET_FS): Likewise.
21616 (ARCH_GET_FS): Likewise.
21617 (ARCH_GET_GS): Likewise.
21618
fd500816
DJ
216192004-10-16 Daniel Jacobowitz <dan@debian.org>
21620
21621 * linux-i386-low.c (ps_get_thread_area): New.
21622 * linux-x86-64-low.c (ps_get_thread_area): New.
21623 * linux-low.c: Include <sys/syscall.h>.
21624 (linux_kill_one_process): Don't kill the first thread here.
21625 (linux_kill): Kill the first thread here.
21626 (kill_lwp): New function.
21627 (send_sigstop, linux_send_signal): Use it.
21628 * proc-service.c: Clean up #ifdefs.
21629 (fpregset_info): Delete.
21630 (ps_lgetregs): Update and enable implementation.
21631 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21632 implementations.
21633 * remote-utils.c (struct sym_cache, symbol_cache): New.
21634 (input_interrupt): Print a clearer message.
21635 (async_io_enabled): New variable.
21636 (enable_async_io, disable_async_io): Use it. Update comments.
21637 (look_up_one_symbol): Use the symbol cache.
21638 * thread-db.c (thread_db_look_up_symbols): New function.
21639 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21640
f6de3c42
DJ
216412004-10-16 Daniel Jacobowitz <dan@debian.org>
21642
21643 * configure.in: Test for -rdynamic.
21644 * configure: Regenerated.
21645 * Makefile (INTERNAL_LDFLAGS): New.
21646 (gdbserver, gdbreplay): Use it.
21647
2c0fc042
AC
216482004-09-02 Andrew Cagney <cagney@gnu.org>
21649
21650 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21651
075b3282
DJ
216522004-03-23 Daniel Jacobowitz <drow@mvista.com>
21653
21654 * linux-low.c (linux_wait): Clear all_processes list also.
21655
fa6a77dc
DJ
216562004-03-12 Daniel Jacobowitz <drow@mvista.com>
21657
21658 * linux-low.c: Include <errno.h>. Remove extern declaration of
21659 errno.
21660
6d782a97
DJ
216612004-03-12 Daniel Jacobowitz <drow@mvista.com>
21662
21663 * gdbreplay.c, server.h, utils.c: Update copyright years.
21664
3a7fb99b
DJ
216652004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21666
21667 * server.c (main): Print child status or termination signal from
21668 variable 'signal', not 'sig'.
21669
c3e735a6
DJ
216702004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21671
21672 * linux-low.c (linux_read_memory): Change return type to
21673 int. Check for and return error from ptrace().
21674 * target.c (read_inferior_memory): Change return type to int. Pass
21675 back return status from the_target->read_memory().
21676 * target.h (struct target_ops): Adapt *read_memory() prototype.
21677 Update comment.
21678 (read_inferior_memory): Adapt prototype.
21679 * server.c (main): Return an error packet if
21680 read_inferior_memory() returns an error.
21681
a59d1c82
DJ
216822004-03-04 Daniel Jacobowitz <drow@mvista.com>
21683
21684 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21685 Unify with other clean targets.
21686
dc3f8883
DJ
216872004-02-29 Daniel Jacobowitz <drow@mvista.com>
21688
21689 * server.c (handle_v_cont): Call set_desired_inferior.
21690
89a208da
DJ
216912004-02-29 Daniel Jacobowitz <drow@mvista.com>
21692
21693 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21694
62ea82f5
DJ
216952004-02-29 Daniel Jacobowitz <drow@mvista.com>
21696
21697 * linux-low.c (linux_wait): Unblock async I/O.
21698 (linux_resume): Block and enable async I/O.
21699 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21700 * server.h (block_async_io, unblock_async_io): Add prototypes.
21701
6910d122
DJ
217022004-02-29 Daniel Jacobowitz <drow@mvista.com>
21703
21704 * remote-utils.c (remote_open): Print a status notice after
21705 opening a TCP port.
21706 * server.c (attach_inferior): Print a status notice after
21707 attaching.
21708
217092004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21710
21711 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21712
c89dc5d4
DJ
217132004-02-26 Daniel Jacobowitz <drow@mvista.com>
21714
21715 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21716 error packet.
21717 * server.c, target.h: Update copyright years.
21718
4b8dad4a
RM
217192004-02-25 Roland McGrath <roland@redhat.com>
21720
21721 * target.h (struct target_ops): New member `read_auxv'.
21722 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21723 * linux-low.c (linux_read_auxv): New function.
21724 (linux_target_ops): Initialize `read_auxv' member to that.
21725
d7446758
JB
217262004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21727
21728 Committed by Jim Blandy <jimb@redhat.com>.
21729
21730 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21731 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21732 instead of GPR_SIZE to distiguish s390 and s390x targets.
21733
5544ad89
DJ
217342004-01-31 Daniel Jacobowitz <drow@mvista.com>
21735
21736 * linux-low.c: Update copyright year.
21737 (check_removed_breakpoint): Clear pending_is_breakpoint.
21738 (linux_set_resume_request, linux_queue_one_thread)
21739 (resume_status_pending_p): New functions.
21740 (linux_continue_one_thread): Use process->resume.
21741 (linux_resume): Only resume threads if there are no pending events.
21742 * linux-low.h (struct process_info): Add resume request
21743 pointer.
21744
2a68b70e
DJ
217452004-01-30 Daniel Jacobowitz <drow@mvista.com>
21746
21747 * regcache.c (new_register_cache): Clear the allocated register
21748 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21749
64386c31
DJ
217502003-10-13 Daniel Jacobowitz <drow@mvista.com>
21751
21752 * linux-low.c (linux_resume): Take a struct thread_resume *
21753 argument.
21754 (linux_wait): Update call.
21755 (resume_ptr): New static variable.
21756 (linux_continue_one_thread): Renamed from
21757 linux_continue_one_process. Use resume_ptr.
21758 (linux_resume): Use linux_continue_one_thread.
21759 * server.c (handle_v_cont, handle_v_requests): New functions.
21760 (myresume): New function.
21761 (main): Handle 'v' case.
21762 * target.h (struct thread_resume): New type.
21763 (struct target_ops): Change argument of "resume" to struct
21764 thread_resume *.
21765 (myresume): Delete macro.
21766
c938e9b0
L
217672003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21768
21769 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21770 (uninstall): Support DESTDIR.
21771
7f313d07
BC
21772Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21773
21774 * configure.srv: Add xscale*linux copy of arm*linux entry.
21775
3b2fc2ea
DJ
217762003-07-24 Daniel Jacobowitz <drow@mvista.com>
21777
21778 * linux-arm-low.c (arm_reinsert_addr): New function.
21779 (the_low_target): Add arm_reinsert_addr.
21780
1c0a559e
MK
217812003-07-08 Mark Kettenis <kettenis@gnu.org>
21782
21783 * mem-break.c: Remove whitespace at end of file.
21784
43d5792c
DJ
217852003-06-28 Daniel Jacobowitz <drow@mvista.com>
21786
21787 * configure.in: Check whether we need to prototype strerror.
21788 * server.h: Optionally prototype strerror.
21789 * gdbreplay.c (perror_with_name): Use strerror.
21790 * linux-low.c (linux_attach_lwp): Use strerror.
21791 * utils.c (perror_with_name): Use strerror.
21792 * config.in, configure: Regenerated.
21793
c8a86edf
DJ
217942003-06-28 Daniel Jacobowitz <drow@mvista.com>
21795
21796 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21797 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21798
73d37363
DJ
217992003-06-20 Daniel Jacobowitz <drow@mvista.com>
21800
21801 * Makefile.in (SFILES): Update.
21802 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21803 low-sun3.c: Remove files.
21804
6ad8ae5c
DJ
218052003-06-17 Daniel Jacobowitz <drow@mvista.com>
21806
21807 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21808 (linux_detach_one_process, linux_detach): New functions.
21809 (linux_target_ops): Add linux_detach.
21810 * server.c (main): Handle 'D' packet.
21811 * target.h (struct target_ops): Add "detach" member.
21812 (detach_inferior): Define.
21813
1581182a
MK
218142003-06-13 Mark Kettenis <kettenis@gnu.org>
21815
21816 From Kelley Cook <kelleycook@wideopenwest.com>:
21817 * configure.srv: Accept i[34567]86 variants.
21818
e5379b03
DJ
218192003-06-05 Daniel Jacobowitz <drow@mvista.com>
21820
21821 * linux-low.c (linux_wait_for_event): Correct comment typos.
21822 (linux_resume_one_process): Call check_removed_breakpoint.
21823 (linux_send_signal): New function.
21824 (linux_target_ops): Add linux_send_signal.
21825 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21826 of kill.
21827 * target.h (struct target_ops): Add send_signal.
21828
2ff29de4
JB
218292003-05-29 Jim Blandy <jimb@redhat.com>
21830
21831 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21832 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21833 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21834 away part of the register's value.
21835
254787d4
DJ
218362003-03-26 Daniel Jacobowitz <drow@mvista.com>
21837
21838 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21839 (linux_wait_for_event, linux_init_signals): Likewise.
21840
94e10508
DJ
218412003-03-17 Daniel Jacobowitz <drow@mvista.com>
21842
21843 * configure.in: Check for stdlib.h.
21844 * configure: Regenerated.
21845 * config.in: Regenerated.
21846
4c0711e0
DJ
218472003-01-04 Andreas Schwab <schwab@suse.de>
21848
21849 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21850
ef66e766
AC
218512003-01-02 Andrew Cagney <ac131313@redhat.com>
21852
21853 * Makefile.in: Remove obsolete code.
21854
a1358604
DJ
218552002-11-20 Daniel Jacobowitz <drow@mvista.com>
21856
21857 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21858 defined(PT_FPR0_HI).
21859
23ce3b1c
DJ
218602002-11-17 Stuart Hughes <seh@zee2.com>
21861
21862 * linux-arm-low.c (arm_num_regs): Increase.
21863 (arm_regmap): Include status register.
21864
218652002-11-17 Daniel Jacobowitz <drow@mvista.com>
21866
21867 * linux-low.c (register_addr): Remove incorrect -1 check.
21868
a9fa9f7d
DJ
218692002-08-29 Daniel Jacobowitz <drow@mvista.com>
21870
21871 * linux-low.c (linux_create_inferior): Call setpgid. Return
21872 the new PID.
21873 (unstopped_p, linux_signal_pid): Remove.
21874 (linux_target_ops): Remove linux_signal_pid.
21875 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21876 global instead of target method.
21877 * target.h (struct target_ops): Remove signal_pid. Update comment
21878 for create_inferior.
21879 * server.c (signal_pid): New variable.
21880 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21881 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21882 (attach_inferior): Set signal_pid.
21883
17574093
DJ
218842002-08-23 Daniel Jacobowitz <drow@mvista.com>
21885
21886 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21887
218882002-08-20 Jim Blandy <jimb@redhat.com>
21889
21890 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21891 default for this.
21892
218932002-08-01 Andrew Cagney <cagney@redhat.com>
21894
21895 * Makefile.in: Make chill references obsolete.
21896
218972002-07-24 Kevin Buettner <kevinb@redhat.com>
21898
21899 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21900 * configure: Regenerate.
21901 * config.in: Regenerate.
21902
219032002-07-09 David O'Brien <obrien@FreeBSD.org>
21904
21905 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21906 (perror_with_name, remote_close, remote_open, expect, play): Static.
21907
219082002-07-04 Michal Ludvig <mludvig@suse.cz>
21909
4b8dad4a 21910 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21911 byte offsets instead of an array of indexes.
21912 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21913
219142002-06-13 Daniel Jacobowitz <drow@mvista.com>
21915
21916 * regcache.c: Add comment.
21917
219182002-06-11 Daniel Jacobowitz <drow@mvista.com>
21919
21920 * thread-db.c: New file.
21921 * proc-service.c: New file.
21922 * acinclude.m4: New file.
21923 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21924 proc-service.o, and thread-db.o.
21925 (linux-low.o): Add USE_THREAD_DB.
21926 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21927 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21928 * aclocal.m4: Regenerated.
21929 * config.in: Regenerated.
21930 * configure: Regenerated.
21931 * configure.in: Check for proc_service.h, sys/procfs.h,
21932 thread_db.h, and linux/elf.h headrs.
21933 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21934 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21935 Check for -lthread_db and thread support.
21936 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21937 PowerPC, and SuperH.
21938 * i387-fp.c: Constify arguments.
21939 * i387-fp.h: Likewise.
21940 * inferiors.c: (struct thread_info): Renamed from
21941 `struct inferior_info'. Remove PID member. Use generic inferior
21942 list header. All uses updated.
21943 (inferiors, signal_pid): Removed.
21944 (all_threads): New variable.
21945 (get_thread): Define.
21946 (add_inferior_to_list): New function.
21947 (for_each_inferior): New function.
21948 (change_inferior_id): New function.
21949 (add_inferior): Removed.
21950 (remove_inferior): New function.
21951 (add_thread): New function.
21952 (free_one_thread): New function.
21953 (remove_thread): New function.
21954 (clear_inferiors): Use for_each_inferior and free_one_thread.
21955 (find_inferior): New function.
21956 (find_inferior_id): New function.
21957 (inferior_target_data): Update argument type.
21958 (set_inferior_target_data): Likewise.
21959 (inferior_regcache_data): Likewise.
21960 (set_inferior_regcache_data): Likewise.
21961 * linux-low.c (linux_bp_reinsert): Remove.
21962 (all_processes, stopping_threads, using_thrads)
21963 (struct pending_signals, debug_threads, pid_of): New.
21964 (inferior_pid): Replace with macro.
21965 (struct inferior_linux_data): Remove.
21966 (get_stop_pc, add_process): New functions.
21967 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21968 Use add_process and add_thread.
21969 (linux_attach_lwp): New function, based on old linux_attach. Use
21970 add_process and add_thread. Set stop_expected for new threads.
21971 (linux_attach): New function.
21972 (linux_kill_one_process): New function.
21973 (linux_kill): Kill all LWPs.
21974 (linux_thread_alive): Use find_inferior_id.
21975 (check_removed_breakpoints, status_pending_p): New functions.
21976 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21977 Update. Use WNOHANG. Wait for cloned processes also. Update process
21978 struct for the found process.
21979 (linux_wait_for_event): New function.
21980 (linux_wait): Use it. Support LWPs.
21981 (send_sigstop, wait_for_sigstop, stop_all_processes)
21982 (linux_resume_one_process, linux_continue_one_process): New functions.
21983 (linux_resume): Support LWPs.
21984 (REGISTER_RAW_SIZE): Remove.
21985 (fetch_register): Use register_size instead. Call supply_register.
21986 (usr_store_inferior_registers): Likewise. Call collect_register.
21987 Fix recursive case.
21988 (regsets_fetch_inferior_registers): Improve error message.
21989 (regsets_store_inferior_registers): Add debugging.
21990 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21991 (unstopped_p, linux_signal_pid): New functions.
21992 (linux_target_ops): Add linux_signal_pid.
21993 (linux_init_signals): New function.
21994 (initialize_low): Call it. Initialize using_threads.
21995 * regcache.c (inferior_regcache_data): Add valid
21996 flag.
21997 (get_regcache): Fetch registers lazily. Add fetch argument
21998 and update all callers.
21999 (regcache_invalidate_one, regcache_invalidate): New
22000 functions.
22001 (new_register_cache): Renamed from create_register_cache.
22002 Return the new regcache.
22003 (free_register_cache): Change argument to a void *.
22004 (registers_to_string, registers_from_string): Call get_regcache
22005 with fetch flag set.
22006 (register_data): Make static. Pass fetch flag to get_regcache.
22007 (supply_register): Call get_regcache with fetch flag clear.
22008 (collect_register): Call get_regcache with fetch flag set.
22009 (collect_register_as_string): New function.
22010 * regcache.h: Update.
22011 * remote-utils.c (putpkt): Flush after debug output and use
22012 stderr.
22013 Handle input interrupts while waiting for an ACK.
22014 (input_interrupt): Use signal_pid method.
22015 (getpkt): Flush after debug output and use stderr.
22016 (outreg): Use collect_register_as_string.
22017 (new_thread_notify, dead_thread_notify): New functions.
22018 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22019 and general_thread.
22020 (look_up_one_symbol): Flush after debug output.
22021 * server.c (step_thread, server_waiting): New variables.
22022 (start_inferior): Don't use signal_pid. Update call to mywait.
22023 (attach_inferior): Update call to mywait.
22024 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22025 (main): Don't fetch/store registers explicitly. Use
22026 set_desired_inferior. Support proposed ``Hs'' packet. Update
22027 calls to mywait.
22028 * server.h: Update.
22029 (struct inferior_list, struct_inferior_list_entry): New.
22030 * target.c (set_desired_inferior): New.
22031 (write_inferior_memory): Constify.
22032 (mywait): New function.
22033 * target.h: Update.
22034 (struct target_ops): New signal_pid method.
22035 (mywait): Removed macro, added prototype.
22036
22037 * linux-low.h (regset_func): Removed.
22038 (regset_fill_func, regset_store_func): New.
22039 (enum regset_type): New.
22040 (struct regset_info): Add type field. Use new operation types.
22041 (struct linux_target_ops): stop_pc renamed to get_pc.
22042 Add decr_pc_after_break and breakpoint_at.
22043 (get_process, get_thread_proess, get_process_thread)
22044 (strut process_info, all_processes, linux_attach_lwp)
22045 (thread_db_init): New.
22046
22047 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22048 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22049 (the_low_target): Add new members.
22050 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22051 (i386_store_fpxregset): Constify.
22052 (target_regsets): Add new kind identifier.
22053 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22054 (i386_set_pc): Add debugging.
22055 (i386_breakpoint_at): New function.
22056 (the_low_target): Add new members.
22057 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22058 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22059 (mips_breakpoint_at): New.
22060 (the_low_target): Add new members.
22061 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22062 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22063 (the_low_target): Add new members.
22064 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22065 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22066 (the_low_target): Add new members.
22067 * linux-x86-64-low.c (target_regsets): Add new kind
22068 identifier.
22069
220702002-05-15 Daniel Jacobowitz <drow@mvista.com>
22071
22072 From Martin Pool <mbp@samba.org>:
22073 * server.c (gdbserver_usage): New function.
22074 (main): Call it.
22075
220762002-05-14 Daniel Jacobowitz <drow@mvista.com>
22077
22078 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22079 stop_at -> stop_pc.
22080
220812002-05-04 Andrew Cagney <ac131313@redhat.com>
22082
22083 * Makefile.in: Remove obsolete code.
22084
220852002-04-24 Michal Ludvig <mludvig@suse.cz>
22086
22087 * linux-low.c (regsets_fetch_inferior_registers),
22088 (regsets_store_inferior_registers): Removed cast to int from
22089 ptrace() calls.
22090 * regcache.h: Added declaration of struct inferior_info.
22091
220922002-04-20 Daniel Jacobowitz <drow@mvista.com>
22093
22094 * inferiors.c (struct inferior_info): Add regcache_data.
22095 (add_inferior): Call create_register_cache.
22096 (clear_inferiors): Call free_register_cache.
22097 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22098 * regcache.c (struct inferior_regcache_data): New.
22099 (registers): Remove.
22100 (get_regcache): New function.
22101 (create_register_cache, free_register_cache): New functions.
22102 (set_register_cache): Don't initialize the register cache here.
22103 (registers_to_string, registers_from_string, register_data): Call
22104 get_regcache.
22105 * regcache.h: Add prototypes.
22106 * server.h: Likewise.
22107
221082002-04-20 Daniel Jacobowitz <drow@mvista.com>
22109
22110 * mem-break.c: New file.
22111 * mem-break.h: New file.
22112 * Makefile.in: Add mem-break.o rule; update server.h
22113 dependencies.
22114 * inferiors.c (struct inferior_info): Add target_data
22115 member.
22116 (clear_inferiors): Free target_data member if set.
22117 (inferior_target_data, set_inferior_target_data): New functions.
22118 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22119 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22120 * linux-low.c (linux_bp_reinsert): New variable.
22121 (struct inferior_linux_data): New.
22122 (linux_create_inferior): Use set_inferior_target_data.
22123 (linux_attach): Likewise. Call add_inferior.
22124 (linux_wait_for_one_inferior): New function.
22125 (linux_wait): Call it.
22126 (linux_write_memory): Add const.
22127 (initialize_low): Call set_breakpoint_data.
22128 * linux-low.h (struct linux_target_ops): Add breakpoint
22129 handling members.
22130 * server.c (attach_inferior): Remove extra add_inferior
22131 call.
22132 * server.h: Include mem-break.h. Update inferior.c
22133 prototypes.
22134 * target.c (read_inferior_memory)
22135 (write_inferior_memory): New functions.
22136 * target.h (read_inferior_memory)
22137 (write_inferior_memory): Change macros to prototypes.
22138 (struct target_ops): Update comments. Add const to write_memory
22139 definition.
22140
221412002-04-11 Daniel Jacobowitz <drow@mvista.com>
22142
22143 * linux-low.c (usr_store_inferior_registers): Support
22144 registers which are allowed to fail to store.
22145 * linux-low.h (linux_target_ops): Likewise.
22146 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22147 (ppc_cannot_store_register): FPSCR may not be storable.
22148
221492002-04-09 Daniel Jacobowitz <drow@mvista.com>
22150
22151 * server.h: Include <string.h> if HAVE_STRING_H.
22152 * ChangeLog: Correct paths in last ChangeLog entry.
22153
221542002-04-09 Daniel Jacobowitz <drow@mvista.com>
22155
22156 * linux-low.h: Remove obsolete prototypes.
22157 (struct linux_target_ops): New.
22158 (extern the_low_target): New.
22159 * linux-low.c (num_regs, regmap): Remove declarations.
22160 (register_addr): Use the_low_target explicitly.
22161 (fetch_register): Likewise.
22162 (usr_fetch_inferior_registers): Likewise.
22163 (usr_store_inferior_registers): Likewise.
22164 * linux-arm-low.c (num_regs): Remove.
22165 (arm_num_regs): Define.
22166 (arm_regmap): Renamed from regmap, made static.
22167 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22168 made static.
22169 (arm_cannot_store_register): Renamed from cannot_store_register,
22170 made static.
22171 (the_low_target): New.
22172 * linux-i386-low.c (num_regs): Remove.
22173 (i386_num_regs): Define.
22174 (i386_regmap): Renamed from regmap, made static.
22175 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22176 made static.
22177 (i386_cannot_store_register): Renamed from cannot_store_register,
22178 made static.
22179 (the_low_target): New.
22180 * linux-ia64-low.c (num_regs): Remove.
22181 (ia64_num_regs): Define.
22182 (ia64_regmap): Renamed from regmap, made static.
22183 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22184 made static.
22185 (ia64_cannot_store_register): Renamed from cannot_store_register,
22186 made static.
22187 (the_low_target): New.
22188 * linux-m68k-low.c (num_regs): Remove.
22189 (m68k_num_regs): Define.
22190 (m68k_regmap): Renamed from regmap, made static.
22191 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22192 made static.
22193 (m68k_cannot_store_register): Renamed from cannot_store_register,
22194 made static.
22195 (the_low_target): New.
22196 * linux-mips-low.c (num_regs): Remove.
22197 (mips_num_regs): Define.
22198 (mips_regmap): Renamed from regmap, made static.
22199 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22200 made static.
22201 (mips_cannot_store_register): Renamed from cannot_store_register,
22202 made static.
22203 (the_low_target): New.
22204 * linux-ppc-low.c (num_regs): Remove.
22205 (ppc_num_regs): Define.
22206 (ppc_regmap): Renamed from regmap, made static.
22207 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22208 made static.
22209 (ppc_cannot_store_register): Renamed from cannot_store_register,
22210 made static.
22211 (the_low_target): New.
22212 * linux-s390-low.c (num_regs): Remove.
22213 (s390_num_regs): Define.
22214 (s390_regmap): Renamed from regmap, made static.
22215 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22216 made static.
22217 (s390_cannot_store_register): Renamed from cannot_store_register,
22218 made static.
22219 (the_low_target): New.
22220 * linux-sh-low.c (num_regs): Remove.
22221 (sh_num_regs): Define.
22222 (sh_regmap): Renamed from regmap, made static.
22223 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22224 made static.
22225 (sh_cannot_store_register): Renamed from cannot_store_register,
22226 made static.
22227 (the_low_target): New.
22228 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22229 (the_low_target): New.
22230
222312002-04-09 Daniel Jacobowitz <drow@mvista.com>
22232
22233 * Makefile.in: Add stamp-h target.
22234 * configure.in: Create stamp-h.
22235 * configure: Regenerated.
22236
222372002-04-09 Daniel Jacobowitz <drow@mvista.com>
22238
22239 * inferiors.c: New file.
22240 * target.c: New file.
22241 * target.h: New file.
22242 * Makefile.in: Add target.o and inferiors.o. Update
22243 dependencies.
22244 * linux-low.c (inferior_pid): New static variable,
22245 moved from server.c.
22246 (linux_create_inferior): Renamed from create_inferior.
22247 Call add_inferior. Return 0 on success instead of a PID.
22248 (linux_attach): Renamed from myattach.
22249 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22250 (linux_thread_alive): Renamed from mythread_alive.
22251 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22252 child dies.
22253 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22254 (regsets_store_inferior_registers): Correct error message.
22255 Add missing ``return 0''.
22256 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22257 (linux_store_registers): Renamed from store_inferior_registers.
22258 (linux_read_memory): Renamed from read_inferior_memory.
22259 (linux_write_memory): Renamed from write_inferior_memory.
22260 (linux_target_ops): New structure.
22261 (initialize_low): Call set_target_ops ().
22262 * remote-utils.c (unhexify): New function.
22263 (hexify): New function.
22264 (input_interrupt): Send signals to ``signal_pid''.
22265 * server.c (inferior_pid): Remove.
22266 (start_inferior): Update create_inferior call.
22267 (attach_inferior): Call add_inferior.
22268 (handle_query): New function.
22269 (main): Call handle_query for `q' packets.
22270 * server.h: Include "target.h". Remove obsolete prototypes.
22271 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22272
222732002-04-09 Daniel Jacobowitz <drow@mvista.com>
22274
22275 * Makefile.in: Add WARN_CFLAGS. Update configury
22276 dependencies.
22277 * configure.in: Check for <string.h>
22278 * configure: Regenerate.
22279 * config.in: Regenerate.
22280 * gdbreplay.c: Include needed system headers.
22281 (remote_open): Remove strchr prototype.
22282 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22283 * regcache.c (supply_register): Change buf argument to const void *.
22284 (supply_register_by_name): Likewise.
22285 (collect_register): Change buf argument to void *.
22286 (collect_register_by_name): Likewise.
22287 * regcache.h: Add missing prototypes.
22288 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22289 * server.c (handle_query): New function.
22290 (attached): New static variable, moved out of main.
22291 (main): Quiet longjmp clobber warnings.
22292 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22293 * utils.c (error): Remove NORETURN.
22294 (fatal): Likewise.