]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Use simple_search_memory in gdbserver
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
55b10d89
TT
12020-10-07 Tom Tromey <tromey@adacore.com>
2
3 * server.cc (handle_search_memory_1): Remove.
4 (handle_search_memory): Use simple_search_memory.
5
a038ffd8
SM
62020-10-07 Simon Marchi <simon.marchi@efficios.com>
7
8 * Makefile.in (COMPILE): Add CXXFLAGS.
9 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
10 (gdbserver$(EXEEXT)): Add CXXFLAGS.
11 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
12 ($(IPA_LIB)): Add CXXFLAGS.
13 (IPAGENT_COMPILE): Add CXXFLAGS.
14
bbe90b5d 152020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
16
17 * configure.srv: Support ARC architecture.
18 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
19 * linux-arc-low.cc: New file.
20
48491055
KR
212020-10-07 Kamil Rytarowski <n54@gmx.com>
22
23 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
24 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
25 (netbsd_process_target::qxfer_libraries_svr4): Update.
26
2be01f63
KR
272020-10-07 Kamil Rytarowski <n54@gmx.com>
28
29 * netbsd-low.cc: Fix whitespace formatting.
30 * netbsd-amd64-low.cc: Likewise.
31
91e5e8db
KR
322020-10-07 Kamil Rytarowski <n54@gmx.com>
33
34 * netbsd-low.cc (netbsd_process_target::read_memory)
35 (netbsd_process_target::write_memory): Update.
36
9529c852
KR
372020-10-07 Kamil Rytarowski <n54@gmx.com>
38
39 * netbsd-aarch64-low.cc: Add.
40 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
41 * configure.srv: Add aarch64*-*-netbsd*.
42
981b570a
SV
432020-10-06 Shahab Vahedi <shahab@synopsys.com>
44
45 * regcache.cc (register_data): Remove unused "fetch" argument.
46
6b01403b
SM
472020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * server.cc (handle_monitor_command): Handle "set
50 debug-event-loop".
51 (captured_main): Handle "--debug-event-loop".
52 (monitor_show_help): Mention new setting.
53 (gdbserver_usage): Mention new flag.
54
2554f6f5
SM
552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
56
57 * linux-low.cc (linux_process_target::async): Pass name to
58 add_file_handler.
59 * remote-utils.cc (handle_accept_event): Likewise.
60 (remote_open): Likewise.
61
8b667fae
KR
622020-10-01 Kamil Rytarowski <n54@gmx.com>
63
64 * netbsd-i386-low.cc: Add.
65 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
66 * configure.srv: Add i[34567]86-*-netbsd*.
67
15397b0e
KR
682020-10-01 Kamil Rytarowski <n54@gmx.com>
69
70 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
71 (netbsd_target_regsets): Now const.
72 (the_low_target): Remove.
73 (class netbsd_amd64_target, the_netbsd_amd64_target)
74 (the_netbsd_target): Add.
75 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
76 low_arch_setup ().
77 (netbsd_process_target::fetch_registers)
78 (netbsd_process_target::store_registers, initialize_low): Update.
79 (the_netbsd_target): Remove.
80 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
81 (the_low_target, netbsd_tdesc): Remove.
82 (netbsd_process_target::get_regs_info)
83 (netbsd_process_target::low_arch_setup): Add.
84
99bb393f
HD
852020-09-23 Hannes Domani <ssbssa@yahoo.de>
86
87 * win32-low.cc: Remove local wow64_process variable.
88 * win32-low.h: Remove local wow64_process variable.
89
b60cea74
TT
902020-09-18 Tom Tromey <tromey@adacore.com>
91
92 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
93 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
94 (netbsd_process_target::wait): Change type of target_options.
95 * win32-low.h (class win32_process_target) <wait>: Update.
96 * win32-low.cc (win32_process_target::wait): Update.
97 * target.h (class process_stratum_target) <wait>: Update.
98 (mywait): Update.
99 * target.cc (mywait, target_wait): Change type of "options".
100 * linux-low.h (class linux_process_target) <wait, wait_1>:
101 Update.
102 * linux-low.cc (linux_process_target::wait)
103 (linux_process_target::wait_1): Update.
104
db92ac45
TT
1052020-09-15 Tom Tromey <tromey@adacore.com>
106
107 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
108 (xmltarget_amd64_linux_no_xml): Now arrays.
109
27087b7f
TT
1102020-09-14 Tom Tromey <tromey@adacore.com>
111
112 * tracepoint.cc (eval_result_names): Now const.
113 * ax.cc (gdb_agent_op_names): Now const.
114
62ba5048
KR
1152020-09-10 Kamil Rytarowski <n54@gmx.com>
116
117 * netbsd-low.cc: Add.
118 * netbsd-low.h: Likewise.
119 * netbsd-amd64-low.cc: Likewise.
120 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
121 "netbsd-amd64-low.cc".
122 * configure.srv: Add x86_64-*-netbsd*.
123
ece5bc8a
SM
1242020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
125
126 * server.cc (captured_main): Accept multiple `--selftest=`
127 options. Pass all `--selftest=` arguments to run_tests.
128
c8693053
RO
1292020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
130
131 * configure, config.in: Regenerate.
132
05a6b8c2
EZ
1332020-07-26 Eli Zaretskii <eliz@gnu.org>
134
135 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
136 When checking whether socklen_t type is defined, use ws2tcpip.h if
137 it is available and sys/socket.h isn't.
138 * configure: Regenerate.
139 * config.in: Regenerate.
140
028a4603
PA
1412020-07-22 Pedro Alves <pedro@palves.net>
142
143 * inferiors.cc (switch_to_process): New, moved here from
144 thread-db.cc, and made extern.
145 * inferiors.h (switch_to_process): Declare.
146 * server.cc: Include "gdbsupport/scoped_restore.h".
147 (handle_qxfer_threads_proper): Now returns bool. Prepare to
148 access memory around target calls.
149 (handle_qxfer_threads): Handle errors.
150 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
151
05c309a8
SM
1522020-07-21 Simon Marchi <simon.marchi@efficios.com>
153
154 * linux-low.cc (stopped_pids): Make static.
155
0e267416
AB
1562020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * tdesc.cc (allocate_target_description): Add header comment.
159 (target_desc_deleter::operator()): New function.
160 * tdesc.h (struct target_desc): Declare as final.
161
b315b67d
SM
1622020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * server.cc (handle_query): Use std::vector of
165 std::string for `qsupported` vector. Use separate
166 vector for unknowns.
167 * target.h (class process_stratum_target) <process_qsupported>:
168 Change parameters to array_view of const char *.
169 (target_process_qsupported): Remove `count` parameter.
170 * target.cc (process_stratum_target::process_qsupported): Change
171 parameters to array_view of const char *.
172 * linux-x86-low.cc (class x86_target) <process_qsupported>:
173 Likewise.
174
f638ed73
TV
1752020-06-29 Tom de Vries <tdevries@suse.de>
176
177 * ax.h: Include gdbsupport/debug_agent.h.
178
fbf42f4e
AB
1792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * tdesc.cc (struct tdesc_compatible_info): New struct.
182 (tdesc_compatible_info_list): New function.
183 (tdesc_compatible_info_arch_name): New function.
184
013e3554
TBA
1852020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
186
187 Use std::list to stop pending signal instead of manually-created
188 linked list.
189 * linux-low.h: Include <list>.
190 (struct pending_signal): Move here from linux-low.cc.
191 (struct lwp_info) <pending_signals>
192 <pending_signals_to_report>: Update the type.
193 * linux-low.cc (struct pending_signals): Remove.
194 (linux_process_target::delete_lwp)
195 (linux_process_target::add_lwp)
196 (enqueue_one_deferred_signal)
197 (dequeue_one_deferred_signal)
198 (enqueue_pending_signal)
199 (linux_process_target::resume_one_lwp_throw)
200 (linux_process_target::thread_needs_step_over)
201 (linux_process_target::resume_one_thread)
202 (linux_process_target::proceed_one_lwp): Update the use of pending
203 signal list.
204
7d458ea5
SM
2052020-06-17 Simon Marchi <simon.marchi@efficios.com>
206
207 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
208 Remove.
209
84b300de
SM
2102020-06-12 Simon Marchi <simon.marchi@efficios.com>
211
212 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
213 * configure.srv: Remove mingw32ce cases.
214 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
215 * win32-low.h (to_back_slashes): Remove.
216 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
217
96c16e2b
SM
2182020-06-12 Simon Marchi <simon.marchi@efficios.com>
219
220 * Makefile.in (SFILES): linux-tile-low.cc.
221 * configure.srv: Remove tilegx case.
222 * linux-tile-low.cc: Remove.
223
bd1467ae
SM
2242020-06-12 Simon Marchi <simon.marchi@efficios.com>
225
226 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
227 * configure.srv: Remove m32r case.
228 * linux-m32r-low.cc: Remove.
229
7b46bf6f
SM
2302020-06-12 Simon Marchi <simon.marchi@efficios.com>
231
232 * Makefile.in (SFILES): Remove linux-cris-low.c.
233 * configure.srv: Remove cris cases.
234 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
235
1fa29f56
SM
2362020-06-12 Simon Marchi <simon.marchi@efficios.com>
237
238 * Makefile.in (SFILES): Remove linux-bfin-low.c.
239 * configure.srv: Remove bfin case.
240 * linux-bfin-low.cc: Remove.
241 * linux-low.cc: Remove BFIN-conditional code.
242
613f149a
SM
2432020-06-12 Simon Marchi <simon.marchi@efficios.com>
244
245 * configure: Re-generate.
246 * configure.ac: Remove srv_qnx test.
247 * configure.srv: Remove nto case.
248 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
249 * remote-utils.c: Remove __QNX__-guarded code.
250
fdb95bf5
SM
2512020-06-12 Simon Marchi <simon.marchi@efficios.com>
252
253 * configure: Re-generate.
254 * configure.ac: Remove srv_lynxos test.
255 * configure.srv: Remove lynxos cases.
256 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
257 Remove.
258
c00094dc
SM
2592020-06-12 Simon Marchi <simon.marchi@efficios.com>
260
261 * README: Fix a few outdated or incoherent things.
262
6479bf85
HD
2632020-05-27 Hannes Domani <ssbssa@yahoo.de>
264
265 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
266 (win32_clear_inferiors): Use open_process_used.
267 (get_child_debug_event): Likewise.
268
bea571eb
MW
2692020-05-25 Michael Weghorn <m.weghorn@posteo.de>
270
271 PR gdbserver/25893
272 * linux-low.cc (linux_process_target::create_inferior),
273 lynx-low.cc (lynx_process_target::create_inferior),
274 win32-low.cc (win32_process_target::create_inferior): Use
275 construct_inferior_arguments instead of stringify_argv
276 to get string representation which properly escapes
277 special characters.
278 * server.cc (handle_v_run): Just pass empty program arg
279 as such, since any further processing is now handled via
280 construct_inferior_arguments.
281
ace6b919
MW
2822020-05-25 Michael Weghorn <m.weghorn@posteo.de>
283
284 * nto-low.cc (nto_process_target::create_inferior): Pass
285 argv to spawnp function as char **.
286
b69ca137
MW
2872020-05-25 Michael Weghorn <m.weghorn@posteo.de>
288
289 * server.cc (captured_main), (handle_v_run): No longer
290 insert extra NULL element to args vector.
291
51e2cfa2
PA
2922020-05-23 Pedro Alves <palves@redhat.com>
293
294 * gdb-safe-ctype.h: New.
295
8bbf0394
TBA
2962020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
297
298 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
299 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
300 (ia64_target::low_breakpoint_at): Ditto.
301
01370779
HD
3022020-05-15 Hannes Domani <ssbssa@yahoo.de>
303
304 * win32-i386-low.cc (i386_supports_z_point_type): Handle
305 Z_PACKET_HW_BP z_type.
306 (i386_insert_point): Handle raw_bkpt_type type.
307 (i386_remove_point): Likewise.
308
7d186bc0
HD
3092020-04-30 Hannes Domani <ssbssa@yahoo.de>
310
311 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
312 Add arch/i386.o.
313 * win32-arm-low.cc (arm_num_regs): New function.
314 (struct win32_target_ops): Use arm_num_regs.
315 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
316 processes.
317 (i386_get_thread_context): Likewise.
318 (i386_prepare_to_resume): Likewise.
319 (i386_thread_added): Likewise.
320 (i386_single_step): Likewise.
321 (i386_fetch_inferior_register): Likewise.
322 (i386_store_inferior_register): Likewise.
323 (i386_arch_setup): Likewise.
324 (i386_win32_num_regs): New function.
325 (struct win32_target_ops): Use i386_win32_num_regs.
326 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
327 processes.
328 (win32_require_context): Likewise.
329 (child_add_thread): Likewise.
330 (do_initial_child_stuff): Likewise.
331 (continue_one_thread): Likewise.
332 (win32_process_target::resume): Likewise.
333 (load_psapi): Likewise.
334 (win32_add_all_dlls): Likewise.
335 (maybe_adjust_pc): Likewise.
336 (win32_process_target::qxfer_siginfo): Likewise.
337 (initialize_low): Likewise.
338 * win32-low.h (struct win32_target_ops): Change num_regs to
339 callback function.
340
1eb39914
SM
3412020-04-27 Simon Marchi <simon.marchi@efficios.com>
342
343 * configure.ac: Remove check for fs_base/gs_base in
344 user_regs_struct.
345 * configure: Re-generate.
346 * config.in: Re-generate.
347 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
348 x86_store_gregset): Adjust.
349
51ac8e22
HD
3502020-04-22 Hannes Domani <ssbssa@yahoo.de>
351
352 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
353 comparison.
354
a010605f
TT
3552020-04-16 Tom Tromey <tromey@adacore.com>
356
357 * win32-low.cc (windows_nat::handle_access_violation): New
358 function.
359
e2275c6e
SM
3602020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * win32-low.cc (get_child_debug_event): Fix format string warning.
363
73944e9f
TT
3642020-04-13 Tom Tromey <tom@tromey.com>
365
366 * server.h (gdb_fildes_t): Remove typedef.
367 * remote-utils.c (remote_desc, list_desc): Now int.
368 (INVALID_DESCRIPTOR): Remove.
369 (gdb_connected, remote_close)
370 (check_remote_input_interrupt_request): Update.
371 * utils.h (pfildes): Don't declare.
372 * utils.c (pfildes): Remove.
373
55d7aec8
TT
3742020-04-13 Tom Tromey <tom@tromey.com>
375
376 * server.h (handle_serial_event, handle_target_event): Update.
377 * server.c: Don't call initialize_event_loop.
378 (keep_processing_events): New global.
379 (handle_serial_event): Return void. Set keep_processing_events.
380 (handle_target_event): Return void.
381 (start_event_loop): Move from event-loop.c. Rewrite.
382 * remote-utils.c (handle_accept_event): Return void.
383 (reset_readchar): Use delete_timer.
384 (process_remaining): Return void.
385 (reschedule): Use create_timer.
386 * event-loop.h: Remove.
387 * event-loop.cc: Remove.
388 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
389
e487f994
TT
3902020-04-13 Tom Tromey <tom@tromey.com>
391
392 * server.c (invoke_async_signal_handlers)
393 (check_async_event_handlers, flush_streams, gdb_select): New
394 functions.
395
8ae8e197
TT
3962020-04-13 Tom Tromey <tom@tromey.com>
397
398 * configure: Rebuild.
399 * config.in: Rebuild.
400
360ad8b3
TT
4012020-04-08 Tom Tromey <tromey@adacore.com>
402
403 PR gdb/22992
404 * win32-low.c (child_continue): Call matching_pending_stop.
405 (get_child_debug_event): Call fetch_pending_stop. Push pending
406 stop when needed.
407
523d4f80
TT
4082020-04-08 Tom Tromey <tromey@adacore.com>
409
410 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
411 (win32_process_target::supports_stopped_by_sw_breakpoint):
412 Declare.
413 * win32-low.c (win32_supports_z_point_type): Always handle
414 Z_PACKET_SW_BP.
415 (win32_insert_point): Call insert_memory_breakpoint when needed.
416 (win32_remove_point): Call remove_memory_breakpoint when needed.
417 (win32_process_target::stopped_by_sw_breakpoint)
418 (win32_process_target::supports_stopped_by_sw_breakpoint): New
419 methods.
420 (win32_target_ops): Update.
421 (maybe_adjust_pc): New function.
422 (win32_wait): Call maybe_adjust_pc.
423
e54e5929
TT
4242020-04-08 Tom Tromey <tromey@adacore.com>
425
426 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
427 field.
428 * win32-i386-low.c (the_low_target): Update.
429 * win32-arm-low.c (the_low_target): Update.
430
d6225aff
TT
4312020-04-08 Tom Tromey <tromey@adacore.com>
432
433 * win32-low.h (win32_process_target::read_pc)
434 (win32_process_target::write_pc): Declare.
435 * win32-low.c (win32_process_target::read_pc)
436 (win32_process_target::write_pc): New methods.
437 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
438 functions.
439 (the_low_target): Update.
440 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
441 functions.
442 (the_low_target): Update.
443
2c1d95e8
TT
4442020-04-08 Tom Tromey <tromey@adacore.com>
445
446 * win32-low.c (win32_kill, get_child_debug_event): Use
447 wait_for_debug_event.
448
e758e19c
TT
4492020-04-08 Tom Tromey <tromey@adacore.com>
450
451 * win32-low.c (child_continue): Call continue_last_debug_event.
452
8d30e395
TT
4532020-04-08 Tom Tromey <tromey@adacore.com>
454
455 * win32-low.c (handle_exception): Remove.
456 (windows_nat::handle_ms_vc_exception): New function.
457 (get_child_debug_event): Add "continue_status" parameter.
458 Update.
459 (win32_wait): Update.
460
a816ba18
TT
4612020-04-08 Tom Tromey <tromey@adacore.com>
462
463 * win32-low.c (windows_nat::handle_load_dll): Rename from
464 handle_load_dll. No longer static.
465 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
466 No longer static.
467
d41b524f
TT
4682020-04-08 Tom Tromey <tromey@adacore.com>
469
470 * win32-low.c (handle_output_debug_string): Add parameter. Change
471 return type.
472 (win32_kill, get_child_debug_event): Update.
473
3c76026d
TT
4742020-04-08 Tom Tromey <tromey@adacore.com>
475
476 * win32-low.c (current_process_handle, current_process_id)
477 (main_thread_id, last_sig, current_event, siginfo_er): Move to
478 nat/windows-nat.c.
479
9d8679cc
TT
4802020-04-08 Tom Tromey <tromey@adacore.com>
481
482 * win32-low.c (get_image_name): Remove.
483 (handle_load_dll): Update.
484
28688adf
TT
4852020-04-08 Tom Tromey <tromey@adacore.com>
486
487 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
488 No longer static. Change parameters.
489 (child_add_thread, child_fetch_inferior_registers)
490 (child_store_inferior_registers, win32_resume)
491 (win32_get_tib_address): Update.
492
4834dad0
TT
4932020-04-08 Tom Tromey <tromey@adacore.com>
494
495 * win32-low.h (struct win32_target_ops): Use qualified names where
496 needed.
497 * win32-i386-low.c: Add "using namespace".
498 * win32-low.c: Add "using namespace".
499 * win32-arm-low.c: Add "using namespace".
500
65bafd5b
TT
5012020-04-08 Tom Tromey <tromey@adacore.com>
502
503 * win32-low.c (delete_thread_info): Don't call CloseHandle.
504
98a03287
TT
5052020-04-08 Tom Tromey <tromey@adacore.com>
506
507 * win32-low.c (win32_require_context, suspend_one_thread): Use
508 windows_thread_info::suspend.
509 (continue_one_thread): Use windows_thread_info::resume.
510 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
511
62fe396b
TT
5122020-04-08 Tom Tromey <tromey@adacore.com>
513
514 * win32-i386-low.c (update_debug_registers)
515 (i386_prepare_to_resume, i386_thread_added): Update.
516
e9534bd2
TT
5172020-04-08 Tom Tromey <tromey@adacore.com>
518
519 * win32-low.c (child_add_thread): Use new.
520 (delete_thread_info): Use delete.
521
ae1f8880
TT
5222020-04-08 Tom Tromey <tromey@adacore.com>
523
524 * win32-low.h (struct windows_thread_info): Remove.
525
e56f8ccb
TT
5262020-04-08 Tom Tromey <tromey@adacore.com>
527
528 * win32-low.h (struct windows_thread_info): Rename from
529 win32_thread_info. Remove typedef.
530 (struct win32_target_ops, win32_require_context): Update.
531 * win32-low.c (win32_get_thread_context)
532 (win32_set_thread_context, win32_prepare_to_resume)
533 (win32_require_context, thread_rec, child_add_thread)
534 (delete_thread_info, continue_one_thread)
535 (child_fetch_inferior_registers, child_store_inferior_registers)
536 (win32_resume, suspend_one_thread, win32_get_tib_address):
537 Update.
538 * win32-i386-low.c (update_debug_registers)
539 (win32_get_current_dr, i386_get_thread_context)
540 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
541 (i386_fetch_inferior_register, i386_store_inferior_register):
542 Update.
543 * win32-arm-low.c (arm_get_thread_context)
544 (arm_fetch_inferior_register, arm_store_inferior_register):
545 Update.
546
0dd7b52e
TBA
5472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
548
549 * linux-low.h (struct linux_target_ops): Remove.
550 (the_low_target): Remove.
551 * linux-x86-low.cc (the_low_target): Remove.
552 * linux-aarch64-low.cc (the_low_target): Ditto.
553 * linux-arm-low.cc (the_low_target): Ditto.
554 * linux-bfin-low.cc (the_low_target): Ditto.
555 * linux-cris-low.cc (the_low_target): Ditto.
556 * linux-crisv32-low.cc (the_low_target): Ditto.
557 * linux-ia64-low.cc (the_low_target): Ditto.
558 * linux-m32r-low.cc (the_low_target): Ditto.
559 * linux-m68k-low.cc (the_low_target): Ditto.
560 * linux-mips-low.cc (the_low_target): Ditto.
561 * linux-nios2-low.cc (the_low_target): Ditto.
562 * linux-ppc-low.cc (the_low_target): Ditto.
563 * linux-riscv-low.cc (the_low_target): Ditto.
564 * linux-s390-low.cc (the_low_target): Ditto.
565 * linux-sh-low.cc (the_low_target): Ditto.
566 * linux-sparc-low.cc (the_low_target): Ditto.
567 * linux-tic6x-low.cc (the_low_target): Ditto.
568 * linux-tile-low.cc (the_low_target): Ditto.
569 * linux-xtensa-low.cc (the_low_target): Ditto.
570
fc5ecdb6
TBA
5712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
572
573 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
574 linux target define the op by overriding the declaration in
575 process_stratum_target.
576
577 * linux-low.h (struct linux_target_ops): Remove the op.
578 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
579 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
580 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
581 (x86_get_ipa_tdesc_idx): Turn into...
582 (x86_target::get_ipa_tdesc_idx): ...this.
583 (the_low_target): Remove the op field.
584 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
585 (ppc_get_ipa_tdesc_idx): Turn into...
586 (ppc_target::get_ipa_tdesc_idx): ...this.
587 (the_low_target): Remove the op field.
588 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
589 (s390_get_ipa_tdesc_idx): Turn into...
590 (s390_target::get_ipa_tdesc_idx): ...this.
591 (the_low_target): Remove the op field.
592
9eedd27d
TBA
5932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
594
595 Turn the 'get_syscall_trapinfo' linux target op into a method
596 of process_stratum_target.
597
598 * linux-low.h (struct linux_target_ops): Remove the op.
599 (class linux_process_target) <get_syscall_trapinfo>
600 <gdb_catch_this_syscall>
601 <low_supports_catch_syscall>
602 <low_get_syscall_trapinfo>: Declare.
603 * linux-low.cc (get_syscall_trapinfo): Turn into...
604 (linux_process_target::get_syscall_trapinfo): ...this.
605 (linux_process_target::low_get_syscall_trapinfo): Define.
606 (gdb_catch_this_syscall_p): Turn into...
607 (linux_process_target::gdb_catch_this_syscall): ...this.
608 (linux_process_target::low_supports_catch_syscall): Define.
609
610 Update the callers below.
611
612 (linux_process_target::wait_1)
613 (linux_process_target::supports_catch_syscall)
614
615 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
616 <low_get_syscall_trapinfo>: Declare.
617 (x86_target::low_supports_catch_syscall): Define.
618 (x86_get_syscall_trapinfo): Turn into...
619 (x86_target::low_get_syscall_trapinfo): ...this.
620 (the_low_target): Remove the op field.
621 * linux-aarch64-low.cc (class aarch64_target)
622 <low_supports_catch_syscall>
623 <low_get_syscall_trapinfo>: Declare.
624 (aarch64_target::low_supports_catch_syscall): Define.
625 (aarch64_get_syscall_trapinfo): Turn into...
626 (aarch64_target::low_get_syscall_trapinfo): ...this.
627 (the_low_target): Remove the op field.
628 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
629 <low_get_syscall_trapinfo>: Declare.
630 (arm_target::low_supports_catch_syscall): Define.
631 (arm_get_syscall_trapinfo): Turn into...
632 (arm_target::low_get_syscall_trapinfo): ...this.
633 (the_low_target): Remove the op field.
634 * linux-ppc-low.cc (the_low_target): Remove the op field.
635 * linux-s390-low.cc (the_low_target): Remove the op field.
636
b31cdfa6
TBA
6372020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
638
639 Remove the 'supports_hardware_single_step' linux target op and
640 override the process_stratum_target's op definition in
641 linux_process_target to return true.
642
643 * linux-low.h (struct linux_target_ops): Remove the op.
644 (class linux_process_target) <finish_step_over>
645 <maybe_hw_step>: Declare.
646 * linux-low.cc (can_hardware_single_step): Remove.
647 (maybe_hw_step): Turn into...
648 (linux_process_target::maybe_hw_step): ...this.
649 (finish_step_over): Turn into...
650 (linux_process_target::finish_step_over): ...this.
651 (linux_process_target::supports_hardware_single_step): Update
652 to return true.
653
654 Update the callers below.
655
656 (linux_process_target::single_step)
657 (linux_process_target::resume_one_lwp_throw)
658
659 * linux-arm-low.cc (class arm_target)
660 <supports_hardware_single_step>: Declare.
661 (arm_supports_hardware_single_step): Turn into...
662 (arm_target::supports_hardware_single_step): ...this.
663 (the_low_target): Remove the op field.
664 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
665 (the_low_target): Remove the op field.
666 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
667 Remove.
668 (the_low_target): Remove the op field.
669 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
670 (the_low_target): Remove the op field.
671 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
672 (the_low_target): Remove the op field.
673 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
674 (the_low_target): Remove the op field.
675 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
676 (the_low_target): Remove the op field.
677 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
678 (the_low_target): Remove the op field.
679 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
680 (the_low_target): Remove the op field.
681 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
682 (the_low_target): Remove the op field.
683 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
684 (the_low_target): Remove the op field.
685 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
686 (the_low_target): Remove the op field.
687 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
688 Remove.
689 (the_low_target): Remove the op field.
690
9cfd8715
TBA
6912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
692
693 Turn the 'supports_range_stepping' linux target op into a method
694 of linux_process_target.
695
696 * linux-low.h (struct linux_target_ops): Remove the op.
697 (class linux_process_target) <low_supports_range_stepping>: Declare.
698 * linux-low.cc (linux_process_target::low_supports_range_stepping):
699 Define.
700 (linux_process_target::supports_range_stepping): Update the call
701 site.
702 * linux-x86-low.cc (class x86_target)
703 <low_supports_range_stepping>: Declare.
704 (x86_supports_range_stepping): Turn into...
705 (x86_target::low_supports_range_stepping): ...this.
706 (the_low_target): Remove the op field.
707 * linux-aarch64-low.cc (class aarch64_target)
708 <low_supports_range_stepping>: Declare.
709 (aarch64_supports_range_stepping): Turn into...
710 (aarch64_target::low_supports_range_stepping): ...this.
711 (the_low_target): Remove the op field.
712 * linux-arm-low.cc (the_low_target): Remove the op field.
713 * linux-bfin-low.cc (the_low_target): Ditto.
714 * linux-crisv32-low.cc (the_low_target): Ditto.
715 * linux-m32r-low.cc (the_low_target): Ditto.
716 * linux-m68k-low.cc (the_low_target): Ditto.
717 * linux-ppc-low.cc (the_low_target): Ditto.
718 * linux-s390-low.cc (the_low_target): Ditto.
719 * linux-sh-low.cc (the_low_target): Ditto.
720 * linux-tic6x-low.cc (the_low_target): Ditto.
721 * linux-tile-low.cc (the_low_target): Ditto.
722 * linux-xtensa-low.cc (the_low_target): Ditto.
723
ab64c999
TBA
7242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
725
726 Remove the 'emit_ops' linux target ops and let the concrete
727 linux target define the op by overriding the declaration of
728 process_stratum_target.
729
730 * linux-low.h (struct linux_target_ops): Remove the op.
731 (class linux_process_target) <emit_ops>: Remove.
732 * linux-low.cc (linux_process_target::emit_ops): Remove.
733 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
734 (x86_emit_ops): Turn into...
735 (x86_target::emit_ops): ...this.
736 (the_low_target): Remove the op field.
737 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
738 (aarch64_emit_ops): Turn into...
739 (aarch64_target::emit_ops): ...this.
740 (the_low_target): Remove the op field.
741 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
742 (ppc_emit_ops): Turn into...
743 (ppc_target::emit_ops): ...this.
744 (the_low_target): Remove the op field.
745 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
746 (s390_emit_ops): Turn into...
747 (s390_target::emit_ops): ...this.
748 (the_low_target): Remove the op field.
749 * linux-arm-low.cc (the_low_target): Remove the op field.
750 * linux-bfin-low.cc (the_low_target): Ditto.
751 * linux-crisv32-low.cc (the_low_target): Ditto.
752 * linux-m32r-low.cc (the_low_target): Ditto.
753 * linux-m68k-low.cc (the_low_target): Ditto.
754 * linux-sh-low.cc (the_low_target): Ditto.
755 * linux-tic6x-low.cc (the_low_target): Ditto.
756 * linux-tile-low.cc (the_low_target): Ditto.
757 * linux-xtensa-low.cc (the_low_target): Ditto.
758
809a0c35
TBA
7592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
760
761 Remove the 'install_fast_tracepoint_jump_pad' and
762 'get_min_fast_tracepoint_insn_len' linux target ops to let the
763 concrete linux target define the ops by overriding the declarations
764 of process_stratum_target.
765
766 * linux-low.h (struct linux_target_ops): Remove the ops.
767 (class linux_process_target) <supports_fast_tracepoints>
768 <install_fast_tracepoint_jump_pad>
769 <get_min_fast_tracepoint_insn_len>: Remove.
770 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
771 (linux_process_target::install_fast_tracepoint_jump_pad)
772 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
773 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
774 <install_fast_tracepoint_jump_pad>
775 <get_min_fast_tracepoint_insn_len>: Declare.
776 (x86_target::supports_fast_tracepoints): Define.
777 (x86_install_fast_tracepoint_jump_pad): Turn into...
778 (x86_target::install_fast_tracepoint_jump_pad): ...this.
779 (x86_get_min_fast_tracepoint_insn_len): Turn into...
780 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
781 (the_low_target): Remove the op fields.
782 * linux-aarch64-low.cc (class aarch64_target)
783 <supports_fast_tracepoints>
784 <install_fast_tracepoint_jump_pad>
785 <get_min_fast_tracepoint_insn_len>: Declare.
786 (aarch64_target::supports_fast_tracepoints): Define.
787 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
788 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
789 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
790 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
791 (the_low_target): Remove the op fields.
792 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
793 <install_fast_tracepoint_jump_pad>
794 <get_min_fast_tracepoint_insn_len>: Declare.
795 (ppc_target::supports_fast_tracepoints): Define.
796 (ppc_install_fast_tracepoint_jump_pad): Turn into...
797 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
798 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
799 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
800 (the_low_target): Remove the op fields.
801 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
802 <install_fast_tracepoint_jump_pad>
803 <get_min_fast_tracepoint_insn_len>: Declare.
804 (s390_target::supports_fast_tracepoints): Define.
805 (s390_install_fast_tracepoint_jump_pad): Turn into...
806 (s390_target::install_fast_tracepoint_jump_pad): ...this.
807 (s390_get_min_fast_tracepoint_insn_len): Turn into...
808 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
809 (the_low_target): Remove the op fields.
810 * linux-arm-low.cc (the_low_target): Remove the op fields.
811 * linux-bfin-low.cc (the_low_target): Ditto.
812 * linux-crisv32-low.cc (the_low_target): Ditto.
813 * linux-m32r-low.cc (the_low_target): Ditto.
814 * linux-m68k-low.cc (the_low_target): Ditto.
815 * linux-sh-low.cc (the_low_target): Ditto.
816 * linux-tic6x-low.cc (the_low_target): Ditto.
817 * linux-tile-low.cc (the_low_target): Ditto.
818 * linux-xtensa-low.cc (the_low_target): Ditto.
819
13e567af
TBA
8202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
821
822 Turn the 'get_thread_area' linux target op into a method of
823 process_stratum_target.
824
825 * linux-low.h (struct linux_target_ops): Remove the op.
826 (class linux_process_target) <stuck_in_jump_pad>
827 <linux_fast_tracepoint_collecting>
828 <low_get_thread_area>: Declare.
829 * linux-low.cc (supports_fast_tracepoints): Remove.
830 (linux_fast_tracepoint_collecting): Turn into...
831 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
832 (linux_process_target::low_get_thread_area): Define.
833 (stuck_in_jump_pad_callback): Turn into...
834 (linux_process_target::stuck_in_jump_pad): ...this.
835
836 Update the caller below.
837
838 (linux_process_target::stabilize_threads)
839
840 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
841 Declare.
842 (x86_get_thread_area): Turn into...
843 (x86_target::low_get_thread_area): ...this.
844 (the_low_target): Remove the op field.
845 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
846 Declare.
847 (aarch64_get_thread_area): Turn into...
848 (aarch64_target::low_get_thread_area): ...this.
849 (the_low_target): Remove the op field.
850 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
851 Declare.
852 (ppc_get_thread_area): Turn into...
853 (ppc_target::low_get_thread_area): ...this.
854 (the_low_target): Remove the op field.
855 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
856 Declare.
857 (s390_get_thread_area): Turn into...
858 (s390_target::low_get_thread_area): ...this.
859 (the_low_target): Remove the op field.
860 * linux-arm-low.cc (the_low_target): Remove the op field.
861 * linux-bfin-low.cc (the_low_target): Ditto.
862 * linux-crisv32-low.cc (the_low_target): Ditto.
863 * linux-m32r-low.cc (the_low_target): Ditto.
864 * linux-m68k-low.cc (the_low_target): Ditto.
865 * linux-sh-low.cc (the_low_target): Ditto.
866 * linux-tic6x-low.cc (the_low_target): Ditto.
867 * linux-tile-low.cc (the_low_target): Ditto.
868 * linux-xtensa-low.cc (the_low_target): Ditto.
869
47f70aa7
TBA
8702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
871
872 Remote the 'supports_tracepoints' linux target op and let the
873 concrete linux target define it by overriding the op declared in
874 process_stratum_target.
875
876 * linux-low.h (struct linux_target_ops): Remove the op.
877 (class linux_process_target) <supports_tracepoints>: Remove.
878 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
879 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
880 Declare.
881 (x86_supports_tracepoints): Turn into...
882 (x86_target::supports_tracepoints): ...this.
883 (the_low_target): Remove the op field.
884 * linux-aarch64-low.cc (class aarch64_target)
885 <supports_tracepoints>: Declare.
886 (aarch64_supports_tracepoints): Turn into...
887 (aarch64_target::supports_tracepoints): ...this.
888 (the_low_target): Remove the op field.
889 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
890 Declare.
891 (ppc_supports_tracepoints): Turn into...
892 (ppc_target::supports_tracepoints): ...this.
893 (the_low_target): Remove the op field.
894 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
895 Declare.
896 (s390_supports_tracepoints): Turn into...
897 (s390_target::supports_tracepoints): ...this.
898 (the_low_target): Remove the op field.
899 * linux-arm-low.cc (the_low_target): Remove the op field.
900 * linux-bfin-low.cc (the_low_target): Ditto.
901 * linux-crisv32-low.cc (the_low_target): Ditto.
902 * linux-m32r-low.cc (the_low_target): Ditto.
903 * linux-m68k-low.cc (the_low_target): Ditto.
904 * linux-sh-low.cc (the_low_target): Ditto.
905 * linux-tic6x-low.cc (the_low_target): Ditto.
906 * linux-tile-low.cc (the_low_target): Ditto.
907 * linux-xtensa-low.cc (the_low_target): Ditto.
908
a5b5da92
TBA
9092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
910
911 Remove the 'process_qsupported' linux target op and let a concrete
912 linux target define the op by overriding the op declaration in
913 process_stratum_target.
914
915 * linux-low.h (struct linux_target_ops): Remove the op.
916 (class linux_process_target) <process_qsupported>: Remove.
917 * linux-low.cc (linux_process_target::process_qsupported): Remove.
918 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
919 (x86_linux_process_qsupported): Turn into...
920 (x86_target::process_qsupported): ...this.
921 (the_low_target): Remove the op field.
922 * linux-aarch64-low.cc (the_low_target): Remove the op
923 field.
924 * linux-arm-low.cc (the_low_target): Ditto.
925 * linux-bfin-low.cc (the_low_target): Ditto.
926 * linux-crisv32-low.cc (the_low_target): Ditto.
927 * linux-m32r-low.cc (the_low_target): Ditto.
928 * linux-m68k-low.cc (the_low_target): Ditto.
929 * linux-ppc-low.cc (the_low_target): Ditto.
930 * linux-s390-low.cc (the_low_target): Ditto.
931 * linux-sh-low.cc (the_low_target): Ditto.
932 * linux-tic6x-low.cc (the_low_target): Ditto.
933 * linux-tile-low.cc (the_low_target): Ditto.
934 * linux-xtensa-low.cc (the_low_target): Ditto.
935
d7599cc0
TBA
9362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
937
938 Turn the 'prepare_to_resume' linux target op into a method of
939 linux_process_target.
940
941 * linux-low.h (struct linux_target_ops): Remove the op.
942 (class linux_process_target) <low_prepare_to_resume>: Declare.
943 * linux-low.cc (linux_process_target::low_prepare_to_resume):
944 Define.
945
946 Update the callers below:
947
948 (linux_process_target::resume_one_lwp_throw)
949 (linux_process_target::low_prepare_to_resume)
950
951 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
952 Declare.
953 (x86_target::low_prepare_to_resume): Define.
954 (the_low_target): Remove the op field.
955 * linux-aarch64-low.cc (class aarch64_target)
956 <low_prepare_to_resume>: Declare.
957 (aarch64_target::low_prepare_to_resume): Define.
958 (the_low_target): Remove the op field.
959 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
960 Declare.
961 (arm_prepare_to_resume): Turn into...
962 (arm_target::low_prepare_to_resume): ...this.
963 (the_low_target): Remove the op field.
964 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
965 Declare.
966 (mips_linux_prepare_to_resume): Turn into...
967 (mips_target::low_prepare_to_resume): ...this.
968 (the_low_target): Remove the op field.
969 * linux-bfin-low.cc (the_low_target): Remove the op field.
970 * linux-crisv32-low.cc (the_low_target): Ditto.
971 * linux-m32r-low.cc (the_low_target): Ditto.
972 * linux-m68k-low.cc (the_low_target): Ditto.
973 * linux-ppc-low.cc (the_low_target): Ditto.
974 * linux-s390-low.cc (the_low_target): Ditto.
975 * linux-sh-low.cc (the_low_target): Ditto.
976 * linux-tic6x-low.cc (the_low_target): Ditto.
977 * linux-tile-low.cc (the_low_target): Ditto.
978 * linux-xtensa-low.cc (the_low_target): Ditto.
979
fd000fb3
TBA
9802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
981
982 Turn the 'new_process', 'delete_process', 'new_thread',
983 'delete_thread', and 'new_fork' linux target ops into methods
984 of linux_process_target.
985
986 * linux-low.h (struct linux_target_ops): Remove the ops.
987 (class linux_process_target) <add_linux_process>
988 <add_lwp>
989 <delete_lwp>
990 <attach_lwp>
991 <detach_one_lwp>
992 <check_zombie_leaders>
993 <filter_exit_event>
994 <low_new_process>
995 <low_delete_process>
996 <low_new_thread>
997 <low_delete_thread>
998 <low_new_fork>: Declare.
999 * linux-low.cc (delete_lwp): Turn into...
1000 (linux_process_target::delete_lwp): ...this.
1001 (linux_process_target::low_delete_thread): Define.
1002 (linux_add_process): Turn into...
1003 (linux_process_target::add_linux_process): ...this.
1004 (linux_process_target::low_new_process): Define.
1005 (linux_process_target::low_delete_process): Define.
1006 (linux_process_target::low_new_fork): Define.
1007 (add_lwp): Turn into...
1008 (linux_process_target::add_lwp): ...this.
1009 (linux_process_target::low_new_thread): Define.
1010 (linux_attach_lwp): Turn into...
1011 (linux_process_target::attach_lwp): ...this.
1012 (linux_detach_one_lwp): Turn into...
1013 (linux_process_target::detach_one_lwp): ...this.
1014 (linux_detach_lwp_callback): Remove and inline...
1015 (linux_process_target::detach): ...here.
1016 (check_zombie_leaders): Turn into...
1017 (linux_process_target::check_zombie_leaders): ...this.
1018 (filter_exit_event): Turn into...
1019 (linux_process_target::filter_exit_event): ...this.
1020
1021 Update the callers below.
1022
1023 (linux_process_target::handle_extended_wait)
1024 (linux_process_target::create_inferior)
1025 (attach_proc_task_lwp_callback)
1026 (linux_process_target::attach)
1027 (linux_process_target::detach)
1028 (linux_process_target::mourn)
1029 * thread-db.cc (attach_thread)
1030
1031 * linux-x86-low.cc (class x86_target) <low_new_process>
1032 <low_delete_process>
1033 <low_new_thread>
1034 <low_delete_thread>
1035 <low_new_fork>: Declare.
1036 (x86_linux_new_process): Turn into...
1037 (x86_target::low_new_process): ...this.
1038 (x86_linux_delete_process): Turn into...
1039 (x86_target::low_delete_process): ...this.
1040 (x86_target::low_new_thread): Define.
1041 (x86_target::low_delete_thread): Define.
1042 (x86_linux_new_fork): Turn into...
1043 (x86_target::low_new_fork): ...this.
1044 (the_low_target): Remove the op fields.
1045 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1046 <low_delete_process>
1047 <low_new_thread>
1048 <low_delete_thread>
1049 <low_new_fork>: Declare.
1050 (aarch64_linux_new_process): Turn into...
1051 (aarch64_target::low_new_process): ...this.
1052 (aarch64_linux_delete_process): Turn into...
1053 (aarch64_target::low_delete_process): ...this.
1054 (aarch64_target::low_new_thread): Define.
1055 (aarch64_target::low_delete_thread): Define.
1056 (aarch64_linux_new_fork): Turn into...
1057 (aarch64_target::low_new_fork): ...this.
1058 (the_low_target): Remove the op fields.
1059 * linux-arm-low.cc (class arm_target) <low_new_process>
1060 <low_delete_process>
1061 <low_new_thread>
1062 <low_delete_thread>
1063 <low_new_fork>: Declare.
1064 (arm_new_process): Turn into...
1065 (arm_target::low_new_process): ...this.
1066 (arm_delete_process): Turn into...
1067 (arm_target::low_delete_process): ...this.
1068 (arm_new_thread): Turn into...
1069 (arm_target::low_new_thread): ...this.
1070 (arm_delete_thread): Turn into...
1071 (arm_target::low_delete_thread): ...this.
1072 (arm_new_fork): Turn into...
1073 (arm_target::low_new_fork): ...this.
1074 (the_low_target): Remove the op fields.
1075 * linux-mips-low.cc (class mips_target) <low_new_process>
1076 <low_delete_process>
1077 <low_new_thread>
1078 <low_delete_thread>
1079 <low_new_fork>: Declare.
1080 (mips_linux_new_process): Turn into...
1081 (mips_target::low_new_process): ...this.
1082 (mips_linux_delete_process): Turn into...
1083 (mips_target::low_delete_process): ...this.
1084 (mips_linux_new_thread): Turn into...
1085 (mips_target::low_new_thread): ...this.
1086 (mips_linux_delete_thread): Turn into...
1087 (mips_target::low_delete_thread): ...this.
1088 (mips_linux_new_fork): Turn into...
1089 (mips_target::low_new_fork): ...this.
1090 (the_low_target): Remove the op fields.
1091 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1092 * linux-crisv32-low.cc (the_low_target): Ditto.
1093 * linux-m32r-low.cc (the_low_target): Ditto.
1094 * linux-m68k-low.cc (the_low_target): Ditto.
1095 * linux-ppc-low.cc (the_low_target): Ditto.
1096 * linux-s390-low.cc (the_low_target): Ditto.
1097 * linux-sh-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
cb63de7c
TBA
11022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1103
1104 Turn the 'siginfo_fixup' linux target op into a method of
1105 linux_process_target.
1106
1107 * linux-low.h (struct linux_target_ops): Remove the op.
1108 (class linux_process_target) <siginfo_fixup>
1109 <low_siginfo_fixup>: Declare.
1110 * linux-low.cc (siginfo_fixup): Turn into...
1111 (linux_process_target::siginfo_fixup): ...this.
1112 (linux_process_target::low_siginfo_fixup): Define.
1113 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1114 (x86_siginfo_fixup): Turn into...
1115 (x86_target::low_siginfo_fixup): ...this.
1116 (the_low_target): Remove the op field.
1117 * linux-aarch64-low.cc (class aarch64_target):
1118 <low_siginfo_fixup>: Declare.
1119 (aarch64_linux_siginfo_fixup): Turn into...
1120 (aarch64_target::low_siginfo_fixup): ...this.
1121 (the_low_target): Remove the op field.
1122 * linux-arm-low.cc (the_low_target): Remove the op field.
1123 * linux-bfin-low.cc (the_low_target): Ditto.
1124 * linux-crisv32-low.cc (the_low_target): Ditto.
1125 * linux-m32r-low.cc (the_low_target): Ditto.
1126 * linux-m68k-low.cc (the_low_target): Ditto.
1127 * linux-mips-low.cc (the_low_target): Ditto.
1128 * linux-ppc-low.cc (the_low_target): Ditto.
1129 * linux-s390-low.cc (the_low_target): Ditto.
1130 * linux-sh-low.cc (the_low_target): Ditto.
1131 * linux-tic6x-low.cc (the_low_target): Ditto.
1132 * linux-tile-low.cc (the_low_target): Ditto.
1133 * linux-xtensa-low.cc (the_low_target): Ditto.
1134
b35db733
TBA
11352020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1136
1137 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1138 linux target ops into methods of linux_process_target.
1139
1140 * linux-low.h (struct linux_target_ops): Remove the ops.
1141 (class linux_process_target) <low_collect_ptrace_register>
1142 <low_store_ptrace_register>: Declare.
1143 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1144 (linux_process_target::low_supply_ptrace_register): Define.
1145
1146 Update the callers below.
1147
1148 (linux_process_target::fetch_register)
1149 (linux_process_target::store_register)
1150
1151 * linux-x86-low.cc (the_low_target): Remove the op fields.
1152 * linux-aarch64-low.cc (the_low_target): Ditto.
1153 * linux-arm-low.cc (the_low_target): Ditto.
1154 * linux-bfin-low.cc (the_low_target): Ditto.
1155 * linux-crisv32-low.cc (the_low_target): Ditto.
1156 * linux-m32r-low.cc (the_low_target): Ditto.
1157 * linux-m68k-low.cc (the_low_target): Ditto.
1158 * linux-sh-low.cc (the_low_target): Ditto.
1159 * linux-sparc-low.cc (the_low_target): Ditto.
1160 * linux-tic6x-low.cc (the_low_target): Ditto.
1161 * linux-tile-low.cc (the_low_target): Ditto.
1162 * linux-xtensa-low.cc (the_low_target): Ditto.
1163 * linux-mips-low.cc (class mips_target)
1164 <low_collect_ptrace_register>
1165 <low_supply_ptrace_register>: Declare.
1166 (mips_collect_ptrace_register): Turn into ...
1167 (mips_target::low_collect_ptrace_register): ...this.
1168 (mips_supply_ptrace_register): Turn into...
1169 (mips_target::low_supply_ptrace_register): ...this.
1170 (the_low_target): Remove the op fields.
1171 * linux-ppc-low.cc (class ppc_target)
1172 <low_collect_ptrace_register>
1173 <low_supply_ptrace_register>: Declare.
1174 (ppc_collect_ptrace_register): Turn into ...
1175 (ppc_target::low_collect_ptrace_register): ...this.
1176 (ppc_supply_ptrace_register): Turn into ...
1177 (ppc_target::low_supply_ptrace_register): ...this.
1178 (ppc_fill_gregset): Update for the calls to
1179 low_collect_ptrace_register.
1180 (the_low_target): Remove the op fields.
1181 * linux-s390-low.cc (class s390_target)
1182 <low_collect_ptrace_register>
1183 <low_supply_ptrace_register>: Declare.
1184 (s390_collect_ptrace_register): Turn into ...
1185 (s390_target::low_collect_ptrace_register): ...this.
1186 (s390_supply_ptrace_register): Turn into ...
1187 (s390_target::low_supply_ptrace_register): ...this.
1188 (s390_fill_gregset): Update for the calls to
1189 low_collect_ptrace_register.
1190 (the_low_target): Remove the op fields.
1191
ac1bbaca
TBA
11922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1193
1194 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1195 target ops into methods of linux_process_target.
1196
1197 * linux-low.h (struct linux_target_ops): Remove the ops.
1198 (class linux_process_target) <check_stopped_by_watchpoint>
1199 <low_stopped_by_watchpoint>
1200 <low_stopped_data_address>: Declare.
1201 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1202 (linux_process_target::check_stopped_by_watchpoint): ...this.
1203 (linux_process_target::low_stopped_by_watchpoint): Define.
1204 (linux_process_target::low_stopped_data_address): Define.
1205 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1206 <low_stopped_data_address>: Declare.
1207 (x86_stopped_by_watchpoint): Turn into...
1208 (x86_target::low_stopped_by_watchpoint): ...this.
1209 (x86_stopped_data_address): Turn into...
1210 (x86_target::low_stopped_data_address): ...this.
1211 (the_low_target): Remove the op fields.
1212 * linux-aarch64-low.cc (class aarch64_target)
1213 <low_stopped_by_watchpoint>
1214 <low_stopped_data_address>: Declare.
1215 (aarch64_stopped_by_watchpoint): Turn into...
1216 (aarch64_target::low_stopped_by_watchpoint): ...this.
1217 (aarch64_stopped_data_address): Turn into...
1218 (aarch64_target::low_stopped_data_address): ...this.
1219 (the_low_target): Remove the op fields.
1220 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1221 <low_stopped_data_address>: Declare.
1222 (arm_stopped_by_watchpoint): Turn into...
1223 (arm_target::low_stopped_by_watchpoint): ...this.
1224 (arm_stopped_data_address): Turn into...
1225 (arm_target::low_stopped_data_address): ...this.
1226 (the_low_target): Remove the op fields.
1227 * linux-crisv32-low.cc (class crisv32_target)
1228 <low_stopped_by_watchpoint>
1229 <low_stopped_data_address>: Declare.
1230 (cris_stopped_by_watchpoint): Turn into...
1231 (crisv32_target::low_stopped_by_watchpoint): ...this.
1232 (cris_stopped_data_address): Turn into...
1233 (crisv32_target::low_stopped_data_address): ...this.
1234 (the_low_target): Remove the op fields.
1235 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1236 <low_stopped_data_address>: Declare.
1237 (mips_stopped_by_watchpoint): Turn into...
1238 (mips_target::low_stopped_by_watchpoint): ...this.
1239 (mips_stopped_data_address): Turn into...
1240 (mips_target::low_stopped_data_address): ...this.
1241 (the_low_target): Remove the op fields.
1242 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1243 * linux-m32r-low.cc (the_low_target): Ditto.
1244 * linux-m68k-low.cc (the_low_target): Ditto.
1245 * linux-ppc-low.cc (the_low_target): Ditto.
1246 * linux-s390-low.cc (the_low_target): Ditto.
1247 * linux-sh-low.cc (the_low_target): Ditto.
1248 * linux-sparc-low.cc (the_low_target): Ditto.
1249 * linux-tic6x-low.cc (the_low_target): Ditto.
1250 * linux-tile-low.cc (the_low_target): Ditto.
1251 * linux-xtensa-low.cc (the_low_target): Ditto.
1252
9db9aa23
TBA
12532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1254
1255 Turn the 'insert_point' and 'remove_point' linux target ops into
1256 methods of linux_process_target.
1257
1258 * linux-low.h (struct linux_target_ops): Remove the ops.
1259 (class linux_process_target) <low_insert_point>
1260 <low_remove_point>: Declare.
1261 * linux-low.cc (linux_process_target::low_insert_point)
1262 (linux_process_target::low_remove_point): Define.
1263 (linux_process_target::insert_point)
1264 (linux_process_target::remove_point): Update for calls to
1265 low_insert_point and low_remove_point.
1266 * linux-x86-low.cc (class x86_target) <low_insert_point>
1267 <low_remove_point>: Declare.
1268 (x86_insert_point): Turn into...
1269 (x86_target::low_insert_point): ...this.
1270 (x86_remove_point): Turn into...
1271 (x86_target::low_remove_point): ...this.
1272 (the_low_target): Remove the op fields.
1273 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1274 <low_remove_point>: Declare.
1275 (aarch64_insert_point): Turn into...
1276 (aarch64_target::low_insert_point): ...this.
1277 (aarch64_remove_point): Turn into...
1278 (aarch64_target::low_remove_point): ...this.
1279 (the_low_target): Remove the op fields.
1280 * linux-arm-low.cc (class arm_target) <low_insert_point>
1281 <low_remove_point>: Declare.
1282 (arm_insert_point): Turn into...
1283 (arm_target::low_insert_point): ...this.
1284 (arm_remove_point): Turn into...
1285 (arm_target::low_remove_point): ...this.
1286 (the_low_target): Remove the op fields.
1287 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1288 <low_remove_point>: Declare.
1289 (crisv32_insert_point): Turn into...
1290 (crisv32_target::low_insert_point): ...this.
1291 (crisv32_remove_point): Turn into...
1292 (crisv32_target::low_remove_point): ...this.
1293 (the_low_target): Remove the op fields.
1294 * linux-mips-low.cc (class mips_target) <low_insert_point>
1295 <low_remove_point>: Declare.
1296 (mips_insert_point): Turn into...
1297 (mips_target::low_insert_point): ...this.
1298 (mips_remove_point): Turn into...
1299 (mips_target::low_remove_point): ...this.
1300 (the_low_target): Remove the op fields.
1301 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1302 <low_remove_point>: Declare.
1303 (ppc_insert_point): Turn into...
1304 (ppc_target::low_insert_point): ...this.
1305 (ppc_remove_point): Turn into...
1306 (ppc_target::low_remove_point): ...this.
1307 (the_low_target): Remove the op fields.
1308 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1309 * linux-m32r-low.cc (the_low_target): Ditto.
1310 * linux-m68k-low.cc (the_low_target): Ditto.
1311 * linux-s390-low.cc (the_low_target): Ditto.
1312 * linux-sh-low.cc (the_low_target): Ditto.
1313 * linux-sparc-low.cc (the_low_target): Ditto.
1314 * linux-tic6x-low.cc (the_low_target): Ditto.
1315 * linux-tile-low.cc (the_low_target): Ditto.
1316 * linux-xtensa-low.cc (the_low_target): Ditto.
1317
007c9b97
TBA
13182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1319
1320 Remove the 'supports_z_point_type' linux target op and let the
1321 concrete linux target define it by overriding the op declared in
1322 process_stratum_target.
1323
1324 * linux-low.cc (linux_process_target::supports_z_point_type):
1325 Remove.
1326 * linux-low.h (struct linux_target_ops): Remove the op.
1327 (class linux_process_target) <supports_z_point_type>: Remove.
1328 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1329 Declare.
1330 (x86_supports_z_point_type): Turn into...
1331 (x86_target::supports_z_point_type): ...this.
1332 (the_low_target): Remove the op field.
1333 * linux-aarch64-low.cc (class aarch64_target)
1334 <supports_z_point_type>: Declare.
1335 (aarch64_supports_z_point_type): Turn into...
1336 (aarch64_target::supports_z_point_type): ...this.
1337 (the_low_target): Remove the op field.
1338 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1339 Declare.
1340 (arm_supports_z_point_type): Turn into...
1341 (arm_target::supports_z_point_type): ...this.
1342 (the_low_target): Remove the op field.
1343 * linux-crisv32-low.cc (class crisv32_target)
1344 <supports_z_point_type>: Declare.
1345 (cris_supports_z_point_type): Turn into...
1346 (crisv32_target::supports_z_point_type): ...this.
1347 (the_low_target): Remove the op field.
1348 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1349 Declare.
1350 (mips_supports_z_point_type): Turn into...
1351 (mips_target::supports_z_point_type): ...this.
1352 (the_low_target): Remove the op field.
1353 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1354 Declare.
1355 (ppc_supports_z_point_type): Turn into...
1356 (ppc_target::supports_z_point_type): ...this.
1357 (the_low_target): Remove the op field.
1358 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1359 Declare.
1360 (s390_supports_z_point_type): Turn into...
1361 (s390_target::supports_z_point_type): ...this.
1362 (the_low_target): Remove the op field.
1363 * linux-bfin-low.cc (the_low_target): Remove the op field.
1364 * linux-m32r-low.cc (the_low_target): Ditto.
1365 * linux-m68k-low.cc (the_low_target): Ditto.
1366 * linux-sh-low.cc (the_low_target): Ditto.
1367 * linux-sparc-low.cc (the_low_target): Ditto.
1368 * linux-tic6x-low.cc (the_low_target): Ditto.
1369 * linux-tile-low.cc (the_low_target): Ditto.
1370 * linux-xtensa-low.cc (the_low_target): Ditto.
1371
d7146cda
TBA
13722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1373
1374 Turn the 'breakpoint_at' linux target op into a method of
1375 linux_process_target.
1376
1377 * linux-low.h (struct linux_target_ops): Remove the op.
1378 (class linux_process_target) <low_breakpoint_at>: Declare.
1379
1380 Update the callers below:
1381
1382 * linux-low.cc (linux_process_target::save_stop_reason)
1383 (linux_process_target::thread_still_has_status_pending)
1384 (linux_process_target::wait_1)
1385
1386 * linux-x86-low.cc (class x86_target)
1387 <low_breakpoint_at>: Declare.
1388 (x86_breakpoint_at): Turn into...
1389 (x86_target::low_breakpoint_at): ...this.
1390 (the_low_target): Remove the op field.
1391 * linux-aarch64-low.cc (class aarch64_target)
1392 <low_breakpoint_at>: Declare.
1393 (aarch64_breakpoint_at): Turn into...
1394 (aarch64_target::low_breakpoint_at): ...this.
1395 (the_low_target): Remove the op field.
1396 * linux-arm-low.cc (class arm_target)
1397 <low_breakpoint_at>: Declare.
1398 (arm_target::low_breakpoint_at): Define.
1399 (the_low_target): Remove the op field.
1400 * linux-bfin-low.cc (class bfin_target)
1401 <low_breakpoint_at>: Declare.
1402 (bfin_breakpoint_at): Turn into...
1403 (bfin_target::low_breakpoint_at): ...this.
1404 (the_low_target): Remove the op field.
1405 * linux-cris-low.cc (class cris_target)
1406 <low_breakpoint_at>: Declare.
1407 (cris_breakpoint_at): Turn into...
1408 (cris_target::low_breakpoint_at): ...this.
1409 (the_low_target): Remove the op field.
1410 * linux-crisv32-low.cc (class crisv32_target)
1411 <low_breakpoint_at>: Declare.
1412 (crisv32_breakpoint_at): Turn into...
1413 (crisv32_target::low_breakpoint_at): ...this.
1414 (the_low_target): Remove the op field.
1415 * linux-ia64-low.cc (class ia64_target)
1416 <low_breakpoint_at>: Declare.
1417 (ia64_target::low_breakpoint_at): Define.
1418 * linux-m32r-low.cc (class m32r_target)
1419 <low_breakpoint_at>: Declare.
1420 (m32r_breakpoint_at): Turn into...
1421 (m32r_target::low_breakpoint_at): ...this.
1422 (the_low_target): Remove the op field.
1423 * linux-m68k-low.cc (class m68k_target)
1424 <low_breakpoint_at>: Declare.
1425 (m68k_breakpoint_at): Turn into...
1426 (m68k_target::low_breakpoint_at): ...this.
1427 (the_low_target): Remove the op field.
1428 * linux-mips-low.cc (class mips_target)
1429 <low_breakpoint_at>: Declare.
1430 (mips_breakpoint_at): Turn into...
1431 (mips_target::low_breakpoint_at): ...this.
1432 (the_low_target): Remove the op field.
1433 * linux-nios2-low.cc (class nios2_target)
1434 <low_breakpoint_at>: Declare.
1435 (nios2_breakpoint_at): Turn into...
1436 (nios2_target::low_breakpoint_at): ...this.
1437 (the_low_target): Remove the op field.
1438 * linux-ppc-low.cc (class ppc_target)
1439 <low_breakpoint_at>: Declare.
1440 (ppc_breakpoint_at): Turn into...
1441 (ppc_target::low_breakpoint_at): ...this.
1442 (the_low_target): Remove the op field.
1443 * linux-riscv-low.cc (class riscv_target)
1444 <low_breakpoint_at>: Declare.
1445 (riscv_breakpoint_at): Turn into...
1446 (riscv_target::low_breakpoint_at): ...this.
1447 (the_low_target): Remove the op field.
1448 * linux-s390-low.cc (class s390_target)
1449 <low_breakpoint_at>: Declare.
1450 (s390_breakpoint_at): Turn into...
1451 (s390_target::low_breakpoint_at): ...this.
1452 (the_low_target): Remove the op field.
1453 * linux-sh-low.cc (class sh_target)
1454 <low_breakpoint_at>: Declare.
1455 (sh_breakpoint_at): Turn into...
1456 (sh_target::low_breakpoint_at): ...this.
1457 (the_low_target): Remove the op field.
1458 * linux-sparc-low.cc (class sparc_target)
1459 <low_breakpoint_at>: Declare.
1460 (sparc_breakpoint_at): Turn into...
1461 (sparc_target::low_breakpoint_at): ...this.
1462 (the_low_target): Remove the op field.
1463 * linux-tic6x-low.cc (class tic6x_target)
1464 <low_breakpoint_at>: Declare.
1465 (tic6x_breakpoint_at): Turn into...
1466 (tic6x_target::low_breakpoint_at): ...this.
1467 (the_low_target): Remove the op field.
1468 * linux-tile-low.cc (class tile_target)
1469 <low_breakpoint_at>: Declare.
1470 (tile_breakpoint_at): Turn into...
1471 (tile_target::low_breakpoint_at): ...this.
1472 (the_low_target): Remove the op field.
1473 * linux-xtensa-low.cc (class xtensa_target)
1474 <low_breakpoint_at>: Declare.
1475 (xtensa_breakpoint_at): Turn into...
1476 (xtensa_target::low_breakpoint_at): ...this.
1477 (the_low_target): Remove the op field.
1478
d4807ea2
TBA
14792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1480
1481 Turn the 'decr_pc_after_break' linux_target_ops field into
1482 a method of linux_process_target.
1483
1484 * linux-low.h (struct linux_target_ops)
1485 <decr_pc_after_break>: Remove.
1486 (class linux_process_target) <low_decr_pc_after_break>: New method
1487 declaration.
1488 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1489 New method implementation.
1490
1491 Update the users below.
1492
1493 (linux_process_target::save_stop_reason)
1494 (linux_process_target::wait_1)
1495 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1496 New declaration.
1497 (x86_target::low_decr_pc_after_break): New method implementation.
1498 (the_low_target): Remove the field.
1499 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1500 New declaration.
1501 (bfin_target::low_decr_pc_after_break): New method implementation.
1502 (the_low_target): Remove the field.
1503 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1504 New declaration.
1505 (m68k_target::low_decr_pc_after_break): New method implementation.
1506 (the_low_target): Remove the field.
1507 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1508 New declaration.
1509 (s390_target::low_decr_pc_after_break): New method implementation.
1510 (the_low_target): Remove the field.
1511 * linux-aarch64-low.cc (the_low_target): Remove the field.
1512 * linux-arm-low.cc (the_low_target): Remove the field.
1513 * linux-cris-low.cc (the_low_target): Remove the field.
1514 * linux-crisv32-low.cc (the_low_target): Remove the field.
1515 * linux-m32r-low.cc (the_low_target): Remove the field.
1516 * linux-mips-low.cc (the_low_target): Remove the field.
1517 * linux-nios2-low.cc (the_low_target): Remove the field.
1518 * linux-ppc-low.cc (the_low_target): Remove the field.
1519 * linux-riscv-low.cc (the_low_target): Remove the field.
1520 * linux-sh-low.cc (the_low_target): Remove the field.
1521 * linux-sparc-low.cc (the_low_target): Remove the field.
1522 * linux-tic6x-low.cc (the_low_target): Remove the field.
1523 * linux-tile-low.cc (the_low_target): Remove the field.
1524 * linux-xtensa-low.cc (the_low_target): Remove the field.
1525
7582c77c
TBA
15262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1527
1528 Remove the 'supports_software_single_step' linux target op and let
1529 the concrete linux target define it by overriding the op in
1530 process_stratum_target.
1531 Turn the 'get_next_pcs' linux target op into a method of
1532 linux_process_target.
1533
1534 * linux-low.h (struct linux_target_ops): Remove the ops.
1535 (class linux_process_target) <supports_software_single_step>:
1536 Remove.
1537 <low_get_next_pcs>: Declare.
1538 * linux-low.cc (can_software_single_step): Remove.
1539 (linux_process_target::low_get_next_pcs): Define.
1540 (linux_process_target::supports_software_single_step): Remove.
1541
1542 Update the callers below.
1543
1544 (linux_process_target::handle_extended_wait)
1545 (linux_process_target::wait_1)
1546 (linux_process_target::install_software_single_step_breakpoints)
1547 (linux_process_target::single_step)
1548 (linux_process_target::thread_needs_step_over)
1549 (linux_process_target::proceed_one_lwp)
1550 (linux_process_target::supports_range_stepping)
1551
1552 * linux-x86-low.cc (the_low_target): Remove the op field.
1553 * linux-aarch64-low.cc (the_low_target): Ditto.
1554 * linux-bfin-low.cc (the_low_target): Ditto.
1555 * linux-cris-low.cc (the_low_target): Ditto.
1556 * linux-crisv32-low.cc (the_low_target): Ditto.
1557 * linux-m32r-low.cc (the_low_target): Ditto.
1558 * linux-m68k-low.cc (the_low_target): Ditto.
1559 * linux-mips-low.cc (the_low_target): Ditto.
1560 * linux-nios2-low.cc (the_low_target): Ditto.
1561 * linux-ppc-low.cc (the_low_target): Ditto.
1562 * linux-riscv-low.cc (the_low_target): Ditto.
1563 * linux-s390-low.cc (the_low_target): Ditto.
1564 * linux-sh-low.cc (the_low_target): Ditto.
1565 * linux-sparc-low.cc (the_low_target): Ditto.
1566 * linux-tic6x-low.cc (the_low_target): Ditto.
1567 * linux-tile-low.cc (the_low_target): Ditto.
1568 * linux-xtensa-low.cc (the_low_target): Ditto.
1569 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1570 <supports_software_single_step>: Declare.
1571 (arm_target::supports_software_single_step): Define.
1572 (arm_gdbserver_get_next_pcs): Turn into...
1573 (arm_target::low_get_next_pcs): ...this.
1574 (the_low_target): Remove the op field.
1575
3ca4edb6
TBA
15762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1577
1578 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1579 the concrete linux target define it by overriding the op
1580 in process_stratum_target.
1581
1582 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1583 Remove.
1584 * linux-low.h (struct linux_target_ops): Remove the op.
1585 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1586 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1587 Declare.
1588 (x86_sw_breakpoint_from_kind): Turn into...
1589 (x86_target::sw_breakpoint_from_kind): ...this.
1590 (the_low_target): Remove the op field.
1591 * linux-aarch64-low.cc (class aarch64_target)
1592 <sw_breakpoint_from_kind>: Declare.
1593 (aarch64_sw_breakpoint_from_kind): Turn into...
1594 (aarch64_target::sw_breakpoint_from_kind): ...this.
1595 (the_low_target): Remove the op field.
1596 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1597 Declare.
1598 (arm_target::sw_breakpoint_from_kind): Define.
1599 (the_low_target): Remove the op field.
1600 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1601 Declare.
1602 (bfin_sw_breakpoint_from_kind): Turn into...
1603 (bfin_target::sw_breakpoint_from_kind): ...this.
1604 (the_low_target): Remove the op field.
1605 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1606 Declare.
1607 (cris_sw_breakpoint_from_kind): Turn into...
1608 (cris_target::sw_breakpoint_from_kind): ...this.
1609 (the_low_target): Remove the op field.
1610 * linux-crisv32-low.cc (class crisv32_target)
1611 <sw_breakpoint_from_kind>: Declare.
1612 (cris_sw_breakpoint_from_kind): Turn into...
1613 (crisv32_target::sw_breakpoint_from_kind): ...this.
1614 (the_low_target): Remove the op field.
1615 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1616 Declare.
1617 (ia64_target::sw_breakpoint_from_kind): Define.
1618 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1619 Declare.
1620 (m32r_sw_breakpoint_from_kind): Turn into...
1621 (m32r_target::sw_breakpoint_from_kind): ...this.
1622 (the_low_target): Remove the op field.
1623 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1624 Declare.
1625 (m68k_sw_breakpoint_from_kind): Turn into...
1626 (m68k_target::sw_breakpoint_from_kind): ...this.
1627 (the_low_target): Remove the op field.
1628 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1629 Declare.
1630 (mips_sw_breakpoint_from_kind): Turn into...
1631 (mips_target::sw_breakpoint_from_kind): ...this.
1632 (the_low_target): Remove the op field.
1633 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1634 Declare.
1635 (nios2_sw_breakpoint_from_kind): Turn into...
1636 (nios2_target::sw_breakpoint_from_kind): ...this.
1637 (the_low_target): Remove the op field.
1638 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1639 Declare.
1640 (ppc_sw_breakpoint_from_kind): Turn into...
1641 (ppc_target::sw_breakpoint_from_kind): ...this.
1642 (the_low_target): Remove the op field.
1643 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1644 Declare.
1645 (riscv_sw_breakpoint_from_kind): Turn into...
1646 (riscv_target::sw_breakpoint_from_kind): ...this.
1647 (the_low_target): Remove the op field.
1648 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1649 Declare.
1650 (s390_sw_breakpoint_from_kind): Turn into...
1651 (s390_target::sw_breakpoint_from_kind): ...this.
1652 (the_low_target): Remove the op field.
1653 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1654 Declare.
1655 (sh_sw_breakpoint_from_kind): Turn into...
1656 (sh_target::sw_breakpoint_from_kind): ...this.
1657 (the_low_target): Remove the op field.
1658 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1659 Declare.
1660 (sparc_sw_breakpoint_from_kind): Turn into...
1661 (sparc_target::sw_breakpoint_from_kind): ...this.
1662 (the_low_target): Remove the op field.
1663 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1664 Declare.
1665 (tic6x_sw_breakpoint_from_kind): Turn into...
1666 (tic6x_target::sw_breakpoint_from_kind): ...this.
1667 (the_low_target): Remove the op field.
1668 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1669 Declare.
1670 (tile_sw_breakpoint_from_kind): Turn into...
1671 (tile_target::sw_breakpoint_from_kind): ...this.
1672 (the_low_target): Remove the op field.
1673 * linux-xtensa-low.cc (class xtensa_target)
1674 <sw_breakpoint_from_kind>: Declare.
1675 (xtensa_sw_breakpoint_from_kind): Turn into...
1676 (xtensa_target::sw_breakpoint_from_kind): ...this.
1677 (the_low_target): Remove the op field.
1678
06250e4e
TBA
16792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1680
1681 Remove the 'breakpoint_kind_from_pc' and
1682 'breakpoint_kind_from_current_state' linux target ops, and let the
1683 concrete linux target define them by overriding the ops of
1684 process_stratum_target.
1685
1686 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1687 Remove.
1688 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1689 * linux-low.h (struct linux_target_ops): Remove ops.
1690 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1691 <breakpoint_kind_from_current_state>: Remove.
1692 * linux-x86-low.cc (the_low_target): Remove the op fields.
1693 * linux-bfin-low.cc (the_low_target): Ditto.
1694 * linux-cris-low.cc (the_low_target): Ditto.
1695 * linux-crisv32-low.cc (the_low_target): Ditto.
1696 * linux-m32r-low.cc (the_low_target): Ditto.
1697 * linux-m68k-low.cc (the_low_target): Ditto.
1698 * linux-mips-low.cc (the_low_target): Ditto.
1699 * linux-nios2-low.cc (the_low_target): Ditto.
1700 * linux-ppc-low.cc (the_low_target): Ditto.
1701 * linux-s390-low.cc (the_low_target): Ditto.
1702 * linux-sh-low.cc (the_low_target): Ditto.
1703 * linux-sparc-low.cc (the_low_target): Ditto.
1704 * linux-tic6x-low.cc (the_low_target): Ditto.
1705 * linux-tile-low.cc (the_low_target): Ditto.
1706 * linux-xtensa-low.cc (the_low_target): Ditto.
1707 * linux-aarch64-low.cc (class aarch64_target)
1708 <breakpoint_kind_from_pc>
1709 <breakpoint_kind_from_current_state>: Declare.
1710 (aarch64_breakpoint_kind_from_pc): Turn into...
1711 (aarch64_target::breakpoint_kind_from_pc): ...this.
1712 (aarch64_breakpoint_kind_from_current_state): Turn into...
1713 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1714 (the_low_target): Remove the op fields.
1715 * linux-arm-low.cc (class arm_target):
1716 <breakpoint_kind_from_pc>
1717 <breakpoint_kind_from_current_state>: Declare.
1718 (arm_target::breakpoint_kind_from_pc): Define.
1719 (arm_target::breakpoint_kind_from_current_state): Define.
1720 (the_low_target): Remove the op fields.
1721 * linux-riscv-low.cc (class riscv_target):
1722 <breakpoint_kind_from_pc>: Declare.
1723 (riscv_breakpoint_kind_from_pc): Turn into...
1724 (riscv_target::breakpoint_kind_from_pc): ...this.
1725 (the_low_target): Remove the op fields.
1726
bf9ae9d8
TBA
17272020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1728
1729 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1730 of linux_process_target.
1731
1732 * linux-low.h (struct linux_target_ops): Remove the ops.
1733 (class linux_process_target) <low_supports_breakpoints>
1734 <low_get_pc>
1735 <low_set_pc>: Declare.
1736 * linux-low.cc (supports_breakpoints): Turn into...
1737 (linux_process_target::low_supports_breakpoints): ...this.
1738 (linux_process_target::low_get_pc): Define.
1739 (linux_process_target::low_set_pc): Define.
1740
1741 Update the callers below.
1742
1743 (linux_process_target::get_pc)
1744 (linux_process_target::save_stop_reason)
1745 (linux_process_target::maybe_move_out_of_jump_pad)
1746 (linux_process_target::wait_1)
1747 (linux_process_target::resume_one_lwp_throw)
1748 (linux_process_target::resume)
1749 (linux_process_target::proceed_all_lwps)
1750 (linux_process_target::read_pc)
1751 (linux_process_target::write_pc)
1752
1753 * linux-x86-low.cc (class linux_process_target)
1754 <low_supports_breakpoints>
1755 <low_get_pc>
1756 <low_set_pc>: Declare.
1757 (x86_target::low_supports_breakpoints): Define.
1758 (x86_get_pc): Turn into...
1759 (x86_target::low_get_pc): ...this.
1760 (x86_set_pc): Turn into...
1761 (x86_target::low_set_pc): ...this.
1762 (the_low_target): Remove the op fields.
1763 * linux-arm-low.cc (class arm_target)
1764 <low_supports_breakpoints>
1765 <low_get_pc>
1766 <low_set_pc>: Declare.
1767 (arm_target::low_supports_breakpoints)
1768 (arm_target::low_get_pc)
1769 (arm_target::low_set_pc): Define.
1770 (the_low_target): Remove the op fields.
1771 * linux-bfin-low.cc (class bfin_target)
1772 <low_supports_breakpoints>
1773 <low_get_pc>
1774 <low_set_pc>: Declare.
1775 (bfin_target::low_supports_breakpoints)
1776 (bfin_target::low_get_pc)
1777 (bfin_target::low_set_pc): Define.
1778 (the_low_target): Remove the op fields.
1779 * linux-cris-low.cc (class cris_target)
1780 <low_supports_breakpoints>
1781 <low_get_pc>
1782 <low_set_pc>: Declare.
1783 (cris_target::low_supports_breakpoints)
1784 (cris_target::low_get_pc)
1785 (cris_target::low_set_pc): Define.
1786 (the_low_target): Remove the op fields.
1787 * linux-crisv32-low.cc (class crisv32_target)
1788 <low_supports_breakpoints>
1789 <low_get_pc>
1790 <low_set_pc>: Declare.
1791 (crisv32_target::low_supports_breakpoints)
1792 (crisv32_target::low_get_pc)
1793 (crisv32_target::low_set_pc): Define.
1794 (the_low_target): Remove the op fields.
1795 * linux-m32r-low.cc (class m32r_target)
1796 <low_supports_breakpoints>
1797 <low_get_pc>
1798 <low_set_pc>: Declare.
1799 (m32r_target::low_supports_breakpoints)
1800 (m32r_target::low_get_pc)
1801 (m32r_target::low_set_pc): Define.
1802 (the_low_target): Remove the op fields.
1803 * linux-m68k-low.cc (class m68k_target)
1804 <low_supports_breakpoints>
1805 <low_get_pc>
1806 <low_set_pc>: Declare.
1807 (m68k_target::low_supports_breakpoints)
1808 (m68k_target::low_get_pc)
1809 (m68k_target::low_set_pc): Define.
1810 (the_low_target): Remove the op fields.
1811 * linux-nios2-low.cc (class nios2_target)
1812 <low_supports_breakpoints>
1813 <low_get_pc>
1814 <low_set_pc>: Declare.
1815 (nios2_target::low_supports_breakpoints)
1816 (nios2_target::low_get_pc)
1817 (nios2_target::low_set_pc): Define.
1818 (the_low_target): Remove the op fields.
1819 * linux-sh-low.cc (class sh_target)
1820 <low_supports_breakpoints>
1821 <low_get_pc>
1822 <low_set_pc>: Declare.
1823 (sh_target::low_supports_breakpoints)
1824 (sh_target::low_get_pc)
1825 (sh_target::low_set_pc): Define.
1826 (the_low_target): Remove the op fields.
1827 * linux-xtensa-low.cc (class xtensa_target)
1828 <low_supports_breakpoints>
1829 <low_get_pc>
1830 <low_set_pc>: Declare.
1831 (xtensa_target::low_supports_breakpoints)
1832 (xtensa_target::low_get_pc)
1833 (xtensa_target::low_set_pc): Define.
1834 (the_low_target): Remove the op fields.
1835 * linux-sparc-low.cc (class sparc_target)
1836 <low_supports_breakpoints>
1837 <low_get_pc>: Declare.
1838 (sparc_target::low_supports_breakpoints)
1839 (sparc_target::low_get_pc): Define.
1840 (the_low_target): Remove the op fields.
1841 * linux-tile-low.cc (class tile_target)
1842 <low_supports_breakpoints>
1843 <low_get_pc>
1844 <low_set_pc>: Declare.
1845 (tile_target::low_supports_breakpoints)
1846 (tile_target::low_get_pc)
1847 (tile_target::low_set_pc): Define.
1848 (the_low_target): Remove the op fields.
1849 * linux-aarch64-low.cc (class aarch64_target)
1850 <low_supports_breakpoints>
1851 <low_get_pc>
1852 <low_set_pc>: Declare.
1853 (aarch64_target::low_supports_breakpoints): Define.
1854 (aarch64_get_pc): Turn into...
1855 (aarch64_target::low_get_pc): ...this.
1856 (aarch64_set_pc): Turn into...
1857 (aarch64_target::low_set_pc): ...this.
1858 (the_low_target): Remove the op fields.
1859 * linux-mips-low.cc (class mips_target)
1860 <low_supports_breakpoints>
1861 <low_get_pc>
1862 <low_set_pc>: Declare.
1863 (mips_target::low_supports_breakpoints): Define.
1864 (mips_get_pc): Turn into...
1865 (mips_target::low_get_pc): ...this.
1866 (mips_set_pc): Turn into...
1867 (mips_target::low_set_pc): ...this.
1868 (the_low_target): Remove the op fields.
1869 * linux-ppc-low.cc (class ppc_target)
1870 <low_supports_breakpoints>
1871 <low_get_pc>
1872 <low_set_pc>: Declare.
1873 (ppc_target::low_supports_breakpoints): Define.
1874 (ppc_get_pc): Turn into...
1875 (ppc_target::low_get_pc): ...this.
1876 (ppc_set_pc): Turn into...
1877 (ppc_target::low_set_pc): ...this.
1878 (the_low_target): Remove the op fields.
1879 * linux-riscv-low.cc (class riscv_target)
1880 <low_supports_breakpoints>
1881 <low_get_pc>
1882 <low_set_pc>: Declare.
1883 (riscv_target::low_supports_breakpoints): Define.
1884 (riscv_get_pc): Turn into...
1885 (riscv_target::low_get_pc): ...this.
1886 (riscv_set_pc): Turn into...
1887 (riscv_target::low_set_pc): ...this.
1888 (the_low_target): Remove the op fields.
1889 * linux-s390-low.cc (class s390_target)
1890 <low_supports_breakpoints>
1891 <low_get_pc>
1892 <low_set_pc>: Declare.
1893 (s390_target::low_supports_breakpoints): Define.
1894 (s390_get_pc): Turn into...
1895 (s390_target::low_get_pc): ...this.
1896 (s390_set_pc): Turn into...
1897 (s390_target::low_set_pc): ...this.
1898 (the_low_target): Remove the op fields.
1899 * linux-tic6x-low.cc (class tic6x_target)
1900 <low_supports_breakpoints>
1901 <low_get_pc>
1902 <low_set_pc>: Declare.
1903 (tic6x_target::low_supports_breakpoints): Define.
1904 (tic6x_get_pc): Turn into...
1905 (tic6x_target::low_get_pc): ...this.
1906 (tic6x_set_pc): Turn into...
1907 (tic6x_target::low_set_pc): ...this.
1908 (the_low_target): Remove the op fields.
1909
df95181f
TBA
19102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1911
1912 Turn some more static methods in linux-low into private methods
1913 of linux_process_target.
1914
1915 * linux-low.cc (get_pc): Turn into...
1916 (linux_process_target::get_pc): ...this.
1917 (save_stop_reason): Turn into...
1918 (linux_process_target::save_stop_reason): ...this.
1919 (thread_still_has_status_pending_p): Turn into...
1920 (linux_process_target::thread_still_has_status_pending): ...this.
1921 (status_pending_p_callback): Turn into...
1922 (linux_process_target::status_pending_p_callback): ...this.
1923 (resume_stopped_resumed_lwps): Turn into...
1924 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1925 (install_software_single_step_breakpoints): Turn into...
1926 (linux_process_target::install_software_single_step_breakpoints):
1927 ...this.
1928 (single_step): Turn into...
1929 (linux_process_target::single_step): ...this.
1930 (linux_resume_one_lwp_throw): Turn into...
1931 (linux_process_target::resume_one_lwp_throw): ...this.
1932 (linux_resume_one_lwp): Turn into...
1933 (linux_process_target::resume_one_lwp): ...this.
1934 (resume_status_pending_p): Turn into...
1935 (linux_process_target::resume_status_pending): ...this.
1936 (need_step_over_p): Turn into...
1937 (linux_process_target::thread_needs_step_over): ...this.
1938 (linux_resume_one_thread): Turn into...
1939 (linux_process_target::resume_one_thread): ...this.
1940 (proceed_one_lwp): Turn into...
1941 (linux_process_target::proceed_one_lwp): ...this.
1942 (unsuspend_and_proceed_one_lwp): Turn into...
1943 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1944
1945 Update the calls/references to the above functions below.
1946
1947 (linux_process_target::handle_extended_wait)
1948 (linux_process_target::filter_event)
1949 (linux_process_target::wait_for_event_filtered)
1950 (linux_process_target::wait_1)
1951 (linux_process_target::move_out_of_jump_pad)
1952 (linux_process_target::start_step_over)
1953 (linux_process_target::resume)
1954 (linux_process_target::proceed_all_lwps)
1955 (regsets_store_inferior_registers)
1956 (linux_process_target::store_register)
1957
1958 * linux-low.h (class linux_process_target)
1959 <get_pc>
1960 <save_stop_reason>
1961 <thread_still_has_status_pending>
1962 <status_pending_p_callback>
1963 <resume_stopped_resumed_lwps>
1964 <install_software_single_step_breakpoints>
1965 <single_step>
1966 <resume_one_lwp_throw>
1967 <resume_one_lwp>
1968 <resume_status_pending>
1969 <thread_needs_step_over>
1970 <resume_one_thread>
1971 <proceed_one_lwp>
1972 <unsuspend_and_proceed_one_lwp>: Declare.
1973
bd70b1f2
TBA
19742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1975
1976 Turn the 'fetch_register' linux target op into a method of
1977 linux_process_target.
1978
1979 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1980 (class linux_process_target) <low_fetch_register>: Declare.
1981 * linux-x86-low.cc (the_low_target)
1982 * linux-aarch64-low.cc (the_low_target)
1983 * linux-arm-low.cc (the_low_target)
1984 * linux-bfin-low.cc (the_low_target)
1985 * linux-cris-low.cc (the_low_target)
1986 * linux-crisv32-low.cc (the_low_target)
1987 * linux-m32r-low.cc (the_low_target)
1988 * linux-m68k-low.cc (the_low_target)
1989 * linux-nios2-low.cc (the_low_target)
1990 * linux-ppc-low.cc (the_low_target)
1991 * linux-s390-low.cc (the_low_target)
1992 * linux-sh-low.cc (the_low_target)
1993 * linux-sparc-low.cc (the_low_target)
1994 * linux-tic6x-low.cc (the_low_target)
1995 * linux-tile-low.cc (the_low_target)
1996 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1997 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1998 Declare.
1999 (ia64_fetch_register): Turn into...
2000 (ia64_target::low_fetch_register): ...this.
2001 (the_low_target): Remove the op field.
2002 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2003 Declare.
2004 (mips_fetch_register): Turn into...
2005 (mips_target::low_fetch_register): ...this.
2006 (the_low_target): Remove the op field.
2007 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2008 Declare.
2009 (riscv_fetch_register): Turn into...
2010 (riscv_target::low_fetch_register): ...this.
2011 (the_low_target): Remove the op field.
2012
2013 Update the callers below.
2014
2015 * linux-low.cc (linux_process_target::fetch_registers)
2016 (linux_process_target::low_fetch_register)
2017
daca57a7
TBA
20182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2019
2020 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2021 linux target ops into methods of linux_process_target.
2022
2023 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2024 (class linux_process_target) <fetch_register>
2025 <store_register>
2026 <usr_fetch_inferior_registers>
2027 <usr_store_inferior_registers>
2028 <low_cannot_fetch_register>
2029 <low_cannot_fetch_register> Declare.
2030 * linux-low.cc (fetch_register): Turn into...
2031 (linux_process_target::fetch_register): ...this.
2032 (store_register): Turn into ...
2033 (linux_process_target::store_register): ...this.
2034 (usr_fetch_inferior_registers): Turn into...
2035 (linux_process_target::usr_fetch_inferior_registers): ...this.
2036 (usr_store_inferior_registers): Turn into...
2037 (linux_process_target::usr_store_inferior_registers): ...this.
2038 * linux-x86-low.cc (class x86_target)
2039 <low_cannot_fetch_register>
2040 <low_cannot_store_register>: Declare.
2041 (x86_cannot_store_register): Turn into...
2042 (x86_target::low_cannot_store_register): ...this.
2043 (x86_cannot_fetch_register): Turn into...
2044 (x86_target::low_cannot_fetch_register): ...this.
2045 (the_low_target): Remove the target op fields.
2046 * linux-aarch64-low.cc (class aarch64_target)
2047 <low_cannot_fetch_register>
2048 <low_cannot_store_register>: Declare.
2049 (aarch64_target::low_cannot_fetch_register)
2050 (aarch64_target::low_cannot_store_register): Define.
2051 (the_low_target): Remove the op fields.
2052 * linux-arm-low.cc (class arm_target)
2053 <low_cannot_fetch_register>
2054 <low_cannot_store_register>: Declare.
2055 (arm_cannot_fetch_register): Turn into...
2056 (arm_target::low_cannot_fetch_register): ...this.
2057 (arm_cannot_store_register): Turn into...
2058 (arm_target::low_cannot_store_register): ...this.
2059 (the_low_target): Remove the op fields.
2060 * linux-bfin-low.cc (class bfin_target)
2061 <low_cannot_fetch_register>
2062 <low_cannot_store_register>: Declare.
2063 (bfin_cannot_fetch_register): Turn into...
2064 (bfin_target::low_cannot_fetch_register): ...this.
2065 (bfin_cannot_store_register): Turn into...
2066 (bfin_target::low_cannot_store_register): ...this.
2067 (the_low_target): Remove the op fields.
2068 * linux-cris-low.cc (class cris_target)
2069 <low_cannot_fetch_register>
2070 <low_cannot_store_register>: Declare.
2071 (cris_cannot_fetch_register): Turn into...
2072 (cris_target::low_cannot_fetch_register): ...this.
2073 (cris_cannot_store_register): Turn into...
2074 (cris_target::low_cannot_store_register): ...this.
2075 (the_low_target): Remove the op fields.
2076 * linux-crisv32-low.cc (class crisv32_target)
2077 <low_cannot_fetch_register>
2078 <low_cannot_store_register>: Declare.
2079 (crisv32_target::low_cannot_fetch_register)
2080 (crisv32_target::low_cannot_store_register): Define.
2081 (the_low_target): Remove the op fields.
2082 * linux-ia64-low.cc (class ia64_target)
2083 <low_cannot_fetch_register>
2084 <low_cannot_store_register>: Declare.
2085 (ia64_cannot_fetch_register): Turn into...
2086 (ia64_target::low_cannot_fetch_register): ...this.
2087 (ia64_cannot_store_register): Turn into...
2088 (ia64_target::low_cannot_store_register): ...this.
2089 (the_low_target): Remove the op fields.
2090 * linux-m32r-low.cc (class m32r_target)
2091 <low_cannot_fetch_register>
2092 <low_cannot_store_register>: Declare.
2093 (m32r_cannot_fetch_register): Turn into...
2094 (m32r_target::low_cannot_fetch_register): ...this.
2095 (m32r_cannot_store_register): Turn into...
2096 (m32r_target::low_cannot_store_register): ...this.
2097 (the_low_target): Remove the op fields.
2098 * linux-m68k-low.cc (class m68k_target)
2099 <low_cannot_fetch_register>
2100 <low_cannot_store_register>: Declare.
2101 (m68k_cannot_fetch_register): Turn into...
2102 (m68k_target::low_cannot_fetch_register): ...this.
2103 (m68k_cannot_store_register): Turn into...
2104 (m68k_target::low_cannot_store_register): ...this.
2105 (the_low_target): Remove the op fields.
2106 * linux-mips-low.cc (class mips_target)
2107 <low_cannot_fetch_register>
2108 <low_cannot_store_register>: Declare.
2109 (mips_cannot_fetch_register): Turn into...
2110 (mips_target::low_cannot_fetch_register): ...this.
2111 (mips_cannot_store_register): Turn into...
2112 (mips_target::low_cannot_store_register): ...this.
2113 (get_usrregs_info): Inline at the call sites in
2114 low_cannot_fetch_register and low_cannot_store_register,
2115 and remove.
2116 (the_low_target): Remove the op fields.
2117 * linux-nios2-low.cc (class nios2_target)
2118 <low_cannot_fetch_register>
2119 <low_cannot_store_register>: Declare.
2120 (nios2_cannot_fetch_register): Turn into...
2121 (nios2_target::low_cannot_fetch_register): ...this.
2122 (nios2_cannot_store_register): Turn into...
2123 (nios2_target::low_cannot_store_register): ...this.
2124 (the_low_target): Remove the op fields.
2125 * linux-ppc-low.cc (class ppc_target)
2126 <low_cannot_fetch_register>
2127 <low_cannot_store_register>: Declare.
2128 (ppc_cannot_fetch_register): Turn into...
2129 (ppc_target::low_cannot_fetch_register): ...this.
2130 (ppc_cannot_store_register): Turn into...
2131 (ppc_target::low_cannot_store_register): ...this.
2132 (the_low_target): Remove the op fields.
2133 * linux-riscv-low.cc (class riscv_target)
2134 <low_cannot_fetch_register>
2135 <low_cannot_store_register>: Declare.
2136 (riscv_target::low_cannot_fetch_register)
2137 (riscv_target::low_cannot_store_register): Define.
2138 (the_low_target): Remove the op fields.
2139 * linux-s390-low.cc (class s390_target)
2140 <low_cannot_fetch_register>
2141 <low_cannot_store_register>: Declare.
2142 (s390_cannot_fetch_register): Turn into...
2143 (s390_target::low_cannot_fetch_register): ...this.
2144 (s390_cannot_store_register): Turn into...
2145 (s390_target::low_cannot_store_register): ...this.
2146 (the_low_target): Remove the op fields.
2147 * linux-sh-low.cc (class sh_target)
2148 <low_cannot_fetch_register>
2149 <low_cannot_store_register>: Declare.
2150 (sh_cannot_fetch_register): Turn into...
2151 (sh_target::low_cannot_fetch_register): ...this.
2152 (sh_cannot_store_register): Turn into...
2153 (sh_target::low_cannot_store_register): ...this.
2154 (the_low_target): Remove the op fields.
2155 * linux-sparc-low.cc (class sparc_target)
2156 <low_cannot_fetch_register>
2157 <low_cannot_store_register>: Declare.
2158 (sparc_cannot_fetch_register): Turn into...
2159 (sparc_target::low_cannot_fetch_register): ...this.
2160 (sparc_cannot_store_register): Turn into...
2161 (sparc_target::low_cannot_store_register): ...this.
2162 (the_low_target): Remove the op fields.
2163 * linux-tic6x-low.cc (class tic6x_target)
2164 <low_cannot_fetch_register>
2165 <low_cannot_store_register>: Declare.
2166 (tic6x_cannot_fetch_register): Turn into...
2167 (tic6x_target::low_cannot_fetch_register): ...this.
2168 (tic6x_cannot_store_register): Turn into...
2169 (tic6x_target::low_cannot_store_register): ...this.
2170 (the_low_target): Remove the op fields.
2171 * linux-tile-low.cc (class tile_target)
2172 <low_cannot_fetch_register>
2173 <low_cannot_store_register>: Declare.
2174 (tile_cannot_fetch_register): Turn into...
2175 (tile_target::low_cannot_fetch_register): ...this.
2176 (tile_cannot_store_register): Turn into...
2177 (tile_target::low_cannot_store_register): ...this.
2178 (the_low_target): Remove the op fields.
2179 * linux-xtensa-low.cc (class xtensa_target)
2180 <low_cannot_fetch_register>
2181 <low_cannot_store_register>: Declare.
2182 (xtensa_target::low_cannot_fetch_register)
2183 (xtensa_target::low_cannot_store_register): Define.
2184 (the_low_target): Remove the op fields.
2185
aa8d21c9
TBA
21862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2187
2188 Turn the 'regs_info' linux target op into a method of
2189 linux_process_target.
2190
2191 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2192 (class linux_process_target) <get_regs_info>: Define.
2193
2194 Update the callers below.
2195
2196 * linux-low.cc (linux_process_target::fetch_registers)
2197 (linux_process_target::store_registers)
2198 * proc-service.cc (gregset_info)
2199
2200 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2201 (x86_linux_regs_info): Turn into ...
2202 (x86_target::get_regs_info): ...this.
2203 (the_low_target): Remove the op field.
2204 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2205 Declare.
2206 (aarch64_regs_info): Turn into ...
2207 (aarch64_target::get_regs_info): ...this.
2208 (the_low_target): Remove the op field.
2209 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2210 (arm_regs_info): Turn into ...
2211 (arm_target::get_regs_info): ...this.
2212 (the_low_target): Remove the op field.
2213 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2214 (bfin_regs_info): Turn into ...
2215 (bfin_target::get_regs_info): ...this.
2216 (the_low_target): Remove the op field.
2217 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2218 (cris_regs_info): Turn into ...
2219 (cris_target::get_regs_info): ...this.
2220 (the_low_target): Remove the op field.
2221 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2222 Declare.
2223 (crisv32_regs_info): Turn into ...
2224 (crisv32_target::get_regs_info): ...this.
2225 (the_low_target): Remove the op field.
2226 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2227 (ia64_regs_info): Turn into ...
2228 (ia64_target::get_regs_info): ...this.
2229 (the_low_target): Remove the op field.
2230 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2231 (m32r_regs_info): Turn into ...
2232 (m32r_target::get_regs_info): ...this.
2233 (the_low_target): Remove the op field.
2234 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2235 (m68k_regs_info): Turn into ...
2236 (m68k_target::get_regs_info): ...this.
2237 (the_low_target): Remove the op field.
2238 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2239 (mips_regs_info): Turn into ...
2240 (mips_target::get_regs_info): ...this.
2241 (the_low_target): Remove the op field.
2242 (get_usrregs_info): Update the call to the op.
2243 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2244 (nios2_regs_info): Turn into ...
2245 (nios2_target::get_regs_info): ...this.
2246 (the_low_target): Remove the op field.
2247 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2248 (ppc_regs_info): Turn into ...
2249 (ppc_target::get_regs_info): ...this.
2250 (the_low_target): Remove the op field.
2251 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2252 (riscv_regs_info): Turn into ...
2253 (riscv_target::get_regs_info): ...this.
2254 (the_low_target): Remove the op field.
2255 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2256 (s390_regs_info): Turn into ...
2257 (s390_target::get_regs_info): ...this.
2258 (the_low_target): Remove the op field.
2259 (s390_collect_ptrace_register)
2260 (s390_supply_ptrace_register)
2261 (s390_fill_gregset): Update the call to the op.
2262 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2263 (sh_regs_info): Turn into ...
2264 (sh_target::get_regs_info): ...this.
2265 (the_low_target): Remove the op field.
2266 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2267 (sparc_regs_info): Turn into ...
2268 (sparc_target::get_regs_info): ...this.
2269 (the_low_target): Remove the op field.
2270 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2271 (tic6x_regs_info): Turn into ...
2272 (tic6x_target::get_regs_info): ...this.
2273 (the_low_target): Remove the op field.
2274 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2275 (tile_regs_info): Turn into ...
2276 (tile_target::get_regs_info): ...this.
2277 (the_low_target): Remove the op field.
2278 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2279 Declare.
2280 (xtensa_regs_info): Turn into ...
2281 (xtensa_target::get_regs_info): ...this.
2282 (the_low_target): Remove the op field.
2283
797bcff5
TBA
22842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2285
2286 Turn the 'arch_setup' linux target op into a method of
2287 linux_process_target.
2288
2289 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2290 (class linux_process_target) <arch_setup_thread>
2291 <low_arch_setup>: New declarations.
2292 * linux-low.cc (linux_arch_setup): Delete.
2293 (linux_arch_setup_thread): Turn into...
2294 (linux_process_target::arch_setup_thread): ... this.
2295
2296 Update the callers below.
2297
2298 (linux_process_target::handle_extended_wait)
2299 (linux_process_target::post_create_inferior)
2300 (linux_process_target::filter_event)
2301
2302 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2303 declaration.
2304 (x86_linux_update_xmltarget): Turn into...
2305 (x86_target::update_xmltarget): ...this.
2306 (x86_linux_process_qsupported): Update the call to
2307 x86_linux_update_xmltarget.
2308 (x86_arch_setup): Turn into ...
2309 (x86_target::low_arch_setup): ...this.
2310 (the_low_target): Remove the op field.
2311 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2312 declaration.
2313 (aarch64_arch_setup): Turn into ...
2314 (aarch64_target::low_arch_setup): ...this.
2315 (the_low_target): Remove the op field.
2316 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2317 declaration.
2318 (arm_arch_setup): Turn into ...
2319 (arm_target::low_arch_setup): ...this.
2320 (the_low_target): Remove the op field.
2321 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2322 declaration.
2323 (bfin_arch_setup): Turn into ...
2324 (bfin_target::low_arch_setup): ...this.
2325 (the_low_target): Remove the op field.
2326 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2327 declaration.
2328 (cris_arch_setup): Turn into ...
2329 (cris_target::low_arch_setup): ...this.
2330 (the_low_target): Remove the op field.
2331 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2332 declaration.
2333 (crisv32_arch_setup): Turn into ...
2334 (crisv32_target::low_arch_setup): ...this.
2335 (the_low_target): Remove the op field.
2336 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2337 declaration.
2338 (ia64_arch_setup): Turn into ...
2339 (ia64_target::low_arch_setup): ...this.
2340 (the_low_target): Remove the op field.
2341 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2342 declaration.
2343 (m32r_arch_setup): Turn into ...
2344 (m32r_target::low_arch_setup): ...this.
2345 (the_low_target): Remove the op field.
2346 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2347 declaration.
2348 (m68k_arch_setup): Turn into ...
2349 (m68k_target::low_arch_setup): ...this.
2350 (the_low_target): Remove the op field.
2351 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2352 declaration.
2353 (mips_arch_setup): Turn into ...
2354 (mips_target::low_arch_setup): ...this.
2355 (the_low_target): Remove the op field.
2356 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2357 declaration.
2358 (nios2_arch_setup): Turn into ...
2359 (nios2_target::low_arch_setup): ...this.
2360 (the_low_target): Remove the op field.
2361 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2362 declaration.
2363 (ppc_arch_setup): Turn into ...
2364 (ppc_target::low_arch_setup): ...this.
2365 (the_low_target): Remove the op field.
2366 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2367 declaration.
2368 (riscv_arch_setup): Turn into ...
2369 (riscv_target::low_arch_setup): ...this.
2370 (the_low_target): Remove the op field.
2371 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2372 declaration.
2373 (s390_arch_setup): Turn into ...
2374 (s390_target::low_arch_setup): ...this.
2375 (the_low_target): Remove the op field.
2376 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2377 declaration.
2378 (sh_arch_setup): Turn into ...
2379 (sh_target::low_arch_setup): ...this.
2380 (the_low_target): Remove the op field.
2381 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2382 declaration.
2383 (sparc_arch_setup): Turn into ...
2384 (sparc_target::low_arch_setup): ...this.
2385 (the_low_target): Remove the op field.
2386 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2387 declaration.
2388 (tic6x_arch_setup): Turn into ...
2389 (tic6x_target::low_arch_setup): ...this.
2390 (the_low_target): Remove the op field.
2391 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2392 declaration.
2393 (tile_arch_setup): Turn into ...
2394 (tile_target::low_arch_setup): ...this.
2395 (the_low_target): Remove the op field.
2396 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2397 declaration.
2398 (xtensa_arch_setup): Turn into ...
2399 (xtensa_target::low_arch_setup): ...this.
2400 (the_low_target): Remove the op field.
2401
ef0478f6
TBA
24022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2403
2404 * linux-low.h (the_linux_target): New extern declaration.
2405 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2406 'the_target'.
2407 (the_linux_target): Remove.
2408 * linux-x86-low.cc (class x86_target): New class.
2409 (the_x86_target): New static object.
2410 (the_linux_target): Define as pointer to the_x86_target.
2411 * linux-aarch64-low.cc (class aarch64_target): New class.
2412 (the_aarch64_target): New static object.
2413 (the_linux_target): Define as pointer to the_aarch64_target.
2414 * linux-arm-low.cc (class arm_target): New class.
2415 (the_arm_target): New static object.
2416 (the_linux_target): Define as pointer to the_arm_target.
2417 * linux-bfin-low.cc (class bfin_target): New class.
2418 (the_bfin_target): New static object.
2419 (the_linux_target): Define as pointer to the_bfin_target.
2420 * linux-cris-low.cc (class cris_target): New class.
2421 (the_cris_target): New static object.
2422 (the_linux_target): Define as pointer to the_cris_target.
2423 * linux-crisv32-low.cc (class crisv32_target): New class.
2424 (the_crisv32_target): New static object.
2425 (the_linux_target): Define as pointer to the_crisv32_target.
2426 * linux-ia64-low.cc (class ia64_target): New class.
2427 (the_ia64_target): New static object.
2428 (the_linux_target): Define as pointer to the_ia64_target.
2429 * linux-m32r-low.cc (class m32r_target): New class.
2430 (the_m32r_target): New static object.
2431 (the_linux_target): Define as pointer to the_m32r_target.
2432 * linux-m68k-low.cc (class m68k_target): New class.
2433 (the_m68k_target): New static object.
2434 (the_linux_target): Define as pointer to the_m68k_target.
2435 * linux-mips-low.cc (class mips_target): New class.
2436 (the_mips_target): New static object.
2437 (the_linux_target): Define as pointer to the_mips_target.
2438 * linux-nios2-low.cc (class nios2_target): New class.
2439 (the_nios2_target): New static object.
2440 (the_linux_target): Define as pointer to the_nios2_target.
2441 * linux-ppc-low.cc (class ppc_target): New class.
2442 (the_ppc_target): New static object.
2443 (the_linux_target): Define as pointer to the_ppc_target.
2444 * linux-riscv-low.cc (class riscv_target): New class.
2445 (the_riscv_target): New static object.
2446 (the_linux_target): Define as pointer to the_riscv_target.
2447 * linux-s390-low.cc (class s390_target): New class.
2448 (the_s390_target): New static object.
2449 (the_linux_target): Define as pointer to the_s390_target.
2450 * linux-sh-low.cc (class sh_target): New class.
2451 (the_sh_target): New static object.
2452 (the_linux_target): Define as pointer to the_sh_target.
2453 * linux-sparc-low.cc (class sparc_target): New class.
2454 (the_sparc_target): New static object.
2455 (the_linux_target): Define as pointer to the_sparc_target.
2456 * linux-tic6x-low.cc (class tic6x_target): New class.
2457 (the_tic6x_target): New static object.
2458 (the_linux_target): Define as pointer to the_tic6x_target.
2459 * linux-tile-low.cc (class tile_target): New class.
2460 (the_tile_target): New static object.
2461 (the_linux_target): Define as pointer to the_tile_target.
2462 * linux-xtensa-low.cc (class xtensa_target): New class.
2463 (the_xtensa_target): New static object.
2464 (the_linux_target): Define as pointer to the_xtensa_target.
2465
d16f3f6c
TBA
24662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2467
2468 Turn some static functions in linux-low.cc into private methods of
2469 linux_process_target.
2470
2471 * linux-low.cc (handle_extended_wait): Turn into ...
2472 (linux_process_target::handle_extended_wait): ...this. Call
2473 'mourn' on 'this' object instead of 'the_target'.
2474 (maybe_move_out_of_jump_pad): Turn into...
2475 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2476 (linux_low_filter_event): Turn into...
2477 (linux_process_target::filter_event): ...this.
2478 (linux_wait_for_event_filtered): Turn into...
2479 (linux_process_target::wait_for_event_filtered): ...this.
2480 (linux_wait_for_event): Turn into...
2481 (linux_process_target::wait_for_event): ...this.
2482 (linux_wait_1): Turn into...
2483 (linux_process_target::wait_1): ...this.
2484 (wait_for_sigstop): Turn into...
2485 (linux_process_target::wait_for_sigstop): ...this.
2486 (move_out_of_jump_pad_callback): Turn into...
2487 (linux_process_target::move_out_of_jump_pad): ...this.
2488 (stop_all_lwps): Turn into...
2489 (linux_process_target::stop_all_lwps): ...this.
2490 (start_step_over): Turn into...
2491 (linux_process_target::start_step_over): ...this.
2492 (complete_ongoing_step_over): Turn into...
2493 (linux_process_target::complete_ongoing_step_over): ...this.
2494 (proceed_all_lwps): Turn into...
2495 (linux_process_target::proceed_all_lwps): ...this.
2496 (unstop_all_lwps): Turn into...
2497 (linux_process_target::unstop_all_lwps): ...this.
2498
2499 * linux-low.h (class linux_process_target)
2500 <handle_extended_wait>
2501 <maybe_move_out_of_jump_pad>
2502 filter_event>
2503 <wait_for_event_filtered>
2504 <wait_for_event>
2505 <wait_1>
2506 <wait_for_sigstop>
2507 <move_out_of_jump_pad>
2508 <stop_all_lwps>
2509 <start_step_over>
2510 <complete_ongoing_step_over>
2511 <proceed_all_lwps>
2512 <unstop_all_lwps>: Declare.
2513
2514 Update the callers below.
2515
2516 * linux-low.cc (linux_process_target::attach): Update.
2517 (linux_process_target::stabilize_threads): Ditto.
2518 (linux_process_target::wait): Ditto.
2519
a5863204
TBA
25202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2521
2522 * linux-low.h (struct linux_target_ops): Update the comment for
2523 'cannot_store_register' to return 0 or 1.
2524 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2525 of 2.
2526
c884cc46
SM
25272020-03-20 Simon Marchi <simon.marchi@efficios.com>
2528
2529 * config.in: Re-generate.
2530 * configure: Re-generate.
2531
5a82b8a1
KR
25322020-03-17 Kamil Rytarowski <n54@gmx.com>
2533
2534 * regcache.cc (find_register_by_number): Update.
2535 * tdesc.cc (init_target_desc): Likewise.
2536 * tdesc.h (target_desc::reg_defs): Likewise.
2537
4635ff97
TT
25382020-03-12 Tom Tromey <tom@tromey.com>
2539
2540 * configure: Rebuild.
2541 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2542 (WIN32APILIBS): New subst.
2543 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2544 gdbsupport files.
2545 (gdbsupport/%.o): Remove target.
2546 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2547 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2548 (WIN32APILIBS): New variable.
2549 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2550 (gdbreplay$(EXEEXT)): Likewise.
2551
9a665d62
TT
25522020-03-12 Tom Tromey <tom@tromey.com>
2553
2554 * config.in, configure: Rebuild.
2555 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2556 * acinclude.m4: Include gettext-sister.m4.
2557 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2558 variables.
2559 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2560 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2561
272cd5a3
SM
25622020-03-12 Simon Marchi <simon.marchi@efficios.com>
2563
2564 * acinclude.m4: Update path to selftest.m4.
2565
db6878ac
SM
25662020-03-12 Simon Marchi <simon.marchi@efficios.com>
2567
2568 * configure.ac: Don't source bfd/development.sh, move
2569 GDB_AC_COMMON higher.
2570 * configure: Re-generate.
2571
4d696a5c
SM
25722020-03-12 Simon Marchi <simon.marchi@efficios.com>
2573
2574 * configure: Re-generate.
2575
a0761e34
SM
25762020-03-11 Simon Marchi <simon.marchi@efficios.com>
2577
2578 * configure: Re-generate.
2579
20ea4a60
AB
25802020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2581
2582 * .dir-locals.el: New file.
2583
842806cb
TBA
25842020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2585
2586 * .gitattributes: New file.
2587
442131c1
AB
25882020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2589
2590 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2591 reply into an S reply.
2592 * server.cc (disable_packet_T): New global.
2593 (captured_main): Set new global when appropriate.
2594 * server.h (disable_packet_T): Declare.
2595
dda42c0b
TT
25962020-02-21 Tom Tromey <tom@tromey.com>
2597
2598 * Makefile.in (mostlyclean): New target.
2599
52405d85
TBA
26002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2601
2602 * target.h (struct process_stratum_target): Remove.
2603 (class process_target): Rename to ...
2604 (class process_stratum_target): ... this.
2605 * linux-low.h (class linux_process_target): Derive from
2606 'process_stratum_target'.
2607 * linux-low.cc (linux_target_ops): Remove.
2608 (initialize_low): Set the_target to the singleton instance of
2609 linux_process_target.
2610 * lynx-low.h (class lynx_process_target): Derive from
2611 'process_stratum_target'.
2612 * lynx-low.cc (lynx_target_ops): Remove.
2613 (initialize_low): Set the_target to the singleton instance of
2614 lynx_process_target.
2615 * nto-low.h (class nto_process_target): Derive from
2616 'process_stratum_target'.
2617 * nto-low.cc (nto_target_ops): Remove.
2618 (initialize_low): Set the_target to the singleton instance of
2619 nto_process_target.
2620 * win32-low.h (class win32_process_target): Derive from
2621 'process_stratum_target'.
2622 * win32-low.cc (win32_target_ops): Remove.
2623 (initialize_low): Set the_target to the singleton instance of
2624 win32_process_target.
2625
2626 Replace 'the_target->pt' with 'the_target' in the uses below.
2627
2628 * hostio.cc (hostio_error)
2629 (handle_setfs)
2630 (handle_open)
2631 (handle_unlink)
2632 (handle_readlink)
2633 * linux-aarch32-low.cc (arm_breakpoint_at)
2634 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2635 * linux-arm-low.cc (arm_sigreturn_next_pc)
2636 (arm_get_hwcap)
2637 (arm_get_syscall_trapinfo)
2638 * linux-cris-low.cc (cris_breakpoint_at)
2639 * linux-crisv32-low.cc (cris_breakpoint_at)
2640 * linux-low.cc (handle_extended_wait)
2641 (linux_wait_1)
2642 (linux_read_memory)
2643 (linux_process_target::breakpoint_kind_from_pc)
2644 (linux_get_auxv)
2645 * linux-m32r-low.cc (m32r_breakpoint_at)
2646 * linux-mips-low.cc (mips_breakpoint_at)
2647 * linux-nios2-low.cc (nios2_breakpoint_at)
2648 * linux-ppc-low.cc (ppc_breakpoint_at)
2649 * linux-s390-low.cc (s390_get_hwcap)
2650 * linux-sh-low.cc (sh_breakpoint_at)
2651 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2652 (sparc_store_gregset_from_stack)
2653 (sparc_breakpoint_at)
2654 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2655 * linux-tile-low.cc (tile_breakpoint_at)
2656 * linux-x86-low.cc (x86_breakpoint_at)
2657 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2658 * mem-break.cc (bp_size)
2659 (bp_opcode)
2660 (insert_memory_breakpoint)
2661 (set_raw_breakpoint_at)
2662 (delete_raw_breakpoint)
2663 (z_type_supported)
2664 (uninsert_raw_breakpoint)
2665 (reinsert_raw_breakpoint)
2666 (validate_inserted_breakpoint)
2667 * regcache.cc (regcache_read_pc)
2668 (regcache_write_pc)
2669 * remote-utils.cc (putpkt_binary_1)
2670 (input_interrupt)
2671 (getpkt)
2672 (prepare_resume_reply)
2673 * server.cc (handle_general_set)
2674 (handle_detach)
2675 (handle_qxfer_auxv)
2676 (handle_qxfer_exec_file)
2677 (handle_qxfer_libraries_svr4)
2678 (handle_qxfer_osdata)
2679 (handle_qxfer_siginfo)
2680 (handle_qxfer_fdpic)
2681 (handle_query)
2682 (resume)
2683 (handle_v_requests)
2684 (queue_stop_reply_callback)
2685 (captured_main)
2686 * target.cc (prepare_to_access_memory)
2687 (done_accessing_memory)
2688 (read_inferior_memory)
2689 (target_write_memory)
2690 (target_stop_and_wait)
2691 (target_wait)
2692 (target_mourn_inferior)
2693 (target_continue_no_signal)
2694 (target_continue)
2695 (target_supports_multi_process)
2696 (kill_inferior)
2697 * target.h
2698 (target_create_inferior)
2699 (target_post_create_inferior)
2700 (myattach)
2701 (target_supports_fork_events)
2702 (target_supports_vfork_events)
2703 (target_supports_exec_events)
2704 (target_handle_new_gdb_connection)
2705 (detach_inferior)
2706 (mythread_alive)
2707 (fetch_inferior_registers)
2708 (store_inferior_registers)
2709 (join_inferior)
2710 (target_supports_non_stop)
2711 (target_async)
2712 (target_process_qsupported)
2713 (target_supports_catch_syscall)
2714 (target_get_ipa_tdesc_idx)
2715 (target_supports_tracepoints)
2716 (target_supports_fast_tracepoints)
2717 (target_get_min_fast_tracepoint_insn_len)
2718 (target_thread_stopped)
2719 (target_pause_all)
2720 (target_unpause_all)
2721 (target_stabilize_threads)
2722 (target_install_fast_tracepoint_jump_pad)
2723 (target_emit_ops)
2724 (target_supports_disable_randomization)
2725 (target_supports_agent)
2726 (target_enable_btrace)
2727 (target_disable_btrace)
2728 (target_read_btrace)
2729 (target_read_btrace_conf)
2730 (target_supports_range_stepping)
2731 (target_supports_stopped_by_sw_breakpoint)
2732 (target_stopped_by_sw_breakpoint)
2733 (target_supports_stopped_by_hw_breakpoint)
2734 (target_supports_hardware_single_step)
2735 (target_stopped_by_hw_breakpoint)
2736 (target_breakpoint_kind_from_pc)
2737 (target_breakpoint_kind_from_current_state)
2738 (target_supports_software_single_step)
2739 (target_core_of_thread)
2740 (target_thread_name)
2741 (target_thread_handle)
2742 * win32-low.cc (do_initial_child_stuff)
2743
2744 Rename target op default definitions listed below.
2745
2746 * target.cc (process_target::post_create_inferior): Rename as ...
2747 (process_stratum_target::post_create_inferior): ... this.
2748 (process_target::prepare_to_access_memory): Rename as ...
2749 (process_stratum_target::prepare_to_access_memory): ... this.
2750 (process_target::done_accessing_memory): Rename as ...
2751 (process_stratum_target::done_accessing_memory): ... this.
2752 (process_target::look_up_symbols): Rename as ...
2753 (process_stratum_target::look_up_symbols): ... this.
2754 (process_target::supports_read_auxv): Rename as ...
2755 (process_stratum_target::supports_read_auxv): ... this.
2756 (process_target::read_auxv): Rename as ...
2757 (process_stratum_target::read_auxv): ... this.
2758 (process_target::supports_z_point_type): Rename as ...
2759 (process_stratum_target::supports_z_point_type): ... this.
2760 (process_target::insert_point): Rename as ...
2761 (process_stratum_target::insert_point): ... this.
2762 (process_target::remove_point): Rename as ...
2763 (process_stratum_target::remove_point): ... this.
2764 (process_target::stopped_by_sw_breakpoint): Rename as ...
2765 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2766 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2767 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2768 (process_target::stopped_by_hw_breakpoint): Rename as ...
2769 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2770 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2771 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2772 (process_target::supports_hardware_single_step): Rename as ...
2773 (process_stratum_target::supports_hardware_single_step): ... this.
2774 (process_target::stopped_by_watchpoint): Rename as ...
2775 (process_stratum_target::stopped_by_watchpoint): ... this.
2776 (process_target::stopped_data_address): Rename as ...
2777 (process_stratum_target::stopped_data_address): ... this.
2778 (process_target::supports_read_offsets): Rename as ...
2779 (process_stratum_target::supports_read_offsets): ... this.
2780 (process_target::read_offsets): Rename as ...
2781 (process_stratum_target::read_offsets): ... this.
2782 (process_target::supports_get_tls_address): Rename as ...
2783 (process_stratum_target::supports_get_tls_address): ... this.
2784 (process_target::get_tls_address): Rename as ...
2785 (process_stratum_target::get_tls_address): ... this.
2786 (process_target::hostio_last_error): Rename as ...
2787 (process_stratum_target::hostio_last_error): ... this.
2788 (process_target::supports_qxfer_osdata): Rename as ...
2789 (process_stratum_target::supports_qxfer_osdata): ... this.
2790 (process_target::qxfer_osdata): Rename as ...
2791 (process_stratum_target::qxfer_osdata): ... this.
2792 (process_target::supports_qxfer_siginfo): Rename as ...
2793 (process_stratum_target::supports_qxfer_siginfo): ... this.
2794 (process_target::qxfer_siginfo): Rename as ...
2795 (process_stratum_target::qxfer_siginfo): ... this.
2796 (process_target::supports_non_stop): Rename as ...
2797 (process_stratum_target::supports_non_stop): ... this.
2798 (process_target::async): Rename as ...
2799 (process_stratum_target::async): ... this.
2800 (process_target::start_non_stop): Rename as ...
2801 (process_stratum_target::start_non_stop): ... this.
2802 (process_target::supports_multi_process): Rename as ...
2803 (process_stratum_target::supports_multi_process): ... this.
2804 (process_target::supports_fork_events): Rename as ...
2805 (process_stratum_target::supports_fork_events): ... this.
2806 (process_target::supports_vfork_events): Rename as ...
2807 (process_stratum_target::supports_vfork_events): ... this.
2808 (process_target::supports_exec_events): Rename as ...
2809 (process_stratum_target::supports_exec_events): ... this.
2810 (process_target::handle_new_gdb_connection): Rename as ...
2811 (process_stratum_target::handle_new_gdb_connection): ... this.
2812 (process_target::handle_monitor_command): Rename as ...
2813 (process_stratum_target::handle_monitor_command): ... this.
2814 (process_target::core_of_thread): Rename as ...
2815 (process_stratum_target::core_of_thread): ... this.
2816 (process_target::supports_read_loadmap): Rename as ...
2817 (process_stratum_target::supports_read_loadmap): ... this.
2818 (process_target::read_loadmap): Rename as ...
2819 (process_stratum_target::read_loadmap): ... this.
2820 (process_target::process_qsupported): Rename as ...
2821 (process_stratum_target::process_qsupported): ... this.
2822 (process_target::supports_tracepoints): Rename as ...
2823 (process_stratum_target::supports_tracepoints): ... this.
2824 (process_target::read_pc): Rename as ...
2825 (process_stratum_target::read_pc): ... this.
2826 (process_target::write_pc): Rename as ...
2827 (process_stratum_target::write_pc): ... this.
2828 (process_target::supports_thread_stopped): Rename as ...
2829 (process_stratum_target::supports_thread_stopped): ... this.
2830 (process_target::thread_stopped): Rename as ...
2831 (process_stratum_target::thread_stopped): ... this.
2832 (process_target::supports_get_tib_address): Rename as ...
2833 (process_stratum_target::supports_get_tib_address): ... this.
2834 (process_target::get_tib_address): Rename as ...
2835 (process_stratum_target::get_tib_address): ... this.
2836 (process_target::pause_all): Rename as ...
2837 (process_stratum_target::pause_all): ... this.
2838 (process_target::unpause_all): Rename as ...
2839 (process_stratum_target::unpause_all): ... this.
2840 (process_target::stabilize_threads): Rename as ...
2841 (process_stratum_target::stabilize_threads): ... this.
2842 (process_target::supports_fast_tracepoints): Rename as ...
2843 (process_stratum_target::supports_fast_tracepoints): ... this.
2844 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2845 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2846 (process_target::emit_ops): Rename as ...
2847 (process_stratum_target::emit_ops): ... this.
2848 (process_target::supports_disable_randomization): Rename as ...
2849 (process_stratum_target::supports_disable_randomization): ... this.
2850 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2851 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2852 (process_target::qxfer_libraries_svr4): Rename as ...
2853 (process_stratum_target::qxfer_libraries_svr4): ... this.
2854 (process_target::supports_agent): Rename as ...
2855 (process_stratum_target::supports_agent): ... this.
2856 (process_target::enable_btrace): Rename as ...
2857 (process_stratum_target::enable_btrace): ... this.
2858 (process_target::disable_btrace): Rename as ...
2859 (process_stratum_target::disable_btrace): ... this.
2860 (process_target::read_btrace): Rename as ...
2861 (process_stratum_target::read_btrace): ... this.
2862 (process_target::read_btrace_conf): Rename as ...
2863 (process_stratum_target::read_btrace_conf): ... this.
2864 (process_target::supports_range_stepping): Rename as ...
2865 (process_stratum_target::supports_range_stepping): ... this.
2866 (process_target::supports_pid_to_exec_file): Rename as ...
2867 (process_stratum_target::supports_pid_to_exec_file): ... this.
2868 (process_target::pid_to_exec_file): Rename as ...
2869 (process_stratum_target::pid_to_exec_file): ... this.
2870 (process_target::supports_multifs): Rename as ...
2871 (process_stratum_target::supports_multifs): ... this.
2872 (process_target::multifs_open): Rename as ...
2873 (process_stratum_target::multifs_open): ... this.
2874 (process_target::multifs_unlink): Rename as ...
2875 (process_stratum_target::multifs_unlink): ... this.
2876 (process_target::multifs_readlink): Rename as ...
2877 (process_stratum_target::multifs_readlink): ... this.
2878 (process_target::breakpoint_kind_from_pc): Rename as ...
2879 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2880 (process_target::breakpoint_kind_from_current_state): Rename as ...
2881 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2882 (process_target::thread_name): Rename as ...
2883 (process_stratum_target::thread_name): ... this.
2884 (process_target::thread_handle): Rename as ...
2885 (process_stratum_target::thread_handle): ... this.
2886 (process_target::supports_software_single_step): Rename as ...
2887 (process_stratum_target::supports_software_single_step): ... this.
2888 (process_target::supports_catch_syscall): Rename as ...
2889 (process_stratum_target::supports_catch_syscall): ... this.
2890 (process_target::get_ipa_tdesc_idx): Rename as ...
2891 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2892
478f9adf
PA
28932020-02-20 Pedro Alves <palves@redhat.com>
2894
2895 * target.cc (set_target_ops): Simply copy the given target pointer
2896 instead of creating a copy of the pointed object.
2897
d633e831
TBA
28982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2899
2900 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2901 of process_target.
2902
2903 * target.h (struct process_stratum_target): Remove the target op.
2904 (class process_target): Add the target op.
2905 (target_get_ipa_tdesc_idx): Update the macro.
2906 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2907
2908 Update the derived classes and callers below.
2909
2910 * linux-low.cc (linux_target_ops): Update.
2911 (linux_get_ipa_tdesc_idx): Turn into ...
2912 (linux_process_target::get_ipa_tdesc_idx): ... this.
2913 * linux-low.h (class linux_process_target): Update.
2914 * lynx-low.cc (lynx_target_ops): Update.
2915 * nto-low.cc (nto_target_ops): Update.
2916 * win32-low.cc (win32_target_ops): Update.
2917
bc8d3ae4
TBA
29182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2919
2920 Turn process_stratum_target's supports_catch_syscall op into a
2921 method of process_target.
2922
2923 * target.h (struct process_stratum_target): Remove the target op.
2924 (class process_target): Add the target op.
2925 (target_supports_catch_syscall): Update the macro.
2926 * target.cc (process_target::supports_catch_syscall): Define.
2927
2928 Update the derived classes and callers below.
2929
2930 * linux-low.cc (linux_target_ops): Update.
2931 (linux_supports_catch_syscall): Turn into ...
2932 (linux_process_target::supports_catch_syscall): ... this.
2933 * linux-low.h (class linux_process_target): Update.
2934 * lynx-low.cc (lynx_target_ops): Update.
2935 * nto-low.cc (nto_target_ops): Update.
2936 * win32-low.cc (win32_target_ops): Update.
2937
5303a34f
TBA
29382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2939
2940 Turn process_stratum_target's supports_software_single_step op
2941 into a method of process_target.
2942
2943 * target.h (struct process_stratum_target): Remove the target op.
2944 (class process_target): Add the target op.
2945 (target_supports_software_single_step): Update the macro.
2946 * target.cc (process_target::supports_software_single_step): Define.
2947
2948 Update the derived classes and callers below.
2949
2950 * linux-low.cc (linux_target_ops): Update.
2951 (linux_supports_software_single_step): Turn into ...
2952 (linux_process_target::supports_software_single_step): ... this.
2953 * linux-low.h (class linux_process_target): Update.
2954 * lynx-low.cc (lynx_target_ops): Update.
2955 * nto-low.cc (nto_target_ops): Update.
2956 * win32-low.cc (win32_target_ops): Update.
2957
7f63b89b
TBA
29582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2959
2960 Turn process_stratum_target's thread_name and thread_handle ops
2961 into methods of process_target.
2962
2963 * target.h (struct process_stratum_target): Remove the target ops.
2964 (class process_target): Add the target ops.
2965 (target_thread_name): Update the macro.
2966 (target_thread_handle): Update the macro.
2967 * target.cc (process_target::thread_name): Define.
2968 (process_target::thread_handle): Define.
2969
2970 Update the derived classes and callers below.
2971
2972 * linux-low.cc (linux_target_ops): Update.
2973 (linux_process_target::thread_name): Define.
2974 (linux_process_target::thread_handle): Define.
2975 * linux-low.h (class linux_process_target): Update.
2976 * lynx-low.cc (lynx_target_ops): Update.
2977 * nto-low.cc (nto_target_ops): Update.
2978 * win32-low.cc (win32_target_ops): Update.
2979
d367006f
TBA
29802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2981
2982 Turn process_stratum_target's breakpoint_kind_from_pc,
2983 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2984 ops into methods of process_target.
2985
2986 * target.h (struct process_stratum_target): Remove the target op.
2987 (class process_target): Add the target op.
2988 (target_breakpoint_kind_from_pc): Update the macro.
2989 (target_breakpoint_kind_from_current_state): Update the macro.
2990 (default_breakpoint_kind_from_pc): Remove declaration.
2991 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2992 (process_target::breakpoint_kind_from_pc): ... this.
2993 (process_target::breakpoint_kind_from_current_state): Define.
2994
2995 Update the derived classes and callers below.
2996
2997 * mem-break.cc (bp_size): Update.
2998 (bp_opcode): Update.
2999 * linux-low.cc (linux_target_ops): Update.
3000 (linux_wait_1): Update.
3001 (linux_breakpoint_kind_from_pc): Turn into ...
3002 (linux_process_target::breakpoint_kind_from_pc): ... this.
3003 (linux_sw_breakpoint_from_kind): Turn into ...
3004 (linux_process_target::sw_breakpoint_from_kind): ... this.
3005 (linux_breakpoint_kind_from_current_state): Turn into ...
3006 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3007 * linux-low.h (class linux_process_target): Update.
3008 * lynx-low.cc (lynx_target_ops): Update.
3009 (lynx_process_target::sw_breakpoint_from_kind): Define.
3010 * lynx-low.h (class lynx_process_target): Update.
3011 * nto-low.cc (nto_target_ops): Update.
3012 (nto_sw_breakpoint_from_kind): Turn into ...
3013 (nto_process_target::sw_breakpoint_from_kind): ... this.
3014 * nto-low.h (class nto_process_target): Update.
3015 * win32-low.cc (win32_target_ops): Update.
3016 (win32_sw_breakpoint_from_kind): Turn into ...
3017 (win32_process_target::sw_breakpoint_from_kind): ... this.
3018 * win32-low.h (class win32_process_target): Update.
3019
c9b7b804
TBA
30202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3021
3022 Turn process_stratum_target's multifs_open, multifs_readlink,
3023 multifs_unlink ops into methods of process_target.
3024
3025 * target.h (struct process_stratum_target): Remove the target ops.
3026 (class process_target): Add the target ops. Also add
3027 'supports_multifs'.
3028 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3029 "sys/stat.h".
3030 (process_target::supports_multifs): Define.
3031 (process_target::multifs_open): Define.
3032 (process_target::multifs_readlink): Define.
3033 (process_target::multifs_unlink): Define.
3034
3035 Update the derived classes and callers below.
3036
3037 * hostio.cc (handle_setfs): Update.
3038 (handle_open): Update.
3039 (handle_unlink): Update.
3040 (handle_readlink): Update.
3041 * linux-low.cc (linux_target_ops): Update.
3042 (linux_process_target::supports_multifs): Define.
3043 (linux_process_target::multifs_open): Define.
3044 (linux_process_target::multifs_readlink): Define.
3045 (linux_process_target::multifs_unlink): Define.
3046 * linux-low.h (class linux_process_target): Update.
3047 * lynx-low.cc (lynx_target_ops): Update.
3048 * nto-low.cc (nto_target_ops): Update.
3049 * win32-low.cc (win32_target_ops): Update.
3050
8247b823
TBA
30512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3052
3053 Turn process_stratum_target's pid_to_exec_file op into a method
3054 of process_target.
3055
3056 * target.h (struct process_stratum_target): Remove the target op.
3057 (class process_target): Add the target op. Also add
3058 'supports_pid_to_exec_file'.
3059 * target.cc (process_target::pid_to_exec_file): Define.
3060 (process_target::supports_pid_to_exec_file): Define.
3061
3062 Update the derived classes and callers below.
3063
3064 * server.cc (handle_qxfer_exec_file): Update.
3065 (handle_query): Update.
3066 * linux-low.cc (linux_target_ops): Update.
3067 (linux_process_target::supports_pid_to_exec_file): Define.
3068 (linux_process_target::pid_to_exec_file): Define.
3069 * linux-low.h (class linux_process_target): Update.
3070 * lynx-low.cc (lynx_target_ops): Update.
3071 * nto-low.cc (nto_target_ops): Update.
3072 * win32-low.cc (win32_target_ops): Update.
3073
2526e0cd
TBA
30742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3075
3076 Turn process_stratum_target's supports_range_stepping op into a
3077 method of process_target.
3078
3079 * target.h (struct process_stratum_target): Remove the target op.
3080 (class process_target): Add the target op.
3081 (target_supports_range_stepping): Update the macro.
3082 * target.cc (process_target::supports_range_stepping): Define.
3083
3084 Update the derived classes and callers below.
3085
3086 * linux-low.cc (linux_target_ops): Update.
3087 (linux_supports_range_stepping): Turn into ...
3088 (linux_process_target::supports_range_stepping): ... this.
3089 * linux-low.h (class linux_process_target): Update.
3090 * lynx-low.cc (lynx_target_ops): Update.
3091 * nto-low.cc (nto_target_ops): Update.
3092 * win32-low.cc (win32_target_ops): Update.
3093
79597bdd
TBA
30942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3095
3096 Turn process_stratum_target's btrace-related ops (enable_btrace,
3097 disable_btrace, read_btrace, read_btrace_conf) into methods of
3098 process_target.
3099
3100 * target.h (struct process_stratum_target): Remove the target ops.
3101 (class process_target): Add the target ops.
3102 (target_enable_btrace): Update.
3103 (target_disable_btrace): Update.
3104 (target_read_btrace): Update.
3105 (target_read_btrace_conf): Update.
3106 * target.cc (process_target::enable_btrace): Define.
3107 (process_target::disable_btrace): Define.
3108 (process_target::read_btrace): Define.
3109 (process_target::read_btrace_conf): Define.
3110
3111 Update the derived classes and callers below.
3112
3113 * linux-low.cc (linux_target_ops): Update.
3114 (linux_process_target:enable_btrace): Define as a wrapper around
3115 linux_enable_btrace.
3116 (linux_low_disable_btrace): Turn into ...
3117 (linux_process_target::disable_btrace): ... this.
3118 (linux_low_read_btrace): Turn into ...
3119 (linux_process_target::read_btrace): ... this.
3120 (linux_low_btrace_conf): Turn into ...
3121 (linux_process_target::read_btrace_conf): ... this.
3122 * linux-low.h (class linux_process_target): Update.
3123 * lynx-low.cc (lynx_target_ops): Update.
3124 * nto-low.cc (nto_target_ops): Update.
3125 * win32-low.cc (win32_target_ops): Update.
3126
c0245cb9
TBA
31272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3128
3129 Turn process_stratum_target's supports_agent op into a method of
3130 process_target.
3131
3132 * target.h (struct process_stratum_target): Remove the target op.
3133 (class process_target): Add the target op.
3134 (target_supports_agent): Update the macro.
3135 * target.cc (process_target::supports_agent): Define.
3136
3137 Update the derived classes and callers below.
3138
3139 * linux-low.cc (linux_target_ops): Update.
3140 (linux_supports_agent): Turn into ...
3141 (linux_process_target::supports_agent): ... this.
3142 * linux-low.h (class linux_process_target): Update.
3143 * lynx-low.cc (lynx_target_ops): Update.
3144 * nto-low.cc (nto_target_ops): Update.
3145 * win32-low.cc (win32_target_ops): Update.
3146
974387bb
TBA
31472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3148
3149 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3150 method of process_target.
3151
3152 * target.h (struct process_stratum_target): Remove the target op.
3153 (class process_target): Add the target op. Also add
3154 'supports_qxfer_libraries_svr4'.
3155 * target.cc (process_target::qxfer_libraries_svr4): Define.
3156 (process_target::supports_qxfer_libraries_svr4): Define.
3157
3158 Update the derived classes and callers below.
3159
3160 * server.cc (handle_qxfer_libraries_svr4): Update.
3161 (handle_query): Update.
3162 * linux-low.cc (linux_target_ops): Update.
3163 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3164 (linux_qxfer_libraries_svr4): Turn into ...
3165 (linux_process_target::qxfer_libraries_svr4): ... this.
3166 * linux-low.h (class linux_process_target): 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
c756403b
TBA
31712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3172
3173 Turn process_stratum_target's supports_disable_randomization op
3174 into a method of process_target.
3175
3176 * target.h (struct process_stratum_target): Remove the target op.
3177 (class process_target): Add the target op.
3178 (target_supports_disable_randomization): Update the macro.
3179 * target.cc (process_target::supports_disable_randomization): Define.
3180
3181 Update the derived classes and callers below.
3182
3183 * linux-low.cc (linux_target_ops): Update.
3184 (linux_supports_disable_randomization): Turn into ...
3185 (linux_process_target::supports_disable_randomization): ... this.
3186 * linux-low.h (class linux_process_target): Update.
3187 * lynx-low.cc (lynx_target_ops): Update.
3188 * nto-low.cc (nto_target_ops): Update.
3189 * win32-low.cc (win32_target_ops): Update.
3190
345dafad
TBA
31912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3192
3193 Turn process_stratum_target's emit_ops op into a method of
3194 process_target.
3195
3196 * target.h (struct process_stratum_target): Remove the target op.
3197 (class process_target): Add the target op.
3198 (target_emit_ops): Update the macro.
3199 * target.cc (process_target::emit_ops): Define.
3200
3201 Update the derived classes and callers below.
3202
3203 * linux-low.cc (linux_target_ops): Update.
3204 (linux_emit_ops): Turn into ...
3205 (linux_process_target::emit_ops): ... this.
3206 * linux-low.h (class linux_process_target): Update.
3207 * lynx-low.cc (lynx_target_ops): Update.
3208 * nto-low.cc (nto_target_ops): Update.
3209 * win32-low.cc (win32_target_ops): Update.
3210
c23c9391
TBA
32112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3212
3213 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3214 and get_min_fast_tracepoint_insn_len ops into methods of
3215 process_target.
3216
3217 * target.h (struct process_stratum_target): Remove the target ops.
3218 (class process_target): Add the target ops. Also add
3219 'supports_fast_tracepoints'.
3220 (target_supports_fast_tracepoints): Update the macro.
3221 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3222 (install_fast_tracepoint_jump_pad): Update and rename the macro
3223 to ...
3224 (target_install_fast_tracepoint_jump_pad): ... this.
3225 * target.cc (process_target::supports_fast_tracepoints): Define.
3226 (process_target::install_fast_tracepoint_jump_pad): Define.
3227 (process_target::get_min_fast_tracepoint_insn_len): Define.
3228
3229 Update the derived classes and callers below.
3230
3231 * tracepoint.cc (install_fast_tracepoint): Update.
3232 * linux-low.cc (linux_target_ops): Update.
3233 (linux_process_target::supports_fast_tracepoints): Define.
3234 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3235 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3236 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3237 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3238 * linux-low.h (class linux_process_target): Update.
3239 * lynx-low.cc (lynx_target_ops): Update.
3240 * nto-low.cc (nto_target_ops): Update.
3241 * win32-low.cc (win32_target_ops): Update.
3242
5c9eb2f2
TBA
32432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3244
3245 Turn process_stratum_target's stabilize_threads op into a
3246 method of process_target.
3247
3248 * target.h (struct process_stratum_target): Remove the target op.
3249 (class process_target): Add the target op.
3250 (target_stabilize_threads): Update the macro.
3251 * target.cc (process_target::stabilize_threads): Define.
3252
3253 Update the derived classes and callers below.
3254
3255 * server.cc (handle_status): Update.
3256 * tracepoint.cc (cmd_qtdp): Update.
3257 (cmd_qtstart): Update.
3258 * linux-low.cc (linux_target_ops): Update.
3259 (linux_stabilize_threads): Turn into ...
3260 (linux_process_target::stabilize_threads): ... this.
3261 (linux_wait_1): Update.
3262 * linux-low.h (class linux_process_target): Update.
3263 * lynx-low.cc (lynx_target_ops): Update.
3264 * nto-low.cc (nto_target_ops): Update.
3265 * win32-low.cc (win32_target_ops): Update.
3266
29e8dc09
TBA
32672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3268
3269 Turn process_stratum_target's pause_all and unpause_all ops
3270 into methods of process_target.
3271
3272 * target.h (struct process_stratum_target): Remove the target ops.
3273 (class process_target): Add the target ops.
3274 (pause_all): Update the macro and rename to...
3275 (target_pause_all): ... this.
3276 (unpause_all): Update the macro and rename to...
3277 (target_unpause_all): ... this.
3278 * target.cc (process_target::pause_all): Define.
3279 (process_target::unpause_all): Define.
3280
3281 Update the derived classes and callers below.
3282
3283 * server.cc (handle_status): Update.
3284 * tracepoint.cc (clear_installed_tracepoints): Update.
3285 (cmd_qtdp): Update.
3286 (cmd_qtstart): Update.
3287 (stop_tracing): Update.
3288 (cmd_qtstatus): Update.
3289 (upload_fast_traceframes): Update.
3290 (run_inferior_command): Update.
3291 * linux-low.cc (linux_target_ops): Update.
3292 (linux_pause_all): Turn into ...
3293 (linux_process_target::pause_all): ... this.
3294 (linux_unpause_all): Turn into ...
3295 (linux_process_target::unpause_all): ... this.
3296 (linux_process_target::prepare_to_access_memory): Update.
3297 (linux_process_target::done_accessing_memory): Update.
3298 * linux-low.h (class linux_process_target): Update.
3299 * lynx-low.cc (lynx_target_ops): Update.
3300 * nto-low.cc (nto_target_ops): Update.
3301 * win32-low.cc (win32_target_ops): Update.
3302
4e2e869c
TBA
33032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3304
3305 Turn process_stratum_target's get_tib_address op into a method of
3306 process_target.
3307
3308 * target.h (struct process_stratum_target): Remove the target op.
3309 (class process_target): Add the target op. Also add
3310 'supports_get_tib_address'.
3311 * target.cc (process_target::get_tib_address): Define.
3312 (process_target::supports_get_tib_address): Define.
3313
3314 Update the derived classes and callers below.
3315
3316 * server.cc (handle_query): Update.
3317 * linux-low.cc (win32_target_ops): Update.
3318 * lynx-low.cc (lynx_target_ops): Update.
3319 * nto-low.cc (nto_target_ops): Update.
3320 * win32-low.cc (win32_target_ops): Update.
3321 (win32_process_target::supports_get_tib_address): Define.
3322 (win32_get_tib_address): Turn into ...
3323 (win32_process_target::get_tib_address): ... this.
3324 * win32-low.h (class win32_process_target): Update.
3325
68119632
TBA
33262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3327
3328 Turn process_stratum_target's thread_stopped op into a method of
3329 process_target.
3330
3331 * target.h (struct process_stratum_target): Remove the target op.
3332 (class process_target): Add the target op. Also add
3333 'supports_thread_stopped'.
3334 (target_thread_stopped): Update the macro.
3335 * target.cc (process_target::thread_stopped): Define.
3336 (process_target::supports_thread_stopped): Define.
3337 (prepare_to_access_memory): Update.
3338
3339 Update the derived classes and callers below.
3340
3341 * server.cc (queue_stop_reply_callback): Update.
3342 * linux-low.cc (linux_target_ops): Update.
3343 (linux_process_target::supports_thread_stopped): Define.
3344 (linux_thread_stopped): Turn into ...
3345 (linux_process_target::thread_stopped): ... this.
3346 * linux-low.h (class linux_process_target): Update.
3347 * lynx-low.cc (lynx_target_ops): Update.
3348 * nto-low.cc (nto_target_ops): Update.
3349 * win32-low.cc (win32_target_ops): Update.
3350
770d8f6a
TBA
33512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3352
3353 Turn process_stratum_target's read_pc and write_pc ops into
3354 methods of process_target.
3355
3356 * target.h (struct process_stratum_target): Remove the target ops.
3357 (class process_target): Add the target ops.
3358 * target.cc (process_target::read_pc): Define.
3359 (process_target::write_pc): Define.
3360
3361 Update the derived classes and callers below.
3362
3363 * regcache.cc (regcache_read_pc): Update.
3364 (regcache_write_pc): Update.
3365 * linux-low.cc (linux_target_ops): Update.
3366 (linux_read_pc): Turn into ...
3367 (linux_process_target::read_pc): ... this.
3368 (linux_write_pc): Turn into ...
3369 (linux_process_target::write_pc): ... this.
3370 * linux-low.h (class linux_process_target): Update.
3371 * lynx-low.cc (lynx_target_ops): Update.
3372 * nto-low.cc (nto_target_ops): Update.
3373 * win32-low.cc (win32_target_ops): Update.
3374
290732bf
TBA
33752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3376
3377 Turn process_stratum_target's supports_tracepoints op into a
3378 method of process_target.
3379
3380 * target.h (struct process_stratum_target): Remove the target op.
3381 (class process_target): Add the target op.
3382 (target_supports_tracepoints): Update the macro.
3383 * target.cc (process_target::supports_tracepoints): Define.
3384
3385 Update the derived classes and callers below.
3386
3387 * linux-low.cc (linux_target_ops): Update.
3388 (linux_supports_tracepoints): Turn into ...
3389 (linux_process_target::supports_tracepoints): ... this.
3390 * linux-low.h (class linux_process_target): Update.
3391 * lynx-low.cc (lynx_target_ops): Update.
3392 * nto-low.cc (nto_target_ops): Update.
3393 * win32-low.cc (win32_target_ops): Update.
3394
0df28b1b
TBA
33952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3396
3397 Turn process_stratum_target's process_qsupported op into a method
3398 of process_target.
3399
3400 * target.h (struct process_stratum_target): Remove the target op.
3401 (class process_target): Add the target op.
3402 (target_process_qsupported): Update the macro.
3403 * target.cc (process_target::process_qsupported): Define.
3404
3405 Update the derived classes and callers below.
3406
3407 * linux-low.cc (linux_target_ops): Update.
3408 (linux_process_qsupported): Turn into ...
3409 (linux_process_target::process_qsupported): ... this.
3410 * linux-low.h (class linux_process_target): Update.
3411 * lynx-low.cc (lynx_target_ops): Update.
3412 * nto-low.cc (nto_target_ops): Update.
3413 * win32-low.cc (win32_target_ops): Update.
3414
9da41fda
TBA
34152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3416
3417 Turn process_stratum_target's read_loadmap op into a method of
3418 process_target.
3419
3420 * target.h (struct process_stratum_target): Remove the target op.
3421 (class process_target): Add the target op. Also add
3422 'supports_read_loadmap'.
3423 * target.cc (process_target::read_loadmap): Define.
3424 (process_target::supports_read_loadmap): Define.
3425
3426 Update the derived classes and callers below.
3427
3428 * server.cc (handle_qxfer_fdpic): Update.
3429 (handle_query): Update.
3430 * linux-low.cc (linux_target_ops): Update.
3431 (linux_process_target::supports_read_loadmap): Define.
3432 (linux_read_loadmap): Turn into ...
3433 (linux_process_target::read_loadmap): ... this.
3434 * linux-low.h (class linux_process_target): Update.
3435 * lynx-low.cc (lynx_target_ops): Update.
3436 * nto-low.cc (nto_target_ops): Update.
3437 * win32-low.cc (win32_target_ops): Update.
3438
95a45fc1
TBA
34392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3440
3441 Turn process_stratum_target's core_of_thread op into a method of
3442 process_target.
3443
3444 * target.h (struct process_stratum_target): Remove the target op.
3445 (class process_target): Add the target op.
3446 (target_core_of_thread): Update the macro.
3447 * target.cc (process_target::core_of_thread): Define.
3448
3449 Update the derived classes and callers below.
3450
3451 * linux-low.cc (linux_target_ops): Update.
3452 (linux_process_target::core_of_thread): Define.
3453 * linux-low.h (class linux_process_target): Update.
3454 * lynx-low.cc (lynx_target_ops): Update.
3455 * nto-low.cc (nto_target_ops): Update.
3456 * win32-low.cc (win32_target_ops): Update.
3457
55cf3021
TBA
34582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3459
3460 Turn process_stratum_target's handle_monitor_command op into a
3461 method of process_target.
3462
3463 * target.h (struct process_stratum_target): Remove the target op.
3464 (class process_target): Add the target op.
3465 (target_handle_monitor_command): Update the macro.
3466 * target.cc (process_target::handle_monitor_command): Define.
3467
3468 Update the derived classes and callers below.
3469
3470 * server.cc (handle_query): Update.
3471 * linux-low.cc (linux_target_ops): Update.
3472 (linux_process_target::handle_monitor_command): Define.
3473 * linux-low.h (class linux_process_target): Update.
3474 * lynx-low.cc (lynx_target_ops): Update.
3475 * nto-low.cc (nto_target_ops): Update.
3476 * win32-low.cc (win32_target_ops): Update.
3477
fb00dfce
TBA
34782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3479
3480 Turn process_stratum_target's handle_new_gdb_connection op into a
3481 method of process_target.
3482
3483 * target.h (struct process_stratum_target): Remove the target op.
3484 (class process_target): Add the target op.
3485 (target_handle_new_gdb_connection): Update the macro.
3486 * target.cc (process_target::handle_new_gdb_connection): Define.
3487
3488 Update the derived classes and callers below.
3489
3490 * linux-low.cc (linux_target_ops): Update.
3491 (linux_handle_new_gdb_connection): Turn into ...
3492 (linux_process_target::handle_new_gdb_connection): ... this.
3493 * linux-low.h (class linux_process_target): Update.
3494 * lynx-low.cc (lynx_target_ops): Update.
3495 * nto-low.cc (nto_target_ops): Update.
3496 * win32-low.cc (win32_target_ops): Update.
3497
9690a72a
TBA
34982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3499
3500 Turn process_stratum_target's supports_fork_events,
3501 supports_vfork_events, and supports_exec_events ops into methods
3502 of process_target.
3503
3504 * target.h (struct process_stratum_target): Remove the target ops.
3505 (class process_target): Add the target ops.
3506 (target_supports_fork_events): Update the macro.
3507 (target_supports_vfork_events): Update the macro.
3508 (target_supports_exec_events): Update the macro.
3509 * target.cc (process_target::supports_fork_events): Define.
3510 (process_target::supports_vfork_events): Define.
3511 (process_target::supports_exec_events): Define.
3512
3513 Update the derived classes and callers below.
3514
3515 * linux-low.cc (linux_target_ops): Update.
3516 (linux_supports_fork_events): Turn into ...
3517 (linux_process_target::supports_fork_events): ... this.
3518 (linux_supports_vfork_events): Turn into ...
3519 (linux_process_target::supports_vfork_events): ... this.
3520 (linux_supports_exec_events): Turn into ...
3521 (linux_process_target::supports_exec_events): ... this.
3522 * linux-low.h (class linux_process_target): Update.
3523 * lynx-low.cc (lynx_target_ops): Update.
3524 * nto-low.cc (nto_target_ops): Update.
3525 * win32-low.cc (win32_target_ops): Update.
3526
652aef77
TBA
35272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3528
3529 Turn process_stratum_target's supports_multi_process op into a
3530 method of process_target.
3531
3532 * target.h (struct process_stratum_target): Remove the target op.
3533 (class process_target): Add the target op.
3534 * target.cc (process_target::supports_multi_process): Define.
3535 (target_supports_multi_process): Update.
3536
3537 Update the derived classes and callers below.
3538
3539 * linux-low.cc (linux_target_ops): Update.
3540 (linux_supports_multi_process): Turn into ...
3541 (linux_process_target::supports_multi_process): ... this.
3542 * linux-low.h (class linux_process_target): Update.
3543 * lynx-low.cc (lynx_target_ops): Update.
3544 * nto-low.cc (nto_target_ops): Update.
3545 * win32-low.cc (win32_target_ops): Update.
3546
0dc587d4
TBA
35472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3548
3549 Turn process_stratum_target's supports_non_stop, async, and
3550 start_non_stop ops into methods of process_target.
3551
3552 * target.h (struct process_stratum_target): Remove the target ops.
3553 (class process_target): Add the target ops.
3554 (target_supports_non_stop): Update the macro.
3555 (target_async): Update the macro.
3556 (start_non_stop): Remove declaration.
3557 * target.cc (process_target::supports_non_stop): Define.
3558 (process_target::async): Define.
3559 (process_target::start_non_stop): Define.
3560 (start_non_stop): Remove.
3561
3562 Update the derived classes and callers below.
3563
3564 * server.cc (handle_qxfer_siginfo): Update.
3565 (handle_query): Update.
3566 * linux-low.cc (linux_target_ops): Update.
3567 (linux_supports_non_stop): Turn into ...
3568 (linux_process_target::supports_non_stop): ... this.
3569 (linux_async): Turn into ...
3570 (linux_process_target::async): ... this.
3571 (linux_start_non_stop): Turn into ...
3572 (linux_process_target::start_non_stop): ... this.
3573 * linux-low.h (class linux_process_target): Update.
3574 * lynx-low.cc (lynx_target_ops): Update.
3575 * nto-low.cc (nto_target_ops): Update.
3576 (nto_supports_non_stop): Remove; rely on the default behavior
3577 instead.
3578 * win32-low.cc (win32_target_ops): Update.
3579
d7abedf7
TBA
35802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3581
3582 Turn process_stratum_target's qxfer_siginfo op into a method of
3583 process_target.
3584
3585 * target.h (struct process_stratum_target): Remove the target op.
3586 (class process_target): Add the target op. Also add
3587 'supports_qxfer_siginfo'.
3588 * target.cc (process_target::qxfer_siginfo): Define.
3589 (process_target::supports_qxfer_siginfo): Define.
3590
3591 Update the derived classes and callers below.
3592
3593 * server.cc (handle_qxfer_siginfo): Update.
3594 (handle_query): Update.
3595 * linux-low.cc (linux_target_ops): Update.
3596 (linux_process_target::supports_qxfer_siginfo): Define.
3597 (linux_xfer_siginfo): Turn into ...
3598 (linux_process_target::qxfer_siginfo): ... this.
3599 * linux-low.h (class linux_process_target): Update.
3600 * lynx-low.cc (lynx_target_ops): Update.
3601 * nto-low.cc (nto_target_ops): Update.
3602 * win32-low.cc (win32_target_ops): Update.
3603
2d0795ee
TBA
36042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3605
3606 Turn process_stratum_target's qxfer_osdata op into a method of
3607 process_target.
3608
3609 * target.h (struct process_stratum_target): Remove the target op.
3610 (class process_target): Add the target op. Also add
3611 'supports_qxfer_osdata'.
3612 * target.cc (process_target::qxfer_osdata): Define.
3613 (process_target::supports_qxfer_osdata): Define.
3614
3615 Update the derived classes and callers below.
3616
3617 * server.cc (handle_qxfer_osdata): Update.
3618 (handle_query): Update.
3619 * linux-low.cc (linux_target_ops): Update.
3620 (linux_process_target::supports_qxfer_osdata): Define.
3621 (linux_qxfer_osdata): Turn into ...
3622 (linux_process_target::qxfer_osdata): ... this.
3623 * linux-low.h (class linux_process_target): Update.
3624 * lynx-low.cc (lynx_target_ops): Update.
3625 * nto-low.cc (nto_target_ops): Update.
3626 * win32-low.cc (win32_target_ops): Update.
3627
ea06bbaa
TBA
36282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3629
3630 Turn process_stratum_target's hostio_last_error op into a
3631 method of process_target.
3632
3633 * target.h (struct process_stratum_target): Remove the target op.
3634 (class process_target): Add the target op.
3635 * target.cc: Add "hostio.h" to includes.
3636 (process_target::hostio_last_error): Define.
3637
3638 Update the derived classes and callers below.
3639
3640 * hostio.cc (hostio_error): Update.
3641 * linux-low.cc: Remove "hostio.h" from includes.
3642 (linux_target_ops): Update.
3643 * lynx-low.cc (lynx_target_ops): Update.
3644 * nto-low.cc (nto_target_ops): Update.
3645 * win32-low.h (class win32_process_target): Update.
3646 * win32-low.cc (win32_target_ops): Update.
3647 (wince_hostio_last_error): Turn into ...
3648 (win32_process_target::hostio_last_error): ... this.
3649
6e3fd7e9
TBA
36502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3651
3652 Turn process_stratum_target's get_tls_address op into a method of
3653 process_target.
3654
3655 * target.h (struct process_stratum_target): Remove the target op.
3656 (class process_target): Add the target op. Also add
3657 'supports_get_tls_address'.
3658 * target.cc (process_target::get_tls_address): Define.
3659 (process_target::supports_get_tls_address): Define.
3660
3661 Update the derived classes and callers below.
3662
3663 * server.cc (handle_query): Update.
3664 * linux-low.cc (linux_target_ops): Update.
3665 (linux_process_target::supports_get_tls_address): Define.
3666 (linux_process_target::get_tls_address): Define.
3667 * linux-low.h (class linux_process_target): Update.
3668 * lynx-low.cc (lynx_target_ops): Update.
3669 * nto-low.cc (nto_target_ops): Update.
3670 * win32-low.cc (win32_target_ops): Update.
3671
5203ae1e
TBA
36722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3673
3674 Turn process_stratum_target's read_offsets op into a method of
3675 process_target.
3676
3677 * target.h (struct process_stratum_target): Remove the target op.
3678 (class process_target): Add the target op. Also add
3679 'supports_read_offsets'.
3680 * target.cc (process_target::read_offsets): Define.
3681 (process_target::supports_read_offsets): Define.
3682
3683 Update the derived classes and callers below.
3684
3685 * server.cc (handle_query): Update.
3686 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3687 (linux_target_ops): Update.
3688 (linux_process_target::supports_read_offsets): Define.
3689 (linux_read_offsets): Turn into ...
3690 (linux_process_target::read_offsets): ... this.
3691 * linux-low.h (class linux_process_target): Update.
3692 * lynx-low.cc (lynx_target_ops): Update.
3693 * nto-low.cc (nto_target_ops): Update.
3694 * win32-low.cc (win32_target_ops): Update.
3695
6eeb5c55
TBA
36962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3697
3698 Turn process_stratum_target's stopped_by_watchpoint and
3699 stopped_data_address ops into methods of process_target.
3700
3701 * target.h (struct process_stratum_target): Remove the target ops.
3702 (class process_target): Add the target ops.
3703 * target.cc (process_target::stopped_by_watchpoint): Define.
3704 (process_target::stopped_data_address): Define.
3705
3706 Update the derived classes and callers below.
3707
3708 * remote-utils.cc (prepare_resume_reply): Update.
3709 * linux-low.cc (linux_target_ops): Update.
3710 (linux_stopped_by_watchpoint): Turn into ...
3711 (linux_process_target::stopped_by_watchpoint): ... this.
3712 (linux_stopped_data_address): Turn into ...
3713 (linux_process_target::stopped_data_address): ... this.
3714 * linux-low.h (class linux_process_target): Update.
3715 * lynx-low.cc (lynx_target_ops): Update.
3716 * nto-low.cc (nto_target_ops): Update.
3717 (nto_stopped_by_watchpoint): Turn into ...
3718 (nto_process_target::stopped_by_watchpoint): ... this.
3719 (nto_stopped_data_address): Turn into ...
3720 (nto_process_target::stopped_data_address): ... this.
3721 * nto-low.h (class nto_process_target): Update.
3722 * win32-low.cc (win32_target_ops): Update.
3723 (win32_stopped_by_watchpoint): Turn into ...
3724 (win32_process_target::stopped_by_watchpoint): ... this.
3725 (win32_stopped_data_address): Turn into ...
3726 (win32_process_target::stopped_data_address): ... this.
3727 * win32-low.h (class win32_process_target): Update.
3728
22aa6223
TBA
37292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3730
3731 Turn process_stratum_target's supports_hardware_single_step op into
3732 a method of process_target.
3733
3734 * target.h (struct process_stratum_target): Remove the target op.
3735 (class process_target): Add the target op.
3736 (target_supports_hardware_single_step): Update the macro.
3737 (target_can_do_hardware_single_step): Remove declaration.
3738 * target.cc (process_target::supports_hardware_single_step): Define.
3739 (target_can_do_hardware_single_step): Remove.
3740
3741 Update the derived classes and callers below.
3742
3743 * linux-low.h (class linux_process_target): Update.
3744 * linux-low.cc (linux_target_ops): Update.
3745 (linux_supports_hardware_single_step): Turn into ...
3746 (linux_process_target::supports_hardware_single_step): ... this.
3747 * lynx-low.h (class lynx_process_target): Update.
3748 * lynx-low.cc (lynx_target_ops): Update.
3749 (lynx_process_target::supports_hardware_single_step): Define.
3750 * nto-low.h (class nto_process_target): Update.
3751 * nto-low.cc (nto_target_ops): Update.
3752 (nto_process_target::supports_hardware_single_step): Define.
3753 * win32-low.h (class win32_process_target): Update.
3754 * win32-low.cc (win32_target_ops): Update.
3755 (win32_process_target::supports_hardware_single_step): Define.
3756
93fe88b2
TBA
37572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3758
3759 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3760 ops into methods of process_target.
3761
3762 * target.h (struct process_stratum_target): Remove the target ops.
3763 (class process_target): Add the target ops.
3764 (target_stopped_by_hw_breakpoint): Update the macro.
3765 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3766 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3767 (process_target::supports_stopped_by_hw_breakpoint): Define.
3768
3769 Update the derived classes and callers below.
3770
3771 * linux-low.cc (linux_target_ops): Update.
3772 (linux_stopped_by_hw_breakpoint): Turn into ...
3773 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3774 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3775 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3776 * linux-low.h (class linux_process_target): Update.
3777 * lynx-low.cc (lynx_target_ops): Update.
3778 * nto-low.cc (nto_target_ops): Update.
3779 * win32-low.cc (win32_target_ops): Update.
3780
84320c4e
TBA
37812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3782
3783 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3784 ops into methods of process_target.
3785
3786 * target.h (struct process_stratum_target): Remove the target ops.
3787 (class process_target): Add the target ops.
3788 (target_stopped_by_sw_breakpoint): Update the macro.
3789 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3790 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3791 (process_target::supports_stopped_by_sw_breakpoint): Define.
3792
3793 Update the derived classes and callers below.
3794
3795 * linux-low.cc (linux_target_ops): Update.
3796 (linux_stopped_by_sw_breakpoint): Turn into ...
3797 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3798 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3799 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3800 * linux-low.h (class linux_process_target): Update.
3801 * lynx-low.cc (lynx_target_ops): Update.
3802 * nto-low.cc (nto_target_ops): Update.
3803 * win32-low.cc (win32_target_ops): Update.
3804
7e0bde70
TBA
38052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3806
3807 Turn process_stratum_target's insert_point and remove_point ops
3808 into methods of process_target.
3809
3810 * target.h (struct process_stratum_target): Remove the target ops.
3811 (class process_target): Add the target ops.
3812 * target.cc (process_target::insert_point): Define.
3813 (process_target::remove_point): Define.
3814
3815 Update the derived classes and callers below.
3816
3817 * mem-break.cc (set_raw_breakpoint_at): Update.
3818 (delete_raw_breakpoint): Update.
3819 (uninsert_raw_breakpoint): Update.
3820 (reinsert_raw_breakpoint): Update.
3821 * linux-low.cc (linux_target_ops): Update.
3822 (linux_insert_point): Turn into ...
3823 (linux_process_target::insert_point): ... this.
3824 (linux_remove_point): Turn into ...
3825 (linux_process_target::remove_point): ... this.
3826 * linux-low.h (class linux_process_target): Update.
3827 * lynx-low.cc (lynx_target_ops): Update.
3828 * nto-low.cc (nto_target_ops): Update.
3829 (nto_insert_point): Turn into ...
3830 (nto_process_target::insert_point): ... this.
3831 (nto_remove_point): Turn into ...
3832 (nto_process_target::remove_point): ... this.
3833 * nto-low.h (class nto_process_target): Update.
3834 * win32-low.cc (win32_target_ops): Update.
3835 (win32_insert_point): Turn into ...
3836 (win32_process_target::insert_point): ... this.
3837 (win32_remove_point): Turn into ...
3838 (win32_process_target::remove_point): ... this.
3839 * win32-low.h (class win32_process_target): Update.
3840
a2b2297a
TBA
38412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3842
3843 Turn process_stratum_target's supports_z_point_type op into a
3844 method of process_target.
3845
3846 * target.h (struct process_stratum_target): Remove the target op.
3847 (class process_target): Add the target op.
3848 * target.cc (process_target::supports_z_point_type): Define.
3849
3850 Update the derived classes and callers below.
3851
3852 * mem-break.cc (z_type_supported): Update.
3853 * linux-low.cc (linux_target_ops): Update.
3854 (linux_supports_z_point_type): Turn into ...
3855 (linux_process_target::supports_z_point_type): ... this.
3856 * linux-low.h (class linux_process_target): Update.
3857 * lynx-low.cc (lynx_target_ops): Update.
3858 * nto-low.cc (nto_target_ops): Update.
3859 (nto_supports_z_point_type): Turn into ...
3860 (nto_process_target::supports_z_point_type): ... this.
3861 * nto-low.h (class nto_process_target): Update.
3862 * win32-low.cc (win32_target_ops): Update.
3863 (win32_supports_z_point_type): Turn into ...
3864 (win32_process_target::supports_z_point_type): ... this.
3865 * win32-low.h (class win32_process_target): Update.
3866
eac215cc
TBA
38672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3868
3869 Turn process_stratum_target's read_auxv op into a method of
3870 process_target.
3871
3872 * target.h (class process_stratum_target): Remove the target op.
3873 (struct process_target): Add the target op. Also add
3874 'supports_read_auxv'.
3875 * target.cc (process_target::read_auxv): Define.
3876 (process_target::supports_read_auxv): Define.
3877
3878 Update the derived classes and callers below.
3879
3880 * server.cc (handle_qxfer_auxv): Update.
3881 (handle_query): Update.
3882 * linux-low.cc (linux_target_ops): Update.
3883 (linux_process_target::supports_read_auxv): Define.
3884 (linux_read_auxv): Turn into ...
3885 (linux_process_target::read_auxv): ... this.
3886 * linux-low.h (class linux_process_target): Update.
3887 * lynx-low.cc (lynx_target_ops): Update.
3888 * nto-low.cc (nto_target_ops): Update.
3889 (nto_process_target::supports_read_auxv): Define.
3890 (nto_read_auxv): Turn into ...
3891 (nto_process_target::read_auxv): ... this.
3892 * nto-low.h (class nto_process_target): Update.
3893 * win32-low.cc (win32_target_ops): Update.
3894
eb497a2a
TBA
38952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3896
3897 Turn process_stratum_target's request_interrupt op into a method of
3898 process_target.
3899
3900 * target.h (struct process_stratum_target): Remove the target op.
3901 (class process_target): Add the target op.
3902
3903 Update the derived classes and callers below.
3904
3905 * remote-utils.cc (putpkt_binary_1): Update.
3906 (input_interrupt): Update.
3907 (getpkt): Update.
3908 * server.cc (handle_v_requests): Update.
3909 * linux-low.cc (linux_target_ops): Update.
3910 (linux_request_interrupt): Turn into ...
3911 (linux_process_target::request_interrupt): ... this.
3912 * linux-low.h (class linux_process_target): Update.
3913 * lynx-low.cc (lynx_target_ops): Update.
3914 (lynx_request_interrupt): Turn into ...
3915 (lynx_process_target::request_interrupt): ... this.
3916 * lynx-low.h (class lynx_process_target): Update.
3917 * nto-low.cc (nto_target_ops): Update.
3918 (nto_request_interrupt): Turn into ...
3919 (nto_process_target::request_interrupt): ... this.
3920 * nto-low.h (class nto_process_target): Update.
3921 * win32-low.cc (win32_target_ops): Update.
3922 (win32_request_interrupt): Turn into ...
3923 (win32_process_target::request_interrupt): ... this.
3924 * win32-low.h (class win32_process_target): Update.
3925
2a31c7aa
TBA
39262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3927
3928 Turn process_stratum_target's look_up_symbols op into a method of
3929 process_target.
3930
3931 * target.h (struct process_stratum_target): Remove the target op.
3932 (class process_target): Add the target op.
3933 * target.cc (process_target::look_up_symbols): Define.
3934
3935 Update the derived classes and callers below.
3936
3937 * server.cc (handle_query): Update.
3938 * linux-low.cc (linux_target_ops): Update.
3939 (linux_look_up_symbols): Turn into ...
3940 (linux_process_target::look_up_symbols): ... this.
3941 * linux-low.h (class linux_process_target): Update.
3942 * lynx-low.cc (lynx_target_ops): Update.
3943 * nto-low.cc (nto_target_ops): Update.
3944 * win32-low.cc (win32_target_ops): Update.
3945
e2558df3
TBA
39462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3947
3948 Turn process_stratum_target's read_memory and write_memory
3949 ops into methods of process_target.
3950
3951 * target.h (struct process_stratum_target): Remove the target ops.
3952 (class process_target): Add the target ops.
3953
3954 Update the derived classes and callers below.
3955
3956 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3957 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3958 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3959 (arm_get_syscall_trapinfo): Update.
3960 * linux-cris-low.cc (cris_breakpoint_at): Update.
3961 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3962 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3963 * linux-mips-low.cc (mips_breakpoint_at): Update.
3964 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3965 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3966 * linux-sh-low.cc (sh_breakpoint_at): Update.
3967 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3968 (sparc_store_gregset_from_stack): Update.
3969 (sparc_breakpoint_at): Update.
3970 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3971 * linux-tile-low.cc (tile_breakpoint_at): Update.
3972 * linux-x86-low.cc (x86_breakpoint_at): Update.
3973 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3974 * mem-brea.cc (insert_memory_breakpoint): Update.
3975 (validate_inserted_breakpoint): Update.
3976 * target.cc (read_inferior_memory): Update.
3977 (target_write_memory): Update.
3978 * linux-low.cc (linux_target_ops): Update.
3979 (linux_read_memory): Make a wrapper around the read_memory target
3980 op call.
3981 (linux_process_target::read_memory): Rename from linux_read_memory.
3982 (linux_write_memory): Turn into ...
3983 (linux_process_target::write_memory): ... this.
3984 * linux-low.h (class linux_process_target): Update.
3985 * lynx-low.cc (lynx_target_ops): Update.
3986 (lynx_read_memory): Turn into ...
3987 (lynx_process_target::read_memory): ... this.
3988 (lynx_write_memory): Turn into ...
3989 (lynx_process_target::write_memory): ... this.
3990 * lynx-low.h (class lynx_process_target): Update.
3991 * nto-low.cc (nto_target_ops): Update.
3992 (nto_read_memory): Turn into ...
3993 (nto_process_target::read_memory): ... this.
3994 (nto_write_memory): Turn into ...
3995 (nto_process_target::write_memory): ... this.
3996 * nto-low.h (class nto_process_target): Update.
3997 * win32-low.cc (win32_target_ops): Update.
3998 (win32_read_inferior_memory): Turn into ...
3999 (win32_process_target::read_memory): ... this.
4000 (win32_write_inferior_memory): Turn into ...
4001 (win32_process_target::write_memory): ... this.
4002 * win32-low.h (class win32_process_target): Update.
4003
79b44087
TBA
40042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4005
4006 Turn process_stratum_target's prepare_to_access_memory and
4007 done_accessing_memory ops into methods of process_target.
4008
4009 * target.h (struct process_stratum_target): Remove the target ops.
4010 (class process_target): Add the target ops.
4011 * target.cc (process_target::prepare_to_access_memory): Define.
4012 (process_target::done_accessing_memory): Define.
4013 (prepare_to_access_memory): Update.
4014 (done_accessing_memory): Update.
4015
4016 Update the derived classes and callers below.
4017
4018 * linux-low.cc (linux_target_ops): Update.
4019 (linux_prepare_to_access_memory): Turn into ...
4020 (linux_process_target::prepare_to_access_memory): ... this.
4021 (linux_done_accessing_memory): Turn into ...
4022 (linux_process_target::done_accessing_memory): ... this.
4023 * linux-low.h (class linux_process_target): Update.
4024 * lynx-low.cc (lynx_target_ops): Update.
4025 * nto-low.cc (nto_target_ops): Update.
4026 * win32-low.cc (win32_target_ops): Update.
4027
a5a4d4cd
TBA
40282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4029
4030 Turn process_stratum_target's fetch_registers and store_registers
4031 ops into methods of process_target.
4032
4033 * target.h (struct process_stratum_target): Remove the target ops.
4034 (class process_target): Add the target ops.
4035 (fetch_inferior_registers): Update the macro.
4036 (store_inferior_registers): Update the macro.
4037
4038 Update the derived classes and callers below.
4039
4040 * linux-low.cc (linux_target_ops): Update.
4041 (linux_fetch_registers): Turn into ...
4042 (linux_process_target::fetch_registers): ... this.
4043 (linux_store_registers): Turn into ...
4044 (linux_process_target::store_registers): ... this.
4045 * linux-low.h (class linux_process_target): Update.
4046 * lynx-low.cc (lynx_target_ops): Update.
4047 (lynx_fetch_registers): Turn into ...
4048 (lynx_process_target::fetch_registers): ... this.
4049 (lynx_store_registers): Turn into ...
4050 (lynx_process_target::store_registers): ... this.
4051 * lynx-low.h (class lynx_process_target): Update.
4052 * nto-low.cc (nto_target_ops): Update.
4053 (nto_fetch_registers): Turn into ...
4054 (nto_process_target::fetch_registers): ... this.
4055 (nto_store_registers): Turn into ...
4056 (nto_process_target::store_registers): ... this.
4057 * nto-low.h (class nto_process_target): Update.
4058 * win32-low.cc (win32_target_ops): Update.
4059 (win32_fetch_inferior_registers): Turn into ...
4060 (win32_process_target::fetch_registers): ... this.
4061 (win32_store_inferior_registers): Turn into ...
4062 (win32_process_target::store_registers): ... this.
4063 * win32-low.h (class win32_process_target): Update.
4064
6532e7e3
TBA
40652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4066
4067 Turn process_stratum_target's wait op into a method of
4068 process_target.
4069
4070 * target.h (struct process_stratum_target): Remove the target op.
4071 (class process_target): Add the target op.
4072
4073 Update the derived classes and callers below.
4074
4075 * target.cc (target_wait): Update.
4076 * linux-low.cc (linux_target_ops): Update.
4077 (linux_wait): Turn into ...
4078 (linux_process_target::wait): ... this.
4079 * linux-low.h (class linux_process_target): Update.
4080 * lynx-low.cc (lynx_target_ops): Update.
4081 (lynx_wait): Turn into ...
4082 (lynx_process_target::wait): ... this.
4083 * lynx-low.h (class lynx_process_target): Update.
4084 * nto-low.cc (nto_target_ops): Update.
4085 (nto_wait): Turn into ...
4086 (nto_process_target::wait): ... this.
4087 * nto-low.h (class nto_process_target): Update.
4088 * win32-low.cc (win32_target_ops): Update.
4089 (win32_wait): Turn into ...
4090 (win32_process_target::wait): ... this.
4091 (do_initial_child_stuff): Update.
4092 * win32-low.h (class win32_process_target): Update.
4093
0e4d7e35
TBA
40942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4095
4096 Turn process_stratum_target's resume op into a method of
4097 process_target.
4098
4099 * target.h (struct process_stratum_target): Remove the target op.
4100 (class process_target): Add the target op.
4101
4102 Update the derived classes and callers below.
4103
4104 * server.cc (resume): Update.
4105 * target.cc (target_stop_and_wait): Update.
4106 (target_continue_no_signal): Update.
4107 (target_continue): Update.
4108 * linux-low.cc (linux_target_ops): Update.
4109 (linux_resume): Turn into ...
4110 (linux_process_target::resume): ... this.
4111 * linux-low.h (class linux_process_target): Update.
4112 * lynx-low.cc (lynx_target_ops): Update.
4113 (lynx_resume): Turn into ...
4114 (lynx_process_target::resume): ... this.
4115 * lynx-low.h (class lynx_process_target): Update.
4116 * nto-low.cc (nto_target_ops): Update.
4117 (nto_resume): Turn into ...
4118 (nto_process_target::resume): ... this.
4119 * nto-low.h (class nto_process_target): Update.
4120 * win32-low.cc (win32_target_ops): Update.
4121 (win32_resume): Turn into ...
4122 (win32_process_target::resume): ... this.
4123 (win32_process_target::detach): Update.
4124 (do_initial_child_stuff): Update.
4125 * win32-low.h (class win32_process_target): Update.
4126
13d3d99b
TBA
41272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4128
4129 Turn process_stratum_target's thread_alive op into a method of
4130 process_target.
4131
4132 * target.h (struct process_stratum_target): Remove the target op.
4133 (class process_target): Add the target op.
4134 (mythread_alive): Update the macro.
4135
4136 Update the derived classes and callers below.
4137
4138 * linux-low.cc (linux_target_ops): Update.
4139 (linux_thread_alive): Turn into ...
4140 (linux_process_target::thread_alive): ... this.
4141 (wait_for_sigstop): Update.
4142 * linux-low.h (class linux_process_target): Update.
4143 * lynx-low.cc (lynx_target_ops): Update.
4144 (lynx_thread_alive): Turn into ...
4145 (lynx_process_target::thread_alive): ... this.
4146 * lynx-low.h (class lynx_process_target): Update.
4147 * nto-low.cc (nto_target_ops): Update.
4148 (nto_thread_alive): Turn into ...
4149 (nto_process_target::thread_alive): ... this.
4150 * nto-low.h (class nto_process_target): Update.
4151 * win32-low.cc (win32_target_ops): Update.
4152 (win32_thread_alive): Turn into ...
4153 (win32_process_target::thread_alive): ... this.
4154 * win32-low.h (class win32_process_target): Update.
4155
95a49a39
TBA
41562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4157
4158 Turn process_stratum_target's join op into a method of
4159 process_target.
4160
4161 * target.h (struct process_stratum_target): Remove the target op.
4162 (class process_target): Add the target op.
4163 (join_inferior): Update the macro.
4164
4165 Update the derived classes and callers below.
4166
4167 * linux-low.cc (linux_target_ops): Update.
4168 (linux_join): Turn into ...
4169 (linux_process_target::join): ... this.
4170 * linux-low.h (class linux_process_target): Update.
4171 * lynx-low.cc (lynx_target_ops): Update.
4172 (lynx_join): Turn into ...
4173 (lynx_process_target::join): ... this.
4174 * lynx-low.h (class lynx_process_target): Update.
4175 * nto-low.cc (nto_target_ops): Update.
4176 (nto_process_target::join): Define.
4177 * nto-low.h (class nto_process_target): Update.
4178 * win32-low.cc (win32_target_ops): Update.
4179 (win32_join): Turn into ...
4180 (win32_process_target::join): ... this.
4181 * win32-low.h (class win32_process_target): Update.
4182
8adb37b9
TBA
41832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4184
4185 Turn process_stratum_target's mourn op into a method of
4186 process_target.
4187
4188 * target.h (struct process_stratum_target): Remove the target op.
4189 (class process_target): Add the target op.
4190
4191 Update the derived classes and callers below.
4192
4193 * target.cc (target_mourn_inferior): Update.
4194 * linux-low.cc (linux_target_ops): Update.
4195 (linux_mourn): Turn into ...
4196 (linux_process_target::mourn): ... this.
4197 (handle_extended_wait): Update.
4198 (linux_process_target::kill): Update.
4199 (linux_process_target::detach): Update.
4200 * linux-low.h (class linux_process_target): Update.
4201 * lynx-low.cc (lynx_target_ops): Update.
4202 (lynx_mourn): Turn into ...
4203 (lynx_process_target::mourn): ... this.
4204 * lynx-low.h (class lynx_process_target): Update.
4205 * nto-low.cc (nto_target_ops): Update.
4206 (nto_mourn): Turn into ...
4207 (nto_process_target::mourn): ... this.
4208 * nto-low.h (class nto_process_target): Update.
4209 * win32-low.cc (win32_target_ops): Update.
4210 (win32_mourn): Turn into ...
4211 (win32_process_target::mourn): ... this.
4212 * win32-low.h (class win32_process_target): Update.
4213
9061c9cf
TBA
42142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4215
4216 Turn process_stratum_target's detach op into a method of
4217 process_target.
4218
4219 * target.h (struct process_stratum_target): Remove the target op.
4220 (class process_target): Add the target op.
4221 (detach_inferior): Update the macro.
4222
4223 Update the derived classes and callers below.
4224
4225 * linux-low.cc (linux_target_ops): Update.
4226 (linux_detach): Turn into ...
4227 (linux_process_target::detach): ... this.
4228 * linux-low.h (class linux_process_target): Update.
4229 * lynx-low.cc (lynx_target_ops): Update.
4230 (lynx_detach): Turn into ...
4231 (lynx_process_target::detach): ... this.
4232 * lynx-low.h (class lynx_process_target): Update.
4233 * nto-low.cc (nto_target_ops): Update.
4234 (nto_detach): Turn into ...
4235 (nto_process_target::detach): ... this.
4236 * nto-low.h (class nto_process_target): Update.
4237 * win32-low.cc (win32_target_ops): Update.
4238 (win32_detach): Turn into ...
4239 (win32_process_target::detach): ... this.
4240 * win32-low.h (class win32_process_target): Update.
4241
c6885a57
TBA
42422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4243
4244 Turn process_stratum_target's kill op into a method of
4245 process_target.
4246
4247 * target.h (struct process_stratum_target): Remove the target op.
4248 (class process_target): Add the target op.
4249
4250 Update the derived classes and callers below.
4251
4252 * target.cc (kill_inferior): Update.
4253 * linux-low.cc (linux_target_ops): Update.
4254 (linux_kill): Turn into ...
4255 (linux_process_target::kill): ... this.
4256 * linux-low.h (class linux_process_target): Update.
4257 * lynx-low.cc (lynx_target_ops): Update.
4258 (lynx_kill): Turn into ...
4259 (lynx_process_target::kill): ... this.
4260 * lynx-low.h (class lynx_process_target): Update.
4261 * nto-low.cc (nto_target_ops): Update.
4262 (nto_kill): Turn into ...
4263 (nto_process_target::kill): ... this.
4264 * nto-low.h (class nto_process_target): Update.
4265 * win32-low.cc (win32_target_ops): Update.
4266 (win32_kill): Turn into ...
4267 (win32_process_target::kill): ... this.
4268 * win32-low.h (class win32_process_target): Update.
4269
ef03dad8
TBA
42702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4271
4272 Turn process_stratum_target's attach op into a method of
4273 process_target.
4274
4275 * target.h (struct process_stratum_target): Remove the target op.
4276 (class process_target): Add the target op.
4277 (myattach): Update the macro.
4278
4279 Update the derived classes and callers below.
4280
4281 * linux-low.cc (linux_target_ops): Update.
4282 (linux_attach): Turn into ...
4283 (linux_process_target::attach): ... this.
4284 * linux-low.h (class linux_process_target): Update.
4285 * lynx-low.cc (lynx_target_ops): Update.
4286 (lynx_attach): Turn into ...
4287 (lynx_process_target::attach): ... this.
4288 * lynx-low.h (class lynx_process_target): Update.
4289 * nto-low.cc (nto_target_ops): Update.
4290 (nto_attach): Turn into ...
4291 (nto_process_target::attach): ... this.
4292 * nto-low.h (class nto_process_target): Update.
4293 * win32-low.cc (win32_target_ops): Update.
4294 (win32_attach): Turn into ...
4295 (win32_process_target::attach): ... this.
4296 * win32-low.h (class win32_process_target): Update.
4297
6dee9afb
TBA
42982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4299
4300 Turn process_stratum_target's post_create_inferior op into a method
4301 of process_target.
4302
4303 * target.h (struct process_stratum_target): Remove the target op.
4304 (class process_target): Add the target op.
4305 (target_post_create_inferior): Update the macro.
4306 * target.cc (process_target::post_create_inferior): Define.
4307
4308 Update the derived classes and callers below.
4309
4310 * linux-low.cc (linux_target_ops): Update.
4311 (linux_post_create_inferior): Turn into ...
4312 (linux_process_target::post_create_inferior): ... this.
4313 * linux-low.h (class linux_process_target): Update.
4314 * lynx-low.cc (lynx_target_ops): Update.
4315 * nto-low.cc (nto_target_ops): Update.
4316 * win32-low.cc (win32_target_ops): Update.
4317
15295543
TBA
43182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4319
4320 Turn process_stratum_target's create_inferior op into a method of
4321 process_target.
4322
4323 * target.h (struct process_stratum_target): Remove the target op.
4324 (class process_target): Add the target op.
4325 (create_inferior): Rename the macro to ...
4326 (target_create_inferior): ... this.
4327
4328 Update the derived classes and callers below.
4329
4330 * server.cc (handle_v_run): Update.
4331 (captured_main): Update.
4332 (process_serial_event): Update.
4333 * linux-low.cc (linux_target_ops): Update.
4334 (linux_create_inferior): Turn into ...
4335 (linux_process_target::create_inferior): ... this.
4336 * linux-low.h (class linux_process_target): Update.
4337 * lynx-low.cc (lynx_target_ops): Update.
4338 (lynx_create_inferior): Turn into ...
4339 (lynx_process_target::create_inferior): ... this.
4340 * lynx-low.h (class lynx_process_target): Update.
4341 * nto-low.cc (nto_target_ops): Update.
4342 (nto_create_inferior): Turn into ...
4343 (nto_process_target::create_inferior): ... this.
4344 * nto-low.h (class nto_process_target): Update.
4345 * win32-low.cc (win32_target_ops): Update.
4346 (win32_create_inferior): Turn into ...
4347 (win32_process_target::create_inferior): ... this.
4348 * win32-low.h (class win32_process_target): Update.
4349
5ef9273d
TBA
43502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4351
4352 * target.h (class process_target): New class definition.
4353 (struct process_stratum_target) <pt>: New field with type
4354 'process_target*'.
4355 * linux-low.h (class linux_process_target): Define as a derived
4356 class of 'process_target'.
4357 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4358 as the 'pt' field.
4359 * lynx-low.h (class lynx_process_target): Define as a derived
4360 class of 'process_target'.
4361 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4362 as the 'pt' field.
4363 * nto-low.h (class nto_process_target): Define as a derived
4364 class of 'process_target'.
4365 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4366 as the 'pt' field.
4367 * win32-low.h (class win32_process_target): Define as a derived
4368 class of 'process_target'.
4369 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4370 as the 'pt' field.
4371
9f1528a1
AB
43722020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4373
4374 * configure: Regenerate.
4375
bf84f706
MR
43762020-02-19 Maciej W. Rozycki <macro@wdc.com>
4377 Andrew Burgess <andrew.burgess@embecosm.com>
4378
4379 * linux-riscv-low.cc: New file.
4380 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4381 and nat/riscv-linux-tdesc.c.
4382 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4383 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4384 Define.
4385
1a627e7e
TT
43862020-02-14 Tom Tromey <tom@tromey.com>
4387
4388 * acinclude.m4: Don't include acx_configure_dir.m4.
4389 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4390 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4391 (all, install-only, uninstall, clean-info, clean)
4392 (maintainer-clean): Don't recurse.
4393 (subdir_do, all-lib): Remove.
4394 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4395 (GNULIB_H): Remove.
4396 (generated_files): Update.
4397 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4398 * configure: Rebuild.
4399 * configure.ac: Don't configure gnulib or libiberty.
4400 (GNULIB): Update.
4401
a9b34532
EZ
44022020-02-14 Eli Zaretskii <eliz@gnu.org>
4403
4404 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4405 preparing the command line for CreateProcess.
4406 (win32_create_inferior): Reflect the program name in debugging
4407 output that shows the process and its command line.
4408
feacfcac
SM
44092020-02-13 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * Makefile.in: Rename source files from .c to .cc.
4412 * %.c: Rename to %.cc.
4413 * configure.ac: Rename server.c to server.cc.
4414 * configure: Re-generate.
4415
06b3c5bd
SM
44162020-02-13 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4419
052793ad
HD
44202020-02-12 Hannes Domani <ssbssa@yahoo.de>
4421
4422 * win32-low.c (win32_create_inferior): Set signal_pid.
4423
f20e3e82
MR
44242020-02-12 Maciej W. Rozycki <macro@wdc.com>
4425 Pedro Alves <palves@redhat.com>
4426
4427 Skip building gdbserver in a cross-configuration.
4428 * configure.srv: Set $gdbserver_host depending on whether $target
4429 is $host. Use $gdbserver_host instead of $host.
4430
8ddd8e0e
SM
44312020-02-11 Simon Marchi <simon.marchi@efficios.com>
4432
4433 * configure: Re-generate.
4434
898e7f60
SM
44352020-02-11 Simon Marchi <simon.marchi@efficios.com>
4436
4437 * configure: Re-generate.
4438
58df732b
SM
44392020-02-11 Simon Marchi <simon.marchi@efficios.com>
4440
4441 * acinclude.m4: Update warning.m4 path.
4442
7928d571
HD
44432020-02-09 Hannes Domani <ssbssa@yahoo.de>
4444
4445 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4446 (handle_exception): Set siginfo_er.
4447 (win32_xfer_siginfo): New function.
4448
919adfe8
TT
44492020-02-07 Tom Tromey <tom@tromey.com>
4450 Pedro Alves <palves@redhat.com>
4451
4452 * README: Update build documentation.
4453 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4454 host, not target.
4455 * configure.ac: Update paths.
4456 * configure: Rebuild.
4457 * acinclude.m4: Update paths.
4458 * Makefile.in: Update include paths.
4459 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4460 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4461 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4462 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4463 (%-generated.c): Update paths.
4464 * Move entire directory from ../gdb/gdbserver.
4465
287c844a
MR
44662020-01-29 Maciej W. Rozycki <macro@wdc.com>
4467
4468 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4469
548a204f
PFC
44702020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4471
4472 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4473 assignment instead of srv_linux_obj.
4474
a2236a08
HD
44752020-01-28 Hannes Domani <ssbssa@yahoo.de>
4476
4477 * server.c (handle_qxfer_libraries): Write segment-address with
4478 paddress.
4479
bdaed379
HD
44802020-01-24 Hannes Domani <ssbssa@yahoo.de>
4481
4482 * Makefile.in (install-strip): New target.
4483 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4484 * aclocal.m4: Regenerate.
4485 * configure: Regenerate.
4486 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4487
42cd72aa
MR
44882020-01-24 Maciej W. Rozycki <macro@wdc.com>
4489
4490 * Makefile.in (SFILES): Adjust paths to point to real files.
4491 (OBS): Move waitstatus.o to target/waitstatus.o.
4492 (TAGS): Transform paths appropriately.
4493 (%.o): Rename to...
4494 (nat/%.o): ... this pattern rule.
4495 (%.o): Rename to...
4496 (target/%.o): ... this pattern rule.
4497 * configure.srv: Adjust paths throughout to include nat/ prefix
4498 with the revant files.
4499 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4500 * configure: Regenerate.
4501
42ba50ec
MR
45022020-01-24 Maciej W. Rozycki <macro@wdc.com>
4503
4504 * Makefile.in (TAGS): Remove config files from the recipe.
4505
05ea2a05
TT
45062020-01-14 Tom Tromey <tom@tromey.com>
4507
4508 * configure: Rebuild.
4509 * configure.ac: Remove any checks that were added to common.m4.
4510 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4511 lib-link.m4.
4512
01027315
TT
45132020-01-14 Tom Tromey <tom@tromey.com>
4514
4515 * server.h: Include config.h.
4516 * gdbreplay.c: Include config.h.
4517 * configure: Rebuild.
4518 * configure.ac: Don't source common.host.
4519 * acinclude.m4: Update path.
4520 * Makefile.in (INCSUPPORT): New variable.
4521 (INCLUDE_CFLAGS): Add INCSUPPORT.
4522 (SFILES): Update paths.
4523 (version-generated.c): Update path to create-version.sh.
4524 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4525
b2ceabe8
TT
45262020-01-14 Tom Tromey <tom@tromey.com>
4527
4528 * configure.ac (LIBS): Use WIN32APILIBS.
4529 (USE_WIN32API): Don't define.
4530 * configure: Rebuild.
4531
25c51f71
TT
45322020-01-14 Tom Tromey <tom@tromey.com>
4533
4534 * configure: Rebuild.
4535
c0bd321d
SM
45362020-01-13 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * Makefile.in (%-generated.c): Remove rule for files from
4539 regformats/i386.
4540
bb564c58
SM
45412020-01-13 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * configure: Re-generate.
4544
6e37c371
SM
45452020-01-13 Simon Marchi <simon.marchi@efficios.com>
4546
4547 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4548 Define to static.
4549 * tracepoint.c (stop_tracing, flush_trace_buffer,
4550 about_to_request_buffer_space, get_trace_state_variable_value,
4551 set_trace_state_variable_value, gdb_collect): Add declaration.
4552
df4a0200
SM
45532020-01-13 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4556 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4557 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4558 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4559 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4560 static.
4561
89e94ec9
SM
45622020-01-13 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * inferiors.c: Include gdbsupport/common-inferior.h.
4565
2552728a
SM
45662020-01-13 Simon Marchi <simon.marchi@efficios.com>
4567
4568 * hostio-errno.c: Include hostio.h.
4569
4025fa09
SM
45702020-01-13 Simon Marchi <simon.marchi@efficios.com>
4571
4572 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4573 prerequisite.
4574
c0b0a142
SM
45752020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4576
4577 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4578 * linux-arm-tdesc.h: Include arch/arm.h.
4579
bb1183e2
SM
45802020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4581
4582 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4583
f5df0b5f
SM
45842020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4585
4586 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4587 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4588
5b6d1e4f
PA
45892020-01-10 Pedro Alves <palves@redhat.com>
4590
4591 * fork-child.c (post_fork_inferior): Pass target down to
4592 startup_inferior.
4593 * inferiors.c (switch_to_thread): Add process_stratum_target
4594 parameter.
4595 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4596 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4597 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4598 * remote-utils.c (prepare_resume_reply): Pass the target to
4599 switch_to_thread.
4600 * target.c (the_target): Now a process_stratum_target.
4601 (done_accessing_memory): Pass the target to switch_to_thread.
4602 (set_target_ops): Ajust to use process_stratum_target.
4603 * target.h (struct target_ops): Rename to ...
4604 (struct process_stratum_target): ... this.
4605 (the_target, set_target_ops): Adjust.
4606 (prepare_to_access_memory): Adjust comment.
4607 * win32-low.c (child_xfer_memory): Adjust to use
4608 process_stratum_target.
4609 (win32_target_ops): Now a process_stratum_target.
4610
559e7e50
EZ
46112020-01-06 Eli Zaretskii <eliz@gnu.org>
4612 Pedro Alves <palves@redhat.com>
4613
4614 * win32-low.c (get_child_debug_event): Extract the fatal exception
4615 from the exit status and convert to the equivalent Posix signal
4616 number.
4617 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4618 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4619
48189bec
HD
46202020-01-01 Hannes Domani <ssbssa@yahoo.de>
4621
4622 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4623
5dd8bf88
JB
46242020-01-01 Joel Brobecker <brobecker@adacore.com>
4625
4626 * server.c (gdbserver_version): Change copyright year to 2020.
4627 * gdbreplay.c (gdbreplay_version): Likewise.
4628
0ad6b8ee
CB
46292019-12-19 Christian Biesinger <cbiesinger@google.com>
4630
4631 * configure: Regenerate.
4632 * configure.ac: Quote variable arguments of test.
4633
1ee7b812
BE
46342019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4635
4636 * Makefile.in: Fix build with GNU Make 3.81
4637
d9fa87f4
TT
46382019-12-16 Tom Tromey <tromey@adacore.com>
4639
4640 * server.c (get_exec_file): Constify result.
4641
ab7d13f0
CB
46422019-12-10 Christian Biesinger <cbiesinger@google.com>
4643
4644 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4645 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4646 * config.in: Regenerate.
4647 * configure: Regenerate.
4648 * configure.ac: Don't check for strerror.
4649 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4650 Call safe_strerror instead of strerror.
4651 * server.h (strerror): Remove this now-unnecessary declaration.
4652 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4653 strerror.
4654 (gdb_agent_helper_thread): Likewise.
4655 * utils.c (perror_with_name): Likewise.
4656
4da8c3a8
TT
46572019-11-26 Tom Tromey <tom@tromey.com>
4658
4659 * configure, config.in: Rebuild.
4660
21987b9c
TT
46612019-11-26 Tom Tromey <tom@tromey.com>
4662
4663 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4664 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4665 gdb_sigmask.
4666 * configure, config.in: Rebuild.
4667
5e030278
TT
46682019-11-26 Tom Tromey <tom@tromey.com>
4669
4670 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4671 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4672 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4673 * acinclude.m4: Include ax_pthread.m4.
4674 * config.in, configure: Rebuild.
4675
6d91ce9a
CB
46762019-11-26 Christian Biesinger <cbiesinger@google.com>
4677
4678 * debug.c (debug_set_output): Call safe_strerror instead of
4679 strerror.
4680 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4681 (linux_kill_one_lwp): Likewise.
4682 (linux_detach_one_lwp): Likewise.
4683 (linux_wait_for_event_filtered): Likewise.
4684 (store_register): Likewise.
4685 * lynx-low.c (lynx_attach): Likewise.
4686 * mem-break.c (insert_memory_breakpoint): Likewise.
4687 (remove_memory_breakpoint): Likewise.
4688 (delete_fast_tracepoint_jump): Likewise.
4689 (set_fast_tracepoint_jump): Likewise.
4690 (uninsert_fast_tracepoint_jumps_at): Likewise.
4691 (reinsert_fast_tracepoint_jumps_at): Likewise.
4692 * nto-low.c (nto_xfer_memory): Likewise.
4693 (nto_resume): Likewise.
4694
6cdd651f
LM
46952019-11-20 Luis Machado <luis.machado@linaro.org>
4696
4697 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4698 instead of register count.
4699 * tdesc.c (tdesc_contains_feature): New function.
4700 * tdesc.h (tdesc_contains_feature): New prototype.
4701
cd850b40
CB
47022019-11-15 Christian Biesinger <cbiesinger@google.com>
4703
4704 * Makefile.in: Add safe-strerror.c.
4705 * configure: Regenerate.
4706 * configure.ac: Don't source common.host.
4707
5abebf3c
CB
47082019-11-15 Christian Biesinger <cbiesinger@google.com>
4709
4710 * config.in: Regenerate.
4711 * configure: Regenerate.
4712
e06f3d6e
AB
47132019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4714
4715 * ax.c (ax_printf): Handle size_t_arg.
4716
ca3a04f6
CB
47172019-11-06 Christian Biesinger <cbiesinger@google.com>
4718
4719 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4720 * mi/mi-main.c (output_cores): Likewise.
4721 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4722 (linux_xfer_osdata_modules): Likewise.
4723 * remote.c (register_remote_support_xml): Likewise.
4724 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4725 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4726
e48f6033
CB
47272019-11-01 Christian Biesinger <cbiesinger@google.com>
4728
4729 * configure: Regenerate.
4730 * configure.ac: Remove check for strerror_r.
4731
e7e97a2e
CB
47322019-10-31 Christian Biesinger <cbiesinger@google.com>
4733
4734 * config.in: Regenerate.
4735 * configure: Regenerate.
4736 * configure.ac: Also check for strerror_r.
4737
75cafaa6
CB
47382019-10-31 Christian Biesinger <cbiesinger@google.com>
4739
4740 * ax.h (debug_agent): Remove duplicate declaration.
4741
30baf67b
TV
47422019-10-26 Tom de Vries <tdevries@suse.de>
4743
4744 * linux-aarch64-low.c: Fix typos in comments.
4745 * linux-arm-low.c: Same.
4746 * linux-low.c: Same.
4747 * linux-ppc-low.c: Same.
4748 * proc-service.c: Same.
4749 * regcache.h: Same.
4750 * server.c: Same.
4751 * tracepoint.c: Same.
4752 * win32-low.c: Same.
4753
52c64cf7
TT
47542019-10-25 Tom Tromey <tromey@adacore.com>
4755
4756 * utils.c (xstrdup): Remove.
4757
c12d372d
TT
47582019-10-23 Tom Tromey <tom@tromey.com>
4759
4760 * configure, config.in: Rebuild.
4761
4d0b984b
TT
47622019-10-23 Tom Tromey <tom@tromey.com>
4763
4764 * configure: Rebuild.
4765 * acinclude.m4: Use m4_include, not sinclude.
4766
c5adaa19
TT
47672019-10-17 Tom Tromey <tromey@adacore.com>
4768
4769 * configure: Rebuild.
4770 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4771 in AC_CONFIG_FILES invocation.
4772 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4773 invocation.
4774
fec4e896
CB
47752019-10-16 Christian Biesinger <cbiesinger@google.com>
4776
4777 * server.c: Include xml-builtin.h.
4778 (get_xml_features): Don't declare xml_builtins here.
4779
00975ff6
AB
47802019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4781
4782 * Makefile.in: Remove references to vec-ipa.o.
4783
0dc32745
AB
47842019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4785
4786 * Makefile.in: Remove references to vec.c.
4787
3e6ec53a
CB
47882019-10-02 Christian Biesinger <cbiesinger@google.com>
4789
4790 * server.c (server_waiting): Change to bool.
4791 (extended_protocol): Likewise.
4792 (response_needed): Likewise.
4793 (exit_requested): Likewise.
4794 (run_once): Likewise.
4795 (report_no_resumed): Likewise.
4796 (non_stop): Likewise.
4797 (disable_packet_vCont): Likewise.
4798 (disable_packet_Tthread): Likewise.
4799 (disable_packet_qC): Likewise.
4800 (disable_packet_qfThreadInfo): Likewise.
4801 (handle_general_set): Update.
4802 (handle_detach): Update.
4803 (handle_monitor_command): Update.
4804 (handle_query): Update.
4805 (captured_main): Update.
4806 (process_serial_event): Update.
4807 * server.h (server_waiting): Change to bool.
4808 (disable_packet_vCont): Likewise.
4809 (disable_packet_Tthread): Likewise.
4810 (disable_packet_qC): Likewise.
4811 (disable_packet_qfThreadInfo): Likewise.
4812 (run_once): Likewise.
4813 (non_stop): Likewise.
4814 * target.c (target_stop_and_wait): Update.
4815
80fd2826
TT
48162019-10-02 Tom Tromey <tromey@adacore.com>
4817
4818 * Makefile.in (SFILES): Add common-inferior.c.
4819 (OBS): Add common-inferior.o.
4820 * server.c (startup_with_shell): Don't define.
4821
46f29a9a
AB
48222019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4823
4824 * linux-low.c (linux_low_read_btrace): Update for change to
4825 std::vector.
4826
f9d949fb
CB
48272019-09-20 Christian Biesinger <cbiesinger@google.com>
4828
4829 * debug.c (debug_threads): Remove comment in favor of the header.
4830 * debug.h (using_threads): Add declaration.
4831 (debug_threads): Add comment.
4832 * linux-aarch64-low.c: Include debug.h and remove declaration of
4833 debug_threads.
4834 * nto-low.c: Likewise.
4835 * remote-utils.c: Likewise.
4836 * thread-db.c: Likewise.
4837
abf516c6
UW
48382019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4839
4840 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4841 and powerpc-cell64l-ipa.o.
4842 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4843 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4844 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4845 (spu*-*-*): Remove.
4846
4847 * spu-low.c: Remove file.
4848
4849 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4850 (parse_spufs_run): Remove.
4851 (ppc_get_pc): Remove Cell/B.E. support.
4852 (ppc_set_pc): Likewise.
4853 (ppc_breakpoint_at): Likewise.
4854 (ppc_arch_setup): Likewise.
4855 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4856 tdesc_powerpc_cell32l.
4857 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4858 or init_registers_powerpc_cell32l.
4859 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4860 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4861 or init_registers_powerpc_cell32l.
4862 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4863 (init_registers_powerpc_cell32l): Remove prototype.
4864 (init_registers_powerpc_cell64l): Likewise.
4865
4866 * target.h (struct target_ops): Remove qxfer_spu member.
4867 * server.c (handle_qxfer_spu): Remove.
4868 (qxfer_packets): Remove entry for "spu".
4869 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4870 * linux-low.c (SPUFS_MAGIC): Remove.
4871 (spu_enumerate_spu_ids): Remove.
4872 (linux_qxfer_spu): Remove.
4873 (linux_target_ops): Remove qxfer_spu member.
4874 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4875 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4876 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4877
2d41fa11
SDJ
48782019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4879
4880 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4881 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4882 * config.in: Regenerate.
4883 * configure: Regenerate.
4884
d59b55f0
TT
48852019-08-15 Tom Tromey <tromey@adacore.com>
4886
4887 * target.c (target_write_memory): Use gdb::byte_vector.
4888
4196ab2a
TT
48892019-08-15 Tom Tromey <tromey@adacore.com>
4890
4891 * tracepoint.c (write_inferior_data_pointer)
4892 (write_inferior_integer, write_inferior_int8)
4893 (write_inferior_uinteger, m_tracepoint_action_download)
4894 (r_tracepoint_action_download, x_tracepoint_action_download)
4895 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4896 (download_agent_expr, download_tracepoint_1)
4897 (download_trace_state_variables, upload_fast_traceframes): Update.
4898 * server.c (gdb_write_memory): Update.
4899 * remote-utils.c (relocate_instruction): Update.
4900 * proc-service.c (ps_pdwrite): Update.
4901 * mem-break.c (remove_memory_breakpoint)
4902 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4903 (uninsert_fast_tracepoint_jumps_at)
4904 (reinsert_fast_tracepoint_jumps_at): Update.
4905 * linux-x86-low.c (append_insns)
4906 (i386_install_fast_tracepoint_jump_pad)
4907 (amd64_write_goto_address, i386_write_goto_address): Update.
4908 * linux-s390-low.c (append_insns, s390_write_goto_address):
4909 Update.
4910 * linux-ppc-low.c (ppc_relocate_instruction)
4911 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4912 (ppc_write_goto_address): Update.
4913 * linux-aarch64-low.c (append_insns): Update.
4914 * target.h (struct target_ops): Update.
4915 (write_inferior_memory): Don't declare.
4916 * target.c (target_write_memory): Rename from
4917 write_inferior_memory. Remove old target_write_memory.
4918
c6778d00
TT
49192019-08-15 Tom Tromey <tromey@adacore.com>
4920
4921 * target.c (write_inferior_memory): Use std::vector.
4922
404f2902
FCE
49232019-08-06 Frank Ch. Eigler <fche@redhat.com>
4924
4925 PR build/24886
4926 * configure.ac: Drop enable-libmcheck support.
4927 * configure, config.in: Rebuild.
4928 * acinclude.m4: Don't include it.
4929
4c5aa8e0
AH
49302019-07-19 Alan Hayward <alan.hayward@arm.com>
4931
4932 * configure.srv: Remove Arm xml files.
4933
7cc17433
AH
49342019-07-19 Alan Hayward <alan.hayward@arm.com>
4935
4936 * configure.srv: Add new files. Remove xml generated files.
4937 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4938 registers.
4939 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4940 * linux-aarch32-tdesc.c: New file.
4941 * linux-aarch32-tdesc.h: New file.
4942 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4943 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4944 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4945 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4946 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4947 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4948 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4949 (arm_read_description): Call arm_linux_read_description.
4950 (initialize_low_arch): Don't init registers.
4951 * linux-arm-tdesc.c: New file.
4952 * linux-arm-tdesc.h: New file.
4953
166a82be
AH
49542019-07-10 Alan Hayward <alan.hayward@arm.com>
4955
4956 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4957 Move counter inside for.
4958 (arm_read_description): Check ptrace earlier.
4959 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4960
268a13a5
TT
49612019-07-09 Tom Tromey <tom@tromey.com>
4962
4963 * configure: Rebuild.
4964 * configure.ac: Change common to gdbsupport.
4965 * acinclude.m4: Change common to gdbsupport.
4966 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4967 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4968 common to gdbsupport.
4969 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4970 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4971 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4972 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4973 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4974 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4975 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4976 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4977 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4978 common to gdbsupport.
4979
350fab54
AH
49802019-07-04 Alan Hayward <alan.hayward@arm.com>
4981
4982 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4983 defines.
4984 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4985
2b40fda7
AH
49862019-07-04 Alan Hayward <alan.hayward@arm.com>
4987
4988 * configure.srv: Remove legacy xml.
4989 * linux-aarch64-low.c (initialize_low_arch): Remove
4990 initialize_low_tdesc call.
4991 * linux-aarch64-tdesc-selftest.c: Remove file.
4992 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4993 * linux-x86-low.c (initialize_low_arch): Remove
4994 initialize_low_tdesc call.
4995 * linux-x86-tdesc-selftest.c: Remove file.
4996 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4997
7d10623d
TV
49982019-06-20 Tom de Vries <tdevries@suse.de>
4999
5000 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5001 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5002
8d6a48df
TV
50032019-06-19 Tom de Vries <tdevries@suse.de>
5004
5005 * debug.h (debug_write): Change return type to ssize_t.
5006 * debug.c (debug_write): Same.
5007
73cc7272
TT
50082019-06-14 Tom Tromey <tom@tromey.com>
5009
5010 * configure.ac: Use new path to gnulib.
5011 * configure: Rebuild.
5012 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5013 to gnulib.
5014
08f10e02
TT
50152019-06-11 Tom Tromey <tom@tromey.com>
5016
5017 * Makefile.in (SFILES): Add alloc.c.
5018 (OBS): Add alloc.o.
5019 (IPA_OBJS): Add alloc-ipa.o.
5020 (alloc-ipa.o): New target.
5021 (%.o: ../%.c): New pattern rule.
5022
422186a9
TT
50232019-06-10 Tom Tromey <tromey@adacore.com>
5024
5025 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5026 end warning with a newline.
5027 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5028 newline.
5029 * thread-db.c (attach_thread): Don't end warning with a newline.
5030 (thread_db_notice_clone): Likewise.
5031 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5032 newline.
5033 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5034 end warning with a newline.
5035
b02f78f9
PA
50362019-06-04 Pedro Alves <palves@redhat.com>
5037
5038 * server.c (captured_main): Use make_unique_xstrdup.
5039
88ed7edb
TT
50402019-06-02 Tom Tromey <tom@tromey.com>
5041
5042 * gdbreplay.c (fromhex): Remove.
5043 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5044
33a6bc35
TT
50452019-05-29 Tom Tromey <tromey@adacore.com>
5046
5047 * configure: Rebuild.
5048
e90a813d
KB
50492019-05-06 Kevin Buettner <kevinb@redhat.com>
5050
5051 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5052 sign extension code on 32-bit builds.
5053
353ea2d1
EZ
50542019-05-03 Eli Zaretskii <eliz@gnu.org>
5055
5056 * remote-utils.c:
5057 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5058
b494cdff
TT
50592019-04-19 Tom Tromey <tom@tromey.com>
5060
5061 * server.c (struct vstop_notif): Derive from notif_event.
5062 <base>: Remove.
5063 (queue_stop_reply): Update.
5064 (remove_all_on_match_ptid): Change type. Rewrite.
5065 (discard_queued_stop_replies): Rewrite.
5066 (in_queued_stop_replies_ptid): Change type.
5067 (in_queued_stop_replies): Rewrite.
5068 (notif_stop): Update.
5069 (queue_stop_reply_callback): Update.
5070 (captured_main): Don't call initialize_notif.
5071 (push_stop_notification): Update.
5072 * notif.c (notif_write_event, handle_notif_ack)
5073 (notif_event_enque, notif_push): Update.
5074 (notif_event_xfree, initialize_notif): Remove.
5075 * notif.h (struct notif_event): Include <list>, not
5076 "common/queue.h".
5077 (struct notif_server) <queue>: Now a std::list.
5078 (notif_event_p): Remove typedef.
5079 (initialize_notif): Don't declare.
5080 (struct notif_event): Add virtual destructor.
5081
a7e559cc
AH
50822019-04-17 Alan Hayward <alan.hayward@arm.com>
5083
5084 * ax.c (ax_vdebug): Call debug_printf.
5085 * debug.c (debug_write): New function.
5086 * debug.h (debug_write): New declaration.
5087 * linux-low.c (sigchld_handler): Call debug_write.
5088
aeb2e706
AH
50892019-04-17 Alan Hayward <alan.hayward@arm.com>
5090
5091 * debug.c (debug_set_output): New function.
5092 (debug_vprintf): Send output to debug_file.
5093 (debug_flush): Likewise.
5094 * debug.h (debug_set_output): New declaration.
5095 * server.c (handle_monitor_command): Add debug-file option.
5096 (captured_main): Likewise.
5097
c1bc0935
AH
50982019-04-17 Alan Hayward <alan.hayward@arm.com>
5099
5100 * debug.c (remote_debug): Add definition.
5101 * debug.h (remote_debug): Add declaration.
5102 * hostio.c (remote_debug): Remove declaration.
5103 * remote-utils.c (struct ui_file): Likewise.
5104 (remote_debug): Likewise.
5105 * remote-utils.h (remote_debug): Likewise,
5106 * server.c (remote_debug): Remove definition.
5107
3f52fdbc
KB
51082019-04-10 Kevin Buettner <kevinb@redhat.com>
5109
5110 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5111 when using a 64-bit gdbserver.
5112
b0319eaa
TT
51132019-04-09 Tom Tromey <tromey@adacore.com>
5114
5115 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5116
eedc3f4f
TT
51172019-04-08 Tom Tromey <tom@tromey.com>
5118
5119 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5120 throw.
5121 (linux_resume_one_lwp): Likewise.
5122
230d2906
TT
51232019-04-08 Tom Tromey <tom@tromey.com>
5124
5125 * gdbreplay.c: Update.
5126 * linux-low.c: Update.
5127 * server.c: Update.
5128
a70b8144
TT
51292019-04-08 Tom Tromey <tom@tromey.com>
5130
5131 * server.c: Use C++ exception handling.
5132 * linux-low.c: Use C++ exception handling.
5133 * gdbreplay.c: Use C++ exception handling.
5134
3d6e9d23
TT
51352019-04-08 Tom Tromey <tom@tromey.com>
5136
5137 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5138 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5139 (captured_main, main): Update.
5140 * gdbreplay.c (main): Update.
5141
0570503d
PFC
51422019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5143
5144 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5145 value in argument pointer, return 1 if the entry is found and 0
5146 otherwise. Move comment.
5147 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5148 * linux-low.h (linux_get_auxv): Declare.
5149 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5150
227a9e65
TT
51512019-04-05 Tom Tromey <tromey@adacore.com>
5152
5153 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5154 variables.
5155
69f4c9cc
AH
51562019-03-28 Alan Hayward <alan.hayward@arm.com>
5157
5158 * linux-low.c (AT_HWCAP2): Add define if not already included.
5159
974c89e0
AH
51602019-03-26 Alan Hayward <alan.hayward@arm.com>
5161
5162 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5163 (aarch64_arch_setup): Call linux_get_hwcap.
5164 * linux-arm-low.c (arm_get_hwcap): Remove function.
5165 (arm_read_description): Call linux_get_hwcap.
5166 * linux-low.c (linux_get_auxv): New function.
5167 (linux_get_hwcap): Likewise.
5168 (linux_get_hwcap2): Likewise.
5169 * linux-low.h (linux_get_hwcap): New declaration.
5170 (linux_get_hwcap2): Likewise.
5171 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5172 (ppc_arch_setup): Call linux_get_hwcap.
5173 * linux-s390-low.c (s390_get_hwcap): Remove function.
5174 (s390_arch_setup): Call linux_get_hwcap.
5175
1ef53e6b
AH
51762019-03-22 Alan Hayward <alan.hayward@arm.com>
5177 Jiong Wang <jiong.wang@arm.com>
5178
5179 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5180 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5181 to fail.
5182 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5183
ee4fbcfa
AH
51842019-03-22 Alan Hayward <alan.hayward@arm.com>
5185 Jiong Wang <jiong.wang@arm.com>
5186
5187 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5188 (aarch64_get_hwcap): New function.
5189 (aarch64_arch_setup): Read APIA hwcap.
5190
6dc0ebde
AH
51912019-03-22 Alan Hayward <alan.hayward@arm.com>
5192 Jiong Wang <jiong.wang@arm.com>
5193
5194 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5195 (initialize_low_tracepoint): Likewise.
5196 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5197 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5198 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5199 (aarch64_linux_read_description): Likewise.
5200 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5201
1163a4b7
JB
52022019-03-12 John Baldwin <jhb@FreeBSD.org>
5203
5204 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5205 i386_create_target_description for 'segments' parameter.
5206 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5207 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5208 * win32-i386-low.c (i386_arch_setup): Likewise.
5209
d3a70e03
TT
52102019-03-12 Tom Tromey <tromey@adacore.com>
5211
5212 * linux-low.c (iterate_over_lwps): Update.
5213
37991b4f
TT
52142019-03-06 Tom Tromey <tom@tromey.com>
5215
5216 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5217 (captured_main): Use SCOPE_EXIT.
5218
45950eb6
SDJ
52192019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5220
5221 * configure.srv: Use '$enable_unittest' instead of '$development'
5222 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5223 case.
5224
43ac54fc
TT
52252019-02-27 Tom Tromey <tromey@adacore.com>
5226
5227 * gdbreplay.c (logchar): Handle \r\n.
5228
df0da8a2
AH
52292019-02-07 Alan Hayward <alan.hayward@arm.com>
5230
5231 * linux-low.c (linux_attach): Add process before lwp.
5232 * server.c (attach_inferior): Check if already attached.
5233
1a5c2598
TT
52342019-02-07 Tom Tromey <tom@tromey.com>
5235
5236 * x86-tdesc.h: Rename include guard.
5237 * x86-low.h: Add include guard.
5238 * wincecompat.h: Rename include guard.
5239 * win32-low.h: Add include guard.
5240 * utils.h: Rename include guard.
5241 * tracepoint.h: Rename include guard.
5242 * tdesc.h: Rename include guard.
5243 * target.h: Rename include guard.
5244 * server.h: Rename include guard.
5245 * remote-utils.h: Rename include guard.
5246 * regcache.h: Rename include guard.
5247 * nto-low.h: Rename include guard.
5248 * notif.h: Add include guard.
5249 * mem-break.h: Rename include guard.
5250 * lynx-low.h: Add include guard.
5251 * linux-x86-tdesc.h: Add include guard.
5252 * linux-s390-tdesc.h: Add include guard.
5253 * linux-ppc-tdesc-init.h: Add include guard.
5254 * linux-low.h: Add include guard.
5255 * linux-aarch64-tdesc.h: Add include guard.
5256 * linux-aarch32-low.h: Add include guard.
5257 * inferiors.h: Rename include guard.
5258 * i387-fp.h: Rename include guard.
5259 * hostio.h: Rename include guard.
5260 * gdbthread.h: Rename include guard.
5261 * gdb_proc_service.h: Rename include guard.
5262 * event-loop.h: Rename include guard.
5263 * dll.h: Rename include guard.
5264 * debug.h: Rename include guard.
5265 * ax.h: Rename include guard.
5266
956cc47c
SN
52672018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5268
5269 PR gdb/23985
5270 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5271 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5272
a0707f3c
TT
52732019-01-25 Tom Tromey <tom@tromey.com>
5274
5275 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5276
0747795c
TT
52772019-01-25 Tom Tromey <tom@tromey.com>
5278
5279 * win32-low.c: Fix common/ includes.
5280 * win32-i386-low.c: Fix common/ includes.
5281 * tracepoint.c: Fix common/ includes.
5282 * thread-db.c: Fix common/ includes.
5283 * target.h: Fix common/ includes.
5284 * symbol.c: Fix common/ includes.
5285 * spu-low.c: Fix common/ includes.
5286 * server.h: Fix common/ includes.
5287 * server.c: Fix common/ includes.
5288 * remote-utils.c: Fix common/ includes.
5289 * regcache.h: Fix common/ includes.
5290 * regcache.c: Fix common/ includes.
5291 * nto-x86-low.c: Fix common/ includes.
5292 * notif.h: Fix common/ includes.
5293 * mem-break.h: Fix common/ includes.
5294 * lynx-low.c: Fix common/ includes.
5295 * lynx-i386-low.c: Fix common/ includes.
5296 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5297 * linux-x86-low.c: Fix common/ includes.
5298 * linux-low.c: Fix common/ includes.
5299 * inferiors.h: Fix common/ includes.
5300 * i387-fp.c: Fix common/ includes.
5301 * hostio.c: Fix common/ includes.
5302 * hostio-errno.c: Fix common/ includes.
5303 * gdbthread.h: Fix common/ includes.
5304 * gdbreplay.c: Fix common/ includes.
5305 * fork-child.c: Fix common/ includes.
5306 * event-loop.c: Fix common/ includes.
5307 * ax.c:
5308 (enum gdb_agent_op): Fix common/ includes.
5309
be6d4f74
TT
53102019-01-21 Tom Tromey <tom@tromey.com>
5311
5312 * tracepoint.c: Fix includes.
5313 * remote-utils.c: Fix includes.
5314 * linux-x86-low.c: Fix includes.
5315
66d91b39
JB
53162019-01-01 Joel Brobecker <brobecker@adacore.com>
5317
5318 * gdbreplay.c (gdbreplay_version): Update copyright year in
5319 version message.
5320 * server.c (gdbserver_version): Likewise.
5321
754e3168
AH
53222018-12-05 Alan Hayward <alan.hayward@arm.com>
5323
5324 * linux-low.c (add_lwp): Switch ordering.
5325
d105de22
TT
53262018-11-29 Tom Tromey <tom@tromey.com>
5327
5328 * win32-low.c (win32_join): Take pid, not process.
5329 * target.h (struct target_ops) <join>: Change argument type.
5330 (join_inferior): Change argument name.
5331 * spu-low.c (spu_join): Take pid, not process.
5332 * server.c (handle_detach): Preserve pid before destroying
5333 process.
5334 * lynx-low.c (lynx_join): Take pid, not process.
5335 * linux-low.c (linux_join): Take pid, not process.
5336
50138245
AH
53372018-11-23 Alan Hayward <alan.hayward@arm.com>
5338
5339 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5340 (aarch64_cannot_fetch_register): Likewise.
5341 (struct linux_target_ops): Update references.
5342
64f57f3d
PFC
53432018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5344
5345 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5346
8d619c01
EBM
53472018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5348
5349 * configure.srv (ipa_ppc_linux_regobj): Add
5350 powerpc-isa207-htm-vsx32l-ipa.o and
5351 powerpc-isa207-htm-vsx64l-ipa.o.
5352 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5353 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5354 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5355 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5356 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5357 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5358 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5359 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5360 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5361 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5362 (init_registers_powerpc_isa207_htm_vsx32l)
5363 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5364 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5365 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5366 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5367 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5368 (ppc_store_tm_ctarregset): New functions.
5369 (ppc_regsets): Add entries for HTM regsets.
5370 (ppc_arch_setup): Set htm in features struct when needed. Set
5371 sizes for the HTM regsets.
5372 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5373 (initialize_low_arch): Call
5374 init_registers_powerpc_isa207_htm_vsx32l and
5375 init_registers_powerpc_isa207_htm_vsx64l.
5376 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5377 PPC_TDESC_ISA207_HTM_VSX.
5378 (initialize_low_tracepoint): Call
5379 init_registers_powerpc_isa207_htm_vsx32l and
5380 init_registers_powerpc_isa207_htm_vsx64l.
5381
232bfb86
EBM
53822018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5383
5384 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5385 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5386 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5387 (ppc_store_pmuregset): New functions.
5388 (ppc_regsets): Add entries for ebb and pmu regsets.
5389 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5390 pmu regsets are available. Set sizes for these regsets.
5391
f2cf6173
EBM
53922018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5393
5394 * configure.srv (ipa_ppc_linux_regobj): Add
5395 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5396 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5397 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5398 rs6000/powerpc-isa207-vsx32l.xml, and
5399 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5400 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5401 <PPC_TDESC_ISA207_VSX>: New enum value.
5402 (init_registers_powerpc_isa207_vsx32l): Declare.
5403 (init_registers_powerpc_isa207_vsx64l): Declare.
5404 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5405 (ppc_store_tarregset): New function.
5406 (ppc_regsets): Add entry for the TAR regset.
5407 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5408 size for the TAR regsets.
5409 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5410 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5411 and init_registers_powerpc_isa207_vsx64l.
5412 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5413 (initialize_low_tracepoint): Call
5414 init_registers_powerpc_isa207_vsx32l and
5415 init_registers_powerpc_isa207_vsx64l.
5416
7ca18ed6
EBM
54172018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5418 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5419
5420 * configure.srv (ipa_ppc_linux_regobj): Add
5421 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5422 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5423 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5424 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5425 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5426 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5427 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5428 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5429 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5430 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5431 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5432 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5433 (ppc_hwcap): Add comment.
5434 (ppc_hwcap2): New global.
5435 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5436 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5437 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5438 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5439 when needed. Set sizes for the the DSCR and PPR regsets.
5440 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5441 (initialize_low_arch): Call
5442 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5443 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5444 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5445 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5446 (initialize_low_tracepoint): Call
5447 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5448 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5449
5c849b22
PFC
54502018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5451
5452 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5453
8ecfd7bd
SDJ
54542018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5455 Simon Marchi <simark@simark.ca>
5456
5457 * acinclude.m4: Include "../selftest.m4".
5458 * configure: Regenerate.
5459 * configure.ac: Use "GDB_AC_SELFTEST".
5460 * configure.srv: Use "$enable_unittests" instead of
5461 "$development" when checking whether unit tests have been
5462 enabled.
5463 * server.c (captured_main): Update message informing that
5464 selftests have been disabled.
5465
96643e35
TT
54662018-10-04 Tom Tromey <tom@tromey.com>
5467
5468 * configure: Rebuild.
5469
da4ae14a
TT
54702018-10-04 Tom Tromey <tom@tromey.com>
5471
5472 * server.c (handle_status): Rename inner "thread".
5473 (process_serial_event): Declare "res" in 'm' case.
5474 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5475 (iterate_over_lwps): Rename inner "thread".
5476 (linux_qxfer_libraries_svr4): Rename inner "len".
5477 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5478
7c619dbd
GB
54792018-10-01 Gary Benson <gbenson@redhat.com>
5480
5481 * gdb_proc_service.h: Moved common code to
5482 common/gdb_proc_service.h.
5483
3795e814
GB
54842018-10-01 Gary Benson <gbenson@redhat.com>
5485
5486 * gdb_proc_service.h: Synchronize comments and whitespace with
5487 GDB's version of this file.
5488
49b036f1
TT
54892018-09-25 Tom Tromey <tom@tromey.com>
5490
5491 * configure: Rebuild.
5492 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5493
8ff03f0b
SM
54942018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5495
5496 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5497 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5498 ($(IPA_LIB)): Sort IPA_OBJS.
5499
a1cd91dc
SM
55002018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5501
5502 * Makefile.in: Remove references to $(ADD_DEPS).
5503
752312ba
TT
55042018-09-16 Tom Tromey <tom@tromey.com>
5505
5506 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5507 variables.
5508 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5509 variables.
5510
f1628857
TT
55112018-09-05 Tom Tromey <tom@tromey.com>
5512
5513 * configure: Rebuild.
5514
ad202fcc
SM
55152018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5516
5517 PR build/23399
5518 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5519
d3d8724a
TT
55202018-08-27 Tom Tromey <tom@tromey.com>
5521
5522 PR build/23087:
5523 * configure: Rebuild.
5524
b4f183d2
TT
55252018-08-27 Tom Tromey <tom@tromey.com>
5526
5527 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5528 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5529 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5530 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5531 (s390x_emit_stack_adjust): Add casts to unsigned char.
5532
4e2aa472
SM
55332018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5534
5535 PR gdb/23374
5536 PR gdb/23375
5537 * server.h (struct client_state) <disable_randomization>:
5538 Initialize to 1.
5539
cf4088a9
SM
55402018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5541
5542 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5543 variable.
5544 (mips_supply_ptrace_register): Likewise.
5545
a0de763e
TT
55462018-07-22 Tom Tromey <tom@tromey.com>
5547
5548 * configure: Rebuild.
5549
b0a7723d
TT
55502018-07-22 Tom Tromey <tom@tromey.com>
5551
5552 * win32-low.c (win32_create_inferior): Remove unused variables.
5553 * gdbreplay.c (remote_open): Remove unused variable.
5554 * remote-utils.c (remote_prepare): Remove unused variable.
5555 * x86-tdesc.h (X86_TDESC_H): Define.
5556 (amd64_expedite_regs): Define conditionally.
5557 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5558 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5559 * remote-utils.c (readchar): Remove unused variable.
5560
a780ef4f
PA
55612018-07-13 Pedro Alves <palves@redhat.com>
5562
5563 * linux-low.c (linux_kill): Change parameter to process_info
5564 pointer instead of pid. Adjust.
5565 * lynx-low.c (lynx_kill): Likewise.
5566 * nto-low.c (nto_kill): Likewise.
5567 * spu-low.c (spu_kill): Likewise.
5568 * win32-low.c (win32_kill): Likewise.
5569 * server.c (handle_v_kill, kill_inferior_callback)
5570 (detach_or_kill_for_exit): Adjust.
5571 * target.c (kill_inferior): Change parameter to process_info
5572 pointer instead of pid. Adjust.
5573 * target.h (struct target_ops) <kill>: Change parameter to
5574 process_info pointer instead of pid. Adjust all implementations
5575 and callers.
5576 (kill_inferior): Likewise.
5577
ef2ddb33
PA
55782018-07-13 Pedro Alves <palves@redhat.com>
5579
5580 * linux-low.c (linux_detach, linux_join): Change parameter to
5581 process_info pointer instead of pid. Adjust.
5582 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5583 * nto-low.c (nto_detach): Likewise.
5584 * spu-low.c (spu_detach, spu_join): Likewise.
5585 * win32-low.c (win32_detach, win32_join): Likewise.
5586 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5587 * target.h (struct target_ops) <detach, join>: Change parameter to
5588 process_info pointer instead of pid. Adjust all implementations
5589 and callers.
5590 (detach_inferior, join_inferior): Rename 'pid' parameter to
5591 'proc'.
5592
c7ab0aef
SDJ
55932018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5594 Jan Kratochvil <jan.kratochvil@redhat.com>
5595 Paul Fertser <fercerpav@gmail.com>
5596 Tsutomu Seki <sekiriki@gmail.com>
5597
5598 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5599 (OBS): Add 'common/netstuff.o'.
5600 (GDBREPLAY_OBS): Likewise.
5601 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5602 (remote_open): Implement support for IPv6
5603 connections.
5604 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5605 and 'wspiapi.h'.
5606 (handle_accept_event): Accept connections from IPv6 sources.
5607 (remote_prepare): Handle IPv6-style hostnames; implement
5608 support for IPv6 connections.
5609 (remote_open): Implement support for printing connections from
5610 IPv6 sources.
5611
31445d10
PA
56122018-07-11 Pedro Alves <palves@redhat.com>
5613
5614 PR gdb/23377
5615 * mem-break.c (any_persistent_commands): Add process_info
5616 parameter and use it instead of relying on the current process.
5617 Change return type to bool.
5618 * mem-break.h (any_persistent_commands): Add process_info
5619 parameter and change return type to bool.
5620 * server.c (handle_detach): Remove require_running_or_return call.
5621 Look up the process_info for the process we're about to detach.
5622 If not found, return back error to GDB. Adjust
5623 any_persistent_commands call to pass down a process pointer.
5624
cb197132
PA
56252018-07-11 Pedro Alves <palves@redhat.com>
5626
5627 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5628 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5629 instead of collect_register_by_name.
5630 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5631 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5632
1b919490
VB
56332018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5634 Pedro Alves <palves@redhat.com>
5635
5636 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5637
d7e15655
TT
56382018-07-03 Tom Tromey <tom@tromey.com>
5639
5640 * linux-low.c: Update.
5641 * lynx-low.c: Update.
5642 * mem-break.c: Update.
5643 * nto-low.c: Update.
5644 * remote-utils.c: Update.
5645 * server.c: Update.
5646 * spu-low.c: Update.
5647 * target.c: Update.
5648 * win32-low.c: Update.
5649
26a57c92
TT
56502018-07-03 Tom Tromey <tom@tromey.com>
5651
5652 * server.c: Update.
5653
0e998d96
TT
56542018-07-03 Tom Tromey <tom@tromey.com>
5655
5656 * linux-low.c: Update.
5657
cc6bcb54
TT
56582018-07-03 Tom Tromey <tom@tromey.com>
5659
5660 * target.c: Update.
5661
e38504b3
TT
56622018-07-03 Tom Tromey <tom@tromey.com>
5663
5664 * linux-low.c: Update.
5665 * linux-mips-low.c: Update.
5666 * lynx-low.c: Update.
5667 * nto-low.c: Update.
5668 * remote-utils.c: Update.
5669 * server.c: Update.
5670 * spu-low.c: Update.
5671 * target.c: Update.
5672 * thread-db.c: Update.
5673
e99b03dc
TT
56742018-07-03 Tom Tromey <tom@tromey.com>
5675
5676 * linux-low.c: Update.
5677 * linux-mips-low.c: Update.
5678 * lynx-low.c: Update.
5679 * mem-break.c: Update.
5680 * nto-low.c: Update.
5681 * remote-utils.c: Update.
5682 * server.c: Update.
5683 * spu-low.c: Update.
5684 * target.c: Update.
5685 * tracepoint.c: Update.
5686
f2907e49
TT
56872018-07-03 Tom Tromey <tom@tromey.com>
5688
5689 * linux-low.c: Update.
5690 * linux-ppc-low.c: Update.
5691 * linux-x86-low.c: Update.
5692 * proc-service.c: Update.
5693 * server.c: Update.
5694 * spu-low.c: Update.
5695 * thread-db.c: Update.
5696 * win32-low.c: Update.
5697
fd79271b
TT
56982018-07-03 Tom Tromey <tom@tromey.com>
5699
5700 * linux-low.c: Update.
5701 * lynx-low.c: Update.
5702 * nto-low.c: Update.
5703 * remote-utils.c: Update.
5704 * spu-low.c: Update.
5705 * thread-db.c: Update.
5706 * win32-low.c: Update.
5707
c0867626
SDJ
57082018-06-29 Joel Brobecker <brobecker@adacore.com>
5709
5710 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5711 parameter in call to 'amd64_create_target_description'.
5712
2512d7ef
JK
57132018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5714
5715 * x86-tdesc.h: Remove executable permission flag.
5716
d0ac1c44
SM
57172018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5718
5719 * configure.ac: Remove AC_PREREQ, add missing quoting.
5720 * configure: Re-generate.
5721 * config.in: Re-generate.
5722 * aclocal.m4: Re-generate.
5723
c4eb05ff
SM
57242018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5725
5726 * tracepoint.h (current_traceframe): Remove declaration.
5727
02895270
AH
57282018-06-18 Alan Hayward <alan.hayward@arm.com>
5729
5730 * linux-aarch64-low.c (is_sve_tdesc): New function.
5731 (aarch64_sve_regs_copy_to_regcache): Likewise.
5732 (aarch64_sve_regs_copy_from_regcache): Likewise.
5733 (aarch64_regs_info): Add SVE checks.
5734 (initialize_low_arch): Initialize SVE.
5735
e9902bfc
AH
57362018-06-18 Alan Hayward <alan.hayward@arm.com>
5737
5738 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5739
fefa175e
AH
57402018-06-11 Alan Hayward <alan.hayward@arm.com>
5741
5742 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5743 (initialize_low_tracepoint): Likewise
5744 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5745 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5746 param.
5747 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5748 checks.
5749 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5750
b91ad3ff
AH
57512018-06-11 Alan Hayward <alan.hayward@arm.com>
5752
5753 * server.h (PBUFSIZ): Increase size
5754
f868386e
AH
57552018-06-11 Alan Hayward <alan.hayward@arm.com>
5756
5757 * regcache.c (regcache::raw_compare): New function.
5758 * regcache.h (regcache::raw_compare): New declaration.
5759
9c861883
AH
57602018-06-11 Alan Hayward <alan.hayward@arm.com>
5761
5762 * regcache.c (new_register_cache): Use new.
5763 (free_register_cache): Use delete.
5764 (register_data): Use const.
5765 (supply_register): Move body inside regcache.
5766 (regcache::raw_supply): New override function.
5767 (collect_register): Move body inside regcache.
5768 (regcache::raw_collect): New override function.
5769 (regcache::get_register_status): New override function.
5770 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5771
40591844
TT
57722018-06-09 Tom Tromey <tom@tromey.com>
5773
5774 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5775 declare queue.
5776 (event_queue): Use std::queue.
5777 (gdb_event_xfree): Remove.
5778 (initialize_event_loop, process_event, wait_for_event): Update.
5779
6341380d
SC
57802018-06-08 Stan Cox <scox@redhat.com>
5781
5782 * win32-low.c (win32_create_inferior): last_ptid and last_status
5783 moved to client_state.
5784
03349c93
PA
57852018-06-08 Pedro Alves <palves@redhat.com>
5786
5787 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5788 common/common-exceptions.o, common/common-utils.o,
5789 common/errors.o, common/print-utils.o and utils.o.
5790 * gdbreplay.c: Include "common-defs.h" instead of the two
5791 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5792 string.h or alloca.h.
5793 (perror_with_name): Delete.
5794 (remote_open): Use xstrdup instead of strdup.
5795 (main): Rename to ...
5796 (captured_main): ... this.
5797 (main): New.
5798
8dcc53b3
TT
57992018-06-08 Tom Tromey <tom@tromey.com>
5800
5801 * linux-low.c (linux_low_read_btrace): Update.
5802
c12a5089
SC
58032018-06-04 Stan Cox <scox@redhat.com>
5804
5805 * server.h (struct client_state): New.
5806 * server.c (cont_thread, general_thread, multi_process)
5807 (report_fork_events, report_vfork_events, report_exec_events)
5808 (report_thread_events, swbreak_feature, hwbreak_feature)
5809 (vCont_supported, disable_randomization, pass_signals)
5810 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5811 Moved to client_state.
5812 * remote-utils.c (remote_debug, noack_mode)
5813 (transport_is_reliable): Moved to client_state.
5814 * tracepoint.c (current_traceframe): Moved to client_state.
5815
5816 Update all callers.
5817 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5818 linux-low.c, remote-utils.h, target.c: Use client_state.
5819
122394f1
AH
58202018-05-31 Alan Hayward <alan.hayward@arm.com>
5821
5822 * configure.srv: Add new c/h file.
5823
95228a0d
AH
58242018-05-31 Alan Hayward <alan.hayward@arm.com>
5825
5826 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5827 null VQ.
5828
d8dab6c3
MR
58292018-05-25 Maciej W. Rozycki <macro@mips.com>
5830
5831 * gdb.arch/mips-fpregset-core.exp: New test.
5832 * gdb.arch/mips-fpregset-core.c: New test source.
5833
81e25b7c
EK
58342018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5835
5836 PR server/23198
5837 * hostio.c (require_int): Do not report overflow for integers
5838 between 0xfffffff and 0x7fffffff.
5839
7e947ad3
MR
58402018-05-22 Maciej W. Rozycki <macro@mips.com>
5841
5842 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5843 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5844 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5845 functions.
5846 (the_low_target): Wire them.
5847
1d75a658
PFC
58482018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5849
5850 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5851 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5852 mode. Call collect_register_by_name with vscr using
5853 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5854 (ppc_store_vrregset): Add and set vscr_offset variable as in
5855 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5856 vscr_offset.
5857
d078308a
PFC
58582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5859
5860 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5861 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5862 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5863
7273b5fc
PFC
58642018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5865
5866 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5867 (ppc_store_vsxregset): Likewise.
5868 (ppc_fill_vrregset): Likewise.
5869 (ppc_store_vrregset): Likewise.
5870 (ppc_fill_evrregset): Likewise.
5871 (ppc_store_evrregset): Likewise.
5872 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5873 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5874 needed.
5875
2e077f5e
PFC
58762018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5877
5878 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5879 wordsize of the inferior. Call ppc_linux_target_wordsize.
5880
bd64614e
PFC
58812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5882
5883 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5884 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5885 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5886 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5887 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5888 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5889 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5890 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5891 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5892 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5893 (tdesc_powerpc_e500l): Remove.
5894 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5895 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5896 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5897 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5898 linux-ppc-tdesc.h.
5899 (ppc_arch_setup): Remove target description matching code. Fill a
5900 ppc_linux_features struct and call ppc_linux_match_description
5901 with it.
5902
75d74cca
MR
59032018-05-22 Maciej W. Rozycki <macro@mips.com>
5904
5905 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5906 width of the requested register exceeds the width of the
5907 `ptrace' data type.
5908 (mips_cannot_store_register): Likewise.
5909
e4439e43
MR
59102018-05-21 Maciej W. Rozycki <macro@mips.com>
5911
5912 * linux-mips-low.c (mips_fetch_register): New function. Update
5913 preceding comment.
5914 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5915 (the_low_target): Wire `mips_fetch_register'.
5916
55271bf9
JB
59172018-05-10 Joel Brobecker <brobecker@adacore.com>
5918
5919 * lynx-i386-low.c (LYNXOS_178): New macro.
5920 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5921 the layout on LynxOS-178.
5922 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5923 handle floating point registers that are not supported by
5924 LynxOS-178.
5925
1a34f210
TT
59262018-05-10 Tom Tromey <tom@tromey.com>
5927
5928 * configure: Rebuild.
5929
190852c8
JB
59302018-05-10 Joel Brobecker <brobecker@adacore.com>
5931
5932 PR server/23158:
5933 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5934 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5935 Use it to set the expedite_regs field in the given tdesc.
5936 * x86-tdesc.h: New file.
5937 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5938 Adjust following the addition of the new expedite_regs parameter
5939 to init_target_desc.
5940 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5941 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5942 (i386_linux_read_description, amd64_linux_read_description):
5943 Adjust following the addition of the new expedite_regs parameter
5944 to init_target_desc.
5945 * lynx-i386-low.c: #include "x86-tdesc.h".
5946 (lynx_i386_arch_setup): Adjust following the addition of the new
5947 expedite_regs parameter to init_target_desc.
5948 * nto-x86-low.c: #include "x86-tdesc.h".
5949 (nto_x86_arch_setup): Adjust following the addition of the new
5950 expedite_regs parameter to init_target_desc.
5951 * win32-i386-low.c: #include "x86-tdesc.h".
5952 (i386_arch_setup): Adjust following the addition of the new
5953 expedite_regs parameter to init_target_desc.
5954
7dbac825
JB
59552018-05-10 Joel Brobecker <brobecker@adacore.com>
5956
5957 PR server/23158:
5958 * win32-low.c (win32_create_inferior): Add call to my_wait
5959 setting last_status global.
5960
906994d9
JB
59612018-05-10 Joel Brobecker <brobecker@adacore.com>
5962
5963 PR server/23158:
5964 * win32-low.c (create_process): Only call gdb_tilde_expand if
5965 inferior_cwd is not NULL.
5966
8ee22052
AB
59672018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5968
5969 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5970 registers to the cache if their values have changed.
5971 (i387_xsave_to_cache): Provide default values for x87 control
5972 registers when these features are available, but disabled.
5973 * regcache.c (supply_register_by_name_zeroed): New function.
5974 * regcache.h (supply_register_by_name_zeroed): Declare new
5975 function.
5976
aff689d3
TT
59772018-05-07 Tom Tromey <tom@tromey.com>
5978
5979 * configure: Rebuild.
5980
85e26832
TT
59812018-05-04 Tom Tromey <tom@tromey.com>
5982
5983 * configure: Rebuild.
5984
a3b60e45
JK
59852018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5986 Pedro Alves <palves@redhat.com>
5987
5988 * linux-aarch64-low.c (aarch64_stopped_data_address):
5989 Likewise.
5990
632e107b
TT
59912018-04-27 Tom Tromey <tom@tromey.com>
5992
5993 * configure: Rebuild.
5994
458412c3
TT
59952018-04-23 Tom Tromey <tom@tromey.com>
5996
5997 * configure: Rebuild.
5998
f31c089e
SM
59992018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6000
6001 * Makefile.in (depcomp): Add "..".
6002 (all_deps_files): New and use it.
6003
b319b098
AH
60042018-04-18 Alan Hayward <alan.hayward@arm.com>
6005
6006 * configure.srv (aarch64*-*-linux*): Don't include xml.
6007 (i[34567]86-*-cygwin*): Likewise.
6008 (i[34567]86-*-linux*): Likewise.
6009 (i[34567]86-*-lynxos*): Likewise.
6010 (i[34567]86-*-mingw32ce*): Likewise.
6011 (i[34567]86-*-mingw*): Likewise.
6012 (i[34567]86-*-nto*): Likewise.
6013 (tic6x-*-uclinux): Likewise.
6014 (x86_64-*-linux*): Likewise.
6015 (x86_64-*-mingw*): Likewise.
6016 (x86_64-*-cygwin*): Likewise.
6017
3b74854b
AH
60182018-04-18 Alan Hayward <alan.hayward@arm.com>
6019
6020 * tdesc.c: Remove xml parameter.
6021
e98577a9
AH
60222018-04-18 Alan Hayward <alan.hayward@arm.com>
6023
6024 * server.c (get_features_xml): Remove cast.
6025 * tdesc.c (void target_desc::accept): Fill in function.
6026 (tdesc_get_features_xml): Remove old xml creation.
6027 (print_xml_feature::visit_pre): Add xml vistor.
6028 * tdesc.h (struct target_desc): Make xmltarget mutable.
6029 (tdesc_get_features_xml): Remove declaration.
6030
d278f585
AH
60312018-04-18 Alan Hayward <alan.hayward@arm.com>
6032
6033 * tdesc.c (tdesc_architecture_name): Add new function.
6034 (tdesc_osabi_name): Likewise.
6035 (tdesc_get_features_xml): Use new functions.
6036
eee8a18d
AH
60372018-04-18 Alan Hayward <alan.hayward@arm.com>
6038
6039 * tdesc.c (tdesc_create_flags): Remove.
6040 (tdesc_add_flag): Likewise.
6041 (tdesc_named_type): Likewise.
6042 (tdesc_create_union): Likewise.
6043 (tdesc_create_struct): Likewise.
6044 (tdesc_create_vector): Likewise.
6045 (tdesc_add_bitfield): Likewise.
6046 (tdesc_add_field): Likewise.
6047 (tdesc_set_struct_size): Likewise.
6048
82ec9bc7
AH
60492018-04-18 Alan Hayward <alan.hayward@arm.com>
6050
6051 * tdesc.c (~target_desc): Remove implictly deleted items.
6052 (init_target_desc): Iterate all features.
6053 (tdesc_get_features_xml): Use vector.
6054 (tdesc_create_feature): Create feature.
6055 * tdesc.h (tdesc_feature) Remove
6056 (target_desc): Add features.
6057
ea3e7d71
AH
60582018-04-18 Alan Hayward <alan.hayward@arm.com>
6059
6060 * Makefile.in: Add common/tdesc.c
6061 * tdesc.c (init_target_desc): init all reg_defs from register
6062 vector.
6063 (tdesc_create_reg): Create tdesc_reg.
6064 * tdesc.h (tdesc_feature): Add register vector.
6065
17d08cd4
SM
60662018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6067
6068 * tdesc.h (struct target_desc) <features>: Change type to
6069 std::vector<std::string>.
6070 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6071 changes.
6072 (tdesc_get_features_xml): Likewise.
6073 (tdesc_create_feature): Likewise.
6074
5cd3e386
AH
60752018-03-26 Alan Hayward <alan.hayward@arm.com>
6076
6077 * regcache.c (find_register_by_number): Return a ref.
6078 (find_regno): Use references.
6079 (register_size): Likewise.
6080 (register_data): Likewise.
6081 * tdesc.c (target_desc::~target_desc): Remove free calls.
6082 (target_desc::operator==): Use std::vector compare.
6083 (init_target_desc): Use reference.
6084 (tdesc_create_reg): Use reg constructors.
6085 * tdesc.h (struct target_desc): Replace pointer with object.
6086
dff7492c
AH
60872018-03-23 Alan Hayward <alan.hayward@arm.com>
6088
6089 * regcache.c (find_register_by_number): Make static.
6090 (find_regno): Use find_register_by_number
6091 * regcache.h (struct reg): Remove declaration.
6092
d80e5242
AH
60932018-03-23 Alan Hayward <alan.hayward@arm.com>
6094
6095 * tdesc.c (target_desc::~target_desc): Move to here.
6096 (target_desc::operator==): Likewise.
6097 * tdesc.h (target_desc::~target_desc): Move from here.
6098 (target_desc::operator==): Likewise.
6099
f69c5afb
AA
61002018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6101
6102 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6103
ce29f843
AA
61042018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6105
6106 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6107 S390_TDESC_GS.
6108 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6109 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6110 and init_registers_s390_gs_linux64.
6111
c49bd90b
AA
61122018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6113
6114 * linux-s390-low.c (s390_fill_gs): Remove function.
6115 (s390_fill_gsbc): Remove function.
6116 (s390_regsets): Set fill functions for the guarded storage regsets
6117 to NULL.
6118
7edb9bd3
AA
61192018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6120
6121 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6122 the word size. Add comment.
6123 (s390_get_wordsize): New function.
6124 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6125 pswm with it. Instead, use s390_get_wordsize to determine the
6126 word size first and derive the correct tdesc from that directly.
6127
39be3c7e
SM
61282018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6129
6130 * Makefile.in: Include silent-rules.mk.
6131 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6132 (COMPILE): Add ECHO_CXX.
6133 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6134 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6135 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6136 (version-generated.c): Add ECHO_GEN.
6137 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6138 (IPAGENT_COMPILE): Add ECHO_CXX.
6139 (%-generated.c): Add ECHO_REGDAT.
6140
3ae9ce5d
TT
61412018-03-14 Tom Tromey <tom@tromey.com>
6142
6143 PR cli/14977:
6144 * ax.c (ax_printf): Special case for NULL.
6145
e6a58aa8
SM
61462018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6147
6148 * linux-low.c (linux_qxfer_libraries_svr4): Use
6149 xml_escape_text_append.
6150
f6e8a41e
SM
61512018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6152
6153 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6154
b9671caf
SM
61552018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6156
6157 * server.c (handle_general_set): Remove unnecessary xstrdup.
6158
e80aaf61
SM
61592018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6160
6161 * server.c (parse_debug_format_options): Adjust to
6162 delim_string_to_char_ptr_vec changes.
6163 * thread-db.c (thread_db_load_search): Adjust to
6164 dirnames_to_char_ptr_vec changes.
6165
b1223e78
MM
61662018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6167
6168 * target.h (target_enable_btrace, target_disable_btrace)
6169 (target_read_btrace, target_read_btrace_conf): Turn macro into
6170 inline function. Throw error if target method is not defined.
6171 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6172 check for btrace target method. Be prepared to handle exceptions
6173 from btrace target methods.
6174
81561546
SDJ
61752018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6176
6177 * server.c (captured_main): Change order of error message printed
6178 when the current working directory cannot be found.
6179
25e3c82c
SDJ
61802018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6181
6182 * server.c: Include "filenames.h" and "pathstuff.h".
6183 (program_name): Delete variable.
6184 (program_path): New anonymous class.
6185 (get_exec_wrapper): Use "program_path" instead of
6186 "program_name".
6187 (handle_v_run): Likewise.
6188 (captured_main): Likewise.
6189 (process_serial_event): Likewise.
6190
b4987c95
SDJ
61912018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6192
6193 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6194 (OBJS): Add "pathstuff.o".
6195 * server.c (current_directory): New global variable.
6196 (captured_main): Initialize "current_directory".
6197
f46cd62a
AH
61982018-02-26 Alan Hayward <alan.hayward@arm.com>
6199
6200 * tdesc.c: Use common/tdesc.h.
6201 * tdesc.h: Likewise.
6202
a543c5ca
AH
62032018-02-20 Alan Hayward <alan.hayward@arm.com>
6204 Simon Marchi <simon.marchi@ericsson.com>
6205
6206 * Makefile.in: Switch order of make rules.
6207
b5884fa7
AH
62082018-02-19 Alan Hayward <alan.hayward@arm.com>
6209
6210 * Makefile.in: Add common directory in build.
6211 * configure.ac: Add common reference.
6212 * configure: Regenerate.
6213
de6242d3
MM
62142018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6215
6216 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6217 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6218 * spu-low.c (spu_target_ops): Likewise.
6219 * win32-low.c (win32_target_ops): Likewise.
6220 * server.c (supported_btrace_packets): Report packets unconditionally.
6221 * target.h (target_ops) <supports_btrace>: Remove.
6222 (target_supports_btrace): Remove.
6223
9ee23a85
MM
62242018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6225
6226 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6227 (handle_btrace_disable): Change return type to void. Use exceptions
6228 to report errors.
6229 (handle_btrace_general_set): Catch exception and copy message to
6230 return message.
6231
8ce47547
TT
62322018-02-08 Tom Tromey <tom@tromey.com>
6233
6234 * linux-low.c (install_software_single_step_breakpoints): Use
6235 make_scoped_restore.
6236 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6237 (do_restore_current_thread_cleanup): Remove.
6238 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6239 declare.
6240
45dd3607
TT
62412018-02-08 Tom Tromey <tom@tromey.com>
6242
6243 * mem-break.c (set_raw_breakpoint_at): Use
6244 gdb::unique_xmalloc_ptr.
6245
e671cd59
PA
62462018-01-30 Pedro Alves <palves@redhat.com>
6247
6248 PR gdb/13211
6249 * target.c (target_terminal::terminal_state): Rename to ...
6250 (target_terminal::m_terminal_state): ... this.
6251
a0aad537
JC
62522018-01-19 James Clarke <jrtc27@jrtc27.com>
6253
6254 * linux-low.c (handle_extended_wait): Surround call to
6255 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6256
4d9b86e1
SM
62572018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6258
6259 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6260 linux_ptrace_attach_fail_reason_string now returning an
6261 std::string.
6262 (linux_attach): Likewise.
6263 * thread-db.c (attach_thread): Likewise.
6264
f517c180
EA
62652018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6266
6267 PR gdb/21559
6268 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6269 checking for fs_base/gs_base fields in struct user_regs_struct.
6270 * configure: Regenerate.
6271
9a70f35c
YQ
62722018-01-16 Yao Qi <yao.qi@linaro.org>
6273
6274 PR gdb/18749
6275 * linux-low.c (fetch_register): Call supply_register instead of
6276 error.
6277
605fd3c6
YQ
62782018-01-08 Yao Qi <yao.qi@linaro.org>
6279 Simon Marchi <simon.marchi@ericsson.com>
6280
6281 * Makefile.in (OBS): Remove selftest.o.
6282 * configure.ac: Set srv_selftest_objs if $development is true.
6283 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6284 * configure: Re-generated.
6285 * server.c (captured_main): Wrap variable selftest_filter with
6286 GDB_SELF_TEST.
6287
2cc05030
SM
62882018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6289
6290 * server.c (parse_debug_format_options): Return std::string.
6291 (handle_monitor_command, captured_main): Adjust.
6292
e379cee6
PA
62932018-01-05 Pedro Alves <palves@redhat.com>
6294
6295 PR gdb/18653
6296 * server.c (captured_main): Pass quiet=false to
6297 save_original_signals_state.
6298
82e1e79a
JB
62992018-01-01 Joel Brobecker <brobecker@adacore.com>
6300
6301 * gdbreplay.c (gdbreplay_version): Update copyright year in
6302 version message.
6303 * server.c (gdbserver_version): Likewise.
6304
8e481c3b
TT
63052017-12-08 Tom Tromey <tom@tromey.com>
6306
6307 * ax.c (ax_printf): Update.
6308
a8806230
YQ
63092017-12-07 Yao Qi <yao.qi@linaro.org>
6310
6311 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6312 aarch64_linux_read_description.
6313 * linux-amd64-ipa.c (idx2mask): New array.
6314 (get_ipa_tdesc): Move idx2mask out.
6315 (initialize_low_tracepoint): Initialize target descriptions.
6316 * linux-i386-ipa.c (idx2mask): New array.
6317 (get_ipa_tdesc): Move idx2mask out.
6318 (initialize_low_tracepoint): Initialize target descriptions.
6319
d4a0e8b5
SM
63202017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6321
6322 * tdesc.c (struct tdesc_type): Change return type.
6323 (tdesc_add_flag): Change parameter type.
6324 (tdesc_add_bitfield): Likewise.
6325 (tdesc_add_field): Likewise.
6326 (tdesc_set_struct_size): Likewise.
6327
798a7429
SM
63282017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6329
6330 * regcache.c (registers_to_string): Remove unused variable.
6331
c0e15c9b
SM
63322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6333
6334 * inferiors.c (for_each_inferior_with_data): Remove.
6335 * inferiors.h (for_each_inferior_with_data): Remove.
6336 * server.c (handle_qxfer_threads_worker): Change parameter type.
6337 (handle_qxfer_threads_proper): Use for_each_thread.
6338
f0045347
SM
63392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6340
6341 * inferiors.c (for_each_inferior): Remove.
6342 (clear_inferiors): Use for_each_thread.
6343 * inferiors.h (for_each_inferior): Remove.
6344 * linux-low.c (linux_wait_for_event_filtered): Use
6345 for_each_thread.
6346 (linux_stabilize_threads): Likewise.
6347 * regcache.c (regcache_release): Likewise.
6348 * server.c (gdb_wants_all_threads_stopped): Likewise.
6349 (clear_pending_status_callback): Remove.
6350 (handle_status): Use for_each_thread.
6351 (captured_main): Likewise.
6352 * win32-low.c (child_init_thread_list): Likewise.
6353 (win32_clear_inferiors): Likewise.
6354 (fake_breakpoint_event): Likewise.
6355
9521758b
SM
63562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6357
6358 * inferiors.h (find_inferior): Remove.
6359 * inferiors.c (find_inferior): Remove.
6360
8f86d7aa
SM
63612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6362
6363 * linux-low.c (resume_status_pending_p): Update comment.
6364 (need_step_over_p): Update comment.
6365
e2b44075
SM
63662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6367
6368 * linux-low.c (proceed_one_lwp): Return void, change parameter
6369 type.
6370 (unsuspend_and_proceed_one_lwp): Likewise.
6371 (proceed_all_lwps): Use for_each_thread.
6372 (unstop_all_lwps): Likewise.
6373
c80825ff
SM
63742017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6375
6376 * linux-low.c (linux_resume_one_thread): Return void, take
6377 parameter directly.
6378 (linux_resume): Use for_each_thread.
6379
df3e4dbe
SM
63802017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6381
6382 * linux-low.c (send_sigstop_callback): Return void, change
6383 parameter type. Rename to...
6384 (send_sigstop): ... this.
6385 (suspend_and_send_sigstop_callback): Return void, change parameter
6386 type. Rename to...
6387 (suspend_and_send_sigstop): ... this.
6388 (stop_all_lwps): Use for_each_thread.
6389
5a6b0a41
SM
63902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6391
6392 * linux-low.c (lwp_running): Return bool, remove unused
6393 argument.
6394 (linux_stabilize_threads): Use find_thread.
6395
39a64da5
SM
63962017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6397
6398 * linux-low.c (select_singlestep_lwp_callback): Remove.
6399 (count_events_callback): Remove.
6400 (select_event_lwp_callback): Remove.
6401 (select_event_lwp): Use find_thread/for_each_thread.
6402
a1385b7b
SM
64032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6404
6405 * linux-low.c (not_stopped_callback): Return bool, take filter
6406 argument directly.
6407 (linux_wait_for_event_filtered): Use find_thread.
6408 (linux_wait_1): Likewise.
6409
454296a2
SM
64102017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6411
6412 * linux-low.c (same_lwp): Remove.
6413 (find_lwp_pid): Use find_thread.
6414
6b2a85da
SM
64152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6416
6417 * linux-low.c (delete_lwp_callback): Remove.
6418 (linux_mourn): Use for_each_thread.
6419
798a38e8
SM
64202017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6421
6422 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6423 args parameter, don't check for pid.
6424 (linux_detach): Use for_each_thread.
6425
e4eb0dec
SM
64262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6427
6428 * linux-low.c (struct counter): Remove.
6429 (second_thread_of_pid_p): Remove.
6430 (last_thread_of_process_p): Use find_thread.
6431
83e1b6c1
SM
64322017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6433
6434 * inferiors.c (find_inferior_in_random): Remove.
6435 * inferiors.h (find_inferior_in_random): Remove.
6436 * linux-low.c (status_pending_p_callback): Return bool, accept
6437 parameter ptid directly.
6438 (linux_wait_for_event_filtered): Use find_thread_in_random.
6439 (linux_wait_1): Likewise.
6440
8dc7b443
SM
64412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6442
6443 * inferiors.c (find_inferior_id): Remove.
6444 (find_thread_ptid): Move implemention from find_inferior_id to
6445 here.
6446 * inferiors.h (find_inferior_id): Remove.
6447 * server.c (handle_status): Use find_thread_ptid.
6448 (process_serial_event): Likewise.
6449 * thread-db.c (find_one_thread): Likewise.
6450 (thread_db_thread_handle): Likewise.
6451 * win32-low.c (thread_rec): Likewise.
6452 (child_delete_thread): Likewise.
6453 (win32_thread_alive): Likewise.
6454 (get_child_debug_event): Likewise.
6455
da25033c
SM
64562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6457
6458 * linux-mips-low.c (update_watch_registers_callback): Return
6459 void, remove pid_p parameter, don't check for pid.
6460 (mips_insert_point, mips_remove_point): Use for_each_thread.
6461
c91bb56b
SM
64622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6463
6464 * lynx.low (lynx_delete_thread_callback): Remove.
6465 (lynx_mourn): Use for_each_thread.
6466
634a3254
SM
64672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6468
6469 * regcache.c (regcache_invalidate_one): Remove.
6470 (regcache_invalidate_pid): use for_each_thread.
6471
41272101
TT
64722017-11-26 Tom Tromey <tom@tromey.com>
6473
6474 * linux-low.c (linux_create_inferior): Update.
6475
f5291a6f
UW
64762017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6477
6478 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6479
6654d750
AH
64802017-11-24 Alan Hayward <alan.hayward@arm.com>
6481
6482 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6483 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6484 * linux-aarch64-tdesc-selftest.c: New file.
6485 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6486
64872017-11-24 Alan Hayward <alan.hayward@arm.com>
6488
6489 * configure.srv: Add new file.
6490 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6491 * linux-aarch64-tdesc-selftest.c: New file.
6492 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6493
49bdb7ee
AH
64942017-11-24 Alan Hayward <alan.hayward@arm.com>
6495
6496 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6497 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6498 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6499
d6d7ce56
AH
65002017-11-24 Alan Hayward <alan.hayward@arm.com>
6501
6502 * configure.srv: Add new files.
6503 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6504 aarch64_linux_read_description.
6505 * linux-aarch64-low.c (aarch64_linux_read_description):
6506 Merge with aarch64_arch_setup.
6507 (aarch64_arch_setup): Call aarch64_linux_read_description.
6508 * linux-aarch64-tdesc.c: New file.
6509 * linux-aarch64-tdesc.h: New file.
6510
506fe5f4
YQ
65112017-11-24 Yao Qi <yao.qi@linaro.org>
6512
6513 * configure.srv: Set $srv_regobj for tic6x-linux.
6514 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6515 (tic6x_read_description): Move some code to tic6x_arch_setup.
6516 (tic6x_tdesc_test): New function.
6517 (initialize_low_arch): Call selftests::register_test.
6518
29f9a567
YQ
65192017-11-22 Yao Qi <yao.qi@linaro.org>
6520
6521 * remote-utils.c (prepare_resume_reply): Use memcpy.
6522
578290ec
SM
65232017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6524
6525 * linux-low.c (kill_one_lwp_callback): Return void, take
6526 argument directly, don't filter on pid.
6527 (linux_kill): Use for_each_thread.
6528
eca55aec
SM
65292017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6530
6531 * linux-low.c (need_step_over_p): Return bool, remove dummy
6532 argument.
6533 (linux_resume, proceed_all_lwps): Use find_thread.
6534
25c28b4d
SM
65352017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6536
6537 * linux-low.c (resume_status_pending_p): Return bool, remove
6538 flag_p argument.
6539 (linux_resume): Use find_thread.
6540
5fdda392
SM
65412017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6542
6543 * linux-low.c (struct thread_resume_array): Remove.
6544 (linux_set_resume_request): Return void, take arguments
6545 directly.
6546 (linux_resume): Use for_each_thread.
6547
fcb056a5
SM
65482017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6549
6550 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6551 return bool, remove data argument.
6552 (linux_stabilize_threads): Use find_thread.
6553
139720c5
SM
65542017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6555
6556 * linux-low.c (unsuspend_one_lwp): Remove.
6557 (unsuspend_all_lwps): Use for_each_thread, inline code from
6558 unsuspend_one_lwp.
6559
6d1e5673
SM
65602017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6561
6562 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6563 * linux-low.c (struct iterate_over_lwps_args): Remove.
6564 (iterate_over_lwps_filter): Remove.
6565 (iterate_over_lwps): Use find_thread.
6566
bbf550d5
SM
65672017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6568
6569 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6570 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6571 code from reset_lwp_ptrace_options_callback.
6572
00192f77
SM
65732017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6574
6575 * linux-arm-low.c (struct update_registers_data): Remove.
6576 (update_registers_callback): Return void, take arguments
6577 directly, don't check thread's pid.
6578 (arm_insert_point, arm_remove_point): Use for_each_thread.
6579
2bee2b6c
SM
65802017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6581
6582 * win32-low.c (continue_one_thread): Return void, take argument
6583 directly.
6584 (child_continue): Use for_each_thread.
6585
0b360f19
SM
65862017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6587
6588 * win32-i386-low.c (update_debug_registers_callback): Rename
6589 to ...
6590 (update_debug_registers): ... this, return void, remove pid_p arg.
6591 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6592
f27866ba
SM
65932017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6594
6595 * inferiors.h (struct process_info): Add constructor, initialize
6596 fields..
6597 <syscalls_to_catch>: Change type to std::vector<int>.
6598 * inferiors.c (add_process): Allocate process_info with new.
6599 (remove_process): Free process_info with delete.
6600 * linux-low.c (handle_extended_wait): Adjust.
6601 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6602 * server.c (handle_general_set): Adjust.
6603
e849ea89
PA
66042017-11-16 Pedro Alves <palves@redhat.com>
6605
6606 * remote-utils.c (remote_close): Block SIGIO signals instead of
6607 uninstalling the SIGIO handler.
6608
1d0aa65c
AH
66092017-11-16 Alan Hayward <alan.hayward@arm.com>
6610
6611 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6612
3491a34c
YQ
66132017-11-16 Yao Qi <yao.qi@linaro.org>
6614
6615 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6616 (tic6x_store_gregset): Likewise.
6617 (tic6x_usrregs_info): Move it up.
6618
a602f924
AH
66192017-11-15 Alan Hayward <alan.hayward@arm.com>
6620
6621 * Makefile.in: Update arch rules.
6622 * configure.srv: Explicitly mark arch/ files.
6623
5616b6c3
AS
66242017-11-13 Andreas Schwab <schwab@suse.de>
6625
6626 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6627 function.
6628 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6629
d1928160
PA
66302017-11-06 Pedro Alves <palves@redhat.com>
6631
6632 * config.in, configure: Regenerate.
6633
bac608e7
SM
66342017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6635
6636 * target.c (struct thread_search): Remove.
6637 (thread_search_callback): Remove.
6638 (prepare_to_access_memory): Use for_each_thread instead of
6639 find_inferior. Inline code from thread_search_callback.
6640
eaddb425
SM
66412017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6642
6643 * server.c (struct visit_actioned_threads_data): Remove.
6644 (visit_actioned_threads): Change prototype to take arguments
6645 directly.
6646 (resume): Use find_thread instead of find_inferior.
6647
99078d34
SM
66482017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6649
6650 * server.c (queue_stop_reply_callback): Change prototype, return
6651 void.
6652 (find_status_pending_thread_callback): Remove.
6653 (handle_status): Replace find_inferior with find_thread and
6654 for_each_thread.
6655
cc628f3d
AH
66562017-10-25 Alan Hayward <alan.hayward@arm.com>
6657
6658 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6659 with REGNO.
6660 (aarch64_store_gregset): Likewise.
6661 (aarch64_fill_fpregset): Likewise.
6662 (aarch64_store_fpregset): Likewise.
6663
4d3bb80e
SM
66642017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6665
6666 * gdbthread.h (find_thread, for_each_thread): New functions.
6667 * inferiors.c (thread_of_pid): Remove.
6668 (find_any_thread_of_pid): Use find_thread.
6669 * linux-low.c (num_lwps): Use for_each_thread.
6670
7a7cdfa0
YQ
66712017-10-17 Yao Qi <yao.qi@linaro.org>
6672
6673 * Makefile.in: Remove one rule.
6674 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6675
e675d170
YQ
66762017-10-17 Yao Qi <yao.qi@linaro.org>
6677
6678 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6679 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6680
7eb4e0f9
YQ
66812017-10-17 Yao Qi <yao.qi@linaro.org>
6682
6683 * configure.srv: Rename arm.o with arch/arm.o.
6684
60d6cfc9
YQ
66852017-10-17 Yao Qi <yao.qi@linaro.org>
6686
6687 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6688 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6689 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6690 (arch-i386.o, arch-amd64.o): Remove rules.
6691 (arch/%.o): New rule.
6692 Update POSTCOMPILE and COMPILE.pre.
6693 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6694 * configure: Re-generated.
6695 * configure.srv: Replace arch-i386.o with arch/i386.o.
6696 Replace arch-amd64.o with arch/amd64.o.
6697
5bfda255
YQ
66982017-10-16 Yao Qi <yao.qi@linaro.org>
6699
6700 * configure: Regenerated.
6701
9c80ecd6
SM
67022017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6703
6704 * inferiors.h: (struct inferior_list): Remove.
6705 (struct inferior_list_entry); Remove.
6706 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6707 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6708 get_first_inferior): Remove.
6709 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6710 find_inferior_id, find_inferior_in_random): Change signature.
6711 * inferiors.c (all_threads): Change type to
6712 std::list<thread_info *>.
6713 (get_thread): Remove macro.
6714 (find_inferior, find_inferior_id): Change signature, implement
6715 using find_thread.
6716 (find_inferior_in_random): Change signature, implement using
6717 find_thread_in_random.
6718 (for_each_inferior, for_each_inferior_with_data): Change
6719 signature, implement using for_each_thread.
6720 (add_inferior_to_list, remove_inferior): Remove.
6721 (add_thread, get_first_thread, thread_of_pid,
6722 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6723 (get_first_inferior, one_inferior_p, clear_inferior_list):
6724 Remove.
6725 (clear_inferiors, get_thread_process): Update.
6726 * gdbthread.h: Include <list>.
6727 (struct thread_info) <entry>: Remove field.
6728 <id>: New field.
6729 (all_threads): Change type to std::list<thread_info *>.
6730 (get_first_inferior): Add doc.
6731 (find_thread, for_each_thread, find_thread_in_random): New
6732 functions.
6733 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6734 * linux-arm-low.c (update_registers_callback): Update.
6735 * linux-low.c (second_thread_of_pid_p): Update.
6736 (kill_one_lwp_callback, linux_detach_lwp_callback,
6737 delete_lwp_callback, status_pending_p_callback, same_lwp,
6738 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6739 iterate_over_lwps, not_stopped_callback,
6740 resume_stopped_resumed_lwps, count_events_callback,
6741 select_singlestep_lwp_callback, select_event_lwp_callback,
6742 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6743 suspend_and_send_sigstop_callback, wait_for_sigstop,
6744 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6745 lwp_running, linux_set_resume_request, resume_status_pending_p,
6746 need_step_over_p, start_step_over, linux_resume_one_thread,
6747 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6748 reset_lwp_ptrace_options_callback): Update.
6749 * linux-mips-low.c (update_watch_registers_callback): Update.
6750 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6751 Update.
6752 (free_register_cache_thread_one): Remove.
6753 (regcache_release): Update.
6754 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6755 handle_qxfer_threads_worker): Update.
6756 (handle_query): Update, use list iterator.
6757 (visit_actioned_threads, handle_pending_status,
6758 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6759 clear_pending_status_callback, set_pending_status_callback,
6760 find_status_pending_thread_callback, handle_status,
6761 process_serial_event): Update.
6762 * target.c (thread_search_callback): Update.
6763 * thread-db.c (thread_db_get_tls_address): Update.
6764 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6765 Update.
6766 * win32-i386-low.c (update_debug_registers_callback): Update.
6767 * win32-low.c (delete_thread_info, child_delete_thread,
6768 continue_one_thread, suspend_one_thread,
6769 get_child_debug_event): Adjust.
6770
9179355e
SM
67712017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6772
6773 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6774 * inferiors.h: Include <list>.
6775 (struct process_info) <entry>: Remove field.
6776 <pid>: New field.
6777 (pid_of): Change macro to function.
6778 (ptid_of, lwpid_of): Remove macro.
6779 (all_processes): Change type to std::list<process_info *>.
6780 (ALL_PROCESSES): Remove macro.
6781 (for_each_process, find_process): New function.
6782 * inferiors.c (all_processes): Change type to
6783 std::list<process_info *>.
6784 (find_thread_process): Adjust.
6785 (add_process): Likewise.
6786 (remove_process): Likewise.
6787 (find_process_pid): Likewise.
6788 (get_first_process): Likewise.
6789 (started_inferior_callback): Remove.
6790 (have_started_inferiors_p): Adjust.
6791 (attached_inferior_callback): Remove.
6792 (have_attached_inferiors_p): Adjust.
6793 * linux-low.c (check_zombie_leaders): Likewise.
6794 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6795 (x86_linux_update_xmltarget): Adjust.
6796 * server.c (handle_query): Likewise.
6797 (gdb_reattached_process): Remove.
6798 (handle_status): Adjust.
6799 (kill_inferior_callback): Likewise.
6800 (detach_or_kill_inferior): Remove.
6801 (print_started_pid): Likewise.
6802 (print_attached_pid): Likewise.
6803 (detach_or_kill_for_exit): Update.
6804 (process_serial_event): Likewise.
6805 * linux-arm-low.c (arm_new_fork): Likewise.
6806
c9cb8905
SM
68072017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6808
6809 * dll.h: Include <list>.
6810 (struct dll_info): Add constructor.
6811 <entry>: Remove field.
6812 (all_dlls): Change type to std::list<dll_info>.
6813 * dll.c: Include <algorithm>.
6814 (get_dll): Remove macro.
6815 (all_dlls): Change type to std::list<dll_info *>.
6816 (free_one_dll): Remove.
6817 (match_dll): Likewise.
6818 (loaded_dll): Adjust.
6819 (unloaded_dll): Adjust to all_dlls type change, use
6820 std::find_if. Inline code from match_dll.
6821 (clear_dlls): Adjust to all_dlls type change.
6822 * server.c (emit_dll_description): Remove.
6823 (handle_qxfer_libraries): Adjust to all_dlls type change,
6824 integrate emit_dll_description's functionality.
6825
04ec7890
SM
68262017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6827
6828 * linux-low.h (struct linux_target_ops) <delete_process>: New
6829 field.
6830 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6831 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6832 (struct linux_target_ops): Add delete_process callback.
6833 * linux-arm-low.c (arm_delete_process): New.
6834 (struct linux_target_ops): Add delete_process callback.
6835 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6836 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6837 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6838 * linux-mips-low.c (mips_linux_delete_process): New.
6839 (struct linux_target_ops): Add delete_process callback.
6840 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6841 * linux-s390-low.c (struct linux_target_ops): Likewise.
6842 * linux-sh-low.c (struct linux_target_ops): Likewise.
6843 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6844 * linux-tile-low.c (struct linux_target_ops): Likewise.
6845 * linux-x86-low.c (x86_linux_delete_process): New.
6846 (struct linux_target_ops): Add delete_process callback.
6847 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6848
466eecee
SM
68492017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6850
6851 * linux-aarch64-low.c (the_low_target): Add thread delete
6852 callback.
6853 * linux-arm-low.c (arm_delete_thread): New function.
6854 (the_low_target): Add thread delete callback.
6855 * linux-bfin-low.c (the_low_target): Likewise.
6856 * linux-crisv32-low.c (the_low_target): Likewise.
6857 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6858 set.
6859 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6860 field.
6861 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6862 * linux-mips-low.c (mips_linux_delete_thread): New function.
6863 (the_low_target): Add thread delete callback.
6864 * linux-ppc-low.c (the_low_target): Likewise.
6865 * linux-s390-low.c (the_low_target): Likewise.
6866 * linux-sh-low.c (the_low_target): Likewise.
6867 * linux-tic6x-low.c (the_low_target): Likewise.
6868 * linux-tile-low.c (the_low_target): Likewise.
6869 * linux-x86-low.c (the_low_target): Likewise.
6870 * linux-xtensa-low.c (the_low_target): Likewise.
6871
b79f7801
YZ
68722017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6873
6874 * win32-low.c: Include "common-inferior.h".
6875
bc3b087d
SDJ
68762017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6877
6878 * inferiors.c (set_inferior_cwd): New function.
6879 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6880 (handle_query): Inform that QSetWorkingDir is supported.
6881 * win32-low.c (create_process): Pass the inferior's cwd to
6882 CreateProcess.
6883
d092c5a2
SDJ
68842017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6885
6886 * inferiors.c (current_inferior_cwd): New global variable.
6887 (get_inferior_cwd): New function.
6888 * inferiors.h (struct process_info) <cwd>: New field.
6889
7da0a886
SDJ
68902017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6891
6892 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6893 (OBS): Add gdb_tilde_expand.o.
6894
289a6840
SM
68952017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6896
6897 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6898 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6899
256642e8
PA
69002017-09-29 Pedro Alves <palves@redhat.com>
6901
6902 * ax.c (gdb_parse_agent_expr): Constify.
6903 * ax.h (gdb_parse_agent_expr): Constify.
6904 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6905 Constify.
6906 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6907 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6908 * remote-utils.h (read_ptid): Constify.
6909 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6910 (process_point_options, process_serial_event): Constify.
6911 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6912 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6913 (cmd_qtbuffer): Constify.
6914
5b9ca4d4
PA
69152017-09-29 Pedro Alves <palves@redhat.com>
6916
6917 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6918 fails.
6919
94c207e0
PA
69202017-09-29 Pedro Alves <palves@redhat.com>
6921
6922 * linux-low.c (handle_extended_wait): Pass parent thread instead
6923 of process to thread_db_notice_clone.
6924 * linux-low.h (thread_db_notice_clone): Replace parent process
6925 parameter with parent thread parameter.
6926 * thread-db.c (find_one_thread): Add comment.
6927 (thread_db_notice_clone): Replace parent process parameter with
6928 parent thread parameter. Temporarily switch to the parent thread.
6929
75352e28
SDJ
69302017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6931
6932 * gdbthread.h: Include "common-gdbthread.h".
6933 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6934 "if" when validating the ptid.
6935 * remote-utils.c: Include "gdbthread.h".
6936 (prepare_resume_reply): Use "switch_to_thread".
6937 * target.c (done_accessing_memory): Likewise.
6938
ad339634
AA
69392017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6940
6941 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6942 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6943 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6944 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6945 s390x-gs-linux64-ipa.o to ipa_obj.
6946 * linux-s390-low.c (HWCAP_S390_GS): New define.
6947 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6948 New functions.
6949 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6950 (s390_arch_setup): Check for guarded-storage support and choose
6951 appropriate tdesc.
6952 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6953 init_registers_s390x_gs_linux64.
6954 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6955 enum value.
6956 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6957 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6958
cc4d742f
SM
69592017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6960
6961 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6962
f6327dcb
KB
69632017-09-21 Kevin Buettner <kevinb@redhat.com>
6964
6965 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6966 (thread_db_thread_handle): Declare.
6967 * linux-low.c (linux_target_ops): Initialize thread_handle.
6968 * server.c (handle_qxfer_threads_worker): Add support for
6969 "handle" attribute.
6970 * target.h (struct target_ops): Add new function pointer,
6971 thread_handle.
6972 (target_thread_handle): Define.
6973 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6974 field in lwp.
6975 (thread_db_thread_handle): New function.
6976
86299109
KB
69772017-09-21 Kevin Buettner <kevinb@redhat.com>
6978
6979 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6980 * linux-low.h (thread_db_notice_clone): Declare.
6981 * thread-db.c (thread_db_notice_clone): New function.
6982
f557a88a
PA
69832017-09-21 Pedro Alves <palves@redhat.com>
6984
6985 * server.c (gdb_read_memory, handle_status, process_serial_event)
6986 (handle_serial_event, handle_target_event): Adjust to
6987 set_desired_thread prototype change.
6988 * target.c (set_desired_thread): Remove 'use_general' parameter
6989 and adjust.
6990 * target.h (set_desired_thread): Remove 'use_general' parameter.
6991
223ffa71
TT
69922017-09-20 Tom Tromey <tom@tromey.com>
6993
6994 * target.c (target_terminal::terminal_state): Define.
6995 (target_terminal::init): Rename from target_terminal_init.
6996 (target_terminal::inferior): Rename from
6997 target_terminal_inferior.
6998 (target_terminal::ours): Rename from target_terminal_ours.
6999 (target_terminal::ours_for_output, target_terminal::info): New.
7000
04fd3ba9
SM
70012017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7002
7003 * server.c (accumulate_file_name_length): Remove.
7004 (emit_dll_description): Adjust to std::string change.
7005 (handle_qxfer_libraries): Use std::string to hold document.
7006
5e187554
SM
70072017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7008
7009 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7010 return type of xml_escape_text.
7011 * server.c (emit_dll_description): Likewise.
7012
1526853e
SM
70132017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7014
7015 * server.c (captured_main): Accept argument for --selftest.
7016 Update run_tests call.
7017 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7018 when registering selftests.
7019
c4dfafab
SDJ
70202017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7021
7022 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7023 instead of "VEC" for "target_desc.reg_defs".
7024 (regcache_cpy): Likewise.
7025 (registers_to_string): Likewise.
7026 (registers_from_string): Likewise.
7027 (find_regno): Likewise.
7028 (supply_regblock): Likewise.
7029 (regcache_raw_read_unsigned): Likewise.
7030 * tdesc.c (init_target_desc): Likewise.
7031 (tdesc_create_reg): Likewise.
7032 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7033 (struct target_desc) <reg_defs>: Convert to "std::vector".
7034 (target_desc): Do not initialize "reg_defs".
7035 (~target_desc): Update code to use "std::vector" instead of "VEC"
7036 for "target_desc.reg_defs".
7037 (operator==): Likewise.
7038
124aceb4
SM
70392017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7040
7041 * inferiors.h (thread_to_gdb_id): Remove.
7042 * inferiors.c (thread_to_gdb_id): Remove.
7043 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7044 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7045 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7046 Likewise.
7047 * nto-low.c (nto_fetch_registers, nto_store_registers,
7048 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7049
96cde54f
SM
70502017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7051
7052 * inferiors.h (gdb_id_to_thread_id): Remove.
7053 * inferiors.c (gdb_id_to_thread_id): Remove.
7054 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7055 removal. Move pid declaration closer to where it's used.
7056
e8ca139e
SM
70572017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7058
7059 * server.c (handle_detach): New function.
7060 (process_serial_event): Move code out, call handle_detach.
7061
f8a4e119
SM
70622017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7063
7064 * server.c (require_running): Rename to ...
7065 (require_running_or_return): ... this ...
7066 (require_running_or_break): ... and this.
7067 (handle_query, process_serial_event): Adjust.
7068
0eb0a407
SM
70692017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7070
7071 * linux-low.c (linux_set_resume_request): Remove unused
7072 variables.
7073
785922a5
SM
70742017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7075
7076 * server.c (first_thread_of): Remove.
7077 (process_serial_event): Replace usage of first_thread_of with
7078 find_any_thread_of_pid.
7079 * tracepoint.c (same_process_p): Remove.
7080 (gdb_agent_about_to_close): Replace usage of same_process_p with
7081 find_any_thread_of_pid.
7082 * linux-x86-low.c (same_process_callback): Remove.
7083 (x86_arch_setup_process_callback): Replace usage of
7084 same_process_callback with find_any_thread_of_pid.
7085 * thread-db.c (any_thread_of): Remove.
7086 (switch_to_process): Replace usage of any_thread_of with
7087 find_any_thread_of_pid.
7088 * inferiors.c (thread_pid_matches_callback): Remove.
7089 (find_thread_process): Adjust to use find_any_thread_of_pid.
7090
a059f00c
SDJ
70912017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7092
7093 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7094 with "!VEC_empty".
a059f00c 7095
cc397f3a
SDJ
70962017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7097
7098 * linux-low.c (handle_extended_wait): Use
7099 "allocate_target_description" instead of "XNEW".
7100 * linux-x86-low.c (initialize_low_arch): Likewise.
7101
22916b07
YQ
71022017-09-05 Yao Qi <yao.qi@linaro.org>
7103
7104 * configure.srv (srv_i386_regobj): Remove.
7105 (srv_amd64_regobj): Remove.
7106 (srv_regobj): Set it to "" for x86 non-linux targets.
7107 * linux-x86-tdesc.c (i386_linux_read_description):
7108 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7109 (init_registers_i386): Remove the declaration.
7110 (tdesc_i386): Remove the declaration.
7111 (lynx_i386_arch_setup): Call i386_create_target_description.
7112 * nto-x86-low.c: Likewise.
7113 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7114 [!__x86_64__]: include arch/i386.h.
7115 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7116
38602d55
YQ
71172017-09-05 Yao Qi <yao.qi@linaro.org>
7118
7119 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7120 i386/amd64-XXX-linux from it.
7121
44b886ff
YQ
71222017-09-05 Yao Qi <yao.qi@linaro.org>
7123
7124 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7125 false.
7126 (ipa_amd64_linux_regobj): Remove.
7127 (ipa_x32_linux_regobj): Remove.
7128
b4570e4b
YQ
71292017-09-05 Yao Qi <yao.qi@linaro.org>
7130
7131 * Makefile.in (arch-amd64.o): New rule.
7132 * configure.srv: Append arch-amd64.o.
7133 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7134 (get_ipa_tdesc): Call amd64_linux_read_description.
7135 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7136 and init_registers_amd64_XXX.
7137 * linux-x86-low.c (x86_linux_read_description): Call
7138 amd64_linux_read_description.
7139 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7140 (initialize_low_arch): Don't call init_registers_x32_XXX and
7141 init_registers_amd64_XXX.
7142 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7143 and tdesc_amd64_XXX.
7144 [__x86_64__] (amd64_tdesc_test): New function.
7145 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7146 and init_registers_amd64_XXX.
7147 * linux-x86-tdesc.c: Include arch/amd64.h.
7148 (xcr0_to_tdesc_idx): New function.
7149 (i386_linux_read_description): New function.
7150 (amd64_get_ipa_tdesc_idx): New function.
7151 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7152 (amd64_get_ipa_tdesc): Declare.
7153
d1f28ea2
YQ
71542017-09-05 Yao Qi <yao.qi@linaro.org>
7155
7156 * configure.srv (srv_i386_linux_xmlfiles): Remove
7157 i386/i386-XXX-linux.xml from it.
7158
25a93583
YQ
71592017-09-05 Yao Qi <yao.qi@linaro.org>
7160
7161 * configure.srv: Set srv_i386_linux_regobj empty if $development
7162 is false.
7163 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7164 initialize_low_tdesc.
7165 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7166 with #if initialize_low_tdesc.
7167 * linux-x86-tdesc-selftest.c: New file.
7168 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7169
5f035c07
YQ
71702017-09-05 Yao Qi <yao.qi@linaro.org>
7171
7172 * Makefile.in (arch-i386.o): New rule.
7173 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7174 (x86_64-*-linux*): Likewise.
7175 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7176 include arch/i386.h.
7177 (i386_linux_read_description): Remove code and call
7178 i386_create_target_description.
7179 * tdesc.c (allocate_target_description): New function.
7180 * tdesc.h (set_tdesc_architecture): Remove declaration.
7181 (set_tdesc_osabi): Likewise.
7182
0abe8a89
YQ
71832017-09-05 Yao Qi <yao.qi@linaro.org>
7184
7185 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7186 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7187 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7188 .xmltarget.
7189 * server.c (get_features_xml): Call tdesc_get_features_xml.
7190 * tdesc.c (set_tdesc_architecture): New function.
7191 (set_tdesc_osabi): New function.
7192 (tdesc_get_features_xml): New function.
7193 (tdesc_create_feature): Add an argument.
7194 * tdesc.h (struct target_desc) <features>: New field.
7195 <arch, osabi>: New field.
7196 (~target_desc): xfree features, arch, and osabi.
7197 (target_desc::oerator==): Don't compare .xmltarget.
7198 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7199 (set_tdesc_osabi): Likewise.
7200 (tdesc_get_features_xml): Likewise.
7201
0a188386
YQ
72022017-09-05 Yao Qi <yao.qi@linaro.org>
7203
7204 * linux-x86-tdesc.c: Include selftest.h.
7205 (i386_tdesc_test): New function.
7206 (initialize_low_tdesc): Call selftests::register_test.
7207 * tdesc.h: Include regdef.h.
7208 (target_desc): Override operator == and !=.
7209
f49ff000
YQ
72102017-09-05 Yao Qi <yao.qi@linaro.org>
7211
7212 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7213 (ipa_obj): Likewise.
7214 * linux-i386-ipa.c: Include common/x86-xstate.h
7215 (get_ipa_tdesc): Call i386_linux_read_description.
7216 (initialize_low_tracepoint): Don't call init_registers_XXX
7217 functions, call initialize_low_tdesc instead.
7218 * linux-x86-low.c (x86_linux_read_description): Call
7219 i386_linux_read_description.
7220 (initialize_low_arch): Don't call init_registers_i386_XXX
7221 functions, call initialize_low_tdesc.
7222 * linux-x86-tdesc.c: New file.
7223 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7224 (i386_get_ipa_tdesc_idx): Declare.
7225 (i386_get_ipa_tdesc): Declare.
7226 (initialize_low_tdesc): Declare.
7227
2b68ef2f
YQ
72282017-09-05 Yao Qi <yao.qi@linaro.org>
7229
7230 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7231 instead of 0.
7232
f7000548
YQ
72332017-09-05 Yao Qi <yao.qi@linaro.org>
7234
7235 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7236 * regcache.c (get_thread_regcache): Use VEC_length.
7237 (init_register_cache): Likewise.
7238 (regcache_cpy): Likewise.
7239 (registers_to_string): Iterate reg_defs via VEC_iterate.
7240 (find_regno): Likewise.
7241 (find_register_by_number): Use VEC_index.
7242 (register_size): Call find_register_by_number.
7243 (register_data): Call find_register_by_number.
7244 (supply_regblock): Use VEC_length.
7245 (regcache_raw_read_unsigned): Likewise.
7246 * tdesc.c (init_target_desc): Iterate reg_defs via
7247 VEC_iterate.
7248 (default_description): Update initializer.
7249 (copy_target_description): Don't update field num_registers.
7250 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7251 <num_registers>: Remove.
7252
50a421ac
SM
72532017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7254
7255 * Makefile.in (.SECONDARY): Define target.
7256
23fdd69e
SM
72572017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7258
7259 * linux-low.c (linux_wait_1): Adjust.
7260 * server.c (queue_stop_reply_callback): Adjust.
7261
0a2dde4a
SDJ
72622017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7263
7264 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7265 QEnvironmentUnset and QEnvironmentReset packets.
7266 (handle_query): Inform remote that QEnvironmentHexEncoded,
7267 QEnvironmentUnset and QEnvironmentReset are supported.
7268
6afd337d
SM
72692017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7270
7271 * inferiors.h (inferior_target_data): Rename to ...
7272 (thread_target_data): ... this.
7273 (inferior_regcache_data): Rename to ...
7274 (thread_regcache_data): ... this.
7275 (set_inferior_regcache_data): Rename to ...
7276 (set_thread_regcache_data): ... this.
7277 * inferiors.c (inferior_target_data): Rename to ...
7278 (thread_target_data): ... this.
7279 (inferior_regcache_data): Rename to ...
7280 (thread_regcache_data): ... this.
7281 (set_inferior_regcache_data): Rename to ...
7282 (set_thread_regcache_data): ... this.
7283 (free_one_thread): Update.
7284 * linux-low.h (get_thread_lwp): Update.
7285 * regcache.c (get_thread_regcache): Update.
7286 (regcache_invalidate_thread): Update.
7287 (free_register_cache_thread): Update.
7288 * win32-i386-low.c (update_debug_registers_callback): Update.
7289 (win32_get_current_dr): Update.
7290 * win32-low.c (thread_rec): Update.
7291 (delete_thread_info): Update.
7292 (continue_one_thread): Update.
7293 (suspend_one_thread): Update.
7294
a160cc46
SM
72952017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7296
7297 * inferiors.c (set_inferior_target_data): Remove.
7298 * inferiors.h (set_inferior_target_data): Remove.
7299
6d580b63
YQ
73002017-08-18 Yao Qi <yao.qi@linaro.org>
7301
7302 * Makefile.in (OBS): Add selftest.o.
7303 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7304 * configure, config.in: Re-generated.
7305 * server.c: Include common/sefltest.h.
7306 (captured_main): Handle option --selftest.
7307
f5a29eb0
YQ
73082017-08-09 Yao Qi <yao.qi@linaro.org>
7309
7310 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7311 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7312 i386-avx-mpx.o and i386-mmx.o.
7313 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7314 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7315 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7316 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7317 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7318 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7319 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7320 i386/amd64-avx-mpx.xml.
7321
57757c2f
YQ
73222017-08-09 Yao Qi <yao.qi@linaro.org>
7323
7324 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7325 and x32-avx-avx512.o.
7326 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7327 i386/x32-avx-avx512.xml.
7328
229d26fc
SM
73292017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7330
7331 * tracepoint.h (enum class fast_tpoint_collect_result): New
7332 enumeration.
7333 (fast_tracepoint_collecting): Change return type to
7334 fast_tpoint_collect_result.
7335 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7336 * linux-low.h: Include tracepoint.h.
7337 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7338 fast_tpoint_collect_result.
7339 * linux-low.c (handle_tracepoints): Adjust.
7340 (linux_fast_tracepoint_collecting): Change return type to
7341 fast_tpoint_collect_result.
7342 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7343 linux_wait_1, stuck_in_jump_pad_callback,
7344 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7345 proceed_one_lwp): Adjust to type change.
7346
2e1e43e1
YQ
73472017-07-10 Yao Qi <yao.qi@linaro.org>
7348
7349 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7350
adc764e7
YQ
73512017-06-29 Yao Qi <yao.qi@linaro.org>
7352
7353 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7354 Remove.
7355 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7356
a206891a
SM
73572017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7358
7359 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7360
9a6c7d9c
SDJ
73612017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7362
7363 * linux-low.c (linux_create_inferior): Adjust code to access the
7364 environment information via 'gdb_environ' class.
7365 * lynx-low.c (lynx_create_inferior): Likewise.
7366 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7367 (get_environ): Return a pointer to 'our_environ'.
7368 (captured_main): Initialize 'our_environ'.
7369 * server.h (get_environ): Adjust prototype.
7370 * spu-low.c (spu_create_inferior): Adjust code to access the
7371 environment information via 'gdb_environ' class.
7372
ae3e2ccf
SM
73732017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7374
7375 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7376 usage of "register" keyword.
7377
3e019bdc
SM
73782017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7379
7380 * configure: Re-generate.
7381
8465943a
SM
73822017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7383
7384 * configure: Re-generate.
7385
cf0dd6f0
SM
73862017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7387
7388 * Makefile.in (COMPILE.pre): Add "-x c++".
7389
9845682b
SDJ
73902017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7391
7392 * fork-child.c: Conditionally include <signal.h>.
7393
aefd8b33
SDJ
73942017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7395
7396 * server.c (handle_general_set): Handle new packet
7397 "QStartupWithShell".
7398 (handle_query): Add "QStartupWithShell" to the list of supported
7399 packets.
7400 (gdbserver_usage): Add help text explaining the
7401 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7402 options.
7403 (captured_main): Recognize and act upon the presence of the new
7404 CLI options.
7405
2090129c
SDJ
74062017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7407 Pedro Alves <palves@redhat.com>
7408
7409 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7410 * configure: Regenerate.
7411 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7412 "fork-inferior.o".
7413 (i[34567]86-*-lynxos*): Likewise.
7414 (spu*-*-*): Likewise.
7415 * fork-child.c: New file.
7416 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7417 and "environ.h".
7418 (linux_ptrace_fun): New function.
7419 (linux_create_inferior): Adjust function prototype to reflect
7420 change on "target.h". Adjust function code to use
7421 "fork_inferior".
7422 (linux_request_interrupt): Delete "signal_pid".
7423 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7424 (lynx_ptrace_fun): New function.
7425 (lynx_create_inferior): Adjust function prototype to reflect
7426 change on "target.h". Adjust function code to use
7427 "fork_inferior".
7428 * nto-low.c (nto_create_inferior): Adjust function prototype and
7429 code to reflect change on "target.h". Update comments.
7430 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7431 "common-terminal.h" and "environ.h".
7432 (terminal_fd): Moved to fork-child.c.
7433 (old_foreground_pgrp): Likewise.
7434 (restore_old_foreground_pgrp): Likewise.
7435 (last_status): Make it global.
7436 (last_ptid): Likewise.
7437 (our_environ): New variable.
7438 (startup_with_shell): Likewise.
7439 (program_name): Likewise.
7440 (program_argv): Rename to...
7441 (program_args): ...this.
7442 (wrapper_argv): New variable.
7443 (start_inferior): Delete function.
7444 (get_exec_wrapper): New function.
7445 (get_exec_file): Likewise.
7446 (get_environ): Likewise.
7447 (prefork_hook): Likewise.
7448 (post_fork_inferior): Likewise.
7449 (postfork_hook): Likewise.
7450 (postfork_child_hook): Likewise.
7451 (handle_v_run): Update code to deal with arguments coming from the
7452 remote host. Update calls from "start_inferior" to
7453 "create_inferior".
7454 (captured_main): Likewise. Initialize environment variable. Call
7455 "have_job_control".
7456 * server.h (post_fork_inferior): New prototype.
7457 (get_environ): Likewise.
7458 (last_status): Declare.
7459 (last_ptid): Likewise.
7460 (signal_pid): Likewise.
7461 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7462 (spu_ptrace_fun): New function.
7463 (spu_create_inferior): Adjust function prototype to reflect change
7464 on "target.h". Adjust function code to use "fork_inferior".
7465 * target.c (target_terminal_init): New function.
7466 (target_terminal_inferior): Likewise.
7467 (target_terminal_ours): Likewise.
7468 * target.h: Include <vector>.
7469 (struct target_ops) <create_inferior>: Update prototype.
7470 (create_inferior): Update macro.
7471 * utils.c (gdb_flush_out_err): New function.
7472 * win32-low.c (win32_create_inferior): Adjust function prototype
7473 and code to reflect change on "target.h".
7474
043a4934
SDJ
74752017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7476
7477 * inferiors.c (switch_to_thread): New function.
7478
15652511
SDJ
74792017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7480
7481 * Makefile.in (SFILE): Add "common/job-control.c".
7482 (OBS): Add "job-control.o".
7483
21ea5acd
SDJ
74842017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7485
7486 * Makefile: Remove "@host_makefile_frag@".
7487
e13cb306
PA
74882017-05-05 Pedro Alves <palves@redhat.com>
7489
7490 * configure: Regenerate.
7491
c94fee56
SDJ
74922017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7493
7494 * configure: Regenerate.
7495
a0ff9e1a
SM
74962017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7497
7498 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7499 software_single_step change of return type to
7500 std::vector<CORE_ADDR>.
7501 * linux-low.c (install_software_single_step_breakpoints):
7502 Likewise.
7503 * linux-low.h (install_software_single_step_breakpoints):
7504 Likewise.
7505
be628ab8
SDJ
75062017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7507
7508 * remote-utils.c: Include "gdb_termios.h" instead of
7509 "terminal.h".
7510 * terminal.h: Delete file.
7511
7c5ded6a
SDJ
75122017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7513
7514 * server.c: Include <vector>.
7515 <program_argv, wrapper_argv>: Convert to std::vector.
7516 (start_inferior): Rewrite function to use C++.
7517 (handle_v_run): Likewise. Update code that calculates the argv
7518 based on the vRun packet; use C++.
7519 (captured_main): Likewise.
7520
436252de
SM
75212017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7522
7523 * server.c (handle_v_cont): Initialize thread_resume::thread
7524 with null_ptid.
7525
9bf2a700
PA
75262017-04-05 Pedro Alves <palves@redhat.com>
7527
7528 * configure: Regenerate.
7529
a121b7c1
PA
75302017-04-05 Pedro Alves <palves@redhat.com>
7531
7532 * gdbreplay.c (sync_error): Constify.
7533 * linux-x86-low.c (push_opcode): Constify.
7534
21c8a587
PA
75352017-04-05 Pedro Alves <palves@redhat.com>
7536
7537 * win32-low.c (get_child_debug_event)
7538 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7539 Report TARGET_WAITKIND_SPURIOUS instead.
7540
fb32b4f7
PA
75412017-04-05 Pedro Alves <palves@redhat.com>
7542
e79be6e5
SM
7543 * remote-utils.c (remote_prepare, remote_open): Constify.
7544 * remote-utils.h (remote_prepare, remote_open): Constify.
7545 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7546
65dd1e59
SM
75472017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7548
7549 * Makefile.in (clean): Clear .deps.
7550
8fa5b777
SM
75512017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7552
7553 * .gitignore: Remove generated files, replace with wildcard.
7554 * (clean): Replace removal of generated files with wildcard.
7555 (version.c): Replace with...
7556 (version-generated.c): ...this.
7557 (xml-builtin.c): Replace with...
7558 (xml-builtin-generated.c): ...this.
7559 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7560 (%.c: *regformats*): Replace with...
7561 (%-generated.c: *regformats*): ...this.
7562
a12e714b
MF
75632017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7564
7565 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7566 (xtensa_fill_gregset): Call collect_register_by_name for
7567 threadptr register.
7568 (xtensa_store_gregset): Call supply_register_by_name for
7569 threadptr register.
7570
1a09b50a
MF
75712017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7572
7573 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7574 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7575 (xtensa_store_gregset): Call supply_register for all registers in
7576 a0_regnum..a0_regnum + C0_NREGS range.
7577
1a01e7c6
SM
75782017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7579
7580 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7581 (ax-ipa.o: ax.c): Remove.
7582 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7583 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7584 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7585 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7586 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7587
36bc18a8
SM
75882017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7589
7590 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7591 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7592 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7593 (errors-ipa.o: ../common/errors.c): Remove.
7594 (format-ipa.o: ../common/format.c): Remove.
7595 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7596
a8ebe3d5
SM
75972017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7598
7599 * Makefile.in (%-ipa.o: %.c): New rule.
7600 (tracepoint-ipa.o: tracepoint.c): Remove.
7601 (utils-ipa.o: utils.c): Remove.
7602 (remote-utils-ipa.o: remote-utils.c): Remove.
7603 (regcache-ipa.o: regcache.c): Remove.
7604 (i386-linux-ipa.o: i386-linux.c): Remove.
7605 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7606 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7607 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7608 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7609 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7610 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7611 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7612 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7613 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7614 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7615 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7616 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7617 (aarch64-ipa.o: aarch64.c): Remove.
7618 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7619 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7620 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7621 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7622 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7623 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7624 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7625 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7626 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7627 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7628 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7629 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7630 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7631 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7632 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7633 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7634 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7635 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7636 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7637 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7638 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7639 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7640 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7641 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7642 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7643 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7644 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7645 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7646 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7647 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7648 (tdesc-ipa.o: tdesc.c): Remove.
7649 (x32-linux-ipa.o: x32-linux.c): Remove.
7650 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7651 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7652
50cfacb7
SM
76532017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7654
7655 * Makefile.in (%.o: ../arch/%.c): New rule.
7656 (arm.o: ../arch/arm.c): Remove.
7657 (arm-linux.o: ../arch/arm-linux.c): Remove.
7658 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7659 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7660
c5a22423
SM
76612017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7662
7663 * Makefile.in (%.o: ../nat/%.c): New rule.
7664 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7665 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7666 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7667 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7668 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7669 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7670 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7671 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7672 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7673 (linux-personality.o: ../nat/linux-personality.c): Remove.
7674 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7675 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7676 (x86-linux.o: ../nat/x86-linux.c): Remove.
7677 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7678 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7679
6bda016b
SM
76802017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7681
7682 * Makefile.in (%.o: ../common/%.c): New rule.
7683 (signals.o: ../common/signals.c): Remove.
7684 (print-utils.o: ../common/print-utils.c): Remove.
7685 (rsp-low.o: ../common/rsp-low.c): Remove.
7686 (common-utils.o: ../common/common-utils.c): Remove.
7687 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7688 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7689 (vec.o: ../common/vec.c): Remove.
7690 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7691 (xml-utils.o: ../common/xml-utils.c): Remove.
7692 (ptid.o: ../common/ptid.c): Remove.
7693 (buffer.o: ../common/buffer.c): Remove.
7694 (format.o: ../common/format.c): Remove.
7695 (filestuff.o: ../common/filestuff.c): Remove.
7696 (agent.o: ../common/agent.c): Remove.
7697 (errors.o: ../common/errors.c): Remove.
7698 (environ.o: ../common/environ.c): Remove.
7699 (common-debug.o: ../common/common-debug.c): Remove.
7700 (cleanups.o: ../common/cleanups.c): Remove.
7701 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7702 (fileio.o: ../common/fileio.c): Remove.
7703 (common-regcache.o: ../common/common-regcache.c): Remove.
7704 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7705 (new-op.o: ../common/new-op.c): Remove.
7706 (btrace-common.o: ../common/btrace-common.c): Remove.
7707
21122961
SM
77082017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7709
7710 * Makefile.in (%.o: ../target/%.c): New rule.
7711 (waitstatus.o: ../target/waitstatus.c): Remove.
7712
c362e621
SM
77132017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7714
7715 * Makefile.in
7716 (%.c: ../regformats/%.dat,
7717 (%.c: ../regformats/arm/%.dat,
7718 (%.c: ../regformats/i386/%.dat,
7719 (%.c: ../regformats/rs6000/%.dat): New rules.
7720 (aarch64.c): Remove.
7721 (reg-arm.c): Remove.
7722 (arm-with-iwmmxt.c): Remove.
7723 (arm-with-vfpv2.c): Remove.
7724 (arm-with-vfpv3.c): Remove.
7725 (arm-with-neon.c): Remove.
7726 (reg-bfin.c): Remove.
7727 (reg-cris.c): Remove.
7728 (reg-crisv32.c): Remove.
7729 (i386.c): Remove.
7730 (i386-linux.c): Remove.
7731 (i386-avx.c): Remove.
7732 (i386-avx-linux.c): Remove.
7733 (i386-avx-avx512.c): Remove.
7734 (i386-avx-avx512-linux.c): Remove.
7735 (i386-mpx.c): Remove.
7736 (i386-mpx-linux.c): Remove.
7737 (i386-avx-mpx-avx512-pku.c): Remove.
7738 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7739 (i386-avx-mpx.c): Remove.
7740 (i386-avx-mpx-linux.c): Remove.
7741 (i386-mmx.c): Remove.
7742 (i386-mmx-linux.c): Remove.
7743 (reg-ia64.c): Remove.
7744 (reg-m32r.c): Remove.
7745 (reg-m68k.c): Remove.
7746 (reg-cf.c): Remove.
7747 (mips-linux.c): Remove.
7748 (mips-dsp-linux.c): Remove.
7749 (mips64-linux.c): Remove.
7750 (mips64-dsp-linux.c): Remove.
7751 (nios2-linux.c): Remove.
7752 (powerpc-32.c): Remove.
7753 (powerpc-32l.c): Remove.
7754 (powerpc-altivec32l.c): Remove.
7755 (powerpc-cell32l.c): Remove.
7756 (powerpc-vsx32l.c): Remove.
7757 (powerpc-isa205-32l.c): Remove.
7758 (powerpc-isa205-altivec32l.c): Remove.
7759 (powerpc-isa205-vsx32l.c): Remove.
7760 (powerpc-e500l.c): Remove.
7761 (powerpc-64l.c): Remove.
7762 (powerpc-altivec64l.c): Remove.
7763 (powerpc-cell64l.c): Remove.
7764 (powerpc-vsx64l.c): Remove.
7765 (powerpc-isa205-64l.c): Remove.
7766 (powerpc-isa205-altivec64l.c): Remove.
7767 (powerpc-isa205-vsx64l.c): Remove.
7768 (s390-linux32.c): Remove.
7769 (s390-linux32v1.c): Remove.
7770 (s390-linux32v2.c): Remove.
7771 (s390-linux64.c): Remove.
7772 (s390-linux64v1.c): Remove.
7773 (s390-linux64v2.c): Remove.
7774 (s390-te-linux64.c): Remove.
7775 (s390-vx-linux64.c): Remove.
7776 (s390-tevx-linux64.c): Remove.
7777 (s390x-linux64.c): Remove.
7778 (s390x-linux64v1.c): Remove.
7779 (s390x-linux64v2.c): Remove.
7780 (s390x-te-linux64.c): Remove.
7781 (s390x-vx-linux64.c): Remove.
7782 (s390x-tevx-linux64.c): Remove.
7783 (tic6x-c64xp-linux.c): Remove.
7784 (tic6x-c64x-linux.c): Remove.
7785 (tic6x-c62x-linux.c): Remove.
7786 (reg-sh.c): Remove.
7787 (reg-sparc64.c): Remove.
7788 (reg-spu.c): Remove.
7789 (amd64.c): Remove.
7790 (amd64-linux.c): Remove.
7791 (amd64-avx.c): Remove.
7792 (amd64-avx-linux.c): Remove.
7793 (amd64-avx-avx512.c): Remove.
7794 (amd64-avx-avx512-linux.c): Remove.
7795 (amd64-mpx.c): Remove.
7796 (amd64-mpx-linux.c): Remove.
7797 (amd64-avx-mpx-avx512-pku.c): Remove.
7798 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7799 (amd64-avx-mpx.c): Remove.
7800 (amd64-avx-mpx-linux.c): Remove.
7801 (x32.c): Remove.
7802 (x32-linux.c): Remove.
7803 (x32-avx.c): Remove.
7804 (x32-avx-linux.c): Remove.
7805 (x32-avx-avx512.c): Remove.
7806 (x32-avx-avx512-linux.c): Remove.
7807 (reg-xtensa.c): Remove.
7808 (reg-tilegx.c): Remove.
7809 (reg-tilegx32.c): Remove.
7810
1672e0d9
SDJ
78112017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7812
7813 * Makefile.in (SFILES): Add "common/environ.c".
7814 (OBJS): Add "common/environ.h".
7815
239b6d10
WT
78162017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7817
7818 * configure.ac: Check if the fs_base and gs_base members of
7819 `struct user_regs_struct' exist.
7820 * config.in: Regenerated.
7821 * configure: Likewise.
7822
694b382c
AT
78232017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7824
7825 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7826 target_read_memory.
7827 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7828 (get_next_pcs_syscall_next_pc): Likewise.
7829
7dc53023
LM
78302016-12-23 Luis Machado <lgustavo@codesourcery.com>
7831
7832 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7833 * nto-x86-low.c: Likewise.
7834
ad02e4fe
SM
78352016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7836
7837 * Makefile.in: Include disable-implicit-rules.mk.
7838
dcb07cfa
PA
78392016-11-23 Pedro Alves <palves@redhat.com>
7840
7841 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7842 (debug_vprintf): Use std::chrono::steady_clock instead of
7843 gettimeofday. Use '.' instead of ':'.
7844 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7845 (get_timestamp): Use std::chrono::steady_clock instead of
7846 gettimeofday.
7847
8629c02c
SM
78482016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7849
7850 * Makefile.in: Fix whitespace formatting.
7851
b593ecca
SM
78522016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7853
7854 * Makefile.in (SFILES, OBS): Flatten list and order
7855 alphabetically.
7856
9986ba08
PA
78572016-11-23 Pedro Alves <palves@redhat.com>
7858
7859 * event-loop.c (handle_file_event): Use warning.
7860 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7861 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7862 Use warning.
7863
4eefa7bc
PA
78642016-11-23 Pedro Alves <palves@redhat.com>
7865
7866 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7867 output.
7868 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7869 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7870 debug_printf and debug_flush for debug output.
7871 * server.c (handle_general_set): Likewise.
7872 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7873 output.
7874
5443506e
SM
78752016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7876
7877 * Makefile.in (.c.o): Replace rule with ...
7878 (%.o: %.c): ... this one.
7879
3b165252
SM
78802016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7881
7882 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7883 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7884 make.
7885 * configure.ac: Remove checks for the make program.
7886 * configure: Re-generate.
7887
0bcda685
PA
78882016-10-28 Pedro Alves <palves@redhat.com>
7889
7890 * Makefile.in (CXX_DIALECT): Get from configure.
7891 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7892 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7893 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7894 * config.in: Regenerate.
7895 * configure: Regenerate.
7896
c3805894
YQ
78972016-10-27 Yao Qi <yao.qi@linaro.org>
7898
7899 * linux-low.c (linux_supports_range_stepping): Return true if
7900 can_software_single_step return true.
7901
89342618
YQ
79022016-10-27 Yao Qi <yao.qi@linaro.org>
7903
7904 * inferiors.c (find_inferior_in_random): New function.
7905 * inferiors.h (find_inferior_in_random): Declare.
7906 * linux-low.c (linux_wait_for_event_filtered): Call
7907 find_inferior_in_random instead of find_inferior.
7908
e3652c84
YQ
79092016-10-27 Yao Qi <yao.qi@linaro.org>
7910
7911 * linux-low.c (linux_wait_1): If single-step breakpoints are
7912 inserted, remove them.
7913
5a04c4cf
PA
79142016-10-26 Pedro Alves <palves@redhat.com>
7915
7916 * linux-low.c (handle_extended_wait): Link parent/child fork
7917 threads.
7918 (linux_wait_1): Unlink them.
7919 (linux_set_resume_request): Ignore resume requests for
7920 already-resumed and unhandled fork child threads.
7921 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7922 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7923 New functions.
7924 (handle_v_requests) <vCont>: Don't call require_running.
7925 * server.h (in_queued_stop_replies): New declaration.
7926
cb93dc7f
YQ
79272016-10-24 Yao Qi <yao.qi@linaro.org>
7928
7929 PR server/20733
7930 * linux-aarch64-low.c (append_insns): Cast the return value to
7931 'uint32_t *'.
7932
a1078bea
YQ
79332016-10-10 Yao Qi <yao.qi@linaro.org>
7934
7935 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7936
1fb77080
SDJ
79372016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7938
7939 * target.c (target_supports_multi_process): New function, moved
7940 from...
7941 * target.h (target_supports_multi_process): ... here. Remove
7942 macro.
7943
39b5a3b9
TT
79442016-10-05 Tom Tromey <tom@tromey.com>
7945
7946 PR remote/20655:
7947 * tracepoint.c (handle_tracepoint_bkpts): Check
7948 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7949
c1d0b70a
YQ
79502016-10-05 Yao Qi <yao.qi@linaro.org>
7951
7952 * configure.srv: Update the path of arm-*.xml files.
7953
0a69eedb
YQ
79542016-10-05 Terry Guo <terry.guo@arm.com>
7955 Yao Qi <yao.qi@linaro.org>
7956
7957 * Makefile.in: Adjust the path of rules.
7958 * configure.srv: Update the path of xml files.
7959 * regformats/arm-with-iwmmxt.dat: Regenerated.
7960 * regformats/arm-with-neon.dat: Likewise.
7961 * regformats/arm-with-vfpv2.dat: Likewise.
7962 * regformats/arm-with-vfpv3.dat Likewise.
7963
17e16485
YQ
79642016-09-30 Yao Qi <yao.qi@linaro.org>
7965
7966 PR gdbserver/20627
7967 * target.c (target_stop_and_wait): Don't call
7968 target_continue_no_signal, use resume_stop instead.
7969
edeeb602
YQ
79702016-09-26 Yao Qi <yao.qi@linaro.org>
7971
7972 * linux-low.c (linux_wait_1): Call debug_exit.
7973
503b1c39
PA
79742016-09-23 Pedro Alves <palves@redhat.com>
7975
7976 * Makefile.in (SFILES): Add common/new-op.c.
7977 (OBS): Add common/new-op.o.
7978 (new-op.o): New rule.
7979
74172ecf
SM
79802016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7981
7982 * .gitinore: Ignore more files.
7983
fc6cda2e
YQ
79842016-09-21 Yao Qi <yao.qi@linaro.org>
7985
7986 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7987 23.
7988
bc1e6c81
SDJ
79892016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7990
7991 * server.c (start_inferior): Call target_mourn_inferior instead of
7992 mourn_inferior; pass ptid_t argument to it.
7993 (resume): Likewise.
7994 (handle_target_event): Likewise.
7995 * target.c (target_mourn_inferior): New function.
7996 * target.h (mourn_inferior): Delete macro.
7997
0e00e962
AA
79982016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7999
8000 * linux-low.c (lwp_is_stepping): New function.
8001
1d8cb77d
CL
80022016-09-06 Carl Love <cel@us.ibm.com>
8003
8004 * server.c (start_inferior): Fixed comment, requested comment change
8005 didn't get updated correctly. Removed reference to ptrace () call as
8006 it is only true on Linux systems.
8007
7313bced
CL
80082016-09-06 Carl Love <cel@us.ibm.com>
8009
8010 * server.c (start_inferior): Do not call
8011 function target_post_create_inferior () if the
8012 inferior process has already exited.
8013
cf6de44d
PA
80142016-09-05 Pedro Alves <palves@redhat.com>
8015
8016 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8017 (COMPILE.pre, CC_LD): Use CXX directly.
8018 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8019 * acinclude.m4: Don't include build-with-cxx.m4.
8020 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8021 * configure: Regenerate.
8022
c1da6748
AT
80232016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8024
8025 PR gdb/19495
8026 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8027 call writing data to own_buf.
8028
f2b9e3df
SDJ
80292016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8030
8031 * target.c (mywait): Call target_wait instead of
8032 the_target->wait.
8033 (target_wait): New function.
8034
049a8570
SDJ
80352016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8036
8037 * server.c (start_inferior): New variable 'ptid'. Replace calls
8038 to the_target->resume by target_continue{,_no_signal}, depending
8039 on the case.
8040 * target.c (target_stop_and_wait): Call target_continue_no_signal
8041 instead of the_target->resume.
8042 (target_continue): New function.
8043
3aa5cfa0
AT
80442016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8045
8046 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8047
754653a7
AZ
80482016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8049
8050 PR server/20491
8051 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8052 ps_prochandle.
8053 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8054 * linux-arm-low.c (ps_get_thread_area): Likewise.
8055 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8056 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8057 * linux-mips-low.c (ps_get_thread_area): Likewise.
8058 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8059 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8060 * linux-x86-low.c (ps_get_thread_area): Likewise.
8061 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8062
ed036b40
PA
80632016-08-19 Pedro Alves <palves@redhat.com>
8064
8065 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8066
c8ef42ee
PA
80672016-08-19 Pedro Alves <palves@redhat.com>
8068
8069 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8070 comment. Use memcpy instead of casting through unsigned long.
8071
9c235a72
PA
80722016-08-19 Pedro Alves <palves@redhat.com>
8073
8074 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8075 allocating around 0x80000000.
8076
201506da
PA
80772016-08-19 Pedro Alves <palves@redhat.com>
8078
8079 PR gdb/20415
8080 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8081 (x32-avx512-linux-ipa.o): New rules.
8082 * configure.ac (x86_64-*-linux*): New x32 check.
8083 * configure.srv (ipa_x32_linux_regobj): New.
8084 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8085 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8086 descriptions.
8087 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8088 descriptions.
8089 * configure: Regenerate.
8090
f348d89a
PA
80912016-08-09 Pedro Alves <palves@redhat.com>
8092
8093 PR gdb/18653
8094 * Makefile.in (OBS): Add signals-state-save-restore.o.
8095 (signals-state-save-restore.o): New rule.
8096 * config.in: Regenerate.
8097 * configure: Regenerate.
8098 * linux-low.c: Include "signals-state-save-restore.h".
8099 (linux_create_inferior): Call
8100 restore_original_signals_state.
8101 * server.c: Include "dispositions-save-restore.h".
8102 (captured_main): Call save_original_signals_state.
8103
1baf5149
PA
81042016-08-05 Pedro Alves <palves@redhat.com>
8105
8106 * configure: Regenerate.
8107
fcd4a73d
YQ
81082016-08-04 Yao Qi <yao.qi@linaro.org>
8109
8110 * linux-low.c (regsets_fetch_inferior_registers): Check
8111 errno is ESRCH or not.
8112
979659d0
YQ
81132016-08-02 Yao Qi <yao.qi@linaro.org>
8114
8115 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8116 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8117 (thread_db_load_search): Update.
8118 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8119 td_ta_set_event and td_ta_event_getmsg.
8120
6598661d
PA
81212016-07-26 Pedro Alves <palves@redhat.com>
8122
8123 PR server/20414
8124 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8125 of unsigned long for 64-bit registers and use uint32_t instead of
8126 unsigned int for 32-bit registers.
8127
9cf12d57
PA
81282016-07-26 Pedro Alves <palves@redhat.com>
8129
8130 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8131 to 'ptrace'.
8132
305450ed
TT
81332016-07-21 Tom Tromey <tom@tromey.com>
8134
8135 * configure: Rebuild.
8136
2583da7c
YQ
81372016-07-21 Yao Qi <yao.qi@linaro.org>
8138
8139 * mem-break.c (find_gdb_breakpoint): Cast bp to
8140 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8141
21536b36
YQ
81422016-07-21 Yao Qi <yao.qi@linaro.org>
8143
8144 * server.c (handle_v_requests): Support s and S actions
8145 if target_supports_software_single_step return true.
8146
8901d193
YQ
81472016-07-21 Yao Qi <yao.qi@linaro.org>
8148
8149 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8150 is resume_step, call maybe_hw_step.
8151 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8152 and unstop them.
8153 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8154 breakpoints or not.
8155 (proceed_one_lwp): If resume request is resume_step, install
8156 reinsert breakpoints and call maybe_hw_step.
8157
0e9a339e
YQ
81582016-07-21 Yao Qi <yao.qi@linaro.org>
8159
8160 * linux-low.c (proceed_one_lwp): Declare.
8161 (linux_resume_one_thread): Remove local variable 'step'.
8162 Lift code enqueue signal. Call proceed_one_lwp instead of
8163 linux_resume_one_lwp.
8164
4281b351
YQ
81652016-07-21 Yao Qi <yao.qi@linaro.org>
8166
8167 * linux-low.c (linux_resume_one_thread): Call
8168 enqueue_pending_signal.
8169
984a2c04
YQ
81702016-07-21 Yao Qi <yao.qi@linaro.org>
8171
8172 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8173 * inferiors.c (do_restore_current_thread_cleanup): New function.
8174 (make_cleanup_restore_current_thread): Likewise.
8175 * linux-low.c (install_software_single_step_breakpoints): Call
8176 make_cleanup_restore_current_thread. Switch current_thread to
8177 thread.
8178
bec903c9
YQ
81792016-07-21 Yao Qi <yao.qi@linaro.org>
8180
8181 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8182 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8183 (clone_one_breakpoint): Likewise.
8184 (delete_reinsert_breakpoints): Change parameter to thread.
8185 Callers updated.
8186 (has_reinsert_breakpoints): Likewise.
8187 (uninsert_reinsert_breakpoints): Likewise.
8188 (reinsert_reinsert_breakpoints): Likewise.
8189 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8190 (delete_reinsert_breakpoints): Likewise.
8191 (reinsert_reinsert_breakpoints): Likewise.
8192 (uninsert_reinsert_breakpoints): Likewise.
8193 (has_reinsert_breakpoints): Likewise.
8194
63c40ec7
YQ
81952016-07-21 Yao Qi <yao.qi@linaro.org>
8196
8197 * inferiors.c (get_thread_process): Make parameter const.
8198 * inferiors.h (get_thread_process): Update declaration.
8199 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8200 Add new parameters child_thread and parent_thread. Callers
8201 updated.
8202 * mem-break.h (clone_all_breakpoints): Update declaration.
8203
9aa76cd0
YQ
82042016-07-21 Yao Qi <yao.qi@linaro.org>
8205
8206 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8207 <command_list, handler>: Remove.
8208 (struct gdb_breakpoint): New.
8209 (struct other_breakpoint): New.
8210 (struct reinsert_breakpoint): New.
8211 (is_gdb_breakpoint): New function.
8212 (any_persistent_commands): Update command_list if
8213 is_gdb_breakpoint returns true.
8214 (set_breakpoint): Create breakpoints according to their types.
8215 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8216 (set_gdb_breakpoint_1): Likewise.
8217 (set_gdb_breakpoint): Likewise.
8218 (clear_breakpoint_conditions): Change parameter type to
8219 'struct gdb_breakpoint *'.
8220 (clear_breakpoint_commands): Likewise.
8221 (clear_breakpoint_conditions_and_commands): Likewise.
8222 (add_condition_to_breakpoint): Likewise.
8223 (add_breakpoint_condition): Likewise.
8224 (add_commands_to_breakpoint): Likewise.
8225 (check_breakpoints): Check other_breakpoint.
8226 (clone_one_breakpoint): Clone breakpopint according to its type.
8227 * mem-break.h (struct gdb_breakpoint): Declare.
8228 (set_gdb_breakpoint): Update declaration.
8229 (clear_breakpoint_conditions_and_commands): Likewise.
8230 (add_breakpoint_condition): Likewise.
8231 (add_breakpoint_commands): Likewise.
8232 * server.c (process_point_options): Change parameter type to
8233 'struct gdb_breakpoint *'.
8234
811f8301
YQ
82352016-07-21 Yao Qi <yao.qi@linaro.org>
8236
8237 * mem-break.c (set_breakpoint_at): Rename it to ...
8238 (set_breakpoint_type_at): ... it.
8239 (set_breakpoint_at): Call set_breakpoint_type_at.
8240 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8241 * mem-break.h (set_breakpoint_at): Update comments.
8242
b1c51e36
CLT
82432016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8244
8245 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8246 to buf parameter.
8247 (nios2_store_gregset): Likewise.
8248
ced2dffb
PA
82492016-07-01 Pedro Alves <palves@redhat.com>
8250 Antoine Tremblay <antoine.tremblay@ericsson.com>
8251
8252 * linux-low.c: Change interface to take the target lwp_info
8253 pointer directly and return void. Handle detaching from a zombie
8254 thread.
8255 (linux_detach_lwp_callback): New function.
8256 (linux_detach): Detach from the leader thread after detaching from
8257 the clone threads.
8258
2ac09a5b
YQ
82592016-06-28 Yao Qi <yao.qi@linaro.org>
8260
8261 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8262 for variable new_offset.
8263 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8264 (aarch64_ftrace_insn_reloc_cb): Likewise.
8265 (aarch64_ftrace_insn_reloc_tb): Likewise.
8266 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8267 PRIx64 instead of PRIx32.
8268
79e7fd4f
YQ
82692016-06-28 Yao Qi <yao.qi@linaro.org>
8270
8271 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8272 (the_low_target): Install arm_get_syscall_trapinfo.
8273
061fc021
YQ
82742016-06-28 Yao Qi <yao.qi@linaro.org>
8275
8276 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8277 function.
8278 (the_low_target): Install aarch64_get_syscall_trapinfo.
8279
4cc32bec
YQ
82802016-06-28 Yao Qi <yao.qi@linaro.org>
8281
8282 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8283 Callers updated.
8284 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8285 Remove parameter sysno.
8286 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8287 sysret.
8288
782c1122
AA
82892016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8290
8291 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8292 (s390_emit_ne_goto): Likewise.
8293 (s390_emit_lt_goto): Likewise.
8294 (s390_emit_le_goto): Likewise.
8295 (s390_emit_gt_goto): Likewise.
8296 (s390_emit_ge_goto): Likewise.
8297 (s390x_emit_eq_goto): Likewise.
8298 (s390x_emit_ne_goto): Likewise.
8299 (s390x_emit_lt_goto): Likewise.
8300 (s390x_emit_le_goto): Likewise.
8301 (s390x_emit_gt_goto): Likewise.
8302 (s390x_emit_ge_goto): Likewise.
8303 (s390_emit_ops_impl): Mark variable static.
8304 (s390x_emit_ops): Likewise.
8305
2e7b624b
YQ
83062016-06-17 Yao Qi <yao.qi@linaro.org>
8307
8308 * linux-low.c (handle_extended_wait): Call
8309 uninsert_reinsert_breakpoints for the parent process. Remove
8310 reinsert breakpoints from the child process. Reinsert them to
8311 the parent process when vfork is done.
8312 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8313 (reinsert_reinsert_breakpoints): New function.
8314 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8315 (reinsert_reinsert_breakpoints): Declare.
8316
8a81c5d7
YQ
83172016-06-17 Yao Qi <yao.qi@linaro.org>
8318
8319 * linux-low.c (handle_extended_wait): If the parent is doing
8320 step-over, remove the reinsert breakpoints from the forked child.
8321
f50bf8e5
YQ
83222016-06-17 Yao Qi <yao.qi@linaro.org>
8323
8324 * linux-low.c (unsuspend_all_lwps): Declare.
8325 (linux_low_filter_event): If thread exited, call finish_step_over.
8326 If step-over is finished, unsuspend other threads.
8327
8376a3cb
YQ
83282016-06-17 Yao Qi <yao.qi@linaro.org>
8329
8330 * linux-low.c (linux_resume_one_lwp_throw): Assert
8331 has_reinsert_breakpoints returns false.
8332 * mem-break.c (delete_disabled_breakpoints): Assert
8333 bp type isn't reinsert_breakpoint.
8334
f79b145d
YQ
83352016-06-17 Yao Qi <yao.qi@linaro.org>
8336
8337 * linux-low.c (maybe_hw_step): New function.
8338 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8339 (finish_step_over): Switch current_thread to lwp temporarily,
8340 and assert has_reinsert_breakpoints returns true.
8341 (proceed_one_lwp): Call maybe_hw_step.
8342 * mem-break.c (has_reinsert_breakpoints): New function.
8343 * mem-break.h (has_reinsert_breakpoints): Declare.
8344
0ae534d2
JT
83452016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8346
8347 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8348
fcdad592
YQ
83492016-05-17 Yao Qi <yao.qi@linaro.org>
8350
8351 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8352 instead of find_inferior.
8353
9e784964
YQ
83542016-05-05 Yao Qi <yao.qi@linaro.org>
8355
8356 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8357 Initialize res to zero.
8358
cf2ebb6e
YQ
83592016-05-05 Yao Qi <yao.qi@linaro.org>
8360
8361 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8362 to uint32_t.
8363
c1aebf87
UW
83642016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8365
8366 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8367 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8368 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8369
35fd2deb 83702016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8371 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8372
8373 * tracepoint.c (write_inferior_int8): New function.
8374 (cmd_qtenable_disable): Write enable flag using
8375 write_inferior_int8.
8376
484b3c32
YQ
83772016-04-25 Yao Qi <yao.qi@linaro.org>
8378
8379 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8380 (need_step_over_p): Return zero if the LWP has pending signals
8381 can be delivered on software single step target.
8382
85ba7d86
YQ
83832016-04-25 Yao Qi <yao.qi@linaro.org>
8384
8385 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8386 return instead of error.
8387
3539aa13
YQ
83882016-04-22 Yao Qi <yao.qi@linaro.org>
8389
8390 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8391 to 23.
8392
5b061e98
YQ
83932016-04-22 Yao Qi <yao.qi@linaro.org>
8394
8395 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8396 signal when stepping over breakpoint with software single
8397 step.
8398
3451269c
PA
83992016-04-21 Pedro Alves <palves@redhat.com>
8400
8401 * linux-s390-low.c (s390_collect_ptrace_register)
8402 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8403 add casts.
8404 (s390_check_regset): Use void * instead of gdb_byte *.
8405
a2358508
PA
84062016-04-20 Pedro Alves <palves@redhat.com>
8407
8408 * configure: Renegerate.
8409
6885166d
YQ
84102016-04-20 Yao Qi <yao.qi@linaro.org>
8411
8412 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8413 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8414 number 16.
8415 (arm_store_gregset): Likewise.
8416
2b863f51
WT
84172016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8418
8419 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8420 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8421 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8422 (amd64-avx-mpx-linux.c): New rules.
8423 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8424 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8425 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8426 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8427 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8428 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8429 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8430 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8431 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8432 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8433 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8434 * linux-x86-low.c (x86_linux_read_description): Add case for
8435 X86_XSTATE_AVX_MPX_MASK.
8436 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8437 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8438 init_registers_i386_avx_mpx_linux.
8439 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8440 (initialize_low_tracepoint): Call
8441 init_registers_i386_avx_mpx_linux.
8442 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8443 (initialize_low_tracepoint): Call
8444 init_registers_amd64_avx_mpx_linux.
8445 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8446 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8447 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8448 declarations.
8449
9b30624b
PA
84502016-04-18 Pedro Alves <palves@redhat.com>
8451
8452 * configure: Regenerate.
8453
45e3745e
AT
84542016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8455
8456 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8457 (aarch64_emit_sub): Likewise.
8458
2afc13ff
PA
84592016-04-12 Pedro Alves <palves@redhat.com>
8460
8461 * utils.c (prepare_to_throw_exception): Delete.
8462
6e774b13
SM
84632016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8464
8465 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8466
4dca19f8
MK
84672016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8468
8469 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8470
d0a9981f
MK
84712016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8472
8473 * linux-aarch64-ipa.c: Add <elf.h> include.
8474 * linux-ppc-ipa.c: Add <elf.h> include.
8475 * linux-s390-ipa.c: Add <elf.h> include.
8476
252db07e
MK
84772016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8478
8479 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8480 (get_raw_reg_ptr): Likewise.
8481 (get_trace_state_variable_value_ptr): Likewise.
8482 (set_trace_state_variable_value_ptr): Likewise.
8483 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8484 char *.
8485
14e2b6d9
MK
84862016-03-31 Wei-cheng Wang <cole945@gmail.com>
8487 Marcin Kościelnicki <koriakin@0x04.net>
8488
8489 PR/17221
8490 * linux-ppc-low.c (emit_insns): New function.
8491 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8492 (ppc_emit_prologue): New function.
8493 (ppc_emit_epilogue): New function.
8494 (ppc_emit_add): New function.
8495 (ppc_emit_sub): New function.
8496 (ppc_emit_mul): New function.
8497 (ppc_emit_lsh): New function.
8498 (ppc_emit_rsh_signed): New function.
8499 (ppc_emit_rsh_unsigned): New function.
8500 (ppc_emit_ext): New function.
8501 (ppc_emit_zero_ext): New function.
8502 (ppc_emit_log_not): New function.
8503 (ppc_emit_bit_and): New function.
8504 (ppc_emit_bit_or): New function.
8505 (ppc_emit_bit_xor): New function.
8506 (ppc_emit_bit_not): New function.
8507 (ppc_emit_equal): New function.
8508 (ppc_emit_less_signed): New function.
8509 (ppc_emit_less_unsigned): New function.
8510 (ppc_emit_ref): New function.
8511 (ppc_emit_const): New function.
8512 (ppc_emit_reg): New function.
8513 (ppc_emit_pop): New function.
8514 (ppc_emit_stack_flush): New function.
8515 (ppc_emit_swap): New function.
8516 (ppc_emit_stack_adjust): New function.
8517 (ppc_emit_call): New function.
8518 (ppc_emit_int_call_1): New function.
8519 (ppc_emit_void_call_2): New function.
8520 (ppc_emit_if_goto): New function.
8521 (ppc_emit_goto): New function.
8522 (ppc_emit_eq_goto): New function.
8523 (ppc_emit_ne_goto): New function.
8524 (ppc_emit_lt_goto): New function.
8525 (ppc_emit_le_goto): New function.
8526 (ppc_emit_gt_goto): New function.
8527 (ppc_emit_ge_goto): New function.
8528 (ppc_write_goto_address): New function.
8529 (ppc_emit_ops_impl): New static variable.
8530 (ppc64v1_emit_prologue): New function.
8531 (ppc64v2_emit_prologue): New function.
8532 (ppc64_emit_epilogue): New function.
8533 (ppc64_emit_add): New function.
8534 (ppc64_emit_sub): New function.
8535 (ppc64_emit_mul): New function.
8536 (ppc64_emit_lsh): New function.
8537 (ppc64_emit_rsh_signed): New function.
8538 (ppc64_emit_rsh_unsigned): New function.
8539 (ppc64_emit_ext): New function.
8540 (ppc64_emit_zero_ext): New function.
8541 (ppc64_emit_log_not): New function.
8542 (ppc64_emit_bit_and): New function.
8543 (ppc64_emit_bit_or): New function.
8544 (ppc64_emit_bit_xor): New function.
8545 (ppc64_emit_bit_not): New function.
8546 (ppc64_emit_equal): New function.
8547 (ppc64_emit_less_signed): New function.
8548 (ppc64_emit_less_unsigned): New function.
8549 (ppc64_emit_ref): New function.
8550 (ppc64_emit_const): New function.
8551 (ppc64v1_emit_reg): New function.
8552 (ppc64v2_emit_reg): New function.
8553 (ppc64_emit_pop): New function.
8554 (ppc64_emit_stack_flush): New function.
8555 (ppc64_emit_swap): New function.
8556 (ppc64v1_emit_call): New function.
8557 (ppc64v2_emit_call): New function.
8558 (ppc64v1_emit_int_call_1): New function.
8559 (ppc64v2_emit_int_call_1): New function.
8560 (ppc64v1_emit_void_call_2): New function.
8561 (ppc64v2_emit_void_call_2): New function.
8562 (ppc64_emit_if_goto): New function.
8563 (ppc64_emit_eq_goto): New function.
8564 (ppc64_emit_ne_goto): New function.
8565 (ppc64_emit_lt_goto): New function.
8566 (ppc64_emit_le_goto): New function.
8567 (ppc64_emit_gt_goto): New function.
8568 (ppc64_emit_ge_goto): New function.
8569 (ppc64v1_emit_ops_impl): New static variable.
8570 (ppc64v2_emit_ops_impl): New static variable.
8571 (ppc_emit_ops): New function.
8572 (linux_low_target): Wire in ppc_emit_ops.
8573
a2174ba4
MK
85742016-03-31 Wei-cheng Wang <cole945@gmail.com>
8575 Marcin Kościelnicki <koriakin@0x04.net>
8576
8577 PR/17221
8578 * Makefile.in: Add powerpc-*-ipa.o
8579 * configure.srv: Add ipa_obj for powerpc*-linux.
8580 * linux-ppc-ipa.c: New file.
8581 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8582 includes.
8583 (PPC_FIELD): New macro.
8584 (PPC_SEXT): New macro.
8585 (PPC_OP6): New macro.
8586 (PPC_BO): New macro.
8587 (PPC_LI): New macro.
8588 (PPC_BD): New macro.
8589 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8590 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8591 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8592 (ppc_get_thread_area): New function.
8593 (is_elfv2_inferior): New function.
8594 (gen_ds_form): New function.
8595 (GEN_STD): New macro.
8596 (GEN_STDU): New macro.
8597 (GEN_LD): New macro.
8598 (GEN_LDU): New macro.
8599 (gen_d_form): New function.
8600 (GEN_ADDI): New macro.
8601 (GEN_ADDIS): New macro.
8602 (GEN_LI): New macro.
8603 (GEN_LIS): New macro.
8604 (GEN_ORI): New macro.
8605 (GEN_ORIS): New macro.
8606 (GEN_LWZ): New macro.
8607 (GEN_STW): New macro.
8608 (GEN_STWU): New macro.
8609 (gen_xfx_form): New function.
8610 (GEN_MFSPR): New macro.
8611 (GEN_MTSPR): New macro.
8612 (GEN_MFCR): New macro.
8613 (GEN_MTCR): New macro.
8614 (GEN_SYNC): New macro.
8615 (GEN_LWSYNC): New macro.
8616 (gen_x_form): New function.
8617 (GEN_OR): New macro.
8618 (GEN_MR): New macro.
8619 (GEN_LWARX): New macro.
8620 (GEN_STWCX): New macro.
8621 (GEN_CMPW): New macro.
8622 (gen_md_form): New function.
8623 (GEN_RLDICL): New macro.
8624 (GEN_RLDICR): New macro.
8625 (gen_i_form): New function.
8626 (GEN_B): New macro.
8627 (GEN_BL): New macro.
8628 (gen_b_form): New function.
8629 (GEN_BNE): New macro.
8630 (GEN_LOAD): New macro.
8631 (GEN_STORE): New macro.
8632 (gen_limm): New function.
8633 (gen_atomic_xchg): New function.
8634 (gen_call): New function.
8635 (ppc_relocate_instruction): New function.
8636 (ppc_install_fast_tracepoint_jump_pad): New function.
8637 (ppc_get_min_fast_tracepoint_insn_len): New function.
8638 (ppc_get_ipa_tdesc_idx): New function.
8639 (the_low_target): Wire in the new functions.
8640 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8641 tdescs.
8642 * linux-ppc-tdesc.h: New file.
8643
a13c4696
MK
86442016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8645
8646 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8647 (alloc_jump_pad_buffer): New function.
8648 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8649 (alloc_jump_pad_buffer): New function.
8650 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8651 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8652 (alloc_jump_pad_buffer): New function.
8653 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8654 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8655 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8656 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8657
1cda1512
MK
86582016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8659
8660 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8661 * linux-amd64-ipa.c: Likewise.
8662 * linux-i386-ipa.c: Likewise.
8663 * linux-s390-ipa.c: Likewise.
8664 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8665 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8666 set_trace_state_variable_value_ptr.
8667 (struct ipa_sym_addresses): Likewise.
8668 (symbol_list): Likewise.
8669 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8670 accessing gdb_collect directly.
8671 (gdb_collect_ptr_type): New typedef.
8672 (get_raw_reg_ptr_type): New typedef.
8673 (get_trace_state_variable_value_ptr_type): New typedef.
8674 (set_trace_state_variable_value_ptr_type): New typedef.
8675 (gdb_collect_ptr): New global.
8676 (get_raw_reg_ptr): New global.
8677 (get_trace_state_variable_value_ptr): New global.
8678 (set_trace_state_variable_value_ptr): New global.
8679 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8680 accessing get_raw_reg directly.
8681 (get_get_tsv_func_addr): Likewise for
8682 get_trace_state_variable_value_ptr.
8683 (get_set_tsv_func_addr): Likewise for
8684 set_trace_state_variable_value_ptr.
8685 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8686
72fb5488
SM
86872016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8688
8689 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8690
28170b88
MK
86912016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8692
8693 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8694 packets.
8695 (relocate_instruction): Remove own_buf.
8696 * server.c (own_buf): Make global.
8697 (handle_v_requests): Make global.
8698 * server.h (own_buf): New declaration.
8699 (handle_v_requests): New prototype.
8700
f39e8743
MK
87012016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8702
8703 PR 18377
8704 * linux-s390-low.c (add_insns): New function.
8705 (s390_emit_prologue): New function.
8706 (s390_emit_epilogue): New function.
8707 (s390_emit_add): New function.
8708 (s390_emit_sub): New function.
8709 (s390_emit_mul): New function.
8710 (s390_emit_lsh): New function.
8711 (s390_emit_rsh_signed): New function.
8712 (s390_emit_rsh_unsigned): New function.
8713 (s390_emit_ext): New function.
8714 (s390_emit_log_not): New function.
8715 (s390_emit_bit_and): New function.
8716 (s390_emit_bit_or): New function.
8717 (s390_emit_bit_xor): New function.
8718 (s390_emit_bit_not): New function.
8719 (s390_emit_equal): New function.
8720 (s390_emit_less_signed): New function.
8721 (s390_emit_less_unsigned): New function.
8722 (s390_emit_ref): New function.
8723 (s390_emit_if_goto): New function.
8724 (s390_emit_goto): New function.
8725 (s390_write_goto_address): New function.
8726 (s390_emit_litpool): New function.
8727 (s390_emit_const): New function.
8728 (s390_emit_call): New function.
8729 (s390_emit_reg): New function.
8730 (s390_emit_pop): New function.
8731 (s390_emit_stack_flush): New function.
8732 (s390_emit_zero_ext): New function.
8733 (s390_emit_swap): New function.
8734 (s390_emit_stack_adjust): New function.
8735 (s390_emit_set_r2): New function.
8736 (s390_emit_int_call_1): New function.
8737 (s390_emit_void_call_2): New function.
8738 (s390_emit_eq_goto): New function.
8739 (s390_emit_ne_goto): New function.
8740 (s390_emit_lt_goto): New function.
8741 (s390_emit_le_goto): New function.
8742 (s390_emit_gt_goto): New function.
8743 (s390_emit_ge_goto): New function.
8744 (s390x_emit_prologue): New function.
8745 (s390x_emit_epilogue): New function.
8746 (s390x_emit_add): New function.
8747 (s390x_emit_sub): New function.
8748 (s390x_emit_mul): New function.
8749 (s390x_emit_lsh): New function.
8750 (s390x_emit_rsh_signed): New function.
8751 (s390x_emit_rsh_unsigned): New function.
8752 (s390x_emit_ext): New function.
8753 (s390x_emit_log_not): New function.
8754 (s390x_emit_bit_and): New function.
8755 (s390x_emit_bit_or): New function.
8756 (s390x_emit_bit_xor): New function.
8757 (s390x_emit_bit_not): New function.
8758 (s390x_emit_equal): New function.
8759 (s390x_emit_less_signed): New function.
8760 (s390x_emit_less_unsigned): New function.
8761 (s390x_emit_ref): New function.
8762 (s390x_emit_if_goto): New function.
8763 (s390x_emit_const): New function.
8764 (s390x_emit_call): New function.
8765 (s390x_emit_reg): New function.
8766 (s390x_emit_pop): New function.
8767 (s390x_emit_stack_flush): New function.
8768 (s390x_emit_zero_ext): New function.
8769 (s390x_emit_swap): New function.
8770 (s390x_emit_stack_adjust): New function.
8771 (s390x_emit_int_call_1): New function.
8772 (s390x_emit_void_call_2): New function.
8773 (s390x_emit_eq_goto): New function.
8774 (s390x_emit_ne_goto): New function.
8775 (s390x_emit_lt_goto): New function.
8776 (s390x_emit_le_goto): New function.
8777 (s390x_emit_gt_goto): New function.
8778 (s390x_emit_ge_goto): New function.
8779 (s390_emit_ops): New function.
8780 (struct linux_target_ops): Fill in emit_ops hook.
8781
abd9baf9
MK
87822016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8783
8784 PR 18377
8785 * Makefile.in: Add s390 IPA files.
8786 * configure.srv: Build IPA for s390.
8787 * linux-s390-ipa.c: New file.
8788 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8789 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8790 (tdesc_s390_linux32): Likewise.
8791 (init_registers_s390_linux32v1): Likewise.
8792 (tdesc_s390_linux32v1): Likewise.
8793 (init_registers_s390_linux32v2): Likewise.
8794 (tdesc_s390_linux32v2): Likewise.
8795 (init_registers_s390_linux64): Likewise.
8796 (tdesc_s390_linux64): Likewise.
8797 (init_registers_s390_linux64v1): Likewise.
8798 (tdesc_s390_linux64v1): Likewise.
8799 (init_registers_s390_linux64v2): Likewise.
8800 (tdesc_s390_linux64v2): Likewise.
8801 (init_registers_s390_te_linux64): Likewise.
8802 (tdesc_s390_te_linux64): Likewise.
8803 (init_registers_s390_vx_linux64): Likewise.
8804 (tdesc_s390_vx_linux64): Likewise.
8805 (init_registers_s390_tevx_linux64): Likewise.
8806 (tdesc_s390_tevx_linux64): Likewise.
8807 (init_registers_s390x_linux64): Likewise.
8808 (tdesc_s390x_linux64): Likewise.
8809 (init_registers_s390x_linux64v1): Likewise.
8810 (tdesc_s390x_linux64v1): Likewise.
8811 (init_registers_s390x_linux64v2): Likewise.
8812 (tdesc_s390x_linux64v2): Likewise.
8813 (init_registers_s390x_te_linux64): Likewise.
8814 (tdesc_s390x_te_linux64): Likewise.
8815 (init_registers_s390x_vx_linux64): Likewise.
8816 (tdesc_s390x_vx_linux64): Likewise.
8817 (init_registers_s390x_tevx_linux64): Likewise.
8818 (tdesc_s390x_tevx_linux64): Likewise.
8819 (have_hwcap_s390_vx): New static variable.
8820 (s390_arch_setup): Fill have_hwcap_s390_vx.
8821 (s390_get_thread_area): New function.
8822 (s390_ft_entry_gpr_esa): New const.
8823 (s390_ft_entry_gpr_zarch): New const.
8824 (s390_ft_entry_misc): New const.
8825 (s390_ft_entry_fr): New const.
8826 (s390_ft_entry_vr): New const.
8827 (s390_ft_main_31): New const.
8828 (s390_ft_main_64): New const.
8829 (s390_ft_exit_fr): New const.
8830 (s390_ft_exit_vr): New const.
8831 (s390_ft_exit_misc): New const.
8832 (s390_ft_exit_gpr_esa): New const.
8833 (s390_ft_exit_gpr_zarch): New const.
8834 (append_insns): New function.
8835 (s390_relocate_instruction): New function.
8836 (s390_install_fast_tracepoint_jump_pad): New function.
8837 (s390_get_min_fast_tracepoint_insn_len): New function.
8838 (s390_get_ipa_tdesc_idx): New function.
8839 (struct linux_target_ops): Wire in the above functions.
8840 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8841 * linux-s390-tdesc.h: New file.
8842
a4105d04
MK
88432016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8844
8845 * linux-s390-low.c (s390_supports_tracepoints): New function.
8846 (struct linux_target_ops): Fill supports_tracepoints hook.
8847
35ac8b3e
YQ
88482016-03-18 Yao Qi <yao.qi@linaro.org>
8849
8850 * linux-low.c (lwp_signal_can_be_delivered): New function.
8851 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8852
94610ec4
YQ
88532016-03-18 Yao Qi <yao.qi@linaro.org>
8854
8855 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8856 0 if signal is enqueued. Remove 'signal' from one debugging
8857 message. Move one debugging message to some lines below.
8858 Remove code setting 'signal' to 0.
8859
80aea927
YQ
88602016-03-18 Yao Qi <yao.qi@linaro.org>
8861
8862 * linux-low.c (linux_low_filter_event): Remove redundant
8863 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8864
b04fd3be
MK
88652016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8866
8867 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8868 (struct linux_target_ops): Wire in the above.
8869
c40c8d4b
YQ
88702016-03-03 Yao Qi <yao.qi@linaro.org>
8871
8872 * linux-low.c: Update comments to start_step_over.
8873
0f8288ae
YQ
88742016-03-03 Yao Qi <yao.qi@linaro.org>
8875
8876 PR server/19736
8877 * linux-low.c (handle_extended_wait): Set child suspended
8878 if event_lwp->bp_reinsert isn't zero.
8879
fdbd04a8
YQ
88802016-03-02 Yao Qi <yao.qi@linaro.org>
8881
8882 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8883 enqueue_pending_signal.
8884
6896a8fa
MK
88852016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8886
8887 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8888 is actually loaded.
8889
ab503087
MK
88902016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8891
8892 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8893 (s390_regmap_3264) [!__s390x__]: New global.
8894 (s390_collect_ptrace_register): Skip map entries containing -1.
8895 (s390_supply_ptrace_register): Ditto.
8896 (s390_fill_gprs_high): New function.
8897 (s390_store_gprs_high): New function.
8898 (s390_regsets): Add NT_S390_HIGH_GPRS.
8899 (s390_get_hwcap): Enable on 31-bit.
8900 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8901 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8902 Detect NT_S390_HIGH_GPRS.
8903 (s390_usrregs_info_3264): Enable on 31-bit.
8904 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8905 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8906
ae91f625
MK
89072016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8908
8909 PR gdb/13808
8910 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8911 * configure.srv: Ditto.
8912 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8913 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8914 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8915 (init_registers_amd64_linux): Remove prototype.
8916 (tdesc_amd64_linux): Remove declaration.
8917 (get_ipa_tdesc): New function.
8918 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8919 initialize remaining tdescs.
8920 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8921 (init_registers_i386_linux): Remove prototype.
8922 (tdesc_i386_linux): Remove declaration.
8923 (get_ipa_tdesc): New function.
8924 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8925 initialize remaining tdescs.
8926 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8927 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8928 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8929 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8930 (x86_get_ipa_tdesc_idx): New function.
8931 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8932 * linux-x86-tdesc.h: New file.
8933 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8934 (target_get_ipa_tdesc_idx): New macro.
8935 * tracepoint.c (ipa_tdesc_idx): New macro.
8936 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8937 (symbol_list): Add ipa_tdesc_idx.
8938 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8939 (ipa_tdesc): Remove.
8940 (ipa_tdesc_idx): New variable.
8941 (get_context_regcache): Use get_ipa_tdesc.
8942 (gdb_collect): Ditto.
8943 (gdb_probe): Ditto.
8944 * tracepoint.h (get_ipa_tdesc): New prototype.
8945 (ipa_tdesc): Remove.
8946
e7ad2f14
PA
89472016-02-24 Pedro Alves <palves@redhat.com>
8948
8949 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8950 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8951 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8952 Factor out common code between the USE_SIGTRAP_SIGINFO and
8953 !USE_SIGTRAP_SIGINFO blocks.
8954 (linux_low_filter_event): Call save_stop_reason instead of
8955 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8956 Update comments.
8957 (linux_wait_1): Update comments.
8958
657f9cde
WW
89592016-02-24 Wei-cheng Wang <cole945@gmail.com>
8960
8961 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8962 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8963 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8964 ppc_insert_point, ppc_remove_point.
8965
b00b61e1
MK
89662016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8967
8968 * linux-s390-low.c (s390_supports_z_point_type): New function.
8969 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8970
553cb527
YQ
89712016-02-16 Yao Qi <yao.qi@linaro.org>
8972
8973 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8974 PC. Get pc from regcache_read_pc.
8975
a5652c21
YQ
89762016-02-12 Yao Qi <yao.qi@linaro.org>
8977
8978 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8979 or linux_get_pc_32bit.
8980 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8981
ed443b61
YQ
89822016-02-12 Yao Qi <yao.qi@linaro.org>
8983
8984 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8985 arm_linux_get_next_pcs_fixup.
8986
020ecd38
MK
89872016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8988
8989 * tracepoint.c (x_tracepoint_action_download): Change
8990 write_inferior_data_ptr to write_inferior_data_pointer.
8991 (cmd_qtstart): Likewise.
8992 (write_inferior_data_ptr): Remove.
8993 (download_agent_expr): Change write_inferior_data_ptr to
8994 write_inferior_data_pointer.
8995 (download_tracepoint_1): Likewise.
8996 (download_tracepoint): Likewise.
8997 (download_trace_state_variables): Likewise.
8998
7cae9051
WW
89992016-02-11 Wei-cheng Wang <cole945@gmail.com>
9000 Marcin Kościelnicki <koriakin@0x04.net>
9001
9002 * tracepoint.c (struct tracepoint_action_ops): Remove.
9003 (struct tracepoint_action): Remove ops.
9004 (m_tracepoint_action_download, r_tracepoint_action_download)
9005 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9006 size and offset accordingly.
9007 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9008 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9009 (tracepoint_action_send, tracepoint_action_download): New functions.
9010 Helpers for trace action handlers.
9011 (add_tracepoint_action): Remove setup actions ops.
9012 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9013
9f6a71b4
YQ
90142016-02-10 Yao Qi <yao.qi@linaro.org>
9015
9016 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9017
1e94266c
SM
90182016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9019
9020 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9021 to AC_OUTPUT.
9022 * configure: Regenerate.
9023
8adce034
SM
90242016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9025
9026 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9027 void * to gdb_byte *.
9028 * linux-low.c (siginfo_fixup): Likewise.
9029 (linux_xfer_siginfo): Likewise.
9030 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9031 Likewise.
9032 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9033
93813b37
WT
90342016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9035
9036 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9037 to srv_tgtobj.
9038 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9039 to srv_tgtobj.
9040 * linux-x86-low.c [__x86_64__]: Include
9041 "nat/amd64-linux-siginfo.h".
9042 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9043 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9044 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9045 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9046 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9047 (cpt_si_fd, si_timerid, si_overrun): Move from
9048 nat/amd64-linux-siginfo.c.
9049 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9050
8424cc97
SM
90512016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9052
9053 * server.c (skip_to_semicolon): Remove.
9054 (process_point_options): Use strchrnul instead of
9055 skip_to_semicolon.
9056
4d18591b
YQ
90572016-01-26 Yao Qi <yao.qi@linaro.org>
9058
9059 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9060 * linux-low.c (install_software_single_step_breakpoints): Don't
9061 call regcache_read_pc.
9062 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9063 argument pc.
9064
d8020970
YQ
90652016-01-26 Yao Qi <yao.qi@linaro.org>
9066
9067 * linux-low.c (install_software_single_step_breakpoints): Call
9068 regcache_read_pc instead of get_pc.
9069
8b207339
YQ
90702016-01-26 Yao Qi <yao.qi@linaro.org>
9071
9072 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9073 (unblock_async_io): Rename to ...
9074 (block_unblock_async_io): ... it. New function.
9075 (enable_async_io): Don't install SIGIO handler. Unblock it
9076 instead.
9077 (disable_async_io): Don't ignore SIGIO. Block it instead.
9078 (initialize_async_io): Install SIGIO handler. Don't call
9079 unblock_async_io.
9080
18879fef
YQ
90812016-01-26 Yao Qi <yao.qi@linaro.org>
9082
9083 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9084 first character is '\003', call *the_target->request_interrupt.
9085
a0f8e08a
YQ
90862016-01-25 Yao Qi <yao.qi@linaro.org>
9087
9088 * remote-utils.c (new_thread_notify): Remove.
9089 (dead_thread_notify): Likewise.
9090 * remote-utils.h (new_thread_notify): Remove declaration.
9091 (dead_thread_notify): Likewise.
9092
cc5fd9ab
MK
90932016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9094
9095 * gdb.trace/pending.exp: Fix expected message on continue.
9096
99e8eb11
MK
90972016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9098
9099 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9100 it works properly on big-endian machines where sizeof (CORE_ADDR)
9101 != sizeof (void *).
9102
a994041d
PA
91032016-01-21 Pedro Alves <palves@redhat.com>
9104
9105 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9106 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9107 * configure: Regenerate.
9108
f7a6a40d
YQ
91092016-01-21 Yao Qi <yao.qi@linaro.org>
9110
9111 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9112 is_thumb and set it according to CPSR saved on the stack.
9113 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9114 arm_sigreturn_next_pc.
9115
6f69e520
YQ
91162016-01-18 Yao Qi <yao.qi@linaro.org>
9117
9118 * linux-low.c (linux_set_pc_64bit): New function.
9119 (linux_get_pc_64bit): New function.
9120 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9121 Declare.
9122 * linux-sparc-low.c (debug_threads): Remove declaration.
9123 (sparc_get_pc): Remove.
9124 (the_low_target): Use linux_get_pc_64bit instead of
9125 sparc_get_pc.
9126 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9127 (the_low_target): Use linux_get_pc_64bit and
9128 linux_set_pc_64bit.
9129
276d4552
YQ
91302016-01-18 Yao Qi <yao.qi@linaro.org>
9131
9132 * linux-arm-low.c (debug_threads): Remove declaration.
9133 (arm_get_pc, arm_set_pc): Remove.
9134 (the_low_target): Use linux_get_pc_32bit and
9135 linux_set_pc_32bit.
9136 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9137 (the_low_target): Use linux_get_pc_32bit and
9138 linux_set_pc_32bit.
9139 * linux-cris-low.c (debug_threads): Remove declaration.
9140 (cris_get_pc, cris_set_pc,): Remove.
9141 (the_low_target): Use linux_get_pc_32bit and
9142 linux_set_pc_32bit.
9143 * linux-crisv32-low.c (debug_threads): Remove declaration.
9144 (cris_get_pc, cris_set_pc): Remove.
9145 (the_low_target): Use linux_get_pc_32bit and
9146 linux_set_pc_32bit.
9147 * linux-low.c: Include inttypes.h.
9148 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9149 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9150 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9151 (the_low_target): Use linux_get_pc_32bit and
9152 linux_set_pc_32bit.
9153 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9154 (the_low_target): Use linux_get_pc_32bit and
9155 linux_set_pc_32bit.
9156 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9157 (the_low_target): Use linux_get_pc_32bit and
9158 linux_set_pc_32bit.
9159 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9160 (the_low_target): Use linux_get_pc_32bit and
9161 linux_set_pc_32bit.
9162 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9163 (the_low_target): Use linux_get_pc_32bit and
9164 linux_set_pc_32bit.
9165
eb0edac8
GB
91662016-01-18 Gary Benson <gbenson@redhat.com>
9167
9168 * configure.ac (AC_FUNC_FORK): New check.
9169 * config.in: Regenerate.
9170 * configure: Likewise.
9171
1b451dda
YQ
91722016-01-14 Yao Qi <yao.qi@linaro.org>
9173
9174 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9175 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9176 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9177 arm_get_next_pcs_ctor.
9178
82075af2
JS
91792016-01-12 Josh Stone <jistone@redhat.com>
9180 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9181
9182 * inferiors.h: Include "gdb_vecs.h".
9183 (struct process_info): Add syscalls_to_catch.
9184 * inferiors.c (remove_process): Free syscalls_to_catch.
9185 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9186 syscall_return stops.
9187 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9188 * server.c (handle_general_set): Handle QCatchSyscalls.
9189 (handle_query): Report support for QCatchSyscalls.
9190 * target.h (struct target_ops): Add supports_catch_syscall.
9191 (target_supports_catch_syscall): New macro.
9192 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9193 (struct lwp_info): Add syscall_state.
9194 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9195 Maintain syscall_state and syscalls_to_catch across exec.
9196 (get_syscall_trapinfo): New function, proxy to the_low_target.
9197 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9198 (linux_low_filter_event): Toggle syscall_state entry/return for
9199 syscall traps, and set it ignored for all others.
9200 (gdb_catching_syscalls_p): New function.
9201 (gdb_catch_this_syscall_p): New function.
9202 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9203 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9204 (linux_supports_catch_syscall): New function.
9205 (linux_target_ops): Install it.
9206 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9207 (the_low_target): Install it.
9208
8f13a3ce
MF
92092016-01-12 Mike Frysinger <vapier@gentoo.org>
9210
9211 * acinclude.m4: Include new ../warning.m4 file.
9212 * configure: Regenerated.
9213 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9214
5b3da067
MF
92152016-01-12 Mike Frysinger <vapier@gentoo.org>
9216
9217 * ax.c (is_goto_target): Mark static.
9218 * linux-low.c (register_addr): Likewise.
9219 (linux_fetch_registers, linux_store_registers): Likewise.
9220 * mem-break.c (any_persistent_commands): Fix old prototype.
9221 (add_commands_to_breakpoint): Mark static.
9222 * regcache.c (find_register_by_name): Delete unused func.
9223 * remote-utils.c (hex_or_minus_one): Mark static.
9224 * server.c (monitor_show_help): Mark static.
9225 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9226 handle_v_requests): Likewise.
9227
bc504a31
PA
92282016-01-12 Pedro Alves <palves@redhat.com>
9229
9230 Remove use of the registered trademark symbol throughout.
9231
5a0dd67a
YQ
92322016-01-08 Yao Qi <yao.qi@linaro.org>
9233
9234 * remote-utils.c (getpkt): If c is '\003', call target hook
9235 request_interrupt.
9236
b2ca446f
YQ
92372016-01-06 Yao Qi <yao.qi@linaro.org>
9238
9239 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9240 linux-aarch32-low.c.
9241 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9242 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9243 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9244 (thumb2_breakpoint): Declare.
9245 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9246 linux-aarch32-low.h.
9247 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9248 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9249 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9250
edd88788
JB
92512016-01-01 Joel Brobecker <brobecker@adacore.com>
9252
9253 * gdbreplay.c (gdbreplay_version): Change copyright year in
9254 version message.
9255 * server.c (gdbserver_version): Likewise.
9256
65da7f14
PP
92572015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9258
9259 * server.c (crc32_table): Delete.
9260 (crc32): Use libiberty's xcrc32 function.
9261
4abd5ed2
JB
92622015-12-22 Joel Brobecker <brobecker@adacore.com>
9263
9264 * lynx-low.c (lynx_delete_thread_callback): New function.
9265 (lynx_mourn): Properly delete our process and all of its
9266 threads. Remove call to clear_inferiors.
9267
0e50fe5c
JB
92682015-12-22 Joel Brobecker <brobecker@adacore.com>
9269
9270 * target.c (thread_search_callback): Add check that
9271 the thread_stopped target callback is not NULL before
9272 calling it.
9273
35adc03f
YQ
92742015-12-21 Yao Qi <yao.qi@linaro.org>
9275
9276 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9277 arm breakpoint.
9278
bd2b2909
AT
92792015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9280
9281 * server.c (handle_query): Call target_supports_software_single_step.
9282
7fe5e27e
AT
92832015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9284
9285 * linux-low.c (single_step): New function.
9286 (linux_resume_one_lwp_throw): Call single_step.
9287 (start_step_over): Likewise.
9288
d9311bfa
AT
92892015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9290
9291 * Makefile.in (SFILES): Append arch/arm-linux.c,
9292 arch/arm-get-next-pcs.c.
9293 (arm-linux.o): New rule.
9294 (arm-get-next-pcs.o): New rule.
9295 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9296 arm-linux.o.
9297 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9298 to linux-aarch32-low.c.
9299 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9300 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9301 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9302 (thumb2_breakpoint_len): Likewise.
9303 (arm_is_thumb_mode): Make non-static.
9304 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9305 from linux-aarch32-low.c.
9306 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9307 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9308 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9309 (thumb2_breakpoint_len): Likewise.
9310 (arm_is_thumb_mode): New declaration.
9311 * linux-arm-low.c: Include arch/arm-linux.h
9312 aarch/arm-get-next-pcs.h, sys/syscall.h.
9313 (get_next_pcs_ops): New struct.
9314 (get_next_pcs_addr_bits_remove): New function.
9315 (get_next_pcs_is_thumb): New function.
9316 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9317 (arm_sigreturn_next_pc): Likewise.
9318 (get_next_pcs_syscall_next_pc): Likewise.
9319 (arm_gdbserver_get_next_pcs): Likewise.
9320 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9321 Initialize.
9322 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9323 * server.h: Include gdb_vecs.h.
9324
68ce2059
AT
93252015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9326
9327 * Makefile.in (SFILES): Append common/common-regcache.c.
9328 (OBS): Append common-regcache.o.
9329 (common-regcache.o): New rule.
9330 * regcache.c (init_register_cache): Initialize cache to
9331 REG_UNAVAILABLE.
9332 (regcache_raw_read_unsigned): New function.
9333 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9334 register_status enum.
9335
fa5308bd
AT
93362015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9337
9338 * linux-aarch64-low.c (the_low_targets): Rename
9339 breakpoint_reinsert_addr to get_next_pcs.
9340 * linux-arm-low.c (the_low_targets): Likewise.
9341 * linux-bfin-low.c (the_low_targets): Likewise.
9342 * linux-cris-low.c (the_low_targets): Likewise.
9343 * linux-crisv32-low.c (the_low_targets): Likewise.
9344 * linux-low.c (can_software_single_step): Likewise.
9345 (install_software_single_step_breakpoints): New function.
9346 (start_step_over): Use install_software_single_step_breakpoints.
9347 * linux-low.h: New CORE_ADDR vector.
9348 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9349 get_next_pcs.
9350 * linux-mips-low.c (the_low_targets): Likewise.
9351 * linux-nios2-low.c (the_low_targets): Likewise.
9352 * linux-sparc-low.c (the_low_targets): Likewise.
9353
4a6ed09b
PA
93542015-12-17 Pedro Alves <palves@redhat.com>
9355
9356 * linux-low.c (linux_kill_one_lwp): Remove references to
9357 LinuxThreads.
9358 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9359 to 'kill'.
9360 (linux_init_signals): Delete.
9361 (initialize_low): Adjust.
9362 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9363
7544db95
PA
93642015-12-16 Pedro Alves <palves@redhat.com>
9365
9366 * configure.ac (compiler warning flags): When testing a
9367 -Wno-foo option, check whether -Wfoo works instead.
9368 * configure: Regenerate.
9369
8020350c
DB
93702015-12-11 Don Breazeal <donb@codesourcery.com>
9371
9372 * server.c (process_serial_event): Don't exit from gdbserver
9373 in remote mode if there are still active inferiors.
9374
db91f502
YQ
93752015-12-11 Yao Qi <yao.qi@linaro.org>
9376
9377 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9378 arm_breakpoint_at if the process is 32-bit.
9379
b37a6290
YQ
93802015-12-11 Yao Qi <yao.qi@linaro.org>
9381
9382 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9383 arm breakpoint.
9384
17b1509a
YQ
93852015-12-07 Yao Qi <yao.qi@linaro.org>
9386
9387 * configure.srv: Append arm.o to srv_tgtobj for
9388 aarch64*-*-linux* target.
9389 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9390 from linux-arm-low.c.
9391 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9392 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9393 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9394 (thumb2_breakpoint_len): Likewise.
9395 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9396 (arm_breakpoint_kinds): Likewise.
9397 (arm_breakpoint_kind_from_pc): Likewise.
9398 (arm_sw_breakpoint_from_kind): Likewise.
9399 (arm_breakpoint_kind_from_current_state): Likewise.
9400 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9401 (arm_sw_breakpoint_from_kind): Declare.
9402 (arm_breakpoint_kind_from_current_state): Declare.
9403 (arm_breakpoint_at): Declare.
9404 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9405 arm_sw_breakpoint_from_kind if process is 32-bit.
9406 (aarch64_breakpoint_kind_from_pc): New function.
9407 (aarch64_breakpoint_kind_from_current_state): New function.
9408 (the_low_target): Initialize fields breakpoint_kind_from_pc
9409 and breakpoint_kind_from_current_state.
9410 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9411 linux-aarch32-low.c.
9412 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9413 (arm_breakpoint, arm_breakpoint_len): Likewise.
9414 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9415 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9416 (arm_is_thumb_mode): Likewise.
9417 (arm_breakpoint_at): Likewise.
9418 (arm_breakpoint_kind_from_pc): Likewise.
9419 (arm_sw_breakpoint_from_kind): Likewise.
9420 (arm_breakpoint_kind_from_current_state): Likewise.
9421
9422 Revert:
9423 2015-08-04 Yao Qi <yao.qi@linaro.org>
9424
9425 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9426 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9427 * server.c (extended_protocol): Remove "static".
9428 * server.h (extended_protocol): Declare it.
9429
ece66d65
JS
94302015-12-04 Josh Stone <jistone@redhat.com>
9431
9432 * target.h (struct target_ops) <arch_setup>: Rename to ...
9433 (struct target_ops) <post_create_inferior>: ... this.
9434 (target_arch_setup): Rename to ...
9435 (target_post_create_inferior): ... this, calling post_create_inferior.
9436 * server.c (start_inferior): Update target_arch_setup calls to
9437 target_post_create_inferior.
9438 * linux-low.c (linux_low_ptrace_options): Forward declare.
9439 (linux_arch_setup): Update its comment for general use.
9440 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9441 (struct linux_target_ops): Use linux_post_create_inferior.
9442 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9443 to post_create_inferior.
9444 * nto-low.c (struct nto_target_ops): Likewise.
9445 * spu-low.c (struct spu_target_ops): Likewise.
9446 * win32-low.c (struct win32_target_ops): Likewise.
9447
e58c48b4
AT
94482015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9449
9450 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9451
fbec8956
AT
94522015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9453
9454 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9455 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9456 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9457 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9458 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9459 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9460 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9461 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9462 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9463 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9464 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9465 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9466
9b4c5f87
AT
94672015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9468
9469 * linux-low.c (linux_look_up_symbols): Don't call
9470 linux_supports_traceclone.
9471 * linux-low.h (thread_db_init): Remove use_events argument.
9472 * thread-db.c (thread_db_use_event): Remove global variable.
9473 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9474 (struct thread_db) <td_create_bp>: Remove field.
9475 (thread_db_create_event): Remove function.
9476 (thread_db_enable_reporting): Likewise.
9477 (find_one_thread): Don't check for thread_db_use_events.
9478 (attach_thread): Likewise.
9479 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9480 (try_thread_db_load_1): Don't check for thread_db_use_events.
9481 (thread_db_init): Remove use_events argument and thread events
9482 handling.
9483 (remove_thread_event_breakpoints): Remove function.
9484 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9485
7d00775e
AT
94862015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9487
9488 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9489 New function.
9490 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9491 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9492 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9493 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9494 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9495 Initialize.
9496 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9497 New function.
9498 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9499 * linux-low.c (can_hardware_single_step): Use
9500 supports_hardware_single_step.
9501 (can_software_single_step): New function.
9502 (start_step_over): Call can_software_single_step.
9503 (linux_supports_hardware_single_step): New function.
9504 (struct target_ops) <supports_software_single_step>: Initialize.
9505 * linux-low.h (struct linux_target_ops)
9506 <supports_hardware_single_step>: Initialize.
9507 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9508 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9509 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9510 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9511 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9512 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9513 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9514 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9515 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9516 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9517 Initialize.
9518 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9519 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9520 Initialize.
9521 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9522 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9523 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9524 New function.
9525 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9526 * target.h (struct target_ops): <supports_software_single_step>:
9527 New field.
9528 (target_supports_software_single_step): New macro.
9529
2d97cd35
AT
95302015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9531
9532 * linux-low.c (linux_wait_1): Fix pc advance condition.
9533 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9534 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9535
769ef81f
AT
95362015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9537
9538 * linux-arm-low.c (arm_is_thumb_mode): New function.
9539 (arm_breakpoint_at): Use arm_is_thumb_mode.
9540 (arm_breakpoint_kind_from_current_state): New function.
9541 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9542 Initialize.
9543 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9544 (linux_breakpoint_kind_from_current_state): New function.
9545 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9546 * linux-low.h (struct linux_target_ops)
9547 <breakpoint_kind_from_current_state>: New field.
9548 * target.h (struct target_ops): Likewise.
9549 (target_breakpoint_kind_from_current_state): New macro.
9550
1bebeeca
PA
95512015-11-30 Pedro Alves <palves@redhat.com>
9552
9553 * linux-low.c (linux_resume): Wake up the event loop before
9554 returning.
9555
a67a9fae
PA
95562015-11-30 Pedro Alves <palves@redhat.com>
9557
9558 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9559 check.
9560 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9561 to -1.
9562 * target.c (struct thread_search): New structure.
9563 (thread_search_callback): New function.
9564 (prev_general_thread): New global.
9565 (prepare_to_access_memory, done_accessing_memory): New functions.
9566 * target.h (prepare_to_access_memory, done_accessing_memory):
9567 Replace macros with function declarations.
9568
f2faf941
PA
95692015-11-30 Pedro Alves <palves@redhat.com>
9570
9571 PR 14618
9572 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9573 report TARGET_WAITKIND_NO_RESUMED.
9574 * remote-utils.c (prepare_resume_reply): Handle
9575 TARGET_WAITKIND_NO_RESUMED.
9576 * server.c (report_no_resumed): New global.
9577 (handle_query) <qSupported>: Handle "no-resumed+". Report
9578 "no-resumed+" support.
9579 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9580 return error if the client doesn't support no-resumed events.
9581 (push_stop_notification): New function.
9582 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9583 events if the client supports them.
9584
a681f9c9
PA
95852015-11-30 Pedro Alves <palves@redhat.com>
9586
9587 * linux-low.c (thread_still_has_status_pending_p): Don't check
9588 vCont;t here.
9589 (lwp_resumed): New function.
9590 (status_pending_p_callback): Return early if the LWP is not
9591 supposed to be resumed.
9592
65706a29
PA
95932015-11-30 Pedro Alves <palves@redhat.com>
9594
9595 * linux-low.c (handle_extended_wait): Assert that the LWP's
9596 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9597 thread create events, leave the new child's status pending.
9598 (linux_low_filter_event): If GDB wants to hear about thread exit
9599 events, leave the LWP marked dead and don't delete it.
9600 (linux_wait_for_event_filtered): Don't check for thread exit.
9601 (filter_exit_event): New function.
9602 (linux_wait_1): Use it, when returning an exit event.
9603 (linux_resume_one_lwp_throw): Assert that the LWP's
9604 waitstatus is TARGET_WAITKIND_IGNORE.
9605 * remote-utils.c (prepare_resume_reply): Handle
9606 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9607 * server.c (report_thread_events): New global.
9608 (handle_general_set): Handle QThreadEvents.
9609 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9610 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9611 TARGET_WAITKIND_THREAD_EXITED.
9612 * server.h (report_thread_events): Declare.
9613
56cf4bed
PA
96142015-11-30 Pedro Alves <palves@redhat.com>
9615
9616 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9617 the thread's last_resume_kind was resume_stop.
9618
500c1d85
PA
96192015-11-30 Pedro Alves <palves@redhat.com>
9620
9621 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9622 before returning.
9623
de979965
PA
96242015-11-30 Pedro Alves <palves@redhat.com>
9625
9626 * server.c (handle_v_requests): Handle vCtrlC.
9627
34c65914
PA
96282015-11-30 Pedro Alves <palves@redhat.com>
9629
9630 * gdbthread.h (find_any_thread_of_pid): Declare.
9631 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9632 functions.
9633 * server.c (handle_query): If current_thread is NULL, look for
9634 another thread of the selected process.
9635
79efa585 96362015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9637 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9638
9639 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9640 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9641 name in reply.
9642 * target.h (struct target_ops) <thread_name>: New field.
9643 (target_thread_name): New macro.
9644
80d82c19
JB
96452015-11-23 Joel Brobecker <brobecker@adacore.com>
9646
9647 * regcache.h (regcache_invalidate_pid): Add declaration.
9648 * regcache.c (regcache_invalidate_pid): New function, extracted
9649 from regcache_invalidate.
9650 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9651 Add trivial documentation comment.
9652 * lynx-low.c: Use regcache_invalidate_pid instead of
9653 regcache_invalidate.
9654
64da5dd5
JB
96552015-11-23 Joel Brobecker <brobecker@adacore.com>
9656
9657 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9658 and Elf64_auxv_t if the target is Android.
9659
37ce4055
DE
96602015-11-22 Doug Evans <xdje42@gmail.com>
9661
9662 * target.h: #include <sys/types.h>.
9663
06e03fff
PA
96642015-11-19 Pedro Alves <palves@redhat.com>
9665
9666 * linux-low.c (linux_process_qsupported): Change prototype.
9667 Adjust.
9668 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9669 Change prototype.
9670 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9671 and adjust to loop over all features.
9672 * server.c (handle_query) <qSupported>: Adjust to call
9673 target_process_qsupported once, passing it a vector of unprocessed
9674 features.
9675 * target.h (struct target_ops) <process_qsupported>: Change
9676 prototype.
9677 (target_process_qsupported): Adjust.
9678
9a084706
PA
96792015-11-19 Pedro Alves <palves@redhat.com>
9680
9681 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9682 mode.
9683 * configure: Regenerate.
9684
dad44a1f
PA
96852015-11-19 Pedro Alves <palves@redhat.com>
9686
9687 * configure: Regenerate.
9688
231c0592
YQ
96892015-11-19 Yao Qi <yao.qi@linaro.org>
9690
9691 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9692 type to uint32_t.
9693
6c1c9a8b
YQ
96942015-11-19 Yao Qi <yao.qi@linaro.org>
9695
9696 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9697 (struct aarch64_operand): Move enum out.
9698
9caa3311
YQ
96992015-11-19 Yao Qi <yao.qi@linaro.org>
9700
9701 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9702 struct user_fpsimd_state *.
9703 (aarch64_store_fpregset): Likewise.
9704
6a69a054
YQ
97052015-11-19 Yao Qi <yao.qi@linaro.org>
9706
9707 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9708 struct user_pt_regs *.
9709 (aarch64_store_gregset): Likewise.
9710
1798301e
PA
97112015-11-18 Pedro Alves <palves@redhat.com>
9712
9713 * Makefile.in (all_object_files): Add $IPA_OBJS.
9714
ce7715e2
PA
97152015-11-17 Pedro Alves <palves@redhat.com>
9716
9717 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9718 GDB_SIGNAL_0 and gdb_signal_to_string.
9719
c0879059
PA
97202015-11-17 Pedro Alves <palves@redhat.com>
9721
9722 * win32-low.c (handle_output_debug_string): Remove parameter.
9723 (win32_kill): Remove our_status local and adjust call to
9724 handle_output_debug_string.
9725 (get_child_debug_event): Adjust call to
9726 handle_output_debug_string.
9727
1996e237
SM
97282015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9729
9730 * linux-mips-low.c (mips_fill_gregset): Add cast.
9731 (mips_store_gregset): Likewise.
9732 (mips_fill_fpregset): Likewise.
9733 (mips_store_fpregset): Likewise.
9734
cbec665b
SM
97352015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9736
9737 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9738 priv.
9739
eb3e3c67
SM
97402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9741
9742 * linux-mips-low.c (mips_linux_new_thread): Change type of
9743 watch_type to enum target_hw_bp_type.
9744
171de4b8
SM
97452015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9746
9747 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9748 Change return type to arm_hwbp_type.
9749
04248ead
SM
97502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9751
9752 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9753 (arm_store_gregset): Likewise.
9754 * linux-arm-low.c (arm_get_hwcap): Likewise.
9755 (arm_read_description): Likewise.
9756
04b3479c
SM
97572015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9758
9759 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9760
2bc84e8a
SM
97612015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9762
9763 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9764 (ppc_fill_vsxregset): Likewise.
9765 (ppc_store_vsxregset): Likewise.
9766 (ppc_fill_vrregset): Likewise.
9767 (ppc_store_vrregset): Likewise.
9768 (ppc_fill_evrregset): Likewise.
9769 (ppc_store_evrregset): Likewise.
9770
e6c5bb05
SM
97712015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9772
9773 * linux-ppc-low.c (ppc_usrregs_info): Remove
9774 forward-declaration.
9775 (ppc_arch_setup): Move lower in file.
9776
7ea45d72
SM
97772015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9778
9779 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9780 (ps_pdwrite): Likewise.
9781
69291610
HW
97822015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9783
9784 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9785 to after assert checks.
9786
b42945fd
SM
97872015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9788
9789 * proc-service.c (ps_pdread): Add/adjust casts.
9790 (ps_pdwrite): Add/adjust casts.
9791
d6f85c84
SM
97922015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9793
9794 * server.c (handle_search_memory_1): Cast return value of
9795 memmem.
9796
f98cd059
SM
97972015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9798
9799 * server.c (write_qxfer_response): Change type of data to
9800 gdb_byte *.
9801
d2412fa5
PA
98022015-10-29 Pedro Alves <palves@redhat.com>
9803
9804 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9805
c17414a2
PA
98062015-10-29 Pedro Alves <palves@redhat.com>
9807
9808 * tracepoint.c (clear_installed_tracepoints): Add casts.
9809
e053fbc4
PA
98102015-10-29 Pedro Alves <palves@redhat.com>
9811
9812 * server.c (handle_v_cont, process_serial_event): Add enum
9813 gdb_signal casts to signal parsing code.
9814
add67df8
PA
98152015-10-29 Pedro Alves <palves@redhat.com>
9816
9817 * linux-low.h (NULL_REGSET): Define.
9818 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9819 * linux-arm-low.c (arm_regsets): Likewise.
9820 * linux-crisv32-low.c (cris_regsets): Likewise.
9821 * linux-m68k-low.c (m68k_regsets): Likewise.
9822 * linux-mips-low.c (mips_regsets): Likewise.
9823 * linux-nios2-low.c (nios2_regsets): Likewise.
9824 * linux-ppc-low.c (ppc_regsets): Likewise.
9825 * linux-s390-low.c (s390_regsets): Likewise.
9826 * linux-sh-low.c (sh_regsets): Likewise.
9827 * linux-sparc-low.c (sparc_regsets): Likewise.
9828 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9829 * linux-tile-low.c (tile_regsets): Likewise.
9830 * linux-x86-low.c (x86_regsets): Likewise.
9831 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9832
50bc912a
PA
98332015-10-29 Pedro Alves <palves@redhat.com>
9834
9835 * linux-low.h (NULL_REGSET): Define.
9836 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9837 * linux-arm-low.c (arm_regsets): Likewise.
9838 * linux-crisv32-low.c (cris_regsets): Likewise.
9839 * linux-m68k-low.c (m68k_regsets): Likewise.
9840 * linux-mips-low.c (mips_regsets): Likewise.
9841 * linux-nios2-low.c (nios2_regsets): Likewise.
9842 * linux-ppc-low.c (ppc_regsets): Likewise.
9843 * linux-s390-low.c (s390_regsets): Likewise.
9844 * linux-sh-low.c (sh_regsets): Likewise.
9845 * linux-sparc-low.c (sparc_regsets): Likewise.
9846 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9847 * linux-tile-low.c (tile_regsets): Likewise.
9848 * linux-x86-low.c (x86_regsets): Likewise.
9849 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9850
682b2546
DE
98512015-10-26 Doug Evans <dje@google.com>
9852
9853 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9854
963843d4
DE
98552015-10-26 Doug Evans <dje@google.com>
9856
9857 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9858
d41401ac
DE
98592015-10-26 Doug Evans <dje@google.com>
9860
9861 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9862 for debug_printf.
9863 (attach_thread, find_new_threads_callback): Ditto.
9864
3db28855
AT
98652015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9866
9867 * mem-break.h (set_breakpoint_data): Remove.
9868
fb78e89c
AT
98692015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9870
9871 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9872 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9873 (initialize_low): Remove set_breakpoint_data call.
9874 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9875 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9876 (initialize_low): Remove set_breakpoint_data call.
9877 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9878 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9879 (initialize_low): Remove set_breakpoint_data call.
9880
2e6ee069
AT
98812015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9882
9883 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9884 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9885 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9886 * target.h (target_breakpoint_kind_from_pc): New macro.
9887
1652a986
AT
98882015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9889
9890 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9891 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9892 the default breakpoint kind.
9893
abeead09
AT
98942015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9895
9896 * linux-arm-low.c (arm_supports_z_point_type): Add software
9897 breakpoint support.
9898
b0b4b501
AT
98992015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9900
9901 * linux-arm-low.c: Refactor breakpoint definitions.
9902 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9903 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9904
8689682c
AT
99052015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9906
9907 * Makefile.in: Add arm.c/o.
9908 * configure.srv: Likewise.
9909 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9910 (arm_breakpoint_kind_from_pc): New function.
9911 (arm_sw_breakpoint_from_kind): Return proper kind.
9912 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9913
27165294
AT
99142015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9915
9916 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9917 removal.
9918 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9919 (struct raw_breakpoint) <size>: Remove.
9920 (struct raw_breakpoint) <kind>: Add.
9921 (bp_size): New function.
9922 (bp_opcode): Likewise.
9923 (find_raw_breakpoint_at): Adjust for kind.
9924 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9925 (remove_memory_breakpoint): Adjust for kind call bp_size.
9926 (set_raw_breakpoint_at): Adjust for kind.
9927 (set_breakpoint): Likewise.
9928 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9929 (delete_raw_breakpoint): Adjust for kind.
9930 (delete_breakpoint): Likewise.
9931 (find_gdb_breakpoint): Likewise.
9932 (set_gdb_breakpoint_1): Likewise.
9933 (set_gdb_breakpoint): Likewise.
9934 (delete_gdb_breakpoint_1): Likewise.
9935 (delete_gdb_breakpoint): Likewise.
9936 (uninsert_raw_breakpoint): Likewise.
9937 (reinsert_raw_breakpoint): Likewise.
9938 (set_breakpoint_data): Remove.
9939 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9940 (check_mem_read): Adjust for kind call bp_size.
9941 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9942 (clone_one_breakpoint): Adjust for kind.
9943 * mem-break.h (set_gdb_breakpoint): Likewise.
9944 (delete_gdb_breakpoint): Likewise.
9945 * server.c (process_serial_event): Likewise.
9946
dd373349
AT
99472015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9948
9949 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9950 (struct linux_target_ops) <breakpoint>: Remove.
9951 (struct linux_target_ops) <breakpoint_len>: Remove.
9952 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9953 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9954 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9955 (arm_sw_breakpoint_from_kind): New function.
9956 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9957 (struct linux_target_ops) <breakpoint>: Remove.
9958 (struct linux_target_ops) <breakpoint_len>: Remove.
9959 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9960 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9961 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9962 (struct linux_target_ops) <breakpoint>: Remove.
9963 (struct linux_target_ops) <breakpoint_len>: Remove.
9964 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9965 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9966 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9967 (struct linux_target_ops) <breakpoint>: Remove.
9968 (struct linux_target_ops) <breakpoint_len>: Remove.
9969 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9970 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9971 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9972 and sw_breakpoint_from_kind to increment the pc.
9973 (linux_breakpoint_kind_from_pc): New function.
9974 (linux_sw_breakpoint_from_kind): New function.
9975 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9976 (initialize_low): Call breakpoint_kind_from_pc and
9977 sw_breakpoint_from_kind to replace breakpoint_data/len.
9978 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9979 New field.
9980 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9981 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9982 (struct linux_target_ops) <breakpoint>: Remove.
9983 (struct linux_target_ops) <breakpoint_len>: Remove.
9984 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9985 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9986 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9987 (struct linux_target_ops) <breakpoint>: Remove.
9988 (struct linux_target_ops) <breakpoint_len>: Remove.
9989 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9990 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9991 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9992 (struct linux_target_ops) <breakpoint>: Remove.
9993 (struct linux_target_ops) <breakpoint_len>: Remove.
9994 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9995 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9996 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9997 (struct linux_target_ops) <breakpoint>: Remove.
9998 (struct linux_target_ops) <breakpoint_len>: Remove.
9999 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10000 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10001 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10002 (struct linux_target_ops) <breakpoint>: Remove.
10003 (struct linux_target_ops) <breakpoint_len>: Remove.
10004 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10005 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10006 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10007 (struct linux_target_ops) <breakpoint>: Remove.
10008 (struct linux_target_ops) <breakpoint_len>: Remove.
10009 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10010 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10011 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10012 (struct linux_target_ops) <breakpoint>: Remove.
10013 (struct linux_target_ops) <breakpoint_len>: Remove.
10014 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10015 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10016 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10017 (struct linux_target_ops) <breakpoint>: Remove.
10018 (struct linux_target_ops) <breakpoint_len>: Remove.
10019 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10020 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10021 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10022 (struct linux_target_ops) <breakpoint>: Remove.
10023 (struct linux_target_ops) <breakpoint_len>: Remove.
10024 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10025 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10026 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10027 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10028 (struct linux_target_ops) <breakpoint>: Remove.
10029 (struct linux_target_ops) <breakpoint_len>: Remove.
10030 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10031 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10032 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10033 (struct linux_target_ops) <breakpoint>: Remove.
10034 (struct linux_target_ops) <breakpoint_len>: Remove.
10035 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10036 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10037
4cd98a19
AT
100382015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10039
10040 * linux-cris-low.c (cris_get_pc): Remove void arg.
10041
774ee6d2
AR
100422015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10043
10044 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10045 variable name.
10046
833dcd29
AR
100472015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10048
10049 * inferiors.c (thread_pid_matches_callback): New function.
10050 (find_thread_process): New function.
10051 (remove_thread): Reset current_thread.
10052 (remove_process): Assert threads have been removed first.
10053
8d689ee5
YQ
100542015-10-15 Yao Qi <yao.qi@linaro.org>
10055
10056 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10057 if it is 3.
10058 (aarch64_remove_point): Likewise.
10059 * regcache.c (regcache_register_size): New function.
10060
1c2e1515
YQ
100612015-10-12 Yao Qi <yao.qi@linaro.org>
10062
10063 * linux-aarch64-low.c: Update all callers as emit_load_store
10064 is renamed to aarch64_emit_load_store.
10065
e1c587c3
YQ
100662015-10-12 Yao Qi <yao.qi@linaro.org>
10067
10068 * linux-aarch64-low.c: Update all callers of function renaming
10069 from emit_insn to aarch64_emit_insn.
10070
b6542f81
YQ
100712015-10-12 Yao Qi <yao.qi@linaro.org>
10072
10073 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10074 arch/aarch64-insn.h.
10075 (struct aarch64_memory_operand): Likewise.
10076 (ENCODE): Likewise.
10077 (emit_insn): Move to arch/aarch64-insn.c.
10078 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10079 (emit_load_store): Move to arch/aarch64-insn.c.
10080 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10081 (can_encode_int32): Remove.
10082
246994ce
YQ
100832015-10-12 Yao Qi <yao.qi@linaro.org>
10084
10085 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10086 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10087 (aarch64_relocate_instruction): Likewise.
10088 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10089 (struct aarch64_insn_visitor): Likewise.
10090
0badd99f
YQ
100912015-10-12 Yao Qi <yao.qi@linaro.org>
10092
10093 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10094 (struct aarch64_insn_visitor): New.
10095 (struct aarch64_insn_relocation_data): New.
10096 (aarch64_ftrace_insn_reloc_b): New function.
10097 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10098 (aarch64_ftrace_insn_reloc_cb): Likewise.
10099 (aarch64_ftrace_insn_reloc_tb): Likewise.
10100 (aarch64_ftrace_insn_reloc_adr): Likewise.
10101 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10102 (aarch64_ftrace_insn_reloc_others): Likewise.
10103 (visitor): New.
10104 (aarch64_relocate_instruction): Use visitor.
10105
dfaffe9d
YQ
101062015-10-12 Yao Qi <yao.qi@linaro.org>
10107
10108 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10109 int. Add argument buf.
10110 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10111 aarch64_relocate_instruction.
10112
70b439f0
YQ
101132015-10-12 Yao Qi <yao.qi@linaro.org>
10114
10115 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10116 argument insn. Remove local variable insn. Don't call
10117 target_read_uint32.
10118 (aarch64_install_fast_tracepoint_jump_pad): Call
10119 target_read_uint32.
10120
7781c06f
YQ
101212015-09-30 Yao Qi <yao.qi@linaro.org>
10122
10123 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10124 (emit_load_store_pair): Likewise.
10125
9a3c8263
SM
101262015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10127
10128 * dll.c (match_dll): Add cast(s).
10129 (unloaded_dll): Likewise.
10130 * linux-low.c (second_thread_of_pid_p): Likewise.
10131 (delete_lwp_callback): Likewise.
10132 (count_events_callback): Likewise.
10133 (select_event_lwp_callback): Likewise.
10134 (linux_set_resume_request): Likewise.
10135 * server.c (accumulate_file_name_length): Likewise.
10136 (emit_dll_description): Likewise.
10137 (handle_qxfer_threads_worker): Likewise.
10138 (visit_actioned_threads): Likewise.
10139 * thread-db.c (any_thread_of): Likewise.
10140 * tracepoint.c (same_process_p): Likewise.
10141 (match_blocktype): Likewise.
10142 (build_traceframe_info_xml): Likewise.
10143
224c3ddb
SM
101442015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10145
10146 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10147 assignment.
10148 (gdb_unparse_agent_expr): Likewise.
10149 * hostio.c (require_data): Likewise.
10150 (handle_pread): Likewise.
10151 * linux-low.c (disable_regset): Likewise.
10152 (fetch_register): Likewise.
10153 (store_register): Likewise.
10154 (get_dynamic): Likewise.
10155 (linux_qxfer_libraries_svr4): Likewise.
10156 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10157 (set_fast_tracepoint_jump): Likewise.
10158 (uninsert_fast_tracepoint_jumps_at): Likewise.
10159 (reinsert_fast_tracepoint_jumps_at): Likewise.
10160 (validate_inserted_breakpoint): Likewise.
10161 (clone_agent_expr): Likewise.
10162 * regcache.c (init_register_cache): Likewise.
10163 * remote-utils.c (putpkt_binary_1): Likewise.
10164 (decode_M_packet): Likewise.
10165 (decode_X_packet): Likewise.
10166 (look_up_one_symbol): Likewise.
10167 (relocate_instruction): Likewise.
10168 (monitor_output): Likewise.
10169 * server.c (handle_search_memory): Likewise.
10170 (handle_qxfer_exec_file): Likewise.
10171 (handle_qxfer_libraries): Likewise.
10172 (handle_qxfer): Likewise.
10173 (handle_query): Likewise.
10174 (handle_v_cont): Likewise.
10175 (handle_v_run): Likewise.
10176 (captured_main): Likewise.
10177 * target.c (write_inferior_memory): Likewise.
10178 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10179 * tracepoint.c (init_trace_buffer): Likewise.
10180 (add_tracepoint_action): Likewise.
10181 (add_traceframe): Likewise.
10182 (add_traceframe_block): Likewise.
10183 (cmd_qtdpsrc): Likewise.
10184 (cmd_qtdv): Likewise.
10185 (cmd_qtstatus): Likewise.
10186 (response_source): Likewise.
10187 (response_tsv): Likewise.
10188 (cmd_qtnotes): Likewise.
10189 (gdb_collect): Likewise.
10190 (initialize_tracepoint): Likewise.
10191
afbe19f8
PL
101922015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10193
10194 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10195 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10196 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10197 <NOP>: New.
10198 (enum aarch64_condition_codes): New enum.
10199 (w0): New static global.
10200 (fp): Likewise.
10201 (lr): Likewise.
10202 (struct aarch64_memory_operand) <type>: New
10203 MEMORY_OPERAND_POSTINDEX type.
10204 (postindex_memory_operand): New helper function.
10205 (emit_ret): New function.
10206 (emit_load_store_pair): New function, factored out of emit_stp
10207 with support for MEMORY_OPERAND_POSTINDEX.
10208 (emit_stp): Rewrite using emit_load_store_pair.
10209 (emit_ldp): New function.
10210 (emit_load_store): Likewise.
10211 (emit_ldr): Mention post-index instruction in comment.
10212 (emit_ldrh): New function.
10213 (emit_ldrb): New function.
10214 (emit_ldrsw): Mention post-index instruction in comment.
10215 (emit_str): Likewise.
10216 (emit_subs): New function.
10217 (emit_cmp): Likewise.
10218 (emit_and): Likewise.
10219 (emit_orr): Likewise.
10220 (emit_orn): Likewise.
10221 (emit_eor): Likewise.
10222 (emit_mvn): Likewise.
10223 (emit_lslv): Likewise.
10224 (emit_lsrv): Likewise.
10225 (emit_asrv): Likewise.
10226 (emit_mul): Likewise.
10227 (emit_sbfm): Likewise.
10228 (emit_sbfx): Likewise.
10229 (emit_ubfm): Likewise.
10230 (emit_ubfx): Likewise.
10231 (emit_csinc): Likewise.
10232 (emit_cset): Likewise.
10233 (emit_nop): Likewise.
10234 (emit_ops_insns): New helper function.
10235 (emit_pop): Likewise.
10236 (emit_push): Likewise.
10237 (aarch64_emit_prologue): New function.
10238 (aarch64_emit_epilogue): Likewise.
10239 (aarch64_emit_add): Likewise.
10240 (aarch64_emit_sub): Likewise.
10241 (aarch64_emit_mul): Likewise.
10242 (aarch64_emit_lsh): Likewise.
10243 (aarch64_emit_rsh_signed): Likewise.
10244 (aarch64_emit_rsh_unsigned): Likewise.
10245 (aarch64_emit_ext): Likewise.
10246 (aarch64_emit_log_not): Likewise.
10247 (aarch64_emit_bit_and): Likewise.
10248 (aarch64_emit_bit_or): Likewise.
10249 (aarch64_emit_bit_xor): Likewise.
10250 (aarch64_emit_bit_not): Likewise.
10251 (aarch64_emit_equal): Likewise.
10252 (aarch64_emit_less_signed): Likewise.
10253 (aarch64_emit_less_unsigned): Likewise.
10254 (aarch64_emit_ref): Likewise.
10255 (aarch64_emit_if_goto): Likewise.
10256 (aarch64_emit_goto): Likewise.
10257 (aarch64_write_goto_address): Likewise.
10258 (aarch64_emit_const): Likewise.
10259 (aarch64_emit_call): Likewise.
10260 (aarch64_emit_reg): Likewise.
10261 (aarch64_emit_pop): Likewise.
10262 (aarch64_emit_stack_flush): Likewise.
10263 (aarch64_emit_zero_ext): Likewise.
10264 (aarch64_emit_swap): Likewise.
10265 (aarch64_emit_stack_adjust): Likewise.
10266 (aarch64_emit_int_call_1): Likewise.
10267 (aarch64_emit_void_call_2): Likewise.
10268 (aarch64_emit_eq_goto): Likewise.
10269 (aarch64_emit_ne_goto): Likewise.
10270 (aarch64_emit_lt_goto): Likewise.
10271 (aarch64_emit_le_goto): Likewise.
10272 (aarch64_emit_gt_goto): Likewise.
10273 (aarch64_emit_ge_got): Likewise.
10274 (aarch64_emit_ops_impl): New static global variable.
10275 (aarch64_emit_ops): New target function, return
10276 &aarch64_emit_ops_impl.
10277 (struct linux_target_ops): Install it.
10278
bb903df0
PL
102792015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10280
10281 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10282 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10283 aarch64-ipa.o.
10284 * linux-aarch64-ipa.c: New file.
10285 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10286 and endian.h.
10287 (aarch64_get_thread_area): New target method.
10288 (extract_signed_bitfield): New helper function.
10289 (aarch64_decode_ldr_literal): New function.
10290 (enum aarch64_opcodes): New enum.
10291 (struct aarch64_register): New struct.
10292 (struct aarch64_operand): New struct.
10293 (x0): New static global.
10294 (x1): Likewise.
10295 (x2): Likewise.
10296 (x3): Likewise.
10297 (x4): Likewise.
10298 (w2): Likewise.
10299 (ip0): Likewise.
10300 (sp): Likewise.
10301 (xzr): Likewise.
10302 (aarch64_register): New helper function.
10303 (register_operand): Likewise.
10304 (immediate_operand): Likewise.
10305 (struct aarch64_memory_operand): New struct.
10306 (offset_memory_operand): New helper function.
10307 (preindex_memory_operand): Likewise.
10308 (enum aarch64_system_control_registers): New enum.
10309 (ENCODE): New macro.
10310 (emit_insn): New helper function.
10311 (emit_b): New function.
10312 (emit_bcond): Likewise.
10313 (emit_cb): Likewise.
10314 (emit_tb): Likewise.
10315 (emit_blr): Likewise.
10316 (emit_stp): Likewise.
10317 (emit_ldp_q_offset): Likewise.
10318 (emit_stp_q_offset): Likewise.
10319 (emit_load_store): Likewise.
10320 (emit_ldr): Likewise.
10321 (emit_ldrsw): Likewise.
10322 (emit_str): Likewise.
10323 (emit_ldaxr): Likewise.
10324 (emit_stxr): Likewise.
10325 (emit_stlr): Likewise.
10326 (emit_data_processing_reg): Likewise.
10327 (emit_data_processing): Likewise.
10328 (emit_add): Likewise.
10329 (emit_sub): Likewise.
10330 (emit_mov): Likewise.
10331 (emit_movk): Likewise.
10332 (emit_mov_addr): Likewise.
10333 (emit_mrs): Likewise.
10334 (emit_msr): Likewise.
10335 (emit_sevl): Likewise.
10336 (emit_wfe): Likewise.
10337 (append_insns): Likewise.
10338 (can_encode_int32_in): New helper function.
10339 (aarch64_relocate_instruction): New function.
10340 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10341 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10342 (struct linux_target_ops): Install aarch64_get_thread_area,
10343 aarch64_install_fast_tracepoint_jump_pad and
10344 aarch64_get_min_fast_tracepoint_insn_len.
10345
787749ea
PL
103462015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10347
10348 * Makefile.in (aarch64-insn.o): New rule.
10349 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10350
9812b2e6
YQ
103512015-09-21 Yao Qi <yao.qi@linaro.org>
10352
10353 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10354
18fe412b
YQ
103552015-09-21 Yao Qi <yao.qi@linaro.org>
10356
10357 * tracepoint.c (max_jump_pad_size): Remove.
10358
a0cc84cd
YQ
103592015-09-18 Yao Qi <yao.qi@linaro.org>
10360
10361 * linux-aarch64-low.c: Don't include sys/uio.h.
10362 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10363
d78908cf
WW
103642015-09-16 Wei-cheng Wang <cole945@gmail.com>
10365
10366 * tracepoint.c (eval_result_type): Change prototype.
10367 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10368
d57e0d50
PA
103692015-09-15 Pedro Alves <palves@redhat.com>
10370
10371 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10372 Check whether to report exec events instead of checking whether
10373 multiprocess is enabled.
10374
5a676acc
PA
103752015-09-15 Pedro Alves <palves@redhat.com>
10376
10377 PR remote/18965
10378 * remote-utils.c (prepare_resume_reply): Merge
10379 TARGET_WAITKIND_VFORK_DONE switch case with the
10380 TARGET_WAITKIND_FORKED case.
10381
7c5d0fad
YQ
103822015-09-15 Yao Qi <yao.qi@linaro.org>
10383
10384 * server.c (handle_query): Check string comparison using
10385 "else if" instead of "if".
10386
750ce8d1
YQ
103872015-09-15 Yao Qi <yao.qi@linaro.org>
10388
10389 * server.c (vCont_supported): New global variable.
10390 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10391 matches. Append ";vContSupported+" to own_buf.
10392 (handle_v_requests): Append ";s;S" to own_buf if target supports
10393 hardware single step or vCont_supported is false.
10394 (capture_main): Set vCont_supported to zero.
10395
70b90b91
YQ
103962015-09-15 Yao Qi <yao.qi@linaro.org>
10397
10398 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10399 it to ...
10400 (linux_supports_hardware_single_step): ... New function.
10401 (linux_target_ops): Update.
10402 * lynx-low.c (lynx_target_ops): Set field
10403 supports_hardware_single_step to target_can_do_hardware_single_step.
10404 * nto-low.c (nto_target_ops): Likewise.
10405 * spu-low.c (spu_target_ops): Likewise.
10406 * win32-low.c (win32_target_ops): Likewise.
10407 * target.c (target_can_do_hardware_single_step): New function.
10408 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10409 Remove. <supports_hardware_single_step>: New field.
10410 (target_supports_conditional_breakpoints): Remove.
10411 (target_supports_hardware_single_step): New macro.
10412 (target_can_do_hardware_single_step): Declare.
10413 * server.c (handle_query): Use target_supports_hardware_single_step
10414 instead of target_supports_conditional_breakpoints.
10415
ade90bde
YQ
104162015-09-15 Yao Qi <yao.qi@linaro.org>
10417
10418 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10419 function.
10420 (struct linux_target_ops the_low_target): Install
10421 aarch64_linux_siginfo_fixup.
10422
94585166
DB
104232015-09-11 Don Breazeal <donb@codesourcery.com>
10424 Luis Machado <lgustavo@codesourcery.com>
10425
10426 * linux-low.c (linux_mourn): Static declaration.
10427 (linux_arch_setup): Move in front of
10428 handle_extended_wait.
10429 (linux_arch_setup_thread): New function.
10430 (handle_extended_wait): Handle exec events. Call
10431 linux_arch_setup_thread. Make event_lwp argument a
10432 pointer-to-a-pointer.
10433 (check_zombie_leaders): Do not check stopped threads.
10434 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10435 (linux_low_filter_event): Add lwp and thread for exec'ing
10436 non-leader thread if leader thread has been deleted.
10437 Refactor code into linux_arch_setup_thread and call it.
10438 Pass child lwp pointer by reference to handle_extended_wait.
10439 (linux_wait_for_event_filtered): Update comment.
10440 (linux_wait_1): Prevent clobbering exec event status.
10441 (linux_supports_exec_events): New function.
10442 (linux_target_ops) <supports_exec_events>: Initialize new member.
10443 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10444 new member.
10445 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10446 * server.c (report_exec_events): New global variable.
10447 (handle_query): Handle qSupported query for exec-events feature.
10448 (captured_main): Initialize report_exec_events.
10449 * server.h (report_exec_events): Declare new global variable.
10450 * target.h (struct target_ops) <supports_exec_events>: New
10451 member.
10452 (target_supports_exec_events): New macro.
10453 * win32-low.c (win32_target_ops) <supports_exec_events>:
10454 Initialize new member.
10455
0568462b
MM
104562015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10457
10458 * linux-low.c (linux_low_enable_btrace): Remove.
10459 (linux_target_ops): Replace linux_low_enable_btrace with
10460 linux_enable_btrace.
10461
39edd165
YQ
104622015-09-03 Yao Qi <yao.qi@linaro.org>
10463
10464 * linux-aarch64-low.c (aarch64_insert_point): Call
10465 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10466 returns true.
10467
1db33b5a
UW
104682015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10469
10470 * linux-low.c (check_stopped_by_breakpoint): Use
10471 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10472
ab290430
PA
104732015-08-27 Pedro Alves <palves@redhat.com>
10474
10475 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10476
8d749320
SM
104772015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10478
6711b7f8
SM
10479 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10480 the XNEW-family equivalent.
8d749320
SM
10481 (compile_bytecodes): Likewise.
10482 * dll.c (loaded_dll): Likewise.
10483 * event-loop.c (append_callback_event): Likewise.
10484 (create_file_handler): Likewise.
10485 (create_file_event): Likewise.
10486 * hostio.c (handle_open): Likewise.
10487 * inferiors.c (add_thread): Likewise.
10488 (add_process): Likewise.
10489 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10490 * linux-arm-low.c (arm_new_process): Likewise.
10491 (arm_new_thread): Likewise.
10492 * linux-low.c (add_to_pid_list): Likewise.
10493 (linux_add_process): Likewise.
10494 (handle_extended_wait): Likewise.
10495 (add_lwp): Likewise.
10496 (enqueue_one_deferred_signal): Likewise.
10497 (enqueue_pending_signal): Likewise.
10498 (linux_resume_one_lwp_throw): Likewise.
10499 (linux_resume_one_thread): Likewise.
10500 (linux_read_memory): Likewise.
10501 (linux_write_memory): Likewise.
10502 * linux-mips-low.c (mips_linux_new_process): Likewise.
10503 (mips_linux_new_thread): Likewise.
10504 (mips_add_watchpoint): Likewise.
10505 * linux-x86-low.c (initialize_low_arch): Likewise.
10506 * lynx-low.c (lynx_add_process): Likewise.
10507 * mem-break.c (set_raw_breakpoint_at): Likewise.
10508 (set_breakpoint): Likewise.
10509 (add_condition_to_breakpoint): Likewise.
10510 (add_commands_to_breakpoint): Likewise.
10511 (clone_agent_expr): Likewise.
10512 (clone_one_breakpoint): Likewise.
10513 * regcache.c (new_register_cache): Likewise.
10514 * remote-utils.c (look_up_one_symbol): Likewise.
10515 * server.c (queue_stop_reply): Likewise.
10516 (start_inferior): Likewise.
10517 (queue_stop_reply_callback): Likewise.
10518 (handle_target_event): Likewise.
10519 * spu-low.c (fetch_ppc_memory): Likewise.
10520 (store_ppc_memory): Likewise.
10521 * target.c (set_target_ops): Likewise.
10522 * thread-db.c (thread_db_load_search): Likewise.
10523 (try_thread_db_load_1): Likewise.
10524 * tracepoint.c (add_tracepoint): Likewise.
10525 (add_tracepoint_action): Likewise.
10526 (create_trace_state_variable): Likewise.
10527 (cmd_qtdpsrc): Likewise.
10528 (cmd_qtro): Likewise.
10529 (add_while_stepping_state): Likewise.
10530 * win32-low.c (child_add_thread): Likewise.
10531 (get_image_name): Likewise.
10532
ed8b7b42
YQ
105332015-08-25 Yao Qi <yao.qi@linaro.org>
10534
10535 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10536
db3cb7cb
YQ
105372015-08-25 Yao Qi <yao.qi@linaro.org>
10538
10539 * Makefile.in (aarch64-linux.o): New rule.
10540 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10541 srv_tgtobj.
10542 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10543 (aarch64_init_debug_reg_state): Make it extern.
10544 (aarch64_linux_prepare_to_resume): Remove.
10545
f6011a1c
YQ
105462015-08-25 Yao Qi <yao.qi@linaro.org>
10547
10548 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10549 lwp_arch_private_info and ptid_of_lwp.
10550
88e2cf7e
YQ
105512015-08-25 Yao Qi <yao.qi@linaro.org>
10552
10553 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10554 Find proc_info by find_process_pid. All callers updated.
10555
5e35436e
YQ
105562015-08-25 Yao Qi <yao.qi@linaro.org>
10557
10558 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10559 Remove.
10560 (debug_reg_change_callback): Remove.
10561 (aarch64_notify_debug_reg_change): Remove.
10562
4a8a7965
YQ
105632015-08-25 Yao Qi <yao.qi@linaro.org>
10564
10565 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10566 Call current_lwp_ptid.
10567
32a271ee
YQ
105682015-08-25 Yao Qi <yao.qi@linaro.org>
10569
10570 * linux-aarch64-low.c (debug_reg_change_callback): Use
10571 debug_printf.
10572
0d51c8d7
YQ
105732015-08-25 Yao Qi <yao.qi@linaro.org>
10574
10575 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10576
31a43dd5
YQ
105772015-08-25 Yao Qi <yao.qi@linaro.org>
10578
10579 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10580
8ee52567
YQ
105812015-08-25 Yao Qi <yao.qi@linaro.org>
10582
10583 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10584 the code.
10585
ff3f0f45
YQ
105862015-08-25 Yao Qi <yao.qi@linaro.org>
10587
10588 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10589 Remove.
10590 (debug_reg_change_callback): Remove argument entry and add argument
10591 lwp. Remove local variable thread. Don't print thread id in the
10592 debugging output. Don't check whether pid of thread equals to pid.
10593 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10594 iterate_over_lwps instead find_inferior.
10595
3d40fbb5
PA
105962015-08-24 Pedro Alves <palves@redhat.com>
10597
10598 * inferiors.c (get_first_process): New function.
10599 * inferiors.h (get_first_process): New declaration.
10600 * remote-utils.c (read_ptid): Default to the first process in the
10601 list, instead of to the current thread's process.
10602
438e1e42
PA
106032015-08-24 Pedro Alves <palves@redhat.com>
10604
10605 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10606 * event-loop.c: Likewise.
10607 * remote-utils.c: Likewise.
10608 * tracepoint.c: Likewise.
10609
a8c6d4fc
PA
106102015-08-24 Pedro Alves <palves@redhat.com>
10611
10612 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10613 ptid_get_lwp.
10614
99b0bb12
PA
106152015-08-21 Pedro Alves <palves@redhat.com>
10616
10617 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10618 instead of literal 1.
10619
f8904751
PA
106202015-08-21 Pedro Alves <palves@redhat.com>
10621
10622 * tdesc.c (default_description): Explicitly zero-initialize.
10623
465a859e
PA
106242015-08-21 Pedro Alves <palves@redhat.com>
10625
10626 PR gdb/18749
10627 * inferiors.c (remove_thread): Discard any pending stop reply for
10628 this thread.
10629 * server.c (remove_all_on_match_pid): Rename to ...
10630 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10631 instead of a pid.
10632 (discard_queued_stop_replies): Change parameter to a ptid. Now
10633 extern.
10634 (handle_v_kill, kill_inferior_callback, captured_main)
10635 (process_serial_event): Adjust.
10636 * server.h (discard_queued_stop_replies): Declare.
10637
f0db101d
PA
106382015-08-21 Pedro Alves <palves@redhat.com>
10639
10640 * linux-low.c (wait_for_sigstop): Always switch to no thread
10641 selected if the previously current thread dies.
10642 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10643 process instead of the current thread's.
10644 * remote-utils.c (input_interrupt): Don't check if there's no
10645 current thread.
10646 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10647 current thread to the general thread fails, error out.
10648 (handle_qxfer_auxv, handle_qxfer_libraries)
10649 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10650 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10651 (handle_query): Check if there's a thread selected instead of
10652 checking whether there's any thread in the thread list.
10653 (handle_qxfer_threads, handle_qxfer_btrace)
10654 (handle_qxfer_btrace_conf): Don't error out early if there's no
10655 thread in the thread list.
10656 (handle_v_cont, myresume): Don't set the current thread to the
10657 continue thread.
10658 (process_serial_event) <Hg handling>: Also set thread_id if the
10659 previous general thread is still alive.
10660 (process_serial_event) <g/G handling>: If setting the current
10661 thread to the general thread fails, error out.
10662 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10663 thread's lwp instead of the current thread's.
10664 * target.c (set_desired_thread): If the desired thread was not
10665 found, leave the current thread pointing to NULL. Return an int
10666 (boolean) indicating success.
10667 * target.h (set_desired_thread): Change return type to int.
10668
40045d91
MF
106692015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10670
10671 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10672 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10673 #includes.
10674 (ps_get_thread_area): New function.
10675
45face3b
GB
106762015-08-19 Gary Benson <gbenson@redhat.com>
10677
10678 * hostio.c (handle_pread): Do not attempt to read more data
10679 than hostio_reply_with_data can fit in a packet.
10680
16d5f642
JB
106812015-08-18 Joel Brobecker <brobecker@adacore.com>
10682
10683 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10684
a738da3a
MF
106852015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10686
10687 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10688
33ebda9d
PA
106892015-08-06 Pedro Alves <palves@redhat.com>
10690
10691 * tracepoint.c (expr_eval_result): Now an int.
10692
a44892be
PA
106932015-08-06 Pedro Alves <palves@redhat.com>
10694
10695 * gdbthread.h (struct regcache): Forward declare.
10696 (struct thread_info) <regcache_data>: Now a struct regcache
10697 pointer.
10698 * inferiors.c (inferior_regcache_data)
10699 (set_inferior_regcache_data): Now work with struct regcache
10700 pointers.
10701 * inferiors.h (struct regcache): Forward declare.
10702 (inferior_regcache_data, set_inferior_regcache_data): Now work
10703 with struct regcache pointers.
10704 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10705 (free_register_cache_thread): Remove struct regcache pointer
10706 casts.
10707
608a1e46
PA
107082015-08-06 Pedro Alves <palves@redhat.com>
10709
10710 * server.c (captured_main): On error, print the exception message
10711 to stderr, and if run_once is set, throw a quit.
10712
f0ce0d3a
PA
107132015-08-06 Pedro Alves <palves@redhat.com>
10714
10715 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10716 the current thread.
10717
bf47e248
PA
107182015-08-06 Pedro Alves <palves@redhat.com>
10719
10720 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10721 reading beyond the passed in buffer length.
10722
b6b9ffcc
PL
107232015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10724
10725 * tracepoint.c (symbol_list) <required>: Remove.
10726
863d01bd
PA
107272015-08-06 Pedro Alves <palves@redhat.com>
10728
10729 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10730 count if stopping and suspending threads.
10731 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10732 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10733 (linux_detach): Complete an ongoing step-over.
10734 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10735 throughout.
10736 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10737 (linux_wait_1): If passing a signal to the inferior after
10738 finishing a step-over, unsuspend and re-resume all lwps. If we
10739 see a single-step event but the thread should be continuing, don't
10740 pass the trap to gdb.
10741 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10742 internal_error instead of gdb_assert.
10743 (enqueue_pending_signal): New function.
10744 (check_ptrace_stopped_lwp_gone): Add debug output.
10745 (start_step_over): Use internal_error instead of gdb_assert.
10746 (complete_ongoing_step_over): New function.
10747 (linux_resume_one_thread): Don't resume a suspended thread.
10748 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10749 it stepping.
10750
00db26fa
PA
107512015-08-06 Pedro Alves <palves@redhat.com>
10752
10753 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10754 (linux_thread_alive): Use lwp_is_marked_dead.
10755 (extended_event_reported): Delete.
10756 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10757 instead of extended_event_reported.
10758 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10759 as well.
10760 (lwp_is_marked_dead): New function.
10761 (lwp_running): Use lwp_is_marked_dead.
10762 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10763 comment.
10764
ad071a30
PA
107652015-08-06 Pedro Alves <palves@redhat.com>
10766
10767 * linux-low.c (linux_wait_1): Move fork event output out of the
10768 !report_to_gdb check. Pass event_child->waitstatus to
10769 target_waitstatus_to_string instead of ourstatus.
10770
524b57e6
YQ
107712015-08-04 Yao Qi <yao.qi@linaro.org>
10772
10773 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10774 if current_thread is 32 bit.
10775
6085d6f6
YQ
107762015-08-04 Yao Qi <yao.qi@linaro.org>
10777
10778 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10779 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10780 * server.c (extended_protocol): Remove "static".
10781 * server.h (extended_protocol): Declare it.
10782
8a7e4587
YQ
107832015-08-04 Yao Qi <yao.qi@linaro.org>
10784
10785 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10786 both aarch64 and aarch32.
10787 (aarch64_set_pc): Likewise.
10788
3b53ae99
YQ
107892015-08-04 Yao Qi <yao.qi@linaro.org>
10790
10791 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10792 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10793 arm-with-neon.xml to srv_xmlfiles.
10794 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10795 (is_64bit_tdesc): New function.
10796 (aarch64_linux_read_description): New function.
10797 (aarch64_arch_setup): Call aarch64_linux_read_description.
10798 (regs_info): Rename to regs_info_aarch64.
10799 (aarch64_regs_info): Return right regs_info.
10800 (initialize_low_arch): Call initialize_low_arch_aarch32.
10801
bd9e6534
YQ
108022015-08-04 Yao Qi <yao.qi@linaro.org>
10803
10804 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10805 * linux-aarch32-low.c: New file.
10806 * linux-aarch32-low.h: New file.
10807 * linux-arm-low.c (arm_fill_gregset): Move it to
10808 linux-aarch32-low.c.
10809 (arm_store_gregset): Likewise.
10810 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10811 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10812 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10813 (regs_info): Rename to regs_info_arm.
10814 (arm_regs_info): Return regs_info_aarch32 if
10815 have_ptrace_getregset is 1 and target description is
10816 arm_with_neon or arm_with_vfpv3.
10817 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10818 Call initialize_low_arch_aarch32 instead.
10819
ded48a5e
YQ
108202015-08-04 Yao Qi <yao.qi@linaro.org>
10821
10822 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10823 * linux-low.c: ... here.
10824 * linux-low.h (have_ptrace_getregset): Declare it.
10825
96e9210f
PA
108262015-08-04 Pedro Alves <palves@redhat.com>
10827
10828 * thread-db.c (struct thread_db): Use new typedefs.
10829 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10830 CHK calls.
10831 (disable_thread_event_reporting): Cast result of dlsym to
10832 destination function pointer type.
10833 (thread_db_mourn): Use td_ta_delete_ftype.
10834
af60a1ef
SL
108352015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10836
10837 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10838 arch variant.
10839 (CDX_BREAKPOINT): Define for R2.
10840 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10841 (the_low_target): Add comments.
10842
e8b41681
YQ
108432015-07-30 Yao Qi <yao.qi@linaro.org>
10844
10845 * linux-arm-low.c (arm_hwcap): Remove it.
10846 (arm_read_description): New local variable arm_hwcap. Don't
10847 set arm_hwcap to zero.
10848
89abb039
YQ
108492015-07-30 Yao Qi <yao.qi@linaro.org>
10850
10851 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10852 Use regcache->tdesc instead.
10853 (arm_store_wmmxregset): Likewise.
10854 (arm_fill_vfpregset): Likewise.
10855 (arm_store_vfpregset): Likewise.
10856
deca266c
YQ
108572015-07-30 Yao Qi <yao.qi@linaro.org>
10858
10859 * linux-arm-low.c: Include arch/arm.h.
10860 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10861 (arm_store_gregset): Likewise.
10862
aa58a496
SM
108632015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10864
10865 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10866 ptrace's 4th parameter.
10867
50904b25
YQ
108682015-07-27 Yao Qi <yao.qi@linaro.org>
10869
10870 * configure.srv (case aarch64*-*-linux*): Don't set
10871 srv_linux_usrregs.
10872
5826e159
PA
108732015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10874
10875 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10876 sys/ptrace.h.
10877 * linux-arm-low.c: Likewise.
10878 * linux-cris-low.c: Likewise.
10879 * linux-crisv32-low.c: Likewise.
10880 * linux-low.c: Likewise.
10881 * linux-m68k-low.c: Likewise.
10882 * linux-mips-low.c: Likewise.
10883 * linux-nios2-low.c: Likewise.
10884 * linux-s390-low.c: Likewise.
10885 * linux-sparc-low.c: Likewise.
10886 * linux-tic6x-low.c: Likewise.
10887 * linux-tile-low.c: Likewise.
10888 * linux-x86-low.c: Likewise.
10889
54019719
PA
108902015-07-24 Pedro Alves <palves@redhat.com>
10891
10892 * config.in: Regenerate.
10893 * configure: Regenerate.
10894
eb7aa561
PA
108952015-07-24 Pedro Alves <palves@redhat.com>
10896
10897 * acinclude.m4: Include ../ptrace.m4.
10898 * configure.ac: Call GDB_AC_PTRACE.
10899 * config.in, configure: Regenerate.
10900
55d7b841
YQ
109012015-07-24 Yao Qi <yao.qi@linaro.org>
10902
10903 * linux-low.c (linux_create_inferior): Remove setting to
10904 proc->priv->new_inferior.
10905 (linux_attach): Likewise.
10906 (linux_low_filter_event): Likewise.
10907 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10908
c06cbd92
YQ
109092015-07-24 Yao Qi <yao.qi@linaro.org>
10910
10911 * linux-low.c (linux_arch_setup): New function.
10912 (linux_low_filter_event): If proc->tdesc is NULL and
10913 proc->attached is true, call the_low_target.arch_setup.
10914 Otherwise, keep status pending, and return.
10915 (linux_resume_one_lwp_throw): Don't call get_pc if
10916 thread->while_stepping isn't NULL. Don't call
10917 get_thread_regcache if proc->tdesc is NULL.
10918 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10919 (linux_target_ops): Install arch_setup.
10920 * server.c (start_inferior): Call the_target->arch_setup.
10921 * target.h (struct target_ops) <arch_setup>: New field.
10922 (target_arch_setup): New marco.
10923 * lynx-low.c (lynx_target_ops): Update.
10924 * nto-low.c (nto_target_ops): Update.
10925 * spu-low.c (spu_target_ops): Update.
10926 * win32-low.c (win32_target_ops): Update.
10927
5ae3ebba
YQ
109282015-07-24 Yao Qi <yao.qi@linaro.org>
10929
10930 * linux-low.c (linux_add_process): Don't set
10931 proc->priv->new_inferior.
10932 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10933 (linux_attach): Likewise.
10934
eb97750b
YQ
109352015-07-24 Yao Qi <yao.qi@linaro.org>
10936
10937 * server.c (start_inferior): Code refactor.
10938
51aee833
YQ
109392015-07-24 Yao Qi <yao.qi@linaro.org>
10940
10941 * server.c (process_serial_event): Set general_thread.
10942
af1b22f3
YQ
109432015-07-21 Yao Qi <yao.qi@linaro.org>
10944
10945 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10946 aarch64_linux_get_debug_reg_capacity.
10947
554717a3
YQ
109482015-07-17 Yao Qi <yao.qi@linaro.org>
10949
10950 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10951 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10952 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10953 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10954 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10955 (AARCH64_HWP_ALIGNMENT): Likewise.
10956 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10957 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10958 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10959 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10960 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10961 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10962 (struct aarch64_debug_reg_state): Likewise.
10963 (struct arch_lwp_info): Likewise.
10964 (aarch64_align_watchpoint): Likewise.
10965 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10966 (aarch64_watchpoint_length): Likewise.
10967 (aarch64_point_encode_ctrl_reg): Likewise
10968 (aarch64_point_is_aligned): Likewise.
10969 (aarch64_align_watchpoint): Likewise.
10970 (aarch64_linux_set_debug_regs):
10971 (aarch64_dr_state_insert_one_point): Likewise.
10972 (aarch64_dr_state_remove_one_point): Likewise.
10973 (aarch64_handle_breakpoint): Likewise.
10974 (aarch64_handle_aligned_watchpoint): Likewise.
10975 (aarch64_handle_unaligned_watchpoint): Likewise.
10976 (aarch64_handle_watchpoint): Likewise.
10977
c67ca4de
YQ
109782015-07-17 Yao Qi <yao.qi@linaro.org>
10979
10980 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10981 and don't aarch64_get_debug_reg_state. All callers update.
10982 (aarch64_handle_aligned_watchpoint): Likewise.
10983 (aarch64_handle_unaligned_watchpoint): Likewise.
10984 (aarch64_handle_watchpoint): Likewise.
10985 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10986 (aarch64_remove_point): Likewise.
10987
25abf979
YQ
109882015-07-17 Yao Qi <yao.qi@linaro.org>
10989
10990 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10991 debug_printf.
10992 (aarch64_handle_unaligned_watchpoint): Likewise.
10993
db1ff28b
JK
109942015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10995
10996 Revert the previous 3 commits:
10997 Move gdb_regex* to common/
10998 Move linux_find_memory_regions_full & co.
10999 gdbserver build-id attribute generator
11000
700ca40f
JK
110012015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11002 Jan Kratochvil <jan.kratochvil@redhat.com>
11003
11004 gdbserver build-id attribute generator.
11005 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11006 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11007 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11008 (find_phdr): New.
11009 (get_dynamic): Use find_pdhr to traverse program headers.
11010 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11011 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11012 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11013 (get_hex_build_id): New.
11014 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11015 to reply XML document.
11016
9904185c
JK
110172015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11018 Jan Kratochvil <jan.kratochvil@redhat.com>
11019
11020 * target.c: Include target/target-utils.h and fcntl.h.
11021 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11022 (target_fileio_read_stralloc): New functions.
11023
6e5b4429
JK
110242015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11025
11026 * Makefile.in (OBS): Add gdb_regex.o.
11027 (gdb_regex.o): New.
11028 * config.in: Rebuilt.
11029 * configure: Rebuilt.
11030
ddc98fbf
JK
110312015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11032 Jan Kratochvil <jan.kratochvil@redhat.com>
11033
11034 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11035 * Makefile.in (OBS): Add target-utils.o.
11036 (linux-maps.o, target-utils.o): New.
11037 * configure.srv (srv_linux_obj): Add linux-maps.o.
11038
e57bb7a0
PL
110392015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11040
11041 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11042 function, return 1.
11043 (the_low_target): Install it.
11044
586b02a9
PA
110452015-07-14 Pedro Alves <palves@redhat.com>
11046
11047 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11048 Instead, ignore ECHILD, and throw an error for other errnos.
11049
58c1b36c
PA
110502015-07-10 Pedro Alves <palves@redhat.com>
11051
11052 * event-loop.c (struct callback_event) <data>: Change type to
11053 gdb_client_data instance instead of gdb_client_data pointer.
11054 (append_callback_event): Adjust.
11055
421530db
PL
110562015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11057
11058 * linux-aarch64-low.c: Add comments for each linux_target_ops
11059 method. Remove comments already covered in target_ops and
11060 linux_target_ops definitions.
11061 (the_low_target): Add comments for each unimplemented method.
11062
c2d65f38
YQ
110632015-07-09 Yao Qi <yao.qi@linaro.org>
11064
11065 * linux-aarch64-low.c (aarch64_regmap): Remove.
11066 (aarch64_usrregs_info): Remove.
11067 (regs_info): Set field usrregs to NULL.
11068
b20a6524
MM
110692015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11070
11071 * linux-low.c: Include "rsp-low.h"
11072 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11073 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11074 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11075 (handle_btrace_enable_pt): New.
11076 (handle_btrace_general_set): Support "pt".
11077 (handle_btrace_conf_general_set): Support "pt:size".
11078
96c97461
PL
110792015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11080
11081 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11082 Z_PACKET_SW_BP.
11083
37d66942
PL
110842015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11085
11086 * linux-aarch64-low.c: Remove comment about endianness.
11087 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11088 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11089 memcmp.
11090
dc06243f
GB
110912015-06-24 Gary Benson <gbenson@redhat.com>
11092
11093 * linux-i386-ipa.c (stdint.h): Do not include.
11094 * lynx-i386-low.c (stdint.h): Likewise.
11095 * lynx-ppc-low.c (stdint.h): Likewise.
11096 * mem-break.c (stdint.h): Likewise.
11097 * thread-db.c (stdint.h): Likewise.
11098 * tracepoint.c (stdint.h): Likewise.
11099 * win32-low.c (stdint.h): Likewise.
11100
124e13d9
SM
111012015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11102
11103 * server.c (write_qxfer_response): Update call to
11104 remote_escape_output.
11105
909c2cda
JK
111062015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11107 Jan Kratochvil <jan.kratochvil@redhat.com>
11108
11109 Merge multiple hex conversions.
11110 * gdbreplay.c (tohex): Rename to 'fromhex'.
11111 (logchar): Use fromhex.
11112
24c05f46
JK
111132015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11114
11115 * server.c (handle_qxfer_libraries): Set `version' attribute for
11116 <library-list>.
11117
14d2069a
GB
111182015-06-10 Gary Benson <gbenson@redhat.com>
11119
11120 * target.h (struct target_ops) <multifs_open>: New field.
11121 <multifs_unlink>: Likewise.
11122 <multifs_readlink>: Likewise.
11123 * linux-low.c (nat/linux-namespaces.h): New include.
11124 (linux_target_ops): Initialize the_target->multifs_open,
11125 the_target->multifs_unlink and the_target->multifs_readlink.
11126 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11127 * hostio.c (hostio_fs_pid): New static variable.
11128 (hostio_handle_new_gdb_connection): New function.
11129 (handle_setfs): Likewise.
11130 (handle_open): Use the_target->multifs_open as appropriate.
11131 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11132 (handle_readlink): Use the_target->multifs_readlink as
11133 appropriate.
11134 (handle_vFile): Handle vFile:setfs packets.
11135 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11136 after target_handle_new_gdb_connection.
11137
4b8b5e72
GB
111382015-06-10 Gary Benson <gbenson@redhat.com>
11139
11140 * configure.ac (AC_CHECK_FUNCS): Add setns.
11141 * config.in: Regenerate.
11142 * configure: Likewise.
11143 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11144 (linux-namespaces.o): New rule.
11145 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11146
3ac2e371
GB
111472015-06-09 Gary Benson <gbenson@redhat.com>
11148
11149 * hostio.c (handle_open): Process mode argument with
11150 fileio_to_host_mode.
11151
ca9b78ce
YQ
111522015-06-01 Yao Qi <yao.qi@linaro.org>
11153
11154 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11155 * linux-x86-low.c: Likewise.
11156
bfacd19d
DB
111572015-05-28 Don Breazeal <donb@codesourcery.com>
11158
11159 * linux-low.c (handle_extended_wait): Initialize
11160 thread_info.last_resume_kind for new fork children.
11161
452003ef
PA
111622015-05-15 Pedro Alves <palves@redhat.com>
11163
11164 * target.h (target_handle_new_gdb_connection): Rewrite using if
11165 wrapped in do/while.
11166
1041a03c
JB
111672015-05-14 Joel Brobecker <brobecker@adacore.com>
11168
11169 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11170 * configure, config.in: Regenerate.
11171 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11172 Declare typedef.
11173
c269dbdb
DB
111742015-05-12 Don Breazeal <donb@codesourcery.com>
11175
11176 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11177 PTRACE_EVENT_VFORK_DONE.
11178 (linux_low_ptrace_options, extended_event_reported): Add vfork
11179 events.
11180 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11181 and "vforkdone" for RSP 'T' Stop Reply Packet.
11182 * server.h (report_vfork_events): Declare
11183 global variable.
11184
3a8a0396
DB
111852015-05-12 Don Breazeal <donb@codesourcery.com>
11186
11187 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11188 (the_low_target) <new_fork>: Initialize new member.
11189 * linux-arm-low.c (arm_new_fork): New function.
11190 (the_low_target) <new_fork>: Initialize new member.
11191 * linux-low.c (handle_extended_wait): Call new target function
11192 new_fork.
11193 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11194 * linux-mips-low.c (mips_add_watchpoint): New function
11195 extracted from mips_insert_point.
11196 (the_low_target) <new_fork>: Initialize new member.
11197 (mips_linux_new_fork): New function.
11198 (mips_insert_point): Call mips_add_watchpoint.
11199 * linux-x86-low.c (x86_linux_new_fork): New function.
11200 (the_low_target) <new_fork>: Initialize new member.
11201
de0d863e
DB
112022015-05-12 Don Breazeal <donb@codesourcery.com>
11203
11204 * linux-low.c (handle_extended_wait): Implement return value,
11205 rename argument 'event_child' to 'event_lwp', handle
11206 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11207 (linux_low_ptrace_options): New function.
11208 (linux_low_filter_event): Call linux_low_ptrace_options,
11209 use different argument fo linux_enable_event_reporting,
11210 use return value from handle_extended_wait.
11211 (extended_event_reported): New function.
11212 (linux_wait_1): Call extended_event_reported and set
11213 status to report fork events.
11214 (linux_write_memory): Add pid to debug message.
11215 (reset_lwp_ptrace_options_callback): New function.
11216 (linux_handle_new_gdb_connection): New function.
11217 (linux_target_ops): Initialize new structure member.
11218 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11219 * lynx-low.c: Initialize new structure member.
11220 * remote-utils.c (prepare_resume_reply): Implement stop reason
11221 "fork" for "T" stop message.
11222 * server.c (handle_query): Call handle_new_gdb_connection.
11223 * server.h (report_fork_events): Declare global flag.
11224 * target.h (struct target_ops) <handle_new_gdb_connection>:
11225 New member.
11226 (target_handle_new_gdb_connection): New macro.
11227 * win32-low.c: Initialize new structure member.
11228
ddcbc397
DB
112292015-05-12 Don Breazeal <donb@codesourcery.com>
11230
11231 * mem-break.c (APPEND_TO_LIST): Define macro.
11232 (clone_agent_expr): New function.
11233 (clone_one_breakpoint): New function.
11234 (clone_all_breakpoints): New function.
11235 * mem-break.h: Declare new functions.
11236
89245bc0
DB
112372015-05-12 Don Breazeal <donb@codesourcery.com>
11238
11239 * linux-low.c (linux_supports_fork_events): New function.
11240 (linux_supports_vfork_events): New function.
11241 (linux_target_ops): Initialize new structure members.
11242 (initialize_low): Call linux_check_ptrace_features.
11243 * lynx-low.c (lynx_target_ops): Initialize new structure
11244 members.
11245 * server.c (report_fork_events, report_vfork_events):
11246 New global flags.
11247 (handle_query): Add new features to qSupported packet and
11248 response.
11249 (captured_main): Initialize new global variables.
11250 * target.h (struct target_ops) <supports_fork_events>:
11251 New member.
11252 <supports_vfork_events>: New member.
11253 (target_supports_fork_events): New macro.
11254 (target_supports_vfork_events): New macro.
11255 * win32-low.c (win32_target_ops): Initialize new structure
11256 members.
11257
835205d0
GB
112582015-05-12 Gary Benson <gbenson@redhat.com>
11259
11260 * server.c (handle_qxfer_exec_file): Use current process
11261 if annex is empty.
11262
21e94bd9
SL
112632015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11264
11265 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11266 Remove HAVE_PTRACE_GETREGS conditionals.
11267 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11268 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11269
45614f15
YQ
112702015-05-08 Yao Qi <yao.qi@linaro.org>
11271
11272 * linux-low.c (linux_supports_conditional_breakpoints): New
11273 function.
11274 (linux_target_ops): Install new target method.
11275 * lynx-low.c (lynx_target_ops): Install NULL hook for
11276 supports_conditional_breakpoints.
11277 * nto-low.c (nto_target_ops): Likewise.
11278 * spu-low.c (spu_target_ops): Likewise.
11279 * win32-low.c (win32_target_ops): Likewise.
11280 * server.c (handle_query): Check
11281 target_supports_conditional_breakpoints.
11282 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11283 New field.
11284 (target_supports_conditional_breakpoints): New macro.
11285
80ad801e
PA
112862015-05-06 Pedro Alves <palves@redhat.com>
11287
11288 PR server/18081
11289 * server.c (start_inferior): If the process exits, mourn it.
11290
819843c7
GB
112912015-04-21 Gary Benson <gbenson@redhat.com>
11292
11293 * hostio.c (fileio_open_flags_to_host): Factored out to
11294 fileio_to_host_openflags in common/fileio.c. Single use
11295 updated.
11296
a2d5a9d7
MF
112972015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11298
11299 * linux-xtensa-low.c (xtensa_fill_gregset)
11300 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11301 XCHAL_HAVE_LOOP.
11302
deb44829
MF
113032015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11304
11305 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11306 (regs_info): Replace usrregs pointer with NULL.
11307
e57f1de3
GB
113082015-04-17 Gary Benson <gbenson@redhat.com>
11309
11310 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11311 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11312 * server.c (handle_qxfer_exec_file): New function.
11313 (qxfer_packets): Add exec-file entry.
11314 (handle_query): Report qXfer:exec-file:read as supported packet.
11315
62828379
RN
113162015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11317
11318 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11319
b88bb450
GB
113202015-04-09 Gary Benson <gbenson@redhat.com>
11321
11322 * hostio-errno.c (errno_to_fileio_error): Remove function.
11323 Update caller to use remote_fileio_to_fio_error.
11324
c8f4bfdd
YQ
113252015-04-09 Yao Qi <yao.qi@linaro.org>
11326
11327 * linux-low.c (linux_insert_point): Call
11328 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11329 (linux_remove_point): Call remove_memory_breakpoint if type is
11330 raw_bkpt_type_sw.
11331 * linux-x86-low.c (x86_insert_point): Don't call
11332 insert_memory_breakpoint.
11333 (x86_remove_point): Don't call remove_memory_breakpoint.
11334
41f98f02
PA
113352015-04-01 Pedro Alves <palves@redhat.com>
11336 Cleber Rosa <crosa@redhat.com>
11337
11338 * server.c (gdbserver_usage): Reorganize and extend the usage
11339 message.
11340
2bf6fb9d
PA
113412015-03-24 Pedro Alves <palves@redhat.com>
11342
11343 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11344 output. Also dump TRAP_TRACE.
11345 (linux_low_filter_event): In debug output, distinguish a
11346 resume_stop SIGSTOP from a delayed SIGSTOP.
11347
369f6daa
GB
113482015-03-24 Gary Benson <gbenson@redhat.com>
11349
11350 * linux-x86-low.c (x86_linux_new_thread): Moved to
11351 nat/x86-linux.c.
11352 (x86_linux_prepare_to_resume): Likewise.
11353
8e5d4070
GB
113542015-03-24 Gary Benson <gbenson@redhat.com>
11355
11356 * Makefile.in (x86-linux-dregs.o): New rule.
11357 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11358 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11359 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11360 (x86_linux_dr_get): Likewise.
11361 (x86_linux_dr_set): Likewise.
11362 (update_debug_registers_callback): Likewise.
11363 (x86_linux_dr_set_addr): Likewise.
11364 (x86_linux_dr_get_addr): Likewise.
11365 (x86_linux_dr_set_control): Likewise.
11366 (x86_linux_dr_get_control): Likewise.
11367 (x86_linux_dr_get_status): Likewise.
11368 (x86_linux_update_debug_registers): Likewise.
11369
2b95d440
GB
113702015-03-24 Gary Benson <gbenson@redhat.com>
11371
11372 * linux-x86-low.c (x86_linux_update_debug_registers):
11373 New function, factored out from...
11374 (x86_linux_prepare_to_resume): ...this.
11375
14b0bc68
GB
113762015-03-24 Gary Benson <gbenson@redhat.com>
11377
11378 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11379 (x86_linux_dr_set): Likewise.
11380 (update_debug_registers_callback): Likewise.
11381 (x86_linux_dr_set_addr): Likewise.
11382 (x86_linux_dr_get_addr): Likewise.
11383 (x86_linux_dr_set_control): Likewise.
11384 (x86_linux_dr_get_control): Likewise.
11385 (x86_linux_dr_get_status): Likewise.
11386 (x86_linux_prepare_to_resume): Likewise.
11387
5dfe6ca8
GB
113882015-03-24 Gary Benson <gbenson@redhat.com>
11389
11390 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11391 Use perror_with_name. Pass string through gettext.
11392 (x86_linux_dr_set): Likewise.
11393
d33472ad
GB
113942015-03-24 Gary Benson <gbenson@redhat.com>
11395
11396 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11397 (x86_linux_dr_set_addr): ...this.
11398 (x86_dr_low_get_addr): Rename to...
11399 (x86_linux_dr_get_addr): ...this.
11400 (x86_dr_low_set_control): Rename to...
11401 (x86_linux_dr_set_control): ...this.
11402 (x86_dr_low_get_control): Rename to...
11403 (x86_linux_dr_get_control): ...this.
11404 (x86_dr_low_get_status): Rename to...
11405 (x86_linux_dr_get_status): ...this.
11406 (x86_dr_low): Update with new function names.
11407
4b134ca1
GB
114082015-03-24 Gary Benson <gbenson@redhat.com>
11409
11410 * Makefile.in (x86-linux.o): New rule.
11411 * configure.srv: Add x86-linux.o to relevant targets.
11412 * linux-low.c (lwp_set_arch_private_info): New function.
11413 (lwp_arch_private_info): Likewise.
11414 * linux-x86-low.c: Include nat/x86-linux.h.
11415 (arch_lwp_info): Removed structure.
11416 (update_debug_registers_callback):
11417 Use lwp_set_debug_registers_changed.
11418 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11419 and lwp_set_debug_registers_changed.
11420 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11421
34c703da
GB
114222015-03-24 Gary Benson <gbenson@redhat.com>
11423
11424 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11425 * linux-arm-low.c (arm_new_thread): Likewise.
11426 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11427 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11428 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11429 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11430
cff068da
GB
114312015-03-24 Gary Benson <gbenson@redhat.com>
11432
11433 * linux-low.c (ptid_of_lwp): New function.
11434 (lwp_is_stopped): Likewise.
11435 (lwp_stop_reason): Likewise.
11436 * linux-x86-low.c (update_debug_registers_callback):
11437 Use lwp_is_stopped.
11438 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11439 lwp_stop_reason.
11440
b2f7c7e8
GB
114412015-03-24 Gary Benson <gbenson@redhat.com>
11442
11443 * linux-low.h (linux_stop_lwp): Remove declaration.
11444
6d4ee8c6
GB
114452015-03-24 Gary Benson <gbenson@redhat.com>
11446
11447 * linux-low.h: Include nat/linux-nat.h.
11448 * linux-low.c (iterate_over_lwps_args): New structure.
11449 (iterate_over_lwps_filter): New function.
11450 (iterate_over_lwps): Likewise.
11451 * linux-x86-low.c (update_debug_registers_callback):
11452 Update signature to what iterate_over_lwps expects.
11453 Remove PID check that iterate_over_lwps now performs.
11454 (x86_dr_low_set_addr): Use iterate_over_lwps.
11455 (x86_dr_low_set_control): Likewise.
11456
70a0bb6b
GB
114572015-03-24 Gary Benson <gbenson@redhat.com>
11458
11459 * linux-x86-low.c (x86_debug_reg_state): New function.
11460 (x86_linux_prepare_to_resume): Use the above.
11461
7b669087
GB
114622015-03-24 Gary Benson <gbenson@redhat.com>
11463
11464 * linux-low.c (current_lwp_ptid): New function.
11465 * linux-x86-low.c: Include nat/linux-nat.h.
11466 (x86_dr_low_get_addr): Use current_lwp_ptid.
11467 (x86_dr_low_get_control): Likewise.
11468 (x86_dr_low_get_status): Likewise.
11469
eef49a3d
PA
114702015-03-20 Pedro Alves <palves@redhat.com>
11471
11472 * tracepoint.c (cmd_qtstatus): Make "str" const.
11473
b2333d22
PA
114742015-03-20 Pedro Alves <palves@redhat.com>
11475
11476 * server.c (handle_general_set): Make "req_str" const.
11477
23f238d3
PA
114782015-03-19 Pedro Alves <palves@redhat.com>
11479
11480 * linux-low.c (linux_resume_one_lwp): Rename to ...
11481 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11482 instead call perror_with_name.
11483 (check_ptrace_stopped_lwp_gone): New function.
11484 (linux_resume_one_lwp): Reimplement as wrapper around
11485 linux_resume_one_lwp_throw that swallows errors if the LWP is
11486 gone.
11487
91baf43f
PA
114882015-03-19 Pedro Alves <palves@redhat.com>
11489
11490 * linux-low.c (count_events_callback, select_event_lwp_callback):
11491 No longer check whether the thread has resume_stop as last resume
11492 kind.
11493
8bf3b159
PA
114942015-03-19 Pedro Alves <palves@redhat.com>
11495
11496 * linux-low.c (count_events_callback, select_event_lwp_callback):
11497 Use the lwp's status_pending_p field, not the thread's.
11498
b90fc188
PA
114992015-03-19 Pedro Alves <palves@redhat.com>
11500
11501 * linux-low.c (select_event_lwp_callback): Update comments to
11502 no longer mention SIGTRAP.
11503
464b0089
GB
115042015-03-18 Gary Benson <gbenson@redhat.com>
11505
11506 * server.c (handle_query): Do not report vFile:fstat as supported.
11507
aa9e327f
GB
115082015-03-11 Gary Benson <gbenson@redhat.com>
11509
11510 * hostio.c (sys/types.h): New include.
11511 (sys/stat.h): Likewise.
11512 (common-remote-fileio.h): Likewise.
11513 (handle_fstat): New function.
11514 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11515
791c0056
GB
115162015-03-11 Gary Benson <gbenson@redhat.com>
11517
11518 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11519 struct stat.st_blocks and struct stat.st_blksize.
11520 * configure: Regenerate.
11521 * config.in: Likewise.
11522 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11523 (OBS): Add common-remote-fileio.o.
11524 (common-remote-fileio.o): New rule.
11525
9a9df970
PA
115262015-03-09 Pedro Alves <palves@redhat.com>
11527
11528 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11529 'struct sockaddr' pointer in 'accept' call.
11530
9eb1356e
PA
115312015-03-09 Pedro Alves <palves@redhat.com>
11532
11533 Revert:
11534 2015-03-07 Pedro Alves <palves@redhat.com>
11535 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11536 or <winsock2.h> here. Instead include "gdb_socket.h".
11537 (remote_open): Use union gdb_sockaddr_u.
11538 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11539 or <winsock2.h> here. Instead include "gdb_socket.h".
11540 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11541 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11542 or <sys/un.h>.
11543 (init_named_socket, gdb_agent_helper_thread): Use union
11544 gdb_sockaddr_u.
11545
aac331e4
PA
115462015-03-07 Pedro Alves <palves@redhat.com>
11547
11548 * configure.ac (build_warnings): Move
11549 -Wdeclaration-after-statement to the C-specific set.
11550 * configure: Regenerate.
11551
366c75fc
PA
115522015-03-07 Pedro Alves <palves@redhat.com>
11553
11554 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11555 or <winsock2.h> here. Instead include "gdb_socket.h".
11556 (remote_open): Use union gdb_sockaddr_u.
11557 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11558 or <winsock2.h> here. Instead include "gdb_socket.h".
11559 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11560 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11561 or <sys/un.h>.
11562 (init_named_socket, gdb_agent_helper_thread): Use union
11563 gdb_sockaddr_u.
11564
492d29ea
PA
115652015-03-07 Pedro Alves <palves@redhat.com>
11566
11567 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11568 instead.
11569
60a191ed
YQ
115702015-03-06 Yao Qi <yao.qi@linaro.org>
11571
11572 * linux-aarch64-low.c (aarch64_insert_point): Use
11573 show_debug_regs as a boolean.
11574 (aarch64_remove_point): Likewise.
11575
f5771b1d
PA
115762015-03-05 Pedro Alves <palves@redhat.com>
11577
11578 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11579 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11580 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11581 * nto-low.c (nto_target_ops): Likewise.
11582 * spu-low.c (spu_target_ops): Likewise.
11583 * win32-low.c (win32_target_ops): Likewise.
11584
3e572f71
PA
115852015-03-04 Pedro Alves <palves@redhat.com>
11586
72f4393d 11587 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11588 Decide whether a breakpoint triggered based on the SIGTRAP's
11589 siginfo.si_code.
72f4393d
L
11590 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11591 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11592 (linux_low_filter_event): Check for breakpoints before checking
11593 watchpoints.
11594 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11595 siginfo.si_code.
72f4393d
L
11596 (linux_stopped_by_sw_breakpoint)
11597 (linux_supports_stopped_by_sw_breakpoint)
11598 (linux_stopped_by_hw_breakpoint)
11599 (linux_supports_stopped_by_hw_breakpoint): New functions.
11600 (linux_target_ops): Install new target methods.
3e572f71 11601
1ec68e26
PA
116022015-03-04 Pedro Alves <palves@redhat.com>
11603
11604 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11605 * server.c (swbreak_feature, hwbreak_feature): New globals.
11606 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11607 (captured_main): Clear swbreak_feature and hwbreak_feature.
11608 * server.h (swbreak_feature, hwbreak_feature): Declare.
11609 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11610 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11611 supports_stopped_by_hw_breakpoint>: New fields.
11612 (target_supports_stopped_by_sw_breakpoint)
11613 (target_stopped_by_sw_breakpoint)
11614 (target_supports_stopped_by_hw_breakpoint)
11615 (target_stopped_by_hw_breakpoint): Declare.
11616
15c66dd6
PA
116172015-03-04 Pedro Alves <palves@redhat.com>
11618
11619 enum lwp_stop_reason -> enum target_stop_reason
11620 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11621 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11622 (linux_wait_1, stuck_in_jump_pad_callback)
11623 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11624 (linux_stopped_by_watchpoint):
11625 * linux-low.h (enum lwp_stop_reason): Delete.
11626 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11627 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11628
98fc70d6
YQ
116292015-03-04 Yao Qi <yao.qi@linaro.org>
11630
11631 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11632
dd2ac174
GB
116332015-03-03 Gary Benson <gbenson@redhat.com>
11634
11635 * hostio.c (handle_vFile): Fix prefix lengths.
11636
d68e53f4
MM
116372015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11638
11639 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11640 ptr_bits.
11641
bf2d68ab
AA
116422015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11643
11644 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11645 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11646 (clean): Add "rm -f" for above C files.
11647 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11648 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11649 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11650 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11651 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11652 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11653 (init_registers_s390x_vx_linux64)
11654 (init_registers_s390x_tevx_linux64)
11655 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11656 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11657 declarations.
11658 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11659 (s390_store_vxrs_high): New functions.
11660 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11661 NT_S390_VXRS_HIGH.
11662 (s390_arch_setup): Add logic for selecting one of the new target
11663 descriptions. Activate the new vector regsets if applicable.
11664 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11665 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11666 and init_registers_s390x_tevx_linux64.
11667
c966a859
PA
116682015-03-01 Pedro Alves <palves@redhat.com>
11669
11670 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11671 parameter.
11672
4180215b
PA
116732015-02-27 Pedro Alves <palves@redhat.com>
11674
11675 * linux-x86-low.c (u_debugreg_offset): New function.
11676 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11677
749bab01
PA
116782015-02-27 Pedro Alves <palves@redhat.com>
11679
11680 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11681 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11682 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11683 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11684 (ps_lsetfpregs, ps_getpid)
11685 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11686 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11687 (ps_lsetxregs, ps_plog): Declare.
11688
3c14e5a3
PA
116892015-02-27 Pedro Alves <palves@redhat.com>
11690
11691 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11692 IP_AGENT_EXPORT_FUNC.
11693 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11694 IP_AGENT_EXPORT_FUNC.
11695 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11696 (IP_AGENT_EXPORT): Delete.
11697 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11698 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11699 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11700 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11701 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11702 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11703 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11704 (traceframe_read_count, traceframe_write_count)
11705 (traceframes_created, trace_state_variables, get_raw_reg)
11706 (get_trace_state_variable_value, set_trace_state_variable_value)
11707 (ust_loaded, helper_thread_id, cmd_buf): Use
11708 IPA_SYM_EXPORTED_NAME.
11709 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11710 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11711 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11712 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11713 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11714 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11715 EXTERN_C_PUSH/EXTERN_C_POP.
11716 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11717 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11718 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11719 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11720 (traceframe_write_count, traceframe_read_count)
11721 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11722 (about_to_request_buffer_space, get_trace_state_variable_value)
11723 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11724 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11725 EXTERN_C_PUSH/EXTERN_C_POP.
11726 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11727 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11728 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11729 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11730 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11731 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11732 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11733 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11734 Define.
11735 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11736 (IP_AGENT_EXPORT_VAR_DECL): Define.
11737 (tracing): Declare.
11738 (gdb_agent_get_raw_reg): Declare.
11739
fe978cb0
PA
117402015-02-27 Tom Tromey <tromey@redhat.com>
11741 Pedro Alves <palves@redhat.com>
11742
11743 Rename symbols whose names are reserved C++ keywords throughout.
11744
3bc3d82a
PA
117452015-02-27 Pedro Alves <palves@redhat.com>
11746
11747 * Makefile.in (COMPILER): New, get it from autoconf.
11748 (CXX): Get from autoconf instead.
11749 (COMPILE.pre): Use COMPILER.
11750 (CC-LD): Rename to ...
11751 (CC_LD): ... this. Use COMPILER.
11752 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11753 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11754 * acinclude.m4: Include build-with-cxx.m4.
11755 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11756 Disable -Werror by default if building in C++ mode.
11757 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11758 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11759 the C++ compiler. Save/restore CXXFLAGS too.
11760 * configure: Regenerate.
11761
07697489
PA
117622015-02-27 Pedro Alves <palves@redhat.com>
11763
11764 * acinclude.m4: Include libiberty.m4.
11765 * configure.ac: Call libiberty_INIT.
11766 * config.in, configure: Regenerate.
11767
9beb7c4e
PA
117682015-02-26 Pedro Alves <palves@redhat.com>
11769
11770 * linux-low.c (linux_wait_1): When incrementing the PC past a
11771 program breakpoint always use the_low_target.breakpoint_len as
11772 increment, rather than the maximum between that and
11773 the_low_target.decr_pc_after_break.
11774
8090aef2
PA
117752015-02-23 Pedro Alves <palves@redhat.com>
11776
11777 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11778 thread was doing a step-over; always adjust the PC if
11779 we stepped over a permanent breakpoint.
11780 (linux_wait_1): If we stepped over breakpoint that was on top of a
11781 permanent breakpoint, manually advance the PC past it.
11782
bc9540e8
PA
117832015-02-23 Pedro Alves <palves@redhat.com>
11784
11785 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11786 modes.
11787 (x86_fill_gregset, x86_store_gregset): Use it when handling
11788 $orig_eax.
11789
2db9a427
PA
117902015-02-20 Pedro Alves <palves@redhat.com>
11791
11792 * thread-db.c: Include "nat/linux-procfs.h".
11793 (thread_db_init): Skip listing new threads if the kernel supports
11794 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11795
afa8d396
PA
117962015-02-20 Pedro Alves <palves@redhat.com>
11797
11798 * linux-low.c (status_pending_p_callback): Use ptid_match.
11799
c9587f88
AT
118002015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11801
11802 PR breakpoints/16812
11803 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11804 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11805 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11806
b05ec7a5
AT
118072015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11808
11809 PR breakpoints/15956
11810 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11811
d33501a5
MM
118122015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11813
11814 * linux-low.c (linux_low_btrace_conf): Print size.
11815 * server.c (handle_btrace_conf_general_set): New.
11816 (hanle_general_set): Call handle_btrace_conf_general_set.
11817 (handle_query): Report Qbtrace-conf:bts:size as supported.
11818
f4abbc16
MM
118192015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11820
11821 * linux-low.c (linux_low_enable_btrace): Update parameters.
11822 (linux_low_btrace_conf): New.
11823 (linux_target_ops)<to_btrace_conf>: Initialize.
11824 * server.c (current_btrace_conf): New.
11825 (handle_btrace_enable): Rename to ...
11826 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11827 to target_enable_btrace. Update comment. Update users.
11828 (handle_qxfer_btrace_conf): New.
11829 (qxfer_packets): Add btrace-conf entry.
11830 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11831 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11832 (target_ops)<read_btrace_conf>: New.
11833 (target_enable_btrace): Update parameters.
11834 (target_read_btrace_conf): New.
11835
043c3577
MM
118362015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11837
11838 * server.c (handle_btrace_general_set): Remove call to
11839 target_supports_btrace.
11840 (supported_btrace_packets): New.
11841 (handle_query): Call supported_btrace_packets.
11842 * target.h: include btrace-common.h.
11843 (btrace_target_info): Removed.
11844 (supports_btrace, target_supports_btrace): Update parameters.
11845
734b0e4b
MM
118462015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11847
11848 * Makefile.in (SFILES): Add common/btrace-common.c.
11849 (OBS): Add common/btrace-common.o.
11850 (btrace-common.o): Add build rules.
11851 * linux-low: Include btrace-common.h.
11852 (linux_low_read_btrace): Use struct btrace_data. Call
11853 btrace_data_init and btrace_data_fini.
11854
d6c146e9
PA
118552015-02-06 Pedro Alves <palves@redhat.com>
11856
11857 * thread-db.c (find_new_threads_callback): Add debug output.
11858
20ba1ce6
PA
118592015-02-04 Pedro Alves <palves@redhat.com>
11860
11861 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11862 (resume_stopped_resumed_lwps): New function.
11863 (linux_wait_for_event_filtered): Use it.
11864
8cc73a39
SDJ
118652015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11866
11867 * Makefile.in (SFILES): Add linux-personality.c.
11868 (linux-personality.o): New rule.
11869 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11870 list of objects to be built.
11871 * linux-low.c: Include nat/linux-personality.h.
11872 (linux_create_inferior): Remove code to disable address space
11873 randomization (moved to ../nat/linux-personality.c). Create
11874 cleanup to disable address space randomization.
11875
fb23d554
SDJ
118762015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11877
11878 * Makefile.in (posix-strerror.o): New rule.
11879 (mingw-strerror.o): Likewise.
11880 * configure: Regenerated.
11881 * configure.ac: Source file ../common/common.host. Initialize new
11882 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11883
cdf43629
YQ
118842015-01-14 Yao Qi <yao@codesourcery.com>
11885
11886 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11887 (ppc-linux.o): New rule.
11888 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11889 * configure.ac: AC_CHECK_FUNCS(getauxval).
11890 * config.in: Re-generated.
11891 * configure: Re-generated.
11892 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11893 ppc64_64bit_inferior_p
11894
514c5338
YQ
118952015-01-14 Yao Qi <yao@codesourcery.com>
11896
11897 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11898 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11899 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11900 (PT_ORIG_R3, PT_TRAP): Likewise.
11901 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11902 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11903 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11904
3368c1e5
JB
119052015-01-10 Joel Brobecker <brobecker@adacore.com>
11906
11907 * i387-fp.c (i387_cache_to_xsave): In look over
11908 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11909 zmmh_low_space field by use of zmmh_high_space.
11910
582511be
PA
119112015-01-09 Pedro Alves <palves@redhat.com>
11912
11913 * linux-low.c (step_over_bkpt): Move higher up in the file.
11914 (handle_extended_wait): Don't store the stop_pc here.
11915 (get_stop_pc): Adjust comments and rename to ...
11916 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11917 stopped for a software breakpoint or hardware breakpoint.
11918 (thread_still_has_status_pending_p): New function.
11919 (status_pending_p_callback): Use
11920 thread_still_has_status_pending_p. If the event is no longer
11921 interesting, resume the LWP.
11922 (handle_tracepoints): Add assert.
11923 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11924 (wstatus_maybe_breakpoint): New function.
11925 (cancel_breakpoint): Delete function.
11926 (check_stopped_by_watchpoint): New function, factored out from
11927 linux_low_filter_event.
11928 (lp_status_maybe_breakpoint): Delete function.
11929 (linux_low_filter_event): Remove filter_ptid argument.
11930 Leave thread group exits pending here. Store the LWP's stop PC.
11931 Always leave events pending.
11932 (linux_wait_for_event_filtered): Pull all events out of the
11933 kernel, and leave them all pending.
11934 (count_events_callback, select_event_lwp_callback): Consider all
11935 events.
11936 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11937 (select_event_lwp): Only give preference to the stepping LWP in
11938 all-stop mode. Adjust comments.
11939 (ignore_event): New function.
11940 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11941 references to cancel_breakpoints. Adjust to renames. Also give
11942 equal priority to all LWPs that have had events in non-stop mode.
11943 If reporting a software breakpoint event, unadjust the LWP's PC.
11944 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11945 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11946 Adjust.
11947 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11948 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11949 (linux_stopped_by_watchpoint): Adjust.
11950 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11951 * linux-low.h (enum lwp_stop_reason): New.
11952 (struct lwp_info) <stop_pc>: Adjust comment.
11953 <stopped_by_watchpoint>: Delete field.
11954 <stop_reason>: New field.
11955 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11956 * mem-break.c (software_breakpoint_inserted_here)
11957 (hardware_breakpoint_inserted_here): New function.
11958 * mem-break.h (software_breakpoint_inserted_here)
11959 (hardware_breakpoint_inserted_here): Declare.
11960 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11961 (cancel_breakpoints): Delete.
11962 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11963 (upload_fast_traceframes): Remove references to
11964 cancel_breakpoints.
11965
a33e3959
PA
119662015-01-09 Pedro Alves <palves@redhat.com>
11967
11968 * thread-db.c (find_new_threads_callback): Ignore thread if the
11969 kernel thread ID is -1.
11970
8784d563
PA
119712015-01-09 Pedro Alves <palves@redhat.com>
11972
11973 * linux-low.c (linux_attach_fail_reason_string): Move to
11974 nat/linux-ptrace.c, and rename.
11975 (linux_attach_lwp): Update comment.
11976 (attach_proc_task_lwp_callback): New function.
11977 (linux_attach): Adjust to rename and use
11978 linux_proc_attach_tgid_threads.
11979 (linux_attach_fail_reason_string): Delete declaration.
11980
76f2b779
JB
119812015-01-01 Joel Brobecker <brobecker@adacore.com>
11982
11983 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11984 * server.c (gdbserver_version): Likewise.
11985
fafcc06a
SDJ
119862014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11987
11988 * remote-utils.c: Include ctype.h.
11989 (input_interrupt): Explicitly handle the case when the char
11990 received is the NUL byte. Improve the printing of non-ASCII
11991 characters.
11992
beed38b8
JB
119932014-12-16 Joel Brobecker <brobecker@adacore.com>
11994
11995 * linux-low.c (linux_low_filter_event): Update call to
11996 linux_enable_event_reporting following the addition of
11997 a new parameter to that function.
11998
bf330350
CU
119992014-12-16 Catalin Udma <catalin.udma@freescale.com>
12000
12001 PR server/17457
12002 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12003 (AARCH64_FPCR_REGNO): Likewise.
12004 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12005 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12006 (aarch64_store_fpregset): Likewise.
12007
5227d625
JB
120082014-12-15 Joel Brobecker <brobecker@adacore.com>
12009
12010 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12011 Remove FIXME comment about assumption about N.
12012
f93b65a0
JB
120132014-12-13 Joel Brobecker <brobecker@adacore.com>
12014
12015 * configure.ac: If large-file support is disabled in GDBserver,
12016 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12017 * configure: Regenerate.
12018
e5a9158d
AA
120192014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12020
12021 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12022 warning upon ENODATA from ptrace.
12023 * linux-s390-low.c (s390_store_tdb): New.
12024 (s390_regsets): Add regset for NT_S390_TDB.
12025
feea5f36
AA
120262014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12027
12028 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12029 without a fill_function.
12030 * linux-s390-low.c (s390_fill_last_break): Remove.
12031 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12032 (s390_arch_setup): Use regset's size instead of fill_function for
12033 loop end condition.
12034
098dbe61
AA
120352014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12036
12037 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12038 the regset's store function when ptrace returned an error.
12039 * regcache.c (get_thread_regcache): Invalidate register cache
12040 before fetching inferior's registers.
12041
28eef672
AA
120422014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12043
12044 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12045 while-loop as for-loop.
12046 (regsets_store_inferior_registers): Likewise.
12047
bdca27a2
YQ
120482014-11-28 Yao Qi <yao@codesourcery.com>
12049
12050 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12051 * config.in, configure: Re-generate.
12052 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12053 is defined.
12054
9c232dda
YQ
120552014-11-21 Yao Qi <yao@codesourcery.com>
12056
12057 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12058 (AC_CHECK_HEADERS): Remove malloc.h.
12059 * configure: Re-generated.
12060 * config.in: Re-generated.
12061 * server.h: Don't include alloca.h and malloc.h.
12062 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12063 Don't include malloc.h.
12064
43968415
JB
120652014-11-17 Joel Brobecker <brobecker@adacore.com>
12066
12067 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12068 corresponding ERRNO check in same block.
12069
40e91bc7
PA
120702014-11-12 Pedro Alves <palves@redhat.com>
12071
12072 * server.c (cont_thread): Update comment.
12073 (start_inferior, attach_inferior): No longer clear cont_thread.
12074 (handle_v_cont): No longer set cont_thread.
12075 (captured_main): Clear cont_thread each time a GDB connects.
12076
c2c118cf
PA
120772014-11-12 Pedro Alves <palves@redhat.com>
12078
12079 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12080 thread, and don't resume all threads if the Hc thread has exited.
12081
78708b7c
PA
120822014-11-12 Pedro Alves <palves@redhat.com>
12083
12084 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12085 the process group instead of to a specific LWP.
12086
a2abc7de
PA
120872014-10-15 Pedro Alves <palves@redhat.com>
12088
12089 PR server/17487
12090 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12091 parameter.
12092 (arm_set_thread_context): Delete.
12093 (the_low_target): Adjust.
12094 * win32-i386-low.c (debug_registers_changed)
12095 (debug_registers_used): Delete.
12096 (update_debug_registers_callback): New function.
12097 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12098 needing to update their debug registers.
12099 (win32_get_current_dr): New function.
12100 (x86_dr_low_get_addr, x86_dr_low_get_control)
12101 (x86_dr_low_get_status): Fetch the debug register from the thread
12102 record's context.
12103 (i386_initial_stuff): Adjust.
12104 (i386_get_thread_context): Remove current_event parameter. Don't
12105 clear debug_registers_changed nor copy DR values to
12106 debug_reg_state.
12107 (i386_set_thread_context): Delete.
12108 (i386_prepare_to_resume): New function.
12109 (i386_thread_added): Mark the thread as needing to update irs
12110 debug registers.
12111 (the_low_target): Remove i386_set_thread_context and install
12112 i386_prepare_to_resume.
12113 * win32-low.c (win32_get_thread_context): Adjust.
12114 (win32_set_thread_context): Use SetThreadContext
12115 directly.
12116 (win32_prepare_to_resume): New function.
12117 (win32_require_context): New function, factored out from ...
12118 (thread_rec): ... this.
12119 (continue_one_thread): Call win32_prepare_to_resume on each thread
12120 we're about to continue.
12121 (win32_resume): Call win32_prepare_to_resume on the event thread.
12122 * win32-low.h (struct win32_thread_info)
12123 <debug_registers_changed>: New field.
12124 (struct win32_target_ops): Change prototype of set_thread_context,
12125 delete set_thread_context and add prepare_to_resume.
12126 (win32_require_context): New declaration.
12127
a442d071
GB
121282014-10-08 Gary Benson <gbenson@redhat.com>
12129
12130 * server.h: Do not include common-exceptions.h.
12131
6f1947e8
GB
121322014-10-08 Gary Benson <gbenson@redhat.com>
12133
12134 * server.h: Do not include cleanups.h.
12135
63b434a4
JH
121362014-09-30 James Hogan <james.hogan@imgtec.com>
12137
12138 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12139 mips64-dsp-linux.c.
12140
c4d9ceb6
YQ
121412014-09-23 Yao Qi <yao@codesourcery.com>
12142
12143 * linux-low.c (lp_status_maybe_breakpoint): New function.
12144 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12145 (count_events_callback): Likewise.
12146 (select_event_lwp_callback): Likewise.
12147 (cancel_breakpoints_callback): Likewise.
12148
89a5711c
DB
121492014-09-19 Don Breazeal <donb@codesourcery.com>
12150
12151 * linux-low.c (handle_extended_wait): Call
12152 linux_ptrace_get_extended_event.
12153 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12154 linux_is_extended_waitstatus.
12155
bffc0964
JB
121562014-09-16 Joel Brobecker <brobecker@adacore.com>
12157
12158 * Makefile.in (CPPFLAGS): Define.
12159 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12160 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12161
0bfdf32f
GB
121622014-09-16 Gary Benson <gbenson@redhat.com>
12163
12164 * inferiors.h (current_inferior): Renamed as...
12165 (current_thread): New variable. All uses updated.
12166 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12167 (maybe_move_out_of_jump_pad): Likewise.
12168 (cancel_breakpoint): Likewise.
12169 (linux_low_filter_event): Likewise.
12170 (wait_for_sigstop): Likewise.
12171 (linux_resume_one_lwp): Likewise.
12172 (need_step_over_p): Likewise.
12173 (start_step_over): Likewise.
12174 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12175 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12176 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12177 and save_inferior as saved_thread.
12178 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12179 saved_thread.
12180 (regcache_invalidate_thread): Likewise.
12181 * remote-utils.c (prepare_resume_reply): Likewise.
12182 * thread-db.c (thread_db_get_tls_address): Likewise.
12183 (disable_thread_event_reporting): Likewise.
12184 (remove_thread_event_breakpoints): Likewise.
12185 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12186 as saved_thread.
12187 * target.h (set_desired_inferior): Renamed as...
12188 (set_desired_thread): New declaration. All uses updated.
12189 * server.c (myresume): Updated comment to reference thread instead
12190 of inferior.
12191 (handle_serial_event): Likewise.
12192 (handle_target_event): Likewise.
12193
361c8ade
GB
121942014-09-12 Tom Tromey <tromey@redhat.com>
12195 Gary Benson <gbenson@redhat.com>
12196
12197 * regcache.h: Include common-regcache.h.
12198 (regcache_read_pc): Don't declare.
12199 * regcache.c (get_thread_regcache_for_ptid): New function.
12200
bd9269f7
GB
122012014-09-11 Tom Tromey <tromey@redhat.com>
12202 Gary Benson <gbenson@redhat.com>
12203
12204 * symbol.c: New file.
12205 * Makefile.in (SFILES): Add symbol.c.
12206 (OBS): Add symbol.o.
12207
f8c1d06b
GB
122082014-09-11 Gary Benson <gbenson@redhat.com>
12209
12210 * target.c (target_stop_ptid, target_continue_ptid): New
12211 functions.
12212
721ec300
GB
122132014-09-11 Tom Tromey <tromey@redhat.com>
12214 Gary Benson <gbenson@redhat.com>
12215
12216 * target.h: Include target/target.h.
12217 * target.c (target_read_memory, target_read_uint32)
12218 (target_write_memory): New functions.
12219
c5e92cca
GB
122202014-09-11 Gary Benson <gbenson@redhat.com>
12221
12222 * server.h (debug_hw_points): Don't declare.
12223 * server.c (debug_hw_points): Don't define. Replace all uses
12224 with show_debug_regs.
12225 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12226 all uses with show_debug_regs.
12227
2e4bb98a
EBM
122282014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12229
12230 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12231 endianness into account.
12232 (ppc_supply_ptrace_register): Likewise.
12233
ac740bc7
JH
122342014-09-03 James Hogan <james.hogan@imgtec.com>
12235
12236 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12237 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12238
97ea6506
GB
122392014-09-03 Gary Benson <gbenson@redhat.com>
12240
12241 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12242 ALL_DEBUG_ADDRESS_REGISTERS.
12243
df7e5265
GB
122442014-09-02 Gary Benson <gbenson@redhat.com>
12245
12246 * i386-low.h: Renamed as...
12247 * x86-low.h: New file. All type, function and variable name
12248 prefixes changed from "i386_" to "x86_". All references updated.
12249 * i386-low.c: Renamed as...
12250 * x86-low.c: New file. All type, function and variable name
12251 prefixes changed from "i386_" to "x86_". All references updated.
12252
ed859da7
GB
122532014-09-02 Gary Benson <gbenson@redhat.com>
12254
12255 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12256 (x86_linux_new_thread): Likewise.
12257
860789c7
GB
122582014-08-29 Gary Benson <gbenson@redhat.com>
12259
12260 * server.h (setjmp.h): Do not include.
12261 (toplevel): Do not declare.
12262 (common-exceptions.h): Include.
12263 (cleanups.h): Likewise.
12264 * server.c (toplevel): Do not define.
12265 (exit_code): New static global.
12266 (detach_or_kill_for_exit_cleanup): New function.
12267 (main): New function. Original main renamed to...
12268 (captured_main): New function.
12269 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12270
ff55e1b5
GB
122712014-08-29 Gary Benson <gbenson@redhat.com>
12272
12273 * Makefile.in (SFILES): Add common/common-exceptions.c.
12274 (OBS): Add common-exceptions.o.
12275 (common-exceptions.o): New rule.
12276 * utils.c (prepare_to_throw_exception): New function.
12277
e9bcb658
GB
122782014-08-29 Gary Benson <gbenson@redhat.com>
12279
12280 * config.in: Regenerate.
12281 * configure: Likewise.
12282
e3180625
GB
122832014-08-29 Gary Benson <gbenson@redhat.com>
12284
12285 * Makefile.in (SFILES): Add common/cleanups.c.
12286 (OBS): cleanups.o.
12287 (cleanups.o): New rule.
12288
e3d6ba5d
GB
122892014-08-29 Gary Benson <gbenson@redhat.com>
12290
12291 * utils.c (internal_vwarning): New function.
12292
7096e886
GB
122932014-08-28 Gary Benson <gbenson@redhat.com>
12294
12295 * utils.h (fatal): Remove declaration.
12296 * utils.c (fatal): Remove function.
12297
14ce3192
GB
122982014-08-28 Gary Benson <gbenson@redhat.com>
12299
12300 * tracepoint.c (gdb_agent_init): Replace fatal with
12301 perror_with_name.
12302 (initialize_tracepoint): Likewise.
12303
50278d59
GB
123042014-08-28 Gary Benson <gbenson@redhat.com>
12305
12306 * remote-utils.c (remote_prepare): Replace fatal with error.
12307
aa96c426
GB
123082014-08-28 Gary Benson <gbenson@redhat.com>
12309
12310 * linux-low.c (linux_async): Replace fatal with warning.
12311 Tidy up and return.
12312 (linux_start_non_stop): Return -1 if linux_async failed.
12313
f7160e97
GB
123142014-08-28 Gary Benson <gbenson@redhat.com>
12315
12316 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12317 gdb_assert.
12318 (i386_dr_low_get_addr): Remove vague comment.
12319 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12320 gdb_assert.
12321
38e08fca
GB
123222014-08-28 Gary Benson <gbenson@redhat.com>
12323
12324 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12325 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12326 internal_error.
12327 (linux_resume_one_lwp): Likewise.
12328 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12329 gdb_assert.
12330 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12331 with internal_error.
12332 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12333 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12334 (find_register_by_name): Replace fatal with internal_error.
12335 (find_regno): Likewise.
12336 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12337 * thread-db.c (thread_db_create_event): Likewise.
12338 (thread_db_load_search): Likewise.
12339 (try_thread_db_load_1): Likewise.
12340 * tracepoint.c (get_jump_space_head): Replace fatal with
12341 internal_error.
12342 (claim_trampoline_space): Likewise.
12343 (have_fast_tracepoint_trampoline_buffer): Likewise.
12344 (cmd_qtstart): Likewise.
12345 (stop_tracing): Likewise.
12346 (fast_tracepoint_collecting): Likewise.
12347 (target_malloc): Likewise.
12348 (download_tracepoint): Likewise.
12349 (download_trace_state_variables): Replace check with gdb_assert.
12350 (upload_fast_traceframes): Replace fatal with internal_error.
12351
34abf635
GB
123522014-08-19 Tom Tromey <tromey@redhat.com>
12353 Gary Benson <gbenson@redhat.com>
12354
12355 * Makefile.in (SFILES): Add common/common-debug.c.
12356 (OBS): Add common-debug.o.
12357 (common-debug.o): New rule.
12358 * debug.h (debug_printf): Don't declare.
12359 * debug.c (debug_printf): Renamed and rewritten as...
12360 (debug_vprintf): New function.
12361
f6e94d78
GB
123622014-08-19 Gary Benson <gbenson@redhat.com>
12363
12364 * utils.h: Do not include print-utils.h.
12365
9239eeab
GB
123662014-08-19 Tom Tromey <tromey@redhat.com>
12367 Gary Benson <gbenson@redhat.com>
12368
12369 * server.h: Add static assertion.
12370 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12371
ef87c8bb
GB
123722014-08-19 Tom Tromey <tromey@redhat.com>
12373 Gary Benson <gbenson@redhat.com>
12374
12375 * Makefile.in (SFILES): Add common/errors.c.
12376 (OBS): Add errors.o.
12377 (IPA_OBS): Add errors-ipa.o.
12378 (errors.o): New rule.
12379 (errors-ipa.o): Likewise.
12380 * utils.h (perror_with_name, error, warning): Don't declare.
12381 * utils.c (warning): Renamed and rewritten as...
12382 (vwarning): New function.
12383 (error): Renamed and rewritten as...
12384 (verror): New function.
12385 (internal_error): Renamed and rewritten as...
12386 (internal_verror): New function.
12387
bb974a24
GB
123882014-08-07 Gary Benson <gbenson@redhat.com>
12389
12390 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12391 * configure: Regenerate.
12392 * config.in: Likewise.
12393 * server.h: Do not include errno.h.
12394 * event-loop.c: Likewise.
12395 * hostio-errno.c: Likewise.
12396 * linux-low.c: Likewise.
12397 * remote-utils.c: Likewise.
12398 * spu-low.c: Likewise.
12399 * utils.c: Likewise.
12400 * gdbreplay.c: Unconditionally include errno.h.
12401
6d3d12eb
GB
124022014-08-07 Gary Benson <gbenson@redhat.com>
12403
12404 * server.h: Do not include string.h.
12405 * event-loop.c: Likewise.
12406 * linux-low.c: Likewise.
12407 * regcache.c: Likewise.
12408 * remote-utils.c: Likewise.
12409 * spu-low.c: Likewise.
12410 * utils.c: Likewise.
12411
dccbb609
GB
124122014-08-07 Gary Benson <gbenson@redhat.com>
12413
12414 * server.h: Do not include gdb_assert.h.
12415
e76df0d0
GB
124162014-08-07 Gary Benson <gbenson@redhat.com>
12417
12418 * server.h: Do not include common-utils.h.
12419
4cb9c816
GB
124202014-08-07 Gary Benson <gbenson@redhat.com>
12421
12422 * server.h: Do not include ptid.h.
12423 * notif.h: Likewise.
12424
3995eeee
GB
124252014-08-07 Gary Benson <gbenson@redhat.com>
12426
12427 * server.h: Do not include gdb_locale.h.
12428
cb9f1a9b
GB
124292014-08-07 Gary Benson <gbenson@redhat.com>
12430
12431 * server.h: Do not include gdb/signals.h.
12432 * win32-low.c: Likewise.
12433
a5fceff8
GB
124342014-08-07 Gary Benson <gbenson@redhat.com>
12435
12436 * server.h: Do not include pathmax.h.
12437
b9391142
GB
124382014-08-07 Gary Benson <gbenson@redhat.com>
12439
12440 * server.h: Do not include libiberty.h.
12441 * linux-bfin-low.c: Likewise.
12442
0e443c87
GB
124432014-08-07 Gary Benson <gbenson@redhat.com>
12444
12445 * server.h: Do not include ansidecl.h.
12446
8ebb3f56
GB
124472014-08-07 Gary Benson <gbenson@redhat.com>
12448
12449 * linux-x86-low.c: Do not include stddef.h.
12450 * lynx-ppc-low.c: Likewise.
12451 * tracepoint.c: Likewise.
12452
8980bdf6
GB
124532014-08-07 Gary Benson <gbenson@redhat.com>
12454
12455 * server.h: Do not include stdarg.h.
12456 * nto-low.c: Likewise.
12457
d7096f71
GB
124582014-08-07 Gary Benson <gbenson@redhat.com>
12459
12460 * server.h: Do not include stdlib.h.
12461 * inferiors.c: Likewise.
12462 * linux-low.c: Likewise.
12463 * regcache.c: Likewise.
12464 * spu-low.c: Likewise.
12465 * tracepoint.c: Likewise.
12466 * utils.c: Likewise.
12467
d02f550d
GB
124682014-08-07 Gary Benson <gbenson@redhat.com>
12469
12470 * server.h: Do not include stdio.h.
12471 * linux-low.c: Likewise.
12472 * remote-utils.c: Likewise.
12473 * spu-low.c: Likewise.
12474 * utils.c: Likewise.
12475 * wincecompat.c: Likewise.
12476
87f6c4e3
GB
124772014-08-06 Gary Benson <gbenson@redhat.com>
12478
12479 * regcache.c (init_register_cache): Move conditionals inside if.
12480
7089dca4
GB
124812014-08-06 Gary Benson <gbenson@redhat.com>
12482
12483 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12484
462f517e
GB
124852014-07-31 Gary Benson <gbenson@redhat.com>
12486
12487 * ax.h: Do not include server.h.
12488 * gdbthread.h: Likewise.
12489 * lynx-low.h: Likewise.
12490 * notif.h: Likewise.
12491
976411d6
GB
124922014-07-30 Gary Benson <gbenson@redhat.com>
12493
12494 * server.h: Include common-defs.h.
12495 Do not include config.h or build-gnulib-gdbserver/config.h.
12496
d41f6d8e
GB
124972014-07-30 Gary Benson <gbenson@redhat.com>
12498
12499 * hostio-errno.c: Move server.h to top of includes list.
12500 * inferiors.c: Likewise.
12501 * linux-x86-low.c: Likewise.
12502 * notif.c: Include server.h.
12503
314c6a35
TT
125042014-07-24 Tom Tromey <tromey@redhat.com>
12505 Gary Benson <gbenson@redhat.com>
12506
12507 * server.h (CORE_ADDR): Now unsigned.
12508
69ff6be5
PA
125092014-07-16 Pedro Alves <palves@redhat.com>
12510
12511 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12512
ce9e3fe7
PA
125132014-07-15 Pedro Alves <palves@redhat.com>
12514
12515 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12516 copy.
12517
e76126e8
PA
125182014-07-11 Pedro Alves <palves@redhat.com>
12519
12520 * linux-low.c (kill_wait_lwp): New function, based on
12521 kill_one_lwp_callback, but use my_waitpid directly.
12522 (kill_one_lwp_callback, linux_kill): Use it.
12523
8e9db26e
PA
125242014-06-23 Pedro Alves <palves@redhat.com>
12525
12526 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12527 before setting DR0..DR3.
12528
698b3e08
GB
125292014-06-20 Gary Benson <gbenson@redhat.com>
12530
12531 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12532 * configure: Regenerated.
12533 * config.in: Likewise.
12534
125f8a3d
GB
125352014-06-20 Gary Benson <gbenson@redhat.com>
12536
12537 * Makefile.in (SFILES): Update locations for files moved
12538 from common to nat.
12539 (object file files): Reordered.
12540
42995dbd
GB
125412014-06-20 Gary Benson <gbenson@redhat.com>
12542
12543 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12544 (i386_dr_low_set_addr): Likewise.
12545 (i386_dr_low_get_addr): Likewise.
12546 (i386_dr_low_can_set_control): Likewise.
12547 (i386_dr_low_set_control): Likewise.
12548 (i386_dr_low_get_control): Likewise.
12549 (i386_dr_low_get_status): Likewise.
12550 (i386_get_debug_register_length): Likewise.
12551 * linux-x86-low.c (i386_dr_low_set_addr):
12552 Changed signature. Made static.
12553 (i386_dr_low_get_addr): Likewise.
12554 (i386_dr_low_set_control): Likewise.
12555 (i386_dr_low_get_control): Likewise.
12556 (i386_dr_low_get_status): Likewise.
12557 (i386_dr_low): New global variable.
12558 * win32-i386-low.c (i386_dr_low_set_addr):
12559 Changed signature. Made static.
12560 (i386_dr_low_get_addr): Likewise.
12561 (i386_dr_low_set_control): Likewise.
12562 (i386_dr_low_get_control): Likewise.
12563 (i386_dr_low_get_status): Likewise.
12564 (i386_dr_low): New global variable.
12565
e1d2394b
MS
125662014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12567
12568 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12569 * Makefile.in (AR, AR_FLAGS): Define.
12570 * configure: Regenerate.
12571
3a8ee006
GB
125722014-06-19 Gary Benson <gbenson@redhat.com>
12573
12574 * Makefile.in (i386-dregs.o): New rule.
12575 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12576 * i386-low.c (target.h): Remove include.
12577 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12578 (DR_CONTROL_SHIFT): Likewise.
12579 (DR_CONTROL_SIZE): Likewise.
12580 (DR_RW_EXECUTE): Likewise.
12581 (DR_RW_WRITE): Likewise.
12582 (DR_RW_READ): Likewise.
12583 (DR_RW_IORW): Likewise.
12584 (DR_LEN_1): Likewise.
12585 (DR_LEN_2): Likewise.
12586 (DR_LEN_4): Likewise.
12587 (DR_LEN_8): Likewise.
12588 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12589 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12590 (DR_ENABLE_SIZE): Likewise.
12591 (DR_LOCAL_SLOWDOWN): Likewise.
12592 (DR_GLOBAL_SLOWDOWN): Likewise.
12593 (DR_CONTROL_RESERVED): Likewise.
12594 (I386_DR_CONTROL_MASK): Likewise.
12595 (I386_DR_VACANT): Likewise.
12596 (I386_DR_LOCAL_ENABLE): Likewise.
12597 (I386_DR_GLOBAL_ENABLE): Likewise.
12598 (I386_DR_DISABLE): Likewise.
12599 (I386_DR_SET_RW_LEN): Likewise.
12600 (I386_DR_GET_RW_LEN): Likewise.
12601 (I386_DR_WATCH_HIT): Likewise.
12602 (i386_wp_op_t): Likewise.
12603 (i386_show_dr): Likewise.
12604 (i386_length_and_rw_bits): Likewise.
12605 (i386_insert_aligned_watchpoint): Likewise.
12606 (i386_remove_aligned_watchpoint): Likewise.
12607 (i386_handle_nonaligned_watchpoint): Likewise.
12608 i386_update_inferior_debug_regs(): Likewise.
12609 (i386_dr_insert_watchpoint): Likewise.
12610 (i386_dr_remove_watchpoint): Likewise.
12611 (i386_dr_region_ok_for_watchpoint): Likewise.
12612 (i386_dr_stopped_data_address): Likewise.
12613 (i386_dr_stopped_by_watchpoint): Likewise.
12614
8f26655c
GB
126152014-06-19 Gary Benson <gbenson@redhat.com>
12616
12617 * i386-low.c (i386_dr_show): Renamed to
12618 i386_show_dr and made static. All uses updated.
12619 (i386_dr_length_and_rw_bits): Renamed to
12620 i386_length_and_rw_bits and made static.
12621 All uses updated.
12622 (i386_dr_insert_aligned_watchpoint): Renamed to
12623 i386_insert_aligned_watchpoint and made static.
12624 All uses updated.
12625 (i386_dr_remove_aligned_watchpoint): Renamed to
12626 i386_remove_aligned_watchpoint and made static.
12627 All uses updated.
12628 (i386_dr_update_inferior_debug_regs): Renamed to
12629 i386_update_inferior_debug_regs and made static.
12630 All uses updated.
12631
b9228891
GB
126322014-06-18 Gary Benson <gbenson@redhat.com>
12633
5171def3
GB
12634 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12635 (i386_dr_low_can_set_control): Likewise.
12636 (i386_get_debug_register_length): Likewise.
12637 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12638 (i386_dr_low_can_set_control): Likewise.
12639 (i386_get_debug_register_length): Likewise.
12640
126412014-06-17 Gary Benson <gbenson@redhat.com>
12642
b9228891
GB
12643 * i386-low.h (i386-dregs.h): New include.
12644 (DR_FIRSTADDR): Now in i386-dregs.h.
12645 (DR_LASTADDR): Likewise.
12646 (DR_NADDR): Likewise.
12647 (DR_STATUS): Likewise.
12648 (DR_CONTROL): Likewise.
12649 (i386_debug_reg_state): Likewise.
12650 (i386_dr_insert_watchpoint): Likewise.
12651 (i386_dr_remove_watchpoint): Likewise.
12652 (i386_dr_region_ok_for_watchpoint): Likewise.
12653 (i386_dr_stopped_data_address): Likewise.
12654 (i386_dr_stopped_by_watchpoint): Likewise.
12655 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12656
4be83cc2
GB
126572014-06-18 Gary Benson <gbenson@redhat.com>
12658
12659 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12660 i386_dr_insert_watchpoint.
12661 (i386_low_remove_watchpoint): Renamed to
12662 i386_dr_remove_watchpoint.
12663 (i386_low_region_ok_for_watchpoint): Renamed to
12664 i386_dr_region_ok_for_watchpoint.
12665 (i386_low_stopped_data_address): Renamed to
12666 i386_dr_stopped_data_address.
12667 (i386_low_stopped_by_watchpoint): Renamed to
12668 i386_dr_stopped_by_watchpoint.
12669 * i386-low.c (i386_show_dr): Renamed to
12670 i386_dr_show and made nonstatic. All uses updated.
12671 (i386_length_and_rw_bits): Renamed to
12672 i386_dr_length_and_rw_bits and made nonstatic.
12673 All uses updated.
12674 (i386_insert_aligned_watchpoint): Renamed to
12675 i386_dr_insert_aligned_watchpoint and made nonstatic.
12676 All uses updated.
12677 (i386_remove_aligned_watchpoint): Renamed to
12678 i386_dr_remove_aligned_watchpoint and made nonstatic.
12679 All uses updated.
12680 (i386_update_inferior_debug_regs): Renamed to
12681 i386_dr_update_inferior_debug_regs and made nonstatic.
12682 All uses updated.
12683 (i386_low_insert_watchpoint): Renamed to
12684 i386_dr_insert_watchpoint. All uses updated.
12685 (i386_low_remove_watchpoint): Renamed to
12686 i386_dr_remove_watchpoint. All uses updated.
12687 (i386_low_region_ok_for_watchpoint): Renamed to
12688 i386_dr_region_ok_for_watchpoint. All uses updated.
12689 (i386_low_stopped_data_address): Renamed to
12690 i386_dr_stopped_data_address. All uses updated.
12691 (i386_low_stopped_by_watchpoint): Renamed to
12692 i386_dr_stopped_by_watchpoint. All uses updated.
12693
131aa0d4
GB
126942014-06-18 Gary Benson <gbenson@redhat.com>
12695
12696 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12697 (i386_dr_low_can_set_control): Likewise.
12698 (i386_insert_aligned_watchpoint): New check.
12699
d9305f7f
GB
127002014-06-18 Gary Benson <gbenson@redhat.com>
12701
12702 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12703 Renamed to state.
12704
e927c9fc
GB
127052014-06-18 Gary Benson <gbenson@redhat.com>
12706
12707 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12708 instead of fatal and error.
12709 (i386_handle_nonaligned_watchpoint): Likewise.
12710
1b6d4134
GB
127112014-06-18 Gary Benson <gbenson@redhat.com>
12712
12713 * i386-low.c (i386_get_debug_register_length): New macro.
12714 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12715 (i386_show_dr): Use debug_printf instead of fprintf. Use
12716 phex to format values.
12717
6e62758f
GB
127182014-06-18 Gary Benson <gbenson@redhat.com>
12719
12720 * i386-low.h: Comment changes.
12721 * i386-low.c: Likewise.
12722
fc6e2f03
GB
127232014-06-18 Gary Benson <gbenson@redhat.com>
12724
12725 * i386-low.c: Whitespace changes.
12726
f9d1eeed
TT
127272014-06-12 Tom Tromey <tromey@redhat.com>
12728
12729 * utils.c (freeargv): Remove.
12730
0b04e523
TT
127312014-06-12 Tom Tromey <tromey@redhat.com>
12732
12733 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12734 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12735 (parse_debug_format_options): Likewise.
12736 (gdbserver_usage): Likewise.
12737 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12738 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12739 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12740 against libiberty.
12741 ($(LIBGNU)): Depend on libiberty.
12742 (all-lib): Recurse into all subdirs.
12743 (install-only): Invoke "install" target in subdirs.
12744 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12745 targets.
12746 * configure: Rebuild.
12747 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12748 for vasprintf, vsnprintf, or gettimeofday.
12749 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12750 srv_tgtobj.
12751
270c9937
JB
127522014-06-05 Joel Brobecker <brobecker@adacore.com>
12753
12754 * development.sh: Delete.
12755 * Makefile.in (config.status): Adjust dependency on development.sh.
12756 * configure.ac: Adjust development.sh source call.
12757 * configure: Regenerate.
12758
0a261ed8
PA
127592014-06-02 Pedro Alves <palves@redhat.com>
12760
12761 * ax.c (gdb_free_agent_expr): New function.
12762 * ax.h (gdb_free_agent_expr): New declaration.
12763 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12764 list.
12765 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12766 static.
12767 (clear_breakpoint_conditions_and_commands): New function.
12768 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12769 (clear_breakpoint_conditions_and_commands): New declaration.
12770
e9dae05e
RR
127712014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12772
12773 * linux-aarch64-low.c (asm/ptrace.h): Include.
12774
5876f503
JK
127752014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12776
12777 Fix TLS access for -static -pthread.
12778 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12779 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12780 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12781
802e8e6d
PA
127822014-05-20 Pedro Alves <palves@redhat.com>
12783
12784 * linux-aarch64-low.c (aarch64_insert_point)
12785 (aarch64_remove_point): No longer check whether the type is
12786 supported here. Adjust to new interface.
12787 (the_low_target): Install aarch64_supports_z_point_type as
12788 supports_z_point_type method.
12789 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12790 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12791 instead of a Z packet char. Adjust.
12792 (arm_supports_z_point_type): New function.
12793 (arm_insert_point, arm_remove_point): Adjust to new interface.
12794 (the_low_target): Install arm_supports_z_point_type.
12795 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12796 (cris_insert_point, cris_remove_point): Adjust to new interface.
12797 Don't check whether the type is supported here.
12798 (the_low_target): Install cris_supports_z_point_type.
12799 * linux-low.c (linux_supports_z_point_type): New function.
12800 (linux_insert_point, linux_remove_point): Adjust to new interface.
12801 * linux-low.h (struct linux_target_ops) <insert_point,
12802 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12803 raw_breakpoint pointer parameter.
12804 <supports_z_point_type>: New method.
12805 * linux-mips-low.c (mips_supports_z_point_type): New function.
12806 (mips_insert_point, mips_remove_point): Adjust to new interface.
12807 Use mips_supports_z_point_type.
12808 (the_low_target): Install mips_supports_z_point_type.
12809 * linux-ppc-low.c (the_low_target): Install NULL as
12810 supports_z_point_type method.
12811 * linux-s390-low.c (the_low_target): Install NULL as
12812 supports_z_point_type method.
12813 * linux-sparc-low.c (the_low_target): Install NULL as
12814 supports_z_point_type method.
12815 * linux-x86-low.c (x86_supports_z_point_type): New function.
12816 (x86_insert_point): Adjust to new insert_point interface. Use
12817 insert_memory_breakpoint. Adjust to new
12818 i386_low_insert_watchpoint interface.
12819 (x86_remove_point): Adjust to remove_point interface. Use
12820 remove_memory_breakpoint. Adjust to new
12821 i386_low_remove_watchpoint interface.
12822 (the_low_target): Install x86_supports_z_point_type.
12823 * lynx-low.c (lynx_target_ops): Install NULL as
12824 supports_z_point_type callback.
12825 * nto-low.c (nto_supports_z_point_type): New.
12826 (nto_insert_point, nto_remove_point): Adjust to new interface.
12827 (nto_target_ops): Install nto_supports_z_point_type.
12828 * mem-break.c: Adjust intro comment.
12829 (struct raw_breakpoint) <raw_type, size>: New fields.
12830 <inserted>: Update comment.
12831 <shlib_disabled>: Delete field.
12832 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12833 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12834 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12835 (raw_bkpt_type_to_target_hw_bp_type): New function.
12836 (find_enabled_raw_code_breakpoint_at): New function.
12837 (find_raw_breakpoint_at): New type and size parameters. Use them.
12838 (insert_memory_breakpoint): New function, based off
12839 set_raw_breakpoint_at.
12840 (remove_memory_breakpoint): New function.
12841 (set_raw_breakpoint_at): Reimplement.
12842 (set_breakpoint): New, based on set_breakpoint_at.
12843 (set_breakpoint_at): Reimplement.
12844 (delete_raw_breakpoint): Go through the_target->remove_point
12845 instead of assuming memory breakpoints.
12846 (find_gdb_breakpoint_at): Delete.
12847 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12848 (find_gdb_breakpoint): New function.
12849 (set_gdb_breakpoint_at): Delete.
12850 (z_type_supported): New function.
12851 (set_gdb_breakpoint_1): New function, loosely based off
12852 set_gdb_breakpoint_at.
12853 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12854 (delete_gdb_breakpoint_at): Delete.
12855 (delete_gdb_breakpoint_1): New function, loosely based off
12856 delete_gdb_breakpoint_at.
12857 (delete_gdb_breakpoint): New function.
12858 (clear_gdb_breakpoint_conditions): Rename to ...
12859 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12860 breakpoint.
12861 (add_condition_to_breakpoint): Make static.
12862 (add_breakpoint_condition): Take a struct breakpoint pointer
12863 instead of an address. Adjust.
12864 (gdb_condition_true_at_breakpoint): Rename to ...
12865 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12866 z_type parameter.
12867 (gdb_condition_true_at_breakpoint): Reimplement.
12868 (add_breakpoint_commands): Take a struct breakpoint pointer
12869 instead of an address. Adjust.
12870 (gdb_no_commands_at_breakpoint): Rename to ...
12871 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12872 parameter. Return true if no breakpoint was found. Change debug
12873 output.
12874 (gdb_no_commands_at_breakpoint): Reimplement.
12875 (run_breakpoint_commands): Rename to ...
12876 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12877 and change return type to boolean.
12878 (run_breakpoint_commands): New function.
12879 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12880 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12881 breakpoint. Go through the_target->remove_point instead of
12882 assuming memory breakpoint.
12883 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12884 software and hardware breakpoints.
12885 (reinsert_raw_breakpoint): Go through the_target->insert_point
12886 instead of assuming memory breakpoint.
12887 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12888 software and hardware breakpoints.
12889 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12890 Check both software and hardware breakpoints.
12891 (validate_inserted_breakpoint): Assert the breakpoint is a
12892 software breakpoint. Set the inserted flag to -1 instead of
12893 setting shlib_disabled.
12894 (delete_disabled_breakpoints): Adjust.
12895 (validate_breakpoints): Only validate software breakpoints.
12896 Adjust to inserted flag change.
12897 (check_mem_read, check_mem_write): Skip breakpoint types other
12898 than software breakpoints. Adjust to inserted flag change.
12899 * mem-break.h (enum raw_bkpt_type): New enum.
12900 (raw_breakpoint, struct process_info): Forward declare.
12901 (Z_packet_to_target_hw_bp_type): Delete declaration.
12902 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12903 (set_gdb_breakpoint, delete_gdb_breakpoint)
12904 (clear_breakpoint_conditions): New declarations.
12905 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12906 (breakpoint_inserted_here): Update comment.
12907 (add_breakpoint_condition, add_breakpoint_commands): Replace
12908 address parameter with a breakpoint pointer parameter.
12909 (gdb_breakpoint_here): Update comment.
12910 (delete_gdb_breakpoint_at): Delete.
12911 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12912 * server.c (process_point_options): Take a struct breakpoint
12913 pointer instead of an address. Adjust.
12914 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12915 delete_gdb_breakpoint.
12916 * spu-low.c (spu_target_ops): Install NULL as
12917 supports_z_point_type method.
12918 * target.h: Include mem-break.h.
12919 (struct target_ops) <prepare_to_access_memory>: Update comment.
12920 <supports_z_point_type>: New field.
12921 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12922 instead of a char. Also take a raw breakpoint pointer.
12923 * win32-arm-low.c (the_low_target): Install NULL as
12924 supports_z_point_type.
12925 * win32-i386-low.c (i386_supports_z_point_type): New function.
12926 (i386_insert_point, i386_remove_point): Adjust to new interface.
12927 (the_low_target): Install i386_supports_z_point_type.
12928 * win32-low.c (win32_supports_z_point_type): New function.
12929 (win32_insert_point, win32_remove_point): Adjust to new interface.
12930 (win32_target_ops): Install win32_supports_z_point_type.
12931 * win32-low.h (struct win32_target_ops):
12932 <supports_z_point_type>: New method.
12933 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12934 instead of a char. Also take a raw breakpoint pointer.
12935
932539e3
PA
129362014-05-20 Pedro Alves <palves@redhat.com>
12937
12938 * mem-break.h: Include break-common.h.
12939 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12940 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12941 (Z_packet_to_target_hw_bp_type): New declaration.
12942 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12943 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12944 (Z_PACKET_ACCESS_WP): Delete macros.
12945 (Z_packet_to_hw_type): Delete function.
12946 * i386-low.h: Don't include break-common.h here.
12947 (Z_packet_to_hw_type): Delete declaration.
12948 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12949 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12950 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12951 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12952 * linux-aarch64-low.c: Don't include break-common.h here.
12953 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12954 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12955 (Z_packet_to_target_hw_bp_type): Delete function.
12956 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12957 function.
12958 (mips_insert_point, mips_remove_point): Use
12959 Z_packet_to_target_hw_bp_type.
12960
4ff0d3d8
PA
129612014-05-20 Pedro Alves <palves@redhat.com>
12962
12963 * linux-aarch64-low.c: Include break-common.h.
12964 (enum target_point_type): Delete.
12965 (Z_packet_to_point_type): Rename to ...
12966 (Z_packet_to_target_hw_bp_type): ... this, and return a
12967 target_hw_bp_type instead.
12968 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12969 instead of an enum target_point_type.
12970 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12971 breakpoint type.
12972 (aarch64_dr_state_insert_one_point)
12973 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12974 (aarch64_handle_aligned_watchpoint)
12975 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12976 Take an enum target_hw_bp_type instead of an enum
12977 target_point_type.
12978 (aarch64_supports_z_point_type): New function.
12979 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12980 use Z_packet_to_target_hw_bp_type.
12981
786dc519
JB
129822014-05-20 Joel Brobecker <brobecker@adacore.com>
12983
12984 * configure.ac: Only use -Werror by default when DEVELOPMENT
12985 is true.
12986 * configure: Regenerate.
12987
9e0aa64f
JK
129882014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12989
12990 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12991 * linux-x86-low.c (X86_64_USER_REGS): New.
12992 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12993
2b577b92
YQ
129942014-04-28 Yao Qi <yao@codesourcery.com>
12995
12996 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12997 name.
12998
94611da2
PA
129992014-04-25 Pedro Alves <palves@redhat.com>
13000
13001 PR server/16255
13002 * linux-low.c (linux_attach_fail_reason_string): New function.
13003 (linux_attach_lwp): Delete.
13004 (linux_attach_lwp_1): Rename to ...
13005 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13006 argument. Remove "initial" parameter. Return int instead of
13007 void. Don't error or warn here.
13008 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13009 failure to attach to the tgid. Call warning when failing to
13010 attach to an lwp.
13011 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13012 argument. Remove "initial" parameter. Return int instead of
13013 void. Don't error or warn here.
13014 (linux_attach_fail_reason_string): New declaration.
13015 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13016 interface change. Use linux_attach_fail_reason_string.
13017
01f9f808
MS
130182014-04-24 Michael Sturm <michael.sturm@mintel.com>
13019 Walfred Tedeschi <walfred.tedeschi@intel.com>
13020
13021 * Makefile.in: Added rules to handle new files
13022 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13023 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13024 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13025 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13026 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13027 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13028 x32-avx512-linux.o.
13029 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13030 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13031 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13032 i386/x32-avx512.xml.
13033 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13034 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13035 i386/x32-avx512-linux.xml.
13036 * i387-fp.c (num_avx512_k_registers): New constant for number
13037 of K registers.
13038 (num_avx512_zmmh_low_registers): New constant for number of
13039 lower ZMM registers (0-15).
13040 (num_avx512_zmmh_high_registers): New constant for number of
13041 higher ZMM registers (16-31).
13042 (num_avx512_ymmh_registers): New contant for number of higher
13043 YMM registers (ymm16-31 added by avx521 on x86_64).
13044 (num_avx512_xmm_registers): New constant for number of higher
13045 XMM registers (xmm16-31 added by AVX512 on x86_64).
13046 (struct i387_xsave): Add space for AVX512 registers.
13047 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13048 Add code to handle AVX512 registers.
13049 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13050 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13051 prototypei from generated file.
13052 (tdesc_amd64_avx512_linux): Likewise.
13053 (init_registers_x32_avx512_linux): Likewise.
13054 (tdesc_x32_avx512_linux): Likewise.
13055 (init_registers_i386_avx512_linux): Likewise.
13056 (tdesc_i386_avx512_linux): Likewise.
13057 (x86_64_regmap): Add AVX512 registers.
13058 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13059 mask.
13060 (initialize_low_arch): Add code to initialize AVX512 registers.
13061
51aa91f9
PA
130622014-04-23 Pedro Alves <palves@redhat.com>
13063
13064 * mem-break.c (find_gdb_breakpoint_at): Make static.
13065 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13066
a4165e94
PA
130672014-04-23 Pedro Alves <palves@redhat.com>
13068
13069 * i386-low.c: Don't include break-common.h here.
13070 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13071 prototype to take target_hw_bp_type as argument instead of a Z
13072 packet char.
13073 * i386-low.h: Include break-common.h here.
13074 (Z_packet_to_hw_type): Declare.
13075 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13076 prototypes.
13077 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13078 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13079 (x86_remove_point): Convert the packet number to a
13080 target_hw_bp_type before calling i386_low_remove_watchpoint.
13081 * win32-i386-low.c (i386_insert_point): Convert the packet number
13082 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13083 (i386_remove_point): Convert the packet number to a
13084 target_hw_bp_type before calling i386_low_remove_watchpoint.
13085
b8acf843
PA
130862014-04-23 Pedro Alves <palves@redhat.com>
13087
13088 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13089
d708bcd1
PA
130902014-04-10 Pedro Alves <palves@redhat.com>
13091
13092 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13093 Check if the condition or command is NULL before checking if the
13094 breakpoint is known. On success, return true.
13095 * mem-break.h (add_breakpoint_condition): Document return.
13096 (add_breakpoint_commands): Add describing comment.
13097 * server.c (skip_to_semicolon): New function.
13098 (process_point_options): Use it.
13099
2eec7d5b
PA
131002014-04-09 Pedro Alves <palves@redhat.com>
13101
13102 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13103 to lwpid_of.
13104
fa96cb38
PA
131052014-02-27 Pedro Alves <palves@redhat.com>
13106
13107 PR 12702
13108 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13109 macros.
13110 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13111 output.
13112 (last_thread_of_process_p): Take a PID argument instead of a
13113 thread pointer.
13114 (linux_wait_for_lwp): Delete.
13115 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13116 functions.
13117 (linux_low_filter_event): New function, party factored out from
13118 linux_wait_for_event.
13119 (linux_wait_for_event): Rename to ...
13120 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13121 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13122 sigsuspend. Check for zombie leaders.
13123 (linux_wait_for_event): Reimplement as wrapper around
13124 linux_wait_for_event_filtered.
13125 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13126 a normal or signal exit is seen, it's the whole process exiting.
13127 (wait_for_sigstop): No longer a for_each_inferior callback.
13128 Rewrite on top of linux_wait_for_event_filtered.
13129 (stop_all_lwps): Call wait_for_sigstop directly.
13130 * server.c (resume, handle_target_event): Handle
13131 TARGET_WAITKIND_NO_RESUMED.
13132
d763de10
JB
131332014-02-26 Joel Brobecker <brobecker@adacore.com>
13134
13135 * win32-low.c (psapi_get_dll_name,
13136 * win32_CreateToolhelp32Snapshot): Delete.
13137 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13138 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13139 Delete.
13140 (handle_load_dll): Add function description.
13141 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13142
850a0f76
JB
131432014-02-26 Joel Brobecker <brobecker@adacore.com>
13144
13145 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13146 Add comment.
13147 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13148 base address when calling win32_add_one_solib.
13149 (handle_load_dll): Delete local variable load_addr.
13150 Remove 0x1000 offset applied to DLL base address when calling
13151 win32_add_one_solib.
13152 (handle_unload_dll): Add comment.
13153
f25b3fc3
JB
131542014-02-26 Joel Brobecker <brobecker@adacore.com>
13155
13156 * win32-low.c (win32_add_all_dlls): Renames
13157 win32_ensure_ntdll_loaded. Rewrite function documentation.
13158 Adjust implementation to always load all DLLs.
13159 Add 0x1000 offset to DLL base address when calling
13160 win32_add_one_solib.
13161 (child_initialization_done): New static global.
13162 (do_initial_child_stuff): Set child_initialization_done to
13163 zero during child initialization, and 1 after. Replace call
13164 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13165 Add comment.
13166 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13167 (handle_unload_dll): Add function documentation.
13168 (get_child_debug_event): Ignore load and unload DLL events
13169 during child initialization.
13170
d86d4aaf
DE
131712014-02-20 Doug Evans <dje@google.com>
13172
3bc32da3 13173 Remove global all_lwps.
d86d4aaf
DE
13174 * inferiors.h (ptid_of): Move here from linux-low.h.
13175 (pid_of, lwpid_of): Ditto.
13176 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13177 parameter is a struct thread_info * now.
13178 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13179 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13180 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13181 directly.
13182 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13183 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13184 * linux-arm-low.c (update_registers_callback): Update, "entry"
13185 parameter is a struct thread_info * now.
13186 Fetch lwpid from current_inferior directly.
13187 (arm_insert_point): Pass &all_threads to find_inferior instead of
13188 &all_lwps.
13189 (arm_remove_point): Ditto.
13190 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13191 (arm_prepare_to_resume): Fetch pid from thread.
13192 (arm_read_description): Fetch lwpid from current_inferior directly.
13193 * linux-low.c (all_lwps): Delete.
13194 (delete_lwp): Delete call to remove_inferior.
13195 (handle_extended_wait): Fetch lwpid from thread.
13196 (add_lwp): Don't set lwp->entry.id. Remove call to
13197 add_inferior_to_list.
13198 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13199 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13200 (kill_one_lwp_callback): Ditto.
13201 (linux_kill): Don't dereference NULL pointer.
13202 Fetch ptid,lwpid from thread.
13203 (get_detach_signal): Fetch ptid from thread.
13204 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13205 Simplify call to regcache_invalidate_thread.
13206 (delete_lwp_callback): Update, "entry" parameter is a
13207 struct thread_info * now. Fetch pid from thread.
13208 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13209 (status_pending_p_callback): Update, "entry" parameter is a
13210 struct thread_info * now. Fetch ptid from thread.
13211 (find_lwp_pid): Update, "entry" parameter is a
13212 struct thread_info * now.
13213 (linux_wait_for_lwp): Fetch pid from thread.
13214 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13215 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13216 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13217 (dequeue_one_deferred_signal): Ditto.
13218 (cancel_breakpoint): Fetch ptid from current_inferior.
13219 (linux_wait_for_event): Pass &all_threads to find_inferior,
13220 not &all_lwps. Fetch ptid, lwpid from thread.
13221 (count_events_callback): Update, "entry" parameter is a
13222 struct thread_info * now.
13223 (select_singlestep_lwp_callback): Ditto.
13224 (select_event_lwp_callback): Ditto.
13225 (cancel_breakpoints_callback): Ditto.
13226 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13227 not &all_lwps.
13228 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13229 (unsuspend_one_lwp): Update, "entry" parameter is a
13230 struct thread_info * now.
13231 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13232 not &all_lwps.
13233 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13234 Fetch lwpid from thread, not lwp.
13235 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13236 Pass &all_threads to find_inferior, not &all_lwps.
13237 (send_sigstop): Fetch lwpid from thread, not lwp.
13238 (send_sigstop_callback): Update, "entry" parameter is a
13239 struct thread_info * now.
13240 (suspend_and_send_sigstop_callback): Ditto.
13241 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13242 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13243 struct thread_info * now.
13244 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13245 from thread, lwp.
13246 (lwp_running): Update, "entry" parameter is a
13247 struct thread_info * now.
13248 (stop_all_lwps): Fetch ptid from thread.
13249 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13250 (linux_resume_one_lwp): Fetch lwpid from thread.
13251 (linux_set_resume_request): Update, "entry" parameter is a
13252 struct thread_info * now. Fetch pid, lwpid from thread.
13253 (resume_status_pending_p): Update, "entry" parameter is a
13254 struct thread_info * now.
13255 (need_step_over_p): Ditto. Fetch lwpid from thread.
13256 (start_step_over): Fetch lwpid from thread.
13257 (linux_resume_one_thread): Update, "entry" parameter is a
13258 struct thread_info * now. Fetch lwpid from thread.
13259 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13260 (proceed_one_lwp): Update, "entry" parameter is a
13261 struct thread_info * now. Fetch lwpid from thread.
13262 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13263 struct thread_info * now.
13264 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13265 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13266 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13267 directly.
13268 (regsets_store_inferior_registers): Ditto.
13269 (fetch_register, store_register): Ditto.
13270 (linux_read_memory, linux_write_memory): Ditto.
13271 (linux_request_interrupt): Ditto.
13272 (linux_read_auxv): Ditto.
13273 (linux_xfer_siginfo): Ditto.
13274 (linux_qxfer_spu): Ditto.
13275 (linux_qxfer_libraries_svr4): Ditto.
13276 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13277 moved to inferiors.h.
13278 (get_lwp): Delete.
13279 (get_thread_lwp): Update.
13280 (struct lwp_info): Delete member "entry". Simplify comment for
13281 member "thread".
13282 (all_lwps): Delete.
13283 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13284 current_inferior directly.
13285 (update_watch_registers_callback): Update, "entry" parameter is a
13286 struct thread_info * now. Fetch pid from thread.
13287 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13288 (mips_insert_point): Fetch lwpid from current_inferior.
13289 Pass &all_threads to find_inferior, not &all_lwps.
13290 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13291 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13292 directly.
13293 (mips_stopped_data_address): Ditto.
13294 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13295 directly.
13296 * linux-tile-low.c (tile_arch_setup): Ditto.
13297 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13298 (update_debug_registers_callback): Update, "entry" parameter is a
13299 struct thread_info * now. Fetch pid from thread.
13300 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13301 Pass &all_threads to find_inferior, not &all_lwps.
13302 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13303 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13304 Pass &all_threads to find_inferior, not &all_lwps.
13305 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13306 (i386_dr_low_get_status): Ditto.
13307 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13308 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13309 (x86_linux_read_description): Ditto.
13310 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13311
3b8361aa
DE
133122014-02-20 Doug Evans <dje@google.com>
13313
13314 * inferiors.c (get_first_inferior): Fix buglet.
13315
f7667f0d
DE
133162014-02-19 Doug Evans <dje@google.com>
13317
13318 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13319 * inferiors.c (add_thread): Change result type to struct thread_info *.
13320 All callers updated.
13321 (add_lwp): Call add_thread here instead of in callers.
13322 All callers updated.
13323 * linux-low.h (get_lwp_thread): Rewrite.
13324 (struct lwp_info): New member "thread".
13325
b3312d80
DE
133262014-02-19 Doug Evans <dje@google.com>
13327
13328 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13329 All callers updated.
13330
ecc6f45c
DE
133312014-02-19 Doug Evans <dje@google.com>
13332
13333 * inferiors.c (add_thread): Fix whitespace.
13334
649ebbca
DE
133352014-02-19 Doug Evans <dje@google.com>
13336
13337 * dll.c (clear_dlls): Replace accessing list implemention details
13338 with API function.
13339 * gdbthread.h (get_first_thread): Declare.
13340 * inferiors.c (for_each_inferior_with_data): New function.
13341 (get_first_thread): New function.
13342 (find_thread_ptid): Simplify.
13343 (get_first_inferior): New function.
13344 (clear_list): Delete.
13345 (one_inferior_p): New function.
13346 (clear_inferior_list): New function.
13347 (clear_inferiors): Update.
13348 * inferiors.h (for_each_inferior_with_data): Declare.
13349 (clear_inferior_list): Declare.
13350 (one_inferior_p): Declare.
13351 (get_first_inferior): Declare.
13352 * linux-low.c (linux_wait_for_event): Replace accessing list
13353 implemention details with API function.
13354 * server.c (target_running): Ditto.
13355 (accumulate_file_name_length): New function.
13356 (emit_dll_description): New function.
13357 (handle_qxfer_libraries): Replace accessing list implemention
13358 details with API function.
13359 (handle_qxfer_threads_worker): New function.
13360 (handle_qxfer_threads_proper): Replace accessing list implemention
13361 details with API function.
13362 (handle_query): Ditto.
13363 (visit_actioned_threads_callback_ftype): New typedef.
13364 (visit_actioned_threads_data): New struct.
13365 (visit_actioned_threads): Rewrite to be find_inferior callback.
13366 (resume): Call find_inferior.
13367 (handle_status): Replace accessing list implemention
13368 details with API function.
13369 (process_serial_event): Replace accessing list implemention details
13370 with API function.
13371 * target.c (set_desired_inferior): Replace accessing list implemention
13372 details with API function.
13373 * tracepoint.c (same_process_p): New function.
13374 (gdb_agent_about_to_close): Replace accessing list implemention
13375 details with API function.
13376 * win32-low.c (child_delete_thread): Replace accessing list
13377 implemention details with API function.
13378 (match_dll_by_basename): New function.
13379 (dll_is_loaded_by_basename): New function.
13380 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13381 details call to dll_is_loaded_by_basename.
13382
80894984
DE
133832014-02-19 Doug Evans <dje@google.com>
13384
13385 * dll.h (struct dll_info): Add comment.
13386 * gdbthread.h (struct thread_info): Add comment.
13387 (current_ptid): Simplify.
13388 * inferiors.c (add_process): Update.
13389 (remove_process): Update.
13390 * inferiors.h (struct process_info): Rename member "head" to "entry".
13391 * linux-low.c (delete_lwp): Update.
13392 (add_lwp): Update.
13393 (last_thread_of_process_p): Update.
13394 (kill_one_lwp_callback, linux_kill): Update.
13395 (status_pending_p_callback): Update.
13396 (wait_for_sigstop): Update. Simplify read of ptid.
13397 (start_step_over): Update.
13398 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13399 (get_lwp_thread): Update.
13400 (struct lwp_info): Rename member "head" to "entry".
13401 * regcache.h (inferior_list_entry): Delete.
13402 * server.c (kill_inferior_callback): Update.
13403 (detach_or_kill_inferior_callback): Update.
13404 (print_started_pid): Update.
13405 (print_attached_pid): Update.
13406 (process_serial_event): Simplify read of ptid.
13407 * thread-db.c (thread_db_create_event): Update.
13408 (thread_db_get_tls_address): Update.
13409 * win32-low.c (current_inferior_ptid): Simplify.
13410
46917d26
TT
134112014-02-19 Tom Tromey <tromey@redhat.com>
13412
13413 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13414 argument.
13415 (target_supports_btrace): Update.
13416
0759a81e
YQ
134172014-02-14 Yao Qi <yao@codesourcery.com>
13418
13419 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13420 (rsp-low-ipa.o): New target.
13421
a7191e8b
TT
134222014-02-12 Tom Tromey <tromey@redhat.com>
13423
13424 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13425 convert_ascii_to_int.
13426 * regcache.c (registers_to_string): Likewise.
13427 * remote-utils.c (decode_M_packet): Likewise.
13428 * server.c (process_serial_event): Likewise.
13429
ff0e980e
TT
134302014-02-12 Tom Tromey <tromey@redhat.com>
13431
13432 * server.c (handle_query, handle_v_run): Use hex2bin, not
13433 unhexify.
13434 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13435
e9371aff
TT
134362014-02-12 Tom Tromey <tromey@redhat.com>
13437
13438 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13439 convert_int_to_ascii.
13440 * regcache.c (registers_to_string, collect_register_as_string):
13441 Likewise.
13442 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13443 Likewise.
13444 * server.c (process_serial_event): Likewise.
13445 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13446 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13447
971dc0b8
TT
134482014-02-12 Tom Tromey <tromey@redhat.com>
13449
13450 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13451 bin2hex, not hexify.
13452 * tracepoint.c (cmd_qtstatus): Likewise.
13453
0a822afb
TT
134542014-02-12 Tom Tromey <tromey@redhat.com>
13455
13456 * remote-utils.c (monitor_output): Pass explicit length to
13457 hexify.
13458
9c3d6531
TT
134592014-02-12 Tom Tromey <tromey@redhat.com>
13460
13461 * tracepoint.c: Include rsp-low.h.
13462 * server.c: Include rsp-low.h.
13463 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13464 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13465 declare.
13466 * remote-utils.c: Include rsp-low.h.
13467 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13468 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13469 (convert_int_to_ascii, convert_ascii_to_int): Move to
13470 common/rsp-low.c.
13471 * regcache.c: Include rsp-low.h.
13472 * ax.c: Include rsp-low.h.
13473 * Makefile.in (SFILES): Add common/rsp-low.c.
13474 (OBS): Add rsp-low.o.
13475 (rsp-low.o): New target.
13476
01fd3ea5
TT
134772014-02-12 Tom Tromey <tromey@redhat.com>
13478
13479 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13480 Include print-utils.h.
13481 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13482 (plongest, thirty_two, phex_nz): Remove.
13483 * Makefile.in (SFILES): Add common/print-utils.c.
13484 (OBS): Add print-utils.o.
13485 (print-utils-ipa.o): New target.
13486 (print-utils.o): New target.
13487 (IPA_OBJS): Add print-utils-ipa.o.
13488
e99dc820
TT
134892014-02-06 Tom Tromey <tromey@redhat.com>
13490
13491 * Makefile.in (SFILES): Fix indentation.
13492
ee1e2d4f
DE
134932014-02-05 Doug Evans <dje@google.com>
13494
13495 * linux-low.c (linux_wait_for_event): Improve comment.
13496 (linux_wait_1): Keep current_inferior in sync with event_child.
13497
f5a02773
DE
134982014-01-22 Doug Evans <dje@google.com>
13499
13500 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13501
87ce2a04
DE
135022014-01-22 Doug Evans <dje@google.com>
13503
13504 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13505 * configure: Regenerate.
13506 * config.in: Regenerate.
13507 * Makefile.in (SFILES): Add debug.c.
13508 (OBS): Add debug.o.
13509 * debug.c: New file.
13510 * debug.h: New file.
13511 * linux-aarch64-low.c (*): Update all debugging printfs to use
13512 debug_printf instead of fprintf.
13513 * linux-arm-low.c (*): Ditto.
13514 * linux-cris-low.c (*): Ditto.
13515 * linux-crisv32-low.c (*): Ditto.
13516 * linux-m32r-low.c (*): Ditto.
13517 * linux-sparc-low.c (*): Ditto.
13518 * linux-x86.c (*): Ditto.
13519 * linux-low.c (*): Ditto.
13520 (linux_wait_1): Add calls to debug_enter, debug_exit.
13521 (linux_wait): Remove redundant debugging printf.
13522 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13523 (linux_resume, unstop_all_lwps): Ditto.
13524 * mem-break.c (*): Update all debugging printfs to use
13525 debug_printf instead of fprintf.
13526 * remote-utils.c (*): Ditto.
13527 * thread-db.c (*): Ditto.
13528 * server.c #include <ctype.h>, "gdb_vecs.h".
13529 (debug_threads): Moved to debug.c.
13530 (*): Update all debugging printfs to use debug_printf instead of
13531 fprintf.
13532 (start_inferior): Replace call to fflush with call to debug_flush.
13533 (monitor_show_help): Mention set debug-format.
13534 (parse_debug_format_options): New function.
13535 (handle_monitor_command): Handle "monitor set debug-format".
13536 (gdbserver_usage): Mention --debug-format.
13537 (main): Parse --debug-format.
13538 * server.h (debug_threads): Declaration moved to debug.h.
13539 #include "debug.h".
13540 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13541 trace_debug_1 that uses debug_printf.
13542 (tracepoint_look_up_symbols): Update all debugging printfs to use
13543 debug_printf instead of fprintf.
13544
e671835b
BS
135452014-01-20 Baruch Siach <baruch@tkos.co.il>
13546
13547 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13548 sys/ptrace.h.
13549
b5737fa9
PA
135502014-01-17 Pedro Alves <palves@redhat.com>
13551
ea38d2a9 13552 PR build/16445
c7faa97a
PA
13553 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13554 defined after including gdb_proc_service.h.
b5737fa9 13555
40ed484e
DE
135562014-01-16 Doug Evans <dje@google.com>
13557
13558 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13559 (match_dll): Use it.
13560
969c39fb
MM
135612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13562
13563 * target.h (target_ops) <read_btrace>: Change parameters and
13564 return type to allow error reporting.
13565 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13566 trace reading errors on.
13567 * linux-low.c (linux_low_read_btrace): Pass trace reading
13568 errors on.
13569 (linux_low_disable_btrace): New.
13570
ab7f45ba
DE
135712014-01-15 Doug Evans <dje@google.com>
13572
13573 * inferiors.c (thread_id_to_gdb_id): Delete.
13574 * inferiors.h (thread_id_to_gdb_id): Delete.
13575
66af0f44
EZ
135762014-01-13 Eli Zaretskii <eliz@gnu.org>
13577
13578 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13579 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13580 versions.
13581
9939e131
PA
135822014-01-08 Pedro Alves <palves@redhat.com>
13583
13584 * server.c (handle_status): Don't discard previous queued stop
13585 replies or thread's pending status here.
13586 (main) <disconnection>: Do it here instead.
13587
b7ea362b
PA
135882014-01-08 Pedro Alves <palves@redhat.com>
13589
13590 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13591 * server.c (visit_actioned_threads, handle_pending_status): New
13592 function.
13593 (handle_v_cont): Factor out parts to ...
13594 (resume): ... this new function. If in all-stop, and a thread
13595 being resumed has a pending status, report it without actually
13596 resuming.
13597 (myresume): Adjust to use the new 'resume' function.
13598 (clear_pending_status_callback, set_pending_status_callback)
13599 (find_status_pending_thread_callback): New functions.
13600 (handle_status): Handle the case of multiple threads having
13601 interesting statuses to report. Report threads' real last signal
13602 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13603 with an interesting thread to report the status for, instead of
13604 always reporting the status of the first thread.
13605
28498c42
JB
136062014-01-01 Joel Brobecker <brobecker@adacore.com>
13607
13608 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13609 * gdbreplay.c (gdbreplay_version): Likewise.
13610
f45c82da
YZ
136112013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13612
13613 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13614 iov.iov_len with the real length in use.
13615
379a5e2d
JB
136162013-12-13 Joel Brobecker <brobecker@adacore.com>
13617
13618 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13619 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13620 for all targets that use win32-low.c.
13621 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13622 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13623
4210d83e
PA
136242013-12-13 Pedro Alves <palves@redhat.com>
13625
13626 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13627 if equal to TARGET_WAITKIND_LOADED.
13628 * win32-low.c (cached_status): New static global.
13629 (win32_wait): Add declaration.
13630 (do_initial_child_stuff): Flush all initial pending debug events
13631 up to the initial breakpoint.
13632 (win32_wait): If CACHED_STATUS was set, return that instead
13633 of doing a real wait. Remove the code resuming the execution
13634 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13635 during the initial phase. Also remove the code changing
13636 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13637 TARGET_WAITKIND_STOPPED.
13638
e7f0d979
YQ
136392013-12-11 Yao Qi <yao@codesourcery.com>
13640
13641 * notif.c (handle_notif_ack): Return 0 if no notification
13642 matches.
13643
ebcf782c
DE
136442013-11-20 Doug Evans <dje@google.com>
13645
13646 * linux-low.c (linux_set_resume_request): Fix comment.
13647
20ad9378
DE
136482013-11-20 Doug Evans <dje@google.com>
13649
13650 * linux-low.c (resume_status_pending_p): Tweak comment.
13651
a196ebeb
WT
136522013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13653
13654 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13655 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13656 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13657 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13658 (srv_amd64_regobj): Add amd64-mpx.o.
13659 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13660 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13661 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13662 * i387-fp.c (num_pl_bnd_register) Added constant.
13663 (num_pl_bnd_cfg_registers) Added constant.
13664 (struct i387_xsave) Added reserved area and MPX fields.
13665 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13666 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13667 function.
13668 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13669 (init_registers_amd64_mpx_linux): Declare new function.
13670 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13671 (x86_64_regmap): Add MPX registers.
13672 (x86_linux_read_description): Add MPX case.
13673 (initialize_low_arch): Initialize MPX targets.
13674
0080a2f6
TT
136752013-11-18 Tom Tromey <tromey@redhat.com>
13676
13677 * configure: Rebuild.
13678 * configure.ac: Don't check for stdlib.h.
13679 * gdbreplay.c: Unconditionally include stdlib.h.
13680
2978b111
TT
136812013-11-18 Tom Tromey <tromey@redhat.com>
13682
13683 * config.in: Rebuild.
13684 * configure: Rebuild.
13685 * configure.ac: Don't use AC_HEADER_DIRENT.
13686
a3d08894
TT
136872013-11-18 Tom Tromey <tromey@redhat.com>
13688
13689 * server.h: Don't check HAVE_STRING_H.
13690 * gdbreplay.c: Don't check HAVE_STRING_H.
13691 * configure: Rebuild.
13692
0a5dd17d
TT
136932013-11-18 Tom Tromey <tromey@redhat.com>
13694
13695 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13696 LIBGNU.
13697
1bd2f0ba
TT
136982013-11-08 Tom Tromey <tromey@redhat.com>
13699
13700 * configure, config.in: Rebuild.
13701 * configure.ac: Remove unused configury.
13702
3266f10b
TT
137032013-11-08 Tom Tromey <tromey@redhat.com>
13704
13705 * acinclude.m4: Include common.m4, codeset.m4.
13706 * configure, config.in: Rebuild.
13707 * configure.ac: Use GDB_AC_COMMON.
13708
6682d959
AA
137092013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13710
13711 * linux-s390-low.c (HWCAP_S390_TE): New define.
13712 (s390_arch_setup): Consider the TE field in the HWCAP for
13713 determining 'have_regset_tdb'.
13714
fd0a4d76
SDJ
137152013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13716
13717 PR gdb/16014
13718 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13719 call to sizeof.
13720
1a3d890b
PA
137212013-10-02 Pedro Alves <palves@redhat.com>
13722
13723 * server.c (process_serial_event): Don't output "GDBserver
13724 exiting" if GDB is connected through stdio.
13725 * target.c (mywait): Likewise, be silent if GDB is connected
13726 through stdio.
13727
97ad4581
JB
137282013-10-01 Joel Brobecker <brobecker@adacore.com>
13729
13730 * lynx-low.c (lynx_add_threads_after_attach): New function.
13731 (lynx_attach): Remove call to add_thread. Add call to
13732 lynx_add_threads_after_attach instead.
13733
5b4e221c
MF
137342013-09-28 Mike Frysinger <vapier@gentoo.org>
13735
13736 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13737 * config.in, configure: Regenerated.
13738
ee47b2f8
YQ
137392013-09-18 Yao Qi <yao@codesourcery.com>
13740
13741 PR server/15959
13742 * server.c (start_inferior): Clear 'resume_info'.
13743
d6707650 137442013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13745
d6707650
JW
13746 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13747 for each register.
13748
9243dd0e 137492013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13750
9243dd0e
JW
13751 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13752 linux-tile-low.o to srv_tgtobj.
13753
c623a6ef
WN
137542013-09-16 Will Newton <will.newton@linaro.org>
13755
13756 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13757 out regs.
13758
fb71d39e
PA
137592013-09-06 Pedro Alves <palves@redhat.com>
13760
13761 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13762 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13763 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13764 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13765 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13766 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13767
8e7e9910
PA
137682013-09-06 Pedro Alves <palves@redhat.com>
13769
13770 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13771 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13772
7c3a12ca
PA
137732013-09-06 Pedro Alves <palves@redhat.com>
13774
13775 * linux-amd64-ipa.c: Include tracepoint.h.
13776 * linux-i386-ipa.c: Include tracepoint.h.
13777
8eb3d7b6
RW
137782013-09-06 Ricard Wanderlof <ricardw@axis.com>
13779
13780 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13781 (ps_get_thread_area): New function.
13782
eddddb9d
RW
137832013-09-06 Ricard Wanderlof <ricardw@axis.com>
13784
13785 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13786 (initialize_low_arch): Call init_registers_crisv32 rather than
13787 init_register_crisv32.
13788
533b0600
PA
137892013-09-05 Pedro Alves <palves@redhat.com>
13790
13791 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13792 to ...
13793 * hostio.h: ... this new file.
13794 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13795 win32-low.c: Include hostio.h.
13796
0ce3d3b5
PA
137972013-09-05 Pedro Alves <palves@redhat.com>
13798
13799 * server.h (gdb_client_data, handler_func, callback_handler_func)
13800 (delete_file_handler, add_file_handler, append_callback_event)
13801 (delete_callback_event, start_event_loop, initialize_event_loop):
13802 Move to event-loop.h and include it.
13803 * event-loop.h: New file.
13804
799cdc37
PA
138052013-09-05 Pedro Alves <palves@redhat.com>
13806
13807 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13808 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13809 (loaded_dll, unloaded_dll): Move to ...
13810 * dll.h: ... this new file.
13811 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13812
6a6bbd9d
PA
138132013-09-05 Pedro Alves <palves@redhat.com>
13814
13815 * server.h (current_process, get_thread_process, all_processes)
13816 (add_inferior_to_list, for_each_inferior, current_inferior)
13817 (remove_inferior, add_process, remove_process, find_process_pid)
13818 (have_started_inferiors_p, have_attached_inferiors_p)
13819 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13820 (clear_inferiors, find_inferior, find_inferior_id)
13821 (inferior_target_data, set_inferior_target_data)
13822 (inferior_regcache_data, set_inferior_regcache_data): Move to
13823 inferiors.h, and include it.
13824 * inferiors.h: New file.
13825
f699aaba
PA
138262013-09-05 Pedro Alves <palves@redhat.com>
13827
13828 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13829 Move ...
72f4393d 13830 * ax.h: ... here.
f699aaba 13831
c144c7a0
PA
138322013-09-05 Pedro Alves <palves@redhat.com>
13833
13834 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13835 tracepoint.h.
13836 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13837 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13838 (handle_tracepoint_general_set, handle_tracepoint_query)
13839 (tracepoint_finished_step, tracepoint_was_hit)
13840 (release_while_stepping_state_list, current_traceframe)
13841 (in_readonly_region, traceframe_read_mem)
13842 (fetch_traceframe_registers, traceframe_read_sdata)
13843 (traceframe_read_info, struct fast_tpoint_collect_status)
13844 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13845 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13846 (supply_fast_tracepoint_registers)
13847 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13848 (ipa_tdesc, claim_trampoline_space)
13849 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13850 (agent_mem_read, agent_get_trace_state_variable_value)
13851 (agent_set_trace_state_variable_value, agent_tsv_read)
13852 (agent_mem_read_string, get_raw_reg_func_addr)
13853 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13854 * tracepoint.h: ... this new file.
13855
ff42e6ab
PA
138562013-09-05 Pedro Alves <palves@redhat.com>
13857
13858 * server.h (perror_with_name, error, fatal, warning, paddress)
13859 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13860 include it.
13861 * utils.h: New file.
13862
541af0f4
PA
138632013-09-05 Pedro Alves <palves@redhat.com>
13864
13865 * server.h (remote_debug, noack_mode, transport_is_reliable)
13866 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13867 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13868 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13869 (write_enn, initialize_async_io, enable_async_io)
13870 (disable_async_io, check_remote_input_interrupt_request)
13871 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13872 (dead_thread_notify, prepare_resume_reply)
13873 (decode_address_to_semicolon, decode_address, decode_m_packet)
13874 (decode_M_packet, decode_X_packet, decode_xfer_write)
13875 (decode_search_memory_packet, unhexify, hexify)
13876 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13877 (look_up_one_symbol, relocate_instruction)
13878 (monitor_output): Move to remote-utils.h, and include it.
13879 * remote-utils.h: New file.
13880
eebdf26b
PA
138812013-09-05 Pedro Alves <palves@redhat.com>
13882
13883 * server.h (_): Delete.
13884
3aafd2ff
PA
138852013-09-02 Pedro Alves <palves@redhat.com>
13886
13887 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13888 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13889 allocated.
13890 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13891
cee83bcb
PM
138922013-09-02 Pierre Muller <muller@sourceware.org>
13893
13894 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13895 or WriteProcessMemory complete successfully and handle
13896 ERROR_PARTIAL_COPY error.
13897
9a13b2fa
PA
138982013-09-02 Pedro Alves <palves@redhat.com>
13899
13900 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13901 error instead of EIO.
13902
602e3198
JK
139032013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13904
13905 PR server/15604
13906 * linux-low.c: Include filestuff.h.
13907 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13908 * lynx-low.c: Include filestuff.h.
13909 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13910 * server.c: Include filestuff.h.
13911 (main): Call notice_open_fds.
13912 * spu-low.c: Include filestuff.h.
13913 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13914
96d7229d
LM
139152013-08-22 Luis Machado <lgustavo@codesourcery.com>
13916
13917 * Makefile.in: Explain why ../target and ../nat are not
13918 listed as include file search paths.
13919 (linux-waitpid.o): New object file rule.
13920 * configure.srv (srv_native_linux_obj): New variable.
13921 Replace all occurrences of linux native object files with
13922 $srv_native_linux_obj.
13923 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13924 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13925 (linux_enable_event_reporting): Remove declaration.
13926 (my_waitpid): Moved to common/linux-waitpid.c.
13927 (linux_wait_for_event): Pass ptid when calling
13928 linux_enable_event_reporting.
13929 (linux_supports_tracefork_flag): Remove.
13930 (linux_enable_event_reporting): Likewise.
13931 (linux_tracefork_grandchild): Remove.
13932 (STACK_SIZE): Moved to common/linux-ptrace.c.
13933 (linux_tracefork_child): Remove.
13934 (linux_test_for_tracefork): Remove.
13935 (linux_look_up_symbols): Call linux_supports_traceclone.
13936 (initialize_low): Remove call to linux_test_for_tracefork.
13937 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13938 common/linux-ptrace.h.
13939 (PTRACE_TYPE_ARG4): Likewise.
13940 Include linux-ptrace.h.
13941
32940073
PA
139422013-08-21 Pedro Alves <palves@redhat.com>
13943
13944 * config.in: Renegerate.
13945
33b60d58 139462013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13947
33b60d58
LM
13948 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13949 (SFILES): Remove $(srcdir)/common/target-common.c and
13950 add $(srcdir)/target/waitstatus.c.
13951 (OBS): Remove target-common.o and add waitstatus.o.
13952 (server_h): Remove $(srcdir)/../common/target-common.h and
13953 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13954 and $(srcdir)/../target/waitstatus.h.
13955 (target-common.o): Remove.
13956 (waitstatus.o): New target object file.
13957 * target.h: Do not include target-common.h and
13958 include target/resume.h, target/wait.h and
13959 target/waitstatus.h.
13960
b8e1b30e
LM
139612013-08-13 Luis Machado <lgustavo@codesourcery.com>
13962
13963 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13964 to PTRACE_TYPE_ARG3.
13965 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13966 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13967 PTRACE_TYPE_ARG4.
13968 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13969 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13970
7a60ad40
YQ
139712013-07-27 Jie Zhang <jie@codesourcery.com>
13972 Daniel Jacobowitz <dan@codesourcery.com>
13973 Yao Qi <yao@codesourcery.com>
13974
13975 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13976 (mips-linux-watch.o): New rule.
13977 (mips_linux_watch_h): New variable.
13978 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13979 srv_tgtobj.
13980 * linux-mips-low.c: Include mips-linux-watch.h.
13981 (struct arch_process_info, struct arch_lwp_info): New.
13982 (update_watch_registers_callback): New function.
13983 (mips_linux_new_process, mips_linux_new_thread) New functions.
13984 (mips_linux_prepare_to_resume, mips_insert_point): New
13985 functions.
13986 (mips_remove_point, mips_stopped_by_watchpoint): New
13987 functions.
13988 (rsp_bp_type_to_target_hw_bp_type): New function.
13989 (mips_stopped_data_address): New function.
13990 (the_low_target): Add watchpoint support functions.
13991
de6f69ad
YQ
139922013-07-27 Yao Qi <yao@codesourcery.com>
13993
13994 * i386-low.c: Include break-common.h.
13995 (enum target_hw_bp_type): Remove.
13996
3360c0bf
LM
139972013-07-24 Luis Machado <lgustavo@codesourcery.com>
13998
13999 * Makefile.in (SFILES): /common/target-common.c.
14000 (OBS): Add target-common.o.
14001 (server_h): Add $(srcdir)/../common/target-common.h.
14002 (target-common.o): New target.
14003 * server.c (queue_stop_reply_callback): Free
14004 status string after use.
14005 * target.c (target_waitstatus_to_string): Remove.
14006 * target.h: Include target-common.h.
14007 (resume_kind): Likewise.
14008 (target_waitkind): Likewise.
14009 (target_waitstatus): Likewise.
14010 (TARGET_WNOHANG): Likewise.
14011
bd885420
YQ
140122013-07-04 Yao Qi <yao@codesourcery.com>
14013
14014 * Makefile.in (host_alias): Use @host_noncanonical@.
14015 (target_alias): Use @target_noncanonical@.
14016 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14017 ACX_NONCANONICAL_HOST.
14018 * configure: Regenerated.
14019
14020 Revert:
14021 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14022
14023 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14024 * configure: Rebuild.
14025 * Makefile.in (version_host, version_target): Get from configure.
14026 (version.c): Use $(version_host) and $(version_target).
14027
17ef446e
PA
140282013-07-03 Pedro Alves <palves@redhat.com>
14029
14030 * Makefile.in (config.status): Depend on development.sh.
14031 * acinclude.m4: Include libmcheck.m4.
14032 * configure: Regenerate.
14033
7a9a7487
MG
140342013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14035
14036 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14037 attribute inside the parentheses.
14038 (winapi_DebugSetProcessKillOnExit): Ditto.
14039 (winapi_DebugBreakProcess): Ditto.
14040 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14041
49b64de6
MG
140422013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14043
14044 * notif.h (notif_event): Add a dummy member to avoid compiler
14045 errors.
14046
d5749ee7
PA
140472013-07-01 Pedro Alves <palves@redhat.com>
14048
14049 * hostio.c (HOSTIO_PATH_MAX): Define.
14050 (require_filename, handle_open, handle_unlink, handle_readlink):
14051 Use it.
14052
d8d2a3ee
PA
140532013-07-01 Pedro Alves <palves@redhat.com>
14054
14055 * server.h: Include "pathmax.h".
14056 * linux-low.c: Don't include sys/param.h.
14057 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14058 MAXPATHLEN.
14059 * win32-low.c: Don't include sys/param.h.
14060 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14061
bc7dea8d
PA
140622013-07-01 Pedro Alves <palves@redhat.com>
14063
14064 * event-loop.c: Don't check HAVE_UNISTD_H before including
14065 <unistd.h>.
14066 * gdbreplay.c: Likewise.
14067 * remote-utils.c: Likewise.
14068 * server.c: Likewise.
14069 * configure.ac: Don't check for unistd.h.
14070 * configure: Regenerate.
14071
d6c2da54
TT
140722013-06-28 Tom Tromey <tromey@redhat.com>
14073
14074 * Makefile.in (version.c): Use version.in, not
14075 common/version.in.
14076
257b6bec
MG
140772013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14078
14079 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14080 * configure: Rebuild.
14081 * Makefile.in (version_host, version_target): Get from configure.
14082 (version.c): Use $(version_host) and $(version_target).
14083
86ebe149
DK
140842013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14085
14086 Fix trace-status to output user name without trailing colon.
14087 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14088
f30aa5af
DK
140892013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14090
14091 Fix trace-status to output proper start-time and stop-time.
14092 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14093 output start time and stop time in hex as gdb expects.
14094
28a93511
YQ
140952013-06-26 Pedro Alves <pedro@codesourcery.com>
14096
14097 * tracepoint.c (build_traceframe_info_xml): Output trace state
14098 variables present in the trace buffer.
14099
01208463
TT
141002013-06-24 Tom Tromey <tromey@redhat.com>
14101
14102 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14103 create-version.sh.
14104 (version.o): Remove.
14105 * gdbreplay.c: Include version.h.
14106 (version, host_name): Don't declare.
14107 * server.h: Include version.h.
14108 (version, host_name): Don't declare.
14109
760256f9
PA
141102013-06-12 Pedro Alves <palves@redhat.com>
14111
14112 * linux-x86-low.c (linux_is_elf64): Delete global.
14113 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14114 with local linux_pid_exe_is_elf_64_file use.
14115
030031ee
PA
141162013-06-11 Pedro Alves <palves@redhat.com>
14117
14118 * linux-low.c (regset_disabled, disable_regset): New functions.
14119 (regsets_fetch_inferior_registers)
14120 (regsets_store_inferior_registers): Use them.
14121 (initialize_regsets_info); Don't allocate the disabled_regsets
14122 array here.
14123 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14124 comment.
14125
5da6eb0a
PA
141262013-06-11 Pedro Alves <palves@redhat.com>
14127
14128 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14129 xmalloc.
14130
7e5aaa09
PA
141312013-06-11 Pedro Alves <palves@redhat.com>
14132
14133 * linux-x86-low.c (initialize_low_arch): Call
14134 init_registers_x32_avx_linux.
14135
d878444c
JK
141362013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14137
14138 Fix compatibility with Android Bionic.
14139 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14140 it is not empty.
14141
3aee8918
PA
141422013-06-07 Pedro Alves <palves@redhat.com>
14143
5f2b57b5 14144 PR server/14823
3aee8918
PA
14145 * Makefile.in (OBS): Add tdesc.o.
14146 (IPA_OBJS): Add tdesc-ipa.o.
14147 (tdesc-ipa.o): New rule.
14148 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14149 interface.
14150 * linux-low.c (new_inferior): Delete.
14151 (disabled_regsets, num_regsets): Delete.
14152 (linux_add_process): Adjust to set the new per-process
14153 new_inferior flag.
14154 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14155 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14156 was a stop. When calling arch_setup, switch the current inferior
14157 to the thread that got an event.
14158 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14159 (regsets_fetch_inferior_registers)
14160 (regsets_store_inferior_registers): New regsets_info parameter.
14161 Adjust to use it.
14162 (linux_register_in_regsets): New regs_info parameter. Adjust to
14163 use it.
14164 (register_addr, fetch_register, store_register): New usrregs_info
14165 parameter. Adjust to use it.
14166 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14167 parameter regs_info. Adjust to use it.
14168 (linux_fetch_registers): Get the current inferior's regs_info, and
14169 adjust to use it.
14170 (linux_store_registers): Ditto.
14171 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14172 (initialize_low): Don't initialize the target_regsets here. Call
14173 initialize_low_arch.
14174 * linux-low.h (target_regsets): Delete declaration.
14175 (struct regsets_info): New.
14176 (struct usrregs_info): New.
14177 (struct regs_info): New.
14178 (struct process_info_private) <new_inferior>: New field.
14179 (struct linux_target_ops): Delete the num_regs, regmap, and
14180 regset_bitmap fields. New field regs_info.
14181 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14182 * i387-fp.c (num_xmm_registers): Delete.
14183 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14184 calls to new interface.
14185 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14186 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14187 Infer the number of xmm registers from the regcache's target
14188 description.
14189 * i387-fp.h (num_xmm_registers): Delete.
14190 * inferiors.c (add_thread): Don't install the thread's regcache
14191 here.
14192 * proc-service.c (gregset_info): Fetch the current inferior's
14193 regs_info. Adjust to use it.
14194 * regcache.c: Include tdesc.h.
14195 (register_bytes, reg_defs, num_registers)
14196 (gdbserver_expedite_regs): Delete.
14197 (get_thread_regcache): If the thread doesn't have a regcache yet,
14198 create one, instead of aborting gdbserver.
14199 (regcache_invalidate_one): Rename to ...
14200 (regcache_invalidate_thread): ... this.
14201 (regcache_invalidate_one): New.
14202 (regcache_invalidate): Only invalidate registers of the current
14203 process.
14204 (init_register_cache): Add target_desc parameter, and use it.
14205 (new_register_cache): Ditto. Assert the target description has a
14206 non zero registers_size.
14207 (regcache_cpy): Add assertions. Adjust.
14208 (realloc_register_cache, set_register_cache): Delete.
14209 (registers_to_string, registers_from_string): Adjust.
14210 (find_register_by_name, find_regno, find_register_by_number)
14211 (register_cache_size): Add target_desc parameter, and use it.
14212 (free_register_cache_thread, free_register_cache_thread_one)
14213 (regcache_release, register_cache_size): New.
14214 (register_size): Add target_desc parameter, and use it.
14215 (register_data, supply_register, supply_register_zeroed)
14216 (supply_regblock, supply_register_by_name, collect_register)
14217 (collect_register_as_string, collect_register_by_name): Adjust.
14218 * regcache.h (struct target_desc): Forward declare.
14219 (struct regcache) <tdesc>: New field.
14220 (init_register_cache, new_register_cache): Add target_desc
14221 parameter.
14222 (regcache_invalidate_thread): Declare.
14223 (regcache_invalidate_one): Delete declaration.
14224 (regcache_release): Declare.
14225 (find_register_by_number, register_cache_size, register_size)
14226 (find_regno): Add target_desc parameter.
14227 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14228 declarations.
14229 * remote-utils.c: Include tdesc.h.
14230 (outreg, prepare_resume_reply): Adjust.
14231 * server.c: Include tdesc.h.
14232 (gdbserver_xmltarget): Delete declaration.
14233 (get_features_xml, process_serial_event): Adjust.
14234 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14235 declare.
14236 (struct process_info) <tdesc>: New field.
14237 (ipa_tdesc): Declare.
14238 * tdesc.c: New file.
14239 * tdesc.h: New file.
14240 * tracepoint.c: Include tdesc.h.
14241 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14242 (get_context_regcache): Adjust to pass ipa_tdesc down.
14243 (do_action_at_tracepoint): Adjust to get the register cache size
14244 from the context regcache's description.
14245 (traceframe_walk_blocks): Adjust to get the register cache size
14246 from the current trace frame's description.
14247 (traceframe_get_pc): Adjust to get current trace frame's
14248 description and pass it down.
14249 (gdb_collect): Adjust to get the register cache size from the
14250 IPA's description.
14251 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14252 (gdbserver_xmltarget): Delete.
14253 (initialize_low_tracepoint): Set the ipa's target description.
14254 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14255 (initialize_low_tracepoint): Set the ipa's target description.
14256 * linux-x86-low.c: Include tdesc.h.
14257 [__x86_64__] (is_64bit_tdesc): New.
14258 (ps_get_thread_area, x86_get_thread_area): Use it.
14259 (i386_cannot_store_register): Rename to ...
14260 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14261 (i386_cannot_fetch_register): Rename to ...
14262 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14263 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14264 to new interface.
14265 (target_regsets): Rename to ...
14266 (x86_regsets): ... this.
14267 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14268 interface.
14269 (x86_siginfo_fixup): Use is_64bit_tdesc.
14270 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14271 (tdesc_x32_avx_linux, tdesc_x32_linux)
14272 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14273 Declare.
14274 (x86_linux_update_xmltarget): Delete.
14275 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14276 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14277 (AMD64_LINUX_USER64_CS): New.
14278 (x86_linux_read_description): New, based on
14279 x86_linux_update_xmltarget.
14280 (same_process_callback): New.
14281 (x86_arch_setup_process_callback): New.
14282 (x86_linux_update_xmltarget): New.
14283 (x86_regsets_info): New.
14284 (amd64_linux_regs_info): New.
14285 (i386_linux_usrregs_info): New.
14286 (i386_linux_regs_info): New.
14287 (x86_linux_regs_info): New.
14288 (x86_arch_setup): Reimplement.
14289 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14290 (x86_emit_ops): Ditto.
14291 (the_low_target): Adjust. Install x86_linux_regs_info,
14292 x86_cannot_fetch_register, and x86_cannot_store_register.
14293 (initialize_low_arch): New.
14294 * linux-ia64-low.c (tdesc_ia64): Declare.
14295 (ia64_fetch_register): Adjust.
14296 (ia64_usrregs_info, regs_info): New globals.
14297 (ia64_regs_info): New function.
14298 (the_low_target): Adjust.
14299 (initialize_low_arch): New function.
14300 * linux-sparc-low.c (tdesc_sparc64): Declare.
14301 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14302 Adjust.
14303 (sparc_arch_setup): New function.
14304 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14305 (the_low_target): Adjust.
14306 (initialize_low_arch): New function.
14307 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14308 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14309 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14310 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14311 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14312 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14313 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14314 (tdesc_powerpc_isa205_vsx64l): Declare.
14315 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14316 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14317 (ppc_set_pc, ppc_get_hwcap): Adjust.
14318 (ppc_usrregs_info): Forward declare.
14319 (!__powerpc64__) ppc_regmap_adjusted: New global.
14320 (ppc_arch_setup): Adjust to the current process'es target
14321 description.
14322 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14323 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14324 (ppc_store_evrregset): Adjust.
14325 (target_regsets): Rename to ...
14326 (ppc_regsets): ... this, and make static.
14327 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14328 (ppc_regs_info): New function.
14329 (the_low_target): Adjust.
14330 (initialize_low_arch): New function.
14331 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14332 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14333 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14334 (tdesc_s390x_linux64v2): Declare.
14335 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14336 (s390_fill_gregset, s390_store_last_break): Adjust.
14337 (target_regsets): Rename to ...
14338 (s390_regsets): ... this, and make static.
14339 (s390_get_pc, s390_set_pc): Adjust.
14340 (s390_get_hwcap): New target_desc parameter, and use it.
14341 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14342 (s390_arch_setup): Adjust to set the current process'es target
14343 description. Don't adjust the regmap.
14344 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14345 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14346 (regs_info_3264): New globals.
14347 (s390_regs_info): New function.
14348 (the_low_target): Adjust.
14349 (initialize_low_arch): New function.
14350 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14351 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14352 [__mips64] (init_registers_mips_linux)
14353 (init_registers_mips_dsp_linux): Delete defines.
14354 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14355 (have_dsp): New global.
14356 (mips_read_description): New, based on mips_arch_setup.
14357 (mips_arch_setup): Reimplement.
14358 (get_usrregs_info): New function.
14359 (mips_cannot_fetch_register, mips_cannot_store_register)
14360 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14361 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14362 (target_regsets): Rename to ...
14363 (mips_regsets): ... this, and make static.
14364 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14365 (dsp_regs_info, regs_info): New globals.
14366 (mips_regs_info): New function.
14367 (the_low_target): Adjust.
14368 (initialize_low_arch): New function.
14369 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14370 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14371 Declare.
14372 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14373 (arm_read_description): New, with bits factored from
14374 arm_arch_setup.
14375 (arm_arch_setup): Reimplement.
14376 (target_regsets): Rename to ...
14377 (arm_regsets): ... this, and make static.
14378 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14379 (arm_regs_info): New function.
14380 (the_low_target): Adjust.
14381 (initialize_low_arch): New function.
14382 * linux-m68k-low.c (tdesc_m68k): Declare.
14383 (target_regsets): Rename to ...
14384 (m68k_regsets): ... this, and make static.
14385 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14386 (m68k_regs_info): New function.
14387 (m68k_arch_setup): New function.
14388 (the_low_target): Adjust.
14389 (initialize_low_arch): New function.
14390 * linux-sh-low.c (tdesc_sharch): Declare.
14391 (target_regsets): Rename to ...
14392 (sh_regsets): ... this, and make static.
14393 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14394 (sh_regs_info, sh_arch_setup): New functions.
14395 (the_low_target): Adjust.
14396 (initialize_low_arch): New function.
14397 * linux-bfin-low.c (tdesc_bfin): Declare.
14398 (bfin_arch_setup): New function.
14399 (bfin_usrregs_info, regs_info): New globals.
14400 (bfin_regs_info): New function.
14401 (the_low_target): Adjust.
14402 (initialize_low_arch): New function.
14403 * linux-cris-low.c (tdesc_cris): Declare.
14404 (cris_arch_setup): New function.
14405 (cris_usrregs_info, regs_info): New globals.
14406 (cris_regs_info): New function.
14407 (the_low_target): Adjust.
14408 (initialize_low_arch): New function.
14409 * linux-cris-low.c (tdesc_crisv32): Declare.
14410 (cris_arch_setup): New function.
14411 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14412 (cris_regs_info): New function.
14413 (the_low_target): Adjust.
14414 (initialize_low_arch): New function.
14415 * linux-m32r-low.c (tdesc_m32r): Declare.
14416 (m32r_arch_setup): New function.
14417 (m32r_usrregs_info, regs_info): New globals.
14418 (m32r_regs_info): Adjust.
14419 (initialize_low_arch): New function.
14420 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14421 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14422 (tic6x_usrregs_info): Forward declare.
14423 (tic6x_read_description): New function, based on ...
14424 (tic6x_arch_setup): ... this. Reimplement.
14425 (target_regsets): Rename to ...
14426 (tic6x_regsets): ... this, and make static.
14427 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14428 (tic6x_regs_info): New function.
14429 (the_low_target): Adjust.
14430 (initialize_low_arch): New function.
14431 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14432 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14433 (target_regsets): Rename to ...
14434 (xtensa_regsets): ... this, and make static.
14435 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14436 globals.
14437 (xtensa_arch_setup, xtensa_regs_info): New functions.
14438 (the_low_target): Adjust.
14439 (initialize_low_arch): New function.
14440 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14441 (nios2_arch_setup): Set the current process'es tdesc.
14442 (target_regsets): Rename to ...
14443 (nios2_regsets): ... this.
14444 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14445 (nios2_regs_info): New function.
14446 (the_low_target): Adjust.
14447 (initialize_low_arch): New function.
a261b8f5
PA
14448 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14449 (aarch64_arch_setup): Set the current process'es tdesc.
14450 (target_regsets): Rename to ...
14451 (aarch64_regsets): ... this.
14452 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14453 (aarch64_regs_info): New function.
14454 (the_low_target): Adjust.
14455 (initialize_low_arch): New function.
3aee8918
PA
14456 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14457 globals.
14458 (target_regsets): Rename to ...
14459 (tile_regsets): ... this.
14460 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14461 (tile_regs_info): New function.
14462 (tile_arch_setup): Set the current process'es tdesc.
14463 (the_low_target): Adjust.
14464 (initialize_low_arch): New function.
14465 * spu-low.c (tdesc_spu): Declare.
14466 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14467 * win32-arm-low.c (tdesc_arm): Declare.
14468 (arm_arch_setup): New function.
14469 (the_low_target): Install arm_arch_setup instead of
14470 init_registers_arm.
14471 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14472 (init_windows_x86): Rename to ...
14473 (i386_arch_setup): ... this. Set `win32_tdesc'.
14474 (the_low_target): Adjust.
14475 * win32-low.c (win32_tdesc): New global.
14476 (child_add_thread): Don't create the thread cache here.
14477 (do_initial_child_stuff): Set the new process'es tdesc.
14478 * win32-low.h (struct target_desc): Forward declare.
14479 (win32_tdesc): Declare.
14480 * lynx-i386-low.c (tdesc_i386): Declare global.
14481 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14482 * lynx-low.c (lynx_tdesc): New global.
14483 (lynx_add_process): Set the new process'es tdesc.
14484 * lynx-low.h (struct target_desc): Forward declare.
14485 (lynx_tdesc): Declare global.
14486 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14487 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14488 * nto-low.c (nto_tdesc): New global.
14489 (do_attach): Set the new process'es tdesc.
14490 * nto-low.h (struct target_desc): Forward declare.
14491 (nto_tdesc): Declare.
14492 * nto-x86-low.c (tdesc_i386): Declare.
14493 (nto_x86_arch_setup): Set `nto_tdesc'.
14494
b1fbec62
GB
144952013-06-04 Gary Benson <gbenson@redhat.com>
14496
14497 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14498 to qSupported response when appropriate.
14499 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14500 with nonzero-length annex.
14501 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14502 arguments supplied in annex.
14503
d1ec4ce7
DE
145042013-05-31 Doug Evans <dje@google.com>
14505
ac44adcb 14506 PR server/15594
d1ec4ce7
DE
14507 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14508 64 bits in 64-cross-32 environment.
14509
9b25f2d3
PA
145102013-05-28 Pedro Alves <palves@redhat.com>
14511
14512 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14513 (aarch64-without-fpu.c): Delete rule.
14514 * configure.srv (aarch64*-*-linux*): Remove references to
14515 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14516 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14517 declaration.
14518
6740dc9c
PA
145192013-05-24 Pedro Alves <palves@redhat.com>
14520
14521 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14522 instead of strchr/decode_address. Error if the range isn't split
14523 with a ','. Don't assume there's be a ':' in the action.
14524
c2d6af84
PA
145252013-05-23 Yao Qi <yao@codesourcery.com>
14526 Pedro Alves <palves@redhat.com>
14527
14528 * linux-low.c (lwp_in_step_range): New function.
14529 (linux_wait_1): If the thread was range stepping and stopped
14530 outside the stepping range, report the stop to GDB. Otherwise,
14531 continue stepping. Add range stepping debug output.
14532 (linux_set_resume_request): Copy the step range from the resume
14533 request to the lwp.
14534 (linux_supports_range_stepping): New.
14535 (linux_target_ops) <supports_range_stepping>: Set to
14536 linux_supports_range_stepping.
14537 * linux-low.h (struct linux_target_ops)
14538 <supports_range_stepping>: New field.
14539 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14540 * linux-x86-low.c (x86_supports_range_stepping): New.
14541 (the_low_target) <supports_range_stepping>: Set to
14542 x86_supports_range_stepping.
14543 * server.c (handle_v_cont): Handle 'r' action.
14544 (handle_v_requests): Append ";r" if the target supports range
14545 stepping.
14546 * target.h (struct thread_resume) <step_range_start,
14547 step_range_end>: New fields.
14548 (struct target_ops) <supports_range_stepping>:
14549 New field.
14550 (target_supports_range_stepping): New macro.
14551
58794e1a
JB
145522013-05-17 Joel Brobecker <brobecker@adacore.com>
14553
14554 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14555 confusion in comment.
14556
d631c5a7
JB
145572013-05-17 Joel Brobecker <brobecker@adacore.com>
14558
14559 * lynx-low.c (struct process_info_private): New type.
14560 (lynx_add_process): New function.
14561 (lynx_create_inferior, lynx_attach): Replace calls to
14562 add_process by calls to lynx_add_process.
14563 (lynx_resume): If PTID is null, then try using
14564 current_process()->private->last_wait_event_ptid.
14565 Add comments.
14566 (lynx_clear_inferiors): Delete. The contents of that function
14567 has been inlined in lynx_mourn;
14568 (lynx_wait_1): Save the ptid in the process's private data.
14569 (lynx_mourn): Free the process' private data. Replace call
14570 to lynx_clear_inferiors by call to clear_inferiors.
14571
96f7a20f
YQ
145722013-05-17 Yao Qi <yao@codesourcery.com>
14573
14574 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14575 the right place.
14576
db0dfaa0
LM
145772013-05-16 Luis Machado <lgustavo@codesourcery.com>
14578
14579 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14580 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14581 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14582 PT_TEXT_END_ADDR guards. Update comments.
14583 (linux_target_op) <read_offsets>: Conditionally define to
14584 linux_read_offsets if the target is UCLIBC and if it defines
14585 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14586
68f5f838
SL
145872013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14588 Andrew Jenner <andrew@codesourcery.com>
14589
14590 * Makefile.in (SFILES): Add linux-nios2-low.c.
14591 (clean): Add action to delete nios2-linux.c.
14592 (nios2-linux.c): New rule.
14593 * configure.srv: Add nios2*-*-linux*.
14594 * linux-nios2-low.c: New.
14595
1ebff1fd
HAQ
145962013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14597
14598 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14599
f6150862
HZ
146002013-04-25 Hui Zhu <hui@codesourcery.com>
14601
14602 PR gdb/15186
f6150862
HZ
14603 * ax.c (ax_printf): Add fflush.
14604
614c279d
TT
146052013-04-22 Tom Tromey <tromey@redhat.com>
14606
14607 * Makefile.in (SFILES): Add filestuff.c.
14608 (OBS): Add filestuff.o.
14609 (filestuff.o): New target.
14610 * config.in, configure: Rebuild.
14611 * configure.ac: Check for fdwalk, pipe2.
14612
7d4e5717
PA
146132013-04-17 Pedro Alves <palves@redhat.com>
14614
14615 * configure.ac (USE_THREAD_DB): Delete variable.
14616 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14617 Don't AC_SUBST USE_THREAD_DB.
14618 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14619 * config.in, configure: Regenerate.
14620
d5c93e41
PA
146212013-04-16 Pedro Alves <palves@redhat.com>
14622
14623 * linux-low.h (struct lwp_info) <thread_known>: Move under
14624 the USE_THREAD_DB #ifdef.
14625
04f5fe89
PA
146262013-04-16 Pedro Alves <palves@redhat.com>
14627
14628 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14629 (linux-low.o): Delete rule.
14630 * linux-low.h: Always include "gdb_thread_db.h" instead of
14631 conditionally including thread_db.h.
14632 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14633 HAVE_THREAD_DB_H.
14634
480b27bf
JK
146352013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14636
14637 * Makefile.in (install-only): Fix make install regression.
14638
43662968
JK
146392013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14640
14641 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14642 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14643 installation.
14644 * gdbserver.1: Remove.
14645
3e74e146
PA
146462013-03-22 Pedro Alves <palves@redhat.com>
14647
14648 * linux-low.c (handle_extended_wait): Don't call
14649 linux_enable_event_reporting.
14650
a8347a2a
TT
146512013-03-15 Tony Theodore <tonyt@logyst.com>
14652
14653 PR build/9098:
14654 * Makefile.in (SHELL): Use @SHELL@.
14655
eeb56fa7
SDJ
146562013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14657
14658 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14659 compiler warning.
14660
4fa7e2ff
JB
146612013-03-13 Joel Brobecker <brobecker@adacore.com>
14662
14663 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14664 Remove extraneous NULL element.
14665
8ddb1965
YQ
146662013-03-13 Yao Qi <yao@codesourcery.com>
14667
14668 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14669 'V' block in trace frame.
14670
9accd112
MM
146712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14672
14673 * target.h (struct target_ops): Add btrace ops.
14674 (target_supports_btrace): New macro.
14675 (target_enable_btrace): New macro.
14676 (target_disable_btrace): New macro.
14677 (target_read_btrace): New macro.
14678 * gdbthread.h (struct thread_info): Add btrace field.
14679 * server.c: Include btrace-common.h.
14680 (handle_btrace_general_set): New function.
14681 (handle_btrace_enable): New function.
14682 (handle_btrace_disable): New function.
14683 (handle_general_set): Call handle_btrace_general_set.
14684 (handle_qxfer_btrace): New function.
14685 (struct qxfer qxfer_packets[]): Add btrace entry.
14686 * inferiors.c (remove_thread): Disable btrace.
14687 * linux-low: Include linux-btrace.h.
14688 (linux_low_enable_btrace): New function.
14689 (linux_low_read_btrace): New function.
14690 (linux_target_ops): Add btrace ops.
14691 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14692 Add srv_linux_btrace=yes.
14693 (x86_64-*-linux*): Add linux-btrace.o.
14694 Add srv_linux_btrace=yes.
14695 * configure.ac: Define HAVE_LINUX_BTRACE.
14696 * config.in: Regenerated.
14697 * configure: Regenerated.
14698
5cc22e4c
MM
146992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14700
14701 * server.c (handle_qxfer): Preserve error message if -3 is
14702 returned.
14703 (qxfer): Document the -3 return value.
14704
7c97f91e
MM
147052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14706
14707 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14708 (linux_btrace_h): New variable.
14709 (linux-btrace.o): New rule.
14710
be9a119c 147112013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14712 Hafiz Abid Qadeer <abidh@codesourcery.com>
14713
14714 * tracepoint.c (trace_buffer_size): New global.
14715 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14716 (init_trace_buffer): Change to one-argument function. Allocate
14717 trace buffer memory.
14718 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14719 handle QTBuffer:size packet.
14720 (cmd_bigqtbuffer_size): New function.
14721 (initialize_tracepoint): Call init_trace_buffer with
14722 DEFAULT_TRACE_BUFFER_SIZE.
14723 * server.c (handle_query): Add QTBuffer:size in the
14724 supported packets.
14725
e64f7499
YQ
147262013-03-07 Yao Qi <yao@codesourcery.com>
14727
14728 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14729 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14730 of -1.
14731 (cmd_qtsp): Adjust condition. Do post increment.
14732 Set cur_action and cur_step_action back to 0.
14733
f0ae6fc3
PA
147342013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14735
14736 PR server/15236
14737 * linux-low.c (linux_write_memory): Return early success if LEN is
14738 zero.
14739
b5b0b0af
CV
147402013-03-05 Corinna Vinschen <vinschen@redhat.de>
14741
334ad4a8 14742 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14743
589bc927
TT
147442013-02-28 Tom Tromey <tromey@redhat.com>
14745
14746 * configure.ac: Invoke AC_SYS_LARGEFILE.
14747 * configure, config.in: Rebuild.
14748
dfe07582
CV
147492013-02-28 Corinna Vinschen <vinschen@redhat.com>
14750
14751 * win32-low.c: Throughout, fix format strings and casts of
14752 printf-like functions to avoid type related warnings on all
14753 platforms.
14754 (get_child_debug_event): Print dwDebugEventCode as hex since
14755 that's how it's usually documented.
14756
736cd585
YQ
147572013-02-28 Yao Qi <yao@codesourcery.com>
14758
14759 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14760 pulongest.
14761
e1f58301
JW
147622013-02-27 Jiong Wang <jiwang@tilera.com>
14763
14764 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14765 (reg-tilegx32.c): New rule.
14766 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14767 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14768 different register info initializer according to elf class.
14769 (init_registers_tilgx32): New function. The tilegx32 register info
14770 initializer.
14771 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14772 (tile_store_gregset): Likewise.
14773
d171ca78
YQ
147742013-02-27 Yao Qi <yao@codesourcery.com>
14775
14776 * server.c (process_point_options): Print debug message when
14777 debug_threads is true.
14778
282bbdf3
YQ
147792013-02-26 Yao Qi <yao@codesourcery.com>
14780
14781 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14782
aca22551
PA
147832013-02-19 Pedro Alves <palves@redhat.com>
14784 Kai Tietz <ktietz@redhat.com>
14785
14786 PR gdb/15161
14787
14788 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14789 instead of strtoul to extract address from packet.
14790 (process_serial_event) <'z'>: Likewise.
14791
4f3cee1c
YQ
147922013-02-18 Yao Qi <yao@codesourcery.com>
14793
14794 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14795
8e1d55a3
PA
147962013-02-14 Pedro Alves <palves@redhat.com>
14797
14798 Plug memory leak.
14799
14800 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14801 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14802
458820da
PA
148032013-02-14 Pedro Alves <palves@redhat.com>
14804
14805 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14806
baea0dae
PA
148072013-02-14 Pedro Alves <palves@redhat.com>
14808
14809 * tracepoint.c (save_string): Delete.
14810 (add_tracepoint_action): Use savestring instead of save_string.
14811
0b1afbb3
PA
148122013-02-12 Pedro Alves <palves@redhat.com>
14813
14814 * linux-xtensa-low.c: Ditto.
14815 * xtensa-xtregs.c: Ditto.
14816
8a4ac37e
PA
148172013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14818
14819 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14820 thread_db.
14821
148de6bb
MS
148222013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14823
14824 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14825 aarch64_num_wp_regs and aarch64_num_bp_regs to
14826 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14827
55fac6e0
MS
148282013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14829
14830 * linux-aarch64-low.c (ps_get_thread_area): Replace
14831 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14832
176eb98c
MS
148332013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14834 Marcus Shawcroft <marcus.shawcroft@arm.com>
14835 Nigel Stephens <nigel.stephens@arm.com>
14836 Yufeng Zhang <yufeng.zhang@arm.com>
14837
14838 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14839 (aarch64.c, aarch64-without-fpu.c): New targets.
14840 * configure.srv (aarch64*-*-linux*): New.
14841 * linux-aarch64-low.c: New file.
14842
56f7af9c
MS
148432013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14844
43aaf8b6 14845 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14846 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14847 (dequeue_one_deferred_signal, linux_resume_one_thread)
14848 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14849 (linux_tracefork_grandchild, linux_test_for_tracefork)
14850 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14851 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14852 where the argument is 0.
14853
60f662b0
YQ
148542013-01-25 Yao Qi <yao@codesourcery.com>
14855
14856 * event-loop.c: Include "queue.h".
14857 (gdb_event_p): New typedef.
14858 (struct gdb_event) <next_event>: Remove.
14859 (event_queue): Change to QUEUE(gdb_event_p).
14860 (async_queue_event): Remove.
14861 (gdb_event_xfree): New.
14862 (initialize_event_loop): New.
14863 (process_event): Use API from QUEUE.
14864 (wait_for_event): Likewise.
14865 * server.c (main): Call initialize_event_loop.
14866 * server.h (initialize_event_loop): Declare.
14867
5ae4861a
YQ
148682013-01-18 Yao Qi <yao@codesourcery.com>
14869
14870 * ax.h (struct eval_agent_expr_context): New.
14871 (gdb_eval_agent_expr): Update declaration.
14872 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14873 TFRAME. Add new argument CTX.
14874 * server.h (struct eval_agent_expr_context): Declare.
14875 (agent_mem_read, agent_tsv_read): Update declaration.
14876 (agent_mem_read_string): Likewise.
14877 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14878 (add_traceframe_block): Add new argument TPOINT.
14879 Increase TPOINT->traceframe_usage.
14880 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14881 eval_tracepoint_agent_expr.
14882 (condition_true_at_tracepoint): Likewise.
14883 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14884 (agent_mem_read_string, agent_tsv_read): Likewise.
14885
85e00e85
YQ
148862013-01-16 Yao Qi <yao@codesourcery.com>
14887
14888 * linux-low.c (linux_resume_one_lwp): Don't check
14889 'lwp->bp_reinsert != 0'.
14890
4039cf45
JB
148912013-01-07 Joel Brobecker <brobecker@adacore.com>
14892 Pedro Alves <palves@redhat.com>
14893
14894 * lynx-low.c (ptrace_request_to_str): Define a temporary
14895 macro and use it to simplify this function's implementation.
14896
9044dee2
JB
148972013-01-07 Joel Brobecker <brobecker@adacore.com>
14898
14899 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14900 sets errno.
14901
e6352c8f
JB
149022013-01-07 Joel Brobecker <brobecker@adacore.com>
14903
14904 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14905
50681a27
JB
149062013-01-07 Joel Brobecker <brobecker@adacore.com>
14907
14908 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14909
3f6e77ef
JB
149102013-01-07 Joel Brobecker <brobecker@adacore.com>
14911
14912 * lynx-low.c (lynx_resume): Use the resume_info parameter
14913 to determine the ptid for the lynx_ptrace call, unless
14914 it is equal to minus_one_ptid, in which case we use the
14915 ptid of the current_inferior.
14916 (lynx_wait_1): After having received a thread create/exit
14917 event, resume the inferior's execution using the signaling
14918 thread's ptid, rather than the old ptid.
14919
7fda33ae
JB
149202013-01-07 Joel Brobecker <brobecker@adacore.com>
14921
14922 * lynx-low.c (lynx_resume): Delete variable ret.
14923
b9786c74
JB
149242013-01-01 Joel Brobecker <brobecker@adacore.com>
14925
14926 * gdbreplay.c (gdbreplay_version): Update copyright year.
14927 * server.c (gdbserver_version): Likewise.
14928
8b93d60f
JB
149292012-12-17 Joel Brobecker <brobecker@adacore.com>
14930
14931 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14932 new thread.
14933
037335a7
JB
149342012-12-17 Joel Brobecker <brobecker@adacore.com>
14935
14936 * lynx-low.c (ptrace_request_to_str): Add handling for
14937 PTRACE_GETTRACESIG.
14938
52d4cbd8
JB
149392012-12-17 Joel Brobecker <brobecker@adacore.com>
14940
14941 * lynx-low.c (lynx_attach): Delete variable new_process.
14942
ab8f6ca9
JB
149432012-12-17 Joel Brobecker <brobecker@adacore.com>
14944
14945 * lynx-low.c (lynx_create_inferior): Delete variable
14946 new_process.
14947
78cbc024
JB
149482012-12-17 Joel Brobecker <brobecker@adacore.com>
14949
14950 * lynx-low.c (ptrace_request_to_str): Do not handle
14951 PTRACE_GETTHREADLIST if this macro does not exist.
14952
14a00470
YQ
149532012-12-15 Yao Qi <yao@codesourcery.com>
14954
14955 * Makefile.in (OBS): Add notif.o.
14956 * notif.c, notif.h: New.
14957 * server.c: Include "notif.h".
14958 (struct vstop_notif) <next>: Remove.
14959 <base>: New field.
14960 (queue_stop_reply): Update.
14961 (push_event, send_next_stop_reply): Remove.
14962 (discard_queued_stop_replies): Update.
14963 (notif_stop): New variable.
14964 (handle_v_stopped): Remove.
14965 (handle_v_requests): Don't call handle_v_stopped. Call
14966 handle_ack_notif instead.
14967 (queue_stop_reply_callback): Call notif_event_enque instead
14968 of queue_stop_reply.
14969 (handle_status): Don't call send_next_stop_reply, call
14970 notif_write_event instead.
14971 (kill_inferior_callback): Likewise.
14972 (detach_or_kill_inferior_callback): Likewise.
14973 (main): Call initialize_notif.
14974 (process_serial_event): Call QUEUE_is_empty.
14975 (handle_target_event): Call notif_push instead of push event.
14976 * server.h (push_event): Remove declaration.
14977
61c125b9
TT
149782012-12-10 Tom Tromey <tromey@redhat.com>
14979
14980 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14981 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14982 macros.
14983 (.c.o): Rewrite.
14984 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14985 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14986 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14987 (amd64-linux-ipa.o, ax.o): Rewrite.
14988 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14989 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14990 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14991 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14992 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14993 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14994 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14995 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14996 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14997 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14998 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14999 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15000 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15001 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15002 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15003 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15004 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15005 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15006 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15007 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15008 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15009 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15010 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15011 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15012 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15013 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15014 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15015 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15016 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15017 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15018 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15019 (reg-tilegx.o): Remove.
15020 (all_object_files): New macro.
15021 Include .deps files.
15022 * aclocal.m4, configure: Rebuild.
15023 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15024 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15025 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15026
e90e9ad9
TT
150272012-12-05 Tom Tromey <tromey@redhat.com>
15028
15029 PR gdb/14917:
15030 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15031
02d403bf 150322012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15033
15034 * configure.ac: Check for linux/perf_event.h.
15035 * config.in: Regenerated.
15036 * configure: Regenerated.
15037
0270a750
PA
150382012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15039
15040 * hostio.c (handle_readlink): Decrease buffer size
15041 parameter passed to readlink by one byte.
15042
8c29b58e
YQ
150432012-11-26 Yao Qi <yao@codesourcery.com>
15044
15045 * configure.ac (build_warnings): Append '-Wempty-body'.
15046 * configure: Regenerated.
15047 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15048 body.
15049
8bdce1ff
PM
150502012-11-15 Pierre Muller <muller@sourceware.org>
15051
15052 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15053 * config.in: Regenerate.
15054 * configure: Regenerate.
15055 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15056 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15057 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15058 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15059 header.
15060 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15061 instead of <sys/wait.h> header.
15062 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15063
02d403bf 150642012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15065
15066 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15067 (various make rules): Remove -DGDBSERVER
15068
fbd5db48
YQ
150692012-11-09 Yao Qi <yao@codesourcery.com>
15070
15071 * spu-low.c (current_ptid): Move it to ..
15072 * gdbthread.h: ... here. New.
15073 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15074 * server.c (myresume, process_serial_event): Likewise.
15075 * thread-db.c (thread_db_find_new_threads): Likewise.
15076 * tracepoint.c (run_inferior_command): Likewise.
15077
b3dc46ff
AB
150782012-10-01 Andrew Burgess <aburgess@broadcom.com>
15079
15080 * server.c (handle_search_memory_1): Include access length in
15081 warning message.
15082
07c04788
HPN
150832012-09-05 Michael Brandt <michael.brandt@axis.com>
15084
15085 * linux-crisv32-low.c: Fix compile errors.
15086
918d227b
YQ
150872012-09-04 Yao Qi <yao@codesourcery.com>
15088
15089 * tracepoint.c (cmd_qtsv): Adjust debug message.
15090 Don't check CUR_TPOINT.
15091
18c1b81a
YQ
150922012-08-28 Yao Qi <yao@codesourcery.com>
15093
15094 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15095 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15096 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15097 Remove declarations of xmalloc, xreallloc, xstrdup and
15098 freeargv.
15099 * Makefile.in (libiberty_h): New.
15100 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15101 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15102
dc82f37b
YQ
151032012-08-23 Yao Qi <yao@codesourcery.com>
15104
15105 * server.h: Remove declaration of 'xsnprintf'.
15106
406b1477
KS
151072012-08-22 Keith Seitz <keiths@redhat.com>
15108
15109 * server.h: Include build-gnulib-gbserver/config.h.
15110 * gdbreplay.c: Likewise.
15111
e6712ff1
DE
151122012-08-08 Doug Evans <dje@google.com>
15113
15114 * Makefile.in (SFILES): Add gdb_vecs.c.
15115 (OBS): Add gdb_vecs.o.
15116 (gdb_vecs_h, host_defs_h): New variables.
15117 (thread-db.o): Add $(gdb_vecs_h) dependency.
15118 (gdb_vecs.o): New rule.
15119 * thread-db.c: #include "gdb_vecs.h".
15120 (thread_db_load_search): Use a vector to iterate over path elements.
15121 Handle text appearing after "$pdir".
15122
15123 * configure.ac: Add check for strstr.
15124 * config.in: Regenerate.
15125 * configure: Regenerate.
15126
7c3270ae
UW
151272012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15128
15129 * hostio.c (handle_pread): If pread fails, fall back to attempting
15130 lseek/read.
15131 (handle_pwrite): Likewise for pwrite.
15132
b62e2b27
UW
151332012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15134
15135 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15136 between unsupported TYPE and unimplementable ADDR/LEN combination.
15137 (arm_insert_point): Act on new return value.
15138
78a99e91
PA
151392012-07-31 Pedro Alves <palves@redhat.com>
15140
15141 * server.c (process_point_options): Only skip tokens if we find
15142 one that is unrecognized. Don't treat 'X' specially while
15143 skipping unrecognized tokens.
15144
fcf303ab
UW
151452012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15146
15147 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15148 to 4-byte-align HW breakpoint addresses for Thumb.
15149
7255706c
YQ
151502012-07-27 Yao Qi <yao@codesourcery.com>
15151
15152 PR remote/14161.
15153
15154 * server.h: Declare gdb_agent_about_to_close.
15155 * target.c (kill_inferior): Include "agent.h".
15156 New. Send command 'kill'.
15157 * target.h (kill_inferior): Removed macro.
15158 * tracepoint.c (gdb_agent_about_to_close): New.
15159 (gdb_agent_helper_thread): Handle command 'close'.
15160 Wait endlessly until the inferior stops.
15161 Install gdb_agent_remove_socket to atexit hook.
15162 (agent_socket_name): New static variable.
15163 (gdb_agent_socket_init): Replace local variable 'name' with
15164 'agent_socket_name'.
15165 (gdb_agent_remove_socket): New.
15166
5a3f286f
YQ
151672012-07-27 Yao Qi <yao@codesourcery.com>
15168
15169 * server.c (process_point_options): Stop at 'X' when parsing.
15170
961bd387
ME
151712012-07-19 Michael Eager <eager@eagercon.com>
15172
a261b8f5 15173 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15174 to hw_execute.
15175 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15176 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15177 hardware breakpoint.
15178
aa7c7447
JK
151792012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15180
15181 * gdbserver/linux-low.c (initialize_low): Call
15182 linux_ptrace_init_warnings.
15183
7f216e7c
DE
151842012-07-02 Doug Evans <dje@google.com>
15185
15186 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15187 pointer to int.
15188
d3ce09f5
SS
151892012-07-02 Stan Shebs <stan@codesourcery.com>
15190
15191 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15192 (ax.o): Add it to build rule.
15193 (ax-ipa.o): Ditto.
15194 (OBS): Add format.o.
15195 (IPA_OBS): Add format.o.
15196 * server.c (handle_query): Claim support for breakpoint commands.
15197 (process_point_options): Add command case.
15198 (process_serial_event): Leave running if there are printfs in
15199 effect.
15200 * mem-break.h (any_persistent_commands): Declare.
15201 (add_breakpoint_commands): Declare.
15202 (gdb_no_commands_at_breakpoint): Declare.
15203 (run_breakpoint_commands): Declare.
15204 * mem-break.c (struct point_command_list): New struct.
15205 (struct breakpoint): New field command_list.
15206 (any_persistent_commands): New function.
15207 (add_commands_to_breakpoint): New function.
15208 (add_breakpoint_commands): New function.
15209 (gdb_no_commands_at_breakpoint): New function.
15210 (run_breakpoint_commands): New function.
15211 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15212 locally.
15213 * ax.c: Include format.h.
15214 (ax_printf): New function.
15215 (gdb_eval_agent_expr): Add printf opcode.
15216
2f8f6aed
YQ
152172012-06-13 Yao Qi <yao@codesourcery.com>
15218
15219 * server.c (start_inferior): Remove duplicated writes to fields
15220 'last_resume_kind' and 'last_status' of 'current_inferior'.
15221
0c9070b3
YQ
152222012-06-12 Yao Qi <yao@codesourcery.com>
15223 Pedro Alves <palves@redhat.com>
15224
15225 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15226 comment.
15227 * server.c (handle_v_cont): Extend comment.
15228
c52daf70
YQ
152292012-06-11 Yao Qi <yao@codesourcery.com>
15230
15231 * linux-low.c (linux_attach): Add 'static'.
15232
d38bbb0a
YQ
152332012-06-06 Yao Qi <yao@codesourcery.com>
15234
15235 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15236
89dc0afd
JK
152372012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15238
15239 Fix gcc -flto compilation warning.
15240 * server.c (main): Make variable multi_mode and attach volatile.
15241
75f62ce7
TJB
152422012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15243
15244 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15245 if the platform doesn't know about it.
15246
65f479b6
PA
152472012-05-30 Jeff Kenton <jkenton@tilera.com>
15248
15249 * Makefile.in (SFILES): Add linux-tile-low.c.
15250 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15251 * configure.srv: Handle tilegx-*-linux*.
15252 * linux-tile-low.c: New file.
15253
0c5bf5a9
JK
152542012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15255
15256 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15257
a493e3e2
PA
152582012-05-24 Pedro Alves <palves@redhat.com>
15259
15260 PR gdb/7205
15261
43aaf8b6 15262 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15263
2ea28649
PA
152642012-05-24 Pedro Alves <palves@redhat.com>
15265
15266 PR gdb/7205
15267
15268 Replace target_signal with gdb_signal throughout.
15269
8d409d16
MR
152702012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15271
15272 * linux-low.c (linux_store_registers): Avoid the copying sequence
15273 when no data has been retrieved by ptrace.
15274
23512c01
MGD
152752012-05-22 Will Deacon <will.deacon@arm.com>
15276
15277 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15278 Include asm/ptrace.h.
15279 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15280 already defined.
15281
4934b29e
MR
152822012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15283
15284 * linux-low.c (linux_store_registers): Don't re-retrieve data
15285 with ptrace that has already been obtained from /proc. Always
15286 copy any data retrieved with ptrace to the buffer supplied.
15287
bde24c0a
PA
152882012-05-11 Yao Qi <yao@codesourcery.com>
15289 Pedro Alves <palves@redhat.com>
15290
15291 * linux-low.c (enum stopping_threads_kind): New.
15292 (stopping_threads): Change type to `enum stopping_threads_kind'.
15293 (handle_extended_wait): If stopping and suspending threads, leave
15294 the new_lwp suspended too.
15295 (linux_wait_for_event): Adjust.
15296 (stop_all_lwps): Set `stopping_threads' to
15297 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15298 whether we're suspending threads or just stopping them. Assert no
15299 recursion happens.
15300
623b6bdf
YQ
153012012-04-29 Yao Qi <yao@codesourcery.com>
15302
15303 * server.h: Move some code to ...
15304 * gdbthread.h: ... here. New.
15305 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15306 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15307 (nto-low.o, win32-low.o): Likewise.
15308 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15309 * regcache.c, remote-utils.c, server.c: Likewise.
15310 * target.c, tracepoint.c, win32-low.c: Likewise.
15311
f15f9948
TJB
153122012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15313
15314 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15315 (PTRACE_ARG4_TYPE): Likewise.
15316 (PTRACE_XFER_TYPE): Likewise.
15317 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15318 ptrace to PTRACE_ARG3_TYPE.
15319 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15320 (PTRACE_ARG4_TYPE): Likewise.
15321 (PTRACE_XFER_TYPE): Likewise.
15322 (linux_detach_one_lwp): Cast fourth argument of
15323 ptrace to long then PTRACE_ARG4_TYPE.
15324 (regsets_fetch_inferior_registers): Cast third argument of
15325 ptrace to long then PTRACE_ARG3_TYPE.
15326 (regsets_store_inferior_registers): Likewise.
15327
38ea300a
PA
153282012-04-20 Pedro Alves <palves@redhat.com>
15329
15330 * configure: Regenerate.
15331
c971b7fa
PA
153322012-04-19 Pedro Alves <palves@redhat.com>
15333
43aaf8b6 15334 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15335 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15336 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15337 (all, install-only, uninstall, clean-info, all-lib, clean): No
15338 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15339 (maintainer-clean realclean distclean): Use subdir_do.
15340 (subdir_do): New.
15341 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15342 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15343 * acinclude.m4: Include acx_configure_dir.m4.
15344 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15345 calls. Call AC_PROG_RANLIB. Configure gnulib using
15346 ACX_CONFIGURE_DIR.
15347 (GNULIB): New.
15348 (GNULIB_STDINT_H): Adjust.
15349 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15350 * gdbreplay.c: Include build-gnulib/config.h.
15351 * server.h: Likewise.
15352 * aclocal.m4: Regenerate.
15353 * config.in: Regenerate.
15354 * configure: Regenerate.
c971b7fa 15355
809277f8
PA
153562012-04-19 Pedro Alves <palves@redhat.com>
15357
15358 * Makefile.in (LIBGNU, INCGNU): Adjust.
15359 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15360 (all, install-only, uninstall, clean-info, all-lib, clean)
15361 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15362 * configure.ac: Adjust AC_OUTPUT output.
15363 * aclocal.m4: Regenerate.
15364 * configure: Regenerate.
15365
fd9bb8b8
PA
153662012-04-19 Pedro Alves <palves@redhat.com>
15367
15368 * Makefile.in (generated_files): New.
15369 (server_h): Remove the explicit dependency on config.h, and depend
15370 on $generated_files.
15371
1c298c66
PA
153722012-04-19 Pedro Alves <palves@redhat.com>
15373
15374 * Makefile.in (INCGNU): Add -Ignulib.
15375
57c4b50b
PA
153762012-04-19 Pedro Alves <palves@redhat.com>
15377
15378 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15379 (INCGNU): ... this, and spell out -I here.
15380 (GNULIB_LIB): Rename to ...
15381 (LIBGNU): ... this.
15382 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15383
1030e047
PA
153842012-04-19 Pedro Alves <palves@redhat.com>
15385
15386 * config.in: Regenerate.
15387
447d4319
PA
153882012-04-19 Pedro Alves <palves@redhat.com>
15389
15390 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15391 * server.h (memmem): Remove declaration.
15392 * config.in: Regenerate.
15393 * configure: Regenerate.
15394
aad9eab9
YQ
153952012-04-19 Yao Qi <yao@codesourcery.com>
15396
15397 * Makefile.in (SFILES): Add common/vec.c.
15398 (OBS): Add vec.o.
15399 (vec.o): New rule.
15400
3e10640f
YQ
154012012-04-19 Yao Qi <yao@codesourcery.com>
15402
15403 * remote-utils.c (prepare_resume_reply): Replace with macro
15404 target_core_of_thread.
15405 * server.c (handle_qxfer_threads_proper): Likewise.
15406 * target.h (traget_core_of_thread): New macro.
15407
71622373
PA
154082012-04-18 Pedro Alves <palves@redhat.com>
15409
15410 * aclocal.m4: Regenerate.
15411 * configure: Regenerate.
15412
80d26939
YQ
154132012-04-16 Yao Qi <yao@codesourcery.com>
15414
15415 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15416 duplicated on address.
15417
42476b70
YQ
154182012-04-16 Yao Qi <yao@codesourcery.com>
15419
15420 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15421 (struct tracepoint_action_ops) <send>: New field.
15422 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15423 (agent_expr_send, x_tracepoint_action_send): New.
15424 (l_tracepoint_action_send): New.
15425 (cmd_qtdp): Download and install tracepoint
15426 according to `use_agent'.
15427 (run_inferior_command): Add one more parameter `len'.
15428 Update callers.
15429 (tracepoint_send_agent): New.
15430 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15431
7bc83639
YQ
154322012-04-16 Yao Qi <yao@codesourcery.com>
15433
15434 * tracepoint.c (download_tracepoints): Moved to ...
15435 (cmd_qtstart): ... here.
15436
5f18041e
YQ
154372012-04-14 Yao Qi <yao@codesourcery.com>
15438
15439 * tracepoint.c: Include inttypes.h.
15440 (struct collect_memory_action): Use sized types.
15441 (struct tracepoint): Likewise.
15442 (cmd_qtdp, stop_tracing): Update print specifiers.
15443 (cmd_qtp, response_tracepoint): Likewise.
15444 (collect_data_at_tracepoint): Likewise.
15445 (collect_data_at_step): Likewise.
15446
55a8c076
YQ
154472012-04-14 Yao Qi <yao@codesourcery.com>
15448
15449 Import gnulib module inttypes.
15450 * aclocal.m4, config.in, configure: Regenerated.
15451
dc750257
YQ
154522012-04-14 Yao Qi <yao@codesourcery.com>
15453
15454 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15455 Makefile and config.status at last.
15456
0ab5faf9
YQ
154572012-04-13 Yao Qi <yao@codesourcery.com>
15458
15459 * tracepoint.c: Include stdint.h unconditionally.
15460
18f5fd81
TJB
154612012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15462
15463 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15464 on BFD_HAVE_SYS_PROCFS_TYPE.
15465 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15466 * configure: Regenerate.
15467 * config.in: Likewise.
15468
4d47af5c
L
154692012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15470
15471 * Makefile.in (clean): Also remove x32.c x32-linux.c
15472 x32-avx.c x32-avx-linux.c.
15473 (x32.o): New target.
15474 (x32.c): Likewise.
15475 (x32-linux.o): Likewise.
15476 (x32-linux.c): Likewise.
15477 (x32-avx.o): Likewise.
15478 (x32-avx.c): Likewise.
15479 (x32-avx-linux.o): Likewise.
15480 (x32-avx-linux.c): Likewise.
15481
15482 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15483 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15484 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15485 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15486 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15487 i386/x32-avx-linux.xml.
15488
15489 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15490 (init_registers_x32_avx_linux): Likwise.
15491 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15492 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15493
ecedbe58
PA
154942012-04-13 Pedro Alves <palves@redhat.com>
15495
15496 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15497 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15498 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15499 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15500 the sub-make.
15501
c92b5177
L
155022012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15503
15504 * linux-x86-low.c (compat_x32_clock_t): New.
15505 (compat_x32_siginfo_t): Likewise.
15506 (compat_x32_siginfo_from_siginfo): Likewise.
15507 (siginfo_from_compat_x32_siginfo): Likewise.
15508 (linux_is_elf64): Likewise.
15509 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15510 and siginfo_from_compat_x32_siginfo for x32.
15511 (x86_arch_setup): Set linux_is_elf64.
15512
214d508e
L
155132012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15514
15515 PR gdb/13969
15516 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15517 e_machine field.
15518 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15519 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15520 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15521 compatible with process.
15522
c9a1864a
YQ
155232012-04-12 Yao Qi <yao@codesourcery.com>
15524
15525 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15526 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15527 (install-only, install-info, clean): Handle sub dir gnulib.
15528 (all-lib, am--refresh): New targets.
15529 (memmem.o): Remove target.
15530 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15531 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15532 (AC_REPLACE_FUNCS): Remove memmem.
15533 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15534 (AC_OUTPUT): Generate Makefile in gnulib/.
15535 * aclocal.m4, config.in, configure: Regenerated.
15536
367ba2c2
MR
155372012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15538
15539 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15540
9d236627
PA
155412012-04-05 Pedro Alves <palves@redhat.com>
15542
15543 -Werror=strict-aliasing
15544
15545 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15546 pointer.
15547
111217b3
PA
155482012-04-04 Pedro Alves <palves@redhat.com>
15549
15550 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15551 (sparc_store_gregset_from_stack, sparc_store_gregset)
15552 (sparc_breakpoint_at): Fix formatting.
15553
8365dcf5
TJB
155542012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15555
15556 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15557 are available.
15558 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15559 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15560 * config.in: Regenerate.
15561 * configure: Likewise.
15562
689cc2ae
PA
155632012-03-29 Pedro Alves <palves@redhat.com>
15564
15565 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15566 Correct ptrace arguments.
15567
c14dfd32
PA
155682012-03-28 Pedro Alves <palves@redhat.com>
15569
15570 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15571 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15572 (IA64_FR1_REGNUM): New defines.
15573 (ia64_fetch_register): New.
15574 (the_low_target): Install it.
15575 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15576 field.
15577 * linux-low.c (linux_fetch_registers): Try the
15578 the_low_target.fetch_register hook first.
15579
15580 * linux-arm-low.c (the_low_target): Adjust.
15581 * linux-bfin-low.c (the_low_target): Adjust.
15582 * linux-cris-low.c (the_low_target): Adjust.
15583 * linux-crisv32-low.c (the_low_target): Adjust.
15584 * linux-m32r-low.c (the_low_target): Adjust.
15585 * linux-m68k-low.c (the_low_target): Adjust.
15586 * linux-mips-low.c (the_low_target): Adjust.
15587 * linux-ppc-low.c (the_low_target): Adjust.
15588 * linux-s390-low.c (the_low_target): Adjust.
15589 * linux-sh-low.c (the_low_target): Adjust.
15590 * linux-sparc-low.c (the_low_target): Adjust.
15591 * linux-tic6x-low.c (the_low_target): Adjust.
15592 * linux-x86-low.c (the_low_target): Adjust.
15593 * linux-xtensa-low.c (the_low_target): Adjust.
15594
63c88e13
PA
155952012-03-26 Pedro Alves <palves@redhat.com>
15596
15597 * server.c (handle_qxfer_libraries): Don't bail early if
15598 the_target->qxfer_libraries_svr4 is not NULL.
15599
fb723180
PA
156002012-03-26 Pedro Alves <palves@redhat.com>
15601
15602 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15603
0afae3cf
PA
156042012-03-23 Pedro Alves <palves@redhat.com>
15605
15606 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15607 "library-list-svr4" element's start tag when the the DSO list is
15608 empty.
15609
485f1ee4
PA
156102012-03-23 Pedro Alves <palves@redhat.com>
15611
15612 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15613 a variable whose type size is the same as the inferior's pointer
15614 size.
15615
a5362b9a
TS
156162012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15617
15618 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15619 struct siginfo.
15620 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15621 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15622 * linux-low.h: Include <signal.h>.
15623 (struct siginfo): Remove forward declaration.
15624 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15625 struct siginfo.
15626
d226c142
MF
156272012-03-21 Mike Frysinger <vapier@gentoo.org>
15628
15629 * .gitignore: Ignore more files.
15630
122f36ef
PA
156312012-03-19 Pedro Alves <palves@redhat.com>
15632 Jan Kratochvil <jan.kratochvil@redhat.com>
15633
15634 * server.c (cont_thread, general_thread): Add describing comments.
15635 (start_inferior): Clear `cont_thread'.
15636 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15637 of a process.
15638
fc3e5175
YQ
156392012-03-15 Yao Qi <yao@codesourcery.com>
15640
15641 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15642 handling to ...
15643 (cmd_qtdp): ... here.
15644
8d0d92cd
YQ
156452012-03-15 Yao Qi <yao@codesourcery.com>
15646
15647 * tracepoint.c (struct tracepoint_action_ops): New.
15648 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15649 (m_tracepoint_action_download): New.
15650 (r_tracepoint_action_download): New.
15651 (x_tracepoint_action_download): New.
15652 (l_tracepoint_action_download): New.
15653 (add_tracepoint_action): Install `action->ops' according type.
15654 (download_tracepoint_1): Move code `download' function pointer
15655 of various tracepoint_action_ops.
15656
87b0bb13
JK
156572012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15658
15659 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15660 linux_ptrace_attach_warnings.
15661
5f572dec
JK
156622012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15663
15664 * Makefile.in (linux-ptrace.o): New.
15665 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15666 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15667 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15668 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15669 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15670 of these targets.
15671 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15672
f4647387
YQ
156732012-03-08 Yao Qi <yao@codesourcery.com>
15674 Pedro Alves <palves@redhat.com>
15675
15676 Fix PR server/13392.
15677 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15678 offset of JMP insn.
15679 * tracepoint.c (remove_tracepoint): New.
15680 (cmd_qtdp): Call remove_tracepoint when failed to install.
15681
9b224c5e
PA
156822012-03-07 Pedro Alves <palves@redhat.com>
15683
15684 * linux-low.c (get_detach_signal): New.
15685 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15686 Pass on pending signals to PTRACE_DETACH. Check the result of the
15687 ptrace call.
15688 * server.c (program_signals, program_signals_p): New.
15689 (handle_general_set): Handle QProgramSignals.
15690 * server.h (program_signals, program_signals_p): Declare.
15691
e237a7e2
JK
156922012-03-05 Pedro Alves <palves@redhat.com>
15693 Jan Kratochvil <jan.kratochvil@redhat.com>
15694
15695 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15696 New comment why.
15697
5808517f
YQ
156982012-03-03 Yao Qi <yao@codesourcery.com>
15699
15700 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15701 agent_look_up_symbols.
15702
58b4daa5
YQ
157032012-03-03 Yao Qi <yao@codesourcery.com>
15704
15705 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15706 (linux-x86-low.o): Likewise.
15707 * server.h: Remove in_process_agent_loaded.
15708 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15709 common/agent.c.
15710 Update callers.
15711
8ffcbaaf
YQ
157122012-03-03 Yao Qi <yao@codesourcery.com>
15713
15714 * tracepoint.c (gdb_agent_capability): New global.
15715 (in_process_agent_loaded_ust): Renamed to
15716 `in_process_agent_supports_ust'.
15717 Update callers.
15718 (in_process_agent_supports_ust): Call agent_capability_check.
15719 (clear_installed_tracepoints): Assert that agent supports
15720 agent.
15721
d1feda86
YQ
157222012-03-03 Yao Qi <yao@codesourcery.com>
15723
15724 * linux-low.c (linux_supports_agent): New.
15725 (linux_target_ops): Initialize field `supports_agent' with
15726 linux_supports_agent.
15727 * target.h (struct target_ops) <supports_agent>: New.
15728 (target_supports_agent): New macro.
15729 * server.c (handle_general_set): Handle packet 'QAgent'.
15730 (handle_query): Send `QAgent+'.
15731 * Makefile.in (server.o): Depends on agent.h.
15732
2fa291ac
YQ
157332012-03-03 Yao Qi <yao@codesourcery.com>
15734
15735 * Makefile.in (OBS): Add agent.o.
15736 Add new rule for agent.o.
15737 Track dependence of tracepoint.c on agent.h.
15738 * tracepoint.c (run_inferior_command_1):
15739 (run_inferior_command): Call agent_run_command.
15740 (gdb_ust_connect_sync_socket): Deleted. Move it to
15741 common/agent.c.
15742 (resume_thread, stop_thread): Likewise.
15743 (gdb_ust_socket_init): Renamed to ...
15744 (gdb_agent_socket_init): ... New.
15745 (gdb_ust_thread): Renamed to ...
15746 (gdb_agent_helper_thread): ... New.
15747 (gdb_ust_init): Move some code to ...
15748 (gdb_agent_init): ... here. New.
15749 [HAVE_UST]: Call gdb_ust_init.
15750 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15751 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15752 * config.in, configure: Regenerated.
15753
05044653
PA
157542012-03-02 Pedro Alves <palves@redhat.com>
15755
15756 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15757 * linux-low.c (struct simple_pid_list): New.
15758 (stopped_pids): New a struct simple_pid_list pointer.
15759 (add_to_pid_list, pull_pid_from_list): New.
15760 (handle_extended_wait): Don't assume the first signal new children
15761 report is SIGSTOP. Adjust call to pull_pid_from_list.
15762 (linux_wait_for_lwp): Adjust.
15763
8d00225b
YQ
157642012-03-02 Yao Qi <yao@codesourcery.com>
15765
15766 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15767 debug log.
15768
19560ba5
YQ
157692012-03-02 Yao Qi <yao@codesourcery.com>
15770
15771 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15772 `stop_pc' and `tpoint'. Update caller.
15773
1faeff08
MR
157742012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15775
15776 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15777 * linux-low.c (use_linux_regsets): New macro.
15778 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15779 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15780 (linux_register_in_regsets): New function.
15781 (usr_fetch_inferior_registers): Skip registers covered by
15782 regsets.
15783 (usr_store_inferior_registers): Likewise.
15784 (usr_fetch_inferior_registers): New macro.
15785 (usr_store_inferior_registers): Likewise.
15786 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15787 (linux_store_registers): Likewise.
15788 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15789 prototype.
15790 (init_registers_mips64_dsp_linux): Likewise.
15791 (init_registers_mips_linux): New macro.
15792 (init_registers_mips_dsp_linux): Likewise.
15793 (mips_dsp_num_regs): Likewise.
15794 (DSP_BASE, DSP_CONTROL): New fallback macros.
15795 (mips_base_regs): New macro.
15796 (mips_regmap): Use it. Fix the size.
15797 (mips_dsp_regmap): New variable.
15798 (mips_dsp_regset_bitmap): Likewise.
15799 (mips_arch_setup): New function.
15800 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15801 than mips_regmap.
15802 (mips_cannot_store_register): Likewise.
15803 (the_low_target): Update .arch_setup, .num_regs and .regmap
15804 initializers. Add .regset_bitmap initializer.
15805 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15806 initializer.
15807 * linux-bfin-low.c (the_low_target): Likewise.
15808 * linux-cris-low.c (the_low_target): Likewise.
15809 * linux-crisv32-low.c (the_low_target): Likewise.
15810 * linux-ia64-low.c (the_low_target): Likewise.
15811 * linux-m32r-low.c (the_low_target): Likewise.
15812 * linux-m68k-low.c (the_low_target): Likewise.
15813 * linux-ppc-low.c (the_low_target): Likewise.
15814 * linux-s390-low.c (the_low_target): Likewise.
15815 * linux-sh-low.c (the_low_target): Likewise.
15816 * linux-sparc-low.c (the_low_target): Likewise.
15817 * linux-tic6x-low.c (the_low_target): Likewise.
15818 * linux-x86-low.c (the_low_target): Likewise.
15819 * linux-xtensa-low.c (the_low_target): Likewise.
15820 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15821 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15822 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15823 srv_xmlfiles.
15824 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15825 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15826
c03e6ccc
YQ
158272012-02-29 Yao Qi <yao@codesourcery.com>
15828 Pedro Alves <palves@redhat.com>
15829
15830 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15831 `step_over_finished' is true.
15832
644cebc9
PA
158332012-02-27 Pedro Alves <palves@redhat.com>
15834
15835 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15836 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15837
c14d7ab2
PA
158382012-02-27 Pedro Alves <palves@redhat.com>
15839
15840 PR server/9684
15841 * linux-low.c (pid_is_stopped): New.
15842 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15843
412c89dd
LM
158442012-02-25 Luis Machado <lgustavo@codesourcery.com>
15845
15846 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15847 of conditions.
15848
b745defe
MR
158492012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15850
15851 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15852
9f3a5c85
LM
158532012-02-24 Luis Machado <lgustavo@codesourcery>
15854
15855 * server.c (handle_query): Advertise support for target-side
15856 breakpoint condition evaluation.
15857 (process_point_options): New function.
15858 (process_serial_event): When inserting a breakpoint, check for
15859 a target-side condition that should be evaluated.
15860
15861 * mem-break.c: Include regcache.h and ax.h.
15862 (point_cond_list_t): New data structure.
15863 (breakpoint) <cond_list>: New field.
15864 (find_gdb_breakpoint_at): Make non-static.
15865 (delete_gdb_breakpoint_at): Clear any target-side
15866 conditions.
15867 (clear_gdb_breakpoint_conditions): New function.
15868 (add_condition_to_breakpoint): Likewise.
15869 (add_breakpoint_condition): Likewise.
15870 (gdb_condition_true_at_breakpoint): Likewise.
15871 (gdb_breakpoint_here): Return result directly instead
15872 of going through a local variable.
15873
15874 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15875 (clear_gdb_breakpoint_conditions): Likewise.
15876 (add_breakpoint_condition): Likewise.
15877 (gdb_condition_true_at_breakpoint): Likewise.
15878
15879 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15880 (need_step_over_p): Take target-side breakpoint condition into
15881 consideration.
15882
5e1dc496
LM
158832012-02-24 Luis Machado <lgustavo@codesourcery>
15884
15885 * server.h: Include tracepoint.h.
15886 (agent_mem_read, agent_get_trace_state_variable_value,
15887 agent_set_trace_state_variable_value,
15888 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15889 get_set_tsv_func_addr): New prototypes.
15890
15891 * ax.h: New include file.
15892 * ax.c: New source file.
15893
15894 * tracepoint.c: Include ax.h.
15895 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15896 agent_expr, eval_result_type): Move to ax.h.
15897 (parse_agent_expr): Rename to ...
15898 (gdb_parse_agent_expr): ... this, make it non-static and move
15899 to ax.h.
15900 (unparse_agent_expr) Rename to ...
15901 (gdb_unparse_agent_expr): ... this, make it non-static and move
15902 to ax.h.
15903 (eval_agent_expr): Rename to ...
15904 (eval_tracepoint_agent_expr): ... this.
15905 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15906 forward declarations.
15907 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15908 (agent_get_trace_state_variable_value): New function.
15909 (agent_set_trace_state_variable_value): New function.
15910 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15911 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15912 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15913 (condition_true_at_tracepoint): Likewise.
15914 (parse_agent_expr): Rename to ...
15915 (gdb_parse_agent_expr): ... this and move to ax.c.
15916 (unparse_agent_expr): Rename to ...
15917 (gdb_unparse_agent_expr): ... this and move to ax.c.
15918 (gdb_agent_op_name): Move to ax.c.
15919 (eval_agent_expr): Rename to ...
15920 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15921 and move to ax.c.
15922 (eval_tracepoint_agent_expr): New function.
15923 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15924 non-static.
5e1dc496
LM
15925 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15926 ax.c.
15927 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15928 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15929 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15930 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15931 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15932 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15933 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15934 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15935 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15936 (compile_bytecodes): Remove forward declaration.
15937 (is_goto_target): Move to ax.c.
15938 (compile_bytecodes): Move to ax.c and call
15939 agent_get_trace_state_variable_value (...) and
15940 agent_set_trace_state_variable_value (...).
15941
15942 * Makefile.in: Update ax.c and IPA dependencies.
15943
277e4e52
PA
159442012-02-24 Pedro Alves <palves@redhat.com>
15945
15946 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15947 (cmd_bigqtbuffer_circular): ... this. Only handle
15948 'QTBuffer:circular:'.
15949 (handle_tracepoint_general_set): Adjust.
15950
bf4c19f7
YQ
159512012-02-16 Yao Qi <yao@codesourcery.com>
15952
15953 * inferiors.c: Move code to ...
15954 * dll.c: .... here. New.
15955 * server.h: Declare clear_dlls.
15956 * Makefile.in (SFILES): Add dll.c.
15957 (OBS): Add dll.o
15958 (dll.o): New rule.
15959
d73f2619
YQ
159602012-02-11 Yao Qi <yao@codesourcery.com>
15961
15962 * server.c: (handle_monitor_command): Add a new parameter
15963 `own_buf'.
15964 (handle_query): Update caller.
15965
f8255c2a
JB
159662012-02-09 Joel Brobecker <brobecker@adacore.com>
15967
15968 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15969 * configure, config.in: Regenerate.
15970 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15971 is not defined.
15972
da84f473
PA
159732012-02-02 Pedro Alves <palves@redhat.com>
15974
15975 Try SIGKILL first, then PTRACE_KILL.
15976 * linux-low.c (linux_kill_one_lwp): New.
15977 (linux_kill_one_lwp): Rename to ...
15978 (kill_one_lwp_callback): ... this. Use the new
15979 linux_kill_one_lwp.
15980
e886a173
PA
159812012-02-02 Pedro Alves <palves@redhat.com>
15982
15983 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15984 inferior.
15985
be07f1a2
PA
159862012-01-27 Pedro Alves <palves@redhat.com>
15987
15988 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15989 (elf_64_file_p): Make static.
15990 (linux_pid_exe_is_elf_64_file): New.
15991 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15992 Delete declarations.
15993 (linux_pid_exe_is_elf_64_file): Declare.
15994 * linux-x86-low.c (x86_arch_setup): Use
15995 linux_pid_exe_is_elf_64_file.
15996
d8301ad1
JK
159972012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15998
15999 * linux-low.c (linux_wait_for_event_1): Rename to ...
16000 (linux_wait_for_event): ... here and merge it with former
16001 linux_wait_for_event - new variable wait_ptid, use it.
16002 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16003
01b17894
PA
160042012-01-23 Pedro Alves <palves@redhat.com>
16005
16006 * server.c (main): Avoid yet another case of infinite loop while
16007 detaching/killing after a longjmp.
16008
e825046f
JK
160092012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16010
16011 Code cleanup.
16012 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16013
b9e7b9c3
UW
160142012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16015
16016 * hostio.c (handle_readlink): New function.
16017 (handle_vFile): Call it to handle "vFile:readlink" packets.
16018
901f9912
UW
160192012-01-20 Pedro Alves <palves@redhat.com>
16020 Ulrich Weigand <ulrich.weigand@linaro.org>
16021
16022 * server.c (handle_v_requests): Only support vAttach and vRun to
16023 start multiple processes when in extended protocol mode.
16024
fc1ab1a0
PA
160252012-01-17 Pedro Alves <palves@redhat.com>
16026
16027 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16028 memalign plus mprotect to allocate the scratch buffer.
16029
7d5d4e98
PA
160302012-01-13 Pedro Alves <palves@redhat.com>
16031
16032 * server.c (attach_inferior): Clear `cont_thread'.
16033
f128d5e9
PA
160342012-01-13 Pedro Alves <palves@redhat.com>
16035
16036 * server.c (main): Avoid infinite loop while detaching/killing
16037 after a longjmp.
16038
06db92f0
DE
160392012-01-09 Doug Evans <dje@google.com>
16040
16041 * server.c (start_inferior): Set last_ptid in --wrapper case.
16042
32d92999
YQ
160432012-01-06 Yao Qi <yao@codesourcery.com>
16044
16045 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16046 defined.
16047 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16048
5e0a92a9
YQ
160492012-01-04 Yao Qi <yao@codesourcery.com>
16050
16051 * tracepoint.c (cmd_qtdp): Print debug message
16052 for static tracepoint.
16053
ae639e8c
YQ
160542012-01-04 Yao Qi <yao@codesourcery.com>
16055
16056 * tracepoint.c (trace_vdebug): Differentiate debug message
16057 between gdbserver and IPA.
16058
f72429c5
YQ
160592012-01-03 Yao Qi <yao@codesourcery.com>
16060
16061 * tracepoint.c (tracepoint_was_hit): Don't collect for
16062 static tracepoint.
16063
12c3e59c
JB
160642012-01-02 Joel Brobecker <brobecker@adacore.com>
16065
16066 * terminal.h: Reformat copyright header.
16067
67827812
JB
160682012-01-02 Joel Brobecker <brobecker@adacore.com>
16069
16070 * server.c (gdbserver_version): Update copyright year.
16071 * gdbreplay.c (gdbreplay_version): Likewise.
16072
3e52c33d
JK
160732011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16074
16075 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16076
16077 Revert:
16078 2011-12-18 Hui Zhu <teawater@gmail.com>
16079 * linux-low.c (linux_create_inferior): Save return value to ret.
16080
66f1260e
HZ
160812011-12-18 Hui Zhu <teawater@gmail.com>
16082
16083 * linux-low.c (linux_create_inferior): Save return value to ret.
16084
e77616d7
DE
160852011-12-16 Doug Evans <dje@google.com>
16086
e7b06c57
DE
16087 * linux-low.c (linux_create_inferior): If stdio connection,
16088 redirect stdin from /dev/null, stdout to stderr.
16089 * remote-utils.c (remote_is_stdio): New static global.
16090 (remote_connection_is_stdio): New function.
16091 (remote_prepare): Handle stdio connection.
16092 (remote_open): Ditto.
16093 (remote_close): Don't close stdin for stdio connections.
16094 (read_prim,write_prim): New functions. Replace all calls to
16095 read/write to these.
16096 * server.c (main): Watch for "-" argument. Move call to
16097 remote_prepare before start_inferior.
16098 * server.h (STDIO_CONNECTION_NAME): New macro.
16099 (remote_connection_is_stdio): Declare.
16100
e77616d7
DE
16101 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16102 in debugging output.
16103
82067193
YQ
161042011-12-15 Yao Qi <yao@codesourcery.com>
16105
16106 * tracepoint.c: Include sys/syscall.h.
16107 (gdb_ust_thread): Remove preprocessor conditional.
16108
82bfbe7e
PA
161092011-12-14 Pedro Alves <pedro@codesourcery.com>
16110
16111 * linux-low.c (linux_detach_one_lwp): Call
16112 the_low_target.prepare_to_resume before detaching.
16113
712c6575
YQ
161142011-12-14 Yao Qi <yao@codesourcery.com>
16115
16116 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16117 of write.
16118
d54d1edf
YQ
161192011-12-14 Yao Qi <yao@codesourcery.com>
16120
16121 * i386-low.c (i386_low_stopped_data_address): Initialize local
16122 variable `control'.
16123
6210a125
PA
161242011-12-13 Pedro Alves <pedro@codesourcery.com>
16125
16126 PR remote/13492
16127
16128 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16129 DR_CONTROL unless necessary. Extend comments.
16130 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16131 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16132
2ece8244
YQ
161332011-12-13 Yao Qi <yao@codesourcery.com>
16134
16135 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16136 macros.
16137 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16138
784867a5
JK
161392011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16140
16141 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16142 Print new debug message for such case.
16143
6bf36717
JK
161442011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16145
16146 Fix overlapping memcpy.
16147 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16148 the read_inferior_memory transfer.
16149 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16150 write_inferior_memory transfer.
16151 (set_fast_tracepoint_jump): New variable buf. Use it for the
16152 read_inferior_memory and write_inferior_memory transfers.
16153 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16154 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16155 Use it for the write_inferior_memory transfer.
16156 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16157 buffers.
16158
50275556
MR
161592011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16160
16161 * linux-low.c (fetch_register, store_register): Make code
16162 consistent, fix formatting.
16163
7325beb4
MR
161642011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16165
16166 * linux-low.c (usr_store_inferior_registers): Factor out code
16167 to handle individual registers into...
16168 (store_register): ... this new function.
16169
c642a434
UW
161702011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16171
16172 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16173 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16174 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16175 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16176 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16177 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16178 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16179 (srv_xmlfiles): Add new XML files.
16180
16181 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16182 and <sys/uio.h>.
16183 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16184 (init_registers_s390_linux32v1): Add prototype.
16185 (init_registers_s390_linux32v2): Likewise.
16186 (init_registers_s390_linux64v1): Likewise.
16187 (init_registers_s390_linux64v2): Likewise.
16188 (init_registers_s390x_linux64v1): Likewise.
16189 (init_registers_s390x_linux64v2): Likewise.
16190 (s390_num_regs): Increment to 52.
16191 (s390_regmap): Add orig_r2 register.
16192 (s390_num_regs_3264): Increment to 68.
16193 (s390_regmap_3264): Add orig_r2 register.
16194 (s390_collect_ptrace_register): Handle orig_r2 register.
16195 (s390_supply_ptrace_register): Likewise.
16196 (s390_fill_last_break): New function.
16197 (s390_store_last_break): Likewise.
16198 (s390_fill_system_call): New function.
16199 (s390_store_system_call): Likewise.
16200 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16201 register sets.
16202 (s390_check_regset): New function.
16203 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16204 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16205 Update target_regsets for available register sets.
16206
2268b414
JK
162072011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16208 Jan Kratochvil <jan.kratochvil@redhat.com>
16209
16210 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16211 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16212 New.
16213 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16214 * linux-low.h (struct process_info_private): New member r_debug.
16215 * server.c (handle_qxfer_libraries): Call
16216 the_target->qxfer_libraries_svr4.
16217 (handle_qxfer_libraries_svr4): New function.
16218 (qxfer_packets): New entry "libraries-svr4".
16219 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16220 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16221 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16222 PACKET_qXfer_libraries_svr4.
16223
d6db1fab
UW
162242011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16225
16226 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16227 PSW address/mask between 8-byte and 16-byte formats.
16228 (s390_supply_ptrace_register): Likewise.
16229 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16230 basic addressing mode bit.
16231
242f5f1c
SS
162322011-11-24 Stan Shebs <stan@codesourcery.com>
16233
16234 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16235
f196051f
SS
162362011-11-17 Stan Shebs <stan@codesourcery.com>
16237
16238 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16239 (tracing_start_time): New global.
16240 (tracing_stop_time): New global.
16241 (tracing_user_name): New global.
16242 (tracing_notes): New global.
16243 (tracing_stop_note): New global.
16244 (cmd_qtstart): Set traceframe_usage, start_time.
16245 (stop_tracing): Set stop_time.
16246 (cmd_qtstatus): Report additional status.
16247 (cmd_qtp): New function.
16248 (handle_tracepoint_query): Call it.
16249 (cmd_qtnotes): New function.
16250 (handle_tracepoint_general_set): Call it.
16251 (get_timestamp): Rename from tsv_get_timestamp.
16252
405f8e94
SS
162532011-11-14 Stan Shebs <stan@codesourcery.com>
16254 Kwok Cheung Yeung <kcy@codesourcery.com>
16255
16256 * linux-x86-low.c (small_jump_insn): New.
16257 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16258 trampoline and error message, build a trampoline and issue a small
16259 jump instruction to it.
16260 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16261 trampoline and error message.
16262 (x86_get_min_fast_tracepoint_insn_len): New.
16263 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16264 * linux-low.h (struct linux_target_ops): Add arguments to
16265 install_fast_tracepoint_jump_pad operation, add new operation.
16266 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16267 arguments.
16268 (linux_get_min_fast_tracepoint_insn_len): New function.
16269 (linux_target_op): Add new operation.
16270 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16271 (gdb_trampoline_buffer_end): Ditto.
16272 (gdb_trampoline_buffer_error): Ditto.
16273 (struct ipa_sym_addresses): Add fields for new IPA variables.
16274 (symbol_list): Add entries for new IPA variables.
16275 (struct tracepoint): Add fields to hold the address range of the
16276 trampoline used by the tracepoint.
16277 (trampoline_buffer_head): New static variable.
16278 (trampoline_buffer_tail): Ditto.
16279 (claim_trampoline_space): New function.
16280 (have_fast_tracepoint_trampoline_buffer): New function.
16281 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16282 structure.
16283 (install_fast_tracepoint): Ditto, also add error buffer argument.
16284 (cmd_qtminftpilen): New function.
16285 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16286 (fast_tracepoint_from_trampoline_address): New function.
16287 (fast_tracepoint_collecting): Handle trampoline as part of jump
16288 pad space.
16289 (set_trampoline_buffer_space): New function.
16290 (initialize_tracepoint): Initialize new IPA variables.
16291 * target.h (struct target_ops): Add arguments to
16292 install_fast_tracepoint_jump_pad operation, add new
16293 get_min_fast_tracepoint_insn_len operation.
16294 (target_get_min_fast_tracepoint_insn_len): New.
16295 (install_fast_tracepoint_jump_pad): Add arguments.
16296 * server.h (IPA_BUFSIZ): Define.
16297 * linux-i386-ipa.c: Include extra header files.
16298 (initialize_fast_tracepoint_trampoline_buffer): New function.
16299 (initialize_low_tracepoint): Call it.
16300 * server.h (set_trampoline_buffer_space): Declare.
16301 (claim_trampoline_space): Ditto.
16302 (have_fast_tracepoint_trampoline_buffer): Ditto.
16303
1e4d1764
YQ
163042011-11-14 Yao Qi <yao@codesourcery.com>
16305
16306 * server.c (handle_query): Handle InstallInTrace for qSupported.
16307 * tracepoint.c (add_tracepoint): Sort list.
16308 (install_tracepoint, download_tracepoint): New.
16309 (cmd_qtdp): Call them to install and download tracepoints.
16310 (sort_tracepoints): Removed.
16311 (cmd_qtstart): Update.
16312
5c73ff4e
YQ
163132011-11-14 Yao Qi <yao@codesourcery.com>
16314
16315 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16316 * mem-break.h: Declare.
16317 * tracepoint.c (cmd_qtstart): Move some code to ...
16318 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16319 New.
16320 (download_tracepoints): Move some code to ...
16321 (download_tracepoint_1): ... here. New.
16322
86a30030
YQ
163232011-11-08 Yao Qi <yao@codesourcery.com>
16324
16325 * remote-utils.c (relocate_instruction): A comment fix.
16326
8d26e50c
JB
163272011-11-07 Joel Brobecker <brobecker@adacore.com>
16328
16329 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16330 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16331 dr_status_mirror and dr_control_mirror from debug_reg_state.
16332 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16333 (i386_initial_stuff): Remove use of deleted globals.
16334 (i386_get_thread_context, i386_set_thread_context,
16335 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16336 from debug_reg_state.
16337
a59306a3
YQ
163382011-11-05 Yao Qi <yao@codesourcery.com>
16339
16340 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16341 address as TPOINT's.
16342
3065dfb6
SS
163432011-11-02 Stan Shebs <stan@codesourcery.com>
16344
16345 * tracepoint.c (agent_mem_read_string): New function.
16346 (eval_agent_expr): Call it for tracenz.
16347 * server.c (handle_query): Report support for tracenz.
16348
fd0d8c7c
YQ
163492011-11-02 Yao Qi <yao@codesourcery.com>
16350
16351 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16352
609086b1
YQ
163532011-11-02 Yao Qi <yao@codesourcery.com>
16354
16355 * target.h: Fix a typo in comment.
16356
b9fd1791
PA
163572011-10-31 Pedro Alves <pedro@codesourcery.com>
16358
16359 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16360 clobber the breakpoints' shadows with fast tracepoint jumps.
16361 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16362 * target.c (write_inferior_memory): Also pass MYADDR down to
16363 check_mem_write.
16364
03583c20
UW
163652011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16366
16367 * configure.ac: Check support for personality routine.
16368 * configure: Regenerate.
16369 * config.in: Likewise.
16370 * linux-low.c: Include <sys/personality.h>.
16371 Define ADDR_NO_RANDOMIZE if necessary.
16372 (linux_create_inferior): Disable address space randomization when
16373 forking inferior, if requested.
16374 (linux_supports_disable_randomization): New function.
16375 (linux_target_ops): Install it.
16376 * server.h (disable_randomization): Declare.
16377 * server.c (disable_randomization): New global variable.
16378 (handle_general_set): Handle QDisableRandomization.
16379 (handle_query): Likewise for qSupported.
16380 (main): Support --disable-randomization and --no-disable-randomization
16381 command line arguments.
16382 * target.h (struct target_ops): Add supports_disable_randomization.
16383 (target_supports_disable_randomization): New macro.
16384
723b724b
MF
163852011-09-29 Mike Frysinger <vapier@gentoo.org>
16386
16387 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16388 ifdef check.
16389 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16390 [!PT_GETDSBT] (target_loadmap): New definition.
16391 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16392 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16393 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16394 and PT_GETDSBT to LINUX_LOADMAP.
16395 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16396 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16397
55329a5c 163982011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16399
16400 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16401 (arm_linux_hwbp_cap): New static variable.
16402 (arm_linux_get_hwbp_cap): Replace by ...
16403 (arm_linux_init_hwbp_cap): ... this new function.
16404 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16405 (arm_linux_get_hw_watchpoint_count): Likewise.
16406 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16407 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16408 (arm_prepare_to_resume): Use perror_with_name instead of error.
16409
55329a5c 164102011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16411
16412 * linux-arm-low.c: Include <signal.h>.
16413 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16414 (struct arm_linux_hwbp_cap): New data type.
16415 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16416 (struct arm_linux_hw_breakpoint): New data type.
16417 (MAX_BPTS, MAX_WPTS): Define.
16418 (struct arch_process_info, struct arch_lwp_info): New data types.
16419 (arm_linux_get_hwbp_cap): New function.
16420 (arm_linux_get_hw_breakpoint_count): Likewise.
16421 (arm_linux_get_hw_watchpoint_count): Likewise.
16422 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16423 (arm_hwbp_control_initialize): Likewise.
16424 (arm_hwbp_control_is_enabled): Likewise.
16425 (arm_hwbp_control_is_initialized): Likewise.
16426 (arm_hwbp_control_disable): Likewise.
16427 (arm_linux_hw_breakpoint_equal): Likewise.
16428 (arm_linux_hw_point_initialize): Likewise.
16429 (struct update_registers_data): New data structure.
16430 (update_registers_callback: New function.
16431 (arm_insert_point): Likewise.
16432 (arm_remove_point): Likewise.
16433 (arm_stopped_by_watchpoint): Likewise.
16434 (arm_stopped_data_address): Likewise.
16435 (arm_new_process): Likewise.
16436 (arm_new_thread): Likewise.
16437 (arm_prepare_to_resume): Likewise.
16438 (the_low_target): Register arm_insert_point, arm_remove_point,
16439 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16440 arm_new_thread, and arm_prepare_to_resume.
16441
6b9801d4
SS
164422011-09-15 Stan Shebs <stan@codesourcery.com>
16443
16444 * server.h (struct emit_ops): Add compare-goto fields.
16445 * tracepoint.c (gdb_agent_op_sizes): New table.
16446 (emit_eq_goto): New function.
16447 (emit_ne_goto): New function.
16448 (emit_lt_goto): New function.
16449 (emit_le_goto): New function.
16450 (emit_gt_goto): New function.
16451 (emit_ge_goto): New function.
16452 (is_goto_target): New function.
16453 (compile_bytecodes): Recognize special cases of compare-goto
16454 combinations and call specialized emitters for them.
16455 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16456 (amd64_emit_ne_goto): New function.
16457 (amd64_emit_lt_goto): New function.
16458 (amd64_emit_le_goto): New function.
16459 (amd64_emit_gt_goto): New function.
16460 (amd64_emit_ge_goto): New function.
16461 (amd64_emit_ops): Add the new functions.
16462 (i386_emit_eq_goto): New function.
16463 (i386_emit_ne_goto): New function.
16464 (i386_emit_lt_goto): New function.
16465 (i386_emit_le_goto): New function.
16466 (i386_emit_gt_goto): New function.
16467 (i386_emit_ge_goto): New function.
16468 (i386_emit_ops): Add the new functions.
16469
bf15cbda
SS
164702011-09-08 Stan Shebs <stan@codesourcery.com>
16471
16472 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16473 (i386_emit_epilogue): Restore %ebx.
16474
943ca1dd
JZ
164752011-08-31 Jie Zhang <jzhang918@gmail.com>
16476
16477 * server.c (step_thread): Remove definition.
16478 (process_serial_event): Don't handle Hs.
16479 * server.h (step_thread): Remove declaration.
16480 * target.c (set_desired_inferior): Remove use of step_thread.
16481
e3deef73
LM
164822011-08-24 Luis Machado <lgustavo@codesourcery.com>
16483
16484 * linux-low.c: Include linux-procfs.h.
16485 (linux_attach_lwp_1): Update comments.
16486 (linux_attach): Scan for existing threads when attaching to a
16487 process that is the tgid.
16488 * Makefile.in: Update dependencies.
16489
13da1c97
LM
164902011-08-24 Luis Machado <lgustavo@codesourcery.com>
16491
16492 * configure.srv: Add linux-procfs.o dependencies.
16493
881127c9
YQ
164942011-08-14 Yao Qi <yao@codesourcery.com>
16495
16496 * target.h (struct target_ops): Fix indent.
16497 * win32-low.c (win32_target_ops): Fix comment.
16498
58dbd541
YQ
164992011-08-14 Andrew Jenner <andrew@codesourcery.com>
16500 Yao Qi <yao@codesourcery.com>
16501
16502 * Makefile.in (clean): Remove tic6x-*.c files.
16503 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16504 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16505 (tic6x-c64xp-linux.c): Likewise.
16506 * configure.srv: Add support for tic6x-*-uclinux.
16507 * linux-tic6x-low.c: New.
16508 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16509
78d85199
YQ
165102011-08-14 Andrew Stubbs <ams@codesourcery.com>
16511 Yao Qi <yao@codesourcery.com>
16512
16513 * target.h (struct target_ops): Add read_loadmap.
16514 * linux-low.c (struct target_loadseg): New type.
16515 (struct target_loadmap): New type.
16516 (linux_read_loadmap): New function.
16517 (linux_target_ops): Add linux_read_loadmap.
16518 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16519 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16520 to NULL.
78d85199 16521
a959a88d
EZ
165222011-08-05 Eli Zaretskii <eliz@gnu.org>
16523
16524 * win32-low.c: Include <stdint.h>.
16525
1ced966e
PA
165262011-07-22 Pedro Alves <pedro@codesourcery.com>
16527
16528 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16529 to the inferior here.
16530 (i386_remove_aligned_watchpoint): Ditto.
16531 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16532 fit part of the watchpoint in the debug registers.
16533 (i386_update_inferior_debug_regs): New.
16534 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16535 registers, and only update the inferior on success.
16536 (i386_low_remove_watchpoint): Ditto.
16537
d26e3629
KY
165382011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16539
16540 * linux-low.c (compare_ints, unique, list_threads, show_process,
16541 linux_core_of_thread): Delete.
16542 (linux_target_ops): Change linux_core_of_thread to
16543 linux_common_core_of_thread.
16544 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16545 * utils.c (malloc_failure): Change type of argument.
16546 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16547 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16548 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16549 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16550 (IPA_OBJS): Add common-utils-ipa.o.
16551 (ptid_h, linux_osdata_h): New macros.
16552 (server_h): Add common/common-utils.h, common/xml-utils.h,
16553 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16554 common/ptid.h.
16555 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16556 ptid.o, buffer.o): New rules.
16557 (linux-low.o): Add common/linux-osdata.h as a dependency.
16558 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16559 * configure.ac: Add AC_HEADER_DIRENT check.
16560 * config.in: Regenerate.
16561 * configure: Regenerate.
16562 * remote-utils.c (xml_escape_text): Delete.
16563 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16564 buffer_xml_printf): Move to common/buffer.c.
16565 * server.c (main): Remove call to initialize_inferiors.
16566 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16567 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16568 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16569 internal_error, gdb_assert, gdb_assert_fail): Delete.
16570 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16571 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16572 common/buffer.h.
16573 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16574 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16575 initialize_inferiors): Delete.
16576
2275a1a7
PA
165772011-07-20 Pedro Alves <pedro@codesourcery.com>
16578
16579 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16580 symbol error.
16581
0a5b1e09
PA
165822011-05-31 Pedro Alves <pedro@codesourcery.com>
16583
16584 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16585 assertion.
16586 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16587
6938fd34
YQ
165882011-05-26 Yao Qi <yao@codesourcery.com>
16589
16590 * Makefile.in (thread-db.o): Track dependence to
16591 common/gdb_thread_db.h.
16592 * thread-db.c: include gdb_thread_db.h from right place.
16593
b481f9e0
TT
165942011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16595
16596 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16597 __FILE__ and __LINE__ to internal_error.
16598
98a5dd13
DE
165992011-05-13 Doug Evans <dje@google.com>
16600
16601 * thread-db.c (try_thread_db_load_from_sdir): New function.
16602 (try_thread_db_load_from_dir): New function.
16603 (thread_db_load_search): Handle $sdir, ignore $pdir.
16604 Remove trying of system directories if search of
16605 libthread-db-search-path fails, that is now done via $sdir.
16606
d248b706
KY
166072011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16608
16609 * server.c (handle_query): Add EnableDisableTracepoints to the list
16610 of supported features.
43aaf8b6 16611 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16612 tracepoints.
43aaf8b6
PA
16613 (cmd_qtenable_disable): New.
16614 (cmd_qtstart): Install tracepoints even if disabled.
16615 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16616 receiving a QTEnable or QTDisable packet.
16617 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16618 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16619 tracepoints.
16620 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16621
84e578fb
DE
166222011-05-10 Doug Evans <dje@google.com>
16623
16624 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16625
71f55dd8
DE
166262011-05-04 Doug Evans <dje@google.com>
16627
16628 * linux-low.c (linux_join): Skip process lookup.
16629 * spu-low.c (spu_join): Ditto.
16630 * server.c (join_inferiors_callback): Delete.
16631 (process_serial_event): For 'D' packet (detach) call join_inferior
16632 directly.
16633
4d393d60
JM
166342011-05-04 Joseph Myers <joseph@codesourcery.com>
16635
16636 * README: Don't mention xscale*-*-linux*.
16637 * configure.srv (xscale*-*-linux*): Don't handle target.
16638
b00ad6ff
NF
166392011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16640
16641 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16642 casting pointers.
16643 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16644 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16645 (i386_emit_void_call_2): Likewise.
16646
af96c192
YQ
166472011-04-26 Yao Qi <yao@codesourcery.com>
16648
43aaf8b6
PA
16649 * linux-low.c: Move common macros to linux-ptrace.h.
16650 Include linux-ptrace.h.
af96c192
YQ
16651 * Makefile.in (linux_ptrace_h): New.
16652 (linux-low.o): Depends on linux-ptrace.h.
16653
03f2bd59
JK
166542011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16655
16656 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16657 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16658 (remote_prepare): New function with most of the TCP code from ...
16659 (remote_open): ... here. Detect PORT here unconditionally. Move also
16660 setting transport_is_reliable.
16661 * server.c (run_once): New variable.
16662 (gdbserver_usage): Document it.
16663 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16664 the first run if RUN_ONCE.
16665 * server.h (run_once, remote_prepare): New declarations.
16666
7a9dd1b2
TT
166672011-04-19 Tom Tromey <tromey@redhat.com>
16668
16669 * win32-low.c (handle_load_dll): Remove duplicate "the".
16670
81239425
PM
166712011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16672
16673 Remove support for old Cygwin 1.5 versions.
16674 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16675 function to avoid warning.
16676 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16677 warning.
16678
9e0627f1
PM
166792011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16680
16681 * gdbserver/server.h (Macro _): Define it if not available.
16682
588eebee
MS
166832011-03-14 Michael Snyder <msnyder@vmware.com>
16684
348af9f7 16685 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16686
43f70d4c
JB
166872011-03-10 Joel Brobecker <brobecker@adacore.com>
16688
16689 * Makefile.in (maintainer-clean realclean distclean): Remove
16690 "make ... subdir_do" command.
16691
348af9f7
MS
166922011-03-10 Michael Snyder <msnyder@vmware.com>
16693
16694 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16695
16696 * server.c (handle_v_run): Free alloced buffer on early return.
16697
e637a4f5
YQ
166982011-03-09 Yao Qi <yao@codesourcery.com>
16699
16700 Revert:
16701 2011-03-04 Yao Qi <yao@codesourcery.com>
16702
16703 * Makefile.in: Remove GNU make feature --directory.
16704
16705 2011-03-05 Yao Qi <yao@codesourcery.com>
16706
16707 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16708 (subdir_do): New make target. Copied from gdb/Makefile.
16709 (maintainer-clean, realclean, distclean, clean): Call corresponding
16710 make targets in common/Makefile.
16711
16712 2011-02-11 Yao Qi <yao@codesourcery.com>
16713
16714 * configure.ac: Call AC_PROG_RANLIB.
16715 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16716 * configure: Regenerate.
16717
e6edda56
JK
167182011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16719
16720 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16721
e5141119
JB
167222011-03-06 Yao Qi <yao@codesourcery.com>
16723
16724 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16725
64794aa4
JB
167262011-03-05 Yao Qi <yao@codesourcery.com>
16727
16728 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16729 (subdir_do): New make target. Copied from gdb/Makefile.
16730 (maintainer-clean, realclean, distclean, clean): Call corresponding
16731 make targets in common/Makefile.
16732
7a762829
YQ
167332011-03-04 Yao Qi <yao@codesourcery.com>
16734
16735 * Makefile.in: Remove GNU make feature --directory.
16736
348af9f7
MS
167372011-03-04 Michael Snyder <msnyder@vmware.com>
16738
16739 * server.c (queue_stop_reply): Call xmalloc not malloc.
16740
167412011-03-02 Michael Snyder <msnyder@vmware.com>
16742
16743 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16744
9f72fee2
MS
167452011-02-28 Michael Snyder <msnyder@vmware.com>
16746
588eebee
MS
16747 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16748 (cmd_qtframe): Ditto.
16749 (cmd_qtbuffer): Ditto.
16750 (cmd_bigqtbuffer): Ditto.
16751
9f72fee2
MS
16752 * utils.c (decimal2str): Initialize 'width' to nine, then
16753 don't mess with it.
16754
8040bd49
UW
167552011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16756
16757 * hostio.c (require_data): Free *data, not data.
16758
7e52cbd0
JK
167592011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16760
16761 * hostio.c (require_data): Use free, not xfree.
16762
9130f83e
MS
167632011-02-27 Michael Snyder <msnyder@vmware.com>
16764
4b812f4e
MS
16765 * server.c (handle_query): Discard unused value.
16766
9130f83e
MS
16767 * hostio.c (require_data): Free malloc memory before returning
16768 error.
16769
69d37113
MS
167702011-02-26 Michael Snyder <msnyder@vmware.com>
16771
16772 * linux-low.c (list_threads): Call closedir for dirent.
16773
35f5825a
MS
167742011-02-27 Michael Snyder <msnyder@vmware.com>
16775
2a589cef
MS
16776 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16777 a case statement falls through.
16778
0adea5f7
MS
16779 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16780
35f5825a
MS
16781 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16782 in comparison.
16783
238f1c74
MS
167842011-02-26 Michael Snyder <msnyder@vmware.com>
16785
16786 * utils.c (decimal2str): Eliminate dead code and dead param.
16787 (pulongest): Drop dead param from call to decimal2str.
16788 (plongest): Ditto.
16789
633ff500
JB
167902011-02-24 Joel Brobecker <brobecker@adacore.com>
16791
16792 Revert the following patch (not approved yet):
16793 2011-02-21 Hui Zhu <teawater@gmail.com>
16794 * tracepoint.c (tp_printf): New function.
16795 (eval_agent_expr): Handle gdb_agent_op_printf.
16796
f9c6ff72
HZ
167972011-02-21 Hui Zhu <teawater@gmail.com>
16798
16799 * tracepoint.c (tp_printf): New function.
16800 (eval_agent_expr): Handle gdb_agent_op_printf.
16801
94d5e490
TT
168022011-02-18 Tom Tromey <tromey@redhat.com>
16803
16804 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16805 (tracepoint.o): Likewise.
16806 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16807 (gdb_agent_op_names): Likewise.
16808
c7f96d2b
TT
168092011-02-18 Tom Tromey <tromey@redhat.com>
16810
16811 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16812 gdb_agent_op_rot>: New constants.
16813 (gdb_agent_op_names): Add pick and roll.
16814 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16815 cases.
16816
0feedb2c
JK
168172011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16818
16819 * aclocal.m4: Regenerated with aclocal-1.11.1.
16820
b3b9301e
PA
168212011-02-14 Pedro Alves <pedro@codesourcery.com>
16822
16823 * server.c (handle_qxfer_traceframe_info): New.
16824 (qxfer_packets): Register "traceframe-info".
16825 (handle_query): Report support for qXfer:traceframe-info:read+.
16826 * tracepoint.c (match_blocktype): New.
16827 (traceframe_find_block_type): Rename to ...
16828 (traceframe_walk_blocks): ... this. Add callback filter argument,
16829 and use it.
16830 (traceframe_find_block_type): New, reimplemented on top of
16831 traceframe_walk_blocks.
16832 (build_traceframe_info_xml): New.
16833 (traceframe_read_info): New.
16834 * server.h (traceframe_read_info): Declare.
16835
4f3e6fb7
YQ
168362011-02-11 Yao Qi <yao@codesourcery.com>
16837
16838 * configure.ac: Call AC_PROG_RANLIB.
16839 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16840 * configure: Regenerate.
16841
764880b7
PA
168422011-02-07 Pedro Alves <pedro@codesourcery.com>
16843
16844 * server.c (gdb_read_memory): Change return semantics to allow
16845 partial transfers.
16846 (handle_search_memory_1): Adjust.
16847 (process_serial_event) <'m' packet>: Handle partial transfers.
16848 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16849
1c79eb8a
PA
168502011-01-28 Pedro Alves <pedro@codesourcery.com>
16851
16852 * regcache.c (init_register_cache): Initialize
16853 regcache->register_status.
16854 (free_register_cache): Release regcache->register_status.
16855 (regcache_cpy): Copy register_status.
16856 (registers_to_string): Print 'x's for unavailable registers.
16857 (supply_register): Mark the register's status valid or
16858 unavailable, depending on whether a buffer was passed in or not.
16859 (supply_register_zeroed): New.
16860 (supply_regblock): Mark the registers' status valid or
16861 unavailable, depending on whether a buffer was passed in or not.
16862 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16863 (struct regcache): New `register_status' field.
16864 (supply_register_zeroed): Declare.
16865 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16866 supply_register_zeroed, rather than passing a NULL buffer to
16867 supply_register.
16868 * tracepoint.c (fetch_traceframe_registers): Update comment.
16869
85724a0e
PA
168702011-01-28 Pedro Alves <pedro@codesourcery.com>
16871
16872 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16873 buffer explicit.
16874
d08aafef
PA
168752011-01-25 Pedro Alves <pedro@codesourcery.com>
16876
16877 * server.h (decode_xfer_write): Change prototype.
16878 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16879 and don't extract the annex here.
16880 * server.c (decode_xfer_read): Remove `annex' parameter,
16881 and don't extract the annex here.
16882 (decode_xfer): New.
16883 (struct qxfer): New.
16884 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16885 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16886 (handle_qxfer_statictrace): New functions, abstracted out from
16887 handle_query, and made to use the struct qxfer interface.
16888 (handle_threads_qxfer_proper): Rename to ...
16889 (handle_qxfer_threads_proper): ... this.
16890 (handle_threads_qxfer): Rename to ...
16891 (handle_qxfer_threads): ... this. Adjust.
16892 (qxfer_packets): New array.
16893 (handle_qxfer): New function.
16894 (handle_query): Use handle_qxfer.
16895
493e2a69
MS
168962011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16897
16898 * gdbreplay.c: Shorten lines of >= 80 columns.
16899 * linux-low.c: Ditto.
16900 * linux-ppc-low.c: Ditto.
16901 * linux-s390-low.c: Ditto.
16902 * linux-sparc-low.c: Ditto.
16903 * linux-x86-low.c: Ditto.
16904 * linux-xtensa-low.c: Ditto.
16905 * mem-break.c: Ditto.
16906 * nto-low.c: Ditto.
16907 * regcache.h: Ditto.
16908 * remote-utils.c: Ditto.
16909 * server.c: Ditto.
16910 * server.h: Ditto.
16911 * thread-db.c: Ditto.
16912 * tracepoint.c: Ditto.
16913 * utils.c: Ditto.
16914 * win32-low.h: Ditto.
16915
44944448
JB
169162011-01-05 Joel Brobecker <brobecker@adacore.com>
16917
16918 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16919 update.
16920
71ce852c
JB
169212011-01-01 Joel Brobecker <brobecker@adacore.com>
16922
16923 * server.c (gdbserver_version): Update copyright year in version
16924 output.
16925 * gdbreplay.c (gdbreplay_version): Ditto.
16926
eb826dc6
MF
169272010-12-29 Jie Zhang <jie.zhang@analog.com>
16928
16929 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16930 * linux-bfin-low.c: New file.
16931 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16932 PT_DATA_ADDR for BFIN targets.
16933 * Makefile.in (SFILES): Add linux-bfin-low.c.
16934 (clean): Remove reg-bfin.c.
16935 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16936 * README: Mention supported Blackfin targets.
16937
39ab222a
MF
169382010-12-23 Mike Frysinger <vapier@gentoo.org>
16939
16940 * .gitignore: New file.
16941
a1f2ce7d
MF
169422010-11-16 Mike Frysinger <vapier@gentoo.org>
16943
16944 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16945
f474844c
JZ
169462010-10-22 Jie Zhang <jie@codesourcery.com>
16947
16948 * Makefile.in: Add FLAGS_TO_PASS variable.
16949 (install): Remove dependency of install-only and recursively
16950 invoke make for install-only.
16951
f1048712
DE
169522010-10-04 Doug Evans <dje@google.com>
16953
16954 * Makefile.in (uninstall): Use $(DESTDIR).
16955
b53a1623
PA
169562010-09-24 Pedro Alves <pedro@codesourcery.com>
16957
e6ee044d
PA
16958 PR gdb/11842
16959
b53a1623
PA
16960 * linux-x86-low.c (compat_siginfo_from_siginfo)
16961 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16962 si_code is < 0. Check for si_code == SI_TIMER before checking for
16963 si_code < 0.
16964
fa1bd1e4
JB
169652010-09-13 Joel Brobecker <brobecker@adacore.com>
16966
16967 * lynx-i386-low.c: New file.
16968 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16969
47fac8f8
JB
169702010-09-13 Joel Brobecker <brobecker@adacore.com>
16971
16972 * lynx-low.c (ptrace_request_to_str): Remove handling for
16973 request values that have been removed in LynxOS 5.x.
16974
1adfc54d
JB
169752010-09-13 Joel Brobecker <brobecker@adacore.com>
16976
16977 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16978 <ptrace.h>
16979
c2a66c29
NS
169802010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16981
16982 * configure.ac: Add --enable-inprocess-agent option.
16983 * configure: Rebuilt.
16984
32fcada3
YQ
169852010-09-06 Yao Qi <yao@codesourcery.com>
16986
16987 * linux-low.c (linux_kill): Remove unused variable.
16988 (linux_stabilize_threads): Likewise.
16989 * server.c (start_inferior): Likewise.
16990 (queue_stop_reply_callback): Likewise.
16991 * tracepoint.c (do_action_at_tracepoint): Likewise.
16992
0cccb683
YQ
169932010-09-06 Yao Qi <yao@codesourcery.com>
16994
16995 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16996 on return.
16997
423ec54c
JK
169982010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16999
17000 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17001
12ac6819
PA
170022010-09-06 Pedro Alves <pedro@codesourcery.com>
17003
17004 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17005 "$(IPA_DEPFILES)".
17006
8ed54b31
JB
170072010-09-01 Joel Brobecker <brobecker@adacore.com>
17008
17009 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17010 gdbserver/lynx-ppc-low.c: New files.
17011 * Makefile.in (lynx_low_h): New variable.
17012 (lynx-low.o, lynx-ppc-low.o): New rules.
17013 * configure.ac: On LynxOS, link with -lnetinet.
17014 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17015 * configure: regenerate.
17016
bb0116a4
JB
170172010-09-01 Joel Brobecker <brobecker@adacore.com>
17018
17019 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17020 * configure.ac: Add check for vasprintf and vsnprintf.
17021 * configure, config.in: Regenerate.
17022 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17023
a778ab81 170242010-09-01 Joel Brobecker <brobecker@adacore.com>
17025
17026 * gdbreplay.c: Move include of alloca.h up, next to include of
17027 malloc.h.
17028 * server.h: Add include of malloc.h.
17029 * mem-break.c: Remove include of malloc.h.
17030 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17031
8b034a19 170322010-09-01 Joel Brobecker <brobecker@adacore.com>
17033
17034 * Makefile.in (memmem.o): Build with -Wno-error.
17035
170362010-09-01 Joel Brobecker <brobecker@adacore.com>
17037
17038 * utils.c (xsnprintf): Make non-static.
17039 * server.h: Add xsnprintf declaration.
17040 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17041 replace calls to snprintf by calls to xsnprintf throughout.
17042
170432010-09-01 Joel Brobecker <brobecker@adacore.com>
17044
17045 * configure.ac: Add configure check for alloca.
17046 * configure, config.in: Regenerate.
17047 * server.h: Include alloca.h if it exists.
17048 * gdbreplay.c: Include alloca.h if it exists.
17049
1a981360
PA
170502010-08-28 Pedro Alves <pedro@codesourcery.com>
17051
17052 * linux-low.c (__SIGRTMIN): Define if not already defined.
17053 (linux_create_inferior): Check for __ANDROID__ rather than
17054 __SIGRTMIN.
17055 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17056 are already deferred.
17057 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17058 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17059 stopped and already has a pending signal to report.
17060 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17061 a pending signal to report or is moving out of a jump pad.
17062 (linux_init_signals): Check for __ANDROID__ rather than
17063 __SIGRTMIN.
17064
b4d51a55
PA
170652010-08-28 Pedro Alves <pedro@codesourcery.com>
17066
17067 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17068 debug_threads check. Avoid a linear search when not doing debug
17069 output.
17070
ec48365d
PA
170712010-08-27 Pedro Alves <pedro@codesourcery.com>
17072
17073 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17074 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17075 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17076 (process_event): Change local fd's type to gdb_fildes_t.
17077 (create_file_handler): Adjust prototype.
17078 (delete_file_handler): Adjust prototype.
17079 (handle_file_event): Adjust prototype. Use pfildes.
17080 (create_file_event): Adjsut prototype.
17081 * remote-utils.c (remote_desc, listen_desc): Change type to
17082 gdb_fildes_t.
17083 * server.h: New gdb_fildes_t typedef.
17084 [USE_WIN32API]: Include winsock2.h.
17085 (delete_file_handler, add_file_handler): Adjust prototypes.
17086 (pfildes): Declare.
17087 * utils.c (pfildes): New.
17088
854d88f0
PA
170892010-08-27 Pedro Alves <pedro@codesourcery.com>
17090
17091 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17092 * configure: Regenerate.
17093
0146f85b
PA
170942010-08-27 Pedro Alves <pedro@codesourcery.com>
17095
17096 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17097 (linux_done_accessing_memory): ... this.
17098 (linux_target_ops): Adjust.
17099 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17100 * nto-low.c (nto_target_ops): Adjust comment.
17101 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17102 * spu-low.c (spu_target_ops): Adjust comment.
17103 * target.h (target_ops): Rename unprepare_to_access_memory field
17104 to done_accessing_memory.
17105 (unprepare_to_access_memory): Rename to ...
17106 (done_accessing_memory): ... this.
17107
90d74c30
PA
171082010-08-26 Pedro Alves <pedro@codesourcery.com>
17109
17110 * linux-low.c (linux_prepare_to_access_memory): New.
17111 (linux_unprepare_to_access_memory): New.
17112 (linux_target_ops): Install them.
17113 * server.c (read_memory): Rename to ...
17114 (gdb_read_memory): ... this. Use
17115 prepare_to_access_memory/prepare_to_access_memory.
17116 (write_memory): Rename to ...
17117 (gdb_write_memory): ... this. Use
17118 prepare_to_access_memory/prepare_to_access_memory.
17119 (handle_search_memory_1): Adjust.
17120 (process_serial_event): Adjust.
17121 * target.h (struct target_ops): New fields
17122 prepare_to_access_memory and unprepare_to_access_memory.
17123 (prepare_to_access_memory, unprepare_to_access_memory): New.
17124 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17125 prepare_to_access_memory/prepare_to_access_memory.
17126 * nto-low.c (nto_target_ops): Adjust.
17127 * spu-low.c (spu_target_ops): Adjust.
17128 * win32-low.c (win32_target_ops): Adjust.
17129
fd467969
PA
171302010-08-26 Pedro Alves <pedro@codesourcery.com>
17131
17132 * Makefile.in (WARN_CFLAGS): Get it from configure.
17133 (WERROR_CFLAGS): New.
17134 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17135 * configure.ac: Introduce --enable-werror, which adds -Werror to
17136 the compiler command line. Enabled by default. Disable with
17137 --disable-werror. Add -Wdeclaration-after-statement
17138 Wpointer-arith and -Wformat-nonliteral to warning flags.
17139 * configure: Regenerate.
17140
331e2f5f
PA
171412010-08-26 Pedro Alves <pedro@codesourcery.com>
17142
17143 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17144
e581f2b4
PA
171452010-08-26 Pedro Alves <pedro@codesourcery.com>
17146
17147 * gdbreplay.c (remote_error): New.
17148 (gdbchar): New.
17149 (expect): Use gdbchar. Check for error reading from GDB.
17150 Clarify sync error output.
17151 (play): Check for errors writing to GDB.
17152 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17153 * remote-utils.c (getpkt): Check for errors writing to the remote
17154 descriptor.
17155
3c11dd79
PA
171562010-08-25 Pedro Alves <pedro@codesourcery.com>
17157
17158 * linux-low.c (linux_wait_1): Move non-debugging code out of
17159 `debug_threads' control.
17160
d20a8ad9
PA
171612010-08-25 Pedro Alves <pedro@codesourcery.com>
17162
17163 * linux-low.c (linux_wait_1): Don't set last_status here.
17164 * server.c (push_event, queue_stop_reply_callback): Assert we're
17165 not pushing a TARGET_WAITKIND_IGNORE event.
17166 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17167 (myresume, handle_target_event): Set the thread's last_resume_kind
17168 and last_status from the target returned status.
17169
964e4306
PA
171702010-08-25 Pedro Alves <pedro@codesourcery.com>
17171
17172 PR threads/10729
17173
17174 * linux-x86-low.c (update_debug_registers_callback): New.
17175 (i386_dr_low_set_addr): Use it.
17176 (i386_dr_low_get_addr): New.
17177 (i386_dr_low_set_control): Use update_debug_registers_callback.
17178 (i386_dr_low_get_control): New.
17179 (i386_dr_low_get_status): Adjust.
17180 * linux-low.c (linux_stop_lwp): New.
17181 * linux-low.h (linux_stop_lwp): Declare.
17182
17183 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17184 argument instead of a i386_debug_reg_state.
17185 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17186 a i386_debug_reg_state.
17187 (i386_insert_aligned_watchpoint): Adjust.
17188 (i386_remove_aligned_watchpoint): Adjust.
17189 (i386_low_stopped_data_address): Read the debug registers from the
17190 inferior instead of from the mirrors.
17191 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17192 (i386_dr_low_get_addr): Declare.
17193 (i386_dr_low_get_control): Declare.
17194 (i386_dr_low_get_status): Change prototype.
17195
17196 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17197 (i386_dr_low_get_addr): New.
17198 (i386_dr_low_get_control): New.
17199 (i386_dr_low_get_status): Adjust prototype. Return
17200 dr_status_mirror.
17201 (i386_initial_stuff): Clear dr_status_mirror and
17202 dr_control_mirror.
17203 (i386_get_thread_context): Adjust.
17204 (i386_set_thread_context): Adjust.
17205 (i386_thread_added): Adjust.
17206
5f21a75b
PA
172072010-08-24 Pedro Alves <pedro@codesourcery.com>
17208
17209 * linux-low.h (linux_thread_area): Delete declaration.
17210
3e4c1235
TS
172112010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17212
17213 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17214 after its termination.
17215
1971b033
PA
172162010-08-09 Pedro Alves <pedro@codesourcery.com>
17217
17218 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17219 (gdb_wants_all_stopped): Delete.
17220 (linux_wait_1): Don't call them.
17221 * server.c (handle_v_cont): Tag all threads as want-stopped.
17222 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17223 stopped as "client-wants-stopped".
17224
310444ac
PA
172252010-07-31 Pedro Alves <pedro@codesourcery.com>
17226
17227 * Makefile.in (signals_h): New.
17228 (server_h): Depend on it.
17229 (server.o): Don't depend on $(signals_def).
17230 (signals.o): Depend on $(signals_def).
17231
a19cae16
JK
172322010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17233
17234 * Makefile.in (signals_def): New.
17235 (server_h): Append include/gdb/signals.h and signals_def.
17236 (server.o): Append signals_def.
17237
30d50328
JK
172382010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17239
17240 * server.c (handle_target_event): Use target_signal_to_host for
17241 resume_info.sig initialization.
17242 * target.h (struct thread_resume) <sig>: New comment.
17243
5c3216e2
OS
172442010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17245
c6f46ca0
OS
17246 * server.c (handle_query): strcpy() the returned string from paddress()
17247 instead of sprintf().
5c3216e2
OS
17248 * utils.c (paddress): Return phex_nz().
17249
6bd31874
JB
172502010-07-07 Joel Brobecker <brobecker@adacore.com>
17251
17252 * server.c (handle_v_cont): Call mourn_inferior if process
17253 just exited.
17254 (myresume): Likewise.
17255
0fb4aa4b
PA
172562010-07-01 Pedro Alves <pedro@codesourcery.com>
17257
17258 Static tracepoints, and integration with UST.
17259
17260 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17261 * mem-break.c (uninsert_all_breakpoints)
17262 (reinsert_all_breakpoints): New.
17263 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17264 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17265 (gdb_agent_ust_loaded, helper_thread_id)
17266 (gdb_agent_helper_thread_id): New macros.
17267 (struct ipa_sym_addresses): Add addr_ust_loaded,
17268 addr_helper_thread_id, addr_cmd_buf.
17269 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17270 (in_process_agent_loaded_ust): New.
17271 (write_e_ust_not_loaded): New.
17272 (maybe_write_ipa_ust_not_loaded): New.
17273 (struct collect_static_trace_data_action): New.
17274 (enum tracepoint_type) <static_tracepoint>: New.
17275 (struct tracepoint) <handle>: Mention static tracepoints.
17276 (struct static_tracepoint_ctx): New.
17277 (CMD_BUF_SIZE): New.
17278 (add_tracepoint_action): Handle static tracepoint actions.
17279 (unprobe_marker_at): New.
17280 (clear_installed_tracepoints): Handle static tracepoints.
17281 (cmd_qtdp): Handle static tracepoints.
17282 (probe_marker_at): New.
17283 (cmd_qtstart): Handle static tracepoints.
17284 (response_tracepoint): Handle static tracepoints.
17285 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17286 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17287 (get_context_regcache): Handle static tracepoints.
17288 (do_action_at_tracepoint): Handle static tracepoint actions.
17289 (traceframe_find_block_type): Handle static trace data blocks.
17290 (traceframe_read_sdata): New.
17291 (download_tracepoints): Download static tracepoint actions.
17292 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17293 (GDB_PROBE_NAME): New.
17294 (ust_ops): New.
17295 (GET_UST_SYM): New.
17296 (USTF): New.
17297 (dlsym_ust): New.
17298 (ust_marker_to_static_tracepoint): New.
17299 (gdb_probe): New.
17300 (collect_ust_data_at_tracepoint): New.
17301 (gdb_ust_probe): New.
17302 (UNIX_PATH_MAX, SOCK_DIR): New.
17303 (gdb_ust_connect_sync_socket): New.
17304 (resume_thread, stop_thread): New.
17305 (run_inferior_command): New.
17306 (init_named_socket): New.
17307 (gdb_ust_socket_init): New.
17308 (cstr_to_hexstr): New.
17309 (next_st): New.
17310 (first_marker, next_marker): New.
17311 (response_ust_marker): New.
17312 (cmd_qtfstm, cmd_qtsstm): New.
17313 (unprobe_marker_at, probe_marker_at): New.
17314 (cmd_qtstmat, gdb_ust_thread): New.
17315 (gdb_ust_init): New.
17316 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17317 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17318 (ST_REGENTRY): New.
17319 (x86_64_st_collect_regmap): New.
17320 (X86_64_NUM_ST_COLLECT_GREGS): New.
17321 (AMD64_RIP_REGNUM): New.
17322 (supply_static_tracepoint_registers): New.
17323 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17324 (ST_REGENTRY): New.
17325 (i386_st_collect_regmap): New.
17326 (i386_NUM_ST_COLLECT_GREGS): New.
17327 (supply_static_tracepoint_registers): New.
17328 * server.c (handle_query): Handle qXfer:statictrace:read.
17329 <qSupported>: Report support for StaticTracepoints, and
17330 qXfer:statictrace:read features.
17331 * server.h (traceframe_read_sdata)
17332 (supply_static_tracepoint_registers): Declare.
17333 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17334 (unpack_varlen_hex): Include in IPA build.
17335 * Makefile.in (ustlibs, ustinc): New.
17336 (IPA_OBJS): Add remote-utils-ipa.o.
17337 ($(IPA_LIB)): Link -ldl and -lpthread.
17338 (UST_CFLAGS): New.
17339 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17340 * config.in, configure: Regenerate.
17341
9e4344e5
PA
173422010-06-20 Ian Lance Taylor <iant@google.com>
17343 Pedro Alves <pedro@codesourcery.com>
17344
17345 * linux-x86-low.c (always_true): Delete.
17346 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17347 trying to fool the compiler with always_true.
17348
c6beb2cb
PA
173492010-06-20 Pedro Alves <pedro@codesourcery.com>
17350
17351 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17352 conditions in gdbserver.
17353
d2ed6730
UW
173542010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17355
17356 * spu-low.c (spu_read_memory): Wrap around local store limit.
17357 (spu_write_memory): Likewise.
17358
4e29fb54
PA
173592010-06-15 Pedro Alves <pedro@codesourcery.com>
17360
17361 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17362 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17363 LONGEST uses.
17364 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17365 uses.
17366 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17367 uses with LONGEST uses.
17368
6a271cae
PA
173692010-06-14 Stan Shebs <stan@codesourcery.com>
17370 Pedro Alves <pedro@codesourcery.com>
17371
17372 Bytecode compiler.
17373
17374 * linux-x86-low.c: Include limits.h.
17375 (add_insns): New.
17376 (always_true): New.
17377 (EMIT_ASM): New.
17378 (EMIT_ASM32): New.
17379 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17380 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17381 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17382 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17383 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17384 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17385 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17386 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17387 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17388 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17389 (amd64_emit_void_call_2): New.
17390 (amd64_emit_ops): New.
17391 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17392 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17393 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17394 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17395 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17396 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17397 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17398 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17399 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17400 (i386_emit_stack_adjust, i386_emit_int_call_1)
17401 (i386_emit_void_call_2): New.
17402 (i386_emit_ops): New.
17403 (x86_emit_ops): New.
17404 (the_low_target): Install x86_emit_ops.
17405 * server.h (struct emit_ops): New.
17406 (get_raw_reg_func_addr): Declare.
17407 (current_insn_ptr, emit_error): Declare.
17408 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17409 (set_trace_state_variable_value): New defines.
17410 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17411 addr_get_trace_state_variable_value and
17412 addr_set_trace_state_variable_value.
17413 (symbol_list): New fields for get_raw_reg,
17414 get_trace_state_variable_value and set_trace_state_variable_value.
17415 (condfn): New typedef.
17416 (struct tracepoint): New field `compiled_cond'.
17417 (do_action_at_tracepoint): Clear compiled_cond.
17418 (get_trace_state_variable_value, set_trace_state_variable_value):
17419 Export in the IPA.
17420 (condition_true_at_tracepoint): If there's a compiled condition,
17421 run that.
17422 (current_insn_ptr, emit_error): New globals.
17423 (struct bytecode_address): New.
17424 (get_raw_reg_func_addr): New.
17425 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17426 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17427 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17428 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17429 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17430 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17431 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17432 (compile_tracepoint_condition, compile_bytecodes): New.
17433 * target.h (emit_ops): Forward declare.
17434 (struct target_ops): New field emit_ops.
17435 (target_emit_ops): New.
17436 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17437 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17438 * linux-low.c (linux_emit_ops): New.
17439 (linux_target_ops): Install it.
17440 * linux-low.h (struct linux_target_ops): New field emit_ops.
17441
92b72907
UW
174422010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17443
17444 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17445 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17446
fa593d66
PA
174472010-06-01 Pedro Alves <pedro@codesourcery.com>
17448 Stan Shebs <stan@codesourcery.com>
17449
17450 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17451 (all): Depend on $(extra_libraries).
17452 (install-only): Install the IPA.
17453 (IPA_OBJS, IPA_LIB): New.
17454 (clean): Remove the IPA lib.
17455 (IPAGENT_CFLAGS): New.
17456 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17457 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17458 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17459 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17460 * configure.ac: Check for atomic builtins support in the compiler.
17461 (IPA_DEPFILES, extra_libraries): Define.
17462 * configure.srv (ipa_obj): Add description.
17463 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17464 (i[34567]86-*-linux*): Set ipa_obj.
17465 (x86_64-*-linux*): Set ipa_obj.
17466 * linux-low.c (stabilizing_threads): New.
17467 (supports_fast_tracepoints): New.
17468 (linux_detach): Stabilize threads before detaching.
17469 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17470 the lwp is either not stabilizing, or is moving out of a jump pad.
17471 (linux_fast_tracepoint_collecting): New.
17472 (maybe_move_out_of_jump_pad): New.
17473 (enqueue_one_deferred_signal): New.
17474 (dequeue_one_deferred_signal): New.
17475 (linux_wait_for_event_1): If moving out of a jump pad, defer
17476 pending signals to later.
17477 (linux_stabilize_threads): New.
17478 (linux_wait_1): Check if threads need moving out of jump pads, and
17479 do it if so.
17480 (stuck_in_jump_pad_callback): New.
17481 (move_out_of_jump_pad_callback): New.
17482 (lwp_running): New.
17483 (linux_resume_one_lwp): Handle moving out of jump pads.
17484 (linux_set_resume_request): Dequeue deferred signals.
17485 (need_step_over_p): Also step over fast tracepoint jumps.
17486 (start_step_over): Also uninsert fast tracepoint jumps.
17487 (finish_step_over): Also reinsert fast tracepoint jumps.
17488 (linux_install_fast_tracepoint_jump): New.
17489 (linux_target_ops): Install linux_stabilize_threads and
17490 linux_install_fast_tracepoint_jump_pad.
17491 * linux-low.h (linux_target_ops) <get_thread_area,
17492 install_fast_tracepoint_jump_pad>: New fields.
17493 (struct lwp_info) <collecting_fast_tracepoint,
17494 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17495 (linux_get_thread_area): Declare.
17496 * linux-x86-low.c (jump_insn): New.
17497 (x86_get_thread_area): New.
17498 (append_insns): New.
17499 (push_opcode): New.
17500 (amd64_install_fast_tracepoint_jump_pad): New.
17501 (i386_install_fast_tracepoint_jump_pad): New.
17502 (x86_install_fast_tracepoint_jump_pad): New.
17503 (the_low_target): Install x86_get_thread_area and
17504 x86_install_fast_tracepoint_jump_pad.
17505 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17506 (struct fast_tracepoint_jump): New.
17507 (fast_tracepoint_jump_insn): New.
17508 (fast_tracepoint_jump_shadow): New.
17509 (find_fast_tracepoint_jump_at): New.
17510 (fast_tracepoint_jump_here): New.
17511 (delete_fast_tracepoint_jump): New.
17512 (set_fast_tracepoint_jump): New.
17513 (uninsert_fast_tracepoint_jumps_at): New.
17514 (reinsert_fast_tracepoint_jumps_at): New.
17515 (set_breakpoint_at): Use write_inferior_memory.
17516 (uninsert_raw_breakpoint): Use write_inferior_memory.
17517 (check_mem_read): Mask out fast tracepoint jumps.
17518 (check_mem_write): Mask out fast tracepoint jumps.
17519 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17520 (set_fast_tracepoint_jump): Declare.
17521 (delete_fast_tracepoint_jump)
17522 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17523 (reinsert_fast_tracepoint_jumps_at): Declare.
17524 * regcache.c: Don't compile many functions when building the
17525 in-process agent library.
17526 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17527 the register buffer in the heap.
17528 (free_register_cache): If the register buffer isn't owned by the
17529 regcache, don't free it.
17530 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17531 pre-existing register caches.
17532 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17533 type.
17534 (convert_ascii_to_int): : Constify `from' parameter type.
17535 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17536 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17537 the needed buffer in-place.
17538 (relocate_instruction): New.
17539 * server.c (handle_query) <qSymbols>: If the target supports
17540 tracepoints, give it a chance of looking up symbols. Report
17541 support for fast tracepoints.
17542 (handle_status): Stabilize threads.
17543 (process_serial_event): Adjust.
17544 * server.h (struct fast_tracepoint_jump): Forward declare.
17545 (struct process_info) <fast_tracepoint_jumps>: New field.
17546 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17547 (decode_X_packet, decode_M_packet): Adjust.
17548 (relocate_instruction): Declare.
17549 (in_process_agent_loaded): Declare.
17550 (tracepoint_look_up_symbols): Declare.
17551 (struct fast_tpoint_collect_status): Declare.
17552 (fast_tracepoint_collecting): Declare.
17553 (force_unlock_trace_buffer): Declare.
17554 (handle_tracepoint_bkpts): Declare.
17555 (initialize_low_tracepoint)
17556 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17557 * target.h (struct target_ops) <stabilize_threads,
17558 install_fast_tracepoint_jump_pad>: New fields.
17559 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17560 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17561 [HAVE_STDINT_H]: Include stdint.h.
17562 (trace_debug_1): Rename to ...
17563 (trace_vdebug): ... this.
17564 (trace_debug): Rename to ...
17565 (trace_debug_1): ... this. Add `level' parameter.
17566 (trace_debug): New.
17567 (ATTR_USED, ATTR_NOINLINE): New.
17568 (IP_AGENT_EXPORT): New.
17569 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17570 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17571 (about_to_request_buffer_space, trace_buffer_is_full)
17572 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17573 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17574 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17575 (traceframe_write_count, traceframes_created)
17576 (trace_state_variables)
17577 New renaming defines.
17578 (struct ipa_sym_addresses): New.
17579 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17580 (symbol_list): New.
17581 (ipa_sym_addrs): New.
17582 (all_tracepoint_symbols_looked_up): New.
17583 (in_process_agent_loaded): New.
17584 (write_e_ipa_not_loaded): New.
17585 (maybe_write_ipa_not_loaded): New.
17586 (tracepoint_look_up_symbols): New.
17587 (debug_threads) [IN_PROCESS_AGENT]: New.
17588 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17589 (UNKNOWN_SIDE_EFFECTS): New.
17590 (stop_tracing): New.
17591 (flush_trace_buffer): New.
17592 (stop_tracing_bkpt): New.
17593 (flush_trace_buffer_bkpt): New.
17594 (read_inferior_integer): New.
17595 (read_inferior_uinteger): New.
17596 (read_inferior_data_pointer): New.
17597 (write_inferior_data_pointer): New.
17598 (write_inferior_integer): New.
17599 (write_inferior_uinteger): New.
17600 (struct collect_static_trace_data_action): Delete.
17601 (enum tracepoint_type): New.
17602 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17603 <actions_str, step_actions, step_actions_str>: Only include in
17604 GDBserver.
fa593d66
PA
17605 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17606 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17607 (tracepoints): Use IP_AGENT_EXPORT.
17608 (last_tracepoint): Don't include in the IPA.
17609 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17610 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17611 (alloced_trace_state_variables): New.
17612 (trace_state_variables): Use IP_AGENT_EXPORT.
17613 (traceframe_t): Delete unused variable.
17614 (circular_trace_buffer): Don't include in the IPA.
17615 (trace_buffer_start): Delete.
17616 (struct trace_buffer_control): New.
17617 (trace_buffer_free): Delete.
17618 (struct ipa_trace_buffer_control): New.
17619 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17620 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17621 New.
17622 (trace_buffer_ctrl): New.
17623 (TRACE_BUFFER_CTRL_CURR): New.
17624 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17625 Reimplement as macros.
17626 (trace_buffer_wrap): Delete.
17627 (traceframe_write_count, traceframe_read_count)
17628 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17629 (struct tracepoint_hit_ctx) <type>: New field.
17630 (struct fast_tracepoint_ctx): New.
17631 (memory_barrier): New.
17632 (cmpxchg): New.
17633 (record_tracepoint_error): Update atomically in the IPA.
17634 (clear_inferior_trace_buffer): New.
17635 (about_to_request_buffer_space): New.
17636 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17637 updating the same buffer.
17638 (add_tracepoint): Default the tracepoint's type to trap
17639 tracepoint, and orig_size to -1.
17640 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17641 internal variables.
17642 (create_trace_state_variable): New parameter `gdb'. Handle it.
17643 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17644 (cmd_qtdp): Handle fast tracepoints.
17645 (cmd_qtdv): Adjust.
17646 (max_jump_pad_size): New.
17647 (gdb_jump_pad_head): New.
17648 (get_jump_space_head): New.
17649 (claim_jump_space): New.
17650 (sort_tracepoints): New.
17651 (MAX_JUMP_SIZE): New.
17652 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17653 IPA.
17654 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17655 support. Upload fast traceframes, and delete internal IPA
17656 breakpoints.
17657 (stop_tracing_handler): New.
17658 (flush_trace_buffer_handler): New.
17659 (cmd_qtstop): Upload fast tracepoints.
17660 (response_tracepoint): Handle fast tracepoints.
17661 (tracepoint_finished_step): Upload fast traceframes. Set the
17662 tracepoint hit context's tracepoint type.
17663 (handle_tracepoint_bkpts): New.
17664 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17665 type. Add comment about fast tracepoints.
17666 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17667 non-existing action_str field.
17668 (get_context_regcache): Handle fast tracepoints.
17669 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17670 to the regcache.
17671 (fast_tracepoint_from_jump_pad_address): New.
17672 (fast_tracepoint_from_ipa_tpoint_address): New.
17673 (collecting_t): New.
17674 (force_unlock_trace_buffer): New.
17675 (fast_tracepoint_collecting): New.
17676 (collecting): New.
17677 (gdb_collect): New.
17678 (write_inferior_data_ptr): New.
17679 (target_tp_heap): New.
17680 (target_malloc): New.
17681 (download_agent_expr): New.
17682 (UALIGN): New.
17683 (download_tracepoints): New.
17684 (download_trace_state_variables): New.
17685 (upload_fast_traceframes): New.
17686 (IPA_FIRST_TRACEFRAME): New.
17687 (IPA_NEXT_TRACEFRAME_1): New.
17688 (IPA_NEXT_TRACEFRAME): New.
17689 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17690 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17691 (gdb_jump_pad_buffer_end): New.
17692 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17693 (initialize_tracepoint): Adjust.
17694 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17695 buffer. Initialize the low module.
17696 * utils.c (PREFIX, TOOLNAME): New.
17697 (malloc_failure): Use PREFIX.
17698 (error): In the IPA, an error causes an exit.
17699 (fatal, warning): Use PREFIX.
17700 (internal_error): Use TOOLNAME.
17701 (NUMCELLS): Increase to 10.
17702 * configure, config.in: Regenerate.
17703
d149dd1d
PA
177042010-06-01 Pedro Alves <pedro@codesourcery.com>
17705
17706 * server.c (handle_query) <qSupported>: Do two passes over the
17707 qSupported string to avoid nesting strtok.
17708
f6528abd
JK
177092010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17710
17711 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17712 (CDEPS): New.
17713 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17714 -Wl,--dynamic-list.
17715 * configure: Regenerate.
17716 * proc-service.list: New.
17717
ca2a87a0
JK
177182010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17719
17720 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17721 New comment.
17722
363a6e9f
OS
177232010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17724
17725 * gdbreplay.c (remote_open): Check error return from socket() call by
17726 its equality to -1 not by it being negative.
17727 * remote-utils.c (remote_open): Likewise.
17728
d23b6cb1
PA
177292010-05-23 Pedro Alves <pedro@codesourcery.com>
17730
17731 * config.h: Regenerate.
17732
28d3cf85
MK
177332010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17734
17735 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17736 doesn't provide PTRACE_GET_THREAD_AREA.
17737
fea36a59
MK
177382010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17739
17740 * linux-m68k-low.c: Include <asm/ptrace.h>
17741 (ps_get_thread_area): Implement.
17742
24b066ba
DE
177432010-05-03 Doug Evans <dje@google.com>
17744
17745 * event-loop.c (struct callback_event): New struct.
17746 (callback_list): New global.
17747 (append_callback_event, delete_callback_event): New functions.
17748 (process_callback): New function.
17749 (start_event_loop): Call it.
17750 * remote-utils.c (NOT_SCHEDULED): Define.
17751 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17752 moved out of readchar.
17753 (readchar): Rewrite. Call reschedule before returning.
17754 (reset_readchar): New function.
17755 (remote_close): Call it.
17756 (process_remaining, reschedule): New functions.
17757 * server.h (callback_handler_func): New typedef.
17758 (append_callback_event, delete_callback_event): Declare.
17759
9836d6ea
PA
177602010-05-03 Pedro Alves <pedro@codesourcery.com>
17761
17762 * proc-service.c (ps_pglobal_lookup): Use
17763 thread_db_look_up_one_symbol.
17764 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17765 parameter. Use it instead of all_symbols_looked_up.
17766 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17767 field.
17768 (all_symbols_looked_up): Don't declare.
17769 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17770 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17771 field.
17772 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17773 Set all_symbols_looked_up here.
17774 (thread_db_look_up_one_symbol): New.
17775 (thread_db_get_tls_address): Adjust.
17776 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17777 thread_db object on the heap, and tentatively set it in the
17778 process structure.
17779 (thread_db_init): Don't set all_symbols_looked_up here.
17780 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17781
7984d532
PA
177822010-05-03 Pedro Alves <pedro@codesourcery.com>
17783
17784 * linux-low.c (linux_kill, linux_detach): Adjust.
17785 (status_pending_p_callback): Remove redundant statement. Check
17786 for !TARGET_WAITIKIND_IGNORE, instead of
17787 TARGET_WAITKIND_STOPPED.
17788 (handle_tracepoints): Make sure LWP is locked. Adjust.
17789 (linux_wait_for_event_1): Adjust.
17790 (linux_cancel_breakpoints): New.
17791 (unsuspend_one_lwp): New.
17792 (unsuspend_all_lwps): New.
17793 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17794 (send_sigstop_callback): Change return type to int, add new
17795 `except' parameter and handle it.
17796 (suspend_and_send_sigstop_callback): New.
17797 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17798 pass them down. If SUSPEND, also increment the lwp's suspend
17799 count.
17800 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17801 (need_step_over_p): Don't consider suspended LWPs.
17802 (start_step_over): Adjust.
17803 (proceed_one_lwp): Change return type to int, add new `except'
17804 parameter and handle it.
17805 (unsuspend_and_proceed_one_lwp): New.
17806 (proceed_all_lwps): Use find_inferior instead of
17807 for_each_inferior.
17808 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17809 also decrement the suspend count of LWPs. Pass `except' down,
17810 instead of hacking its suspend count.
17811 (linux_pause_all): Add `freeze' parameter. Adjust.
17812 (linux_unpause_all): New.
17813 (linux_target_ops): Install linux_unpause_all.
17814 * server.c (handle_status): Adjust.
17815 * target.h (struct target_ops): New fields `unpause_all' and
17816 `cancel_breakpoints'. Add new parameter to `pause_all'.
17817 (pause_all): Add new `freeze' parameter.
17818 (unpause_all): New.
17819 (cancel_breakpoints): New.
17820 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17821 cancel breakpoints.
17822 (cmd_qtstart): Pause threads.
17823 (stop_tracing): Pause threads, and cancel breakpoints.
17824 * win32-low.c (win32_target_ops): Adjust.
17825
e471f25b
PA
178262010-05-03 Pedro Alves <pedro@codesourcery.com>
17827
17828 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17829 the inferior right away from here...
17830 (linux_wait_1): ... to here, and adjust to check the thread's
17831 last_resume_kind instead of the lwp's step or stop_expected flags.
17832
1915ef4f
PA
178332010-05-02 Pedro Alves <pedro@codesourcery.com>
17834
17835 * README: Use consistent `GDB' and `GDBserver' spellings.
17836
f9e39928
PA
178372010-05-02 Pedro Alves <pedro@codesourcery.com>
17838
17839 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17840 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17841 (linux_detach_one_lwp): Assume the lwp is stopped.
17842 (any_thread_of): Delete.
17843 (linux_detach): Stop all lwps here. Don't blindly delete all
17844 breakpoints.
17845 (delete_lwp_callback): New.
17846 (linux_mourn): Delete all lwps of the process that is gone.
17847 (linux_wait_1): Don't delete the last lwp of the process here.
17848 * mem-break.h (mark_breakpoints_out): Declare.
17849 * mem-break.c (mark_breakpoints_out): New.
17850 (free_all_breakpoints): Use it.
17851 * server.c (handle_target_event): If the process is gone, mark
17852 breakpoints out.
17853 * thread-db.c (struct thread_db) <create_bp>: New field.
17854 (thread_db_enable_reporting): Fix prototype. Store a thread event
17855 breakpoint reference in the thread_db struct.
17856 (thread_db_load_search): Clear the thread_db object.
17857 (try_thread_db_load_1): Ditto.
17858 (switch_to_process): New.
17859 (disable_thread_event_reporting): Use it.
17860 (remove_thread_event_breakpoints): New.
17861 (thread_db_detach, thread_db_mourn): Use it.
17862
1e7fc18c
PA
178632010-05-01 Pedro Alves <pedro@codesourcery.com>
17864
17865 * linux-low.c (linux_enable_event_reporting): New.
17866 (linux_wait_for_event_1, handle_extended_wait): Use it.
17867
02fc4de7
PA
178682010-04-30 Pedro Alves <pedro@codesourcery.com>
17869
17870 * linux-low.c (linux_kill_one_lwp, linux_kill)
17871 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17872 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17873 SIGSTOP even if the LWP is stopped.
17874 (send_sigstop_callback): New.
17875 (stop_all_lwps): Use send_sigstop_callback instead.
17876 (linux_resume_one_thread): Adjust.
17877 (proceed_one_lwp): Still proceed an LWP that the client has
17878 requested to stop, if we haven't reported it as stopped yet. Make
17879 sure that LWPs the client want stopped, have a pending SIGSTOP.
17880
bc3b5632
DE
178812010-04-26 Doug Evans <dje@google.com>
17882
ae1ada35
DE
17883 * server.c (handle_general_set): Make static.
17884
bc3b5632
DE
17885 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17886 Print received char after testing for error/eof instead of before.
17887 (input_interrupt): Tweak comment.
17888
65730243
DE
178892010-04-23 Doug Evans <dje@google.com>
17890
17891 * server.c (start_inferior): Print inferior argv if --debug.
17892
a8ae7dc0
AR
178932010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17894
17895 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17896 * nto-x86-low.c: Include server.h
17897
1c07cc19
PM
178982010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17899
17900 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17901 be consistent with other sources of this directory.
17902 (init_registers_amd64): Correct name of source file of this function
17903 in the comment.
17904
e0a61e09
PM
179052010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17906
17907 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17908 64-bit executables.
17909
54709339
PM
179102010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17911
17912 * win32-i386-low.c: Add 64-bit support.
17913 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17914 (init_registers_amd64): Declare.
17915 (mappings): Add 64-bit version of array.
17916 (init_windows_x86): New function.
17917 (the_low_target): Change init_arch field to init_windows_x86.
17918
e8f0053d
PM
179192010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17920
17921 * win32-low.c: Adapt to support also 64-bit architecture.
17922 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17923 (get_image_name): Use SIZE_T type for local variable `done'.
17924 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17925 (toolhelp_get_dll_name): Idem.
17926 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17927 Use uintptr_t typecast to avoid warning.
17928 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17929 (handle_exception): Use phex_nz to avoid warning.
17930 (win32_wait): Remove unused local variable `process'.
17931
c481e77e
PM
179322010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17933
17934 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17935 `amd64-avx.o'.
17936
12ea4b69
PM
179372010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17938
17939 * configure.ac: Use `ws2_32' library for srv_mingw.
17940 * configure: Regenerate.
17941 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17942 * remote-utils.c: Likewise.
17943
f6d1620c
L
179442010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17945
17946 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17947 if __x86_64__ is defined.
17948
8e642873
PM
179492010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17950
17951 * configure: Regenerate.
17952
711e434b
PM
179532010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17954
17955 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17956 * target.h (target_ops): New get_tib_address field.
17957 * win32-low.h (win32_thread_info): Add thread_local_base field.
17958 * win32-low.c (child_add_thread): Add tlb argument.
17959 Set thread_local_base field to TLB.
17960 (get_child_debug_event): Adapt to child_add_thread change.
17961 (win32_get_tib_address): New function.
17962 (win32_target_ops): Set get_tib_address field to
17963 win32_get_tib_address.
17964 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17965
505106cd
PA
179662010-04-12 Pedro Alves <pedro@codesourcery.com>
17967
505106cd
PA
17968 * linux-low.c (linux_mourn): Also remove the process.
17969 * server.c (handle_target_event): Don't remove the process here.
17970 * nto-low.c (nto_mourn): New.
17971 (nto_target_ops): Install it.
17972 * spu-low.c (spu_mourn): New.
17973 (spu_target_ops): Install it.
17974 * win32-low.c (win32_mourn): New.
17975 (win32_target_ops): Install it.
17976
e8470a06
PA
179772010-04-12 Pedro Alves <pedro@codesourcery.com>
17978
17979 * server.h (buffer_xml_printf): Remove redundant `;'.
17980
45ba0d02
PA
179812010-04-12 Pedro Alves <pedro@codesourcery.com>
17982
17983 * regcache.c (set_register_cache): Invalidate regcaches before
17984 changing the register cache layout.
17985 (regcache_invalidate_one): Allow a NULL regcache.
17986 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17987 regcaches before changing the register cache layout or the target
17988 regsets.
17989
59e04013
L
179902010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17991
17992 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17993 variable warning on Linux/x86-64.
17994
8336d594
PA
179952010-04-11 Pedro Alves <pedro@codesourcery.com>
17996
17997 GDBserver disconnected tracing support.
17998
17999 * linux-low.c (linux_remove_process): Delete.
18000 (add_lwp): Don't set last_resume_kind here.
18001 (linux_kill): Use `mourn'.
18002 (linux_detach): Use `thread_db_detach', and `mourn'.
18003 (linux_mourn): New.
18004 (linux_attach_lwp_1): Adjust comment.
18005 (linux_attach): last_resume_kind moved the thread_info; adjust.
18006 (status_pending_p_callback): Adjust.
18007 (linux_wait_for_event_1): Adjust.
18008 (count_events_callback, select_singlestep_lwp_callback)
18009 (select_event_lwp_callback, cancel_breakpoints_callback)
18010 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18011 (proceed_one_lwp): Adjust.
18012 (linux_async): Add debug output.
18013 (linux_thread_stopped): New.
18014 (linux_pause_all): New.
18015 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18016 linux_pause_all.
18017 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18018 (thread_db_free): Delete declaration.
18019 (thread_db_detach, thread_db_mourn): Declare.
18020 * thread-db.c (thread_db_init): Use thread_db_mourn.
18021 (thread_db_free): Delete, split in two.
18022 (disable_thread_event_reporting): New.
18023 (thread_db_detach): New.
18024 (thread_db_mourn): New.
18025
18026 * server.h (struct thread_info) <last_resume_kind>: New field.
18027 <attached>: Add comment.
18028 <gdb_detached>: New field.
18029 (handler_func): Change return type to int.
18030 (handle_serial_event, handle_target_event): Ditto.
18031 (gdb_connected): Declare.
18032 (tracing): Delete.
18033 (disconnected_tracing): Declare.
18034 (stop_tracing): Declare.
18035
18036 * server.c (handle_query) <qSupported>: Report support for
18037 disconnected tracing.
18038 (queue_stop_reply_callback): Account for running threads.
18039 (gdb_wants_thread_stopped): New.
18040 (gdb_wants_all_threads_stopped): New.
18041 (gdb_reattached_process): New.
18042 (handle_status): Clear the `gdb_detached' flag of all processes.
18043 In all-stop, stop all threads.
18044 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18045 (process_serial_event): If the remote connection breaks, or if an
18046 exit was forced with "monitor exit", force an event loop exit.
18047 Handle disconnected tracing on detach.
18048 (handle_serial_event): Adjust.
18049 (handle_target_event): If GDB isn't connected, forward events back
18050 to the inferior, unless the last process exited, in which case,
18051 exit gdbserver. Adjust interface.
18052
18053 * remote-utils.c (remote_open): Don't block in accept. Instead
18054 register an event loop source on the listen socket file
18055 descriptor. Refactor bits into ...
18056 (listen_desc): ... this new global.
18057 (gdb_connected): ... this new function.
18058 (enable_async_notification): ... this new function.
18059 (handle_accept_event): ... this new function.
18060 (remote_close): Clear remote_desc.
18061
18062 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18063
18064 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18065 New fields.
18066 (mourn_inferior): Define.
18067 (target_process_qsupported): Avoid the dangling else problem.
18068 (thread_stopped): Define.
18069 (pause_all): Define.
18070 (target_waitstatus_to_string): Declare.
18071 * target.c (target_waitstatus_to_string): New.
18072
18073 * tracepoint.c (tracing): Make extern.
18074 (disconnected_tracing): New.
18075 (stop_tracing): Make extern. Handle tracing stops due to GDB
18076 disconnecting.
18077 (cmd_qtdisconnected): New.
18078 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18079 (handle_tracepoint_general_set): Handle QTDisconnected.
18080
18081 * event-loop.c (event_handler_func): Change return type to int.
18082 (process_event): Bail out if the event handler wants the event
18083 loop to stop.
18084 (handle_file_event): Ditto.
18085 (start_event_loop): Bail out if the event handler wants the event
18086 loop to stop.
18087
18088 * nto-low.c (nto_target_ops): Adjust.
18089 * spu-low.c (spu_wait): Don't remove the process here.
18090 (spu_target_ops): Adjust.
18091 * win32-low.c (win32_wait): Don't remove the process here.
18092 (win32_target_ops): Adjust.
18093
5d267c4c
PA
180942010-04-11 Pedro Alves <pedro@codesourcery.com>
18095
18096 * regcache.c (realloc_register_cache): Invalidate inferior's
18097 regcache before recreating it.
18098
623ccd72
PA
180992010-04-09 Pedro Alves <pedro@codesourcery.com>
18100
18101 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18102
219f2f23
PA
181032010-04-09 Stan Shebs <stan@codesourcery.com>
18104 Pedro Alves <pedro@codesourcery.com>
18105
18106 * server.h (LONGEST): New.
18107 (struct thread_info) <while_stepping>: New field.
18108 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18109 Declare.
18110 (initialize_tracepoint, handle_tracepoint_general_set)
18111 (handle_tracepoint_query, tracepoint_finished_step)
18112 (tracepoint_was_hit, release_while_stepping_state_list):
18113 (current_traceframe): Declare.
18114 * server.c (handle_general_set): Handle tracepoint packets.
18115 (read_memory): New.
18116 (write_memory): New.
18117 (handle_search_memory_1): Use read_memory.
18118 (handle_query): Report support for conditional tracepoints, trace
18119 state variables, and tracepoint sources. Handle tracepoint
18120 queries.
18121 (main): Initialize the tracepoints module.
18122 (process_serial_event): Handle traceframe reads/writes.
18123
18124 * linux-low.c (handle_tracepoints): New.
18125 (linux_wait_1): Call it.
18126 (linux_resume_one_lwp): Handle while-stepping.
18127 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18128 (linux_target_ops): Install them.
18129 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18130 New field.
18131 * linux-x86-low.c (x86_supports_tracepoints): New.
18132 (the_low_target). Install it.
18133
18134 * mem-break.h (delete_breakpoint): Declare.
18135 * mem-break.c (delete_breakpoint): Make external.
18136
18137 * target.h (struct target_ops): Add `supports_tracepoints',
18138 `read_pc', and `write_pc' fields.
18139 (target_supports_tracepoints): Define.
18140 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18141 (phex_nz): New.
18142
18143 * regcache.h (struct regcache) <registers_owned>: New field.
18144 (init_register_cache, regcache_cpy): Declare.
18145 (regcache_read_pc, regcache_write_pc): Declare.
18146 (register_cache_size): Declare.
18147 (supply_regblock): Declare.
18148 * regcache.c (init_register_cache): New.
18149 (new_register_cache): Use it.
18150 (regcache_cpy): New.
18151 (register_cache_size): New.
18152 (supply_regblock): New.
18153 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18154
219f2f23
PA
18155 * tracepoint.c: New.
18156
18157 * Makefile.in (OBS): Add tracepoint.o.
18158 (tracepoint.o): New rule.
18159
3a13a53b
L
181602010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18161
18162 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18163 (i386-mmx.o): New.
18164 (i386-mmx.c): Likewise.
18165 (i386-mmx-linux.o): Likewise.
18166 (i386-mmx-linux.c): Likewise.
18167
18168 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18169 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18170 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18171 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18172
18173 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18174 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18175 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18176
1570b33e
L
181772010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18178
18179 * Makefile.in (clean): Updated.
18180 (i386-avx.o): New.
18181 (i386-avx.c): Likewise.
18182 (i386-avx-linux.o): Likewise.
18183 (i386-avx-linux.c): Likewise.
18184 (amd64-avx.o): Likewise.
18185 (amd64-avx.c): Likewise.
18186 (amd64-avx-linux.o): Likewise.
18187 (amd64-avx-linux.c): Likewise.
18188
18189 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18190 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18191 (srv_amd64_regobj): Add amd64-avx.o.
18192 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18193 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18194 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18195 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18196 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18197 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18198 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18199
18200 * i387-fp.c: Include "i386-xstate.h".
18201 (i387_xsave): New.
18202 (i387_cache_to_xsave): Likewise.
18203 (i387_xsave_to_cache): Likewise.
18204 (x86_xcr0): Likewise.
18205
18206 * i387-fp.h (i387_cache_to_xsave): Likewise.
18207 (i387_xsave_to_cache): Likewise.
18208 (x86_xcr0): Likewise.
18209
18210 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18211 * linux-crisv32-low.c (target_regsets): Likewise.
18212 * linux-m68k-low.c (target_regsets): Likewise.
18213 * linux-mips-low.c (target_regsets): Likewise.
18214 * linux-ppc-low.c (target_regsets): Likewise.
18215 * linux-s390-low.c (target_regsets): Likewise.
18216 * linux-sh-low.c (target_regsets): Likewise.
18217 * linux-sparc-low.c (target_regsets): Likewise.
18218 * linux-xtensa-low.c (target_regsets): Likewise.
18219
18220 * linux-low.c: Include <sys/uio.h>.
18221 (regsets_fetch_inferior_registers): Support nt_type.
18222 (regsets_store_inferior_registers): Likewise.
18223 (linux_process_qsupported): New.
18224 (linux_target_ops): Add linux_process_qsupported.
18225
18226 * linux-low.h (regset_info): Add nt_type.
18227 (linux_target_ops): Add process_qsupported.
18228
18229 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18230 and <sys/uio.h>.
18231 (init_registers_i386_avx_linux): New.
18232 (init_registers_amd64_avx_linux): Likewise.
18233 (xmltarget_i386_linux_no_xml): Likewise.
18234 (xmltarget_amd64_linux_no_xml): Likewise.
18235 (PTRACE_GETREGSET): Likewise.
18236 (PTRACE_SETREGSET): Likewise.
18237 (x86_fill_xstateregset): Likewise.
18238 (x86_store_xstateregset): Likewise.
18239 (use_xml): Likewise.
18240 (x86_linux_update_xmltarget): Likewise.
18241 (x86_linux_process_qsupported): Likewise.
18242 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18243 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18244 init_registers_i386_linux here. Call
18245 x86_linux_update_xmltarget.
18246 (the_low_target): Add x86_linux_process_qsupported.
18247
18248 * server.c (handle_query): Call target_process_qsupported.
18249
18250 * target.h (target_ops): Add process_qsupported.
18251 (target_process_qsupported): New.
18252
fc7238bb
PA
182532010-04-03 Pedro Alves <pedro@codesourcery.com>
18254
18255 * inferiors.c (add_thread): Set last_status kind to
18256 TARGET_WAITKIND_IGNORE.
18257 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18258 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18259 (linux_wait_1): Move `thread' local definition to block that uses
18260 it. Don't NULL initialize `event_child'.
18261 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18262 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18263 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18264
bdabb078
PA
182652010-04-01 Pedro Alves <pedro@codesourcery.com>
18266
18267 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18268 an extended waitstatus, or by a watchpoint.
18269 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18270 thread was stepping or has been stopped by a watchpoint.
18271
d3bbe7a0
PA
182722010-04-01 Pedro Alves <pedro@codesourcery.com>
18273
18274 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18275 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18276 of another, then delete the previous, and validate all
18277 breakpoints.
18278 (validate_inserted_breakpoint): New.
18279 (delete_disabled_breakpoints): New.
18280 (validate_breakpoints): New.
18281 (check_mem_read): Validate breakpoints before trusting their
18282 shadow. Delete disabled breakpoints.
18283 (check_mem_write): Validate breakpoints before trusting they
18284 should be inserted. Delete disabled breakpoints.
18285 * mem-break.h (validate_breakpoints):
18286 * server.c (handle_query): Validate breakpoints when we see a
18287 qSymbol query.
18288
8b07ae33
PA
182892010-04-01 Pedro Alves <pedro@codesourcery.com>
18290
18291 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18292 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18293 if we could tell there's a GDB breakpoint at stop_pc.
18294 (need_step_over_p): Don't do a step over if we find a GDB
18295 breakpoint at the resume PC.
18296
18297 * mem-break.c (struct raw_breakpoint): New.
18298 (enum bkpt_type): New type `gdb_breakpoint'.
18299 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18300 fields. New field `raw'.
18301 (find_raw_breakpoint_at): New.
18302 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18303 breakpoint instead.
18304 (set_breakpoint_at): Adjust.
18305 (delete_raw_breakpoint): New.
18306 (release_breakpoint): New.
18307 (delete_breakpoint): Rename to...
18308 (delete_breakpoint_1): ... this. Add proc parameter. Use
18309 release_breakpoint. Return ENOENT.
18310 (delete_breakpoint): Reimplement.
18311 (find_breakpoint_at): Delete.
18312 (find_gdb_breakpoint_at): New.
18313 (delete_breakpoint_at): Delete.
18314 (set_gdb_breakpoint_at): New.
18315 (delete_gdb_breakpoint_at): New.
18316 (gdb_breakpoint_here): New.
18317 (set_reinsert_breakpoint): Use release_breakpoint.
18318 (uninsert_breakpoint): Rename to ...
18319 (uninsert_raw_breakpoint): ... this.
18320 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18321 (reinsert_raw_breakpoint): Change parameter type to
18322 raw_breakpoint.
18323 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18324 instead.
18325 (check_breakpoints): Adjust. Use release_breakpoint.
18326 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18327 (breakpoint_inserted_here): Ditto.
18328 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18329 Don't trust the breakpoint's shadow if it is not inserted.
18330 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18331 (delete_all_breakpoints): Adjust.
18332 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18333 use delete_breakpoint_1.
18334
18335 * mem-break.h (breakpoints_supported): Delete declaration.
18336 (set_gdb_breakpoint_at): Declare.
18337 (gdb_breakpoint_here): Declare.
18338 (delete_breakpoint_at): Delete.
18339 (delete_gdb_breakpoint_at): Declare.
18340
18341 * server.h (struct raw_breakpoint): Forward declare.
18342 (struct process_info): New field `raw_breakpoints'.
18343
18344 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18345 breakpoints.
18346
6bf5e0ba
PA
183472010-03-24 Pedro Alves <pedro@codesourcery.com>
18348
18349 * linux-low.c (status_pending_p_callback): Fix comment.
18350 (linux_wait_for_event_1): Move most of the internal breakpoint
18351 handling from here...
18352 (linux_wait_1): ... to here.
18353 (count_events_callback): New.
18354 (select_singlestep_lwp_callback): New.
18355 (select_event_lwp_callback): New.
18356 (cancel_breakpoints_callback): New.
18357 (select_event_lwp): New.
18358 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18359 priority to all LWPs that have had events that should be reported
18360 to the client. Cancel breakpoints when about to reporting the
18361 event to the client, not while stopping lwps. No longer cancel
18362 finished single-steps here.
18363 (cancel_finished_single_step): Delete.
18364 (cancel_finished_single_steps): Delete.
18365
414a389f
PA
183662010-03-24 Pedro Alves <pedro@codesourcery.com>
18367
18368 * mem-break.c (enum bkpt_type): New.
18369 (struct breakpoint): New field `type'.
18370 (set_breakpoint_at): Change return type to struct breakpoint
18371 pointer. Set type to `other_breakpoint' by default.
18372 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18373 in the breakpoint list.
18374 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18375 (reinsert_breakpoint): Rename to ...
18376 (reinsert_raw_breakpoint): ... this.
18377 (reinsert_breakpoints_at): Adjust.
18378 * mem-break.h (struct breakpoint): Declare.
18379 (set_breakpoint_at): Change return type to struct breakpoint
18380 pointer.
18381
2280c721
PA
183822010-03-24 Pedro Alves <pedro@codesourcery.com>
18383
18384 * server.c (handle_query): Assign, not compare.
18385
d50171e4
PA
183862010-03-24 Pedro Alves <pedro@codesourcery.com>
18387
18388 Teach linux gdbserver to step-over-breakpoints.
18389
18390 * linux-low.c (can_hardware_single_step): New.
18391 (supports_breakpoints): New.
18392 (handle_extended_wait): If stopping threads, read the stop pc of
18393 the new cloned LWP.
18394 (get_pc): New.
18395 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18396 low target doesn't support retrieving the PC.
18397 (add_lwp): Set last_resume_kind to resume_continue.
18398 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18399 (linux_attach): Don't clear stop_expected. Set the lwp's
18400 last_resume_kind to resume_stop.
18401 (linux_detach_one_lwp): Don't check for removed breakpoints.
18402 (check_removed_breakpoint): Delete.
18403 (status_pending_p): Rename to ...
18404 (status_pending_p_callback): ... this. Don't check for removed
18405 breakpoints. Don't consider threads that are stopped from GDB's
18406 perspective.
18407 (linux_wait_for_lwp): Always read the stop_pc here.
18408 (cancel_breakpoint): New.
18409 (step_over_bkpt): New global.
18410 (linux_wait_for_event_1): Implement stepping over breakpoints.
18411 (gdb_wants_lwp_stopped): New.
18412 (gdb_wants_all_stopped): New.
18413 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18414 single-step traps here. Store the thread's last reported target
18415 wait status.
18416 (send_sigstop): Don't clear stop_expected. Always set it,
18417 instead.
18418 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18419 (cancel_finished_single_step): New.
18420 (cancel_finished_single_steps): New.
18421 (wait_for_sigstop): Don't cancel finished single-step traps here.
18422 (linux_resume_one_lwp): Don't check for removed breakpoints.
18423 Don't set `step' on non-hardware step archs.
18424 (linux_set_resume_request): Ignore resume_stop requests if already
18425 stopping or stopped. Set the lwp's last_resume_kind.
18426 (resume_status_pending_p): Don't check for removed breakpoints.
18427 (need_step_over_p): New.
18428 (start_step_over): New.
18429 (finish_step_over): New.
18430 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18431 requests. Clear the thread's last reported target waitstatus.
18432 Don't use the `suspended' flag. Don't consider pending breakpoints.
18433 (linux_resume): Start a step-over if necessary.
18434 (proceed_one_lwp): New.
18435 (proceed_all_lwps): New.
18436 (unstop_all_lwps): New.
18437 * linux-low.h (struct lwp_info): Rewrite comment for the
18438 `suspended' flag. Add the `stop_pc' field. Delete the
18439 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18440 Add `'last_resume_kind' and `need_step_over' fields.
18441 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18442 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18443 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18444 (set_raw_breakpoint_at): New.
18445 (set_breakpoint_at): Rewrite to use it.
18446 (reinsert_breakpoint_handler): Delete.
18447 (set_reinsert_breakpoint): New.
18448 (reinsert_breakpoint_by_bp): Delete.
18449 (delete_reinsert_breakpoints): New.
18450 (uninsert_breakpoint): Rewrite.
18451 (uninsert_breakpoints_at): New.
18452 (reinsert_breakpoint): Rewrite.
18453 (reinsert_breakpoints_at): New.
18454 (check_breakpoints): Rewrite.
18455 (breakpoint_here): New.
18456 (breakpoint_inserted_here): New.
18457 (check_mem_read): Adjust.
18458 * mem-break.h (breakpoints_supported, breakpoint_here)
18459 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18460 (reinsert_breakpoint_by_bp): Delete declaration.
18461 (delete_reinsert_breakpoints): Declare.
18462 (reinsert_breakpoint): Delete declaration.
18463 (reinsert_breakpoints_at): Declare.
18464 (uninsert_breakpoint): Delete declaration.
18465 (uninsert_breakpoints_at): Declare.
18466 (check_breakpoints): Adjust prototype.
18467 * server.h: Adjust include order.
18468 (struct thread_info): Declare here. Add a `last_status' field.
18469
30ba68cb
MS
184702010-03-23 Michael Snyder <msnyder@vmware.com>
18471
18472 * server.c (crc32): New function.
18473 (handle_query): Add handling for 'qCRC:' request.
18474
b9a881c2
PA
184752010-03-23 Pedro Alves <pedro@codesourcery.com>
18476
18477 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18478 lwp had been stopped by a watchpoint.
18479
e92d13d5
PA
184802010-03-16 Pedro Alves <pedro@codesourcery.com>
18481
18482 * server.h (internal_error): Declare.
18483 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18484 * utils.c (internal_error): New function.
18485
64daa791
AS
184862010-03-15 Andreas Schwab <schwab@redhat.com>
18487
18488 * configure.srv: Fix typo setting srv_regobj.
18489
f52cd8cd
PA
184902010-03-15 Pedro Alves <pedro@codesourcery.com>
18491
18492 * linux-low.c (fetch_register): Avoid passing a non string literal
18493 format to `error'.
18494 (usr_store_inferior_registers): Ditto.
18495
93ae6fdc
PA
184962010-03-14 Pedro Alves <pedro@codesourcery.com>
18497
18498 * linux-low.c (linux_write_memory): Bail out early if peeking
18499 memory failed.
18500
c3adc08c
PA
185012010-03-14 Pedro Alves <pedro@codesourcery.com>
18502
18503 * linux-low.h (struct lwp_info): New fields
18504 `stopped_by_watchpoint' and `stopped_data_address'.
18505 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18506 here, and cache them in the lwp object.
18507 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18508 directly.
18509 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18510 field.
18511 (linux_stopped_by_watchpoint): Rewrite.
18512 (linux_stopped_data_address): Rewrite.
18513
bce522a2
PA
185142010-03-06 Simo Melenius <simo.melenius@iki.fi>
18515
18516 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18517 switching the current inferior, not before.
18518
90884b2b
L
185192010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18520
18521 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18522 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18523 i386-linux.c and amd64-linux.c.
18524 (reg-i386.o): Removed.
18525 (reg-i386.c): Likewise.
18526 (reg-i386-linux.o): Likewise.
18527 (reg-i386-linux.c): Likewise.
18528 (reg-x86-64.o): Likewise.
18529 (reg-x86-64.c): Likewise.
18530 (reg-x86-64-linux.o): Likewise.
18531 (reg-x86-64-linux.c): Likewise.
18532 (i386.o): New.
18533 (i386.c): Likewise.
18534 (i386-linux.o): Likewise.
18535 (i386-linux.c): Likewise.
18536 (amd64.o): Likewise.
18537 (amd64.c): Likewise.
18538 (amd64-linux.o): Likewise.
18539 (amd64-linux.c): Likewise.
18540
18541 * configure.srv (srv_i386_regobj): New.
18542 (srv_i386_linux_regobj): Likewise.
18543 (srv_amd64_regobj): Likewise.
18544 (srv_amd64_linux_regobj): Likewise.
18545 (srv_i386_32bit_xmlfiles): Likewise.
18546 (srv_i386_64bit_xmlfiles): Likewise.
18547 (srv_i386_xmlfiles): Likewise.
18548 (srv_amd64_xmlfiles): Likewise.
18549 (srv_i386_linux_xmlfiles): Likewise.
18550 (srv_amd64_linux_xmlfiles): Likewise.
18551 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18552 srv_xmlfiles to $srv_i386_xmlfiles.
18553 (i[34567]86-*-mingw32ce*): Likewise.
18554 (i[34567]86-*-mingw*): Likewise.
18555 (i[34567]86-*-nto*): Likewise.
18556 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18557 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18558 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18559 (x86_64-*-linux*): Likewise.
18560
18561 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18562 (init_registers_amd64_linux): New.
18563 (x86_arch_setup): Replace init_registers_x86_64_linux with
18564 init_registers_amd64_linux.
18565
193f13e6
MK
185662010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18567
18568 * configure.ac: Check for libdl. If it is not available link against
18569 static libthread_db.
18570 * configure: Regenerate.
18571
85d721b8
PA
185722010-02-22 Pedro Alves <pedro@codesourcery.com>
18573
18574 PR9605
18575
18576 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18577 handing a read watchpoint.
18578 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18579
6076632b
DE
185802010-02-12 Doug Evans <dje@google.com>
18581
18582 * linux-low.c (linux_supports_tracefork_flag): Document.
18583 (linux_look_up_symbols): Add comment.
18584
3327ccf7
L
185852010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18586
18587 * regcache.c (supply_register): Clear regcache if buf is NULL.
18588
0718675c 185892010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18590 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18591
18592 * inferiors.c (find_inferior): Add function documentation.
18593 (unloaded_dll): Handle the case where the unloaded dll has not
18594 been previously registered in the dll list.
18595
177321bd
DJ
185962010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18597
18598 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18599 (thumb2_breakpoint): New.
18600 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18601
2b009048
DJ
186022010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18603
18604 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18605 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18606 breakpoints.
18607
3be029c7
PA
186082010-01-21 Pedro Alves <pedro@codesourcery.com>
18609
18610 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18611
18f5de3b
JK
186122010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18613
18614 * linux-s390-low.c (s390_collect_ptrace_register)
18615 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18616
3743bb4f
DE
186172010-01-21 Doug Evans <dje@google.com>
18618
14ce3065
DE
18619 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18620 (PTRACE_ARG4_TYPE): New macro.
18621 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18622 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18623 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18624 (usr_store_inferior_registers): Ditto.
18625 (linux_read_memory, linux_write_memory): Ditto.
18626 (linux_test_for_tracefork): Ditto.
18627
3743bb4f
DE
18628 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18629 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18630
8b315be5
PA
186312010-01-21 Pedro Alves <pedro@codesourcery.com>
18632
18633 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18634 target.
18635
85492558
PA
186362010-01-21 Pedro Alves <pedro@codesourcery.com>
18637
18638 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18639 prototype to take a regcache. Adjust.
18640
442ea881
PA
186412010-01-20 Pedro Alves <pedro@codesourcery.com>
18642
18643 * regcache.h (struct thread_info): Forward declare.
18644 (struct regcache): New.
18645 (new_register_cache): Adjust prototype.
18646 (get_thread_regcache): Declare.
18647 (free_register_cache): Adjust prototype.
18648 (registers_to_string, registers_from_string): Ditto.
18649 (supply_register, supply_register_by_name, collect_register)
18650 (collect_register_as_string, collect_register_by_name): Ditto.
18651 * regcache.c (struct inferior_regcache_data): Delete.
18652 (get_regcache): Rename to ...
18653 (get_thread_regcache): ... this. Adjust. Switch inferior before
18654 fetching registers.
18655 (regcache_invalidate_one): Adjust.
18656 (regcache_invalidate): Fix prototype.
18657 (new_register_cache): Return the new register cache.
18658 (free_register_cache): Change prototype.
18659 (realloc_register_cache): Adjust.
18660 (registers_to_string): Change prototype to take a regcache. Adjust.
18661 (registers_from_string): Ditto.
18662 (register_data): Ditto.
18663 (supply_register): Ditto.
18664 (supply_register_by_name): Ditto.
18665 (collect_register): Ditto.
18666 (collect_register_as_string): Ditto.
18667 (collect_register_by_name): Ditto.
18668 * server.c (process_serial_event): Adjust.
18669 * linux-low.h (regset_fill_func, regset_store_func): Change
18670 prototype.
18671 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18672 Change prototype.
18673 * linux-low.c (get_stop_pc): Adjust.
18674 (check_removed_breakpoint): Adjust.
18675 (linux_wait_for_event): Adjust.
18676 (linux_resume_one_lwp): Adjust.
18677 (fetch_register): Add regcache parameter. Adjust.
18678 (usr_store_inferior_registers): Ditto.
18679 (regsets_fetch_inferior_registers): Ditto.
18680 (regsets_store_inferior_registers): Ditto.
18681 (linux_fetch_registers, linux_store_registers): Ditto.
18682 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18683 regcache. Adjust.
43aaf8b6
PA
18684 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18685 Ditto.
442ea881
PA
18686 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18687 prototype to take a regcache.
18688 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18689 * remote-utils.c (convert_ascii_to_int, outreg)
18690 (prepare_resume_reply): Change prototype to take a regcache.
18691 Adjust.
18692 * target.h (struct target_ops) <fetch_registers, store_registers>:
18693 Change prototype to take a regcache.
18694 (fetch_inferior_registers, store_inferior_registers): Change
18695 prototype to take a regcache. Adjust.
18696 * proc-service.c (ps_lgetregs): Adjust.
18697 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18698 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18699 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18700 take a regcache. Adjust.
18701 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18702 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18703 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18704 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18705 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18706 (cris_cannot_fetch_register):
18707 (cris_breakpoint_at): Change prototype to take a regcache.
18708 Adjust.
18709 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18710 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18711 to take a regcache. Adjust.
18712 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18713 Adjust.
18714 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18715 take a regcache. Adjust.
18716 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18717 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18718 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18719 * linux-mips-low.c (mips_get_pc):
18720 (mips_set_pc): Change prototype to take a regcache. Adjust.
18721 (mips_reinsert_addr): Adjust.
18722 (mips_collect_register): Change prototype to take a regcache.
18723 Adjust.
18724 (mips_supply_register):
18725 (mips_collect_register_32bit, mips_supply_register_32bit)
18726 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18727 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18728 * linux-ppc-low.c (ppc_supply_ptrace_register)
18729 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18730 (parse_spufs_run): Adjust.
18731 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18732 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18733 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18734 take a regcache. Adjust.
18735 * linux-s390-low.c (s390_collect_ptrace_register)
18736 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18737 (s390_set_pc): Change prototype to take a regcache. Adjust.
18738 (s390_arch_setup): Adjust.
18739 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18740 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18741 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18742 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18743 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18744 regcache. Adjust.
18745 (sparc_breakpoint_at): Adjust.
18746 * linux-xtensa-low.c (xtensa_fill_gregset):
18747 (xtensa_store_gregset):
18748 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18749 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18750 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18751 prototype to take a regcache. Adjust.
18752 * win32-arm-low.c (arm_fetch_inferior_register)
18753 (arm_store_inferior_register): Change prototype to take a
18754 regcache. Adjust.
18755 * win32-i386-low.c (i386_fetch_inferior_register)
18756 (i386_store_inferior_register): Change prototype to take a
18757 regcache. Adjust.
18758 * win32-low.c (child_fetch_inferior_registers)
18759 (child_store_inferior_registers): Change prototype to take a
18760 regcache. Adjust.
18761 (win32_wait): Adjust.
18762 (win32_fetch_inferior_registers): Change prototype to take a
18763 regcache. Adjust.
18764 (win32_store_inferior_registers): Adjust.
18765 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18766 store_inferior_register>: Change prototype to take a regcache.
18767
60c3d7b0
DE
187682010-01-20 Doug Evans <dje@google.com>
18769
18770 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18771 #ifdef.
18772 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18773 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18774
dc146f7c
VP
187752010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18776
18777 * linux-low.c (linux_core_of_thread): New.
18778 (compare_ints, show_process, list_threads): New.
18779 (linux_qxfer_osdata): Report threads and cores.
18780 (linux_target_op): Register linux_core_of_thread.
18781 * remote-utils.c (prepare_resume_reply): Report the core.
18782 (buffer_xml_printf): Support %d specifier.
18783 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18784 New.
18785 (handle_query): Handle qXfer:threads. Announce availability
18786 thereof.
18787 * target.h (struct target_ops): New field core_of_thread.
18788
7803799a
UW
187892010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18790
18791 * Makefile.in (clean): Remove new generated files.
18792 (reg-s390.o, reg-s390.c): Remove rules.
18793 (reg-s390x.o, reg-s390x.c): Likewise.
18794 (s390-linux32.o, s390-linux32.c): Add rules.
18795 (s390-linux64.o, s390-linux64.c): Likewise.
18796 (s390x-linux64.o, s390x-linux64.c): Likewise.
18797 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18798 * linux-s390-low.c: Include <elf.h>.
18799 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18800 (init_registers_s390): Remove prototype.
18801 (init_registers_s390x): Likewise.
18802 (init_registers_s390_linux32): Add prototype.
18803 (init_registers_s390_linux64): Likewise.
18804 (init_registers_s390x_linux64): Likewise.
18805 (s390_num_regs_3264): New define.
18806 (s390_regmap_3264): New global variable.
18807 (s390_cannot_fetch_register): Remove obsolete check.
18808 (s390_cannot_store_register): Likewise.
18809 (s390_collect_ptrace_register): Handle upper/lower register halves.
18810 (s390_supply_ptrace_register): Likewise.
18811 (s390_fill_gregset): Update to register number changes.
18812 (s390_get_hwcap): New routine.
18813 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18814 Install appropriate regmap and register set.
18815
6e7ffa39
JB
188162010-01-01 Joel Brobecker <brobecker@adacore.com>
18817
18818 * server.c (gdbserver_version): Update copyright year to 2010.
18819 * gdbreplay.c (gdbreplay_version): Likewise.
18820
957f3f49
DE
188212009-12-28 Doug Evans <dje@google.com>
18822
18823 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18824 elf/external.h. Include <elf.h> instead but only if necessary.
18825
ca5c370d
PA
188262009-12-28 Pedro Alves <pedro@codesourcery.com>
18827
18828 * linux-low.c (linux_remove_process): Remove `detaching'
18829 parameter. Don't release/detach from thread_db here.
18830 (linux_kill): Release/detach from thread_db here, ...
18831 (linux_detach): ... and here, before actually detaching.
18832 (linux_wait_1): ... and here, when a process exits.
18833 * thread-db.c (any_thread_of): New.
18834 (thread_db_free): Switch the current inferior to a thread of the
18835 passed in process.
18836
4ee62156
DE
188372009-12-21 Doug Evans <dje@google.com>
18838
d90e6a88
DE
18839 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18840
c5f62d5f
DE
18841 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18842 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18843 warning ifndef __NR_tkill. Move setting of errno there too.
18844 Delete unnecessary resetting of errno after syscall.
18845 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18846
10e86dd7
DE
18847 * configure.ac: Check for dladdr.
18848 * config.in: Regenerate.
18849 * configure: Regenerate.
18850 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18851 (try_thread_db_load): Update.
18852
4ee62156
DE
18853 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18854
00f515da
DE
188552009-12-18 Doug Evans <dje@google.com>
18856
e9464885
DE
18857 * event-loop.c: Include unistd.h if it exists.
18858
07d4f67e
DE
18859 * linux-low.c (my_waitpid): Move definition away from being in
18860 between linux_tracefork_child/linux_test_for_tracefork.
18861
00f515da
DE
18862 * gdb_proc_service.h (psaddr_t): Fix type.
18863 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18864 signature to match glibc.
18865
1de1badb
DE
188662009-12-16 Doug Evans <dje@google.com>
18867
18868 * linux-low.c (linux_read_memory): Fix argument to read.
18869
aeeb81d1
PA
188702009-11-26 Pedro Alves <pedro@codesourcery.com>
18871
18872 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18873 events, don't leave current_inferior pointing at null.
18874
10357975
PA
188752009-11-26 Pedro Alves <pedro@codesourcery.com>
18876
18877 * win32-low.c (LOG): Delete.
18878 (OUTMSG): Output to stderr.
18879 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18880 on compile time LOG macro.
18881 (win32_wait): Fix debug output.
18882
cf6e3471
PA
188832009-11-26 Pedro Alves <pedro@codesourcery.com>
18884
18885 * win32-low.c (win32_add_one_solib): If the dll name is
18886 "ntdll.dll", prepend the system directory to the dll path.
18887
0c85e18e
MK
188882009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18889
18890 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18891
9ac544ce 188922009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18893 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18894
18895 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18896 * configure.ac: Check for __mcoldfire__ and set
18897 gdb_cv_m68k_is_coldfire.
18898 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18899 reg-cf.o and reg-m68k.o.
18900 * configure: Regenerated.
18901
fd7dd3e6
PA
189022009-11-16 Pedro Alves <pedro@codesourcery.com>
18903
18904 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18905 Pass it to thread_db_free.
18906 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18907 proper `detaching' argument to linux_remove_process.
18908 * linux-low.h (thread_db_free): Add `detaching' parameter.
18909 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18910 to thread_db_free.
18911 (thread_db_free): Add `detaching' parameter. Only
18912 call td_ta_clear_event if detaching from process.
18913
75aa492e
MK
189142009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18915
18916 * thread-db.c (thread_db_free): Fix typo.
18917
21e1bee4
PP
189182009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18919
18920 PR gdb/10838
18921 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18922
8838b45e
NS
189232009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18924
18925 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18926 with an i686 compiler.
18927 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18928 needed.
18929 * configure: Rebuilt.
18930
8a35fb51
SL
189312009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18932
18933 PR gdb/10783
18934
18935 * server.c (handle_search_memory_1): Correct read_addr initialization
18936 in loop for searching subsequent chunks.
18937
96f15937
PP
189382009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18939
18940 * configure.ac: New --with-libthread-db option.
18941 * thread-db.c: Allow direct dependence on libthread_db.
18942 (thread_db_free): Adjust.
18943 * config.in: Regenerate.
18944 * configure: Likewise.
889bf7c5 18945
5f7d1694
PP
189462009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18947
18948 PR gdb/10757
18949 * thread-db.c (attach_thread): New function.
18950 (maybe_attach_thread): Return success/failure.
18951 (find_new_threads_callback): Adjust.
889bf7c5
PA
18952 (thread_db_find_new_threads): Loop until no new threads.
18953
88e3b899
PA
189542009-10-13 Pedro Alves <pedro@codesourcery.com>
18955
18956 * proc-service.c (ps_lgetregs): Formatting.
18957
cdbfd419
PP
189582009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18959
18960 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18961 * configure.ac: Adjust.
18962 * linux-low.h (struct process_info_private): Move members to struct
18963 thread_db.
18964 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18965 * linux-low.c (linux_remove_process): Adjust.
18966 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18967 * server.c (handle_query): Move code ...
18968 (handle_monitor_command): ... here. New function.
18969 * target.h (struct target_ops): New member.
18970 * thread-db.c (struct thread_db): New.
18971 (libthread_db_search_path): New variable.
18972 (thread_db_create_event, thread_db_enable_reporting)
18973 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18974 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18975 (try_thread_db_load_1, dladdr_to_soname): New functions.
18976 (try_thread_db_load, thread_db_load_search): New functions.
18977 (thread_db_init): Search for libthread_db.
18978 (thread_db_free): New function.
18979 (thread_db_handle_monitor_command): Likewise.
18980 * config.in: Regenerate.
18981 * configure: Regenerate.
889bf7c5 18982
4168d2d6
UW
189832009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18984
18985 * spu-low.c (spu_kill): Wait for inferior to terminate.
18986 Call clear_inferiors.
18987 (spu_detach): Call clear_inferiors.
18988
81ecdfbb
RW
189892009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18990
18991 * aclocal.m4: Regenerate.
18992 * config.in: Likewise.
18993 * configure: Likewise.
18994
0b9ff2c0
UW
189952009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18996
18997 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18998 (parse_spufs_run): New function.
18999 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19000 (ppc_breakpoint_at): Handle SPU breakpoints.
19001
efcbbd14
UW
190022009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19003
19004 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19005 (SPUFS_MAGIC): Define.
19006 (spu_enumerate_spu_ids): New function.
19007 (linux_qxfer_spu): New function.
19008 (linux_target_ops): Install linux_qxfer_spu.
19009
f4d9bade
UW
190102009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19011
19012 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19013 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19014 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19015 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19016 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19017 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19018 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19019 (init_registers_powerpc_cell32l): Add prototype.
19020 (init_registers_powerpc_cell64l): Likewise.
19021 (ppc_arch_setup): Detect Cell/B.E. architecture.
19022
96e946ca
RW
190232009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19024
19025 * Makefile.in (datarootdir): New variable.
19026
58d6951d
DJ
190272009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19028
19029 * linux-low.c (linux_write_memory): Update debugging output.
19030 * Makefile.in (clean): Add new descriptions.
19031 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19032 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19033 * configure.srv: Add new files for arm*-*-linux*.
19034 * linux-arm-low.c: Add new declarations.
19035 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19036 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19037 (HWCAP_VFPv3D16): New.
19038 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19039 instead of __IWMMXT__.
19040 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19041 (arm_arch_setup): New.
19042 (target_regsets): Remove #ifdef. Add VFP regset.
19043 (the_low_target): Use arm_arch_setup.
19044
12b42a12
DJ
190452009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19046
19047 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19048 the main thread again.
19049
ac8c974e
AR
190502009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19051
19052 Adding Neutrino gdbserver.
19053 * configure: Regenerated.
19054 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19055 * configure.srv (i[34567]86-*-nto*): New target.
19056 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19057 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19058 (nto_comctrl) [__QNX__]: New function.
19059 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19060
4424e0c3 190612009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19062
19063 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19064 srv_tgtobj.
19065
912cf4ba
PA
190662009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19067 Pedro Alves <pedro@codesourcery.com>
19068
19069 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19070 don't support CONTEXT_EXTENDED_REGISTERS.
19071 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19072 (the_low_target): Install them.
19073 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19074 failing with ERROR_PIPE_NOT_CONNECTED.
19075
aa5ca48f
DE
190762009-06-30 Doug Evans <dje@google.com>
19077 Pierre Muller <muller@ics.u-strasbg.fr>
19078
19079 Add h/w watchpoint support to x86-linux, win32-i386.
19080 * Makefile.in (SFILES): Add i386-low.c
19081 (i386_low_h): Define.
19082 (i386-low.o): Add dependencies.
19083 (linux-x86-low.o): Add i386-low.h dependency.
19084 (win32-i386-low.o): Ditto.
19085 * i386-low.c: New file.
19086 * i386-low.h: New file.
19087 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19088 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19089 * linux-low.c (linux_add_process): Initialize arch_private.
19090 (linux_remove_process): Free arch_private.
19091 (add_lwp): Initialize arch_private.
19092 (delete_lwp): Free arch_private.
19093 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19094 provided.
19095 * linux-low.h (process_info_private): New member arch_private.
19096 (lwp_info): New member arch_private.
19097 (linux_target_ops): New members new_process, new_thread,
19098 prepare_to_resume.
19099 (ptid_of): New macro.
19100 * linux-x86-low.c: Include stddef.h, i386-low.h.
19101 (arch_process_info): New struct.
19102 (arch_lwp_info): New struct.
19103 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19104 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19105 (i386_dr_low_get_status): New function.
19106 (x86_insert_point, x86_remove_point): New functions.
19107 (x86_stopped_by_watchpoint): New function.
19108 (x86_stopped_data_address): New function.
19109 (x86_linux_new_process, x86_linux_new_thread): New functions.
19110 (x86_linux_prepare_to_resume): New function.
19111 (the_low_target): Add entries for insert_point, remove_point,
19112 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19113 prepare_to_resume.
19114 * server.c (debug_hw_points): New global.
19115 (monitor_show_help): Document set debug-hw-points.
19116 (handle_query): Process "set debug-hw-points".
19117 * server.h (debug_hw_points): Declare.
19118 (paddress): Declare.
19119 * utils.c (NUMCELLS, CELLSIZE): New macros.
19120 (get_sell, xsnprintf, paddress): New functions.
19121 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19122 remove_point, stopped_by_watchpoint, stopped_data_address.
19123 * win32-i386-low.c: Include i386-low.h.
19124 (debug_reg_state): Replaces dr.
19125 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19126 (i386_dr_low_get_status): New function.
19127 (i386_insert_point, i386_remove_point): New functions.
19128 (i386_stopped_by_watchpoint): New function.
19129 (i386_stopped_data_address): New function.
19130 (i386_initial_stuff): Update.
19131 (get_thread_context,set_thread_context,i386_thread_added): Update.
19132 (the_low_target): Add entries for insert_point,
19133 remove_point, stopped_by_watchpoint, stopped_data_address.
19134 * win32-low.c (win32_insert_watchpoint): New function.
19135 (win32_remove_watchpoint): New function.
19136 (win32_stopped_by_watchpoint): New function.
19137 (win32_stopped_data_address): New function.
19138 (win32_target_ops): Add entries for insert_watchpoint,
19139 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19140 * win32-low.h (win32_target_ops): New members insert_point,
19141 remove_point, stopped_by_watchpoint, stopped_data_address.
19142
d993e290
PA
191432009-06-25 Pedro Alves <pedro@codesourcery.com>
19144
19145 * server.c (process_serial_event): Re-return unsupported, not
19146 error, if the type isn't recognized. Re-allow supporting only
19147 insert or remove packets. Also call require_running for
19148 breakpoints. Add missing break statement to default case. Tidy.
19149 * target.h (struct target_ops): Rename insert_watchpoint to
19150 insert_point, and remove_watchpoint to remove_point.
19151
19152 * linux-low.h (struct linux_target_ops): Likewise.
19153 * linux-low.c (linux_insert_watchpoint): Rename to ...
19154 (linux_insert_point): ... this. Adjust.
19155 (linux_remove_watchpoint): Rename to ...
19156 (linux_remove_point): ... this. Adjust.
19157 (linux_target_ops): Adjust.
19158 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19159 (cris_insert_point): ... this.
19160 (cris_remove_watchpoint): Rename to ...
19161 (cris_remove_point): ... this.
19162 (the_low_target): Adjust.
19163
0f54c268
PM
191642009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19165
19166 * server.c (handle_v_kill): Pass signal_pid to
19167 kill_inferior if multi_process is zero.
19168
c6314022
AR
191692009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19170
19171 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19172 * target.h (target_ops): Comment for *_watchpoint to make it clear
19173 the functions can get types '0' and '1'.
19174
4463ce24
AR
191752009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19176
19177 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19178 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19179 * regcache.c (get_regcache): Likewise.
19180 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19181 * win32-low.c (child_fetch_inferior_registers): Remove check for
19182 regno 0.
19183
cf8fd78b
PA
191842009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19185 Pedro Alves <pedro@codesourcery.com>
19186
19187 * target.h (struct target_ops) <supports_multi_process>: New
19188 callback.
19189 (target_supports_multi_process): New.
19190 * server.c (handle_query): Even if GDB reports support, only
19191 enable multi-process if the target also supports it. Report
19192 multi-process support only if the target backend supports it.
19193 * linux-low.c (linux_supports_multi_process): New function.
19194 (linux_target_ops): Install it as target_supports_multi_process
19195 callback.
19196
47c0c975
DE
191972009-05-24 Doug Evans <dje@google.com>
19198
e09875d4
DE
19199 Global renaming of find_thread_pid to find_thread_ptid.
19200 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19201 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19202 All callers updated.
19203
e27d73f6
DE
19204 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19205 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19206 directly.
19207
47c0c975
DE
19208 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19209 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19210 (linux_resume_one_lwp): Ditto.
19211
2acc282a
DE
192122009-05-23 Doug Evans <dje@google.com>
19213
19214 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19215 from struct inferior_list_entry * to struct lwp_info *.
19216 All callers updated.
19217
9f1036c1
DE
192182009-05-13 Doug Evans <dje@google.com>
19219
19220 * linux-x86-low.c: Don't include assert.h.
19221 (x86_siginfo_fixup): Use fatal, not assert.
19222 (x86_arch_setup): Fix comment.
19223
d0722149
DE
192242009-05-12 Doug Evans <dje@google.com>
19225
19226 Biarch support for i386/amd64 gdbserver.
19227 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19228 Add linux-x86-low.c.
19229 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19230 (linux-x86-low.o): Add.
19231 * linux-x86-64-low.c: Delete.
19232 * linux-i386-low.c: Delete.
19233 * linux-x86-low.c: New file.
19234 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19235 linux-x86-low.o.
19236 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19237 linux-x86-low.o.
19238 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19239 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19240 (linux_child_pid_to_exec_file): New function.
19241 (elf_64_header_p, elf_64_file_p): New functions.
19242 (siginfo_fixup): New function.
19243 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19244 give target a chance to convert layout.
19245 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19246 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19247
fdeb2a12
DE
192482009-05-07 Doug Evans <dje@google.com>
19249
19250 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19251 (regsets_store_inferior_registers): Ditto.
19252
a6dbe5df
PA
192532009-05-06 Pedro Alves <pedro@codesourcery.com>
19254
19255 PR server/10048
19256
19257 * linux-low.c (must_set_ptrace_flags): Delete.
19258 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19259 of the global.
19260 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19261 `lwp->must_set_ptrace_flags' instead.
ba42693b 19262 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19263 (linux_wait_1): ... not here.
19264
5091eb23
DE
192652009-04-30 Doug Evans <dje@google.com>
19266
9f767825
DE
19267 * inferiors.c (started_inferior_callback): New function.
19268 (attached_inferior_callback): New function.
19269 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19270 * server.c (print_started_pid, print_attached_pid): New functions.
19271 (detach_or_kill_for_exit): New function.
19272 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19273 * server.h (have_started_inferiors_p): Declare.
19274 (have_attached_inferiors_p): Declare.
19275
5091eb23
DE
19276 * inferiors.c (remove_process): Fix memory leak, free process.
19277 * linux-low.c (linux_remove_process): New function.
19278 (linux_kill): Call it instead of remove_process.
19279 (linux_detach, linux_wait_1): Ditto.
19280
155c8968
PA
192812009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19282
19283 * configure.srv: Add x86 Windows CE target.
19284
7fe519cb
UW
192852009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19286
19287 * inferiors.c (get_thread_process): Make global.
19288 * server.h (get_thread_process): Add prototype.
19289 * thread-db.c (find_one_thread): Use get_thread_process
19290 instead of current_process.
19291 (thread_db_get_tls_address): Do not crash if called when
19292 thread layer is not yet initialized.
19293
5472f405
UW
192942009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19295
19296 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19297 * spu-low.c (current_tid): Rename to ...
19298 (current_ptid): ... this.
19299 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19300 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19301 ptid_get_lwp (current_ptid) instead of current_tid.
19302 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19303 instead of current_tid. Use find_process_pid to verify pid
19304 argument is valid. Pass proper argument to remove_process.
19305 (spu_thread_alive): Compare current_ptid instead of current_tid.
19306 (spu_resume): Likewise.
19307
55ac2b99
PA
193082009-04-02 Pedro Alves <pedro@codesourcery.com>
19309
19310 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19311 variable.
19312
95954743
PA
193132009-04-01 Pedro Alves <pedro@codesourcery.com>
19314
19315 Implement the multiprocess extensions, and add linux multiprocess
19316 support.
19317
19318 * server.h (ULONGEST): Declare.
19319 (struct ptid, ptid_t): New.
19320 (minus_one_ptid, null_ptid): Declare.
19321 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19322 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19323 (struct inferior_list_entry): Change `id' type from unsigned from
19324 to ptid_t.
19325 (struct sym_cache, struct breakpoint, struct
19326 process_info_private): Forward declare.
19327 (struct process_info): Declare.
19328 (current_process): Declare.
19329 (all_processes): Declare.
19330 (initialize_inferiors): Declare.
19331 (add_thread): Adjust to use ptid_t.
19332 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19333 (add_process, remove_process, find_thread_pid): Declare.
19334 (find_inferior_id): Adjust to use ptid_t.
19335 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19336 (multi_process): Declare.
19337 (push_event): Adjust to use ptid_t.
19338 (read_ptid, write_ptid): Declare.
19339 (prepare_resume_reply): Adjust to use ptid_t.
19340 (clear_symbol_cache): Declare.
19341 * inferiors.c (all_processes): New.
19342 (null_ptid, minus_one_ptid): New.
19343 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19344 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19345 (add_thread): Change unsigned long to ptid. Remove gdb_id
19346 parameter. Adjust.
19347 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19348 (gdb_id_to_thread): Rename to ...
19349 (find_thread_pid): ... this. Change unsigned long to ptid.
19350 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19351 (loaded_dll, pull_pid_from_list): Adjust.
19352 (add_process, remove_process, find_process_pid)
19353 (get_thread_process, current_process, initialize_inferiors): New.
19354 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19355 (struct target_waitstatus) <related_pid>: Ditto.
19356 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19357 return type to int.
19358 (struct target_ops) <join>: Add `pid' argument.
19359 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19360 (struct target_ops) <wait>: Add `ptid' field. Change return type
19361 to ptid.
19362 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19363 (mywait): Add `ptid' argument. Change return type to ptid_t.
19364 (target_pid_to_str): Declare.
19365 * target.c (set_desired_inferior): Adjust to use ptids.
19366 (mywait): Add new `ptid' argument. Adjust.
19367 (target_pid_to_str): New.
19368 * mem-break.h (free_all_breakpoints): Declare.
19369 * mem-break.c (breakpoints): Delelete.
19370 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19371 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19372 to use per-process breakpoint list.
19373 (free_all_breakpoints): New.
19374 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19375 (symbol_cache, all_symbols_looked_up): Delete.
19376 (hexchars): New.
19377 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19378 read_ptid): New.
19379 (prepare_resume_reply): Change ptid argument's type from unsigned
19380 long to ptid_t. Adjust. Implement W;process and X;process.
19381 (free_sym_cache, clear_symbol_cache): New.
19382 (look_up_one_symbol): Adjust to per-process symbol cache. *
19383 * server.c (cont_thread, general_thread, step_thread): Change type
19384 to ptid_t.
19385 (attached): Delete.
19386 (multi_process): New.
19387 (last_ptid): Change type to ptid_t.
19388 (struct vstop_notif) <ptid>: Change type to ptid_t.
19389 (queue_stop_reply, push_event): Change `ptid' argument's type to
19390 ptid_t.
19391 (discard_queued_stop_replies): Add `pid' argument.
19392 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19393 changes. Don't reference the `attached' global.
19394 (attach_inferior): Adjust to mywait interface changes.
19395 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19396 features. Handle and report "multiprocess+". Handle
19397 "qAttached:PID".
19398 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19399 changes.
19400 (handle_v_kill): New.
19401 (handle_v_stopped): Adjust to use target_pid_to_str.
19402 (handle_v_requests): Allow multiple attaches and runs when
19403 multiprocess extensions are in effect. Handle "vKill".
19404 (myresume): Adjust to use ptids.
19405 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19406 (handle_status): Adjust to discard_queued_stop_replies interface
19407 change.
19408 (first_thread_of, kill_inferior_callback)
19409 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19410 (main): Call initialize_inferiors. Adjust to use ptids, killing
19411 and detaching from all inferiors. Handle multiprocess packet
19412 variants.
19413 * linux-low.h: Include gdb_proc_service.h.
19414 (struct process_info_private): New.
19415 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19416 <lwpid_of>: Use ptid_get_lwp.
19417 (get_lwp_thread): Adjust.
19418 (struct lwp_info): Add `dead' member.
19419 (find_lwp_pid): Declare.
19420 * linux-low.c (thread_db_active): Delete.
19421 (new_inferior): Adjust comment.
19422 (inferior_pid): Delete.
19423 (linux_add_process): New.
19424 (handle_extended_wait): Adjust.
19425 (add_lwp): Change unsigned long to ptid.
19426 (linux_create_inferior): Add process to processes table. Adjust
19427 to use ptids. Don't set new_inferior here.
19428 (linux_attach_lwp): Rename to ...
19429 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19430 it. Adjust to use ptids.
19431 (linux_attach_lwp): New.
19432 (linux_attach): Add process to processes table. Don't set
19433 new_inferior here.
19434 (struct counter): New.
19435 (second_thread_of_pid_p, last_thread_of_process_p): New.
19436 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19437 multiple processes.
19438 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19439 processes. Remove process from process table.
19440 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19441 to multiple processes.
19442 (any_thread_of): New.
19443 (linux_detach): Add `pid' argument, and handle it. Remove process
19444 from processes table.
19445 (linux_join): Add `pid' argument. Handle it.
19446 (linux_thread_alive): Change unsighed long argument to ptid_t.
19447 Consider dead lwps as not being alive.
19448 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19449 threads we're not interested in.
19450 (same_lwp, find_lwp_pid): New.
19451 (linux_wait_for_lwp): Change `pid' argument's type from int to
19452 ptid_t. Adjust.
19453 (linux_wait_for_event): Rename to ...
19454 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19455 from int to ptid_t. Adjust.
19456 (linux_wait_for_event): New.
19457 (linux_wait_1): Add `ptid' argument. Change return type to
19458 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19459 that exit from the process table.
19460 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19461 Adjust.
19462 (mark_lwp_dead): New.
19463 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19464 stopping all threads, mark its main lwp as dead.
19465 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19466 ptids.
19467 (fetch_register, usr_store_inferior_registers)
19468 (regsets_fetch_inferior_registers)
19469 (regsets_store_inferior_registers, linux_read_memory)
19470 (linux_write_memory): Inline `inferior_pid'.
19471 (linux_look_up_symbols): Adjust to use per-process
19472 `thread_db_active'.
19473 (linux_request_interrupt): Adjust to use ptids.
19474 (linux_read_auxv): Inline `inferior_pid'.
19475 (initialize_low): Don't reference thread_db_active.
19476 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19477 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19478 (ps_getpid): Return the pid of the current inferior.
19479 * thread-db.c (proc_handle, thread_agent): Delete.
19480 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19481 per-process data.
19482 (find_one_thread): Change argument type to ptid_t. Adjust to
19483 per-process data.
19484 (maybe_attach_thread): Adjust to per-process data and ptids.
19485 (thread_db_find_new_threads): Ditto.
19486 (thread_db_init): Ditto.
19487 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19488 processes table. Adjust to use ptids.
19489 (spu_kill, spu_detach): Adjust interface. Remove process from
19490 processes table.
19491 (spu_join, spu_thread_alive): Adjust interface.
19492 (spu_wait): Adjust interface. Remove process from processes
19493 table. Adjust to use ptids.
19494 * win32-low.c (current_inferior_tid): Delete.
19495 (current_inferior_ptid): New.
19496 (debug_event_ptid): New.
19497 (thread_rec): Take a ptid. Adjust.
19498 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19499 (child_delete_thread): Ditto.
19500 (do_initial_child_stuff): Add `attached' argument. Add process to
19501 processes table.
19502 (child_fetch_inferior_registers, child_store_inferior_registers):
19503 Adjust.
19504 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19505 (win32_attach): Pass 1 to do_initial_child_stuff.
19506 (win32_kill): Adjust interface. Remove process from processes
19507 table.
19508 (win32_detach): Ditto.
19509 (win32_join): Adjust interface.
19510 (win32_thread_alive): Take a ptid.
19511 (win32_resume): Adjust to use ptids.
19512 (get_child_debug_event): Ditto.
19513 (win32_wait): Adjust interface. Remove exiting process from
19514 processes table.
19515
bd99dc85
PA
195162009-04-01 Pedro Alves <pedro@codesourcery.com>
19517
19518 Non-stop mode support.
19519
19520 * server.h (non_stop): Declare.
19521 (gdb_client_data, handler_func): Declare.
19522 (delete_file_handler, add_file_handler, start_event_loop):
19523 Declare.
19524 (handle_serial_event, handle_target_event, push_event)
19525 (putpkt_notif): Declare.
19526 * target.h (enum resume_kind): New.
19527 (struct thread_resume): Replace `step' field by `kind' field.
19528 (TARGET_WNOHANG): Define.
19529 (struct target_ops) <wait>: Add `options' argument.
19530 <supports_non_stop, async, start_non_stop>: New fields.
19531 (target_supports_non_stop, target_async): New.
19532 (start_non_stop): Declare.
19533 (mywait): Add `options' argument.
19534 * target.c (mywait): Add `options' argument. Print child exit
19535 notifications here.
19536 (start_non_stop): New.
19537 * server.c (non_stop, own_buf, mem_buf): New globals.
19538 (struct vstop_notif): New.
19539 (notif_queue): New global.
19540 (queue_stop_reply, push_event, discard_queued_stop_replies)
19541 (send_next_stop_reply): New.
19542 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19543 interface changes.
19544 (attach_inferior): In non-stop mode, don't wait for the target
19545 here.
19546 (handle_general_set): Handle QNonStop.
19547 (handle_query): When handling qC, return the current general
19548 thread, instead of the first thread of the list.
19549 (handle_query): If the backend supports non-stop mode, include
19550 QNonStop+ in the qSupported query response.
19551 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19552 and non-stop mode.
19553 (handle_v_attach, handle_v_run): Handle non-stop mode.
19554 (handle_v_stopped): New.
19555 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19556 (myresume): Adjust to use resume_kind. Handle non-stop.
19557 (queue_stop_reply_callback): New.
19558 (handle_status): Handle non-stop mode.
19559 (main): Clear non_stop flag on reconnection. Use the event-loop.
19560 Refactor serial protocol handling from here ...
19561 (process_serial_event): ... to this new function. When GDB
19562 selects any thread, select one here. In non-stop mode, wait until
19563 GDB acks all pending events before exiting.
19564 (handle_serial_event, handle_target_event): New.
19565 * remote-utils.c (remote_open): Install remote_desc in the event
19566 loop.
19567 (remote_close): Remove remote_desc from the event loop.
19568 (putpkt_binary): Rename to...
19569 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19570 (putpkt_binary): New as wrapper around putpkt_binary_1.
19571 (putpkt_notif): New.
19572 (prepare_resume_reply): In non-stop mode, don't change the
19573 general_thread.
19574 * event-loop.c: New.
19575 * Makefile.in (OBJ): Add event-loop.o.
19576 (event-loop.o): New rule.
19577
19578 * linux-low.h (pid_of): Moved here.
19579 (lwpid_of): New.
19580 (get_lwp_thread): Use lwpid_of.
19581 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19582 * linux-low.c (pid_of): Delete.
19583 (inferior_pid): Use lwpid_of.
19584 (linux_event_pipe): New.
19585 (target_is_async_p): New.
19586 (delete_lwp): New.
19587 (handle_extended_wait): Use lwpid_of.
19588 (add_lwp): Don't set lwpid field.
19589 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19590 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19591 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19592 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19593 first. Adjust to linux_wait_for_event interface changes. Use
19594 lwpid_of.
19595 (linux_detach): Don't delete the main lwp here.
19596 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19597 (status_pending_p): Don't consider explicitly suspended lwps.
19598 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19599 pointer. Add OPTIONS argument. Change return type to int. Use
19600 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19601 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19602 pointer. Add status pointer argument. Return a pid instead of a
19603 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19604 changes. In non-stop mode, don't switch to a random thread.
19605 (linux_wait): Rename to...
19606 (linux_wait_1): ... this. Add target_options argument, and handle
19607 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19608 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19609 clean exit and signal exit code. Don't stop all threads in
19610 non-stop mode. In all-stop mode, only stop all threads when
19611 reporting a stop to GDB. Handle explicit thread stop requests.
19612 (async_file_flush, async_file_mark): New.
19613 (linux_wait): New.
19614 (send_sigstop): Use lwpid_of.
19615 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19616 interface changes. In non-stop mode, don't switch to a random
19617 thread.
19618 (linux_resume_one_lwp): Use lwpid_of.
19619 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19620 (linux_resume_one_thread): ... this. Handle resume_stop. In
19621 non-stop mode, don't look for pending flag in all threads.
19622 (resume_status_pending_p): Don't consider explicitly suspended
19623 threads.
19624 (my_waitpid): Reimplement. Emulate __WALL.
19625 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19626 Use lwpid_of.
19627 (sigchld_handler, linux_supports_non_stop, linux_async)
19628 (linux_start_non_stop): New.
19629 (linux_target_ops): Register linux_supports_non_stop, linux_async
19630 and linux_start_non_stop.
19631 (initialize_low): Install SIGCHLD handler.
19632 * thread-db.c (thread_db_create_event, find_one_thread)
19633 (thread_db_get_tls_address): Use lwpid_of.
19634 * win32-low.c (win32_detach): Adjust to use resume_kind.
19635 (win32_wait): Add `options' argument.
19636 * spu-low.c (spu_resume): Adjust to use resume_kind.
19637 (spu_wait): Add `options' argument.
19638
5b1c542e
PA
196392009-04-01 Pedro Alves <pedro@codesourcery.com>
19640
19641 Decouple target code from remote protocol.
19642
19643 * target.h (enum target_waitkind): New.
19644 (struct target_waitstatus): New.
19645 (struct target_ops) <wait>: Return an unsigned long. Take a
19646 target_waitstatus pointer instead of a char pointer.
19647 (mywait): Likewise.
19648 * target.c (mywait): Change prototype to return an unsigned long.
19649 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19650 * server.h (thread_from_wait, old_thread_from_wait): Delete
19651 declarations.
19652 (prepare_resume_reply): Change prototype to take a
19653 target_waitstatus.
19654 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19655 (last_status, last_ptid): New.
19656 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19657 pid instead of a signal.
19658 (attach_inferior): Remove "status" and "signal" parameters.
19659 Adjust.
19660 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19661 not as an address.
19662 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19663 (handle_v_requests, myresume): Remove "status" and "signal"
19664 parameters. Adjust.
19665 (handle_status): New.
19666 (main): Delete local `status'. Adjust.
19667 * remote-utils.c: Include target.h.
19668 (prepare_resume_reply): Change prototype to take a
19669 target_waitstatus. Adjust.
19670
19671 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19672 interface.
19673 * spu-low.c (spu_wait): Adjust.
19674 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19675 Delete.
19676 (win32_wait): Adjust.
19677
2bd7c093
PA
196782009-04-01 Pedro Alves <pedro@codesourcery.com>
19679
19680 * target.h (struct thread_resume): Delete leave_stopped member.
19681 (struct target_ops): Add a `n' argument to the `resume' callback.
19682 * server.c (start_inferior): Adjust.
19683 (handle_v_cont, myresume): Adjust.
19684 * linux-low.c (check_removed_breakpoint): Adjust to resume
19685 interface change, and to removed leave_stopped field.
19686 (resume_ptr): Delete.
19687 (struct thread_resume_array): New.
19688 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19689 resume interface change.
19690 (linux_continue_one_thread, linux_queue_one_thread)
19691 (resume_status_pending_p): Check if the resume field is NULL
19692 instead of checking the leave_stopped member.
19693 (linux_resume): Adjust to the target resume interface change.
19694 * spu-low.c (spu_resume): Adjust to the target resume interface
19695 change.
19696 * win32-low.c (win32_detach, win32_resume): Ditto.
19697
c35fafde
PA
196982009-04-01 Pedro Alves <pedro@codesourcery.com>
19699
19700 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19701 flag.
19702 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19703 pending.
19704 (linux_continue_one_thread): Only preserve the stepping flag if
19705 there's a pending breakpoint.
19706
0a59d50b
PA
197072009-03-31 Pedro Alves <pedro@codesourcery.com>
19708
19709 * server.c (main): After the inferior having exited, call
19710 remote_close before exiting gdbserver.
19711
f04c6d38
TJB
197122009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19713
19714 Fix size of FPSCR in Power 7 processors.
19715 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19716 (PPC_FEATURE_HAS_DFP): New #define.
19717 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19718 size of the FPSCR.
19719
78e5cee6
PA
197202009-03-23 Pedro Alves <pedro@codesourcery.com>
19721
19722 * server.c (handle_query) Whitespace and formatting.
19723
1b3f6016
PA
197242009-03-22 Pedro Alves <pedro@codesourcery.com>
19725
19726 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19727 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19728 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19729 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19730 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19731 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19732 Makefile.in, configure.ac: Fix whitespace throughout.
19733 * configure: Regenerate.
19734
a07b2135
PA
197352009-03-22 Pedro Alves <pedro@codesourcery.com>
19736
19737 * inferiors.c (find_inferior): Make it safe for the callback
19738 function to delete the currently iterated inferior.
19739
67cc2626
PA
197402009-03-22 Pedro Alves <pedro@codesourcery.com>
19741
19742 * Makefile.in (linuw_low_h): Move higher.
19743 (thread-db.o): Depend on $(linux_low_h).
19744
54a0b537
PA
197452009-03-17 Pedro Alves <pedro@codesourcery.com>
19746
19747 Rename "process" to "lwp" throughout.
19748
19749 * linux-low.c (all_processes): Rename to...
19750 (all_lwps): ... this.
19751 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19752 (add_process): Rename to ...
19753 (add_lwp): ... this. Adjust.
19754 (linux_create_inferior): Adjust.
19755 (linux_attach_lwp): Adjust.
19756 (linux_attach): Adjust.
19757 (linux_kill_one_process): Rename to ...
19758 (linux_kill_one_lwp): ... this. Adjust.
19759 (linux_kill): Adjust.
19760 (linux_detach_one_process): Rename to ...
19761 (linux_detach_one_lwp): ... this. Adjust.
19762 (linux_detach): Adjust.
19763 (check_removed_breakpoint): Adjust.
19764 (status_pending_p): Adjust.
19765 (linux_wait_for_process): Rename to ...
19766 (linux_wait_for_lwp): ... this. Adjust.
19767 (linux_wait_for_event): Adjust.
19768 (send_sigstop): Adjust.
19769 (wait_for_sigstop): Adjust.
19770 (stop_all_processes): Rename to ...
19771 (stop_all_lwps): ... this.
19772 (linux_resume_one_process): Rename to ...
19773 (linux_resume_one_lwp): ... this. Adjust.
19774 (linux_set_resume_request, linux_continue_one_thread)
19775 (linux_queue_one_thread, resume_status_pending_p)
19776 (usr_store_inferior_registers, regsets_store_inferior_registers)
19777 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19778 Adjust.
19779 * linux-low.h (get_process): Rename to ...
19780 (get_lwp): ... this. Adjust.
19781 (get_thread_process): Rename to ...
19782 (get_thread_lwp): ... this. Adjust.
19783 (get_process_thread): Rename to ...
19784 (get_lwp_thread): ... this. Adjust.
19785 (struct process_info): Rename to ...
19786 (struct lwp_info): ... this.
19787 (all_processes): Rename to ...
19788 (all_lwps): ... this.
19789 * proc-service.c (ps_lgetregs): Adjust.
19790 * thread-db.c (thread_db_create_event, find_one_thread)
19791 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19792
0b16c5cf
PA
197932009-03-14 Pedro Alves <pedro@codesourcery.com>
19794
19795 * server.c (handle_query): Handle "qAttached".
19796
32de4b9d
NS
197972009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19798
19799 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19800 GPLv3, update license URL.
19801
2aecd87f
DE
198022009-03-01 Doug Evans <dje@google.com>
19803
93efd302 19804 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19805 (server_h): Add gdb_signals.h.
19806 (signals.o): Update.
19807 * server.h (target_signal_from_host,target_signal_to_host_p)
19808 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19809
86b1f9c5
PM
198102009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19811
19812 * remote-utils.c (getpkt): Also generate remote-debug
19813 information if noack_mode is set.
19814
4aa995e1
PA
198152009-02-06 Pedro Alves <pedro@codesourcery.com>
19816
19817 * server.c (handle_query): Report qXfer:siginfo:read and
19818 qXfer:siginfo:write as supported and handle them.
19819 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19820 * linux-low.c (linux_xfer_siginfo): New.
19821 (linux_target_ops): Set it.
19822
62709adf
PA
198232009-01-26 Pedro Alves <pedro@codesourcery.com>
19824
19825 * server.c (gdbserver_usage): Mention --remote-debug.
19826 (main): Accept '--remote-debug' switch.
19827
aef93bd7
DE
198282009-01-18 Doug Evans <dje@google.com>
19829
19830 * regcache.c (new_register_cache): No need to check result of xcalloc.
19831 * server.c (handle_search_memory): Back out calls to xmalloc,
19832 result is checked and error is returned to user upon failure.
19833 (handle_query): Ditto. Add more checks for result of malloc.
19834 (handle_v_cont): Check result of malloc, report error back to
19835 user upon failure.
19836 (handle_v_run): Ditto. Call freeargv.
19837 * server.h (freeargv): Declare.
19838 * utils.c (freeargv): New fn.
19839
54363045
DE
198402009-01-15 Doug Evans <dje@google.com>
19841
f626972c
DE
19842 * gdbreplay.c (perror_with_name): Make arg const char *.
19843 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19844 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19845 * utils.c (perror_with_name): Make arg const char *.
54363045 19846
18aae699
PA
198472009-01-14 Pedro Alves <pedro@codesourcery.com>
19848
19849 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19850 when handling a EXIT_PROCESS_DEBUG_EVENT.
19851
ff703abe
JB
198522009-01-06 Joel Brobecker <brobecker@adacore.com>
19853
19854 * gdbreplay.c (gdbreplay_version): Update copyright year.
19855 * server.c (gdbserver_version): Likewise.
19856
f21cc1a2 198572009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19858
19859 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19860 (handle_extended_wait): Improve comment.
0e21c1ec 19861
bca929d3
DE
198622008-12-13 Doug Evans <dje@google.com>
19863
19864 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19865 * server.h (ATTR_MALLOC): New macro.
19866 (xmalloc,xcalloc,xstrdup): Declare.
19867 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19868 * inferiors.c: Ditto.
19869 * linux-low.c: Ditto.
19870 * mem-break.c: Ditto.
19871 * regcache.c: Ditto.
19872 * remote-utils.c: Ditto.
19873 * server.c: Ditto.
19874 * target.c: Ditto.
19875 * win32-low.c: Ditto.
19876
97438e3f
DE
198772008-12-12 Doug Evans <dje@google.com>
19878
896c7fbb
DE
19879 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19880 in debugging printf.
19881
97438e3f
DE
19882 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19883
e3b886f8
DE
198842008-12-09 Doug Evans <dje@google.com>
19885
19886 * linux-low.h (struct process_info): Delete member tid, unused.
19887 * thread-db.c (find_one_thread): Update.
19888 (maybe_attach_thread): Update.
19889
07e059b5
VP
198902008-12-02 Pedro Alves <pedro@codesourcery.com>
19891
889bf7c5
PA
19892 * target.h (struct target_ops): Add qxfer_osdata member.
19893 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19894 and dirent.h.
19895 (linux_qxfer_osdata): New functions.
19896 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19897 callback.
19898 * server.c (handle_query): Handle "qXfer:osdata:read:".
19899 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19900 (buffer_xml_printf): New functions.
19901 * server.h (struct buffer): New.
19902 (buffer_grow_str, buffer_grow_str0): New macros.
19903 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19904 (buffer_xml_printf): Declare.
07e059b5 19905
4cab47ab
DE
199062008-11-24 Doug Evans <dje@google.com>
19907
19908 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19909
f142445f
DJ
199102008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19911
19912 * server.c (handle_v_run): Always use the supplied argument list.
19913
d0107bb6 199142008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19915
d0107bb6
BW
19916 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19917 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19918
2c4ad781
TJB
199192008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19920
19921 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19922 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19923 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19924 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19925 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19926 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19927 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19928 XML target descriptions.
19929 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19930 when inferior is running on an ISA 2.05 or later processor. Add
19931 special case to return offset for full 64-bit slot of FPSCR when
19932 in 32-bits.
19933
dfb64f85
DJ
199342008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19935
19936 * Makefile.in (SFILES, clean): Added sparc64 files.
19937 (reg-sparc64.o, reg-sparc64.c): New.
19938 * configure.srv (sparc*-*-linux*): New configuration.
19939 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19940 syscall arguments for SPARC.
19941 (regsets_store_inferior_registers): Likewise.
19942 * linux-sparc-low.c: New file.
19943
66b6e1dd
DE
199442008-10-21 Doug Evans <dje@google.com>
19945
19946 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19947 (READLINE_DIR,READLINE_DEP): Delete.
19948 (INTERNAL_CFLAGS): Update.
19949 (LINTFLAGS): Update.
19950
9b710a42
PA
199512008-10-10 Pedro Alves <pedro@codesourcery.com>
19952
19953 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19954 whole argv from the last run, not just argv[0].
19955
5822d809
PA
199562008-09-08 Pedro Alves <pedro@codesourcery.com>
19957
19958 * regcache.c (new_register_cache): Return NULL if the register
19959 cache size isn't known yet.
19960 (free_register_cache): Avoid dereferencing a NULL regcache.
19961
74aac56f
DJ
199622008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19963
19964 * configure.srv: Merge MIPS and MIPS64.
19965
400b20f5
MR
199662008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19967
19968 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19969
677c5bb1
LM
199702008-08-18 Luis Machado <luisgpm@br.ibm.com>
19971
19972 * Makefile.in: Add required vsx dependencies.
19973
19974 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19975 Declare init_registers_powerpc_vsx32l.
19976 Declare init_registers_powerpc_vsx64l.
19977 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19978 (ppc_arch_setup): Check for VSX in hwcap.
19979 (ppc_fill_vsxregset): New function.
19980 (ppc_store_vsxregset): New function.
19981 Add new VSX entry in regset_info target_regsets.
19982
19983 * configure.srv: Add new VSX dependencies.
19984
a6f3e723
SL
199852008-08-12 Pedro Alves <pedro@codesourcery.com>
19986
19987 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19988 (remote_open): Set or clear transport_is_reliable.
19989 (putpkt_binary): Don't expect acks in noack mode.
19990 (getpkt): Don't send ack/nac in noack mode.
19991 * server.c (handle_general_set): Handle QStartNoAckMode.
19992 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19993 qSupported.
19994 (main): Reset noack_mode on every connection.
19995 * server.h (noack_mode): Declare.
19996
a417dc56
RW
199972008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19998
19999 * Makefile.in (GDBREPLAY_OBS): New variable.
20000 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20001
3221518c
UW
200022008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20003 Daniel Jacobowitz <dan@codesourcery.com>
20004
20005 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20006 (usr_store_inferior_registers): Likewise.
20007 (regsets_store_inferior_registers): Likewise.
20008
ec56be1b
PA
200092008-07-31 Rolf Jansen <rj@surtec.com>
20010 Pedro Alves <pedro@codesourcery.com>
20011
20012 * configure.ac: Check for memmem declaration.
20013 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20014 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20015 (disable_packet_qfThreadInfo): Unconditionally compile.
20016 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20017 * configure, config.in: Regenerate.
20018
2fe5e3ff
DE
200192008-07-28 Doug Kwan <dougkwan@google.com>
20020
20021 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20022 (linux_write_memory): Remove declaration of errno.
20023
836acd6d
UW
200242008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20025
20026 * linux-low.c (handle_extended_wait): Do not use "status"
20027 variable uninitialized.
20028
aeba519e
PA
200292008-07-07 Pedro Alves <pedro@codesourcery.com>
20030
20031 * server.c (handle_v_attach): Inhibit reporting dll changes.
20032
db42f210
PA
200332008-06-27 Pedro Alves <pedro@codesourcery.com>
20034
20035 * remote-utils.c (prepare_resume_reply): If requested, don't
20036 output "thread:TID" in the T stop reply.
20037
20038 * server.c (disable_packet_vCont, disable_packet_Tthread)
20039 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20040 (handle_query): If requested, disable support for qC, qfThreadInfo
20041 and qsThreadInfo.
20042 (handle_v_requests): If requested, disable support for vCont.
20043 (gdbserver_show_disableable): New.
20044 (main): Handle --disable-packet and --disable-packet=LIST.
20045
20046 * server.h (disable_packet_vCont, disable_packet_Tthread)
20047 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20048
8e4c5421
CD
200492008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20050
20051 * server.c (gdbserver_usage): Mention --version.
20052
6e23a804
DJ
200532008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20054
20055 * Makefile.in (gdbreplay.o): New rule.
20056
90aa6a40
JM
200572008-06-06 Joseph Myers <joseph@codesourcery.com>
20058
20059 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20060 message, not gdbserver.
20061
c16158bc 200622008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20063 Nathan Sidwell <nathan@codesourcery.com>
20064 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20065
20066 * acinclude.m4: Include ../../config/acx.m4.
20067 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20068 * configure, config.in: Regenerate.
20069 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20070 * server.c (gdbserver_version): Print PKGVERSION.
20071 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20072 (main): Adjust gdbserver_usage calls.
20073 * gdbreplay.c (version, host_name): Add declarations.
20074 (gdbreplay_version, gdbreplay_usage): New.
20075 (main): Accept --version and --help options.
20076
aeb75bf5
DJ
200772008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20078
20079 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20080 (arm_breakpoint_at): Handle Thumb.
20081 (the_low_target): Add comment.
20082
76b233dd
UW
200832008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20084
20085 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20086
08388c79
DE
200872008-05-09 Doug Evans <dje@google.com>
20088
a3c83fae
DE
20089 * server.h (decode_search_memory_packet): Declare.
20090 * remote-utils.c (decode_search_memory_packet): New fn.
20091 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20092 (handle_search_memory): New fn.
20093 (handle_query): Process qSearch:memory packets.
20094
bb9c3d36
UW
200952008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20096
20097 * regcache.c (registers_length): Remove.
20098 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20099 full register packet.
20100 * regcache.h (registers_length): Remove prototype.
20101 * server.h (PBUFSIZ): Define to 16384.
20102
7284e1be
UW
201032008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20104
20105 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20106 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20107 powerpc-64l.o, and powerpc-altivec64l.o.
20108 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20109 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20110 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20111 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20112 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20113 to srv_xmlfiles.
20114
20115 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20116 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20117 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20118 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20119 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20120 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20121 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20122 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20123 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20124 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20125 (clean): Update.
20126
20127 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20128 (init_registers_powerpc_32l): ... this new prototype.
20129 (init_registers_powerpc_32): Remove, replace by ...
20130 (init_registers_powerpc_altivec32l): ... this new prototype.
20131 (init_registers_powerpc_e500): Remove, replace by ...
20132 (init_registers_powerpc_e500l): ... this new prototype.
20133 (init_registers_ppc64): Remove, replace by ...
20134 (init_registers_powerpc_64l): ... this new prototype.
20135 (init_registers_powerpc_64): Remove, replace by ...
20136 (init_registers_powerpc_altivec64l): ... this new prototype.
20137 (ppc_num_regs): Set to 73.
20138 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20139 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20140 (ppc_cannot_store_register): Handle orig_r3 and trap.
20141 (ppc_arch_setup): Update init_registers_... calls.
20142 (ppc_fill_gregset): Handle orig_r3 and trap.
20143
20144 * inferiors.c (clear_inferiors): Reset current_inferior.
20145
fdc59709
PB
201462008-04-23 Paolo Bonzini <bonzini@gnu.org>
20147
889bf7c5
PA
20148 * acinclude.m4: Add override.m4.
20149 * configure: Regenerate.
fdc59709 20150
c9b2f845
UW
201512008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20152
20153 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20154 initial call to init_register_ppc64.
20155
550512b8
UW
201562008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20157
43aaf8b6
PA
20158 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20159 single powerpc*-*-linux* case.
550512b8
UW
20160 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20161
b6430ec3
UW
201622008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20163
20164 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20165 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20166 from reg_xmlfiles.
20167 * linux-ppc-low.c: Include <elf.h>.
20168 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20169 (ppc_hwcap): New global variable.
20170 (ppc_regmap): Remove __SPE__ #ifdef sections.
20171 (ppc_regmap_e500): New global variable.
20172 (ppc_cannot_store_register): Update __SPE__ special case.
20173 (ppc_get_hwcap): New function.
20174 (ppc_arch_setup): Use it to determine whether inferior supports
20175 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20176 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20177 Do not access registers if target does not support AltiVec.
20178 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20179 Do not access registers if target does not support SPE.
20180 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20181
52fa2412
UW
201822008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20183
20184 * linux-low.c (disabled_regsets, num_regsets): New.
20185 (use_regsets_p): Delete.
20186 (linux_wait_for_process): Clear disabled_regsets.
20187 (regsets_fetch_inferior_registers): Check and set it.
20188 (regsets_store_inferior_registers): Likewise.
20189 (linux_fetch_registers, linux_store_registers): Do not use
20190 use_regsets_p.
20191 (initialize_low): Allocate disabled_regsets.
20192
e28b3332
DJ
201932008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20194
20195 * Makefile.in (LIBOBJS): New.
20196 (OBS): Use LIBOBJS.
20197 (memmem.o): New rule.
20198 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20199 * configure: Regenerated.
20200
4536995d
UW
202012008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20202
20203 * server.c (handle_query): Never return "unsupported" for
20204 qXfer:features:read queries.
20205
221c031f
UW
202062008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20207
20208 * server.c (get_features_xml): Fix inverted condition.
20209 (handle_query): Always support qXfer:feature:read.
20210
ccd213ac
DJ
202112008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20212
20213 * server.c (wrapper_argv): New.
20214 (start_inferior): Handle wrapper_argv. If set, expect an extra
20215 trap.
20216 (gdbserver_usage): Document --wrapper.
20217 (main): Parse --wrapper.
20218
6fe305f7
UW
202192008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20220
20221 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20222 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20223 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20224 (ppc_set_pc): Likewise.
20225 (ppc_arch_setup): New function.
20226 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20227 of collect_register.
889bf7c5 20228 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20229
5b0a002e
UW
202302008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20231
20232 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20233 instead of linux-ppc64-low.o.
20234 * linux-ppc64-low.c: Remove file.
20235 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20236 (linux-ppc64-low.o): Remove rule.
20237
20238 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20239 (init_registers_powerpc_64): Likewise.
20240 (ppc_regmap): Conditionally define depending on __powerpc64__.
20241 (ppc_cannot_store_register): Do not special-case "fpscr" when
20242 compiled on __powerpc64__.
20243 (ppc_collect_ptrace_register): New function.
20244 (ppc_supply_ptrace_register): New function.
20245 (ppc_breakpoint): Change type to "unsigned int".
20246 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20247 (the_low_target): Conditionally provide initializers for the
889bf7c5 20248 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20249 collect_ptrace_register and supply_ptrace_register members.
20250
9b4b61c8
UW
202512008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20252
20253 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20254 * server.c (gdbserver_xmltarget): Define.
20255 (get_features_xml): Use it to replace "target.xml" and arch_string.
20256
20257 * configure.srv: Remove srv_xmltarget. Add XML files that were
20258 mentioned there to srv_xmlfiles instead. Remove conditional tests
20259 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20260 srv_xmlfiles and srv_regobj to include all possible choices.
20261 * configure.ac (srv_xmltarget): Remove.
20262 (srv_xmlfiles): Do not add "target.xml".
20263 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20264 checks for supplementary target information.
20265 * configure: Regenerate.
20266 * Makefile.in (XML_TARGET): Remove.
20267 (target.xml): Remove rule.
20268 (clean): Do not clean up target.xml.
20269 (.PRECIOUS): Do not mention target.xml.
20270
20271 * target.h (struct target_ops): Remove arch_string member.
20272 * linux-low.c (linux_arch_string): Remove.
20273 (linux_target_ops): Remove arch_string initializer.
20274 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20275 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20276 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20277 * spu-low.c (spu_arch_string): Remove.
20278 (spu_target_ops): Remove arch_string initializer.
20279 * win32-low.c (win32_arch_string): Remove.
20280 (win32_target_ops): Remove arch_string initializer.
20281 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20282 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20283 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20284
ee1a7ae4
UW
202852008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20286
20287 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20288 by collect_ptrace_register and supply_ptrace_register hooks.
20289 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20290 instead of checking for the_low_target.left_pad_xfer.
20291 (usr_store_inferior_registers): Use collect_ptrace_register callback
20292 instead of checking for the_low_target.left_pad_xfer.
20293
20294 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20295 (s390_supply_ptrace_register): Likewise.
20296 (s390_fill_gregset): Call s390_collect_ptrace_register.
20297 (the_low_target): Update.
20298
20299 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20300 (ppc_supply_ptrace_register): Likewise.
20301 (the_low_target): Update.
20302
20303 * linux-i386-low.c (the_low_target): Update.
20304 * linux-x86-64-low.c (the_low_target): Update.
20305
d61ddec4
UW
203062008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20307
20308 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20309 reg-s390.o and reg-s390x.o.
20310
20311 * linux-low.c (new_inferior): New global variable.
20312 (linux_create_inferior, linux_attach): Set it.
20313 (linux_wait_for_process): Call the_low_target.arch_setup after the
20314 target has stopped for the first time.
20315 (initialize_low): Do not call the_low_target.arch_setup.
20316
20317 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20318 (s390_set_pc): Likewise.
20319 (s390_arch_setup): New function.
20320 (the_low_target): Use s390_arch_setup as arch_setup routine.
20321
20322 * regcache.c (realloc_register_cache): New function.
20323 (set_register_cache): Call it for each existing regcache.
20324
d05b4ac3
UW
203252008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20326
20327 * server.h (init_registers): Remove prototype.
20328
20329 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20330 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20331 instead of init_registers ().
20332 * linux-arm-low.c (init_registers_arm): Add prototype.
20333 (init_registers_arm_with_iwmmxt): Likewise.
20334 (the_low_target): Add initializer for arch_setup field.
20335 * linux-cris-low.c (init_registers_cris): Add prototype.
20336 (the_low_target): Add initializer for arch_setup field.
20337 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20338 (the_low_target): Add initializer for arch_setup field.
20339 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20340 (the_low_target): Add initializer for arch_setup field.
20341 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20342 (the_low_target): Add initializer for arch_setup field.
20343 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20344 (the_low_target): Add initializer for arch_setup field.
20345 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20346 (the_low_target): Add initializer for arch_setup field.
20347 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20348 (init_registers_mips64_linux): Likewise.
20349 (the_low_target): Add initializer for arch_setup field.
20350 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20351 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20352 (the_low_target): Add initializer for arch_setup field.
20353 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20354 (init_registers_powerpc_64): Likewise.
20355 (the_low_target): Add initializer for arch_setup field.
20356 * linux-s390-low.c (init_registers_s390): Add prototype.
20357 (init_registers_s390x): Likewise.
20358 (the_low_target): Add initializer for arch_setup field.
20359 * linux-sh-low.c (init_registers_sh): Add prototype.
20360 (the_low_target): Add initializer for arch_setup field.
20361 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20362 (the_low_target): Add initializer for arch_setup field.
20363 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20364 (the_low_target): Add initializer for arch_setup field.
20365
20366 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20367 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20368 instead of init_registers ().
20369 * win32-arm-low.c (init_registers_arm): Add prototype.
20370 (the_low_target): Add initializer for arch_setup field.
20371 * win32-i386-low.c (init_registers_i386): Add prototype.
20372 (the_low_target): Add initializer for arch_setup field.
20373
20374 * spu-low.c (init_registers_spu): Add prototype.
20375 (initialize_low): Call initialie_registers_spu () instead of
20376 initialize_registers ().
20377
fd96d250
PA
203782008-02-19 Pedro Alves <pedro@codesourcery.com>
20379
20380 * server.c (handle_v_requests): When handling the vRun and vAttach
20381 packets, if already debugging a process, don't kill it. Return an
20382 error instead.
20383
d41b6bb4
DJ
203842008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20385
20386 * server.c (handle_query): Correct length check.
20387
5ac588cf
PA
203882008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20389
20390 * win32-low.c (do_initial_child_stuff): Add process handle
20391 parameter. Set current_process_handle and current_process_id from the
20392 parameters. Clear globals.
20393 (win32_create_inferior): Don't set current_process_handle and
20394 current_process_id here. Instead pass them on the call to
20395 do_initial_child_stuff.
20396 (win32_attach): Likewise.
20397 (win32_clear_inferiors): New.
20398 (win32_kill): Don't close the current process handle or the
20399 current thread handle here. Instead call win32_clear_inferiors.
20400 (win32_detach): Don't open a new handle to the process. Call
20401 win32_clear_inferiors.
20402 (win32_join): Don't rely on current_process_handle; open a new
20403 handle using the process id.
20404 (win32_wait): Call win32_clear_inferiors when the inferior process
20405 has exited.
20406
ecd7ecbc
DJ
204072008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20408
20409 * server.c (monitor_show_help): Add "exit".
20410
1525d545
MG
204112008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20412
ecd7ecbc 20413 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20414 (clean): Add reg-xtensa.c.
20415 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20416 * configure.srv (xtensa*-*-linux*) New target.
20417 * linux-xtensa-low.c: New.
20418 * xtensa-xtregs.c: New.
1525d545 20419
59a016f0
PA
204202008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20421
20422 * hostio.c: Don't include errno.h.
20423 (errno_to_fileio_errno): Move to hostio-errno.
20424 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20425 error number outputting to the target->hostio_last_error callback.
20426 (hostio_packet_error): Use FILEIO_EINVAL directly.
20427 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20428 calls to hostio_error.
20429 * hostio-errno.c: New.
20430 * server.h (hostio_last_error_from_errno): Declare.
20431 * target.h (target_ops): Add hostio_last_error member.
20432 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20433 as hostio_last_error handler.
889bf7c5 20434 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20435 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20436 (wince_hostio_last_error): New functions.
20437 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20438 as hostio_last_error handler.
20439 (win32_target_ops) [!_WIN32_WCE]: Register
20440 hostio_last_error_from_errno as hostio_last_error handler.
20441 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20442 (hostio-errno.o): New rule.
20443 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20444 * configure.srv (srv_hostio_err_objs): New variable. Default to
20445 hostio-errno.o.
20446 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20447 * configure: Regenerate.
20448
2d717e4f
DJ
204492008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20450
20451 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20452 (linux_kill, linux_detach): Clean up the process list.
20453 * remote-utils.c (remote_open): Improve port number parsing.
20454 (putpkt_binary, input_interrupt): Only send interrupts if the target
20455 is running.
20456 * server.c (extended_protocol): Make static.
20457 (attached): Define earlier.
20458 (exit_requested, response_needed, program_argv): New variables.
20459 (target_running): New.
20460 (start_inferior): Clear attached here.
20461 (attach_inferior): Set attached here.
20462 (require_running): Define.
20463 (handle_query): Use require_running and target_running. Implement
20464 "monitor exit".
20465 (handle_v_attach, handle_v_run): New.
20466 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20467 (gdbserver_usage): Update.
20468 (main): Redo argument parsing. Handle --debug and --multi. Handle
20469 --attach along with other options or after the port. Save
20470 program_argv. Support no initial program. Resynchronize
20471 communication with GDB after an error. Handle "monitor exit".
20472 Use require_running and target_running. Always allow the extended
20473 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20474 restart in extended mode.
20475 * README: Refer to the GDB manual. Update --attach usage.
20476
7407e2de
AS
204772007-12-20 Andreas Schwab <schwab@suse.de>
20478
20479 * linux-low.c (STACK_SIZE): Define.
20480 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20481 (linux_test_for_tracefork): Likewise.
20482
b65d95c5
DJ
204832007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20484
20485 * linux-low.c (linux_wait_for_event): Update messages. Do not
20486 reinsert auto-delete breakpoints.
20487 * mem-break.c (struct breakpoint): Change return type of handler to
20488 int.
20489 (set_breakpoint_at): Update handler type.
20490 (reinsert_breakpoint_handler): Return 1 instead of calling
20491 delete_breakpoint.
20492 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20493 setting a new one.
20494 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20495 * mem-break.h (set_breakpoint_at): Update handler type.
20496 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20497 * win32-low.c (auto_delete_breakpoint): New.
20498 (get_child_debug_event): Use it.
20499
4e799345
DJ
205002007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20501
20502 * configure.ac: Check for pread and pwrite.
20503 * hostio.c (handle_pread): Fall back to lseek and read.
20504 (handle_pwrite): Fall back to lseek and write.
20505 * config.in, configure: Regenerated.
20506
27524b67
DJ
205072007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20508
20509 * server.c (myresume): Add own_buf argument.
20510 (main): Update calls.
20511
a20d5e98
DJ
205122007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20513
20514 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20515 * remote-utils.c (remote_open): Do not call disable_async_io.
20516 (block_async_io): Delete.
20517 (unblock_async_io): Make static.
20518 (initialize_async_io): New.
20519 * server.c (handle_v_cont): Handle async I/O here.
20520 (myresume): Likewise. Move other common resume tasks here...
20521 (main): ... from here. Call initialize_async_io. Disable async
20522 I/O before the main loop.
20523 * server.h (initialize_async_io): Declare.
20524 (block_async_io, unblock_async_io): Delete prototypes.
20525 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20526
b79d787e
DJ
205272007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20528
20529 * remote-utils.c (readchar): Allow binary data in received messages.
20530
d97903b2
PA
205312007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20532
20533 * win32-low.c (attaching): New global.
20534 (win32_create_inferior): Clear the `attaching' global.
20535 (win32_attach): Set the `attaching' global.
20536 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20537 attaching. Only set a breakpoint at the entry point if not
20538 attaching.
20539
311de423
PA
205402007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20541
20542 * server.c (main): Don't report dll events on the initial
20543 connection on attaches.
20544
6c2d16d2
PA
205452007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20546
20547 * server.c (main): Relax numerical bases supported for the pid of
20548 the --attach command line argument.
20549
5ca906e6
PA
205502007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20551
20552 * win32-low.c (win32_attach): Call OpenProcess before
20553 DebugActiveProcess, not after. Add last error output to error
20554 call.
20555
9c6c8194
PA
205562007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20557
20558 * win32-low.c (win32_get_thread_context)
20559 (win32_set_thread_context): New functions.
20560 (thread_rec): Use win32_get_thread_context.
20561 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20562 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20563 field.
20564
4d5d1aaa
PA
205652007-12-03 Leo Zayas
20566 Pedro Alves <pedro_alves@portugalmail.pt>
20567
20568 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20569 global variables.
20570 (child_add_thread): Minor cleanup.
20571 (child_continue): Resume artificially suspended threads before
20572 calling ContinueDebugEvent.
20573 (suspend_one_thread): New.
20574 (fake_breakpoint_event): New.
20575 (get_child_debug_event): Change return type to int. Check here if
20576 gdb sent an interrupt request. If a soft interrupt was requested,
20577 fake a breakpoint event. Return 0 if there is no event to handle,
20578 and 1 otherwise.
20579 (win32_wait): Don't check here if gdb sent an interrupt request.
20580 Ensure there is a valid event to handle.
20581 (win32_request_interrupt): Add soft interruption method as last
20582 resort.
20583
c436e841
PA
205842007-12-03 Leo Zayas
20585 Pedro Alves <pedro_alves@portugalmail.pt>
20586
20587 * win32-low.h (win32_thread_info): Add descriptions to the
20588 structure members. Replace `suspend_count' counter by a
20589 `suspended' flag.
20590 * win32-low.c (thread_rec): Update condition of when to get the
20591 context from the inferior. Rely on ContextFlags being set if it
20592 has already been retrieved. Only suspend the inferior thread if
20593 we haven't already. Warn if that fails.
20594 (continue_one_thread): s/suspend_count/suspended/. Only call
20595 ResumeThread once. Warn if that fails.
20596
e7b5fa67
PA
205972007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20598
20599 * win32-low.c (win32_wait): Don't read from the inferior when it
20600 has already exited.
20601
a385171d
PA
206022007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20603
20604 * Makefile.in (win32_low_h): New variable.
20605 (win32-low.o): Add dependency on $(win32_low_h).
20606 (win32-arm-low.o, win32-i386-low.o): New rules.
20607
f80c84b3
DJ
206082007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20609
20610 * hostio.c: Correct copyright year.
20611
a6b151f1
DJ
206122007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20613
20614 * Makefile.in (OBS): Add hostio.o.
20615 (hostio.o): New rule.
20616 * server.h (handle_vFile): Declare.
20617 * hostio.c: New file.
20618 * server.c (handle_v_requests): Take packet_len and new_packet_len
20619 for binary packets. Call handle_vFile.
20620 (main): Update call to handle_v_requests.
20621
f9387fc3
DJ
206222007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20623
20624 * linux-low.c: Include <sched.h>.
20625
51c2684e
DJ
206262007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20627
20628 * linux-low.c (linux_tracefork_grandchild): New.
20629 (linux_tracefork_child): Use clone.
20630 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20631
75f83163
JB
206322007-10-31 Joel Brobecker <brobecker@adacore.com>
20633
20634 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20635
da5898ce
DJ
206362007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20637
20638 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20639
24a09b5f
DJ
206402007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20641
20642 * inferiors.c (change_inferior_id): Delete.
20643 (add_pid_to_list, pull_pid_from_list): New.
20644 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20645 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20646 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20647 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20648 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20649 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20650 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20651 (using_threads): Always set to 1.
20652 (handle_extended_wait): New.
20653 (add_process): Do not set TID.
20654 (linux_create_inferior): Set must_set_ptrace_flags.
20655 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20656 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20657 (linux_thread_alive): Rename TID argument to LWPID.
20658 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20659 (linux_wait_for_event): Do not use TID or check using_threads. Update
20660 call to dead_thread_notify. Call handle_extended_wait.
20661 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20662 (send_sigstop): Delete sigstop_sent.
20663 (wait_for_sigstop): Avoid TID.
20664 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20665 (linux_test_for_tracefork): New.
20666 (linux_lookup_signals): Use thread_db_active and
20667 linux_supports_tracefork_flag.
20668 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20669 * linux-low.h (get_process_thread): Avoid TID.
20670 (struct process_ifo): Move thread_known and tid to the end. Remove
20671 sigstop_sent.
20672 (linux_attach_lwp, thread_db_init): Update prototypes.
20673 * server.h (change_inferior_id): Delete prototype.
20674 (add_pid_to_list, pull_pid_from_list): New prototypes.
20675 * thread-db.c (thread_db_use_events): New.
20676 (find_first_thread): Rename to...
20677 (find_one_thread): ...this. Update callers and messages. Do not
20678 call fatal. Check thread_db_use_events. Do not call
20679 change_inferior_id or new_thread_notify.
20680 (maybe_attach_thread): Update. Do not call new_thread_notify.
20681 (thread_db_init): Set thread_db_use_events. Check use_events.
20682 * utils.c (fatal, warning): Correct message prefix.
20683
30ed0a8f
DJ
206842007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20685
20686 * Makefile.in (clean): Remove new files.
20687 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20688 (powerpc-64.o, powerpc-64.c): New rules.
20689 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20690 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20691 with SPE.
20692 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20693 SPE targets.
20694 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20695 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20696 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20697 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20698 (target_regsets): Add AltiVec and SPE register sets.
20699 * configure.ac: Check for AltiVec and SPE.
20700 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20701 (ppc_fill_vrregset, ppc_store_vrregset): New.
20702 (target_regsets): Add AltiVec register set.
20703 * configure: Regenerated.
20704
fd462a61
DJ
207052007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20706
20707 * linux-low.c (O_LARGEFILE): Define.
20708 (linux_read_memory): Use /proc/PID/mem.
20709 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20710 * configure, config.in: Regenerated.
20711
69f223ed
DJ
207122007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20713
20714 * linux-low.c (linux_wait_for_event): Do not pass signals while
20715 single-stepping.
20716
aec18585
PA
207172007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20718
20719 * win32-low.c (create_process): New.
20720 (win32_create_inferior): Use create_process instead of
20721 CreateProcess. If create_process failed retry appending an ".exe"
20722 suffix. Store the GetLastError result immediatelly after
20723 create_process calls and use it on the call to error.
20724
34d86ddd
PA
207252007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20726
20727 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20728
5a0e3bd0
JB
207292007-08-23 Joel Brobecker <brobecker@adacore.com>
20730
20731 * configure.ac: Switch license to GPLv3.
20732
f88c79e6
MS
207332007-08-01 Michael Snyder <msnyder@access-company.com>
20734
20735 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20736
6b3d9b83
PA
207372007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20738
20739 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20740 typedef.
20741 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20742 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20743 CloseToolhelp32Snapshot.
20744 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20745 CloseToolhelp32Snapshot.
20746
c588c53c
MS
207472007-07-27 Michael Snyder <michael.snyder@access-company.com>
20748
20749 * server.c (main): Check for inferior exit before main loop.
20750
aa0403d9
PA
207512007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20752
20753 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20754 instead of on tmp_desc.
20755
255e7678
DJ
207562007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20757 Daniel Jacobowitz <dan@codesourcery.com>
20758
20759 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20760 (add_thread): Minor cleanups.
20761 (clear_inferiors): Move lower in the file. Clear the DLL
20762 list.
20763 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20764 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20765 (xml_escape_text): New.
20766 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20767 for qSupported.
20768 (handle_v_cont): Report errors.
20769 (gdbserver_version): Update.
20770 (main): Correct size of own_buf. Do not report initial DLL events.
20771 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20772 (unloaded_dll, xml_escape_text): New.
20773 * win32-low.c (enum target_waitkind): Update comments.
20774 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20775 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20776 (win32_EnumProcessModules, win32_GetModuleInformation)
20777 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20778 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20779 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20780 (win32_Module32First, win32_Module32Next, load_toolhelp)
20781 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20782 (get_child_debug_event): Handle DLL events.
20783 (win32_wait): Likewise.
20784
0d37add9
DJ
207852007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20786
20787 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20788 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20789
45e2715e
PA
207902007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20791
20792 * win32-low.c (handle_output_debug_string): Ignore event if not
20793 waiting.
20794
c5674cf1
PA
207952007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20796
20797 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20798
2bbe3cc1
DJ
207992007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20800
20801 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20802
ae13219e
DJ
208032007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20804
20805 * inferiors.c (change_inferior_id): Add comment.
20806 * linux-low.c (check_removed_breakpoint): Add an early
20807 prototype. Improve debug output.
20808 (linux_attach): Doc update.
20809 (linux_detach_one_process, linux_detach): Clean up before releasing
20810 each process.
20811 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20812 * linux-low.h (struct process_info): Doc improvement.
20813 * mem-break.c (delete_all_breakpoints): New.
20814 * mem-break.h (delete_all_breakpoints): New prototype.
20815 * thread-db.c (find_first_thread): New.
20816 (thread_db_create_event): Call it instead of
20817 thread_db_find_new_threads. Clean up unused variables.
20818 (maybe_attach_thread): Remove first thread handling.
20819 (thread_db_find_new_threads): Use find_first_thread.
20820 (thread_db_get_tls_address): Likewise.
20821
4105de34
DJ
208222007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20823
20824 * thread-db.c (thread_db_find_new_threads): Add prototype.
20825 (thread_db_create_event): Check for the main thread before adding
20826 a new thread.
20827 (maybe_attach_thread): Only enable event reporting if TID == 0.
20828 (thread_db_get_tls_address): Check for new threads.
20829
2b876972
DJ
208302007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20831
20832 * linux-low.c (linux_create_inferior): Try execv before execvp.
20833 * spu-low.c (spu_create_inferior): Likewise.
20834
7a245884
DJ
208352007-06-13 Mike Frysinger <vapier@gentoo.org>
20836
20837 * linux-low.c (linux_create_inferior): Change execv to execvp.
20838 * spu-low.c (spu_create_inferior): Likewies.
20839
117ce543
DJ
208402007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20841
20842 * Makefile.in (clean): Clean new files instead of deleted ones.
20843 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20844 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20845 rules.
20846 * configure.srv: Specify XML files and new regformats for MIPS and
20847 MIPS64 GNU/Linux.
20848 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20849 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20850 an entry for the restart register.
20851 (mips_cannot_fetch_register, mips_cannot_store_register)
20852 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20853 register names to match the XML descriptions.
20854 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20855 restart register instead of $0.
20856
0e7f50da
UW
208572007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20858 Markus Deuling <deuling@de.ibm.com>
20859
20860 * remote-utils.c (decode_xfer_write): New function.
20861 * server.h (decode_xfer_write): Add prototype.
20862 * server.c (handle_query): Add PACKET_LEN argument. Support
20863 qXfer:spu:read and qXfer:spu:write packets.
20864 (main): Pass packet_len to handle_query.
20865 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20866 * target.h (target_ops): Add qxfer_spu.
20867
374c1d38
UW
208682007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20869
20870 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20871 accessing non-seekable spufs files.
20872
bb63802a
UW
208732007-05-16 Markus Deuling <deuling@de.ibm.com>
20874
889bf7c5 20875 * server.c (handle_query): Add reply for qC packet.
bb63802a 20876
7390519e
PA
208772007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20878 Leo Zayas <lerele@champenstudios@com>
20879
20880 * server.h (check_remote_input_interrupt_request): New function.
20881 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20882 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20883 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20884 (check_remote_input_interrupt_request): New function.
20885 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20886 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20887 winapi_GenerateConsoleCtrlEvent): New typedefs.
20888 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20889 to 250 ms.
20890 (win32_wait): Check for remote interrupt request
20891 with check_remote_input_interrupt_request.
20892 (win32_request_interrupt): New function.
20893 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20894
34b34921
PA
208952007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20896
20897 * win32-low.c (debug_registers_changed,
20898 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20899 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20900 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20901 (thread_rec): Get context using the low target.
20902 (child_add_thread): Call thread_added on the low target,
20903 which does the same thing.
20904 (regptr): Delete.
20905 (do_initial_child_stuff): Remove debug registers references.
20906 Set context using the low target. Resume threads after
20907 setting the contexts.
20908 (child_continue): Remove dead variable. Remove debug
20909 registers references.
20910 (child_fetch_inferior_registers): Go through the low target.
20911 (do_child_store_inferior_registers): Remove.
20912 (child_store_inferior_registers): Go through the low target.
20913 (win32_resume): Remove debug registers references.
20914 Set context using the low target.
20915 (handle_exception): Change return type to void. Don't record
20916 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20917 first chance exception.
889bf7c5 20918 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20919 goto loop. Always return after waiting for debug event.
20920 (win32_wait): Convert to switch statement. Handle spurious
20921 events.
20922
20923 * win32-i386-low.c (debug_registers_changed,
20924 debug_registers_used): New.
20925 (initial_stuff): Rename to ...
20926 (i386_initial_stuff): ... this. Clear debug registers
20927 state variables.
20928 (store_debug_registers): Delete.
20929 (i386_get_thread_context): New.
20930 (load_debug_registers): Delete.
20931 (i386_set_thread_context): New.
20932 (i386_thread_added): New.
20933 (single_step): Rename to ...
20934 (i386_single_step): ... this.
20935 (do_fetch_inferior_registers): Rename to ...
20936 (i386_fetch_inferior_register): ... this.
20937 (i386_store_inferior_register): New.
20938 (the_low_target): Adapt to new interface.
20939
20940 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20941 (arm_get_thread_context): New.
20942 (arm_set_thread_context): New.
20943 (regptr): New.
20944 (do_fetch_inferior_registers): Rename to ...
20945 (arm_fetch_inferior_register): ... this.
20946 (arm_store_inferior_register): New.
20947 (arm_wince_breakpoint): Reimplement as unsigned long.
20948 (arm_wince_breakpoint_len): Define.
20949 (the_low_target): Adapt to new interface.
20950
20951 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20952 load_debug_registers. Add get_thread_context, set_thread_context,
20953 thread_added and store_inferior_register. Rename
20954 fetch_inferior_registers to fetch_inferior_register.
20955 (regptr): Remove declaration.
20956
dd6953e1
PA
209572007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20958
20959 * linux-low.c (linux_detach): Change return type to int. Return 0.
20960 * spu-low.c (spu_detach): Likewise.
20961
444d6139
PA
209622007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20963
20964 * target.h (target_ops): Change return type of detach to int.
20965 Add join.
20966 (join_inferior): New.
20967 * server.c (main): Don't skip detach support on mingw32.
20968 If the inferior doesn't support detaching return error.
20969 Call join_inferior instead of using waitpid.
20970 * linux-low.c (linux_join): New.
20971 (linux_target_op): Add linux_join.
20972 * spu-low.c (spu_join): New.
20973 (spu_target_ops): Add spu_join.
20974 * win32-low.c (win32_detach): Adapt to new interface.
20975 Reopen current_process_handle before detaching. Issue a child
20976 resume before detaching.
20977 (win32_join): New.
20978 (win32_target_op): Add win32_join.
20979
1d5315fe
PA
209802007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20981
20982 * win32-low.c (win32-attach): Fix return value.
20983 * target.h (target_ops): Describe ATTACH return values.
20984
bf914831
PA
209852007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20986
20987 * win32-low.c (GETPROCADDRESS): Define.
20988 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20989 (winapi_DebugSetProcessKillOnExit): Likewise.
20990 (win32_create_inferior): Force usage of ansi CreateProcessA.
20991 (win32_attach): Use GETPROCADDRESS.
20992 (win32_detach): Likewise.
20993
f72f3e60
PA
209942007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20995
20996 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20997
ed50f18f
PA
209982007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20999
21000 * win32-low.c: Commit leftover changes from 2007-03-29.
21001
0c2ead7e
DJ
210022007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21003
21004 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21005 fields short instead of int. Add explicit padding.
21006 (i387_cache_to_fsave): Remove unnecessary casts.
21007 (i387_fsave_to_cache): Doc fix.
21008 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21009
73725ff3
DJ
210102007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21011
21012 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21013 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21014
d99f33d8
PA
210152007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21016
21017 * configure.srv (arm*-*-mingw32ce*): Move near the other
21018 arm targets.
21019
68070c10
PA
210202007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21021
2482afc6 21022 * configure.ac: Add errno checking.
68070c10
PA
21023 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21024 sys/file.h and malloc.h.
21025 (AC_CHECK_DECLS): Add perror.
21026 (srv_mingwce): Handle.
2482afc6 21027 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21028 win32-i386-low.o to srv_tgtobj.
21029 (i[34567]86-*-mingw*): Likewise.
21030 (arm*-*-mingw32ce*): Add case.
21031 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21032 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21033 [__MINGW32CE__] (strerror): New function.
21034 [__MINGW32CE__] (errno): Define to GetLastError.
21035 [__MINGW32CE__] (COUNTOF): New macro.
21036 (remote_open): Remove extra close call.
21037 * mem-break.c (delete_breakpoint_at): New function.
21038 * mem-break.h (delete_breakpoint_at): Declare.
21039 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21040 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21041 [USE_WIN32API] (read, write): Add char* casts.
21042 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21043 * server.h: Include wincecompat.h on Windows CE.
21044 [HAVE_ERRNO_H]: Check.
21045 (perror): Declare if not declared.
21046 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21047 (perror_with_name): Remove errno declaration.
21048 * wincecompat.h: New.
21049 * wincecompat.c: New.
21050 * win32-low.h: New.
21051 * win32-arm-low.c: New.
21052 * win32-i386-low.c: New.
21053 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21054 (OUTMSG2): Make it safe.
21055 (_T): New macro.
21056 (COUNTOF): New macro.
21057 (NUM_REGS): Get it from the low target.
21058 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21059 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21060 (thread_rec): Let low target handle debug registers.
21061 (child_add_thread): Likewise.
21062 (child_init_thread_list): Likewise.
21063 (continue_one_thread): Likewise.
21064 (regptr): New.
21065 (do_child_fetch_inferior_registers): Move to ...
21066 * win32-i386-low.c: ... here, and rename to ...
21067 (do_fetch_inferior_registers): ... this.
889bf7c5 21068 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21069 Go through the low target.
21070 (do_child_store_inferior_registers): Use regptr.
21071 (strwinerror): New function.
21072 (win32_create_inferior): Handle Windows CE.
21073 Use strwinerror instead of strerror on Windows error
21074 codes. Add program to the error output.
21075 Don't close the main thread handle on Windows CE.
21076 (win32_attach): Use coredll.dll on Windows CE.
21077 (win32_kill): Close current process and current
21078 thread handles.
21079 (win32_detach): Use coredll.dll on Windows CE.
21080 (win32_resume): Let low target handle debug registers, and
21081 step request.
21082 (handle_exception): Add/Remove initial breakpoint. Avoid
21083 non-existant WSTOPSIG on Windows CE.
21084 (win32_read_inferior_memory): Cast to remove warning.
21085 (win32_arch_string): Go through the low target.
21086 (initialize_low): Call set_breakpoint_data with the low
21087 target's breakpoint.
21088 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21089 FOP_REGNUM, mappings): Move to ...
21090 * win32-i386-low.c: ... here.
21091 * win32-low.c (win32_thread_info): Move to ...
21092 * win32-low.h: ... here.
21093 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21094 win32-arm-low.c and wincecompat.c.
21095 (all:): Add $EXEEXT.
21096 (install-only:): Likewise.
21097 (gdbserver:): Likewise.
21098 (gdbreplay:): Likewise.
21099 * config.in: Regenerate.
21100 * configure: Regenerate.
21101
41093d81
PA
211022007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21103
21104 * win32-low.c: Rename typedef thread_info to
21105 win32_thread_info throughout.
21106
544afa54
PA
211072007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21108
21109 * win32-i386-low.c: Rename to ...
21110 * win32-low.c: ... this.
21111 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21112 * Makefile.in: Likewise.
21113
bce7165d
PA
211142007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21115
21116 * remote-utils.c (monitor_output): Constify msg parameter.
21117 * server.h (monitor_output): Likewise.
21118 * win32-i386-low.c (handle_output_debug_string): New.
21119 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21120 handle_output_debug_string.
21121 (get_child_debug_event): Likewise.
21122
506c7aa0
DJ
211232007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21124
21125 * server.c (main): Correct strtoul check.
21126
42c81e2a
DJ
211272007-03-27 Jon Ringle <jon@ringle.org>
21128
21129 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21130
9453113a
DJ
211312007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21132
21133 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21134
64a69107
DJ
211352007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21136
21137 * terminal.h: Check HAVE_SGTTY_H.
21138
211392007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21140
21141 * remote-utils.c (remote_open): Print out the assigned port number.
21142
c74d0ad8
DJ
211432007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21144
21145 * remote-utils.c (monitor_output): New function.
21146 * server.c (debug_threads): Define here.
21147 (monitor_show_help): New function.
21148 (handle_query): Handle qRcmd.
21149 (main): Do not handle 'd' packet.
21150 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21151 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21152 of debug_threads.
21153
de7c3b4a
PA
211542007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21155
21156 * Makefile.in (EXEEXT): New.
21157 (clean): Use $(EXEEXT).
21158
ef57601b
PA
211592007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21160
21161 * target.h (target_ops): Rename send_signal to request_interrupt,
21162 and remove enum target_signal parameter.
21163 * linux-low.c (linux_request_interrupt): Rename from
21164 linux_send_signal, and always send SIGINT.
21165 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21166 and always send SIGINT.
21167 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21168 of send_signal.
21169 (input_interrupt): Likewise.
21170
820f2bda
PA
211712007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21172
21173 * server.c (get_features_xml): Check if target implemented
21174 arch_string.
21175 * win32-i386-low.c (win32_arch_string): New.
21176 (win32_target_ops): Add win32_arch_string as arch_string member.
21177
ab39bf24
UW
211782007-02-22 Markus Deuling <deuling@de.ibm.com>
21179
21180 * spu-low.c (spu_arch_string): New.
21181 (spu_target_ops): Add spu_arch_string.
21182
61ff6e04
DJ
211832007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21184
21185 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21186 * configure.ac: Do not check for terminal.h.
21187 * configure, config.in: Regenerated.
21188
fb1e4ffc
DJ
211892007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21190
21191 * Makefile.in (OBS): Add $(XML_BUILTIN).
21192 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21193 (clean): Update.
21194 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21195 (arm-with-iwmmxt.c): New.
21196 * config.in, configure: Regenerate.
21197 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21198 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21199 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21200 (arm*-*-linux*): Add iWMMXt and regset support.
21201 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21202 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21203 (arm_store_wmmxregset, target_regsets): New.
21204 * server.c (get_features_xml): Take annex argument. Check builtin
21205 XML documents.
21206 (handle_query): Handle multiple annexes.
21207
0f48aa01
DJ
212082007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21209
21210 * remote-utils.c [USE_WIN32API] (read, write): Define.
21211 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21212 write.
21213
23181151
DJ
212142007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21215
21216 * linux-i386-low.c (the_low_target): Set arch_string.
21217 * linux-x86-64-low.c (the_low_target): Likewise.
21218 * linux-low.c (linux_arch_string): New.
21219 (linux_target_ops): Add it.
21220 * linux-low.h (struct linux_target_ops): Add arch_string.
21221 * server.c (write_qxfer_response): Use const void * for DATA.
21222 (get_features_xml): New.
21223 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21224 * target.h (struct target_ops): Add arch_string method.
21225
9d606399
DJ
212262007-01-03 Denis Pilat <denis.pilat@st.com>
21227 Daniel Jacobowitz <dan@codesourcery.com>
21228
21229 * linux-low.c (linux_kill): Handle being called with no threads.
21230 * win32-i386-low.c (win32_kill): Likewise.
21231 (get_child_debug_event): Clear current_process_handle.
21232
212332006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21234 Daniel Jacobowitz <dan@codesourcery.com>
21235
21236 * remote-utils.c (remote_open): Check the type of specified
21237 serial port devices before opening them.
21238 * server.c (main): Kill the inferior if an error occurs during
21239 the first remote_open.
21240
a5e13d24
DJ
212412006-12-05 Markus Deuling <deuling@de.ibm.com>
21242
21243 * README: Update supported targets.
21244
186947f7
DJ
212452006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21246
21247 * Makefile.in (clean): Remove reg-mips64.c.
21248 (reg-mips64.c, reg-mips64.o): New rules.
21249 * configure.srv: Handle mips64. Include regset support for mips.
21250 * linux-mips-low.c (union mips_register): New.
21251 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21252 (mips_breakpoint, mips_breakpoint_at): Use int.
21253 (mips_collect_register, mips_supply_register)
21254 (mips_collect_register_32bit, mips_supply_register_32bit)
21255 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21256 (mips_store_fpregset, target_regsets): New.
21257 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21258
a13e2c95
UW
212592006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21260
21261 * configure.srv: Add target "spu*-*-*".
21262 * Makefile.in (clean): Remove reg-spu.c.
21263 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21264 * spu-low.c: New file.
21265
cb7283db
DJ
212662006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21267
21268 * configure.ac: Correct td_thr_tls_get_addr test.
21269 * configure: Regenerated.
21270
89be2091
DJ
212712006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21272
21273 * linux-low.c (linux_wait_for_event): Reformat. Use the
21274 pass_signals array.
21275 * remote-utils.c (decode_address_to_semicolon): New.
21276 * server.c (pass_signals, handle_general_set): New.
21277 (handle_query): Mention QPassSignals for qSupported.
21278 (main): Call handle_general_set.
21279 * server.h (pass_signals, decode_address_to_semicolon): New.
21280
000ef4f0
DJ
212812006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21282
21283 * server.c (handle_query): Correct error handling for read_auxv.
21284
b7149293
UW
212852005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21286
21287 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21288 and srv_linux_thread_db to yes.
21289 * linux-s390-low.c (s390_fill_gregset): New function.
21290 (target_regsets): Define data structure.
21291
dae5f5cf
DJ
212922006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21293
21294 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21295 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21296 * config.in, configure: Regenerated.
21297 * inferiors.c (gdb_id_to_thread): New function.
21298 (gdb_id_to_thread_id): Use it.
21299 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21300 * linux-low.h (struct process_info): Add th member.
21301 (thread_db_get_tls_address): New prototype.
21302 * remote-utils.c (decode_address): Make non-static.
21303 * server.c (handle_query): Handle qGetTLSAddr.
21304 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21305 * target.h (struct target_ops): Add get_tls_address.
21306 * thread-db.c (maybe_attach_thread): Save the thread handle.
21307 (thread_db_get_tls_address): New.
21308
32ca6d61
DJ
213092006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21310
21311 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21312 (linux_resume_one_process): Take a siginfo_t *. Update all
21313 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21314 (struct pending_signals): Add a siginfo_t.
21315 (linux_wait_for_process): Always set last_status.
21316 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21317 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21318 * linux-low.h (struct process_info): Add last_status.
21319
5ffff7c1
DJ
213202006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21321
21322 * remote-utils.c (try_rle): New function.
21323 (putpkt_binary): Use it.
21324
8695c747
DJ
213252006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21326
21327 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21328 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21329 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21330 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21331 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21332 point registers.
21333
290fadea
RS
213342006-08-08 Richard Sandiford <richard@codesourcery.com>
21335
21336 * server.c (terminal_fd): New variable.
21337 (old_foreground_pgrp): Likewise.
21338 (restore_old_foreground_pgrp): New function.
21339 (start_inferior): Record the terminal file descriptor in terminal_fd
21340 and its original foreground group in old_foreground_pgrp. Register
21341 restore_old_foreground_pgrp with atexit().
21342
9f2e1e63
DJ
213432006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21344
21345 * server.c (handle_query): Correct qPart to qXfer.
21346
b80864fb
DJ
213472006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21348
21349 * configure.ac: Check for more headers which are missing on
21350 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21351 * configure.srv: Add Cygwin and mingw32.
21352 * remote-utils.c: Don't include headers unconditionally which
21353 are missing on mingw32. Include <winsock.h> for mingw32.
21354 (remote_open): Adjust for mingw32 support. Flush
21355 standard error after writing to it.
21356 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21357 (unblock_async_io, enable_async_io, disable_async_io)
21358 (readchar, getpkt): Update for Winsock support.
21359 (prepare_resume_reply): Expect a protocol signal number.
21360 * server.c: Disable <sys/wait.h> on mingw32.
21361 (start_inferior): Adjust for mingw32 support. Flush
21362 standard error after writing to it.
21363 (attach_inferior): Likewise. Use protocol signal
21364 numbers.
21365 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21366 and names.
21367 * win32-i386-low.c: New file.
21368 * Makefile.in (XM_CLIBS): Set.
21369 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21370 (win32-i386-low.o): New dependency rule.
21371 * linux-low.c (linux_wait): Use target signal numbers.
21372 * target.h (struct target_ops): Doc fix.
21373 * server.h (target_signal_to_name): New prototype.
21374 * gdbreplay.c: Don't include headers unconditionally which
21375 are missing on mingw32. Include <winsock.h> for mingw32.
21376 (remote_close, remote_open): Adjust for Winsock support.
21377 * configure, config.in: Regenerated.
21378
0876f84a
DJ
213792006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21380
21381 * server.c (decode_xfer_read, write_qxfer_response): New.
21382 (handle_query): Take a packet length argument. Handle
21383 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21384 the qSupported response.
21385 (main): Update call to handle_query.
21386
01f9e8fa
DJ
213872006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21388
21389 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21390 (putpkt_binary): Renamed from putpkt and adjusted for binary
21391 data.
21392 (putpkt): New wrapper for putpkt_binary.
21393 (readchar): Don't mask off the high bit.
21394 (decode_X_packet): New function.
21395 * server.c (main): Call putpkt_binary if a handler sets the packet
21396 length. Save the length of the incoming packet. Handle 'X'.
21397 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21398
be2a5f71
DJ
213992006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21400
21401 * server.c (handle_query): Handle qSupported.
21402
ea025f5f
DJ
214032006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21404
21405 * remote-utils.c (all_symbols_looked_up): New variable.
21406 (look_up_one_symbol): Check it.
21407 * server.h (look_up_one_symbol): New declaration.
21408 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21409
9308fc88
DJ
214102006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21411
21412 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21413 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21414 (PTRACE_GET_THREAD_AREA): Define.
21415 (ps_get_thread_area): New function.
21416
52fb6437
NS
214172006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21418
21419 * configure.srv (m68k*-*-uclinux*): New target.
21420 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21421 (linux_resume_one_process): Remove extraneous cast.
21422 (linux_read_offsets): New.
21423 (linux_target_op): Add linux_read_offsets on mmuless systems.
21424 * server.c (handle_query): Add qOffsets logic.
21425 * target.h (struct target_ops): Add read_offsets.
21426
21b0f40c
DJ
214272006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21428
21429 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21430 (PTRACE_GET_THREAD_AREA): Define.
21431 (ps_get_thread_area): New function.
21432 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21433 (linux-x86-64-low.o): Update.
21434
0050a760
DJ
214352006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21436
21437 * configure.ac: Remove checks for prfpregset_t.
21438 * gdb_proc_service.h: New file.
21439 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21440 new "gdb_proc_service.h".
21441 * proc-service.c: Likewise.
21442 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21443 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21444 * Makefile.in (gdb_proc_service_h): Updated.
21445 * configure, config.in: Regenerated.
21446
b92a518e
DJ
214472006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21448
21449 * remote-utils.c (prepare_resume_reply): Move declaration
21450 of gdb_id_from_wait to the top of the block.
21451
545587ee
DJ
214522006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21453
21454 * linux-low.c (regsets_store_inferior_registers): Read the regset
21455 from the target before filling it.
21456
9db87ebd
DJ
214572006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21458
21459 * server.c (attach_inferior): Return SIGTRAP for a successful
21460 attach.
21461
dd24457d
DJ
214622006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21463
21464 * Makefile.in (OBS): Add version.o.
21465 (STAGESTUFF): Delete.
21466 (version.o): Add dependencies.
21467 (version.c): Replace rule.
21468 (clean): Remove version.c.
21469 * server.c (gdbserver_version): New.
21470 (gdbserver_usage): Use printf.
21471 (main): Handle --version and --help.
21472 * server.h (version, host_name): Add declarations.
21473
6f0f660e
EZ
214742005-12-23 Eli Zaretskii <eliz@gnu.org>
21475
889bf7c5
PA
21476 * linux-arm-low.c:
21477 * linux-arm-low.c:
21478 * inferiors.c:
21479 * i387-fp.h:
21480 * i387-fp.c:
21481 * gdbreplay.c:
21482 * regcache.c:
21483 * proc-service.c:
21484 * mem-break.h:
21485 * mem-break.c:
21486 * linux-x86-64-low.c:
21487 * linux-sh-low.c:
21488 * linux-s390-low.c:
21489 * linux-ppc64-low.c:
21490 * linux-ppc-low.c:
21491 * linux-mips-low.c:
21492 * linux-m68k-low.c:
21493 * linux-m32r-low.c:
21494 * linux-low.h:
21495 * linux-low.c:
21496 * linux-ia64-low.c:
21497 * linux-i386-low.c:
21498 * linux-crisv32-low.c:
21499 * thread-db.c:
21500 * terminal.h:
21501 * target.h:
21502 * target.c:
21503 * server.h:
21504 * server.c:
21505 * remote-utils.c:
21506 * regcache.h:
21507 * utils.c:
21508 * Makefile.in:
21509 * configure.ac:
6f0f660e
EZ
21510 * gdbserver.1: Add (C) after Copyright. Update the FSF
21511 address.
21512
9d1fb177
DJ
215132005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21514
21515 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21516 (arm_breakpoint_at): Recognize both breakpoints.
21517 (the_low_target): Use the correct breakpoint instruction.
21518
011a70c2
DJ
215192005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21520
21521 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21522 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21523 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21524 (the_low_target): Update.
21525
7fb85e41
AS
215262005-10-25 Andreas Schwab <schwab@suse.de>
21527
21528 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21529
21530 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21531 (ia64_num_regs): Reduce to 462.
21532
3db0444b
DJ
215332005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21534
21535 * acinclude.m4: Correct quoting.
21536 * aclocal.m4: Regenerated.
21537
21538 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21539 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21540 (thread_db_init): Call thread_db_err_str.
21541 * configure.ac: Check for TD_VERSION.
21542 * config.in, configure: Regenerated.
21543
bee0189a
DJ
215442005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21545
21546 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21547
e9d25b98
DJ
215482005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21549
21550 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21551 is not available. Define HAVE_PTRACE_GETREGS if it is.
21552 * config.in, configure: Regenerated.
21553 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21554 * linux-i386-low.c, linux-m68k-low.c: Update to use
21555 HAVE_PTRACE_GETREGS.
21556 * linux-low.c (regsets_fetch_inferior_registers)
21557 (regsets_store_inferior_registers): Only return 0 if we processed
21558 GENERAL_REGS.
21559 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21560 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21561
a06660f7
DJ
215622005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21563
21564 * inferiors.c (struct thread_info): Add gdb_id.
21565 (add_thread): Add gdb_id argument.
21566 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21567 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21568 calls to add_thread.
21569 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21570 * server.c (handle_query): Use thread_to_gdb_id.
21571 (handle_v_cont, main): Use gdb_id_to_thread_id.
21572 * server.h (add_thread): Update prototype.
21573 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21574 prototypes.
21575
5a1f5858
DJ
215762005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21577
21578 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21579 left-padded registers.
21580 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21581 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21582
e122f1f5
SE
215832005-07-01 Steve Ellcey <sje@cup.hp.com>
21584
21585 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21586 * configure: Regenerate.
21587 * config.in: Regenerate.
21588 * server.h (NEED_DECLARATION_STRERROR):
21589 Replace with !HAVE_DECL_STRERROR.
21590
d592fa2f
DJ
215912005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21592
21593 * linux-low.c (linux_wait, linux_send_signal): Don't test
21594 an unsigned long variable for > 0 if it could be MAX_ULONG.
21595 * server.c (myresume): Likewise.
21596 * target.c (set_desired_inferior): Likewise.
21597
ccbd4912
MK
215982005-06-13 Mark Kettenis <kettenis@gnu.org>
21599
21600 * configure.ac: Simplify and improve check for socklen_t.
21601 * configure, config.in: Regenerate.
21602
f450004a
DJ
216032005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21604
21605 * acconfig.h: Remove.
21606 * configure.ac: Add a test for socklen_t. Use three-argument
21607 AC_DEFINE throughout.
21608 * config.in: Regenerated using autoheader 2.59.
21609 * configure: Regenerated.
21610
21611 * gdbreplay.c (socklen_t): Provide a default.
21612 (remote_open): Use socklen_t.
21613 * remote-utils.c (socklen_t): Provide a default.
21614 (remote_open): Use socklen_t.
21615 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21616 unsigned char.
21617
21618 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21619 char for buffers.
21620 * linux-low.c (linux_read_memory, linux_write_memory)
21621 (linux_read_auxv): Likewise.
21622 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21623 (check_mem_write): Likewise.
21624 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21625 Likewise.
21626 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21627 (registers_from_string, register_data): Likewise.
21628 * server.c (handle_query, main): Likewise.
21629 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21630 (decode_M_packet): Likewise.
21631 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21632 * target.h (struct target_ops): Update read_memory, write_memory,
21633 and read_auxv.
21634 (read_inferior_memory, write_inferior_memory): Update.
21635 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21636 to unsigned char *.
21637 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21638 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21639 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21640 linux-s390-low.c, linux-sh-low.c: Update for changes in
21641 read_inferior_memory and the_low_target->breakpoint.
21642
eee84df1
DJ
216432005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21644
21645 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21646 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21647 * configure.srv: Add powerpc64-*-linux*.
21648 * linux-ppc64-low.c: New file.
21649
45b134e5
OF
216502005-05-23 Orjan Friberg <orjanf@axis.com>
21651
21652 * linux-cris-low.c: New file with support for CRIS.
21653 * linux-crisv32-low.c: Ditto for CRISv32.
21654 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21655 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21656 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21657 reg-crisv32.o, and reg-crisv32.c to make rules.
21658 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21659 recognized targets.
21660
48d93c75
UW
216612005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21662
21663 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21664 of sizeof (PTRACE_XFER_TYPE).
21665 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21666
e013ee27
OF
216672005-05-12 Orjan Friberg <orjanf@axis.com>
21668
889bf7c5 21669 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21670 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21671 pointers for hardware watchpoint support.
21672 * linux-low.h (struct linux_target_ops): Ditto.
21673 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21674 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21675 to linux_target_ops.
21676 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21677 reply packet.
21678 * server.c (main): Recognize 'Z' and 'z' packets.
21679
b0ded00b
UW
216802005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21681
21682 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21683 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21684 (the_low_target): Add new members.
21685
8643e2ad
DJ
216862005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21687
21688 * proc-service.c (ps_lgetregs): Search all_processes instead of
21689 all_threads.
21690
fc620387
DJ
216912005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21692
21693 * server.c (start_inferior): Change return type to int.
21694 (attach_inferior): Change sigptr to int *.
21695 (handle_v_cont, handle_v_requests): Change signal to int *.
21696 (main): Change signal to int.
21697
216982005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21699
21700 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21701 * configure.srv: Add m32r*-*-linux*.
21702 * linux-m32r-low.c: New file.
21703
e0e76420
DJ
217042005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21705
21706 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21707
a1928bad
DJ
217082005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21709
21710 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21711 Take unsigned long arguments for PIDs.
21712 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21713 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21714 (wait_for_sigstop, linux_resume_one_process)
21715 (regsets_fetch_inferior_registers, linux_send_signal)
21716 (linux_read_auxv): Likewise. Update the types of variables holding
21717 PIDs. Update format string specifiers.
21718 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21719 * remote-utils.c (prepare_resume_reply): Likewise.
21720 * server.c (cont_thread, general_thread, step_thread)
21721 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21722 unsigned long.
21723 (handle_query): Update format specifiers.
21724 (handle_v_cont, main): Use strtoul for thread IDs.
21725 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21726 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21727 (general_thread, step_thread, thread_from_wait)
21728 (old_thread_from_wait): Update.
21729 * target.h (struct thread_resume): Use unsigned long for THREAD.
21730 (struct target_ops): Use unsigned long for arguments to attach and
21731 thread_alive.
21732
dcdb98d2
DJ
217332005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21734
21735 * acinclude.m4: Include bfd/bfd.m4 directly.
21736 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21737 <agriffis@toolchain.org>.
21738 * aclocal.m4, configure: Regenerated.
21739
bec39cab
AC
217402005-01-07 Andrew Cagney <cagney@gnu.org>
21741
21742 * configure.ac: Rename configure.in, require autoconf 2.59.
21743 * configure: Re-generate.
21744
434c4c77
DJ
217452004-12-08 Daniel Jacobowitz <dan@debian.org>
21746
21747 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21748 LIBS when finished.
21749 * aclocal.m4: Regenerated.
21750 * configure: Regenerated.
21751
db1d3e1b
AS
217522004-11-21 Andreas Schwab <schwab@suse.de>
21753
21754 * linux-m68k-low.c (m68k_num_gregs): Define.
21755 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21756 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21757 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21758 (m68k_breakpoint_at): New. Add to the_low_target.
21759
21760 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21761 srv_linux_thread_db to yes.
21762
43360365
JB
217632004-10-20 Joel Brobecker <brobecker@gnat.com>
21764
21765 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21766 (ARCH_SET_FS): Likewise.
21767 (ARCH_GET_FS): Likewise.
21768 (ARCH_GET_GS): Likewise.
21769
fd500816
DJ
217702004-10-16 Daniel Jacobowitz <dan@debian.org>
21771
21772 * linux-i386-low.c (ps_get_thread_area): New.
21773 * linux-x86-64-low.c (ps_get_thread_area): New.
21774 * linux-low.c: Include <sys/syscall.h>.
21775 (linux_kill_one_process): Don't kill the first thread here.
21776 (linux_kill): Kill the first thread here.
21777 (kill_lwp): New function.
21778 (send_sigstop, linux_send_signal): Use it.
21779 * proc-service.c: Clean up #ifdefs.
21780 (fpregset_info): Delete.
21781 (ps_lgetregs): Update and enable implementation.
21782 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21783 implementations.
21784 * remote-utils.c (struct sym_cache, symbol_cache): New.
21785 (input_interrupt): Print a clearer message.
21786 (async_io_enabled): New variable.
21787 (enable_async_io, disable_async_io): Use it. Update comments.
21788 (look_up_one_symbol): Use the symbol cache.
21789 * thread-db.c (thread_db_look_up_symbols): New function.
21790 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21791
f6de3c42
DJ
217922004-10-16 Daniel Jacobowitz <dan@debian.org>
21793
21794 * configure.in: Test for -rdynamic.
21795 * configure: Regenerated.
21796 * Makefile (INTERNAL_LDFLAGS): New.
21797 (gdbserver, gdbreplay): Use it.
21798
2c0fc042
AC
217992004-09-02 Andrew Cagney <cagney@gnu.org>
21800
21801 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21802
075b3282
DJ
218032004-03-23 Daniel Jacobowitz <drow@mvista.com>
21804
21805 * linux-low.c (linux_wait): Clear all_processes list also.
21806
fa6a77dc
DJ
218072004-03-12 Daniel Jacobowitz <drow@mvista.com>
21808
21809 * linux-low.c: Include <errno.h>. Remove extern declaration of
21810 errno.
21811
6d782a97
DJ
218122004-03-12 Daniel Jacobowitz <drow@mvista.com>
21813
21814 * gdbreplay.c, server.h, utils.c: Update copyright years.
21815
3a7fb99b
DJ
218162004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21817
21818 * server.c (main): Print child status or termination signal from
21819 variable 'signal', not 'sig'.
21820
c3e735a6
DJ
218212004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21822
21823 * linux-low.c (linux_read_memory): Change return type to
21824 int. Check for and return error from ptrace().
21825 * target.c (read_inferior_memory): Change return type to int. Pass
21826 back return status from the_target->read_memory().
21827 * target.h (struct target_ops): Adapt *read_memory() prototype.
21828 Update comment.
21829 (read_inferior_memory): Adapt prototype.
21830 * server.c (main): Return an error packet if
21831 read_inferior_memory() returns an error.
21832
a59d1c82
DJ
218332004-03-04 Daniel Jacobowitz <drow@mvista.com>
21834
21835 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21836 Unify with other clean targets.
21837
dc3f8883
DJ
218382004-02-29 Daniel Jacobowitz <drow@mvista.com>
21839
21840 * server.c (handle_v_cont): Call set_desired_inferior.
21841
89a208da
DJ
218422004-02-29 Daniel Jacobowitz <drow@mvista.com>
21843
21844 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21845
62ea82f5
DJ
218462004-02-29 Daniel Jacobowitz <drow@mvista.com>
21847
21848 * linux-low.c (linux_wait): Unblock async I/O.
21849 (linux_resume): Block and enable async I/O.
21850 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21851 * server.h (block_async_io, unblock_async_io): Add prototypes.
21852
6910d122
DJ
218532004-02-29 Daniel Jacobowitz <drow@mvista.com>
21854
21855 * remote-utils.c (remote_open): Print a status notice after
21856 opening a TCP port.
21857 * server.c (attach_inferior): Print a status notice after
21858 attaching.
21859
218602004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21861
21862 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21863
c89dc5d4
DJ
218642004-02-26 Daniel Jacobowitz <drow@mvista.com>
21865
21866 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21867 error packet.
21868 * server.c, target.h: Update copyright years.
21869
4b8dad4a
RM
218702004-02-25 Roland McGrath <roland@redhat.com>
21871
21872 * target.h (struct target_ops): New member `read_auxv'.
21873 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21874 * linux-low.c (linux_read_auxv): New function.
21875 (linux_target_ops): Initialize `read_auxv' member to that.
21876
d7446758
JB
218772004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21878
21879 Committed by Jim Blandy <jimb@redhat.com>.
21880
21881 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21882 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21883 instead of GPR_SIZE to distiguish s390 and s390x targets.
21884
5544ad89
DJ
218852004-01-31 Daniel Jacobowitz <drow@mvista.com>
21886
21887 * linux-low.c: Update copyright year.
21888 (check_removed_breakpoint): Clear pending_is_breakpoint.
21889 (linux_set_resume_request, linux_queue_one_thread)
21890 (resume_status_pending_p): New functions.
21891 (linux_continue_one_thread): Use process->resume.
21892 (linux_resume): Only resume threads if there are no pending events.
21893 * linux-low.h (struct process_info): Add resume request
21894 pointer.
21895
2a68b70e
DJ
218962004-01-30 Daniel Jacobowitz <drow@mvista.com>
21897
21898 * regcache.c (new_register_cache): Clear the allocated register
21899 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21900
64386c31
DJ
219012003-10-13 Daniel Jacobowitz <drow@mvista.com>
21902
21903 * linux-low.c (linux_resume): Take a struct thread_resume *
21904 argument.
21905 (linux_wait): Update call.
21906 (resume_ptr): New static variable.
21907 (linux_continue_one_thread): Renamed from
21908 linux_continue_one_process. Use resume_ptr.
21909 (linux_resume): Use linux_continue_one_thread.
21910 * server.c (handle_v_cont, handle_v_requests): New functions.
21911 (myresume): New function.
21912 (main): Handle 'v' case.
21913 * target.h (struct thread_resume): New type.
21914 (struct target_ops): Change argument of "resume" to struct
21915 thread_resume *.
21916 (myresume): Delete macro.
21917
c938e9b0
L
219182003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21919
21920 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21921 (uninstall): Support DESTDIR.
21922
7f313d07
BC
21923Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21924
21925 * configure.srv: Add xscale*linux copy of arm*linux entry.
21926
3b2fc2ea
DJ
219272003-07-24 Daniel Jacobowitz <drow@mvista.com>
21928
21929 * linux-arm-low.c (arm_reinsert_addr): New function.
21930 (the_low_target): Add arm_reinsert_addr.
21931
1c0a559e
MK
219322003-07-08 Mark Kettenis <kettenis@gnu.org>
21933
21934 * mem-break.c: Remove whitespace at end of file.
21935
43d5792c
DJ
219362003-06-28 Daniel Jacobowitz <drow@mvista.com>
21937
21938 * configure.in: Check whether we need to prototype strerror.
21939 * server.h: Optionally prototype strerror.
21940 * gdbreplay.c (perror_with_name): Use strerror.
21941 * linux-low.c (linux_attach_lwp): Use strerror.
21942 * utils.c (perror_with_name): Use strerror.
21943 * config.in, configure: Regenerated.
21944
c8a86edf
DJ
219452003-06-28 Daniel Jacobowitz <drow@mvista.com>
21946
21947 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21948 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21949
73d37363
DJ
219502003-06-20 Daniel Jacobowitz <drow@mvista.com>
21951
21952 * Makefile.in (SFILES): Update.
21953 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21954 low-sun3.c: Remove files.
21955
6ad8ae5c
DJ
219562003-06-17 Daniel Jacobowitz <drow@mvista.com>
21957
21958 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21959 (linux_detach_one_process, linux_detach): New functions.
21960 (linux_target_ops): Add linux_detach.
21961 * server.c (main): Handle 'D' packet.
21962 * target.h (struct target_ops): Add "detach" member.
21963 (detach_inferior): Define.
21964
1581182a
MK
219652003-06-13 Mark Kettenis <kettenis@gnu.org>
21966
21967 From Kelley Cook <kelleycook@wideopenwest.com>:
21968 * configure.srv: Accept i[34567]86 variants.
21969
e5379b03
DJ
219702003-06-05 Daniel Jacobowitz <drow@mvista.com>
21971
21972 * linux-low.c (linux_wait_for_event): Correct comment typos.
21973 (linux_resume_one_process): Call check_removed_breakpoint.
21974 (linux_send_signal): New function.
21975 (linux_target_ops): Add linux_send_signal.
21976 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21977 of kill.
21978 * target.h (struct target_ops): Add send_signal.
21979
2ff29de4
JB
219802003-05-29 Jim Blandy <jimb@redhat.com>
21981
21982 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21983 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21984 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21985 away part of the register's value.
21986
254787d4
DJ
219872003-03-26 Daniel Jacobowitz <drow@mvista.com>
21988
21989 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21990 (linux_wait_for_event, linux_init_signals): Likewise.
21991
94e10508
DJ
219922003-03-17 Daniel Jacobowitz <drow@mvista.com>
21993
21994 * configure.in: Check for stdlib.h.
21995 * configure: Regenerated.
21996 * config.in: Regenerated.
21997
4c0711e0
DJ
219982003-01-04 Andreas Schwab <schwab@suse.de>
21999
22000 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22001
ef66e766
AC
220022003-01-02 Andrew Cagney <ac131313@redhat.com>
22003
22004 * Makefile.in: Remove obsolete code.
22005
a1358604
DJ
220062002-11-20 Daniel Jacobowitz <drow@mvista.com>
22007
22008 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22009 defined(PT_FPR0_HI).
22010
23ce3b1c
DJ
220112002-11-17 Stuart Hughes <seh@zee2.com>
22012
22013 * linux-arm-low.c (arm_num_regs): Increase.
22014 (arm_regmap): Include status register.
22015
220162002-11-17 Daniel Jacobowitz <drow@mvista.com>
22017
22018 * linux-low.c (register_addr): Remove incorrect -1 check.
22019
a9fa9f7d
DJ
220202002-08-29 Daniel Jacobowitz <drow@mvista.com>
22021
22022 * linux-low.c (linux_create_inferior): Call setpgid. Return
22023 the new PID.
22024 (unstopped_p, linux_signal_pid): Remove.
22025 (linux_target_ops): Remove linux_signal_pid.
22026 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22027 global instead of target method.
22028 * target.h (struct target_ops): Remove signal_pid. Update comment
22029 for create_inferior.
22030 * server.c (signal_pid): New variable.
22031 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22032 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22033 (attach_inferior): Set signal_pid.
22034
17574093
DJ
220352002-08-23 Daniel Jacobowitz <drow@mvista.com>
22036
22037 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22038
220392002-08-20 Jim Blandy <jimb@redhat.com>
22040
22041 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22042 default for this.
22043
220442002-08-01 Andrew Cagney <cagney@redhat.com>
22045
22046 * Makefile.in: Make chill references obsolete.
22047
220482002-07-24 Kevin Buettner <kevinb@redhat.com>
22049
22050 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22051 * configure: Regenerate.
22052 * config.in: Regenerate.
22053
220542002-07-09 David O'Brien <obrien@FreeBSD.org>
22055
22056 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22057 (perror_with_name, remote_close, remote_open, expect, play): Static.
22058
220592002-07-04 Michal Ludvig <mludvig@suse.cz>
22060
4b8dad4a 22061 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22062 byte offsets instead of an array of indexes.
22063 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22064
220652002-06-13 Daniel Jacobowitz <drow@mvista.com>
22066
22067 * regcache.c: Add comment.
22068
220692002-06-11 Daniel Jacobowitz <drow@mvista.com>
22070
22071 * thread-db.c: New file.
22072 * proc-service.c: New file.
22073 * acinclude.m4: New file.
22074 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22075 proc-service.o, and thread-db.o.
22076 (linux-low.o): Add USE_THREAD_DB.
22077 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22078 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22079 * aclocal.m4: Regenerated.
22080 * config.in: Regenerated.
22081 * configure: Regenerated.
22082 * configure.in: Check for proc_service.h, sys/procfs.h,
22083 thread_db.h, and linux/elf.h headrs.
22084 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22085 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22086 Check for -lthread_db and thread support.
22087 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22088 PowerPC, and SuperH.
22089 * i387-fp.c: Constify arguments.
22090 * i387-fp.h: Likewise.
22091 * inferiors.c: (struct thread_info): Renamed from
22092 `struct inferior_info'. Remove PID member. Use generic inferior
22093 list header. All uses updated.
22094 (inferiors, signal_pid): Removed.
22095 (all_threads): New variable.
22096 (get_thread): Define.
22097 (add_inferior_to_list): New function.
22098 (for_each_inferior): New function.
22099 (change_inferior_id): New function.
22100 (add_inferior): Removed.
22101 (remove_inferior): New function.
22102 (add_thread): New function.
22103 (free_one_thread): New function.
22104 (remove_thread): New function.
22105 (clear_inferiors): Use for_each_inferior and free_one_thread.
22106 (find_inferior): New function.
22107 (find_inferior_id): New function.
22108 (inferior_target_data): Update argument type.
22109 (set_inferior_target_data): Likewise.
22110 (inferior_regcache_data): Likewise.
22111 (set_inferior_regcache_data): Likewise.
22112 * linux-low.c (linux_bp_reinsert): Remove.
22113 (all_processes, stopping_threads, using_thrads)
22114 (struct pending_signals, debug_threads, pid_of): New.
22115 (inferior_pid): Replace with macro.
22116 (struct inferior_linux_data): Remove.
22117 (get_stop_pc, add_process): New functions.
22118 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22119 Use add_process and add_thread.
22120 (linux_attach_lwp): New function, based on old linux_attach. Use
22121 add_process and add_thread. Set stop_expected for new threads.
22122 (linux_attach): New function.
22123 (linux_kill_one_process): New function.
22124 (linux_kill): Kill all LWPs.
22125 (linux_thread_alive): Use find_inferior_id.
22126 (check_removed_breakpoints, status_pending_p): New functions.
22127 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22128 Update. Use WNOHANG. Wait for cloned processes also. Update process
22129 struct for the found process.
22130 (linux_wait_for_event): New function.
22131 (linux_wait): Use it. Support LWPs.
22132 (send_sigstop, wait_for_sigstop, stop_all_processes)
22133 (linux_resume_one_process, linux_continue_one_process): New functions.
22134 (linux_resume): Support LWPs.
22135 (REGISTER_RAW_SIZE): Remove.
22136 (fetch_register): Use register_size instead. Call supply_register.
22137 (usr_store_inferior_registers): Likewise. Call collect_register.
22138 Fix recursive case.
22139 (regsets_fetch_inferior_registers): Improve error message.
22140 (regsets_store_inferior_registers): Add debugging.
22141 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22142 (unstopped_p, linux_signal_pid): New functions.
22143 (linux_target_ops): Add linux_signal_pid.
22144 (linux_init_signals): New function.
22145 (initialize_low): Call it. Initialize using_threads.
22146 * regcache.c (inferior_regcache_data): Add valid
22147 flag.
22148 (get_regcache): Fetch registers lazily. Add fetch argument
22149 and update all callers.
22150 (regcache_invalidate_one, regcache_invalidate): New
22151 functions.
22152 (new_register_cache): Renamed from create_register_cache.
22153 Return the new regcache.
22154 (free_register_cache): Change argument to a void *.
22155 (registers_to_string, registers_from_string): Call get_regcache
22156 with fetch flag set.
22157 (register_data): Make static. Pass fetch flag to get_regcache.
22158 (supply_register): Call get_regcache with fetch flag clear.
22159 (collect_register): Call get_regcache with fetch flag set.
22160 (collect_register_as_string): New function.
22161 * regcache.h: Update.
22162 * remote-utils.c (putpkt): Flush after debug output and use
22163 stderr.
22164 Handle input interrupts while waiting for an ACK.
22165 (input_interrupt): Use signal_pid method.
22166 (getpkt): Flush after debug output and use stderr.
22167 (outreg): Use collect_register_as_string.
22168 (new_thread_notify, dead_thread_notify): New functions.
22169 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22170 and general_thread.
22171 (look_up_one_symbol): Flush after debug output.
22172 * server.c (step_thread, server_waiting): New variables.
22173 (start_inferior): Don't use signal_pid. Update call to mywait.
22174 (attach_inferior): Update call to mywait.
22175 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22176 (main): Don't fetch/store registers explicitly. Use
22177 set_desired_inferior. Support proposed ``Hs'' packet. Update
22178 calls to mywait.
22179 * server.h: Update.
22180 (struct inferior_list, struct_inferior_list_entry): New.
22181 * target.c (set_desired_inferior): New.
22182 (write_inferior_memory): Constify.
22183 (mywait): New function.
22184 * target.h: Update.
22185 (struct target_ops): New signal_pid method.
22186 (mywait): Removed macro, added prototype.
22187
22188 * linux-low.h (regset_func): Removed.
22189 (regset_fill_func, regset_store_func): New.
22190 (enum regset_type): New.
22191 (struct regset_info): Add type field. Use new operation types.
22192 (struct linux_target_ops): stop_pc renamed to get_pc.
22193 Add decr_pc_after_break and breakpoint_at.
22194 (get_process, get_thread_proess, get_process_thread)
22195 (strut process_info, all_processes, linux_attach_lwp)
22196 (thread_db_init): New.
22197
22198 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22199 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22200 (the_low_target): Add new members.
22201 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22202 (i386_store_fpxregset): Constify.
22203 (target_regsets): Add new kind identifier.
22204 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22205 (i386_set_pc): Add debugging.
22206 (i386_breakpoint_at): New function.
22207 (the_low_target): Add new members.
22208 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22209 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22210 (mips_breakpoint_at): New.
22211 (the_low_target): Add new members.
22212 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22213 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22214 (the_low_target): Add new members.
22215 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22216 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22217 (the_low_target): Add new members.
22218 * linux-x86-64-low.c (target_regsets): Add new kind
22219 identifier.
22220
222212002-05-15 Daniel Jacobowitz <drow@mvista.com>
22222
22223 From Martin Pool <mbp@samba.org>:
22224 * server.c (gdbserver_usage): New function.
22225 (main): Call it.
22226
222272002-05-14 Daniel Jacobowitz <drow@mvista.com>
22228
22229 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22230 stop_at -> stop_pc.
22231
222322002-05-04 Andrew Cagney <ac131313@redhat.com>
22233
22234 * Makefile.in: Remove obsolete code.
22235
222362002-04-24 Michal Ludvig <mludvig@suse.cz>
22237
22238 * linux-low.c (regsets_fetch_inferior_registers),
22239 (regsets_store_inferior_registers): Removed cast to int from
22240 ptrace() calls.
22241 * regcache.h: Added declaration of struct inferior_info.
22242
222432002-04-20 Daniel Jacobowitz <drow@mvista.com>
22244
22245 * inferiors.c (struct inferior_info): Add regcache_data.
22246 (add_inferior): Call create_register_cache.
22247 (clear_inferiors): Call free_register_cache.
22248 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22249 * regcache.c (struct inferior_regcache_data): New.
22250 (registers): Remove.
22251 (get_regcache): New function.
22252 (create_register_cache, free_register_cache): New functions.
22253 (set_register_cache): Don't initialize the register cache here.
22254 (registers_to_string, registers_from_string, register_data): Call
22255 get_regcache.
22256 * regcache.h: Add prototypes.
22257 * server.h: Likewise.
22258
222592002-04-20 Daniel Jacobowitz <drow@mvista.com>
22260
22261 * mem-break.c: New file.
22262 * mem-break.h: New file.
22263 * Makefile.in: Add mem-break.o rule; update server.h
22264 dependencies.
22265 * inferiors.c (struct inferior_info): Add target_data
22266 member.
22267 (clear_inferiors): Free target_data member if set.
22268 (inferior_target_data, set_inferior_target_data): New functions.
22269 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22270 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22271 * linux-low.c (linux_bp_reinsert): New variable.
22272 (struct inferior_linux_data): New.
22273 (linux_create_inferior): Use set_inferior_target_data.
22274 (linux_attach): Likewise. Call add_inferior.
22275 (linux_wait_for_one_inferior): New function.
22276 (linux_wait): Call it.
22277 (linux_write_memory): Add const.
22278 (initialize_low): Call set_breakpoint_data.
22279 * linux-low.h (struct linux_target_ops): Add breakpoint
22280 handling members.
22281 * server.c (attach_inferior): Remove extra add_inferior
22282 call.
22283 * server.h: Include mem-break.h. Update inferior.c
22284 prototypes.
22285 * target.c (read_inferior_memory)
22286 (write_inferior_memory): New functions.
22287 * target.h (read_inferior_memory)
22288 (write_inferior_memory): Change macros to prototypes.
22289 (struct target_ops): Update comments. Add const to write_memory
22290 definition.
22291
222922002-04-11 Daniel Jacobowitz <drow@mvista.com>
22293
22294 * linux-low.c (usr_store_inferior_registers): Support
22295 registers which are allowed to fail to store.
22296 * linux-low.h (linux_target_ops): Likewise.
22297 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22298 (ppc_cannot_store_register): FPSCR may not be storable.
22299
223002002-04-09 Daniel Jacobowitz <drow@mvista.com>
22301
22302 * server.h: Include <string.h> if HAVE_STRING_H.
22303 * ChangeLog: Correct paths in last ChangeLog entry.
22304
223052002-04-09 Daniel Jacobowitz <drow@mvista.com>
22306
22307 * linux-low.h: Remove obsolete prototypes.
22308 (struct linux_target_ops): New.
22309 (extern the_low_target): New.
22310 * linux-low.c (num_regs, regmap): Remove declarations.
22311 (register_addr): Use the_low_target explicitly.
22312 (fetch_register): Likewise.
22313 (usr_fetch_inferior_registers): Likewise.
22314 (usr_store_inferior_registers): Likewise.
22315 * linux-arm-low.c (num_regs): Remove.
22316 (arm_num_regs): Define.
22317 (arm_regmap): Renamed from regmap, made static.
22318 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22319 made static.
22320 (arm_cannot_store_register): Renamed from cannot_store_register,
22321 made static.
22322 (the_low_target): New.
22323 * linux-i386-low.c (num_regs): Remove.
22324 (i386_num_regs): Define.
22325 (i386_regmap): Renamed from regmap, made static.
22326 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22327 made static.
22328 (i386_cannot_store_register): Renamed from cannot_store_register,
22329 made static.
22330 (the_low_target): New.
22331 * linux-ia64-low.c (num_regs): Remove.
22332 (ia64_num_regs): Define.
22333 (ia64_regmap): Renamed from regmap, made static.
22334 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22335 made static.
22336 (ia64_cannot_store_register): Renamed from cannot_store_register,
22337 made static.
22338 (the_low_target): New.
22339 * linux-m68k-low.c (num_regs): Remove.
22340 (m68k_num_regs): Define.
22341 (m68k_regmap): Renamed from regmap, made static.
22342 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22343 made static.
22344 (m68k_cannot_store_register): Renamed from cannot_store_register,
22345 made static.
22346 (the_low_target): New.
22347 * linux-mips-low.c (num_regs): Remove.
22348 (mips_num_regs): Define.
22349 (mips_regmap): Renamed from regmap, made static.
22350 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22351 made static.
22352 (mips_cannot_store_register): Renamed from cannot_store_register,
22353 made static.
22354 (the_low_target): New.
22355 * linux-ppc-low.c (num_regs): Remove.
22356 (ppc_num_regs): Define.
22357 (ppc_regmap): Renamed from regmap, made static.
22358 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22359 made static.
22360 (ppc_cannot_store_register): Renamed from cannot_store_register,
22361 made static.
22362 (the_low_target): New.
22363 * linux-s390-low.c (num_regs): Remove.
22364 (s390_num_regs): Define.
22365 (s390_regmap): Renamed from regmap, made static.
22366 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22367 made static.
22368 (s390_cannot_store_register): Renamed from cannot_store_register,
22369 made static.
22370 (the_low_target): New.
22371 * linux-sh-low.c (num_regs): Remove.
22372 (sh_num_regs): Define.
22373 (sh_regmap): Renamed from regmap, made static.
22374 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22375 made static.
22376 (sh_cannot_store_register): Renamed from cannot_store_register,
22377 made static.
22378 (the_low_target): New.
22379 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22380 (the_low_target): New.
22381
223822002-04-09 Daniel Jacobowitz <drow@mvista.com>
22383
22384 * Makefile.in: Add stamp-h target.
22385 * configure.in: Create stamp-h.
22386 * configure: Regenerated.
22387
223882002-04-09 Daniel Jacobowitz <drow@mvista.com>
22389
22390 * inferiors.c: New file.
22391 * target.c: New file.
22392 * target.h: New file.
22393 * Makefile.in: Add target.o and inferiors.o. Update
22394 dependencies.
22395 * linux-low.c (inferior_pid): New static variable,
22396 moved from server.c.
22397 (linux_create_inferior): Renamed from create_inferior.
22398 Call add_inferior. Return 0 on success instead of a PID.
22399 (linux_attach): Renamed from myattach.
22400 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22401 (linux_thread_alive): Renamed from mythread_alive.
22402 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22403 child dies.
22404 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22405 (regsets_store_inferior_registers): Correct error message.
22406 Add missing ``return 0''.
22407 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22408 (linux_store_registers): Renamed from store_inferior_registers.
22409 (linux_read_memory): Renamed from read_inferior_memory.
22410 (linux_write_memory): Renamed from write_inferior_memory.
22411 (linux_target_ops): New structure.
22412 (initialize_low): Call set_target_ops ().
22413 * remote-utils.c (unhexify): New function.
22414 (hexify): New function.
22415 (input_interrupt): Send signals to ``signal_pid''.
22416 * server.c (inferior_pid): Remove.
22417 (start_inferior): Update create_inferior call.
22418 (attach_inferior): Call add_inferior.
22419 (handle_query): New function.
22420 (main): Call handle_query for `q' packets.
22421 * server.h: Include "target.h". Remove obsolete prototypes.
22422 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22423
224242002-04-09 Daniel Jacobowitz <drow@mvista.com>
22425
22426 * Makefile.in: Add WARN_CFLAGS. Update configury
22427 dependencies.
22428 * configure.in: Check for <string.h>
22429 * configure: Regenerate.
22430 * config.in: Regenerate.
22431 * gdbreplay.c: Include needed system headers.
22432 (remote_open): Remove strchr prototype.
22433 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22434 * regcache.c (supply_register): Change buf argument to const void *.
22435 (supply_register_by_name): Likewise.
22436 (collect_register): Change buf argument to void *.
22437 (collect_register_by_name): Likewise.
22438 * regcache.h: Add missing prototypes.
22439 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22440 * server.c (handle_query): New function.
22441 (attached): New static variable, moved out of main.
22442 (main): Quiet longjmp clobber warnings.
22443 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22444 * utils.c (error): Remove NORETURN.
22445 (fatal): Likewise.