Move simple_search_memory to gdbsupport/search.cc
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
a038ffd8
SM
12020-10-07 Simon Marchi <simon.marchi@efficios.com>
2
3 * Makefile.in (COMPILE): Add CXXFLAGS.
4 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
5 (gdbserver$(EXEEXT)): Add CXXFLAGS.
6 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
7 ($(IPA_LIB)): Add CXXFLAGS.
8 (IPAGENT_COMPILE): Add CXXFLAGS.
9
bbe90b5d 102020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
11
12 * configure.srv: Support ARC architecture.
13 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
14 * linux-arc-low.cc: New file.
15
48491055
KR
162020-10-07 Kamil Rytarowski <n54@gmx.com>
17
18 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
19 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
20 (netbsd_process_target::qxfer_libraries_svr4): Update.
21
2be01f63
KR
222020-10-07 Kamil Rytarowski <n54@gmx.com>
23
24 * netbsd-low.cc: Fix whitespace formatting.
25 * netbsd-amd64-low.cc: Likewise.
26
91e5e8db
KR
272020-10-07 Kamil Rytarowski <n54@gmx.com>
28
29 * netbsd-low.cc (netbsd_process_target::read_memory)
30 (netbsd_process_target::write_memory): Update.
31
9529c852
KR
322020-10-07 Kamil Rytarowski <n54@gmx.com>
33
34 * netbsd-aarch64-low.cc: Add.
35 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
36 * configure.srv: Add aarch64*-*-netbsd*.
37
981b570a
SV
382020-10-06 Shahab Vahedi <shahab@synopsys.com>
39
40 * regcache.cc (register_data): Remove unused "fetch" argument.
41
6b01403b
SM
422020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * server.cc (handle_monitor_command): Handle "set
45 debug-event-loop".
46 (captured_main): Handle "--debug-event-loop".
47 (monitor_show_help): Mention new setting.
48 (gdbserver_usage): Mention new flag.
49
2554f6f5
SM
502020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * linux-low.cc (linux_process_target::async): Pass name to
53 add_file_handler.
54 * remote-utils.cc (handle_accept_event): Likewise.
55 (remote_open): Likewise.
56
8b667fae
KR
572020-10-01 Kamil Rytarowski <n54@gmx.com>
58
59 * netbsd-i386-low.cc: Add.
60 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
61 * configure.srv: Add i[34567]86-*-netbsd*.
62
15397b0e
KR
632020-10-01 Kamil Rytarowski <n54@gmx.com>
64
65 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
66 (netbsd_target_regsets): Now const.
67 (the_low_target): Remove.
68 (class netbsd_amd64_target, the_netbsd_amd64_target)
69 (the_netbsd_target): Add.
70 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
71 low_arch_setup ().
72 (netbsd_process_target::fetch_registers)
73 (netbsd_process_target::store_registers, initialize_low): Update.
74 (the_netbsd_target): Remove.
75 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
76 (the_low_target, netbsd_tdesc): Remove.
77 (netbsd_process_target::get_regs_info)
78 (netbsd_process_target::low_arch_setup): Add.
79
99bb393f
HD
802020-09-23 Hannes Domani <ssbssa@yahoo.de>
81
82 * win32-low.cc: Remove local wow64_process variable.
83 * win32-low.h: Remove local wow64_process variable.
84
b60cea74
TT
852020-09-18 Tom Tromey <tromey@adacore.com>
86
87 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
88 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
89 (netbsd_process_target::wait): Change type of target_options.
90 * win32-low.h (class win32_process_target) <wait>: Update.
91 * win32-low.cc (win32_process_target::wait): Update.
92 * target.h (class process_stratum_target) <wait>: Update.
93 (mywait): Update.
94 * target.cc (mywait, target_wait): Change type of "options".
95 * linux-low.h (class linux_process_target) <wait, wait_1>:
96 Update.
97 * linux-low.cc (linux_process_target::wait)
98 (linux_process_target::wait_1): Update.
99
db92ac45
TT
1002020-09-15 Tom Tromey <tromey@adacore.com>
101
102 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
103 (xmltarget_amd64_linux_no_xml): Now arrays.
104
27087b7f
TT
1052020-09-14 Tom Tromey <tromey@adacore.com>
106
107 * tracepoint.cc (eval_result_names): Now const.
108 * ax.cc (gdb_agent_op_names): Now const.
109
62ba5048
KR
1102020-09-10 Kamil Rytarowski <n54@gmx.com>
111
112 * netbsd-low.cc: Add.
113 * netbsd-low.h: Likewise.
114 * netbsd-amd64-low.cc: Likewise.
115 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
116 "netbsd-amd64-low.cc".
117 * configure.srv: Add x86_64-*-netbsd*.
118
ece5bc8a
SM
1192020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
120
121 * server.cc (captured_main): Accept multiple `--selftest=`
122 options. Pass all `--selftest=` arguments to run_tests.
123
c8693053
RO
1242020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
125
126 * configure, config.in: Regenerate.
127
05a6b8c2
EZ
1282020-07-26 Eli Zaretskii <eliz@gnu.org>
129
130 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
131 When checking whether socklen_t type is defined, use ws2tcpip.h if
132 it is available and sys/socket.h isn't.
133 * configure: Regenerate.
134 * config.in: Regenerate.
135
028a4603
PA
1362020-07-22 Pedro Alves <pedro@palves.net>
137
138 * inferiors.cc (switch_to_process): New, moved here from
139 thread-db.cc, and made extern.
140 * inferiors.h (switch_to_process): Declare.
141 * server.cc: Include "gdbsupport/scoped_restore.h".
142 (handle_qxfer_threads_proper): Now returns bool. Prepare to
143 access memory around target calls.
144 (handle_qxfer_threads): Handle errors.
145 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
146
05c309a8
SM
1472020-07-21 Simon Marchi <simon.marchi@efficios.com>
148
149 * linux-low.cc (stopped_pids): Make static.
150
0e267416
AB
1512020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * tdesc.cc (allocate_target_description): Add header comment.
154 (target_desc_deleter::operator()): New function.
155 * tdesc.h (struct target_desc): Declare as final.
156
b315b67d
SM
1572020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * server.cc (handle_query): Use std::vector of
160 std::string for `qsupported` vector. Use separate
161 vector for unknowns.
162 * target.h (class process_stratum_target) <process_qsupported>:
163 Change parameters to array_view of const char *.
164 (target_process_qsupported): Remove `count` parameter.
165 * target.cc (process_stratum_target::process_qsupported): Change
166 parameters to array_view of const char *.
167 * linux-x86-low.cc (class x86_target) <process_qsupported>:
168 Likewise.
169
f638ed73
TV
1702020-06-29 Tom de Vries <tdevries@suse.de>
171
172 * ax.h: Include gdbsupport/debug_agent.h.
173
fbf42f4e
AB
1742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
175
176 * tdesc.cc (struct tdesc_compatible_info): New struct.
177 (tdesc_compatible_info_list): New function.
178 (tdesc_compatible_info_arch_name): New function.
179
013e3554
TBA
1802020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
181
182 Use std::list to stop pending signal instead of manually-created
183 linked list.
184 * linux-low.h: Include <list>.
185 (struct pending_signal): Move here from linux-low.cc.
186 (struct lwp_info) <pending_signals>
187 <pending_signals_to_report>: Update the type.
188 * linux-low.cc (struct pending_signals): Remove.
189 (linux_process_target::delete_lwp)
190 (linux_process_target::add_lwp)
191 (enqueue_one_deferred_signal)
192 (dequeue_one_deferred_signal)
193 (enqueue_pending_signal)
194 (linux_process_target::resume_one_lwp_throw)
195 (linux_process_target::thread_needs_step_over)
196 (linux_process_target::resume_one_thread)
197 (linux_process_target::proceed_one_lwp): Update the use of pending
198 signal list.
199
7d458ea5
SM
2002020-06-17 Simon Marchi <simon.marchi@efficios.com>
201
202 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
203 Remove.
204
84b300de
SM
2052020-06-12 Simon Marchi <simon.marchi@efficios.com>
206
207 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
208 * configure.srv: Remove mingw32ce cases.
209 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
210 * win32-low.h (to_back_slashes): Remove.
211 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
212
96c16e2b
SM
2132020-06-12 Simon Marchi <simon.marchi@efficios.com>
214
215 * Makefile.in (SFILES): linux-tile-low.cc.
216 * configure.srv: Remove tilegx case.
217 * linux-tile-low.cc: Remove.
218
bd1467ae
SM
2192020-06-12 Simon Marchi <simon.marchi@efficios.com>
220
221 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
222 * configure.srv: Remove m32r case.
223 * linux-m32r-low.cc: Remove.
224
7b46bf6f
SM
2252020-06-12 Simon Marchi <simon.marchi@efficios.com>
226
227 * Makefile.in (SFILES): Remove linux-cris-low.c.
228 * configure.srv: Remove cris cases.
229 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
230
1fa29f56
SM
2312020-06-12 Simon Marchi <simon.marchi@efficios.com>
232
233 * Makefile.in (SFILES): Remove linux-bfin-low.c.
234 * configure.srv: Remove bfin case.
235 * linux-bfin-low.cc: Remove.
236 * linux-low.cc: Remove BFIN-conditional code.
237
613f149a
SM
2382020-06-12 Simon Marchi <simon.marchi@efficios.com>
239
240 * configure: Re-generate.
241 * configure.ac: Remove srv_qnx test.
242 * configure.srv: Remove nto case.
243 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
244 * remote-utils.c: Remove __QNX__-guarded code.
245
fdb95bf5
SM
2462020-06-12 Simon Marchi <simon.marchi@efficios.com>
247
248 * configure: Re-generate.
249 * configure.ac: Remove srv_lynxos test.
250 * configure.srv: Remove lynxos cases.
251 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
252 Remove.
253
c00094dc
SM
2542020-06-12 Simon Marchi <simon.marchi@efficios.com>
255
256 * README: Fix a few outdated or incoherent things.
257
6479bf85
HD
2582020-05-27 Hannes Domani <ssbssa@yahoo.de>
259
260 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
261 (win32_clear_inferiors): Use open_process_used.
262 (get_child_debug_event): Likewise.
263
bea571eb
MW
2642020-05-25 Michael Weghorn <m.weghorn@posteo.de>
265
266 PR gdbserver/25893
267 * linux-low.cc (linux_process_target::create_inferior),
268 lynx-low.cc (lynx_process_target::create_inferior),
269 win32-low.cc (win32_process_target::create_inferior): Use
270 construct_inferior_arguments instead of stringify_argv
271 to get string representation which properly escapes
272 special characters.
273 * server.cc (handle_v_run): Just pass empty program arg
274 as such, since any further processing is now handled via
275 construct_inferior_arguments.
276
ace6b919
MW
2772020-05-25 Michael Weghorn <m.weghorn@posteo.de>
278
279 * nto-low.cc (nto_process_target::create_inferior): Pass
280 argv to spawnp function as char **.
281
b69ca137
MW
2822020-05-25 Michael Weghorn <m.weghorn@posteo.de>
283
284 * server.cc (captured_main), (handle_v_run): No longer
285 insert extra NULL element to args vector.
286
51e2cfa2
PA
2872020-05-23 Pedro Alves <palves@redhat.com>
288
289 * gdb-safe-ctype.h: New.
290
8bbf0394
TBA
2912020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
292
293 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
294 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
295 (ia64_target::low_breakpoint_at): Ditto.
296
01370779
HD
2972020-05-15 Hannes Domani <ssbssa@yahoo.de>
298
299 * win32-i386-low.cc (i386_supports_z_point_type): Handle
300 Z_PACKET_HW_BP z_type.
301 (i386_insert_point): Handle raw_bkpt_type type.
302 (i386_remove_point): Likewise.
303
7d186bc0
HD
3042020-04-30 Hannes Domani <ssbssa@yahoo.de>
305
306 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
307 Add arch/i386.o.
308 * win32-arm-low.cc (arm_num_regs): New function.
309 (struct win32_target_ops): Use arm_num_regs.
310 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
311 processes.
312 (i386_get_thread_context): Likewise.
313 (i386_prepare_to_resume): Likewise.
314 (i386_thread_added): Likewise.
315 (i386_single_step): Likewise.
316 (i386_fetch_inferior_register): Likewise.
317 (i386_store_inferior_register): Likewise.
318 (i386_arch_setup): Likewise.
319 (i386_win32_num_regs): New function.
320 (struct win32_target_ops): Use i386_win32_num_regs.
321 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
322 processes.
323 (win32_require_context): Likewise.
324 (child_add_thread): Likewise.
325 (do_initial_child_stuff): Likewise.
326 (continue_one_thread): Likewise.
327 (win32_process_target::resume): Likewise.
328 (load_psapi): Likewise.
329 (win32_add_all_dlls): Likewise.
330 (maybe_adjust_pc): Likewise.
331 (win32_process_target::qxfer_siginfo): Likewise.
332 (initialize_low): Likewise.
333 * win32-low.h (struct win32_target_ops): Change num_regs to
334 callback function.
335
1eb39914
SM
3362020-04-27 Simon Marchi <simon.marchi@efficios.com>
337
338 * configure.ac: Remove check for fs_base/gs_base in
339 user_regs_struct.
340 * configure: Re-generate.
341 * config.in: Re-generate.
342 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
343 x86_store_gregset): Adjust.
344
51ac8e22
HD
3452020-04-22 Hannes Domani <ssbssa@yahoo.de>
346
347 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
348 comparison.
349
a010605f
TT
3502020-04-16 Tom Tromey <tromey@adacore.com>
351
352 * win32-low.cc (windows_nat::handle_access_violation): New
353 function.
354
e2275c6e
SM
3552020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
356
357 * win32-low.cc (get_child_debug_event): Fix format string warning.
358
73944e9f
TT
3592020-04-13 Tom Tromey <tom@tromey.com>
360
361 * server.h (gdb_fildes_t): Remove typedef.
362 * remote-utils.c (remote_desc, list_desc): Now int.
363 (INVALID_DESCRIPTOR): Remove.
364 (gdb_connected, remote_close)
365 (check_remote_input_interrupt_request): Update.
366 * utils.h (pfildes): Don't declare.
367 * utils.c (pfildes): Remove.
368
55d7aec8
TT
3692020-04-13 Tom Tromey <tom@tromey.com>
370
371 * server.h (handle_serial_event, handle_target_event): Update.
372 * server.c: Don't call initialize_event_loop.
373 (keep_processing_events): New global.
374 (handle_serial_event): Return void. Set keep_processing_events.
375 (handle_target_event): Return void.
376 (start_event_loop): Move from event-loop.c. Rewrite.
377 * remote-utils.c (handle_accept_event): Return void.
378 (reset_readchar): Use delete_timer.
379 (process_remaining): Return void.
380 (reschedule): Use create_timer.
381 * event-loop.h: Remove.
382 * event-loop.cc: Remove.
383 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
384
e487f994
TT
3852020-04-13 Tom Tromey <tom@tromey.com>
386
387 * server.c (invoke_async_signal_handlers)
388 (check_async_event_handlers, flush_streams, gdb_select): New
389 functions.
390
8ae8e197
TT
3912020-04-13 Tom Tromey <tom@tromey.com>
392
393 * configure: Rebuild.
394 * config.in: Rebuild.
395
360ad8b3
TT
3962020-04-08 Tom Tromey <tromey@adacore.com>
397
398 PR gdb/22992
399 * win32-low.c (child_continue): Call matching_pending_stop.
400 (get_child_debug_event): Call fetch_pending_stop. Push pending
401 stop when needed.
402
523d4f80
TT
4032020-04-08 Tom Tromey <tromey@adacore.com>
404
405 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
406 (win32_process_target::supports_stopped_by_sw_breakpoint):
407 Declare.
408 * win32-low.c (win32_supports_z_point_type): Always handle
409 Z_PACKET_SW_BP.
410 (win32_insert_point): Call insert_memory_breakpoint when needed.
411 (win32_remove_point): Call remove_memory_breakpoint when needed.
412 (win32_process_target::stopped_by_sw_breakpoint)
413 (win32_process_target::supports_stopped_by_sw_breakpoint): New
414 methods.
415 (win32_target_ops): Update.
416 (maybe_adjust_pc): New function.
417 (win32_wait): Call maybe_adjust_pc.
418
e54e5929
TT
4192020-04-08 Tom Tromey <tromey@adacore.com>
420
421 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
422 field.
423 * win32-i386-low.c (the_low_target): Update.
424 * win32-arm-low.c (the_low_target): Update.
425
d6225aff
TT
4262020-04-08 Tom Tromey <tromey@adacore.com>
427
428 * win32-low.h (win32_process_target::read_pc)
429 (win32_process_target::write_pc): Declare.
430 * win32-low.c (win32_process_target::read_pc)
431 (win32_process_target::write_pc): New methods.
432 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
433 functions.
434 (the_low_target): Update.
435 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
436 functions.
437 (the_low_target): Update.
438
2c1d95e8
TT
4392020-04-08 Tom Tromey <tromey@adacore.com>
440
441 * win32-low.c (win32_kill, get_child_debug_event): Use
442 wait_for_debug_event.
443
e758e19c
TT
4442020-04-08 Tom Tromey <tromey@adacore.com>
445
446 * win32-low.c (child_continue): Call continue_last_debug_event.
447
8d30e395
TT
4482020-04-08 Tom Tromey <tromey@adacore.com>
449
450 * win32-low.c (handle_exception): Remove.
451 (windows_nat::handle_ms_vc_exception): New function.
452 (get_child_debug_event): Add "continue_status" parameter.
453 Update.
454 (win32_wait): Update.
455
a816ba18
TT
4562020-04-08 Tom Tromey <tromey@adacore.com>
457
458 * win32-low.c (windows_nat::handle_load_dll): Rename from
459 handle_load_dll. No longer static.
460 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
461 No longer static.
462
d41b524f
TT
4632020-04-08 Tom Tromey <tromey@adacore.com>
464
465 * win32-low.c (handle_output_debug_string): Add parameter. Change
466 return type.
467 (win32_kill, get_child_debug_event): Update.
468
3c76026d
TT
4692020-04-08 Tom Tromey <tromey@adacore.com>
470
471 * win32-low.c (current_process_handle, current_process_id)
472 (main_thread_id, last_sig, current_event, siginfo_er): Move to
473 nat/windows-nat.c.
474
9d8679cc
TT
4752020-04-08 Tom Tromey <tromey@adacore.com>
476
477 * win32-low.c (get_image_name): Remove.
478 (handle_load_dll): Update.
479
28688adf
TT
4802020-04-08 Tom Tromey <tromey@adacore.com>
481
482 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
483 No longer static. Change parameters.
484 (child_add_thread, child_fetch_inferior_registers)
485 (child_store_inferior_registers, win32_resume)
486 (win32_get_tib_address): Update.
487
4834dad0
TT
4882020-04-08 Tom Tromey <tromey@adacore.com>
489
490 * win32-low.h (struct win32_target_ops): Use qualified names where
491 needed.
492 * win32-i386-low.c: Add "using namespace".
493 * win32-low.c: Add "using namespace".
494 * win32-arm-low.c: Add "using namespace".
495
65bafd5b
TT
4962020-04-08 Tom Tromey <tromey@adacore.com>
497
498 * win32-low.c (delete_thread_info): Don't call CloseHandle.
499
98a03287
TT
5002020-04-08 Tom Tromey <tromey@adacore.com>
501
502 * win32-low.c (win32_require_context, suspend_one_thread): Use
503 windows_thread_info::suspend.
504 (continue_one_thread): Use windows_thread_info::resume.
505 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
506
62fe396b
TT
5072020-04-08 Tom Tromey <tromey@adacore.com>
508
509 * win32-i386-low.c (update_debug_registers)
510 (i386_prepare_to_resume, i386_thread_added): Update.
511
e9534bd2
TT
5122020-04-08 Tom Tromey <tromey@adacore.com>
513
514 * win32-low.c (child_add_thread): Use new.
515 (delete_thread_info): Use delete.
516
ae1f8880
TT
5172020-04-08 Tom Tromey <tromey@adacore.com>
518
519 * win32-low.h (struct windows_thread_info): Remove.
520
e56f8ccb
TT
5212020-04-08 Tom Tromey <tromey@adacore.com>
522
523 * win32-low.h (struct windows_thread_info): Rename from
524 win32_thread_info. Remove typedef.
525 (struct win32_target_ops, win32_require_context): Update.
526 * win32-low.c (win32_get_thread_context)
527 (win32_set_thread_context, win32_prepare_to_resume)
528 (win32_require_context, thread_rec, child_add_thread)
529 (delete_thread_info, continue_one_thread)
530 (child_fetch_inferior_registers, child_store_inferior_registers)
531 (win32_resume, suspend_one_thread, win32_get_tib_address):
532 Update.
533 * win32-i386-low.c (update_debug_registers)
534 (win32_get_current_dr, i386_get_thread_context)
535 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
536 (i386_fetch_inferior_register, i386_store_inferior_register):
537 Update.
538 * win32-arm-low.c (arm_get_thread_context)
539 (arm_fetch_inferior_register, arm_store_inferior_register):
540 Update.
541
0dd7b52e
TBA
5422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
543
544 * linux-low.h (struct linux_target_ops): Remove.
545 (the_low_target): Remove.
546 * linux-x86-low.cc (the_low_target): Remove.
547 * linux-aarch64-low.cc (the_low_target): Ditto.
548 * linux-arm-low.cc (the_low_target): Ditto.
549 * linux-bfin-low.cc (the_low_target): Ditto.
550 * linux-cris-low.cc (the_low_target): Ditto.
551 * linux-crisv32-low.cc (the_low_target): Ditto.
552 * linux-ia64-low.cc (the_low_target): Ditto.
553 * linux-m32r-low.cc (the_low_target): Ditto.
554 * linux-m68k-low.cc (the_low_target): Ditto.
555 * linux-mips-low.cc (the_low_target): Ditto.
556 * linux-nios2-low.cc (the_low_target): Ditto.
557 * linux-ppc-low.cc (the_low_target): Ditto.
558 * linux-riscv-low.cc (the_low_target): Ditto.
559 * linux-s390-low.cc (the_low_target): Ditto.
560 * linux-sh-low.cc (the_low_target): Ditto.
561 * linux-sparc-low.cc (the_low_target): Ditto.
562 * linux-tic6x-low.cc (the_low_target): Ditto.
563 * linux-tile-low.cc (the_low_target): Ditto.
564 * linux-xtensa-low.cc (the_low_target): Ditto.
565
fc5ecdb6
TBA
5662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
567
568 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
569 linux target define the op by overriding the declaration in
570 process_stratum_target.
571
572 * linux-low.h (struct linux_target_ops): Remove the op.
573 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
574 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
575 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
576 (x86_get_ipa_tdesc_idx): Turn into...
577 (x86_target::get_ipa_tdesc_idx): ...this.
578 (the_low_target): Remove the op field.
579 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
580 (ppc_get_ipa_tdesc_idx): Turn into...
581 (ppc_target::get_ipa_tdesc_idx): ...this.
582 (the_low_target): Remove the op field.
583 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
584 (s390_get_ipa_tdesc_idx): Turn into...
585 (s390_target::get_ipa_tdesc_idx): ...this.
586 (the_low_target): Remove the op field.
587
9eedd27d
TBA
5882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
589
590 Turn the 'get_syscall_trapinfo' linux target op into a method
591 of process_stratum_target.
592
593 * linux-low.h (struct linux_target_ops): Remove the op.
594 (class linux_process_target) <get_syscall_trapinfo>
595 <gdb_catch_this_syscall>
596 <low_supports_catch_syscall>
597 <low_get_syscall_trapinfo>: Declare.
598 * linux-low.cc (get_syscall_trapinfo): Turn into...
599 (linux_process_target::get_syscall_trapinfo): ...this.
600 (linux_process_target::low_get_syscall_trapinfo): Define.
601 (gdb_catch_this_syscall_p): Turn into...
602 (linux_process_target::gdb_catch_this_syscall): ...this.
603 (linux_process_target::low_supports_catch_syscall): Define.
604
605 Update the callers below.
606
607 (linux_process_target::wait_1)
608 (linux_process_target::supports_catch_syscall)
609
610 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
611 <low_get_syscall_trapinfo>: Declare.
612 (x86_target::low_supports_catch_syscall): Define.
613 (x86_get_syscall_trapinfo): Turn into...
614 (x86_target::low_get_syscall_trapinfo): ...this.
615 (the_low_target): Remove the op field.
616 * linux-aarch64-low.cc (class aarch64_target)
617 <low_supports_catch_syscall>
618 <low_get_syscall_trapinfo>: Declare.
619 (aarch64_target::low_supports_catch_syscall): Define.
620 (aarch64_get_syscall_trapinfo): Turn into...
621 (aarch64_target::low_get_syscall_trapinfo): ...this.
622 (the_low_target): Remove the op field.
623 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
624 <low_get_syscall_trapinfo>: Declare.
625 (arm_target::low_supports_catch_syscall): Define.
626 (arm_get_syscall_trapinfo): Turn into...
627 (arm_target::low_get_syscall_trapinfo): ...this.
628 (the_low_target): Remove the op field.
629 * linux-ppc-low.cc (the_low_target): Remove the op field.
630 * linux-s390-low.cc (the_low_target): Remove the op field.
631
b31cdfa6
TBA
6322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
633
634 Remove the 'supports_hardware_single_step' linux target op and
635 override the process_stratum_target's op definition in
636 linux_process_target to return true.
637
638 * linux-low.h (struct linux_target_ops): Remove the op.
639 (class linux_process_target) <finish_step_over>
640 <maybe_hw_step>: Declare.
641 * linux-low.cc (can_hardware_single_step): Remove.
642 (maybe_hw_step): Turn into...
643 (linux_process_target::maybe_hw_step): ...this.
644 (finish_step_over): Turn into...
645 (linux_process_target::finish_step_over): ...this.
646 (linux_process_target::supports_hardware_single_step): Update
647 to return true.
648
649 Update the callers below.
650
651 (linux_process_target::single_step)
652 (linux_process_target::resume_one_lwp_throw)
653
654 * linux-arm-low.cc (class arm_target)
655 <supports_hardware_single_step>: Declare.
656 (arm_supports_hardware_single_step): Turn into...
657 (arm_target::supports_hardware_single_step): ...this.
658 (the_low_target): Remove the op field.
659 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
660 (the_low_target): Remove the op field.
661 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
662 Remove.
663 (the_low_target): Remove the op field.
664 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
665 (the_low_target): Remove the op field.
666 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
667 (the_low_target): Remove the op field.
668 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
669 (the_low_target): Remove the op field.
670 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
671 (the_low_target): Remove the op field.
672 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
673 (the_low_target): Remove the op field.
674 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
675 (the_low_target): Remove the op field.
676 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
677 (the_low_target): Remove the op field.
678 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
679 (the_low_target): Remove the op field.
680 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
681 (the_low_target): Remove the op field.
682 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
683 Remove.
684 (the_low_target): Remove the op field.
685
9cfd8715
TBA
6862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
687
688 Turn the 'supports_range_stepping' linux target op into a method
689 of linux_process_target.
690
691 * linux-low.h (struct linux_target_ops): Remove the op.
692 (class linux_process_target) <low_supports_range_stepping>: Declare.
693 * linux-low.cc (linux_process_target::low_supports_range_stepping):
694 Define.
695 (linux_process_target::supports_range_stepping): Update the call
696 site.
697 * linux-x86-low.cc (class x86_target)
698 <low_supports_range_stepping>: Declare.
699 (x86_supports_range_stepping): Turn into...
700 (x86_target::low_supports_range_stepping): ...this.
701 (the_low_target): Remove the op field.
702 * linux-aarch64-low.cc (class aarch64_target)
703 <low_supports_range_stepping>: Declare.
704 (aarch64_supports_range_stepping): Turn into...
705 (aarch64_target::low_supports_range_stepping): ...this.
706 (the_low_target): Remove the op field.
707 * linux-arm-low.cc (the_low_target): Remove the op field.
708 * linux-bfin-low.cc (the_low_target): Ditto.
709 * linux-crisv32-low.cc (the_low_target): Ditto.
710 * linux-m32r-low.cc (the_low_target): Ditto.
711 * linux-m68k-low.cc (the_low_target): Ditto.
712 * linux-ppc-low.cc (the_low_target): Ditto.
713 * linux-s390-low.cc (the_low_target): Ditto.
714 * linux-sh-low.cc (the_low_target): Ditto.
715 * linux-tic6x-low.cc (the_low_target): Ditto.
716 * linux-tile-low.cc (the_low_target): Ditto.
717 * linux-xtensa-low.cc (the_low_target): Ditto.
718
ab64c999
TBA
7192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
720
721 Remove the 'emit_ops' linux target ops and let the concrete
722 linux target define the op by overriding the declaration of
723 process_stratum_target.
724
725 * linux-low.h (struct linux_target_ops): Remove the op.
726 (class linux_process_target) <emit_ops>: Remove.
727 * linux-low.cc (linux_process_target::emit_ops): Remove.
728 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
729 (x86_emit_ops): Turn into...
730 (x86_target::emit_ops): ...this.
731 (the_low_target): Remove the op field.
732 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
733 (aarch64_emit_ops): Turn into...
734 (aarch64_target::emit_ops): ...this.
735 (the_low_target): Remove the op field.
736 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
737 (ppc_emit_ops): Turn into...
738 (ppc_target::emit_ops): ...this.
739 (the_low_target): Remove the op field.
740 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
741 (s390_emit_ops): Turn into...
742 (s390_target::emit_ops): ...this.
743 (the_low_target): Remove the op field.
744 * linux-arm-low.cc (the_low_target): Remove the op field.
745 * linux-bfin-low.cc (the_low_target): Ditto.
746 * linux-crisv32-low.cc (the_low_target): Ditto.
747 * linux-m32r-low.cc (the_low_target): Ditto.
748 * linux-m68k-low.cc (the_low_target): Ditto.
749 * linux-sh-low.cc (the_low_target): Ditto.
750 * linux-tic6x-low.cc (the_low_target): Ditto.
751 * linux-tile-low.cc (the_low_target): Ditto.
752 * linux-xtensa-low.cc (the_low_target): Ditto.
753
809a0c35
TBA
7542020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
755
756 Remove the 'install_fast_tracepoint_jump_pad' and
757 'get_min_fast_tracepoint_insn_len' linux target ops to let the
758 concrete linux target define the ops by overriding the declarations
759 of process_stratum_target.
760
761 * linux-low.h (struct linux_target_ops): Remove the ops.
762 (class linux_process_target) <supports_fast_tracepoints>
763 <install_fast_tracepoint_jump_pad>
764 <get_min_fast_tracepoint_insn_len>: Remove.
765 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
766 (linux_process_target::install_fast_tracepoint_jump_pad)
767 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
768 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
769 <install_fast_tracepoint_jump_pad>
770 <get_min_fast_tracepoint_insn_len>: Declare.
771 (x86_target::supports_fast_tracepoints): Define.
772 (x86_install_fast_tracepoint_jump_pad): Turn into...
773 (x86_target::install_fast_tracepoint_jump_pad): ...this.
774 (x86_get_min_fast_tracepoint_insn_len): Turn into...
775 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
776 (the_low_target): Remove the op fields.
777 * linux-aarch64-low.cc (class aarch64_target)
778 <supports_fast_tracepoints>
779 <install_fast_tracepoint_jump_pad>
780 <get_min_fast_tracepoint_insn_len>: Declare.
781 (aarch64_target::supports_fast_tracepoints): Define.
782 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
783 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
784 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
785 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
786 (the_low_target): Remove the op fields.
787 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
788 <install_fast_tracepoint_jump_pad>
789 <get_min_fast_tracepoint_insn_len>: Declare.
790 (ppc_target::supports_fast_tracepoints): Define.
791 (ppc_install_fast_tracepoint_jump_pad): Turn into...
792 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
793 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
794 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
795 (the_low_target): Remove the op fields.
796 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
797 <install_fast_tracepoint_jump_pad>
798 <get_min_fast_tracepoint_insn_len>: Declare.
799 (s390_target::supports_fast_tracepoints): Define.
800 (s390_install_fast_tracepoint_jump_pad): Turn into...
801 (s390_target::install_fast_tracepoint_jump_pad): ...this.
802 (s390_get_min_fast_tracepoint_insn_len): Turn into...
803 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
804 (the_low_target): Remove the op fields.
805 * linux-arm-low.cc (the_low_target): Remove the op fields.
806 * linux-bfin-low.cc (the_low_target): Ditto.
807 * linux-crisv32-low.cc (the_low_target): Ditto.
808 * linux-m32r-low.cc (the_low_target): Ditto.
809 * linux-m68k-low.cc (the_low_target): Ditto.
810 * linux-sh-low.cc (the_low_target): Ditto.
811 * linux-tic6x-low.cc (the_low_target): Ditto.
812 * linux-tile-low.cc (the_low_target): Ditto.
813 * linux-xtensa-low.cc (the_low_target): Ditto.
814
13e567af
TBA
8152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
816
817 Turn the 'get_thread_area' linux target op into a method of
818 process_stratum_target.
819
820 * linux-low.h (struct linux_target_ops): Remove the op.
821 (class linux_process_target) <stuck_in_jump_pad>
822 <linux_fast_tracepoint_collecting>
823 <low_get_thread_area>: Declare.
824 * linux-low.cc (supports_fast_tracepoints): Remove.
825 (linux_fast_tracepoint_collecting): Turn into...
826 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
827 (linux_process_target::low_get_thread_area): Define.
828 (stuck_in_jump_pad_callback): Turn into...
829 (linux_process_target::stuck_in_jump_pad): ...this.
830
831 Update the caller below.
832
833 (linux_process_target::stabilize_threads)
834
835 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
836 Declare.
837 (x86_get_thread_area): Turn into...
838 (x86_target::low_get_thread_area): ...this.
839 (the_low_target): Remove the op field.
840 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
841 Declare.
842 (aarch64_get_thread_area): Turn into...
843 (aarch64_target::low_get_thread_area): ...this.
844 (the_low_target): Remove the op field.
845 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
846 Declare.
847 (ppc_get_thread_area): Turn into...
848 (ppc_target::low_get_thread_area): ...this.
849 (the_low_target): Remove the op field.
850 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
851 Declare.
852 (s390_get_thread_area): Turn into...
853 (s390_target::low_get_thread_area): ...this.
854 (the_low_target): Remove the op field.
855 * linux-arm-low.cc (the_low_target): Remove the op field.
856 * linux-bfin-low.cc (the_low_target): Ditto.
857 * linux-crisv32-low.cc (the_low_target): Ditto.
858 * linux-m32r-low.cc (the_low_target): Ditto.
859 * linux-m68k-low.cc (the_low_target): Ditto.
860 * linux-sh-low.cc (the_low_target): Ditto.
861 * linux-tic6x-low.cc (the_low_target): Ditto.
862 * linux-tile-low.cc (the_low_target): Ditto.
863 * linux-xtensa-low.cc (the_low_target): Ditto.
864
47f70aa7
TBA
8652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
866
867 Remote the 'supports_tracepoints' linux target op and let the
868 concrete linux target define it by overriding the op declared in
869 process_stratum_target.
870
871 * linux-low.h (struct linux_target_ops): Remove the op.
872 (class linux_process_target) <supports_tracepoints>: Remove.
873 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
874 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
875 Declare.
876 (x86_supports_tracepoints): Turn into...
877 (x86_target::supports_tracepoints): ...this.
878 (the_low_target): Remove the op field.
879 * linux-aarch64-low.cc (class aarch64_target)
880 <supports_tracepoints>: Declare.
881 (aarch64_supports_tracepoints): Turn into...
882 (aarch64_target::supports_tracepoints): ...this.
883 (the_low_target): Remove the op field.
884 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
885 Declare.
886 (ppc_supports_tracepoints): Turn into...
887 (ppc_target::supports_tracepoints): ...this.
888 (the_low_target): Remove the op field.
889 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
890 Declare.
891 (s390_supports_tracepoints): Turn into...
892 (s390_target::supports_tracepoints): ...this.
893 (the_low_target): Remove the op field.
894 * linux-arm-low.cc (the_low_target): Remove the op field.
895 * linux-bfin-low.cc (the_low_target): Ditto.
896 * linux-crisv32-low.cc (the_low_target): Ditto.
897 * linux-m32r-low.cc (the_low_target): Ditto.
898 * linux-m68k-low.cc (the_low_target): Ditto.
899 * linux-sh-low.cc (the_low_target): Ditto.
900 * linux-tic6x-low.cc (the_low_target): Ditto.
901 * linux-tile-low.cc (the_low_target): Ditto.
902 * linux-xtensa-low.cc (the_low_target): Ditto.
903
a5b5da92
TBA
9042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
905
906 Remove the 'process_qsupported' linux target op and let a concrete
907 linux target define the op by overriding the op declaration in
908 process_stratum_target.
909
910 * linux-low.h (struct linux_target_ops): Remove the op.
911 (class linux_process_target) <process_qsupported>: Remove.
912 * linux-low.cc (linux_process_target::process_qsupported): Remove.
913 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
914 (x86_linux_process_qsupported): Turn into...
915 (x86_target::process_qsupported): ...this.
916 (the_low_target): Remove the op field.
917 * linux-aarch64-low.cc (the_low_target): Remove the op
918 field.
919 * linux-arm-low.cc (the_low_target): Ditto.
920 * linux-bfin-low.cc (the_low_target): Ditto.
921 * linux-crisv32-low.cc (the_low_target): Ditto.
922 * linux-m32r-low.cc (the_low_target): Ditto.
923 * linux-m68k-low.cc (the_low_target): Ditto.
924 * linux-ppc-low.cc (the_low_target): Ditto.
925 * linux-s390-low.cc (the_low_target): Ditto.
926 * linux-sh-low.cc (the_low_target): Ditto.
927 * linux-tic6x-low.cc (the_low_target): Ditto.
928 * linux-tile-low.cc (the_low_target): Ditto.
929 * linux-xtensa-low.cc (the_low_target): Ditto.
930
d7599cc0
TBA
9312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
932
933 Turn the 'prepare_to_resume' linux target op into a method of
934 linux_process_target.
935
936 * linux-low.h (struct linux_target_ops): Remove the op.
937 (class linux_process_target) <low_prepare_to_resume>: Declare.
938 * linux-low.cc (linux_process_target::low_prepare_to_resume):
939 Define.
940
941 Update the callers below:
942
943 (linux_process_target::resume_one_lwp_throw)
944 (linux_process_target::low_prepare_to_resume)
945
946 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
947 Declare.
948 (x86_target::low_prepare_to_resume): Define.
949 (the_low_target): Remove the op field.
950 * linux-aarch64-low.cc (class aarch64_target)
951 <low_prepare_to_resume>: Declare.
952 (aarch64_target::low_prepare_to_resume): Define.
953 (the_low_target): Remove the op field.
954 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
955 Declare.
956 (arm_prepare_to_resume): Turn into...
957 (arm_target::low_prepare_to_resume): ...this.
958 (the_low_target): Remove the op field.
959 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
960 Declare.
961 (mips_linux_prepare_to_resume): Turn into...
962 (mips_target::low_prepare_to_resume): ...this.
963 (the_low_target): Remove the op field.
964 * linux-bfin-low.cc (the_low_target): Remove the op field.
965 * linux-crisv32-low.cc (the_low_target): Ditto.
966 * linux-m32r-low.cc (the_low_target): Ditto.
967 * linux-m68k-low.cc (the_low_target): Ditto.
968 * linux-ppc-low.cc (the_low_target): Ditto.
969 * linux-s390-low.cc (the_low_target): Ditto.
970 * linux-sh-low.cc (the_low_target): Ditto.
971 * linux-tic6x-low.cc (the_low_target): Ditto.
972 * linux-tile-low.cc (the_low_target): Ditto.
973 * linux-xtensa-low.cc (the_low_target): Ditto.
974
fd000fb3
TBA
9752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
976
977 Turn the 'new_process', 'delete_process', 'new_thread',
978 'delete_thread', and 'new_fork' linux target ops into methods
979 of linux_process_target.
980
981 * linux-low.h (struct linux_target_ops): Remove the ops.
982 (class linux_process_target) <add_linux_process>
983 <add_lwp>
984 <delete_lwp>
985 <attach_lwp>
986 <detach_one_lwp>
987 <check_zombie_leaders>
988 <filter_exit_event>
989 <low_new_process>
990 <low_delete_process>
991 <low_new_thread>
992 <low_delete_thread>
993 <low_new_fork>: Declare.
994 * linux-low.cc (delete_lwp): Turn into...
995 (linux_process_target::delete_lwp): ...this.
996 (linux_process_target::low_delete_thread): Define.
997 (linux_add_process): Turn into...
998 (linux_process_target::add_linux_process): ...this.
999 (linux_process_target::low_new_process): Define.
1000 (linux_process_target::low_delete_process): Define.
1001 (linux_process_target::low_new_fork): Define.
1002 (add_lwp): Turn into...
1003 (linux_process_target::add_lwp): ...this.
1004 (linux_process_target::low_new_thread): Define.
1005 (linux_attach_lwp): Turn into...
1006 (linux_process_target::attach_lwp): ...this.
1007 (linux_detach_one_lwp): Turn into...
1008 (linux_process_target::detach_one_lwp): ...this.
1009 (linux_detach_lwp_callback): Remove and inline...
1010 (linux_process_target::detach): ...here.
1011 (check_zombie_leaders): Turn into...
1012 (linux_process_target::check_zombie_leaders): ...this.
1013 (filter_exit_event): Turn into...
1014 (linux_process_target::filter_exit_event): ...this.
1015
1016 Update the callers below.
1017
1018 (linux_process_target::handle_extended_wait)
1019 (linux_process_target::create_inferior)
1020 (attach_proc_task_lwp_callback)
1021 (linux_process_target::attach)
1022 (linux_process_target::detach)
1023 (linux_process_target::mourn)
1024 * thread-db.cc (attach_thread)
1025
1026 * linux-x86-low.cc (class x86_target) <low_new_process>
1027 <low_delete_process>
1028 <low_new_thread>
1029 <low_delete_thread>
1030 <low_new_fork>: Declare.
1031 (x86_linux_new_process): Turn into...
1032 (x86_target::low_new_process): ...this.
1033 (x86_linux_delete_process): Turn into...
1034 (x86_target::low_delete_process): ...this.
1035 (x86_target::low_new_thread): Define.
1036 (x86_target::low_delete_thread): Define.
1037 (x86_linux_new_fork): Turn into...
1038 (x86_target::low_new_fork): ...this.
1039 (the_low_target): Remove the op fields.
1040 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1041 <low_delete_process>
1042 <low_new_thread>
1043 <low_delete_thread>
1044 <low_new_fork>: Declare.
1045 (aarch64_linux_new_process): Turn into...
1046 (aarch64_target::low_new_process): ...this.
1047 (aarch64_linux_delete_process): Turn into...
1048 (aarch64_target::low_delete_process): ...this.
1049 (aarch64_target::low_new_thread): Define.
1050 (aarch64_target::low_delete_thread): Define.
1051 (aarch64_linux_new_fork): Turn into...
1052 (aarch64_target::low_new_fork): ...this.
1053 (the_low_target): Remove the op fields.
1054 * linux-arm-low.cc (class arm_target) <low_new_process>
1055 <low_delete_process>
1056 <low_new_thread>
1057 <low_delete_thread>
1058 <low_new_fork>: Declare.
1059 (arm_new_process): Turn into...
1060 (arm_target::low_new_process): ...this.
1061 (arm_delete_process): Turn into...
1062 (arm_target::low_delete_process): ...this.
1063 (arm_new_thread): Turn into...
1064 (arm_target::low_new_thread): ...this.
1065 (arm_delete_thread): Turn into...
1066 (arm_target::low_delete_thread): ...this.
1067 (arm_new_fork): Turn into...
1068 (arm_target::low_new_fork): ...this.
1069 (the_low_target): Remove the op fields.
1070 * linux-mips-low.cc (class mips_target) <low_new_process>
1071 <low_delete_process>
1072 <low_new_thread>
1073 <low_delete_thread>
1074 <low_new_fork>: Declare.
1075 (mips_linux_new_process): Turn into...
1076 (mips_target::low_new_process): ...this.
1077 (mips_linux_delete_process): Turn into...
1078 (mips_target::low_delete_process): ...this.
1079 (mips_linux_new_thread): Turn into...
1080 (mips_target::low_new_thread): ...this.
1081 (mips_linux_delete_thread): Turn into...
1082 (mips_target::low_delete_thread): ...this.
1083 (mips_linux_new_fork): Turn into...
1084 (mips_target::low_new_fork): ...this.
1085 (the_low_target): Remove the op fields.
1086 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1087 * linux-crisv32-low.cc (the_low_target): Ditto.
1088 * linux-m32r-low.cc (the_low_target): Ditto.
1089 * linux-m68k-low.cc (the_low_target): Ditto.
1090 * linux-ppc-low.cc (the_low_target): Ditto.
1091 * linux-s390-low.cc (the_low_target): Ditto.
1092 * linux-sh-low.cc (the_low_target): Ditto.
1093 * linux-tic6x-low.cc (the_low_target): Ditto.
1094 * linux-tile-low.cc (the_low_target): Ditto.
1095 * linux-xtensa-low.cc (the_low_target): Ditto.
1096
cb63de7c
TBA
10972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1098
1099 Turn the 'siginfo_fixup' linux target op into a method of
1100 linux_process_target.
1101
1102 * linux-low.h (struct linux_target_ops): Remove the op.
1103 (class linux_process_target) <siginfo_fixup>
1104 <low_siginfo_fixup>: Declare.
1105 * linux-low.cc (siginfo_fixup): Turn into...
1106 (linux_process_target::siginfo_fixup): ...this.
1107 (linux_process_target::low_siginfo_fixup): Define.
1108 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1109 (x86_siginfo_fixup): Turn into...
1110 (x86_target::low_siginfo_fixup): ...this.
1111 (the_low_target): Remove the op field.
1112 * linux-aarch64-low.cc (class aarch64_target):
1113 <low_siginfo_fixup>: Declare.
1114 (aarch64_linux_siginfo_fixup): Turn into...
1115 (aarch64_target::low_siginfo_fixup): ...this.
1116 (the_low_target): Remove the op field.
1117 * linux-arm-low.cc (the_low_target): Remove the op field.
1118 * linux-bfin-low.cc (the_low_target): Ditto.
1119 * linux-crisv32-low.cc (the_low_target): Ditto.
1120 * linux-m32r-low.cc (the_low_target): Ditto.
1121 * linux-m68k-low.cc (the_low_target): Ditto.
1122 * linux-mips-low.cc (the_low_target): Ditto.
1123 * linux-ppc-low.cc (the_low_target): Ditto.
1124 * linux-s390-low.cc (the_low_target): Ditto.
1125 * linux-sh-low.cc (the_low_target): Ditto.
1126 * linux-tic6x-low.cc (the_low_target): Ditto.
1127 * linux-tile-low.cc (the_low_target): Ditto.
1128 * linux-xtensa-low.cc (the_low_target): Ditto.
1129
b35db733
TBA
11302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1131
1132 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1133 linux target ops into methods of linux_process_target.
1134
1135 * linux-low.h (struct linux_target_ops): Remove the ops.
1136 (class linux_process_target) <low_collect_ptrace_register>
1137 <low_store_ptrace_register>: Declare.
1138 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1139 (linux_process_target::low_supply_ptrace_register): Define.
1140
1141 Update the callers below.
1142
1143 (linux_process_target::fetch_register)
1144 (linux_process_target::store_register)
1145
1146 * linux-x86-low.cc (the_low_target): Remove the op fields.
1147 * linux-aarch64-low.cc (the_low_target): Ditto.
1148 * linux-arm-low.cc (the_low_target): Ditto.
1149 * linux-bfin-low.cc (the_low_target): Ditto.
1150 * linux-crisv32-low.cc (the_low_target): Ditto.
1151 * linux-m32r-low.cc (the_low_target): Ditto.
1152 * linux-m68k-low.cc (the_low_target): Ditto.
1153 * linux-sh-low.cc (the_low_target): Ditto.
1154 * linux-sparc-low.cc (the_low_target): Ditto.
1155 * linux-tic6x-low.cc (the_low_target): Ditto.
1156 * linux-tile-low.cc (the_low_target): Ditto.
1157 * linux-xtensa-low.cc (the_low_target): Ditto.
1158 * linux-mips-low.cc (class mips_target)
1159 <low_collect_ptrace_register>
1160 <low_supply_ptrace_register>: Declare.
1161 (mips_collect_ptrace_register): Turn into ...
1162 (mips_target::low_collect_ptrace_register): ...this.
1163 (mips_supply_ptrace_register): Turn into...
1164 (mips_target::low_supply_ptrace_register): ...this.
1165 (the_low_target): Remove the op fields.
1166 * linux-ppc-low.cc (class ppc_target)
1167 <low_collect_ptrace_register>
1168 <low_supply_ptrace_register>: Declare.
1169 (ppc_collect_ptrace_register): Turn into ...
1170 (ppc_target::low_collect_ptrace_register): ...this.
1171 (ppc_supply_ptrace_register): Turn into ...
1172 (ppc_target::low_supply_ptrace_register): ...this.
1173 (ppc_fill_gregset): Update for the calls to
1174 low_collect_ptrace_register.
1175 (the_low_target): Remove the op fields.
1176 * linux-s390-low.cc (class s390_target)
1177 <low_collect_ptrace_register>
1178 <low_supply_ptrace_register>: Declare.
1179 (s390_collect_ptrace_register): Turn into ...
1180 (s390_target::low_collect_ptrace_register): ...this.
1181 (s390_supply_ptrace_register): Turn into ...
1182 (s390_target::low_supply_ptrace_register): ...this.
1183 (s390_fill_gregset): Update for the calls to
1184 low_collect_ptrace_register.
1185 (the_low_target): Remove the op fields.
1186
ac1bbaca
TBA
11872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1188
1189 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1190 target ops into methods of linux_process_target.
1191
1192 * linux-low.h (struct linux_target_ops): Remove the ops.
1193 (class linux_process_target) <check_stopped_by_watchpoint>
1194 <low_stopped_by_watchpoint>
1195 <low_stopped_data_address>: Declare.
1196 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1197 (linux_process_target::check_stopped_by_watchpoint): ...this.
1198 (linux_process_target::low_stopped_by_watchpoint): Define.
1199 (linux_process_target::low_stopped_data_address): Define.
1200 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1201 <low_stopped_data_address>: Declare.
1202 (x86_stopped_by_watchpoint): Turn into...
1203 (x86_target::low_stopped_by_watchpoint): ...this.
1204 (x86_stopped_data_address): Turn into...
1205 (x86_target::low_stopped_data_address): ...this.
1206 (the_low_target): Remove the op fields.
1207 * linux-aarch64-low.cc (class aarch64_target)
1208 <low_stopped_by_watchpoint>
1209 <low_stopped_data_address>: Declare.
1210 (aarch64_stopped_by_watchpoint): Turn into...
1211 (aarch64_target::low_stopped_by_watchpoint): ...this.
1212 (aarch64_stopped_data_address): Turn into...
1213 (aarch64_target::low_stopped_data_address): ...this.
1214 (the_low_target): Remove the op fields.
1215 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1216 <low_stopped_data_address>: Declare.
1217 (arm_stopped_by_watchpoint): Turn into...
1218 (arm_target::low_stopped_by_watchpoint): ...this.
1219 (arm_stopped_data_address): Turn into...
1220 (arm_target::low_stopped_data_address): ...this.
1221 (the_low_target): Remove the op fields.
1222 * linux-crisv32-low.cc (class crisv32_target)
1223 <low_stopped_by_watchpoint>
1224 <low_stopped_data_address>: Declare.
1225 (cris_stopped_by_watchpoint): Turn into...
1226 (crisv32_target::low_stopped_by_watchpoint): ...this.
1227 (cris_stopped_data_address): Turn into...
1228 (crisv32_target::low_stopped_data_address): ...this.
1229 (the_low_target): Remove the op fields.
1230 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1231 <low_stopped_data_address>: Declare.
1232 (mips_stopped_by_watchpoint): Turn into...
1233 (mips_target::low_stopped_by_watchpoint): ...this.
1234 (mips_stopped_data_address): Turn into...
1235 (mips_target::low_stopped_data_address): ...this.
1236 (the_low_target): Remove the op fields.
1237 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1238 * linux-m32r-low.cc (the_low_target): Ditto.
1239 * linux-m68k-low.cc (the_low_target): Ditto.
1240 * linux-ppc-low.cc (the_low_target): Ditto.
1241 * linux-s390-low.cc (the_low_target): Ditto.
1242 * linux-sh-low.cc (the_low_target): Ditto.
1243 * linux-sparc-low.cc (the_low_target): Ditto.
1244 * linux-tic6x-low.cc (the_low_target): Ditto.
1245 * linux-tile-low.cc (the_low_target): Ditto.
1246 * linux-xtensa-low.cc (the_low_target): Ditto.
1247
9db9aa23
TBA
12482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1249
1250 Turn the 'insert_point' and 'remove_point' linux target ops into
1251 methods of linux_process_target.
1252
1253 * linux-low.h (struct linux_target_ops): Remove the ops.
1254 (class linux_process_target) <low_insert_point>
1255 <low_remove_point>: Declare.
1256 * linux-low.cc (linux_process_target::low_insert_point)
1257 (linux_process_target::low_remove_point): Define.
1258 (linux_process_target::insert_point)
1259 (linux_process_target::remove_point): Update for calls to
1260 low_insert_point and low_remove_point.
1261 * linux-x86-low.cc (class x86_target) <low_insert_point>
1262 <low_remove_point>: Declare.
1263 (x86_insert_point): Turn into...
1264 (x86_target::low_insert_point): ...this.
1265 (x86_remove_point): Turn into...
1266 (x86_target::low_remove_point): ...this.
1267 (the_low_target): Remove the op fields.
1268 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1269 <low_remove_point>: Declare.
1270 (aarch64_insert_point): Turn into...
1271 (aarch64_target::low_insert_point): ...this.
1272 (aarch64_remove_point): Turn into...
1273 (aarch64_target::low_remove_point): ...this.
1274 (the_low_target): Remove the op fields.
1275 * linux-arm-low.cc (class arm_target) <low_insert_point>
1276 <low_remove_point>: Declare.
1277 (arm_insert_point): Turn into...
1278 (arm_target::low_insert_point): ...this.
1279 (arm_remove_point): Turn into...
1280 (arm_target::low_remove_point): ...this.
1281 (the_low_target): Remove the op fields.
1282 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1283 <low_remove_point>: Declare.
1284 (crisv32_insert_point): Turn into...
1285 (crisv32_target::low_insert_point): ...this.
1286 (crisv32_remove_point): Turn into...
1287 (crisv32_target::low_remove_point): ...this.
1288 (the_low_target): Remove the op fields.
1289 * linux-mips-low.cc (class mips_target) <low_insert_point>
1290 <low_remove_point>: Declare.
1291 (mips_insert_point): Turn into...
1292 (mips_target::low_insert_point): ...this.
1293 (mips_remove_point): Turn into...
1294 (mips_target::low_remove_point): ...this.
1295 (the_low_target): Remove the op fields.
1296 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1297 <low_remove_point>: Declare.
1298 (ppc_insert_point): Turn into...
1299 (ppc_target::low_insert_point): ...this.
1300 (ppc_remove_point): Turn into...
1301 (ppc_target::low_remove_point): ...this.
1302 (the_low_target): Remove the op fields.
1303 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1304 * linux-m32r-low.cc (the_low_target): Ditto.
1305 * linux-m68k-low.cc (the_low_target): Ditto.
1306 * linux-s390-low.cc (the_low_target): Ditto.
1307 * linux-sh-low.cc (the_low_target): Ditto.
1308 * linux-sparc-low.cc (the_low_target): Ditto.
1309 * linux-tic6x-low.cc (the_low_target): Ditto.
1310 * linux-tile-low.cc (the_low_target): Ditto.
1311 * linux-xtensa-low.cc (the_low_target): Ditto.
1312
007c9b97
TBA
13132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1314
1315 Remove the 'supports_z_point_type' linux target op and let the
1316 concrete linux target define it by overriding the op declared in
1317 process_stratum_target.
1318
1319 * linux-low.cc (linux_process_target::supports_z_point_type):
1320 Remove.
1321 * linux-low.h (struct linux_target_ops): Remove the op.
1322 (class linux_process_target) <supports_z_point_type>: Remove.
1323 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1324 Declare.
1325 (x86_supports_z_point_type): Turn into...
1326 (x86_target::supports_z_point_type): ...this.
1327 (the_low_target): Remove the op field.
1328 * linux-aarch64-low.cc (class aarch64_target)
1329 <supports_z_point_type>: Declare.
1330 (aarch64_supports_z_point_type): Turn into...
1331 (aarch64_target::supports_z_point_type): ...this.
1332 (the_low_target): Remove the op field.
1333 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1334 Declare.
1335 (arm_supports_z_point_type): Turn into...
1336 (arm_target::supports_z_point_type): ...this.
1337 (the_low_target): Remove the op field.
1338 * linux-crisv32-low.cc (class crisv32_target)
1339 <supports_z_point_type>: Declare.
1340 (cris_supports_z_point_type): Turn into...
1341 (crisv32_target::supports_z_point_type): ...this.
1342 (the_low_target): Remove the op field.
1343 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1344 Declare.
1345 (mips_supports_z_point_type): Turn into...
1346 (mips_target::supports_z_point_type): ...this.
1347 (the_low_target): Remove the op field.
1348 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1349 Declare.
1350 (ppc_supports_z_point_type): Turn into...
1351 (ppc_target::supports_z_point_type): ...this.
1352 (the_low_target): Remove the op field.
1353 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1354 Declare.
1355 (s390_supports_z_point_type): Turn into...
1356 (s390_target::supports_z_point_type): ...this.
1357 (the_low_target): Remove the op field.
1358 * linux-bfin-low.cc (the_low_target): Remove the op field.
1359 * linux-m32r-low.cc (the_low_target): Ditto.
1360 * linux-m68k-low.cc (the_low_target): Ditto.
1361 * linux-sh-low.cc (the_low_target): Ditto.
1362 * linux-sparc-low.cc (the_low_target): Ditto.
1363 * linux-tic6x-low.cc (the_low_target): Ditto.
1364 * linux-tile-low.cc (the_low_target): Ditto.
1365 * linux-xtensa-low.cc (the_low_target): Ditto.
1366
d7146cda
TBA
13672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1368
1369 Turn the 'breakpoint_at' linux target op into a method of
1370 linux_process_target.
1371
1372 * linux-low.h (struct linux_target_ops): Remove the op.
1373 (class linux_process_target) <low_breakpoint_at>: Declare.
1374
1375 Update the callers below:
1376
1377 * linux-low.cc (linux_process_target::save_stop_reason)
1378 (linux_process_target::thread_still_has_status_pending)
1379 (linux_process_target::wait_1)
1380
1381 * linux-x86-low.cc (class x86_target)
1382 <low_breakpoint_at>: Declare.
1383 (x86_breakpoint_at): Turn into...
1384 (x86_target::low_breakpoint_at): ...this.
1385 (the_low_target): Remove the op field.
1386 * linux-aarch64-low.cc (class aarch64_target)
1387 <low_breakpoint_at>: Declare.
1388 (aarch64_breakpoint_at): Turn into...
1389 (aarch64_target::low_breakpoint_at): ...this.
1390 (the_low_target): Remove the op field.
1391 * linux-arm-low.cc (class arm_target)
1392 <low_breakpoint_at>: Declare.
1393 (arm_target::low_breakpoint_at): Define.
1394 (the_low_target): Remove the op field.
1395 * linux-bfin-low.cc (class bfin_target)
1396 <low_breakpoint_at>: Declare.
1397 (bfin_breakpoint_at): Turn into...
1398 (bfin_target::low_breakpoint_at): ...this.
1399 (the_low_target): Remove the op field.
1400 * linux-cris-low.cc (class cris_target)
1401 <low_breakpoint_at>: Declare.
1402 (cris_breakpoint_at): Turn into...
1403 (cris_target::low_breakpoint_at): ...this.
1404 (the_low_target): Remove the op field.
1405 * linux-crisv32-low.cc (class crisv32_target)
1406 <low_breakpoint_at>: Declare.
1407 (crisv32_breakpoint_at): Turn into...
1408 (crisv32_target::low_breakpoint_at): ...this.
1409 (the_low_target): Remove the op field.
1410 * linux-ia64-low.cc (class ia64_target)
1411 <low_breakpoint_at>: Declare.
1412 (ia64_target::low_breakpoint_at): Define.
1413 * linux-m32r-low.cc (class m32r_target)
1414 <low_breakpoint_at>: Declare.
1415 (m32r_breakpoint_at): Turn into...
1416 (m32r_target::low_breakpoint_at): ...this.
1417 (the_low_target): Remove the op field.
1418 * linux-m68k-low.cc (class m68k_target)
1419 <low_breakpoint_at>: Declare.
1420 (m68k_breakpoint_at): Turn into...
1421 (m68k_target::low_breakpoint_at): ...this.
1422 (the_low_target): Remove the op field.
1423 * linux-mips-low.cc (class mips_target)
1424 <low_breakpoint_at>: Declare.
1425 (mips_breakpoint_at): Turn into...
1426 (mips_target::low_breakpoint_at): ...this.
1427 (the_low_target): Remove the op field.
1428 * linux-nios2-low.cc (class nios2_target)
1429 <low_breakpoint_at>: Declare.
1430 (nios2_breakpoint_at): Turn into...
1431 (nios2_target::low_breakpoint_at): ...this.
1432 (the_low_target): Remove the op field.
1433 * linux-ppc-low.cc (class ppc_target)
1434 <low_breakpoint_at>: Declare.
1435 (ppc_breakpoint_at): Turn into...
1436 (ppc_target::low_breakpoint_at): ...this.
1437 (the_low_target): Remove the op field.
1438 * linux-riscv-low.cc (class riscv_target)
1439 <low_breakpoint_at>: Declare.
1440 (riscv_breakpoint_at): Turn into...
1441 (riscv_target::low_breakpoint_at): ...this.
1442 (the_low_target): Remove the op field.
1443 * linux-s390-low.cc (class s390_target)
1444 <low_breakpoint_at>: Declare.
1445 (s390_breakpoint_at): Turn into...
1446 (s390_target::low_breakpoint_at): ...this.
1447 (the_low_target): Remove the op field.
1448 * linux-sh-low.cc (class sh_target)
1449 <low_breakpoint_at>: Declare.
1450 (sh_breakpoint_at): Turn into...
1451 (sh_target::low_breakpoint_at): ...this.
1452 (the_low_target): Remove the op field.
1453 * linux-sparc-low.cc (class sparc_target)
1454 <low_breakpoint_at>: Declare.
1455 (sparc_breakpoint_at): Turn into...
1456 (sparc_target::low_breakpoint_at): ...this.
1457 (the_low_target): Remove the op field.
1458 * linux-tic6x-low.cc (class tic6x_target)
1459 <low_breakpoint_at>: Declare.
1460 (tic6x_breakpoint_at): Turn into...
1461 (tic6x_target::low_breakpoint_at): ...this.
1462 (the_low_target): Remove the op field.
1463 * linux-tile-low.cc (class tile_target)
1464 <low_breakpoint_at>: Declare.
1465 (tile_breakpoint_at): Turn into...
1466 (tile_target::low_breakpoint_at): ...this.
1467 (the_low_target): Remove the op field.
1468 * linux-xtensa-low.cc (class xtensa_target)
1469 <low_breakpoint_at>: Declare.
1470 (xtensa_breakpoint_at): Turn into...
1471 (xtensa_target::low_breakpoint_at): ...this.
1472 (the_low_target): Remove the op field.
1473
d4807ea2
TBA
14742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1475
1476 Turn the 'decr_pc_after_break' linux_target_ops field into
1477 a method of linux_process_target.
1478
1479 * linux-low.h (struct linux_target_ops)
1480 <decr_pc_after_break>: Remove.
1481 (class linux_process_target) <low_decr_pc_after_break>: New method
1482 declaration.
1483 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1484 New method implementation.
1485
1486 Update the users below.
1487
1488 (linux_process_target::save_stop_reason)
1489 (linux_process_target::wait_1)
1490 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1491 New declaration.
1492 (x86_target::low_decr_pc_after_break): New method implementation.
1493 (the_low_target): Remove the field.
1494 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1495 New declaration.
1496 (bfin_target::low_decr_pc_after_break): New method implementation.
1497 (the_low_target): Remove the field.
1498 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1499 New declaration.
1500 (m68k_target::low_decr_pc_after_break): New method implementation.
1501 (the_low_target): Remove the field.
1502 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1503 New declaration.
1504 (s390_target::low_decr_pc_after_break): New method implementation.
1505 (the_low_target): Remove the field.
1506 * linux-aarch64-low.cc (the_low_target): Remove the field.
1507 * linux-arm-low.cc (the_low_target): Remove the field.
1508 * linux-cris-low.cc (the_low_target): Remove the field.
1509 * linux-crisv32-low.cc (the_low_target): Remove the field.
1510 * linux-m32r-low.cc (the_low_target): Remove the field.
1511 * linux-mips-low.cc (the_low_target): Remove the field.
1512 * linux-nios2-low.cc (the_low_target): Remove the field.
1513 * linux-ppc-low.cc (the_low_target): Remove the field.
1514 * linux-riscv-low.cc (the_low_target): Remove the field.
1515 * linux-sh-low.cc (the_low_target): Remove the field.
1516 * linux-sparc-low.cc (the_low_target): Remove the field.
1517 * linux-tic6x-low.cc (the_low_target): Remove the field.
1518 * linux-tile-low.cc (the_low_target): Remove the field.
1519 * linux-xtensa-low.cc (the_low_target): Remove the field.
1520
7582c77c
TBA
15212020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1522
1523 Remove the 'supports_software_single_step' linux target op and let
1524 the concrete linux target define it by overriding the op in
1525 process_stratum_target.
1526 Turn the 'get_next_pcs' linux target op into a method of
1527 linux_process_target.
1528
1529 * linux-low.h (struct linux_target_ops): Remove the ops.
1530 (class linux_process_target) <supports_software_single_step>:
1531 Remove.
1532 <low_get_next_pcs>: Declare.
1533 * linux-low.cc (can_software_single_step): Remove.
1534 (linux_process_target::low_get_next_pcs): Define.
1535 (linux_process_target::supports_software_single_step): Remove.
1536
1537 Update the callers below.
1538
1539 (linux_process_target::handle_extended_wait)
1540 (linux_process_target::wait_1)
1541 (linux_process_target::install_software_single_step_breakpoints)
1542 (linux_process_target::single_step)
1543 (linux_process_target::thread_needs_step_over)
1544 (linux_process_target::proceed_one_lwp)
1545 (linux_process_target::supports_range_stepping)
1546
1547 * linux-x86-low.cc (the_low_target): Remove the op field.
1548 * linux-aarch64-low.cc (the_low_target): Ditto.
1549 * linux-bfin-low.cc (the_low_target): Ditto.
1550 * linux-cris-low.cc (the_low_target): Ditto.
1551 * linux-crisv32-low.cc (the_low_target): Ditto.
1552 * linux-m32r-low.cc (the_low_target): Ditto.
1553 * linux-m68k-low.cc (the_low_target): Ditto.
1554 * linux-mips-low.cc (the_low_target): Ditto.
1555 * linux-nios2-low.cc (the_low_target): Ditto.
1556 * linux-ppc-low.cc (the_low_target): Ditto.
1557 * linux-riscv-low.cc (the_low_target): Ditto.
1558 * linux-s390-low.cc (the_low_target): Ditto.
1559 * linux-sh-low.cc (the_low_target): Ditto.
1560 * linux-sparc-low.cc (the_low_target): Ditto.
1561 * linux-tic6x-low.cc (the_low_target): Ditto.
1562 * linux-tile-low.cc (the_low_target): Ditto.
1563 * linux-xtensa-low.cc (the_low_target): Ditto.
1564 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1565 <supports_software_single_step>: Declare.
1566 (arm_target::supports_software_single_step): Define.
1567 (arm_gdbserver_get_next_pcs): Turn into...
1568 (arm_target::low_get_next_pcs): ...this.
1569 (the_low_target): Remove the op field.
1570
3ca4edb6
TBA
15712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1572
1573 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1574 the concrete linux target define it by overriding the op
1575 in process_stratum_target.
1576
1577 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1578 Remove.
1579 * linux-low.h (struct linux_target_ops): Remove the op.
1580 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1581 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1582 Declare.
1583 (x86_sw_breakpoint_from_kind): Turn into...
1584 (x86_target::sw_breakpoint_from_kind): ...this.
1585 (the_low_target): Remove the op field.
1586 * linux-aarch64-low.cc (class aarch64_target)
1587 <sw_breakpoint_from_kind>: Declare.
1588 (aarch64_sw_breakpoint_from_kind): Turn into...
1589 (aarch64_target::sw_breakpoint_from_kind): ...this.
1590 (the_low_target): Remove the op field.
1591 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1592 Declare.
1593 (arm_target::sw_breakpoint_from_kind): Define.
1594 (the_low_target): Remove the op field.
1595 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1596 Declare.
1597 (bfin_sw_breakpoint_from_kind): Turn into...
1598 (bfin_target::sw_breakpoint_from_kind): ...this.
1599 (the_low_target): Remove the op field.
1600 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1601 Declare.
1602 (cris_sw_breakpoint_from_kind): Turn into...
1603 (cris_target::sw_breakpoint_from_kind): ...this.
1604 (the_low_target): Remove the op field.
1605 * linux-crisv32-low.cc (class crisv32_target)
1606 <sw_breakpoint_from_kind>: Declare.
1607 (cris_sw_breakpoint_from_kind): Turn into...
1608 (crisv32_target::sw_breakpoint_from_kind): ...this.
1609 (the_low_target): Remove the op field.
1610 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1611 Declare.
1612 (ia64_target::sw_breakpoint_from_kind): Define.
1613 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1614 Declare.
1615 (m32r_sw_breakpoint_from_kind): Turn into...
1616 (m32r_target::sw_breakpoint_from_kind): ...this.
1617 (the_low_target): Remove the op field.
1618 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1619 Declare.
1620 (m68k_sw_breakpoint_from_kind): Turn into...
1621 (m68k_target::sw_breakpoint_from_kind): ...this.
1622 (the_low_target): Remove the op field.
1623 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1624 Declare.
1625 (mips_sw_breakpoint_from_kind): Turn into...
1626 (mips_target::sw_breakpoint_from_kind): ...this.
1627 (the_low_target): Remove the op field.
1628 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1629 Declare.
1630 (nios2_sw_breakpoint_from_kind): Turn into...
1631 (nios2_target::sw_breakpoint_from_kind): ...this.
1632 (the_low_target): Remove the op field.
1633 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1634 Declare.
1635 (ppc_sw_breakpoint_from_kind): Turn into...
1636 (ppc_target::sw_breakpoint_from_kind): ...this.
1637 (the_low_target): Remove the op field.
1638 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1639 Declare.
1640 (riscv_sw_breakpoint_from_kind): Turn into...
1641 (riscv_target::sw_breakpoint_from_kind): ...this.
1642 (the_low_target): Remove the op field.
1643 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1644 Declare.
1645 (s390_sw_breakpoint_from_kind): Turn into...
1646 (s390_target::sw_breakpoint_from_kind): ...this.
1647 (the_low_target): Remove the op field.
1648 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1649 Declare.
1650 (sh_sw_breakpoint_from_kind): Turn into...
1651 (sh_target::sw_breakpoint_from_kind): ...this.
1652 (the_low_target): Remove the op field.
1653 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1654 Declare.
1655 (sparc_sw_breakpoint_from_kind): Turn into...
1656 (sparc_target::sw_breakpoint_from_kind): ...this.
1657 (the_low_target): Remove the op field.
1658 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1659 Declare.
1660 (tic6x_sw_breakpoint_from_kind): Turn into...
1661 (tic6x_target::sw_breakpoint_from_kind): ...this.
1662 (the_low_target): Remove the op field.
1663 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1664 Declare.
1665 (tile_sw_breakpoint_from_kind): Turn into...
1666 (tile_target::sw_breakpoint_from_kind): ...this.
1667 (the_low_target): Remove the op field.
1668 * linux-xtensa-low.cc (class xtensa_target)
1669 <sw_breakpoint_from_kind>: Declare.
1670 (xtensa_sw_breakpoint_from_kind): Turn into...
1671 (xtensa_target::sw_breakpoint_from_kind): ...this.
1672 (the_low_target): Remove the op field.
1673
06250e4e
TBA
16742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1675
1676 Remove the 'breakpoint_kind_from_pc' and
1677 'breakpoint_kind_from_current_state' linux target ops, and let the
1678 concrete linux target define them by overriding the ops of
1679 process_stratum_target.
1680
1681 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1682 Remove.
1683 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1684 * linux-low.h (struct linux_target_ops): Remove ops.
1685 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1686 <breakpoint_kind_from_current_state>: Remove.
1687 * linux-x86-low.cc (the_low_target): Remove the op fields.
1688 * linux-bfin-low.cc (the_low_target): Ditto.
1689 * linux-cris-low.cc (the_low_target): Ditto.
1690 * linux-crisv32-low.cc (the_low_target): Ditto.
1691 * linux-m32r-low.cc (the_low_target): Ditto.
1692 * linux-m68k-low.cc (the_low_target): Ditto.
1693 * linux-mips-low.cc (the_low_target): Ditto.
1694 * linux-nios2-low.cc (the_low_target): Ditto.
1695 * linux-ppc-low.cc (the_low_target): Ditto.
1696 * linux-s390-low.cc (the_low_target): Ditto.
1697 * linux-sh-low.cc (the_low_target): Ditto.
1698 * linux-sparc-low.cc (the_low_target): Ditto.
1699 * linux-tic6x-low.cc (the_low_target): Ditto.
1700 * linux-tile-low.cc (the_low_target): Ditto.
1701 * linux-xtensa-low.cc (the_low_target): Ditto.
1702 * linux-aarch64-low.cc (class aarch64_target)
1703 <breakpoint_kind_from_pc>
1704 <breakpoint_kind_from_current_state>: Declare.
1705 (aarch64_breakpoint_kind_from_pc): Turn into...
1706 (aarch64_target::breakpoint_kind_from_pc): ...this.
1707 (aarch64_breakpoint_kind_from_current_state): Turn into...
1708 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1709 (the_low_target): Remove the op fields.
1710 * linux-arm-low.cc (class arm_target):
1711 <breakpoint_kind_from_pc>
1712 <breakpoint_kind_from_current_state>: Declare.
1713 (arm_target::breakpoint_kind_from_pc): Define.
1714 (arm_target::breakpoint_kind_from_current_state): Define.
1715 (the_low_target): Remove the op fields.
1716 * linux-riscv-low.cc (class riscv_target):
1717 <breakpoint_kind_from_pc>: Declare.
1718 (riscv_breakpoint_kind_from_pc): Turn into...
1719 (riscv_target::breakpoint_kind_from_pc): ...this.
1720 (the_low_target): Remove the op fields.
1721
bf9ae9d8
TBA
17222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1723
1724 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1725 of linux_process_target.
1726
1727 * linux-low.h (struct linux_target_ops): Remove the ops.
1728 (class linux_process_target) <low_supports_breakpoints>
1729 <low_get_pc>
1730 <low_set_pc>: Declare.
1731 * linux-low.cc (supports_breakpoints): Turn into...
1732 (linux_process_target::low_supports_breakpoints): ...this.
1733 (linux_process_target::low_get_pc): Define.
1734 (linux_process_target::low_set_pc): Define.
1735
1736 Update the callers below.
1737
1738 (linux_process_target::get_pc)
1739 (linux_process_target::save_stop_reason)
1740 (linux_process_target::maybe_move_out_of_jump_pad)
1741 (linux_process_target::wait_1)
1742 (linux_process_target::resume_one_lwp_throw)
1743 (linux_process_target::resume)
1744 (linux_process_target::proceed_all_lwps)
1745 (linux_process_target::read_pc)
1746 (linux_process_target::write_pc)
1747
1748 * linux-x86-low.cc (class linux_process_target)
1749 <low_supports_breakpoints>
1750 <low_get_pc>
1751 <low_set_pc>: Declare.
1752 (x86_target::low_supports_breakpoints): Define.
1753 (x86_get_pc): Turn into...
1754 (x86_target::low_get_pc): ...this.
1755 (x86_set_pc): Turn into...
1756 (x86_target::low_set_pc): ...this.
1757 (the_low_target): Remove the op fields.
1758 * linux-arm-low.cc (class arm_target)
1759 <low_supports_breakpoints>
1760 <low_get_pc>
1761 <low_set_pc>: Declare.
1762 (arm_target::low_supports_breakpoints)
1763 (arm_target::low_get_pc)
1764 (arm_target::low_set_pc): Define.
1765 (the_low_target): Remove the op fields.
1766 * linux-bfin-low.cc (class bfin_target)
1767 <low_supports_breakpoints>
1768 <low_get_pc>
1769 <low_set_pc>: Declare.
1770 (bfin_target::low_supports_breakpoints)
1771 (bfin_target::low_get_pc)
1772 (bfin_target::low_set_pc): Define.
1773 (the_low_target): Remove the op fields.
1774 * linux-cris-low.cc (class cris_target)
1775 <low_supports_breakpoints>
1776 <low_get_pc>
1777 <low_set_pc>: Declare.
1778 (cris_target::low_supports_breakpoints)
1779 (cris_target::low_get_pc)
1780 (cris_target::low_set_pc): Define.
1781 (the_low_target): Remove the op fields.
1782 * linux-crisv32-low.cc (class crisv32_target)
1783 <low_supports_breakpoints>
1784 <low_get_pc>
1785 <low_set_pc>: Declare.
1786 (crisv32_target::low_supports_breakpoints)
1787 (crisv32_target::low_get_pc)
1788 (crisv32_target::low_set_pc): Define.
1789 (the_low_target): Remove the op fields.
1790 * linux-m32r-low.cc (class m32r_target)
1791 <low_supports_breakpoints>
1792 <low_get_pc>
1793 <low_set_pc>: Declare.
1794 (m32r_target::low_supports_breakpoints)
1795 (m32r_target::low_get_pc)
1796 (m32r_target::low_set_pc): Define.
1797 (the_low_target): Remove the op fields.
1798 * linux-m68k-low.cc (class m68k_target)
1799 <low_supports_breakpoints>
1800 <low_get_pc>
1801 <low_set_pc>: Declare.
1802 (m68k_target::low_supports_breakpoints)
1803 (m68k_target::low_get_pc)
1804 (m68k_target::low_set_pc): Define.
1805 (the_low_target): Remove the op fields.
1806 * linux-nios2-low.cc (class nios2_target)
1807 <low_supports_breakpoints>
1808 <low_get_pc>
1809 <low_set_pc>: Declare.
1810 (nios2_target::low_supports_breakpoints)
1811 (nios2_target::low_get_pc)
1812 (nios2_target::low_set_pc): Define.
1813 (the_low_target): Remove the op fields.
1814 * linux-sh-low.cc (class sh_target)
1815 <low_supports_breakpoints>
1816 <low_get_pc>
1817 <low_set_pc>: Declare.
1818 (sh_target::low_supports_breakpoints)
1819 (sh_target::low_get_pc)
1820 (sh_target::low_set_pc): Define.
1821 (the_low_target): Remove the op fields.
1822 * linux-xtensa-low.cc (class xtensa_target)
1823 <low_supports_breakpoints>
1824 <low_get_pc>
1825 <low_set_pc>: Declare.
1826 (xtensa_target::low_supports_breakpoints)
1827 (xtensa_target::low_get_pc)
1828 (xtensa_target::low_set_pc): Define.
1829 (the_low_target): Remove the op fields.
1830 * linux-sparc-low.cc (class sparc_target)
1831 <low_supports_breakpoints>
1832 <low_get_pc>: Declare.
1833 (sparc_target::low_supports_breakpoints)
1834 (sparc_target::low_get_pc): Define.
1835 (the_low_target): Remove the op fields.
1836 * linux-tile-low.cc (class tile_target)
1837 <low_supports_breakpoints>
1838 <low_get_pc>
1839 <low_set_pc>: Declare.
1840 (tile_target::low_supports_breakpoints)
1841 (tile_target::low_get_pc)
1842 (tile_target::low_set_pc): Define.
1843 (the_low_target): Remove the op fields.
1844 * linux-aarch64-low.cc (class aarch64_target)
1845 <low_supports_breakpoints>
1846 <low_get_pc>
1847 <low_set_pc>: Declare.
1848 (aarch64_target::low_supports_breakpoints): Define.
1849 (aarch64_get_pc): Turn into...
1850 (aarch64_target::low_get_pc): ...this.
1851 (aarch64_set_pc): Turn into...
1852 (aarch64_target::low_set_pc): ...this.
1853 (the_low_target): Remove the op fields.
1854 * linux-mips-low.cc (class mips_target)
1855 <low_supports_breakpoints>
1856 <low_get_pc>
1857 <low_set_pc>: Declare.
1858 (mips_target::low_supports_breakpoints): Define.
1859 (mips_get_pc): Turn into...
1860 (mips_target::low_get_pc): ...this.
1861 (mips_set_pc): Turn into...
1862 (mips_target::low_set_pc): ...this.
1863 (the_low_target): Remove the op fields.
1864 * linux-ppc-low.cc (class ppc_target)
1865 <low_supports_breakpoints>
1866 <low_get_pc>
1867 <low_set_pc>: Declare.
1868 (ppc_target::low_supports_breakpoints): Define.
1869 (ppc_get_pc): Turn into...
1870 (ppc_target::low_get_pc): ...this.
1871 (ppc_set_pc): Turn into...
1872 (ppc_target::low_set_pc): ...this.
1873 (the_low_target): Remove the op fields.
1874 * linux-riscv-low.cc (class riscv_target)
1875 <low_supports_breakpoints>
1876 <low_get_pc>
1877 <low_set_pc>: Declare.
1878 (riscv_target::low_supports_breakpoints): Define.
1879 (riscv_get_pc): Turn into...
1880 (riscv_target::low_get_pc): ...this.
1881 (riscv_set_pc): Turn into...
1882 (riscv_target::low_set_pc): ...this.
1883 (the_low_target): Remove the op fields.
1884 * linux-s390-low.cc (class s390_target)
1885 <low_supports_breakpoints>
1886 <low_get_pc>
1887 <low_set_pc>: Declare.
1888 (s390_target::low_supports_breakpoints): Define.
1889 (s390_get_pc): Turn into...
1890 (s390_target::low_get_pc): ...this.
1891 (s390_set_pc): Turn into...
1892 (s390_target::low_set_pc): ...this.
1893 (the_low_target): Remove the op fields.
1894 * linux-tic6x-low.cc (class tic6x_target)
1895 <low_supports_breakpoints>
1896 <low_get_pc>
1897 <low_set_pc>: Declare.
1898 (tic6x_target::low_supports_breakpoints): Define.
1899 (tic6x_get_pc): Turn into...
1900 (tic6x_target::low_get_pc): ...this.
1901 (tic6x_set_pc): Turn into...
1902 (tic6x_target::low_set_pc): ...this.
1903 (the_low_target): Remove the op fields.
1904
df95181f
TBA
19052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1906
1907 Turn some more static methods in linux-low into private methods
1908 of linux_process_target.
1909
1910 * linux-low.cc (get_pc): Turn into...
1911 (linux_process_target::get_pc): ...this.
1912 (save_stop_reason): Turn into...
1913 (linux_process_target::save_stop_reason): ...this.
1914 (thread_still_has_status_pending_p): Turn into...
1915 (linux_process_target::thread_still_has_status_pending): ...this.
1916 (status_pending_p_callback): Turn into...
1917 (linux_process_target::status_pending_p_callback): ...this.
1918 (resume_stopped_resumed_lwps): Turn into...
1919 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1920 (install_software_single_step_breakpoints): Turn into...
1921 (linux_process_target::install_software_single_step_breakpoints):
1922 ...this.
1923 (single_step): Turn into...
1924 (linux_process_target::single_step): ...this.
1925 (linux_resume_one_lwp_throw): Turn into...
1926 (linux_process_target::resume_one_lwp_throw): ...this.
1927 (linux_resume_one_lwp): Turn into...
1928 (linux_process_target::resume_one_lwp): ...this.
1929 (resume_status_pending_p): Turn into...
1930 (linux_process_target::resume_status_pending): ...this.
1931 (need_step_over_p): Turn into...
1932 (linux_process_target::thread_needs_step_over): ...this.
1933 (linux_resume_one_thread): Turn into...
1934 (linux_process_target::resume_one_thread): ...this.
1935 (proceed_one_lwp): Turn into...
1936 (linux_process_target::proceed_one_lwp): ...this.
1937 (unsuspend_and_proceed_one_lwp): Turn into...
1938 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1939
1940 Update the calls/references to the above functions below.
1941
1942 (linux_process_target::handle_extended_wait)
1943 (linux_process_target::filter_event)
1944 (linux_process_target::wait_for_event_filtered)
1945 (linux_process_target::wait_1)
1946 (linux_process_target::move_out_of_jump_pad)
1947 (linux_process_target::start_step_over)
1948 (linux_process_target::resume)
1949 (linux_process_target::proceed_all_lwps)
1950 (regsets_store_inferior_registers)
1951 (linux_process_target::store_register)
1952
1953 * linux-low.h (class linux_process_target)
1954 <get_pc>
1955 <save_stop_reason>
1956 <thread_still_has_status_pending>
1957 <status_pending_p_callback>
1958 <resume_stopped_resumed_lwps>
1959 <install_software_single_step_breakpoints>
1960 <single_step>
1961 <resume_one_lwp_throw>
1962 <resume_one_lwp>
1963 <resume_status_pending>
1964 <thread_needs_step_over>
1965 <resume_one_thread>
1966 <proceed_one_lwp>
1967 <unsuspend_and_proceed_one_lwp>: Declare.
1968
bd70b1f2
TBA
19692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1970
1971 Turn the 'fetch_register' linux target op into a method of
1972 linux_process_target.
1973
1974 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1975 (class linux_process_target) <low_fetch_register>: Declare.
1976 * linux-x86-low.cc (the_low_target)
1977 * linux-aarch64-low.cc (the_low_target)
1978 * linux-arm-low.cc (the_low_target)
1979 * linux-bfin-low.cc (the_low_target)
1980 * linux-cris-low.cc (the_low_target)
1981 * linux-crisv32-low.cc (the_low_target)
1982 * linux-m32r-low.cc (the_low_target)
1983 * linux-m68k-low.cc (the_low_target)
1984 * linux-nios2-low.cc (the_low_target)
1985 * linux-ppc-low.cc (the_low_target)
1986 * linux-s390-low.cc (the_low_target)
1987 * linux-sh-low.cc (the_low_target)
1988 * linux-sparc-low.cc (the_low_target)
1989 * linux-tic6x-low.cc (the_low_target)
1990 * linux-tile-low.cc (the_low_target)
1991 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1992 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1993 Declare.
1994 (ia64_fetch_register): Turn into...
1995 (ia64_target::low_fetch_register): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1998 Declare.
1999 (mips_fetch_register): Turn into...
2000 (mips_target::low_fetch_register): ...this.
2001 (the_low_target): Remove the op field.
2002 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2003 Declare.
2004 (riscv_fetch_register): Turn into...
2005 (riscv_target::low_fetch_register): ...this.
2006 (the_low_target): Remove the op field.
2007
2008 Update the callers below.
2009
2010 * linux-low.cc (linux_process_target::fetch_registers)
2011 (linux_process_target::low_fetch_register)
2012
daca57a7
TBA
20132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2014
2015 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2016 linux target ops into methods of linux_process_target.
2017
2018 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2019 (class linux_process_target) <fetch_register>
2020 <store_register>
2021 <usr_fetch_inferior_registers>
2022 <usr_store_inferior_registers>
2023 <low_cannot_fetch_register>
2024 <low_cannot_fetch_register> Declare.
2025 * linux-low.cc (fetch_register): Turn into...
2026 (linux_process_target::fetch_register): ...this.
2027 (store_register): Turn into ...
2028 (linux_process_target::store_register): ...this.
2029 (usr_fetch_inferior_registers): Turn into...
2030 (linux_process_target::usr_fetch_inferior_registers): ...this.
2031 (usr_store_inferior_registers): Turn into...
2032 (linux_process_target::usr_store_inferior_registers): ...this.
2033 * linux-x86-low.cc (class x86_target)
2034 <low_cannot_fetch_register>
2035 <low_cannot_store_register>: Declare.
2036 (x86_cannot_store_register): Turn into...
2037 (x86_target::low_cannot_store_register): ...this.
2038 (x86_cannot_fetch_register): Turn into...
2039 (x86_target::low_cannot_fetch_register): ...this.
2040 (the_low_target): Remove the target op fields.
2041 * linux-aarch64-low.cc (class aarch64_target)
2042 <low_cannot_fetch_register>
2043 <low_cannot_store_register>: Declare.
2044 (aarch64_target::low_cannot_fetch_register)
2045 (aarch64_target::low_cannot_store_register): Define.
2046 (the_low_target): Remove the op fields.
2047 * linux-arm-low.cc (class arm_target)
2048 <low_cannot_fetch_register>
2049 <low_cannot_store_register>: Declare.
2050 (arm_cannot_fetch_register): Turn into...
2051 (arm_target::low_cannot_fetch_register): ...this.
2052 (arm_cannot_store_register): Turn into...
2053 (arm_target::low_cannot_store_register): ...this.
2054 (the_low_target): Remove the op fields.
2055 * linux-bfin-low.cc (class bfin_target)
2056 <low_cannot_fetch_register>
2057 <low_cannot_store_register>: Declare.
2058 (bfin_cannot_fetch_register): Turn into...
2059 (bfin_target::low_cannot_fetch_register): ...this.
2060 (bfin_cannot_store_register): Turn into...
2061 (bfin_target::low_cannot_store_register): ...this.
2062 (the_low_target): Remove the op fields.
2063 * linux-cris-low.cc (class cris_target)
2064 <low_cannot_fetch_register>
2065 <low_cannot_store_register>: Declare.
2066 (cris_cannot_fetch_register): Turn into...
2067 (cris_target::low_cannot_fetch_register): ...this.
2068 (cris_cannot_store_register): Turn into...
2069 (cris_target::low_cannot_store_register): ...this.
2070 (the_low_target): Remove the op fields.
2071 * linux-crisv32-low.cc (class crisv32_target)
2072 <low_cannot_fetch_register>
2073 <low_cannot_store_register>: Declare.
2074 (crisv32_target::low_cannot_fetch_register)
2075 (crisv32_target::low_cannot_store_register): Define.
2076 (the_low_target): Remove the op fields.
2077 * linux-ia64-low.cc (class ia64_target)
2078 <low_cannot_fetch_register>
2079 <low_cannot_store_register>: Declare.
2080 (ia64_cannot_fetch_register): Turn into...
2081 (ia64_target::low_cannot_fetch_register): ...this.
2082 (ia64_cannot_store_register): Turn into...
2083 (ia64_target::low_cannot_store_register): ...this.
2084 (the_low_target): Remove the op fields.
2085 * linux-m32r-low.cc (class m32r_target)
2086 <low_cannot_fetch_register>
2087 <low_cannot_store_register>: Declare.
2088 (m32r_cannot_fetch_register): Turn into...
2089 (m32r_target::low_cannot_fetch_register): ...this.
2090 (m32r_cannot_store_register): Turn into...
2091 (m32r_target::low_cannot_store_register): ...this.
2092 (the_low_target): Remove the op fields.
2093 * linux-m68k-low.cc (class m68k_target)
2094 <low_cannot_fetch_register>
2095 <low_cannot_store_register>: Declare.
2096 (m68k_cannot_fetch_register): Turn into...
2097 (m68k_target::low_cannot_fetch_register): ...this.
2098 (m68k_cannot_store_register): Turn into...
2099 (m68k_target::low_cannot_store_register): ...this.
2100 (the_low_target): Remove the op fields.
2101 * linux-mips-low.cc (class mips_target)
2102 <low_cannot_fetch_register>
2103 <low_cannot_store_register>: Declare.
2104 (mips_cannot_fetch_register): Turn into...
2105 (mips_target::low_cannot_fetch_register): ...this.
2106 (mips_cannot_store_register): Turn into...
2107 (mips_target::low_cannot_store_register): ...this.
2108 (get_usrregs_info): Inline at the call sites in
2109 low_cannot_fetch_register and low_cannot_store_register,
2110 and remove.
2111 (the_low_target): Remove the op fields.
2112 * linux-nios2-low.cc (class nios2_target)
2113 <low_cannot_fetch_register>
2114 <low_cannot_store_register>: Declare.
2115 (nios2_cannot_fetch_register): Turn into...
2116 (nios2_target::low_cannot_fetch_register): ...this.
2117 (nios2_cannot_store_register): Turn into...
2118 (nios2_target::low_cannot_store_register): ...this.
2119 (the_low_target): Remove the op fields.
2120 * linux-ppc-low.cc (class ppc_target)
2121 <low_cannot_fetch_register>
2122 <low_cannot_store_register>: Declare.
2123 (ppc_cannot_fetch_register): Turn into...
2124 (ppc_target::low_cannot_fetch_register): ...this.
2125 (ppc_cannot_store_register): Turn into...
2126 (ppc_target::low_cannot_store_register): ...this.
2127 (the_low_target): Remove the op fields.
2128 * linux-riscv-low.cc (class riscv_target)
2129 <low_cannot_fetch_register>
2130 <low_cannot_store_register>: Declare.
2131 (riscv_target::low_cannot_fetch_register)
2132 (riscv_target::low_cannot_store_register): Define.
2133 (the_low_target): Remove the op fields.
2134 * linux-s390-low.cc (class s390_target)
2135 <low_cannot_fetch_register>
2136 <low_cannot_store_register>: Declare.
2137 (s390_cannot_fetch_register): Turn into...
2138 (s390_target::low_cannot_fetch_register): ...this.
2139 (s390_cannot_store_register): Turn into...
2140 (s390_target::low_cannot_store_register): ...this.
2141 (the_low_target): Remove the op fields.
2142 * linux-sh-low.cc (class sh_target)
2143 <low_cannot_fetch_register>
2144 <low_cannot_store_register>: Declare.
2145 (sh_cannot_fetch_register): Turn into...
2146 (sh_target::low_cannot_fetch_register): ...this.
2147 (sh_cannot_store_register): Turn into...
2148 (sh_target::low_cannot_store_register): ...this.
2149 (the_low_target): Remove the op fields.
2150 * linux-sparc-low.cc (class sparc_target)
2151 <low_cannot_fetch_register>
2152 <low_cannot_store_register>: Declare.
2153 (sparc_cannot_fetch_register): Turn into...
2154 (sparc_target::low_cannot_fetch_register): ...this.
2155 (sparc_cannot_store_register): Turn into...
2156 (sparc_target::low_cannot_store_register): ...this.
2157 (the_low_target): Remove the op fields.
2158 * linux-tic6x-low.cc (class tic6x_target)
2159 <low_cannot_fetch_register>
2160 <low_cannot_store_register>: Declare.
2161 (tic6x_cannot_fetch_register): Turn into...
2162 (tic6x_target::low_cannot_fetch_register): ...this.
2163 (tic6x_cannot_store_register): Turn into...
2164 (tic6x_target::low_cannot_store_register): ...this.
2165 (the_low_target): Remove the op fields.
2166 * linux-tile-low.cc (class tile_target)
2167 <low_cannot_fetch_register>
2168 <low_cannot_store_register>: Declare.
2169 (tile_cannot_fetch_register): Turn into...
2170 (tile_target::low_cannot_fetch_register): ...this.
2171 (tile_cannot_store_register): Turn into...
2172 (tile_target::low_cannot_store_register): ...this.
2173 (the_low_target): Remove the op fields.
2174 * linux-xtensa-low.cc (class xtensa_target)
2175 <low_cannot_fetch_register>
2176 <low_cannot_store_register>: Declare.
2177 (xtensa_target::low_cannot_fetch_register)
2178 (xtensa_target::low_cannot_store_register): Define.
2179 (the_low_target): Remove the op fields.
2180
aa8d21c9
TBA
21812020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2182
2183 Turn the 'regs_info' linux target op into a method of
2184 linux_process_target.
2185
2186 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2187 (class linux_process_target) <get_regs_info>: Define.
2188
2189 Update the callers below.
2190
2191 * linux-low.cc (linux_process_target::fetch_registers)
2192 (linux_process_target::store_registers)
2193 * proc-service.cc (gregset_info)
2194
2195 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2196 (x86_linux_regs_info): Turn into ...
2197 (x86_target::get_regs_info): ...this.
2198 (the_low_target): Remove the op field.
2199 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2200 Declare.
2201 (aarch64_regs_info): Turn into ...
2202 (aarch64_target::get_regs_info): ...this.
2203 (the_low_target): Remove the op field.
2204 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2205 (arm_regs_info): Turn into ...
2206 (arm_target::get_regs_info): ...this.
2207 (the_low_target): Remove the op field.
2208 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2209 (bfin_regs_info): Turn into ...
2210 (bfin_target::get_regs_info): ...this.
2211 (the_low_target): Remove the op field.
2212 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2213 (cris_regs_info): Turn into ...
2214 (cris_target::get_regs_info): ...this.
2215 (the_low_target): Remove the op field.
2216 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2217 Declare.
2218 (crisv32_regs_info): Turn into ...
2219 (crisv32_target::get_regs_info): ...this.
2220 (the_low_target): Remove the op field.
2221 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2222 (ia64_regs_info): Turn into ...
2223 (ia64_target::get_regs_info): ...this.
2224 (the_low_target): Remove the op field.
2225 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2226 (m32r_regs_info): Turn into ...
2227 (m32r_target::get_regs_info): ...this.
2228 (the_low_target): Remove the op field.
2229 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2230 (m68k_regs_info): Turn into ...
2231 (m68k_target::get_regs_info): ...this.
2232 (the_low_target): Remove the op field.
2233 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2234 (mips_regs_info): Turn into ...
2235 (mips_target::get_regs_info): ...this.
2236 (the_low_target): Remove the op field.
2237 (get_usrregs_info): Update the call to the op.
2238 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2239 (nios2_regs_info): Turn into ...
2240 (nios2_target::get_regs_info): ...this.
2241 (the_low_target): Remove the op field.
2242 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2243 (ppc_regs_info): Turn into ...
2244 (ppc_target::get_regs_info): ...this.
2245 (the_low_target): Remove the op field.
2246 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2247 (riscv_regs_info): Turn into ...
2248 (riscv_target::get_regs_info): ...this.
2249 (the_low_target): Remove the op field.
2250 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2251 (s390_regs_info): Turn into ...
2252 (s390_target::get_regs_info): ...this.
2253 (the_low_target): Remove the op field.
2254 (s390_collect_ptrace_register)
2255 (s390_supply_ptrace_register)
2256 (s390_fill_gregset): Update the call to the op.
2257 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2258 (sh_regs_info): Turn into ...
2259 (sh_target::get_regs_info): ...this.
2260 (the_low_target): Remove the op field.
2261 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2262 (sparc_regs_info): Turn into ...
2263 (sparc_target::get_regs_info): ...this.
2264 (the_low_target): Remove the op field.
2265 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2266 (tic6x_regs_info): Turn into ...
2267 (tic6x_target::get_regs_info): ...this.
2268 (the_low_target): Remove the op field.
2269 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2270 (tile_regs_info): Turn into ...
2271 (tile_target::get_regs_info): ...this.
2272 (the_low_target): Remove the op field.
2273 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2274 Declare.
2275 (xtensa_regs_info): Turn into ...
2276 (xtensa_target::get_regs_info): ...this.
2277 (the_low_target): Remove the op field.
2278
797bcff5
TBA
22792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2280
2281 Turn the 'arch_setup' linux target op into a method of
2282 linux_process_target.
2283
2284 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2285 (class linux_process_target) <arch_setup_thread>
2286 <low_arch_setup>: New declarations.
2287 * linux-low.cc (linux_arch_setup): Delete.
2288 (linux_arch_setup_thread): Turn into...
2289 (linux_process_target::arch_setup_thread): ... this.
2290
2291 Update the callers below.
2292
2293 (linux_process_target::handle_extended_wait)
2294 (linux_process_target::post_create_inferior)
2295 (linux_process_target::filter_event)
2296
2297 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2298 declaration.
2299 (x86_linux_update_xmltarget): Turn into...
2300 (x86_target::update_xmltarget): ...this.
2301 (x86_linux_process_qsupported): Update the call to
2302 x86_linux_update_xmltarget.
2303 (x86_arch_setup): Turn into ...
2304 (x86_target::low_arch_setup): ...this.
2305 (the_low_target): Remove the op field.
2306 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2307 declaration.
2308 (aarch64_arch_setup): Turn into ...
2309 (aarch64_target::low_arch_setup): ...this.
2310 (the_low_target): Remove the op field.
2311 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2312 declaration.
2313 (arm_arch_setup): Turn into ...
2314 (arm_target::low_arch_setup): ...this.
2315 (the_low_target): Remove the op field.
2316 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2317 declaration.
2318 (bfin_arch_setup): Turn into ...
2319 (bfin_target::low_arch_setup): ...this.
2320 (the_low_target): Remove the op field.
2321 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2322 declaration.
2323 (cris_arch_setup): Turn into ...
2324 (cris_target::low_arch_setup): ...this.
2325 (the_low_target): Remove the op field.
2326 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2327 declaration.
2328 (crisv32_arch_setup): Turn into ...
2329 (crisv32_target::low_arch_setup): ...this.
2330 (the_low_target): Remove the op field.
2331 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2332 declaration.
2333 (ia64_arch_setup): Turn into ...
2334 (ia64_target::low_arch_setup): ...this.
2335 (the_low_target): Remove the op field.
2336 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2337 declaration.
2338 (m32r_arch_setup): Turn into ...
2339 (m32r_target::low_arch_setup): ...this.
2340 (the_low_target): Remove the op field.
2341 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2342 declaration.
2343 (m68k_arch_setup): Turn into ...
2344 (m68k_target::low_arch_setup): ...this.
2345 (the_low_target): Remove the op field.
2346 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2347 declaration.
2348 (mips_arch_setup): Turn into ...
2349 (mips_target::low_arch_setup): ...this.
2350 (the_low_target): Remove the op field.
2351 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2352 declaration.
2353 (nios2_arch_setup): Turn into ...
2354 (nios2_target::low_arch_setup): ...this.
2355 (the_low_target): Remove the op field.
2356 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2357 declaration.
2358 (ppc_arch_setup): Turn into ...
2359 (ppc_target::low_arch_setup): ...this.
2360 (the_low_target): Remove the op field.
2361 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2362 declaration.
2363 (riscv_arch_setup): Turn into ...
2364 (riscv_target::low_arch_setup): ...this.
2365 (the_low_target): Remove the op field.
2366 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2367 declaration.
2368 (s390_arch_setup): Turn into ...
2369 (s390_target::low_arch_setup): ...this.
2370 (the_low_target): Remove the op field.
2371 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2372 declaration.
2373 (sh_arch_setup): Turn into ...
2374 (sh_target::low_arch_setup): ...this.
2375 (the_low_target): Remove the op field.
2376 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2377 declaration.
2378 (sparc_arch_setup): Turn into ...
2379 (sparc_target::low_arch_setup): ...this.
2380 (the_low_target): Remove the op field.
2381 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2382 declaration.
2383 (tic6x_arch_setup): Turn into ...
2384 (tic6x_target::low_arch_setup): ...this.
2385 (the_low_target): Remove the op field.
2386 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2387 declaration.
2388 (tile_arch_setup): Turn into ...
2389 (tile_target::low_arch_setup): ...this.
2390 (the_low_target): Remove the op field.
2391 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2392 declaration.
2393 (xtensa_arch_setup): Turn into ...
2394 (xtensa_target::low_arch_setup): ...this.
2395 (the_low_target): Remove the op field.
2396
ef0478f6
TBA
23972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2398
2399 * linux-low.h (the_linux_target): New extern declaration.
2400 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2401 'the_target'.
2402 (the_linux_target): Remove.
2403 * linux-x86-low.cc (class x86_target): New class.
2404 (the_x86_target): New static object.
2405 (the_linux_target): Define as pointer to the_x86_target.
2406 * linux-aarch64-low.cc (class aarch64_target): New class.
2407 (the_aarch64_target): New static object.
2408 (the_linux_target): Define as pointer to the_aarch64_target.
2409 * linux-arm-low.cc (class arm_target): New class.
2410 (the_arm_target): New static object.
2411 (the_linux_target): Define as pointer to the_arm_target.
2412 * linux-bfin-low.cc (class bfin_target): New class.
2413 (the_bfin_target): New static object.
2414 (the_linux_target): Define as pointer to the_bfin_target.
2415 * linux-cris-low.cc (class cris_target): New class.
2416 (the_cris_target): New static object.
2417 (the_linux_target): Define as pointer to the_cris_target.
2418 * linux-crisv32-low.cc (class crisv32_target): New class.
2419 (the_crisv32_target): New static object.
2420 (the_linux_target): Define as pointer to the_crisv32_target.
2421 * linux-ia64-low.cc (class ia64_target): New class.
2422 (the_ia64_target): New static object.
2423 (the_linux_target): Define as pointer to the_ia64_target.
2424 * linux-m32r-low.cc (class m32r_target): New class.
2425 (the_m32r_target): New static object.
2426 (the_linux_target): Define as pointer to the_m32r_target.
2427 * linux-m68k-low.cc (class m68k_target): New class.
2428 (the_m68k_target): New static object.
2429 (the_linux_target): Define as pointer to the_m68k_target.
2430 * linux-mips-low.cc (class mips_target): New class.
2431 (the_mips_target): New static object.
2432 (the_linux_target): Define as pointer to the_mips_target.
2433 * linux-nios2-low.cc (class nios2_target): New class.
2434 (the_nios2_target): New static object.
2435 (the_linux_target): Define as pointer to the_nios2_target.
2436 * linux-ppc-low.cc (class ppc_target): New class.
2437 (the_ppc_target): New static object.
2438 (the_linux_target): Define as pointer to the_ppc_target.
2439 * linux-riscv-low.cc (class riscv_target): New class.
2440 (the_riscv_target): New static object.
2441 (the_linux_target): Define as pointer to the_riscv_target.
2442 * linux-s390-low.cc (class s390_target): New class.
2443 (the_s390_target): New static object.
2444 (the_linux_target): Define as pointer to the_s390_target.
2445 * linux-sh-low.cc (class sh_target): New class.
2446 (the_sh_target): New static object.
2447 (the_linux_target): Define as pointer to the_sh_target.
2448 * linux-sparc-low.cc (class sparc_target): New class.
2449 (the_sparc_target): New static object.
2450 (the_linux_target): Define as pointer to the_sparc_target.
2451 * linux-tic6x-low.cc (class tic6x_target): New class.
2452 (the_tic6x_target): New static object.
2453 (the_linux_target): Define as pointer to the_tic6x_target.
2454 * linux-tile-low.cc (class tile_target): New class.
2455 (the_tile_target): New static object.
2456 (the_linux_target): Define as pointer to the_tile_target.
2457 * linux-xtensa-low.cc (class xtensa_target): New class.
2458 (the_xtensa_target): New static object.
2459 (the_linux_target): Define as pointer to the_xtensa_target.
2460
d16f3f6c
TBA
24612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2462
2463 Turn some static functions in linux-low.cc into private methods of
2464 linux_process_target.
2465
2466 * linux-low.cc (handle_extended_wait): Turn into ...
2467 (linux_process_target::handle_extended_wait): ...this. Call
2468 'mourn' on 'this' object instead of 'the_target'.
2469 (maybe_move_out_of_jump_pad): Turn into...
2470 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2471 (linux_low_filter_event): Turn into...
2472 (linux_process_target::filter_event): ...this.
2473 (linux_wait_for_event_filtered): Turn into...
2474 (linux_process_target::wait_for_event_filtered): ...this.
2475 (linux_wait_for_event): Turn into...
2476 (linux_process_target::wait_for_event): ...this.
2477 (linux_wait_1): Turn into...
2478 (linux_process_target::wait_1): ...this.
2479 (wait_for_sigstop): Turn into...
2480 (linux_process_target::wait_for_sigstop): ...this.
2481 (move_out_of_jump_pad_callback): Turn into...
2482 (linux_process_target::move_out_of_jump_pad): ...this.
2483 (stop_all_lwps): Turn into...
2484 (linux_process_target::stop_all_lwps): ...this.
2485 (start_step_over): Turn into...
2486 (linux_process_target::start_step_over): ...this.
2487 (complete_ongoing_step_over): Turn into...
2488 (linux_process_target::complete_ongoing_step_over): ...this.
2489 (proceed_all_lwps): Turn into...
2490 (linux_process_target::proceed_all_lwps): ...this.
2491 (unstop_all_lwps): Turn into...
2492 (linux_process_target::unstop_all_lwps): ...this.
2493
2494 * linux-low.h (class linux_process_target)
2495 <handle_extended_wait>
2496 <maybe_move_out_of_jump_pad>
2497 filter_event>
2498 <wait_for_event_filtered>
2499 <wait_for_event>
2500 <wait_1>
2501 <wait_for_sigstop>
2502 <move_out_of_jump_pad>
2503 <stop_all_lwps>
2504 <start_step_over>
2505 <complete_ongoing_step_over>
2506 <proceed_all_lwps>
2507 <unstop_all_lwps>: Declare.
2508
2509 Update the callers below.
2510
2511 * linux-low.cc (linux_process_target::attach): Update.
2512 (linux_process_target::stabilize_threads): Ditto.
2513 (linux_process_target::wait): Ditto.
2514
a5863204
TBA
25152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2516
2517 * linux-low.h (struct linux_target_ops): Update the comment for
2518 'cannot_store_register' to return 0 or 1.
2519 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2520 of 2.
2521
c884cc46
SM
25222020-03-20 Simon Marchi <simon.marchi@efficios.com>
2523
2524 * config.in: Re-generate.
2525 * configure: Re-generate.
2526
5a82b8a1
KR
25272020-03-17 Kamil Rytarowski <n54@gmx.com>
2528
2529 * regcache.cc (find_register_by_number): Update.
2530 * tdesc.cc (init_target_desc): Likewise.
2531 * tdesc.h (target_desc::reg_defs): Likewise.
2532
4635ff97
TT
25332020-03-12 Tom Tromey <tom@tromey.com>
2534
2535 * configure: Rebuild.
2536 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2537 (WIN32APILIBS): New subst.
2538 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2539 gdbsupport files.
2540 (gdbsupport/%.o): Remove target.
2541 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2542 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2543 (WIN32APILIBS): New variable.
2544 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2545 (gdbreplay$(EXEEXT)): Likewise.
2546
9a665d62
TT
25472020-03-12 Tom Tromey <tom@tromey.com>
2548
2549 * config.in, configure: Rebuild.
2550 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2551 * acinclude.m4: Include gettext-sister.m4.
2552 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2553 variables.
2554 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2555 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2556
272cd5a3
SM
25572020-03-12 Simon Marchi <simon.marchi@efficios.com>
2558
2559 * acinclude.m4: Update path to selftest.m4.
2560
db6878ac
SM
25612020-03-12 Simon Marchi <simon.marchi@efficios.com>
2562
2563 * configure.ac: Don't source bfd/development.sh, move
2564 GDB_AC_COMMON higher.
2565 * configure: Re-generate.
2566
4d696a5c
SM
25672020-03-12 Simon Marchi <simon.marchi@efficios.com>
2568
2569 * configure: Re-generate.
2570
a0761e34
SM
25712020-03-11 Simon Marchi <simon.marchi@efficios.com>
2572
2573 * configure: Re-generate.
2574
20ea4a60
AB
25752020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2576
2577 * .dir-locals.el: New file.
2578
842806cb
TBA
25792020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2580
2581 * .gitattributes: New file.
2582
442131c1
AB
25832020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2584
2585 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2586 reply into an S reply.
2587 * server.cc (disable_packet_T): New global.
2588 (captured_main): Set new global when appropriate.
2589 * server.h (disable_packet_T): Declare.
2590
dda42c0b
TT
25912020-02-21 Tom Tromey <tom@tromey.com>
2592
2593 * Makefile.in (mostlyclean): New target.
2594
52405d85
TBA
25952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2596
2597 * target.h (struct process_stratum_target): Remove.
2598 (class process_target): Rename to ...
2599 (class process_stratum_target): ... this.
2600 * linux-low.h (class linux_process_target): Derive from
2601 'process_stratum_target'.
2602 * linux-low.cc (linux_target_ops): Remove.
2603 (initialize_low): Set the_target to the singleton instance of
2604 linux_process_target.
2605 * lynx-low.h (class lynx_process_target): Derive from
2606 'process_stratum_target'.
2607 * lynx-low.cc (lynx_target_ops): Remove.
2608 (initialize_low): Set the_target to the singleton instance of
2609 lynx_process_target.
2610 * nto-low.h (class nto_process_target): Derive from
2611 'process_stratum_target'.
2612 * nto-low.cc (nto_target_ops): Remove.
2613 (initialize_low): Set the_target to the singleton instance of
2614 nto_process_target.
2615 * win32-low.h (class win32_process_target): Derive from
2616 'process_stratum_target'.
2617 * win32-low.cc (win32_target_ops): Remove.
2618 (initialize_low): Set the_target to the singleton instance of
2619 win32_process_target.
2620
2621 Replace 'the_target->pt' with 'the_target' in the uses below.
2622
2623 * hostio.cc (hostio_error)
2624 (handle_setfs)
2625 (handle_open)
2626 (handle_unlink)
2627 (handle_readlink)
2628 * linux-aarch32-low.cc (arm_breakpoint_at)
2629 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2630 * linux-arm-low.cc (arm_sigreturn_next_pc)
2631 (arm_get_hwcap)
2632 (arm_get_syscall_trapinfo)
2633 * linux-cris-low.cc (cris_breakpoint_at)
2634 * linux-crisv32-low.cc (cris_breakpoint_at)
2635 * linux-low.cc (handle_extended_wait)
2636 (linux_wait_1)
2637 (linux_read_memory)
2638 (linux_process_target::breakpoint_kind_from_pc)
2639 (linux_get_auxv)
2640 * linux-m32r-low.cc (m32r_breakpoint_at)
2641 * linux-mips-low.cc (mips_breakpoint_at)
2642 * linux-nios2-low.cc (nios2_breakpoint_at)
2643 * linux-ppc-low.cc (ppc_breakpoint_at)
2644 * linux-s390-low.cc (s390_get_hwcap)
2645 * linux-sh-low.cc (sh_breakpoint_at)
2646 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2647 (sparc_store_gregset_from_stack)
2648 (sparc_breakpoint_at)
2649 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2650 * linux-tile-low.cc (tile_breakpoint_at)
2651 * linux-x86-low.cc (x86_breakpoint_at)
2652 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2653 * mem-break.cc (bp_size)
2654 (bp_opcode)
2655 (insert_memory_breakpoint)
2656 (set_raw_breakpoint_at)
2657 (delete_raw_breakpoint)
2658 (z_type_supported)
2659 (uninsert_raw_breakpoint)
2660 (reinsert_raw_breakpoint)
2661 (validate_inserted_breakpoint)
2662 * regcache.cc (regcache_read_pc)
2663 (regcache_write_pc)
2664 * remote-utils.cc (putpkt_binary_1)
2665 (input_interrupt)
2666 (getpkt)
2667 (prepare_resume_reply)
2668 * server.cc (handle_general_set)
2669 (handle_detach)
2670 (handle_qxfer_auxv)
2671 (handle_qxfer_exec_file)
2672 (handle_qxfer_libraries_svr4)
2673 (handle_qxfer_osdata)
2674 (handle_qxfer_siginfo)
2675 (handle_qxfer_fdpic)
2676 (handle_query)
2677 (resume)
2678 (handle_v_requests)
2679 (queue_stop_reply_callback)
2680 (captured_main)
2681 * target.cc (prepare_to_access_memory)
2682 (done_accessing_memory)
2683 (read_inferior_memory)
2684 (target_write_memory)
2685 (target_stop_and_wait)
2686 (target_wait)
2687 (target_mourn_inferior)
2688 (target_continue_no_signal)
2689 (target_continue)
2690 (target_supports_multi_process)
2691 (kill_inferior)
2692 * target.h
2693 (target_create_inferior)
2694 (target_post_create_inferior)
2695 (myattach)
2696 (target_supports_fork_events)
2697 (target_supports_vfork_events)
2698 (target_supports_exec_events)
2699 (target_handle_new_gdb_connection)
2700 (detach_inferior)
2701 (mythread_alive)
2702 (fetch_inferior_registers)
2703 (store_inferior_registers)
2704 (join_inferior)
2705 (target_supports_non_stop)
2706 (target_async)
2707 (target_process_qsupported)
2708 (target_supports_catch_syscall)
2709 (target_get_ipa_tdesc_idx)
2710 (target_supports_tracepoints)
2711 (target_supports_fast_tracepoints)
2712 (target_get_min_fast_tracepoint_insn_len)
2713 (target_thread_stopped)
2714 (target_pause_all)
2715 (target_unpause_all)
2716 (target_stabilize_threads)
2717 (target_install_fast_tracepoint_jump_pad)
2718 (target_emit_ops)
2719 (target_supports_disable_randomization)
2720 (target_supports_agent)
2721 (target_enable_btrace)
2722 (target_disable_btrace)
2723 (target_read_btrace)
2724 (target_read_btrace_conf)
2725 (target_supports_range_stepping)
2726 (target_supports_stopped_by_sw_breakpoint)
2727 (target_stopped_by_sw_breakpoint)
2728 (target_supports_stopped_by_hw_breakpoint)
2729 (target_supports_hardware_single_step)
2730 (target_stopped_by_hw_breakpoint)
2731 (target_breakpoint_kind_from_pc)
2732 (target_breakpoint_kind_from_current_state)
2733 (target_supports_software_single_step)
2734 (target_core_of_thread)
2735 (target_thread_name)
2736 (target_thread_handle)
2737 * win32-low.cc (do_initial_child_stuff)
2738
2739 Rename target op default definitions listed below.
2740
2741 * target.cc (process_target::post_create_inferior): Rename as ...
2742 (process_stratum_target::post_create_inferior): ... this.
2743 (process_target::prepare_to_access_memory): Rename as ...
2744 (process_stratum_target::prepare_to_access_memory): ... this.
2745 (process_target::done_accessing_memory): Rename as ...
2746 (process_stratum_target::done_accessing_memory): ... this.
2747 (process_target::look_up_symbols): Rename as ...
2748 (process_stratum_target::look_up_symbols): ... this.
2749 (process_target::supports_read_auxv): Rename as ...
2750 (process_stratum_target::supports_read_auxv): ... this.
2751 (process_target::read_auxv): Rename as ...
2752 (process_stratum_target::read_auxv): ... this.
2753 (process_target::supports_z_point_type): Rename as ...
2754 (process_stratum_target::supports_z_point_type): ... this.
2755 (process_target::insert_point): Rename as ...
2756 (process_stratum_target::insert_point): ... this.
2757 (process_target::remove_point): Rename as ...
2758 (process_stratum_target::remove_point): ... this.
2759 (process_target::stopped_by_sw_breakpoint): Rename as ...
2760 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2761 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2762 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2763 (process_target::stopped_by_hw_breakpoint): Rename as ...
2764 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2765 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2766 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2767 (process_target::supports_hardware_single_step): Rename as ...
2768 (process_stratum_target::supports_hardware_single_step): ... this.
2769 (process_target::stopped_by_watchpoint): Rename as ...
2770 (process_stratum_target::stopped_by_watchpoint): ... this.
2771 (process_target::stopped_data_address): Rename as ...
2772 (process_stratum_target::stopped_data_address): ... this.
2773 (process_target::supports_read_offsets): Rename as ...
2774 (process_stratum_target::supports_read_offsets): ... this.
2775 (process_target::read_offsets): Rename as ...
2776 (process_stratum_target::read_offsets): ... this.
2777 (process_target::supports_get_tls_address): Rename as ...
2778 (process_stratum_target::supports_get_tls_address): ... this.
2779 (process_target::get_tls_address): Rename as ...
2780 (process_stratum_target::get_tls_address): ... this.
2781 (process_target::hostio_last_error): Rename as ...
2782 (process_stratum_target::hostio_last_error): ... this.
2783 (process_target::supports_qxfer_osdata): Rename as ...
2784 (process_stratum_target::supports_qxfer_osdata): ... this.
2785 (process_target::qxfer_osdata): Rename as ...
2786 (process_stratum_target::qxfer_osdata): ... this.
2787 (process_target::supports_qxfer_siginfo): Rename as ...
2788 (process_stratum_target::supports_qxfer_siginfo): ... this.
2789 (process_target::qxfer_siginfo): Rename as ...
2790 (process_stratum_target::qxfer_siginfo): ... this.
2791 (process_target::supports_non_stop): Rename as ...
2792 (process_stratum_target::supports_non_stop): ... this.
2793 (process_target::async): Rename as ...
2794 (process_stratum_target::async): ... this.
2795 (process_target::start_non_stop): Rename as ...
2796 (process_stratum_target::start_non_stop): ... this.
2797 (process_target::supports_multi_process): Rename as ...
2798 (process_stratum_target::supports_multi_process): ... this.
2799 (process_target::supports_fork_events): Rename as ...
2800 (process_stratum_target::supports_fork_events): ... this.
2801 (process_target::supports_vfork_events): Rename as ...
2802 (process_stratum_target::supports_vfork_events): ... this.
2803 (process_target::supports_exec_events): Rename as ...
2804 (process_stratum_target::supports_exec_events): ... this.
2805 (process_target::handle_new_gdb_connection): Rename as ...
2806 (process_stratum_target::handle_new_gdb_connection): ... this.
2807 (process_target::handle_monitor_command): Rename as ...
2808 (process_stratum_target::handle_monitor_command): ... this.
2809 (process_target::core_of_thread): Rename as ...
2810 (process_stratum_target::core_of_thread): ... this.
2811 (process_target::supports_read_loadmap): Rename as ...
2812 (process_stratum_target::supports_read_loadmap): ... this.
2813 (process_target::read_loadmap): Rename as ...
2814 (process_stratum_target::read_loadmap): ... this.
2815 (process_target::process_qsupported): Rename as ...
2816 (process_stratum_target::process_qsupported): ... this.
2817 (process_target::supports_tracepoints): Rename as ...
2818 (process_stratum_target::supports_tracepoints): ... this.
2819 (process_target::read_pc): Rename as ...
2820 (process_stratum_target::read_pc): ... this.
2821 (process_target::write_pc): Rename as ...
2822 (process_stratum_target::write_pc): ... this.
2823 (process_target::supports_thread_stopped): Rename as ...
2824 (process_stratum_target::supports_thread_stopped): ... this.
2825 (process_target::thread_stopped): Rename as ...
2826 (process_stratum_target::thread_stopped): ... this.
2827 (process_target::supports_get_tib_address): Rename as ...
2828 (process_stratum_target::supports_get_tib_address): ... this.
2829 (process_target::get_tib_address): Rename as ...
2830 (process_stratum_target::get_tib_address): ... this.
2831 (process_target::pause_all): Rename as ...
2832 (process_stratum_target::pause_all): ... this.
2833 (process_target::unpause_all): Rename as ...
2834 (process_stratum_target::unpause_all): ... this.
2835 (process_target::stabilize_threads): Rename as ...
2836 (process_stratum_target::stabilize_threads): ... this.
2837 (process_target::supports_fast_tracepoints): Rename as ...
2838 (process_stratum_target::supports_fast_tracepoints): ... this.
2839 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2840 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2841 (process_target::emit_ops): Rename as ...
2842 (process_stratum_target::emit_ops): ... this.
2843 (process_target::supports_disable_randomization): Rename as ...
2844 (process_stratum_target::supports_disable_randomization): ... this.
2845 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2846 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2847 (process_target::qxfer_libraries_svr4): Rename as ...
2848 (process_stratum_target::qxfer_libraries_svr4): ... this.
2849 (process_target::supports_agent): Rename as ...
2850 (process_stratum_target::supports_agent): ... this.
2851 (process_target::enable_btrace): Rename as ...
2852 (process_stratum_target::enable_btrace): ... this.
2853 (process_target::disable_btrace): Rename as ...
2854 (process_stratum_target::disable_btrace): ... this.
2855 (process_target::read_btrace): Rename as ...
2856 (process_stratum_target::read_btrace): ... this.
2857 (process_target::read_btrace_conf): Rename as ...
2858 (process_stratum_target::read_btrace_conf): ... this.
2859 (process_target::supports_range_stepping): Rename as ...
2860 (process_stratum_target::supports_range_stepping): ... this.
2861 (process_target::supports_pid_to_exec_file): Rename as ...
2862 (process_stratum_target::supports_pid_to_exec_file): ... this.
2863 (process_target::pid_to_exec_file): Rename as ...
2864 (process_stratum_target::pid_to_exec_file): ... this.
2865 (process_target::supports_multifs): Rename as ...
2866 (process_stratum_target::supports_multifs): ... this.
2867 (process_target::multifs_open): Rename as ...
2868 (process_stratum_target::multifs_open): ... this.
2869 (process_target::multifs_unlink): Rename as ...
2870 (process_stratum_target::multifs_unlink): ... this.
2871 (process_target::multifs_readlink): Rename as ...
2872 (process_stratum_target::multifs_readlink): ... this.
2873 (process_target::breakpoint_kind_from_pc): Rename as ...
2874 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2875 (process_target::breakpoint_kind_from_current_state): Rename as ...
2876 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2877 (process_target::thread_name): Rename as ...
2878 (process_stratum_target::thread_name): ... this.
2879 (process_target::thread_handle): Rename as ...
2880 (process_stratum_target::thread_handle): ... this.
2881 (process_target::supports_software_single_step): Rename as ...
2882 (process_stratum_target::supports_software_single_step): ... this.
2883 (process_target::supports_catch_syscall): Rename as ...
2884 (process_stratum_target::supports_catch_syscall): ... this.
2885 (process_target::get_ipa_tdesc_idx): Rename as ...
2886 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2887
478f9adf
PA
28882020-02-20 Pedro Alves <palves@redhat.com>
2889
2890 * target.cc (set_target_ops): Simply copy the given target pointer
2891 instead of creating a copy of the pointed object.
2892
d633e831
TBA
28932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2894
2895 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2896 of process_target.
2897
2898 * target.h (struct process_stratum_target): Remove the target op.
2899 (class process_target): Add the target op.
2900 (target_get_ipa_tdesc_idx): Update the macro.
2901 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2902
2903 Update the derived classes and callers below.
2904
2905 * linux-low.cc (linux_target_ops): Update.
2906 (linux_get_ipa_tdesc_idx): Turn into ...
2907 (linux_process_target::get_ipa_tdesc_idx): ... this.
2908 * linux-low.h (class linux_process_target): Update.
2909 * lynx-low.cc (lynx_target_ops): Update.
2910 * nto-low.cc (nto_target_ops): Update.
2911 * win32-low.cc (win32_target_ops): Update.
2912
bc8d3ae4
TBA
29132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2914
2915 Turn process_stratum_target's supports_catch_syscall op into a
2916 method of process_target.
2917
2918 * target.h (struct process_stratum_target): Remove the target op.
2919 (class process_target): Add the target op.
2920 (target_supports_catch_syscall): Update the macro.
2921 * target.cc (process_target::supports_catch_syscall): Define.
2922
2923 Update the derived classes and callers below.
2924
2925 * linux-low.cc (linux_target_ops): Update.
2926 (linux_supports_catch_syscall): Turn into ...
2927 (linux_process_target::supports_catch_syscall): ... this.
2928 * linux-low.h (class linux_process_target): Update.
2929 * lynx-low.cc (lynx_target_ops): Update.
2930 * nto-low.cc (nto_target_ops): Update.
2931 * win32-low.cc (win32_target_ops): Update.
2932
5303a34f
TBA
29332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2934
2935 Turn process_stratum_target's supports_software_single_step op
2936 into a method of process_target.
2937
2938 * target.h (struct process_stratum_target): Remove the target op.
2939 (class process_target): Add the target op.
2940 (target_supports_software_single_step): Update the macro.
2941 * target.cc (process_target::supports_software_single_step): Define.
2942
2943 Update the derived classes and callers below.
2944
2945 * linux-low.cc (linux_target_ops): Update.
2946 (linux_supports_software_single_step): Turn into ...
2947 (linux_process_target::supports_software_single_step): ... this.
2948 * linux-low.h (class linux_process_target): Update.
2949 * lynx-low.cc (lynx_target_ops): Update.
2950 * nto-low.cc (nto_target_ops): Update.
2951 * win32-low.cc (win32_target_ops): Update.
2952
7f63b89b
TBA
29532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2954
2955 Turn process_stratum_target's thread_name and thread_handle ops
2956 into methods of process_target.
2957
2958 * target.h (struct process_stratum_target): Remove the target ops.
2959 (class process_target): Add the target ops.
2960 (target_thread_name): Update the macro.
2961 (target_thread_handle): Update the macro.
2962 * target.cc (process_target::thread_name): Define.
2963 (process_target::thread_handle): Define.
2964
2965 Update the derived classes and callers below.
2966
2967 * linux-low.cc (linux_target_ops): Update.
2968 (linux_process_target::thread_name): Define.
2969 (linux_process_target::thread_handle): Define.
2970 * linux-low.h (class linux_process_target): Update.
2971 * lynx-low.cc (lynx_target_ops): Update.
2972 * nto-low.cc (nto_target_ops): Update.
2973 * win32-low.cc (win32_target_ops): Update.
2974
d367006f
TBA
29752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2976
2977 Turn process_stratum_target's breakpoint_kind_from_pc,
2978 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2979 ops into methods of process_target.
2980
2981 * target.h (struct process_stratum_target): Remove the target op.
2982 (class process_target): Add the target op.
2983 (target_breakpoint_kind_from_pc): Update the macro.
2984 (target_breakpoint_kind_from_current_state): Update the macro.
2985 (default_breakpoint_kind_from_pc): Remove declaration.
2986 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2987 (process_target::breakpoint_kind_from_pc): ... this.
2988 (process_target::breakpoint_kind_from_current_state): Define.
2989
2990 Update the derived classes and callers below.
2991
2992 * mem-break.cc (bp_size): Update.
2993 (bp_opcode): Update.
2994 * linux-low.cc (linux_target_ops): Update.
2995 (linux_wait_1): Update.
2996 (linux_breakpoint_kind_from_pc): Turn into ...
2997 (linux_process_target::breakpoint_kind_from_pc): ... this.
2998 (linux_sw_breakpoint_from_kind): Turn into ...
2999 (linux_process_target::sw_breakpoint_from_kind): ... this.
3000 (linux_breakpoint_kind_from_current_state): Turn into ...
3001 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3002 * linux-low.h (class linux_process_target): Update.
3003 * lynx-low.cc (lynx_target_ops): Update.
3004 (lynx_process_target::sw_breakpoint_from_kind): Define.
3005 * lynx-low.h (class lynx_process_target): Update.
3006 * nto-low.cc (nto_target_ops): Update.
3007 (nto_sw_breakpoint_from_kind): Turn into ...
3008 (nto_process_target::sw_breakpoint_from_kind): ... this.
3009 * nto-low.h (class nto_process_target): Update.
3010 * win32-low.cc (win32_target_ops): Update.
3011 (win32_sw_breakpoint_from_kind): Turn into ...
3012 (win32_process_target::sw_breakpoint_from_kind): ... this.
3013 * win32-low.h (class win32_process_target): Update.
3014
c9b7b804
TBA
30152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3016
3017 Turn process_stratum_target's multifs_open, multifs_readlink,
3018 multifs_unlink ops into methods of process_target.
3019
3020 * target.h (struct process_stratum_target): Remove the target ops.
3021 (class process_target): Add the target ops. Also add
3022 'supports_multifs'.
3023 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3024 "sys/stat.h".
3025 (process_target::supports_multifs): Define.
3026 (process_target::multifs_open): Define.
3027 (process_target::multifs_readlink): Define.
3028 (process_target::multifs_unlink): Define.
3029
3030 Update the derived classes and callers below.
3031
3032 * hostio.cc (handle_setfs): Update.
3033 (handle_open): Update.
3034 (handle_unlink): Update.
3035 (handle_readlink): Update.
3036 * linux-low.cc (linux_target_ops): Update.
3037 (linux_process_target::supports_multifs): Define.
3038 (linux_process_target::multifs_open): Define.
3039 (linux_process_target::multifs_readlink): Define.
3040 (linux_process_target::multifs_unlink): Define.
3041 * linux-low.h (class linux_process_target): Update.
3042 * lynx-low.cc (lynx_target_ops): Update.
3043 * nto-low.cc (nto_target_ops): Update.
3044 * win32-low.cc (win32_target_ops): Update.
3045
8247b823
TBA
30462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3047
3048 Turn process_stratum_target's pid_to_exec_file op into a method
3049 of process_target.
3050
3051 * target.h (struct process_stratum_target): Remove the target op.
3052 (class process_target): Add the target op. Also add
3053 'supports_pid_to_exec_file'.
3054 * target.cc (process_target::pid_to_exec_file): Define.
3055 (process_target::supports_pid_to_exec_file): Define.
3056
3057 Update the derived classes and callers below.
3058
3059 * server.cc (handle_qxfer_exec_file): Update.
3060 (handle_query): Update.
3061 * linux-low.cc (linux_target_ops): Update.
3062 (linux_process_target::supports_pid_to_exec_file): Define.
3063 (linux_process_target::pid_to_exec_file): Define.
3064 * linux-low.h (class linux_process_target): Update.
3065 * lynx-low.cc (lynx_target_ops): Update.
3066 * nto-low.cc (nto_target_ops): Update.
3067 * win32-low.cc (win32_target_ops): Update.
3068
2526e0cd
TBA
30692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3070
3071 Turn process_stratum_target's supports_range_stepping op into a
3072 method of process_target.
3073
3074 * target.h (struct process_stratum_target): Remove the target op.
3075 (class process_target): Add the target op.
3076 (target_supports_range_stepping): Update the macro.
3077 * target.cc (process_target::supports_range_stepping): Define.
3078
3079 Update the derived classes and callers below.
3080
3081 * linux-low.cc (linux_target_ops): Update.
3082 (linux_supports_range_stepping): Turn into ...
3083 (linux_process_target::supports_range_stepping): ... this.
3084 * linux-low.h (class linux_process_target): Update.
3085 * lynx-low.cc (lynx_target_ops): Update.
3086 * nto-low.cc (nto_target_ops): Update.
3087 * win32-low.cc (win32_target_ops): Update.
3088
79597bdd
TBA
30892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3090
3091 Turn process_stratum_target's btrace-related ops (enable_btrace,
3092 disable_btrace, read_btrace, read_btrace_conf) into methods of
3093 process_target.
3094
3095 * target.h (struct process_stratum_target): Remove the target ops.
3096 (class process_target): Add the target ops.
3097 (target_enable_btrace): Update.
3098 (target_disable_btrace): Update.
3099 (target_read_btrace): Update.
3100 (target_read_btrace_conf): Update.
3101 * target.cc (process_target::enable_btrace): Define.
3102 (process_target::disable_btrace): Define.
3103 (process_target::read_btrace): Define.
3104 (process_target::read_btrace_conf): Define.
3105
3106 Update the derived classes and callers below.
3107
3108 * linux-low.cc (linux_target_ops): Update.
3109 (linux_process_target:enable_btrace): Define as a wrapper around
3110 linux_enable_btrace.
3111 (linux_low_disable_btrace): Turn into ...
3112 (linux_process_target::disable_btrace): ... this.
3113 (linux_low_read_btrace): Turn into ...
3114 (linux_process_target::read_btrace): ... this.
3115 (linux_low_btrace_conf): Turn into ...
3116 (linux_process_target::read_btrace_conf): ... this.
3117 * linux-low.h (class linux_process_target): Update.
3118 * lynx-low.cc (lynx_target_ops): Update.
3119 * nto-low.cc (nto_target_ops): Update.
3120 * win32-low.cc (win32_target_ops): Update.
3121
c0245cb9
TBA
31222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3123
3124 Turn process_stratum_target's supports_agent op into a method of
3125 process_target.
3126
3127 * target.h (struct process_stratum_target): Remove the target op.
3128 (class process_target): Add the target op.
3129 (target_supports_agent): Update the macro.
3130 * target.cc (process_target::supports_agent): Define.
3131
3132 Update the derived classes and callers below.
3133
3134 * linux-low.cc (linux_target_ops): Update.
3135 (linux_supports_agent): Turn into ...
3136 (linux_process_target::supports_agent): ... this.
3137 * linux-low.h (class linux_process_target): Update.
3138 * lynx-low.cc (lynx_target_ops): Update.
3139 * nto-low.cc (nto_target_ops): Update.
3140 * win32-low.cc (win32_target_ops): Update.
3141
974387bb
TBA
31422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3143
3144 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3145 method of process_target.
3146
3147 * target.h (struct process_stratum_target): Remove the target op.
3148 (class process_target): Add the target op. Also add
3149 'supports_qxfer_libraries_svr4'.
3150 * target.cc (process_target::qxfer_libraries_svr4): Define.
3151 (process_target::supports_qxfer_libraries_svr4): Define.
3152
3153 Update the derived classes and callers below.
3154
3155 * server.cc (handle_qxfer_libraries_svr4): Update.
3156 (handle_query): Update.
3157 * linux-low.cc (linux_target_ops): Update.
3158 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3159 (linux_qxfer_libraries_svr4): Turn into ...
3160 (linux_process_target::qxfer_libraries_svr4): ... this.
3161 * linux-low.h (class linux_process_target): Update.
3162 * lynx-low.cc (lynx_target_ops): Update.
3163 * nto-low.cc (nto_target_ops): Update.
3164 * win32-low.cc (win32_target_ops): Update.
3165
c756403b
TBA
31662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3167
3168 Turn process_stratum_target's supports_disable_randomization op
3169 into a method of process_target.
3170
3171 * target.h (struct process_stratum_target): Remove the target op.
3172 (class process_target): Add the target op.
3173 (target_supports_disable_randomization): Update the macro.
3174 * target.cc (process_target::supports_disable_randomization): Define.
3175
3176 Update the derived classes and callers below.
3177
3178 * linux-low.cc (linux_target_ops): Update.
3179 (linux_supports_disable_randomization): Turn into ...
3180 (linux_process_target::supports_disable_randomization): ... this.
3181 * linux-low.h (class linux_process_target): Update.
3182 * lynx-low.cc (lynx_target_ops): Update.
3183 * nto-low.cc (nto_target_ops): Update.
3184 * win32-low.cc (win32_target_ops): Update.
3185
345dafad
TBA
31862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3187
3188 Turn process_stratum_target's emit_ops op into a method of
3189 process_target.
3190
3191 * target.h (struct process_stratum_target): Remove the target op.
3192 (class process_target): Add the target op.
3193 (target_emit_ops): Update the macro.
3194 * target.cc (process_target::emit_ops): Define.
3195
3196 Update the derived classes and callers below.
3197
3198 * linux-low.cc (linux_target_ops): Update.
3199 (linux_emit_ops): Turn into ...
3200 (linux_process_target::emit_ops): ... this.
3201 * linux-low.h (class linux_process_target): Update.
3202 * lynx-low.cc (lynx_target_ops): Update.
3203 * nto-low.cc (nto_target_ops): Update.
3204 * win32-low.cc (win32_target_ops): Update.
3205
c23c9391
TBA
32062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3207
3208 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3209 and get_min_fast_tracepoint_insn_len ops into methods of
3210 process_target.
3211
3212 * target.h (struct process_stratum_target): Remove the target ops.
3213 (class process_target): Add the target ops. Also add
3214 'supports_fast_tracepoints'.
3215 (target_supports_fast_tracepoints): Update the macro.
3216 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3217 (install_fast_tracepoint_jump_pad): Update and rename the macro
3218 to ...
3219 (target_install_fast_tracepoint_jump_pad): ... this.
3220 * target.cc (process_target::supports_fast_tracepoints): Define.
3221 (process_target::install_fast_tracepoint_jump_pad): Define.
3222 (process_target::get_min_fast_tracepoint_insn_len): Define.
3223
3224 Update the derived classes and callers below.
3225
3226 * tracepoint.cc (install_fast_tracepoint): Update.
3227 * linux-low.cc (linux_target_ops): Update.
3228 (linux_process_target::supports_fast_tracepoints): Define.
3229 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3230 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3231 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3232 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3233 * linux-low.h (class linux_process_target): Update.
3234 * lynx-low.cc (lynx_target_ops): Update.
3235 * nto-low.cc (nto_target_ops): Update.
3236 * win32-low.cc (win32_target_ops): Update.
3237
5c9eb2f2
TBA
32382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3239
3240 Turn process_stratum_target's stabilize_threads op into a
3241 method of process_target.
3242
3243 * target.h (struct process_stratum_target): Remove the target op.
3244 (class process_target): Add the target op.
3245 (target_stabilize_threads): Update the macro.
3246 * target.cc (process_target::stabilize_threads): Define.
3247
3248 Update the derived classes and callers below.
3249
3250 * server.cc (handle_status): Update.
3251 * tracepoint.cc (cmd_qtdp): Update.
3252 (cmd_qtstart): Update.
3253 * linux-low.cc (linux_target_ops): Update.
3254 (linux_stabilize_threads): Turn into ...
3255 (linux_process_target::stabilize_threads): ... this.
3256 (linux_wait_1): Update.
3257 * linux-low.h (class linux_process_target): Update.
3258 * lynx-low.cc (lynx_target_ops): Update.
3259 * nto-low.cc (nto_target_ops): Update.
3260 * win32-low.cc (win32_target_ops): Update.
3261
29e8dc09
TBA
32622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3263
3264 Turn process_stratum_target's pause_all and unpause_all ops
3265 into methods of process_target.
3266
3267 * target.h (struct process_stratum_target): Remove the target ops.
3268 (class process_target): Add the target ops.
3269 (pause_all): Update the macro and rename to...
3270 (target_pause_all): ... this.
3271 (unpause_all): Update the macro and rename to...
3272 (target_unpause_all): ... this.
3273 * target.cc (process_target::pause_all): Define.
3274 (process_target::unpause_all): Define.
3275
3276 Update the derived classes and callers below.
3277
3278 * server.cc (handle_status): Update.
3279 * tracepoint.cc (clear_installed_tracepoints): Update.
3280 (cmd_qtdp): Update.
3281 (cmd_qtstart): Update.
3282 (stop_tracing): Update.
3283 (cmd_qtstatus): Update.
3284 (upload_fast_traceframes): Update.
3285 (run_inferior_command): Update.
3286 * linux-low.cc (linux_target_ops): Update.
3287 (linux_pause_all): Turn into ...
3288 (linux_process_target::pause_all): ... this.
3289 (linux_unpause_all): Turn into ...
3290 (linux_process_target::unpause_all): ... this.
3291 (linux_process_target::prepare_to_access_memory): Update.
3292 (linux_process_target::done_accessing_memory): Update.
3293 * linux-low.h (class linux_process_target): Update.
3294 * lynx-low.cc (lynx_target_ops): Update.
3295 * nto-low.cc (nto_target_ops): Update.
3296 * win32-low.cc (win32_target_ops): Update.
3297
4e2e869c
TBA
32982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3299
3300 Turn process_stratum_target's get_tib_address op into a method of
3301 process_target.
3302
3303 * target.h (struct process_stratum_target): Remove the target op.
3304 (class process_target): Add the target op. Also add
3305 'supports_get_tib_address'.
3306 * target.cc (process_target::get_tib_address): Define.
3307 (process_target::supports_get_tib_address): Define.
3308
3309 Update the derived classes and callers below.
3310
3311 * server.cc (handle_query): Update.
3312 * linux-low.cc (win32_target_ops): Update.
3313 * lynx-low.cc (lynx_target_ops): Update.
3314 * nto-low.cc (nto_target_ops): Update.
3315 * win32-low.cc (win32_target_ops): Update.
3316 (win32_process_target::supports_get_tib_address): Define.
3317 (win32_get_tib_address): Turn into ...
3318 (win32_process_target::get_tib_address): ... this.
3319 * win32-low.h (class win32_process_target): Update.
3320
68119632
TBA
33212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3322
3323 Turn process_stratum_target's thread_stopped op into a method of
3324 process_target.
3325
3326 * target.h (struct process_stratum_target): Remove the target op.
3327 (class process_target): Add the target op. Also add
3328 'supports_thread_stopped'.
3329 (target_thread_stopped): Update the macro.
3330 * target.cc (process_target::thread_stopped): Define.
3331 (process_target::supports_thread_stopped): Define.
3332 (prepare_to_access_memory): Update.
3333
3334 Update the derived classes and callers below.
3335
3336 * server.cc (queue_stop_reply_callback): Update.
3337 * linux-low.cc (linux_target_ops): Update.
3338 (linux_process_target::supports_thread_stopped): Define.
3339 (linux_thread_stopped): Turn into ...
3340 (linux_process_target::thread_stopped): ... this.
3341 * linux-low.h (class linux_process_target): Update.
3342 * lynx-low.cc (lynx_target_ops): Update.
3343 * nto-low.cc (nto_target_ops): Update.
3344 * win32-low.cc (win32_target_ops): Update.
3345
770d8f6a
TBA
33462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3347
3348 Turn process_stratum_target's read_pc and write_pc ops into
3349 methods of process_target.
3350
3351 * target.h (struct process_stratum_target): Remove the target ops.
3352 (class process_target): Add the target ops.
3353 * target.cc (process_target::read_pc): Define.
3354 (process_target::write_pc): Define.
3355
3356 Update the derived classes and callers below.
3357
3358 * regcache.cc (regcache_read_pc): Update.
3359 (regcache_write_pc): Update.
3360 * linux-low.cc (linux_target_ops): Update.
3361 (linux_read_pc): Turn into ...
3362 (linux_process_target::read_pc): ... this.
3363 (linux_write_pc): Turn into ...
3364 (linux_process_target::write_pc): ... this.
3365 * linux-low.h (class linux_process_target): Update.
3366 * lynx-low.cc (lynx_target_ops): Update.
3367 * nto-low.cc (nto_target_ops): Update.
3368 * win32-low.cc (win32_target_ops): Update.
3369
290732bf
TBA
33702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3371
3372 Turn process_stratum_target's supports_tracepoints op into a
3373 method of process_target.
3374
3375 * target.h (struct process_stratum_target): Remove the target op.
3376 (class process_target): Add the target op.
3377 (target_supports_tracepoints): Update the macro.
3378 * target.cc (process_target::supports_tracepoints): Define.
3379
3380 Update the derived classes and callers below.
3381
3382 * linux-low.cc (linux_target_ops): Update.
3383 (linux_supports_tracepoints): Turn into ...
3384 (linux_process_target::supports_tracepoints): ... this.
3385 * linux-low.h (class linux_process_target): Update.
3386 * lynx-low.cc (lynx_target_ops): Update.
3387 * nto-low.cc (nto_target_ops): Update.
3388 * win32-low.cc (win32_target_ops): Update.
3389
0df28b1b
TBA
33902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3391
3392 Turn process_stratum_target's process_qsupported op into a method
3393 of process_target.
3394
3395 * target.h (struct process_stratum_target): Remove the target op.
3396 (class process_target): Add the target op.
3397 (target_process_qsupported): Update the macro.
3398 * target.cc (process_target::process_qsupported): Define.
3399
3400 Update the derived classes and callers below.
3401
3402 * linux-low.cc (linux_target_ops): Update.
3403 (linux_process_qsupported): Turn into ...
3404 (linux_process_target::process_qsupported): ... this.
3405 * linux-low.h (class linux_process_target): Update.
3406 * lynx-low.cc (lynx_target_ops): Update.
3407 * nto-low.cc (nto_target_ops): Update.
3408 * win32-low.cc (win32_target_ops): Update.
3409
9da41fda
TBA
34102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3411
3412 Turn process_stratum_target's read_loadmap op into a method of
3413 process_target.
3414
3415 * target.h (struct process_stratum_target): Remove the target op.
3416 (class process_target): Add the target op. Also add
3417 'supports_read_loadmap'.
3418 * target.cc (process_target::read_loadmap): Define.
3419 (process_target::supports_read_loadmap): Define.
3420
3421 Update the derived classes and callers below.
3422
3423 * server.cc (handle_qxfer_fdpic): Update.
3424 (handle_query): Update.
3425 * linux-low.cc (linux_target_ops): Update.
3426 (linux_process_target::supports_read_loadmap): Define.
3427 (linux_read_loadmap): Turn into ...
3428 (linux_process_target::read_loadmap): ... this.
3429 * linux-low.h (class linux_process_target): Update.
3430 * lynx-low.cc (lynx_target_ops): Update.
3431 * nto-low.cc (nto_target_ops): Update.
3432 * win32-low.cc (win32_target_ops): Update.
3433
95a45fc1
TBA
34342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3435
3436 Turn process_stratum_target's core_of_thread op into a method of
3437 process_target.
3438
3439 * target.h (struct process_stratum_target): Remove the target op.
3440 (class process_target): Add the target op.
3441 (target_core_of_thread): Update the macro.
3442 * target.cc (process_target::core_of_thread): Define.
3443
3444 Update the derived classes and callers below.
3445
3446 * linux-low.cc (linux_target_ops): Update.
3447 (linux_process_target::core_of_thread): Define.
3448 * linux-low.h (class linux_process_target): Update.
3449 * lynx-low.cc (lynx_target_ops): Update.
3450 * nto-low.cc (nto_target_ops): Update.
3451 * win32-low.cc (win32_target_ops): Update.
3452
55cf3021
TBA
34532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3454
3455 Turn process_stratum_target's handle_monitor_command op into a
3456 method of process_target.
3457
3458 * target.h (struct process_stratum_target): Remove the target op.
3459 (class process_target): Add the target op.
3460 (target_handle_monitor_command): Update the macro.
3461 * target.cc (process_target::handle_monitor_command): Define.
3462
3463 Update the derived classes and callers below.
3464
3465 * server.cc (handle_query): Update.
3466 * linux-low.cc (linux_target_ops): Update.
3467 (linux_process_target::handle_monitor_command): Define.
3468 * linux-low.h (class linux_process_target): Update.
3469 * lynx-low.cc (lynx_target_ops): Update.
3470 * nto-low.cc (nto_target_ops): Update.
3471 * win32-low.cc (win32_target_ops): Update.
3472
fb00dfce
TBA
34732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3474
3475 Turn process_stratum_target's handle_new_gdb_connection op into a
3476 method of process_target.
3477
3478 * target.h (struct process_stratum_target): Remove the target op.
3479 (class process_target): Add the target op.
3480 (target_handle_new_gdb_connection): Update the macro.
3481 * target.cc (process_target::handle_new_gdb_connection): Define.
3482
3483 Update the derived classes and callers below.
3484
3485 * linux-low.cc (linux_target_ops): Update.
3486 (linux_handle_new_gdb_connection): Turn into ...
3487 (linux_process_target::handle_new_gdb_connection): ... this.
3488 * linux-low.h (class linux_process_target): Update.
3489 * lynx-low.cc (lynx_target_ops): Update.
3490 * nto-low.cc (nto_target_ops): Update.
3491 * win32-low.cc (win32_target_ops): Update.
3492
9690a72a
TBA
34932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3494
3495 Turn process_stratum_target's supports_fork_events,
3496 supports_vfork_events, and supports_exec_events ops into methods
3497 of process_target.
3498
3499 * target.h (struct process_stratum_target): Remove the target ops.
3500 (class process_target): Add the target ops.
3501 (target_supports_fork_events): Update the macro.
3502 (target_supports_vfork_events): Update the macro.
3503 (target_supports_exec_events): Update the macro.
3504 * target.cc (process_target::supports_fork_events): Define.
3505 (process_target::supports_vfork_events): Define.
3506 (process_target::supports_exec_events): Define.
3507
3508 Update the derived classes and callers below.
3509
3510 * linux-low.cc (linux_target_ops): Update.
3511 (linux_supports_fork_events): Turn into ...
3512 (linux_process_target::supports_fork_events): ... this.
3513 (linux_supports_vfork_events): Turn into ...
3514 (linux_process_target::supports_vfork_events): ... this.
3515 (linux_supports_exec_events): Turn into ...
3516 (linux_process_target::supports_exec_events): ... this.
3517 * linux-low.h (class linux_process_target): Update.
3518 * lynx-low.cc (lynx_target_ops): Update.
3519 * nto-low.cc (nto_target_ops): Update.
3520 * win32-low.cc (win32_target_ops): Update.
3521
652aef77
TBA
35222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3523
3524 Turn process_stratum_target's supports_multi_process op into a
3525 method of process_target.
3526
3527 * target.h (struct process_stratum_target): Remove the target op.
3528 (class process_target): Add the target op.
3529 * target.cc (process_target::supports_multi_process): Define.
3530 (target_supports_multi_process): Update.
3531
3532 Update the derived classes and callers below.
3533
3534 * linux-low.cc (linux_target_ops): Update.
3535 (linux_supports_multi_process): Turn into ...
3536 (linux_process_target::supports_multi_process): ... this.
3537 * linux-low.h (class linux_process_target): Update.
3538 * lynx-low.cc (lynx_target_ops): Update.
3539 * nto-low.cc (nto_target_ops): Update.
3540 * win32-low.cc (win32_target_ops): Update.
3541
0dc587d4
TBA
35422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3543
3544 Turn process_stratum_target's supports_non_stop, async, and
3545 start_non_stop ops into methods of process_target.
3546
3547 * target.h (struct process_stratum_target): Remove the target ops.
3548 (class process_target): Add the target ops.
3549 (target_supports_non_stop): Update the macro.
3550 (target_async): Update the macro.
3551 (start_non_stop): Remove declaration.
3552 * target.cc (process_target::supports_non_stop): Define.
3553 (process_target::async): Define.
3554 (process_target::start_non_stop): Define.
3555 (start_non_stop): Remove.
3556
3557 Update the derived classes and callers below.
3558
3559 * server.cc (handle_qxfer_siginfo): Update.
3560 (handle_query): Update.
3561 * linux-low.cc (linux_target_ops): Update.
3562 (linux_supports_non_stop): Turn into ...
3563 (linux_process_target::supports_non_stop): ... this.
3564 (linux_async): Turn into ...
3565 (linux_process_target::async): ... this.
3566 (linux_start_non_stop): Turn into ...
3567 (linux_process_target::start_non_stop): ... this.
3568 * linux-low.h (class linux_process_target): Update.
3569 * lynx-low.cc (lynx_target_ops): Update.
3570 * nto-low.cc (nto_target_ops): Update.
3571 (nto_supports_non_stop): Remove; rely on the default behavior
3572 instead.
3573 * win32-low.cc (win32_target_ops): Update.
3574
d7abedf7
TBA
35752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3576
3577 Turn process_stratum_target's qxfer_siginfo op into a method of
3578 process_target.
3579
3580 * target.h (struct process_stratum_target): Remove the target op.
3581 (class process_target): Add the target op. Also add
3582 'supports_qxfer_siginfo'.
3583 * target.cc (process_target::qxfer_siginfo): Define.
3584 (process_target::supports_qxfer_siginfo): Define.
3585
3586 Update the derived classes and callers below.
3587
3588 * server.cc (handle_qxfer_siginfo): Update.
3589 (handle_query): Update.
3590 * linux-low.cc (linux_target_ops): Update.
3591 (linux_process_target::supports_qxfer_siginfo): Define.
3592 (linux_xfer_siginfo): Turn into ...
3593 (linux_process_target::qxfer_siginfo): ... this.
3594 * linux-low.h (class linux_process_target): Update.
3595 * lynx-low.cc (lynx_target_ops): Update.
3596 * nto-low.cc (nto_target_ops): Update.
3597 * win32-low.cc (win32_target_ops): Update.
3598
2d0795ee
TBA
35992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3600
3601 Turn process_stratum_target's qxfer_osdata op into a method of
3602 process_target.
3603
3604 * target.h (struct process_stratum_target): Remove the target op.
3605 (class process_target): Add the target op. Also add
3606 'supports_qxfer_osdata'.
3607 * target.cc (process_target::qxfer_osdata): Define.
3608 (process_target::supports_qxfer_osdata): Define.
3609
3610 Update the derived classes and callers below.
3611
3612 * server.cc (handle_qxfer_osdata): Update.
3613 (handle_query): Update.
3614 * linux-low.cc (linux_target_ops): Update.
3615 (linux_process_target::supports_qxfer_osdata): Define.
3616 (linux_qxfer_osdata): Turn into ...
3617 (linux_process_target::qxfer_osdata): ... this.
3618 * linux-low.h (class linux_process_target): Update.
3619 * lynx-low.cc (lynx_target_ops): Update.
3620 * nto-low.cc (nto_target_ops): Update.
3621 * win32-low.cc (win32_target_ops): Update.
3622
ea06bbaa
TBA
36232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3624
3625 Turn process_stratum_target's hostio_last_error op into a
3626 method of process_target.
3627
3628 * target.h (struct process_stratum_target): Remove the target op.
3629 (class process_target): Add the target op.
3630 * target.cc: Add "hostio.h" to includes.
3631 (process_target::hostio_last_error): Define.
3632
3633 Update the derived classes and callers below.
3634
3635 * hostio.cc (hostio_error): Update.
3636 * linux-low.cc: Remove "hostio.h" from includes.
3637 (linux_target_ops): Update.
3638 * lynx-low.cc (lynx_target_ops): Update.
3639 * nto-low.cc (nto_target_ops): Update.
3640 * win32-low.h (class win32_process_target): Update.
3641 * win32-low.cc (win32_target_ops): Update.
3642 (wince_hostio_last_error): Turn into ...
3643 (win32_process_target::hostio_last_error): ... this.
3644
6e3fd7e9
TBA
36452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3646
3647 Turn process_stratum_target's get_tls_address op into a method of
3648 process_target.
3649
3650 * target.h (struct process_stratum_target): Remove the target op.
3651 (class process_target): Add the target op. Also add
3652 'supports_get_tls_address'.
3653 * target.cc (process_target::get_tls_address): Define.
3654 (process_target::supports_get_tls_address): Define.
3655
3656 Update the derived classes and callers below.
3657
3658 * server.cc (handle_query): Update.
3659 * linux-low.cc (linux_target_ops): Update.
3660 (linux_process_target::supports_get_tls_address): Define.
3661 (linux_process_target::get_tls_address): Define.
3662 * linux-low.h (class linux_process_target): Update.
3663 * lynx-low.cc (lynx_target_ops): Update.
3664 * nto-low.cc (nto_target_ops): Update.
3665 * win32-low.cc (win32_target_ops): Update.
3666
5203ae1e
TBA
36672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3668
3669 Turn process_stratum_target's read_offsets op into a method of
3670 process_target.
3671
3672 * target.h (struct process_stratum_target): Remove the target op.
3673 (class process_target): Add the target op. Also add
3674 'supports_read_offsets'.
3675 * target.cc (process_target::read_offsets): Define.
3676 (process_target::supports_read_offsets): Define.
3677
3678 Update the derived classes and callers below.
3679
3680 * server.cc (handle_query): Update.
3681 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3682 (linux_target_ops): Update.
3683 (linux_process_target::supports_read_offsets): Define.
3684 (linux_read_offsets): Turn into ...
3685 (linux_process_target::read_offsets): ... this.
3686 * linux-low.h (class linux_process_target): Update.
3687 * lynx-low.cc (lynx_target_ops): Update.
3688 * nto-low.cc (nto_target_ops): Update.
3689 * win32-low.cc (win32_target_ops): Update.
3690
6eeb5c55
TBA
36912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3692
3693 Turn process_stratum_target's stopped_by_watchpoint and
3694 stopped_data_address ops into methods of process_target.
3695
3696 * target.h (struct process_stratum_target): Remove the target ops.
3697 (class process_target): Add the target ops.
3698 * target.cc (process_target::stopped_by_watchpoint): Define.
3699 (process_target::stopped_data_address): Define.
3700
3701 Update the derived classes and callers below.
3702
3703 * remote-utils.cc (prepare_resume_reply): Update.
3704 * linux-low.cc (linux_target_ops): Update.
3705 (linux_stopped_by_watchpoint): Turn into ...
3706 (linux_process_target::stopped_by_watchpoint): ... this.
3707 (linux_stopped_data_address): Turn into ...
3708 (linux_process_target::stopped_data_address): ... this.
3709 * linux-low.h (class linux_process_target): Update.
3710 * lynx-low.cc (lynx_target_ops): Update.
3711 * nto-low.cc (nto_target_ops): Update.
3712 (nto_stopped_by_watchpoint): Turn into ...
3713 (nto_process_target::stopped_by_watchpoint): ... this.
3714 (nto_stopped_data_address): Turn into ...
3715 (nto_process_target::stopped_data_address): ... this.
3716 * nto-low.h (class nto_process_target): Update.
3717 * win32-low.cc (win32_target_ops): Update.
3718 (win32_stopped_by_watchpoint): Turn into ...
3719 (win32_process_target::stopped_by_watchpoint): ... this.
3720 (win32_stopped_data_address): Turn into ...
3721 (win32_process_target::stopped_data_address): ... this.
3722 * win32-low.h (class win32_process_target): Update.
3723
22aa6223
TBA
37242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3725
3726 Turn process_stratum_target's supports_hardware_single_step op into
3727 a method of process_target.
3728
3729 * target.h (struct process_stratum_target): Remove the target op.
3730 (class process_target): Add the target op.
3731 (target_supports_hardware_single_step): Update the macro.
3732 (target_can_do_hardware_single_step): Remove declaration.
3733 * target.cc (process_target::supports_hardware_single_step): Define.
3734 (target_can_do_hardware_single_step): Remove.
3735
3736 Update the derived classes and callers below.
3737
3738 * linux-low.h (class linux_process_target): Update.
3739 * linux-low.cc (linux_target_ops): Update.
3740 (linux_supports_hardware_single_step): Turn into ...
3741 (linux_process_target::supports_hardware_single_step): ... this.
3742 * lynx-low.h (class lynx_process_target): Update.
3743 * lynx-low.cc (lynx_target_ops): Update.
3744 (lynx_process_target::supports_hardware_single_step): Define.
3745 * nto-low.h (class nto_process_target): Update.
3746 * nto-low.cc (nto_target_ops): Update.
3747 (nto_process_target::supports_hardware_single_step): Define.
3748 * win32-low.h (class win32_process_target): Update.
3749 * win32-low.cc (win32_target_ops): Update.
3750 (win32_process_target::supports_hardware_single_step): Define.
3751
93fe88b2
TBA
37522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3753
3754 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3755 ops into methods of process_target.
3756
3757 * target.h (struct process_stratum_target): Remove the target ops.
3758 (class process_target): Add the target ops.
3759 (target_stopped_by_hw_breakpoint): Update the macro.
3760 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3761 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3762 (process_target::supports_stopped_by_hw_breakpoint): Define.
3763
3764 Update the derived classes and callers below.
3765
3766 * linux-low.cc (linux_target_ops): Update.
3767 (linux_stopped_by_hw_breakpoint): Turn into ...
3768 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3769 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3770 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3771 * linux-low.h (class linux_process_target): Update.
3772 * lynx-low.cc (lynx_target_ops): Update.
3773 * nto-low.cc (nto_target_ops): Update.
3774 * win32-low.cc (win32_target_ops): Update.
3775
84320c4e
TBA
37762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3777
3778 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3779 ops into methods of process_target.
3780
3781 * target.h (struct process_stratum_target): Remove the target ops.
3782 (class process_target): Add the target ops.
3783 (target_stopped_by_sw_breakpoint): Update the macro.
3784 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3785 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3786 (process_target::supports_stopped_by_sw_breakpoint): Define.
3787
3788 Update the derived classes and callers below.
3789
3790 * linux-low.cc (linux_target_ops): Update.
3791 (linux_stopped_by_sw_breakpoint): Turn into ...
3792 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3793 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3794 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3795 * linux-low.h (class linux_process_target): Update.
3796 * lynx-low.cc (lynx_target_ops): Update.
3797 * nto-low.cc (nto_target_ops): Update.
3798 * win32-low.cc (win32_target_ops): Update.
3799
7e0bde70
TBA
38002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3801
3802 Turn process_stratum_target's insert_point and remove_point ops
3803 into methods of process_target.
3804
3805 * target.h (struct process_stratum_target): Remove the target ops.
3806 (class process_target): Add the target ops.
3807 * target.cc (process_target::insert_point): Define.
3808 (process_target::remove_point): Define.
3809
3810 Update the derived classes and callers below.
3811
3812 * mem-break.cc (set_raw_breakpoint_at): Update.
3813 (delete_raw_breakpoint): Update.
3814 (uninsert_raw_breakpoint): Update.
3815 (reinsert_raw_breakpoint): Update.
3816 * linux-low.cc (linux_target_ops): Update.
3817 (linux_insert_point): Turn into ...
3818 (linux_process_target::insert_point): ... this.
3819 (linux_remove_point): Turn into ...
3820 (linux_process_target::remove_point): ... this.
3821 * linux-low.h (class linux_process_target): Update.
3822 * lynx-low.cc (lynx_target_ops): Update.
3823 * nto-low.cc (nto_target_ops): Update.
3824 (nto_insert_point): Turn into ...
3825 (nto_process_target::insert_point): ... this.
3826 (nto_remove_point): Turn into ...
3827 (nto_process_target::remove_point): ... this.
3828 * nto-low.h (class nto_process_target): Update.
3829 * win32-low.cc (win32_target_ops): Update.
3830 (win32_insert_point): Turn into ...
3831 (win32_process_target::insert_point): ... this.
3832 (win32_remove_point): Turn into ...
3833 (win32_process_target::remove_point): ... this.
3834 * win32-low.h (class win32_process_target): Update.
3835
a2b2297a
TBA
38362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3837
3838 Turn process_stratum_target's supports_z_point_type op into a
3839 method of process_target.
3840
3841 * target.h (struct process_stratum_target): Remove the target op.
3842 (class process_target): Add the target op.
3843 * target.cc (process_target::supports_z_point_type): Define.
3844
3845 Update the derived classes and callers below.
3846
3847 * mem-break.cc (z_type_supported): Update.
3848 * linux-low.cc (linux_target_ops): Update.
3849 (linux_supports_z_point_type): Turn into ...
3850 (linux_process_target::supports_z_point_type): ... this.
3851 * linux-low.h (class linux_process_target): Update.
3852 * lynx-low.cc (lynx_target_ops): Update.
3853 * nto-low.cc (nto_target_ops): Update.
3854 (nto_supports_z_point_type): Turn into ...
3855 (nto_process_target::supports_z_point_type): ... this.
3856 * nto-low.h (class nto_process_target): Update.
3857 * win32-low.cc (win32_target_ops): Update.
3858 (win32_supports_z_point_type): Turn into ...
3859 (win32_process_target::supports_z_point_type): ... this.
3860 * win32-low.h (class win32_process_target): Update.
3861
eac215cc
TBA
38622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3863
3864 Turn process_stratum_target's read_auxv op into a method of
3865 process_target.
3866
3867 * target.h (class process_stratum_target): Remove the target op.
3868 (struct process_target): Add the target op. Also add
3869 'supports_read_auxv'.
3870 * target.cc (process_target::read_auxv): Define.
3871 (process_target::supports_read_auxv): Define.
3872
3873 Update the derived classes and callers below.
3874
3875 * server.cc (handle_qxfer_auxv): Update.
3876 (handle_query): Update.
3877 * linux-low.cc (linux_target_ops): Update.
3878 (linux_process_target::supports_read_auxv): Define.
3879 (linux_read_auxv): Turn into ...
3880 (linux_process_target::read_auxv): ... this.
3881 * linux-low.h (class linux_process_target): Update.
3882 * lynx-low.cc (lynx_target_ops): Update.
3883 * nto-low.cc (nto_target_ops): Update.
3884 (nto_process_target::supports_read_auxv): Define.
3885 (nto_read_auxv): Turn into ...
3886 (nto_process_target::read_auxv): ... this.
3887 * nto-low.h (class nto_process_target): Update.
3888 * win32-low.cc (win32_target_ops): Update.
3889
eb497a2a
TBA
38902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3891
3892 Turn process_stratum_target's request_interrupt op into a method of
3893 process_target.
3894
3895 * target.h (struct process_stratum_target): Remove the target op.
3896 (class process_target): Add the target op.
3897
3898 Update the derived classes and callers below.
3899
3900 * remote-utils.cc (putpkt_binary_1): Update.
3901 (input_interrupt): Update.
3902 (getpkt): Update.
3903 * server.cc (handle_v_requests): Update.
3904 * linux-low.cc (linux_target_ops): Update.
3905 (linux_request_interrupt): Turn into ...
3906 (linux_process_target::request_interrupt): ... this.
3907 * linux-low.h (class linux_process_target): Update.
3908 * lynx-low.cc (lynx_target_ops): Update.
3909 (lynx_request_interrupt): Turn into ...
3910 (lynx_process_target::request_interrupt): ... this.
3911 * lynx-low.h (class lynx_process_target): Update.
3912 * nto-low.cc (nto_target_ops): Update.
3913 (nto_request_interrupt): Turn into ...
3914 (nto_process_target::request_interrupt): ... this.
3915 * nto-low.h (class nto_process_target): Update.
3916 * win32-low.cc (win32_target_ops): Update.
3917 (win32_request_interrupt): Turn into ...
3918 (win32_process_target::request_interrupt): ... this.
3919 * win32-low.h (class win32_process_target): Update.
3920
2a31c7aa
TBA
39212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3922
3923 Turn process_stratum_target's look_up_symbols op into a method of
3924 process_target.
3925
3926 * target.h (struct process_stratum_target): Remove the target op.
3927 (class process_target): Add the target op.
3928 * target.cc (process_target::look_up_symbols): Define.
3929
3930 Update the derived classes and callers below.
3931
3932 * server.cc (handle_query): Update.
3933 * linux-low.cc (linux_target_ops): Update.
3934 (linux_look_up_symbols): Turn into ...
3935 (linux_process_target::look_up_symbols): ... this.
3936 * linux-low.h (class linux_process_target): Update.
3937 * lynx-low.cc (lynx_target_ops): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 * win32-low.cc (win32_target_ops): Update.
3940
e2558df3
TBA
39412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3942
3943 Turn process_stratum_target's read_memory and write_memory
3944 ops into methods of process_target.
3945
3946 * target.h (struct process_stratum_target): Remove the target ops.
3947 (class process_target): Add the target ops.
3948
3949 Update the derived classes and callers below.
3950
3951 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3952 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3953 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3954 (arm_get_syscall_trapinfo): Update.
3955 * linux-cris-low.cc (cris_breakpoint_at): Update.
3956 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3957 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3958 * linux-mips-low.cc (mips_breakpoint_at): Update.
3959 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3960 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3961 * linux-sh-low.cc (sh_breakpoint_at): Update.
3962 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3963 (sparc_store_gregset_from_stack): Update.
3964 (sparc_breakpoint_at): Update.
3965 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3966 * linux-tile-low.cc (tile_breakpoint_at): Update.
3967 * linux-x86-low.cc (x86_breakpoint_at): Update.
3968 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3969 * mem-brea.cc (insert_memory_breakpoint): Update.
3970 (validate_inserted_breakpoint): Update.
3971 * target.cc (read_inferior_memory): Update.
3972 (target_write_memory): Update.
3973 * linux-low.cc (linux_target_ops): Update.
3974 (linux_read_memory): Make a wrapper around the read_memory target
3975 op call.
3976 (linux_process_target::read_memory): Rename from linux_read_memory.
3977 (linux_write_memory): Turn into ...
3978 (linux_process_target::write_memory): ... this.
3979 * linux-low.h (class linux_process_target): Update.
3980 * lynx-low.cc (lynx_target_ops): Update.
3981 (lynx_read_memory): Turn into ...
3982 (lynx_process_target::read_memory): ... this.
3983 (lynx_write_memory): Turn into ...
3984 (lynx_process_target::write_memory): ... this.
3985 * lynx-low.h (class lynx_process_target): Update.
3986 * nto-low.cc (nto_target_ops): Update.
3987 (nto_read_memory): Turn into ...
3988 (nto_process_target::read_memory): ... this.
3989 (nto_write_memory): Turn into ...
3990 (nto_process_target::write_memory): ... this.
3991 * nto-low.h (class nto_process_target): Update.
3992 * win32-low.cc (win32_target_ops): Update.
3993 (win32_read_inferior_memory): Turn into ...
3994 (win32_process_target::read_memory): ... this.
3995 (win32_write_inferior_memory): Turn into ...
3996 (win32_process_target::write_memory): ... this.
3997 * win32-low.h (class win32_process_target): Update.
3998
79b44087
TBA
39992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4000
4001 Turn process_stratum_target's prepare_to_access_memory and
4002 done_accessing_memory ops into methods of process_target.
4003
4004 * target.h (struct process_stratum_target): Remove the target ops.
4005 (class process_target): Add the target ops.
4006 * target.cc (process_target::prepare_to_access_memory): Define.
4007 (process_target::done_accessing_memory): Define.
4008 (prepare_to_access_memory): Update.
4009 (done_accessing_memory): Update.
4010
4011 Update the derived classes and callers below.
4012
4013 * linux-low.cc (linux_target_ops): Update.
4014 (linux_prepare_to_access_memory): Turn into ...
4015 (linux_process_target::prepare_to_access_memory): ... this.
4016 (linux_done_accessing_memory): Turn into ...
4017 (linux_process_target::done_accessing_memory): ... this.
4018 * linux-low.h (class linux_process_target): Update.
4019 * lynx-low.cc (lynx_target_ops): Update.
4020 * nto-low.cc (nto_target_ops): Update.
4021 * win32-low.cc (win32_target_ops): Update.
4022
a5a4d4cd
TBA
40232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4024
4025 Turn process_stratum_target's fetch_registers and store_registers
4026 ops into methods of process_target.
4027
4028 * target.h (struct process_stratum_target): Remove the target ops.
4029 (class process_target): Add the target ops.
4030 (fetch_inferior_registers): Update the macro.
4031 (store_inferior_registers): Update the macro.
4032
4033 Update the derived classes and callers below.
4034
4035 * linux-low.cc (linux_target_ops): Update.
4036 (linux_fetch_registers): Turn into ...
4037 (linux_process_target::fetch_registers): ... this.
4038 (linux_store_registers): Turn into ...
4039 (linux_process_target::store_registers): ... this.
4040 * linux-low.h (class linux_process_target): Update.
4041 * lynx-low.cc (lynx_target_ops): Update.
4042 (lynx_fetch_registers): Turn into ...
4043 (lynx_process_target::fetch_registers): ... this.
4044 (lynx_store_registers): Turn into ...
4045 (lynx_process_target::store_registers): ... this.
4046 * lynx-low.h (class lynx_process_target): Update.
4047 * nto-low.cc (nto_target_ops): Update.
4048 (nto_fetch_registers): Turn into ...
4049 (nto_process_target::fetch_registers): ... this.
4050 (nto_store_registers): Turn into ...
4051 (nto_process_target::store_registers): ... this.
4052 * nto-low.h (class nto_process_target): Update.
4053 * win32-low.cc (win32_target_ops): Update.
4054 (win32_fetch_inferior_registers): Turn into ...
4055 (win32_process_target::fetch_registers): ... this.
4056 (win32_store_inferior_registers): Turn into ...
4057 (win32_process_target::store_registers): ... this.
4058 * win32-low.h (class win32_process_target): Update.
4059
6532e7e3
TBA
40602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4061
4062 Turn process_stratum_target's wait op into a method of
4063 process_target.
4064
4065 * target.h (struct process_stratum_target): Remove the target op.
4066 (class process_target): Add the target op.
4067
4068 Update the derived classes and callers below.
4069
4070 * target.cc (target_wait): Update.
4071 * linux-low.cc (linux_target_ops): Update.
4072 (linux_wait): Turn into ...
4073 (linux_process_target::wait): ... this.
4074 * linux-low.h (class linux_process_target): Update.
4075 * lynx-low.cc (lynx_target_ops): Update.
4076 (lynx_wait): Turn into ...
4077 (lynx_process_target::wait): ... this.
4078 * lynx-low.h (class lynx_process_target): Update.
4079 * nto-low.cc (nto_target_ops): Update.
4080 (nto_wait): Turn into ...
4081 (nto_process_target::wait): ... this.
4082 * nto-low.h (class nto_process_target): Update.
4083 * win32-low.cc (win32_target_ops): Update.
4084 (win32_wait): Turn into ...
4085 (win32_process_target::wait): ... this.
4086 (do_initial_child_stuff): Update.
4087 * win32-low.h (class win32_process_target): Update.
4088
0e4d7e35
TBA
40892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4090
4091 Turn process_stratum_target's resume op into a method of
4092 process_target.
4093
4094 * target.h (struct process_stratum_target): Remove the target op.
4095 (class process_target): Add the target op.
4096
4097 Update the derived classes and callers below.
4098
4099 * server.cc (resume): Update.
4100 * target.cc (target_stop_and_wait): Update.
4101 (target_continue_no_signal): Update.
4102 (target_continue): Update.
4103 * linux-low.cc (linux_target_ops): Update.
4104 (linux_resume): Turn into ...
4105 (linux_process_target::resume): ... this.
4106 * linux-low.h (class linux_process_target): Update.
4107 * lynx-low.cc (lynx_target_ops): Update.
4108 (lynx_resume): Turn into ...
4109 (lynx_process_target::resume): ... this.
4110 * lynx-low.h (class lynx_process_target): Update.
4111 * nto-low.cc (nto_target_ops): Update.
4112 (nto_resume): Turn into ...
4113 (nto_process_target::resume): ... this.
4114 * nto-low.h (class nto_process_target): Update.
4115 * win32-low.cc (win32_target_ops): Update.
4116 (win32_resume): Turn into ...
4117 (win32_process_target::resume): ... this.
4118 (win32_process_target::detach): Update.
4119 (do_initial_child_stuff): Update.
4120 * win32-low.h (class win32_process_target): Update.
4121
13d3d99b
TBA
41222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4123
4124 Turn process_stratum_target's thread_alive op into a method of
4125 process_target.
4126
4127 * target.h (struct process_stratum_target): Remove the target op.
4128 (class process_target): Add the target op.
4129 (mythread_alive): Update the macro.
4130
4131 Update the derived classes and callers below.
4132
4133 * linux-low.cc (linux_target_ops): Update.
4134 (linux_thread_alive): Turn into ...
4135 (linux_process_target::thread_alive): ... this.
4136 (wait_for_sigstop): Update.
4137 * linux-low.h (class linux_process_target): Update.
4138 * lynx-low.cc (lynx_target_ops): Update.
4139 (lynx_thread_alive): Turn into ...
4140 (lynx_process_target::thread_alive): ... this.
4141 * lynx-low.h (class lynx_process_target): Update.
4142 * nto-low.cc (nto_target_ops): Update.
4143 (nto_thread_alive): Turn into ...
4144 (nto_process_target::thread_alive): ... this.
4145 * nto-low.h (class nto_process_target): Update.
4146 * win32-low.cc (win32_target_ops): Update.
4147 (win32_thread_alive): Turn into ...
4148 (win32_process_target::thread_alive): ... this.
4149 * win32-low.h (class win32_process_target): Update.
4150
95a49a39
TBA
41512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4152
4153 Turn process_stratum_target's join op into a method of
4154 process_target.
4155
4156 * target.h (struct process_stratum_target): Remove the target op.
4157 (class process_target): Add the target op.
4158 (join_inferior): Update the macro.
4159
4160 Update the derived classes and callers below.
4161
4162 * linux-low.cc (linux_target_ops): Update.
4163 (linux_join): Turn into ...
4164 (linux_process_target::join): ... this.
4165 * linux-low.h (class linux_process_target): Update.
4166 * lynx-low.cc (lynx_target_ops): Update.
4167 (lynx_join): Turn into ...
4168 (lynx_process_target::join): ... this.
4169 * lynx-low.h (class lynx_process_target): Update.
4170 * nto-low.cc (nto_target_ops): Update.
4171 (nto_process_target::join): Define.
4172 * nto-low.h (class nto_process_target): Update.
4173 * win32-low.cc (win32_target_ops): Update.
4174 (win32_join): Turn into ...
4175 (win32_process_target::join): ... this.
4176 * win32-low.h (class win32_process_target): Update.
4177
8adb37b9
TBA
41782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4179
4180 Turn process_stratum_target's mourn op into a method of
4181 process_target.
4182
4183 * target.h (struct process_stratum_target): Remove the target op.
4184 (class process_target): Add the target op.
4185
4186 Update the derived classes and callers below.
4187
4188 * target.cc (target_mourn_inferior): Update.
4189 * linux-low.cc (linux_target_ops): Update.
4190 (linux_mourn): Turn into ...
4191 (linux_process_target::mourn): ... this.
4192 (handle_extended_wait): Update.
4193 (linux_process_target::kill): Update.
4194 (linux_process_target::detach): Update.
4195 * linux-low.h (class linux_process_target): Update.
4196 * lynx-low.cc (lynx_target_ops): Update.
4197 (lynx_mourn): Turn into ...
4198 (lynx_process_target::mourn): ... this.
4199 * lynx-low.h (class lynx_process_target): Update.
4200 * nto-low.cc (nto_target_ops): Update.
4201 (nto_mourn): Turn into ...
4202 (nto_process_target::mourn): ... this.
4203 * nto-low.h (class nto_process_target): Update.
4204 * win32-low.cc (win32_target_ops): Update.
4205 (win32_mourn): Turn into ...
4206 (win32_process_target::mourn): ... this.
4207 * win32-low.h (class win32_process_target): Update.
4208
9061c9cf
TBA
42092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4210
4211 Turn process_stratum_target's detach op into a method of
4212 process_target.
4213
4214 * target.h (struct process_stratum_target): Remove the target op.
4215 (class process_target): Add the target op.
4216 (detach_inferior): Update the macro.
4217
4218 Update the derived classes and callers below.
4219
4220 * linux-low.cc (linux_target_ops): Update.
4221 (linux_detach): Turn into ...
4222 (linux_process_target::detach): ... this.
4223 * linux-low.h (class linux_process_target): Update.
4224 * lynx-low.cc (lynx_target_ops): Update.
4225 (lynx_detach): Turn into ...
4226 (lynx_process_target::detach): ... this.
4227 * lynx-low.h (class lynx_process_target): Update.
4228 * nto-low.cc (nto_target_ops): Update.
4229 (nto_detach): Turn into ...
4230 (nto_process_target::detach): ... this.
4231 * nto-low.h (class nto_process_target): Update.
4232 * win32-low.cc (win32_target_ops): Update.
4233 (win32_detach): Turn into ...
4234 (win32_process_target::detach): ... this.
4235 * win32-low.h (class win32_process_target): Update.
4236
c6885a57
TBA
42372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4238
4239 Turn process_stratum_target's kill op into a method of
4240 process_target.
4241
4242 * target.h (struct process_stratum_target): Remove the target op.
4243 (class process_target): Add the target op.
4244
4245 Update the derived classes and callers below.
4246
4247 * target.cc (kill_inferior): Update.
4248 * linux-low.cc (linux_target_ops): Update.
4249 (linux_kill): Turn into ...
4250 (linux_process_target::kill): ... this.
4251 * linux-low.h (class linux_process_target): Update.
4252 * lynx-low.cc (lynx_target_ops): Update.
4253 (lynx_kill): Turn into ...
4254 (lynx_process_target::kill): ... this.
4255 * lynx-low.h (class lynx_process_target): Update.
4256 * nto-low.cc (nto_target_ops): Update.
4257 (nto_kill): Turn into ...
4258 (nto_process_target::kill): ... this.
4259 * nto-low.h (class nto_process_target): Update.
4260 * win32-low.cc (win32_target_ops): Update.
4261 (win32_kill): Turn into ...
4262 (win32_process_target::kill): ... this.
4263 * win32-low.h (class win32_process_target): Update.
4264
ef03dad8
TBA
42652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4266
4267 Turn process_stratum_target's attach op into a method of
4268 process_target.
4269
4270 * target.h (struct process_stratum_target): Remove the target op.
4271 (class process_target): Add the target op.
4272 (myattach): Update the macro.
4273
4274 Update the derived classes and callers below.
4275
4276 * linux-low.cc (linux_target_ops): Update.
4277 (linux_attach): Turn into ...
4278 (linux_process_target::attach): ... this.
4279 * linux-low.h (class linux_process_target): Update.
4280 * lynx-low.cc (lynx_target_ops): Update.
4281 (lynx_attach): Turn into ...
4282 (lynx_process_target::attach): ... this.
4283 * lynx-low.h (class lynx_process_target): Update.
4284 * nto-low.cc (nto_target_ops): Update.
4285 (nto_attach): Turn into ...
4286 (nto_process_target::attach): ... this.
4287 * nto-low.h (class nto_process_target): Update.
4288 * win32-low.cc (win32_target_ops): Update.
4289 (win32_attach): Turn into ...
4290 (win32_process_target::attach): ... this.
4291 * win32-low.h (class win32_process_target): Update.
4292
6dee9afb
TBA
42932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4294
4295 Turn process_stratum_target's post_create_inferior op into a method
4296 of process_target.
4297
4298 * target.h (struct process_stratum_target): Remove the target op.
4299 (class process_target): Add the target op.
4300 (target_post_create_inferior): Update the macro.
4301 * target.cc (process_target::post_create_inferior): Define.
4302
4303 Update the derived classes and callers below.
4304
4305 * linux-low.cc (linux_target_ops): Update.
4306 (linux_post_create_inferior): Turn into ...
4307 (linux_process_target::post_create_inferior): ... this.
4308 * linux-low.h (class linux_process_target): Update.
4309 * lynx-low.cc (lynx_target_ops): Update.
4310 * nto-low.cc (nto_target_ops): Update.
4311 * win32-low.cc (win32_target_ops): Update.
4312
15295543
TBA
43132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4314
4315 Turn process_stratum_target's create_inferior op into a method of
4316 process_target.
4317
4318 * target.h (struct process_stratum_target): Remove the target op.
4319 (class process_target): Add the target op.
4320 (create_inferior): Rename the macro to ...
4321 (target_create_inferior): ... this.
4322
4323 Update the derived classes and callers below.
4324
4325 * server.cc (handle_v_run): Update.
4326 (captured_main): Update.
4327 (process_serial_event): Update.
4328 * linux-low.cc (linux_target_ops): Update.
4329 (linux_create_inferior): Turn into ...
4330 (linux_process_target::create_inferior): ... this.
4331 * linux-low.h (class linux_process_target): Update.
4332 * lynx-low.cc (lynx_target_ops): Update.
4333 (lynx_create_inferior): Turn into ...
4334 (lynx_process_target::create_inferior): ... this.
4335 * lynx-low.h (class lynx_process_target): Update.
4336 * nto-low.cc (nto_target_ops): Update.
4337 (nto_create_inferior): Turn into ...
4338 (nto_process_target::create_inferior): ... this.
4339 * nto-low.h (class nto_process_target): Update.
4340 * win32-low.cc (win32_target_ops): Update.
4341 (win32_create_inferior): Turn into ...
4342 (win32_process_target::create_inferior): ... this.
4343 * win32-low.h (class win32_process_target): Update.
4344
5ef9273d
TBA
43452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4346
4347 * target.h (class process_target): New class definition.
4348 (struct process_stratum_target) <pt>: New field with type
4349 'process_target*'.
4350 * linux-low.h (class linux_process_target): Define as a derived
4351 class of 'process_target'.
4352 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4353 as the 'pt' field.
4354 * lynx-low.h (class lynx_process_target): Define as a derived
4355 class of 'process_target'.
4356 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4357 as the 'pt' field.
4358 * nto-low.h (class nto_process_target): Define as a derived
4359 class of 'process_target'.
4360 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4361 as the 'pt' field.
4362 * win32-low.h (class win32_process_target): Define as a derived
4363 class of 'process_target'.
4364 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4365 as the 'pt' field.
4366
9f1528a1
AB
43672020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4368
4369 * configure: Regenerate.
4370
bf84f706
MR
43712020-02-19 Maciej W. Rozycki <macro@wdc.com>
4372 Andrew Burgess <andrew.burgess@embecosm.com>
4373
4374 * linux-riscv-low.cc: New file.
4375 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4376 and nat/riscv-linux-tdesc.c.
4377 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4378 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4379 Define.
4380
1a627e7e
TT
43812020-02-14 Tom Tromey <tom@tromey.com>
4382
4383 * acinclude.m4: Don't include acx_configure_dir.m4.
4384 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4385 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4386 (all, install-only, uninstall, clean-info, clean)
4387 (maintainer-clean): Don't recurse.
4388 (subdir_do, all-lib): Remove.
4389 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4390 (GNULIB_H): Remove.
4391 (generated_files): Update.
4392 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4393 * configure: Rebuild.
4394 * configure.ac: Don't configure gnulib or libiberty.
4395 (GNULIB): Update.
4396
a9b34532
EZ
43972020-02-14 Eli Zaretskii <eliz@gnu.org>
4398
4399 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4400 preparing the command line for CreateProcess.
4401 (win32_create_inferior): Reflect the program name in debugging
4402 output that shows the process and its command line.
4403
feacfcac
SM
44042020-02-13 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * Makefile.in: Rename source files from .c to .cc.
4407 * %.c: Rename to %.cc.
4408 * configure.ac: Rename server.c to server.cc.
4409 * configure: Re-generate.
4410
06b3c5bd
SM
44112020-02-13 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4414
052793ad
HD
44152020-02-12 Hannes Domani <ssbssa@yahoo.de>
4416
4417 * win32-low.c (win32_create_inferior): Set signal_pid.
4418
f20e3e82
MR
44192020-02-12 Maciej W. Rozycki <macro@wdc.com>
4420 Pedro Alves <palves@redhat.com>
4421
4422 Skip building gdbserver in a cross-configuration.
4423 * configure.srv: Set $gdbserver_host depending on whether $target
4424 is $host. Use $gdbserver_host instead of $host.
4425
8ddd8e0e
SM
44262020-02-11 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * configure: Re-generate.
4429
898e7f60
SM
44302020-02-11 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * configure: Re-generate.
4433
58df732b
SM
44342020-02-11 Simon Marchi <simon.marchi@efficios.com>
4435
4436 * acinclude.m4: Update warning.m4 path.
4437
7928d571
HD
44382020-02-09 Hannes Domani <ssbssa@yahoo.de>
4439
4440 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4441 (handle_exception): Set siginfo_er.
4442 (win32_xfer_siginfo): New function.
4443
919adfe8
TT
44442020-02-07 Tom Tromey <tom@tromey.com>
4445 Pedro Alves <palves@redhat.com>
4446
4447 * README: Update build documentation.
4448 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4449 host, not target.
4450 * configure.ac: Update paths.
4451 * configure: Rebuild.
4452 * acinclude.m4: Update paths.
4453 * Makefile.in: Update include paths.
4454 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4455 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4456 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4457 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4458 (%-generated.c): Update paths.
4459 * Move entire directory from ../gdb/gdbserver.
4460
287c844a
MR
44612020-01-29 Maciej W. Rozycki <macro@wdc.com>
4462
4463 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4464
548a204f
PFC
44652020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4466
4467 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4468 assignment instead of srv_linux_obj.
4469
a2236a08
HD
44702020-01-28 Hannes Domani <ssbssa@yahoo.de>
4471
4472 * server.c (handle_qxfer_libraries): Write segment-address with
4473 paddress.
4474
bdaed379
HD
44752020-01-24 Hannes Domani <ssbssa@yahoo.de>
4476
4477 * Makefile.in (install-strip): New target.
4478 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4479 * aclocal.m4: Regenerate.
4480 * configure: Regenerate.
4481 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4482
42cd72aa
MR
44832020-01-24 Maciej W. Rozycki <macro@wdc.com>
4484
4485 * Makefile.in (SFILES): Adjust paths to point to real files.
4486 (OBS): Move waitstatus.o to target/waitstatus.o.
4487 (TAGS): Transform paths appropriately.
4488 (%.o): Rename to...
4489 (nat/%.o): ... this pattern rule.
4490 (%.o): Rename to...
4491 (target/%.o): ... this pattern rule.
4492 * configure.srv: Adjust paths throughout to include nat/ prefix
4493 with the revant files.
4494 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4495 * configure: Regenerate.
4496
42ba50ec
MR
44972020-01-24 Maciej W. Rozycki <macro@wdc.com>
4498
4499 * Makefile.in (TAGS): Remove config files from the recipe.
4500
05ea2a05
TT
45012020-01-14 Tom Tromey <tom@tromey.com>
4502
4503 * configure: Rebuild.
4504 * configure.ac: Remove any checks that were added to common.m4.
4505 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4506 lib-link.m4.
4507
01027315
TT
45082020-01-14 Tom Tromey <tom@tromey.com>
4509
4510 * server.h: Include config.h.
4511 * gdbreplay.c: Include config.h.
4512 * configure: Rebuild.
4513 * configure.ac: Don't source common.host.
4514 * acinclude.m4: Update path.
4515 * Makefile.in (INCSUPPORT): New variable.
4516 (INCLUDE_CFLAGS): Add INCSUPPORT.
4517 (SFILES): Update paths.
4518 (version-generated.c): Update path to create-version.sh.
4519 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4520
b2ceabe8
TT
45212020-01-14 Tom Tromey <tom@tromey.com>
4522
4523 * configure.ac (LIBS): Use WIN32APILIBS.
4524 (USE_WIN32API): Don't define.
4525 * configure: Rebuild.
4526
25c51f71
TT
45272020-01-14 Tom Tromey <tom@tromey.com>
4528
4529 * configure: Rebuild.
4530
c0bd321d
SM
45312020-01-13 Simon Marchi <simon.marchi@efficios.com>
4532
4533 * Makefile.in (%-generated.c): Remove rule for files from
4534 regformats/i386.
4535
bb564c58
SM
45362020-01-13 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * configure: Re-generate.
4539
6e37c371
SM
45402020-01-13 Simon Marchi <simon.marchi@efficios.com>
4541
4542 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4543 Define to static.
4544 * tracepoint.c (stop_tracing, flush_trace_buffer,
4545 about_to_request_buffer_space, get_trace_state_variable_value,
4546 set_trace_state_variable_value, gdb_collect): Add declaration.
4547
df4a0200
SM
45482020-01-13 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4551 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4552 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4553 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4554 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4555 static.
4556
89e94ec9
SM
45572020-01-13 Simon Marchi <simon.marchi@efficios.com>
4558
4559 * inferiors.c: Include gdbsupport/common-inferior.h.
4560
2552728a
SM
45612020-01-13 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * hostio-errno.c: Include hostio.h.
4564
4025fa09
SM
45652020-01-13 Simon Marchi <simon.marchi@efficios.com>
4566
4567 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4568 prerequisite.
4569
c0b0a142
SM
45702020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4571
4572 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4573 * linux-arm-tdesc.h: Include arch/arm.h.
4574
bb1183e2
SM
45752020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4576
4577 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4578
f5df0b5f
SM
45792020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4580
4581 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4582 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4583
5b6d1e4f
PA
45842020-01-10 Pedro Alves <palves@redhat.com>
4585
4586 * fork-child.c (post_fork_inferior): Pass target down to
4587 startup_inferior.
4588 * inferiors.c (switch_to_thread): Add process_stratum_target
4589 parameter.
4590 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4591 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4592 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4593 * remote-utils.c (prepare_resume_reply): Pass the target to
4594 switch_to_thread.
4595 * target.c (the_target): Now a process_stratum_target.
4596 (done_accessing_memory): Pass the target to switch_to_thread.
4597 (set_target_ops): Ajust to use process_stratum_target.
4598 * target.h (struct target_ops): Rename to ...
4599 (struct process_stratum_target): ... this.
4600 (the_target, set_target_ops): Adjust.
4601 (prepare_to_access_memory): Adjust comment.
4602 * win32-low.c (child_xfer_memory): Adjust to use
4603 process_stratum_target.
4604 (win32_target_ops): Now a process_stratum_target.
4605
559e7e50
EZ
46062020-01-06 Eli Zaretskii <eliz@gnu.org>
4607 Pedro Alves <palves@redhat.com>
4608
4609 * win32-low.c (get_child_debug_event): Extract the fatal exception
4610 from the exit status and convert to the equivalent Posix signal
4611 number.
4612 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4613 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4614
48189bec
HD
46152020-01-01 Hannes Domani <ssbssa@yahoo.de>
4616
4617 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4618
5dd8bf88
JB
46192020-01-01 Joel Brobecker <brobecker@adacore.com>
4620
4621 * server.c (gdbserver_version): Change copyright year to 2020.
4622 * gdbreplay.c (gdbreplay_version): Likewise.
4623
0ad6b8ee
CB
46242019-12-19 Christian Biesinger <cbiesinger@google.com>
4625
4626 * configure: Regenerate.
4627 * configure.ac: Quote variable arguments of test.
4628
1ee7b812
BE
46292019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4630
4631 * Makefile.in: Fix build with GNU Make 3.81
4632
d9fa87f4
TT
46332019-12-16 Tom Tromey <tromey@adacore.com>
4634
4635 * server.c (get_exec_file): Constify result.
4636
ab7d13f0
CB
46372019-12-10 Christian Biesinger <cbiesinger@google.com>
4638
4639 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4640 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4641 * config.in: Regenerate.
4642 * configure: Regenerate.
4643 * configure.ac: Don't check for strerror.
4644 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4645 Call safe_strerror instead of strerror.
4646 * server.h (strerror): Remove this now-unnecessary declaration.
4647 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4648 strerror.
4649 (gdb_agent_helper_thread): Likewise.
4650 * utils.c (perror_with_name): Likewise.
4651
4da8c3a8
TT
46522019-11-26 Tom Tromey <tom@tromey.com>
4653
4654 * configure, config.in: Rebuild.
4655
21987b9c
TT
46562019-11-26 Tom Tromey <tom@tromey.com>
4657
4658 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4659 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4660 gdb_sigmask.
4661 * configure, config.in: Rebuild.
4662
5e030278
TT
46632019-11-26 Tom Tromey <tom@tromey.com>
4664
4665 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4666 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4667 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4668 * acinclude.m4: Include ax_pthread.m4.
4669 * config.in, configure: Rebuild.
4670
6d91ce9a
CB
46712019-11-26 Christian Biesinger <cbiesinger@google.com>
4672
4673 * debug.c (debug_set_output): Call safe_strerror instead of
4674 strerror.
4675 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4676 (linux_kill_one_lwp): Likewise.
4677 (linux_detach_one_lwp): Likewise.
4678 (linux_wait_for_event_filtered): Likewise.
4679 (store_register): Likewise.
4680 * lynx-low.c (lynx_attach): Likewise.
4681 * mem-break.c (insert_memory_breakpoint): Likewise.
4682 (remove_memory_breakpoint): Likewise.
4683 (delete_fast_tracepoint_jump): Likewise.
4684 (set_fast_tracepoint_jump): Likewise.
4685 (uninsert_fast_tracepoint_jumps_at): Likewise.
4686 (reinsert_fast_tracepoint_jumps_at): Likewise.
4687 * nto-low.c (nto_xfer_memory): Likewise.
4688 (nto_resume): Likewise.
4689
6cdd651f
LM
46902019-11-20 Luis Machado <luis.machado@linaro.org>
4691
4692 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4693 instead of register count.
4694 * tdesc.c (tdesc_contains_feature): New function.
4695 * tdesc.h (tdesc_contains_feature): New prototype.
4696
cd850b40
CB
46972019-11-15 Christian Biesinger <cbiesinger@google.com>
4698
4699 * Makefile.in: Add safe-strerror.c.
4700 * configure: Regenerate.
4701 * configure.ac: Don't source common.host.
4702
5abebf3c
CB
47032019-11-15 Christian Biesinger <cbiesinger@google.com>
4704
4705 * config.in: Regenerate.
4706 * configure: Regenerate.
4707
e06f3d6e
AB
47082019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4709
4710 * ax.c (ax_printf): Handle size_t_arg.
4711
ca3a04f6
CB
47122019-11-06 Christian Biesinger <cbiesinger@google.com>
4713
4714 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4715 * mi/mi-main.c (output_cores): Likewise.
4716 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4717 (linux_xfer_osdata_modules): Likewise.
4718 * remote.c (register_remote_support_xml): Likewise.
4719 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4720 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4721
e48f6033
CB
47222019-11-01 Christian Biesinger <cbiesinger@google.com>
4723
4724 * configure: Regenerate.
4725 * configure.ac: Remove check for strerror_r.
4726
e7e97a2e
CB
47272019-10-31 Christian Biesinger <cbiesinger@google.com>
4728
4729 * config.in: Regenerate.
4730 * configure: Regenerate.
4731 * configure.ac: Also check for strerror_r.
4732
75cafaa6
CB
47332019-10-31 Christian Biesinger <cbiesinger@google.com>
4734
4735 * ax.h (debug_agent): Remove duplicate declaration.
4736
30baf67b
TV
47372019-10-26 Tom de Vries <tdevries@suse.de>
4738
4739 * linux-aarch64-low.c: Fix typos in comments.
4740 * linux-arm-low.c: Same.
4741 * linux-low.c: Same.
4742 * linux-ppc-low.c: Same.
4743 * proc-service.c: Same.
4744 * regcache.h: Same.
4745 * server.c: Same.
4746 * tracepoint.c: Same.
4747 * win32-low.c: Same.
4748
52c64cf7
TT
47492019-10-25 Tom Tromey <tromey@adacore.com>
4750
4751 * utils.c (xstrdup): Remove.
4752
c12d372d
TT
47532019-10-23 Tom Tromey <tom@tromey.com>
4754
4755 * configure, config.in: Rebuild.
4756
4d0b984b
TT
47572019-10-23 Tom Tromey <tom@tromey.com>
4758
4759 * configure: Rebuild.
4760 * acinclude.m4: Use m4_include, not sinclude.
4761
c5adaa19
TT
47622019-10-17 Tom Tromey <tromey@adacore.com>
4763
4764 * configure: Rebuild.
4765 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4766 in AC_CONFIG_FILES invocation.
4767 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4768 invocation.
4769
fec4e896
CB
47702019-10-16 Christian Biesinger <cbiesinger@google.com>
4771
4772 * server.c: Include xml-builtin.h.
4773 (get_xml_features): Don't declare xml_builtins here.
4774
00975ff6
AB
47752019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4776
4777 * Makefile.in: Remove references to vec-ipa.o.
4778
0dc32745
AB
47792019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4780
4781 * Makefile.in: Remove references to vec.c.
4782
3e6ec53a
CB
47832019-10-02 Christian Biesinger <cbiesinger@google.com>
4784
4785 * server.c (server_waiting): Change to bool.
4786 (extended_protocol): Likewise.
4787 (response_needed): Likewise.
4788 (exit_requested): Likewise.
4789 (run_once): Likewise.
4790 (report_no_resumed): Likewise.
4791 (non_stop): Likewise.
4792 (disable_packet_vCont): Likewise.
4793 (disable_packet_Tthread): Likewise.
4794 (disable_packet_qC): Likewise.
4795 (disable_packet_qfThreadInfo): Likewise.
4796 (handle_general_set): Update.
4797 (handle_detach): Update.
4798 (handle_monitor_command): Update.
4799 (handle_query): Update.
4800 (captured_main): Update.
4801 (process_serial_event): Update.
4802 * server.h (server_waiting): Change to bool.
4803 (disable_packet_vCont): Likewise.
4804 (disable_packet_Tthread): Likewise.
4805 (disable_packet_qC): Likewise.
4806 (disable_packet_qfThreadInfo): Likewise.
4807 (run_once): Likewise.
4808 (non_stop): Likewise.
4809 * target.c (target_stop_and_wait): Update.
4810
80fd2826
TT
48112019-10-02 Tom Tromey <tromey@adacore.com>
4812
4813 * Makefile.in (SFILES): Add common-inferior.c.
4814 (OBS): Add common-inferior.o.
4815 * server.c (startup_with_shell): Don't define.
4816
46f29a9a
AB
48172019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4818
4819 * linux-low.c (linux_low_read_btrace): Update for change to
4820 std::vector.
4821
f9d949fb
CB
48222019-09-20 Christian Biesinger <cbiesinger@google.com>
4823
4824 * debug.c (debug_threads): Remove comment in favor of the header.
4825 * debug.h (using_threads): Add declaration.
4826 (debug_threads): Add comment.
4827 * linux-aarch64-low.c: Include debug.h and remove declaration of
4828 debug_threads.
4829 * nto-low.c: Likewise.
4830 * remote-utils.c: Likewise.
4831 * thread-db.c: Likewise.
4832
abf516c6
UW
48332019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4834
4835 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4836 and powerpc-cell64l-ipa.o.
4837 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4838 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4839 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4840 (spu*-*-*): Remove.
4841
4842 * spu-low.c: Remove file.
4843
4844 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4845 (parse_spufs_run): Remove.
4846 (ppc_get_pc): Remove Cell/B.E. support.
4847 (ppc_set_pc): Likewise.
4848 (ppc_breakpoint_at): Likewise.
4849 (ppc_arch_setup): Likewise.
4850 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4851 tdesc_powerpc_cell32l.
4852 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4853 or init_registers_powerpc_cell32l.
4854 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4855 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4856 or init_registers_powerpc_cell32l.
4857 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4858 (init_registers_powerpc_cell32l): Remove prototype.
4859 (init_registers_powerpc_cell64l): Likewise.
4860
4861 * target.h (struct target_ops): Remove qxfer_spu member.
4862 * server.c (handle_qxfer_spu): Remove.
4863 (qxfer_packets): Remove entry for "spu".
4864 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4865 * linux-low.c (SPUFS_MAGIC): Remove.
4866 (spu_enumerate_spu_ids): Remove.
4867 (linux_qxfer_spu): Remove.
4868 (linux_target_ops): Remove qxfer_spu member.
4869 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4870 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4871 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4872
2d41fa11
SDJ
48732019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4874
4875 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4876 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4877 * config.in: Regenerate.
4878 * configure: Regenerate.
4879
d59b55f0
TT
48802019-08-15 Tom Tromey <tromey@adacore.com>
4881
4882 * target.c (target_write_memory): Use gdb::byte_vector.
4883
4196ab2a
TT
48842019-08-15 Tom Tromey <tromey@adacore.com>
4885
4886 * tracepoint.c (write_inferior_data_pointer)
4887 (write_inferior_integer, write_inferior_int8)
4888 (write_inferior_uinteger, m_tracepoint_action_download)
4889 (r_tracepoint_action_download, x_tracepoint_action_download)
4890 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4891 (download_agent_expr, download_tracepoint_1)
4892 (download_trace_state_variables, upload_fast_traceframes): Update.
4893 * server.c (gdb_write_memory): Update.
4894 * remote-utils.c (relocate_instruction): Update.
4895 * proc-service.c (ps_pdwrite): Update.
4896 * mem-break.c (remove_memory_breakpoint)
4897 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4898 (uninsert_fast_tracepoint_jumps_at)
4899 (reinsert_fast_tracepoint_jumps_at): Update.
4900 * linux-x86-low.c (append_insns)
4901 (i386_install_fast_tracepoint_jump_pad)
4902 (amd64_write_goto_address, i386_write_goto_address): Update.
4903 * linux-s390-low.c (append_insns, s390_write_goto_address):
4904 Update.
4905 * linux-ppc-low.c (ppc_relocate_instruction)
4906 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4907 (ppc_write_goto_address): Update.
4908 * linux-aarch64-low.c (append_insns): Update.
4909 * target.h (struct target_ops): Update.
4910 (write_inferior_memory): Don't declare.
4911 * target.c (target_write_memory): Rename from
4912 write_inferior_memory. Remove old target_write_memory.
4913
c6778d00
TT
49142019-08-15 Tom Tromey <tromey@adacore.com>
4915
4916 * target.c (write_inferior_memory): Use std::vector.
4917
404f2902
FCE
49182019-08-06 Frank Ch. Eigler <fche@redhat.com>
4919
4920 PR build/24886
4921 * configure.ac: Drop enable-libmcheck support.
4922 * configure, config.in: Rebuild.
4923 * acinclude.m4: Don't include it.
4924
4c5aa8e0
AH
49252019-07-19 Alan Hayward <alan.hayward@arm.com>
4926
4927 * configure.srv: Remove Arm xml files.
4928
7cc17433
AH
49292019-07-19 Alan Hayward <alan.hayward@arm.com>
4930
4931 * configure.srv: Add new files. Remove xml generated files.
4932 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4933 registers.
4934 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4935 * linux-aarch32-tdesc.c: New file.
4936 * linux-aarch32-tdesc.h: New file.
4937 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4938 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4939 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4940 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4941 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4942 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4943 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4944 (arm_read_description): Call arm_linux_read_description.
4945 (initialize_low_arch): Don't init registers.
4946 * linux-arm-tdesc.c: New file.
4947 * linux-arm-tdesc.h: New file.
4948
166a82be
AH
49492019-07-10 Alan Hayward <alan.hayward@arm.com>
4950
4951 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4952 Move counter inside for.
4953 (arm_read_description): Check ptrace earlier.
4954 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4955
268a13a5
TT
49562019-07-09 Tom Tromey <tom@tromey.com>
4957
4958 * configure: Rebuild.
4959 * configure.ac: Change common to gdbsupport.
4960 * acinclude.m4: Change common to gdbsupport.
4961 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4962 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4963 common to gdbsupport.
4964 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4965 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4966 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4967 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4968 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4969 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4970 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4971 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4972 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4973 common to gdbsupport.
4974
350fab54
AH
49752019-07-04 Alan Hayward <alan.hayward@arm.com>
4976
4977 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4978 defines.
4979 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4980
2b40fda7
AH
49812019-07-04 Alan Hayward <alan.hayward@arm.com>
4982
4983 * configure.srv: Remove legacy xml.
4984 * linux-aarch64-low.c (initialize_low_arch): Remove
4985 initialize_low_tdesc call.
4986 * linux-aarch64-tdesc-selftest.c: Remove file.
4987 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4988 * linux-x86-low.c (initialize_low_arch): Remove
4989 initialize_low_tdesc call.
4990 * linux-x86-tdesc-selftest.c: Remove file.
4991 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4992
7d10623d
TV
49932019-06-20 Tom de Vries <tdevries@suse.de>
4994
4995 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4996 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4997
8d6a48df
TV
49982019-06-19 Tom de Vries <tdevries@suse.de>
4999
5000 * debug.h (debug_write): Change return type to ssize_t.
5001 * debug.c (debug_write): Same.
5002
73cc7272
TT
50032019-06-14 Tom Tromey <tom@tromey.com>
5004
5005 * configure.ac: Use new path to gnulib.
5006 * configure: Rebuild.
5007 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5008 to gnulib.
5009
08f10e02
TT
50102019-06-11 Tom Tromey <tom@tromey.com>
5011
5012 * Makefile.in (SFILES): Add alloc.c.
5013 (OBS): Add alloc.o.
5014 (IPA_OBJS): Add alloc-ipa.o.
5015 (alloc-ipa.o): New target.
5016 (%.o: ../%.c): New pattern rule.
5017
422186a9
TT
50182019-06-10 Tom Tromey <tromey@adacore.com>
5019
5020 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5021 end warning with a newline.
5022 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5023 newline.
5024 * thread-db.c (attach_thread): Don't end warning with a newline.
5025 (thread_db_notice_clone): Likewise.
5026 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5027 newline.
5028 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5029 end warning with a newline.
5030
b02f78f9
PA
50312019-06-04 Pedro Alves <palves@redhat.com>
5032
5033 * server.c (captured_main): Use make_unique_xstrdup.
5034
88ed7edb
TT
50352019-06-02 Tom Tromey <tom@tromey.com>
5036
5037 * gdbreplay.c (fromhex): Remove.
5038 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5039
33a6bc35
TT
50402019-05-29 Tom Tromey <tromey@adacore.com>
5041
5042 * configure: Rebuild.
5043
e90a813d
KB
50442019-05-06 Kevin Buettner <kevinb@redhat.com>
5045
5046 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5047 sign extension code on 32-bit builds.
5048
353ea2d1
EZ
50492019-05-03 Eli Zaretskii <eliz@gnu.org>
5050
5051 * remote-utils.c:
5052 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5053
b494cdff
TT
50542019-04-19 Tom Tromey <tom@tromey.com>
5055
5056 * server.c (struct vstop_notif): Derive from notif_event.
5057 <base>: Remove.
5058 (queue_stop_reply): Update.
5059 (remove_all_on_match_ptid): Change type. Rewrite.
5060 (discard_queued_stop_replies): Rewrite.
5061 (in_queued_stop_replies_ptid): Change type.
5062 (in_queued_stop_replies): Rewrite.
5063 (notif_stop): Update.
5064 (queue_stop_reply_callback): Update.
5065 (captured_main): Don't call initialize_notif.
5066 (push_stop_notification): Update.
5067 * notif.c (notif_write_event, handle_notif_ack)
5068 (notif_event_enque, notif_push): Update.
5069 (notif_event_xfree, initialize_notif): Remove.
5070 * notif.h (struct notif_event): Include <list>, not
5071 "common/queue.h".
5072 (struct notif_server) <queue>: Now a std::list.
5073 (notif_event_p): Remove typedef.
5074 (initialize_notif): Don't declare.
5075 (struct notif_event): Add virtual destructor.
5076
a7e559cc
AH
50772019-04-17 Alan Hayward <alan.hayward@arm.com>
5078
5079 * ax.c (ax_vdebug): Call debug_printf.
5080 * debug.c (debug_write): New function.
5081 * debug.h (debug_write): New declaration.
5082 * linux-low.c (sigchld_handler): Call debug_write.
5083
aeb2e706
AH
50842019-04-17 Alan Hayward <alan.hayward@arm.com>
5085
5086 * debug.c (debug_set_output): New function.
5087 (debug_vprintf): Send output to debug_file.
5088 (debug_flush): Likewise.
5089 * debug.h (debug_set_output): New declaration.
5090 * server.c (handle_monitor_command): Add debug-file option.
5091 (captured_main): Likewise.
5092
c1bc0935
AH
50932019-04-17 Alan Hayward <alan.hayward@arm.com>
5094
5095 * debug.c (remote_debug): Add definition.
5096 * debug.h (remote_debug): Add declaration.
5097 * hostio.c (remote_debug): Remove declaration.
5098 * remote-utils.c (struct ui_file): Likewise.
5099 (remote_debug): Likewise.
5100 * remote-utils.h (remote_debug): Likewise,
5101 * server.c (remote_debug): Remove definition.
5102
3f52fdbc
KB
51032019-04-10 Kevin Buettner <kevinb@redhat.com>
5104
5105 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5106 when using a 64-bit gdbserver.
5107
b0319eaa
TT
51082019-04-09 Tom Tromey <tromey@adacore.com>
5109
5110 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5111
eedc3f4f
TT
51122019-04-08 Tom Tromey <tom@tromey.com>
5113
5114 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5115 throw.
5116 (linux_resume_one_lwp): Likewise.
5117
230d2906
TT
51182019-04-08 Tom Tromey <tom@tromey.com>
5119
5120 * gdbreplay.c: Update.
5121 * linux-low.c: Update.
5122 * server.c: Update.
5123
a70b8144
TT
51242019-04-08 Tom Tromey <tom@tromey.com>
5125
5126 * server.c: Use C++ exception handling.
5127 * linux-low.c: Use C++ exception handling.
5128 * gdbreplay.c: Use C++ exception handling.
5129
3d6e9d23
TT
51302019-04-08 Tom Tromey <tom@tromey.com>
5131
5132 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5133 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5134 (captured_main, main): Update.
5135 * gdbreplay.c (main): Update.
5136
0570503d
PFC
51372019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5138
5139 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5140 value in argument pointer, return 1 if the entry is found and 0
5141 otherwise. Move comment.
5142 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5143 * linux-low.h (linux_get_auxv): Declare.
5144 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5145
227a9e65
TT
51462019-04-05 Tom Tromey <tromey@adacore.com>
5147
5148 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5149 variables.
5150
69f4c9cc
AH
51512019-03-28 Alan Hayward <alan.hayward@arm.com>
5152
5153 * linux-low.c (AT_HWCAP2): Add define if not already included.
5154
974c89e0
AH
51552019-03-26 Alan Hayward <alan.hayward@arm.com>
5156
5157 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5158 (aarch64_arch_setup): Call linux_get_hwcap.
5159 * linux-arm-low.c (arm_get_hwcap): Remove function.
5160 (arm_read_description): Call linux_get_hwcap.
5161 * linux-low.c (linux_get_auxv): New function.
5162 (linux_get_hwcap): Likewise.
5163 (linux_get_hwcap2): Likewise.
5164 * linux-low.h (linux_get_hwcap): New declaration.
5165 (linux_get_hwcap2): Likewise.
5166 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5167 (ppc_arch_setup): Call linux_get_hwcap.
5168 * linux-s390-low.c (s390_get_hwcap): Remove function.
5169 (s390_arch_setup): Call linux_get_hwcap.
5170
1ef53e6b
AH
51712019-03-22 Alan Hayward <alan.hayward@arm.com>
5172 Jiong Wang <jiong.wang@arm.com>
5173
5174 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5175 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5176 to fail.
5177 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5178
ee4fbcfa
AH
51792019-03-22 Alan Hayward <alan.hayward@arm.com>
5180 Jiong Wang <jiong.wang@arm.com>
5181
5182 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5183 (aarch64_get_hwcap): New function.
5184 (aarch64_arch_setup): Read APIA hwcap.
5185
6dc0ebde
AH
51862019-03-22 Alan Hayward <alan.hayward@arm.com>
5187 Jiong Wang <jiong.wang@arm.com>
5188
5189 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5190 (initialize_low_tracepoint): Likewise.
5191 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5192 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5193 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5194 (aarch64_linux_read_description): Likewise.
5195 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5196
1163a4b7
JB
51972019-03-12 John Baldwin <jhb@FreeBSD.org>
5198
5199 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5200 i386_create_target_description for 'segments' parameter.
5201 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5202 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5203 * win32-i386-low.c (i386_arch_setup): Likewise.
5204
d3a70e03
TT
52052019-03-12 Tom Tromey <tromey@adacore.com>
5206
5207 * linux-low.c (iterate_over_lwps): Update.
5208
37991b4f
TT
52092019-03-06 Tom Tromey <tom@tromey.com>
5210
5211 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5212 (captured_main): Use SCOPE_EXIT.
5213
45950eb6
SDJ
52142019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5215
5216 * configure.srv: Use '$enable_unittest' instead of '$development'
5217 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5218 case.
5219
43ac54fc
TT
52202019-02-27 Tom Tromey <tromey@adacore.com>
5221
5222 * gdbreplay.c (logchar): Handle \r\n.
5223
df0da8a2
AH
52242019-02-07 Alan Hayward <alan.hayward@arm.com>
5225
5226 * linux-low.c (linux_attach): Add process before lwp.
5227 * server.c (attach_inferior): Check if already attached.
5228
1a5c2598
TT
52292019-02-07 Tom Tromey <tom@tromey.com>
5230
5231 * x86-tdesc.h: Rename include guard.
5232 * x86-low.h: Add include guard.
5233 * wincecompat.h: Rename include guard.
5234 * win32-low.h: Add include guard.
5235 * utils.h: Rename include guard.
5236 * tracepoint.h: Rename include guard.
5237 * tdesc.h: Rename include guard.
5238 * target.h: Rename include guard.
5239 * server.h: Rename include guard.
5240 * remote-utils.h: Rename include guard.
5241 * regcache.h: Rename include guard.
5242 * nto-low.h: Rename include guard.
5243 * notif.h: Add include guard.
5244 * mem-break.h: Rename include guard.
5245 * lynx-low.h: Add include guard.
5246 * linux-x86-tdesc.h: Add include guard.
5247 * linux-s390-tdesc.h: Add include guard.
5248 * linux-ppc-tdesc-init.h: Add include guard.
5249 * linux-low.h: Add include guard.
5250 * linux-aarch64-tdesc.h: Add include guard.
5251 * linux-aarch32-low.h: Add include guard.
5252 * inferiors.h: Rename include guard.
5253 * i387-fp.h: Rename include guard.
5254 * hostio.h: Rename include guard.
5255 * gdbthread.h: Rename include guard.
5256 * gdb_proc_service.h: Rename include guard.
5257 * event-loop.h: Rename include guard.
5258 * dll.h: Rename include guard.
5259 * debug.h: Rename include guard.
5260 * ax.h: Rename include guard.
5261
956cc47c
SN
52622018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5263
5264 PR gdb/23985
5265 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5266 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5267
a0707f3c
TT
52682019-01-25 Tom Tromey <tom@tromey.com>
5269
5270 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5271
0747795c
TT
52722019-01-25 Tom Tromey <tom@tromey.com>
5273
5274 * win32-low.c: Fix common/ includes.
5275 * win32-i386-low.c: Fix common/ includes.
5276 * tracepoint.c: Fix common/ includes.
5277 * thread-db.c: Fix common/ includes.
5278 * target.h: Fix common/ includes.
5279 * symbol.c: Fix common/ includes.
5280 * spu-low.c: Fix common/ includes.
5281 * server.h: Fix common/ includes.
5282 * server.c: Fix common/ includes.
5283 * remote-utils.c: Fix common/ includes.
5284 * regcache.h: Fix common/ includes.
5285 * regcache.c: Fix common/ includes.
5286 * nto-x86-low.c: Fix common/ includes.
5287 * notif.h: Fix common/ includes.
5288 * mem-break.h: Fix common/ includes.
5289 * lynx-low.c: Fix common/ includes.
5290 * lynx-i386-low.c: Fix common/ includes.
5291 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5292 * linux-x86-low.c: Fix common/ includes.
5293 * linux-low.c: Fix common/ includes.
5294 * inferiors.h: Fix common/ includes.
5295 * i387-fp.c: Fix common/ includes.
5296 * hostio.c: Fix common/ includes.
5297 * hostio-errno.c: Fix common/ includes.
5298 * gdbthread.h: Fix common/ includes.
5299 * gdbreplay.c: Fix common/ includes.
5300 * fork-child.c: Fix common/ includes.
5301 * event-loop.c: Fix common/ includes.
5302 * ax.c:
5303 (enum gdb_agent_op): Fix common/ includes.
5304
be6d4f74
TT
53052019-01-21 Tom Tromey <tom@tromey.com>
5306
5307 * tracepoint.c: Fix includes.
5308 * remote-utils.c: Fix includes.
5309 * linux-x86-low.c: Fix includes.
5310
66d91b39
JB
53112019-01-01 Joel Brobecker <brobecker@adacore.com>
5312
5313 * gdbreplay.c (gdbreplay_version): Update copyright year in
5314 version message.
5315 * server.c (gdbserver_version): Likewise.
5316
754e3168
AH
53172018-12-05 Alan Hayward <alan.hayward@arm.com>
5318
5319 * linux-low.c (add_lwp): Switch ordering.
5320
d105de22
TT
53212018-11-29 Tom Tromey <tom@tromey.com>
5322
5323 * win32-low.c (win32_join): Take pid, not process.
5324 * target.h (struct target_ops) <join>: Change argument type.
5325 (join_inferior): Change argument name.
5326 * spu-low.c (spu_join): Take pid, not process.
5327 * server.c (handle_detach): Preserve pid before destroying
5328 process.
5329 * lynx-low.c (lynx_join): Take pid, not process.
5330 * linux-low.c (linux_join): Take pid, not process.
5331
50138245
AH
53322018-11-23 Alan Hayward <alan.hayward@arm.com>
5333
5334 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5335 (aarch64_cannot_fetch_register): Likewise.
5336 (struct linux_target_ops): Update references.
5337
64f57f3d
PFC
53382018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5339
5340 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5341
8d619c01
EBM
53422018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5343
5344 * configure.srv (ipa_ppc_linux_regobj): Add
5345 powerpc-isa207-htm-vsx32l-ipa.o and
5346 powerpc-isa207-htm-vsx64l-ipa.o.
5347 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5348 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5349 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5350 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5351 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5352 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5353 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5354 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5355 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5356 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5357 (init_registers_powerpc_isa207_htm_vsx32l)
5358 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5359 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5360 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5361 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5362 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5363 (ppc_store_tm_ctarregset): New functions.
5364 (ppc_regsets): Add entries for HTM regsets.
5365 (ppc_arch_setup): Set htm in features struct when needed. Set
5366 sizes for the HTM regsets.
5367 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5368 (initialize_low_arch): Call
5369 init_registers_powerpc_isa207_htm_vsx32l and
5370 init_registers_powerpc_isa207_htm_vsx64l.
5371 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5372 PPC_TDESC_ISA207_HTM_VSX.
5373 (initialize_low_tracepoint): Call
5374 init_registers_powerpc_isa207_htm_vsx32l and
5375 init_registers_powerpc_isa207_htm_vsx64l.
5376
232bfb86
EBM
53772018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5378
5379 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5380 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5381 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5382 (ppc_store_pmuregset): New functions.
5383 (ppc_regsets): Add entries for ebb and pmu regsets.
5384 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5385 pmu regsets are available. Set sizes for these regsets.
5386
f2cf6173
EBM
53872018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5388
5389 * configure.srv (ipa_ppc_linux_regobj): Add
5390 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5391 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5392 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5393 rs6000/powerpc-isa207-vsx32l.xml, and
5394 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5395 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5396 <PPC_TDESC_ISA207_VSX>: New enum value.
5397 (init_registers_powerpc_isa207_vsx32l): Declare.
5398 (init_registers_powerpc_isa207_vsx64l): Declare.
5399 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5400 (ppc_store_tarregset): New function.
5401 (ppc_regsets): Add entry for the TAR regset.
5402 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5403 size for the TAR regsets.
5404 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5405 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5406 and init_registers_powerpc_isa207_vsx64l.
5407 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5408 (initialize_low_tracepoint): Call
5409 init_registers_powerpc_isa207_vsx32l and
5410 init_registers_powerpc_isa207_vsx64l.
5411
7ca18ed6
EBM
54122018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5413 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5414
5415 * configure.srv (ipa_ppc_linux_regobj): Add
5416 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5417 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5418 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5419 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5420 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5421 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5422 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5423 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5424 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5425 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5426 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5427 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5428 (ppc_hwcap): Add comment.
5429 (ppc_hwcap2): New global.
5430 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5431 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5432 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5433 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5434 when needed. Set sizes for the the DSCR and PPR regsets.
5435 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5436 (initialize_low_arch): Call
5437 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5438 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5439 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5440 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5441 (initialize_low_tracepoint): Call
5442 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5443 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5444
5c849b22
PFC
54452018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5446
5447 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5448
8ecfd7bd
SDJ
54492018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5450 Simon Marchi <simark@simark.ca>
5451
5452 * acinclude.m4: Include "../selftest.m4".
5453 * configure: Regenerate.
5454 * configure.ac: Use "GDB_AC_SELFTEST".
5455 * configure.srv: Use "$enable_unittests" instead of
5456 "$development" when checking whether unit tests have been
5457 enabled.
5458 * server.c (captured_main): Update message informing that
5459 selftests have been disabled.
5460
96643e35
TT
54612018-10-04 Tom Tromey <tom@tromey.com>
5462
5463 * configure: Rebuild.
5464
da4ae14a
TT
54652018-10-04 Tom Tromey <tom@tromey.com>
5466
5467 * server.c (handle_status): Rename inner "thread".
5468 (process_serial_event): Declare "res" in 'm' case.
5469 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5470 (iterate_over_lwps): Rename inner "thread".
5471 (linux_qxfer_libraries_svr4): Rename inner "len".
5472 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5473
7c619dbd
GB
54742018-10-01 Gary Benson <gbenson@redhat.com>
5475
5476 * gdb_proc_service.h: Moved common code to
5477 common/gdb_proc_service.h.
5478
3795e814
GB
54792018-10-01 Gary Benson <gbenson@redhat.com>
5480
5481 * gdb_proc_service.h: Synchronize comments and whitespace with
5482 GDB's version of this file.
5483
49b036f1
TT
54842018-09-25 Tom Tromey <tom@tromey.com>
5485
5486 * configure: Rebuild.
5487 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5488
8ff03f0b
SM
54892018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5490
5491 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5492 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5493 ($(IPA_LIB)): Sort IPA_OBJS.
5494
a1cd91dc
SM
54952018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5496
5497 * Makefile.in: Remove references to $(ADD_DEPS).
5498
752312ba
TT
54992018-09-16 Tom Tromey <tom@tromey.com>
5500
5501 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5502 variables.
5503 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5504 variables.
5505
f1628857
TT
55062018-09-05 Tom Tromey <tom@tromey.com>
5507
5508 * configure: Rebuild.
5509
ad202fcc
SM
55102018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5511
5512 PR build/23399
5513 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5514
d3d8724a
TT
55152018-08-27 Tom Tromey <tom@tromey.com>
5516
5517 PR build/23087:
5518 * configure: Rebuild.
5519
b4f183d2
TT
55202018-08-27 Tom Tromey <tom@tromey.com>
5521
5522 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5523 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5524 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5525 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5526 (s390x_emit_stack_adjust): Add casts to unsigned char.
5527
4e2aa472
SM
55282018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5529
5530 PR gdb/23374
5531 PR gdb/23375
5532 * server.h (struct client_state) <disable_randomization>:
5533 Initialize to 1.
5534
cf4088a9
SM
55352018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5536
5537 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5538 variable.
5539 (mips_supply_ptrace_register): Likewise.
5540
a0de763e
TT
55412018-07-22 Tom Tromey <tom@tromey.com>
5542
5543 * configure: Rebuild.
5544
b0a7723d
TT
55452018-07-22 Tom Tromey <tom@tromey.com>
5546
5547 * win32-low.c (win32_create_inferior): Remove unused variables.
5548 * gdbreplay.c (remote_open): Remove unused variable.
5549 * remote-utils.c (remote_prepare): Remove unused variable.
5550 * x86-tdesc.h (X86_TDESC_H): Define.
5551 (amd64_expedite_regs): Define conditionally.
5552 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5553 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5554 * remote-utils.c (readchar): Remove unused variable.
5555
a780ef4f
PA
55562018-07-13 Pedro Alves <palves@redhat.com>
5557
5558 * linux-low.c (linux_kill): Change parameter to process_info
5559 pointer instead of pid. Adjust.
5560 * lynx-low.c (lynx_kill): Likewise.
5561 * nto-low.c (nto_kill): Likewise.
5562 * spu-low.c (spu_kill): Likewise.
5563 * win32-low.c (win32_kill): Likewise.
5564 * server.c (handle_v_kill, kill_inferior_callback)
5565 (detach_or_kill_for_exit): Adjust.
5566 * target.c (kill_inferior): Change parameter to process_info
5567 pointer instead of pid. Adjust.
5568 * target.h (struct target_ops) <kill>: Change parameter to
5569 process_info pointer instead of pid. Adjust all implementations
5570 and callers.
5571 (kill_inferior): Likewise.
5572
ef2ddb33
PA
55732018-07-13 Pedro Alves <palves@redhat.com>
5574
5575 * linux-low.c (linux_detach, linux_join): Change parameter to
5576 process_info pointer instead of pid. Adjust.
5577 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5578 * nto-low.c (nto_detach): Likewise.
5579 * spu-low.c (spu_detach, spu_join): Likewise.
5580 * win32-low.c (win32_detach, win32_join): Likewise.
5581 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5582 * target.h (struct target_ops) <detach, join>: Change parameter to
5583 process_info pointer instead of pid. Adjust all implementations
5584 and callers.
5585 (detach_inferior, join_inferior): Rename 'pid' parameter to
5586 'proc'.
5587
c7ab0aef
SDJ
55882018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5589 Jan Kratochvil <jan.kratochvil@redhat.com>
5590 Paul Fertser <fercerpav@gmail.com>
5591 Tsutomu Seki <sekiriki@gmail.com>
5592
5593 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5594 (OBS): Add 'common/netstuff.o'.
5595 (GDBREPLAY_OBS): Likewise.
5596 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5597 (remote_open): Implement support for IPv6
5598 connections.
5599 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5600 and 'wspiapi.h'.
5601 (handle_accept_event): Accept connections from IPv6 sources.
5602 (remote_prepare): Handle IPv6-style hostnames; implement
5603 support for IPv6 connections.
5604 (remote_open): Implement support for printing connections from
5605 IPv6 sources.
5606
31445d10
PA
56072018-07-11 Pedro Alves <palves@redhat.com>
5608
5609 PR gdb/23377
5610 * mem-break.c (any_persistent_commands): Add process_info
5611 parameter and use it instead of relying on the current process.
5612 Change return type to bool.
5613 * mem-break.h (any_persistent_commands): Add process_info
5614 parameter and change return type to bool.
5615 * server.c (handle_detach): Remove require_running_or_return call.
5616 Look up the process_info for the process we're about to detach.
5617 If not found, return back error to GDB. Adjust
5618 any_persistent_commands call to pass down a process pointer.
5619
cb197132
PA
56202018-07-11 Pedro Alves <palves@redhat.com>
5621
5622 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5623 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5624 instead of collect_register_by_name.
5625 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5626 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5627
1b919490
VB
56282018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5629 Pedro Alves <palves@redhat.com>
5630
5631 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5632
d7e15655
TT
56332018-07-03 Tom Tromey <tom@tromey.com>
5634
5635 * linux-low.c: Update.
5636 * lynx-low.c: Update.
5637 * mem-break.c: Update.
5638 * nto-low.c: Update.
5639 * remote-utils.c: Update.
5640 * server.c: Update.
5641 * spu-low.c: Update.
5642 * target.c: Update.
5643 * win32-low.c: Update.
5644
26a57c92
TT
56452018-07-03 Tom Tromey <tom@tromey.com>
5646
5647 * server.c: Update.
5648
0e998d96
TT
56492018-07-03 Tom Tromey <tom@tromey.com>
5650
5651 * linux-low.c: Update.
5652
cc6bcb54
TT
56532018-07-03 Tom Tromey <tom@tromey.com>
5654
5655 * target.c: Update.
5656
e38504b3
TT
56572018-07-03 Tom Tromey <tom@tromey.com>
5658
5659 * linux-low.c: Update.
5660 * linux-mips-low.c: Update.
5661 * lynx-low.c: Update.
5662 * nto-low.c: Update.
5663 * remote-utils.c: Update.
5664 * server.c: Update.
5665 * spu-low.c: Update.
5666 * target.c: Update.
5667 * thread-db.c: Update.
5668
e99b03dc
TT
56692018-07-03 Tom Tromey <tom@tromey.com>
5670
5671 * linux-low.c: Update.
5672 * linux-mips-low.c: Update.
5673 * lynx-low.c: Update.
5674 * mem-break.c: Update.
5675 * nto-low.c: Update.
5676 * remote-utils.c: Update.
5677 * server.c: Update.
5678 * spu-low.c: Update.
5679 * target.c: Update.
5680 * tracepoint.c: Update.
5681
f2907e49
TT
56822018-07-03 Tom Tromey <tom@tromey.com>
5683
5684 * linux-low.c: Update.
5685 * linux-ppc-low.c: Update.
5686 * linux-x86-low.c: Update.
5687 * proc-service.c: Update.
5688 * server.c: Update.
5689 * spu-low.c: Update.
5690 * thread-db.c: Update.
5691 * win32-low.c: Update.
5692
fd79271b
TT
56932018-07-03 Tom Tromey <tom@tromey.com>
5694
5695 * linux-low.c: Update.
5696 * lynx-low.c: Update.
5697 * nto-low.c: Update.
5698 * remote-utils.c: Update.
5699 * spu-low.c: Update.
5700 * thread-db.c: Update.
5701 * win32-low.c: Update.
5702
c0867626
SDJ
57032018-06-29 Joel Brobecker <brobecker@adacore.com>
5704
5705 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5706 parameter in call to 'amd64_create_target_description'.
5707
2512d7ef
JK
57082018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5709
5710 * x86-tdesc.h: Remove executable permission flag.
5711
d0ac1c44
SM
57122018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5713
5714 * configure.ac: Remove AC_PREREQ, add missing quoting.
5715 * configure: Re-generate.
5716 * config.in: Re-generate.
5717 * aclocal.m4: Re-generate.
5718
c4eb05ff
SM
57192018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5720
5721 * tracepoint.h (current_traceframe): Remove declaration.
5722
02895270
AH
57232018-06-18 Alan Hayward <alan.hayward@arm.com>
5724
5725 * linux-aarch64-low.c (is_sve_tdesc): New function.
5726 (aarch64_sve_regs_copy_to_regcache): Likewise.
5727 (aarch64_sve_regs_copy_from_regcache): Likewise.
5728 (aarch64_regs_info): Add SVE checks.
5729 (initialize_low_arch): Initialize SVE.
5730
e9902bfc
AH
57312018-06-18 Alan Hayward <alan.hayward@arm.com>
5732
5733 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5734
fefa175e
AH
57352018-06-11 Alan Hayward <alan.hayward@arm.com>
5736
5737 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5738 (initialize_low_tracepoint): Likewise
5739 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5740 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5741 param.
5742 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5743 checks.
5744 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5745
b91ad3ff
AH
57462018-06-11 Alan Hayward <alan.hayward@arm.com>
5747
5748 * server.h (PBUFSIZ): Increase size
5749
f868386e
AH
57502018-06-11 Alan Hayward <alan.hayward@arm.com>
5751
5752 * regcache.c (regcache::raw_compare): New function.
5753 * regcache.h (regcache::raw_compare): New declaration.
5754
9c861883
AH
57552018-06-11 Alan Hayward <alan.hayward@arm.com>
5756
5757 * regcache.c (new_register_cache): Use new.
5758 (free_register_cache): Use delete.
5759 (register_data): Use const.
5760 (supply_register): Move body inside regcache.
5761 (regcache::raw_supply): New override function.
5762 (collect_register): Move body inside regcache.
5763 (regcache::raw_collect): New override function.
5764 (regcache::get_register_status): New override function.
5765 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5766
40591844
TT
57672018-06-09 Tom Tromey <tom@tromey.com>
5768
5769 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5770 declare queue.
5771 (event_queue): Use std::queue.
5772 (gdb_event_xfree): Remove.
5773 (initialize_event_loop, process_event, wait_for_event): Update.
5774
6341380d
SC
57752018-06-08 Stan Cox <scox@redhat.com>
5776
5777 * win32-low.c (win32_create_inferior): last_ptid and last_status
5778 moved to client_state.
5779
03349c93
PA
57802018-06-08 Pedro Alves <palves@redhat.com>
5781
5782 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5783 common/common-exceptions.o, common/common-utils.o,
5784 common/errors.o, common/print-utils.o and utils.o.
5785 * gdbreplay.c: Include "common-defs.h" instead of the two
5786 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5787 string.h or alloca.h.
5788 (perror_with_name): Delete.
5789 (remote_open): Use xstrdup instead of strdup.
5790 (main): Rename to ...
5791 (captured_main): ... this.
5792 (main): New.
5793
8dcc53b3
TT
57942018-06-08 Tom Tromey <tom@tromey.com>
5795
5796 * linux-low.c (linux_low_read_btrace): Update.
5797
c12a5089
SC
57982018-06-04 Stan Cox <scox@redhat.com>
5799
5800 * server.h (struct client_state): New.
5801 * server.c (cont_thread, general_thread, multi_process)
5802 (report_fork_events, report_vfork_events, report_exec_events)
5803 (report_thread_events, swbreak_feature, hwbreak_feature)
5804 (vCont_supported, disable_randomization, pass_signals)
5805 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5806 Moved to client_state.
5807 * remote-utils.c (remote_debug, noack_mode)
5808 (transport_is_reliable): Moved to client_state.
5809 * tracepoint.c (current_traceframe): Moved to client_state.
5810
5811 Update all callers.
5812 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5813 linux-low.c, remote-utils.h, target.c: Use client_state.
5814
122394f1
AH
58152018-05-31 Alan Hayward <alan.hayward@arm.com>
5816
5817 * configure.srv: Add new c/h file.
5818
95228a0d
AH
58192018-05-31 Alan Hayward <alan.hayward@arm.com>
5820
5821 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5822 null VQ.
5823
d8dab6c3
MR
58242018-05-25 Maciej W. Rozycki <macro@mips.com>
5825
5826 * gdb.arch/mips-fpregset-core.exp: New test.
5827 * gdb.arch/mips-fpregset-core.c: New test source.
5828
81e25b7c
EK
58292018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5830
5831 PR server/23198
5832 * hostio.c (require_int): Do not report overflow for integers
5833 between 0xfffffff and 0x7fffffff.
5834
7e947ad3
MR
58352018-05-22 Maciej W. Rozycki <macro@mips.com>
5836
5837 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5838 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5839 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5840 functions.
5841 (the_low_target): Wire them.
5842
1d75a658
PFC
58432018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5844
5845 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5846 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5847 mode. Call collect_register_by_name with vscr using
5848 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5849 (ppc_store_vrregset): Add and set vscr_offset variable as in
5850 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5851 vscr_offset.
5852
d078308a
PFC
58532018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5854
5855 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5856 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5857 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5858
7273b5fc
PFC
58592018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5860
5861 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5862 (ppc_store_vsxregset): Likewise.
5863 (ppc_fill_vrregset): Likewise.
5864 (ppc_store_vrregset): Likewise.
5865 (ppc_fill_evrregset): Likewise.
5866 (ppc_store_evrregset): Likewise.
5867 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5868 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5869 needed.
5870
2e077f5e
PFC
58712018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5872
5873 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5874 wordsize of the inferior. Call ppc_linux_target_wordsize.
5875
bd64614e
PFC
58762018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5877
5878 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5879 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5880 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5881 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5882 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5883 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5884 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5885 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5886 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5887 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5888 (tdesc_powerpc_e500l): Remove.
5889 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5890 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5891 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5892 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5893 linux-ppc-tdesc.h.
5894 (ppc_arch_setup): Remove target description matching code. Fill a
5895 ppc_linux_features struct and call ppc_linux_match_description
5896 with it.
5897
75d74cca
MR
58982018-05-22 Maciej W. Rozycki <macro@mips.com>
5899
5900 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5901 width of the requested register exceeds the width of the
5902 `ptrace' data type.
5903 (mips_cannot_store_register): Likewise.
5904
e4439e43
MR
59052018-05-21 Maciej W. Rozycki <macro@mips.com>
5906
5907 * linux-mips-low.c (mips_fetch_register): New function. Update
5908 preceding comment.
5909 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5910 (the_low_target): Wire `mips_fetch_register'.
5911
55271bf9
JB
59122018-05-10 Joel Brobecker <brobecker@adacore.com>
5913
5914 * lynx-i386-low.c (LYNXOS_178): New macro.
5915 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5916 the layout on LynxOS-178.
5917 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5918 handle floating point registers that are not supported by
5919 LynxOS-178.
5920
1a34f210
TT
59212018-05-10 Tom Tromey <tom@tromey.com>
5922
5923 * configure: Rebuild.
5924
190852c8
JB
59252018-05-10 Joel Brobecker <brobecker@adacore.com>
5926
5927 PR server/23158:
5928 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5929 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5930 Use it to set the expedite_regs field in the given tdesc.
5931 * x86-tdesc.h: New file.
5932 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5933 Adjust following the addition of the new expedite_regs parameter
5934 to init_target_desc.
5935 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5936 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5937 (i386_linux_read_description, amd64_linux_read_description):
5938 Adjust following the addition of the new expedite_regs parameter
5939 to init_target_desc.
5940 * lynx-i386-low.c: #include "x86-tdesc.h".
5941 (lynx_i386_arch_setup): Adjust following the addition of the new
5942 expedite_regs parameter to init_target_desc.
5943 * nto-x86-low.c: #include "x86-tdesc.h".
5944 (nto_x86_arch_setup): Adjust following the addition of the new
5945 expedite_regs parameter to init_target_desc.
5946 * win32-i386-low.c: #include "x86-tdesc.h".
5947 (i386_arch_setup): Adjust following the addition of the new
5948 expedite_regs parameter to init_target_desc.
5949
7dbac825
JB
59502018-05-10 Joel Brobecker <brobecker@adacore.com>
5951
5952 PR server/23158:
5953 * win32-low.c (win32_create_inferior): Add call to my_wait
5954 setting last_status global.
5955
906994d9
JB
59562018-05-10 Joel Brobecker <brobecker@adacore.com>
5957
5958 PR server/23158:
5959 * win32-low.c (create_process): Only call gdb_tilde_expand if
5960 inferior_cwd is not NULL.
5961
8ee22052
AB
59622018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5963
5964 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5965 registers to the cache if their values have changed.
5966 (i387_xsave_to_cache): Provide default values for x87 control
5967 registers when these features are available, but disabled.
5968 * regcache.c (supply_register_by_name_zeroed): New function.
5969 * regcache.h (supply_register_by_name_zeroed): Declare new
5970 function.
5971
aff689d3
TT
59722018-05-07 Tom Tromey <tom@tromey.com>
5973
5974 * configure: Rebuild.
5975
85e26832
TT
59762018-05-04 Tom Tromey <tom@tromey.com>
5977
5978 * configure: Rebuild.
5979
a3b60e45
JK
59802018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5981 Pedro Alves <palves@redhat.com>
5982
5983 * linux-aarch64-low.c (aarch64_stopped_data_address):
5984 Likewise.
5985
632e107b
TT
59862018-04-27 Tom Tromey <tom@tromey.com>
5987
5988 * configure: Rebuild.
5989
458412c3
TT
59902018-04-23 Tom Tromey <tom@tromey.com>
5991
5992 * configure: Rebuild.
5993
f31c089e
SM
59942018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5995
5996 * Makefile.in (depcomp): Add "..".
5997 (all_deps_files): New and use it.
5998
b319b098
AH
59992018-04-18 Alan Hayward <alan.hayward@arm.com>
6000
6001 * configure.srv (aarch64*-*-linux*): Don't include xml.
6002 (i[34567]86-*-cygwin*): Likewise.
6003 (i[34567]86-*-linux*): Likewise.
6004 (i[34567]86-*-lynxos*): Likewise.
6005 (i[34567]86-*-mingw32ce*): Likewise.
6006 (i[34567]86-*-mingw*): Likewise.
6007 (i[34567]86-*-nto*): Likewise.
6008 (tic6x-*-uclinux): Likewise.
6009 (x86_64-*-linux*): Likewise.
6010 (x86_64-*-mingw*): Likewise.
6011 (x86_64-*-cygwin*): Likewise.
6012
3b74854b
AH
60132018-04-18 Alan Hayward <alan.hayward@arm.com>
6014
6015 * tdesc.c: Remove xml parameter.
6016
e98577a9
AH
60172018-04-18 Alan Hayward <alan.hayward@arm.com>
6018
6019 * server.c (get_features_xml): Remove cast.
6020 * tdesc.c (void target_desc::accept): Fill in function.
6021 (tdesc_get_features_xml): Remove old xml creation.
6022 (print_xml_feature::visit_pre): Add xml vistor.
6023 * tdesc.h (struct target_desc): Make xmltarget mutable.
6024 (tdesc_get_features_xml): Remove declaration.
6025
d278f585
AH
60262018-04-18 Alan Hayward <alan.hayward@arm.com>
6027
6028 * tdesc.c (tdesc_architecture_name): Add new function.
6029 (tdesc_osabi_name): Likewise.
6030 (tdesc_get_features_xml): Use new functions.
6031
eee8a18d
AH
60322018-04-18 Alan Hayward <alan.hayward@arm.com>
6033
6034 * tdesc.c (tdesc_create_flags): Remove.
6035 (tdesc_add_flag): Likewise.
6036 (tdesc_named_type): Likewise.
6037 (tdesc_create_union): Likewise.
6038 (tdesc_create_struct): Likewise.
6039 (tdesc_create_vector): Likewise.
6040 (tdesc_add_bitfield): Likewise.
6041 (tdesc_add_field): Likewise.
6042 (tdesc_set_struct_size): Likewise.
6043
82ec9bc7
AH
60442018-04-18 Alan Hayward <alan.hayward@arm.com>
6045
6046 * tdesc.c (~target_desc): Remove implictly deleted items.
6047 (init_target_desc): Iterate all features.
6048 (tdesc_get_features_xml): Use vector.
6049 (tdesc_create_feature): Create feature.
6050 * tdesc.h (tdesc_feature) Remove
6051 (target_desc): Add features.
6052
ea3e7d71
AH
60532018-04-18 Alan Hayward <alan.hayward@arm.com>
6054
6055 * Makefile.in: Add common/tdesc.c
6056 * tdesc.c (init_target_desc): init all reg_defs from register
6057 vector.
6058 (tdesc_create_reg): Create tdesc_reg.
6059 * tdesc.h (tdesc_feature): Add register vector.
6060
17d08cd4
SM
60612018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6062
6063 * tdesc.h (struct target_desc) <features>: Change type to
6064 std::vector<std::string>.
6065 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6066 changes.
6067 (tdesc_get_features_xml): Likewise.
6068 (tdesc_create_feature): Likewise.
6069
5cd3e386
AH
60702018-03-26 Alan Hayward <alan.hayward@arm.com>
6071
6072 * regcache.c (find_register_by_number): Return a ref.
6073 (find_regno): Use references.
6074 (register_size): Likewise.
6075 (register_data): Likewise.
6076 * tdesc.c (target_desc::~target_desc): Remove free calls.
6077 (target_desc::operator==): Use std::vector compare.
6078 (init_target_desc): Use reference.
6079 (tdesc_create_reg): Use reg constructors.
6080 * tdesc.h (struct target_desc): Replace pointer with object.
6081
dff7492c
AH
60822018-03-23 Alan Hayward <alan.hayward@arm.com>
6083
6084 * regcache.c (find_register_by_number): Make static.
6085 (find_regno): Use find_register_by_number
6086 * regcache.h (struct reg): Remove declaration.
6087
d80e5242
AH
60882018-03-23 Alan Hayward <alan.hayward@arm.com>
6089
6090 * tdesc.c (target_desc::~target_desc): Move to here.
6091 (target_desc::operator==): Likewise.
6092 * tdesc.h (target_desc::~target_desc): Move from here.
6093 (target_desc::operator==): Likewise.
6094
f69c5afb
AA
60952018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6096
6097 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6098
ce29f843
AA
60992018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6100
6101 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6102 S390_TDESC_GS.
6103 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6104 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6105 and init_registers_s390_gs_linux64.
6106
c49bd90b
AA
61072018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6108
6109 * linux-s390-low.c (s390_fill_gs): Remove function.
6110 (s390_fill_gsbc): Remove function.
6111 (s390_regsets): Set fill functions for the guarded storage regsets
6112 to NULL.
6113
7edb9bd3
AA
61142018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6115
6116 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6117 the word size. Add comment.
6118 (s390_get_wordsize): New function.
6119 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6120 pswm with it. Instead, use s390_get_wordsize to determine the
6121 word size first and derive the correct tdesc from that directly.
6122
39be3c7e
SM
61232018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6124
6125 * Makefile.in: Include silent-rules.mk.
6126 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6127 (COMPILE): Add ECHO_CXX.
6128 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6129 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6130 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6131 (version-generated.c): Add ECHO_GEN.
6132 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6133 (IPAGENT_COMPILE): Add ECHO_CXX.
6134 (%-generated.c): Add ECHO_REGDAT.
6135
3ae9ce5d
TT
61362018-03-14 Tom Tromey <tom@tromey.com>
6137
6138 PR cli/14977:
6139 * ax.c (ax_printf): Special case for NULL.
6140
e6a58aa8
SM
61412018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6142
6143 * linux-low.c (linux_qxfer_libraries_svr4): Use
6144 xml_escape_text_append.
6145
f6e8a41e
SM
61462018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6147
6148 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6149
b9671caf
SM
61502018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6151
6152 * server.c (handle_general_set): Remove unnecessary xstrdup.
6153
e80aaf61
SM
61542018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6155
6156 * server.c (parse_debug_format_options): Adjust to
6157 delim_string_to_char_ptr_vec changes.
6158 * thread-db.c (thread_db_load_search): Adjust to
6159 dirnames_to_char_ptr_vec changes.
6160
b1223e78
MM
61612018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6162
6163 * target.h (target_enable_btrace, target_disable_btrace)
6164 (target_read_btrace, target_read_btrace_conf): Turn macro into
6165 inline function. Throw error if target method is not defined.
6166 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6167 check for btrace target method. Be prepared to handle exceptions
6168 from btrace target methods.
6169
81561546
SDJ
61702018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6171
6172 * server.c (captured_main): Change order of error message printed
6173 when the current working directory cannot be found.
6174
25e3c82c
SDJ
61752018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6176
6177 * server.c: Include "filenames.h" and "pathstuff.h".
6178 (program_name): Delete variable.
6179 (program_path): New anonymous class.
6180 (get_exec_wrapper): Use "program_path" instead of
6181 "program_name".
6182 (handle_v_run): Likewise.
6183 (captured_main): Likewise.
6184 (process_serial_event): Likewise.
6185
b4987c95
SDJ
61862018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6187
6188 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6189 (OBJS): Add "pathstuff.o".
6190 * server.c (current_directory): New global variable.
6191 (captured_main): Initialize "current_directory".
6192
f46cd62a
AH
61932018-02-26 Alan Hayward <alan.hayward@arm.com>
6194
6195 * tdesc.c: Use common/tdesc.h.
6196 * tdesc.h: Likewise.
6197
a543c5ca
AH
61982018-02-20 Alan Hayward <alan.hayward@arm.com>
6199 Simon Marchi <simon.marchi@ericsson.com>
6200
6201 * Makefile.in: Switch order of make rules.
6202
b5884fa7
AH
62032018-02-19 Alan Hayward <alan.hayward@arm.com>
6204
6205 * Makefile.in: Add common directory in build.
6206 * configure.ac: Add common reference.
6207 * configure: Regenerate.
6208
de6242d3
MM
62092018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6210
6211 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6212 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6213 * spu-low.c (spu_target_ops): Likewise.
6214 * win32-low.c (win32_target_ops): Likewise.
6215 * server.c (supported_btrace_packets): Report packets unconditionally.
6216 * target.h (target_ops) <supports_btrace>: Remove.
6217 (target_supports_btrace): Remove.
6218
9ee23a85
MM
62192018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6220
6221 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6222 (handle_btrace_disable): Change return type to void. Use exceptions
6223 to report errors.
6224 (handle_btrace_general_set): Catch exception and copy message to
6225 return message.
6226
8ce47547
TT
62272018-02-08 Tom Tromey <tom@tromey.com>
6228
6229 * linux-low.c (install_software_single_step_breakpoints): Use
6230 make_scoped_restore.
6231 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6232 (do_restore_current_thread_cleanup): Remove.
6233 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6234 declare.
6235
45dd3607
TT
62362018-02-08 Tom Tromey <tom@tromey.com>
6237
6238 * mem-break.c (set_raw_breakpoint_at): Use
6239 gdb::unique_xmalloc_ptr.
6240
e671cd59
PA
62412018-01-30 Pedro Alves <palves@redhat.com>
6242
6243 PR gdb/13211
6244 * target.c (target_terminal::terminal_state): Rename to ...
6245 (target_terminal::m_terminal_state): ... this.
6246
a0aad537
JC
62472018-01-19 James Clarke <jrtc27@jrtc27.com>
6248
6249 * linux-low.c (handle_extended_wait): Surround call to
6250 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6251
4d9b86e1
SM
62522018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6253
6254 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6255 linux_ptrace_attach_fail_reason_string now returning an
6256 std::string.
6257 (linux_attach): Likewise.
6258 * thread-db.c (attach_thread): Likewise.
6259
f517c180
EA
62602018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6261
6262 PR gdb/21559
6263 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6264 checking for fs_base/gs_base fields in struct user_regs_struct.
6265 * configure: Regenerate.
6266
9a70f35c
YQ
62672018-01-16 Yao Qi <yao.qi@linaro.org>
6268
6269 PR gdb/18749
6270 * linux-low.c (fetch_register): Call supply_register instead of
6271 error.
6272
605fd3c6
YQ
62732018-01-08 Yao Qi <yao.qi@linaro.org>
6274 Simon Marchi <simon.marchi@ericsson.com>
6275
6276 * Makefile.in (OBS): Remove selftest.o.
6277 * configure.ac: Set srv_selftest_objs if $development is true.
6278 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6279 * configure: Re-generated.
6280 * server.c (captured_main): Wrap variable selftest_filter with
6281 GDB_SELF_TEST.
6282
2cc05030
SM
62832018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6284
6285 * server.c (parse_debug_format_options): Return std::string.
6286 (handle_monitor_command, captured_main): Adjust.
6287
e379cee6
PA
62882018-01-05 Pedro Alves <palves@redhat.com>
6289
6290 PR gdb/18653
6291 * server.c (captured_main): Pass quiet=false to
6292 save_original_signals_state.
6293
82e1e79a
JB
62942018-01-01 Joel Brobecker <brobecker@adacore.com>
6295
6296 * gdbreplay.c (gdbreplay_version): Update copyright year in
6297 version message.
6298 * server.c (gdbserver_version): Likewise.
6299
8e481c3b
TT
63002017-12-08 Tom Tromey <tom@tromey.com>
6301
6302 * ax.c (ax_printf): Update.
6303
a8806230
YQ
63042017-12-07 Yao Qi <yao.qi@linaro.org>
6305
6306 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6307 aarch64_linux_read_description.
6308 * linux-amd64-ipa.c (idx2mask): New array.
6309 (get_ipa_tdesc): Move idx2mask out.
6310 (initialize_low_tracepoint): Initialize target descriptions.
6311 * linux-i386-ipa.c (idx2mask): New array.
6312 (get_ipa_tdesc): Move idx2mask out.
6313 (initialize_low_tracepoint): Initialize target descriptions.
6314
d4a0e8b5
SM
63152017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6316
6317 * tdesc.c (struct tdesc_type): Change return type.
6318 (tdesc_add_flag): Change parameter type.
6319 (tdesc_add_bitfield): Likewise.
6320 (tdesc_add_field): Likewise.
6321 (tdesc_set_struct_size): Likewise.
6322
798a7429
SM
63232017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6324
6325 * regcache.c (registers_to_string): Remove unused variable.
6326
c0e15c9b
SM
63272017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6328
6329 * inferiors.c (for_each_inferior_with_data): Remove.
6330 * inferiors.h (for_each_inferior_with_data): Remove.
6331 * server.c (handle_qxfer_threads_worker): Change parameter type.
6332 (handle_qxfer_threads_proper): Use for_each_thread.
6333
f0045347
SM
63342017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6335
6336 * inferiors.c (for_each_inferior): Remove.
6337 (clear_inferiors): Use for_each_thread.
6338 * inferiors.h (for_each_inferior): Remove.
6339 * linux-low.c (linux_wait_for_event_filtered): Use
6340 for_each_thread.
6341 (linux_stabilize_threads): Likewise.
6342 * regcache.c (regcache_release): Likewise.
6343 * server.c (gdb_wants_all_threads_stopped): Likewise.
6344 (clear_pending_status_callback): Remove.
6345 (handle_status): Use for_each_thread.
6346 (captured_main): Likewise.
6347 * win32-low.c (child_init_thread_list): Likewise.
6348 (win32_clear_inferiors): Likewise.
6349 (fake_breakpoint_event): Likewise.
6350
9521758b
SM
63512017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6352
6353 * inferiors.h (find_inferior): Remove.
6354 * inferiors.c (find_inferior): Remove.
6355
8f86d7aa
SM
63562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6357
6358 * linux-low.c (resume_status_pending_p): Update comment.
6359 (need_step_over_p): Update comment.
6360
e2b44075
SM
63612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6362
6363 * linux-low.c (proceed_one_lwp): Return void, change parameter
6364 type.
6365 (unsuspend_and_proceed_one_lwp): Likewise.
6366 (proceed_all_lwps): Use for_each_thread.
6367 (unstop_all_lwps): Likewise.
6368
c80825ff
SM
63692017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6370
6371 * linux-low.c (linux_resume_one_thread): Return void, take
6372 parameter directly.
6373 (linux_resume): Use for_each_thread.
6374
df3e4dbe
SM
63752017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6376
6377 * linux-low.c (send_sigstop_callback): Return void, change
6378 parameter type. Rename to...
6379 (send_sigstop): ... this.
6380 (suspend_and_send_sigstop_callback): Return void, change parameter
6381 type. Rename to...
6382 (suspend_and_send_sigstop): ... this.
6383 (stop_all_lwps): Use for_each_thread.
6384
5a6b0a41
SM
63852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6386
6387 * linux-low.c (lwp_running): Return bool, remove unused
6388 argument.
6389 (linux_stabilize_threads): Use find_thread.
6390
39a64da5
SM
63912017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6392
6393 * linux-low.c (select_singlestep_lwp_callback): Remove.
6394 (count_events_callback): Remove.
6395 (select_event_lwp_callback): Remove.
6396 (select_event_lwp): Use find_thread/for_each_thread.
6397
a1385b7b
SM
63982017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6399
6400 * linux-low.c (not_stopped_callback): Return bool, take filter
6401 argument directly.
6402 (linux_wait_for_event_filtered): Use find_thread.
6403 (linux_wait_1): Likewise.
6404
454296a2
SM
64052017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6406
6407 * linux-low.c (same_lwp): Remove.
6408 (find_lwp_pid): Use find_thread.
6409
6b2a85da
SM
64102017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6411
6412 * linux-low.c (delete_lwp_callback): Remove.
6413 (linux_mourn): Use for_each_thread.
6414
798a38e8
SM
64152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6416
6417 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6418 args parameter, don't check for pid.
6419 (linux_detach): Use for_each_thread.
6420
e4eb0dec
SM
64212017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6422
6423 * linux-low.c (struct counter): Remove.
6424 (second_thread_of_pid_p): Remove.
6425 (last_thread_of_process_p): Use find_thread.
6426
83e1b6c1
SM
64272017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6428
6429 * inferiors.c (find_inferior_in_random): Remove.
6430 * inferiors.h (find_inferior_in_random): Remove.
6431 * linux-low.c (status_pending_p_callback): Return bool, accept
6432 parameter ptid directly.
6433 (linux_wait_for_event_filtered): Use find_thread_in_random.
6434 (linux_wait_1): Likewise.
6435
8dc7b443
SM
64362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6437
6438 * inferiors.c (find_inferior_id): Remove.
6439 (find_thread_ptid): Move implemention from find_inferior_id to
6440 here.
6441 * inferiors.h (find_inferior_id): Remove.
6442 * server.c (handle_status): Use find_thread_ptid.
6443 (process_serial_event): Likewise.
6444 * thread-db.c (find_one_thread): Likewise.
6445 (thread_db_thread_handle): Likewise.
6446 * win32-low.c (thread_rec): Likewise.
6447 (child_delete_thread): Likewise.
6448 (win32_thread_alive): Likewise.
6449 (get_child_debug_event): Likewise.
6450
da25033c
SM
64512017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6452
6453 * linux-mips-low.c (update_watch_registers_callback): Return
6454 void, remove pid_p parameter, don't check for pid.
6455 (mips_insert_point, mips_remove_point): Use for_each_thread.
6456
c91bb56b
SM
64572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6458
6459 * lynx.low (lynx_delete_thread_callback): Remove.
6460 (lynx_mourn): Use for_each_thread.
6461
634a3254
SM
64622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6463
6464 * regcache.c (regcache_invalidate_one): Remove.
6465 (regcache_invalidate_pid): use for_each_thread.
6466
41272101
TT
64672017-11-26 Tom Tromey <tom@tromey.com>
6468
6469 * linux-low.c (linux_create_inferior): Update.
6470
f5291a6f
UW
64712017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6472
6473 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6474
6654d750
AH
64752017-11-24 Alan Hayward <alan.hayward@arm.com>
6476
6477 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6478 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6479 * linux-aarch64-tdesc-selftest.c: New file.
6480 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6481
64822017-11-24 Alan Hayward <alan.hayward@arm.com>
6483
6484 * configure.srv: Add new file.
6485 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6486 * linux-aarch64-tdesc-selftest.c: New file.
6487 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6488
49bdb7ee
AH
64892017-11-24 Alan Hayward <alan.hayward@arm.com>
6490
6491 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6492 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6493 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6494
d6d7ce56
AH
64952017-11-24 Alan Hayward <alan.hayward@arm.com>
6496
6497 * configure.srv: Add new files.
6498 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6499 aarch64_linux_read_description.
6500 * linux-aarch64-low.c (aarch64_linux_read_description):
6501 Merge with aarch64_arch_setup.
6502 (aarch64_arch_setup): Call aarch64_linux_read_description.
6503 * linux-aarch64-tdesc.c: New file.
6504 * linux-aarch64-tdesc.h: New file.
6505
506fe5f4
YQ
65062017-11-24 Yao Qi <yao.qi@linaro.org>
6507
6508 * configure.srv: Set $srv_regobj for tic6x-linux.
6509 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6510 (tic6x_read_description): Move some code to tic6x_arch_setup.
6511 (tic6x_tdesc_test): New function.
6512 (initialize_low_arch): Call selftests::register_test.
6513
29f9a567
YQ
65142017-11-22 Yao Qi <yao.qi@linaro.org>
6515
6516 * remote-utils.c (prepare_resume_reply): Use memcpy.
6517
578290ec
SM
65182017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6519
6520 * linux-low.c (kill_one_lwp_callback): Return void, take
6521 argument directly, don't filter on pid.
6522 (linux_kill): Use for_each_thread.
6523
eca55aec
SM
65242017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6525
6526 * linux-low.c (need_step_over_p): Return bool, remove dummy
6527 argument.
6528 (linux_resume, proceed_all_lwps): Use find_thread.
6529
25c28b4d
SM
65302017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6531
6532 * linux-low.c (resume_status_pending_p): Return bool, remove
6533 flag_p argument.
6534 (linux_resume): Use find_thread.
6535
5fdda392
SM
65362017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6537
6538 * linux-low.c (struct thread_resume_array): Remove.
6539 (linux_set_resume_request): Return void, take arguments
6540 directly.
6541 (linux_resume): Use for_each_thread.
6542
fcb056a5
SM
65432017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6544
6545 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6546 return bool, remove data argument.
6547 (linux_stabilize_threads): Use find_thread.
6548
139720c5
SM
65492017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6550
6551 * linux-low.c (unsuspend_one_lwp): Remove.
6552 (unsuspend_all_lwps): Use for_each_thread, inline code from
6553 unsuspend_one_lwp.
6554
6d1e5673
SM
65552017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6556
6557 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6558 * linux-low.c (struct iterate_over_lwps_args): Remove.
6559 (iterate_over_lwps_filter): Remove.
6560 (iterate_over_lwps): Use find_thread.
6561
bbf550d5
SM
65622017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6563
6564 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6565 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6566 code from reset_lwp_ptrace_options_callback.
6567
00192f77
SM
65682017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6569
6570 * linux-arm-low.c (struct update_registers_data): Remove.
6571 (update_registers_callback): Return void, take arguments
6572 directly, don't check thread's pid.
6573 (arm_insert_point, arm_remove_point): Use for_each_thread.
6574
2bee2b6c
SM
65752017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6576
6577 * win32-low.c (continue_one_thread): Return void, take argument
6578 directly.
6579 (child_continue): Use for_each_thread.
6580
0b360f19
SM
65812017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6582
6583 * win32-i386-low.c (update_debug_registers_callback): Rename
6584 to ...
6585 (update_debug_registers): ... this, return void, remove pid_p arg.
6586 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6587
f27866ba
SM
65882017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6589
6590 * inferiors.h (struct process_info): Add constructor, initialize
6591 fields..
6592 <syscalls_to_catch>: Change type to std::vector<int>.
6593 * inferiors.c (add_process): Allocate process_info with new.
6594 (remove_process): Free process_info with delete.
6595 * linux-low.c (handle_extended_wait): Adjust.
6596 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6597 * server.c (handle_general_set): Adjust.
6598
e849ea89
PA
65992017-11-16 Pedro Alves <palves@redhat.com>
6600
6601 * remote-utils.c (remote_close): Block SIGIO signals instead of
6602 uninstalling the SIGIO handler.
6603
1d0aa65c
AH
66042017-11-16 Alan Hayward <alan.hayward@arm.com>
6605
6606 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6607
3491a34c
YQ
66082017-11-16 Yao Qi <yao.qi@linaro.org>
6609
6610 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6611 (tic6x_store_gregset): Likewise.
6612 (tic6x_usrregs_info): Move it up.
6613
a602f924
AH
66142017-11-15 Alan Hayward <alan.hayward@arm.com>
6615
6616 * Makefile.in: Update arch rules.
6617 * configure.srv: Explicitly mark arch/ files.
6618
5616b6c3
AS
66192017-11-13 Andreas Schwab <schwab@suse.de>
6620
6621 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6622 function.
6623 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6624
d1928160
PA
66252017-11-06 Pedro Alves <palves@redhat.com>
6626
6627 * config.in, configure: Regenerate.
6628
bac608e7
SM
66292017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6630
6631 * target.c (struct thread_search): Remove.
6632 (thread_search_callback): Remove.
6633 (prepare_to_access_memory): Use for_each_thread instead of
6634 find_inferior. Inline code from thread_search_callback.
6635
eaddb425
SM
66362017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6637
6638 * server.c (struct visit_actioned_threads_data): Remove.
6639 (visit_actioned_threads): Change prototype to take arguments
6640 directly.
6641 (resume): Use find_thread instead of find_inferior.
6642
99078d34
SM
66432017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6644
6645 * server.c (queue_stop_reply_callback): Change prototype, return
6646 void.
6647 (find_status_pending_thread_callback): Remove.
6648 (handle_status): Replace find_inferior with find_thread and
6649 for_each_thread.
6650
cc628f3d
AH
66512017-10-25 Alan Hayward <alan.hayward@arm.com>
6652
6653 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6654 with REGNO.
6655 (aarch64_store_gregset): Likewise.
6656 (aarch64_fill_fpregset): Likewise.
6657 (aarch64_store_fpregset): Likewise.
6658
4d3bb80e
SM
66592017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6660
6661 * gdbthread.h (find_thread, for_each_thread): New functions.
6662 * inferiors.c (thread_of_pid): Remove.
6663 (find_any_thread_of_pid): Use find_thread.
6664 * linux-low.c (num_lwps): Use for_each_thread.
6665
7a7cdfa0
YQ
66662017-10-17 Yao Qi <yao.qi@linaro.org>
6667
6668 * Makefile.in: Remove one rule.
6669 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6670
e675d170
YQ
66712017-10-17 Yao Qi <yao.qi@linaro.org>
6672
6673 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6674 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6675
7eb4e0f9
YQ
66762017-10-17 Yao Qi <yao.qi@linaro.org>
6677
6678 * configure.srv: Rename arm.o with arch/arm.o.
6679
60d6cfc9
YQ
66802017-10-17 Yao Qi <yao.qi@linaro.org>
6681
6682 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6683 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6684 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6685 (arch-i386.o, arch-amd64.o): Remove rules.
6686 (arch/%.o): New rule.
6687 Update POSTCOMPILE and COMPILE.pre.
6688 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6689 * configure: Re-generated.
6690 * configure.srv: Replace arch-i386.o with arch/i386.o.
6691 Replace arch-amd64.o with arch/amd64.o.
6692
5bfda255
YQ
66932017-10-16 Yao Qi <yao.qi@linaro.org>
6694
6695 * configure: Regenerated.
6696
9c80ecd6
SM
66972017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6698
6699 * inferiors.h: (struct inferior_list): Remove.
6700 (struct inferior_list_entry); Remove.
6701 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6702 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6703 get_first_inferior): Remove.
6704 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6705 find_inferior_id, find_inferior_in_random): Change signature.
6706 * inferiors.c (all_threads): Change type to
6707 std::list<thread_info *>.
6708 (get_thread): Remove macro.
6709 (find_inferior, find_inferior_id): Change signature, implement
6710 using find_thread.
6711 (find_inferior_in_random): Change signature, implement using
6712 find_thread_in_random.
6713 (for_each_inferior, for_each_inferior_with_data): Change
6714 signature, implement using for_each_thread.
6715 (add_inferior_to_list, remove_inferior): Remove.
6716 (add_thread, get_first_thread, thread_of_pid,
6717 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6718 (get_first_inferior, one_inferior_p, clear_inferior_list):
6719 Remove.
6720 (clear_inferiors, get_thread_process): Update.
6721 * gdbthread.h: Include <list>.
6722 (struct thread_info) <entry>: Remove field.
6723 <id>: New field.
6724 (all_threads): Change type to std::list<thread_info *>.
6725 (get_first_inferior): Add doc.
6726 (find_thread, for_each_thread, find_thread_in_random): New
6727 functions.
6728 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6729 * linux-arm-low.c (update_registers_callback): Update.
6730 * linux-low.c (second_thread_of_pid_p): Update.
6731 (kill_one_lwp_callback, linux_detach_lwp_callback,
6732 delete_lwp_callback, status_pending_p_callback, same_lwp,
6733 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6734 iterate_over_lwps, not_stopped_callback,
6735 resume_stopped_resumed_lwps, count_events_callback,
6736 select_singlestep_lwp_callback, select_event_lwp_callback,
6737 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6738 suspend_and_send_sigstop_callback, wait_for_sigstop,
6739 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6740 lwp_running, linux_set_resume_request, resume_status_pending_p,
6741 need_step_over_p, start_step_over, linux_resume_one_thread,
6742 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6743 reset_lwp_ptrace_options_callback): Update.
6744 * linux-mips-low.c (update_watch_registers_callback): Update.
6745 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6746 Update.
6747 (free_register_cache_thread_one): Remove.
6748 (regcache_release): Update.
6749 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6750 handle_qxfer_threads_worker): Update.
6751 (handle_query): Update, use list iterator.
6752 (visit_actioned_threads, handle_pending_status,
6753 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6754 clear_pending_status_callback, set_pending_status_callback,
6755 find_status_pending_thread_callback, handle_status,
6756 process_serial_event): Update.
6757 * target.c (thread_search_callback): Update.
6758 * thread-db.c (thread_db_get_tls_address): Update.
6759 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6760 Update.
6761 * win32-i386-low.c (update_debug_registers_callback): Update.
6762 * win32-low.c (delete_thread_info, child_delete_thread,
6763 continue_one_thread, suspend_one_thread,
6764 get_child_debug_event): Adjust.
6765
9179355e
SM
67662017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6767
6768 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6769 * inferiors.h: Include <list>.
6770 (struct process_info) <entry>: Remove field.
6771 <pid>: New field.
6772 (pid_of): Change macro to function.
6773 (ptid_of, lwpid_of): Remove macro.
6774 (all_processes): Change type to std::list<process_info *>.
6775 (ALL_PROCESSES): Remove macro.
6776 (for_each_process, find_process): New function.
6777 * inferiors.c (all_processes): Change type to
6778 std::list<process_info *>.
6779 (find_thread_process): Adjust.
6780 (add_process): Likewise.
6781 (remove_process): Likewise.
6782 (find_process_pid): Likewise.
6783 (get_first_process): Likewise.
6784 (started_inferior_callback): Remove.
6785 (have_started_inferiors_p): Adjust.
6786 (attached_inferior_callback): Remove.
6787 (have_attached_inferiors_p): Adjust.
6788 * linux-low.c (check_zombie_leaders): Likewise.
6789 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6790 (x86_linux_update_xmltarget): Adjust.
6791 * server.c (handle_query): Likewise.
6792 (gdb_reattached_process): Remove.
6793 (handle_status): Adjust.
6794 (kill_inferior_callback): Likewise.
6795 (detach_or_kill_inferior): Remove.
6796 (print_started_pid): Likewise.
6797 (print_attached_pid): Likewise.
6798 (detach_or_kill_for_exit): Update.
6799 (process_serial_event): Likewise.
6800 * linux-arm-low.c (arm_new_fork): Likewise.
6801
c9cb8905
SM
68022017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6803
6804 * dll.h: Include <list>.
6805 (struct dll_info): Add constructor.
6806 <entry>: Remove field.
6807 (all_dlls): Change type to std::list<dll_info>.
6808 * dll.c: Include <algorithm>.
6809 (get_dll): Remove macro.
6810 (all_dlls): Change type to std::list<dll_info *>.
6811 (free_one_dll): Remove.
6812 (match_dll): Likewise.
6813 (loaded_dll): Adjust.
6814 (unloaded_dll): Adjust to all_dlls type change, use
6815 std::find_if. Inline code from match_dll.
6816 (clear_dlls): Adjust to all_dlls type change.
6817 * server.c (emit_dll_description): Remove.
6818 (handle_qxfer_libraries): Adjust to all_dlls type change,
6819 integrate emit_dll_description's functionality.
6820
04ec7890
SM
68212017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6822
6823 * linux-low.h (struct linux_target_ops) <delete_process>: New
6824 field.
6825 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6826 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6827 (struct linux_target_ops): Add delete_process callback.
6828 * linux-arm-low.c (arm_delete_process): New.
6829 (struct linux_target_ops): Add delete_process callback.
6830 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6831 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6832 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6833 * linux-mips-low.c (mips_linux_delete_process): New.
6834 (struct linux_target_ops): Add delete_process callback.
6835 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6836 * linux-s390-low.c (struct linux_target_ops): Likewise.
6837 * linux-sh-low.c (struct linux_target_ops): Likewise.
6838 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6839 * linux-tile-low.c (struct linux_target_ops): Likewise.
6840 * linux-x86-low.c (x86_linux_delete_process): New.
6841 (struct linux_target_ops): Add delete_process callback.
6842 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6843
466eecee
SM
68442017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6845
6846 * linux-aarch64-low.c (the_low_target): Add thread delete
6847 callback.
6848 * linux-arm-low.c (arm_delete_thread): New function.
6849 (the_low_target): Add thread delete callback.
6850 * linux-bfin-low.c (the_low_target): Likewise.
6851 * linux-crisv32-low.c (the_low_target): Likewise.
6852 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6853 set.
6854 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6855 field.
6856 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6857 * linux-mips-low.c (mips_linux_delete_thread): New function.
6858 (the_low_target): Add thread delete callback.
6859 * linux-ppc-low.c (the_low_target): Likewise.
6860 * linux-s390-low.c (the_low_target): Likewise.
6861 * linux-sh-low.c (the_low_target): Likewise.
6862 * linux-tic6x-low.c (the_low_target): Likewise.
6863 * linux-tile-low.c (the_low_target): Likewise.
6864 * linux-x86-low.c (the_low_target): Likewise.
6865 * linux-xtensa-low.c (the_low_target): Likewise.
6866
b79f7801
YZ
68672017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6868
6869 * win32-low.c: Include "common-inferior.h".
6870
bc3b087d
SDJ
68712017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6872
6873 * inferiors.c (set_inferior_cwd): New function.
6874 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6875 (handle_query): Inform that QSetWorkingDir is supported.
6876 * win32-low.c (create_process): Pass the inferior's cwd to
6877 CreateProcess.
6878
d092c5a2
SDJ
68792017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6880
6881 * inferiors.c (current_inferior_cwd): New global variable.
6882 (get_inferior_cwd): New function.
6883 * inferiors.h (struct process_info) <cwd>: New field.
6884
7da0a886
SDJ
68852017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6886
6887 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6888 (OBS): Add gdb_tilde_expand.o.
6889
289a6840
SM
68902017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6891
6892 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6893 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6894
256642e8
PA
68952017-09-29 Pedro Alves <palves@redhat.com>
6896
6897 * ax.c (gdb_parse_agent_expr): Constify.
6898 * ax.h (gdb_parse_agent_expr): Constify.
6899 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6900 Constify.
6901 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6902 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6903 * remote-utils.h (read_ptid): Constify.
6904 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6905 (process_point_options, process_serial_event): Constify.
6906 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6907 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6908 (cmd_qtbuffer): Constify.
6909
5b9ca4d4
PA
69102017-09-29 Pedro Alves <palves@redhat.com>
6911
6912 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6913 fails.
6914
94c207e0
PA
69152017-09-29 Pedro Alves <palves@redhat.com>
6916
6917 * linux-low.c (handle_extended_wait): Pass parent thread instead
6918 of process to thread_db_notice_clone.
6919 * linux-low.h (thread_db_notice_clone): Replace parent process
6920 parameter with parent thread parameter.
6921 * thread-db.c (find_one_thread): Add comment.
6922 (thread_db_notice_clone): Replace parent process parameter with
6923 parent thread parameter. Temporarily switch to the parent thread.
6924
75352e28
SDJ
69252017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6926
6927 * gdbthread.h: Include "common-gdbthread.h".
6928 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6929 "if" when validating the ptid.
6930 * remote-utils.c: Include "gdbthread.h".
6931 (prepare_resume_reply): Use "switch_to_thread".
6932 * target.c (done_accessing_memory): Likewise.
6933
ad339634
AA
69342017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6935
6936 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6937 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6938 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6939 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6940 s390x-gs-linux64-ipa.o to ipa_obj.
6941 * linux-s390-low.c (HWCAP_S390_GS): New define.
6942 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6943 New functions.
6944 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6945 (s390_arch_setup): Check for guarded-storage support and choose
6946 appropriate tdesc.
6947 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6948 init_registers_s390x_gs_linux64.
6949 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6950 enum value.
6951 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6952 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6953
cc4d742f
SM
69542017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6955
6956 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6957
f6327dcb
KB
69582017-09-21 Kevin Buettner <kevinb@redhat.com>
6959
6960 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6961 (thread_db_thread_handle): Declare.
6962 * linux-low.c (linux_target_ops): Initialize thread_handle.
6963 * server.c (handle_qxfer_threads_worker): Add support for
6964 "handle" attribute.
6965 * target.h (struct target_ops): Add new function pointer,
6966 thread_handle.
6967 (target_thread_handle): Define.
6968 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6969 field in lwp.
6970 (thread_db_thread_handle): New function.
6971
86299109
KB
69722017-09-21 Kevin Buettner <kevinb@redhat.com>
6973
6974 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6975 * linux-low.h (thread_db_notice_clone): Declare.
6976 * thread-db.c (thread_db_notice_clone): New function.
6977
f557a88a
PA
69782017-09-21 Pedro Alves <palves@redhat.com>
6979
6980 * server.c (gdb_read_memory, handle_status, process_serial_event)
6981 (handle_serial_event, handle_target_event): Adjust to
6982 set_desired_thread prototype change.
6983 * target.c (set_desired_thread): Remove 'use_general' parameter
6984 and adjust.
6985 * target.h (set_desired_thread): Remove 'use_general' parameter.
6986
223ffa71
TT
69872017-09-20 Tom Tromey <tom@tromey.com>
6988
6989 * target.c (target_terminal::terminal_state): Define.
6990 (target_terminal::init): Rename from target_terminal_init.
6991 (target_terminal::inferior): Rename from
6992 target_terminal_inferior.
6993 (target_terminal::ours): Rename from target_terminal_ours.
6994 (target_terminal::ours_for_output, target_terminal::info): New.
6995
04fd3ba9
SM
69962017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6997
6998 * server.c (accumulate_file_name_length): Remove.
6999 (emit_dll_description): Adjust to std::string change.
7000 (handle_qxfer_libraries): Use std::string to hold document.
7001
5e187554
SM
70022017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7003
7004 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7005 return type of xml_escape_text.
7006 * server.c (emit_dll_description): Likewise.
7007
1526853e
SM
70082017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7009
7010 * server.c (captured_main): Accept argument for --selftest.
7011 Update run_tests call.
7012 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7013 when registering selftests.
7014
c4dfafab
SDJ
70152017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7016
7017 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7018 instead of "VEC" for "target_desc.reg_defs".
7019 (regcache_cpy): Likewise.
7020 (registers_to_string): Likewise.
7021 (registers_from_string): Likewise.
7022 (find_regno): Likewise.
7023 (supply_regblock): Likewise.
7024 (regcache_raw_read_unsigned): Likewise.
7025 * tdesc.c (init_target_desc): Likewise.
7026 (tdesc_create_reg): Likewise.
7027 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7028 (struct target_desc) <reg_defs>: Convert to "std::vector".
7029 (target_desc): Do not initialize "reg_defs".
7030 (~target_desc): Update code to use "std::vector" instead of "VEC"
7031 for "target_desc.reg_defs".
7032 (operator==): Likewise.
7033
124aceb4
SM
70342017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7035
7036 * inferiors.h (thread_to_gdb_id): Remove.
7037 * inferiors.c (thread_to_gdb_id): Remove.
7038 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7039 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7040 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7041 Likewise.
7042 * nto-low.c (nto_fetch_registers, nto_store_registers,
7043 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7044
96cde54f
SM
70452017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7046
7047 * inferiors.h (gdb_id_to_thread_id): Remove.
7048 * inferiors.c (gdb_id_to_thread_id): Remove.
7049 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7050 removal. Move pid declaration closer to where it's used.
7051
e8ca139e
SM
70522017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7053
7054 * server.c (handle_detach): New function.
7055 (process_serial_event): Move code out, call handle_detach.
7056
f8a4e119
SM
70572017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7058
7059 * server.c (require_running): Rename to ...
7060 (require_running_or_return): ... this ...
7061 (require_running_or_break): ... and this.
7062 (handle_query, process_serial_event): Adjust.
7063
0eb0a407
SM
70642017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7065
7066 * linux-low.c (linux_set_resume_request): Remove unused
7067 variables.
7068
785922a5
SM
70692017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7070
7071 * server.c (first_thread_of): Remove.
7072 (process_serial_event): Replace usage of first_thread_of with
7073 find_any_thread_of_pid.
7074 * tracepoint.c (same_process_p): Remove.
7075 (gdb_agent_about_to_close): Replace usage of same_process_p with
7076 find_any_thread_of_pid.
7077 * linux-x86-low.c (same_process_callback): Remove.
7078 (x86_arch_setup_process_callback): Replace usage of
7079 same_process_callback with find_any_thread_of_pid.
7080 * thread-db.c (any_thread_of): Remove.
7081 (switch_to_process): Replace usage of any_thread_of with
7082 find_any_thread_of_pid.
7083 * inferiors.c (thread_pid_matches_callback): Remove.
7084 (find_thread_process): Adjust to use find_any_thread_of_pid.
7085
a059f00c
SDJ
70862017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7087
7088 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7089 with "!VEC_empty".
a059f00c 7090
cc397f3a
SDJ
70912017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7092
7093 * linux-low.c (handle_extended_wait): Use
7094 "allocate_target_description" instead of "XNEW".
7095 * linux-x86-low.c (initialize_low_arch): Likewise.
7096
22916b07
YQ
70972017-09-05 Yao Qi <yao.qi@linaro.org>
7098
7099 * configure.srv (srv_i386_regobj): Remove.
7100 (srv_amd64_regobj): Remove.
7101 (srv_regobj): Set it to "" for x86 non-linux targets.
7102 * linux-x86-tdesc.c (i386_linux_read_description):
7103 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7104 (init_registers_i386): Remove the declaration.
7105 (tdesc_i386): Remove the declaration.
7106 (lynx_i386_arch_setup): Call i386_create_target_description.
7107 * nto-x86-low.c: Likewise.
7108 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7109 [!__x86_64__]: include arch/i386.h.
7110 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7111
38602d55
YQ
71122017-09-05 Yao Qi <yao.qi@linaro.org>
7113
7114 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7115 i386/amd64-XXX-linux from it.
7116
44b886ff
YQ
71172017-09-05 Yao Qi <yao.qi@linaro.org>
7118
7119 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7120 false.
7121 (ipa_amd64_linux_regobj): Remove.
7122 (ipa_x32_linux_regobj): Remove.
7123
b4570e4b
YQ
71242017-09-05 Yao Qi <yao.qi@linaro.org>
7125
7126 * Makefile.in (arch-amd64.o): New rule.
7127 * configure.srv: Append arch-amd64.o.
7128 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7129 (get_ipa_tdesc): Call amd64_linux_read_description.
7130 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7131 and init_registers_amd64_XXX.
7132 * linux-x86-low.c (x86_linux_read_description): Call
7133 amd64_linux_read_description.
7134 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7135 (initialize_low_arch): Don't call init_registers_x32_XXX and
7136 init_registers_amd64_XXX.
7137 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7138 and tdesc_amd64_XXX.
7139 [__x86_64__] (amd64_tdesc_test): New function.
7140 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7141 and init_registers_amd64_XXX.
7142 * linux-x86-tdesc.c: Include arch/amd64.h.
7143 (xcr0_to_tdesc_idx): New function.
7144 (i386_linux_read_description): New function.
7145 (amd64_get_ipa_tdesc_idx): New function.
7146 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7147 (amd64_get_ipa_tdesc): Declare.
7148
d1f28ea2
YQ
71492017-09-05 Yao Qi <yao.qi@linaro.org>
7150
7151 * configure.srv (srv_i386_linux_xmlfiles): Remove
7152 i386/i386-XXX-linux.xml from it.
7153
25a93583
YQ
71542017-09-05 Yao Qi <yao.qi@linaro.org>
7155
7156 * configure.srv: Set srv_i386_linux_regobj empty if $development
7157 is false.
7158 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7159 initialize_low_tdesc.
7160 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7161 with #if initialize_low_tdesc.
7162 * linux-x86-tdesc-selftest.c: New file.
7163 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7164
5f035c07
YQ
71652017-09-05 Yao Qi <yao.qi@linaro.org>
7166
7167 * Makefile.in (arch-i386.o): New rule.
7168 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7169 (x86_64-*-linux*): Likewise.
7170 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7171 include arch/i386.h.
7172 (i386_linux_read_description): Remove code and call
7173 i386_create_target_description.
7174 * tdesc.c (allocate_target_description): New function.
7175 * tdesc.h (set_tdesc_architecture): Remove declaration.
7176 (set_tdesc_osabi): Likewise.
7177
0abe8a89
YQ
71782017-09-05 Yao Qi <yao.qi@linaro.org>
7179
7180 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7181 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7182 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7183 .xmltarget.
7184 * server.c (get_features_xml): Call tdesc_get_features_xml.
7185 * tdesc.c (set_tdesc_architecture): New function.
7186 (set_tdesc_osabi): New function.
7187 (tdesc_get_features_xml): New function.
7188 (tdesc_create_feature): Add an argument.
7189 * tdesc.h (struct target_desc) <features>: New field.
7190 <arch, osabi>: New field.
7191 (~target_desc): xfree features, arch, and osabi.
7192 (target_desc::oerator==): Don't compare .xmltarget.
7193 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7194 (set_tdesc_osabi): Likewise.
7195 (tdesc_get_features_xml): Likewise.
7196
0a188386
YQ
71972017-09-05 Yao Qi <yao.qi@linaro.org>
7198
7199 * linux-x86-tdesc.c: Include selftest.h.
7200 (i386_tdesc_test): New function.
7201 (initialize_low_tdesc): Call selftests::register_test.
7202 * tdesc.h: Include regdef.h.
7203 (target_desc): Override operator == and !=.
7204
f49ff000
YQ
72052017-09-05 Yao Qi <yao.qi@linaro.org>
7206
7207 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7208 (ipa_obj): Likewise.
7209 * linux-i386-ipa.c: Include common/x86-xstate.h
7210 (get_ipa_tdesc): Call i386_linux_read_description.
7211 (initialize_low_tracepoint): Don't call init_registers_XXX
7212 functions, call initialize_low_tdesc instead.
7213 * linux-x86-low.c (x86_linux_read_description): Call
7214 i386_linux_read_description.
7215 (initialize_low_arch): Don't call init_registers_i386_XXX
7216 functions, call initialize_low_tdesc.
7217 * linux-x86-tdesc.c: New file.
7218 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7219 (i386_get_ipa_tdesc_idx): Declare.
7220 (i386_get_ipa_tdesc): Declare.
7221 (initialize_low_tdesc): Declare.
7222
2b68ef2f
YQ
72232017-09-05 Yao Qi <yao.qi@linaro.org>
7224
7225 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7226 instead of 0.
7227
f7000548
YQ
72282017-09-05 Yao Qi <yao.qi@linaro.org>
7229
7230 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7231 * regcache.c (get_thread_regcache): Use VEC_length.
7232 (init_register_cache): Likewise.
7233 (regcache_cpy): Likewise.
7234 (registers_to_string): Iterate reg_defs via VEC_iterate.
7235 (find_regno): Likewise.
7236 (find_register_by_number): Use VEC_index.
7237 (register_size): Call find_register_by_number.
7238 (register_data): Call find_register_by_number.
7239 (supply_regblock): Use VEC_length.
7240 (regcache_raw_read_unsigned): Likewise.
7241 * tdesc.c (init_target_desc): Iterate reg_defs via
7242 VEC_iterate.
7243 (default_description): Update initializer.
7244 (copy_target_description): Don't update field num_registers.
7245 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7246 <num_registers>: Remove.
7247
50a421ac
SM
72482017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7249
7250 * Makefile.in (.SECONDARY): Define target.
7251
23fdd69e
SM
72522017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7253
7254 * linux-low.c (linux_wait_1): Adjust.
7255 * server.c (queue_stop_reply_callback): Adjust.
7256
0a2dde4a
SDJ
72572017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7258
7259 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7260 QEnvironmentUnset and QEnvironmentReset packets.
7261 (handle_query): Inform remote that QEnvironmentHexEncoded,
7262 QEnvironmentUnset and QEnvironmentReset are supported.
7263
6afd337d
SM
72642017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7265
7266 * inferiors.h (inferior_target_data): Rename to ...
7267 (thread_target_data): ... this.
7268 (inferior_regcache_data): Rename to ...
7269 (thread_regcache_data): ... this.
7270 (set_inferior_regcache_data): Rename to ...
7271 (set_thread_regcache_data): ... this.
7272 * inferiors.c (inferior_target_data): Rename to ...
7273 (thread_target_data): ... this.
7274 (inferior_regcache_data): Rename to ...
7275 (thread_regcache_data): ... this.
7276 (set_inferior_regcache_data): Rename to ...
7277 (set_thread_regcache_data): ... this.
7278 (free_one_thread): Update.
7279 * linux-low.h (get_thread_lwp): Update.
7280 * regcache.c (get_thread_regcache): Update.
7281 (regcache_invalidate_thread): Update.
7282 (free_register_cache_thread): Update.
7283 * win32-i386-low.c (update_debug_registers_callback): Update.
7284 (win32_get_current_dr): Update.
7285 * win32-low.c (thread_rec): Update.
7286 (delete_thread_info): Update.
7287 (continue_one_thread): Update.
7288 (suspend_one_thread): Update.
7289
a160cc46
SM
72902017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7291
7292 * inferiors.c (set_inferior_target_data): Remove.
7293 * inferiors.h (set_inferior_target_data): Remove.
7294
6d580b63
YQ
72952017-08-18 Yao Qi <yao.qi@linaro.org>
7296
7297 * Makefile.in (OBS): Add selftest.o.
7298 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7299 * configure, config.in: Re-generated.
7300 * server.c: Include common/sefltest.h.
7301 (captured_main): Handle option --selftest.
7302
f5a29eb0
YQ
73032017-08-09 Yao Qi <yao.qi@linaro.org>
7304
7305 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7306 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7307 i386-avx-mpx.o and i386-mmx.o.
7308 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7309 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7310 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7311 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7312 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7313 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7314 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7315 i386/amd64-avx-mpx.xml.
7316
57757c2f
YQ
73172017-08-09 Yao Qi <yao.qi@linaro.org>
7318
7319 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7320 and x32-avx-avx512.o.
7321 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7322 i386/x32-avx-avx512.xml.
7323
229d26fc
SM
73242017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7325
7326 * tracepoint.h (enum class fast_tpoint_collect_result): New
7327 enumeration.
7328 (fast_tracepoint_collecting): Change return type to
7329 fast_tpoint_collect_result.
7330 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7331 * linux-low.h: Include tracepoint.h.
7332 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7333 fast_tpoint_collect_result.
7334 * linux-low.c (handle_tracepoints): Adjust.
7335 (linux_fast_tracepoint_collecting): Change return type to
7336 fast_tpoint_collect_result.
7337 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7338 linux_wait_1, stuck_in_jump_pad_callback,
7339 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7340 proceed_one_lwp): Adjust to type change.
7341
2e1e43e1
YQ
73422017-07-10 Yao Qi <yao.qi@linaro.org>
7343
7344 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7345
adc764e7
YQ
73462017-06-29 Yao Qi <yao.qi@linaro.org>
7347
7348 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7349 Remove.
7350 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7351
a206891a
SM
73522017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7353
7354 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7355
9a6c7d9c
SDJ
73562017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7357
7358 * linux-low.c (linux_create_inferior): Adjust code to access the
7359 environment information via 'gdb_environ' class.
7360 * lynx-low.c (lynx_create_inferior): Likewise.
7361 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7362 (get_environ): Return a pointer to 'our_environ'.
7363 (captured_main): Initialize 'our_environ'.
7364 * server.h (get_environ): Adjust prototype.
7365 * spu-low.c (spu_create_inferior): Adjust code to access the
7366 environment information via 'gdb_environ' class.
7367
ae3e2ccf
SM
73682017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7369
7370 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7371 usage of "register" keyword.
7372
3e019bdc
SM
73732017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7374
7375 * configure: Re-generate.
7376
8465943a
SM
73772017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7378
7379 * configure: Re-generate.
7380
cf0dd6f0
SM
73812017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7382
7383 * Makefile.in (COMPILE.pre): Add "-x c++".
7384
9845682b
SDJ
73852017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7386
7387 * fork-child.c: Conditionally include <signal.h>.
7388
aefd8b33
SDJ
73892017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7390
7391 * server.c (handle_general_set): Handle new packet
7392 "QStartupWithShell".
7393 (handle_query): Add "QStartupWithShell" to the list of supported
7394 packets.
7395 (gdbserver_usage): Add help text explaining the
7396 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7397 options.
7398 (captured_main): Recognize and act upon the presence of the new
7399 CLI options.
7400
2090129c
SDJ
74012017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7402 Pedro Alves <palves@redhat.com>
7403
7404 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7405 * configure: Regenerate.
7406 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7407 "fork-inferior.o".
7408 (i[34567]86-*-lynxos*): Likewise.
7409 (spu*-*-*): Likewise.
7410 * fork-child.c: New file.
7411 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7412 and "environ.h".
7413 (linux_ptrace_fun): New function.
7414 (linux_create_inferior): Adjust function prototype to reflect
7415 change on "target.h". Adjust function code to use
7416 "fork_inferior".
7417 (linux_request_interrupt): Delete "signal_pid".
7418 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7419 (lynx_ptrace_fun): New function.
7420 (lynx_create_inferior): Adjust function prototype to reflect
7421 change on "target.h". Adjust function code to use
7422 "fork_inferior".
7423 * nto-low.c (nto_create_inferior): Adjust function prototype and
7424 code to reflect change on "target.h". Update comments.
7425 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7426 "common-terminal.h" and "environ.h".
7427 (terminal_fd): Moved to fork-child.c.
7428 (old_foreground_pgrp): Likewise.
7429 (restore_old_foreground_pgrp): Likewise.
7430 (last_status): Make it global.
7431 (last_ptid): Likewise.
7432 (our_environ): New variable.
7433 (startup_with_shell): Likewise.
7434 (program_name): Likewise.
7435 (program_argv): Rename to...
7436 (program_args): ...this.
7437 (wrapper_argv): New variable.
7438 (start_inferior): Delete function.
7439 (get_exec_wrapper): New function.
7440 (get_exec_file): Likewise.
7441 (get_environ): Likewise.
7442 (prefork_hook): Likewise.
7443 (post_fork_inferior): Likewise.
7444 (postfork_hook): Likewise.
7445 (postfork_child_hook): Likewise.
7446 (handle_v_run): Update code to deal with arguments coming from the
7447 remote host. Update calls from "start_inferior" to
7448 "create_inferior".
7449 (captured_main): Likewise. Initialize environment variable. Call
7450 "have_job_control".
7451 * server.h (post_fork_inferior): New prototype.
7452 (get_environ): Likewise.
7453 (last_status): Declare.
7454 (last_ptid): Likewise.
7455 (signal_pid): Likewise.
7456 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7457 (spu_ptrace_fun): New function.
7458 (spu_create_inferior): Adjust function prototype to reflect change
7459 on "target.h". Adjust function code to use "fork_inferior".
7460 * target.c (target_terminal_init): New function.
7461 (target_terminal_inferior): Likewise.
7462 (target_terminal_ours): Likewise.
7463 * target.h: Include <vector>.
7464 (struct target_ops) <create_inferior>: Update prototype.
7465 (create_inferior): Update macro.
7466 * utils.c (gdb_flush_out_err): New function.
7467 * win32-low.c (win32_create_inferior): Adjust function prototype
7468 and code to reflect change on "target.h".
7469
043a4934
SDJ
74702017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7471
7472 * inferiors.c (switch_to_thread): New function.
7473
15652511
SDJ
74742017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7475
7476 * Makefile.in (SFILE): Add "common/job-control.c".
7477 (OBS): Add "job-control.o".
7478
21ea5acd
SDJ
74792017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7480
7481 * Makefile: Remove "@host_makefile_frag@".
7482
e13cb306
PA
74832017-05-05 Pedro Alves <palves@redhat.com>
7484
7485 * configure: Regenerate.
7486
c94fee56
SDJ
74872017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7488
7489 * configure: Regenerate.
7490
a0ff9e1a
SM
74912017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7492
7493 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7494 software_single_step change of return type to
7495 std::vector<CORE_ADDR>.
7496 * linux-low.c (install_software_single_step_breakpoints):
7497 Likewise.
7498 * linux-low.h (install_software_single_step_breakpoints):
7499 Likewise.
7500
be628ab8
SDJ
75012017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7502
7503 * remote-utils.c: Include "gdb_termios.h" instead of
7504 "terminal.h".
7505 * terminal.h: Delete file.
7506
7c5ded6a
SDJ
75072017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7508
7509 * server.c: Include <vector>.
7510 <program_argv, wrapper_argv>: Convert to std::vector.
7511 (start_inferior): Rewrite function to use C++.
7512 (handle_v_run): Likewise. Update code that calculates the argv
7513 based on the vRun packet; use C++.
7514 (captured_main): Likewise.
7515
436252de
SM
75162017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7517
7518 * server.c (handle_v_cont): Initialize thread_resume::thread
7519 with null_ptid.
7520
9bf2a700
PA
75212017-04-05 Pedro Alves <palves@redhat.com>
7522
7523 * configure: Regenerate.
7524
a121b7c1
PA
75252017-04-05 Pedro Alves <palves@redhat.com>
7526
7527 * gdbreplay.c (sync_error): Constify.
7528 * linux-x86-low.c (push_opcode): Constify.
7529
21c8a587
PA
75302017-04-05 Pedro Alves <palves@redhat.com>
7531
7532 * win32-low.c (get_child_debug_event)
7533 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7534 Report TARGET_WAITKIND_SPURIOUS instead.
7535
fb32b4f7
PA
75362017-04-05 Pedro Alves <palves@redhat.com>
7537
e79be6e5
SM
7538 * remote-utils.c (remote_prepare, remote_open): Constify.
7539 * remote-utils.h (remote_prepare, remote_open): Constify.
7540 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7541
65dd1e59
SM
75422017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7543
7544 * Makefile.in (clean): Clear .deps.
7545
8fa5b777
SM
75462017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7547
7548 * .gitignore: Remove generated files, replace with wildcard.
7549 * (clean): Replace removal of generated files with wildcard.
7550 (version.c): Replace with...
7551 (version-generated.c): ...this.
7552 (xml-builtin.c): Replace with...
7553 (xml-builtin-generated.c): ...this.
7554 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7555 (%.c: *regformats*): Replace with...
7556 (%-generated.c: *regformats*): ...this.
7557
a12e714b
MF
75582017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7559
7560 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7561 (xtensa_fill_gregset): Call collect_register_by_name for
7562 threadptr register.
7563 (xtensa_store_gregset): Call supply_register_by_name for
7564 threadptr register.
7565
1a09b50a
MF
75662017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7567
7568 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7569 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7570 (xtensa_store_gregset): Call supply_register for all registers in
7571 a0_regnum..a0_regnum + C0_NREGS range.
7572
1a01e7c6
SM
75732017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7574
7575 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7576 (ax-ipa.o: ax.c): Remove.
7577 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7578 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7579 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7580 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7581 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7582
36bc18a8
SM
75832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7584
7585 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7586 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7587 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7588 (errors-ipa.o: ../common/errors.c): Remove.
7589 (format-ipa.o: ../common/format.c): Remove.
7590 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7591
a8ebe3d5
SM
75922017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7593
7594 * Makefile.in (%-ipa.o: %.c): New rule.
7595 (tracepoint-ipa.o: tracepoint.c): Remove.
7596 (utils-ipa.o: utils.c): Remove.
7597 (remote-utils-ipa.o: remote-utils.c): Remove.
7598 (regcache-ipa.o: regcache.c): Remove.
7599 (i386-linux-ipa.o: i386-linux.c): Remove.
7600 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7601 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7602 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7603 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7604 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7605 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7606 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7607 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7608 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7609 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7610 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7611 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7612 (aarch64-ipa.o: aarch64.c): Remove.
7613 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7614 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7615 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7616 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7617 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7618 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7619 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7620 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7621 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7622 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7623 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7624 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7625 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7626 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7627 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7628 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7629 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7630 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7631 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7632 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7633 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7634 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7635 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7636 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7637 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7638 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7639 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7640 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7641 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7642 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7643 (tdesc-ipa.o: tdesc.c): Remove.
7644 (x32-linux-ipa.o: x32-linux.c): Remove.
7645 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7646 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7647
50cfacb7
SM
76482017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7649
7650 * Makefile.in (%.o: ../arch/%.c): New rule.
7651 (arm.o: ../arch/arm.c): Remove.
7652 (arm-linux.o: ../arch/arm-linux.c): Remove.
7653 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7654 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7655
c5a22423
SM
76562017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7657
7658 * Makefile.in (%.o: ../nat/%.c): New rule.
7659 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7660 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7661 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7662 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7663 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7664 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7665 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7666 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7667 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7668 (linux-personality.o: ../nat/linux-personality.c): Remove.
7669 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7670 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7671 (x86-linux.o: ../nat/x86-linux.c): Remove.
7672 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7673 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7674
6bda016b
SM
76752017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7676
7677 * Makefile.in (%.o: ../common/%.c): New rule.
7678 (signals.o: ../common/signals.c): Remove.
7679 (print-utils.o: ../common/print-utils.c): Remove.
7680 (rsp-low.o: ../common/rsp-low.c): Remove.
7681 (common-utils.o: ../common/common-utils.c): Remove.
7682 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7683 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7684 (vec.o: ../common/vec.c): Remove.
7685 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7686 (xml-utils.o: ../common/xml-utils.c): Remove.
7687 (ptid.o: ../common/ptid.c): Remove.
7688 (buffer.o: ../common/buffer.c): Remove.
7689 (format.o: ../common/format.c): Remove.
7690 (filestuff.o: ../common/filestuff.c): Remove.
7691 (agent.o: ../common/agent.c): Remove.
7692 (errors.o: ../common/errors.c): Remove.
7693 (environ.o: ../common/environ.c): Remove.
7694 (common-debug.o: ../common/common-debug.c): Remove.
7695 (cleanups.o: ../common/cleanups.c): Remove.
7696 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7697 (fileio.o: ../common/fileio.c): Remove.
7698 (common-regcache.o: ../common/common-regcache.c): Remove.
7699 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7700 (new-op.o: ../common/new-op.c): Remove.
7701 (btrace-common.o: ../common/btrace-common.c): Remove.
7702
21122961
SM
77032017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7704
7705 * Makefile.in (%.o: ../target/%.c): New rule.
7706 (waitstatus.o: ../target/waitstatus.c): Remove.
7707
c362e621
SM
77082017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7709
7710 * Makefile.in
7711 (%.c: ../regformats/%.dat,
7712 (%.c: ../regformats/arm/%.dat,
7713 (%.c: ../regformats/i386/%.dat,
7714 (%.c: ../regformats/rs6000/%.dat): New rules.
7715 (aarch64.c): Remove.
7716 (reg-arm.c): Remove.
7717 (arm-with-iwmmxt.c): Remove.
7718 (arm-with-vfpv2.c): Remove.
7719 (arm-with-vfpv3.c): Remove.
7720 (arm-with-neon.c): Remove.
7721 (reg-bfin.c): Remove.
7722 (reg-cris.c): Remove.
7723 (reg-crisv32.c): Remove.
7724 (i386.c): Remove.
7725 (i386-linux.c): Remove.
7726 (i386-avx.c): Remove.
7727 (i386-avx-linux.c): Remove.
7728 (i386-avx-avx512.c): Remove.
7729 (i386-avx-avx512-linux.c): Remove.
7730 (i386-mpx.c): Remove.
7731 (i386-mpx-linux.c): Remove.
7732 (i386-avx-mpx-avx512-pku.c): Remove.
7733 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7734 (i386-avx-mpx.c): Remove.
7735 (i386-avx-mpx-linux.c): Remove.
7736 (i386-mmx.c): Remove.
7737 (i386-mmx-linux.c): Remove.
7738 (reg-ia64.c): Remove.
7739 (reg-m32r.c): Remove.
7740 (reg-m68k.c): Remove.
7741 (reg-cf.c): Remove.
7742 (mips-linux.c): Remove.
7743 (mips-dsp-linux.c): Remove.
7744 (mips64-linux.c): Remove.
7745 (mips64-dsp-linux.c): Remove.
7746 (nios2-linux.c): Remove.
7747 (powerpc-32.c): Remove.
7748 (powerpc-32l.c): Remove.
7749 (powerpc-altivec32l.c): Remove.
7750 (powerpc-cell32l.c): Remove.
7751 (powerpc-vsx32l.c): Remove.
7752 (powerpc-isa205-32l.c): Remove.
7753 (powerpc-isa205-altivec32l.c): Remove.
7754 (powerpc-isa205-vsx32l.c): Remove.
7755 (powerpc-e500l.c): Remove.
7756 (powerpc-64l.c): Remove.
7757 (powerpc-altivec64l.c): Remove.
7758 (powerpc-cell64l.c): Remove.
7759 (powerpc-vsx64l.c): Remove.
7760 (powerpc-isa205-64l.c): Remove.
7761 (powerpc-isa205-altivec64l.c): Remove.
7762 (powerpc-isa205-vsx64l.c): Remove.
7763 (s390-linux32.c): Remove.
7764 (s390-linux32v1.c): Remove.
7765 (s390-linux32v2.c): Remove.
7766 (s390-linux64.c): Remove.
7767 (s390-linux64v1.c): Remove.
7768 (s390-linux64v2.c): Remove.
7769 (s390-te-linux64.c): Remove.
7770 (s390-vx-linux64.c): Remove.
7771 (s390-tevx-linux64.c): Remove.
7772 (s390x-linux64.c): Remove.
7773 (s390x-linux64v1.c): Remove.
7774 (s390x-linux64v2.c): Remove.
7775 (s390x-te-linux64.c): Remove.
7776 (s390x-vx-linux64.c): Remove.
7777 (s390x-tevx-linux64.c): Remove.
7778 (tic6x-c64xp-linux.c): Remove.
7779 (tic6x-c64x-linux.c): Remove.
7780 (tic6x-c62x-linux.c): Remove.
7781 (reg-sh.c): Remove.
7782 (reg-sparc64.c): Remove.
7783 (reg-spu.c): Remove.
7784 (amd64.c): Remove.
7785 (amd64-linux.c): Remove.
7786 (amd64-avx.c): Remove.
7787 (amd64-avx-linux.c): Remove.
7788 (amd64-avx-avx512.c): Remove.
7789 (amd64-avx-avx512-linux.c): Remove.
7790 (amd64-mpx.c): Remove.
7791 (amd64-mpx-linux.c): Remove.
7792 (amd64-avx-mpx-avx512-pku.c): Remove.
7793 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7794 (amd64-avx-mpx.c): Remove.
7795 (amd64-avx-mpx-linux.c): Remove.
7796 (x32.c): Remove.
7797 (x32-linux.c): Remove.
7798 (x32-avx.c): Remove.
7799 (x32-avx-linux.c): Remove.
7800 (x32-avx-avx512.c): Remove.
7801 (x32-avx-avx512-linux.c): Remove.
7802 (reg-xtensa.c): Remove.
7803 (reg-tilegx.c): Remove.
7804 (reg-tilegx32.c): Remove.
7805
1672e0d9
SDJ
78062017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7807
7808 * Makefile.in (SFILES): Add "common/environ.c".
7809 (OBJS): Add "common/environ.h".
7810
239b6d10
WT
78112017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7812
7813 * configure.ac: Check if the fs_base and gs_base members of
7814 `struct user_regs_struct' exist.
7815 * config.in: Regenerated.
7816 * configure: Likewise.
7817
694b382c
AT
78182017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7819
7820 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7821 target_read_memory.
7822 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7823 (get_next_pcs_syscall_next_pc): Likewise.
7824
7dc53023
LM
78252016-12-23 Luis Machado <lgustavo@codesourcery.com>
7826
7827 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7828 * nto-x86-low.c: Likewise.
7829
ad02e4fe
SM
78302016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7831
7832 * Makefile.in: Include disable-implicit-rules.mk.
7833
dcb07cfa
PA
78342016-11-23 Pedro Alves <palves@redhat.com>
7835
7836 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7837 (debug_vprintf): Use std::chrono::steady_clock instead of
7838 gettimeofday. Use '.' instead of ':'.
7839 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7840 (get_timestamp): Use std::chrono::steady_clock instead of
7841 gettimeofday.
7842
8629c02c
SM
78432016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7844
7845 * Makefile.in: Fix whitespace formatting.
7846
b593ecca
SM
78472016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7848
7849 * Makefile.in (SFILES, OBS): Flatten list and order
7850 alphabetically.
7851
9986ba08
PA
78522016-11-23 Pedro Alves <palves@redhat.com>
7853
7854 * event-loop.c (handle_file_event): Use warning.
7855 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7856 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7857 Use warning.
7858
4eefa7bc
PA
78592016-11-23 Pedro Alves <palves@redhat.com>
7860
7861 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7862 output.
7863 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7864 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7865 debug_printf and debug_flush for debug output.
7866 * server.c (handle_general_set): Likewise.
7867 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7868 output.
7869
5443506e
SM
78702016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7871
7872 * Makefile.in (.c.o): Replace rule with ...
7873 (%.o: %.c): ... this one.
7874
3b165252
SM
78752016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7876
7877 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7878 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7879 make.
7880 * configure.ac: Remove checks for the make program.
7881 * configure: Re-generate.
7882
0bcda685
PA
78832016-10-28 Pedro Alves <palves@redhat.com>
7884
7885 * Makefile.in (CXX_DIALECT): Get from configure.
7886 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7887 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7888 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7889 * config.in: Regenerate.
7890 * configure: Regenerate.
7891
c3805894
YQ
78922016-10-27 Yao Qi <yao.qi@linaro.org>
7893
7894 * linux-low.c (linux_supports_range_stepping): Return true if
7895 can_software_single_step return true.
7896
89342618
YQ
78972016-10-27 Yao Qi <yao.qi@linaro.org>
7898
7899 * inferiors.c (find_inferior_in_random): New function.
7900 * inferiors.h (find_inferior_in_random): Declare.
7901 * linux-low.c (linux_wait_for_event_filtered): Call
7902 find_inferior_in_random instead of find_inferior.
7903
e3652c84
YQ
79042016-10-27 Yao Qi <yao.qi@linaro.org>
7905
7906 * linux-low.c (linux_wait_1): If single-step breakpoints are
7907 inserted, remove them.
7908
5a04c4cf
PA
79092016-10-26 Pedro Alves <palves@redhat.com>
7910
7911 * linux-low.c (handle_extended_wait): Link parent/child fork
7912 threads.
7913 (linux_wait_1): Unlink them.
7914 (linux_set_resume_request): Ignore resume requests for
7915 already-resumed and unhandled fork child threads.
7916 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7917 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7918 New functions.
7919 (handle_v_requests) <vCont>: Don't call require_running.
7920 * server.h (in_queued_stop_replies): New declaration.
7921
cb93dc7f
YQ
79222016-10-24 Yao Qi <yao.qi@linaro.org>
7923
7924 PR server/20733
7925 * linux-aarch64-low.c (append_insns): Cast the return value to
7926 'uint32_t *'.
7927
a1078bea
YQ
79282016-10-10 Yao Qi <yao.qi@linaro.org>
7929
7930 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7931
1fb77080
SDJ
79322016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7933
7934 * target.c (target_supports_multi_process): New function, moved
7935 from...
7936 * target.h (target_supports_multi_process): ... here. Remove
7937 macro.
7938
39b5a3b9
TT
79392016-10-05 Tom Tromey <tom@tromey.com>
7940
7941 PR remote/20655:
7942 * tracepoint.c (handle_tracepoint_bkpts): Check
7943 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7944
c1d0b70a
YQ
79452016-10-05 Yao Qi <yao.qi@linaro.org>
7946
7947 * configure.srv: Update the path of arm-*.xml files.
7948
0a69eedb
YQ
79492016-10-05 Terry Guo <terry.guo@arm.com>
7950 Yao Qi <yao.qi@linaro.org>
7951
7952 * Makefile.in: Adjust the path of rules.
7953 * configure.srv: Update the path of xml files.
7954 * regformats/arm-with-iwmmxt.dat: Regenerated.
7955 * regformats/arm-with-neon.dat: Likewise.
7956 * regformats/arm-with-vfpv2.dat: Likewise.
7957 * regformats/arm-with-vfpv3.dat Likewise.
7958
17e16485
YQ
79592016-09-30 Yao Qi <yao.qi@linaro.org>
7960
7961 PR gdbserver/20627
7962 * target.c (target_stop_and_wait): Don't call
7963 target_continue_no_signal, use resume_stop instead.
7964
edeeb602
YQ
79652016-09-26 Yao Qi <yao.qi@linaro.org>
7966
7967 * linux-low.c (linux_wait_1): Call debug_exit.
7968
503b1c39
PA
79692016-09-23 Pedro Alves <palves@redhat.com>
7970
7971 * Makefile.in (SFILES): Add common/new-op.c.
7972 (OBS): Add common/new-op.o.
7973 (new-op.o): New rule.
7974
74172ecf
SM
79752016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7976
7977 * .gitinore: Ignore more files.
7978
fc6cda2e
YQ
79792016-09-21 Yao Qi <yao.qi@linaro.org>
7980
7981 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7982 23.
7983
bc1e6c81
SDJ
79842016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7985
7986 * server.c (start_inferior): Call target_mourn_inferior instead of
7987 mourn_inferior; pass ptid_t argument to it.
7988 (resume): Likewise.
7989 (handle_target_event): Likewise.
7990 * target.c (target_mourn_inferior): New function.
7991 * target.h (mourn_inferior): Delete macro.
7992
0e00e962
AA
79932016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7994
7995 * linux-low.c (lwp_is_stepping): New function.
7996
1d8cb77d
CL
79972016-09-06 Carl Love <cel@us.ibm.com>
7998
7999 * server.c (start_inferior): Fixed comment, requested comment change
8000 didn't get updated correctly. Removed reference to ptrace () call as
8001 it is only true on Linux systems.
8002
7313bced
CL
80032016-09-06 Carl Love <cel@us.ibm.com>
8004
8005 * server.c (start_inferior): Do not call
8006 function target_post_create_inferior () if the
8007 inferior process has already exited.
8008
cf6de44d
PA
80092016-09-05 Pedro Alves <palves@redhat.com>
8010
8011 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8012 (COMPILE.pre, CC_LD): Use CXX directly.
8013 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8014 * acinclude.m4: Don't include build-with-cxx.m4.
8015 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8016 * configure: Regenerate.
8017
c1da6748
AT
80182016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8019
8020 PR gdb/19495
8021 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8022 call writing data to own_buf.
8023
f2b9e3df
SDJ
80242016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8025
8026 * target.c (mywait): Call target_wait instead of
8027 the_target->wait.
8028 (target_wait): New function.
8029
049a8570
SDJ
80302016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8031
8032 * server.c (start_inferior): New variable 'ptid'. Replace calls
8033 to the_target->resume by target_continue{,_no_signal}, depending
8034 on the case.
8035 * target.c (target_stop_and_wait): Call target_continue_no_signal
8036 instead of the_target->resume.
8037 (target_continue): New function.
8038
3aa5cfa0
AT
80392016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8040
8041 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8042
754653a7
AZ
80432016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8044
8045 PR server/20491
8046 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8047 ps_prochandle.
8048 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8049 * linux-arm-low.c (ps_get_thread_area): Likewise.
8050 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8051 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8052 * linux-mips-low.c (ps_get_thread_area): Likewise.
8053 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8054 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8055 * linux-x86-low.c (ps_get_thread_area): Likewise.
8056 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8057
ed036b40
PA
80582016-08-19 Pedro Alves <palves@redhat.com>
8059
8060 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8061
c8ef42ee
PA
80622016-08-19 Pedro Alves <palves@redhat.com>
8063
8064 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8065 comment. Use memcpy instead of casting through unsigned long.
8066
9c235a72
PA
80672016-08-19 Pedro Alves <palves@redhat.com>
8068
8069 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8070 allocating around 0x80000000.
8071
201506da
PA
80722016-08-19 Pedro Alves <palves@redhat.com>
8073
8074 PR gdb/20415
8075 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8076 (x32-avx512-linux-ipa.o): New rules.
8077 * configure.ac (x86_64-*-linux*): New x32 check.
8078 * configure.srv (ipa_x32_linux_regobj): New.
8079 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8080 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8081 descriptions.
8082 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8083 descriptions.
8084 * configure: Regenerate.
8085
f348d89a
PA
80862016-08-09 Pedro Alves <palves@redhat.com>
8087
8088 PR gdb/18653
8089 * Makefile.in (OBS): Add signals-state-save-restore.o.
8090 (signals-state-save-restore.o): New rule.
8091 * config.in: Regenerate.
8092 * configure: Regenerate.
8093 * linux-low.c: Include "signals-state-save-restore.h".
8094 (linux_create_inferior): Call
8095 restore_original_signals_state.
8096 * server.c: Include "dispositions-save-restore.h".
8097 (captured_main): Call save_original_signals_state.
8098
1baf5149
PA
80992016-08-05 Pedro Alves <palves@redhat.com>
8100
8101 * configure: Regenerate.
8102
fcd4a73d
YQ
81032016-08-04 Yao Qi <yao.qi@linaro.org>
8104
8105 * linux-low.c (regsets_fetch_inferior_registers): Check
8106 errno is ESRCH or not.
8107
979659d0
YQ
81082016-08-02 Yao Qi <yao.qi@linaro.org>
8109
8110 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8111 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8112 (thread_db_load_search): Update.
8113 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8114 td_ta_set_event and td_ta_event_getmsg.
8115
6598661d
PA
81162016-07-26 Pedro Alves <palves@redhat.com>
8117
8118 PR server/20414
8119 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8120 of unsigned long for 64-bit registers and use uint32_t instead of
8121 unsigned int for 32-bit registers.
8122
9cf12d57
PA
81232016-07-26 Pedro Alves <palves@redhat.com>
8124
8125 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8126 to 'ptrace'.
8127
305450ed
TT
81282016-07-21 Tom Tromey <tom@tromey.com>
8129
8130 * configure: Rebuild.
8131
2583da7c
YQ
81322016-07-21 Yao Qi <yao.qi@linaro.org>
8133
8134 * mem-break.c (find_gdb_breakpoint): Cast bp to
8135 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8136
21536b36
YQ
81372016-07-21 Yao Qi <yao.qi@linaro.org>
8138
8139 * server.c (handle_v_requests): Support s and S actions
8140 if target_supports_software_single_step return true.
8141
8901d193
YQ
81422016-07-21 Yao Qi <yao.qi@linaro.org>
8143
8144 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8145 is resume_step, call maybe_hw_step.
8146 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8147 and unstop them.
8148 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8149 breakpoints or not.
8150 (proceed_one_lwp): If resume request is resume_step, install
8151 reinsert breakpoints and call maybe_hw_step.
8152
0e9a339e
YQ
81532016-07-21 Yao Qi <yao.qi@linaro.org>
8154
8155 * linux-low.c (proceed_one_lwp): Declare.
8156 (linux_resume_one_thread): Remove local variable 'step'.
8157 Lift code enqueue signal. Call proceed_one_lwp instead of
8158 linux_resume_one_lwp.
8159
4281b351
YQ
81602016-07-21 Yao Qi <yao.qi@linaro.org>
8161
8162 * linux-low.c (linux_resume_one_thread): Call
8163 enqueue_pending_signal.
8164
984a2c04
YQ
81652016-07-21 Yao Qi <yao.qi@linaro.org>
8166
8167 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8168 * inferiors.c (do_restore_current_thread_cleanup): New function.
8169 (make_cleanup_restore_current_thread): Likewise.
8170 * linux-low.c (install_software_single_step_breakpoints): Call
8171 make_cleanup_restore_current_thread. Switch current_thread to
8172 thread.
8173
bec903c9
YQ
81742016-07-21 Yao Qi <yao.qi@linaro.org>
8175
8176 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8177 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8178 (clone_one_breakpoint): Likewise.
8179 (delete_reinsert_breakpoints): Change parameter to thread.
8180 Callers updated.
8181 (has_reinsert_breakpoints): Likewise.
8182 (uninsert_reinsert_breakpoints): Likewise.
8183 (reinsert_reinsert_breakpoints): Likewise.
8184 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8185 (delete_reinsert_breakpoints): Likewise.
8186 (reinsert_reinsert_breakpoints): Likewise.
8187 (uninsert_reinsert_breakpoints): Likewise.
8188 (has_reinsert_breakpoints): Likewise.
8189
63c40ec7
YQ
81902016-07-21 Yao Qi <yao.qi@linaro.org>
8191
8192 * inferiors.c (get_thread_process): Make parameter const.
8193 * inferiors.h (get_thread_process): Update declaration.
8194 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8195 Add new parameters child_thread and parent_thread. Callers
8196 updated.
8197 * mem-break.h (clone_all_breakpoints): Update declaration.
8198
9aa76cd0
YQ
81992016-07-21 Yao Qi <yao.qi@linaro.org>
8200
8201 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8202 <command_list, handler>: Remove.
8203 (struct gdb_breakpoint): New.
8204 (struct other_breakpoint): New.
8205 (struct reinsert_breakpoint): New.
8206 (is_gdb_breakpoint): New function.
8207 (any_persistent_commands): Update command_list if
8208 is_gdb_breakpoint returns true.
8209 (set_breakpoint): Create breakpoints according to their types.
8210 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8211 (set_gdb_breakpoint_1): Likewise.
8212 (set_gdb_breakpoint): Likewise.
8213 (clear_breakpoint_conditions): Change parameter type to
8214 'struct gdb_breakpoint *'.
8215 (clear_breakpoint_commands): Likewise.
8216 (clear_breakpoint_conditions_and_commands): Likewise.
8217 (add_condition_to_breakpoint): Likewise.
8218 (add_breakpoint_condition): Likewise.
8219 (add_commands_to_breakpoint): Likewise.
8220 (check_breakpoints): Check other_breakpoint.
8221 (clone_one_breakpoint): Clone breakpopint according to its type.
8222 * mem-break.h (struct gdb_breakpoint): Declare.
8223 (set_gdb_breakpoint): Update declaration.
8224 (clear_breakpoint_conditions_and_commands): Likewise.
8225 (add_breakpoint_condition): Likewise.
8226 (add_breakpoint_commands): Likewise.
8227 * server.c (process_point_options): Change parameter type to
8228 'struct gdb_breakpoint *'.
8229
811f8301
YQ
82302016-07-21 Yao Qi <yao.qi@linaro.org>
8231
8232 * mem-break.c (set_breakpoint_at): Rename it to ...
8233 (set_breakpoint_type_at): ... it.
8234 (set_breakpoint_at): Call set_breakpoint_type_at.
8235 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8236 * mem-break.h (set_breakpoint_at): Update comments.
8237
b1c51e36
CLT
82382016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8239
8240 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8241 to buf parameter.
8242 (nios2_store_gregset): Likewise.
8243
ced2dffb
PA
82442016-07-01 Pedro Alves <palves@redhat.com>
8245 Antoine Tremblay <antoine.tremblay@ericsson.com>
8246
8247 * linux-low.c: Change interface to take the target lwp_info
8248 pointer directly and return void. Handle detaching from a zombie
8249 thread.
8250 (linux_detach_lwp_callback): New function.
8251 (linux_detach): Detach from the leader thread after detaching from
8252 the clone threads.
8253
2ac09a5b
YQ
82542016-06-28 Yao Qi <yao.qi@linaro.org>
8255
8256 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8257 for variable new_offset.
8258 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8259 (aarch64_ftrace_insn_reloc_cb): Likewise.
8260 (aarch64_ftrace_insn_reloc_tb): Likewise.
8261 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8262 PRIx64 instead of PRIx32.
8263
79e7fd4f
YQ
82642016-06-28 Yao Qi <yao.qi@linaro.org>
8265
8266 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8267 (the_low_target): Install arm_get_syscall_trapinfo.
8268
061fc021
YQ
82692016-06-28 Yao Qi <yao.qi@linaro.org>
8270
8271 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8272 function.
8273 (the_low_target): Install aarch64_get_syscall_trapinfo.
8274
4cc32bec
YQ
82752016-06-28 Yao Qi <yao.qi@linaro.org>
8276
8277 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8278 Callers updated.
8279 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8280 Remove parameter sysno.
8281 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8282 sysret.
8283
782c1122
AA
82842016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8285
8286 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8287 (s390_emit_ne_goto): Likewise.
8288 (s390_emit_lt_goto): Likewise.
8289 (s390_emit_le_goto): Likewise.
8290 (s390_emit_gt_goto): Likewise.
8291 (s390_emit_ge_goto): Likewise.
8292 (s390x_emit_eq_goto): Likewise.
8293 (s390x_emit_ne_goto): Likewise.
8294 (s390x_emit_lt_goto): Likewise.
8295 (s390x_emit_le_goto): Likewise.
8296 (s390x_emit_gt_goto): Likewise.
8297 (s390x_emit_ge_goto): Likewise.
8298 (s390_emit_ops_impl): Mark variable static.
8299 (s390x_emit_ops): Likewise.
8300
2e7b624b
YQ
83012016-06-17 Yao Qi <yao.qi@linaro.org>
8302
8303 * linux-low.c (handle_extended_wait): Call
8304 uninsert_reinsert_breakpoints for the parent process. Remove
8305 reinsert breakpoints from the child process. Reinsert them to
8306 the parent process when vfork is done.
8307 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8308 (reinsert_reinsert_breakpoints): New function.
8309 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8310 (reinsert_reinsert_breakpoints): Declare.
8311
8a81c5d7
YQ
83122016-06-17 Yao Qi <yao.qi@linaro.org>
8313
8314 * linux-low.c (handle_extended_wait): If the parent is doing
8315 step-over, remove the reinsert breakpoints from the forked child.
8316
f50bf8e5
YQ
83172016-06-17 Yao Qi <yao.qi@linaro.org>
8318
8319 * linux-low.c (unsuspend_all_lwps): Declare.
8320 (linux_low_filter_event): If thread exited, call finish_step_over.
8321 If step-over is finished, unsuspend other threads.
8322
8376a3cb
YQ
83232016-06-17 Yao Qi <yao.qi@linaro.org>
8324
8325 * linux-low.c (linux_resume_one_lwp_throw): Assert
8326 has_reinsert_breakpoints returns false.
8327 * mem-break.c (delete_disabled_breakpoints): Assert
8328 bp type isn't reinsert_breakpoint.
8329
f79b145d
YQ
83302016-06-17 Yao Qi <yao.qi@linaro.org>
8331
8332 * linux-low.c (maybe_hw_step): New function.
8333 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8334 (finish_step_over): Switch current_thread to lwp temporarily,
8335 and assert has_reinsert_breakpoints returns true.
8336 (proceed_one_lwp): Call maybe_hw_step.
8337 * mem-break.c (has_reinsert_breakpoints): New function.
8338 * mem-break.h (has_reinsert_breakpoints): Declare.
8339
0ae534d2
JT
83402016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8341
8342 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8343
fcdad592
YQ
83442016-05-17 Yao Qi <yao.qi@linaro.org>
8345
8346 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8347 instead of find_inferior.
8348
9e784964
YQ
83492016-05-05 Yao Qi <yao.qi@linaro.org>
8350
8351 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8352 Initialize res to zero.
8353
cf2ebb6e
YQ
83542016-05-05 Yao Qi <yao.qi@linaro.org>
8355
8356 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8357 to uint32_t.
8358
c1aebf87
UW
83592016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8360
8361 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8362 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8363 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8364
35fd2deb 83652016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8366 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8367
8368 * tracepoint.c (write_inferior_int8): New function.
8369 (cmd_qtenable_disable): Write enable flag using
8370 write_inferior_int8.
8371
484b3c32
YQ
83722016-04-25 Yao Qi <yao.qi@linaro.org>
8373
8374 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8375 (need_step_over_p): Return zero if the LWP has pending signals
8376 can be delivered on software single step target.
8377
85ba7d86
YQ
83782016-04-25 Yao Qi <yao.qi@linaro.org>
8379
8380 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8381 return instead of error.
8382
3539aa13
YQ
83832016-04-22 Yao Qi <yao.qi@linaro.org>
8384
8385 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8386 to 23.
8387
5b061e98
YQ
83882016-04-22 Yao Qi <yao.qi@linaro.org>
8389
8390 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8391 signal when stepping over breakpoint with software single
8392 step.
8393
3451269c
PA
83942016-04-21 Pedro Alves <palves@redhat.com>
8395
8396 * linux-s390-low.c (s390_collect_ptrace_register)
8397 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8398 add casts.
8399 (s390_check_regset): Use void * instead of gdb_byte *.
8400
a2358508
PA
84012016-04-20 Pedro Alves <palves@redhat.com>
8402
8403 * configure: Renegerate.
8404
6885166d
YQ
84052016-04-20 Yao Qi <yao.qi@linaro.org>
8406
8407 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8408 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8409 number 16.
8410 (arm_store_gregset): Likewise.
8411
2b863f51
WT
84122016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8413
8414 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8415 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8416 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8417 (amd64-avx-mpx-linux.c): New rules.
8418 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8419 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8420 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8421 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8422 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8423 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8424 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8425 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8426 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8427 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8428 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8429 * linux-x86-low.c (x86_linux_read_description): Add case for
8430 X86_XSTATE_AVX_MPX_MASK.
8431 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8432 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8433 init_registers_i386_avx_mpx_linux.
8434 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8435 (initialize_low_tracepoint): Call
8436 init_registers_i386_avx_mpx_linux.
8437 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8438 (initialize_low_tracepoint): Call
8439 init_registers_amd64_avx_mpx_linux.
8440 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8441 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8442 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8443 declarations.
8444
9b30624b
PA
84452016-04-18 Pedro Alves <palves@redhat.com>
8446
8447 * configure: Regenerate.
8448
45e3745e
AT
84492016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8450
8451 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8452 (aarch64_emit_sub): Likewise.
8453
2afc13ff
PA
84542016-04-12 Pedro Alves <palves@redhat.com>
8455
8456 * utils.c (prepare_to_throw_exception): Delete.
8457
6e774b13
SM
84582016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8459
8460 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8461
4dca19f8
MK
84622016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8463
8464 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8465
d0a9981f
MK
84662016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8467
8468 * linux-aarch64-ipa.c: Add <elf.h> include.
8469 * linux-ppc-ipa.c: Add <elf.h> include.
8470 * linux-s390-ipa.c: Add <elf.h> include.
8471
252db07e
MK
84722016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8473
8474 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8475 (get_raw_reg_ptr): Likewise.
8476 (get_trace_state_variable_value_ptr): Likewise.
8477 (set_trace_state_variable_value_ptr): Likewise.
8478 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8479 char *.
8480
14e2b6d9
MK
84812016-03-31 Wei-cheng Wang <cole945@gmail.com>
8482 Marcin Kościelnicki <koriakin@0x04.net>
8483
8484 PR/17221
8485 * linux-ppc-low.c (emit_insns): New function.
8486 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8487 (ppc_emit_prologue): New function.
8488 (ppc_emit_epilogue): New function.
8489 (ppc_emit_add): New function.
8490 (ppc_emit_sub): New function.
8491 (ppc_emit_mul): New function.
8492 (ppc_emit_lsh): New function.
8493 (ppc_emit_rsh_signed): New function.
8494 (ppc_emit_rsh_unsigned): New function.
8495 (ppc_emit_ext): New function.
8496 (ppc_emit_zero_ext): New function.
8497 (ppc_emit_log_not): New function.
8498 (ppc_emit_bit_and): New function.
8499 (ppc_emit_bit_or): New function.
8500 (ppc_emit_bit_xor): New function.
8501 (ppc_emit_bit_not): New function.
8502 (ppc_emit_equal): New function.
8503 (ppc_emit_less_signed): New function.
8504 (ppc_emit_less_unsigned): New function.
8505 (ppc_emit_ref): New function.
8506 (ppc_emit_const): New function.
8507 (ppc_emit_reg): New function.
8508 (ppc_emit_pop): New function.
8509 (ppc_emit_stack_flush): New function.
8510 (ppc_emit_swap): New function.
8511 (ppc_emit_stack_adjust): New function.
8512 (ppc_emit_call): New function.
8513 (ppc_emit_int_call_1): New function.
8514 (ppc_emit_void_call_2): New function.
8515 (ppc_emit_if_goto): New function.
8516 (ppc_emit_goto): New function.
8517 (ppc_emit_eq_goto): New function.
8518 (ppc_emit_ne_goto): New function.
8519 (ppc_emit_lt_goto): New function.
8520 (ppc_emit_le_goto): New function.
8521 (ppc_emit_gt_goto): New function.
8522 (ppc_emit_ge_goto): New function.
8523 (ppc_write_goto_address): New function.
8524 (ppc_emit_ops_impl): New static variable.
8525 (ppc64v1_emit_prologue): New function.
8526 (ppc64v2_emit_prologue): New function.
8527 (ppc64_emit_epilogue): New function.
8528 (ppc64_emit_add): New function.
8529 (ppc64_emit_sub): New function.
8530 (ppc64_emit_mul): New function.
8531 (ppc64_emit_lsh): New function.
8532 (ppc64_emit_rsh_signed): New function.
8533 (ppc64_emit_rsh_unsigned): New function.
8534 (ppc64_emit_ext): New function.
8535 (ppc64_emit_zero_ext): New function.
8536 (ppc64_emit_log_not): New function.
8537 (ppc64_emit_bit_and): New function.
8538 (ppc64_emit_bit_or): New function.
8539 (ppc64_emit_bit_xor): New function.
8540 (ppc64_emit_bit_not): New function.
8541 (ppc64_emit_equal): New function.
8542 (ppc64_emit_less_signed): New function.
8543 (ppc64_emit_less_unsigned): New function.
8544 (ppc64_emit_ref): New function.
8545 (ppc64_emit_const): New function.
8546 (ppc64v1_emit_reg): New function.
8547 (ppc64v2_emit_reg): New function.
8548 (ppc64_emit_pop): New function.
8549 (ppc64_emit_stack_flush): New function.
8550 (ppc64_emit_swap): New function.
8551 (ppc64v1_emit_call): New function.
8552 (ppc64v2_emit_call): New function.
8553 (ppc64v1_emit_int_call_1): New function.
8554 (ppc64v2_emit_int_call_1): New function.
8555 (ppc64v1_emit_void_call_2): New function.
8556 (ppc64v2_emit_void_call_2): New function.
8557 (ppc64_emit_if_goto): New function.
8558 (ppc64_emit_eq_goto): New function.
8559 (ppc64_emit_ne_goto): New function.
8560 (ppc64_emit_lt_goto): New function.
8561 (ppc64_emit_le_goto): New function.
8562 (ppc64_emit_gt_goto): New function.
8563 (ppc64_emit_ge_goto): New function.
8564 (ppc64v1_emit_ops_impl): New static variable.
8565 (ppc64v2_emit_ops_impl): New static variable.
8566 (ppc_emit_ops): New function.
8567 (linux_low_target): Wire in ppc_emit_ops.
8568
a2174ba4
MK
85692016-03-31 Wei-cheng Wang <cole945@gmail.com>
8570 Marcin Kościelnicki <koriakin@0x04.net>
8571
8572 PR/17221
8573 * Makefile.in: Add powerpc-*-ipa.o
8574 * configure.srv: Add ipa_obj for powerpc*-linux.
8575 * linux-ppc-ipa.c: New file.
8576 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8577 includes.
8578 (PPC_FIELD): New macro.
8579 (PPC_SEXT): New macro.
8580 (PPC_OP6): New macro.
8581 (PPC_BO): New macro.
8582 (PPC_LI): New macro.
8583 (PPC_BD): New macro.
8584 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8585 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8586 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8587 (ppc_get_thread_area): New function.
8588 (is_elfv2_inferior): New function.
8589 (gen_ds_form): New function.
8590 (GEN_STD): New macro.
8591 (GEN_STDU): New macro.
8592 (GEN_LD): New macro.
8593 (GEN_LDU): New macro.
8594 (gen_d_form): New function.
8595 (GEN_ADDI): New macro.
8596 (GEN_ADDIS): New macro.
8597 (GEN_LI): New macro.
8598 (GEN_LIS): New macro.
8599 (GEN_ORI): New macro.
8600 (GEN_ORIS): New macro.
8601 (GEN_LWZ): New macro.
8602 (GEN_STW): New macro.
8603 (GEN_STWU): New macro.
8604 (gen_xfx_form): New function.
8605 (GEN_MFSPR): New macro.
8606 (GEN_MTSPR): New macro.
8607 (GEN_MFCR): New macro.
8608 (GEN_MTCR): New macro.
8609 (GEN_SYNC): New macro.
8610 (GEN_LWSYNC): New macro.
8611 (gen_x_form): New function.
8612 (GEN_OR): New macro.
8613 (GEN_MR): New macro.
8614 (GEN_LWARX): New macro.
8615 (GEN_STWCX): New macro.
8616 (GEN_CMPW): New macro.
8617 (gen_md_form): New function.
8618 (GEN_RLDICL): New macro.
8619 (GEN_RLDICR): New macro.
8620 (gen_i_form): New function.
8621 (GEN_B): New macro.
8622 (GEN_BL): New macro.
8623 (gen_b_form): New function.
8624 (GEN_BNE): New macro.
8625 (GEN_LOAD): New macro.
8626 (GEN_STORE): New macro.
8627 (gen_limm): New function.
8628 (gen_atomic_xchg): New function.
8629 (gen_call): New function.
8630 (ppc_relocate_instruction): New function.
8631 (ppc_install_fast_tracepoint_jump_pad): New function.
8632 (ppc_get_min_fast_tracepoint_insn_len): New function.
8633 (ppc_get_ipa_tdesc_idx): New function.
8634 (the_low_target): Wire in the new functions.
8635 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8636 tdescs.
8637 * linux-ppc-tdesc.h: New file.
8638
a13c4696
MK
86392016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8640
8641 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8642 (alloc_jump_pad_buffer): New function.
8643 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8644 (alloc_jump_pad_buffer): New function.
8645 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8646 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8647 (alloc_jump_pad_buffer): New function.
8648 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8649 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8650 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8651 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8652
1cda1512
MK
86532016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8654
8655 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8656 * linux-amd64-ipa.c: Likewise.
8657 * linux-i386-ipa.c: Likewise.
8658 * linux-s390-ipa.c: Likewise.
8659 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8660 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8661 set_trace_state_variable_value_ptr.
8662 (struct ipa_sym_addresses): Likewise.
8663 (symbol_list): Likewise.
8664 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8665 accessing gdb_collect directly.
8666 (gdb_collect_ptr_type): New typedef.
8667 (get_raw_reg_ptr_type): New typedef.
8668 (get_trace_state_variable_value_ptr_type): New typedef.
8669 (set_trace_state_variable_value_ptr_type): New typedef.
8670 (gdb_collect_ptr): New global.
8671 (get_raw_reg_ptr): New global.
8672 (get_trace_state_variable_value_ptr): New global.
8673 (set_trace_state_variable_value_ptr): New global.
8674 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8675 accessing get_raw_reg directly.
8676 (get_get_tsv_func_addr): Likewise for
8677 get_trace_state_variable_value_ptr.
8678 (get_set_tsv_func_addr): Likewise for
8679 set_trace_state_variable_value_ptr.
8680 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8681
72fb5488
SM
86822016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8683
8684 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8685
28170b88
MK
86862016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8687
8688 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8689 packets.
8690 (relocate_instruction): Remove own_buf.
8691 * server.c (own_buf): Make global.
8692 (handle_v_requests): Make global.
8693 * server.h (own_buf): New declaration.
8694 (handle_v_requests): New prototype.
8695
f39e8743
MK
86962016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8697
8698 PR 18377
8699 * linux-s390-low.c (add_insns): New function.
8700 (s390_emit_prologue): New function.
8701 (s390_emit_epilogue): New function.
8702 (s390_emit_add): New function.
8703 (s390_emit_sub): New function.
8704 (s390_emit_mul): New function.
8705 (s390_emit_lsh): New function.
8706 (s390_emit_rsh_signed): New function.
8707 (s390_emit_rsh_unsigned): New function.
8708 (s390_emit_ext): New function.
8709 (s390_emit_log_not): New function.
8710 (s390_emit_bit_and): New function.
8711 (s390_emit_bit_or): New function.
8712 (s390_emit_bit_xor): New function.
8713 (s390_emit_bit_not): New function.
8714 (s390_emit_equal): New function.
8715 (s390_emit_less_signed): New function.
8716 (s390_emit_less_unsigned): New function.
8717 (s390_emit_ref): New function.
8718 (s390_emit_if_goto): New function.
8719 (s390_emit_goto): New function.
8720 (s390_write_goto_address): New function.
8721 (s390_emit_litpool): New function.
8722 (s390_emit_const): New function.
8723 (s390_emit_call): New function.
8724 (s390_emit_reg): New function.
8725 (s390_emit_pop): New function.
8726 (s390_emit_stack_flush): New function.
8727 (s390_emit_zero_ext): New function.
8728 (s390_emit_swap): New function.
8729 (s390_emit_stack_adjust): New function.
8730 (s390_emit_set_r2): New function.
8731 (s390_emit_int_call_1): New function.
8732 (s390_emit_void_call_2): New function.
8733 (s390_emit_eq_goto): New function.
8734 (s390_emit_ne_goto): New function.
8735 (s390_emit_lt_goto): New function.
8736 (s390_emit_le_goto): New function.
8737 (s390_emit_gt_goto): New function.
8738 (s390_emit_ge_goto): New function.
8739 (s390x_emit_prologue): New function.
8740 (s390x_emit_epilogue): New function.
8741 (s390x_emit_add): New function.
8742 (s390x_emit_sub): New function.
8743 (s390x_emit_mul): New function.
8744 (s390x_emit_lsh): New function.
8745 (s390x_emit_rsh_signed): New function.
8746 (s390x_emit_rsh_unsigned): New function.
8747 (s390x_emit_ext): New function.
8748 (s390x_emit_log_not): New function.
8749 (s390x_emit_bit_and): New function.
8750 (s390x_emit_bit_or): New function.
8751 (s390x_emit_bit_xor): New function.
8752 (s390x_emit_bit_not): New function.
8753 (s390x_emit_equal): New function.
8754 (s390x_emit_less_signed): New function.
8755 (s390x_emit_less_unsigned): New function.
8756 (s390x_emit_ref): New function.
8757 (s390x_emit_if_goto): New function.
8758 (s390x_emit_const): New function.
8759 (s390x_emit_call): New function.
8760 (s390x_emit_reg): New function.
8761 (s390x_emit_pop): New function.
8762 (s390x_emit_stack_flush): New function.
8763 (s390x_emit_zero_ext): New function.
8764 (s390x_emit_swap): New function.
8765 (s390x_emit_stack_adjust): New function.
8766 (s390x_emit_int_call_1): New function.
8767 (s390x_emit_void_call_2): New function.
8768 (s390x_emit_eq_goto): New function.
8769 (s390x_emit_ne_goto): New function.
8770 (s390x_emit_lt_goto): New function.
8771 (s390x_emit_le_goto): New function.
8772 (s390x_emit_gt_goto): New function.
8773 (s390x_emit_ge_goto): New function.
8774 (s390_emit_ops): New function.
8775 (struct linux_target_ops): Fill in emit_ops hook.
8776
abd9baf9
MK
87772016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8778
8779 PR 18377
8780 * Makefile.in: Add s390 IPA files.
8781 * configure.srv: Build IPA for s390.
8782 * linux-s390-ipa.c: New file.
8783 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8784 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8785 (tdesc_s390_linux32): Likewise.
8786 (init_registers_s390_linux32v1): Likewise.
8787 (tdesc_s390_linux32v1): Likewise.
8788 (init_registers_s390_linux32v2): Likewise.
8789 (tdesc_s390_linux32v2): Likewise.
8790 (init_registers_s390_linux64): Likewise.
8791 (tdesc_s390_linux64): Likewise.
8792 (init_registers_s390_linux64v1): Likewise.
8793 (tdesc_s390_linux64v1): Likewise.
8794 (init_registers_s390_linux64v2): Likewise.
8795 (tdesc_s390_linux64v2): Likewise.
8796 (init_registers_s390_te_linux64): Likewise.
8797 (tdesc_s390_te_linux64): Likewise.
8798 (init_registers_s390_vx_linux64): Likewise.
8799 (tdesc_s390_vx_linux64): Likewise.
8800 (init_registers_s390_tevx_linux64): Likewise.
8801 (tdesc_s390_tevx_linux64): Likewise.
8802 (init_registers_s390x_linux64): Likewise.
8803 (tdesc_s390x_linux64): Likewise.
8804 (init_registers_s390x_linux64v1): Likewise.
8805 (tdesc_s390x_linux64v1): Likewise.
8806 (init_registers_s390x_linux64v2): Likewise.
8807 (tdesc_s390x_linux64v2): Likewise.
8808 (init_registers_s390x_te_linux64): Likewise.
8809 (tdesc_s390x_te_linux64): Likewise.
8810 (init_registers_s390x_vx_linux64): Likewise.
8811 (tdesc_s390x_vx_linux64): Likewise.
8812 (init_registers_s390x_tevx_linux64): Likewise.
8813 (tdesc_s390x_tevx_linux64): Likewise.
8814 (have_hwcap_s390_vx): New static variable.
8815 (s390_arch_setup): Fill have_hwcap_s390_vx.
8816 (s390_get_thread_area): New function.
8817 (s390_ft_entry_gpr_esa): New const.
8818 (s390_ft_entry_gpr_zarch): New const.
8819 (s390_ft_entry_misc): New const.
8820 (s390_ft_entry_fr): New const.
8821 (s390_ft_entry_vr): New const.
8822 (s390_ft_main_31): New const.
8823 (s390_ft_main_64): New const.
8824 (s390_ft_exit_fr): New const.
8825 (s390_ft_exit_vr): New const.
8826 (s390_ft_exit_misc): New const.
8827 (s390_ft_exit_gpr_esa): New const.
8828 (s390_ft_exit_gpr_zarch): New const.
8829 (append_insns): New function.
8830 (s390_relocate_instruction): New function.
8831 (s390_install_fast_tracepoint_jump_pad): New function.
8832 (s390_get_min_fast_tracepoint_insn_len): New function.
8833 (s390_get_ipa_tdesc_idx): New function.
8834 (struct linux_target_ops): Wire in the above functions.
8835 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8836 * linux-s390-tdesc.h: New file.
8837
a4105d04
MK
88382016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8839
8840 * linux-s390-low.c (s390_supports_tracepoints): New function.
8841 (struct linux_target_ops): Fill supports_tracepoints hook.
8842
35ac8b3e
YQ
88432016-03-18 Yao Qi <yao.qi@linaro.org>
8844
8845 * linux-low.c (lwp_signal_can_be_delivered): New function.
8846 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8847
94610ec4
YQ
88482016-03-18 Yao Qi <yao.qi@linaro.org>
8849
8850 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8851 0 if signal is enqueued. Remove 'signal' from one debugging
8852 message. Move one debugging message to some lines below.
8853 Remove code setting 'signal' to 0.
8854
80aea927
YQ
88552016-03-18 Yao Qi <yao.qi@linaro.org>
8856
8857 * linux-low.c (linux_low_filter_event): Remove redundant
8858 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8859
b04fd3be
MK
88602016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8861
8862 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8863 (struct linux_target_ops): Wire in the above.
8864
c40c8d4b
YQ
88652016-03-03 Yao Qi <yao.qi@linaro.org>
8866
8867 * linux-low.c: Update comments to start_step_over.
8868
0f8288ae
YQ
88692016-03-03 Yao Qi <yao.qi@linaro.org>
8870
8871 PR server/19736
8872 * linux-low.c (handle_extended_wait): Set child suspended
8873 if event_lwp->bp_reinsert isn't zero.
8874
fdbd04a8
YQ
88752016-03-02 Yao Qi <yao.qi@linaro.org>
8876
8877 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8878 enqueue_pending_signal.
8879
6896a8fa
MK
88802016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8881
8882 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8883 is actually loaded.
8884
ab503087
MK
88852016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8886
8887 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8888 (s390_regmap_3264) [!__s390x__]: New global.
8889 (s390_collect_ptrace_register): Skip map entries containing -1.
8890 (s390_supply_ptrace_register): Ditto.
8891 (s390_fill_gprs_high): New function.
8892 (s390_store_gprs_high): New function.
8893 (s390_regsets): Add NT_S390_HIGH_GPRS.
8894 (s390_get_hwcap): Enable on 31-bit.
8895 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8896 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8897 Detect NT_S390_HIGH_GPRS.
8898 (s390_usrregs_info_3264): Enable on 31-bit.
8899 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8900 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8901
ae91f625
MK
89022016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8903
8904 PR gdb/13808
8905 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8906 * configure.srv: Ditto.
8907 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8908 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8909 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8910 (init_registers_amd64_linux): Remove prototype.
8911 (tdesc_amd64_linux): Remove declaration.
8912 (get_ipa_tdesc): New function.
8913 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8914 initialize remaining tdescs.
8915 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8916 (init_registers_i386_linux): Remove prototype.
8917 (tdesc_i386_linux): Remove declaration.
8918 (get_ipa_tdesc): New function.
8919 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8920 initialize remaining tdescs.
8921 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8922 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8923 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8924 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8925 (x86_get_ipa_tdesc_idx): New function.
8926 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8927 * linux-x86-tdesc.h: New file.
8928 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8929 (target_get_ipa_tdesc_idx): New macro.
8930 * tracepoint.c (ipa_tdesc_idx): New macro.
8931 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8932 (symbol_list): Add ipa_tdesc_idx.
8933 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8934 (ipa_tdesc): Remove.
8935 (ipa_tdesc_idx): New variable.
8936 (get_context_regcache): Use get_ipa_tdesc.
8937 (gdb_collect): Ditto.
8938 (gdb_probe): Ditto.
8939 * tracepoint.h (get_ipa_tdesc): New prototype.
8940 (ipa_tdesc): Remove.
8941
e7ad2f14
PA
89422016-02-24 Pedro Alves <palves@redhat.com>
8943
8944 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8945 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8946 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8947 Factor out common code between the USE_SIGTRAP_SIGINFO and
8948 !USE_SIGTRAP_SIGINFO blocks.
8949 (linux_low_filter_event): Call save_stop_reason instead of
8950 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8951 Update comments.
8952 (linux_wait_1): Update comments.
8953
657f9cde
WW
89542016-02-24 Wei-cheng Wang <cole945@gmail.com>
8955
8956 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8957 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8958 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8959 ppc_insert_point, ppc_remove_point.
8960
b00b61e1
MK
89612016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8962
8963 * linux-s390-low.c (s390_supports_z_point_type): New function.
8964 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8965
553cb527
YQ
89662016-02-16 Yao Qi <yao.qi@linaro.org>
8967
8968 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8969 PC. Get pc from regcache_read_pc.
8970
a5652c21
YQ
89712016-02-12 Yao Qi <yao.qi@linaro.org>
8972
8973 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8974 or linux_get_pc_32bit.
8975 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8976
ed443b61
YQ
89772016-02-12 Yao Qi <yao.qi@linaro.org>
8978
8979 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8980 arm_linux_get_next_pcs_fixup.
8981
020ecd38
MK
89822016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8983
8984 * tracepoint.c (x_tracepoint_action_download): Change
8985 write_inferior_data_ptr to write_inferior_data_pointer.
8986 (cmd_qtstart): Likewise.
8987 (write_inferior_data_ptr): Remove.
8988 (download_agent_expr): Change write_inferior_data_ptr to
8989 write_inferior_data_pointer.
8990 (download_tracepoint_1): Likewise.
8991 (download_tracepoint): Likewise.
8992 (download_trace_state_variables): Likewise.
8993
7cae9051
WW
89942016-02-11 Wei-cheng Wang <cole945@gmail.com>
8995 Marcin Kościelnicki <koriakin@0x04.net>
8996
8997 * tracepoint.c (struct tracepoint_action_ops): Remove.
8998 (struct tracepoint_action): Remove ops.
8999 (m_tracepoint_action_download, r_tracepoint_action_download)
9000 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9001 size and offset accordingly.
9002 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9003 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9004 (tracepoint_action_send, tracepoint_action_download): New functions.
9005 Helpers for trace action handlers.
9006 (add_tracepoint_action): Remove setup actions ops.
9007 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9008
9f6a71b4
YQ
90092016-02-10 Yao Qi <yao.qi@linaro.org>
9010
9011 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9012
1e94266c
SM
90132016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9014
9015 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9016 to AC_OUTPUT.
9017 * configure: Regenerate.
9018
8adce034
SM
90192016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9020
9021 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9022 void * to gdb_byte *.
9023 * linux-low.c (siginfo_fixup): Likewise.
9024 (linux_xfer_siginfo): Likewise.
9025 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9026 Likewise.
9027 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9028
93813b37
WT
90292016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9030
9031 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9032 to srv_tgtobj.
9033 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9034 to srv_tgtobj.
9035 * linux-x86-low.c [__x86_64__]: Include
9036 "nat/amd64-linux-siginfo.h".
9037 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9038 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9039 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9040 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9041 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9042 (cpt_si_fd, si_timerid, si_overrun): Move from
9043 nat/amd64-linux-siginfo.c.
9044 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9045
8424cc97
SM
90462016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9047
9048 * server.c (skip_to_semicolon): Remove.
9049 (process_point_options): Use strchrnul instead of
9050 skip_to_semicolon.
9051
4d18591b
YQ
90522016-01-26 Yao Qi <yao.qi@linaro.org>
9053
9054 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9055 * linux-low.c (install_software_single_step_breakpoints): Don't
9056 call regcache_read_pc.
9057 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9058 argument pc.
9059
d8020970
YQ
90602016-01-26 Yao Qi <yao.qi@linaro.org>
9061
9062 * linux-low.c (install_software_single_step_breakpoints): Call
9063 regcache_read_pc instead of get_pc.
9064
8b207339
YQ
90652016-01-26 Yao Qi <yao.qi@linaro.org>
9066
9067 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9068 (unblock_async_io): Rename to ...
9069 (block_unblock_async_io): ... it. New function.
9070 (enable_async_io): Don't install SIGIO handler. Unblock it
9071 instead.
9072 (disable_async_io): Don't ignore SIGIO. Block it instead.
9073 (initialize_async_io): Install SIGIO handler. Don't call
9074 unblock_async_io.
9075
18879fef
YQ
90762016-01-26 Yao Qi <yao.qi@linaro.org>
9077
9078 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9079 first character is '\003', call *the_target->request_interrupt.
9080
a0f8e08a
YQ
90812016-01-25 Yao Qi <yao.qi@linaro.org>
9082
9083 * remote-utils.c (new_thread_notify): Remove.
9084 (dead_thread_notify): Likewise.
9085 * remote-utils.h (new_thread_notify): Remove declaration.
9086 (dead_thread_notify): Likewise.
9087
cc5fd9ab
MK
90882016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9089
9090 * gdb.trace/pending.exp: Fix expected message on continue.
9091
99e8eb11
MK
90922016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9093
9094 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9095 it works properly on big-endian machines where sizeof (CORE_ADDR)
9096 != sizeof (void *).
9097
a994041d
PA
90982016-01-21 Pedro Alves <palves@redhat.com>
9099
9100 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9101 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9102 * configure: Regenerate.
9103
f7a6a40d
YQ
91042016-01-21 Yao Qi <yao.qi@linaro.org>
9105
9106 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9107 is_thumb and set it according to CPSR saved on the stack.
9108 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9109 arm_sigreturn_next_pc.
9110
6f69e520
YQ
91112016-01-18 Yao Qi <yao.qi@linaro.org>
9112
9113 * linux-low.c (linux_set_pc_64bit): New function.
9114 (linux_get_pc_64bit): New function.
9115 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9116 Declare.
9117 * linux-sparc-low.c (debug_threads): Remove declaration.
9118 (sparc_get_pc): Remove.
9119 (the_low_target): Use linux_get_pc_64bit instead of
9120 sparc_get_pc.
9121 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9122 (the_low_target): Use linux_get_pc_64bit and
9123 linux_set_pc_64bit.
9124
276d4552
YQ
91252016-01-18 Yao Qi <yao.qi@linaro.org>
9126
9127 * linux-arm-low.c (debug_threads): Remove declaration.
9128 (arm_get_pc, arm_set_pc): Remove.
9129 (the_low_target): Use linux_get_pc_32bit and
9130 linux_set_pc_32bit.
9131 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9132 (the_low_target): Use linux_get_pc_32bit and
9133 linux_set_pc_32bit.
9134 * linux-cris-low.c (debug_threads): Remove declaration.
9135 (cris_get_pc, cris_set_pc,): Remove.
9136 (the_low_target): Use linux_get_pc_32bit and
9137 linux_set_pc_32bit.
9138 * linux-crisv32-low.c (debug_threads): Remove declaration.
9139 (cris_get_pc, cris_set_pc): Remove.
9140 (the_low_target): Use linux_get_pc_32bit and
9141 linux_set_pc_32bit.
9142 * linux-low.c: Include inttypes.h.
9143 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9144 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9145 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9146 (the_low_target): Use linux_get_pc_32bit and
9147 linux_set_pc_32bit.
9148 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9149 (the_low_target): Use linux_get_pc_32bit and
9150 linux_set_pc_32bit.
9151 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9152 (the_low_target): Use linux_get_pc_32bit and
9153 linux_set_pc_32bit.
9154 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9155 (the_low_target): Use linux_get_pc_32bit and
9156 linux_set_pc_32bit.
9157 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9158 (the_low_target): Use linux_get_pc_32bit and
9159 linux_set_pc_32bit.
9160
eb0edac8
GB
91612016-01-18 Gary Benson <gbenson@redhat.com>
9162
9163 * configure.ac (AC_FUNC_FORK): New check.
9164 * config.in: Regenerate.
9165 * configure: Likewise.
9166
1b451dda
YQ
91672016-01-14 Yao Qi <yao.qi@linaro.org>
9168
9169 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9170 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9171 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9172 arm_get_next_pcs_ctor.
9173
82075af2
JS
91742016-01-12 Josh Stone <jistone@redhat.com>
9175 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9176
9177 * inferiors.h: Include "gdb_vecs.h".
9178 (struct process_info): Add syscalls_to_catch.
9179 * inferiors.c (remove_process): Free syscalls_to_catch.
9180 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9181 syscall_return stops.
9182 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9183 * server.c (handle_general_set): Handle QCatchSyscalls.
9184 (handle_query): Report support for QCatchSyscalls.
9185 * target.h (struct target_ops): Add supports_catch_syscall.
9186 (target_supports_catch_syscall): New macro.
9187 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9188 (struct lwp_info): Add syscall_state.
9189 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9190 Maintain syscall_state and syscalls_to_catch across exec.
9191 (get_syscall_trapinfo): New function, proxy to the_low_target.
9192 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9193 (linux_low_filter_event): Toggle syscall_state entry/return for
9194 syscall traps, and set it ignored for all others.
9195 (gdb_catching_syscalls_p): New function.
9196 (gdb_catch_this_syscall_p): New function.
9197 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9198 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9199 (linux_supports_catch_syscall): New function.
9200 (linux_target_ops): Install it.
9201 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9202 (the_low_target): Install it.
9203
8f13a3ce
MF
92042016-01-12 Mike Frysinger <vapier@gentoo.org>
9205
9206 * acinclude.m4: Include new ../warning.m4 file.
9207 * configure: Regenerated.
9208 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9209
5b3da067
MF
92102016-01-12 Mike Frysinger <vapier@gentoo.org>
9211
9212 * ax.c (is_goto_target): Mark static.
9213 * linux-low.c (register_addr): Likewise.
9214 (linux_fetch_registers, linux_store_registers): Likewise.
9215 * mem-break.c (any_persistent_commands): Fix old prototype.
9216 (add_commands_to_breakpoint): Mark static.
9217 * regcache.c (find_register_by_name): Delete unused func.
9218 * remote-utils.c (hex_or_minus_one): Mark static.
9219 * server.c (monitor_show_help): Mark static.
9220 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9221 handle_v_requests): Likewise.
9222
bc504a31
PA
92232016-01-12 Pedro Alves <palves@redhat.com>
9224
9225 Remove use of the registered trademark symbol throughout.
9226
5a0dd67a
YQ
92272016-01-08 Yao Qi <yao.qi@linaro.org>
9228
9229 * remote-utils.c (getpkt): If c is '\003', call target hook
9230 request_interrupt.
9231
b2ca446f
YQ
92322016-01-06 Yao Qi <yao.qi@linaro.org>
9233
9234 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9235 linux-aarch32-low.c.
9236 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9237 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9238 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9239 (thumb2_breakpoint): Declare.
9240 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9241 linux-aarch32-low.h.
9242 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9243 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9244 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9245
edd88788
JB
92462016-01-01 Joel Brobecker <brobecker@adacore.com>
9247
9248 * gdbreplay.c (gdbreplay_version): Change copyright year in
9249 version message.
9250 * server.c (gdbserver_version): Likewise.
9251
65da7f14
PP
92522015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9253
9254 * server.c (crc32_table): Delete.
9255 (crc32): Use libiberty's xcrc32 function.
9256
4abd5ed2
JB
92572015-12-22 Joel Brobecker <brobecker@adacore.com>
9258
9259 * lynx-low.c (lynx_delete_thread_callback): New function.
9260 (lynx_mourn): Properly delete our process and all of its
9261 threads. Remove call to clear_inferiors.
9262
0e50fe5c
JB
92632015-12-22 Joel Brobecker <brobecker@adacore.com>
9264
9265 * target.c (thread_search_callback): Add check that
9266 the thread_stopped target callback is not NULL before
9267 calling it.
9268
35adc03f
YQ
92692015-12-21 Yao Qi <yao.qi@linaro.org>
9270
9271 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9272 arm breakpoint.
9273
bd2b2909
AT
92742015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9275
9276 * server.c (handle_query): Call target_supports_software_single_step.
9277
7fe5e27e
AT
92782015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9279
9280 * linux-low.c (single_step): New function.
9281 (linux_resume_one_lwp_throw): Call single_step.
9282 (start_step_over): Likewise.
9283
d9311bfa
AT
92842015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9285
9286 * Makefile.in (SFILES): Append arch/arm-linux.c,
9287 arch/arm-get-next-pcs.c.
9288 (arm-linux.o): New rule.
9289 (arm-get-next-pcs.o): New rule.
9290 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9291 arm-linux.o.
9292 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9293 to linux-aarch32-low.c.
9294 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9295 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9296 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9297 (thumb2_breakpoint_len): Likewise.
9298 (arm_is_thumb_mode): Make non-static.
9299 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9300 from linux-aarch32-low.c.
9301 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9302 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9303 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9304 (thumb2_breakpoint_len): Likewise.
9305 (arm_is_thumb_mode): New declaration.
9306 * linux-arm-low.c: Include arch/arm-linux.h
9307 aarch/arm-get-next-pcs.h, sys/syscall.h.
9308 (get_next_pcs_ops): New struct.
9309 (get_next_pcs_addr_bits_remove): New function.
9310 (get_next_pcs_is_thumb): New function.
9311 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9312 (arm_sigreturn_next_pc): Likewise.
9313 (get_next_pcs_syscall_next_pc): Likewise.
9314 (arm_gdbserver_get_next_pcs): Likewise.
9315 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9316 Initialize.
9317 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9318 * server.h: Include gdb_vecs.h.
9319
68ce2059
AT
93202015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9321
9322 * Makefile.in (SFILES): Append common/common-regcache.c.
9323 (OBS): Append common-regcache.o.
9324 (common-regcache.o): New rule.
9325 * regcache.c (init_register_cache): Initialize cache to
9326 REG_UNAVAILABLE.
9327 (regcache_raw_read_unsigned): New function.
9328 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9329 register_status enum.
9330
fa5308bd
AT
93312015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9332
9333 * linux-aarch64-low.c (the_low_targets): Rename
9334 breakpoint_reinsert_addr to get_next_pcs.
9335 * linux-arm-low.c (the_low_targets): Likewise.
9336 * linux-bfin-low.c (the_low_targets): Likewise.
9337 * linux-cris-low.c (the_low_targets): Likewise.
9338 * linux-crisv32-low.c (the_low_targets): Likewise.
9339 * linux-low.c (can_software_single_step): Likewise.
9340 (install_software_single_step_breakpoints): New function.
9341 (start_step_over): Use install_software_single_step_breakpoints.
9342 * linux-low.h: New CORE_ADDR vector.
9343 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9344 get_next_pcs.
9345 * linux-mips-low.c (the_low_targets): Likewise.
9346 * linux-nios2-low.c (the_low_targets): Likewise.
9347 * linux-sparc-low.c (the_low_targets): Likewise.
9348
4a6ed09b
PA
93492015-12-17 Pedro Alves <palves@redhat.com>
9350
9351 * linux-low.c (linux_kill_one_lwp): Remove references to
9352 LinuxThreads.
9353 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9354 to 'kill'.
9355 (linux_init_signals): Delete.
9356 (initialize_low): Adjust.
9357 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9358
7544db95
PA
93592015-12-16 Pedro Alves <palves@redhat.com>
9360
9361 * configure.ac (compiler warning flags): When testing a
9362 -Wno-foo option, check whether -Wfoo works instead.
9363 * configure: Regenerate.
9364
8020350c
DB
93652015-12-11 Don Breazeal <donb@codesourcery.com>
9366
9367 * server.c (process_serial_event): Don't exit from gdbserver
9368 in remote mode if there are still active inferiors.
9369
db91f502
YQ
93702015-12-11 Yao Qi <yao.qi@linaro.org>
9371
9372 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9373 arm_breakpoint_at if the process is 32-bit.
9374
b37a6290
YQ
93752015-12-11 Yao Qi <yao.qi@linaro.org>
9376
9377 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9378 arm breakpoint.
9379
17b1509a
YQ
93802015-12-07 Yao Qi <yao.qi@linaro.org>
9381
9382 * configure.srv: Append arm.o to srv_tgtobj for
9383 aarch64*-*-linux* target.
9384 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9385 from linux-arm-low.c.
9386 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9387 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9388 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9389 (thumb2_breakpoint_len): Likewise.
9390 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9391 (arm_breakpoint_kinds): Likewise.
9392 (arm_breakpoint_kind_from_pc): Likewise.
9393 (arm_sw_breakpoint_from_kind): Likewise.
9394 (arm_breakpoint_kind_from_current_state): Likewise.
9395 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9396 (arm_sw_breakpoint_from_kind): Declare.
9397 (arm_breakpoint_kind_from_current_state): Declare.
9398 (arm_breakpoint_at): Declare.
9399 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9400 arm_sw_breakpoint_from_kind if process is 32-bit.
9401 (aarch64_breakpoint_kind_from_pc): New function.
9402 (aarch64_breakpoint_kind_from_current_state): New function.
9403 (the_low_target): Initialize fields breakpoint_kind_from_pc
9404 and breakpoint_kind_from_current_state.
9405 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9406 linux-aarch32-low.c.
9407 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9408 (arm_breakpoint, arm_breakpoint_len): Likewise.
9409 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9410 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9411 (arm_is_thumb_mode): Likewise.
9412 (arm_breakpoint_at): Likewise.
9413 (arm_breakpoint_kind_from_pc): Likewise.
9414 (arm_sw_breakpoint_from_kind): Likewise.
9415 (arm_breakpoint_kind_from_current_state): Likewise.
9416
9417 Revert:
9418 2015-08-04 Yao Qi <yao.qi@linaro.org>
9419
9420 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9421 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9422 * server.c (extended_protocol): Remove "static".
9423 * server.h (extended_protocol): Declare it.
9424
ece66d65
JS
94252015-12-04 Josh Stone <jistone@redhat.com>
9426
9427 * target.h (struct target_ops) <arch_setup>: Rename to ...
9428 (struct target_ops) <post_create_inferior>: ... this.
9429 (target_arch_setup): Rename to ...
9430 (target_post_create_inferior): ... this, calling post_create_inferior.
9431 * server.c (start_inferior): Update target_arch_setup calls to
9432 target_post_create_inferior.
9433 * linux-low.c (linux_low_ptrace_options): Forward declare.
9434 (linux_arch_setup): Update its comment for general use.
9435 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9436 (struct linux_target_ops): Use linux_post_create_inferior.
9437 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9438 to post_create_inferior.
9439 * nto-low.c (struct nto_target_ops): Likewise.
9440 * spu-low.c (struct spu_target_ops): Likewise.
9441 * win32-low.c (struct win32_target_ops): Likewise.
9442
e58c48b4
AT
94432015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9444
9445 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9446
fbec8956
AT
94472015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9448
9449 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9450 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9451 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9452 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9453 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9454 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9455 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9456 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9457 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9458 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9459 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9460 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9461
9b4c5f87
AT
94622015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9463
9464 * linux-low.c (linux_look_up_symbols): Don't call
9465 linux_supports_traceclone.
9466 * linux-low.h (thread_db_init): Remove use_events argument.
9467 * thread-db.c (thread_db_use_event): Remove global variable.
9468 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9469 (struct thread_db) <td_create_bp>: Remove field.
9470 (thread_db_create_event): Remove function.
9471 (thread_db_enable_reporting): Likewise.
9472 (find_one_thread): Don't check for thread_db_use_events.
9473 (attach_thread): Likewise.
9474 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9475 (try_thread_db_load_1): Don't check for thread_db_use_events.
9476 (thread_db_init): Remove use_events argument and thread events
9477 handling.
9478 (remove_thread_event_breakpoints): Remove function.
9479 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9480
7d00775e
AT
94812015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9482
9483 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9484 New function.
9485 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9486 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9487 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9488 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9489 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9490 Initialize.
9491 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9492 New function.
9493 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9494 * linux-low.c (can_hardware_single_step): Use
9495 supports_hardware_single_step.
9496 (can_software_single_step): New function.
9497 (start_step_over): Call can_software_single_step.
9498 (linux_supports_hardware_single_step): New function.
9499 (struct target_ops) <supports_software_single_step>: Initialize.
9500 * linux-low.h (struct linux_target_ops)
9501 <supports_hardware_single_step>: Initialize.
9502 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9503 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9504 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9505 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9506 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9507 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9508 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9509 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9510 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9511 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9512 Initialize.
9513 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9514 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9515 Initialize.
9516 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9517 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9518 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9519 New function.
9520 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9521 * target.h (struct target_ops): <supports_software_single_step>:
9522 New field.
9523 (target_supports_software_single_step): New macro.
9524
2d97cd35
AT
95252015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9526
9527 * linux-low.c (linux_wait_1): Fix pc advance condition.
9528 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9529 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9530
769ef81f
AT
95312015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9532
9533 * linux-arm-low.c (arm_is_thumb_mode): New function.
9534 (arm_breakpoint_at): Use arm_is_thumb_mode.
9535 (arm_breakpoint_kind_from_current_state): New function.
9536 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9537 Initialize.
9538 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9539 (linux_breakpoint_kind_from_current_state): New function.
9540 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9541 * linux-low.h (struct linux_target_ops)
9542 <breakpoint_kind_from_current_state>: New field.
9543 * target.h (struct target_ops): Likewise.
9544 (target_breakpoint_kind_from_current_state): New macro.
9545
1bebeeca
PA
95462015-11-30 Pedro Alves <palves@redhat.com>
9547
9548 * linux-low.c (linux_resume): Wake up the event loop before
9549 returning.
9550
a67a9fae
PA
95512015-11-30 Pedro Alves <palves@redhat.com>
9552
9553 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9554 check.
9555 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9556 to -1.
9557 * target.c (struct thread_search): New structure.
9558 (thread_search_callback): New function.
9559 (prev_general_thread): New global.
9560 (prepare_to_access_memory, done_accessing_memory): New functions.
9561 * target.h (prepare_to_access_memory, done_accessing_memory):
9562 Replace macros with function declarations.
9563
f2faf941
PA
95642015-11-30 Pedro Alves <palves@redhat.com>
9565
9566 PR 14618
9567 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9568 report TARGET_WAITKIND_NO_RESUMED.
9569 * remote-utils.c (prepare_resume_reply): Handle
9570 TARGET_WAITKIND_NO_RESUMED.
9571 * server.c (report_no_resumed): New global.
9572 (handle_query) <qSupported>: Handle "no-resumed+". Report
9573 "no-resumed+" support.
9574 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9575 return error if the client doesn't support no-resumed events.
9576 (push_stop_notification): New function.
9577 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9578 events if the client supports them.
9579
a681f9c9
PA
95802015-11-30 Pedro Alves <palves@redhat.com>
9581
9582 * linux-low.c (thread_still_has_status_pending_p): Don't check
9583 vCont;t here.
9584 (lwp_resumed): New function.
9585 (status_pending_p_callback): Return early if the LWP is not
9586 supposed to be resumed.
9587
65706a29
PA
95882015-11-30 Pedro Alves <palves@redhat.com>
9589
9590 * linux-low.c (handle_extended_wait): Assert that the LWP's
9591 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9592 thread create events, leave the new child's status pending.
9593 (linux_low_filter_event): If GDB wants to hear about thread exit
9594 events, leave the LWP marked dead and don't delete it.
9595 (linux_wait_for_event_filtered): Don't check for thread exit.
9596 (filter_exit_event): New function.
9597 (linux_wait_1): Use it, when returning an exit event.
9598 (linux_resume_one_lwp_throw): Assert that the LWP's
9599 waitstatus is TARGET_WAITKIND_IGNORE.
9600 * remote-utils.c (prepare_resume_reply): Handle
9601 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9602 * server.c (report_thread_events): New global.
9603 (handle_general_set): Handle QThreadEvents.
9604 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9605 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9606 TARGET_WAITKIND_THREAD_EXITED.
9607 * server.h (report_thread_events): Declare.
9608
56cf4bed
PA
96092015-11-30 Pedro Alves <palves@redhat.com>
9610
9611 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9612 the thread's last_resume_kind was resume_stop.
9613
500c1d85
PA
96142015-11-30 Pedro Alves <palves@redhat.com>
9615
9616 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9617 before returning.
9618
de979965
PA
96192015-11-30 Pedro Alves <palves@redhat.com>
9620
9621 * server.c (handle_v_requests): Handle vCtrlC.
9622
34c65914
PA
96232015-11-30 Pedro Alves <palves@redhat.com>
9624
9625 * gdbthread.h (find_any_thread_of_pid): Declare.
9626 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9627 functions.
9628 * server.c (handle_query): If current_thread is NULL, look for
9629 another thread of the selected process.
9630
79efa585 96312015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9632 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9633
9634 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9635 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9636 name in reply.
9637 * target.h (struct target_ops) <thread_name>: New field.
9638 (target_thread_name): New macro.
9639
80d82c19
JB
96402015-11-23 Joel Brobecker <brobecker@adacore.com>
9641
9642 * regcache.h (regcache_invalidate_pid): Add declaration.
9643 * regcache.c (regcache_invalidate_pid): New function, extracted
9644 from regcache_invalidate.
9645 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9646 Add trivial documentation comment.
9647 * lynx-low.c: Use regcache_invalidate_pid instead of
9648 regcache_invalidate.
9649
64da5dd5
JB
96502015-11-23 Joel Brobecker <brobecker@adacore.com>
9651
9652 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9653 and Elf64_auxv_t if the target is Android.
9654
37ce4055
DE
96552015-11-22 Doug Evans <xdje42@gmail.com>
9656
9657 * target.h: #include <sys/types.h>.
9658
06e03fff
PA
96592015-11-19 Pedro Alves <palves@redhat.com>
9660
9661 * linux-low.c (linux_process_qsupported): Change prototype.
9662 Adjust.
9663 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9664 Change prototype.
9665 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9666 and adjust to loop over all features.
9667 * server.c (handle_query) <qSupported>: Adjust to call
9668 target_process_qsupported once, passing it a vector of unprocessed
9669 features.
9670 * target.h (struct target_ops) <process_qsupported>: Change
9671 prototype.
9672 (target_process_qsupported): Adjust.
9673
9a084706
PA
96742015-11-19 Pedro Alves <palves@redhat.com>
9675
9676 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9677 mode.
9678 * configure: Regenerate.
9679
dad44a1f
PA
96802015-11-19 Pedro Alves <palves@redhat.com>
9681
9682 * configure: Regenerate.
9683
231c0592
YQ
96842015-11-19 Yao Qi <yao.qi@linaro.org>
9685
9686 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9687 type to uint32_t.
9688
6c1c9a8b
YQ
96892015-11-19 Yao Qi <yao.qi@linaro.org>
9690
9691 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9692 (struct aarch64_operand): Move enum out.
9693
9caa3311
YQ
96942015-11-19 Yao Qi <yao.qi@linaro.org>
9695
9696 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9697 struct user_fpsimd_state *.
9698 (aarch64_store_fpregset): Likewise.
9699
6a69a054
YQ
97002015-11-19 Yao Qi <yao.qi@linaro.org>
9701
9702 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9703 struct user_pt_regs *.
9704 (aarch64_store_gregset): Likewise.
9705
1798301e
PA
97062015-11-18 Pedro Alves <palves@redhat.com>
9707
9708 * Makefile.in (all_object_files): Add $IPA_OBJS.
9709
ce7715e2
PA
97102015-11-17 Pedro Alves <palves@redhat.com>
9711
9712 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9713 GDB_SIGNAL_0 and gdb_signal_to_string.
9714
c0879059
PA
97152015-11-17 Pedro Alves <palves@redhat.com>
9716
9717 * win32-low.c (handle_output_debug_string): Remove parameter.
9718 (win32_kill): Remove our_status local and adjust call to
9719 handle_output_debug_string.
9720 (get_child_debug_event): Adjust call to
9721 handle_output_debug_string.
9722
1996e237
SM
97232015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9724
9725 * linux-mips-low.c (mips_fill_gregset): Add cast.
9726 (mips_store_gregset): Likewise.
9727 (mips_fill_fpregset): Likewise.
9728 (mips_store_fpregset): Likewise.
9729
cbec665b
SM
97302015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9731
9732 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9733 priv.
9734
eb3e3c67
SM
97352015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9736
9737 * linux-mips-low.c (mips_linux_new_thread): Change type of
9738 watch_type to enum target_hw_bp_type.
9739
171de4b8
SM
97402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9741
9742 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9743 Change return type to arm_hwbp_type.
9744
04248ead
SM
97452015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9746
9747 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9748 (arm_store_gregset): Likewise.
9749 * linux-arm-low.c (arm_get_hwcap): Likewise.
9750 (arm_read_description): Likewise.
9751
04b3479c
SM
97522015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9753
9754 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9755
2bc84e8a
SM
97562015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9757
9758 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9759 (ppc_fill_vsxregset): Likewise.
9760 (ppc_store_vsxregset): Likewise.
9761 (ppc_fill_vrregset): Likewise.
9762 (ppc_store_vrregset): Likewise.
9763 (ppc_fill_evrregset): Likewise.
9764 (ppc_store_evrregset): Likewise.
9765
e6c5bb05
SM
97662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9767
9768 * linux-ppc-low.c (ppc_usrregs_info): Remove
9769 forward-declaration.
9770 (ppc_arch_setup): Move lower in file.
9771
7ea45d72
SM
97722015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9773
9774 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9775 (ps_pdwrite): Likewise.
9776
69291610
HW
97772015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9778
9779 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9780 to after assert checks.
9781
b42945fd
SM
97822015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9783
9784 * proc-service.c (ps_pdread): Add/adjust casts.
9785 (ps_pdwrite): Add/adjust casts.
9786
d6f85c84
SM
97872015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9788
9789 * server.c (handle_search_memory_1): Cast return value of
9790 memmem.
9791
f98cd059
SM
97922015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9793
9794 * server.c (write_qxfer_response): Change type of data to
9795 gdb_byte *.
9796
d2412fa5
PA
97972015-10-29 Pedro Alves <palves@redhat.com>
9798
9799 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9800
c17414a2
PA
98012015-10-29 Pedro Alves <palves@redhat.com>
9802
9803 * tracepoint.c (clear_installed_tracepoints): Add casts.
9804
e053fbc4
PA
98052015-10-29 Pedro Alves <palves@redhat.com>
9806
9807 * server.c (handle_v_cont, process_serial_event): Add enum
9808 gdb_signal casts to signal parsing code.
9809
add67df8
PA
98102015-10-29 Pedro Alves <palves@redhat.com>
9811
9812 * linux-low.h (NULL_REGSET): Define.
9813 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9814 * linux-arm-low.c (arm_regsets): Likewise.
9815 * linux-crisv32-low.c (cris_regsets): Likewise.
9816 * linux-m68k-low.c (m68k_regsets): Likewise.
9817 * linux-mips-low.c (mips_regsets): Likewise.
9818 * linux-nios2-low.c (nios2_regsets): Likewise.
9819 * linux-ppc-low.c (ppc_regsets): Likewise.
9820 * linux-s390-low.c (s390_regsets): Likewise.
9821 * linux-sh-low.c (sh_regsets): Likewise.
9822 * linux-sparc-low.c (sparc_regsets): Likewise.
9823 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9824 * linux-tile-low.c (tile_regsets): Likewise.
9825 * linux-x86-low.c (x86_regsets): Likewise.
9826 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9827
50bc912a
PA
98282015-10-29 Pedro Alves <palves@redhat.com>
9829
9830 * linux-low.h (NULL_REGSET): Define.
9831 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9832 * linux-arm-low.c (arm_regsets): Likewise.
9833 * linux-crisv32-low.c (cris_regsets): Likewise.
9834 * linux-m68k-low.c (m68k_regsets): Likewise.
9835 * linux-mips-low.c (mips_regsets): Likewise.
9836 * linux-nios2-low.c (nios2_regsets): Likewise.
9837 * linux-ppc-low.c (ppc_regsets): Likewise.
9838 * linux-s390-low.c (s390_regsets): Likewise.
9839 * linux-sh-low.c (sh_regsets): Likewise.
9840 * linux-sparc-low.c (sparc_regsets): Likewise.
9841 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9842 * linux-tile-low.c (tile_regsets): Likewise.
9843 * linux-x86-low.c (x86_regsets): Likewise.
9844 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9845
682b2546
DE
98462015-10-26 Doug Evans <dje@google.com>
9847
9848 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9849
963843d4
DE
98502015-10-26 Doug Evans <dje@google.com>
9851
9852 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9853
d41401ac
DE
98542015-10-26 Doug Evans <dje@google.com>
9855
9856 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9857 for debug_printf.
9858 (attach_thread, find_new_threads_callback): Ditto.
9859
3db28855
AT
98602015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9861
9862 * mem-break.h (set_breakpoint_data): Remove.
9863
fb78e89c
AT
98642015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9865
9866 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9867 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9868 (initialize_low): Remove set_breakpoint_data call.
9869 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9870 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9871 (initialize_low): Remove set_breakpoint_data call.
9872 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9873 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9874 (initialize_low): Remove set_breakpoint_data call.
9875
2e6ee069
AT
98762015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9877
9878 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9879 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9880 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9881 * target.h (target_breakpoint_kind_from_pc): New macro.
9882
1652a986
AT
98832015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9884
9885 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9886 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9887 the default breakpoint kind.
9888
abeead09
AT
98892015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9890
9891 * linux-arm-low.c (arm_supports_z_point_type): Add software
9892 breakpoint support.
9893
b0b4b501
AT
98942015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9895
9896 * linux-arm-low.c: Refactor breakpoint definitions.
9897 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9898 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9899
8689682c
AT
99002015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9901
9902 * Makefile.in: Add arm.c/o.
9903 * configure.srv: Likewise.
9904 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9905 (arm_breakpoint_kind_from_pc): New function.
9906 (arm_sw_breakpoint_from_kind): Return proper kind.
9907 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9908
27165294
AT
99092015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9910
9911 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9912 removal.
9913 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9914 (struct raw_breakpoint) <size>: Remove.
9915 (struct raw_breakpoint) <kind>: Add.
9916 (bp_size): New function.
9917 (bp_opcode): Likewise.
9918 (find_raw_breakpoint_at): Adjust for kind.
9919 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9920 (remove_memory_breakpoint): Adjust for kind call bp_size.
9921 (set_raw_breakpoint_at): Adjust for kind.
9922 (set_breakpoint): Likewise.
9923 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9924 (delete_raw_breakpoint): Adjust for kind.
9925 (delete_breakpoint): Likewise.
9926 (find_gdb_breakpoint): Likewise.
9927 (set_gdb_breakpoint_1): Likewise.
9928 (set_gdb_breakpoint): Likewise.
9929 (delete_gdb_breakpoint_1): Likewise.
9930 (delete_gdb_breakpoint): Likewise.
9931 (uninsert_raw_breakpoint): Likewise.
9932 (reinsert_raw_breakpoint): Likewise.
9933 (set_breakpoint_data): Remove.
9934 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9935 (check_mem_read): Adjust for kind call bp_size.
9936 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9937 (clone_one_breakpoint): Adjust for kind.
9938 * mem-break.h (set_gdb_breakpoint): Likewise.
9939 (delete_gdb_breakpoint): Likewise.
9940 * server.c (process_serial_event): Likewise.
9941
dd373349
AT
99422015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9943
9944 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9945 (struct linux_target_ops) <breakpoint>: Remove.
9946 (struct linux_target_ops) <breakpoint_len>: Remove.
9947 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9948 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9949 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9950 (arm_sw_breakpoint_from_kind): New function.
9951 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9952 (struct linux_target_ops) <breakpoint>: Remove.
9953 (struct linux_target_ops) <breakpoint_len>: Remove.
9954 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9955 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9956 * linux-cris-low.c (cris_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-crisv32-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-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9967 and sw_breakpoint_from_kind to increment the pc.
9968 (linux_breakpoint_kind_from_pc): New function.
9969 (linux_sw_breakpoint_from_kind): New function.
9970 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9971 (initialize_low): Call breakpoint_kind_from_pc and
9972 sw_breakpoint_from_kind to replace breakpoint_data/len.
9973 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9974 New field.
9975 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9976 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9977 (struct linux_target_ops) <breakpoint>: Remove.
9978 (struct linux_target_ops) <breakpoint_len>: Remove.
9979 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9980 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9981 * linux-m68k-low.c (m68k_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-mips-low.c (mips_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-nios2-low.c (nios2_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-ppc-low.c (ppc_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-s390-low.c (s390_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-sh-low.c (sh_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-sparc-low.c (sparc_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-tic6x-low.c (tic6x_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-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10022 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10023 (struct linux_target_ops) <breakpoint>: Remove.
10024 (struct linux_target_ops) <breakpoint_len>: Remove.
10025 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10026 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10027 * linux-xtensa-low.c (xtensa_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
4cd98a19
AT
100332015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10034
10035 * linux-cris-low.c (cris_get_pc): Remove void arg.
10036
774ee6d2
AR
100372015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10038
10039 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10040 variable name.
10041
833dcd29
AR
100422015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10043
10044 * inferiors.c (thread_pid_matches_callback): New function.
10045 (find_thread_process): New function.
10046 (remove_thread): Reset current_thread.
10047 (remove_process): Assert threads have been removed first.
10048
8d689ee5
YQ
100492015-10-15 Yao Qi <yao.qi@linaro.org>
10050
10051 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10052 if it is 3.
10053 (aarch64_remove_point): Likewise.
10054 * regcache.c (regcache_register_size): New function.
10055
1c2e1515
YQ
100562015-10-12 Yao Qi <yao.qi@linaro.org>
10057
10058 * linux-aarch64-low.c: Update all callers as emit_load_store
10059 is renamed to aarch64_emit_load_store.
10060
e1c587c3
YQ
100612015-10-12 Yao Qi <yao.qi@linaro.org>
10062
10063 * linux-aarch64-low.c: Update all callers of function renaming
10064 from emit_insn to aarch64_emit_insn.
10065
b6542f81
YQ
100662015-10-12 Yao Qi <yao.qi@linaro.org>
10067
10068 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10069 arch/aarch64-insn.h.
10070 (struct aarch64_memory_operand): Likewise.
10071 (ENCODE): Likewise.
10072 (emit_insn): Move to arch/aarch64-insn.c.
10073 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10074 (emit_load_store): Move to arch/aarch64-insn.c.
10075 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10076 (can_encode_int32): Remove.
10077
246994ce
YQ
100782015-10-12 Yao Qi <yao.qi@linaro.org>
10079
10080 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10081 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10082 (aarch64_relocate_instruction): Likewise.
10083 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10084 (struct aarch64_insn_visitor): Likewise.
10085
0badd99f
YQ
100862015-10-12 Yao Qi <yao.qi@linaro.org>
10087
10088 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10089 (struct aarch64_insn_visitor): New.
10090 (struct aarch64_insn_relocation_data): New.
10091 (aarch64_ftrace_insn_reloc_b): New function.
10092 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10093 (aarch64_ftrace_insn_reloc_cb): Likewise.
10094 (aarch64_ftrace_insn_reloc_tb): Likewise.
10095 (aarch64_ftrace_insn_reloc_adr): Likewise.
10096 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10097 (aarch64_ftrace_insn_reloc_others): Likewise.
10098 (visitor): New.
10099 (aarch64_relocate_instruction): Use visitor.
10100
dfaffe9d
YQ
101012015-10-12 Yao Qi <yao.qi@linaro.org>
10102
10103 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10104 int. Add argument buf.
10105 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10106 aarch64_relocate_instruction.
10107
70b439f0
YQ
101082015-10-12 Yao Qi <yao.qi@linaro.org>
10109
10110 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10111 argument insn. Remove local variable insn. Don't call
10112 target_read_uint32.
10113 (aarch64_install_fast_tracepoint_jump_pad): Call
10114 target_read_uint32.
10115
7781c06f
YQ
101162015-09-30 Yao Qi <yao.qi@linaro.org>
10117
10118 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10119 (emit_load_store_pair): Likewise.
10120
9a3c8263
SM
101212015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10122
10123 * dll.c (match_dll): Add cast(s).
10124 (unloaded_dll): Likewise.
10125 * linux-low.c (second_thread_of_pid_p): Likewise.
10126 (delete_lwp_callback): Likewise.
10127 (count_events_callback): Likewise.
10128 (select_event_lwp_callback): Likewise.
10129 (linux_set_resume_request): Likewise.
10130 * server.c (accumulate_file_name_length): Likewise.
10131 (emit_dll_description): Likewise.
10132 (handle_qxfer_threads_worker): Likewise.
10133 (visit_actioned_threads): Likewise.
10134 * thread-db.c (any_thread_of): Likewise.
10135 * tracepoint.c (same_process_p): Likewise.
10136 (match_blocktype): Likewise.
10137 (build_traceframe_info_xml): Likewise.
10138
224c3ddb
SM
101392015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10140
10141 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10142 assignment.
10143 (gdb_unparse_agent_expr): Likewise.
10144 * hostio.c (require_data): Likewise.
10145 (handle_pread): Likewise.
10146 * linux-low.c (disable_regset): Likewise.
10147 (fetch_register): Likewise.
10148 (store_register): Likewise.
10149 (get_dynamic): Likewise.
10150 (linux_qxfer_libraries_svr4): Likewise.
10151 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10152 (set_fast_tracepoint_jump): Likewise.
10153 (uninsert_fast_tracepoint_jumps_at): Likewise.
10154 (reinsert_fast_tracepoint_jumps_at): Likewise.
10155 (validate_inserted_breakpoint): Likewise.
10156 (clone_agent_expr): Likewise.
10157 * regcache.c (init_register_cache): Likewise.
10158 * remote-utils.c (putpkt_binary_1): Likewise.
10159 (decode_M_packet): Likewise.
10160 (decode_X_packet): Likewise.
10161 (look_up_one_symbol): Likewise.
10162 (relocate_instruction): Likewise.
10163 (monitor_output): Likewise.
10164 * server.c (handle_search_memory): Likewise.
10165 (handle_qxfer_exec_file): Likewise.
10166 (handle_qxfer_libraries): Likewise.
10167 (handle_qxfer): Likewise.
10168 (handle_query): Likewise.
10169 (handle_v_cont): Likewise.
10170 (handle_v_run): Likewise.
10171 (captured_main): Likewise.
10172 * target.c (write_inferior_memory): Likewise.
10173 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10174 * tracepoint.c (init_trace_buffer): Likewise.
10175 (add_tracepoint_action): Likewise.
10176 (add_traceframe): Likewise.
10177 (add_traceframe_block): Likewise.
10178 (cmd_qtdpsrc): Likewise.
10179 (cmd_qtdv): Likewise.
10180 (cmd_qtstatus): Likewise.
10181 (response_source): Likewise.
10182 (response_tsv): Likewise.
10183 (cmd_qtnotes): Likewise.
10184 (gdb_collect): Likewise.
10185 (initialize_tracepoint): Likewise.
10186
afbe19f8
PL
101872015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10188
10189 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10190 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10191 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10192 <NOP>: New.
10193 (enum aarch64_condition_codes): New enum.
10194 (w0): New static global.
10195 (fp): Likewise.
10196 (lr): Likewise.
10197 (struct aarch64_memory_operand) <type>: New
10198 MEMORY_OPERAND_POSTINDEX type.
10199 (postindex_memory_operand): New helper function.
10200 (emit_ret): New function.
10201 (emit_load_store_pair): New function, factored out of emit_stp
10202 with support for MEMORY_OPERAND_POSTINDEX.
10203 (emit_stp): Rewrite using emit_load_store_pair.
10204 (emit_ldp): New function.
10205 (emit_load_store): Likewise.
10206 (emit_ldr): Mention post-index instruction in comment.
10207 (emit_ldrh): New function.
10208 (emit_ldrb): New function.
10209 (emit_ldrsw): Mention post-index instruction in comment.
10210 (emit_str): Likewise.
10211 (emit_subs): New function.
10212 (emit_cmp): Likewise.
10213 (emit_and): Likewise.
10214 (emit_orr): Likewise.
10215 (emit_orn): Likewise.
10216 (emit_eor): Likewise.
10217 (emit_mvn): Likewise.
10218 (emit_lslv): Likewise.
10219 (emit_lsrv): Likewise.
10220 (emit_asrv): Likewise.
10221 (emit_mul): Likewise.
10222 (emit_sbfm): Likewise.
10223 (emit_sbfx): Likewise.
10224 (emit_ubfm): Likewise.
10225 (emit_ubfx): Likewise.
10226 (emit_csinc): Likewise.
10227 (emit_cset): Likewise.
10228 (emit_nop): Likewise.
10229 (emit_ops_insns): New helper function.
10230 (emit_pop): Likewise.
10231 (emit_push): Likewise.
10232 (aarch64_emit_prologue): New function.
10233 (aarch64_emit_epilogue): Likewise.
10234 (aarch64_emit_add): Likewise.
10235 (aarch64_emit_sub): Likewise.
10236 (aarch64_emit_mul): Likewise.
10237 (aarch64_emit_lsh): Likewise.
10238 (aarch64_emit_rsh_signed): Likewise.
10239 (aarch64_emit_rsh_unsigned): Likewise.
10240 (aarch64_emit_ext): Likewise.
10241 (aarch64_emit_log_not): Likewise.
10242 (aarch64_emit_bit_and): Likewise.
10243 (aarch64_emit_bit_or): Likewise.
10244 (aarch64_emit_bit_xor): Likewise.
10245 (aarch64_emit_bit_not): Likewise.
10246 (aarch64_emit_equal): Likewise.
10247 (aarch64_emit_less_signed): Likewise.
10248 (aarch64_emit_less_unsigned): Likewise.
10249 (aarch64_emit_ref): Likewise.
10250 (aarch64_emit_if_goto): Likewise.
10251 (aarch64_emit_goto): Likewise.
10252 (aarch64_write_goto_address): Likewise.
10253 (aarch64_emit_const): Likewise.
10254 (aarch64_emit_call): Likewise.
10255 (aarch64_emit_reg): Likewise.
10256 (aarch64_emit_pop): Likewise.
10257 (aarch64_emit_stack_flush): Likewise.
10258 (aarch64_emit_zero_ext): Likewise.
10259 (aarch64_emit_swap): Likewise.
10260 (aarch64_emit_stack_adjust): Likewise.
10261 (aarch64_emit_int_call_1): Likewise.
10262 (aarch64_emit_void_call_2): Likewise.
10263 (aarch64_emit_eq_goto): Likewise.
10264 (aarch64_emit_ne_goto): Likewise.
10265 (aarch64_emit_lt_goto): Likewise.
10266 (aarch64_emit_le_goto): Likewise.
10267 (aarch64_emit_gt_goto): Likewise.
10268 (aarch64_emit_ge_got): Likewise.
10269 (aarch64_emit_ops_impl): New static global variable.
10270 (aarch64_emit_ops): New target function, return
10271 &aarch64_emit_ops_impl.
10272 (struct linux_target_ops): Install it.
10273
bb903df0
PL
102742015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10275
10276 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10277 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10278 aarch64-ipa.o.
10279 * linux-aarch64-ipa.c: New file.
10280 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10281 and endian.h.
10282 (aarch64_get_thread_area): New target method.
10283 (extract_signed_bitfield): New helper function.
10284 (aarch64_decode_ldr_literal): New function.
10285 (enum aarch64_opcodes): New enum.
10286 (struct aarch64_register): New struct.
10287 (struct aarch64_operand): New struct.
10288 (x0): New static global.
10289 (x1): Likewise.
10290 (x2): Likewise.
10291 (x3): Likewise.
10292 (x4): Likewise.
10293 (w2): Likewise.
10294 (ip0): Likewise.
10295 (sp): Likewise.
10296 (xzr): Likewise.
10297 (aarch64_register): New helper function.
10298 (register_operand): Likewise.
10299 (immediate_operand): Likewise.
10300 (struct aarch64_memory_operand): New struct.
10301 (offset_memory_operand): New helper function.
10302 (preindex_memory_operand): Likewise.
10303 (enum aarch64_system_control_registers): New enum.
10304 (ENCODE): New macro.
10305 (emit_insn): New helper function.
10306 (emit_b): New function.
10307 (emit_bcond): Likewise.
10308 (emit_cb): Likewise.
10309 (emit_tb): Likewise.
10310 (emit_blr): Likewise.
10311 (emit_stp): Likewise.
10312 (emit_ldp_q_offset): Likewise.
10313 (emit_stp_q_offset): Likewise.
10314 (emit_load_store): Likewise.
10315 (emit_ldr): Likewise.
10316 (emit_ldrsw): Likewise.
10317 (emit_str): Likewise.
10318 (emit_ldaxr): Likewise.
10319 (emit_stxr): Likewise.
10320 (emit_stlr): Likewise.
10321 (emit_data_processing_reg): Likewise.
10322 (emit_data_processing): Likewise.
10323 (emit_add): Likewise.
10324 (emit_sub): Likewise.
10325 (emit_mov): Likewise.
10326 (emit_movk): Likewise.
10327 (emit_mov_addr): Likewise.
10328 (emit_mrs): Likewise.
10329 (emit_msr): Likewise.
10330 (emit_sevl): Likewise.
10331 (emit_wfe): Likewise.
10332 (append_insns): Likewise.
10333 (can_encode_int32_in): New helper function.
10334 (aarch64_relocate_instruction): New function.
10335 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10336 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10337 (struct linux_target_ops): Install aarch64_get_thread_area,
10338 aarch64_install_fast_tracepoint_jump_pad and
10339 aarch64_get_min_fast_tracepoint_insn_len.
10340
787749ea
PL
103412015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10342
10343 * Makefile.in (aarch64-insn.o): New rule.
10344 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10345
9812b2e6
YQ
103462015-09-21 Yao Qi <yao.qi@linaro.org>
10347
10348 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10349
18fe412b
YQ
103502015-09-21 Yao Qi <yao.qi@linaro.org>
10351
10352 * tracepoint.c (max_jump_pad_size): Remove.
10353
a0cc84cd
YQ
103542015-09-18 Yao Qi <yao.qi@linaro.org>
10355
10356 * linux-aarch64-low.c: Don't include sys/uio.h.
10357 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10358
d78908cf
WW
103592015-09-16 Wei-cheng Wang <cole945@gmail.com>
10360
10361 * tracepoint.c (eval_result_type): Change prototype.
10362 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10363
d57e0d50
PA
103642015-09-15 Pedro Alves <palves@redhat.com>
10365
10366 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10367 Check whether to report exec events instead of checking whether
10368 multiprocess is enabled.
10369
5a676acc
PA
103702015-09-15 Pedro Alves <palves@redhat.com>
10371
10372 PR remote/18965
10373 * remote-utils.c (prepare_resume_reply): Merge
10374 TARGET_WAITKIND_VFORK_DONE switch case with the
10375 TARGET_WAITKIND_FORKED case.
10376
7c5d0fad
YQ
103772015-09-15 Yao Qi <yao.qi@linaro.org>
10378
10379 * server.c (handle_query): Check string comparison using
10380 "else if" instead of "if".
10381
750ce8d1
YQ
103822015-09-15 Yao Qi <yao.qi@linaro.org>
10383
10384 * server.c (vCont_supported): New global variable.
10385 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10386 matches. Append ";vContSupported+" to own_buf.
10387 (handle_v_requests): Append ";s;S" to own_buf if target supports
10388 hardware single step or vCont_supported is false.
10389 (capture_main): Set vCont_supported to zero.
10390
70b90b91
YQ
103912015-09-15 Yao Qi <yao.qi@linaro.org>
10392
10393 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10394 it to ...
10395 (linux_supports_hardware_single_step): ... New function.
10396 (linux_target_ops): Update.
10397 * lynx-low.c (lynx_target_ops): Set field
10398 supports_hardware_single_step to target_can_do_hardware_single_step.
10399 * nto-low.c (nto_target_ops): Likewise.
10400 * spu-low.c (spu_target_ops): Likewise.
10401 * win32-low.c (win32_target_ops): Likewise.
10402 * target.c (target_can_do_hardware_single_step): New function.
10403 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10404 Remove. <supports_hardware_single_step>: New field.
10405 (target_supports_conditional_breakpoints): Remove.
10406 (target_supports_hardware_single_step): New macro.
10407 (target_can_do_hardware_single_step): Declare.
10408 * server.c (handle_query): Use target_supports_hardware_single_step
10409 instead of target_supports_conditional_breakpoints.
10410
ade90bde
YQ
104112015-09-15 Yao Qi <yao.qi@linaro.org>
10412
10413 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10414 function.
10415 (struct linux_target_ops the_low_target): Install
10416 aarch64_linux_siginfo_fixup.
10417
94585166
DB
104182015-09-11 Don Breazeal <donb@codesourcery.com>
10419 Luis Machado <lgustavo@codesourcery.com>
10420
10421 * linux-low.c (linux_mourn): Static declaration.
10422 (linux_arch_setup): Move in front of
10423 handle_extended_wait.
10424 (linux_arch_setup_thread): New function.
10425 (handle_extended_wait): Handle exec events. Call
10426 linux_arch_setup_thread. Make event_lwp argument a
10427 pointer-to-a-pointer.
10428 (check_zombie_leaders): Do not check stopped threads.
10429 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10430 (linux_low_filter_event): Add lwp and thread for exec'ing
10431 non-leader thread if leader thread has been deleted.
10432 Refactor code into linux_arch_setup_thread and call it.
10433 Pass child lwp pointer by reference to handle_extended_wait.
10434 (linux_wait_for_event_filtered): Update comment.
10435 (linux_wait_1): Prevent clobbering exec event status.
10436 (linux_supports_exec_events): New function.
10437 (linux_target_ops) <supports_exec_events>: Initialize new member.
10438 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10439 new member.
10440 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10441 * server.c (report_exec_events): New global variable.
10442 (handle_query): Handle qSupported query for exec-events feature.
10443 (captured_main): Initialize report_exec_events.
10444 * server.h (report_exec_events): Declare new global variable.
10445 * target.h (struct target_ops) <supports_exec_events>: New
10446 member.
10447 (target_supports_exec_events): New macro.
10448 * win32-low.c (win32_target_ops) <supports_exec_events>:
10449 Initialize new member.
10450
0568462b
MM
104512015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10452
10453 * linux-low.c (linux_low_enable_btrace): Remove.
10454 (linux_target_ops): Replace linux_low_enable_btrace with
10455 linux_enable_btrace.
10456
39edd165
YQ
104572015-09-03 Yao Qi <yao.qi@linaro.org>
10458
10459 * linux-aarch64-low.c (aarch64_insert_point): Call
10460 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10461 returns true.
10462
1db33b5a
UW
104632015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10464
10465 * linux-low.c (check_stopped_by_breakpoint): Use
10466 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10467
ab290430
PA
104682015-08-27 Pedro Alves <palves@redhat.com>
10469
10470 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10471
8d749320
SM
104722015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10473
6711b7f8
SM
10474 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10475 the XNEW-family equivalent.
8d749320
SM
10476 (compile_bytecodes): Likewise.
10477 * dll.c (loaded_dll): Likewise.
10478 * event-loop.c (append_callback_event): Likewise.
10479 (create_file_handler): Likewise.
10480 (create_file_event): Likewise.
10481 * hostio.c (handle_open): Likewise.
10482 * inferiors.c (add_thread): Likewise.
10483 (add_process): Likewise.
10484 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10485 * linux-arm-low.c (arm_new_process): Likewise.
10486 (arm_new_thread): Likewise.
10487 * linux-low.c (add_to_pid_list): Likewise.
10488 (linux_add_process): Likewise.
10489 (handle_extended_wait): Likewise.
10490 (add_lwp): Likewise.
10491 (enqueue_one_deferred_signal): Likewise.
10492 (enqueue_pending_signal): Likewise.
10493 (linux_resume_one_lwp_throw): Likewise.
10494 (linux_resume_one_thread): Likewise.
10495 (linux_read_memory): Likewise.
10496 (linux_write_memory): Likewise.
10497 * linux-mips-low.c (mips_linux_new_process): Likewise.
10498 (mips_linux_new_thread): Likewise.
10499 (mips_add_watchpoint): Likewise.
10500 * linux-x86-low.c (initialize_low_arch): Likewise.
10501 * lynx-low.c (lynx_add_process): Likewise.
10502 * mem-break.c (set_raw_breakpoint_at): Likewise.
10503 (set_breakpoint): Likewise.
10504 (add_condition_to_breakpoint): Likewise.
10505 (add_commands_to_breakpoint): Likewise.
10506 (clone_agent_expr): Likewise.
10507 (clone_one_breakpoint): Likewise.
10508 * regcache.c (new_register_cache): Likewise.
10509 * remote-utils.c (look_up_one_symbol): Likewise.
10510 * server.c (queue_stop_reply): Likewise.
10511 (start_inferior): Likewise.
10512 (queue_stop_reply_callback): Likewise.
10513 (handle_target_event): Likewise.
10514 * spu-low.c (fetch_ppc_memory): Likewise.
10515 (store_ppc_memory): Likewise.
10516 * target.c (set_target_ops): Likewise.
10517 * thread-db.c (thread_db_load_search): Likewise.
10518 (try_thread_db_load_1): Likewise.
10519 * tracepoint.c (add_tracepoint): Likewise.
10520 (add_tracepoint_action): Likewise.
10521 (create_trace_state_variable): Likewise.
10522 (cmd_qtdpsrc): Likewise.
10523 (cmd_qtro): Likewise.
10524 (add_while_stepping_state): Likewise.
10525 * win32-low.c (child_add_thread): Likewise.
10526 (get_image_name): Likewise.
10527
ed8b7b42
YQ
105282015-08-25 Yao Qi <yao.qi@linaro.org>
10529
10530 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10531
db3cb7cb
YQ
105322015-08-25 Yao Qi <yao.qi@linaro.org>
10533
10534 * Makefile.in (aarch64-linux.o): New rule.
10535 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10536 srv_tgtobj.
10537 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10538 (aarch64_init_debug_reg_state): Make it extern.
10539 (aarch64_linux_prepare_to_resume): Remove.
10540
f6011a1c
YQ
105412015-08-25 Yao Qi <yao.qi@linaro.org>
10542
10543 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10544 lwp_arch_private_info and ptid_of_lwp.
10545
88e2cf7e
YQ
105462015-08-25 Yao Qi <yao.qi@linaro.org>
10547
10548 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10549 Find proc_info by find_process_pid. All callers updated.
10550
5e35436e
YQ
105512015-08-25 Yao Qi <yao.qi@linaro.org>
10552
10553 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10554 Remove.
10555 (debug_reg_change_callback): Remove.
10556 (aarch64_notify_debug_reg_change): Remove.
10557
4a8a7965
YQ
105582015-08-25 Yao Qi <yao.qi@linaro.org>
10559
10560 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10561 Call current_lwp_ptid.
10562
32a271ee
YQ
105632015-08-25 Yao Qi <yao.qi@linaro.org>
10564
10565 * linux-aarch64-low.c (debug_reg_change_callback): Use
10566 debug_printf.
10567
0d51c8d7
YQ
105682015-08-25 Yao Qi <yao.qi@linaro.org>
10569
10570 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10571
31a43dd5
YQ
105722015-08-25 Yao Qi <yao.qi@linaro.org>
10573
10574 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10575
8ee52567
YQ
105762015-08-25 Yao Qi <yao.qi@linaro.org>
10577
10578 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10579 the code.
10580
ff3f0f45
YQ
105812015-08-25 Yao Qi <yao.qi@linaro.org>
10582
10583 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10584 Remove.
10585 (debug_reg_change_callback): Remove argument entry and add argument
10586 lwp. Remove local variable thread. Don't print thread id in the
10587 debugging output. Don't check whether pid of thread equals to pid.
10588 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10589 iterate_over_lwps instead find_inferior.
10590
3d40fbb5
PA
105912015-08-24 Pedro Alves <palves@redhat.com>
10592
10593 * inferiors.c (get_first_process): New function.
10594 * inferiors.h (get_first_process): New declaration.
10595 * remote-utils.c (read_ptid): Default to the first process in the
10596 list, instead of to the current thread's process.
10597
438e1e42
PA
105982015-08-24 Pedro Alves <palves@redhat.com>
10599
10600 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10601 * event-loop.c: Likewise.
10602 * remote-utils.c: Likewise.
10603 * tracepoint.c: Likewise.
10604
a8c6d4fc
PA
106052015-08-24 Pedro Alves <palves@redhat.com>
10606
10607 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10608 ptid_get_lwp.
10609
99b0bb12
PA
106102015-08-21 Pedro Alves <palves@redhat.com>
10611
10612 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10613 instead of literal 1.
10614
f8904751
PA
106152015-08-21 Pedro Alves <palves@redhat.com>
10616
10617 * tdesc.c (default_description): Explicitly zero-initialize.
10618
465a859e
PA
106192015-08-21 Pedro Alves <palves@redhat.com>
10620
10621 PR gdb/18749
10622 * inferiors.c (remove_thread): Discard any pending stop reply for
10623 this thread.
10624 * server.c (remove_all_on_match_pid): Rename to ...
10625 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10626 instead of a pid.
10627 (discard_queued_stop_replies): Change parameter to a ptid. Now
10628 extern.
10629 (handle_v_kill, kill_inferior_callback, captured_main)
10630 (process_serial_event): Adjust.
10631 * server.h (discard_queued_stop_replies): Declare.
10632
f0db101d
PA
106332015-08-21 Pedro Alves <palves@redhat.com>
10634
10635 * linux-low.c (wait_for_sigstop): Always switch to no thread
10636 selected if the previously current thread dies.
10637 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10638 process instead of the current thread's.
10639 * remote-utils.c (input_interrupt): Don't check if there's no
10640 current thread.
10641 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10642 current thread to the general thread fails, error out.
10643 (handle_qxfer_auxv, handle_qxfer_libraries)
10644 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10645 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10646 (handle_query): Check if there's a thread selected instead of
10647 checking whether there's any thread in the thread list.
10648 (handle_qxfer_threads, handle_qxfer_btrace)
10649 (handle_qxfer_btrace_conf): Don't error out early if there's no
10650 thread in the thread list.
10651 (handle_v_cont, myresume): Don't set the current thread to the
10652 continue thread.
10653 (process_serial_event) <Hg handling>: Also set thread_id if the
10654 previous general thread is still alive.
10655 (process_serial_event) <g/G handling>: If setting the current
10656 thread to the general thread fails, error out.
10657 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10658 thread's lwp instead of the current thread's.
10659 * target.c (set_desired_thread): If the desired thread was not
10660 found, leave the current thread pointing to NULL. Return an int
10661 (boolean) indicating success.
10662 * target.h (set_desired_thread): Change return type to int.
10663
40045d91
MF
106642015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10665
10666 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10667 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10668 #includes.
10669 (ps_get_thread_area): New function.
10670
45face3b
GB
106712015-08-19 Gary Benson <gbenson@redhat.com>
10672
10673 * hostio.c (handle_pread): Do not attempt to read more data
10674 than hostio_reply_with_data can fit in a packet.
10675
16d5f642
JB
106762015-08-18 Joel Brobecker <brobecker@adacore.com>
10677
10678 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10679
a738da3a
MF
106802015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10681
10682 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10683
33ebda9d
PA
106842015-08-06 Pedro Alves <palves@redhat.com>
10685
10686 * tracepoint.c (expr_eval_result): Now an int.
10687
a44892be
PA
106882015-08-06 Pedro Alves <palves@redhat.com>
10689
10690 * gdbthread.h (struct regcache): Forward declare.
10691 (struct thread_info) <regcache_data>: Now a struct regcache
10692 pointer.
10693 * inferiors.c (inferior_regcache_data)
10694 (set_inferior_regcache_data): Now work with struct regcache
10695 pointers.
10696 * inferiors.h (struct regcache): Forward declare.
10697 (inferior_regcache_data, set_inferior_regcache_data): Now work
10698 with struct regcache pointers.
10699 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10700 (free_register_cache_thread): Remove struct regcache pointer
10701 casts.
10702
608a1e46
PA
107032015-08-06 Pedro Alves <palves@redhat.com>
10704
10705 * server.c (captured_main): On error, print the exception message
10706 to stderr, and if run_once is set, throw a quit.
10707
f0ce0d3a
PA
107082015-08-06 Pedro Alves <palves@redhat.com>
10709
10710 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10711 the current thread.
10712
bf47e248
PA
107132015-08-06 Pedro Alves <palves@redhat.com>
10714
10715 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10716 reading beyond the passed in buffer length.
10717
b6b9ffcc
PL
107182015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10719
10720 * tracepoint.c (symbol_list) <required>: Remove.
10721
863d01bd
PA
107222015-08-06 Pedro Alves <palves@redhat.com>
10723
10724 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10725 count if stopping and suspending threads.
10726 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10727 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10728 (linux_detach): Complete an ongoing step-over.
10729 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10730 throughout.
10731 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10732 (linux_wait_1): If passing a signal to the inferior after
10733 finishing a step-over, unsuspend and re-resume all lwps. If we
10734 see a single-step event but the thread should be continuing, don't
10735 pass the trap to gdb.
10736 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10737 internal_error instead of gdb_assert.
10738 (enqueue_pending_signal): New function.
10739 (check_ptrace_stopped_lwp_gone): Add debug output.
10740 (start_step_over): Use internal_error instead of gdb_assert.
10741 (complete_ongoing_step_over): New function.
10742 (linux_resume_one_thread): Don't resume a suspended thread.
10743 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10744 it stepping.
10745
00db26fa
PA
107462015-08-06 Pedro Alves <palves@redhat.com>
10747
10748 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10749 (linux_thread_alive): Use lwp_is_marked_dead.
10750 (extended_event_reported): Delete.
10751 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10752 instead of extended_event_reported.
10753 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10754 as well.
10755 (lwp_is_marked_dead): New function.
10756 (lwp_running): Use lwp_is_marked_dead.
10757 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10758 comment.
10759
ad071a30
PA
107602015-08-06 Pedro Alves <palves@redhat.com>
10761
10762 * linux-low.c (linux_wait_1): Move fork event output out of the
10763 !report_to_gdb check. Pass event_child->waitstatus to
10764 target_waitstatus_to_string instead of ourstatus.
10765
524b57e6
YQ
107662015-08-04 Yao Qi <yao.qi@linaro.org>
10767
10768 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10769 if current_thread is 32 bit.
10770
6085d6f6
YQ
107712015-08-04 Yao Qi <yao.qi@linaro.org>
10772
10773 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10774 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10775 * server.c (extended_protocol): Remove "static".
10776 * server.h (extended_protocol): Declare it.
10777
8a7e4587
YQ
107782015-08-04 Yao Qi <yao.qi@linaro.org>
10779
10780 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10781 both aarch64 and aarch32.
10782 (aarch64_set_pc): Likewise.
10783
3b53ae99
YQ
107842015-08-04 Yao Qi <yao.qi@linaro.org>
10785
10786 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10787 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10788 arm-with-neon.xml to srv_xmlfiles.
10789 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10790 (is_64bit_tdesc): New function.
10791 (aarch64_linux_read_description): New function.
10792 (aarch64_arch_setup): Call aarch64_linux_read_description.
10793 (regs_info): Rename to regs_info_aarch64.
10794 (aarch64_regs_info): Return right regs_info.
10795 (initialize_low_arch): Call initialize_low_arch_aarch32.
10796
bd9e6534
YQ
107972015-08-04 Yao Qi <yao.qi@linaro.org>
10798
10799 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10800 * linux-aarch32-low.c: New file.
10801 * linux-aarch32-low.h: New file.
10802 * linux-arm-low.c (arm_fill_gregset): Move it to
10803 linux-aarch32-low.c.
10804 (arm_store_gregset): Likewise.
10805 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10806 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10807 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10808 (regs_info): Rename to regs_info_arm.
10809 (arm_regs_info): Return regs_info_aarch32 if
10810 have_ptrace_getregset is 1 and target description is
10811 arm_with_neon or arm_with_vfpv3.
10812 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10813 Call initialize_low_arch_aarch32 instead.
10814
ded48a5e
YQ
108152015-08-04 Yao Qi <yao.qi@linaro.org>
10816
10817 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10818 * linux-low.c: ... here.
10819 * linux-low.h (have_ptrace_getregset): Declare it.
10820
96e9210f
PA
108212015-08-04 Pedro Alves <palves@redhat.com>
10822
10823 * thread-db.c (struct thread_db): Use new typedefs.
10824 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10825 CHK calls.
10826 (disable_thread_event_reporting): Cast result of dlsym to
10827 destination function pointer type.
10828 (thread_db_mourn): Use td_ta_delete_ftype.
10829
af60a1ef
SL
108302015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10831
10832 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10833 arch variant.
10834 (CDX_BREAKPOINT): Define for R2.
10835 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10836 (the_low_target): Add comments.
10837
e8b41681
YQ
108382015-07-30 Yao Qi <yao.qi@linaro.org>
10839
10840 * linux-arm-low.c (arm_hwcap): Remove it.
10841 (arm_read_description): New local variable arm_hwcap. Don't
10842 set arm_hwcap to zero.
10843
89abb039
YQ
108442015-07-30 Yao Qi <yao.qi@linaro.org>
10845
10846 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10847 Use regcache->tdesc instead.
10848 (arm_store_wmmxregset): Likewise.
10849 (arm_fill_vfpregset): Likewise.
10850 (arm_store_vfpregset): Likewise.
10851
deca266c
YQ
108522015-07-30 Yao Qi <yao.qi@linaro.org>
10853
10854 * linux-arm-low.c: Include arch/arm.h.
10855 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10856 (arm_store_gregset): Likewise.
10857
aa58a496
SM
108582015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10859
10860 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10861 ptrace's 4th parameter.
10862
50904b25
YQ
108632015-07-27 Yao Qi <yao.qi@linaro.org>
10864
10865 * configure.srv (case aarch64*-*-linux*): Don't set
10866 srv_linux_usrregs.
10867
5826e159
PA
108682015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10869
10870 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10871 sys/ptrace.h.
10872 * linux-arm-low.c: Likewise.
10873 * linux-cris-low.c: Likewise.
10874 * linux-crisv32-low.c: Likewise.
10875 * linux-low.c: Likewise.
10876 * linux-m68k-low.c: Likewise.
10877 * linux-mips-low.c: Likewise.
10878 * linux-nios2-low.c: Likewise.
10879 * linux-s390-low.c: Likewise.
10880 * linux-sparc-low.c: Likewise.
10881 * linux-tic6x-low.c: Likewise.
10882 * linux-tile-low.c: Likewise.
10883 * linux-x86-low.c: Likewise.
10884
54019719
PA
108852015-07-24 Pedro Alves <palves@redhat.com>
10886
10887 * config.in: Regenerate.
10888 * configure: Regenerate.
10889
eb7aa561
PA
108902015-07-24 Pedro Alves <palves@redhat.com>
10891
10892 * acinclude.m4: Include ../ptrace.m4.
10893 * configure.ac: Call GDB_AC_PTRACE.
10894 * config.in, configure: Regenerate.
10895
55d7b841
YQ
108962015-07-24 Yao Qi <yao.qi@linaro.org>
10897
10898 * linux-low.c (linux_create_inferior): Remove setting to
10899 proc->priv->new_inferior.
10900 (linux_attach): Likewise.
10901 (linux_low_filter_event): Likewise.
10902 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10903
c06cbd92
YQ
109042015-07-24 Yao Qi <yao.qi@linaro.org>
10905
10906 * linux-low.c (linux_arch_setup): New function.
10907 (linux_low_filter_event): If proc->tdesc is NULL and
10908 proc->attached is true, call the_low_target.arch_setup.
10909 Otherwise, keep status pending, and return.
10910 (linux_resume_one_lwp_throw): Don't call get_pc if
10911 thread->while_stepping isn't NULL. Don't call
10912 get_thread_regcache if proc->tdesc is NULL.
10913 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10914 (linux_target_ops): Install arch_setup.
10915 * server.c (start_inferior): Call the_target->arch_setup.
10916 * target.h (struct target_ops) <arch_setup>: New field.
10917 (target_arch_setup): New marco.
10918 * lynx-low.c (lynx_target_ops): Update.
10919 * nto-low.c (nto_target_ops): Update.
10920 * spu-low.c (spu_target_ops): Update.
10921 * win32-low.c (win32_target_ops): Update.
10922
5ae3ebba
YQ
109232015-07-24 Yao Qi <yao.qi@linaro.org>
10924
10925 * linux-low.c (linux_add_process): Don't set
10926 proc->priv->new_inferior.
10927 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10928 (linux_attach): Likewise.
10929
eb97750b
YQ
109302015-07-24 Yao Qi <yao.qi@linaro.org>
10931
10932 * server.c (start_inferior): Code refactor.
10933
51aee833
YQ
109342015-07-24 Yao Qi <yao.qi@linaro.org>
10935
10936 * server.c (process_serial_event): Set general_thread.
10937
af1b22f3
YQ
109382015-07-21 Yao Qi <yao.qi@linaro.org>
10939
10940 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10941 aarch64_linux_get_debug_reg_capacity.
10942
554717a3
YQ
109432015-07-17 Yao Qi <yao.qi@linaro.org>
10944
10945 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10946 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10947 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10948 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10949 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10950 (AARCH64_HWP_ALIGNMENT): Likewise.
10951 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10952 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10953 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10954 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10955 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10956 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10957 (struct aarch64_debug_reg_state): Likewise.
10958 (struct arch_lwp_info): Likewise.
10959 (aarch64_align_watchpoint): Likewise.
10960 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10961 (aarch64_watchpoint_length): Likewise.
10962 (aarch64_point_encode_ctrl_reg): Likewise
10963 (aarch64_point_is_aligned): Likewise.
10964 (aarch64_align_watchpoint): Likewise.
10965 (aarch64_linux_set_debug_regs):
10966 (aarch64_dr_state_insert_one_point): Likewise.
10967 (aarch64_dr_state_remove_one_point): Likewise.
10968 (aarch64_handle_breakpoint): Likewise.
10969 (aarch64_handle_aligned_watchpoint): Likewise.
10970 (aarch64_handle_unaligned_watchpoint): Likewise.
10971 (aarch64_handle_watchpoint): Likewise.
10972
c67ca4de
YQ
109732015-07-17 Yao Qi <yao.qi@linaro.org>
10974
10975 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10976 and don't aarch64_get_debug_reg_state. All callers update.
10977 (aarch64_handle_aligned_watchpoint): Likewise.
10978 (aarch64_handle_unaligned_watchpoint): Likewise.
10979 (aarch64_handle_watchpoint): Likewise.
10980 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10981 (aarch64_remove_point): Likewise.
10982
25abf979
YQ
109832015-07-17 Yao Qi <yao.qi@linaro.org>
10984
10985 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10986 debug_printf.
10987 (aarch64_handle_unaligned_watchpoint): Likewise.
10988
db1ff28b
JK
109892015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10990
10991 Revert the previous 3 commits:
10992 Move gdb_regex* to common/
10993 Move linux_find_memory_regions_full & co.
10994 gdbserver build-id attribute generator
10995
700ca40f
JK
109962015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10997 Jan Kratochvil <jan.kratochvil@redhat.com>
10998
10999 gdbserver build-id attribute generator.
11000 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11001 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11002 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11003 (find_phdr): New.
11004 (get_dynamic): Use find_pdhr to traverse program headers.
11005 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11006 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11007 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11008 (get_hex_build_id): New.
11009 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11010 to reply XML document.
11011
9904185c
JK
110122015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11013 Jan Kratochvil <jan.kratochvil@redhat.com>
11014
11015 * target.c: Include target/target-utils.h and fcntl.h.
11016 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11017 (target_fileio_read_stralloc): New functions.
11018
6e5b4429
JK
110192015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11020
11021 * Makefile.in (OBS): Add gdb_regex.o.
11022 (gdb_regex.o): New.
11023 * config.in: Rebuilt.
11024 * configure: Rebuilt.
11025
ddc98fbf
JK
110262015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11027 Jan Kratochvil <jan.kratochvil@redhat.com>
11028
11029 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11030 * Makefile.in (OBS): Add target-utils.o.
11031 (linux-maps.o, target-utils.o): New.
11032 * configure.srv (srv_linux_obj): Add linux-maps.o.
11033
e57bb7a0
PL
110342015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11035
11036 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11037 function, return 1.
11038 (the_low_target): Install it.
11039
586b02a9
PA
110402015-07-14 Pedro Alves <palves@redhat.com>
11041
11042 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11043 Instead, ignore ECHILD, and throw an error for other errnos.
11044
58c1b36c
PA
110452015-07-10 Pedro Alves <palves@redhat.com>
11046
11047 * event-loop.c (struct callback_event) <data>: Change type to
11048 gdb_client_data instance instead of gdb_client_data pointer.
11049 (append_callback_event): Adjust.
11050
421530db
PL
110512015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11052
11053 * linux-aarch64-low.c: Add comments for each linux_target_ops
11054 method. Remove comments already covered in target_ops and
11055 linux_target_ops definitions.
11056 (the_low_target): Add comments for each unimplemented method.
11057
c2d65f38
YQ
110582015-07-09 Yao Qi <yao.qi@linaro.org>
11059
11060 * linux-aarch64-low.c (aarch64_regmap): Remove.
11061 (aarch64_usrregs_info): Remove.
11062 (regs_info): Set field usrregs to NULL.
11063
b20a6524
MM
110642015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11065
11066 * linux-low.c: Include "rsp-low.h"
11067 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11068 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11069 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11070 (handle_btrace_enable_pt): New.
11071 (handle_btrace_general_set): Support "pt".
11072 (handle_btrace_conf_general_set): Support "pt:size".
11073
96c97461
PL
110742015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11075
11076 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11077 Z_PACKET_SW_BP.
11078
37d66942
PL
110792015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11080
11081 * linux-aarch64-low.c: Remove comment about endianness.
11082 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11083 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11084 memcmp.
11085
dc06243f
GB
110862015-06-24 Gary Benson <gbenson@redhat.com>
11087
11088 * linux-i386-ipa.c (stdint.h): Do not include.
11089 * lynx-i386-low.c (stdint.h): Likewise.
11090 * lynx-ppc-low.c (stdint.h): Likewise.
11091 * mem-break.c (stdint.h): Likewise.
11092 * thread-db.c (stdint.h): Likewise.
11093 * tracepoint.c (stdint.h): Likewise.
11094 * win32-low.c (stdint.h): Likewise.
11095
124e13d9
SM
110962015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11097
11098 * server.c (write_qxfer_response): Update call to
11099 remote_escape_output.
11100
909c2cda
JK
111012015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11102 Jan Kratochvil <jan.kratochvil@redhat.com>
11103
11104 Merge multiple hex conversions.
11105 * gdbreplay.c (tohex): Rename to 'fromhex'.
11106 (logchar): Use fromhex.
11107
24c05f46
JK
111082015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11109
11110 * server.c (handle_qxfer_libraries): Set `version' attribute for
11111 <library-list>.
11112
14d2069a
GB
111132015-06-10 Gary Benson <gbenson@redhat.com>
11114
11115 * target.h (struct target_ops) <multifs_open>: New field.
11116 <multifs_unlink>: Likewise.
11117 <multifs_readlink>: Likewise.
11118 * linux-low.c (nat/linux-namespaces.h): New include.
11119 (linux_target_ops): Initialize the_target->multifs_open,
11120 the_target->multifs_unlink and the_target->multifs_readlink.
11121 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11122 * hostio.c (hostio_fs_pid): New static variable.
11123 (hostio_handle_new_gdb_connection): New function.
11124 (handle_setfs): Likewise.
11125 (handle_open): Use the_target->multifs_open as appropriate.
11126 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11127 (handle_readlink): Use the_target->multifs_readlink as
11128 appropriate.
11129 (handle_vFile): Handle vFile:setfs packets.
11130 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11131 after target_handle_new_gdb_connection.
11132
4b8b5e72
GB
111332015-06-10 Gary Benson <gbenson@redhat.com>
11134
11135 * configure.ac (AC_CHECK_FUNCS): Add setns.
11136 * config.in: Regenerate.
11137 * configure: Likewise.
11138 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11139 (linux-namespaces.o): New rule.
11140 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11141
3ac2e371
GB
111422015-06-09 Gary Benson <gbenson@redhat.com>
11143
11144 * hostio.c (handle_open): Process mode argument with
11145 fileio_to_host_mode.
11146
ca9b78ce
YQ
111472015-06-01 Yao Qi <yao.qi@linaro.org>
11148
11149 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11150 * linux-x86-low.c: Likewise.
11151
bfacd19d
DB
111522015-05-28 Don Breazeal <donb@codesourcery.com>
11153
11154 * linux-low.c (handle_extended_wait): Initialize
11155 thread_info.last_resume_kind for new fork children.
11156
452003ef
PA
111572015-05-15 Pedro Alves <palves@redhat.com>
11158
11159 * target.h (target_handle_new_gdb_connection): Rewrite using if
11160 wrapped in do/while.
11161
1041a03c
JB
111622015-05-14 Joel Brobecker <brobecker@adacore.com>
11163
11164 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11165 * configure, config.in: Regenerate.
11166 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11167 Declare typedef.
11168
c269dbdb
DB
111692015-05-12 Don Breazeal <donb@codesourcery.com>
11170
11171 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11172 PTRACE_EVENT_VFORK_DONE.
11173 (linux_low_ptrace_options, extended_event_reported): Add vfork
11174 events.
11175 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11176 and "vforkdone" for RSP 'T' Stop Reply Packet.
11177 * server.h (report_vfork_events): Declare
11178 global variable.
11179
3a8a0396
DB
111802015-05-12 Don Breazeal <donb@codesourcery.com>
11181
11182 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11183 (the_low_target) <new_fork>: Initialize new member.
11184 * linux-arm-low.c (arm_new_fork): New function.
11185 (the_low_target) <new_fork>: Initialize new member.
11186 * linux-low.c (handle_extended_wait): Call new target function
11187 new_fork.
11188 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11189 * linux-mips-low.c (mips_add_watchpoint): New function
11190 extracted from mips_insert_point.
11191 (the_low_target) <new_fork>: Initialize new member.
11192 (mips_linux_new_fork): New function.
11193 (mips_insert_point): Call mips_add_watchpoint.
11194 * linux-x86-low.c (x86_linux_new_fork): New function.
11195 (the_low_target) <new_fork>: Initialize new member.
11196
de0d863e
DB
111972015-05-12 Don Breazeal <donb@codesourcery.com>
11198
11199 * linux-low.c (handle_extended_wait): Implement return value,
11200 rename argument 'event_child' to 'event_lwp', handle
11201 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11202 (linux_low_ptrace_options): New function.
11203 (linux_low_filter_event): Call linux_low_ptrace_options,
11204 use different argument fo linux_enable_event_reporting,
11205 use return value from handle_extended_wait.
11206 (extended_event_reported): New function.
11207 (linux_wait_1): Call extended_event_reported and set
11208 status to report fork events.
11209 (linux_write_memory): Add pid to debug message.
11210 (reset_lwp_ptrace_options_callback): New function.
11211 (linux_handle_new_gdb_connection): New function.
11212 (linux_target_ops): Initialize new structure member.
11213 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11214 * lynx-low.c: Initialize new structure member.
11215 * remote-utils.c (prepare_resume_reply): Implement stop reason
11216 "fork" for "T" stop message.
11217 * server.c (handle_query): Call handle_new_gdb_connection.
11218 * server.h (report_fork_events): Declare global flag.
11219 * target.h (struct target_ops) <handle_new_gdb_connection>:
11220 New member.
11221 (target_handle_new_gdb_connection): New macro.
11222 * win32-low.c: Initialize new structure member.
11223
ddcbc397
DB
112242015-05-12 Don Breazeal <donb@codesourcery.com>
11225
11226 * mem-break.c (APPEND_TO_LIST): Define macro.
11227 (clone_agent_expr): New function.
11228 (clone_one_breakpoint): New function.
11229 (clone_all_breakpoints): New function.
11230 * mem-break.h: Declare new functions.
11231
89245bc0
DB
112322015-05-12 Don Breazeal <donb@codesourcery.com>
11233
11234 * linux-low.c (linux_supports_fork_events): New function.
11235 (linux_supports_vfork_events): New function.
11236 (linux_target_ops): Initialize new structure members.
11237 (initialize_low): Call linux_check_ptrace_features.
11238 * lynx-low.c (lynx_target_ops): Initialize new structure
11239 members.
11240 * server.c (report_fork_events, report_vfork_events):
11241 New global flags.
11242 (handle_query): Add new features to qSupported packet and
11243 response.
11244 (captured_main): Initialize new global variables.
11245 * target.h (struct target_ops) <supports_fork_events>:
11246 New member.
11247 <supports_vfork_events>: New member.
11248 (target_supports_fork_events): New macro.
11249 (target_supports_vfork_events): New macro.
11250 * win32-low.c (win32_target_ops): Initialize new structure
11251 members.
11252
835205d0
GB
112532015-05-12 Gary Benson <gbenson@redhat.com>
11254
11255 * server.c (handle_qxfer_exec_file): Use current process
11256 if annex is empty.
11257
21e94bd9
SL
112582015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11259
11260 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11261 Remove HAVE_PTRACE_GETREGS conditionals.
11262 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11263 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11264
45614f15
YQ
112652015-05-08 Yao Qi <yao.qi@linaro.org>
11266
11267 * linux-low.c (linux_supports_conditional_breakpoints): New
11268 function.
11269 (linux_target_ops): Install new target method.
11270 * lynx-low.c (lynx_target_ops): Install NULL hook for
11271 supports_conditional_breakpoints.
11272 * nto-low.c (nto_target_ops): Likewise.
11273 * spu-low.c (spu_target_ops): Likewise.
11274 * win32-low.c (win32_target_ops): Likewise.
11275 * server.c (handle_query): Check
11276 target_supports_conditional_breakpoints.
11277 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11278 New field.
11279 (target_supports_conditional_breakpoints): New macro.
11280
80ad801e
PA
112812015-05-06 Pedro Alves <palves@redhat.com>
11282
11283 PR server/18081
11284 * server.c (start_inferior): If the process exits, mourn it.
11285
819843c7
GB
112862015-04-21 Gary Benson <gbenson@redhat.com>
11287
11288 * hostio.c (fileio_open_flags_to_host): Factored out to
11289 fileio_to_host_openflags in common/fileio.c. Single use
11290 updated.
11291
a2d5a9d7
MF
112922015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11293
11294 * linux-xtensa-low.c (xtensa_fill_gregset)
11295 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11296 XCHAL_HAVE_LOOP.
11297
deb44829
MF
112982015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11299
11300 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11301 (regs_info): Replace usrregs pointer with NULL.
11302
e57f1de3
GB
113032015-04-17 Gary Benson <gbenson@redhat.com>
11304
11305 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11306 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11307 * server.c (handle_qxfer_exec_file): New function.
11308 (qxfer_packets): Add exec-file entry.
11309 (handle_query): Report qXfer:exec-file:read as supported packet.
11310
62828379
RN
113112015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11312
11313 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11314
b88bb450
GB
113152015-04-09 Gary Benson <gbenson@redhat.com>
11316
11317 * hostio-errno.c (errno_to_fileio_error): Remove function.
11318 Update caller to use remote_fileio_to_fio_error.
11319
c8f4bfdd
YQ
113202015-04-09 Yao Qi <yao.qi@linaro.org>
11321
11322 * linux-low.c (linux_insert_point): Call
11323 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11324 (linux_remove_point): Call remove_memory_breakpoint if type is
11325 raw_bkpt_type_sw.
11326 * linux-x86-low.c (x86_insert_point): Don't call
11327 insert_memory_breakpoint.
11328 (x86_remove_point): Don't call remove_memory_breakpoint.
11329
41f98f02
PA
113302015-04-01 Pedro Alves <palves@redhat.com>
11331 Cleber Rosa <crosa@redhat.com>
11332
11333 * server.c (gdbserver_usage): Reorganize and extend the usage
11334 message.
11335
2bf6fb9d
PA
113362015-03-24 Pedro Alves <palves@redhat.com>
11337
11338 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11339 output. Also dump TRAP_TRACE.
11340 (linux_low_filter_event): In debug output, distinguish a
11341 resume_stop SIGSTOP from a delayed SIGSTOP.
11342
369f6daa
GB
113432015-03-24 Gary Benson <gbenson@redhat.com>
11344
11345 * linux-x86-low.c (x86_linux_new_thread): Moved to
11346 nat/x86-linux.c.
11347 (x86_linux_prepare_to_resume): Likewise.
11348
8e5d4070
GB
113492015-03-24 Gary Benson <gbenson@redhat.com>
11350
11351 * Makefile.in (x86-linux-dregs.o): New rule.
11352 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11353 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11354 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11355 (x86_linux_dr_get): Likewise.
11356 (x86_linux_dr_set): Likewise.
11357 (update_debug_registers_callback): Likewise.
11358 (x86_linux_dr_set_addr): Likewise.
11359 (x86_linux_dr_get_addr): Likewise.
11360 (x86_linux_dr_set_control): Likewise.
11361 (x86_linux_dr_get_control): Likewise.
11362 (x86_linux_dr_get_status): Likewise.
11363 (x86_linux_update_debug_registers): Likewise.
11364
2b95d440
GB
113652015-03-24 Gary Benson <gbenson@redhat.com>
11366
11367 * linux-x86-low.c (x86_linux_update_debug_registers):
11368 New function, factored out from...
11369 (x86_linux_prepare_to_resume): ...this.
11370
14b0bc68
GB
113712015-03-24 Gary Benson <gbenson@redhat.com>
11372
11373 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11374 (x86_linux_dr_set): Likewise.
11375 (update_debug_registers_callback): Likewise.
11376 (x86_linux_dr_set_addr): Likewise.
11377 (x86_linux_dr_get_addr): Likewise.
11378 (x86_linux_dr_set_control): Likewise.
11379 (x86_linux_dr_get_control): Likewise.
11380 (x86_linux_dr_get_status): Likewise.
11381 (x86_linux_prepare_to_resume): Likewise.
11382
5dfe6ca8
GB
113832015-03-24 Gary Benson <gbenson@redhat.com>
11384
11385 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11386 Use perror_with_name. Pass string through gettext.
11387 (x86_linux_dr_set): Likewise.
11388
d33472ad
GB
113892015-03-24 Gary Benson <gbenson@redhat.com>
11390
11391 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11392 (x86_linux_dr_set_addr): ...this.
11393 (x86_dr_low_get_addr): Rename to...
11394 (x86_linux_dr_get_addr): ...this.
11395 (x86_dr_low_set_control): Rename to...
11396 (x86_linux_dr_set_control): ...this.
11397 (x86_dr_low_get_control): Rename to...
11398 (x86_linux_dr_get_control): ...this.
11399 (x86_dr_low_get_status): Rename to...
11400 (x86_linux_dr_get_status): ...this.
11401 (x86_dr_low): Update with new function names.
11402
4b134ca1
GB
114032015-03-24 Gary Benson <gbenson@redhat.com>
11404
11405 * Makefile.in (x86-linux.o): New rule.
11406 * configure.srv: Add x86-linux.o to relevant targets.
11407 * linux-low.c (lwp_set_arch_private_info): New function.
11408 (lwp_arch_private_info): Likewise.
11409 * linux-x86-low.c: Include nat/x86-linux.h.
11410 (arch_lwp_info): Removed structure.
11411 (update_debug_registers_callback):
11412 Use lwp_set_debug_registers_changed.
11413 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11414 and lwp_set_debug_registers_changed.
11415 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11416
34c703da
GB
114172015-03-24 Gary Benson <gbenson@redhat.com>
11418
11419 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11420 * linux-arm-low.c (arm_new_thread): Likewise.
11421 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11422 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11423 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11424 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11425
cff068da
GB
114262015-03-24 Gary Benson <gbenson@redhat.com>
11427
11428 * linux-low.c (ptid_of_lwp): New function.
11429 (lwp_is_stopped): Likewise.
11430 (lwp_stop_reason): Likewise.
11431 * linux-x86-low.c (update_debug_registers_callback):
11432 Use lwp_is_stopped.
11433 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11434 lwp_stop_reason.
11435
b2f7c7e8
GB
114362015-03-24 Gary Benson <gbenson@redhat.com>
11437
11438 * linux-low.h (linux_stop_lwp): Remove declaration.
11439
6d4ee8c6
GB
114402015-03-24 Gary Benson <gbenson@redhat.com>
11441
11442 * linux-low.h: Include nat/linux-nat.h.
11443 * linux-low.c (iterate_over_lwps_args): New structure.
11444 (iterate_over_lwps_filter): New function.
11445 (iterate_over_lwps): Likewise.
11446 * linux-x86-low.c (update_debug_registers_callback):
11447 Update signature to what iterate_over_lwps expects.
11448 Remove PID check that iterate_over_lwps now performs.
11449 (x86_dr_low_set_addr): Use iterate_over_lwps.
11450 (x86_dr_low_set_control): Likewise.
11451
70a0bb6b
GB
114522015-03-24 Gary Benson <gbenson@redhat.com>
11453
11454 * linux-x86-low.c (x86_debug_reg_state): New function.
11455 (x86_linux_prepare_to_resume): Use the above.
11456
7b669087
GB
114572015-03-24 Gary Benson <gbenson@redhat.com>
11458
11459 * linux-low.c (current_lwp_ptid): New function.
11460 * linux-x86-low.c: Include nat/linux-nat.h.
11461 (x86_dr_low_get_addr): Use current_lwp_ptid.
11462 (x86_dr_low_get_control): Likewise.
11463 (x86_dr_low_get_status): Likewise.
11464
eef49a3d
PA
114652015-03-20 Pedro Alves <palves@redhat.com>
11466
11467 * tracepoint.c (cmd_qtstatus): Make "str" const.
11468
b2333d22
PA
114692015-03-20 Pedro Alves <palves@redhat.com>
11470
11471 * server.c (handle_general_set): Make "req_str" const.
11472
23f238d3
PA
114732015-03-19 Pedro Alves <palves@redhat.com>
11474
11475 * linux-low.c (linux_resume_one_lwp): Rename to ...
11476 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11477 instead call perror_with_name.
11478 (check_ptrace_stopped_lwp_gone): New function.
11479 (linux_resume_one_lwp): Reimplement as wrapper around
11480 linux_resume_one_lwp_throw that swallows errors if the LWP is
11481 gone.
11482
91baf43f
PA
114832015-03-19 Pedro Alves <palves@redhat.com>
11484
11485 * linux-low.c (count_events_callback, select_event_lwp_callback):
11486 No longer check whether the thread has resume_stop as last resume
11487 kind.
11488
8bf3b159
PA
114892015-03-19 Pedro Alves <palves@redhat.com>
11490
11491 * linux-low.c (count_events_callback, select_event_lwp_callback):
11492 Use the lwp's status_pending_p field, not the thread's.
11493
b90fc188
PA
114942015-03-19 Pedro Alves <palves@redhat.com>
11495
11496 * linux-low.c (select_event_lwp_callback): Update comments to
11497 no longer mention SIGTRAP.
11498
464b0089
GB
114992015-03-18 Gary Benson <gbenson@redhat.com>
11500
11501 * server.c (handle_query): Do not report vFile:fstat as supported.
11502
aa9e327f
GB
115032015-03-11 Gary Benson <gbenson@redhat.com>
11504
11505 * hostio.c (sys/types.h): New include.
11506 (sys/stat.h): Likewise.
11507 (common-remote-fileio.h): Likewise.
11508 (handle_fstat): New function.
11509 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11510
791c0056
GB
115112015-03-11 Gary Benson <gbenson@redhat.com>
11512
11513 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11514 struct stat.st_blocks and struct stat.st_blksize.
11515 * configure: Regenerate.
11516 * config.in: Likewise.
11517 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11518 (OBS): Add common-remote-fileio.o.
11519 (common-remote-fileio.o): New rule.
11520
9a9df970
PA
115212015-03-09 Pedro Alves <palves@redhat.com>
11522
11523 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11524 'struct sockaddr' pointer in 'accept' call.
11525
9eb1356e
PA
115262015-03-09 Pedro Alves <palves@redhat.com>
11527
11528 Revert:
11529 2015-03-07 Pedro Alves <palves@redhat.com>
11530 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11531 or <winsock2.h> here. Instead include "gdb_socket.h".
11532 (remote_open): Use union gdb_sockaddr_u.
11533 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11534 or <winsock2.h> here. Instead include "gdb_socket.h".
11535 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11536 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11537 or <sys/un.h>.
11538 (init_named_socket, gdb_agent_helper_thread): Use union
11539 gdb_sockaddr_u.
11540
aac331e4
PA
115412015-03-07 Pedro Alves <palves@redhat.com>
11542
11543 * configure.ac (build_warnings): Move
11544 -Wdeclaration-after-statement to the C-specific set.
11545 * configure: Regenerate.
11546
366c75fc
PA
115472015-03-07 Pedro Alves <palves@redhat.com>
11548
11549 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11550 or <winsock2.h> here. Instead include "gdb_socket.h".
11551 (remote_open): Use union gdb_sockaddr_u.
11552 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11553 or <winsock2.h> here. Instead include "gdb_socket.h".
11554 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11555 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11556 or <sys/un.h>.
11557 (init_named_socket, gdb_agent_helper_thread): Use union
11558 gdb_sockaddr_u.
11559
492d29ea
PA
115602015-03-07 Pedro Alves <palves@redhat.com>
11561
11562 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11563 instead.
11564
60a191ed
YQ
115652015-03-06 Yao Qi <yao.qi@linaro.org>
11566
11567 * linux-aarch64-low.c (aarch64_insert_point): Use
11568 show_debug_regs as a boolean.
11569 (aarch64_remove_point): Likewise.
11570
f5771b1d
PA
115712015-03-05 Pedro Alves <palves@redhat.com>
11572
11573 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11574 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11575 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11576 * nto-low.c (nto_target_ops): Likewise.
11577 * spu-low.c (spu_target_ops): Likewise.
11578 * win32-low.c (win32_target_ops): Likewise.
11579
3e572f71
PA
115802015-03-04 Pedro Alves <palves@redhat.com>
11581
72f4393d 11582 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11583 Decide whether a breakpoint triggered based on the SIGTRAP's
11584 siginfo.si_code.
72f4393d
L
11585 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11586 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11587 (linux_low_filter_event): Check for breakpoints before checking
11588 watchpoints.
11589 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11590 siginfo.si_code.
72f4393d
L
11591 (linux_stopped_by_sw_breakpoint)
11592 (linux_supports_stopped_by_sw_breakpoint)
11593 (linux_stopped_by_hw_breakpoint)
11594 (linux_supports_stopped_by_hw_breakpoint): New functions.
11595 (linux_target_ops): Install new target methods.
3e572f71 11596
1ec68e26
PA
115972015-03-04 Pedro Alves <palves@redhat.com>
11598
11599 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11600 * server.c (swbreak_feature, hwbreak_feature): New globals.
11601 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11602 (captured_main): Clear swbreak_feature and hwbreak_feature.
11603 * server.h (swbreak_feature, hwbreak_feature): Declare.
11604 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11605 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11606 supports_stopped_by_hw_breakpoint>: New fields.
11607 (target_supports_stopped_by_sw_breakpoint)
11608 (target_stopped_by_sw_breakpoint)
11609 (target_supports_stopped_by_hw_breakpoint)
11610 (target_stopped_by_hw_breakpoint): Declare.
11611
15c66dd6
PA
116122015-03-04 Pedro Alves <palves@redhat.com>
11613
11614 enum lwp_stop_reason -> enum target_stop_reason
11615 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11616 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11617 (linux_wait_1, stuck_in_jump_pad_callback)
11618 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11619 (linux_stopped_by_watchpoint):
11620 * linux-low.h (enum lwp_stop_reason): Delete.
11621 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11622 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11623
98fc70d6
YQ
116242015-03-04 Yao Qi <yao.qi@linaro.org>
11625
11626 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11627
dd2ac174
GB
116282015-03-03 Gary Benson <gbenson@redhat.com>
11629
11630 * hostio.c (handle_vFile): Fix prefix lengths.
11631
d68e53f4
MM
116322015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11633
11634 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11635 ptr_bits.
11636
bf2d68ab
AA
116372015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11638
11639 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11640 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11641 (clean): Add "rm -f" for above C files.
11642 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11643 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11644 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11645 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11646 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11647 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11648 (init_registers_s390x_vx_linux64)
11649 (init_registers_s390x_tevx_linux64)
11650 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11651 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11652 declarations.
11653 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11654 (s390_store_vxrs_high): New functions.
11655 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11656 NT_S390_VXRS_HIGH.
11657 (s390_arch_setup): Add logic for selecting one of the new target
11658 descriptions. Activate the new vector regsets if applicable.
11659 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11660 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11661 and init_registers_s390x_tevx_linux64.
11662
c966a859
PA
116632015-03-01 Pedro Alves <palves@redhat.com>
11664
11665 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11666 parameter.
11667
4180215b
PA
116682015-02-27 Pedro Alves <palves@redhat.com>
11669
11670 * linux-x86-low.c (u_debugreg_offset): New function.
11671 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11672
749bab01
PA
116732015-02-27 Pedro Alves <palves@redhat.com>
11674
11675 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11676 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11677 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11678 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11679 (ps_lsetfpregs, ps_getpid)
11680 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11681 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11682 (ps_lsetxregs, ps_plog): Declare.
11683
3c14e5a3
PA
116842015-02-27 Pedro Alves <palves@redhat.com>
11685
11686 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11687 IP_AGENT_EXPORT_FUNC.
11688 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11689 IP_AGENT_EXPORT_FUNC.
11690 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11691 (IP_AGENT_EXPORT): Delete.
11692 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11693 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11694 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11695 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11696 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11697 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11698 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11699 (traceframe_read_count, traceframe_write_count)
11700 (traceframes_created, trace_state_variables, get_raw_reg)
11701 (get_trace_state_variable_value, set_trace_state_variable_value)
11702 (ust_loaded, helper_thread_id, cmd_buf): Use
11703 IPA_SYM_EXPORTED_NAME.
11704 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11705 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11706 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11707 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11708 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11709 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11710 EXTERN_C_PUSH/EXTERN_C_POP.
11711 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11712 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11713 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11714 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11715 (traceframe_write_count, traceframe_read_count)
11716 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11717 (about_to_request_buffer_space, get_trace_state_variable_value)
11718 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11719 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11720 EXTERN_C_PUSH/EXTERN_C_POP.
11721 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11722 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11723 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11724 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11725 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11726 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11727 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11728 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11729 Define.
11730 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11731 (IP_AGENT_EXPORT_VAR_DECL): Define.
11732 (tracing): Declare.
11733 (gdb_agent_get_raw_reg): Declare.
11734
fe978cb0
PA
117352015-02-27 Tom Tromey <tromey@redhat.com>
11736 Pedro Alves <palves@redhat.com>
11737
11738 Rename symbols whose names are reserved C++ keywords throughout.
11739
3bc3d82a
PA
117402015-02-27 Pedro Alves <palves@redhat.com>
11741
11742 * Makefile.in (COMPILER): New, get it from autoconf.
11743 (CXX): Get from autoconf instead.
11744 (COMPILE.pre): Use COMPILER.
11745 (CC-LD): Rename to ...
11746 (CC_LD): ... this. Use COMPILER.
11747 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11748 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11749 * acinclude.m4: Include build-with-cxx.m4.
11750 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11751 Disable -Werror by default if building in C++ mode.
11752 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11753 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11754 the C++ compiler. Save/restore CXXFLAGS too.
11755 * configure: Regenerate.
11756
07697489
PA
117572015-02-27 Pedro Alves <palves@redhat.com>
11758
11759 * acinclude.m4: Include libiberty.m4.
11760 * configure.ac: Call libiberty_INIT.
11761 * config.in, configure: Regenerate.
11762
9beb7c4e
PA
117632015-02-26 Pedro Alves <palves@redhat.com>
11764
11765 * linux-low.c (linux_wait_1): When incrementing the PC past a
11766 program breakpoint always use the_low_target.breakpoint_len as
11767 increment, rather than the maximum between that and
11768 the_low_target.decr_pc_after_break.
11769
8090aef2
PA
117702015-02-23 Pedro Alves <palves@redhat.com>
11771
11772 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11773 thread was doing a step-over; always adjust the PC if
11774 we stepped over a permanent breakpoint.
11775 (linux_wait_1): If we stepped over breakpoint that was on top of a
11776 permanent breakpoint, manually advance the PC past it.
11777
bc9540e8
PA
117782015-02-23 Pedro Alves <palves@redhat.com>
11779
11780 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11781 modes.
11782 (x86_fill_gregset, x86_store_gregset): Use it when handling
11783 $orig_eax.
11784
2db9a427
PA
117852015-02-20 Pedro Alves <palves@redhat.com>
11786
11787 * thread-db.c: Include "nat/linux-procfs.h".
11788 (thread_db_init): Skip listing new threads if the kernel supports
11789 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11790
afa8d396
PA
117912015-02-20 Pedro Alves <palves@redhat.com>
11792
11793 * linux-low.c (status_pending_p_callback): Use ptid_match.
11794
c9587f88
AT
117952015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11796
11797 PR breakpoints/16812
11798 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11799 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11800 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11801
b05ec7a5
AT
118022015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11803
11804 PR breakpoints/15956
11805 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11806
d33501a5
MM
118072015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11808
11809 * linux-low.c (linux_low_btrace_conf): Print size.
11810 * server.c (handle_btrace_conf_general_set): New.
11811 (hanle_general_set): Call handle_btrace_conf_general_set.
11812 (handle_query): Report Qbtrace-conf:bts:size as supported.
11813
f4abbc16
MM
118142015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11815
11816 * linux-low.c (linux_low_enable_btrace): Update parameters.
11817 (linux_low_btrace_conf): New.
11818 (linux_target_ops)<to_btrace_conf>: Initialize.
11819 * server.c (current_btrace_conf): New.
11820 (handle_btrace_enable): Rename to ...
11821 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11822 to target_enable_btrace. Update comment. Update users.
11823 (handle_qxfer_btrace_conf): New.
11824 (qxfer_packets): Add btrace-conf entry.
11825 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11826 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11827 (target_ops)<read_btrace_conf>: New.
11828 (target_enable_btrace): Update parameters.
11829 (target_read_btrace_conf): New.
11830
043c3577
MM
118312015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11832
11833 * server.c (handle_btrace_general_set): Remove call to
11834 target_supports_btrace.
11835 (supported_btrace_packets): New.
11836 (handle_query): Call supported_btrace_packets.
11837 * target.h: include btrace-common.h.
11838 (btrace_target_info): Removed.
11839 (supports_btrace, target_supports_btrace): Update parameters.
11840
734b0e4b
MM
118412015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11842
11843 * Makefile.in (SFILES): Add common/btrace-common.c.
11844 (OBS): Add common/btrace-common.o.
11845 (btrace-common.o): Add build rules.
11846 * linux-low: Include btrace-common.h.
11847 (linux_low_read_btrace): Use struct btrace_data. Call
11848 btrace_data_init and btrace_data_fini.
11849
d6c146e9
PA
118502015-02-06 Pedro Alves <palves@redhat.com>
11851
11852 * thread-db.c (find_new_threads_callback): Add debug output.
11853
20ba1ce6
PA
118542015-02-04 Pedro Alves <palves@redhat.com>
11855
11856 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11857 (resume_stopped_resumed_lwps): New function.
11858 (linux_wait_for_event_filtered): Use it.
11859
8cc73a39
SDJ
118602015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11861
11862 * Makefile.in (SFILES): Add linux-personality.c.
11863 (linux-personality.o): New rule.
11864 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11865 list of objects to be built.
11866 * linux-low.c: Include nat/linux-personality.h.
11867 (linux_create_inferior): Remove code to disable address space
11868 randomization (moved to ../nat/linux-personality.c). Create
11869 cleanup to disable address space randomization.
11870
fb23d554
SDJ
118712015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11872
11873 * Makefile.in (posix-strerror.o): New rule.
11874 (mingw-strerror.o): Likewise.
11875 * configure: Regenerated.
11876 * configure.ac: Source file ../common/common.host. Initialize new
11877 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11878
cdf43629
YQ
118792015-01-14 Yao Qi <yao@codesourcery.com>
11880
11881 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11882 (ppc-linux.o): New rule.
11883 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11884 * configure.ac: AC_CHECK_FUNCS(getauxval).
11885 * config.in: Re-generated.
11886 * configure: Re-generated.
11887 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11888 ppc64_64bit_inferior_p
11889
514c5338
YQ
118902015-01-14 Yao Qi <yao@codesourcery.com>
11891
11892 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11893 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11894 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11895 (PT_ORIG_R3, PT_TRAP): Likewise.
11896 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11897 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11898 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11899
3368c1e5
JB
119002015-01-10 Joel Brobecker <brobecker@adacore.com>
11901
11902 * i387-fp.c (i387_cache_to_xsave): In look over
11903 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11904 zmmh_low_space field by use of zmmh_high_space.
11905
582511be
PA
119062015-01-09 Pedro Alves <palves@redhat.com>
11907
11908 * linux-low.c (step_over_bkpt): Move higher up in the file.
11909 (handle_extended_wait): Don't store the stop_pc here.
11910 (get_stop_pc): Adjust comments and rename to ...
11911 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11912 stopped for a software breakpoint or hardware breakpoint.
11913 (thread_still_has_status_pending_p): New function.
11914 (status_pending_p_callback): Use
11915 thread_still_has_status_pending_p. If the event is no longer
11916 interesting, resume the LWP.
11917 (handle_tracepoints): Add assert.
11918 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11919 (wstatus_maybe_breakpoint): New function.
11920 (cancel_breakpoint): Delete function.
11921 (check_stopped_by_watchpoint): New function, factored out from
11922 linux_low_filter_event.
11923 (lp_status_maybe_breakpoint): Delete function.
11924 (linux_low_filter_event): Remove filter_ptid argument.
11925 Leave thread group exits pending here. Store the LWP's stop PC.
11926 Always leave events pending.
11927 (linux_wait_for_event_filtered): Pull all events out of the
11928 kernel, and leave them all pending.
11929 (count_events_callback, select_event_lwp_callback): Consider all
11930 events.
11931 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11932 (select_event_lwp): Only give preference to the stepping LWP in
11933 all-stop mode. Adjust comments.
11934 (ignore_event): New function.
11935 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11936 references to cancel_breakpoints. Adjust to renames. Also give
11937 equal priority to all LWPs that have had events in non-stop mode.
11938 If reporting a software breakpoint event, unadjust the LWP's PC.
11939 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11940 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11941 Adjust.
11942 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11943 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11944 (linux_stopped_by_watchpoint): Adjust.
11945 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11946 * linux-low.h (enum lwp_stop_reason): New.
11947 (struct lwp_info) <stop_pc>: Adjust comment.
11948 <stopped_by_watchpoint>: Delete field.
11949 <stop_reason>: New field.
11950 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11951 * mem-break.c (software_breakpoint_inserted_here)
11952 (hardware_breakpoint_inserted_here): New function.
11953 * mem-break.h (software_breakpoint_inserted_here)
11954 (hardware_breakpoint_inserted_here): Declare.
11955 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11956 (cancel_breakpoints): Delete.
11957 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11958 (upload_fast_traceframes): Remove references to
11959 cancel_breakpoints.
11960
a33e3959
PA
119612015-01-09 Pedro Alves <palves@redhat.com>
11962
11963 * thread-db.c (find_new_threads_callback): Ignore thread if the
11964 kernel thread ID is -1.
11965
8784d563
PA
119662015-01-09 Pedro Alves <palves@redhat.com>
11967
11968 * linux-low.c (linux_attach_fail_reason_string): Move to
11969 nat/linux-ptrace.c, and rename.
11970 (linux_attach_lwp): Update comment.
11971 (attach_proc_task_lwp_callback): New function.
11972 (linux_attach): Adjust to rename and use
11973 linux_proc_attach_tgid_threads.
11974 (linux_attach_fail_reason_string): Delete declaration.
11975
76f2b779
JB
119762015-01-01 Joel Brobecker <brobecker@adacore.com>
11977
11978 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11979 * server.c (gdbserver_version): Likewise.
11980
fafcc06a
SDJ
119812014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11982
11983 * remote-utils.c: Include ctype.h.
11984 (input_interrupt): Explicitly handle the case when the char
11985 received is the NUL byte. Improve the printing of non-ASCII
11986 characters.
11987
beed38b8
JB
119882014-12-16 Joel Brobecker <brobecker@adacore.com>
11989
11990 * linux-low.c (linux_low_filter_event): Update call to
11991 linux_enable_event_reporting following the addition of
11992 a new parameter to that function.
11993
bf330350
CU
119942014-12-16 Catalin Udma <catalin.udma@freescale.com>
11995
11996 PR server/17457
11997 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11998 (AARCH64_FPCR_REGNO): Likewise.
11999 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12000 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12001 (aarch64_store_fpregset): Likewise.
12002
5227d625
JB
120032014-12-15 Joel Brobecker <brobecker@adacore.com>
12004
12005 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12006 Remove FIXME comment about assumption about N.
12007
f93b65a0
JB
120082014-12-13 Joel Brobecker <brobecker@adacore.com>
12009
12010 * configure.ac: If large-file support is disabled in GDBserver,
12011 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12012 * configure: Regenerate.
12013
e5a9158d
AA
120142014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12015
12016 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12017 warning upon ENODATA from ptrace.
12018 * linux-s390-low.c (s390_store_tdb): New.
12019 (s390_regsets): Add regset for NT_S390_TDB.
12020
feea5f36
AA
120212014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12022
12023 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12024 without a fill_function.
12025 * linux-s390-low.c (s390_fill_last_break): Remove.
12026 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12027 (s390_arch_setup): Use regset's size instead of fill_function for
12028 loop end condition.
12029
098dbe61
AA
120302014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12031
12032 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12033 the regset's store function when ptrace returned an error.
12034 * regcache.c (get_thread_regcache): Invalidate register cache
12035 before fetching inferior's registers.
12036
28eef672
AA
120372014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12038
12039 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12040 while-loop as for-loop.
12041 (regsets_store_inferior_registers): Likewise.
12042
bdca27a2
YQ
120432014-11-28 Yao Qi <yao@codesourcery.com>
12044
12045 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12046 * config.in, configure: Re-generate.
12047 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12048 is defined.
12049
9c232dda
YQ
120502014-11-21 Yao Qi <yao@codesourcery.com>
12051
12052 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12053 (AC_CHECK_HEADERS): Remove malloc.h.
12054 * configure: Re-generated.
12055 * config.in: Re-generated.
12056 * server.h: Don't include alloca.h and malloc.h.
12057 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12058 Don't include malloc.h.
12059
43968415
JB
120602014-11-17 Joel Brobecker <brobecker@adacore.com>
12061
12062 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12063 corresponding ERRNO check in same block.
12064
40e91bc7
PA
120652014-11-12 Pedro Alves <palves@redhat.com>
12066
12067 * server.c (cont_thread): Update comment.
12068 (start_inferior, attach_inferior): No longer clear cont_thread.
12069 (handle_v_cont): No longer set cont_thread.
12070 (captured_main): Clear cont_thread each time a GDB connects.
12071
c2c118cf
PA
120722014-11-12 Pedro Alves <palves@redhat.com>
12073
12074 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12075 thread, and don't resume all threads if the Hc thread has exited.
12076
78708b7c
PA
120772014-11-12 Pedro Alves <palves@redhat.com>
12078
12079 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12080 the process group instead of to a specific LWP.
12081
a2abc7de
PA
120822014-10-15 Pedro Alves <palves@redhat.com>
12083
12084 PR server/17487
12085 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12086 parameter.
12087 (arm_set_thread_context): Delete.
12088 (the_low_target): Adjust.
12089 * win32-i386-low.c (debug_registers_changed)
12090 (debug_registers_used): Delete.
12091 (update_debug_registers_callback): New function.
12092 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12093 needing to update their debug registers.
12094 (win32_get_current_dr): New function.
12095 (x86_dr_low_get_addr, x86_dr_low_get_control)
12096 (x86_dr_low_get_status): Fetch the debug register from the thread
12097 record's context.
12098 (i386_initial_stuff): Adjust.
12099 (i386_get_thread_context): Remove current_event parameter. Don't
12100 clear debug_registers_changed nor copy DR values to
12101 debug_reg_state.
12102 (i386_set_thread_context): Delete.
12103 (i386_prepare_to_resume): New function.
12104 (i386_thread_added): Mark the thread as needing to update irs
12105 debug registers.
12106 (the_low_target): Remove i386_set_thread_context and install
12107 i386_prepare_to_resume.
12108 * win32-low.c (win32_get_thread_context): Adjust.
12109 (win32_set_thread_context): Use SetThreadContext
12110 directly.
12111 (win32_prepare_to_resume): New function.
12112 (win32_require_context): New function, factored out from ...
12113 (thread_rec): ... this.
12114 (continue_one_thread): Call win32_prepare_to_resume on each thread
12115 we're about to continue.
12116 (win32_resume): Call win32_prepare_to_resume on the event thread.
12117 * win32-low.h (struct win32_thread_info)
12118 <debug_registers_changed>: New field.
12119 (struct win32_target_ops): Change prototype of set_thread_context,
12120 delete set_thread_context and add prepare_to_resume.
12121 (win32_require_context): New declaration.
12122
a442d071
GB
121232014-10-08 Gary Benson <gbenson@redhat.com>
12124
12125 * server.h: Do not include common-exceptions.h.
12126
6f1947e8
GB
121272014-10-08 Gary Benson <gbenson@redhat.com>
12128
12129 * server.h: Do not include cleanups.h.
12130
63b434a4
JH
121312014-09-30 James Hogan <james.hogan@imgtec.com>
12132
12133 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12134 mips64-dsp-linux.c.
12135
c4d9ceb6
YQ
121362014-09-23 Yao Qi <yao@codesourcery.com>
12137
12138 * linux-low.c (lp_status_maybe_breakpoint): New function.
12139 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12140 (count_events_callback): Likewise.
12141 (select_event_lwp_callback): Likewise.
12142 (cancel_breakpoints_callback): Likewise.
12143
89a5711c
DB
121442014-09-19 Don Breazeal <donb@codesourcery.com>
12145
12146 * linux-low.c (handle_extended_wait): Call
12147 linux_ptrace_get_extended_event.
12148 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12149 linux_is_extended_waitstatus.
12150
bffc0964
JB
121512014-09-16 Joel Brobecker <brobecker@adacore.com>
12152
12153 * Makefile.in (CPPFLAGS): Define.
12154 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12155 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12156
0bfdf32f
GB
121572014-09-16 Gary Benson <gbenson@redhat.com>
12158
12159 * inferiors.h (current_inferior): Renamed as...
12160 (current_thread): New variable. All uses updated.
12161 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12162 (maybe_move_out_of_jump_pad): Likewise.
12163 (cancel_breakpoint): Likewise.
12164 (linux_low_filter_event): Likewise.
12165 (wait_for_sigstop): Likewise.
12166 (linux_resume_one_lwp): Likewise.
12167 (need_step_over_p): Likewise.
12168 (start_step_over): Likewise.
12169 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12170 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12171 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12172 and save_inferior as saved_thread.
12173 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12174 saved_thread.
12175 (regcache_invalidate_thread): Likewise.
12176 * remote-utils.c (prepare_resume_reply): Likewise.
12177 * thread-db.c (thread_db_get_tls_address): Likewise.
12178 (disable_thread_event_reporting): Likewise.
12179 (remove_thread_event_breakpoints): Likewise.
12180 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12181 as saved_thread.
12182 * target.h (set_desired_inferior): Renamed as...
12183 (set_desired_thread): New declaration. All uses updated.
12184 * server.c (myresume): Updated comment to reference thread instead
12185 of inferior.
12186 (handle_serial_event): Likewise.
12187 (handle_target_event): Likewise.
12188
361c8ade
GB
121892014-09-12 Tom Tromey <tromey@redhat.com>
12190 Gary Benson <gbenson@redhat.com>
12191
12192 * regcache.h: Include common-regcache.h.
12193 (regcache_read_pc): Don't declare.
12194 * regcache.c (get_thread_regcache_for_ptid): New function.
12195
bd9269f7
GB
121962014-09-11 Tom Tromey <tromey@redhat.com>
12197 Gary Benson <gbenson@redhat.com>
12198
12199 * symbol.c: New file.
12200 * Makefile.in (SFILES): Add symbol.c.
12201 (OBS): Add symbol.o.
12202
f8c1d06b
GB
122032014-09-11 Gary Benson <gbenson@redhat.com>
12204
12205 * target.c (target_stop_ptid, target_continue_ptid): New
12206 functions.
12207
721ec300
GB
122082014-09-11 Tom Tromey <tromey@redhat.com>
12209 Gary Benson <gbenson@redhat.com>
12210
12211 * target.h: Include target/target.h.
12212 * target.c (target_read_memory, target_read_uint32)
12213 (target_write_memory): New functions.
12214
c5e92cca
GB
122152014-09-11 Gary Benson <gbenson@redhat.com>
12216
12217 * server.h (debug_hw_points): Don't declare.
12218 * server.c (debug_hw_points): Don't define. Replace all uses
12219 with show_debug_regs.
12220 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12221 all uses with show_debug_regs.
12222
2e4bb98a
EBM
122232014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12224
12225 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12226 endianness into account.
12227 (ppc_supply_ptrace_register): Likewise.
12228
ac740bc7
JH
122292014-09-03 James Hogan <james.hogan@imgtec.com>
12230
12231 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12232 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12233
97ea6506
GB
122342014-09-03 Gary Benson <gbenson@redhat.com>
12235
12236 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12237 ALL_DEBUG_ADDRESS_REGISTERS.
12238
df7e5265
GB
122392014-09-02 Gary Benson <gbenson@redhat.com>
12240
12241 * i386-low.h: Renamed as...
12242 * x86-low.h: New file. All type, function and variable name
12243 prefixes changed from "i386_" to "x86_". All references updated.
12244 * i386-low.c: Renamed as...
12245 * x86-low.c: New file. All type, function and variable name
12246 prefixes changed from "i386_" to "x86_". All references updated.
12247
ed859da7
GB
122482014-09-02 Gary Benson <gbenson@redhat.com>
12249
12250 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12251 (x86_linux_new_thread): Likewise.
12252
860789c7
GB
122532014-08-29 Gary Benson <gbenson@redhat.com>
12254
12255 * server.h (setjmp.h): Do not include.
12256 (toplevel): Do not declare.
12257 (common-exceptions.h): Include.
12258 (cleanups.h): Likewise.
12259 * server.c (toplevel): Do not define.
12260 (exit_code): New static global.
12261 (detach_or_kill_for_exit_cleanup): New function.
12262 (main): New function. Original main renamed to...
12263 (captured_main): New function.
12264 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12265
ff55e1b5
GB
122662014-08-29 Gary Benson <gbenson@redhat.com>
12267
12268 * Makefile.in (SFILES): Add common/common-exceptions.c.
12269 (OBS): Add common-exceptions.o.
12270 (common-exceptions.o): New rule.
12271 * utils.c (prepare_to_throw_exception): New function.
12272
e9bcb658
GB
122732014-08-29 Gary Benson <gbenson@redhat.com>
12274
12275 * config.in: Regenerate.
12276 * configure: Likewise.
12277
e3180625
GB
122782014-08-29 Gary Benson <gbenson@redhat.com>
12279
12280 * Makefile.in (SFILES): Add common/cleanups.c.
12281 (OBS): cleanups.o.
12282 (cleanups.o): New rule.
12283
e3d6ba5d
GB
122842014-08-29 Gary Benson <gbenson@redhat.com>
12285
12286 * utils.c (internal_vwarning): New function.
12287
7096e886
GB
122882014-08-28 Gary Benson <gbenson@redhat.com>
12289
12290 * utils.h (fatal): Remove declaration.
12291 * utils.c (fatal): Remove function.
12292
14ce3192
GB
122932014-08-28 Gary Benson <gbenson@redhat.com>
12294
12295 * tracepoint.c (gdb_agent_init): Replace fatal with
12296 perror_with_name.
12297 (initialize_tracepoint): Likewise.
12298
50278d59
GB
122992014-08-28 Gary Benson <gbenson@redhat.com>
12300
12301 * remote-utils.c (remote_prepare): Replace fatal with error.
12302
aa96c426
GB
123032014-08-28 Gary Benson <gbenson@redhat.com>
12304
12305 * linux-low.c (linux_async): Replace fatal with warning.
12306 Tidy up and return.
12307 (linux_start_non_stop): Return -1 if linux_async failed.
12308
f7160e97
GB
123092014-08-28 Gary Benson <gbenson@redhat.com>
12310
12311 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12312 gdb_assert.
12313 (i386_dr_low_get_addr): Remove vague comment.
12314 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12315 gdb_assert.
12316
38e08fca
GB
123172014-08-28 Gary Benson <gbenson@redhat.com>
12318
12319 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12320 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12321 internal_error.
12322 (linux_resume_one_lwp): Likewise.
12323 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12324 gdb_assert.
12325 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12326 with internal_error.
12327 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12328 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12329 (find_register_by_name): Replace fatal with internal_error.
12330 (find_regno): Likewise.
12331 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12332 * thread-db.c (thread_db_create_event): Likewise.
12333 (thread_db_load_search): Likewise.
12334 (try_thread_db_load_1): Likewise.
12335 * tracepoint.c (get_jump_space_head): Replace fatal with
12336 internal_error.
12337 (claim_trampoline_space): Likewise.
12338 (have_fast_tracepoint_trampoline_buffer): Likewise.
12339 (cmd_qtstart): Likewise.
12340 (stop_tracing): Likewise.
12341 (fast_tracepoint_collecting): Likewise.
12342 (target_malloc): Likewise.
12343 (download_tracepoint): Likewise.
12344 (download_trace_state_variables): Replace check with gdb_assert.
12345 (upload_fast_traceframes): Replace fatal with internal_error.
12346
34abf635
GB
123472014-08-19 Tom Tromey <tromey@redhat.com>
12348 Gary Benson <gbenson@redhat.com>
12349
12350 * Makefile.in (SFILES): Add common/common-debug.c.
12351 (OBS): Add common-debug.o.
12352 (common-debug.o): New rule.
12353 * debug.h (debug_printf): Don't declare.
12354 * debug.c (debug_printf): Renamed and rewritten as...
12355 (debug_vprintf): New function.
12356
f6e94d78
GB
123572014-08-19 Gary Benson <gbenson@redhat.com>
12358
12359 * utils.h: Do not include print-utils.h.
12360
9239eeab
GB
123612014-08-19 Tom Tromey <tromey@redhat.com>
12362 Gary Benson <gbenson@redhat.com>
12363
12364 * server.h: Add static assertion.
12365 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12366
ef87c8bb
GB
123672014-08-19 Tom Tromey <tromey@redhat.com>
12368 Gary Benson <gbenson@redhat.com>
12369
12370 * Makefile.in (SFILES): Add common/errors.c.
12371 (OBS): Add errors.o.
12372 (IPA_OBS): Add errors-ipa.o.
12373 (errors.o): New rule.
12374 (errors-ipa.o): Likewise.
12375 * utils.h (perror_with_name, error, warning): Don't declare.
12376 * utils.c (warning): Renamed and rewritten as...
12377 (vwarning): New function.
12378 (error): Renamed and rewritten as...
12379 (verror): New function.
12380 (internal_error): Renamed and rewritten as...
12381 (internal_verror): New function.
12382
bb974a24
GB
123832014-08-07 Gary Benson <gbenson@redhat.com>
12384
12385 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12386 * configure: Regenerate.
12387 * config.in: Likewise.
12388 * server.h: Do not include errno.h.
12389 * event-loop.c: Likewise.
12390 * hostio-errno.c: Likewise.
12391 * linux-low.c: Likewise.
12392 * remote-utils.c: Likewise.
12393 * spu-low.c: Likewise.
12394 * utils.c: Likewise.
12395 * gdbreplay.c: Unconditionally include errno.h.
12396
6d3d12eb
GB
123972014-08-07 Gary Benson <gbenson@redhat.com>
12398
12399 * server.h: Do not include string.h.
12400 * event-loop.c: Likewise.
12401 * linux-low.c: Likewise.
12402 * regcache.c: Likewise.
12403 * remote-utils.c: Likewise.
12404 * spu-low.c: Likewise.
12405 * utils.c: Likewise.
12406
dccbb609
GB
124072014-08-07 Gary Benson <gbenson@redhat.com>
12408
12409 * server.h: Do not include gdb_assert.h.
12410
e76df0d0
GB
124112014-08-07 Gary Benson <gbenson@redhat.com>
12412
12413 * server.h: Do not include common-utils.h.
12414
4cb9c816
GB
124152014-08-07 Gary Benson <gbenson@redhat.com>
12416
12417 * server.h: Do not include ptid.h.
12418 * notif.h: Likewise.
12419
3995eeee
GB
124202014-08-07 Gary Benson <gbenson@redhat.com>
12421
12422 * server.h: Do not include gdb_locale.h.
12423
cb9f1a9b
GB
124242014-08-07 Gary Benson <gbenson@redhat.com>
12425
12426 * server.h: Do not include gdb/signals.h.
12427 * win32-low.c: Likewise.
12428
a5fceff8
GB
124292014-08-07 Gary Benson <gbenson@redhat.com>
12430
12431 * server.h: Do not include pathmax.h.
12432
b9391142
GB
124332014-08-07 Gary Benson <gbenson@redhat.com>
12434
12435 * server.h: Do not include libiberty.h.
12436 * linux-bfin-low.c: Likewise.
12437
0e443c87
GB
124382014-08-07 Gary Benson <gbenson@redhat.com>
12439
12440 * server.h: Do not include ansidecl.h.
12441
8ebb3f56
GB
124422014-08-07 Gary Benson <gbenson@redhat.com>
12443
12444 * linux-x86-low.c: Do not include stddef.h.
12445 * lynx-ppc-low.c: Likewise.
12446 * tracepoint.c: Likewise.
12447
8980bdf6
GB
124482014-08-07 Gary Benson <gbenson@redhat.com>
12449
12450 * server.h: Do not include stdarg.h.
12451 * nto-low.c: Likewise.
12452
d7096f71
GB
124532014-08-07 Gary Benson <gbenson@redhat.com>
12454
12455 * server.h: Do not include stdlib.h.
12456 * inferiors.c: Likewise.
12457 * linux-low.c: Likewise.
12458 * regcache.c: Likewise.
12459 * spu-low.c: Likewise.
12460 * tracepoint.c: Likewise.
12461 * utils.c: Likewise.
12462
d02f550d
GB
124632014-08-07 Gary Benson <gbenson@redhat.com>
12464
12465 * server.h: Do not include stdio.h.
12466 * linux-low.c: Likewise.
12467 * remote-utils.c: Likewise.
12468 * spu-low.c: Likewise.
12469 * utils.c: Likewise.
12470 * wincecompat.c: Likewise.
12471
87f6c4e3
GB
124722014-08-06 Gary Benson <gbenson@redhat.com>
12473
12474 * regcache.c (init_register_cache): Move conditionals inside if.
12475
7089dca4
GB
124762014-08-06 Gary Benson <gbenson@redhat.com>
12477
12478 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12479
462f517e
GB
124802014-07-31 Gary Benson <gbenson@redhat.com>
12481
12482 * ax.h: Do not include server.h.
12483 * gdbthread.h: Likewise.
12484 * lynx-low.h: Likewise.
12485 * notif.h: Likewise.
12486
976411d6
GB
124872014-07-30 Gary Benson <gbenson@redhat.com>
12488
12489 * server.h: Include common-defs.h.
12490 Do not include config.h or build-gnulib-gdbserver/config.h.
12491
d41f6d8e
GB
124922014-07-30 Gary Benson <gbenson@redhat.com>
12493
12494 * hostio-errno.c: Move server.h to top of includes list.
12495 * inferiors.c: Likewise.
12496 * linux-x86-low.c: Likewise.
12497 * notif.c: Include server.h.
12498
314c6a35
TT
124992014-07-24 Tom Tromey <tromey@redhat.com>
12500 Gary Benson <gbenson@redhat.com>
12501
12502 * server.h (CORE_ADDR): Now unsigned.
12503
69ff6be5
PA
125042014-07-16 Pedro Alves <palves@redhat.com>
12505
12506 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12507
ce9e3fe7
PA
125082014-07-15 Pedro Alves <palves@redhat.com>
12509
12510 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12511 copy.
12512
e76126e8
PA
125132014-07-11 Pedro Alves <palves@redhat.com>
12514
12515 * linux-low.c (kill_wait_lwp): New function, based on
12516 kill_one_lwp_callback, but use my_waitpid directly.
12517 (kill_one_lwp_callback, linux_kill): Use it.
12518
8e9db26e
PA
125192014-06-23 Pedro Alves <palves@redhat.com>
12520
12521 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12522 before setting DR0..DR3.
12523
698b3e08
GB
125242014-06-20 Gary Benson <gbenson@redhat.com>
12525
12526 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12527 * configure: Regenerated.
12528 * config.in: Likewise.
12529
125f8a3d
GB
125302014-06-20 Gary Benson <gbenson@redhat.com>
12531
12532 * Makefile.in (SFILES): Update locations for files moved
12533 from common to nat.
12534 (object file files): Reordered.
12535
42995dbd
GB
125362014-06-20 Gary Benson <gbenson@redhat.com>
12537
12538 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12539 (i386_dr_low_set_addr): Likewise.
12540 (i386_dr_low_get_addr): Likewise.
12541 (i386_dr_low_can_set_control): Likewise.
12542 (i386_dr_low_set_control): Likewise.
12543 (i386_dr_low_get_control): Likewise.
12544 (i386_dr_low_get_status): Likewise.
12545 (i386_get_debug_register_length): Likewise.
12546 * linux-x86-low.c (i386_dr_low_set_addr):
12547 Changed signature. Made static.
12548 (i386_dr_low_get_addr): Likewise.
12549 (i386_dr_low_set_control): Likewise.
12550 (i386_dr_low_get_control): Likewise.
12551 (i386_dr_low_get_status): Likewise.
12552 (i386_dr_low): New global variable.
12553 * win32-i386-low.c (i386_dr_low_set_addr):
12554 Changed signature. Made static.
12555 (i386_dr_low_get_addr): Likewise.
12556 (i386_dr_low_set_control): Likewise.
12557 (i386_dr_low_get_control): Likewise.
12558 (i386_dr_low_get_status): Likewise.
12559 (i386_dr_low): New global variable.
12560
e1d2394b
MS
125612014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12562
12563 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12564 * Makefile.in (AR, AR_FLAGS): Define.
12565 * configure: Regenerate.
12566
3a8ee006
GB
125672014-06-19 Gary Benson <gbenson@redhat.com>
12568
12569 * Makefile.in (i386-dregs.o): New rule.
12570 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12571 * i386-low.c (target.h): Remove include.
12572 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12573 (DR_CONTROL_SHIFT): Likewise.
12574 (DR_CONTROL_SIZE): Likewise.
12575 (DR_RW_EXECUTE): Likewise.
12576 (DR_RW_WRITE): Likewise.
12577 (DR_RW_READ): Likewise.
12578 (DR_RW_IORW): Likewise.
12579 (DR_LEN_1): Likewise.
12580 (DR_LEN_2): Likewise.
12581 (DR_LEN_4): Likewise.
12582 (DR_LEN_8): Likewise.
12583 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12584 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12585 (DR_ENABLE_SIZE): Likewise.
12586 (DR_LOCAL_SLOWDOWN): Likewise.
12587 (DR_GLOBAL_SLOWDOWN): Likewise.
12588 (DR_CONTROL_RESERVED): Likewise.
12589 (I386_DR_CONTROL_MASK): Likewise.
12590 (I386_DR_VACANT): Likewise.
12591 (I386_DR_LOCAL_ENABLE): Likewise.
12592 (I386_DR_GLOBAL_ENABLE): Likewise.
12593 (I386_DR_DISABLE): Likewise.
12594 (I386_DR_SET_RW_LEN): Likewise.
12595 (I386_DR_GET_RW_LEN): Likewise.
12596 (I386_DR_WATCH_HIT): Likewise.
12597 (i386_wp_op_t): Likewise.
12598 (i386_show_dr): Likewise.
12599 (i386_length_and_rw_bits): Likewise.
12600 (i386_insert_aligned_watchpoint): Likewise.
12601 (i386_remove_aligned_watchpoint): Likewise.
12602 (i386_handle_nonaligned_watchpoint): Likewise.
12603 i386_update_inferior_debug_regs(): Likewise.
12604 (i386_dr_insert_watchpoint): Likewise.
12605 (i386_dr_remove_watchpoint): Likewise.
12606 (i386_dr_region_ok_for_watchpoint): Likewise.
12607 (i386_dr_stopped_data_address): Likewise.
12608 (i386_dr_stopped_by_watchpoint): Likewise.
12609
8f26655c
GB
126102014-06-19 Gary Benson <gbenson@redhat.com>
12611
12612 * i386-low.c (i386_dr_show): Renamed to
12613 i386_show_dr and made static. All uses updated.
12614 (i386_dr_length_and_rw_bits): Renamed to
12615 i386_length_and_rw_bits and made static.
12616 All uses updated.
12617 (i386_dr_insert_aligned_watchpoint): Renamed to
12618 i386_insert_aligned_watchpoint and made static.
12619 All uses updated.
12620 (i386_dr_remove_aligned_watchpoint): Renamed to
12621 i386_remove_aligned_watchpoint and made static.
12622 All uses updated.
12623 (i386_dr_update_inferior_debug_regs): Renamed to
12624 i386_update_inferior_debug_regs and made static.
12625 All uses updated.
12626
b9228891
GB
126272014-06-18 Gary Benson <gbenson@redhat.com>
12628
5171def3
GB
12629 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12630 (i386_dr_low_can_set_control): Likewise.
12631 (i386_get_debug_register_length): Likewise.
12632 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12633 (i386_dr_low_can_set_control): Likewise.
12634 (i386_get_debug_register_length): Likewise.
12635
126362014-06-17 Gary Benson <gbenson@redhat.com>
12637
b9228891
GB
12638 * i386-low.h (i386-dregs.h): New include.
12639 (DR_FIRSTADDR): Now in i386-dregs.h.
12640 (DR_LASTADDR): Likewise.
12641 (DR_NADDR): Likewise.
12642 (DR_STATUS): Likewise.
12643 (DR_CONTROL): Likewise.
12644 (i386_debug_reg_state): Likewise.
12645 (i386_dr_insert_watchpoint): Likewise.
12646 (i386_dr_remove_watchpoint): Likewise.
12647 (i386_dr_region_ok_for_watchpoint): Likewise.
12648 (i386_dr_stopped_data_address): Likewise.
12649 (i386_dr_stopped_by_watchpoint): Likewise.
12650 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12651
4be83cc2
GB
126522014-06-18 Gary Benson <gbenson@redhat.com>
12653
12654 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12655 i386_dr_insert_watchpoint.
12656 (i386_low_remove_watchpoint): Renamed to
12657 i386_dr_remove_watchpoint.
12658 (i386_low_region_ok_for_watchpoint): Renamed to
12659 i386_dr_region_ok_for_watchpoint.
12660 (i386_low_stopped_data_address): Renamed to
12661 i386_dr_stopped_data_address.
12662 (i386_low_stopped_by_watchpoint): Renamed to
12663 i386_dr_stopped_by_watchpoint.
12664 * i386-low.c (i386_show_dr): Renamed to
12665 i386_dr_show and made nonstatic. All uses updated.
12666 (i386_length_and_rw_bits): Renamed to
12667 i386_dr_length_and_rw_bits and made nonstatic.
12668 All uses updated.
12669 (i386_insert_aligned_watchpoint): Renamed to
12670 i386_dr_insert_aligned_watchpoint and made nonstatic.
12671 All uses updated.
12672 (i386_remove_aligned_watchpoint): Renamed to
12673 i386_dr_remove_aligned_watchpoint and made nonstatic.
12674 All uses updated.
12675 (i386_update_inferior_debug_regs): Renamed to
12676 i386_dr_update_inferior_debug_regs and made nonstatic.
12677 All uses updated.
12678 (i386_low_insert_watchpoint): Renamed to
12679 i386_dr_insert_watchpoint. All uses updated.
12680 (i386_low_remove_watchpoint): Renamed to
12681 i386_dr_remove_watchpoint. All uses updated.
12682 (i386_low_region_ok_for_watchpoint): Renamed to
12683 i386_dr_region_ok_for_watchpoint. All uses updated.
12684 (i386_low_stopped_data_address): Renamed to
12685 i386_dr_stopped_data_address. All uses updated.
12686 (i386_low_stopped_by_watchpoint): Renamed to
12687 i386_dr_stopped_by_watchpoint. All uses updated.
12688
131aa0d4
GB
126892014-06-18 Gary Benson <gbenson@redhat.com>
12690
12691 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12692 (i386_dr_low_can_set_control): Likewise.
12693 (i386_insert_aligned_watchpoint): New check.
12694
d9305f7f
GB
126952014-06-18 Gary Benson <gbenson@redhat.com>
12696
12697 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12698 Renamed to state.
12699
e927c9fc
GB
127002014-06-18 Gary Benson <gbenson@redhat.com>
12701
12702 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12703 instead of fatal and error.
12704 (i386_handle_nonaligned_watchpoint): Likewise.
12705
1b6d4134
GB
127062014-06-18 Gary Benson <gbenson@redhat.com>
12707
12708 * i386-low.c (i386_get_debug_register_length): New macro.
12709 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12710 (i386_show_dr): Use debug_printf instead of fprintf. Use
12711 phex to format values.
12712
6e62758f
GB
127132014-06-18 Gary Benson <gbenson@redhat.com>
12714
12715 * i386-low.h: Comment changes.
12716 * i386-low.c: Likewise.
12717
fc6e2f03
GB
127182014-06-18 Gary Benson <gbenson@redhat.com>
12719
12720 * i386-low.c: Whitespace changes.
12721
f9d1eeed
TT
127222014-06-12 Tom Tromey <tromey@redhat.com>
12723
12724 * utils.c (freeargv): Remove.
12725
0b04e523
TT
127262014-06-12 Tom Tromey <tromey@redhat.com>
12727
12728 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12729 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12730 (parse_debug_format_options): Likewise.
12731 (gdbserver_usage): Likewise.
12732 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12733 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12734 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12735 against libiberty.
12736 ($(LIBGNU)): Depend on libiberty.
12737 (all-lib): Recurse into all subdirs.
12738 (install-only): Invoke "install" target in subdirs.
12739 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12740 targets.
12741 * configure: Rebuild.
12742 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12743 for vasprintf, vsnprintf, or gettimeofday.
12744 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12745 srv_tgtobj.
12746
270c9937
JB
127472014-06-05 Joel Brobecker <brobecker@adacore.com>
12748
12749 * development.sh: Delete.
12750 * Makefile.in (config.status): Adjust dependency on development.sh.
12751 * configure.ac: Adjust development.sh source call.
12752 * configure: Regenerate.
12753
0a261ed8
PA
127542014-06-02 Pedro Alves <palves@redhat.com>
12755
12756 * ax.c (gdb_free_agent_expr): New function.
12757 * ax.h (gdb_free_agent_expr): New declaration.
12758 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12759 list.
12760 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12761 static.
12762 (clear_breakpoint_conditions_and_commands): New function.
12763 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12764 (clear_breakpoint_conditions_and_commands): New declaration.
12765
e9dae05e
RR
127662014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12767
12768 * linux-aarch64-low.c (asm/ptrace.h): Include.
12769
5876f503
JK
127702014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12771
12772 Fix TLS access for -static -pthread.
12773 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12774 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12775 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12776
802e8e6d
PA
127772014-05-20 Pedro Alves <palves@redhat.com>
12778
12779 * linux-aarch64-low.c (aarch64_insert_point)
12780 (aarch64_remove_point): No longer check whether the type is
12781 supported here. Adjust to new interface.
12782 (the_low_target): Install aarch64_supports_z_point_type as
12783 supports_z_point_type method.
12784 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12785 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12786 instead of a Z packet char. Adjust.
12787 (arm_supports_z_point_type): New function.
12788 (arm_insert_point, arm_remove_point): Adjust to new interface.
12789 (the_low_target): Install arm_supports_z_point_type.
12790 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12791 (cris_insert_point, cris_remove_point): Adjust to new interface.
12792 Don't check whether the type is supported here.
12793 (the_low_target): Install cris_supports_z_point_type.
12794 * linux-low.c (linux_supports_z_point_type): New function.
12795 (linux_insert_point, linux_remove_point): Adjust to new interface.
12796 * linux-low.h (struct linux_target_ops) <insert_point,
12797 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12798 raw_breakpoint pointer parameter.
12799 <supports_z_point_type>: New method.
12800 * linux-mips-low.c (mips_supports_z_point_type): New function.
12801 (mips_insert_point, mips_remove_point): Adjust to new interface.
12802 Use mips_supports_z_point_type.
12803 (the_low_target): Install mips_supports_z_point_type.
12804 * linux-ppc-low.c (the_low_target): Install NULL as
12805 supports_z_point_type method.
12806 * linux-s390-low.c (the_low_target): Install NULL as
12807 supports_z_point_type method.
12808 * linux-sparc-low.c (the_low_target): Install NULL as
12809 supports_z_point_type method.
12810 * linux-x86-low.c (x86_supports_z_point_type): New function.
12811 (x86_insert_point): Adjust to new insert_point interface. Use
12812 insert_memory_breakpoint. Adjust to new
12813 i386_low_insert_watchpoint interface.
12814 (x86_remove_point): Adjust to remove_point interface. Use
12815 remove_memory_breakpoint. Adjust to new
12816 i386_low_remove_watchpoint interface.
12817 (the_low_target): Install x86_supports_z_point_type.
12818 * lynx-low.c (lynx_target_ops): Install NULL as
12819 supports_z_point_type callback.
12820 * nto-low.c (nto_supports_z_point_type): New.
12821 (nto_insert_point, nto_remove_point): Adjust to new interface.
12822 (nto_target_ops): Install nto_supports_z_point_type.
12823 * mem-break.c: Adjust intro comment.
12824 (struct raw_breakpoint) <raw_type, size>: New fields.
12825 <inserted>: Update comment.
12826 <shlib_disabled>: Delete field.
12827 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12828 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12829 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12830 (raw_bkpt_type_to_target_hw_bp_type): New function.
12831 (find_enabled_raw_code_breakpoint_at): New function.
12832 (find_raw_breakpoint_at): New type and size parameters. Use them.
12833 (insert_memory_breakpoint): New function, based off
12834 set_raw_breakpoint_at.
12835 (remove_memory_breakpoint): New function.
12836 (set_raw_breakpoint_at): Reimplement.
12837 (set_breakpoint): New, based on set_breakpoint_at.
12838 (set_breakpoint_at): Reimplement.
12839 (delete_raw_breakpoint): Go through the_target->remove_point
12840 instead of assuming memory breakpoints.
12841 (find_gdb_breakpoint_at): Delete.
12842 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12843 (find_gdb_breakpoint): New function.
12844 (set_gdb_breakpoint_at): Delete.
12845 (z_type_supported): New function.
12846 (set_gdb_breakpoint_1): New function, loosely based off
12847 set_gdb_breakpoint_at.
12848 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12849 (delete_gdb_breakpoint_at): Delete.
12850 (delete_gdb_breakpoint_1): New function, loosely based off
12851 delete_gdb_breakpoint_at.
12852 (delete_gdb_breakpoint): New function.
12853 (clear_gdb_breakpoint_conditions): Rename to ...
12854 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12855 breakpoint.
12856 (add_condition_to_breakpoint): Make static.
12857 (add_breakpoint_condition): Take a struct breakpoint pointer
12858 instead of an address. Adjust.
12859 (gdb_condition_true_at_breakpoint): Rename to ...
12860 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12861 z_type parameter.
12862 (gdb_condition_true_at_breakpoint): Reimplement.
12863 (add_breakpoint_commands): Take a struct breakpoint pointer
12864 instead of an address. Adjust.
12865 (gdb_no_commands_at_breakpoint): Rename to ...
12866 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12867 parameter. Return true if no breakpoint was found. Change debug
12868 output.
12869 (gdb_no_commands_at_breakpoint): Reimplement.
12870 (run_breakpoint_commands): Rename to ...
12871 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12872 and change return type to boolean.
12873 (run_breakpoint_commands): New function.
12874 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12875 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12876 breakpoint. Go through the_target->remove_point instead of
12877 assuming memory breakpoint.
12878 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12879 software and hardware breakpoints.
12880 (reinsert_raw_breakpoint): Go through the_target->insert_point
12881 instead of assuming memory breakpoint.
12882 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12883 software and hardware breakpoints.
12884 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12885 Check both software and hardware breakpoints.
12886 (validate_inserted_breakpoint): Assert the breakpoint is a
12887 software breakpoint. Set the inserted flag to -1 instead of
12888 setting shlib_disabled.
12889 (delete_disabled_breakpoints): Adjust.
12890 (validate_breakpoints): Only validate software breakpoints.
12891 Adjust to inserted flag change.
12892 (check_mem_read, check_mem_write): Skip breakpoint types other
12893 than software breakpoints. Adjust to inserted flag change.
12894 * mem-break.h (enum raw_bkpt_type): New enum.
12895 (raw_breakpoint, struct process_info): Forward declare.
12896 (Z_packet_to_target_hw_bp_type): Delete declaration.
12897 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12898 (set_gdb_breakpoint, delete_gdb_breakpoint)
12899 (clear_breakpoint_conditions): New declarations.
12900 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12901 (breakpoint_inserted_here): Update comment.
12902 (add_breakpoint_condition, add_breakpoint_commands): Replace
12903 address parameter with a breakpoint pointer parameter.
12904 (gdb_breakpoint_here): Update comment.
12905 (delete_gdb_breakpoint_at): Delete.
12906 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12907 * server.c (process_point_options): Take a struct breakpoint
12908 pointer instead of an address. Adjust.
12909 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12910 delete_gdb_breakpoint.
12911 * spu-low.c (spu_target_ops): Install NULL as
12912 supports_z_point_type method.
12913 * target.h: Include mem-break.h.
12914 (struct target_ops) <prepare_to_access_memory>: Update comment.
12915 <supports_z_point_type>: New field.
12916 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12917 instead of a char. Also take a raw breakpoint pointer.
12918 * win32-arm-low.c (the_low_target): Install NULL as
12919 supports_z_point_type.
12920 * win32-i386-low.c (i386_supports_z_point_type): New function.
12921 (i386_insert_point, i386_remove_point): Adjust to new interface.
12922 (the_low_target): Install i386_supports_z_point_type.
12923 * win32-low.c (win32_supports_z_point_type): New function.
12924 (win32_insert_point, win32_remove_point): Adjust to new interface.
12925 (win32_target_ops): Install win32_supports_z_point_type.
12926 * win32-low.h (struct win32_target_ops):
12927 <supports_z_point_type>: New method.
12928 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12929 instead of a char. Also take a raw breakpoint pointer.
12930
932539e3
PA
129312014-05-20 Pedro Alves <palves@redhat.com>
12932
12933 * mem-break.h: Include break-common.h.
12934 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12935 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12936 (Z_packet_to_target_hw_bp_type): New declaration.
12937 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12938 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12939 (Z_PACKET_ACCESS_WP): Delete macros.
12940 (Z_packet_to_hw_type): Delete function.
12941 * i386-low.h: Don't include break-common.h here.
12942 (Z_packet_to_hw_type): Delete declaration.
12943 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12944 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12945 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12946 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12947 * linux-aarch64-low.c: Don't include break-common.h here.
12948 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12949 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12950 (Z_packet_to_target_hw_bp_type): Delete function.
12951 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12952 function.
12953 (mips_insert_point, mips_remove_point): Use
12954 Z_packet_to_target_hw_bp_type.
12955
4ff0d3d8
PA
129562014-05-20 Pedro Alves <palves@redhat.com>
12957
12958 * linux-aarch64-low.c: Include break-common.h.
12959 (enum target_point_type): Delete.
12960 (Z_packet_to_point_type): Rename to ...
12961 (Z_packet_to_target_hw_bp_type): ... this, and return a
12962 target_hw_bp_type instead.
12963 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12964 instead of an enum target_point_type.
12965 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12966 breakpoint type.
12967 (aarch64_dr_state_insert_one_point)
12968 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12969 (aarch64_handle_aligned_watchpoint)
12970 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12971 Take an enum target_hw_bp_type instead of an enum
12972 target_point_type.
12973 (aarch64_supports_z_point_type): New function.
12974 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12975 use Z_packet_to_target_hw_bp_type.
12976
786dc519
JB
129772014-05-20 Joel Brobecker <brobecker@adacore.com>
12978
12979 * configure.ac: Only use -Werror by default when DEVELOPMENT
12980 is true.
12981 * configure: Regenerate.
12982
9e0aa64f
JK
129832014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12984
12985 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12986 * linux-x86-low.c (X86_64_USER_REGS): New.
12987 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12988
2b577b92
YQ
129892014-04-28 Yao Qi <yao@codesourcery.com>
12990
12991 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12992 name.
12993
94611da2
PA
129942014-04-25 Pedro Alves <palves@redhat.com>
12995
12996 PR server/16255
12997 * linux-low.c (linux_attach_fail_reason_string): New function.
12998 (linux_attach_lwp): Delete.
12999 (linux_attach_lwp_1): Rename to ...
13000 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13001 argument. Remove "initial" parameter. Return int instead of
13002 void. Don't error or warn here.
13003 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13004 failure to attach to the tgid. Call warning when failing to
13005 attach to an lwp.
13006 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13007 argument. Remove "initial" parameter. Return int instead of
13008 void. Don't error or warn here.
13009 (linux_attach_fail_reason_string): New declaration.
13010 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13011 interface change. Use linux_attach_fail_reason_string.
13012
01f9f808
MS
130132014-04-24 Michael Sturm <michael.sturm@mintel.com>
13014 Walfred Tedeschi <walfred.tedeschi@intel.com>
13015
13016 * Makefile.in: Added rules to handle new files
13017 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13018 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13019 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13020 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13021 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13022 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13023 x32-avx512-linux.o.
13024 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13025 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13026 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13027 i386/x32-avx512.xml.
13028 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13029 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13030 i386/x32-avx512-linux.xml.
13031 * i387-fp.c (num_avx512_k_registers): New constant for number
13032 of K registers.
13033 (num_avx512_zmmh_low_registers): New constant for number of
13034 lower ZMM registers (0-15).
13035 (num_avx512_zmmh_high_registers): New constant for number of
13036 higher ZMM registers (16-31).
13037 (num_avx512_ymmh_registers): New contant for number of higher
13038 YMM registers (ymm16-31 added by avx521 on x86_64).
13039 (num_avx512_xmm_registers): New constant for number of higher
13040 XMM registers (xmm16-31 added by AVX512 on x86_64).
13041 (struct i387_xsave): Add space for AVX512 registers.
13042 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13043 Add code to handle AVX512 registers.
13044 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13045 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13046 prototypei from generated file.
13047 (tdesc_amd64_avx512_linux): Likewise.
13048 (init_registers_x32_avx512_linux): Likewise.
13049 (tdesc_x32_avx512_linux): Likewise.
13050 (init_registers_i386_avx512_linux): Likewise.
13051 (tdesc_i386_avx512_linux): Likewise.
13052 (x86_64_regmap): Add AVX512 registers.
13053 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13054 mask.
13055 (initialize_low_arch): Add code to initialize AVX512 registers.
13056
51aa91f9
PA
130572014-04-23 Pedro Alves <palves@redhat.com>
13058
13059 * mem-break.c (find_gdb_breakpoint_at): Make static.
13060 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13061
a4165e94
PA
130622014-04-23 Pedro Alves <palves@redhat.com>
13063
13064 * i386-low.c: Don't include break-common.h here.
13065 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13066 prototype to take target_hw_bp_type as argument instead of a Z
13067 packet char.
13068 * i386-low.h: Include break-common.h here.
13069 (Z_packet_to_hw_type): Declare.
13070 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13071 prototypes.
13072 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13073 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13074 (x86_remove_point): Convert the packet number to a
13075 target_hw_bp_type before calling i386_low_remove_watchpoint.
13076 * win32-i386-low.c (i386_insert_point): Convert the packet number
13077 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13078 (i386_remove_point): Convert the packet number to a
13079 target_hw_bp_type before calling i386_low_remove_watchpoint.
13080
b8acf843
PA
130812014-04-23 Pedro Alves <palves@redhat.com>
13082
13083 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13084
d708bcd1
PA
130852014-04-10 Pedro Alves <palves@redhat.com>
13086
13087 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13088 Check if the condition or command is NULL before checking if the
13089 breakpoint is known. On success, return true.
13090 * mem-break.h (add_breakpoint_condition): Document return.
13091 (add_breakpoint_commands): Add describing comment.
13092 * server.c (skip_to_semicolon): New function.
13093 (process_point_options): Use it.
13094
2eec7d5b
PA
130952014-04-09 Pedro Alves <palves@redhat.com>
13096
13097 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13098 to lwpid_of.
13099
fa96cb38
PA
131002014-02-27 Pedro Alves <palves@redhat.com>
13101
13102 PR 12702
13103 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13104 macros.
13105 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13106 output.
13107 (last_thread_of_process_p): Take a PID argument instead of a
13108 thread pointer.
13109 (linux_wait_for_lwp): Delete.
13110 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13111 functions.
13112 (linux_low_filter_event): New function, party factored out from
13113 linux_wait_for_event.
13114 (linux_wait_for_event): Rename to ...
13115 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13116 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13117 sigsuspend. Check for zombie leaders.
13118 (linux_wait_for_event): Reimplement as wrapper around
13119 linux_wait_for_event_filtered.
13120 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13121 a normal or signal exit is seen, it's the whole process exiting.
13122 (wait_for_sigstop): No longer a for_each_inferior callback.
13123 Rewrite on top of linux_wait_for_event_filtered.
13124 (stop_all_lwps): Call wait_for_sigstop directly.
13125 * server.c (resume, handle_target_event): Handle
13126 TARGET_WAITKIND_NO_RESUMED.
13127
d763de10
JB
131282014-02-26 Joel Brobecker <brobecker@adacore.com>
13129
13130 * win32-low.c (psapi_get_dll_name,
13131 * win32_CreateToolhelp32Snapshot): Delete.
13132 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13133 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13134 Delete.
13135 (handle_load_dll): Add function description.
13136 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13137
850a0f76
JB
131382014-02-26 Joel Brobecker <brobecker@adacore.com>
13139
13140 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13141 Add comment.
13142 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13143 base address when calling win32_add_one_solib.
13144 (handle_load_dll): Delete local variable load_addr.
13145 Remove 0x1000 offset applied to DLL base address when calling
13146 win32_add_one_solib.
13147 (handle_unload_dll): Add comment.
13148
f25b3fc3
JB
131492014-02-26 Joel Brobecker <brobecker@adacore.com>
13150
13151 * win32-low.c (win32_add_all_dlls): Renames
13152 win32_ensure_ntdll_loaded. Rewrite function documentation.
13153 Adjust implementation to always load all DLLs.
13154 Add 0x1000 offset to DLL base address when calling
13155 win32_add_one_solib.
13156 (child_initialization_done): New static global.
13157 (do_initial_child_stuff): Set child_initialization_done to
13158 zero during child initialization, and 1 after. Replace call
13159 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13160 Add comment.
13161 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13162 (handle_unload_dll): Add function documentation.
13163 (get_child_debug_event): Ignore load and unload DLL events
13164 during child initialization.
13165
d86d4aaf
DE
131662014-02-20 Doug Evans <dje@google.com>
13167
3bc32da3 13168 Remove global all_lwps.
d86d4aaf
DE
13169 * inferiors.h (ptid_of): Move here from linux-low.h.
13170 (pid_of, lwpid_of): Ditto.
13171 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13172 parameter is a struct thread_info * now.
13173 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13174 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13175 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13176 directly.
13177 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13178 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13179 * linux-arm-low.c (update_registers_callback): Update, "entry"
13180 parameter is a struct thread_info * now.
13181 Fetch lwpid from current_inferior directly.
13182 (arm_insert_point): Pass &all_threads to find_inferior instead of
13183 &all_lwps.
13184 (arm_remove_point): Ditto.
13185 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13186 (arm_prepare_to_resume): Fetch pid from thread.
13187 (arm_read_description): Fetch lwpid from current_inferior directly.
13188 * linux-low.c (all_lwps): Delete.
13189 (delete_lwp): Delete call to remove_inferior.
13190 (handle_extended_wait): Fetch lwpid from thread.
13191 (add_lwp): Don't set lwp->entry.id. Remove call to
13192 add_inferior_to_list.
13193 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13194 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13195 (kill_one_lwp_callback): Ditto.
13196 (linux_kill): Don't dereference NULL pointer.
13197 Fetch ptid,lwpid from thread.
13198 (get_detach_signal): Fetch ptid from thread.
13199 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13200 Simplify call to regcache_invalidate_thread.
13201 (delete_lwp_callback): Update, "entry" parameter is a
13202 struct thread_info * now. Fetch pid from thread.
13203 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13204 (status_pending_p_callback): Update, "entry" parameter is a
13205 struct thread_info * now. Fetch ptid from thread.
13206 (find_lwp_pid): Update, "entry" parameter is a
13207 struct thread_info * now.
13208 (linux_wait_for_lwp): Fetch pid from thread.
13209 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13210 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13211 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13212 (dequeue_one_deferred_signal): Ditto.
13213 (cancel_breakpoint): Fetch ptid from current_inferior.
13214 (linux_wait_for_event): Pass &all_threads to find_inferior,
13215 not &all_lwps. Fetch ptid, lwpid from thread.
13216 (count_events_callback): Update, "entry" parameter is a
13217 struct thread_info * now.
13218 (select_singlestep_lwp_callback): Ditto.
13219 (select_event_lwp_callback): Ditto.
13220 (cancel_breakpoints_callback): Ditto.
13221 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13222 not &all_lwps.
13223 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13224 (unsuspend_one_lwp): Update, "entry" parameter is a
13225 struct thread_info * now.
13226 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13227 not &all_lwps.
13228 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13229 Fetch lwpid from thread, not lwp.
13230 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13231 Pass &all_threads to find_inferior, not &all_lwps.
13232 (send_sigstop): Fetch lwpid from thread, not lwp.
13233 (send_sigstop_callback): Update, "entry" parameter is a
13234 struct thread_info * now.
13235 (suspend_and_send_sigstop_callback): Ditto.
13236 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13237 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13238 struct thread_info * now.
13239 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13240 from thread, lwp.
13241 (lwp_running): Update, "entry" parameter is a
13242 struct thread_info * now.
13243 (stop_all_lwps): Fetch ptid from thread.
13244 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13245 (linux_resume_one_lwp): Fetch lwpid from thread.
13246 (linux_set_resume_request): Update, "entry" parameter is a
13247 struct thread_info * now. Fetch pid, lwpid from thread.
13248 (resume_status_pending_p): Update, "entry" parameter is a
13249 struct thread_info * now.
13250 (need_step_over_p): Ditto. Fetch lwpid from thread.
13251 (start_step_over): Fetch lwpid from thread.
13252 (linux_resume_one_thread): Update, "entry" parameter is a
13253 struct thread_info * now. Fetch lwpid from thread.
13254 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13255 (proceed_one_lwp): Update, "entry" parameter is a
13256 struct thread_info * now. Fetch lwpid from thread.
13257 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13258 struct thread_info * now.
13259 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13260 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13261 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13262 directly.
13263 (regsets_store_inferior_registers): Ditto.
13264 (fetch_register, store_register): Ditto.
13265 (linux_read_memory, linux_write_memory): Ditto.
13266 (linux_request_interrupt): Ditto.
13267 (linux_read_auxv): Ditto.
13268 (linux_xfer_siginfo): Ditto.
13269 (linux_qxfer_spu): Ditto.
13270 (linux_qxfer_libraries_svr4): Ditto.
13271 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13272 moved to inferiors.h.
13273 (get_lwp): Delete.
13274 (get_thread_lwp): Update.
13275 (struct lwp_info): Delete member "entry". Simplify comment for
13276 member "thread".
13277 (all_lwps): Delete.
13278 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13279 current_inferior directly.
13280 (update_watch_registers_callback): Update, "entry" parameter is a
13281 struct thread_info * now. Fetch pid from thread.
13282 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13283 (mips_insert_point): Fetch lwpid from current_inferior.
13284 Pass &all_threads to find_inferior, not &all_lwps.
13285 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13286 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13287 directly.
13288 (mips_stopped_data_address): Ditto.
13289 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13290 directly.
13291 * linux-tile-low.c (tile_arch_setup): Ditto.
13292 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13293 (update_debug_registers_callback): Update, "entry" parameter is a
13294 struct thread_info * now. Fetch pid from thread.
13295 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13296 Pass &all_threads to find_inferior, not &all_lwps.
13297 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13298 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13299 Pass &all_threads to find_inferior, not &all_lwps.
13300 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13301 (i386_dr_low_get_status): Ditto.
13302 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13303 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13304 (x86_linux_read_description): Ditto.
13305 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13306
3b8361aa
DE
133072014-02-20 Doug Evans <dje@google.com>
13308
13309 * inferiors.c (get_first_inferior): Fix buglet.
13310
f7667f0d
DE
133112014-02-19 Doug Evans <dje@google.com>
13312
13313 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13314 * inferiors.c (add_thread): Change result type to struct thread_info *.
13315 All callers updated.
13316 (add_lwp): Call add_thread here instead of in callers.
13317 All callers updated.
13318 * linux-low.h (get_lwp_thread): Rewrite.
13319 (struct lwp_info): New member "thread".
13320
b3312d80
DE
133212014-02-19 Doug Evans <dje@google.com>
13322
13323 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13324 All callers updated.
13325
ecc6f45c
DE
133262014-02-19 Doug Evans <dje@google.com>
13327
13328 * inferiors.c (add_thread): Fix whitespace.
13329
649ebbca
DE
133302014-02-19 Doug Evans <dje@google.com>
13331
13332 * dll.c (clear_dlls): Replace accessing list implemention details
13333 with API function.
13334 * gdbthread.h (get_first_thread): Declare.
13335 * inferiors.c (for_each_inferior_with_data): New function.
13336 (get_first_thread): New function.
13337 (find_thread_ptid): Simplify.
13338 (get_first_inferior): New function.
13339 (clear_list): Delete.
13340 (one_inferior_p): New function.
13341 (clear_inferior_list): New function.
13342 (clear_inferiors): Update.
13343 * inferiors.h (for_each_inferior_with_data): Declare.
13344 (clear_inferior_list): Declare.
13345 (one_inferior_p): Declare.
13346 (get_first_inferior): Declare.
13347 * linux-low.c (linux_wait_for_event): Replace accessing list
13348 implemention details with API function.
13349 * server.c (target_running): Ditto.
13350 (accumulate_file_name_length): New function.
13351 (emit_dll_description): New function.
13352 (handle_qxfer_libraries): Replace accessing list implemention
13353 details with API function.
13354 (handle_qxfer_threads_worker): New function.
13355 (handle_qxfer_threads_proper): Replace accessing list implemention
13356 details with API function.
13357 (handle_query): Ditto.
13358 (visit_actioned_threads_callback_ftype): New typedef.
13359 (visit_actioned_threads_data): New struct.
13360 (visit_actioned_threads): Rewrite to be find_inferior callback.
13361 (resume): Call find_inferior.
13362 (handle_status): Replace accessing list implemention
13363 details with API function.
13364 (process_serial_event): Replace accessing list implemention details
13365 with API function.
13366 * target.c (set_desired_inferior): Replace accessing list implemention
13367 details with API function.
13368 * tracepoint.c (same_process_p): New function.
13369 (gdb_agent_about_to_close): Replace accessing list implemention
13370 details with API function.
13371 * win32-low.c (child_delete_thread): Replace accessing list
13372 implemention details with API function.
13373 (match_dll_by_basename): New function.
13374 (dll_is_loaded_by_basename): New function.
13375 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13376 details call to dll_is_loaded_by_basename.
13377
80894984
DE
133782014-02-19 Doug Evans <dje@google.com>
13379
13380 * dll.h (struct dll_info): Add comment.
13381 * gdbthread.h (struct thread_info): Add comment.
13382 (current_ptid): Simplify.
13383 * inferiors.c (add_process): Update.
13384 (remove_process): Update.
13385 * inferiors.h (struct process_info): Rename member "head" to "entry".
13386 * linux-low.c (delete_lwp): Update.
13387 (add_lwp): Update.
13388 (last_thread_of_process_p): Update.
13389 (kill_one_lwp_callback, linux_kill): Update.
13390 (status_pending_p_callback): Update.
13391 (wait_for_sigstop): Update. Simplify read of ptid.
13392 (start_step_over): Update.
13393 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13394 (get_lwp_thread): Update.
13395 (struct lwp_info): Rename member "head" to "entry".
13396 * regcache.h (inferior_list_entry): Delete.
13397 * server.c (kill_inferior_callback): Update.
13398 (detach_or_kill_inferior_callback): Update.
13399 (print_started_pid): Update.
13400 (print_attached_pid): Update.
13401 (process_serial_event): Simplify read of ptid.
13402 * thread-db.c (thread_db_create_event): Update.
13403 (thread_db_get_tls_address): Update.
13404 * win32-low.c (current_inferior_ptid): Simplify.
13405
46917d26
TT
134062014-02-19 Tom Tromey <tromey@redhat.com>
13407
13408 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13409 argument.
13410 (target_supports_btrace): Update.
13411
0759a81e
YQ
134122014-02-14 Yao Qi <yao@codesourcery.com>
13413
13414 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13415 (rsp-low-ipa.o): New target.
13416
a7191e8b
TT
134172014-02-12 Tom Tromey <tromey@redhat.com>
13418
13419 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13420 convert_ascii_to_int.
13421 * regcache.c (registers_to_string): Likewise.
13422 * remote-utils.c (decode_M_packet): Likewise.
13423 * server.c (process_serial_event): Likewise.
13424
ff0e980e
TT
134252014-02-12 Tom Tromey <tromey@redhat.com>
13426
13427 * server.c (handle_query, handle_v_run): Use hex2bin, not
13428 unhexify.
13429 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13430
e9371aff
TT
134312014-02-12 Tom Tromey <tromey@redhat.com>
13432
13433 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13434 convert_int_to_ascii.
13435 * regcache.c (registers_to_string, collect_register_as_string):
13436 Likewise.
13437 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13438 Likewise.
13439 * server.c (process_serial_event): Likewise.
13440 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13441 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13442
971dc0b8
TT
134432014-02-12 Tom Tromey <tromey@redhat.com>
13444
13445 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13446 bin2hex, not hexify.
13447 * tracepoint.c (cmd_qtstatus): Likewise.
13448
0a822afb
TT
134492014-02-12 Tom Tromey <tromey@redhat.com>
13450
13451 * remote-utils.c (monitor_output): Pass explicit length to
13452 hexify.
13453
9c3d6531
TT
134542014-02-12 Tom Tromey <tromey@redhat.com>
13455
13456 * tracepoint.c: Include rsp-low.h.
13457 * server.c: Include rsp-low.h.
13458 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13459 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13460 declare.
13461 * remote-utils.c: Include rsp-low.h.
13462 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13463 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13464 (convert_int_to_ascii, convert_ascii_to_int): Move to
13465 common/rsp-low.c.
13466 * regcache.c: Include rsp-low.h.
13467 * ax.c: Include rsp-low.h.
13468 * Makefile.in (SFILES): Add common/rsp-low.c.
13469 (OBS): Add rsp-low.o.
13470 (rsp-low.o): New target.
13471
01fd3ea5
TT
134722014-02-12 Tom Tromey <tromey@redhat.com>
13473
13474 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13475 Include print-utils.h.
13476 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13477 (plongest, thirty_two, phex_nz): Remove.
13478 * Makefile.in (SFILES): Add common/print-utils.c.
13479 (OBS): Add print-utils.o.
13480 (print-utils-ipa.o): New target.
13481 (print-utils.o): New target.
13482 (IPA_OBJS): Add print-utils-ipa.o.
13483
e99dc820
TT
134842014-02-06 Tom Tromey <tromey@redhat.com>
13485
13486 * Makefile.in (SFILES): Fix indentation.
13487
ee1e2d4f
DE
134882014-02-05 Doug Evans <dje@google.com>
13489
13490 * linux-low.c (linux_wait_for_event): Improve comment.
13491 (linux_wait_1): Keep current_inferior in sync with event_child.
13492
f5a02773
DE
134932014-01-22 Doug Evans <dje@google.com>
13494
13495 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13496
87ce2a04
DE
134972014-01-22 Doug Evans <dje@google.com>
13498
13499 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13500 * configure: Regenerate.
13501 * config.in: Regenerate.
13502 * Makefile.in (SFILES): Add debug.c.
13503 (OBS): Add debug.o.
13504 * debug.c: New file.
13505 * debug.h: New file.
13506 * linux-aarch64-low.c (*): Update all debugging printfs to use
13507 debug_printf instead of fprintf.
13508 * linux-arm-low.c (*): Ditto.
13509 * linux-cris-low.c (*): Ditto.
13510 * linux-crisv32-low.c (*): Ditto.
13511 * linux-m32r-low.c (*): Ditto.
13512 * linux-sparc-low.c (*): Ditto.
13513 * linux-x86.c (*): Ditto.
13514 * linux-low.c (*): Ditto.
13515 (linux_wait_1): Add calls to debug_enter, debug_exit.
13516 (linux_wait): Remove redundant debugging printf.
13517 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13518 (linux_resume, unstop_all_lwps): Ditto.
13519 * mem-break.c (*): Update all debugging printfs to use
13520 debug_printf instead of fprintf.
13521 * remote-utils.c (*): Ditto.
13522 * thread-db.c (*): Ditto.
13523 * server.c #include <ctype.h>, "gdb_vecs.h".
13524 (debug_threads): Moved to debug.c.
13525 (*): Update all debugging printfs to use debug_printf instead of
13526 fprintf.
13527 (start_inferior): Replace call to fflush with call to debug_flush.
13528 (monitor_show_help): Mention set debug-format.
13529 (parse_debug_format_options): New function.
13530 (handle_monitor_command): Handle "monitor set debug-format".
13531 (gdbserver_usage): Mention --debug-format.
13532 (main): Parse --debug-format.
13533 * server.h (debug_threads): Declaration moved to debug.h.
13534 #include "debug.h".
13535 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13536 trace_debug_1 that uses debug_printf.
13537 (tracepoint_look_up_symbols): Update all debugging printfs to use
13538 debug_printf instead of fprintf.
13539
e671835b
BS
135402014-01-20 Baruch Siach <baruch@tkos.co.il>
13541
13542 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13543 sys/ptrace.h.
13544
b5737fa9
PA
135452014-01-17 Pedro Alves <palves@redhat.com>
13546
ea38d2a9 13547 PR build/16445
c7faa97a
PA
13548 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13549 defined after including gdb_proc_service.h.
b5737fa9 13550
40ed484e
DE
135512014-01-16 Doug Evans <dje@google.com>
13552
13553 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13554 (match_dll): Use it.
13555
969c39fb
MM
135562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13557
13558 * target.h (target_ops) <read_btrace>: Change parameters and
13559 return type to allow error reporting.
13560 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13561 trace reading errors on.
13562 * linux-low.c (linux_low_read_btrace): Pass trace reading
13563 errors on.
13564 (linux_low_disable_btrace): New.
13565
ab7f45ba
DE
135662014-01-15 Doug Evans <dje@google.com>
13567
13568 * inferiors.c (thread_id_to_gdb_id): Delete.
13569 * inferiors.h (thread_id_to_gdb_id): Delete.
13570
66af0f44
EZ
135712014-01-13 Eli Zaretskii <eliz@gnu.org>
13572
13573 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13574 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13575 versions.
13576
9939e131
PA
135772014-01-08 Pedro Alves <palves@redhat.com>
13578
13579 * server.c (handle_status): Don't discard previous queued stop
13580 replies or thread's pending status here.
13581 (main) <disconnection>: Do it here instead.
13582
b7ea362b
PA
135832014-01-08 Pedro Alves <palves@redhat.com>
13584
13585 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13586 * server.c (visit_actioned_threads, handle_pending_status): New
13587 function.
13588 (handle_v_cont): Factor out parts to ...
13589 (resume): ... this new function. If in all-stop, and a thread
13590 being resumed has a pending status, report it without actually
13591 resuming.
13592 (myresume): Adjust to use the new 'resume' function.
13593 (clear_pending_status_callback, set_pending_status_callback)
13594 (find_status_pending_thread_callback): New functions.
13595 (handle_status): Handle the case of multiple threads having
13596 interesting statuses to report. Report threads' real last signal
13597 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13598 with an interesting thread to report the status for, instead of
13599 always reporting the status of the first thread.
13600
28498c42
JB
136012014-01-01 Joel Brobecker <brobecker@adacore.com>
13602
13603 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13604 * gdbreplay.c (gdbreplay_version): Likewise.
13605
f45c82da
YZ
136062013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13607
13608 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13609 iov.iov_len with the real length in use.
13610
379a5e2d
JB
136112013-12-13 Joel Brobecker <brobecker@adacore.com>
13612
13613 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13614 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13615 for all targets that use win32-low.c.
13616 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13617 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13618
4210d83e
PA
136192013-12-13 Pedro Alves <palves@redhat.com>
13620
13621 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13622 if equal to TARGET_WAITKIND_LOADED.
13623 * win32-low.c (cached_status): New static global.
13624 (win32_wait): Add declaration.
13625 (do_initial_child_stuff): Flush all initial pending debug events
13626 up to the initial breakpoint.
13627 (win32_wait): If CACHED_STATUS was set, return that instead
13628 of doing a real wait. Remove the code resuming the execution
13629 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13630 during the initial phase. Also remove the code changing
13631 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13632 TARGET_WAITKIND_STOPPED.
13633
e7f0d979
YQ
136342013-12-11 Yao Qi <yao@codesourcery.com>
13635
13636 * notif.c (handle_notif_ack): Return 0 if no notification
13637 matches.
13638
ebcf782c
DE
136392013-11-20 Doug Evans <dje@google.com>
13640
13641 * linux-low.c (linux_set_resume_request): Fix comment.
13642
20ad9378
DE
136432013-11-20 Doug Evans <dje@google.com>
13644
13645 * linux-low.c (resume_status_pending_p): Tweak comment.
13646
a196ebeb
WT
136472013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13648
13649 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13650 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13651 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13652 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13653 (srv_amd64_regobj): Add amd64-mpx.o.
13654 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13655 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13656 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13657 * i387-fp.c (num_pl_bnd_register) Added constant.
13658 (num_pl_bnd_cfg_registers) Added constant.
13659 (struct i387_xsave) Added reserved area and MPX fields.
13660 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13661 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13662 function.
13663 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13664 (init_registers_amd64_mpx_linux): Declare new function.
13665 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13666 (x86_64_regmap): Add MPX registers.
13667 (x86_linux_read_description): Add MPX case.
13668 (initialize_low_arch): Initialize MPX targets.
13669
0080a2f6
TT
136702013-11-18 Tom Tromey <tromey@redhat.com>
13671
13672 * configure: Rebuild.
13673 * configure.ac: Don't check for stdlib.h.
13674 * gdbreplay.c: Unconditionally include stdlib.h.
13675
2978b111
TT
136762013-11-18 Tom Tromey <tromey@redhat.com>
13677
13678 * config.in: Rebuild.
13679 * configure: Rebuild.
13680 * configure.ac: Don't use AC_HEADER_DIRENT.
13681
a3d08894
TT
136822013-11-18 Tom Tromey <tromey@redhat.com>
13683
13684 * server.h: Don't check HAVE_STRING_H.
13685 * gdbreplay.c: Don't check HAVE_STRING_H.
13686 * configure: Rebuild.
13687
0a5dd17d
TT
136882013-11-18 Tom Tromey <tromey@redhat.com>
13689
13690 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13691 LIBGNU.
13692
1bd2f0ba
TT
136932013-11-08 Tom Tromey <tromey@redhat.com>
13694
13695 * configure, config.in: Rebuild.
13696 * configure.ac: Remove unused configury.
13697
3266f10b
TT
136982013-11-08 Tom Tromey <tromey@redhat.com>
13699
13700 * acinclude.m4: Include common.m4, codeset.m4.
13701 * configure, config.in: Rebuild.
13702 * configure.ac: Use GDB_AC_COMMON.
13703
6682d959
AA
137042013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13705
13706 * linux-s390-low.c (HWCAP_S390_TE): New define.
13707 (s390_arch_setup): Consider the TE field in the HWCAP for
13708 determining 'have_regset_tdb'.
13709
fd0a4d76
SDJ
137102013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13711
13712 PR gdb/16014
13713 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13714 call to sizeof.
13715
1a3d890b
PA
137162013-10-02 Pedro Alves <palves@redhat.com>
13717
13718 * server.c (process_serial_event): Don't output "GDBserver
13719 exiting" if GDB is connected through stdio.
13720 * target.c (mywait): Likewise, be silent if GDB is connected
13721 through stdio.
13722
97ad4581
JB
137232013-10-01 Joel Brobecker <brobecker@adacore.com>
13724
13725 * lynx-low.c (lynx_add_threads_after_attach): New function.
13726 (lynx_attach): Remove call to add_thread. Add call to
13727 lynx_add_threads_after_attach instead.
13728
5b4e221c
MF
137292013-09-28 Mike Frysinger <vapier@gentoo.org>
13730
13731 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13732 * config.in, configure: Regenerated.
13733
ee47b2f8
YQ
137342013-09-18 Yao Qi <yao@codesourcery.com>
13735
13736 PR server/15959
13737 * server.c (start_inferior): Clear 'resume_info'.
13738
d6707650 137392013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13740
d6707650
JW
13741 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13742 for each register.
13743
9243dd0e 137442013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13745
9243dd0e
JW
13746 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13747 linux-tile-low.o to srv_tgtobj.
13748
c623a6ef
WN
137492013-09-16 Will Newton <will.newton@linaro.org>
13750
13751 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13752 out regs.
13753
fb71d39e
PA
137542013-09-06 Pedro Alves <palves@redhat.com>
13755
13756 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13757 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13758 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13759 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13760 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13761 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13762
8e7e9910
PA
137632013-09-06 Pedro Alves <palves@redhat.com>
13764
13765 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13766 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13767
7c3a12ca
PA
137682013-09-06 Pedro Alves <palves@redhat.com>
13769
13770 * linux-amd64-ipa.c: Include tracepoint.h.
13771 * linux-i386-ipa.c: Include tracepoint.h.
13772
8eb3d7b6
RW
137732013-09-06 Ricard Wanderlof <ricardw@axis.com>
13774
13775 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13776 (ps_get_thread_area): New function.
13777
eddddb9d
RW
137782013-09-06 Ricard Wanderlof <ricardw@axis.com>
13779
13780 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13781 (initialize_low_arch): Call init_registers_crisv32 rather than
13782 init_register_crisv32.
13783
533b0600
PA
137842013-09-05 Pedro Alves <palves@redhat.com>
13785
13786 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13787 to ...
13788 * hostio.h: ... this new file.
13789 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13790 win32-low.c: Include hostio.h.
13791
0ce3d3b5
PA
137922013-09-05 Pedro Alves <palves@redhat.com>
13793
13794 * server.h (gdb_client_data, handler_func, callback_handler_func)
13795 (delete_file_handler, add_file_handler, append_callback_event)
13796 (delete_callback_event, start_event_loop, initialize_event_loop):
13797 Move to event-loop.h and include it.
13798 * event-loop.h: New file.
13799
799cdc37
PA
138002013-09-05 Pedro Alves <palves@redhat.com>
13801
13802 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13803 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13804 (loaded_dll, unloaded_dll): Move to ...
13805 * dll.h: ... this new file.
13806 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13807
6a6bbd9d
PA
138082013-09-05 Pedro Alves <palves@redhat.com>
13809
13810 * server.h (current_process, get_thread_process, all_processes)
13811 (add_inferior_to_list, for_each_inferior, current_inferior)
13812 (remove_inferior, add_process, remove_process, find_process_pid)
13813 (have_started_inferiors_p, have_attached_inferiors_p)
13814 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13815 (clear_inferiors, find_inferior, find_inferior_id)
13816 (inferior_target_data, set_inferior_target_data)
13817 (inferior_regcache_data, set_inferior_regcache_data): Move to
13818 inferiors.h, and include it.
13819 * inferiors.h: New file.
13820
f699aaba
PA
138212013-09-05 Pedro Alves <palves@redhat.com>
13822
13823 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13824 Move ...
72f4393d 13825 * ax.h: ... here.
f699aaba 13826
c144c7a0
PA
138272013-09-05 Pedro Alves <palves@redhat.com>
13828
13829 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13830 tracepoint.h.
13831 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13832 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13833 (handle_tracepoint_general_set, handle_tracepoint_query)
13834 (tracepoint_finished_step, tracepoint_was_hit)
13835 (release_while_stepping_state_list, current_traceframe)
13836 (in_readonly_region, traceframe_read_mem)
13837 (fetch_traceframe_registers, traceframe_read_sdata)
13838 (traceframe_read_info, struct fast_tpoint_collect_status)
13839 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13840 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13841 (supply_fast_tracepoint_registers)
13842 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13843 (ipa_tdesc, claim_trampoline_space)
13844 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13845 (agent_mem_read, agent_get_trace_state_variable_value)
13846 (agent_set_trace_state_variable_value, agent_tsv_read)
13847 (agent_mem_read_string, get_raw_reg_func_addr)
13848 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13849 * tracepoint.h: ... this new file.
13850
ff42e6ab
PA
138512013-09-05 Pedro Alves <palves@redhat.com>
13852
13853 * server.h (perror_with_name, error, fatal, warning, paddress)
13854 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13855 include it.
13856 * utils.h: New file.
13857
541af0f4
PA
138582013-09-05 Pedro Alves <palves@redhat.com>
13859
13860 * server.h (remote_debug, noack_mode, transport_is_reliable)
13861 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13862 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13863 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13864 (write_enn, initialize_async_io, enable_async_io)
13865 (disable_async_io, check_remote_input_interrupt_request)
13866 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13867 (dead_thread_notify, prepare_resume_reply)
13868 (decode_address_to_semicolon, decode_address, decode_m_packet)
13869 (decode_M_packet, decode_X_packet, decode_xfer_write)
13870 (decode_search_memory_packet, unhexify, hexify)
13871 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13872 (look_up_one_symbol, relocate_instruction)
13873 (monitor_output): Move to remote-utils.h, and include it.
13874 * remote-utils.h: New file.
13875
eebdf26b
PA
138762013-09-05 Pedro Alves <palves@redhat.com>
13877
13878 * server.h (_): Delete.
13879
3aafd2ff
PA
138802013-09-02 Pedro Alves <palves@redhat.com>
13881
13882 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13883 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13884 allocated.
13885 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13886
cee83bcb
PM
138872013-09-02 Pierre Muller <muller@sourceware.org>
13888
13889 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13890 or WriteProcessMemory complete successfully and handle
13891 ERROR_PARTIAL_COPY error.
13892
9a13b2fa
PA
138932013-09-02 Pedro Alves <palves@redhat.com>
13894
13895 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13896 error instead of EIO.
13897
602e3198
JK
138982013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13899
13900 PR server/15604
13901 * linux-low.c: Include filestuff.h.
13902 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13903 * lynx-low.c: Include filestuff.h.
13904 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13905 * server.c: Include filestuff.h.
13906 (main): Call notice_open_fds.
13907 * spu-low.c: Include filestuff.h.
13908 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13909
96d7229d
LM
139102013-08-22 Luis Machado <lgustavo@codesourcery.com>
13911
13912 * Makefile.in: Explain why ../target and ../nat are not
13913 listed as include file search paths.
13914 (linux-waitpid.o): New object file rule.
13915 * configure.srv (srv_native_linux_obj): New variable.
13916 Replace all occurrences of linux native object files with
13917 $srv_native_linux_obj.
13918 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13919 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13920 (linux_enable_event_reporting): Remove declaration.
13921 (my_waitpid): Moved to common/linux-waitpid.c.
13922 (linux_wait_for_event): Pass ptid when calling
13923 linux_enable_event_reporting.
13924 (linux_supports_tracefork_flag): Remove.
13925 (linux_enable_event_reporting): Likewise.
13926 (linux_tracefork_grandchild): Remove.
13927 (STACK_SIZE): Moved to common/linux-ptrace.c.
13928 (linux_tracefork_child): Remove.
13929 (linux_test_for_tracefork): Remove.
13930 (linux_look_up_symbols): Call linux_supports_traceclone.
13931 (initialize_low): Remove call to linux_test_for_tracefork.
13932 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13933 common/linux-ptrace.h.
13934 (PTRACE_TYPE_ARG4): Likewise.
13935 Include linux-ptrace.h.
13936
32940073
PA
139372013-08-21 Pedro Alves <palves@redhat.com>
13938
13939 * config.in: Renegerate.
13940
33b60d58 139412013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13942
33b60d58
LM
13943 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13944 (SFILES): Remove $(srcdir)/common/target-common.c and
13945 add $(srcdir)/target/waitstatus.c.
13946 (OBS): Remove target-common.o and add waitstatus.o.
13947 (server_h): Remove $(srcdir)/../common/target-common.h and
13948 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13949 and $(srcdir)/../target/waitstatus.h.
13950 (target-common.o): Remove.
13951 (waitstatus.o): New target object file.
13952 * target.h: Do not include target-common.h and
13953 include target/resume.h, target/wait.h and
13954 target/waitstatus.h.
13955
b8e1b30e
LM
139562013-08-13 Luis Machado <lgustavo@codesourcery.com>
13957
13958 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13959 to PTRACE_TYPE_ARG3.
13960 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13961 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13962 PTRACE_TYPE_ARG4.
13963 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13964 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13965
7a60ad40
YQ
139662013-07-27 Jie Zhang <jie@codesourcery.com>
13967 Daniel Jacobowitz <dan@codesourcery.com>
13968 Yao Qi <yao@codesourcery.com>
13969
13970 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13971 (mips-linux-watch.o): New rule.
13972 (mips_linux_watch_h): New variable.
13973 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13974 srv_tgtobj.
13975 * linux-mips-low.c: Include mips-linux-watch.h.
13976 (struct arch_process_info, struct arch_lwp_info): New.
13977 (update_watch_registers_callback): New function.
13978 (mips_linux_new_process, mips_linux_new_thread) New functions.
13979 (mips_linux_prepare_to_resume, mips_insert_point): New
13980 functions.
13981 (mips_remove_point, mips_stopped_by_watchpoint): New
13982 functions.
13983 (rsp_bp_type_to_target_hw_bp_type): New function.
13984 (mips_stopped_data_address): New function.
13985 (the_low_target): Add watchpoint support functions.
13986
de6f69ad
YQ
139872013-07-27 Yao Qi <yao@codesourcery.com>
13988
13989 * i386-low.c: Include break-common.h.
13990 (enum target_hw_bp_type): Remove.
13991
3360c0bf
LM
139922013-07-24 Luis Machado <lgustavo@codesourcery.com>
13993
13994 * Makefile.in (SFILES): /common/target-common.c.
13995 (OBS): Add target-common.o.
13996 (server_h): Add $(srcdir)/../common/target-common.h.
13997 (target-common.o): New target.
13998 * server.c (queue_stop_reply_callback): Free
13999 status string after use.
14000 * target.c (target_waitstatus_to_string): Remove.
14001 * target.h: Include target-common.h.
14002 (resume_kind): Likewise.
14003 (target_waitkind): Likewise.
14004 (target_waitstatus): Likewise.
14005 (TARGET_WNOHANG): Likewise.
14006
bd885420
YQ
140072013-07-04 Yao Qi <yao@codesourcery.com>
14008
14009 * Makefile.in (host_alias): Use @host_noncanonical@.
14010 (target_alias): Use @target_noncanonical@.
14011 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14012 ACX_NONCANONICAL_HOST.
14013 * configure: Regenerated.
14014
14015 Revert:
14016 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14017
14018 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14019 * configure: Rebuild.
14020 * Makefile.in (version_host, version_target): Get from configure.
14021 (version.c): Use $(version_host) and $(version_target).
14022
17ef446e
PA
140232013-07-03 Pedro Alves <palves@redhat.com>
14024
14025 * Makefile.in (config.status): Depend on development.sh.
14026 * acinclude.m4: Include libmcheck.m4.
14027 * configure: Regenerate.
14028
7a9a7487
MG
140292013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14030
14031 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14032 attribute inside the parentheses.
14033 (winapi_DebugSetProcessKillOnExit): Ditto.
14034 (winapi_DebugBreakProcess): Ditto.
14035 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14036
49b64de6
MG
140372013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14038
14039 * notif.h (notif_event): Add a dummy member to avoid compiler
14040 errors.
14041
d5749ee7
PA
140422013-07-01 Pedro Alves <palves@redhat.com>
14043
14044 * hostio.c (HOSTIO_PATH_MAX): Define.
14045 (require_filename, handle_open, handle_unlink, handle_readlink):
14046 Use it.
14047
d8d2a3ee
PA
140482013-07-01 Pedro Alves <palves@redhat.com>
14049
14050 * server.h: Include "pathmax.h".
14051 * linux-low.c: Don't include sys/param.h.
14052 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14053 MAXPATHLEN.
14054 * win32-low.c: Don't include sys/param.h.
14055 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14056
bc7dea8d
PA
140572013-07-01 Pedro Alves <palves@redhat.com>
14058
14059 * event-loop.c: Don't check HAVE_UNISTD_H before including
14060 <unistd.h>.
14061 * gdbreplay.c: Likewise.
14062 * remote-utils.c: Likewise.
14063 * server.c: Likewise.
14064 * configure.ac: Don't check for unistd.h.
14065 * configure: Regenerate.
14066
d6c2da54
TT
140672013-06-28 Tom Tromey <tromey@redhat.com>
14068
14069 * Makefile.in (version.c): Use version.in, not
14070 common/version.in.
14071
257b6bec
MG
140722013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14073
14074 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14075 * configure: Rebuild.
14076 * Makefile.in (version_host, version_target): Get from configure.
14077 (version.c): Use $(version_host) and $(version_target).
14078
86ebe149
DK
140792013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14080
14081 Fix trace-status to output user name without trailing colon.
14082 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14083
f30aa5af
DK
140842013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14085
14086 Fix trace-status to output proper start-time and stop-time.
14087 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14088 output start time and stop time in hex as gdb expects.
14089
28a93511
YQ
140902013-06-26 Pedro Alves <pedro@codesourcery.com>
14091
14092 * tracepoint.c (build_traceframe_info_xml): Output trace state
14093 variables present in the trace buffer.
14094
01208463
TT
140952013-06-24 Tom Tromey <tromey@redhat.com>
14096
14097 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14098 create-version.sh.
14099 (version.o): Remove.
14100 * gdbreplay.c: Include version.h.
14101 (version, host_name): Don't declare.
14102 * server.h: Include version.h.
14103 (version, host_name): Don't declare.
14104
760256f9
PA
141052013-06-12 Pedro Alves <palves@redhat.com>
14106
14107 * linux-x86-low.c (linux_is_elf64): Delete global.
14108 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14109 with local linux_pid_exe_is_elf_64_file use.
14110
030031ee
PA
141112013-06-11 Pedro Alves <palves@redhat.com>
14112
14113 * linux-low.c (regset_disabled, disable_regset): New functions.
14114 (regsets_fetch_inferior_registers)
14115 (regsets_store_inferior_registers): Use them.
14116 (initialize_regsets_info); Don't allocate the disabled_regsets
14117 array here.
14118 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14119 comment.
14120
5da6eb0a
PA
141212013-06-11 Pedro Alves <palves@redhat.com>
14122
14123 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14124 xmalloc.
14125
7e5aaa09
PA
141262013-06-11 Pedro Alves <palves@redhat.com>
14127
14128 * linux-x86-low.c (initialize_low_arch): Call
14129 init_registers_x32_avx_linux.
14130
d878444c
JK
141312013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14132
14133 Fix compatibility with Android Bionic.
14134 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14135 it is not empty.
14136
3aee8918
PA
141372013-06-07 Pedro Alves <palves@redhat.com>
14138
5f2b57b5 14139 PR server/14823
3aee8918
PA
14140 * Makefile.in (OBS): Add tdesc.o.
14141 (IPA_OBJS): Add tdesc-ipa.o.
14142 (tdesc-ipa.o): New rule.
14143 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14144 interface.
14145 * linux-low.c (new_inferior): Delete.
14146 (disabled_regsets, num_regsets): Delete.
14147 (linux_add_process): Adjust to set the new per-process
14148 new_inferior flag.
14149 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14150 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14151 was a stop. When calling arch_setup, switch the current inferior
14152 to the thread that got an event.
14153 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14154 (regsets_fetch_inferior_registers)
14155 (regsets_store_inferior_registers): New regsets_info parameter.
14156 Adjust to use it.
14157 (linux_register_in_regsets): New regs_info parameter. Adjust to
14158 use it.
14159 (register_addr, fetch_register, store_register): New usrregs_info
14160 parameter. Adjust to use it.
14161 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14162 parameter regs_info. Adjust to use it.
14163 (linux_fetch_registers): Get the current inferior's regs_info, and
14164 adjust to use it.
14165 (linux_store_registers): Ditto.
14166 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14167 (initialize_low): Don't initialize the target_regsets here. Call
14168 initialize_low_arch.
14169 * linux-low.h (target_regsets): Delete declaration.
14170 (struct regsets_info): New.
14171 (struct usrregs_info): New.
14172 (struct regs_info): New.
14173 (struct process_info_private) <new_inferior>: New field.
14174 (struct linux_target_ops): Delete the num_regs, regmap, and
14175 regset_bitmap fields. New field regs_info.
14176 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14177 * i387-fp.c (num_xmm_registers): Delete.
14178 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14179 calls to new interface.
14180 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14181 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14182 Infer the number of xmm registers from the regcache's target
14183 description.
14184 * i387-fp.h (num_xmm_registers): Delete.
14185 * inferiors.c (add_thread): Don't install the thread's regcache
14186 here.
14187 * proc-service.c (gregset_info): Fetch the current inferior's
14188 regs_info. Adjust to use it.
14189 * regcache.c: Include tdesc.h.
14190 (register_bytes, reg_defs, num_registers)
14191 (gdbserver_expedite_regs): Delete.
14192 (get_thread_regcache): If the thread doesn't have a regcache yet,
14193 create one, instead of aborting gdbserver.
14194 (regcache_invalidate_one): Rename to ...
14195 (regcache_invalidate_thread): ... this.
14196 (regcache_invalidate_one): New.
14197 (regcache_invalidate): Only invalidate registers of the current
14198 process.
14199 (init_register_cache): Add target_desc parameter, and use it.
14200 (new_register_cache): Ditto. Assert the target description has a
14201 non zero registers_size.
14202 (regcache_cpy): Add assertions. Adjust.
14203 (realloc_register_cache, set_register_cache): Delete.
14204 (registers_to_string, registers_from_string): Adjust.
14205 (find_register_by_name, find_regno, find_register_by_number)
14206 (register_cache_size): Add target_desc parameter, and use it.
14207 (free_register_cache_thread, free_register_cache_thread_one)
14208 (regcache_release, register_cache_size): New.
14209 (register_size): Add target_desc parameter, and use it.
14210 (register_data, supply_register, supply_register_zeroed)
14211 (supply_regblock, supply_register_by_name, collect_register)
14212 (collect_register_as_string, collect_register_by_name): Adjust.
14213 * regcache.h (struct target_desc): Forward declare.
14214 (struct regcache) <tdesc>: New field.
14215 (init_register_cache, new_register_cache): Add target_desc
14216 parameter.
14217 (regcache_invalidate_thread): Declare.
14218 (regcache_invalidate_one): Delete declaration.
14219 (regcache_release): Declare.
14220 (find_register_by_number, register_cache_size, register_size)
14221 (find_regno): Add target_desc parameter.
14222 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14223 declarations.
14224 * remote-utils.c: Include tdesc.h.
14225 (outreg, prepare_resume_reply): Adjust.
14226 * server.c: Include tdesc.h.
14227 (gdbserver_xmltarget): Delete declaration.
14228 (get_features_xml, process_serial_event): Adjust.
14229 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14230 declare.
14231 (struct process_info) <tdesc>: New field.
14232 (ipa_tdesc): Declare.
14233 * tdesc.c: New file.
14234 * tdesc.h: New file.
14235 * tracepoint.c: Include tdesc.h.
14236 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14237 (get_context_regcache): Adjust to pass ipa_tdesc down.
14238 (do_action_at_tracepoint): Adjust to get the register cache size
14239 from the context regcache's description.
14240 (traceframe_walk_blocks): Adjust to get the register cache size
14241 from the current trace frame's description.
14242 (traceframe_get_pc): Adjust to get current trace frame's
14243 description and pass it down.
14244 (gdb_collect): Adjust to get the register cache size from the
14245 IPA's description.
14246 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14247 (gdbserver_xmltarget): Delete.
14248 (initialize_low_tracepoint): Set the ipa's target description.
14249 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14250 (initialize_low_tracepoint): Set the ipa's target description.
14251 * linux-x86-low.c: Include tdesc.h.
14252 [__x86_64__] (is_64bit_tdesc): New.
14253 (ps_get_thread_area, x86_get_thread_area): Use it.
14254 (i386_cannot_store_register): Rename to ...
14255 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14256 (i386_cannot_fetch_register): Rename to ...
14257 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14258 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14259 to new interface.
14260 (target_regsets): Rename to ...
14261 (x86_regsets): ... this.
14262 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14263 interface.
14264 (x86_siginfo_fixup): Use is_64bit_tdesc.
14265 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14266 (tdesc_x32_avx_linux, tdesc_x32_linux)
14267 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14268 Declare.
14269 (x86_linux_update_xmltarget): Delete.
14270 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14271 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14272 (AMD64_LINUX_USER64_CS): New.
14273 (x86_linux_read_description): New, based on
14274 x86_linux_update_xmltarget.
14275 (same_process_callback): New.
14276 (x86_arch_setup_process_callback): New.
14277 (x86_linux_update_xmltarget): New.
14278 (x86_regsets_info): New.
14279 (amd64_linux_regs_info): New.
14280 (i386_linux_usrregs_info): New.
14281 (i386_linux_regs_info): New.
14282 (x86_linux_regs_info): New.
14283 (x86_arch_setup): Reimplement.
14284 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14285 (x86_emit_ops): Ditto.
14286 (the_low_target): Adjust. Install x86_linux_regs_info,
14287 x86_cannot_fetch_register, and x86_cannot_store_register.
14288 (initialize_low_arch): New.
14289 * linux-ia64-low.c (tdesc_ia64): Declare.
14290 (ia64_fetch_register): Adjust.
14291 (ia64_usrregs_info, regs_info): New globals.
14292 (ia64_regs_info): New function.
14293 (the_low_target): Adjust.
14294 (initialize_low_arch): New function.
14295 * linux-sparc-low.c (tdesc_sparc64): Declare.
14296 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14297 Adjust.
14298 (sparc_arch_setup): New function.
14299 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14300 (the_low_target): Adjust.
14301 (initialize_low_arch): New function.
14302 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14303 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14304 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14305 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14306 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14307 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14308 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14309 (tdesc_powerpc_isa205_vsx64l): Declare.
14310 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14311 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14312 (ppc_set_pc, ppc_get_hwcap): Adjust.
14313 (ppc_usrregs_info): Forward declare.
14314 (!__powerpc64__) ppc_regmap_adjusted: New global.
14315 (ppc_arch_setup): Adjust to the current process'es target
14316 description.
14317 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14318 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14319 (ppc_store_evrregset): Adjust.
14320 (target_regsets): Rename to ...
14321 (ppc_regsets): ... this, and make static.
14322 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14323 (ppc_regs_info): New function.
14324 (the_low_target): Adjust.
14325 (initialize_low_arch): New function.
14326 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14327 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14328 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14329 (tdesc_s390x_linux64v2): Declare.
14330 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14331 (s390_fill_gregset, s390_store_last_break): Adjust.
14332 (target_regsets): Rename to ...
14333 (s390_regsets): ... this, and make static.
14334 (s390_get_pc, s390_set_pc): Adjust.
14335 (s390_get_hwcap): New target_desc parameter, and use it.
14336 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14337 (s390_arch_setup): Adjust to set the current process'es target
14338 description. Don't adjust the regmap.
14339 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14340 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14341 (regs_info_3264): New globals.
14342 (s390_regs_info): New function.
14343 (the_low_target): Adjust.
14344 (initialize_low_arch): New function.
14345 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14346 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14347 [__mips64] (init_registers_mips_linux)
14348 (init_registers_mips_dsp_linux): Delete defines.
14349 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14350 (have_dsp): New global.
14351 (mips_read_description): New, based on mips_arch_setup.
14352 (mips_arch_setup): Reimplement.
14353 (get_usrregs_info): New function.
14354 (mips_cannot_fetch_register, mips_cannot_store_register)
14355 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14356 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14357 (target_regsets): Rename to ...
14358 (mips_regsets): ... this, and make static.
14359 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14360 (dsp_regs_info, regs_info): New globals.
14361 (mips_regs_info): New function.
14362 (the_low_target): Adjust.
14363 (initialize_low_arch): New function.
14364 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14365 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14366 Declare.
14367 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14368 (arm_read_description): New, with bits factored from
14369 arm_arch_setup.
14370 (arm_arch_setup): Reimplement.
14371 (target_regsets): Rename to ...
14372 (arm_regsets): ... this, and make static.
14373 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14374 (arm_regs_info): New function.
14375 (the_low_target): Adjust.
14376 (initialize_low_arch): New function.
14377 * linux-m68k-low.c (tdesc_m68k): Declare.
14378 (target_regsets): Rename to ...
14379 (m68k_regsets): ... this, and make static.
14380 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14381 (m68k_regs_info): New function.
14382 (m68k_arch_setup): New function.
14383 (the_low_target): Adjust.
14384 (initialize_low_arch): New function.
14385 * linux-sh-low.c (tdesc_sharch): Declare.
14386 (target_regsets): Rename to ...
14387 (sh_regsets): ... this, and make static.
14388 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14389 (sh_regs_info, sh_arch_setup): New functions.
14390 (the_low_target): Adjust.
14391 (initialize_low_arch): New function.
14392 * linux-bfin-low.c (tdesc_bfin): Declare.
14393 (bfin_arch_setup): New function.
14394 (bfin_usrregs_info, regs_info): New globals.
14395 (bfin_regs_info): New function.
14396 (the_low_target): Adjust.
14397 (initialize_low_arch): New function.
14398 * linux-cris-low.c (tdesc_cris): Declare.
14399 (cris_arch_setup): New function.
14400 (cris_usrregs_info, regs_info): New globals.
14401 (cris_regs_info): New function.
14402 (the_low_target): Adjust.
14403 (initialize_low_arch): New function.
14404 * linux-cris-low.c (tdesc_crisv32): Declare.
14405 (cris_arch_setup): New function.
14406 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14407 (cris_regs_info): New function.
14408 (the_low_target): Adjust.
14409 (initialize_low_arch): New function.
14410 * linux-m32r-low.c (tdesc_m32r): Declare.
14411 (m32r_arch_setup): New function.
14412 (m32r_usrregs_info, regs_info): New globals.
14413 (m32r_regs_info): Adjust.
14414 (initialize_low_arch): New function.
14415 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14416 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14417 (tic6x_usrregs_info): Forward declare.
14418 (tic6x_read_description): New function, based on ...
14419 (tic6x_arch_setup): ... this. Reimplement.
14420 (target_regsets): Rename to ...
14421 (tic6x_regsets): ... this, and make static.
14422 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14423 (tic6x_regs_info): New function.
14424 (the_low_target): Adjust.
14425 (initialize_low_arch): New function.
14426 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14427 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14428 (target_regsets): Rename to ...
14429 (xtensa_regsets): ... this, and make static.
14430 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14431 globals.
14432 (xtensa_arch_setup, xtensa_regs_info): New functions.
14433 (the_low_target): Adjust.
14434 (initialize_low_arch): New function.
14435 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14436 (nios2_arch_setup): Set the current process'es tdesc.
14437 (target_regsets): Rename to ...
14438 (nios2_regsets): ... this.
14439 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14440 (nios2_regs_info): New function.
14441 (the_low_target): Adjust.
14442 (initialize_low_arch): New function.
a261b8f5
PA
14443 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14444 (aarch64_arch_setup): Set the current process'es tdesc.
14445 (target_regsets): Rename to ...
14446 (aarch64_regsets): ... this.
14447 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14448 (aarch64_regs_info): New function.
14449 (the_low_target): Adjust.
14450 (initialize_low_arch): New function.
3aee8918
PA
14451 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14452 globals.
14453 (target_regsets): Rename to ...
14454 (tile_regsets): ... this.
14455 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14456 (tile_regs_info): New function.
14457 (tile_arch_setup): Set the current process'es tdesc.
14458 (the_low_target): Adjust.
14459 (initialize_low_arch): New function.
14460 * spu-low.c (tdesc_spu): Declare.
14461 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14462 * win32-arm-low.c (tdesc_arm): Declare.
14463 (arm_arch_setup): New function.
14464 (the_low_target): Install arm_arch_setup instead of
14465 init_registers_arm.
14466 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14467 (init_windows_x86): Rename to ...
14468 (i386_arch_setup): ... this. Set `win32_tdesc'.
14469 (the_low_target): Adjust.
14470 * win32-low.c (win32_tdesc): New global.
14471 (child_add_thread): Don't create the thread cache here.
14472 (do_initial_child_stuff): Set the new process'es tdesc.
14473 * win32-low.h (struct target_desc): Forward declare.
14474 (win32_tdesc): Declare.
14475 * lynx-i386-low.c (tdesc_i386): Declare global.
14476 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14477 * lynx-low.c (lynx_tdesc): New global.
14478 (lynx_add_process): Set the new process'es tdesc.
14479 * lynx-low.h (struct target_desc): Forward declare.
14480 (lynx_tdesc): Declare global.
14481 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14482 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14483 * nto-low.c (nto_tdesc): New global.
14484 (do_attach): Set the new process'es tdesc.
14485 * nto-low.h (struct target_desc): Forward declare.
14486 (nto_tdesc): Declare.
14487 * nto-x86-low.c (tdesc_i386): Declare.
14488 (nto_x86_arch_setup): Set `nto_tdesc'.
14489
b1fbec62
GB
144902013-06-04 Gary Benson <gbenson@redhat.com>
14491
14492 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14493 to qSupported response when appropriate.
14494 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14495 with nonzero-length annex.
14496 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14497 arguments supplied in annex.
14498
d1ec4ce7
DE
144992013-05-31 Doug Evans <dje@google.com>
14500
ac44adcb 14501 PR server/15594
d1ec4ce7
DE
14502 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14503 64 bits in 64-cross-32 environment.
14504
9b25f2d3
PA
145052013-05-28 Pedro Alves <palves@redhat.com>
14506
14507 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14508 (aarch64-without-fpu.c): Delete rule.
14509 * configure.srv (aarch64*-*-linux*): Remove references to
14510 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14511 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14512 declaration.
14513
6740dc9c
PA
145142013-05-24 Pedro Alves <palves@redhat.com>
14515
14516 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14517 instead of strchr/decode_address. Error if the range isn't split
14518 with a ','. Don't assume there's be a ':' in the action.
14519
c2d6af84
PA
145202013-05-23 Yao Qi <yao@codesourcery.com>
14521 Pedro Alves <palves@redhat.com>
14522
14523 * linux-low.c (lwp_in_step_range): New function.
14524 (linux_wait_1): If the thread was range stepping and stopped
14525 outside the stepping range, report the stop to GDB. Otherwise,
14526 continue stepping. Add range stepping debug output.
14527 (linux_set_resume_request): Copy the step range from the resume
14528 request to the lwp.
14529 (linux_supports_range_stepping): New.
14530 (linux_target_ops) <supports_range_stepping>: Set to
14531 linux_supports_range_stepping.
14532 * linux-low.h (struct linux_target_ops)
14533 <supports_range_stepping>: New field.
14534 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14535 * linux-x86-low.c (x86_supports_range_stepping): New.
14536 (the_low_target) <supports_range_stepping>: Set to
14537 x86_supports_range_stepping.
14538 * server.c (handle_v_cont): Handle 'r' action.
14539 (handle_v_requests): Append ";r" if the target supports range
14540 stepping.
14541 * target.h (struct thread_resume) <step_range_start,
14542 step_range_end>: New fields.
14543 (struct target_ops) <supports_range_stepping>:
14544 New field.
14545 (target_supports_range_stepping): New macro.
14546
58794e1a
JB
145472013-05-17 Joel Brobecker <brobecker@adacore.com>
14548
14549 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14550 confusion in comment.
14551
d631c5a7
JB
145522013-05-17 Joel Brobecker <brobecker@adacore.com>
14553
14554 * lynx-low.c (struct process_info_private): New type.
14555 (lynx_add_process): New function.
14556 (lynx_create_inferior, lynx_attach): Replace calls to
14557 add_process by calls to lynx_add_process.
14558 (lynx_resume): If PTID is null, then try using
14559 current_process()->private->last_wait_event_ptid.
14560 Add comments.
14561 (lynx_clear_inferiors): Delete. The contents of that function
14562 has been inlined in lynx_mourn;
14563 (lynx_wait_1): Save the ptid in the process's private data.
14564 (lynx_mourn): Free the process' private data. Replace call
14565 to lynx_clear_inferiors by call to clear_inferiors.
14566
96f7a20f
YQ
145672013-05-17 Yao Qi <yao@codesourcery.com>
14568
14569 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14570 the right place.
14571
db0dfaa0
LM
145722013-05-16 Luis Machado <lgustavo@codesourcery.com>
14573
14574 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14575 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14576 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14577 PT_TEXT_END_ADDR guards. Update comments.
14578 (linux_target_op) <read_offsets>: Conditionally define to
14579 linux_read_offsets if the target is UCLIBC and if it defines
14580 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14581
68f5f838
SL
145822013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14583 Andrew Jenner <andrew@codesourcery.com>
14584
14585 * Makefile.in (SFILES): Add linux-nios2-low.c.
14586 (clean): Add action to delete nios2-linux.c.
14587 (nios2-linux.c): New rule.
14588 * configure.srv: Add nios2*-*-linux*.
14589 * linux-nios2-low.c: New.
14590
1ebff1fd
HAQ
145912013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14592
14593 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14594
f6150862
HZ
145952013-04-25 Hui Zhu <hui@codesourcery.com>
14596
14597 PR gdb/15186
f6150862
HZ
14598 * ax.c (ax_printf): Add fflush.
14599
614c279d
TT
146002013-04-22 Tom Tromey <tromey@redhat.com>
14601
14602 * Makefile.in (SFILES): Add filestuff.c.
14603 (OBS): Add filestuff.o.
14604 (filestuff.o): New target.
14605 * config.in, configure: Rebuild.
14606 * configure.ac: Check for fdwalk, pipe2.
14607
7d4e5717
PA
146082013-04-17 Pedro Alves <palves@redhat.com>
14609
14610 * configure.ac (USE_THREAD_DB): Delete variable.
14611 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14612 Don't AC_SUBST USE_THREAD_DB.
14613 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14614 * config.in, configure: Regenerate.
14615
d5c93e41
PA
146162013-04-16 Pedro Alves <palves@redhat.com>
14617
14618 * linux-low.h (struct lwp_info) <thread_known>: Move under
14619 the USE_THREAD_DB #ifdef.
14620
04f5fe89
PA
146212013-04-16 Pedro Alves <palves@redhat.com>
14622
14623 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14624 (linux-low.o): Delete rule.
14625 * linux-low.h: Always include "gdb_thread_db.h" instead of
14626 conditionally including thread_db.h.
14627 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14628 HAVE_THREAD_DB_H.
14629
480b27bf
JK
146302013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14631
14632 * Makefile.in (install-only): Fix make install regression.
14633
43662968
JK
146342013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14635
14636 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14637 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14638 installation.
14639 * gdbserver.1: Remove.
14640
3e74e146
PA
146412013-03-22 Pedro Alves <palves@redhat.com>
14642
14643 * linux-low.c (handle_extended_wait): Don't call
14644 linux_enable_event_reporting.
14645
a8347a2a
TT
146462013-03-15 Tony Theodore <tonyt@logyst.com>
14647
14648 PR build/9098:
14649 * Makefile.in (SHELL): Use @SHELL@.
14650
eeb56fa7
SDJ
146512013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14652
14653 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14654 compiler warning.
14655
4fa7e2ff
JB
146562013-03-13 Joel Brobecker <brobecker@adacore.com>
14657
14658 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14659 Remove extraneous NULL element.
14660
8ddb1965
YQ
146612013-03-13 Yao Qi <yao@codesourcery.com>
14662
14663 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14664 'V' block in trace frame.
14665
9accd112
MM
146662013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14667
14668 * target.h (struct target_ops): Add btrace ops.
14669 (target_supports_btrace): New macro.
14670 (target_enable_btrace): New macro.
14671 (target_disable_btrace): New macro.
14672 (target_read_btrace): New macro.
14673 * gdbthread.h (struct thread_info): Add btrace field.
14674 * server.c: Include btrace-common.h.
14675 (handle_btrace_general_set): New function.
14676 (handle_btrace_enable): New function.
14677 (handle_btrace_disable): New function.
14678 (handle_general_set): Call handle_btrace_general_set.
14679 (handle_qxfer_btrace): New function.
14680 (struct qxfer qxfer_packets[]): Add btrace entry.
14681 * inferiors.c (remove_thread): Disable btrace.
14682 * linux-low: Include linux-btrace.h.
14683 (linux_low_enable_btrace): New function.
14684 (linux_low_read_btrace): New function.
14685 (linux_target_ops): Add btrace ops.
14686 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14687 Add srv_linux_btrace=yes.
14688 (x86_64-*-linux*): Add linux-btrace.o.
14689 Add srv_linux_btrace=yes.
14690 * configure.ac: Define HAVE_LINUX_BTRACE.
14691 * config.in: Regenerated.
14692 * configure: Regenerated.
14693
5cc22e4c
MM
146942013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14695
14696 * server.c (handle_qxfer): Preserve error message if -3 is
14697 returned.
14698 (qxfer): Document the -3 return value.
14699
7c97f91e
MM
147002013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14701
14702 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14703 (linux_btrace_h): New variable.
14704 (linux-btrace.o): New rule.
14705
be9a119c 147062013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14707 Hafiz Abid Qadeer <abidh@codesourcery.com>
14708
14709 * tracepoint.c (trace_buffer_size): New global.
14710 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14711 (init_trace_buffer): Change to one-argument function. Allocate
14712 trace buffer memory.
14713 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14714 handle QTBuffer:size packet.
14715 (cmd_bigqtbuffer_size): New function.
14716 (initialize_tracepoint): Call init_trace_buffer with
14717 DEFAULT_TRACE_BUFFER_SIZE.
14718 * server.c (handle_query): Add QTBuffer:size in the
14719 supported packets.
14720
e64f7499
YQ
147212013-03-07 Yao Qi <yao@codesourcery.com>
14722
14723 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14724 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14725 of -1.
14726 (cmd_qtsp): Adjust condition. Do post increment.
14727 Set cur_action and cur_step_action back to 0.
14728
f0ae6fc3
PA
147292013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14730
14731 PR server/15236
14732 * linux-low.c (linux_write_memory): Return early success if LEN is
14733 zero.
14734
b5b0b0af
CV
147352013-03-05 Corinna Vinschen <vinschen@redhat.de>
14736
334ad4a8 14737 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14738
589bc927
TT
147392013-02-28 Tom Tromey <tromey@redhat.com>
14740
14741 * configure.ac: Invoke AC_SYS_LARGEFILE.
14742 * configure, config.in: Rebuild.
14743
dfe07582
CV
147442013-02-28 Corinna Vinschen <vinschen@redhat.com>
14745
14746 * win32-low.c: Throughout, fix format strings and casts of
14747 printf-like functions to avoid type related warnings on all
14748 platforms.
14749 (get_child_debug_event): Print dwDebugEventCode as hex since
14750 that's how it's usually documented.
14751
736cd585
YQ
147522013-02-28 Yao Qi <yao@codesourcery.com>
14753
14754 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14755 pulongest.
14756
e1f58301
JW
147572013-02-27 Jiong Wang <jiwang@tilera.com>
14758
14759 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14760 (reg-tilegx32.c): New rule.
14761 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14762 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14763 different register info initializer according to elf class.
14764 (init_registers_tilgx32): New function. The tilegx32 register info
14765 initializer.
14766 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14767 (tile_store_gregset): Likewise.
14768
d171ca78
YQ
147692013-02-27 Yao Qi <yao@codesourcery.com>
14770
14771 * server.c (process_point_options): Print debug message when
14772 debug_threads is true.
14773
282bbdf3
YQ
147742013-02-26 Yao Qi <yao@codesourcery.com>
14775
14776 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14777
aca22551
PA
147782013-02-19 Pedro Alves <palves@redhat.com>
14779 Kai Tietz <ktietz@redhat.com>
14780
14781 PR gdb/15161
14782
14783 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14784 instead of strtoul to extract address from packet.
14785 (process_serial_event) <'z'>: Likewise.
14786
4f3cee1c
YQ
147872013-02-18 Yao Qi <yao@codesourcery.com>
14788
14789 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14790
8e1d55a3
PA
147912013-02-14 Pedro Alves <palves@redhat.com>
14792
14793 Plug memory leak.
14794
14795 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14796 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14797
458820da
PA
147982013-02-14 Pedro Alves <palves@redhat.com>
14799
14800 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14801
baea0dae
PA
148022013-02-14 Pedro Alves <palves@redhat.com>
14803
14804 * tracepoint.c (save_string): Delete.
14805 (add_tracepoint_action): Use savestring instead of save_string.
14806
0b1afbb3
PA
148072013-02-12 Pedro Alves <palves@redhat.com>
14808
14809 * linux-xtensa-low.c: Ditto.
14810 * xtensa-xtregs.c: Ditto.
14811
8a4ac37e
PA
148122013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14813
14814 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14815 thread_db.
14816
148de6bb
MS
148172013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14818
14819 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14820 aarch64_num_wp_regs and aarch64_num_bp_regs to
14821 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14822
55fac6e0
MS
148232013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14824
14825 * linux-aarch64-low.c (ps_get_thread_area): Replace
14826 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14827
176eb98c
MS
148282013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14829 Marcus Shawcroft <marcus.shawcroft@arm.com>
14830 Nigel Stephens <nigel.stephens@arm.com>
14831 Yufeng Zhang <yufeng.zhang@arm.com>
14832
14833 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14834 (aarch64.c, aarch64-without-fpu.c): New targets.
14835 * configure.srv (aarch64*-*-linux*): New.
14836 * linux-aarch64-low.c: New file.
14837
56f7af9c
MS
148382013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14839
43aaf8b6 14840 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14841 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14842 (dequeue_one_deferred_signal, linux_resume_one_thread)
14843 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14844 (linux_tracefork_grandchild, linux_test_for_tracefork)
14845 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14846 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14847 where the argument is 0.
14848
60f662b0
YQ
148492013-01-25 Yao Qi <yao@codesourcery.com>
14850
14851 * event-loop.c: Include "queue.h".
14852 (gdb_event_p): New typedef.
14853 (struct gdb_event) <next_event>: Remove.
14854 (event_queue): Change to QUEUE(gdb_event_p).
14855 (async_queue_event): Remove.
14856 (gdb_event_xfree): New.
14857 (initialize_event_loop): New.
14858 (process_event): Use API from QUEUE.
14859 (wait_for_event): Likewise.
14860 * server.c (main): Call initialize_event_loop.
14861 * server.h (initialize_event_loop): Declare.
14862
5ae4861a
YQ
148632013-01-18 Yao Qi <yao@codesourcery.com>
14864
14865 * ax.h (struct eval_agent_expr_context): New.
14866 (gdb_eval_agent_expr): Update declaration.
14867 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14868 TFRAME. Add new argument CTX.
14869 * server.h (struct eval_agent_expr_context): Declare.
14870 (agent_mem_read, agent_tsv_read): Update declaration.
14871 (agent_mem_read_string): Likewise.
14872 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14873 (add_traceframe_block): Add new argument TPOINT.
14874 Increase TPOINT->traceframe_usage.
14875 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14876 eval_tracepoint_agent_expr.
14877 (condition_true_at_tracepoint): Likewise.
14878 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14879 (agent_mem_read_string, agent_tsv_read): Likewise.
14880
85e00e85
YQ
148812013-01-16 Yao Qi <yao@codesourcery.com>
14882
14883 * linux-low.c (linux_resume_one_lwp): Don't check
14884 'lwp->bp_reinsert != 0'.
14885
4039cf45
JB
148862013-01-07 Joel Brobecker <brobecker@adacore.com>
14887 Pedro Alves <palves@redhat.com>
14888
14889 * lynx-low.c (ptrace_request_to_str): Define a temporary
14890 macro and use it to simplify this function's implementation.
14891
9044dee2
JB
148922013-01-07 Joel Brobecker <brobecker@adacore.com>
14893
14894 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14895 sets errno.
14896
e6352c8f
JB
148972013-01-07 Joel Brobecker <brobecker@adacore.com>
14898
14899 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14900
50681a27
JB
149012013-01-07 Joel Brobecker <brobecker@adacore.com>
14902
14903 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14904
3f6e77ef
JB
149052013-01-07 Joel Brobecker <brobecker@adacore.com>
14906
14907 * lynx-low.c (lynx_resume): Use the resume_info parameter
14908 to determine the ptid for the lynx_ptrace call, unless
14909 it is equal to minus_one_ptid, in which case we use the
14910 ptid of the current_inferior.
14911 (lynx_wait_1): After having received a thread create/exit
14912 event, resume the inferior's execution using the signaling
14913 thread's ptid, rather than the old ptid.
14914
7fda33ae
JB
149152013-01-07 Joel Brobecker <brobecker@adacore.com>
14916
14917 * lynx-low.c (lynx_resume): Delete variable ret.
14918
b9786c74
JB
149192013-01-01 Joel Brobecker <brobecker@adacore.com>
14920
14921 * gdbreplay.c (gdbreplay_version): Update copyright year.
14922 * server.c (gdbserver_version): Likewise.
14923
8b93d60f
JB
149242012-12-17 Joel Brobecker <brobecker@adacore.com>
14925
14926 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14927 new thread.
14928
037335a7
JB
149292012-12-17 Joel Brobecker <brobecker@adacore.com>
14930
14931 * lynx-low.c (ptrace_request_to_str): Add handling for
14932 PTRACE_GETTRACESIG.
14933
52d4cbd8
JB
149342012-12-17 Joel Brobecker <brobecker@adacore.com>
14935
14936 * lynx-low.c (lynx_attach): Delete variable new_process.
14937
ab8f6ca9
JB
149382012-12-17 Joel Brobecker <brobecker@adacore.com>
14939
14940 * lynx-low.c (lynx_create_inferior): Delete variable
14941 new_process.
14942
78cbc024
JB
149432012-12-17 Joel Brobecker <brobecker@adacore.com>
14944
14945 * lynx-low.c (ptrace_request_to_str): Do not handle
14946 PTRACE_GETTHREADLIST if this macro does not exist.
14947
14a00470
YQ
149482012-12-15 Yao Qi <yao@codesourcery.com>
14949
14950 * Makefile.in (OBS): Add notif.o.
14951 * notif.c, notif.h: New.
14952 * server.c: Include "notif.h".
14953 (struct vstop_notif) <next>: Remove.
14954 <base>: New field.
14955 (queue_stop_reply): Update.
14956 (push_event, send_next_stop_reply): Remove.
14957 (discard_queued_stop_replies): Update.
14958 (notif_stop): New variable.
14959 (handle_v_stopped): Remove.
14960 (handle_v_requests): Don't call handle_v_stopped. Call
14961 handle_ack_notif instead.
14962 (queue_stop_reply_callback): Call notif_event_enque instead
14963 of queue_stop_reply.
14964 (handle_status): Don't call send_next_stop_reply, call
14965 notif_write_event instead.
14966 (kill_inferior_callback): Likewise.
14967 (detach_or_kill_inferior_callback): Likewise.
14968 (main): Call initialize_notif.
14969 (process_serial_event): Call QUEUE_is_empty.
14970 (handle_target_event): Call notif_push instead of push event.
14971 * server.h (push_event): Remove declaration.
14972
61c125b9
TT
149732012-12-10 Tom Tromey <tromey@redhat.com>
14974
14975 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14976 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14977 macros.
14978 (.c.o): Rewrite.
14979 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14980 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14981 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14982 (amd64-linux-ipa.o, ax.o): Rewrite.
14983 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14984 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14985 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14986 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14987 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14988 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14989 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14990 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14991 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14992 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14993 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14994 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14995 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14996 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14997 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14998 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14999 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15000 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15001 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15002 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15003 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15004 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15005 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15006 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15007 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15008 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15009 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15010 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15011 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15012 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15013 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15014 (reg-tilegx.o): Remove.
15015 (all_object_files): New macro.
15016 Include .deps files.
15017 * aclocal.m4, configure: Rebuild.
15018 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15019 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15020 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15021
e90e9ad9
TT
150222012-12-05 Tom Tromey <tromey@redhat.com>
15023
15024 PR gdb/14917:
15025 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15026
02d403bf 150272012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15028
15029 * configure.ac: Check for linux/perf_event.h.
15030 * config.in: Regenerated.
15031 * configure: Regenerated.
15032
0270a750
PA
150332012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15034
15035 * hostio.c (handle_readlink): Decrease buffer size
15036 parameter passed to readlink by one byte.
15037
8c29b58e
YQ
150382012-11-26 Yao Qi <yao@codesourcery.com>
15039
15040 * configure.ac (build_warnings): Append '-Wempty-body'.
15041 * configure: Regenerated.
15042 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15043 body.
15044
8bdce1ff
PM
150452012-11-15 Pierre Muller <muller@sourceware.org>
15046
15047 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15048 * config.in: Regenerate.
15049 * configure: Regenerate.
15050 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15051 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15052 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15053 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15054 header.
15055 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15056 instead of <sys/wait.h> header.
15057 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15058
02d403bf 150592012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15060
15061 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15062 (various make rules): Remove -DGDBSERVER
15063
fbd5db48
YQ
150642012-11-09 Yao Qi <yao@codesourcery.com>
15065
15066 * spu-low.c (current_ptid): Move it to ..
15067 * gdbthread.h: ... here. New.
15068 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15069 * server.c (myresume, process_serial_event): Likewise.
15070 * thread-db.c (thread_db_find_new_threads): Likewise.
15071 * tracepoint.c (run_inferior_command): Likewise.
15072
b3dc46ff
AB
150732012-10-01 Andrew Burgess <aburgess@broadcom.com>
15074
15075 * server.c (handle_search_memory_1): Include access length in
15076 warning message.
15077
07c04788
HPN
150782012-09-05 Michael Brandt <michael.brandt@axis.com>
15079
15080 * linux-crisv32-low.c: Fix compile errors.
15081
918d227b
YQ
150822012-09-04 Yao Qi <yao@codesourcery.com>
15083
15084 * tracepoint.c (cmd_qtsv): Adjust debug message.
15085 Don't check CUR_TPOINT.
15086
18c1b81a
YQ
150872012-08-28 Yao Qi <yao@codesourcery.com>
15088
15089 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15090 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15091 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15092 Remove declarations of xmalloc, xreallloc, xstrdup and
15093 freeargv.
15094 * Makefile.in (libiberty_h): New.
15095 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15096 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15097
dc82f37b
YQ
150982012-08-23 Yao Qi <yao@codesourcery.com>
15099
15100 * server.h: Remove declaration of 'xsnprintf'.
15101
406b1477
KS
151022012-08-22 Keith Seitz <keiths@redhat.com>
15103
15104 * server.h: Include build-gnulib-gbserver/config.h.
15105 * gdbreplay.c: Likewise.
15106
e6712ff1
DE
151072012-08-08 Doug Evans <dje@google.com>
15108
15109 * Makefile.in (SFILES): Add gdb_vecs.c.
15110 (OBS): Add gdb_vecs.o.
15111 (gdb_vecs_h, host_defs_h): New variables.
15112 (thread-db.o): Add $(gdb_vecs_h) dependency.
15113 (gdb_vecs.o): New rule.
15114 * thread-db.c: #include "gdb_vecs.h".
15115 (thread_db_load_search): Use a vector to iterate over path elements.
15116 Handle text appearing after "$pdir".
15117
15118 * configure.ac: Add check for strstr.
15119 * config.in: Regenerate.
15120 * configure: Regenerate.
15121
7c3270ae
UW
151222012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15123
15124 * hostio.c (handle_pread): If pread fails, fall back to attempting
15125 lseek/read.
15126 (handle_pwrite): Likewise for pwrite.
15127
b62e2b27
UW
151282012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15129
15130 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15131 between unsupported TYPE and unimplementable ADDR/LEN combination.
15132 (arm_insert_point): Act on new return value.
15133
78a99e91
PA
151342012-07-31 Pedro Alves <palves@redhat.com>
15135
15136 * server.c (process_point_options): Only skip tokens if we find
15137 one that is unrecognized. Don't treat 'X' specially while
15138 skipping unrecognized tokens.
15139
fcf303ab
UW
151402012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15141
15142 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15143 to 4-byte-align HW breakpoint addresses for Thumb.
15144
7255706c
YQ
151452012-07-27 Yao Qi <yao@codesourcery.com>
15146
15147 PR remote/14161.
15148
15149 * server.h: Declare gdb_agent_about_to_close.
15150 * target.c (kill_inferior): Include "agent.h".
15151 New. Send command 'kill'.
15152 * target.h (kill_inferior): Removed macro.
15153 * tracepoint.c (gdb_agent_about_to_close): New.
15154 (gdb_agent_helper_thread): Handle command 'close'.
15155 Wait endlessly until the inferior stops.
15156 Install gdb_agent_remove_socket to atexit hook.
15157 (agent_socket_name): New static variable.
15158 (gdb_agent_socket_init): Replace local variable 'name' with
15159 'agent_socket_name'.
15160 (gdb_agent_remove_socket): New.
15161
5a3f286f
YQ
151622012-07-27 Yao Qi <yao@codesourcery.com>
15163
15164 * server.c (process_point_options): Stop at 'X' when parsing.
15165
961bd387
ME
151662012-07-19 Michael Eager <eager@eagercon.com>
15167
a261b8f5 15168 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15169 to hw_execute.
15170 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15171 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15172 hardware breakpoint.
15173
aa7c7447
JK
151742012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15175
15176 * gdbserver/linux-low.c (initialize_low): Call
15177 linux_ptrace_init_warnings.
15178
7f216e7c
DE
151792012-07-02 Doug Evans <dje@google.com>
15180
15181 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15182 pointer to int.
15183
d3ce09f5
SS
151842012-07-02 Stan Shebs <stan@codesourcery.com>
15185
15186 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15187 (ax.o): Add it to build rule.
15188 (ax-ipa.o): Ditto.
15189 (OBS): Add format.o.
15190 (IPA_OBS): Add format.o.
15191 * server.c (handle_query): Claim support for breakpoint commands.
15192 (process_point_options): Add command case.
15193 (process_serial_event): Leave running if there are printfs in
15194 effect.
15195 * mem-break.h (any_persistent_commands): Declare.
15196 (add_breakpoint_commands): Declare.
15197 (gdb_no_commands_at_breakpoint): Declare.
15198 (run_breakpoint_commands): Declare.
15199 * mem-break.c (struct point_command_list): New struct.
15200 (struct breakpoint): New field command_list.
15201 (any_persistent_commands): New function.
15202 (add_commands_to_breakpoint): New function.
15203 (add_breakpoint_commands): New function.
15204 (gdb_no_commands_at_breakpoint): New function.
15205 (run_breakpoint_commands): New function.
15206 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15207 locally.
15208 * ax.c: Include format.h.
15209 (ax_printf): New function.
15210 (gdb_eval_agent_expr): Add printf opcode.
15211
2f8f6aed
YQ
152122012-06-13 Yao Qi <yao@codesourcery.com>
15213
15214 * server.c (start_inferior): Remove duplicated writes to fields
15215 'last_resume_kind' and 'last_status' of 'current_inferior'.
15216
0c9070b3
YQ
152172012-06-12 Yao Qi <yao@codesourcery.com>
15218 Pedro Alves <palves@redhat.com>
15219
15220 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15221 comment.
15222 * server.c (handle_v_cont): Extend comment.
15223
c52daf70
YQ
152242012-06-11 Yao Qi <yao@codesourcery.com>
15225
15226 * linux-low.c (linux_attach): Add 'static'.
15227
d38bbb0a
YQ
152282012-06-06 Yao Qi <yao@codesourcery.com>
15229
15230 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15231
89dc0afd
JK
152322012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15233
15234 Fix gcc -flto compilation warning.
15235 * server.c (main): Make variable multi_mode and attach volatile.
15236
75f62ce7
TJB
152372012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15238
15239 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15240 if the platform doesn't know about it.
15241
65f479b6
PA
152422012-05-30 Jeff Kenton <jkenton@tilera.com>
15243
15244 * Makefile.in (SFILES): Add linux-tile-low.c.
15245 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15246 * configure.srv: Handle tilegx-*-linux*.
15247 * linux-tile-low.c: New file.
15248
0c5bf5a9
JK
152492012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15250
15251 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15252
a493e3e2
PA
152532012-05-24 Pedro Alves <palves@redhat.com>
15254
15255 PR gdb/7205
15256
43aaf8b6 15257 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15258
2ea28649
PA
152592012-05-24 Pedro Alves <palves@redhat.com>
15260
15261 PR gdb/7205
15262
15263 Replace target_signal with gdb_signal throughout.
15264
8d409d16
MR
152652012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15266
15267 * linux-low.c (linux_store_registers): Avoid the copying sequence
15268 when no data has been retrieved by ptrace.
15269
23512c01
MGD
152702012-05-22 Will Deacon <will.deacon@arm.com>
15271
15272 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15273 Include asm/ptrace.h.
15274 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15275 already defined.
15276
4934b29e
MR
152772012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15278
15279 * linux-low.c (linux_store_registers): Don't re-retrieve data
15280 with ptrace that has already been obtained from /proc. Always
15281 copy any data retrieved with ptrace to the buffer supplied.
15282
bde24c0a
PA
152832012-05-11 Yao Qi <yao@codesourcery.com>
15284 Pedro Alves <palves@redhat.com>
15285
15286 * linux-low.c (enum stopping_threads_kind): New.
15287 (stopping_threads): Change type to `enum stopping_threads_kind'.
15288 (handle_extended_wait): If stopping and suspending threads, leave
15289 the new_lwp suspended too.
15290 (linux_wait_for_event): Adjust.
15291 (stop_all_lwps): Set `stopping_threads' to
15292 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15293 whether we're suspending threads or just stopping them. Assert no
15294 recursion happens.
15295
623b6bdf
YQ
152962012-04-29 Yao Qi <yao@codesourcery.com>
15297
15298 * server.h: Move some code to ...
15299 * gdbthread.h: ... here. New.
15300 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15301 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15302 (nto-low.o, win32-low.o): Likewise.
15303 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15304 * regcache.c, remote-utils.c, server.c: Likewise.
15305 * target.c, tracepoint.c, win32-low.c: Likewise.
15306
f15f9948
TJB
153072012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15308
15309 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15310 (PTRACE_ARG4_TYPE): Likewise.
15311 (PTRACE_XFER_TYPE): Likewise.
15312 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15313 ptrace to PTRACE_ARG3_TYPE.
15314 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15315 (PTRACE_ARG4_TYPE): Likewise.
15316 (PTRACE_XFER_TYPE): Likewise.
15317 (linux_detach_one_lwp): Cast fourth argument of
15318 ptrace to long then PTRACE_ARG4_TYPE.
15319 (regsets_fetch_inferior_registers): Cast third argument of
15320 ptrace to long then PTRACE_ARG3_TYPE.
15321 (regsets_store_inferior_registers): Likewise.
15322
38ea300a
PA
153232012-04-20 Pedro Alves <palves@redhat.com>
15324
15325 * configure: Regenerate.
15326
c971b7fa
PA
153272012-04-19 Pedro Alves <palves@redhat.com>
15328
43aaf8b6 15329 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15330 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15331 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15332 (all, install-only, uninstall, clean-info, all-lib, clean): No
15333 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15334 (maintainer-clean realclean distclean): Use subdir_do.
15335 (subdir_do): New.
15336 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15337 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15338 * acinclude.m4: Include acx_configure_dir.m4.
15339 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15340 calls. Call AC_PROG_RANLIB. Configure gnulib using
15341 ACX_CONFIGURE_DIR.
15342 (GNULIB): New.
15343 (GNULIB_STDINT_H): Adjust.
15344 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15345 * gdbreplay.c: Include build-gnulib/config.h.
15346 * server.h: Likewise.
15347 * aclocal.m4: Regenerate.
15348 * config.in: Regenerate.
15349 * configure: Regenerate.
c971b7fa 15350
809277f8
PA
153512012-04-19 Pedro Alves <palves@redhat.com>
15352
15353 * Makefile.in (LIBGNU, INCGNU): Adjust.
15354 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15355 (all, install-only, uninstall, clean-info, all-lib, clean)
15356 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15357 * configure.ac: Adjust AC_OUTPUT output.
15358 * aclocal.m4: Regenerate.
15359 * configure: Regenerate.
15360
fd9bb8b8
PA
153612012-04-19 Pedro Alves <palves@redhat.com>
15362
15363 * Makefile.in (generated_files): New.
15364 (server_h): Remove the explicit dependency on config.h, and depend
15365 on $generated_files.
15366
1c298c66
PA
153672012-04-19 Pedro Alves <palves@redhat.com>
15368
15369 * Makefile.in (INCGNU): Add -Ignulib.
15370
57c4b50b
PA
153712012-04-19 Pedro Alves <palves@redhat.com>
15372
15373 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15374 (INCGNU): ... this, and spell out -I here.
15375 (GNULIB_LIB): Rename to ...
15376 (LIBGNU): ... this.
15377 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15378
1030e047
PA
153792012-04-19 Pedro Alves <palves@redhat.com>
15380
15381 * config.in: Regenerate.
15382
447d4319
PA
153832012-04-19 Pedro Alves <palves@redhat.com>
15384
15385 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15386 * server.h (memmem): Remove declaration.
15387 * config.in: Regenerate.
15388 * configure: Regenerate.
15389
aad9eab9
YQ
153902012-04-19 Yao Qi <yao@codesourcery.com>
15391
15392 * Makefile.in (SFILES): Add common/vec.c.
15393 (OBS): Add vec.o.
15394 (vec.o): New rule.
15395
3e10640f
YQ
153962012-04-19 Yao Qi <yao@codesourcery.com>
15397
15398 * remote-utils.c (prepare_resume_reply): Replace with macro
15399 target_core_of_thread.
15400 * server.c (handle_qxfer_threads_proper): Likewise.
15401 * target.h (traget_core_of_thread): New macro.
15402
71622373
PA
154032012-04-18 Pedro Alves <palves@redhat.com>
15404
15405 * aclocal.m4: Regenerate.
15406 * configure: Regenerate.
15407
80d26939
YQ
154082012-04-16 Yao Qi <yao@codesourcery.com>
15409
15410 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15411 duplicated on address.
15412
42476b70
YQ
154132012-04-16 Yao Qi <yao@codesourcery.com>
15414
15415 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15416 (struct tracepoint_action_ops) <send>: New field.
15417 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15418 (agent_expr_send, x_tracepoint_action_send): New.
15419 (l_tracepoint_action_send): New.
15420 (cmd_qtdp): Download and install tracepoint
15421 according to `use_agent'.
15422 (run_inferior_command): Add one more parameter `len'.
15423 Update callers.
15424 (tracepoint_send_agent): New.
15425 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15426
7bc83639
YQ
154272012-04-16 Yao Qi <yao@codesourcery.com>
15428
15429 * tracepoint.c (download_tracepoints): Moved to ...
15430 (cmd_qtstart): ... here.
15431
5f18041e
YQ
154322012-04-14 Yao Qi <yao@codesourcery.com>
15433
15434 * tracepoint.c: Include inttypes.h.
15435 (struct collect_memory_action): Use sized types.
15436 (struct tracepoint): Likewise.
15437 (cmd_qtdp, stop_tracing): Update print specifiers.
15438 (cmd_qtp, response_tracepoint): Likewise.
15439 (collect_data_at_tracepoint): Likewise.
15440 (collect_data_at_step): Likewise.
15441
55a8c076
YQ
154422012-04-14 Yao Qi <yao@codesourcery.com>
15443
15444 Import gnulib module inttypes.
15445 * aclocal.m4, config.in, configure: Regenerated.
15446
dc750257
YQ
154472012-04-14 Yao Qi <yao@codesourcery.com>
15448
15449 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15450 Makefile and config.status at last.
15451
0ab5faf9
YQ
154522012-04-13 Yao Qi <yao@codesourcery.com>
15453
15454 * tracepoint.c: Include stdint.h unconditionally.
15455
18f5fd81
TJB
154562012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15457
15458 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15459 on BFD_HAVE_SYS_PROCFS_TYPE.
15460 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15461 * configure: Regenerate.
15462 * config.in: Likewise.
15463
4d47af5c
L
154642012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15465
15466 * Makefile.in (clean): Also remove x32.c x32-linux.c
15467 x32-avx.c x32-avx-linux.c.
15468 (x32.o): New target.
15469 (x32.c): Likewise.
15470 (x32-linux.o): Likewise.
15471 (x32-linux.c): Likewise.
15472 (x32-avx.o): Likewise.
15473 (x32-avx.c): Likewise.
15474 (x32-avx-linux.o): Likewise.
15475 (x32-avx-linux.c): Likewise.
15476
15477 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15478 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15479 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15480 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15481 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15482 i386/x32-avx-linux.xml.
15483
15484 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15485 (init_registers_x32_avx_linux): Likwise.
15486 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15487 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15488
ecedbe58
PA
154892012-04-13 Pedro Alves <palves@redhat.com>
15490
15491 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15492 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15493 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15494 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15495 the sub-make.
15496
c92b5177
L
154972012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15498
15499 * linux-x86-low.c (compat_x32_clock_t): New.
15500 (compat_x32_siginfo_t): Likewise.
15501 (compat_x32_siginfo_from_siginfo): Likewise.
15502 (siginfo_from_compat_x32_siginfo): Likewise.
15503 (linux_is_elf64): Likewise.
15504 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15505 and siginfo_from_compat_x32_siginfo for x32.
15506 (x86_arch_setup): Set linux_is_elf64.
15507
214d508e
L
155082012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15509
15510 PR gdb/13969
15511 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15512 e_machine field.
15513 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15514 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15515 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15516 compatible with process.
15517
c9a1864a
YQ
155182012-04-12 Yao Qi <yao@codesourcery.com>
15519
15520 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15521 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15522 (install-only, install-info, clean): Handle sub dir gnulib.
15523 (all-lib, am--refresh): New targets.
15524 (memmem.o): Remove target.
15525 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15526 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15527 (AC_REPLACE_FUNCS): Remove memmem.
15528 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15529 (AC_OUTPUT): Generate Makefile in gnulib/.
15530 * aclocal.m4, config.in, configure: Regenerated.
15531
367ba2c2
MR
155322012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15533
15534 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15535
9d236627
PA
155362012-04-05 Pedro Alves <palves@redhat.com>
15537
15538 -Werror=strict-aliasing
15539
15540 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15541 pointer.
15542
111217b3
PA
155432012-04-04 Pedro Alves <palves@redhat.com>
15544
15545 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15546 (sparc_store_gregset_from_stack, sparc_store_gregset)
15547 (sparc_breakpoint_at): Fix formatting.
15548
8365dcf5
TJB
155492012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15550
15551 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15552 are available.
15553 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15554 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15555 * config.in: Regenerate.
15556 * configure: Likewise.
15557
689cc2ae
PA
155582012-03-29 Pedro Alves <palves@redhat.com>
15559
15560 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15561 Correct ptrace arguments.
15562
c14dfd32
PA
155632012-03-28 Pedro Alves <palves@redhat.com>
15564
15565 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15566 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15567 (IA64_FR1_REGNUM): New defines.
15568 (ia64_fetch_register): New.
15569 (the_low_target): Install it.
15570 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15571 field.
15572 * linux-low.c (linux_fetch_registers): Try the
15573 the_low_target.fetch_register hook first.
15574
15575 * linux-arm-low.c (the_low_target): Adjust.
15576 * linux-bfin-low.c (the_low_target): Adjust.
15577 * linux-cris-low.c (the_low_target): Adjust.
15578 * linux-crisv32-low.c (the_low_target): Adjust.
15579 * linux-m32r-low.c (the_low_target): Adjust.
15580 * linux-m68k-low.c (the_low_target): Adjust.
15581 * linux-mips-low.c (the_low_target): Adjust.
15582 * linux-ppc-low.c (the_low_target): Adjust.
15583 * linux-s390-low.c (the_low_target): Adjust.
15584 * linux-sh-low.c (the_low_target): Adjust.
15585 * linux-sparc-low.c (the_low_target): Adjust.
15586 * linux-tic6x-low.c (the_low_target): Adjust.
15587 * linux-x86-low.c (the_low_target): Adjust.
15588 * linux-xtensa-low.c (the_low_target): Adjust.
15589
63c88e13
PA
155902012-03-26 Pedro Alves <palves@redhat.com>
15591
15592 * server.c (handle_qxfer_libraries): Don't bail early if
15593 the_target->qxfer_libraries_svr4 is not NULL.
15594
fb723180
PA
155952012-03-26 Pedro Alves <palves@redhat.com>
15596
15597 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15598
0afae3cf
PA
155992012-03-23 Pedro Alves <palves@redhat.com>
15600
15601 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15602 "library-list-svr4" element's start tag when the the DSO list is
15603 empty.
15604
485f1ee4
PA
156052012-03-23 Pedro Alves <palves@redhat.com>
15606
15607 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15608 a variable whose type size is the same as the inferior's pointer
15609 size.
15610
a5362b9a
TS
156112012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15612
15613 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15614 struct siginfo.
15615 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15616 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15617 * linux-low.h: Include <signal.h>.
15618 (struct siginfo): Remove forward declaration.
15619 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15620 struct siginfo.
15621
d226c142
MF
156222012-03-21 Mike Frysinger <vapier@gentoo.org>
15623
15624 * .gitignore: Ignore more files.
15625
122f36ef
PA
156262012-03-19 Pedro Alves <palves@redhat.com>
15627 Jan Kratochvil <jan.kratochvil@redhat.com>
15628
15629 * server.c (cont_thread, general_thread): Add describing comments.
15630 (start_inferior): Clear `cont_thread'.
15631 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15632 of a process.
15633
fc3e5175
YQ
156342012-03-15 Yao Qi <yao@codesourcery.com>
15635
15636 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15637 handling to ...
15638 (cmd_qtdp): ... here.
15639
8d0d92cd
YQ
156402012-03-15 Yao Qi <yao@codesourcery.com>
15641
15642 * tracepoint.c (struct tracepoint_action_ops): New.
15643 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15644 (m_tracepoint_action_download): New.
15645 (r_tracepoint_action_download): New.
15646 (x_tracepoint_action_download): New.
15647 (l_tracepoint_action_download): New.
15648 (add_tracepoint_action): Install `action->ops' according type.
15649 (download_tracepoint_1): Move code `download' function pointer
15650 of various tracepoint_action_ops.
15651
87b0bb13
JK
156522012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15653
15654 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15655 linux_ptrace_attach_warnings.
15656
5f572dec
JK
156572012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15658
15659 * Makefile.in (linux-ptrace.o): New.
15660 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15661 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15662 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15663 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15664 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15665 of these targets.
15666 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15667
f4647387
YQ
156682012-03-08 Yao Qi <yao@codesourcery.com>
15669 Pedro Alves <palves@redhat.com>
15670
15671 Fix PR server/13392.
15672 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15673 offset of JMP insn.
15674 * tracepoint.c (remove_tracepoint): New.
15675 (cmd_qtdp): Call remove_tracepoint when failed to install.
15676
9b224c5e
PA
156772012-03-07 Pedro Alves <palves@redhat.com>
15678
15679 * linux-low.c (get_detach_signal): New.
15680 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15681 Pass on pending signals to PTRACE_DETACH. Check the result of the
15682 ptrace call.
15683 * server.c (program_signals, program_signals_p): New.
15684 (handle_general_set): Handle QProgramSignals.
15685 * server.h (program_signals, program_signals_p): Declare.
15686
e237a7e2
JK
156872012-03-05 Pedro Alves <palves@redhat.com>
15688 Jan Kratochvil <jan.kratochvil@redhat.com>
15689
15690 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15691 New comment why.
15692
5808517f
YQ
156932012-03-03 Yao Qi <yao@codesourcery.com>
15694
15695 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15696 agent_look_up_symbols.
15697
58b4daa5
YQ
156982012-03-03 Yao Qi <yao@codesourcery.com>
15699
15700 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15701 (linux-x86-low.o): Likewise.
15702 * server.h: Remove in_process_agent_loaded.
15703 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15704 common/agent.c.
15705 Update callers.
15706
8ffcbaaf
YQ
157072012-03-03 Yao Qi <yao@codesourcery.com>
15708
15709 * tracepoint.c (gdb_agent_capability): New global.
15710 (in_process_agent_loaded_ust): Renamed to
15711 `in_process_agent_supports_ust'.
15712 Update callers.
15713 (in_process_agent_supports_ust): Call agent_capability_check.
15714 (clear_installed_tracepoints): Assert that agent supports
15715 agent.
15716
d1feda86
YQ
157172012-03-03 Yao Qi <yao@codesourcery.com>
15718
15719 * linux-low.c (linux_supports_agent): New.
15720 (linux_target_ops): Initialize field `supports_agent' with
15721 linux_supports_agent.
15722 * target.h (struct target_ops) <supports_agent>: New.
15723 (target_supports_agent): New macro.
15724 * server.c (handle_general_set): Handle packet 'QAgent'.
15725 (handle_query): Send `QAgent+'.
15726 * Makefile.in (server.o): Depends on agent.h.
15727
2fa291ac
YQ
157282012-03-03 Yao Qi <yao@codesourcery.com>
15729
15730 * Makefile.in (OBS): Add agent.o.
15731 Add new rule for agent.o.
15732 Track dependence of tracepoint.c on agent.h.
15733 * tracepoint.c (run_inferior_command_1):
15734 (run_inferior_command): Call agent_run_command.
15735 (gdb_ust_connect_sync_socket): Deleted. Move it to
15736 common/agent.c.
15737 (resume_thread, stop_thread): Likewise.
15738 (gdb_ust_socket_init): Renamed to ...
15739 (gdb_agent_socket_init): ... New.
15740 (gdb_ust_thread): Renamed to ...
15741 (gdb_agent_helper_thread): ... New.
15742 (gdb_ust_init): Move some code to ...
15743 (gdb_agent_init): ... here. New.
15744 [HAVE_UST]: Call gdb_ust_init.
15745 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15746 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15747 * config.in, configure: Regenerated.
15748
05044653
PA
157492012-03-02 Pedro Alves <palves@redhat.com>
15750
15751 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15752 * linux-low.c (struct simple_pid_list): New.
15753 (stopped_pids): New a struct simple_pid_list pointer.
15754 (add_to_pid_list, pull_pid_from_list): New.
15755 (handle_extended_wait): Don't assume the first signal new children
15756 report is SIGSTOP. Adjust call to pull_pid_from_list.
15757 (linux_wait_for_lwp): Adjust.
15758
8d00225b
YQ
157592012-03-02 Yao Qi <yao@codesourcery.com>
15760
15761 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15762 debug log.
15763
19560ba5
YQ
157642012-03-02 Yao Qi <yao@codesourcery.com>
15765
15766 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15767 `stop_pc' and `tpoint'. Update caller.
15768
1faeff08
MR
157692012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15770
15771 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15772 * linux-low.c (use_linux_regsets): New macro.
15773 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15774 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15775 (linux_register_in_regsets): New function.
15776 (usr_fetch_inferior_registers): Skip registers covered by
15777 regsets.
15778 (usr_store_inferior_registers): Likewise.
15779 (usr_fetch_inferior_registers): New macro.
15780 (usr_store_inferior_registers): Likewise.
15781 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15782 (linux_store_registers): Likewise.
15783 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15784 prototype.
15785 (init_registers_mips64_dsp_linux): Likewise.
15786 (init_registers_mips_linux): New macro.
15787 (init_registers_mips_dsp_linux): Likewise.
15788 (mips_dsp_num_regs): Likewise.
15789 (DSP_BASE, DSP_CONTROL): New fallback macros.
15790 (mips_base_regs): New macro.
15791 (mips_regmap): Use it. Fix the size.
15792 (mips_dsp_regmap): New variable.
15793 (mips_dsp_regset_bitmap): Likewise.
15794 (mips_arch_setup): New function.
15795 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15796 than mips_regmap.
15797 (mips_cannot_store_register): Likewise.
15798 (the_low_target): Update .arch_setup, .num_regs and .regmap
15799 initializers. Add .regset_bitmap initializer.
15800 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15801 initializer.
15802 * linux-bfin-low.c (the_low_target): Likewise.
15803 * linux-cris-low.c (the_low_target): Likewise.
15804 * linux-crisv32-low.c (the_low_target): Likewise.
15805 * linux-ia64-low.c (the_low_target): Likewise.
15806 * linux-m32r-low.c (the_low_target): Likewise.
15807 * linux-m68k-low.c (the_low_target): Likewise.
15808 * linux-ppc-low.c (the_low_target): Likewise.
15809 * linux-s390-low.c (the_low_target): Likewise.
15810 * linux-sh-low.c (the_low_target): Likewise.
15811 * linux-sparc-low.c (the_low_target): Likewise.
15812 * linux-tic6x-low.c (the_low_target): Likewise.
15813 * linux-x86-low.c (the_low_target): Likewise.
15814 * linux-xtensa-low.c (the_low_target): Likewise.
15815 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15816 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15817 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15818 srv_xmlfiles.
15819 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15820 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15821
c03e6ccc
YQ
158222012-02-29 Yao Qi <yao@codesourcery.com>
15823 Pedro Alves <palves@redhat.com>
15824
15825 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15826 `step_over_finished' is true.
15827
644cebc9
PA
158282012-02-27 Pedro Alves <palves@redhat.com>
15829
15830 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15831 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15832
c14d7ab2
PA
158332012-02-27 Pedro Alves <palves@redhat.com>
15834
15835 PR server/9684
15836 * linux-low.c (pid_is_stopped): New.
15837 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15838
412c89dd
LM
158392012-02-25 Luis Machado <lgustavo@codesourcery.com>
15840
15841 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15842 of conditions.
15843
b745defe
MR
158442012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15845
15846 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15847
9f3a5c85
LM
158482012-02-24 Luis Machado <lgustavo@codesourcery>
15849
15850 * server.c (handle_query): Advertise support for target-side
15851 breakpoint condition evaluation.
15852 (process_point_options): New function.
15853 (process_serial_event): When inserting a breakpoint, check for
15854 a target-side condition that should be evaluated.
15855
15856 * mem-break.c: Include regcache.h and ax.h.
15857 (point_cond_list_t): New data structure.
15858 (breakpoint) <cond_list>: New field.
15859 (find_gdb_breakpoint_at): Make non-static.
15860 (delete_gdb_breakpoint_at): Clear any target-side
15861 conditions.
15862 (clear_gdb_breakpoint_conditions): New function.
15863 (add_condition_to_breakpoint): Likewise.
15864 (add_breakpoint_condition): Likewise.
15865 (gdb_condition_true_at_breakpoint): Likewise.
15866 (gdb_breakpoint_here): Return result directly instead
15867 of going through a local variable.
15868
15869 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15870 (clear_gdb_breakpoint_conditions): Likewise.
15871 (add_breakpoint_condition): Likewise.
15872 (gdb_condition_true_at_breakpoint): Likewise.
15873
15874 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15875 (need_step_over_p): Take target-side breakpoint condition into
15876 consideration.
15877
5e1dc496
LM
158782012-02-24 Luis Machado <lgustavo@codesourcery>
15879
15880 * server.h: Include tracepoint.h.
15881 (agent_mem_read, agent_get_trace_state_variable_value,
15882 agent_set_trace_state_variable_value,
15883 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15884 get_set_tsv_func_addr): New prototypes.
15885
15886 * ax.h: New include file.
15887 * ax.c: New source file.
15888
15889 * tracepoint.c: Include ax.h.
15890 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15891 agent_expr, eval_result_type): Move to ax.h.
15892 (parse_agent_expr): Rename to ...
15893 (gdb_parse_agent_expr): ... this, make it non-static and move
15894 to ax.h.
15895 (unparse_agent_expr) Rename to ...
15896 (gdb_unparse_agent_expr): ... this, make it non-static and move
15897 to ax.h.
15898 (eval_agent_expr): Rename to ...
15899 (eval_tracepoint_agent_expr): ... this.
15900 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15901 forward declarations.
15902 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15903 (agent_get_trace_state_variable_value): New function.
15904 (agent_set_trace_state_variable_value): New function.
15905 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15906 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15907 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15908 (condition_true_at_tracepoint): Likewise.
15909 (parse_agent_expr): Rename to ...
15910 (gdb_parse_agent_expr): ... this and move to ax.c.
15911 (unparse_agent_expr): Rename to ...
15912 (gdb_unparse_agent_expr): ... this and move to ax.c.
15913 (gdb_agent_op_name): Move to ax.c.
15914 (eval_agent_expr): Rename to ...
15915 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15916 and move to ax.c.
15917 (eval_tracepoint_agent_expr): New function.
15918 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15919 non-static.
5e1dc496
LM
15920 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15921 ax.c.
15922 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15923 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15924 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15925 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15926 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15927 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15928 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15929 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15930 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15931 (compile_bytecodes): Remove forward declaration.
15932 (is_goto_target): Move to ax.c.
15933 (compile_bytecodes): Move to ax.c and call
15934 agent_get_trace_state_variable_value (...) and
15935 agent_set_trace_state_variable_value (...).
15936
15937 * Makefile.in: Update ax.c and IPA dependencies.
15938
277e4e52
PA
159392012-02-24 Pedro Alves <palves@redhat.com>
15940
15941 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15942 (cmd_bigqtbuffer_circular): ... this. Only handle
15943 'QTBuffer:circular:'.
15944 (handle_tracepoint_general_set): Adjust.
15945
bf4c19f7
YQ
159462012-02-16 Yao Qi <yao@codesourcery.com>
15947
15948 * inferiors.c: Move code to ...
15949 * dll.c: .... here. New.
15950 * server.h: Declare clear_dlls.
15951 * Makefile.in (SFILES): Add dll.c.
15952 (OBS): Add dll.o
15953 (dll.o): New rule.
15954
d73f2619
YQ
159552012-02-11 Yao Qi <yao@codesourcery.com>
15956
15957 * server.c: (handle_monitor_command): Add a new parameter
15958 `own_buf'.
15959 (handle_query): Update caller.
15960
f8255c2a
JB
159612012-02-09 Joel Brobecker <brobecker@adacore.com>
15962
15963 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15964 * configure, config.in: Regenerate.
15965 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15966 is not defined.
15967
da84f473
PA
159682012-02-02 Pedro Alves <palves@redhat.com>
15969
15970 Try SIGKILL first, then PTRACE_KILL.
15971 * linux-low.c (linux_kill_one_lwp): New.
15972 (linux_kill_one_lwp): Rename to ...
15973 (kill_one_lwp_callback): ... this. Use the new
15974 linux_kill_one_lwp.
15975
e886a173
PA
159762012-02-02 Pedro Alves <palves@redhat.com>
15977
15978 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15979 inferior.
15980
be07f1a2
PA
159812012-01-27 Pedro Alves <palves@redhat.com>
15982
15983 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15984 (elf_64_file_p): Make static.
15985 (linux_pid_exe_is_elf_64_file): New.
15986 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15987 Delete declarations.
15988 (linux_pid_exe_is_elf_64_file): Declare.
15989 * linux-x86-low.c (x86_arch_setup): Use
15990 linux_pid_exe_is_elf_64_file.
15991
d8301ad1
JK
159922012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15993
15994 * linux-low.c (linux_wait_for_event_1): Rename to ...
15995 (linux_wait_for_event): ... here and merge it with former
15996 linux_wait_for_event - new variable wait_ptid, use it.
15997 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15998
01b17894
PA
159992012-01-23 Pedro Alves <palves@redhat.com>
16000
16001 * server.c (main): Avoid yet another case of infinite loop while
16002 detaching/killing after a longjmp.
16003
e825046f
JK
160042012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16005
16006 Code cleanup.
16007 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16008
b9e7b9c3
UW
160092012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16010
16011 * hostio.c (handle_readlink): New function.
16012 (handle_vFile): Call it to handle "vFile:readlink" packets.
16013
901f9912
UW
160142012-01-20 Pedro Alves <palves@redhat.com>
16015 Ulrich Weigand <ulrich.weigand@linaro.org>
16016
16017 * server.c (handle_v_requests): Only support vAttach and vRun to
16018 start multiple processes when in extended protocol mode.
16019
fc1ab1a0
PA
160202012-01-17 Pedro Alves <palves@redhat.com>
16021
16022 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16023 memalign plus mprotect to allocate the scratch buffer.
16024
7d5d4e98
PA
160252012-01-13 Pedro Alves <palves@redhat.com>
16026
16027 * server.c (attach_inferior): Clear `cont_thread'.
16028
f128d5e9
PA
160292012-01-13 Pedro Alves <palves@redhat.com>
16030
16031 * server.c (main): Avoid infinite loop while detaching/killing
16032 after a longjmp.
16033
06db92f0
DE
160342012-01-09 Doug Evans <dje@google.com>
16035
16036 * server.c (start_inferior): Set last_ptid in --wrapper case.
16037
32d92999
YQ
160382012-01-06 Yao Qi <yao@codesourcery.com>
16039
16040 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16041 defined.
16042 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16043
5e0a92a9
YQ
160442012-01-04 Yao Qi <yao@codesourcery.com>
16045
16046 * tracepoint.c (cmd_qtdp): Print debug message
16047 for static tracepoint.
16048
ae639e8c
YQ
160492012-01-04 Yao Qi <yao@codesourcery.com>
16050
16051 * tracepoint.c (trace_vdebug): Differentiate debug message
16052 between gdbserver and IPA.
16053
f72429c5
YQ
160542012-01-03 Yao Qi <yao@codesourcery.com>
16055
16056 * tracepoint.c (tracepoint_was_hit): Don't collect for
16057 static tracepoint.
16058
12c3e59c
JB
160592012-01-02 Joel Brobecker <brobecker@adacore.com>
16060
16061 * terminal.h: Reformat copyright header.
16062
67827812
JB
160632012-01-02 Joel Brobecker <brobecker@adacore.com>
16064
16065 * server.c (gdbserver_version): Update copyright year.
16066 * gdbreplay.c (gdbreplay_version): Likewise.
16067
3e52c33d
JK
160682011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16069
16070 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16071
16072 Revert:
16073 2011-12-18 Hui Zhu <teawater@gmail.com>
16074 * linux-low.c (linux_create_inferior): Save return value to ret.
16075
66f1260e
HZ
160762011-12-18 Hui Zhu <teawater@gmail.com>
16077
16078 * linux-low.c (linux_create_inferior): Save return value to ret.
16079
e77616d7
DE
160802011-12-16 Doug Evans <dje@google.com>
16081
e7b06c57
DE
16082 * linux-low.c (linux_create_inferior): If stdio connection,
16083 redirect stdin from /dev/null, stdout to stderr.
16084 * remote-utils.c (remote_is_stdio): New static global.
16085 (remote_connection_is_stdio): New function.
16086 (remote_prepare): Handle stdio connection.
16087 (remote_open): Ditto.
16088 (remote_close): Don't close stdin for stdio connections.
16089 (read_prim,write_prim): New functions. Replace all calls to
16090 read/write to these.
16091 * server.c (main): Watch for "-" argument. Move call to
16092 remote_prepare before start_inferior.
16093 * server.h (STDIO_CONNECTION_NAME): New macro.
16094 (remote_connection_is_stdio): Declare.
16095
e77616d7
DE
16096 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16097 in debugging output.
16098
82067193
YQ
160992011-12-15 Yao Qi <yao@codesourcery.com>
16100
16101 * tracepoint.c: Include sys/syscall.h.
16102 (gdb_ust_thread): Remove preprocessor conditional.
16103
82bfbe7e
PA
161042011-12-14 Pedro Alves <pedro@codesourcery.com>
16105
16106 * linux-low.c (linux_detach_one_lwp): Call
16107 the_low_target.prepare_to_resume before detaching.
16108
712c6575
YQ
161092011-12-14 Yao Qi <yao@codesourcery.com>
16110
16111 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16112 of write.
16113
d54d1edf
YQ
161142011-12-14 Yao Qi <yao@codesourcery.com>
16115
16116 * i386-low.c (i386_low_stopped_data_address): Initialize local
16117 variable `control'.
16118
6210a125
PA
161192011-12-13 Pedro Alves <pedro@codesourcery.com>
16120
16121 PR remote/13492
16122
16123 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16124 DR_CONTROL unless necessary. Extend comments.
16125 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16126 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16127
2ece8244
YQ
161282011-12-13 Yao Qi <yao@codesourcery.com>
16129
16130 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16131 macros.
16132 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16133
784867a5
JK
161342011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16135
16136 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16137 Print new debug message for such case.
16138
6bf36717
JK
161392011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16140
16141 Fix overlapping memcpy.
16142 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16143 the read_inferior_memory transfer.
16144 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16145 write_inferior_memory transfer.
16146 (set_fast_tracepoint_jump): New variable buf. Use it for the
16147 read_inferior_memory and write_inferior_memory transfers.
16148 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16149 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16150 Use it for the write_inferior_memory transfer.
16151 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16152 buffers.
16153
50275556
MR
161542011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16155
16156 * linux-low.c (fetch_register, store_register): Make code
16157 consistent, fix formatting.
16158
7325beb4
MR
161592011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16160
16161 * linux-low.c (usr_store_inferior_registers): Factor out code
16162 to handle individual registers into...
16163 (store_register): ... this new function.
16164
c642a434
UW
161652011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16166
16167 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16168 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16169 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16170 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16171 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16172 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16173 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16174 (srv_xmlfiles): Add new XML files.
16175
16176 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16177 and <sys/uio.h>.
16178 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16179 (init_registers_s390_linux32v1): Add prototype.
16180 (init_registers_s390_linux32v2): Likewise.
16181 (init_registers_s390_linux64v1): Likewise.
16182 (init_registers_s390_linux64v2): Likewise.
16183 (init_registers_s390x_linux64v1): Likewise.
16184 (init_registers_s390x_linux64v2): Likewise.
16185 (s390_num_regs): Increment to 52.
16186 (s390_regmap): Add orig_r2 register.
16187 (s390_num_regs_3264): Increment to 68.
16188 (s390_regmap_3264): Add orig_r2 register.
16189 (s390_collect_ptrace_register): Handle orig_r2 register.
16190 (s390_supply_ptrace_register): Likewise.
16191 (s390_fill_last_break): New function.
16192 (s390_store_last_break): Likewise.
16193 (s390_fill_system_call): New function.
16194 (s390_store_system_call): Likewise.
16195 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16196 register sets.
16197 (s390_check_regset): New function.
16198 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16199 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16200 Update target_regsets for available register sets.
16201
2268b414
JK
162022011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16203 Jan Kratochvil <jan.kratochvil@redhat.com>
16204
16205 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16206 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16207 New.
16208 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16209 * linux-low.h (struct process_info_private): New member r_debug.
16210 * server.c (handle_qxfer_libraries): Call
16211 the_target->qxfer_libraries_svr4.
16212 (handle_qxfer_libraries_svr4): New function.
16213 (qxfer_packets): New entry "libraries-svr4".
16214 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16215 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16216 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16217 PACKET_qXfer_libraries_svr4.
16218
d6db1fab
UW
162192011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16220
16221 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16222 PSW address/mask between 8-byte and 16-byte formats.
16223 (s390_supply_ptrace_register): Likewise.
16224 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16225 basic addressing mode bit.
16226
242f5f1c
SS
162272011-11-24 Stan Shebs <stan@codesourcery.com>
16228
16229 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16230
f196051f
SS
162312011-11-17 Stan Shebs <stan@codesourcery.com>
16232
16233 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16234 (tracing_start_time): New global.
16235 (tracing_stop_time): New global.
16236 (tracing_user_name): New global.
16237 (tracing_notes): New global.
16238 (tracing_stop_note): New global.
16239 (cmd_qtstart): Set traceframe_usage, start_time.
16240 (stop_tracing): Set stop_time.
16241 (cmd_qtstatus): Report additional status.
16242 (cmd_qtp): New function.
16243 (handle_tracepoint_query): Call it.
16244 (cmd_qtnotes): New function.
16245 (handle_tracepoint_general_set): Call it.
16246 (get_timestamp): Rename from tsv_get_timestamp.
16247
405f8e94
SS
162482011-11-14 Stan Shebs <stan@codesourcery.com>
16249 Kwok Cheung Yeung <kcy@codesourcery.com>
16250
16251 * linux-x86-low.c (small_jump_insn): New.
16252 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16253 trampoline and error message, build a trampoline and issue a small
16254 jump instruction to it.
16255 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16256 trampoline and error message.
16257 (x86_get_min_fast_tracepoint_insn_len): New.
16258 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16259 * linux-low.h (struct linux_target_ops): Add arguments to
16260 install_fast_tracepoint_jump_pad operation, add new operation.
16261 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16262 arguments.
16263 (linux_get_min_fast_tracepoint_insn_len): New function.
16264 (linux_target_op): Add new operation.
16265 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16266 (gdb_trampoline_buffer_end): Ditto.
16267 (gdb_trampoline_buffer_error): Ditto.
16268 (struct ipa_sym_addresses): Add fields for new IPA variables.
16269 (symbol_list): Add entries for new IPA variables.
16270 (struct tracepoint): Add fields to hold the address range of the
16271 trampoline used by the tracepoint.
16272 (trampoline_buffer_head): New static variable.
16273 (trampoline_buffer_tail): Ditto.
16274 (claim_trampoline_space): New function.
16275 (have_fast_tracepoint_trampoline_buffer): New function.
16276 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16277 structure.
16278 (install_fast_tracepoint): Ditto, also add error buffer argument.
16279 (cmd_qtminftpilen): New function.
16280 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16281 (fast_tracepoint_from_trampoline_address): New function.
16282 (fast_tracepoint_collecting): Handle trampoline as part of jump
16283 pad space.
16284 (set_trampoline_buffer_space): New function.
16285 (initialize_tracepoint): Initialize new IPA variables.
16286 * target.h (struct target_ops): Add arguments to
16287 install_fast_tracepoint_jump_pad operation, add new
16288 get_min_fast_tracepoint_insn_len operation.
16289 (target_get_min_fast_tracepoint_insn_len): New.
16290 (install_fast_tracepoint_jump_pad): Add arguments.
16291 * server.h (IPA_BUFSIZ): Define.
16292 * linux-i386-ipa.c: Include extra header files.
16293 (initialize_fast_tracepoint_trampoline_buffer): New function.
16294 (initialize_low_tracepoint): Call it.
16295 * server.h (set_trampoline_buffer_space): Declare.
16296 (claim_trampoline_space): Ditto.
16297 (have_fast_tracepoint_trampoline_buffer): Ditto.
16298
1e4d1764
YQ
162992011-11-14 Yao Qi <yao@codesourcery.com>
16300
16301 * server.c (handle_query): Handle InstallInTrace for qSupported.
16302 * tracepoint.c (add_tracepoint): Sort list.
16303 (install_tracepoint, download_tracepoint): New.
16304 (cmd_qtdp): Call them to install and download tracepoints.
16305 (sort_tracepoints): Removed.
16306 (cmd_qtstart): Update.
16307
5c73ff4e
YQ
163082011-11-14 Yao Qi <yao@codesourcery.com>
16309
16310 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16311 * mem-break.h: Declare.
16312 * tracepoint.c (cmd_qtstart): Move some code to ...
16313 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16314 New.
16315 (download_tracepoints): Move some code to ...
16316 (download_tracepoint_1): ... here. New.
16317
86a30030
YQ
163182011-11-08 Yao Qi <yao@codesourcery.com>
16319
16320 * remote-utils.c (relocate_instruction): A comment fix.
16321
8d26e50c
JB
163222011-11-07 Joel Brobecker <brobecker@adacore.com>
16323
16324 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16325 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16326 dr_status_mirror and dr_control_mirror from debug_reg_state.
16327 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16328 (i386_initial_stuff): Remove use of deleted globals.
16329 (i386_get_thread_context, i386_set_thread_context,
16330 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16331 from debug_reg_state.
16332
a59306a3
YQ
163332011-11-05 Yao Qi <yao@codesourcery.com>
16334
16335 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16336 address as TPOINT's.
16337
3065dfb6
SS
163382011-11-02 Stan Shebs <stan@codesourcery.com>
16339
16340 * tracepoint.c (agent_mem_read_string): New function.
16341 (eval_agent_expr): Call it for tracenz.
16342 * server.c (handle_query): Report support for tracenz.
16343
fd0d8c7c
YQ
163442011-11-02 Yao Qi <yao@codesourcery.com>
16345
16346 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16347
609086b1
YQ
163482011-11-02 Yao Qi <yao@codesourcery.com>
16349
16350 * target.h: Fix a typo in comment.
16351
b9fd1791
PA
163522011-10-31 Pedro Alves <pedro@codesourcery.com>
16353
16354 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16355 clobber the breakpoints' shadows with fast tracepoint jumps.
16356 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16357 * target.c (write_inferior_memory): Also pass MYADDR down to
16358 check_mem_write.
16359
03583c20
UW
163602011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16361
16362 * configure.ac: Check support for personality routine.
16363 * configure: Regenerate.
16364 * config.in: Likewise.
16365 * linux-low.c: Include <sys/personality.h>.
16366 Define ADDR_NO_RANDOMIZE if necessary.
16367 (linux_create_inferior): Disable address space randomization when
16368 forking inferior, if requested.
16369 (linux_supports_disable_randomization): New function.
16370 (linux_target_ops): Install it.
16371 * server.h (disable_randomization): Declare.
16372 * server.c (disable_randomization): New global variable.
16373 (handle_general_set): Handle QDisableRandomization.
16374 (handle_query): Likewise for qSupported.
16375 (main): Support --disable-randomization and --no-disable-randomization
16376 command line arguments.
16377 * target.h (struct target_ops): Add supports_disable_randomization.
16378 (target_supports_disable_randomization): New macro.
16379
723b724b
MF
163802011-09-29 Mike Frysinger <vapier@gentoo.org>
16381
16382 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16383 ifdef check.
16384 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16385 [!PT_GETDSBT] (target_loadmap): New definition.
16386 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16387 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16388 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16389 and PT_GETDSBT to LINUX_LOADMAP.
16390 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16391 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16392
55329a5c 163932011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16394
16395 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16396 (arm_linux_hwbp_cap): New static variable.
16397 (arm_linux_get_hwbp_cap): Replace by ...
16398 (arm_linux_init_hwbp_cap): ... this new function.
16399 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16400 (arm_linux_get_hw_watchpoint_count): Likewise.
16401 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16402 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16403 (arm_prepare_to_resume): Use perror_with_name instead of error.
16404
55329a5c 164052011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16406
16407 * linux-arm-low.c: Include <signal.h>.
16408 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16409 (struct arm_linux_hwbp_cap): New data type.
16410 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16411 (struct arm_linux_hw_breakpoint): New data type.
16412 (MAX_BPTS, MAX_WPTS): Define.
16413 (struct arch_process_info, struct arch_lwp_info): New data types.
16414 (arm_linux_get_hwbp_cap): New function.
16415 (arm_linux_get_hw_breakpoint_count): Likewise.
16416 (arm_linux_get_hw_watchpoint_count): Likewise.
16417 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16418 (arm_hwbp_control_initialize): Likewise.
16419 (arm_hwbp_control_is_enabled): Likewise.
16420 (arm_hwbp_control_is_initialized): Likewise.
16421 (arm_hwbp_control_disable): Likewise.
16422 (arm_linux_hw_breakpoint_equal): Likewise.
16423 (arm_linux_hw_point_initialize): Likewise.
16424 (struct update_registers_data): New data structure.
16425 (update_registers_callback: New function.
16426 (arm_insert_point): Likewise.
16427 (arm_remove_point): Likewise.
16428 (arm_stopped_by_watchpoint): Likewise.
16429 (arm_stopped_data_address): Likewise.
16430 (arm_new_process): Likewise.
16431 (arm_new_thread): Likewise.
16432 (arm_prepare_to_resume): Likewise.
16433 (the_low_target): Register arm_insert_point, arm_remove_point,
16434 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16435 arm_new_thread, and arm_prepare_to_resume.
16436
6b9801d4
SS
164372011-09-15 Stan Shebs <stan@codesourcery.com>
16438
16439 * server.h (struct emit_ops): Add compare-goto fields.
16440 * tracepoint.c (gdb_agent_op_sizes): New table.
16441 (emit_eq_goto): New function.
16442 (emit_ne_goto): New function.
16443 (emit_lt_goto): New function.
16444 (emit_le_goto): New function.
16445 (emit_gt_goto): New function.
16446 (emit_ge_goto): New function.
16447 (is_goto_target): New function.
16448 (compile_bytecodes): Recognize special cases of compare-goto
16449 combinations and call specialized emitters for them.
16450 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16451 (amd64_emit_ne_goto): New function.
16452 (amd64_emit_lt_goto): New function.
16453 (amd64_emit_le_goto): New function.
16454 (amd64_emit_gt_goto): New function.
16455 (amd64_emit_ge_goto): New function.
16456 (amd64_emit_ops): Add the new functions.
16457 (i386_emit_eq_goto): New function.
16458 (i386_emit_ne_goto): New function.
16459 (i386_emit_lt_goto): New function.
16460 (i386_emit_le_goto): New function.
16461 (i386_emit_gt_goto): New function.
16462 (i386_emit_ge_goto): New function.
16463 (i386_emit_ops): Add the new functions.
16464
bf15cbda
SS
164652011-09-08 Stan Shebs <stan@codesourcery.com>
16466
16467 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16468 (i386_emit_epilogue): Restore %ebx.
16469
943ca1dd
JZ
164702011-08-31 Jie Zhang <jzhang918@gmail.com>
16471
16472 * server.c (step_thread): Remove definition.
16473 (process_serial_event): Don't handle Hs.
16474 * server.h (step_thread): Remove declaration.
16475 * target.c (set_desired_inferior): Remove use of step_thread.
16476
e3deef73
LM
164772011-08-24 Luis Machado <lgustavo@codesourcery.com>
16478
16479 * linux-low.c: Include linux-procfs.h.
16480 (linux_attach_lwp_1): Update comments.
16481 (linux_attach): Scan for existing threads when attaching to a
16482 process that is the tgid.
16483 * Makefile.in: Update dependencies.
16484
13da1c97
LM
164852011-08-24 Luis Machado <lgustavo@codesourcery.com>
16486
16487 * configure.srv: Add linux-procfs.o dependencies.
16488
881127c9
YQ
164892011-08-14 Yao Qi <yao@codesourcery.com>
16490
16491 * target.h (struct target_ops): Fix indent.
16492 * win32-low.c (win32_target_ops): Fix comment.
16493
58dbd541
YQ
164942011-08-14 Andrew Jenner <andrew@codesourcery.com>
16495 Yao Qi <yao@codesourcery.com>
16496
16497 * Makefile.in (clean): Remove tic6x-*.c files.
16498 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16499 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16500 (tic6x-c64xp-linux.c): Likewise.
16501 * configure.srv: Add support for tic6x-*-uclinux.
16502 * linux-tic6x-low.c: New.
16503 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16504
78d85199
YQ
165052011-08-14 Andrew Stubbs <ams@codesourcery.com>
16506 Yao Qi <yao@codesourcery.com>
16507
16508 * target.h (struct target_ops): Add read_loadmap.
16509 * linux-low.c (struct target_loadseg): New type.
16510 (struct target_loadmap): New type.
16511 (linux_read_loadmap): New function.
16512 (linux_target_ops): Add linux_read_loadmap.
16513 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16514 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16515 to NULL.
78d85199 16516
a959a88d
EZ
165172011-08-05 Eli Zaretskii <eliz@gnu.org>
16518
16519 * win32-low.c: Include <stdint.h>.
16520
1ced966e
PA
165212011-07-22 Pedro Alves <pedro@codesourcery.com>
16522
16523 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16524 to the inferior here.
16525 (i386_remove_aligned_watchpoint): Ditto.
16526 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16527 fit part of the watchpoint in the debug registers.
16528 (i386_update_inferior_debug_regs): New.
16529 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16530 registers, and only update the inferior on success.
16531 (i386_low_remove_watchpoint): Ditto.
16532
d26e3629
KY
165332011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16534
16535 * linux-low.c (compare_ints, unique, list_threads, show_process,
16536 linux_core_of_thread): Delete.
16537 (linux_target_ops): Change linux_core_of_thread to
16538 linux_common_core_of_thread.
16539 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16540 * utils.c (malloc_failure): Change type of argument.
16541 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16542 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16543 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16544 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16545 (IPA_OBJS): Add common-utils-ipa.o.
16546 (ptid_h, linux_osdata_h): New macros.
16547 (server_h): Add common/common-utils.h, common/xml-utils.h,
16548 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16549 common/ptid.h.
16550 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16551 ptid.o, buffer.o): New rules.
16552 (linux-low.o): Add common/linux-osdata.h as a dependency.
16553 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16554 * configure.ac: Add AC_HEADER_DIRENT check.
16555 * config.in: Regenerate.
16556 * configure: Regenerate.
16557 * remote-utils.c (xml_escape_text): Delete.
16558 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16559 buffer_xml_printf): Move to common/buffer.c.
16560 * server.c (main): Remove call to initialize_inferiors.
16561 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16562 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16563 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16564 internal_error, gdb_assert, gdb_assert_fail): Delete.
16565 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16566 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16567 common/buffer.h.
16568 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16569 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16570 initialize_inferiors): Delete.
16571
2275a1a7
PA
165722011-07-20 Pedro Alves <pedro@codesourcery.com>
16573
16574 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16575 symbol error.
16576
0a5b1e09
PA
165772011-05-31 Pedro Alves <pedro@codesourcery.com>
16578
16579 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16580 assertion.
16581 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16582
6938fd34
YQ
165832011-05-26 Yao Qi <yao@codesourcery.com>
16584
16585 * Makefile.in (thread-db.o): Track dependence to
16586 common/gdb_thread_db.h.
16587 * thread-db.c: include gdb_thread_db.h from right place.
16588
b481f9e0
TT
165892011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16590
16591 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16592 __FILE__ and __LINE__ to internal_error.
16593
98a5dd13
DE
165942011-05-13 Doug Evans <dje@google.com>
16595
16596 * thread-db.c (try_thread_db_load_from_sdir): New function.
16597 (try_thread_db_load_from_dir): New function.
16598 (thread_db_load_search): Handle $sdir, ignore $pdir.
16599 Remove trying of system directories if search of
16600 libthread-db-search-path fails, that is now done via $sdir.
16601
d248b706
KY
166022011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16603
16604 * server.c (handle_query): Add EnableDisableTracepoints to the list
16605 of supported features.
43aaf8b6 16606 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16607 tracepoints.
43aaf8b6
PA
16608 (cmd_qtenable_disable): New.
16609 (cmd_qtstart): Install tracepoints even if disabled.
16610 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16611 receiving a QTEnable or QTDisable packet.
16612 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16613 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16614 tracepoints.
16615 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16616
84e578fb
DE
166172011-05-10 Doug Evans <dje@google.com>
16618
16619 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16620
71f55dd8
DE
166212011-05-04 Doug Evans <dje@google.com>
16622
16623 * linux-low.c (linux_join): Skip process lookup.
16624 * spu-low.c (spu_join): Ditto.
16625 * server.c (join_inferiors_callback): Delete.
16626 (process_serial_event): For 'D' packet (detach) call join_inferior
16627 directly.
16628
4d393d60
JM
166292011-05-04 Joseph Myers <joseph@codesourcery.com>
16630
16631 * README: Don't mention xscale*-*-linux*.
16632 * configure.srv (xscale*-*-linux*): Don't handle target.
16633
b00ad6ff
NF
166342011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16635
16636 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16637 casting pointers.
16638 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16639 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16640 (i386_emit_void_call_2): Likewise.
16641
af96c192
YQ
166422011-04-26 Yao Qi <yao@codesourcery.com>
16643
43aaf8b6
PA
16644 * linux-low.c: Move common macros to linux-ptrace.h.
16645 Include linux-ptrace.h.
af96c192
YQ
16646 * Makefile.in (linux_ptrace_h): New.
16647 (linux-low.o): Depends on linux-ptrace.h.
16648
03f2bd59
JK
166492011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16650
16651 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16652 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16653 (remote_prepare): New function with most of the TCP code from ...
16654 (remote_open): ... here. Detect PORT here unconditionally. Move also
16655 setting transport_is_reliable.
16656 * server.c (run_once): New variable.
16657 (gdbserver_usage): Document it.
16658 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16659 the first run if RUN_ONCE.
16660 * server.h (run_once, remote_prepare): New declarations.
16661
7a9dd1b2
TT
166622011-04-19 Tom Tromey <tromey@redhat.com>
16663
16664 * win32-low.c (handle_load_dll): Remove duplicate "the".
16665
81239425
PM
166662011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16667
16668 Remove support for old Cygwin 1.5 versions.
16669 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16670 function to avoid warning.
16671 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16672 warning.
16673
9e0627f1
PM
166742011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16675
16676 * gdbserver/server.h (Macro _): Define it if not available.
16677
588eebee
MS
166782011-03-14 Michael Snyder <msnyder@vmware.com>
16679
348af9f7 16680 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16681
43f70d4c
JB
166822011-03-10 Joel Brobecker <brobecker@adacore.com>
16683
16684 * Makefile.in (maintainer-clean realclean distclean): Remove
16685 "make ... subdir_do" command.
16686
348af9f7
MS
166872011-03-10 Michael Snyder <msnyder@vmware.com>
16688
16689 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16690
16691 * server.c (handle_v_run): Free alloced buffer on early return.
16692
e637a4f5
YQ
166932011-03-09 Yao Qi <yao@codesourcery.com>
16694
16695 Revert:
16696 2011-03-04 Yao Qi <yao@codesourcery.com>
16697
16698 * Makefile.in: Remove GNU make feature --directory.
16699
16700 2011-03-05 Yao Qi <yao@codesourcery.com>
16701
16702 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16703 (subdir_do): New make target. Copied from gdb/Makefile.
16704 (maintainer-clean, realclean, distclean, clean): Call corresponding
16705 make targets in common/Makefile.
16706
16707 2011-02-11 Yao Qi <yao@codesourcery.com>
16708
16709 * configure.ac: Call AC_PROG_RANLIB.
16710 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16711 * configure: Regenerate.
16712
e6edda56
JK
167132011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16714
16715 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16716
e5141119
JB
167172011-03-06 Yao Qi <yao@codesourcery.com>
16718
16719 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16720
64794aa4
JB
167212011-03-05 Yao Qi <yao@codesourcery.com>
16722
16723 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16724 (subdir_do): New make target. Copied from gdb/Makefile.
16725 (maintainer-clean, realclean, distclean, clean): Call corresponding
16726 make targets in common/Makefile.
16727
7a762829
YQ
167282011-03-04 Yao Qi <yao@codesourcery.com>
16729
16730 * Makefile.in: Remove GNU make feature --directory.
16731
348af9f7
MS
167322011-03-04 Michael Snyder <msnyder@vmware.com>
16733
16734 * server.c (queue_stop_reply): Call xmalloc not malloc.
16735
167362011-03-02 Michael Snyder <msnyder@vmware.com>
16737
16738 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16739
9f72fee2
MS
167402011-02-28 Michael Snyder <msnyder@vmware.com>
16741
588eebee
MS
16742 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16743 (cmd_qtframe): Ditto.
16744 (cmd_qtbuffer): Ditto.
16745 (cmd_bigqtbuffer): Ditto.
16746
9f72fee2
MS
16747 * utils.c (decimal2str): Initialize 'width' to nine, then
16748 don't mess with it.
16749
8040bd49
UW
167502011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16751
16752 * hostio.c (require_data): Free *data, not data.
16753
7e52cbd0
JK
167542011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16755
16756 * hostio.c (require_data): Use free, not xfree.
16757
9130f83e
MS
167582011-02-27 Michael Snyder <msnyder@vmware.com>
16759
4b812f4e
MS
16760 * server.c (handle_query): Discard unused value.
16761
9130f83e
MS
16762 * hostio.c (require_data): Free malloc memory before returning
16763 error.
16764
69d37113
MS
167652011-02-26 Michael Snyder <msnyder@vmware.com>
16766
16767 * linux-low.c (list_threads): Call closedir for dirent.
16768
35f5825a
MS
167692011-02-27 Michael Snyder <msnyder@vmware.com>
16770
2a589cef
MS
16771 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16772 a case statement falls through.
16773
0adea5f7
MS
16774 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16775
35f5825a
MS
16776 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16777 in comparison.
16778
238f1c74
MS
167792011-02-26 Michael Snyder <msnyder@vmware.com>
16780
16781 * utils.c (decimal2str): Eliminate dead code and dead param.
16782 (pulongest): Drop dead param from call to decimal2str.
16783 (plongest): Ditto.
16784
633ff500
JB
167852011-02-24 Joel Brobecker <brobecker@adacore.com>
16786
16787 Revert the following patch (not approved yet):
16788 2011-02-21 Hui Zhu <teawater@gmail.com>
16789 * tracepoint.c (tp_printf): New function.
16790 (eval_agent_expr): Handle gdb_agent_op_printf.
16791
f9c6ff72
HZ
167922011-02-21 Hui Zhu <teawater@gmail.com>
16793
16794 * tracepoint.c (tp_printf): New function.
16795 (eval_agent_expr): Handle gdb_agent_op_printf.
16796
94d5e490
TT
167972011-02-18 Tom Tromey <tromey@redhat.com>
16798
16799 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16800 (tracepoint.o): Likewise.
16801 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16802 (gdb_agent_op_names): Likewise.
16803
c7f96d2b
TT
168042011-02-18 Tom Tromey <tromey@redhat.com>
16805
16806 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16807 gdb_agent_op_rot>: New constants.
16808 (gdb_agent_op_names): Add pick and roll.
16809 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16810 cases.
16811
0feedb2c
JK
168122011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16813
16814 * aclocal.m4: Regenerated with aclocal-1.11.1.
16815
b3b9301e
PA
168162011-02-14 Pedro Alves <pedro@codesourcery.com>
16817
16818 * server.c (handle_qxfer_traceframe_info): New.
16819 (qxfer_packets): Register "traceframe-info".
16820 (handle_query): Report support for qXfer:traceframe-info:read+.
16821 * tracepoint.c (match_blocktype): New.
16822 (traceframe_find_block_type): Rename to ...
16823 (traceframe_walk_blocks): ... this. Add callback filter argument,
16824 and use it.
16825 (traceframe_find_block_type): New, reimplemented on top of
16826 traceframe_walk_blocks.
16827 (build_traceframe_info_xml): New.
16828 (traceframe_read_info): New.
16829 * server.h (traceframe_read_info): Declare.
16830
4f3e6fb7
YQ
168312011-02-11 Yao Qi <yao@codesourcery.com>
16832
16833 * configure.ac: Call AC_PROG_RANLIB.
16834 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16835 * configure: Regenerate.
16836
764880b7
PA
168372011-02-07 Pedro Alves <pedro@codesourcery.com>
16838
16839 * server.c (gdb_read_memory): Change return semantics to allow
16840 partial transfers.
16841 (handle_search_memory_1): Adjust.
16842 (process_serial_event) <'m' packet>: Handle partial transfers.
16843 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16844
1c79eb8a
PA
168452011-01-28 Pedro Alves <pedro@codesourcery.com>
16846
16847 * regcache.c (init_register_cache): Initialize
16848 regcache->register_status.
16849 (free_register_cache): Release regcache->register_status.
16850 (regcache_cpy): Copy register_status.
16851 (registers_to_string): Print 'x's for unavailable registers.
16852 (supply_register): Mark the register's status valid or
16853 unavailable, depending on whether a buffer was passed in or not.
16854 (supply_register_zeroed): New.
16855 (supply_regblock): Mark the registers' status valid or
16856 unavailable, depending on whether a buffer was passed in or not.
16857 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16858 (struct regcache): New `register_status' field.
16859 (supply_register_zeroed): Declare.
16860 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16861 supply_register_zeroed, rather than passing a NULL buffer to
16862 supply_register.
16863 * tracepoint.c (fetch_traceframe_registers): Update comment.
16864
85724a0e
PA
168652011-01-28 Pedro Alves <pedro@codesourcery.com>
16866
16867 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16868 buffer explicit.
16869
d08aafef
PA
168702011-01-25 Pedro Alves <pedro@codesourcery.com>
16871
16872 * server.h (decode_xfer_write): Change prototype.
16873 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16874 and don't extract the annex here.
16875 * server.c (decode_xfer_read): Remove `annex' parameter,
16876 and don't extract the annex here.
16877 (decode_xfer): New.
16878 (struct qxfer): New.
16879 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16880 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16881 (handle_qxfer_statictrace): New functions, abstracted out from
16882 handle_query, and made to use the struct qxfer interface.
16883 (handle_threads_qxfer_proper): Rename to ...
16884 (handle_qxfer_threads_proper): ... this.
16885 (handle_threads_qxfer): Rename to ...
16886 (handle_qxfer_threads): ... this. Adjust.
16887 (qxfer_packets): New array.
16888 (handle_qxfer): New function.
16889 (handle_query): Use handle_qxfer.
16890
493e2a69
MS
168912011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16892
16893 * gdbreplay.c: Shorten lines of >= 80 columns.
16894 * linux-low.c: Ditto.
16895 * linux-ppc-low.c: Ditto.
16896 * linux-s390-low.c: Ditto.
16897 * linux-sparc-low.c: Ditto.
16898 * linux-x86-low.c: Ditto.
16899 * linux-xtensa-low.c: Ditto.
16900 * mem-break.c: Ditto.
16901 * nto-low.c: Ditto.
16902 * regcache.h: Ditto.
16903 * remote-utils.c: Ditto.
16904 * server.c: Ditto.
16905 * server.h: Ditto.
16906 * thread-db.c: Ditto.
16907 * tracepoint.c: Ditto.
16908 * utils.c: Ditto.
16909 * win32-low.h: Ditto.
16910
44944448
JB
169112011-01-05 Joel Brobecker <brobecker@adacore.com>
16912
16913 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16914 update.
16915
71ce852c
JB
169162011-01-01 Joel Brobecker <brobecker@adacore.com>
16917
16918 * server.c (gdbserver_version): Update copyright year in version
16919 output.
16920 * gdbreplay.c (gdbreplay_version): Ditto.
16921
eb826dc6
MF
169222010-12-29 Jie Zhang <jie.zhang@analog.com>
16923
16924 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16925 * linux-bfin-low.c: New file.
16926 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16927 PT_DATA_ADDR for BFIN targets.
16928 * Makefile.in (SFILES): Add linux-bfin-low.c.
16929 (clean): Remove reg-bfin.c.
16930 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16931 * README: Mention supported Blackfin targets.
16932
39ab222a
MF
169332010-12-23 Mike Frysinger <vapier@gentoo.org>
16934
16935 * .gitignore: New file.
16936
a1f2ce7d
MF
169372010-11-16 Mike Frysinger <vapier@gentoo.org>
16938
16939 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16940
f474844c
JZ
169412010-10-22 Jie Zhang <jie@codesourcery.com>
16942
16943 * Makefile.in: Add FLAGS_TO_PASS variable.
16944 (install): Remove dependency of install-only and recursively
16945 invoke make for install-only.
16946
f1048712
DE
169472010-10-04 Doug Evans <dje@google.com>
16948
16949 * Makefile.in (uninstall): Use $(DESTDIR).
16950
b53a1623
PA
169512010-09-24 Pedro Alves <pedro@codesourcery.com>
16952
e6ee044d
PA
16953 PR gdb/11842
16954
b53a1623
PA
16955 * linux-x86-low.c (compat_siginfo_from_siginfo)
16956 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16957 si_code is < 0. Check for si_code == SI_TIMER before checking for
16958 si_code < 0.
16959
fa1bd1e4
JB
169602010-09-13 Joel Brobecker <brobecker@adacore.com>
16961
16962 * lynx-i386-low.c: New file.
16963 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16964
47fac8f8
JB
169652010-09-13 Joel Brobecker <brobecker@adacore.com>
16966
16967 * lynx-low.c (ptrace_request_to_str): Remove handling for
16968 request values that have been removed in LynxOS 5.x.
16969
1adfc54d
JB
169702010-09-13 Joel Brobecker <brobecker@adacore.com>
16971
16972 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16973 <ptrace.h>
16974
c2a66c29
NS
169752010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16976
16977 * configure.ac: Add --enable-inprocess-agent option.
16978 * configure: Rebuilt.
16979
32fcada3
YQ
169802010-09-06 Yao Qi <yao@codesourcery.com>
16981
16982 * linux-low.c (linux_kill): Remove unused variable.
16983 (linux_stabilize_threads): Likewise.
16984 * server.c (start_inferior): Likewise.
16985 (queue_stop_reply_callback): Likewise.
16986 * tracepoint.c (do_action_at_tracepoint): Likewise.
16987
0cccb683
YQ
169882010-09-06 Yao Qi <yao@codesourcery.com>
16989
16990 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16991 on return.
16992
423ec54c
JK
169932010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16994
16995 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16996
12ac6819
PA
169972010-09-06 Pedro Alves <pedro@codesourcery.com>
16998
16999 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17000 "$(IPA_DEPFILES)".
17001
8ed54b31
JB
170022010-09-01 Joel Brobecker <brobecker@adacore.com>
17003
17004 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17005 gdbserver/lynx-ppc-low.c: New files.
17006 * Makefile.in (lynx_low_h): New variable.
17007 (lynx-low.o, lynx-ppc-low.o): New rules.
17008 * configure.ac: On LynxOS, link with -lnetinet.
17009 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17010 * configure: regenerate.
17011
bb0116a4
JB
170122010-09-01 Joel Brobecker <brobecker@adacore.com>
17013
17014 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17015 * configure.ac: Add check for vasprintf and vsnprintf.
17016 * configure, config.in: Regenerate.
17017 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17018
a778ab81 170192010-09-01 Joel Brobecker <brobecker@adacore.com>
17020
17021 * gdbreplay.c: Move include of alloca.h up, next to include of
17022 malloc.h.
17023 * server.h: Add include of malloc.h.
17024 * mem-break.c: Remove include of malloc.h.
17025 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17026
8b034a19 170272010-09-01 Joel Brobecker <brobecker@adacore.com>
17028
17029 * Makefile.in (memmem.o): Build with -Wno-error.
17030
170312010-09-01 Joel Brobecker <brobecker@adacore.com>
17032
17033 * utils.c (xsnprintf): Make non-static.
17034 * server.h: Add xsnprintf declaration.
17035 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17036 replace calls to snprintf by calls to xsnprintf throughout.
17037
170382010-09-01 Joel Brobecker <brobecker@adacore.com>
17039
17040 * configure.ac: Add configure check for alloca.
17041 * configure, config.in: Regenerate.
17042 * server.h: Include alloca.h if it exists.
17043 * gdbreplay.c: Include alloca.h if it exists.
17044
1a981360
PA
170452010-08-28 Pedro Alves <pedro@codesourcery.com>
17046
17047 * linux-low.c (__SIGRTMIN): Define if not already defined.
17048 (linux_create_inferior): Check for __ANDROID__ rather than
17049 __SIGRTMIN.
17050 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17051 are already deferred.
17052 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17053 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17054 stopped and already has a pending signal to report.
17055 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17056 a pending signal to report or is moving out of a jump pad.
17057 (linux_init_signals): Check for __ANDROID__ rather than
17058 __SIGRTMIN.
17059
b4d51a55
PA
170602010-08-28 Pedro Alves <pedro@codesourcery.com>
17061
17062 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17063 debug_threads check. Avoid a linear search when not doing debug
17064 output.
17065
ec48365d
PA
170662010-08-27 Pedro Alves <pedro@codesourcery.com>
17067
17068 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17069 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17070 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17071 (process_event): Change local fd's type to gdb_fildes_t.
17072 (create_file_handler): Adjust prototype.
17073 (delete_file_handler): Adjust prototype.
17074 (handle_file_event): Adjust prototype. Use pfildes.
17075 (create_file_event): Adjsut prototype.
17076 * remote-utils.c (remote_desc, listen_desc): Change type to
17077 gdb_fildes_t.
17078 * server.h: New gdb_fildes_t typedef.
17079 [USE_WIN32API]: Include winsock2.h.
17080 (delete_file_handler, add_file_handler): Adjust prototypes.
17081 (pfildes): Declare.
17082 * utils.c (pfildes): New.
17083
854d88f0
PA
170842010-08-27 Pedro Alves <pedro@codesourcery.com>
17085
17086 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17087 * configure: Regenerate.
17088
0146f85b
PA
170892010-08-27 Pedro Alves <pedro@codesourcery.com>
17090
17091 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17092 (linux_done_accessing_memory): ... this.
17093 (linux_target_ops): Adjust.
17094 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17095 * nto-low.c (nto_target_ops): Adjust comment.
17096 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17097 * spu-low.c (spu_target_ops): Adjust comment.
17098 * target.h (target_ops): Rename unprepare_to_access_memory field
17099 to done_accessing_memory.
17100 (unprepare_to_access_memory): Rename to ...
17101 (done_accessing_memory): ... this.
17102
90d74c30
PA
171032010-08-26 Pedro Alves <pedro@codesourcery.com>
17104
17105 * linux-low.c (linux_prepare_to_access_memory): New.
17106 (linux_unprepare_to_access_memory): New.
17107 (linux_target_ops): Install them.
17108 * server.c (read_memory): Rename to ...
17109 (gdb_read_memory): ... this. Use
17110 prepare_to_access_memory/prepare_to_access_memory.
17111 (write_memory): Rename to ...
17112 (gdb_write_memory): ... this. Use
17113 prepare_to_access_memory/prepare_to_access_memory.
17114 (handle_search_memory_1): Adjust.
17115 (process_serial_event): Adjust.
17116 * target.h (struct target_ops): New fields
17117 prepare_to_access_memory and unprepare_to_access_memory.
17118 (prepare_to_access_memory, unprepare_to_access_memory): New.
17119 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17120 prepare_to_access_memory/prepare_to_access_memory.
17121 * nto-low.c (nto_target_ops): Adjust.
17122 * spu-low.c (spu_target_ops): Adjust.
17123 * win32-low.c (win32_target_ops): Adjust.
17124
fd467969
PA
171252010-08-26 Pedro Alves <pedro@codesourcery.com>
17126
17127 * Makefile.in (WARN_CFLAGS): Get it from configure.
17128 (WERROR_CFLAGS): New.
17129 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17130 * configure.ac: Introduce --enable-werror, which adds -Werror to
17131 the compiler command line. Enabled by default. Disable with
17132 --disable-werror. Add -Wdeclaration-after-statement
17133 Wpointer-arith and -Wformat-nonliteral to warning flags.
17134 * configure: Regenerate.
17135
331e2f5f
PA
171362010-08-26 Pedro Alves <pedro@codesourcery.com>
17137
17138 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17139
e581f2b4
PA
171402010-08-26 Pedro Alves <pedro@codesourcery.com>
17141
17142 * gdbreplay.c (remote_error): New.
17143 (gdbchar): New.
17144 (expect): Use gdbchar. Check for error reading from GDB.
17145 Clarify sync error output.
17146 (play): Check for errors writing to GDB.
17147 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17148 * remote-utils.c (getpkt): Check for errors writing to the remote
17149 descriptor.
17150
3c11dd79
PA
171512010-08-25 Pedro Alves <pedro@codesourcery.com>
17152
17153 * linux-low.c (linux_wait_1): Move non-debugging code out of
17154 `debug_threads' control.
17155
d20a8ad9
PA
171562010-08-25 Pedro Alves <pedro@codesourcery.com>
17157
17158 * linux-low.c (linux_wait_1): Don't set last_status here.
17159 * server.c (push_event, queue_stop_reply_callback): Assert we're
17160 not pushing a TARGET_WAITKIND_IGNORE event.
17161 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17162 (myresume, handle_target_event): Set the thread's last_resume_kind
17163 and last_status from the target returned status.
17164
964e4306
PA
171652010-08-25 Pedro Alves <pedro@codesourcery.com>
17166
17167 PR threads/10729
17168
17169 * linux-x86-low.c (update_debug_registers_callback): New.
17170 (i386_dr_low_set_addr): Use it.
17171 (i386_dr_low_get_addr): New.
17172 (i386_dr_low_set_control): Use update_debug_registers_callback.
17173 (i386_dr_low_get_control): New.
17174 (i386_dr_low_get_status): Adjust.
17175 * linux-low.c (linux_stop_lwp): New.
17176 * linux-low.h (linux_stop_lwp): Declare.
17177
17178 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17179 argument instead of a i386_debug_reg_state.
17180 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17181 a i386_debug_reg_state.
17182 (i386_insert_aligned_watchpoint): Adjust.
17183 (i386_remove_aligned_watchpoint): Adjust.
17184 (i386_low_stopped_data_address): Read the debug registers from the
17185 inferior instead of from the mirrors.
17186 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17187 (i386_dr_low_get_addr): Declare.
17188 (i386_dr_low_get_control): Declare.
17189 (i386_dr_low_get_status): Change prototype.
17190
17191 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17192 (i386_dr_low_get_addr): New.
17193 (i386_dr_low_get_control): New.
17194 (i386_dr_low_get_status): Adjust prototype. Return
17195 dr_status_mirror.
17196 (i386_initial_stuff): Clear dr_status_mirror and
17197 dr_control_mirror.
17198 (i386_get_thread_context): Adjust.
17199 (i386_set_thread_context): Adjust.
17200 (i386_thread_added): Adjust.
17201
5f21a75b
PA
172022010-08-24 Pedro Alves <pedro@codesourcery.com>
17203
17204 * linux-low.h (linux_thread_area): Delete declaration.
17205
3e4c1235
TS
172062010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17207
17208 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17209 after its termination.
17210
1971b033
PA
172112010-08-09 Pedro Alves <pedro@codesourcery.com>
17212
17213 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17214 (gdb_wants_all_stopped): Delete.
17215 (linux_wait_1): Don't call them.
17216 * server.c (handle_v_cont): Tag all threads as want-stopped.
17217 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17218 stopped as "client-wants-stopped".
17219
310444ac
PA
172202010-07-31 Pedro Alves <pedro@codesourcery.com>
17221
17222 * Makefile.in (signals_h): New.
17223 (server_h): Depend on it.
17224 (server.o): Don't depend on $(signals_def).
17225 (signals.o): Depend on $(signals_def).
17226
a19cae16
JK
172272010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17228
17229 * Makefile.in (signals_def): New.
17230 (server_h): Append include/gdb/signals.h and signals_def.
17231 (server.o): Append signals_def.
17232
30d50328
JK
172332010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17234
17235 * server.c (handle_target_event): Use target_signal_to_host for
17236 resume_info.sig initialization.
17237 * target.h (struct thread_resume) <sig>: New comment.
17238
5c3216e2
OS
172392010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17240
c6f46ca0
OS
17241 * server.c (handle_query): strcpy() the returned string from paddress()
17242 instead of sprintf().
5c3216e2
OS
17243 * utils.c (paddress): Return phex_nz().
17244
6bd31874
JB
172452010-07-07 Joel Brobecker <brobecker@adacore.com>
17246
17247 * server.c (handle_v_cont): Call mourn_inferior if process
17248 just exited.
17249 (myresume): Likewise.
17250
0fb4aa4b
PA
172512010-07-01 Pedro Alves <pedro@codesourcery.com>
17252
17253 Static tracepoints, and integration with UST.
17254
17255 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17256 * mem-break.c (uninsert_all_breakpoints)
17257 (reinsert_all_breakpoints): New.
17258 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17259 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17260 (gdb_agent_ust_loaded, helper_thread_id)
17261 (gdb_agent_helper_thread_id): New macros.
17262 (struct ipa_sym_addresses): Add addr_ust_loaded,
17263 addr_helper_thread_id, addr_cmd_buf.
17264 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17265 (in_process_agent_loaded_ust): New.
17266 (write_e_ust_not_loaded): New.
17267 (maybe_write_ipa_ust_not_loaded): New.
17268 (struct collect_static_trace_data_action): New.
17269 (enum tracepoint_type) <static_tracepoint>: New.
17270 (struct tracepoint) <handle>: Mention static tracepoints.
17271 (struct static_tracepoint_ctx): New.
17272 (CMD_BUF_SIZE): New.
17273 (add_tracepoint_action): Handle static tracepoint actions.
17274 (unprobe_marker_at): New.
17275 (clear_installed_tracepoints): Handle static tracepoints.
17276 (cmd_qtdp): Handle static tracepoints.
17277 (probe_marker_at): New.
17278 (cmd_qtstart): Handle static tracepoints.
17279 (response_tracepoint): Handle static tracepoints.
17280 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17281 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17282 (get_context_regcache): Handle static tracepoints.
17283 (do_action_at_tracepoint): Handle static tracepoint actions.
17284 (traceframe_find_block_type): Handle static trace data blocks.
17285 (traceframe_read_sdata): New.
17286 (download_tracepoints): Download static tracepoint actions.
17287 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17288 (GDB_PROBE_NAME): New.
17289 (ust_ops): New.
17290 (GET_UST_SYM): New.
17291 (USTF): New.
17292 (dlsym_ust): New.
17293 (ust_marker_to_static_tracepoint): New.
17294 (gdb_probe): New.
17295 (collect_ust_data_at_tracepoint): New.
17296 (gdb_ust_probe): New.
17297 (UNIX_PATH_MAX, SOCK_DIR): New.
17298 (gdb_ust_connect_sync_socket): New.
17299 (resume_thread, stop_thread): New.
17300 (run_inferior_command): New.
17301 (init_named_socket): New.
17302 (gdb_ust_socket_init): New.
17303 (cstr_to_hexstr): New.
17304 (next_st): New.
17305 (first_marker, next_marker): New.
17306 (response_ust_marker): New.
17307 (cmd_qtfstm, cmd_qtsstm): New.
17308 (unprobe_marker_at, probe_marker_at): New.
17309 (cmd_qtstmat, gdb_ust_thread): New.
17310 (gdb_ust_init): New.
17311 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17312 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17313 (ST_REGENTRY): New.
17314 (x86_64_st_collect_regmap): New.
17315 (X86_64_NUM_ST_COLLECT_GREGS): New.
17316 (AMD64_RIP_REGNUM): New.
17317 (supply_static_tracepoint_registers): New.
17318 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17319 (ST_REGENTRY): New.
17320 (i386_st_collect_regmap): New.
17321 (i386_NUM_ST_COLLECT_GREGS): New.
17322 (supply_static_tracepoint_registers): New.
17323 * server.c (handle_query): Handle qXfer:statictrace:read.
17324 <qSupported>: Report support for StaticTracepoints, and
17325 qXfer:statictrace:read features.
17326 * server.h (traceframe_read_sdata)
17327 (supply_static_tracepoint_registers): Declare.
17328 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17329 (unpack_varlen_hex): Include in IPA build.
17330 * Makefile.in (ustlibs, ustinc): New.
17331 (IPA_OBJS): Add remote-utils-ipa.o.
17332 ($(IPA_LIB)): Link -ldl and -lpthread.
17333 (UST_CFLAGS): New.
17334 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17335 * config.in, configure: Regenerate.
17336
9e4344e5
PA
173372010-06-20 Ian Lance Taylor <iant@google.com>
17338 Pedro Alves <pedro@codesourcery.com>
17339
17340 * linux-x86-low.c (always_true): Delete.
17341 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17342 trying to fool the compiler with always_true.
17343
c6beb2cb
PA
173442010-06-20 Pedro Alves <pedro@codesourcery.com>
17345
17346 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17347 conditions in gdbserver.
17348
d2ed6730
UW
173492010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17350
17351 * spu-low.c (spu_read_memory): Wrap around local store limit.
17352 (spu_write_memory): Likewise.
17353
4e29fb54
PA
173542010-06-15 Pedro Alves <pedro@codesourcery.com>
17355
17356 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17357 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17358 LONGEST uses.
17359 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17360 uses.
17361 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17362 uses with LONGEST uses.
17363
6a271cae
PA
173642010-06-14 Stan Shebs <stan@codesourcery.com>
17365 Pedro Alves <pedro@codesourcery.com>
17366
17367 Bytecode compiler.
17368
17369 * linux-x86-low.c: Include limits.h.
17370 (add_insns): New.
17371 (always_true): New.
17372 (EMIT_ASM): New.
17373 (EMIT_ASM32): New.
17374 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17375 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17376 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17377 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17378 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17379 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17380 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17381 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17382 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17383 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17384 (amd64_emit_void_call_2): New.
17385 (amd64_emit_ops): New.
17386 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17387 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17388 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17389 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17390 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17391 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17392 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17393 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17394 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17395 (i386_emit_stack_adjust, i386_emit_int_call_1)
17396 (i386_emit_void_call_2): New.
17397 (i386_emit_ops): New.
17398 (x86_emit_ops): New.
17399 (the_low_target): Install x86_emit_ops.
17400 * server.h (struct emit_ops): New.
17401 (get_raw_reg_func_addr): Declare.
17402 (current_insn_ptr, emit_error): Declare.
17403 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17404 (set_trace_state_variable_value): New defines.
17405 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17406 addr_get_trace_state_variable_value and
17407 addr_set_trace_state_variable_value.
17408 (symbol_list): New fields for get_raw_reg,
17409 get_trace_state_variable_value and set_trace_state_variable_value.
17410 (condfn): New typedef.
17411 (struct tracepoint): New field `compiled_cond'.
17412 (do_action_at_tracepoint): Clear compiled_cond.
17413 (get_trace_state_variable_value, set_trace_state_variable_value):
17414 Export in the IPA.
17415 (condition_true_at_tracepoint): If there's a compiled condition,
17416 run that.
17417 (current_insn_ptr, emit_error): New globals.
17418 (struct bytecode_address): New.
17419 (get_raw_reg_func_addr): New.
17420 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17421 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17422 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17423 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17424 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17425 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17426 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17427 (compile_tracepoint_condition, compile_bytecodes): New.
17428 * target.h (emit_ops): Forward declare.
17429 (struct target_ops): New field emit_ops.
17430 (target_emit_ops): New.
17431 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17432 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17433 * linux-low.c (linux_emit_ops): New.
17434 (linux_target_ops): Install it.
17435 * linux-low.h (struct linux_target_ops): New field emit_ops.
17436
92b72907
UW
174372010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17438
17439 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17440 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17441
fa593d66
PA
174422010-06-01 Pedro Alves <pedro@codesourcery.com>
17443 Stan Shebs <stan@codesourcery.com>
17444
17445 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17446 (all): Depend on $(extra_libraries).
17447 (install-only): Install the IPA.
17448 (IPA_OBJS, IPA_LIB): New.
17449 (clean): Remove the IPA lib.
17450 (IPAGENT_CFLAGS): New.
17451 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17452 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17453 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17454 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17455 * configure.ac: Check for atomic builtins support in the compiler.
17456 (IPA_DEPFILES, extra_libraries): Define.
17457 * configure.srv (ipa_obj): Add description.
17458 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17459 (i[34567]86-*-linux*): Set ipa_obj.
17460 (x86_64-*-linux*): Set ipa_obj.
17461 * linux-low.c (stabilizing_threads): New.
17462 (supports_fast_tracepoints): New.
17463 (linux_detach): Stabilize threads before detaching.
17464 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17465 the lwp is either not stabilizing, or is moving out of a jump pad.
17466 (linux_fast_tracepoint_collecting): New.
17467 (maybe_move_out_of_jump_pad): New.
17468 (enqueue_one_deferred_signal): New.
17469 (dequeue_one_deferred_signal): New.
17470 (linux_wait_for_event_1): If moving out of a jump pad, defer
17471 pending signals to later.
17472 (linux_stabilize_threads): New.
17473 (linux_wait_1): Check if threads need moving out of jump pads, and
17474 do it if so.
17475 (stuck_in_jump_pad_callback): New.
17476 (move_out_of_jump_pad_callback): New.
17477 (lwp_running): New.
17478 (linux_resume_one_lwp): Handle moving out of jump pads.
17479 (linux_set_resume_request): Dequeue deferred signals.
17480 (need_step_over_p): Also step over fast tracepoint jumps.
17481 (start_step_over): Also uninsert fast tracepoint jumps.
17482 (finish_step_over): Also reinsert fast tracepoint jumps.
17483 (linux_install_fast_tracepoint_jump): New.
17484 (linux_target_ops): Install linux_stabilize_threads and
17485 linux_install_fast_tracepoint_jump_pad.
17486 * linux-low.h (linux_target_ops) <get_thread_area,
17487 install_fast_tracepoint_jump_pad>: New fields.
17488 (struct lwp_info) <collecting_fast_tracepoint,
17489 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17490 (linux_get_thread_area): Declare.
17491 * linux-x86-low.c (jump_insn): New.
17492 (x86_get_thread_area): New.
17493 (append_insns): New.
17494 (push_opcode): New.
17495 (amd64_install_fast_tracepoint_jump_pad): New.
17496 (i386_install_fast_tracepoint_jump_pad): New.
17497 (x86_install_fast_tracepoint_jump_pad): New.
17498 (the_low_target): Install x86_get_thread_area and
17499 x86_install_fast_tracepoint_jump_pad.
17500 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17501 (struct fast_tracepoint_jump): New.
17502 (fast_tracepoint_jump_insn): New.
17503 (fast_tracepoint_jump_shadow): New.
17504 (find_fast_tracepoint_jump_at): New.
17505 (fast_tracepoint_jump_here): New.
17506 (delete_fast_tracepoint_jump): New.
17507 (set_fast_tracepoint_jump): New.
17508 (uninsert_fast_tracepoint_jumps_at): New.
17509 (reinsert_fast_tracepoint_jumps_at): New.
17510 (set_breakpoint_at): Use write_inferior_memory.
17511 (uninsert_raw_breakpoint): Use write_inferior_memory.
17512 (check_mem_read): Mask out fast tracepoint jumps.
17513 (check_mem_write): Mask out fast tracepoint jumps.
17514 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17515 (set_fast_tracepoint_jump): Declare.
17516 (delete_fast_tracepoint_jump)
17517 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17518 (reinsert_fast_tracepoint_jumps_at): Declare.
17519 * regcache.c: Don't compile many functions when building the
17520 in-process agent library.
17521 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17522 the register buffer in the heap.
17523 (free_register_cache): If the register buffer isn't owned by the
17524 regcache, don't free it.
17525 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17526 pre-existing register caches.
17527 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17528 type.
17529 (convert_ascii_to_int): : Constify `from' parameter type.
17530 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17531 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17532 the needed buffer in-place.
17533 (relocate_instruction): New.
17534 * server.c (handle_query) <qSymbols>: If the target supports
17535 tracepoints, give it a chance of looking up symbols. Report
17536 support for fast tracepoints.
17537 (handle_status): Stabilize threads.
17538 (process_serial_event): Adjust.
17539 * server.h (struct fast_tracepoint_jump): Forward declare.
17540 (struct process_info) <fast_tracepoint_jumps>: New field.
17541 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17542 (decode_X_packet, decode_M_packet): Adjust.
17543 (relocate_instruction): Declare.
17544 (in_process_agent_loaded): Declare.
17545 (tracepoint_look_up_symbols): Declare.
17546 (struct fast_tpoint_collect_status): Declare.
17547 (fast_tracepoint_collecting): Declare.
17548 (force_unlock_trace_buffer): Declare.
17549 (handle_tracepoint_bkpts): Declare.
17550 (initialize_low_tracepoint)
17551 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17552 * target.h (struct target_ops) <stabilize_threads,
17553 install_fast_tracepoint_jump_pad>: New fields.
17554 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17555 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17556 [HAVE_STDINT_H]: Include stdint.h.
17557 (trace_debug_1): Rename to ...
17558 (trace_vdebug): ... this.
17559 (trace_debug): Rename to ...
17560 (trace_debug_1): ... this. Add `level' parameter.
17561 (trace_debug): New.
17562 (ATTR_USED, ATTR_NOINLINE): New.
17563 (IP_AGENT_EXPORT): New.
17564 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17565 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17566 (about_to_request_buffer_space, trace_buffer_is_full)
17567 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17568 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17569 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17570 (traceframe_write_count, traceframes_created)
17571 (trace_state_variables)
17572 New renaming defines.
17573 (struct ipa_sym_addresses): New.
17574 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17575 (symbol_list): New.
17576 (ipa_sym_addrs): New.
17577 (all_tracepoint_symbols_looked_up): New.
17578 (in_process_agent_loaded): New.
17579 (write_e_ipa_not_loaded): New.
17580 (maybe_write_ipa_not_loaded): New.
17581 (tracepoint_look_up_symbols): New.
17582 (debug_threads) [IN_PROCESS_AGENT]: New.
17583 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17584 (UNKNOWN_SIDE_EFFECTS): New.
17585 (stop_tracing): New.
17586 (flush_trace_buffer): New.
17587 (stop_tracing_bkpt): New.
17588 (flush_trace_buffer_bkpt): New.
17589 (read_inferior_integer): New.
17590 (read_inferior_uinteger): New.
17591 (read_inferior_data_pointer): New.
17592 (write_inferior_data_pointer): New.
17593 (write_inferior_integer): New.
17594 (write_inferior_uinteger): New.
17595 (struct collect_static_trace_data_action): Delete.
17596 (enum tracepoint_type): New.
17597 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17598 <actions_str, step_actions, step_actions_str>: Only include in
17599 GDBserver.
fa593d66
PA
17600 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17601 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17602 (tracepoints): Use IP_AGENT_EXPORT.
17603 (last_tracepoint): Don't include in the IPA.
17604 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17605 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17606 (alloced_trace_state_variables): New.
17607 (trace_state_variables): Use IP_AGENT_EXPORT.
17608 (traceframe_t): Delete unused variable.
17609 (circular_trace_buffer): Don't include in the IPA.
17610 (trace_buffer_start): Delete.
17611 (struct trace_buffer_control): New.
17612 (trace_buffer_free): Delete.
17613 (struct ipa_trace_buffer_control): New.
17614 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17615 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17616 New.
17617 (trace_buffer_ctrl): New.
17618 (TRACE_BUFFER_CTRL_CURR): New.
17619 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17620 Reimplement as macros.
17621 (trace_buffer_wrap): Delete.
17622 (traceframe_write_count, traceframe_read_count)
17623 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17624 (struct tracepoint_hit_ctx) <type>: New field.
17625 (struct fast_tracepoint_ctx): New.
17626 (memory_barrier): New.
17627 (cmpxchg): New.
17628 (record_tracepoint_error): Update atomically in the IPA.
17629 (clear_inferior_trace_buffer): New.
17630 (about_to_request_buffer_space): New.
17631 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17632 updating the same buffer.
17633 (add_tracepoint): Default the tracepoint's type to trap
17634 tracepoint, and orig_size to -1.
17635 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17636 internal variables.
17637 (create_trace_state_variable): New parameter `gdb'. Handle it.
17638 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17639 (cmd_qtdp): Handle fast tracepoints.
17640 (cmd_qtdv): Adjust.
17641 (max_jump_pad_size): New.
17642 (gdb_jump_pad_head): New.
17643 (get_jump_space_head): New.
17644 (claim_jump_space): New.
17645 (sort_tracepoints): New.
17646 (MAX_JUMP_SIZE): New.
17647 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17648 IPA.
17649 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17650 support. Upload fast traceframes, and delete internal IPA
17651 breakpoints.
17652 (stop_tracing_handler): New.
17653 (flush_trace_buffer_handler): New.
17654 (cmd_qtstop): Upload fast tracepoints.
17655 (response_tracepoint): Handle fast tracepoints.
17656 (tracepoint_finished_step): Upload fast traceframes. Set the
17657 tracepoint hit context's tracepoint type.
17658 (handle_tracepoint_bkpts): New.
17659 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17660 type. Add comment about fast tracepoints.
17661 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17662 non-existing action_str field.
17663 (get_context_regcache): Handle fast tracepoints.
17664 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17665 to the regcache.
17666 (fast_tracepoint_from_jump_pad_address): New.
17667 (fast_tracepoint_from_ipa_tpoint_address): New.
17668 (collecting_t): New.
17669 (force_unlock_trace_buffer): New.
17670 (fast_tracepoint_collecting): New.
17671 (collecting): New.
17672 (gdb_collect): New.
17673 (write_inferior_data_ptr): New.
17674 (target_tp_heap): New.
17675 (target_malloc): New.
17676 (download_agent_expr): New.
17677 (UALIGN): New.
17678 (download_tracepoints): New.
17679 (download_trace_state_variables): New.
17680 (upload_fast_traceframes): New.
17681 (IPA_FIRST_TRACEFRAME): New.
17682 (IPA_NEXT_TRACEFRAME_1): New.
17683 (IPA_NEXT_TRACEFRAME): New.
17684 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17685 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17686 (gdb_jump_pad_buffer_end): New.
17687 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17688 (initialize_tracepoint): Adjust.
17689 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17690 buffer. Initialize the low module.
17691 * utils.c (PREFIX, TOOLNAME): New.
17692 (malloc_failure): Use PREFIX.
17693 (error): In the IPA, an error causes an exit.
17694 (fatal, warning): Use PREFIX.
17695 (internal_error): Use TOOLNAME.
17696 (NUMCELLS): Increase to 10.
17697 * configure, config.in: Regenerate.
17698
d149dd1d
PA
176992010-06-01 Pedro Alves <pedro@codesourcery.com>
17700
17701 * server.c (handle_query) <qSupported>: Do two passes over the
17702 qSupported string to avoid nesting strtok.
17703
f6528abd
JK
177042010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17705
17706 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17707 (CDEPS): New.
17708 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17709 -Wl,--dynamic-list.
17710 * configure: Regenerate.
17711 * proc-service.list: New.
17712
ca2a87a0
JK
177132010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17714
17715 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17716 New comment.
17717
363a6e9f
OS
177182010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17719
17720 * gdbreplay.c (remote_open): Check error return from socket() call by
17721 its equality to -1 not by it being negative.
17722 * remote-utils.c (remote_open): Likewise.
17723
d23b6cb1
PA
177242010-05-23 Pedro Alves <pedro@codesourcery.com>
17725
17726 * config.h: Regenerate.
17727
28d3cf85
MK
177282010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17729
17730 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17731 doesn't provide PTRACE_GET_THREAD_AREA.
17732
fea36a59
MK
177332010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17734
17735 * linux-m68k-low.c: Include <asm/ptrace.h>
17736 (ps_get_thread_area): Implement.
17737
24b066ba
DE
177382010-05-03 Doug Evans <dje@google.com>
17739
17740 * event-loop.c (struct callback_event): New struct.
17741 (callback_list): New global.
17742 (append_callback_event, delete_callback_event): New functions.
17743 (process_callback): New function.
17744 (start_event_loop): Call it.
17745 * remote-utils.c (NOT_SCHEDULED): Define.
17746 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17747 moved out of readchar.
17748 (readchar): Rewrite. Call reschedule before returning.
17749 (reset_readchar): New function.
17750 (remote_close): Call it.
17751 (process_remaining, reschedule): New functions.
17752 * server.h (callback_handler_func): New typedef.
17753 (append_callback_event, delete_callback_event): Declare.
17754
9836d6ea
PA
177552010-05-03 Pedro Alves <pedro@codesourcery.com>
17756
17757 * proc-service.c (ps_pglobal_lookup): Use
17758 thread_db_look_up_one_symbol.
17759 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17760 parameter. Use it instead of all_symbols_looked_up.
17761 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17762 field.
17763 (all_symbols_looked_up): Don't declare.
17764 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17765 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17766 field.
17767 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17768 Set all_symbols_looked_up here.
17769 (thread_db_look_up_one_symbol): New.
17770 (thread_db_get_tls_address): Adjust.
17771 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17772 thread_db object on the heap, and tentatively set it in the
17773 process structure.
17774 (thread_db_init): Don't set all_symbols_looked_up here.
17775 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17776
7984d532
PA
177772010-05-03 Pedro Alves <pedro@codesourcery.com>
17778
17779 * linux-low.c (linux_kill, linux_detach): Adjust.
17780 (status_pending_p_callback): Remove redundant statement. Check
17781 for !TARGET_WAITIKIND_IGNORE, instead of
17782 TARGET_WAITKIND_STOPPED.
17783 (handle_tracepoints): Make sure LWP is locked. Adjust.
17784 (linux_wait_for_event_1): Adjust.
17785 (linux_cancel_breakpoints): New.
17786 (unsuspend_one_lwp): New.
17787 (unsuspend_all_lwps): New.
17788 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17789 (send_sigstop_callback): Change return type to int, add new
17790 `except' parameter and handle it.
17791 (suspend_and_send_sigstop_callback): New.
17792 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17793 pass them down. If SUSPEND, also increment the lwp's suspend
17794 count.
17795 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17796 (need_step_over_p): Don't consider suspended LWPs.
17797 (start_step_over): Adjust.
17798 (proceed_one_lwp): Change return type to int, add new `except'
17799 parameter and handle it.
17800 (unsuspend_and_proceed_one_lwp): New.
17801 (proceed_all_lwps): Use find_inferior instead of
17802 for_each_inferior.
17803 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17804 also decrement the suspend count of LWPs. Pass `except' down,
17805 instead of hacking its suspend count.
17806 (linux_pause_all): Add `freeze' parameter. Adjust.
17807 (linux_unpause_all): New.
17808 (linux_target_ops): Install linux_unpause_all.
17809 * server.c (handle_status): Adjust.
17810 * target.h (struct target_ops): New fields `unpause_all' and
17811 `cancel_breakpoints'. Add new parameter to `pause_all'.
17812 (pause_all): Add new `freeze' parameter.
17813 (unpause_all): New.
17814 (cancel_breakpoints): New.
17815 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17816 cancel breakpoints.
17817 (cmd_qtstart): Pause threads.
17818 (stop_tracing): Pause threads, and cancel breakpoints.
17819 * win32-low.c (win32_target_ops): Adjust.
17820
e471f25b
PA
178212010-05-03 Pedro Alves <pedro@codesourcery.com>
17822
17823 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17824 the inferior right away from here...
17825 (linux_wait_1): ... to here, and adjust to check the thread's
17826 last_resume_kind instead of the lwp's step or stop_expected flags.
17827
1915ef4f
PA
178282010-05-02 Pedro Alves <pedro@codesourcery.com>
17829
17830 * README: Use consistent `GDB' and `GDBserver' spellings.
17831
f9e39928
PA
178322010-05-02 Pedro Alves <pedro@codesourcery.com>
17833
17834 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17835 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17836 (linux_detach_one_lwp): Assume the lwp is stopped.
17837 (any_thread_of): Delete.
17838 (linux_detach): Stop all lwps here. Don't blindly delete all
17839 breakpoints.
17840 (delete_lwp_callback): New.
17841 (linux_mourn): Delete all lwps of the process that is gone.
17842 (linux_wait_1): Don't delete the last lwp of the process here.
17843 * mem-break.h (mark_breakpoints_out): Declare.
17844 * mem-break.c (mark_breakpoints_out): New.
17845 (free_all_breakpoints): Use it.
17846 * server.c (handle_target_event): If the process is gone, mark
17847 breakpoints out.
17848 * thread-db.c (struct thread_db) <create_bp>: New field.
17849 (thread_db_enable_reporting): Fix prototype. Store a thread event
17850 breakpoint reference in the thread_db struct.
17851 (thread_db_load_search): Clear the thread_db object.
17852 (try_thread_db_load_1): Ditto.
17853 (switch_to_process): New.
17854 (disable_thread_event_reporting): Use it.
17855 (remove_thread_event_breakpoints): New.
17856 (thread_db_detach, thread_db_mourn): Use it.
17857
1e7fc18c
PA
178582010-05-01 Pedro Alves <pedro@codesourcery.com>
17859
17860 * linux-low.c (linux_enable_event_reporting): New.
17861 (linux_wait_for_event_1, handle_extended_wait): Use it.
17862
02fc4de7
PA
178632010-04-30 Pedro Alves <pedro@codesourcery.com>
17864
17865 * linux-low.c (linux_kill_one_lwp, linux_kill)
17866 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17867 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17868 SIGSTOP even if the LWP is stopped.
17869 (send_sigstop_callback): New.
17870 (stop_all_lwps): Use send_sigstop_callback instead.
17871 (linux_resume_one_thread): Adjust.
17872 (proceed_one_lwp): Still proceed an LWP that the client has
17873 requested to stop, if we haven't reported it as stopped yet. Make
17874 sure that LWPs the client want stopped, have a pending SIGSTOP.
17875
bc3b5632
DE
178762010-04-26 Doug Evans <dje@google.com>
17877
ae1ada35
DE
17878 * server.c (handle_general_set): Make static.
17879
bc3b5632
DE
17880 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17881 Print received char after testing for error/eof instead of before.
17882 (input_interrupt): Tweak comment.
17883
65730243
DE
178842010-04-23 Doug Evans <dje@google.com>
17885
17886 * server.c (start_inferior): Print inferior argv if --debug.
17887
a8ae7dc0
AR
178882010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17889
17890 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17891 * nto-x86-low.c: Include server.h
17892
1c07cc19
PM
178932010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17894
17895 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17896 be consistent with other sources of this directory.
17897 (init_registers_amd64): Correct name of source file of this function
17898 in the comment.
17899
e0a61e09
PM
179002010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17901
17902 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17903 64-bit executables.
17904
54709339
PM
179052010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17906
17907 * win32-i386-low.c: Add 64-bit support.
17908 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17909 (init_registers_amd64): Declare.
17910 (mappings): Add 64-bit version of array.
17911 (init_windows_x86): New function.
17912 (the_low_target): Change init_arch field to init_windows_x86.
17913
e8f0053d
PM
179142010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17915
17916 * win32-low.c: Adapt to support also 64-bit architecture.
17917 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17918 (get_image_name): Use SIZE_T type for local variable `done'.
17919 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17920 (toolhelp_get_dll_name): Idem.
17921 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17922 Use uintptr_t typecast to avoid warning.
17923 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17924 (handle_exception): Use phex_nz to avoid warning.
17925 (win32_wait): Remove unused local variable `process'.
17926
c481e77e
PM
179272010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17928
17929 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17930 `amd64-avx.o'.
17931
12ea4b69
PM
179322010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17933
17934 * configure.ac: Use `ws2_32' library for srv_mingw.
17935 * configure: Regenerate.
17936 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17937 * remote-utils.c: Likewise.
17938
f6d1620c
L
179392010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17940
17941 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17942 if __x86_64__ is defined.
17943
8e642873
PM
179442010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17945
17946 * configure: Regenerate.
17947
711e434b
PM
179482010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17949
17950 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17951 * target.h (target_ops): New get_tib_address field.
17952 * win32-low.h (win32_thread_info): Add thread_local_base field.
17953 * win32-low.c (child_add_thread): Add tlb argument.
17954 Set thread_local_base field to TLB.
17955 (get_child_debug_event): Adapt to child_add_thread change.
17956 (win32_get_tib_address): New function.
17957 (win32_target_ops): Set get_tib_address field to
17958 win32_get_tib_address.
17959 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17960
505106cd
PA
179612010-04-12 Pedro Alves <pedro@codesourcery.com>
17962
505106cd
PA
17963 * linux-low.c (linux_mourn): Also remove the process.
17964 * server.c (handle_target_event): Don't remove the process here.
17965 * nto-low.c (nto_mourn): New.
17966 (nto_target_ops): Install it.
17967 * spu-low.c (spu_mourn): New.
17968 (spu_target_ops): Install it.
17969 * win32-low.c (win32_mourn): New.
17970 (win32_target_ops): Install it.
17971
e8470a06
PA
179722010-04-12 Pedro Alves <pedro@codesourcery.com>
17973
17974 * server.h (buffer_xml_printf): Remove redundant `;'.
17975
45ba0d02
PA
179762010-04-12 Pedro Alves <pedro@codesourcery.com>
17977
17978 * regcache.c (set_register_cache): Invalidate regcaches before
17979 changing the register cache layout.
17980 (regcache_invalidate_one): Allow a NULL regcache.
17981 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17982 regcaches before changing the register cache layout or the target
17983 regsets.
17984
59e04013
L
179852010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17986
17987 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17988 variable warning on Linux/x86-64.
17989
8336d594
PA
179902010-04-11 Pedro Alves <pedro@codesourcery.com>
17991
17992 GDBserver disconnected tracing support.
17993
17994 * linux-low.c (linux_remove_process): Delete.
17995 (add_lwp): Don't set last_resume_kind here.
17996 (linux_kill): Use `mourn'.
17997 (linux_detach): Use `thread_db_detach', and `mourn'.
17998 (linux_mourn): New.
17999 (linux_attach_lwp_1): Adjust comment.
18000 (linux_attach): last_resume_kind moved the thread_info; adjust.
18001 (status_pending_p_callback): Adjust.
18002 (linux_wait_for_event_1): Adjust.
18003 (count_events_callback, select_singlestep_lwp_callback)
18004 (select_event_lwp_callback, cancel_breakpoints_callback)
18005 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18006 (proceed_one_lwp): Adjust.
18007 (linux_async): Add debug output.
18008 (linux_thread_stopped): New.
18009 (linux_pause_all): New.
18010 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18011 linux_pause_all.
18012 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18013 (thread_db_free): Delete declaration.
18014 (thread_db_detach, thread_db_mourn): Declare.
18015 * thread-db.c (thread_db_init): Use thread_db_mourn.
18016 (thread_db_free): Delete, split in two.
18017 (disable_thread_event_reporting): New.
18018 (thread_db_detach): New.
18019 (thread_db_mourn): New.
18020
18021 * server.h (struct thread_info) <last_resume_kind>: New field.
18022 <attached>: Add comment.
18023 <gdb_detached>: New field.
18024 (handler_func): Change return type to int.
18025 (handle_serial_event, handle_target_event): Ditto.
18026 (gdb_connected): Declare.
18027 (tracing): Delete.
18028 (disconnected_tracing): Declare.
18029 (stop_tracing): Declare.
18030
18031 * server.c (handle_query) <qSupported>: Report support for
18032 disconnected tracing.
18033 (queue_stop_reply_callback): Account for running threads.
18034 (gdb_wants_thread_stopped): New.
18035 (gdb_wants_all_threads_stopped): New.
18036 (gdb_reattached_process): New.
18037 (handle_status): Clear the `gdb_detached' flag of all processes.
18038 In all-stop, stop all threads.
18039 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18040 (process_serial_event): If the remote connection breaks, or if an
18041 exit was forced with "monitor exit", force an event loop exit.
18042 Handle disconnected tracing on detach.
18043 (handle_serial_event): Adjust.
18044 (handle_target_event): If GDB isn't connected, forward events back
18045 to the inferior, unless the last process exited, in which case,
18046 exit gdbserver. Adjust interface.
18047
18048 * remote-utils.c (remote_open): Don't block in accept. Instead
18049 register an event loop source on the listen socket file
18050 descriptor. Refactor bits into ...
18051 (listen_desc): ... this new global.
18052 (gdb_connected): ... this new function.
18053 (enable_async_notification): ... this new function.
18054 (handle_accept_event): ... this new function.
18055 (remote_close): Clear remote_desc.
18056
18057 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18058
18059 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18060 New fields.
18061 (mourn_inferior): Define.
18062 (target_process_qsupported): Avoid the dangling else problem.
18063 (thread_stopped): Define.
18064 (pause_all): Define.
18065 (target_waitstatus_to_string): Declare.
18066 * target.c (target_waitstatus_to_string): New.
18067
18068 * tracepoint.c (tracing): Make extern.
18069 (disconnected_tracing): New.
18070 (stop_tracing): Make extern. Handle tracing stops due to GDB
18071 disconnecting.
18072 (cmd_qtdisconnected): New.
18073 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18074 (handle_tracepoint_general_set): Handle QTDisconnected.
18075
18076 * event-loop.c (event_handler_func): Change return type to int.
18077 (process_event): Bail out if the event handler wants the event
18078 loop to stop.
18079 (handle_file_event): Ditto.
18080 (start_event_loop): Bail out if the event handler wants the event
18081 loop to stop.
18082
18083 * nto-low.c (nto_target_ops): Adjust.
18084 * spu-low.c (spu_wait): Don't remove the process here.
18085 (spu_target_ops): Adjust.
18086 * win32-low.c (win32_wait): Don't remove the process here.
18087 (win32_target_ops): Adjust.
18088
5d267c4c
PA
180892010-04-11 Pedro Alves <pedro@codesourcery.com>
18090
18091 * regcache.c (realloc_register_cache): Invalidate inferior's
18092 regcache before recreating it.
18093
623ccd72
PA
180942010-04-09 Pedro Alves <pedro@codesourcery.com>
18095
18096 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18097
219f2f23
PA
180982010-04-09 Stan Shebs <stan@codesourcery.com>
18099 Pedro Alves <pedro@codesourcery.com>
18100
18101 * server.h (LONGEST): New.
18102 (struct thread_info) <while_stepping>: New field.
18103 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18104 Declare.
18105 (initialize_tracepoint, handle_tracepoint_general_set)
18106 (handle_tracepoint_query, tracepoint_finished_step)
18107 (tracepoint_was_hit, release_while_stepping_state_list):
18108 (current_traceframe): Declare.
18109 * server.c (handle_general_set): Handle tracepoint packets.
18110 (read_memory): New.
18111 (write_memory): New.
18112 (handle_search_memory_1): Use read_memory.
18113 (handle_query): Report support for conditional tracepoints, trace
18114 state variables, and tracepoint sources. Handle tracepoint
18115 queries.
18116 (main): Initialize the tracepoints module.
18117 (process_serial_event): Handle traceframe reads/writes.
18118
18119 * linux-low.c (handle_tracepoints): New.
18120 (linux_wait_1): Call it.
18121 (linux_resume_one_lwp): Handle while-stepping.
18122 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18123 (linux_target_ops): Install them.
18124 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18125 New field.
18126 * linux-x86-low.c (x86_supports_tracepoints): New.
18127 (the_low_target). Install it.
18128
18129 * mem-break.h (delete_breakpoint): Declare.
18130 * mem-break.c (delete_breakpoint): Make external.
18131
18132 * target.h (struct target_ops): Add `supports_tracepoints',
18133 `read_pc', and `write_pc' fields.
18134 (target_supports_tracepoints): Define.
18135 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18136 (phex_nz): New.
18137
18138 * regcache.h (struct regcache) <registers_owned>: New field.
18139 (init_register_cache, regcache_cpy): Declare.
18140 (regcache_read_pc, regcache_write_pc): Declare.
18141 (register_cache_size): Declare.
18142 (supply_regblock): Declare.
18143 * regcache.c (init_register_cache): New.
18144 (new_register_cache): Use it.
18145 (regcache_cpy): New.
18146 (register_cache_size): New.
18147 (supply_regblock): New.
18148 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18149
219f2f23
PA
18150 * tracepoint.c: New.
18151
18152 * Makefile.in (OBS): Add tracepoint.o.
18153 (tracepoint.o): New rule.
18154
3a13a53b
L
181552010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18156
18157 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18158 (i386-mmx.o): New.
18159 (i386-mmx.c): Likewise.
18160 (i386-mmx-linux.o): Likewise.
18161 (i386-mmx-linux.c): Likewise.
18162
18163 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18164 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18165 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18166 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18167
18168 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18169 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18170 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18171
1570b33e
L
181722010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18173
18174 * Makefile.in (clean): Updated.
18175 (i386-avx.o): New.
18176 (i386-avx.c): Likewise.
18177 (i386-avx-linux.o): Likewise.
18178 (i386-avx-linux.c): Likewise.
18179 (amd64-avx.o): Likewise.
18180 (amd64-avx.c): Likewise.
18181 (amd64-avx-linux.o): Likewise.
18182 (amd64-avx-linux.c): Likewise.
18183
18184 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18185 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18186 (srv_amd64_regobj): Add amd64-avx.o.
18187 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18188 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18189 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18190 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18191 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18192 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18193 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18194
18195 * i387-fp.c: Include "i386-xstate.h".
18196 (i387_xsave): New.
18197 (i387_cache_to_xsave): Likewise.
18198 (i387_xsave_to_cache): Likewise.
18199 (x86_xcr0): Likewise.
18200
18201 * i387-fp.h (i387_cache_to_xsave): Likewise.
18202 (i387_xsave_to_cache): Likewise.
18203 (x86_xcr0): Likewise.
18204
18205 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18206 * linux-crisv32-low.c (target_regsets): Likewise.
18207 * linux-m68k-low.c (target_regsets): Likewise.
18208 * linux-mips-low.c (target_regsets): Likewise.
18209 * linux-ppc-low.c (target_regsets): Likewise.
18210 * linux-s390-low.c (target_regsets): Likewise.
18211 * linux-sh-low.c (target_regsets): Likewise.
18212 * linux-sparc-low.c (target_regsets): Likewise.
18213 * linux-xtensa-low.c (target_regsets): Likewise.
18214
18215 * linux-low.c: Include <sys/uio.h>.
18216 (regsets_fetch_inferior_registers): Support nt_type.
18217 (regsets_store_inferior_registers): Likewise.
18218 (linux_process_qsupported): New.
18219 (linux_target_ops): Add linux_process_qsupported.
18220
18221 * linux-low.h (regset_info): Add nt_type.
18222 (linux_target_ops): Add process_qsupported.
18223
18224 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18225 and <sys/uio.h>.
18226 (init_registers_i386_avx_linux): New.
18227 (init_registers_amd64_avx_linux): Likewise.
18228 (xmltarget_i386_linux_no_xml): Likewise.
18229 (xmltarget_amd64_linux_no_xml): Likewise.
18230 (PTRACE_GETREGSET): Likewise.
18231 (PTRACE_SETREGSET): Likewise.
18232 (x86_fill_xstateregset): Likewise.
18233 (x86_store_xstateregset): Likewise.
18234 (use_xml): Likewise.
18235 (x86_linux_update_xmltarget): Likewise.
18236 (x86_linux_process_qsupported): Likewise.
18237 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18238 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18239 init_registers_i386_linux here. Call
18240 x86_linux_update_xmltarget.
18241 (the_low_target): Add x86_linux_process_qsupported.
18242
18243 * server.c (handle_query): Call target_process_qsupported.
18244
18245 * target.h (target_ops): Add process_qsupported.
18246 (target_process_qsupported): New.
18247
fc7238bb
PA
182482010-04-03 Pedro Alves <pedro@codesourcery.com>
18249
18250 * inferiors.c (add_thread): Set last_status kind to
18251 TARGET_WAITKIND_IGNORE.
18252 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18253 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18254 (linux_wait_1): Move `thread' local definition to block that uses
18255 it. Don't NULL initialize `event_child'.
18256 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18257 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18258 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18259
bdabb078
PA
182602010-04-01 Pedro Alves <pedro@codesourcery.com>
18261
18262 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18263 an extended waitstatus, or by a watchpoint.
18264 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18265 thread was stepping or has been stopped by a watchpoint.
18266
d3bbe7a0
PA
182672010-04-01 Pedro Alves <pedro@codesourcery.com>
18268
18269 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18270 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18271 of another, then delete the previous, and validate all
18272 breakpoints.
18273 (validate_inserted_breakpoint): New.
18274 (delete_disabled_breakpoints): New.
18275 (validate_breakpoints): New.
18276 (check_mem_read): Validate breakpoints before trusting their
18277 shadow. Delete disabled breakpoints.
18278 (check_mem_write): Validate breakpoints before trusting they
18279 should be inserted. Delete disabled breakpoints.
18280 * mem-break.h (validate_breakpoints):
18281 * server.c (handle_query): Validate breakpoints when we see a
18282 qSymbol query.
18283
8b07ae33
PA
182842010-04-01 Pedro Alves <pedro@codesourcery.com>
18285
18286 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18287 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18288 if we could tell there's a GDB breakpoint at stop_pc.
18289 (need_step_over_p): Don't do a step over if we find a GDB
18290 breakpoint at the resume PC.
18291
18292 * mem-break.c (struct raw_breakpoint): New.
18293 (enum bkpt_type): New type `gdb_breakpoint'.
18294 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18295 fields. New field `raw'.
18296 (find_raw_breakpoint_at): New.
18297 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18298 breakpoint instead.
18299 (set_breakpoint_at): Adjust.
18300 (delete_raw_breakpoint): New.
18301 (release_breakpoint): New.
18302 (delete_breakpoint): Rename to...
18303 (delete_breakpoint_1): ... this. Add proc parameter. Use
18304 release_breakpoint. Return ENOENT.
18305 (delete_breakpoint): Reimplement.
18306 (find_breakpoint_at): Delete.
18307 (find_gdb_breakpoint_at): New.
18308 (delete_breakpoint_at): Delete.
18309 (set_gdb_breakpoint_at): New.
18310 (delete_gdb_breakpoint_at): New.
18311 (gdb_breakpoint_here): New.
18312 (set_reinsert_breakpoint): Use release_breakpoint.
18313 (uninsert_breakpoint): Rename to ...
18314 (uninsert_raw_breakpoint): ... this.
18315 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18316 (reinsert_raw_breakpoint): Change parameter type to
18317 raw_breakpoint.
18318 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18319 instead.
18320 (check_breakpoints): Adjust. Use release_breakpoint.
18321 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18322 (breakpoint_inserted_here): Ditto.
18323 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18324 Don't trust the breakpoint's shadow if it is not inserted.
18325 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18326 (delete_all_breakpoints): Adjust.
18327 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18328 use delete_breakpoint_1.
18329
18330 * mem-break.h (breakpoints_supported): Delete declaration.
18331 (set_gdb_breakpoint_at): Declare.
18332 (gdb_breakpoint_here): Declare.
18333 (delete_breakpoint_at): Delete.
18334 (delete_gdb_breakpoint_at): Declare.
18335
18336 * server.h (struct raw_breakpoint): Forward declare.
18337 (struct process_info): New field `raw_breakpoints'.
18338
18339 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18340 breakpoints.
18341
6bf5e0ba
PA
183422010-03-24 Pedro Alves <pedro@codesourcery.com>
18343
18344 * linux-low.c (status_pending_p_callback): Fix comment.
18345 (linux_wait_for_event_1): Move most of the internal breakpoint
18346 handling from here...
18347 (linux_wait_1): ... to here.
18348 (count_events_callback): New.
18349 (select_singlestep_lwp_callback): New.
18350 (select_event_lwp_callback): New.
18351 (cancel_breakpoints_callback): New.
18352 (select_event_lwp): New.
18353 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18354 priority to all LWPs that have had events that should be reported
18355 to the client. Cancel breakpoints when about to reporting the
18356 event to the client, not while stopping lwps. No longer cancel
18357 finished single-steps here.
18358 (cancel_finished_single_step): Delete.
18359 (cancel_finished_single_steps): Delete.
18360
414a389f
PA
183612010-03-24 Pedro Alves <pedro@codesourcery.com>
18362
18363 * mem-break.c (enum bkpt_type): New.
18364 (struct breakpoint): New field `type'.
18365 (set_breakpoint_at): Change return type to struct breakpoint
18366 pointer. Set type to `other_breakpoint' by default.
18367 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18368 in the breakpoint list.
18369 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18370 (reinsert_breakpoint): Rename to ...
18371 (reinsert_raw_breakpoint): ... this.
18372 (reinsert_breakpoints_at): Adjust.
18373 * mem-break.h (struct breakpoint): Declare.
18374 (set_breakpoint_at): Change return type to struct breakpoint
18375 pointer.
18376
2280c721
PA
183772010-03-24 Pedro Alves <pedro@codesourcery.com>
18378
18379 * server.c (handle_query): Assign, not compare.
18380
d50171e4
PA
183812010-03-24 Pedro Alves <pedro@codesourcery.com>
18382
18383 Teach linux gdbserver to step-over-breakpoints.
18384
18385 * linux-low.c (can_hardware_single_step): New.
18386 (supports_breakpoints): New.
18387 (handle_extended_wait): If stopping threads, read the stop pc of
18388 the new cloned LWP.
18389 (get_pc): New.
18390 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18391 low target doesn't support retrieving the PC.
18392 (add_lwp): Set last_resume_kind to resume_continue.
18393 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18394 (linux_attach): Don't clear stop_expected. Set the lwp's
18395 last_resume_kind to resume_stop.
18396 (linux_detach_one_lwp): Don't check for removed breakpoints.
18397 (check_removed_breakpoint): Delete.
18398 (status_pending_p): Rename to ...
18399 (status_pending_p_callback): ... this. Don't check for removed
18400 breakpoints. Don't consider threads that are stopped from GDB's
18401 perspective.
18402 (linux_wait_for_lwp): Always read the stop_pc here.
18403 (cancel_breakpoint): New.
18404 (step_over_bkpt): New global.
18405 (linux_wait_for_event_1): Implement stepping over breakpoints.
18406 (gdb_wants_lwp_stopped): New.
18407 (gdb_wants_all_stopped): New.
18408 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18409 single-step traps here. Store the thread's last reported target
18410 wait status.
18411 (send_sigstop): Don't clear stop_expected. Always set it,
18412 instead.
18413 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18414 (cancel_finished_single_step): New.
18415 (cancel_finished_single_steps): New.
18416 (wait_for_sigstop): Don't cancel finished single-step traps here.
18417 (linux_resume_one_lwp): Don't check for removed breakpoints.
18418 Don't set `step' on non-hardware step archs.
18419 (linux_set_resume_request): Ignore resume_stop requests if already
18420 stopping or stopped. Set the lwp's last_resume_kind.
18421 (resume_status_pending_p): Don't check for removed breakpoints.
18422 (need_step_over_p): New.
18423 (start_step_over): New.
18424 (finish_step_over): New.
18425 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18426 requests. Clear the thread's last reported target waitstatus.
18427 Don't use the `suspended' flag. Don't consider pending breakpoints.
18428 (linux_resume): Start a step-over if necessary.
18429 (proceed_one_lwp): New.
18430 (proceed_all_lwps): New.
18431 (unstop_all_lwps): New.
18432 * linux-low.h (struct lwp_info): Rewrite comment for the
18433 `suspended' flag. Add the `stop_pc' field. Delete the
18434 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18435 Add `'last_resume_kind' and `need_step_over' fields.
18436 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18437 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18438 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18439 (set_raw_breakpoint_at): New.
18440 (set_breakpoint_at): Rewrite to use it.
18441 (reinsert_breakpoint_handler): Delete.
18442 (set_reinsert_breakpoint): New.
18443 (reinsert_breakpoint_by_bp): Delete.
18444 (delete_reinsert_breakpoints): New.
18445 (uninsert_breakpoint): Rewrite.
18446 (uninsert_breakpoints_at): New.
18447 (reinsert_breakpoint): Rewrite.
18448 (reinsert_breakpoints_at): New.
18449 (check_breakpoints): Rewrite.
18450 (breakpoint_here): New.
18451 (breakpoint_inserted_here): New.
18452 (check_mem_read): Adjust.
18453 * mem-break.h (breakpoints_supported, breakpoint_here)
18454 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18455 (reinsert_breakpoint_by_bp): Delete declaration.
18456 (delete_reinsert_breakpoints): Declare.
18457 (reinsert_breakpoint): Delete declaration.
18458 (reinsert_breakpoints_at): Declare.
18459 (uninsert_breakpoint): Delete declaration.
18460 (uninsert_breakpoints_at): Declare.
18461 (check_breakpoints): Adjust prototype.
18462 * server.h: Adjust include order.
18463 (struct thread_info): Declare here. Add a `last_status' field.
18464
30ba68cb
MS
184652010-03-23 Michael Snyder <msnyder@vmware.com>
18466
18467 * server.c (crc32): New function.
18468 (handle_query): Add handling for 'qCRC:' request.
18469
b9a881c2
PA
184702010-03-23 Pedro Alves <pedro@codesourcery.com>
18471
18472 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18473 lwp had been stopped by a watchpoint.
18474
e92d13d5
PA
184752010-03-16 Pedro Alves <pedro@codesourcery.com>
18476
18477 * server.h (internal_error): Declare.
18478 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18479 * utils.c (internal_error): New function.
18480
64daa791
AS
184812010-03-15 Andreas Schwab <schwab@redhat.com>
18482
18483 * configure.srv: Fix typo setting srv_regobj.
18484
f52cd8cd
PA
184852010-03-15 Pedro Alves <pedro@codesourcery.com>
18486
18487 * linux-low.c (fetch_register): Avoid passing a non string literal
18488 format to `error'.
18489 (usr_store_inferior_registers): Ditto.
18490
93ae6fdc
PA
184912010-03-14 Pedro Alves <pedro@codesourcery.com>
18492
18493 * linux-low.c (linux_write_memory): Bail out early if peeking
18494 memory failed.
18495
c3adc08c
PA
184962010-03-14 Pedro Alves <pedro@codesourcery.com>
18497
18498 * linux-low.h (struct lwp_info): New fields
18499 `stopped_by_watchpoint' and `stopped_data_address'.
18500 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18501 here, and cache them in the lwp object.
18502 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18503 directly.
18504 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18505 field.
18506 (linux_stopped_by_watchpoint): Rewrite.
18507 (linux_stopped_data_address): Rewrite.
18508
bce522a2
PA
185092010-03-06 Simo Melenius <simo.melenius@iki.fi>
18510
18511 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18512 switching the current inferior, not before.
18513
90884b2b
L
185142010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18515
18516 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18517 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18518 i386-linux.c and amd64-linux.c.
18519 (reg-i386.o): Removed.
18520 (reg-i386.c): Likewise.
18521 (reg-i386-linux.o): Likewise.
18522 (reg-i386-linux.c): Likewise.
18523 (reg-x86-64.o): Likewise.
18524 (reg-x86-64.c): Likewise.
18525 (reg-x86-64-linux.o): Likewise.
18526 (reg-x86-64-linux.c): Likewise.
18527 (i386.o): New.
18528 (i386.c): Likewise.
18529 (i386-linux.o): Likewise.
18530 (i386-linux.c): Likewise.
18531 (amd64.o): Likewise.
18532 (amd64.c): Likewise.
18533 (amd64-linux.o): Likewise.
18534 (amd64-linux.c): Likewise.
18535
18536 * configure.srv (srv_i386_regobj): New.
18537 (srv_i386_linux_regobj): Likewise.
18538 (srv_amd64_regobj): Likewise.
18539 (srv_amd64_linux_regobj): Likewise.
18540 (srv_i386_32bit_xmlfiles): Likewise.
18541 (srv_i386_64bit_xmlfiles): Likewise.
18542 (srv_i386_xmlfiles): Likewise.
18543 (srv_amd64_xmlfiles): Likewise.
18544 (srv_i386_linux_xmlfiles): Likewise.
18545 (srv_amd64_linux_xmlfiles): Likewise.
18546 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18547 srv_xmlfiles to $srv_i386_xmlfiles.
18548 (i[34567]86-*-mingw32ce*): Likewise.
18549 (i[34567]86-*-mingw*): Likewise.
18550 (i[34567]86-*-nto*): Likewise.
18551 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18552 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18553 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18554 (x86_64-*-linux*): Likewise.
18555
18556 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18557 (init_registers_amd64_linux): New.
18558 (x86_arch_setup): Replace init_registers_x86_64_linux with
18559 init_registers_amd64_linux.
18560
193f13e6
MK
185612010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18562
18563 * configure.ac: Check for libdl. If it is not available link against
18564 static libthread_db.
18565 * configure: Regenerate.
18566
85d721b8
PA
185672010-02-22 Pedro Alves <pedro@codesourcery.com>
18568
18569 PR9605
18570
18571 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18572 handing a read watchpoint.
18573 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18574
6076632b
DE
185752010-02-12 Doug Evans <dje@google.com>
18576
18577 * linux-low.c (linux_supports_tracefork_flag): Document.
18578 (linux_look_up_symbols): Add comment.
18579
3327ccf7
L
185802010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18581
18582 * regcache.c (supply_register): Clear regcache if buf is NULL.
18583
0718675c 185842010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18585 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18586
18587 * inferiors.c (find_inferior): Add function documentation.
18588 (unloaded_dll): Handle the case where the unloaded dll has not
18589 been previously registered in the dll list.
18590
177321bd
DJ
185912010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18592
18593 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18594 (thumb2_breakpoint): New.
18595 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18596
2b009048
DJ
185972010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18598
18599 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18600 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18601 breakpoints.
18602
3be029c7
PA
186032010-01-21 Pedro Alves <pedro@codesourcery.com>
18604
18605 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18606
18f5de3b
JK
186072010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18608
18609 * linux-s390-low.c (s390_collect_ptrace_register)
18610 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18611
3743bb4f
DE
186122010-01-21 Doug Evans <dje@google.com>
18613
14ce3065
DE
18614 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18615 (PTRACE_ARG4_TYPE): New macro.
18616 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18617 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18618 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18619 (usr_store_inferior_registers): Ditto.
18620 (linux_read_memory, linux_write_memory): Ditto.
18621 (linux_test_for_tracefork): Ditto.
18622
3743bb4f
DE
18623 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18624 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18625
8b315be5
PA
186262010-01-21 Pedro Alves <pedro@codesourcery.com>
18627
18628 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18629 target.
18630
85492558
PA
186312010-01-21 Pedro Alves <pedro@codesourcery.com>
18632
18633 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18634 prototype to take a regcache. Adjust.
18635
442ea881
PA
186362010-01-20 Pedro Alves <pedro@codesourcery.com>
18637
18638 * regcache.h (struct thread_info): Forward declare.
18639 (struct regcache): New.
18640 (new_register_cache): Adjust prototype.
18641 (get_thread_regcache): Declare.
18642 (free_register_cache): Adjust prototype.
18643 (registers_to_string, registers_from_string): Ditto.
18644 (supply_register, supply_register_by_name, collect_register)
18645 (collect_register_as_string, collect_register_by_name): Ditto.
18646 * regcache.c (struct inferior_regcache_data): Delete.
18647 (get_regcache): Rename to ...
18648 (get_thread_regcache): ... this. Adjust. Switch inferior before
18649 fetching registers.
18650 (regcache_invalidate_one): Adjust.
18651 (regcache_invalidate): Fix prototype.
18652 (new_register_cache): Return the new register cache.
18653 (free_register_cache): Change prototype.
18654 (realloc_register_cache): Adjust.
18655 (registers_to_string): Change prototype to take a regcache. Adjust.
18656 (registers_from_string): Ditto.
18657 (register_data): Ditto.
18658 (supply_register): Ditto.
18659 (supply_register_by_name): Ditto.
18660 (collect_register): Ditto.
18661 (collect_register_as_string): Ditto.
18662 (collect_register_by_name): Ditto.
18663 * server.c (process_serial_event): Adjust.
18664 * linux-low.h (regset_fill_func, regset_store_func): Change
18665 prototype.
18666 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18667 Change prototype.
18668 * linux-low.c (get_stop_pc): Adjust.
18669 (check_removed_breakpoint): Adjust.
18670 (linux_wait_for_event): Adjust.
18671 (linux_resume_one_lwp): Adjust.
18672 (fetch_register): Add regcache parameter. Adjust.
18673 (usr_store_inferior_registers): Ditto.
18674 (regsets_fetch_inferior_registers): Ditto.
18675 (regsets_store_inferior_registers): Ditto.
18676 (linux_fetch_registers, linux_store_registers): Ditto.
18677 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18678 regcache. Adjust.
43aaf8b6
PA
18679 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18680 Ditto.
442ea881
PA
18681 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18682 prototype to take a regcache.
18683 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18684 * remote-utils.c (convert_ascii_to_int, outreg)
18685 (prepare_resume_reply): Change prototype to take a regcache.
18686 Adjust.
18687 * target.h (struct target_ops) <fetch_registers, store_registers>:
18688 Change prototype to take a regcache.
18689 (fetch_inferior_registers, store_inferior_registers): Change
18690 prototype to take a regcache. Adjust.
18691 * proc-service.c (ps_lgetregs): Adjust.
18692 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18693 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18694 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18695 take a regcache. Adjust.
18696 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18697 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18698 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18699 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18700 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18701 (cris_cannot_fetch_register):
18702 (cris_breakpoint_at): Change prototype to take a regcache.
18703 Adjust.
18704 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18705 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18706 to take a regcache. Adjust.
18707 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18708 Adjust.
18709 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18710 take a regcache. Adjust.
18711 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18712 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18713 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18714 * linux-mips-low.c (mips_get_pc):
18715 (mips_set_pc): Change prototype to take a regcache. Adjust.
18716 (mips_reinsert_addr): Adjust.
18717 (mips_collect_register): Change prototype to take a regcache.
18718 Adjust.
18719 (mips_supply_register):
18720 (mips_collect_register_32bit, mips_supply_register_32bit)
18721 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18722 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18723 * linux-ppc-low.c (ppc_supply_ptrace_register)
18724 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18725 (parse_spufs_run): Adjust.
18726 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18727 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18728 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18729 take a regcache. Adjust.
18730 * linux-s390-low.c (s390_collect_ptrace_register)
18731 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18732 (s390_set_pc): Change prototype to take a regcache. Adjust.
18733 (s390_arch_setup): Adjust.
18734 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18735 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18736 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18737 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18738 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18739 regcache. Adjust.
18740 (sparc_breakpoint_at): Adjust.
18741 * linux-xtensa-low.c (xtensa_fill_gregset):
18742 (xtensa_store_gregset):
18743 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18744 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18745 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18746 prototype to take a regcache. Adjust.
18747 * win32-arm-low.c (arm_fetch_inferior_register)
18748 (arm_store_inferior_register): Change prototype to take a
18749 regcache. Adjust.
18750 * win32-i386-low.c (i386_fetch_inferior_register)
18751 (i386_store_inferior_register): Change prototype to take a
18752 regcache. Adjust.
18753 * win32-low.c (child_fetch_inferior_registers)
18754 (child_store_inferior_registers): Change prototype to take a
18755 regcache. Adjust.
18756 (win32_wait): Adjust.
18757 (win32_fetch_inferior_registers): Change prototype to take a
18758 regcache. Adjust.
18759 (win32_store_inferior_registers): Adjust.
18760 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18761 store_inferior_register>: Change prototype to take a regcache.
18762
60c3d7b0
DE
187632010-01-20 Doug Evans <dje@google.com>
18764
18765 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18766 #ifdef.
18767 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18768 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18769
dc146f7c
VP
187702010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18771
18772 * linux-low.c (linux_core_of_thread): New.
18773 (compare_ints, show_process, list_threads): New.
18774 (linux_qxfer_osdata): Report threads and cores.
18775 (linux_target_op): Register linux_core_of_thread.
18776 * remote-utils.c (prepare_resume_reply): Report the core.
18777 (buffer_xml_printf): Support %d specifier.
18778 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18779 New.
18780 (handle_query): Handle qXfer:threads. Announce availability
18781 thereof.
18782 * target.h (struct target_ops): New field core_of_thread.
18783
7803799a
UW
187842010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18785
18786 * Makefile.in (clean): Remove new generated files.
18787 (reg-s390.o, reg-s390.c): Remove rules.
18788 (reg-s390x.o, reg-s390x.c): Likewise.
18789 (s390-linux32.o, s390-linux32.c): Add rules.
18790 (s390-linux64.o, s390-linux64.c): Likewise.
18791 (s390x-linux64.o, s390x-linux64.c): Likewise.
18792 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18793 * linux-s390-low.c: Include <elf.h>.
18794 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18795 (init_registers_s390): Remove prototype.
18796 (init_registers_s390x): Likewise.
18797 (init_registers_s390_linux32): Add prototype.
18798 (init_registers_s390_linux64): Likewise.
18799 (init_registers_s390x_linux64): Likewise.
18800 (s390_num_regs_3264): New define.
18801 (s390_regmap_3264): New global variable.
18802 (s390_cannot_fetch_register): Remove obsolete check.
18803 (s390_cannot_store_register): Likewise.
18804 (s390_collect_ptrace_register): Handle upper/lower register halves.
18805 (s390_supply_ptrace_register): Likewise.
18806 (s390_fill_gregset): Update to register number changes.
18807 (s390_get_hwcap): New routine.
18808 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18809 Install appropriate regmap and register set.
18810
6e7ffa39
JB
188112010-01-01 Joel Brobecker <brobecker@adacore.com>
18812
18813 * server.c (gdbserver_version): Update copyright year to 2010.
18814 * gdbreplay.c (gdbreplay_version): Likewise.
18815
957f3f49
DE
188162009-12-28 Doug Evans <dje@google.com>
18817
18818 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18819 elf/external.h. Include <elf.h> instead but only if necessary.
18820
ca5c370d
PA
188212009-12-28 Pedro Alves <pedro@codesourcery.com>
18822
18823 * linux-low.c (linux_remove_process): Remove `detaching'
18824 parameter. Don't release/detach from thread_db here.
18825 (linux_kill): Release/detach from thread_db here, ...
18826 (linux_detach): ... and here, before actually detaching.
18827 (linux_wait_1): ... and here, when a process exits.
18828 * thread-db.c (any_thread_of): New.
18829 (thread_db_free): Switch the current inferior to a thread of the
18830 passed in process.
18831
4ee62156
DE
188322009-12-21 Doug Evans <dje@google.com>
18833
d90e6a88
DE
18834 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18835
c5f62d5f
DE
18836 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18837 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18838 warning ifndef __NR_tkill. Move setting of errno there too.
18839 Delete unnecessary resetting of errno after syscall.
18840 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18841
10e86dd7
DE
18842 * configure.ac: Check for dladdr.
18843 * config.in: Regenerate.
18844 * configure: Regenerate.
18845 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18846 (try_thread_db_load): Update.
18847
4ee62156
DE
18848 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18849
00f515da
DE
188502009-12-18 Doug Evans <dje@google.com>
18851
e9464885
DE
18852 * event-loop.c: Include unistd.h if it exists.
18853
07d4f67e
DE
18854 * linux-low.c (my_waitpid): Move definition away from being in
18855 between linux_tracefork_child/linux_test_for_tracefork.
18856
00f515da
DE
18857 * gdb_proc_service.h (psaddr_t): Fix type.
18858 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18859 signature to match glibc.
18860
1de1badb
DE
188612009-12-16 Doug Evans <dje@google.com>
18862
18863 * linux-low.c (linux_read_memory): Fix argument to read.
18864
aeeb81d1
PA
188652009-11-26 Pedro Alves <pedro@codesourcery.com>
18866
18867 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18868 events, don't leave current_inferior pointing at null.
18869
10357975
PA
188702009-11-26 Pedro Alves <pedro@codesourcery.com>
18871
18872 * win32-low.c (LOG): Delete.
18873 (OUTMSG): Output to stderr.
18874 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18875 on compile time LOG macro.
18876 (win32_wait): Fix debug output.
18877
cf6e3471
PA
188782009-11-26 Pedro Alves <pedro@codesourcery.com>
18879
18880 * win32-low.c (win32_add_one_solib): If the dll name is
18881 "ntdll.dll", prepend the system directory to the dll path.
18882
0c85e18e
MK
188832009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18884
18885 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18886
9ac544ce 188872009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18888 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18889
18890 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18891 * configure.ac: Check for __mcoldfire__ and set
18892 gdb_cv_m68k_is_coldfire.
18893 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18894 reg-cf.o and reg-m68k.o.
18895 * configure: Regenerated.
18896
fd7dd3e6
PA
188972009-11-16 Pedro Alves <pedro@codesourcery.com>
18898
18899 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18900 Pass it to thread_db_free.
18901 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18902 proper `detaching' argument to linux_remove_process.
18903 * linux-low.h (thread_db_free): Add `detaching' parameter.
18904 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18905 to thread_db_free.
18906 (thread_db_free): Add `detaching' parameter. Only
18907 call td_ta_clear_event if detaching from process.
18908
75aa492e
MK
189092009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18910
18911 * thread-db.c (thread_db_free): Fix typo.
18912
21e1bee4
PP
189132009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18914
18915 PR gdb/10838
18916 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18917
8838b45e
NS
189182009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18919
18920 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18921 with an i686 compiler.
18922 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18923 needed.
18924 * configure: Rebuilt.
18925
8a35fb51
SL
189262009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18927
18928 PR gdb/10783
18929
18930 * server.c (handle_search_memory_1): Correct read_addr initialization
18931 in loop for searching subsequent chunks.
18932
96f15937
PP
189332009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18934
18935 * configure.ac: New --with-libthread-db option.
18936 * thread-db.c: Allow direct dependence on libthread_db.
18937 (thread_db_free): Adjust.
18938 * config.in: Regenerate.
18939 * configure: Likewise.
889bf7c5 18940
5f7d1694
PP
189412009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18942
18943 PR gdb/10757
18944 * thread-db.c (attach_thread): New function.
18945 (maybe_attach_thread): Return success/failure.
18946 (find_new_threads_callback): Adjust.
889bf7c5
PA
18947 (thread_db_find_new_threads): Loop until no new threads.
18948
88e3b899
PA
189492009-10-13 Pedro Alves <pedro@codesourcery.com>
18950
18951 * proc-service.c (ps_lgetregs): Formatting.
18952
cdbfd419
PP
189532009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18954
18955 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18956 * configure.ac: Adjust.
18957 * linux-low.h (struct process_info_private): Move members to struct
18958 thread_db.
18959 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18960 * linux-low.c (linux_remove_process): Adjust.
18961 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18962 * server.c (handle_query): Move code ...
18963 (handle_monitor_command): ... here. New function.
18964 * target.h (struct target_ops): New member.
18965 * thread-db.c (struct thread_db): New.
18966 (libthread_db_search_path): New variable.
18967 (thread_db_create_event, thread_db_enable_reporting)
18968 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18969 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18970 (try_thread_db_load_1, dladdr_to_soname): New functions.
18971 (try_thread_db_load, thread_db_load_search): New functions.
18972 (thread_db_init): Search for libthread_db.
18973 (thread_db_free): New function.
18974 (thread_db_handle_monitor_command): Likewise.
18975 * config.in: Regenerate.
18976 * configure: Regenerate.
889bf7c5 18977
4168d2d6
UW
189782009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18979
18980 * spu-low.c (spu_kill): Wait for inferior to terminate.
18981 Call clear_inferiors.
18982 (spu_detach): Call clear_inferiors.
18983
81ecdfbb
RW
189842009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18985
18986 * aclocal.m4: Regenerate.
18987 * config.in: Likewise.
18988 * configure: Likewise.
18989
0b9ff2c0
UW
189902009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18991
18992 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18993 (parse_spufs_run): New function.
18994 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18995 (ppc_breakpoint_at): Handle SPU breakpoints.
18996
efcbbd14
UW
189972009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18998
18999 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19000 (SPUFS_MAGIC): Define.
19001 (spu_enumerate_spu_ids): New function.
19002 (linux_qxfer_spu): New function.
19003 (linux_target_ops): Install linux_qxfer_spu.
19004
f4d9bade
UW
190052009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19006
19007 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19008 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19009 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19010 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19011 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19012 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19013 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19014 (init_registers_powerpc_cell32l): Add prototype.
19015 (init_registers_powerpc_cell64l): Likewise.
19016 (ppc_arch_setup): Detect Cell/B.E. architecture.
19017
96e946ca
RW
190182009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19019
19020 * Makefile.in (datarootdir): New variable.
19021
58d6951d
DJ
190222009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19023
19024 * linux-low.c (linux_write_memory): Update debugging output.
19025 * Makefile.in (clean): Add new descriptions.
19026 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19027 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19028 * configure.srv: Add new files for arm*-*-linux*.
19029 * linux-arm-low.c: Add new declarations.
19030 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19031 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19032 (HWCAP_VFPv3D16): New.
19033 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19034 instead of __IWMMXT__.
19035 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19036 (arm_arch_setup): New.
19037 (target_regsets): Remove #ifdef. Add VFP regset.
19038 (the_low_target): Use arm_arch_setup.
19039
12b42a12
DJ
190402009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19041
19042 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19043 the main thread again.
19044
ac8c974e
AR
190452009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19046
19047 Adding Neutrino gdbserver.
19048 * configure: Regenerated.
19049 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19050 * configure.srv (i[34567]86-*-nto*): New target.
19051 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19052 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19053 (nto_comctrl) [__QNX__]: New function.
19054 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19055
4424e0c3 190562009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19057
19058 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19059 srv_tgtobj.
19060
912cf4ba
PA
190612009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19062 Pedro Alves <pedro@codesourcery.com>
19063
19064 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19065 don't support CONTEXT_EXTENDED_REGISTERS.
19066 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19067 (the_low_target): Install them.
19068 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19069 failing with ERROR_PIPE_NOT_CONNECTED.
19070
aa5ca48f
DE
190712009-06-30 Doug Evans <dje@google.com>
19072 Pierre Muller <muller@ics.u-strasbg.fr>
19073
19074 Add h/w watchpoint support to x86-linux, win32-i386.
19075 * Makefile.in (SFILES): Add i386-low.c
19076 (i386_low_h): Define.
19077 (i386-low.o): Add dependencies.
19078 (linux-x86-low.o): Add i386-low.h dependency.
19079 (win32-i386-low.o): Ditto.
19080 * i386-low.c: New file.
19081 * i386-low.h: New file.
19082 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19083 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19084 * linux-low.c (linux_add_process): Initialize arch_private.
19085 (linux_remove_process): Free arch_private.
19086 (add_lwp): Initialize arch_private.
19087 (delete_lwp): Free arch_private.
19088 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19089 provided.
19090 * linux-low.h (process_info_private): New member arch_private.
19091 (lwp_info): New member arch_private.
19092 (linux_target_ops): New members new_process, new_thread,
19093 prepare_to_resume.
19094 (ptid_of): New macro.
19095 * linux-x86-low.c: Include stddef.h, i386-low.h.
19096 (arch_process_info): New struct.
19097 (arch_lwp_info): New struct.
19098 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19099 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19100 (i386_dr_low_get_status): New function.
19101 (x86_insert_point, x86_remove_point): New functions.
19102 (x86_stopped_by_watchpoint): New function.
19103 (x86_stopped_data_address): New function.
19104 (x86_linux_new_process, x86_linux_new_thread): New functions.
19105 (x86_linux_prepare_to_resume): New function.
19106 (the_low_target): Add entries for insert_point, remove_point,
19107 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19108 prepare_to_resume.
19109 * server.c (debug_hw_points): New global.
19110 (monitor_show_help): Document set debug-hw-points.
19111 (handle_query): Process "set debug-hw-points".
19112 * server.h (debug_hw_points): Declare.
19113 (paddress): Declare.
19114 * utils.c (NUMCELLS, CELLSIZE): New macros.
19115 (get_sell, xsnprintf, paddress): New functions.
19116 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19117 remove_point, stopped_by_watchpoint, stopped_data_address.
19118 * win32-i386-low.c: Include i386-low.h.
19119 (debug_reg_state): Replaces dr.
19120 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19121 (i386_dr_low_get_status): New function.
19122 (i386_insert_point, i386_remove_point): New functions.
19123 (i386_stopped_by_watchpoint): New function.
19124 (i386_stopped_data_address): New function.
19125 (i386_initial_stuff): Update.
19126 (get_thread_context,set_thread_context,i386_thread_added): Update.
19127 (the_low_target): Add entries for insert_point,
19128 remove_point, stopped_by_watchpoint, stopped_data_address.
19129 * win32-low.c (win32_insert_watchpoint): New function.
19130 (win32_remove_watchpoint): New function.
19131 (win32_stopped_by_watchpoint): New function.
19132 (win32_stopped_data_address): New function.
19133 (win32_target_ops): Add entries for insert_watchpoint,
19134 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19135 * win32-low.h (win32_target_ops): New members insert_point,
19136 remove_point, stopped_by_watchpoint, stopped_data_address.
19137
d993e290
PA
191382009-06-25 Pedro Alves <pedro@codesourcery.com>
19139
19140 * server.c (process_serial_event): Re-return unsupported, not
19141 error, if the type isn't recognized. Re-allow supporting only
19142 insert or remove packets. Also call require_running for
19143 breakpoints. Add missing break statement to default case. Tidy.
19144 * target.h (struct target_ops): Rename insert_watchpoint to
19145 insert_point, and remove_watchpoint to remove_point.
19146
19147 * linux-low.h (struct linux_target_ops): Likewise.
19148 * linux-low.c (linux_insert_watchpoint): Rename to ...
19149 (linux_insert_point): ... this. Adjust.
19150 (linux_remove_watchpoint): Rename to ...
19151 (linux_remove_point): ... this. Adjust.
19152 (linux_target_ops): Adjust.
19153 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19154 (cris_insert_point): ... this.
19155 (cris_remove_watchpoint): Rename to ...
19156 (cris_remove_point): ... this.
19157 (the_low_target): Adjust.
19158
0f54c268
PM
191592009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19160
19161 * server.c (handle_v_kill): Pass signal_pid to
19162 kill_inferior if multi_process is zero.
19163
c6314022
AR
191642009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19165
19166 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19167 * target.h (target_ops): Comment for *_watchpoint to make it clear
19168 the functions can get types '0' and '1'.
19169
4463ce24
AR
191702009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19171
19172 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19173 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19174 * regcache.c (get_regcache): Likewise.
19175 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19176 * win32-low.c (child_fetch_inferior_registers): Remove check for
19177 regno 0.
19178
cf8fd78b
PA
191792009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19180 Pedro Alves <pedro@codesourcery.com>
19181
19182 * target.h (struct target_ops) <supports_multi_process>: New
19183 callback.
19184 (target_supports_multi_process): New.
19185 * server.c (handle_query): Even if GDB reports support, only
19186 enable multi-process if the target also supports it. Report
19187 multi-process support only if the target backend supports it.
19188 * linux-low.c (linux_supports_multi_process): New function.
19189 (linux_target_ops): Install it as target_supports_multi_process
19190 callback.
19191
47c0c975
DE
191922009-05-24 Doug Evans <dje@google.com>
19193
e09875d4
DE
19194 Global renaming of find_thread_pid to find_thread_ptid.
19195 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19196 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19197 All callers updated.
19198
e27d73f6
DE
19199 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19200 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19201 directly.
19202
47c0c975
DE
19203 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19204 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19205 (linux_resume_one_lwp): Ditto.
19206
2acc282a
DE
192072009-05-23 Doug Evans <dje@google.com>
19208
19209 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19210 from struct inferior_list_entry * to struct lwp_info *.
19211 All callers updated.
19212
9f1036c1
DE
192132009-05-13 Doug Evans <dje@google.com>
19214
19215 * linux-x86-low.c: Don't include assert.h.
19216 (x86_siginfo_fixup): Use fatal, not assert.
19217 (x86_arch_setup): Fix comment.
19218
d0722149
DE
192192009-05-12 Doug Evans <dje@google.com>
19220
19221 Biarch support for i386/amd64 gdbserver.
19222 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19223 Add linux-x86-low.c.
19224 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19225 (linux-x86-low.o): Add.
19226 * linux-x86-64-low.c: Delete.
19227 * linux-i386-low.c: Delete.
19228 * linux-x86-low.c: New file.
19229 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19230 linux-x86-low.o.
19231 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19232 linux-x86-low.o.
19233 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19234 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19235 (linux_child_pid_to_exec_file): New function.
19236 (elf_64_header_p, elf_64_file_p): New functions.
19237 (siginfo_fixup): New function.
19238 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19239 give target a chance to convert layout.
19240 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19241 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19242
fdeb2a12
DE
192432009-05-07 Doug Evans <dje@google.com>
19244
19245 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19246 (regsets_store_inferior_registers): Ditto.
19247
a6dbe5df
PA
192482009-05-06 Pedro Alves <pedro@codesourcery.com>
19249
19250 PR server/10048
19251
19252 * linux-low.c (must_set_ptrace_flags): Delete.
19253 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19254 of the global.
19255 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19256 `lwp->must_set_ptrace_flags' instead.
ba42693b 19257 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19258 (linux_wait_1): ... not here.
19259
5091eb23
DE
192602009-04-30 Doug Evans <dje@google.com>
19261
9f767825
DE
19262 * inferiors.c (started_inferior_callback): New function.
19263 (attached_inferior_callback): New function.
19264 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19265 * server.c (print_started_pid, print_attached_pid): New functions.
19266 (detach_or_kill_for_exit): New function.
19267 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19268 * server.h (have_started_inferiors_p): Declare.
19269 (have_attached_inferiors_p): Declare.
19270
5091eb23
DE
19271 * inferiors.c (remove_process): Fix memory leak, free process.
19272 * linux-low.c (linux_remove_process): New function.
19273 (linux_kill): Call it instead of remove_process.
19274 (linux_detach, linux_wait_1): Ditto.
19275
155c8968
PA
192762009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19277
19278 * configure.srv: Add x86 Windows CE target.
19279
7fe519cb
UW
192802009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19281
19282 * inferiors.c (get_thread_process): Make global.
19283 * server.h (get_thread_process): Add prototype.
19284 * thread-db.c (find_one_thread): Use get_thread_process
19285 instead of current_process.
19286 (thread_db_get_tls_address): Do not crash if called when
19287 thread layer is not yet initialized.
19288
5472f405
UW
192892009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19290
19291 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19292 * spu-low.c (current_tid): Rename to ...
19293 (current_ptid): ... this.
19294 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19295 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19296 ptid_get_lwp (current_ptid) instead of current_tid.
19297 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19298 instead of current_tid. Use find_process_pid to verify pid
19299 argument is valid. Pass proper argument to remove_process.
19300 (spu_thread_alive): Compare current_ptid instead of current_tid.
19301 (spu_resume): Likewise.
19302
55ac2b99
PA
193032009-04-02 Pedro Alves <pedro@codesourcery.com>
19304
19305 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19306 variable.
19307
95954743
PA
193082009-04-01 Pedro Alves <pedro@codesourcery.com>
19309
19310 Implement the multiprocess extensions, and add linux multiprocess
19311 support.
19312
19313 * server.h (ULONGEST): Declare.
19314 (struct ptid, ptid_t): New.
19315 (minus_one_ptid, null_ptid): Declare.
19316 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19317 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19318 (struct inferior_list_entry): Change `id' type from unsigned from
19319 to ptid_t.
19320 (struct sym_cache, struct breakpoint, struct
19321 process_info_private): Forward declare.
19322 (struct process_info): Declare.
19323 (current_process): Declare.
19324 (all_processes): Declare.
19325 (initialize_inferiors): Declare.
19326 (add_thread): Adjust to use ptid_t.
19327 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19328 (add_process, remove_process, find_thread_pid): Declare.
19329 (find_inferior_id): Adjust to use ptid_t.
19330 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19331 (multi_process): Declare.
19332 (push_event): Adjust to use ptid_t.
19333 (read_ptid, write_ptid): Declare.
19334 (prepare_resume_reply): Adjust to use ptid_t.
19335 (clear_symbol_cache): Declare.
19336 * inferiors.c (all_processes): New.
19337 (null_ptid, minus_one_ptid): New.
19338 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19339 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19340 (add_thread): Change unsigned long to ptid. Remove gdb_id
19341 parameter. Adjust.
19342 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19343 (gdb_id_to_thread): Rename to ...
19344 (find_thread_pid): ... this. Change unsigned long to ptid.
19345 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19346 (loaded_dll, pull_pid_from_list): Adjust.
19347 (add_process, remove_process, find_process_pid)
19348 (get_thread_process, current_process, initialize_inferiors): New.
19349 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19350 (struct target_waitstatus) <related_pid>: Ditto.
19351 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19352 return type to int.
19353 (struct target_ops) <join>: Add `pid' argument.
19354 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19355 (struct target_ops) <wait>: Add `ptid' field. Change return type
19356 to ptid.
19357 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19358 (mywait): Add `ptid' argument. Change return type to ptid_t.
19359 (target_pid_to_str): Declare.
19360 * target.c (set_desired_inferior): Adjust to use ptids.
19361 (mywait): Add new `ptid' argument. Adjust.
19362 (target_pid_to_str): New.
19363 * mem-break.h (free_all_breakpoints): Declare.
19364 * mem-break.c (breakpoints): Delelete.
19365 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19366 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19367 to use per-process breakpoint list.
19368 (free_all_breakpoints): New.
19369 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19370 (symbol_cache, all_symbols_looked_up): Delete.
19371 (hexchars): New.
19372 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19373 read_ptid): New.
19374 (prepare_resume_reply): Change ptid argument's type from unsigned
19375 long to ptid_t. Adjust. Implement W;process and X;process.
19376 (free_sym_cache, clear_symbol_cache): New.
19377 (look_up_one_symbol): Adjust to per-process symbol cache. *
19378 * server.c (cont_thread, general_thread, step_thread): Change type
19379 to ptid_t.
19380 (attached): Delete.
19381 (multi_process): New.
19382 (last_ptid): Change type to ptid_t.
19383 (struct vstop_notif) <ptid>: Change type to ptid_t.
19384 (queue_stop_reply, push_event): Change `ptid' argument's type to
19385 ptid_t.
19386 (discard_queued_stop_replies): Add `pid' argument.
19387 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19388 changes. Don't reference the `attached' global.
19389 (attach_inferior): Adjust to mywait interface changes.
19390 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19391 features. Handle and report "multiprocess+". Handle
19392 "qAttached:PID".
19393 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19394 changes.
19395 (handle_v_kill): New.
19396 (handle_v_stopped): Adjust to use target_pid_to_str.
19397 (handle_v_requests): Allow multiple attaches and runs when
19398 multiprocess extensions are in effect. Handle "vKill".
19399 (myresume): Adjust to use ptids.
19400 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19401 (handle_status): Adjust to discard_queued_stop_replies interface
19402 change.
19403 (first_thread_of, kill_inferior_callback)
19404 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19405 (main): Call initialize_inferiors. Adjust to use ptids, killing
19406 and detaching from all inferiors. Handle multiprocess packet
19407 variants.
19408 * linux-low.h: Include gdb_proc_service.h.
19409 (struct process_info_private): New.
19410 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19411 <lwpid_of>: Use ptid_get_lwp.
19412 (get_lwp_thread): Adjust.
19413 (struct lwp_info): Add `dead' member.
19414 (find_lwp_pid): Declare.
19415 * linux-low.c (thread_db_active): Delete.
19416 (new_inferior): Adjust comment.
19417 (inferior_pid): Delete.
19418 (linux_add_process): New.
19419 (handle_extended_wait): Adjust.
19420 (add_lwp): Change unsigned long to ptid.
19421 (linux_create_inferior): Add process to processes table. Adjust
19422 to use ptids. Don't set new_inferior here.
19423 (linux_attach_lwp): Rename to ...
19424 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19425 it. Adjust to use ptids.
19426 (linux_attach_lwp): New.
19427 (linux_attach): Add process to processes table. Don't set
19428 new_inferior here.
19429 (struct counter): New.
19430 (second_thread_of_pid_p, last_thread_of_process_p): New.
19431 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19432 multiple processes.
19433 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19434 processes. Remove process from process table.
19435 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19436 to multiple processes.
19437 (any_thread_of): New.
19438 (linux_detach): Add `pid' argument, and handle it. Remove process
19439 from processes table.
19440 (linux_join): Add `pid' argument. Handle it.
19441 (linux_thread_alive): Change unsighed long argument to ptid_t.
19442 Consider dead lwps as not being alive.
19443 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19444 threads we're not interested in.
19445 (same_lwp, find_lwp_pid): New.
19446 (linux_wait_for_lwp): Change `pid' argument's type from int to
19447 ptid_t. Adjust.
19448 (linux_wait_for_event): Rename to ...
19449 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19450 from int to ptid_t. Adjust.
19451 (linux_wait_for_event): New.
19452 (linux_wait_1): Add `ptid' argument. Change return type to
19453 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19454 that exit from the process table.
19455 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19456 Adjust.
19457 (mark_lwp_dead): New.
19458 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19459 stopping all threads, mark its main lwp as dead.
19460 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19461 ptids.
19462 (fetch_register, usr_store_inferior_registers)
19463 (regsets_fetch_inferior_registers)
19464 (regsets_store_inferior_registers, linux_read_memory)
19465 (linux_write_memory): Inline `inferior_pid'.
19466 (linux_look_up_symbols): Adjust to use per-process
19467 `thread_db_active'.
19468 (linux_request_interrupt): Adjust to use ptids.
19469 (linux_read_auxv): Inline `inferior_pid'.
19470 (initialize_low): Don't reference thread_db_active.
19471 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19472 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19473 (ps_getpid): Return the pid of the current inferior.
19474 * thread-db.c (proc_handle, thread_agent): Delete.
19475 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19476 per-process data.
19477 (find_one_thread): Change argument type to ptid_t. Adjust to
19478 per-process data.
19479 (maybe_attach_thread): Adjust to per-process data and ptids.
19480 (thread_db_find_new_threads): Ditto.
19481 (thread_db_init): Ditto.
19482 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19483 processes table. Adjust to use ptids.
19484 (spu_kill, spu_detach): Adjust interface. Remove process from
19485 processes table.
19486 (spu_join, spu_thread_alive): Adjust interface.
19487 (spu_wait): Adjust interface. Remove process from processes
19488 table. Adjust to use ptids.
19489 * win32-low.c (current_inferior_tid): Delete.
19490 (current_inferior_ptid): New.
19491 (debug_event_ptid): New.
19492 (thread_rec): Take a ptid. Adjust.
19493 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19494 (child_delete_thread): Ditto.
19495 (do_initial_child_stuff): Add `attached' argument. Add process to
19496 processes table.
19497 (child_fetch_inferior_registers, child_store_inferior_registers):
19498 Adjust.
19499 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19500 (win32_attach): Pass 1 to do_initial_child_stuff.
19501 (win32_kill): Adjust interface. Remove process from processes
19502 table.
19503 (win32_detach): Ditto.
19504 (win32_join): Adjust interface.
19505 (win32_thread_alive): Take a ptid.
19506 (win32_resume): Adjust to use ptids.
19507 (get_child_debug_event): Ditto.
19508 (win32_wait): Adjust interface. Remove exiting process from
19509 processes table.
19510
bd99dc85
PA
195112009-04-01 Pedro Alves <pedro@codesourcery.com>
19512
19513 Non-stop mode support.
19514
19515 * server.h (non_stop): Declare.
19516 (gdb_client_data, handler_func): Declare.
19517 (delete_file_handler, add_file_handler, start_event_loop):
19518 Declare.
19519 (handle_serial_event, handle_target_event, push_event)
19520 (putpkt_notif): Declare.
19521 * target.h (enum resume_kind): New.
19522 (struct thread_resume): Replace `step' field by `kind' field.
19523 (TARGET_WNOHANG): Define.
19524 (struct target_ops) <wait>: Add `options' argument.
19525 <supports_non_stop, async, start_non_stop>: New fields.
19526 (target_supports_non_stop, target_async): New.
19527 (start_non_stop): Declare.
19528 (mywait): Add `options' argument.
19529 * target.c (mywait): Add `options' argument. Print child exit
19530 notifications here.
19531 (start_non_stop): New.
19532 * server.c (non_stop, own_buf, mem_buf): New globals.
19533 (struct vstop_notif): New.
19534 (notif_queue): New global.
19535 (queue_stop_reply, push_event, discard_queued_stop_replies)
19536 (send_next_stop_reply): New.
19537 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19538 interface changes.
19539 (attach_inferior): In non-stop mode, don't wait for the target
19540 here.
19541 (handle_general_set): Handle QNonStop.
19542 (handle_query): When handling qC, return the current general
19543 thread, instead of the first thread of the list.
19544 (handle_query): If the backend supports non-stop mode, include
19545 QNonStop+ in the qSupported query response.
19546 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19547 and non-stop mode.
19548 (handle_v_attach, handle_v_run): Handle non-stop mode.
19549 (handle_v_stopped): New.
19550 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19551 (myresume): Adjust to use resume_kind. Handle non-stop.
19552 (queue_stop_reply_callback): New.
19553 (handle_status): Handle non-stop mode.
19554 (main): Clear non_stop flag on reconnection. Use the event-loop.
19555 Refactor serial protocol handling from here ...
19556 (process_serial_event): ... to this new function. When GDB
19557 selects any thread, select one here. In non-stop mode, wait until
19558 GDB acks all pending events before exiting.
19559 (handle_serial_event, handle_target_event): New.
19560 * remote-utils.c (remote_open): Install remote_desc in the event
19561 loop.
19562 (remote_close): Remove remote_desc from the event loop.
19563 (putpkt_binary): Rename to...
19564 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19565 (putpkt_binary): New as wrapper around putpkt_binary_1.
19566 (putpkt_notif): New.
19567 (prepare_resume_reply): In non-stop mode, don't change the
19568 general_thread.
19569 * event-loop.c: New.
19570 * Makefile.in (OBJ): Add event-loop.o.
19571 (event-loop.o): New rule.
19572
19573 * linux-low.h (pid_of): Moved here.
19574 (lwpid_of): New.
19575 (get_lwp_thread): Use lwpid_of.
19576 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19577 * linux-low.c (pid_of): Delete.
19578 (inferior_pid): Use lwpid_of.
19579 (linux_event_pipe): New.
19580 (target_is_async_p): New.
19581 (delete_lwp): New.
19582 (handle_extended_wait): Use lwpid_of.
19583 (add_lwp): Don't set lwpid field.
19584 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19585 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19586 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19587 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19588 first. Adjust to linux_wait_for_event interface changes. Use
19589 lwpid_of.
19590 (linux_detach): Don't delete the main lwp here.
19591 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19592 (status_pending_p): Don't consider explicitly suspended lwps.
19593 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19594 pointer. Add OPTIONS argument. Change return type to int. Use
19595 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19596 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19597 pointer. Add status pointer argument. Return a pid instead of a
19598 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19599 changes. In non-stop mode, don't switch to a random thread.
19600 (linux_wait): Rename to...
19601 (linux_wait_1): ... this. Add target_options argument, and handle
19602 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19603 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19604 clean exit and signal exit code. Don't stop all threads in
19605 non-stop mode. In all-stop mode, only stop all threads when
19606 reporting a stop to GDB. Handle explicit thread stop requests.
19607 (async_file_flush, async_file_mark): New.
19608 (linux_wait): New.
19609 (send_sigstop): Use lwpid_of.
19610 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19611 interface changes. In non-stop mode, don't switch to a random
19612 thread.
19613 (linux_resume_one_lwp): Use lwpid_of.
19614 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19615 (linux_resume_one_thread): ... this. Handle resume_stop. In
19616 non-stop mode, don't look for pending flag in all threads.
19617 (resume_status_pending_p): Don't consider explicitly suspended
19618 threads.
19619 (my_waitpid): Reimplement. Emulate __WALL.
19620 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19621 Use lwpid_of.
19622 (sigchld_handler, linux_supports_non_stop, linux_async)
19623 (linux_start_non_stop): New.
19624 (linux_target_ops): Register linux_supports_non_stop, linux_async
19625 and linux_start_non_stop.
19626 (initialize_low): Install SIGCHLD handler.
19627 * thread-db.c (thread_db_create_event, find_one_thread)
19628 (thread_db_get_tls_address): Use lwpid_of.
19629 * win32-low.c (win32_detach): Adjust to use resume_kind.
19630 (win32_wait): Add `options' argument.
19631 * spu-low.c (spu_resume): Adjust to use resume_kind.
19632 (spu_wait): Add `options' argument.
19633
5b1c542e
PA
196342009-04-01 Pedro Alves <pedro@codesourcery.com>
19635
19636 Decouple target code from remote protocol.
19637
19638 * target.h (enum target_waitkind): New.
19639 (struct target_waitstatus): New.
19640 (struct target_ops) <wait>: Return an unsigned long. Take a
19641 target_waitstatus pointer instead of a char pointer.
19642 (mywait): Likewise.
19643 * target.c (mywait): Change prototype to return an unsigned long.
19644 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19645 * server.h (thread_from_wait, old_thread_from_wait): Delete
19646 declarations.
19647 (prepare_resume_reply): Change prototype to take a
19648 target_waitstatus.
19649 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19650 (last_status, last_ptid): New.
19651 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19652 pid instead of a signal.
19653 (attach_inferior): Remove "status" and "signal" parameters.
19654 Adjust.
19655 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19656 not as an address.
19657 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19658 (handle_v_requests, myresume): Remove "status" and "signal"
19659 parameters. Adjust.
19660 (handle_status): New.
19661 (main): Delete local `status'. Adjust.
19662 * remote-utils.c: Include target.h.
19663 (prepare_resume_reply): Change prototype to take a
19664 target_waitstatus. Adjust.
19665
19666 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19667 interface.
19668 * spu-low.c (spu_wait): Adjust.
19669 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19670 Delete.
19671 (win32_wait): Adjust.
19672
2bd7c093
PA
196732009-04-01 Pedro Alves <pedro@codesourcery.com>
19674
19675 * target.h (struct thread_resume): Delete leave_stopped member.
19676 (struct target_ops): Add a `n' argument to the `resume' callback.
19677 * server.c (start_inferior): Adjust.
19678 (handle_v_cont, myresume): Adjust.
19679 * linux-low.c (check_removed_breakpoint): Adjust to resume
19680 interface change, and to removed leave_stopped field.
19681 (resume_ptr): Delete.
19682 (struct thread_resume_array): New.
19683 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19684 resume interface change.
19685 (linux_continue_one_thread, linux_queue_one_thread)
19686 (resume_status_pending_p): Check if the resume field is NULL
19687 instead of checking the leave_stopped member.
19688 (linux_resume): Adjust to the target resume interface change.
19689 * spu-low.c (spu_resume): Adjust to the target resume interface
19690 change.
19691 * win32-low.c (win32_detach, win32_resume): Ditto.
19692
c35fafde
PA
196932009-04-01 Pedro Alves <pedro@codesourcery.com>
19694
19695 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19696 flag.
19697 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19698 pending.
19699 (linux_continue_one_thread): Only preserve the stepping flag if
19700 there's a pending breakpoint.
19701
0a59d50b
PA
197022009-03-31 Pedro Alves <pedro@codesourcery.com>
19703
19704 * server.c (main): After the inferior having exited, call
19705 remote_close before exiting gdbserver.
19706
f04c6d38
TJB
197072009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19708
19709 Fix size of FPSCR in Power 7 processors.
19710 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19711 (PPC_FEATURE_HAS_DFP): New #define.
19712 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19713 size of the FPSCR.
19714
78e5cee6
PA
197152009-03-23 Pedro Alves <pedro@codesourcery.com>
19716
19717 * server.c (handle_query) Whitespace and formatting.
19718
1b3f6016
PA
197192009-03-22 Pedro Alves <pedro@codesourcery.com>
19720
19721 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19722 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19723 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19724 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19725 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19726 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19727 Makefile.in, configure.ac: Fix whitespace throughout.
19728 * configure: Regenerate.
19729
a07b2135
PA
197302009-03-22 Pedro Alves <pedro@codesourcery.com>
19731
19732 * inferiors.c (find_inferior): Make it safe for the callback
19733 function to delete the currently iterated inferior.
19734
67cc2626
PA
197352009-03-22 Pedro Alves <pedro@codesourcery.com>
19736
19737 * Makefile.in (linuw_low_h): Move higher.
19738 (thread-db.o): Depend on $(linux_low_h).
19739
54a0b537
PA
197402009-03-17 Pedro Alves <pedro@codesourcery.com>
19741
19742 Rename "process" to "lwp" throughout.
19743
19744 * linux-low.c (all_processes): Rename to...
19745 (all_lwps): ... this.
19746 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19747 (add_process): Rename to ...
19748 (add_lwp): ... this. Adjust.
19749 (linux_create_inferior): Adjust.
19750 (linux_attach_lwp): Adjust.
19751 (linux_attach): Adjust.
19752 (linux_kill_one_process): Rename to ...
19753 (linux_kill_one_lwp): ... this. Adjust.
19754 (linux_kill): Adjust.
19755 (linux_detach_one_process): Rename to ...
19756 (linux_detach_one_lwp): ... this. Adjust.
19757 (linux_detach): Adjust.
19758 (check_removed_breakpoint): Adjust.
19759 (status_pending_p): Adjust.
19760 (linux_wait_for_process): Rename to ...
19761 (linux_wait_for_lwp): ... this. Adjust.
19762 (linux_wait_for_event): Adjust.
19763 (send_sigstop): Adjust.
19764 (wait_for_sigstop): Adjust.
19765 (stop_all_processes): Rename to ...
19766 (stop_all_lwps): ... this.
19767 (linux_resume_one_process): Rename to ...
19768 (linux_resume_one_lwp): ... this. Adjust.
19769 (linux_set_resume_request, linux_continue_one_thread)
19770 (linux_queue_one_thread, resume_status_pending_p)
19771 (usr_store_inferior_registers, regsets_store_inferior_registers)
19772 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19773 Adjust.
19774 * linux-low.h (get_process): Rename to ...
19775 (get_lwp): ... this. Adjust.
19776 (get_thread_process): Rename to ...
19777 (get_thread_lwp): ... this. Adjust.
19778 (get_process_thread): Rename to ...
19779 (get_lwp_thread): ... this. Adjust.
19780 (struct process_info): Rename to ...
19781 (struct lwp_info): ... this.
19782 (all_processes): Rename to ...
19783 (all_lwps): ... this.
19784 * proc-service.c (ps_lgetregs): Adjust.
19785 * thread-db.c (thread_db_create_event, find_one_thread)
19786 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19787
0b16c5cf
PA
197882009-03-14 Pedro Alves <pedro@codesourcery.com>
19789
19790 * server.c (handle_query): Handle "qAttached".
19791
32de4b9d
NS
197922009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19793
19794 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19795 GPLv3, update license URL.
19796
2aecd87f
DE
197972009-03-01 Doug Evans <dje@google.com>
19798
93efd302 19799 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19800 (server_h): Add gdb_signals.h.
19801 (signals.o): Update.
19802 * server.h (target_signal_from_host,target_signal_to_host_p)
19803 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19804
86b1f9c5
PM
198052009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19806
19807 * remote-utils.c (getpkt): Also generate remote-debug
19808 information if noack_mode is set.
19809
4aa995e1
PA
198102009-02-06 Pedro Alves <pedro@codesourcery.com>
19811
19812 * server.c (handle_query): Report qXfer:siginfo:read and
19813 qXfer:siginfo:write as supported and handle them.
19814 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19815 * linux-low.c (linux_xfer_siginfo): New.
19816 (linux_target_ops): Set it.
19817
62709adf
PA
198182009-01-26 Pedro Alves <pedro@codesourcery.com>
19819
19820 * server.c (gdbserver_usage): Mention --remote-debug.
19821 (main): Accept '--remote-debug' switch.
19822
aef93bd7
DE
198232009-01-18 Doug Evans <dje@google.com>
19824
19825 * regcache.c (new_register_cache): No need to check result of xcalloc.
19826 * server.c (handle_search_memory): Back out calls to xmalloc,
19827 result is checked and error is returned to user upon failure.
19828 (handle_query): Ditto. Add more checks for result of malloc.
19829 (handle_v_cont): Check result of malloc, report error back to
19830 user upon failure.
19831 (handle_v_run): Ditto. Call freeargv.
19832 * server.h (freeargv): Declare.
19833 * utils.c (freeargv): New fn.
19834
54363045
DE
198352009-01-15 Doug Evans <dje@google.com>
19836
f626972c
DE
19837 * gdbreplay.c (perror_with_name): Make arg const char *.
19838 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19839 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19840 * utils.c (perror_with_name): Make arg const char *.
54363045 19841
18aae699
PA
198422009-01-14 Pedro Alves <pedro@codesourcery.com>
19843
19844 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19845 when handling a EXIT_PROCESS_DEBUG_EVENT.
19846
ff703abe
JB
198472009-01-06 Joel Brobecker <brobecker@adacore.com>
19848
19849 * gdbreplay.c (gdbreplay_version): Update copyright year.
19850 * server.c (gdbserver_version): Likewise.
19851
f21cc1a2 198522009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19853
19854 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19855 (handle_extended_wait): Improve comment.
0e21c1ec 19856
bca929d3
DE
198572008-12-13 Doug Evans <dje@google.com>
19858
19859 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19860 * server.h (ATTR_MALLOC): New macro.
19861 (xmalloc,xcalloc,xstrdup): Declare.
19862 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19863 * inferiors.c: Ditto.
19864 * linux-low.c: Ditto.
19865 * mem-break.c: Ditto.
19866 * regcache.c: Ditto.
19867 * remote-utils.c: Ditto.
19868 * server.c: Ditto.
19869 * target.c: Ditto.
19870 * win32-low.c: Ditto.
19871
97438e3f
DE
198722008-12-12 Doug Evans <dje@google.com>
19873
896c7fbb
DE
19874 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19875 in debugging printf.
19876
97438e3f
DE
19877 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19878
e3b886f8
DE
198792008-12-09 Doug Evans <dje@google.com>
19880
19881 * linux-low.h (struct process_info): Delete member tid, unused.
19882 * thread-db.c (find_one_thread): Update.
19883 (maybe_attach_thread): Update.
19884
07e059b5
VP
198852008-12-02 Pedro Alves <pedro@codesourcery.com>
19886
889bf7c5
PA
19887 * target.h (struct target_ops): Add qxfer_osdata member.
19888 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19889 and dirent.h.
19890 (linux_qxfer_osdata): New functions.
19891 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19892 callback.
19893 * server.c (handle_query): Handle "qXfer:osdata:read:".
19894 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19895 (buffer_xml_printf): New functions.
19896 * server.h (struct buffer): New.
19897 (buffer_grow_str, buffer_grow_str0): New macros.
19898 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19899 (buffer_xml_printf): Declare.
07e059b5 19900
4cab47ab
DE
199012008-11-24 Doug Evans <dje@google.com>
19902
19903 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19904
f142445f
DJ
199052008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19906
19907 * server.c (handle_v_run): Always use the supplied argument list.
19908
d0107bb6 199092008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19910
d0107bb6
BW
19911 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19912 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19913
2c4ad781
TJB
199142008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19915
19916 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19917 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19918 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19919 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19920 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19921 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19922 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19923 XML target descriptions.
19924 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19925 when inferior is running on an ISA 2.05 or later processor. Add
19926 special case to return offset for full 64-bit slot of FPSCR when
19927 in 32-bits.
19928
dfb64f85
DJ
199292008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19930
19931 * Makefile.in (SFILES, clean): Added sparc64 files.
19932 (reg-sparc64.o, reg-sparc64.c): New.
19933 * configure.srv (sparc*-*-linux*): New configuration.
19934 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19935 syscall arguments for SPARC.
19936 (regsets_store_inferior_registers): Likewise.
19937 * linux-sparc-low.c: New file.
19938
66b6e1dd
DE
199392008-10-21 Doug Evans <dje@google.com>
19940
19941 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19942 (READLINE_DIR,READLINE_DEP): Delete.
19943 (INTERNAL_CFLAGS): Update.
19944 (LINTFLAGS): Update.
19945
9b710a42
PA
199462008-10-10 Pedro Alves <pedro@codesourcery.com>
19947
19948 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19949 whole argv from the last run, not just argv[0].
19950
5822d809
PA
199512008-09-08 Pedro Alves <pedro@codesourcery.com>
19952
19953 * regcache.c (new_register_cache): Return NULL if the register
19954 cache size isn't known yet.
19955 (free_register_cache): Avoid dereferencing a NULL regcache.
19956
74aac56f
DJ
199572008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19958
19959 * configure.srv: Merge MIPS and MIPS64.
19960
400b20f5
MR
199612008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19962
19963 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19964
677c5bb1
LM
199652008-08-18 Luis Machado <luisgpm@br.ibm.com>
19966
19967 * Makefile.in: Add required vsx dependencies.
19968
19969 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19970 Declare init_registers_powerpc_vsx32l.
19971 Declare init_registers_powerpc_vsx64l.
19972 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19973 (ppc_arch_setup): Check for VSX in hwcap.
19974 (ppc_fill_vsxregset): New function.
19975 (ppc_store_vsxregset): New function.
19976 Add new VSX entry in regset_info target_regsets.
19977
19978 * configure.srv: Add new VSX dependencies.
19979
a6f3e723
SL
199802008-08-12 Pedro Alves <pedro@codesourcery.com>
19981
19982 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19983 (remote_open): Set or clear transport_is_reliable.
19984 (putpkt_binary): Don't expect acks in noack mode.
19985 (getpkt): Don't send ack/nac in noack mode.
19986 * server.c (handle_general_set): Handle QStartNoAckMode.
19987 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19988 qSupported.
19989 (main): Reset noack_mode on every connection.
19990 * server.h (noack_mode): Declare.
19991
a417dc56
RW
199922008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19993
19994 * Makefile.in (GDBREPLAY_OBS): New variable.
19995 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19996
3221518c
UW
199972008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19998 Daniel Jacobowitz <dan@codesourcery.com>
19999
20000 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20001 (usr_store_inferior_registers): Likewise.
20002 (regsets_store_inferior_registers): Likewise.
20003
ec56be1b
PA
200042008-07-31 Rolf Jansen <rj@surtec.com>
20005 Pedro Alves <pedro@codesourcery.com>
20006
20007 * configure.ac: Check for memmem declaration.
20008 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20009 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20010 (disable_packet_qfThreadInfo): Unconditionally compile.
20011 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20012 * configure, config.in: Regenerate.
20013
2fe5e3ff
DE
200142008-07-28 Doug Kwan <dougkwan@google.com>
20015
20016 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20017 (linux_write_memory): Remove declaration of errno.
20018
836acd6d
UW
200192008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20020
20021 * linux-low.c (handle_extended_wait): Do not use "status"
20022 variable uninitialized.
20023
aeba519e
PA
200242008-07-07 Pedro Alves <pedro@codesourcery.com>
20025
20026 * server.c (handle_v_attach): Inhibit reporting dll changes.
20027
db42f210
PA
200282008-06-27 Pedro Alves <pedro@codesourcery.com>
20029
20030 * remote-utils.c (prepare_resume_reply): If requested, don't
20031 output "thread:TID" in the T stop reply.
20032
20033 * server.c (disable_packet_vCont, disable_packet_Tthread)
20034 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20035 (handle_query): If requested, disable support for qC, qfThreadInfo
20036 and qsThreadInfo.
20037 (handle_v_requests): If requested, disable support for vCont.
20038 (gdbserver_show_disableable): New.
20039 (main): Handle --disable-packet and --disable-packet=LIST.
20040
20041 * server.h (disable_packet_vCont, disable_packet_Tthread)
20042 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20043
8e4c5421
CD
200442008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20045
20046 * server.c (gdbserver_usage): Mention --version.
20047
6e23a804
DJ
200482008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20049
20050 * Makefile.in (gdbreplay.o): New rule.
20051
90aa6a40
JM
200522008-06-06 Joseph Myers <joseph@codesourcery.com>
20053
20054 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20055 message, not gdbserver.
20056
c16158bc 200572008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20058 Nathan Sidwell <nathan@codesourcery.com>
20059 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20060
20061 * acinclude.m4: Include ../../config/acx.m4.
20062 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20063 * configure, config.in: Regenerate.
20064 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20065 * server.c (gdbserver_version): Print PKGVERSION.
20066 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20067 (main): Adjust gdbserver_usage calls.
20068 * gdbreplay.c (version, host_name): Add declarations.
20069 (gdbreplay_version, gdbreplay_usage): New.
20070 (main): Accept --version and --help options.
20071
aeb75bf5
DJ
200722008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20073
20074 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20075 (arm_breakpoint_at): Handle Thumb.
20076 (the_low_target): Add comment.
20077
76b233dd
UW
200782008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20079
20080 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20081
08388c79
DE
200822008-05-09 Doug Evans <dje@google.com>
20083
a3c83fae
DE
20084 * server.h (decode_search_memory_packet): Declare.
20085 * remote-utils.c (decode_search_memory_packet): New fn.
20086 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20087 (handle_search_memory): New fn.
20088 (handle_query): Process qSearch:memory packets.
20089
bb9c3d36
UW
200902008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20091
20092 * regcache.c (registers_length): Remove.
20093 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20094 full register packet.
20095 * regcache.h (registers_length): Remove prototype.
20096 * server.h (PBUFSIZ): Define to 16384.
20097
7284e1be
UW
200982008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20099
20100 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20101 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20102 powerpc-64l.o, and powerpc-altivec64l.o.
20103 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20104 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20105 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20106 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20107 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20108 to srv_xmlfiles.
20109
20110 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20111 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20112 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20113 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20114 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20115 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20116 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20117 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20118 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20119 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20120 (clean): Update.
20121
20122 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20123 (init_registers_powerpc_32l): ... this new prototype.
20124 (init_registers_powerpc_32): Remove, replace by ...
20125 (init_registers_powerpc_altivec32l): ... this new prototype.
20126 (init_registers_powerpc_e500): Remove, replace by ...
20127 (init_registers_powerpc_e500l): ... this new prototype.
20128 (init_registers_ppc64): Remove, replace by ...
20129 (init_registers_powerpc_64l): ... this new prototype.
20130 (init_registers_powerpc_64): Remove, replace by ...
20131 (init_registers_powerpc_altivec64l): ... this new prototype.
20132 (ppc_num_regs): Set to 73.
20133 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20134 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20135 (ppc_cannot_store_register): Handle orig_r3 and trap.
20136 (ppc_arch_setup): Update init_registers_... calls.
20137 (ppc_fill_gregset): Handle orig_r3 and trap.
20138
20139 * inferiors.c (clear_inferiors): Reset current_inferior.
20140
fdc59709
PB
201412008-04-23 Paolo Bonzini <bonzini@gnu.org>
20142
889bf7c5
PA
20143 * acinclude.m4: Add override.m4.
20144 * configure: Regenerate.
fdc59709 20145
c9b2f845
UW
201462008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20147
20148 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20149 initial call to init_register_ppc64.
20150
550512b8
UW
201512008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20152
43aaf8b6
PA
20153 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20154 single powerpc*-*-linux* case.
550512b8
UW
20155 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20156
b6430ec3
UW
201572008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20158
20159 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20160 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20161 from reg_xmlfiles.
20162 * linux-ppc-low.c: Include <elf.h>.
20163 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20164 (ppc_hwcap): New global variable.
20165 (ppc_regmap): Remove __SPE__ #ifdef sections.
20166 (ppc_regmap_e500): New global variable.
20167 (ppc_cannot_store_register): Update __SPE__ special case.
20168 (ppc_get_hwcap): New function.
20169 (ppc_arch_setup): Use it to determine whether inferior supports
20170 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20171 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20172 Do not access registers if target does not support AltiVec.
20173 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20174 Do not access registers if target does not support SPE.
20175 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20176
52fa2412
UW
201772008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20178
20179 * linux-low.c (disabled_regsets, num_regsets): New.
20180 (use_regsets_p): Delete.
20181 (linux_wait_for_process): Clear disabled_regsets.
20182 (regsets_fetch_inferior_registers): Check and set it.
20183 (regsets_store_inferior_registers): Likewise.
20184 (linux_fetch_registers, linux_store_registers): Do not use
20185 use_regsets_p.
20186 (initialize_low): Allocate disabled_regsets.
20187
e28b3332
DJ
201882008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20189
20190 * Makefile.in (LIBOBJS): New.
20191 (OBS): Use LIBOBJS.
20192 (memmem.o): New rule.
20193 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20194 * configure: Regenerated.
20195
4536995d
UW
201962008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20197
20198 * server.c (handle_query): Never return "unsupported" for
20199 qXfer:features:read queries.
20200
221c031f
UW
202012008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20202
20203 * server.c (get_features_xml): Fix inverted condition.
20204 (handle_query): Always support qXfer:feature:read.
20205
ccd213ac
DJ
202062008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20207
20208 * server.c (wrapper_argv): New.
20209 (start_inferior): Handle wrapper_argv. If set, expect an extra
20210 trap.
20211 (gdbserver_usage): Document --wrapper.
20212 (main): Parse --wrapper.
20213
6fe305f7
UW
202142008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20215
20216 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20217 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20218 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20219 (ppc_set_pc): Likewise.
20220 (ppc_arch_setup): New function.
20221 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20222 of collect_register.
889bf7c5 20223 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20224
5b0a002e
UW
202252008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20226
20227 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20228 instead of linux-ppc64-low.o.
20229 * linux-ppc64-low.c: Remove file.
20230 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20231 (linux-ppc64-low.o): Remove rule.
20232
20233 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20234 (init_registers_powerpc_64): Likewise.
20235 (ppc_regmap): Conditionally define depending on __powerpc64__.
20236 (ppc_cannot_store_register): Do not special-case "fpscr" when
20237 compiled on __powerpc64__.
20238 (ppc_collect_ptrace_register): New function.
20239 (ppc_supply_ptrace_register): New function.
20240 (ppc_breakpoint): Change type to "unsigned int".
20241 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20242 (the_low_target): Conditionally provide initializers for the
889bf7c5 20243 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20244 collect_ptrace_register and supply_ptrace_register members.
20245
9b4b61c8
UW
202462008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20247
20248 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20249 * server.c (gdbserver_xmltarget): Define.
20250 (get_features_xml): Use it to replace "target.xml" and arch_string.
20251
20252 * configure.srv: Remove srv_xmltarget. Add XML files that were
20253 mentioned there to srv_xmlfiles instead. Remove conditional tests
20254 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20255 srv_xmlfiles and srv_regobj to include all possible choices.
20256 * configure.ac (srv_xmltarget): Remove.
20257 (srv_xmlfiles): Do not add "target.xml".
20258 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20259 checks for supplementary target information.
20260 * configure: Regenerate.
20261 * Makefile.in (XML_TARGET): Remove.
20262 (target.xml): Remove rule.
20263 (clean): Do not clean up target.xml.
20264 (.PRECIOUS): Do not mention target.xml.
20265
20266 * target.h (struct target_ops): Remove arch_string member.
20267 * linux-low.c (linux_arch_string): Remove.
20268 (linux_target_ops): Remove arch_string initializer.
20269 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20270 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20271 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20272 * spu-low.c (spu_arch_string): Remove.
20273 (spu_target_ops): Remove arch_string initializer.
20274 * win32-low.c (win32_arch_string): Remove.
20275 (win32_target_ops): Remove arch_string initializer.
20276 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20277 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20278 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20279
ee1a7ae4
UW
202802008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20281
20282 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20283 by collect_ptrace_register and supply_ptrace_register hooks.
20284 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20285 instead of checking for the_low_target.left_pad_xfer.
20286 (usr_store_inferior_registers): Use collect_ptrace_register callback
20287 instead of checking for the_low_target.left_pad_xfer.
20288
20289 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20290 (s390_supply_ptrace_register): Likewise.
20291 (s390_fill_gregset): Call s390_collect_ptrace_register.
20292 (the_low_target): Update.
20293
20294 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20295 (ppc_supply_ptrace_register): Likewise.
20296 (the_low_target): Update.
20297
20298 * linux-i386-low.c (the_low_target): Update.
20299 * linux-x86-64-low.c (the_low_target): Update.
20300
d61ddec4
UW
203012008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20302
20303 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20304 reg-s390.o and reg-s390x.o.
20305
20306 * linux-low.c (new_inferior): New global variable.
20307 (linux_create_inferior, linux_attach): Set it.
20308 (linux_wait_for_process): Call the_low_target.arch_setup after the
20309 target has stopped for the first time.
20310 (initialize_low): Do not call the_low_target.arch_setup.
20311
20312 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20313 (s390_set_pc): Likewise.
20314 (s390_arch_setup): New function.
20315 (the_low_target): Use s390_arch_setup as arch_setup routine.
20316
20317 * regcache.c (realloc_register_cache): New function.
20318 (set_register_cache): Call it for each existing regcache.
20319
d05b4ac3
UW
203202008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20321
20322 * server.h (init_registers): Remove prototype.
20323
20324 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20325 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20326 instead of init_registers ().
20327 * linux-arm-low.c (init_registers_arm): Add prototype.
20328 (init_registers_arm_with_iwmmxt): Likewise.
20329 (the_low_target): Add initializer for arch_setup field.
20330 * linux-cris-low.c (init_registers_cris): Add prototype.
20331 (the_low_target): Add initializer for arch_setup field.
20332 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20333 (the_low_target): Add initializer for arch_setup field.
20334 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20335 (the_low_target): Add initializer for arch_setup field.
20336 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20337 (the_low_target): Add initializer for arch_setup field.
20338 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20339 (the_low_target): Add initializer for arch_setup field.
20340 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20341 (the_low_target): Add initializer for arch_setup field.
20342 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20343 (init_registers_mips64_linux): Likewise.
20344 (the_low_target): Add initializer for arch_setup field.
20345 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20346 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20347 (the_low_target): Add initializer for arch_setup field.
20348 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20349 (init_registers_powerpc_64): Likewise.
20350 (the_low_target): Add initializer for arch_setup field.
20351 * linux-s390-low.c (init_registers_s390): Add prototype.
20352 (init_registers_s390x): Likewise.
20353 (the_low_target): Add initializer for arch_setup field.
20354 * linux-sh-low.c (init_registers_sh): Add prototype.
20355 (the_low_target): Add initializer for arch_setup field.
20356 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20357 (the_low_target): Add initializer for arch_setup field.
20358 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20359 (the_low_target): Add initializer for arch_setup field.
20360
20361 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20362 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20363 instead of init_registers ().
20364 * win32-arm-low.c (init_registers_arm): Add prototype.
20365 (the_low_target): Add initializer for arch_setup field.
20366 * win32-i386-low.c (init_registers_i386): Add prototype.
20367 (the_low_target): Add initializer for arch_setup field.
20368
20369 * spu-low.c (init_registers_spu): Add prototype.
20370 (initialize_low): Call initialie_registers_spu () instead of
20371 initialize_registers ().
20372
fd96d250
PA
203732008-02-19 Pedro Alves <pedro@codesourcery.com>
20374
20375 * server.c (handle_v_requests): When handling the vRun and vAttach
20376 packets, if already debugging a process, don't kill it. Return an
20377 error instead.
20378
d41b6bb4
DJ
203792008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20380
20381 * server.c (handle_query): Correct length check.
20382
5ac588cf
PA
203832008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20384
20385 * win32-low.c (do_initial_child_stuff): Add process handle
20386 parameter. Set current_process_handle and current_process_id from the
20387 parameters. Clear globals.
20388 (win32_create_inferior): Don't set current_process_handle and
20389 current_process_id here. Instead pass them on the call to
20390 do_initial_child_stuff.
20391 (win32_attach): Likewise.
20392 (win32_clear_inferiors): New.
20393 (win32_kill): Don't close the current process handle or the
20394 current thread handle here. Instead call win32_clear_inferiors.
20395 (win32_detach): Don't open a new handle to the process. Call
20396 win32_clear_inferiors.
20397 (win32_join): Don't rely on current_process_handle; open a new
20398 handle using the process id.
20399 (win32_wait): Call win32_clear_inferiors when the inferior process
20400 has exited.
20401
ecd7ecbc
DJ
204022008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20403
20404 * server.c (monitor_show_help): Add "exit".
20405
1525d545
MG
204062008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20407
ecd7ecbc 20408 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20409 (clean): Add reg-xtensa.c.
20410 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20411 * configure.srv (xtensa*-*-linux*) New target.
20412 * linux-xtensa-low.c: New.
20413 * xtensa-xtregs.c: New.
1525d545 20414
59a016f0
PA
204152008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20416
20417 * hostio.c: Don't include errno.h.
20418 (errno_to_fileio_errno): Move to hostio-errno.
20419 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20420 error number outputting to the target->hostio_last_error callback.
20421 (hostio_packet_error): Use FILEIO_EINVAL directly.
20422 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20423 calls to hostio_error.
20424 * hostio-errno.c: New.
20425 * server.h (hostio_last_error_from_errno): Declare.
20426 * target.h (target_ops): Add hostio_last_error member.
20427 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20428 as hostio_last_error handler.
889bf7c5 20429 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20430 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20431 (wince_hostio_last_error): New functions.
20432 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20433 as hostio_last_error handler.
20434 (win32_target_ops) [!_WIN32_WCE]: Register
20435 hostio_last_error_from_errno as hostio_last_error handler.
20436 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20437 (hostio-errno.o): New rule.
20438 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20439 * configure.srv (srv_hostio_err_objs): New variable. Default to
20440 hostio-errno.o.
20441 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20442 * configure: Regenerate.
20443
2d717e4f
DJ
204442008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20445
20446 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20447 (linux_kill, linux_detach): Clean up the process list.
20448 * remote-utils.c (remote_open): Improve port number parsing.
20449 (putpkt_binary, input_interrupt): Only send interrupts if the target
20450 is running.
20451 * server.c (extended_protocol): Make static.
20452 (attached): Define earlier.
20453 (exit_requested, response_needed, program_argv): New variables.
20454 (target_running): New.
20455 (start_inferior): Clear attached here.
20456 (attach_inferior): Set attached here.
20457 (require_running): Define.
20458 (handle_query): Use require_running and target_running. Implement
20459 "monitor exit".
20460 (handle_v_attach, handle_v_run): New.
20461 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20462 (gdbserver_usage): Update.
20463 (main): Redo argument parsing. Handle --debug and --multi. Handle
20464 --attach along with other options or after the port. Save
20465 program_argv. Support no initial program. Resynchronize
20466 communication with GDB after an error. Handle "monitor exit".
20467 Use require_running and target_running. Always allow the extended
20468 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20469 restart in extended mode.
20470 * README: Refer to the GDB manual. Update --attach usage.
20471
7407e2de
AS
204722007-12-20 Andreas Schwab <schwab@suse.de>
20473
20474 * linux-low.c (STACK_SIZE): Define.
20475 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20476 (linux_test_for_tracefork): Likewise.
20477
b65d95c5
DJ
204782007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20479
20480 * linux-low.c (linux_wait_for_event): Update messages. Do not
20481 reinsert auto-delete breakpoints.
20482 * mem-break.c (struct breakpoint): Change return type of handler to
20483 int.
20484 (set_breakpoint_at): Update handler type.
20485 (reinsert_breakpoint_handler): Return 1 instead of calling
20486 delete_breakpoint.
20487 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20488 setting a new one.
20489 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20490 * mem-break.h (set_breakpoint_at): Update handler type.
20491 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20492 * win32-low.c (auto_delete_breakpoint): New.
20493 (get_child_debug_event): Use it.
20494
4e799345
DJ
204952007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20496
20497 * configure.ac: Check for pread and pwrite.
20498 * hostio.c (handle_pread): Fall back to lseek and read.
20499 (handle_pwrite): Fall back to lseek and write.
20500 * config.in, configure: Regenerated.
20501
27524b67
DJ
205022007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20503
20504 * server.c (myresume): Add own_buf argument.
20505 (main): Update calls.
20506
a20d5e98
DJ
205072007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20508
20509 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20510 * remote-utils.c (remote_open): Do not call disable_async_io.
20511 (block_async_io): Delete.
20512 (unblock_async_io): Make static.
20513 (initialize_async_io): New.
20514 * server.c (handle_v_cont): Handle async I/O here.
20515 (myresume): Likewise. Move other common resume tasks here...
20516 (main): ... from here. Call initialize_async_io. Disable async
20517 I/O before the main loop.
20518 * server.h (initialize_async_io): Declare.
20519 (block_async_io, unblock_async_io): Delete prototypes.
20520 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20521
b79d787e
DJ
205222007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20523
20524 * remote-utils.c (readchar): Allow binary data in received messages.
20525
d97903b2
PA
205262007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20527
20528 * win32-low.c (attaching): New global.
20529 (win32_create_inferior): Clear the `attaching' global.
20530 (win32_attach): Set the `attaching' global.
20531 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20532 attaching. Only set a breakpoint at the entry point if not
20533 attaching.
20534
311de423
PA
205352007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20536
20537 * server.c (main): Don't report dll events on the initial
20538 connection on attaches.
20539
6c2d16d2
PA
205402007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20541
20542 * server.c (main): Relax numerical bases supported for the pid of
20543 the --attach command line argument.
20544
5ca906e6
PA
205452007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20546
20547 * win32-low.c (win32_attach): Call OpenProcess before
20548 DebugActiveProcess, not after. Add last error output to error
20549 call.
20550
9c6c8194
PA
205512007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20552
20553 * win32-low.c (win32_get_thread_context)
20554 (win32_set_thread_context): New functions.
20555 (thread_rec): Use win32_get_thread_context.
20556 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20557 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20558 field.
20559
4d5d1aaa
PA
205602007-12-03 Leo Zayas
20561 Pedro Alves <pedro_alves@portugalmail.pt>
20562
20563 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20564 global variables.
20565 (child_add_thread): Minor cleanup.
20566 (child_continue): Resume artificially suspended threads before
20567 calling ContinueDebugEvent.
20568 (suspend_one_thread): New.
20569 (fake_breakpoint_event): New.
20570 (get_child_debug_event): Change return type to int. Check here if
20571 gdb sent an interrupt request. If a soft interrupt was requested,
20572 fake a breakpoint event. Return 0 if there is no event to handle,
20573 and 1 otherwise.
20574 (win32_wait): Don't check here if gdb sent an interrupt request.
20575 Ensure there is a valid event to handle.
20576 (win32_request_interrupt): Add soft interruption method as last
20577 resort.
20578
c436e841
PA
205792007-12-03 Leo Zayas
20580 Pedro Alves <pedro_alves@portugalmail.pt>
20581
20582 * win32-low.h (win32_thread_info): Add descriptions to the
20583 structure members. Replace `suspend_count' counter by a
20584 `suspended' flag.
20585 * win32-low.c (thread_rec): Update condition of when to get the
20586 context from the inferior. Rely on ContextFlags being set if it
20587 has already been retrieved. Only suspend the inferior thread if
20588 we haven't already. Warn if that fails.
20589 (continue_one_thread): s/suspend_count/suspended/. Only call
20590 ResumeThread once. Warn if that fails.
20591
e7b5fa67
PA
205922007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20593
20594 * win32-low.c (win32_wait): Don't read from the inferior when it
20595 has already exited.
20596
a385171d
PA
205972007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20598
20599 * Makefile.in (win32_low_h): New variable.
20600 (win32-low.o): Add dependency on $(win32_low_h).
20601 (win32-arm-low.o, win32-i386-low.o): New rules.
20602
f80c84b3
DJ
206032007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20604
20605 * hostio.c: Correct copyright year.
20606
a6b151f1
DJ
206072007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20608
20609 * Makefile.in (OBS): Add hostio.o.
20610 (hostio.o): New rule.
20611 * server.h (handle_vFile): Declare.
20612 * hostio.c: New file.
20613 * server.c (handle_v_requests): Take packet_len and new_packet_len
20614 for binary packets. Call handle_vFile.
20615 (main): Update call to handle_v_requests.
20616
f9387fc3
DJ
206172007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20618
20619 * linux-low.c: Include <sched.h>.
20620
51c2684e
DJ
206212007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20622
20623 * linux-low.c (linux_tracefork_grandchild): New.
20624 (linux_tracefork_child): Use clone.
20625 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20626
75f83163
JB
206272007-10-31 Joel Brobecker <brobecker@adacore.com>
20628
20629 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20630
da5898ce
DJ
206312007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20632
20633 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20634
24a09b5f
DJ
206352007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20636
20637 * inferiors.c (change_inferior_id): Delete.
20638 (add_pid_to_list, pull_pid_from_list): New.
20639 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20640 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20641 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20642 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20643 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20644 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20645 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20646 (using_threads): Always set to 1.
20647 (handle_extended_wait): New.
20648 (add_process): Do not set TID.
20649 (linux_create_inferior): Set must_set_ptrace_flags.
20650 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20651 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20652 (linux_thread_alive): Rename TID argument to LWPID.
20653 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20654 (linux_wait_for_event): Do not use TID or check using_threads. Update
20655 call to dead_thread_notify. Call handle_extended_wait.
20656 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20657 (send_sigstop): Delete sigstop_sent.
20658 (wait_for_sigstop): Avoid TID.
20659 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20660 (linux_test_for_tracefork): New.
20661 (linux_lookup_signals): Use thread_db_active and
20662 linux_supports_tracefork_flag.
20663 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20664 * linux-low.h (get_process_thread): Avoid TID.
20665 (struct process_ifo): Move thread_known and tid to the end. Remove
20666 sigstop_sent.
20667 (linux_attach_lwp, thread_db_init): Update prototypes.
20668 * server.h (change_inferior_id): Delete prototype.
20669 (add_pid_to_list, pull_pid_from_list): New prototypes.
20670 * thread-db.c (thread_db_use_events): New.
20671 (find_first_thread): Rename to...
20672 (find_one_thread): ...this. Update callers and messages. Do not
20673 call fatal. Check thread_db_use_events. Do not call
20674 change_inferior_id or new_thread_notify.
20675 (maybe_attach_thread): Update. Do not call new_thread_notify.
20676 (thread_db_init): Set thread_db_use_events. Check use_events.
20677 * utils.c (fatal, warning): Correct message prefix.
20678
30ed0a8f
DJ
206792007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20680
20681 * Makefile.in (clean): Remove new files.
20682 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20683 (powerpc-64.o, powerpc-64.c): New rules.
20684 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20685 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20686 with SPE.
20687 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20688 SPE targets.
20689 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20690 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20691 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20692 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20693 (target_regsets): Add AltiVec and SPE register sets.
20694 * configure.ac: Check for AltiVec and SPE.
20695 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20696 (ppc_fill_vrregset, ppc_store_vrregset): New.
20697 (target_regsets): Add AltiVec register set.
20698 * configure: Regenerated.
20699
fd462a61
DJ
207002007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20701
20702 * linux-low.c (O_LARGEFILE): Define.
20703 (linux_read_memory): Use /proc/PID/mem.
20704 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20705 * configure, config.in: Regenerated.
20706
69f223ed
DJ
207072007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20708
20709 * linux-low.c (linux_wait_for_event): Do not pass signals while
20710 single-stepping.
20711
aec18585
PA
207122007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20713
20714 * win32-low.c (create_process): New.
20715 (win32_create_inferior): Use create_process instead of
20716 CreateProcess. If create_process failed retry appending an ".exe"
20717 suffix. Store the GetLastError result immediatelly after
20718 create_process calls and use it on the call to error.
20719
34d86ddd
PA
207202007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20721
20722 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20723
5a0e3bd0
JB
207242007-08-23 Joel Brobecker <brobecker@adacore.com>
20725
20726 * configure.ac: Switch license to GPLv3.
20727
f88c79e6
MS
207282007-08-01 Michael Snyder <msnyder@access-company.com>
20729
20730 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20731
6b3d9b83
PA
207322007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20733
20734 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20735 typedef.
20736 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20737 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20738 CloseToolhelp32Snapshot.
20739 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20740 CloseToolhelp32Snapshot.
20741
c588c53c
MS
207422007-07-27 Michael Snyder <michael.snyder@access-company.com>
20743
20744 * server.c (main): Check for inferior exit before main loop.
20745
aa0403d9
PA
207462007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20747
20748 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20749 instead of on tmp_desc.
20750
255e7678
DJ
207512007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20752 Daniel Jacobowitz <dan@codesourcery.com>
20753
20754 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20755 (add_thread): Minor cleanups.
20756 (clear_inferiors): Move lower in the file. Clear the DLL
20757 list.
20758 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20759 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20760 (xml_escape_text): New.
20761 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20762 for qSupported.
20763 (handle_v_cont): Report errors.
20764 (gdbserver_version): Update.
20765 (main): Correct size of own_buf. Do not report initial DLL events.
20766 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20767 (unloaded_dll, xml_escape_text): New.
20768 * win32-low.c (enum target_waitkind): Update comments.
20769 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20770 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20771 (win32_EnumProcessModules, win32_GetModuleInformation)
20772 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20773 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20774 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20775 (win32_Module32First, win32_Module32Next, load_toolhelp)
20776 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20777 (get_child_debug_event): Handle DLL events.
20778 (win32_wait): Likewise.
20779
0d37add9
DJ
207802007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20781
20782 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20783 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20784
45e2715e
PA
207852007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20786
20787 * win32-low.c (handle_output_debug_string): Ignore event if not
20788 waiting.
20789
c5674cf1
PA
207902007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20791
20792 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20793
2bbe3cc1
DJ
207942007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20795
20796 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20797
ae13219e
DJ
207982007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20799
20800 * inferiors.c (change_inferior_id): Add comment.
20801 * linux-low.c (check_removed_breakpoint): Add an early
20802 prototype. Improve debug output.
20803 (linux_attach): Doc update.
20804 (linux_detach_one_process, linux_detach): Clean up before releasing
20805 each process.
20806 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20807 * linux-low.h (struct process_info): Doc improvement.
20808 * mem-break.c (delete_all_breakpoints): New.
20809 * mem-break.h (delete_all_breakpoints): New prototype.
20810 * thread-db.c (find_first_thread): New.
20811 (thread_db_create_event): Call it instead of
20812 thread_db_find_new_threads. Clean up unused variables.
20813 (maybe_attach_thread): Remove first thread handling.
20814 (thread_db_find_new_threads): Use find_first_thread.
20815 (thread_db_get_tls_address): Likewise.
20816
4105de34
DJ
208172007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20818
20819 * thread-db.c (thread_db_find_new_threads): Add prototype.
20820 (thread_db_create_event): Check for the main thread before adding
20821 a new thread.
20822 (maybe_attach_thread): Only enable event reporting if TID == 0.
20823 (thread_db_get_tls_address): Check for new threads.
20824
2b876972
DJ
208252007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20826
20827 * linux-low.c (linux_create_inferior): Try execv before execvp.
20828 * spu-low.c (spu_create_inferior): Likewise.
20829
7a245884
DJ
208302007-06-13 Mike Frysinger <vapier@gentoo.org>
20831
20832 * linux-low.c (linux_create_inferior): Change execv to execvp.
20833 * spu-low.c (spu_create_inferior): Likewies.
20834
117ce543
DJ
208352007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20836
20837 * Makefile.in (clean): Clean new files instead of deleted ones.
20838 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20839 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20840 rules.
20841 * configure.srv: Specify XML files and new regformats for MIPS and
20842 MIPS64 GNU/Linux.
20843 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20844 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20845 an entry for the restart register.
20846 (mips_cannot_fetch_register, mips_cannot_store_register)
20847 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20848 register names to match the XML descriptions.
20849 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20850 restart register instead of $0.
20851
0e7f50da
UW
208522007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20853 Markus Deuling <deuling@de.ibm.com>
20854
20855 * remote-utils.c (decode_xfer_write): New function.
20856 * server.h (decode_xfer_write): Add prototype.
20857 * server.c (handle_query): Add PACKET_LEN argument. Support
20858 qXfer:spu:read and qXfer:spu:write packets.
20859 (main): Pass packet_len to handle_query.
20860 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20861 * target.h (target_ops): Add qxfer_spu.
20862
374c1d38
UW
208632007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20864
20865 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20866 accessing non-seekable spufs files.
20867
bb63802a
UW
208682007-05-16 Markus Deuling <deuling@de.ibm.com>
20869
889bf7c5 20870 * server.c (handle_query): Add reply for qC packet.
bb63802a 20871
7390519e
PA
208722007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20873 Leo Zayas <lerele@champenstudios@com>
20874
20875 * server.h (check_remote_input_interrupt_request): New function.
20876 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20877 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20878 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20879 (check_remote_input_interrupt_request): New function.
20880 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20881 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20882 winapi_GenerateConsoleCtrlEvent): New typedefs.
20883 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20884 to 250 ms.
20885 (win32_wait): Check for remote interrupt request
20886 with check_remote_input_interrupt_request.
20887 (win32_request_interrupt): New function.
20888 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20889
34b34921
PA
208902007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20891
20892 * win32-low.c (debug_registers_changed,
20893 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20894 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20895 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20896 (thread_rec): Get context using the low target.
20897 (child_add_thread): Call thread_added on the low target,
20898 which does the same thing.
20899 (regptr): Delete.
20900 (do_initial_child_stuff): Remove debug registers references.
20901 Set context using the low target. Resume threads after
20902 setting the contexts.
20903 (child_continue): Remove dead variable. Remove debug
20904 registers references.
20905 (child_fetch_inferior_registers): Go through the low target.
20906 (do_child_store_inferior_registers): Remove.
20907 (child_store_inferior_registers): Go through the low target.
20908 (win32_resume): Remove debug registers references.
20909 Set context using the low target.
20910 (handle_exception): Change return type to void. Don't record
20911 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20912 first chance exception.
889bf7c5 20913 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20914 goto loop. Always return after waiting for debug event.
20915 (win32_wait): Convert to switch statement. Handle spurious
20916 events.
20917
20918 * win32-i386-low.c (debug_registers_changed,
20919 debug_registers_used): New.
20920 (initial_stuff): Rename to ...
20921 (i386_initial_stuff): ... this. Clear debug registers
20922 state variables.
20923 (store_debug_registers): Delete.
20924 (i386_get_thread_context): New.
20925 (load_debug_registers): Delete.
20926 (i386_set_thread_context): New.
20927 (i386_thread_added): New.
20928 (single_step): Rename to ...
20929 (i386_single_step): ... this.
20930 (do_fetch_inferior_registers): Rename to ...
20931 (i386_fetch_inferior_register): ... this.
20932 (i386_store_inferior_register): New.
20933 (the_low_target): Adapt to new interface.
20934
20935 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20936 (arm_get_thread_context): New.
20937 (arm_set_thread_context): New.
20938 (regptr): New.
20939 (do_fetch_inferior_registers): Rename to ...
20940 (arm_fetch_inferior_register): ... this.
20941 (arm_store_inferior_register): New.
20942 (arm_wince_breakpoint): Reimplement as unsigned long.
20943 (arm_wince_breakpoint_len): Define.
20944 (the_low_target): Adapt to new interface.
20945
20946 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20947 load_debug_registers. Add get_thread_context, set_thread_context,
20948 thread_added and store_inferior_register. Rename
20949 fetch_inferior_registers to fetch_inferior_register.
20950 (regptr): Remove declaration.
20951
dd6953e1
PA
209522007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20953
20954 * linux-low.c (linux_detach): Change return type to int. Return 0.
20955 * spu-low.c (spu_detach): Likewise.
20956
444d6139
PA
209572007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20958
20959 * target.h (target_ops): Change return type of detach to int.
20960 Add join.
20961 (join_inferior): New.
20962 * server.c (main): Don't skip detach support on mingw32.
20963 If the inferior doesn't support detaching return error.
20964 Call join_inferior instead of using waitpid.
20965 * linux-low.c (linux_join): New.
20966 (linux_target_op): Add linux_join.
20967 * spu-low.c (spu_join): New.
20968 (spu_target_ops): Add spu_join.
20969 * win32-low.c (win32_detach): Adapt to new interface.
20970 Reopen current_process_handle before detaching. Issue a child
20971 resume before detaching.
20972 (win32_join): New.
20973 (win32_target_op): Add win32_join.
20974
1d5315fe
PA
209752007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20976
20977 * win32-low.c (win32-attach): Fix return value.
20978 * target.h (target_ops): Describe ATTACH return values.
20979
bf914831
PA
209802007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20981
20982 * win32-low.c (GETPROCADDRESS): Define.
20983 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20984 (winapi_DebugSetProcessKillOnExit): Likewise.
20985 (win32_create_inferior): Force usage of ansi CreateProcessA.
20986 (win32_attach): Use GETPROCADDRESS.
20987 (win32_detach): Likewise.
20988
f72f3e60
PA
209892007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20990
20991 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20992
ed50f18f
PA
209932007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20994
20995 * win32-low.c: Commit leftover changes from 2007-03-29.
20996
0c2ead7e
DJ
209972007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20998
20999 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21000 fields short instead of int. Add explicit padding.
21001 (i387_cache_to_fsave): Remove unnecessary casts.
21002 (i387_fsave_to_cache): Doc fix.
21003 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21004
73725ff3
DJ
210052007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21006
21007 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21008 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21009
d99f33d8
PA
210102007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21011
21012 * configure.srv (arm*-*-mingw32ce*): Move near the other
21013 arm targets.
21014
68070c10
PA
210152007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21016
2482afc6 21017 * configure.ac: Add errno checking.
68070c10
PA
21018 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21019 sys/file.h and malloc.h.
21020 (AC_CHECK_DECLS): Add perror.
21021 (srv_mingwce): Handle.
2482afc6 21022 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21023 win32-i386-low.o to srv_tgtobj.
21024 (i[34567]86-*-mingw*): Likewise.
21025 (arm*-*-mingw32ce*): Add case.
21026 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21027 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21028 [__MINGW32CE__] (strerror): New function.
21029 [__MINGW32CE__] (errno): Define to GetLastError.
21030 [__MINGW32CE__] (COUNTOF): New macro.
21031 (remote_open): Remove extra close call.
21032 * mem-break.c (delete_breakpoint_at): New function.
21033 * mem-break.h (delete_breakpoint_at): Declare.
21034 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21035 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21036 [USE_WIN32API] (read, write): Add char* casts.
21037 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21038 * server.h: Include wincecompat.h on Windows CE.
21039 [HAVE_ERRNO_H]: Check.
21040 (perror): Declare if not declared.
21041 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21042 (perror_with_name): Remove errno declaration.
21043 * wincecompat.h: New.
21044 * wincecompat.c: New.
21045 * win32-low.h: New.
21046 * win32-arm-low.c: New.
21047 * win32-i386-low.c: New.
21048 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21049 (OUTMSG2): Make it safe.
21050 (_T): New macro.
21051 (COUNTOF): New macro.
21052 (NUM_REGS): Get it from the low target.
21053 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21054 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21055 (thread_rec): Let low target handle debug registers.
21056 (child_add_thread): Likewise.
21057 (child_init_thread_list): Likewise.
21058 (continue_one_thread): Likewise.
21059 (regptr): New.
21060 (do_child_fetch_inferior_registers): Move to ...
21061 * win32-i386-low.c: ... here, and rename to ...
21062 (do_fetch_inferior_registers): ... this.
889bf7c5 21063 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21064 Go through the low target.
21065 (do_child_store_inferior_registers): Use regptr.
21066 (strwinerror): New function.
21067 (win32_create_inferior): Handle Windows CE.
21068 Use strwinerror instead of strerror on Windows error
21069 codes. Add program to the error output.
21070 Don't close the main thread handle on Windows CE.
21071 (win32_attach): Use coredll.dll on Windows CE.
21072 (win32_kill): Close current process and current
21073 thread handles.
21074 (win32_detach): Use coredll.dll on Windows CE.
21075 (win32_resume): Let low target handle debug registers, and
21076 step request.
21077 (handle_exception): Add/Remove initial breakpoint. Avoid
21078 non-existant WSTOPSIG on Windows CE.
21079 (win32_read_inferior_memory): Cast to remove warning.
21080 (win32_arch_string): Go through the low target.
21081 (initialize_low): Call set_breakpoint_data with the low
21082 target's breakpoint.
21083 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21084 FOP_REGNUM, mappings): Move to ...
21085 * win32-i386-low.c: ... here.
21086 * win32-low.c (win32_thread_info): Move to ...
21087 * win32-low.h: ... here.
21088 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21089 win32-arm-low.c and wincecompat.c.
21090 (all:): Add $EXEEXT.
21091 (install-only:): Likewise.
21092 (gdbserver:): Likewise.
21093 (gdbreplay:): Likewise.
21094 * config.in: Regenerate.
21095 * configure: Regenerate.
21096
41093d81
PA
210972007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21098
21099 * win32-low.c: Rename typedef thread_info to
21100 win32_thread_info throughout.
21101
544afa54
PA
211022007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21103
21104 * win32-i386-low.c: Rename to ...
21105 * win32-low.c: ... this.
21106 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21107 * Makefile.in: Likewise.
21108
bce7165d
PA
211092007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21110
21111 * remote-utils.c (monitor_output): Constify msg parameter.
21112 * server.h (monitor_output): Likewise.
21113 * win32-i386-low.c (handle_output_debug_string): New.
21114 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21115 handle_output_debug_string.
21116 (get_child_debug_event): Likewise.
21117
506c7aa0
DJ
211182007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21119
21120 * server.c (main): Correct strtoul check.
21121
42c81e2a
DJ
211222007-03-27 Jon Ringle <jon@ringle.org>
21123
21124 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21125
9453113a
DJ
211262007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21127
21128 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21129
64a69107
DJ
211302007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21131
21132 * terminal.h: Check HAVE_SGTTY_H.
21133
211342007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21135
21136 * remote-utils.c (remote_open): Print out the assigned port number.
21137
c74d0ad8
DJ
211382007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21139
21140 * remote-utils.c (monitor_output): New function.
21141 * server.c (debug_threads): Define here.
21142 (monitor_show_help): New function.
21143 (handle_query): Handle qRcmd.
21144 (main): Do not handle 'd' packet.
21145 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21146 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21147 of debug_threads.
21148
de7c3b4a
PA
211492007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21150
21151 * Makefile.in (EXEEXT): New.
21152 (clean): Use $(EXEEXT).
21153
ef57601b
PA
211542007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21155
21156 * target.h (target_ops): Rename send_signal to request_interrupt,
21157 and remove enum target_signal parameter.
21158 * linux-low.c (linux_request_interrupt): Rename from
21159 linux_send_signal, and always send SIGINT.
21160 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21161 and always send SIGINT.
21162 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21163 of send_signal.
21164 (input_interrupt): Likewise.
21165
820f2bda
PA
211662007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21167
21168 * server.c (get_features_xml): Check if target implemented
21169 arch_string.
21170 * win32-i386-low.c (win32_arch_string): New.
21171 (win32_target_ops): Add win32_arch_string as arch_string member.
21172
ab39bf24
UW
211732007-02-22 Markus Deuling <deuling@de.ibm.com>
21174
21175 * spu-low.c (spu_arch_string): New.
21176 (spu_target_ops): Add spu_arch_string.
21177
61ff6e04
DJ
211782007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21179
21180 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21181 * configure.ac: Do not check for terminal.h.
21182 * configure, config.in: Regenerated.
21183
fb1e4ffc
DJ
211842007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21185
21186 * Makefile.in (OBS): Add $(XML_BUILTIN).
21187 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21188 (clean): Update.
21189 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21190 (arm-with-iwmmxt.c): New.
21191 * config.in, configure: Regenerate.
21192 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21193 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21194 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21195 (arm*-*-linux*): Add iWMMXt and regset support.
21196 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21197 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21198 (arm_store_wmmxregset, target_regsets): New.
21199 * server.c (get_features_xml): Take annex argument. Check builtin
21200 XML documents.
21201 (handle_query): Handle multiple annexes.
21202
0f48aa01
DJ
212032007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21204
21205 * remote-utils.c [USE_WIN32API] (read, write): Define.
21206 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21207 write.
21208
23181151
DJ
212092007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21210
21211 * linux-i386-low.c (the_low_target): Set arch_string.
21212 * linux-x86-64-low.c (the_low_target): Likewise.
21213 * linux-low.c (linux_arch_string): New.
21214 (linux_target_ops): Add it.
21215 * linux-low.h (struct linux_target_ops): Add arch_string.
21216 * server.c (write_qxfer_response): Use const void * for DATA.
21217 (get_features_xml): New.
21218 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21219 * target.h (struct target_ops): Add arch_string method.
21220
9d606399
DJ
212212007-01-03 Denis Pilat <denis.pilat@st.com>
21222 Daniel Jacobowitz <dan@codesourcery.com>
21223
21224 * linux-low.c (linux_kill): Handle being called with no threads.
21225 * win32-i386-low.c (win32_kill): Likewise.
21226 (get_child_debug_event): Clear current_process_handle.
21227
212282006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21229 Daniel Jacobowitz <dan@codesourcery.com>
21230
21231 * remote-utils.c (remote_open): Check the type of specified
21232 serial port devices before opening them.
21233 * server.c (main): Kill the inferior if an error occurs during
21234 the first remote_open.
21235
a5e13d24
DJ
212362006-12-05 Markus Deuling <deuling@de.ibm.com>
21237
21238 * README: Update supported targets.
21239
186947f7
DJ
212402006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21241
21242 * Makefile.in (clean): Remove reg-mips64.c.
21243 (reg-mips64.c, reg-mips64.o): New rules.
21244 * configure.srv: Handle mips64. Include regset support for mips.
21245 * linux-mips-low.c (union mips_register): New.
21246 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21247 (mips_breakpoint, mips_breakpoint_at): Use int.
21248 (mips_collect_register, mips_supply_register)
21249 (mips_collect_register_32bit, mips_supply_register_32bit)
21250 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21251 (mips_store_fpregset, target_regsets): New.
21252 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21253
a13e2c95
UW
212542006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21255
21256 * configure.srv: Add target "spu*-*-*".
21257 * Makefile.in (clean): Remove reg-spu.c.
21258 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21259 * spu-low.c: New file.
21260
cb7283db
DJ
212612006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21262
21263 * configure.ac: Correct td_thr_tls_get_addr test.
21264 * configure: Regenerated.
21265
89be2091
DJ
212662006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21267
21268 * linux-low.c (linux_wait_for_event): Reformat. Use the
21269 pass_signals array.
21270 * remote-utils.c (decode_address_to_semicolon): New.
21271 * server.c (pass_signals, handle_general_set): New.
21272 (handle_query): Mention QPassSignals for qSupported.
21273 (main): Call handle_general_set.
21274 * server.h (pass_signals, decode_address_to_semicolon): New.
21275
000ef4f0
DJ
212762006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21277
21278 * server.c (handle_query): Correct error handling for read_auxv.
21279
b7149293
UW
212802005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21281
21282 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21283 and srv_linux_thread_db to yes.
21284 * linux-s390-low.c (s390_fill_gregset): New function.
21285 (target_regsets): Define data structure.
21286
dae5f5cf
DJ
212872006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21288
21289 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21290 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21291 * config.in, configure: Regenerated.
21292 * inferiors.c (gdb_id_to_thread): New function.
21293 (gdb_id_to_thread_id): Use it.
21294 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21295 * linux-low.h (struct process_info): Add th member.
21296 (thread_db_get_tls_address): New prototype.
21297 * remote-utils.c (decode_address): Make non-static.
21298 * server.c (handle_query): Handle qGetTLSAddr.
21299 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21300 * target.h (struct target_ops): Add get_tls_address.
21301 * thread-db.c (maybe_attach_thread): Save the thread handle.
21302 (thread_db_get_tls_address): New.
21303
32ca6d61
DJ
213042006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21305
21306 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21307 (linux_resume_one_process): Take a siginfo_t *. Update all
21308 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21309 (struct pending_signals): Add a siginfo_t.
21310 (linux_wait_for_process): Always set last_status.
21311 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21312 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21313 * linux-low.h (struct process_info): Add last_status.
21314
5ffff7c1
DJ
213152006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21316
21317 * remote-utils.c (try_rle): New function.
21318 (putpkt_binary): Use it.
21319
8695c747
DJ
213202006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21321
21322 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21323 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21324 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21325 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21326 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21327 point registers.
21328
290fadea
RS
213292006-08-08 Richard Sandiford <richard@codesourcery.com>
21330
21331 * server.c (terminal_fd): New variable.
21332 (old_foreground_pgrp): Likewise.
21333 (restore_old_foreground_pgrp): New function.
21334 (start_inferior): Record the terminal file descriptor in terminal_fd
21335 and its original foreground group in old_foreground_pgrp. Register
21336 restore_old_foreground_pgrp with atexit().
21337
9f2e1e63
DJ
213382006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21339
21340 * server.c (handle_query): Correct qPart to qXfer.
21341
b80864fb
DJ
213422006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21343
21344 * configure.ac: Check for more headers which are missing on
21345 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21346 * configure.srv: Add Cygwin and mingw32.
21347 * remote-utils.c: Don't include headers unconditionally which
21348 are missing on mingw32. Include <winsock.h> for mingw32.
21349 (remote_open): Adjust for mingw32 support. Flush
21350 standard error after writing to it.
21351 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21352 (unblock_async_io, enable_async_io, disable_async_io)
21353 (readchar, getpkt): Update for Winsock support.
21354 (prepare_resume_reply): Expect a protocol signal number.
21355 * server.c: Disable <sys/wait.h> on mingw32.
21356 (start_inferior): Adjust for mingw32 support. Flush
21357 standard error after writing to it.
21358 (attach_inferior): Likewise. Use protocol signal
21359 numbers.
21360 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21361 and names.
21362 * win32-i386-low.c: New file.
21363 * Makefile.in (XM_CLIBS): Set.
21364 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21365 (win32-i386-low.o): New dependency rule.
21366 * linux-low.c (linux_wait): Use target signal numbers.
21367 * target.h (struct target_ops): Doc fix.
21368 * server.h (target_signal_to_name): New prototype.
21369 * gdbreplay.c: Don't include headers unconditionally which
21370 are missing on mingw32. Include <winsock.h> for mingw32.
21371 (remote_close, remote_open): Adjust for Winsock support.
21372 * configure, config.in: Regenerated.
21373
0876f84a
DJ
213742006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21375
21376 * server.c (decode_xfer_read, write_qxfer_response): New.
21377 (handle_query): Take a packet length argument. Handle
21378 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21379 the qSupported response.
21380 (main): Update call to handle_query.
21381
01f9e8fa
DJ
213822006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21383
21384 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21385 (putpkt_binary): Renamed from putpkt and adjusted for binary
21386 data.
21387 (putpkt): New wrapper for putpkt_binary.
21388 (readchar): Don't mask off the high bit.
21389 (decode_X_packet): New function.
21390 * server.c (main): Call putpkt_binary if a handler sets the packet
21391 length. Save the length of the incoming packet. Handle 'X'.
21392 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21393
be2a5f71
DJ
213942006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21395
21396 * server.c (handle_query): Handle qSupported.
21397
ea025f5f
DJ
213982006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21399
21400 * remote-utils.c (all_symbols_looked_up): New variable.
21401 (look_up_one_symbol): Check it.
21402 * server.h (look_up_one_symbol): New declaration.
21403 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21404
9308fc88
DJ
214052006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21406
21407 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21408 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21409 (PTRACE_GET_THREAD_AREA): Define.
21410 (ps_get_thread_area): New function.
21411
52fb6437
NS
214122006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21413
21414 * configure.srv (m68k*-*-uclinux*): New target.
21415 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21416 (linux_resume_one_process): Remove extraneous cast.
21417 (linux_read_offsets): New.
21418 (linux_target_op): Add linux_read_offsets on mmuless systems.
21419 * server.c (handle_query): Add qOffsets logic.
21420 * target.h (struct target_ops): Add read_offsets.
21421
21b0f40c
DJ
214222006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21423
21424 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21425 (PTRACE_GET_THREAD_AREA): Define.
21426 (ps_get_thread_area): New function.
21427 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21428 (linux-x86-64-low.o): Update.
21429
0050a760
DJ
214302006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21431
21432 * configure.ac: Remove checks for prfpregset_t.
21433 * gdb_proc_service.h: New file.
21434 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21435 new "gdb_proc_service.h".
21436 * proc-service.c: Likewise.
21437 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21438 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21439 * Makefile.in (gdb_proc_service_h): Updated.
21440 * configure, config.in: Regenerated.
21441
b92a518e
DJ
214422006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21443
21444 * remote-utils.c (prepare_resume_reply): Move declaration
21445 of gdb_id_from_wait to the top of the block.
21446
545587ee
DJ
214472006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21448
21449 * linux-low.c (regsets_store_inferior_registers): Read the regset
21450 from the target before filling it.
21451
9db87ebd
DJ
214522006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21453
21454 * server.c (attach_inferior): Return SIGTRAP for a successful
21455 attach.
21456
dd24457d
DJ
214572006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21458
21459 * Makefile.in (OBS): Add version.o.
21460 (STAGESTUFF): Delete.
21461 (version.o): Add dependencies.
21462 (version.c): Replace rule.
21463 (clean): Remove version.c.
21464 * server.c (gdbserver_version): New.
21465 (gdbserver_usage): Use printf.
21466 (main): Handle --version and --help.
21467 * server.h (version, host_name): Add declarations.
21468
6f0f660e
EZ
214692005-12-23 Eli Zaretskii <eliz@gnu.org>
21470
889bf7c5
PA
21471 * linux-arm-low.c:
21472 * linux-arm-low.c:
21473 * inferiors.c:
21474 * i387-fp.h:
21475 * i387-fp.c:
21476 * gdbreplay.c:
21477 * regcache.c:
21478 * proc-service.c:
21479 * mem-break.h:
21480 * mem-break.c:
21481 * linux-x86-64-low.c:
21482 * linux-sh-low.c:
21483 * linux-s390-low.c:
21484 * linux-ppc64-low.c:
21485 * linux-ppc-low.c:
21486 * linux-mips-low.c:
21487 * linux-m68k-low.c:
21488 * linux-m32r-low.c:
21489 * linux-low.h:
21490 * linux-low.c:
21491 * linux-ia64-low.c:
21492 * linux-i386-low.c:
21493 * linux-crisv32-low.c:
21494 * thread-db.c:
21495 * terminal.h:
21496 * target.h:
21497 * target.c:
21498 * server.h:
21499 * server.c:
21500 * remote-utils.c:
21501 * regcache.h:
21502 * utils.c:
21503 * Makefile.in:
21504 * configure.ac:
6f0f660e
EZ
21505 * gdbserver.1: Add (C) after Copyright. Update the FSF
21506 address.
21507
9d1fb177
DJ
215082005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21509
21510 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21511 (arm_breakpoint_at): Recognize both breakpoints.
21512 (the_low_target): Use the correct breakpoint instruction.
21513
011a70c2
DJ
215142005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21515
21516 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21517 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21518 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21519 (the_low_target): Update.
21520
7fb85e41
AS
215212005-10-25 Andreas Schwab <schwab@suse.de>
21522
21523 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21524
21525 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21526 (ia64_num_regs): Reduce to 462.
21527
3db0444b
DJ
215282005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21529
21530 * acinclude.m4: Correct quoting.
21531 * aclocal.m4: Regenerated.
21532
21533 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21534 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21535 (thread_db_init): Call thread_db_err_str.
21536 * configure.ac: Check for TD_VERSION.
21537 * config.in, configure: Regenerated.
21538
bee0189a
DJ
215392005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21540
21541 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21542
e9d25b98
DJ
215432005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21544
21545 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21546 is not available. Define HAVE_PTRACE_GETREGS if it is.
21547 * config.in, configure: Regenerated.
21548 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21549 * linux-i386-low.c, linux-m68k-low.c: Update to use
21550 HAVE_PTRACE_GETREGS.
21551 * linux-low.c (regsets_fetch_inferior_registers)
21552 (regsets_store_inferior_registers): Only return 0 if we processed
21553 GENERAL_REGS.
21554 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21555 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21556
a06660f7
DJ
215572005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21558
21559 * inferiors.c (struct thread_info): Add gdb_id.
21560 (add_thread): Add gdb_id argument.
21561 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21562 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21563 calls to add_thread.
21564 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21565 * server.c (handle_query): Use thread_to_gdb_id.
21566 (handle_v_cont, main): Use gdb_id_to_thread_id.
21567 * server.h (add_thread): Update prototype.
21568 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21569 prototypes.
21570
5a1f5858
DJ
215712005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21572
21573 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21574 left-padded registers.
21575 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21576 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21577
e122f1f5
SE
215782005-07-01 Steve Ellcey <sje@cup.hp.com>
21579
21580 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21581 * configure: Regenerate.
21582 * config.in: Regenerate.
21583 * server.h (NEED_DECLARATION_STRERROR):
21584 Replace with !HAVE_DECL_STRERROR.
21585
d592fa2f
DJ
215862005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21587
21588 * linux-low.c (linux_wait, linux_send_signal): Don't test
21589 an unsigned long variable for > 0 if it could be MAX_ULONG.
21590 * server.c (myresume): Likewise.
21591 * target.c (set_desired_inferior): Likewise.
21592
ccbd4912
MK
215932005-06-13 Mark Kettenis <kettenis@gnu.org>
21594
21595 * configure.ac: Simplify and improve check for socklen_t.
21596 * configure, config.in: Regenerate.
21597
f450004a
DJ
215982005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21599
21600 * acconfig.h: Remove.
21601 * configure.ac: Add a test for socklen_t. Use three-argument
21602 AC_DEFINE throughout.
21603 * config.in: Regenerated using autoheader 2.59.
21604 * configure: Regenerated.
21605
21606 * gdbreplay.c (socklen_t): Provide a default.
21607 (remote_open): Use socklen_t.
21608 * remote-utils.c (socklen_t): Provide a default.
21609 (remote_open): Use socklen_t.
21610 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21611 unsigned char.
21612
21613 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21614 char for buffers.
21615 * linux-low.c (linux_read_memory, linux_write_memory)
21616 (linux_read_auxv): Likewise.
21617 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21618 (check_mem_write): Likewise.
21619 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21620 Likewise.
21621 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21622 (registers_from_string, register_data): Likewise.
21623 * server.c (handle_query, main): Likewise.
21624 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21625 (decode_M_packet): Likewise.
21626 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21627 * target.h (struct target_ops): Update read_memory, write_memory,
21628 and read_auxv.
21629 (read_inferior_memory, write_inferior_memory): Update.
21630 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21631 to unsigned char *.
21632 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21633 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21634 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21635 linux-s390-low.c, linux-sh-low.c: Update for changes in
21636 read_inferior_memory and the_low_target->breakpoint.
21637
eee84df1
DJ
216382005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21639
21640 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21641 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21642 * configure.srv: Add powerpc64-*-linux*.
21643 * linux-ppc64-low.c: New file.
21644
45b134e5
OF
216452005-05-23 Orjan Friberg <orjanf@axis.com>
21646
21647 * linux-cris-low.c: New file with support for CRIS.
21648 * linux-crisv32-low.c: Ditto for CRISv32.
21649 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21650 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21651 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21652 reg-crisv32.o, and reg-crisv32.c to make rules.
21653 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21654 recognized targets.
21655
48d93c75
UW
216562005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21657
21658 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21659 of sizeof (PTRACE_XFER_TYPE).
21660 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21661
e013ee27
OF
216622005-05-12 Orjan Friberg <orjanf@axis.com>
21663
889bf7c5 21664 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21665 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21666 pointers for hardware watchpoint support.
21667 * linux-low.h (struct linux_target_ops): Ditto.
21668 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21669 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21670 to linux_target_ops.
21671 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21672 reply packet.
21673 * server.c (main): Recognize 'Z' and 'z' packets.
21674
b0ded00b
UW
216752005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21676
21677 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21678 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21679 (the_low_target): Add new members.
21680
8643e2ad
DJ
216812005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21682
21683 * proc-service.c (ps_lgetregs): Search all_processes instead of
21684 all_threads.
21685
fc620387
DJ
216862005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21687
21688 * server.c (start_inferior): Change return type to int.
21689 (attach_inferior): Change sigptr to int *.
21690 (handle_v_cont, handle_v_requests): Change signal to int *.
21691 (main): Change signal to int.
21692
216932005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21694
21695 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21696 * configure.srv: Add m32r*-*-linux*.
21697 * linux-m32r-low.c: New file.
21698
e0e76420
DJ
216992005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21700
21701 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21702
a1928bad
DJ
217032005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21704
21705 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21706 Take unsigned long arguments for PIDs.
21707 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21708 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21709 (wait_for_sigstop, linux_resume_one_process)
21710 (regsets_fetch_inferior_registers, linux_send_signal)
21711 (linux_read_auxv): Likewise. Update the types of variables holding
21712 PIDs. Update format string specifiers.
21713 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21714 * remote-utils.c (prepare_resume_reply): Likewise.
21715 * server.c (cont_thread, general_thread, step_thread)
21716 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21717 unsigned long.
21718 (handle_query): Update format specifiers.
21719 (handle_v_cont, main): Use strtoul for thread IDs.
21720 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21721 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21722 (general_thread, step_thread, thread_from_wait)
21723 (old_thread_from_wait): Update.
21724 * target.h (struct thread_resume): Use unsigned long for THREAD.
21725 (struct target_ops): Use unsigned long for arguments to attach and
21726 thread_alive.
21727
dcdb98d2
DJ
217282005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21729
21730 * acinclude.m4: Include bfd/bfd.m4 directly.
21731 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21732 <agriffis@toolchain.org>.
21733 * aclocal.m4, configure: Regenerated.
21734
bec39cab
AC
217352005-01-07 Andrew Cagney <cagney@gnu.org>
21736
21737 * configure.ac: Rename configure.in, require autoconf 2.59.
21738 * configure: Re-generate.
21739
434c4c77
DJ
217402004-12-08 Daniel Jacobowitz <dan@debian.org>
21741
21742 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21743 LIBS when finished.
21744 * aclocal.m4: Regenerated.
21745 * configure: Regenerated.
21746
db1d3e1b
AS
217472004-11-21 Andreas Schwab <schwab@suse.de>
21748
21749 * linux-m68k-low.c (m68k_num_gregs): Define.
21750 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21751 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21752 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21753 (m68k_breakpoint_at): New. Add to the_low_target.
21754
21755 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21756 srv_linux_thread_db to yes.
21757
43360365
JB
217582004-10-20 Joel Brobecker <brobecker@gnat.com>
21759
21760 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21761 (ARCH_SET_FS): Likewise.
21762 (ARCH_GET_FS): Likewise.
21763 (ARCH_GET_GS): Likewise.
21764
fd500816
DJ
217652004-10-16 Daniel Jacobowitz <dan@debian.org>
21766
21767 * linux-i386-low.c (ps_get_thread_area): New.
21768 * linux-x86-64-low.c (ps_get_thread_area): New.
21769 * linux-low.c: Include <sys/syscall.h>.
21770 (linux_kill_one_process): Don't kill the first thread here.
21771 (linux_kill): Kill the first thread here.
21772 (kill_lwp): New function.
21773 (send_sigstop, linux_send_signal): Use it.
21774 * proc-service.c: Clean up #ifdefs.
21775 (fpregset_info): Delete.
21776 (ps_lgetregs): Update and enable implementation.
21777 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21778 implementations.
21779 * remote-utils.c (struct sym_cache, symbol_cache): New.
21780 (input_interrupt): Print a clearer message.
21781 (async_io_enabled): New variable.
21782 (enable_async_io, disable_async_io): Use it. Update comments.
21783 (look_up_one_symbol): Use the symbol cache.
21784 * thread-db.c (thread_db_look_up_symbols): New function.
21785 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21786
f6de3c42
DJ
217872004-10-16 Daniel Jacobowitz <dan@debian.org>
21788
21789 * configure.in: Test for -rdynamic.
21790 * configure: Regenerated.
21791 * Makefile (INTERNAL_LDFLAGS): New.
21792 (gdbserver, gdbreplay): Use it.
21793
2c0fc042
AC
217942004-09-02 Andrew Cagney <cagney@gnu.org>
21795
21796 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21797
075b3282
DJ
217982004-03-23 Daniel Jacobowitz <drow@mvista.com>
21799
21800 * linux-low.c (linux_wait): Clear all_processes list also.
21801
fa6a77dc
DJ
218022004-03-12 Daniel Jacobowitz <drow@mvista.com>
21803
21804 * linux-low.c: Include <errno.h>. Remove extern declaration of
21805 errno.
21806
6d782a97
DJ
218072004-03-12 Daniel Jacobowitz <drow@mvista.com>
21808
21809 * gdbreplay.c, server.h, utils.c: Update copyright years.
21810
3a7fb99b
DJ
218112004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21812
21813 * server.c (main): Print child status or termination signal from
21814 variable 'signal', not 'sig'.
21815
c3e735a6
DJ
218162004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21817
21818 * linux-low.c (linux_read_memory): Change return type to
21819 int. Check for and return error from ptrace().
21820 * target.c (read_inferior_memory): Change return type to int. Pass
21821 back return status from the_target->read_memory().
21822 * target.h (struct target_ops): Adapt *read_memory() prototype.
21823 Update comment.
21824 (read_inferior_memory): Adapt prototype.
21825 * server.c (main): Return an error packet if
21826 read_inferior_memory() returns an error.
21827
a59d1c82
DJ
218282004-03-04 Daniel Jacobowitz <drow@mvista.com>
21829
21830 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21831 Unify with other clean targets.
21832
dc3f8883
DJ
218332004-02-29 Daniel Jacobowitz <drow@mvista.com>
21834
21835 * server.c (handle_v_cont): Call set_desired_inferior.
21836
89a208da
DJ
218372004-02-29 Daniel Jacobowitz <drow@mvista.com>
21838
21839 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21840
62ea82f5
DJ
218412004-02-29 Daniel Jacobowitz <drow@mvista.com>
21842
21843 * linux-low.c (linux_wait): Unblock async I/O.
21844 (linux_resume): Block and enable async I/O.
21845 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21846 * server.h (block_async_io, unblock_async_io): Add prototypes.
21847
6910d122
DJ
218482004-02-29 Daniel Jacobowitz <drow@mvista.com>
21849
21850 * remote-utils.c (remote_open): Print a status notice after
21851 opening a TCP port.
21852 * server.c (attach_inferior): Print a status notice after
21853 attaching.
21854
218552004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21856
21857 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21858
c89dc5d4
DJ
218592004-02-26 Daniel Jacobowitz <drow@mvista.com>
21860
21861 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21862 error packet.
21863 * server.c, target.h: Update copyright years.
21864
4b8dad4a
RM
218652004-02-25 Roland McGrath <roland@redhat.com>
21866
21867 * target.h (struct target_ops): New member `read_auxv'.
21868 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21869 * linux-low.c (linux_read_auxv): New function.
21870 (linux_target_ops): Initialize `read_auxv' member to that.
21871
d7446758
JB
218722004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21873
21874 Committed by Jim Blandy <jimb@redhat.com>.
21875
21876 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21877 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21878 instead of GPR_SIZE to distiguish s390 and s390x targets.
21879
5544ad89
DJ
218802004-01-31 Daniel Jacobowitz <drow@mvista.com>
21881
21882 * linux-low.c: Update copyright year.
21883 (check_removed_breakpoint): Clear pending_is_breakpoint.
21884 (linux_set_resume_request, linux_queue_one_thread)
21885 (resume_status_pending_p): New functions.
21886 (linux_continue_one_thread): Use process->resume.
21887 (linux_resume): Only resume threads if there are no pending events.
21888 * linux-low.h (struct process_info): Add resume request
21889 pointer.
21890
2a68b70e
DJ
218912004-01-30 Daniel Jacobowitz <drow@mvista.com>
21892
21893 * regcache.c (new_register_cache): Clear the allocated register
21894 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21895
64386c31
DJ
218962003-10-13 Daniel Jacobowitz <drow@mvista.com>
21897
21898 * linux-low.c (linux_resume): Take a struct thread_resume *
21899 argument.
21900 (linux_wait): Update call.
21901 (resume_ptr): New static variable.
21902 (linux_continue_one_thread): Renamed from
21903 linux_continue_one_process. Use resume_ptr.
21904 (linux_resume): Use linux_continue_one_thread.
21905 * server.c (handle_v_cont, handle_v_requests): New functions.
21906 (myresume): New function.
21907 (main): Handle 'v' case.
21908 * target.h (struct thread_resume): New type.
21909 (struct target_ops): Change argument of "resume" to struct
21910 thread_resume *.
21911 (myresume): Delete macro.
21912
c938e9b0
L
219132003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21914
21915 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21916 (uninstall): Support DESTDIR.
21917
7f313d07
BC
21918Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21919
21920 * configure.srv: Add xscale*linux copy of arm*linux entry.
21921
3b2fc2ea
DJ
219222003-07-24 Daniel Jacobowitz <drow@mvista.com>
21923
21924 * linux-arm-low.c (arm_reinsert_addr): New function.
21925 (the_low_target): Add arm_reinsert_addr.
21926
1c0a559e
MK
219272003-07-08 Mark Kettenis <kettenis@gnu.org>
21928
21929 * mem-break.c: Remove whitespace at end of file.
21930
43d5792c
DJ
219312003-06-28 Daniel Jacobowitz <drow@mvista.com>
21932
21933 * configure.in: Check whether we need to prototype strerror.
21934 * server.h: Optionally prototype strerror.
21935 * gdbreplay.c (perror_with_name): Use strerror.
21936 * linux-low.c (linux_attach_lwp): Use strerror.
21937 * utils.c (perror_with_name): Use strerror.
21938 * config.in, configure: Regenerated.
21939
c8a86edf
DJ
219402003-06-28 Daniel Jacobowitz <drow@mvista.com>
21941
21942 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21943 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21944
73d37363
DJ
219452003-06-20 Daniel Jacobowitz <drow@mvista.com>
21946
21947 * Makefile.in (SFILES): Update.
21948 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21949 low-sun3.c: Remove files.
21950
6ad8ae5c
DJ
219512003-06-17 Daniel Jacobowitz <drow@mvista.com>
21952
21953 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21954 (linux_detach_one_process, linux_detach): New functions.
21955 (linux_target_ops): Add linux_detach.
21956 * server.c (main): Handle 'D' packet.
21957 * target.h (struct target_ops): Add "detach" member.
21958 (detach_inferior): Define.
21959
1581182a
MK
219602003-06-13 Mark Kettenis <kettenis@gnu.org>
21961
21962 From Kelley Cook <kelleycook@wideopenwest.com>:
21963 * configure.srv: Accept i[34567]86 variants.
21964
e5379b03
DJ
219652003-06-05 Daniel Jacobowitz <drow@mvista.com>
21966
21967 * linux-low.c (linux_wait_for_event): Correct comment typos.
21968 (linux_resume_one_process): Call check_removed_breakpoint.
21969 (linux_send_signal): New function.
21970 (linux_target_ops): Add linux_send_signal.
21971 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21972 of kill.
21973 * target.h (struct target_ops): Add send_signal.
21974
2ff29de4
JB
219752003-05-29 Jim Blandy <jimb@redhat.com>
21976
21977 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21978 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21979 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21980 away part of the register's value.
21981
254787d4
DJ
219822003-03-26 Daniel Jacobowitz <drow@mvista.com>
21983
21984 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21985 (linux_wait_for_event, linux_init_signals): Likewise.
21986
94e10508
DJ
219872003-03-17 Daniel Jacobowitz <drow@mvista.com>
21988
21989 * configure.in: Check for stdlib.h.
21990 * configure: Regenerated.
21991 * config.in: Regenerated.
21992
4c0711e0
DJ
219932003-01-04 Andreas Schwab <schwab@suse.de>
21994
21995 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21996
ef66e766
AC
219972003-01-02 Andrew Cagney <ac131313@redhat.com>
21998
21999 * Makefile.in: Remove obsolete code.
22000
a1358604
DJ
220012002-11-20 Daniel Jacobowitz <drow@mvista.com>
22002
22003 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22004 defined(PT_FPR0_HI).
22005
23ce3b1c
DJ
220062002-11-17 Stuart Hughes <seh@zee2.com>
22007
22008 * linux-arm-low.c (arm_num_regs): Increase.
22009 (arm_regmap): Include status register.
22010
220112002-11-17 Daniel Jacobowitz <drow@mvista.com>
22012
22013 * linux-low.c (register_addr): Remove incorrect -1 check.
22014
a9fa9f7d
DJ
220152002-08-29 Daniel Jacobowitz <drow@mvista.com>
22016
22017 * linux-low.c (linux_create_inferior): Call setpgid. Return
22018 the new PID.
22019 (unstopped_p, linux_signal_pid): Remove.
22020 (linux_target_ops): Remove linux_signal_pid.
22021 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22022 global instead of target method.
22023 * target.h (struct target_ops): Remove signal_pid. Update comment
22024 for create_inferior.
22025 * server.c (signal_pid): New variable.
22026 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22027 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22028 (attach_inferior): Set signal_pid.
22029
17574093
DJ
220302002-08-23 Daniel Jacobowitz <drow@mvista.com>
22031
22032 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22033
220342002-08-20 Jim Blandy <jimb@redhat.com>
22035
22036 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22037 default for this.
22038
220392002-08-01 Andrew Cagney <cagney@redhat.com>
22040
22041 * Makefile.in: Make chill references obsolete.
22042
220432002-07-24 Kevin Buettner <kevinb@redhat.com>
22044
22045 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22046 * configure: Regenerate.
22047 * config.in: Regenerate.
22048
220492002-07-09 David O'Brien <obrien@FreeBSD.org>
22050
22051 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22052 (perror_with_name, remote_close, remote_open, expect, play): Static.
22053
220542002-07-04 Michal Ludvig <mludvig@suse.cz>
22055
4b8dad4a 22056 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22057 byte offsets instead of an array of indexes.
22058 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22059
220602002-06-13 Daniel Jacobowitz <drow@mvista.com>
22061
22062 * regcache.c: Add comment.
22063
220642002-06-11 Daniel Jacobowitz <drow@mvista.com>
22065
22066 * thread-db.c: New file.
22067 * proc-service.c: New file.
22068 * acinclude.m4: New file.
22069 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22070 proc-service.o, and thread-db.o.
22071 (linux-low.o): Add USE_THREAD_DB.
22072 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22073 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22074 * aclocal.m4: Regenerated.
22075 * config.in: Regenerated.
22076 * configure: Regenerated.
22077 * configure.in: Check for proc_service.h, sys/procfs.h,
22078 thread_db.h, and linux/elf.h headrs.
22079 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22080 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22081 Check for -lthread_db and thread support.
22082 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22083 PowerPC, and SuperH.
22084 * i387-fp.c: Constify arguments.
22085 * i387-fp.h: Likewise.
22086 * inferiors.c: (struct thread_info): Renamed from
22087 `struct inferior_info'. Remove PID member. Use generic inferior
22088 list header. All uses updated.
22089 (inferiors, signal_pid): Removed.
22090 (all_threads): New variable.
22091 (get_thread): Define.
22092 (add_inferior_to_list): New function.
22093 (for_each_inferior): New function.
22094 (change_inferior_id): New function.
22095 (add_inferior): Removed.
22096 (remove_inferior): New function.
22097 (add_thread): New function.
22098 (free_one_thread): New function.
22099 (remove_thread): New function.
22100 (clear_inferiors): Use for_each_inferior and free_one_thread.
22101 (find_inferior): New function.
22102 (find_inferior_id): New function.
22103 (inferior_target_data): Update argument type.
22104 (set_inferior_target_data): Likewise.
22105 (inferior_regcache_data): Likewise.
22106 (set_inferior_regcache_data): Likewise.
22107 * linux-low.c (linux_bp_reinsert): Remove.
22108 (all_processes, stopping_threads, using_thrads)
22109 (struct pending_signals, debug_threads, pid_of): New.
22110 (inferior_pid): Replace with macro.
22111 (struct inferior_linux_data): Remove.
22112 (get_stop_pc, add_process): New functions.
22113 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22114 Use add_process and add_thread.
22115 (linux_attach_lwp): New function, based on old linux_attach. Use
22116 add_process and add_thread. Set stop_expected for new threads.
22117 (linux_attach): New function.
22118 (linux_kill_one_process): New function.
22119 (linux_kill): Kill all LWPs.
22120 (linux_thread_alive): Use find_inferior_id.
22121 (check_removed_breakpoints, status_pending_p): New functions.
22122 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22123 Update. Use WNOHANG. Wait for cloned processes also. Update process
22124 struct for the found process.
22125 (linux_wait_for_event): New function.
22126 (linux_wait): Use it. Support LWPs.
22127 (send_sigstop, wait_for_sigstop, stop_all_processes)
22128 (linux_resume_one_process, linux_continue_one_process): New functions.
22129 (linux_resume): Support LWPs.
22130 (REGISTER_RAW_SIZE): Remove.
22131 (fetch_register): Use register_size instead. Call supply_register.
22132 (usr_store_inferior_registers): Likewise. Call collect_register.
22133 Fix recursive case.
22134 (regsets_fetch_inferior_registers): Improve error message.
22135 (regsets_store_inferior_registers): Add debugging.
22136 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22137 (unstopped_p, linux_signal_pid): New functions.
22138 (linux_target_ops): Add linux_signal_pid.
22139 (linux_init_signals): New function.
22140 (initialize_low): Call it. Initialize using_threads.
22141 * regcache.c (inferior_regcache_data): Add valid
22142 flag.
22143 (get_regcache): Fetch registers lazily. Add fetch argument
22144 and update all callers.
22145 (regcache_invalidate_one, regcache_invalidate): New
22146 functions.
22147 (new_register_cache): Renamed from create_register_cache.
22148 Return the new regcache.
22149 (free_register_cache): Change argument to a void *.
22150 (registers_to_string, registers_from_string): Call get_regcache
22151 with fetch flag set.
22152 (register_data): Make static. Pass fetch flag to get_regcache.
22153 (supply_register): Call get_regcache with fetch flag clear.
22154 (collect_register): Call get_regcache with fetch flag set.
22155 (collect_register_as_string): New function.
22156 * regcache.h: Update.
22157 * remote-utils.c (putpkt): Flush after debug output and use
22158 stderr.
22159 Handle input interrupts while waiting for an ACK.
22160 (input_interrupt): Use signal_pid method.
22161 (getpkt): Flush after debug output and use stderr.
22162 (outreg): Use collect_register_as_string.
22163 (new_thread_notify, dead_thread_notify): New functions.
22164 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22165 and general_thread.
22166 (look_up_one_symbol): Flush after debug output.
22167 * server.c (step_thread, server_waiting): New variables.
22168 (start_inferior): Don't use signal_pid. Update call to mywait.
22169 (attach_inferior): Update call to mywait.
22170 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22171 (main): Don't fetch/store registers explicitly. Use
22172 set_desired_inferior. Support proposed ``Hs'' packet. Update
22173 calls to mywait.
22174 * server.h: Update.
22175 (struct inferior_list, struct_inferior_list_entry): New.
22176 * target.c (set_desired_inferior): New.
22177 (write_inferior_memory): Constify.
22178 (mywait): New function.
22179 * target.h: Update.
22180 (struct target_ops): New signal_pid method.
22181 (mywait): Removed macro, added prototype.
22182
22183 * linux-low.h (regset_func): Removed.
22184 (regset_fill_func, regset_store_func): New.
22185 (enum regset_type): New.
22186 (struct regset_info): Add type field. Use new operation types.
22187 (struct linux_target_ops): stop_pc renamed to get_pc.
22188 Add decr_pc_after_break and breakpoint_at.
22189 (get_process, get_thread_proess, get_process_thread)
22190 (strut process_info, all_processes, linux_attach_lwp)
22191 (thread_db_init): New.
22192
22193 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22194 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22195 (the_low_target): Add new members.
22196 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22197 (i386_store_fpxregset): Constify.
22198 (target_regsets): Add new kind identifier.
22199 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22200 (i386_set_pc): Add debugging.
22201 (i386_breakpoint_at): New function.
22202 (the_low_target): Add new members.
22203 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22204 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22205 (mips_breakpoint_at): New.
22206 (the_low_target): Add new members.
22207 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22208 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22209 (the_low_target): Add new members.
22210 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22211 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22212 (the_low_target): Add new members.
22213 * linux-x86-64-low.c (target_regsets): Add new kind
22214 identifier.
22215
222162002-05-15 Daniel Jacobowitz <drow@mvista.com>
22217
22218 From Martin Pool <mbp@samba.org>:
22219 * server.c (gdbserver_usage): New function.
22220 (main): Call it.
22221
222222002-05-14 Daniel Jacobowitz <drow@mvista.com>
22223
22224 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22225 stop_at -> stop_pc.
22226
222272002-05-04 Andrew Cagney <ac131313@redhat.com>
22228
22229 * Makefile.in: Remove obsolete code.
22230
222312002-04-24 Michal Ludvig <mludvig@suse.cz>
22232
22233 * linux-low.c (regsets_fetch_inferior_registers),
22234 (regsets_store_inferior_registers): Removed cast to int from
22235 ptrace() calls.
22236 * regcache.h: Added declaration of struct inferior_info.
22237
222382002-04-20 Daniel Jacobowitz <drow@mvista.com>
22239
22240 * inferiors.c (struct inferior_info): Add regcache_data.
22241 (add_inferior): Call create_register_cache.
22242 (clear_inferiors): Call free_register_cache.
22243 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22244 * regcache.c (struct inferior_regcache_data): New.
22245 (registers): Remove.
22246 (get_regcache): New function.
22247 (create_register_cache, free_register_cache): New functions.
22248 (set_register_cache): Don't initialize the register cache here.
22249 (registers_to_string, registers_from_string, register_data): Call
22250 get_regcache.
22251 * regcache.h: Add prototypes.
22252 * server.h: Likewise.
22253
222542002-04-20 Daniel Jacobowitz <drow@mvista.com>
22255
22256 * mem-break.c: New file.
22257 * mem-break.h: New file.
22258 * Makefile.in: Add mem-break.o rule; update server.h
22259 dependencies.
22260 * inferiors.c (struct inferior_info): Add target_data
22261 member.
22262 (clear_inferiors): Free target_data member if set.
22263 (inferior_target_data, set_inferior_target_data): New functions.
22264 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22265 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22266 * linux-low.c (linux_bp_reinsert): New variable.
22267 (struct inferior_linux_data): New.
22268 (linux_create_inferior): Use set_inferior_target_data.
22269 (linux_attach): Likewise. Call add_inferior.
22270 (linux_wait_for_one_inferior): New function.
22271 (linux_wait): Call it.
22272 (linux_write_memory): Add const.
22273 (initialize_low): Call set_breakpoint_data.
22274 * linux-low.h (struct linux_target_ops): Add breakpoint
22275 handling members.
22276 * server.c (attach_inferior): Remove extra add_inferior
22277 call.
22278 * server.h: Include mem-break.h. Update inferior.c
22279 prototypes.
22280 * target.c (read_inferior_memory)
22281 (write_inferior_memory): New functions.
22282 * target.h (read_inferior_memory)
22283 (write_inferior_memory): Change macros to prototypes.
22284 (struct target_ops): Update comments. Add const to write_memory
22285 definition.
22286
222872002-04-11 Daniel Jacobowitz <drow@mvista.com>
22288
22289 * linux-low.c (usr_store_inferior_registers): Support
22290 registers which are allowed to fail to store.
22291 * linux-low.h (linux_target_ops): Likewise.
22292 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22293 (ppc_cannot_store_register): FPSCR may not be storable.
22294
222952002-04-09 Daniel Jacobowitz <drow@mvista.com>
22296
22297 * server.h: Include <string.h> if HAVE_STRING_H.
22298 * ChangeLog: Correct paths in last ChangeLog entry.
22299
223002002-04-09 Daniel Jacobowitz <drow@mvista.com>
22301
22302 * linux-low.h: Remove obsolete prototypes.
22303 (struct linux_target_ops): New.
22304 (extern the_low_target): New.
22305 * linux-low.c (num_regs, regmap): Remove declarations.
22306 (register_addr): Use the_low_target explicitly.
22307 (fetch_register): Likewise.
22308 (usr_fetch_inferior_registers): Likewise.
22309 (usr_store_inferior_registers): Likewise.
22310 * linux-arm-low.c (num_regs): Remove.
22311 (arm_num_regs): Define.
22312 (arm_regmap): Renamed from regmap, made static.
22313 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22314 made static.
22315 (arm_cannot_store_register): Renamed from cannot_store_register,
22316 made static.
22317 (the_low_target): New.
22318 * linux-i386-low.c (num_regs): Remove.
22319 (i386_num_regs): Define.
22320 (i386_regmap): Renamed from regmap, made static.
22321 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22322 made static.
22323 (i386_cannot_store_register): Renamed from cannot_store_register,
22324 made static.
22325 (the_low_target): New.
22326 * linux-ia64-low.c (num_regs): Remove.
22327 (ia64_num_regs): Define.
22328 (ia64_regmap): Renamed from regmap, made static.
22329 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22330 made static.
22331 (ia64_cannot_store_register): Renamed from cannot_store_register,
22332 made static.
22333 (the_low_target): New.
22334 * linux-m68k-low.c (num_regs): Remove.
22335 (m68k_num_regs): Define.
22336 (m68k_regmap): Renamed from regmap, made static.
22337 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22338 made static.
22339 (m68k_cannot_store_register): Renamed from cannot_store_register,
22340 made static.
22341 (the_low_target): New.
22342 * linux-mips-low.c (num_regs): Remove.
22343 (mips_num_regs): Define.
22344 (mips_regmap): Renamed from regmap, made static.
22345 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22346 made static.
22347 (mips_cannot_store_register): Renamed from cannot_store_register,
22348 made static.
22349 (the_low_target): New.
22350 * linux-ppc-low.c (num_regs): Remove.
22351 (ppc_num_regs): Define.
22352 (ppc_regmap): Renamed from regmap, made static.
22353 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22354 made static.
22355 (ppc_cannot_store_register): Renamed from cannot_store_register,
22356 made static.
22357 (the_low_target): New.
22358 * linux-s390-low.c (num_regs): Remove.
22359 (s390_num_regs): Define.
22360 (s390_regmap): Renamed from regmap, made static.
22361 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22362 made static.
22363 (s390_cannot_store_register): Renamed from cannot_store_register,
22364 made static.
22365 (the_low_target): New.
22366 * linux-sh-low.c (num_regs): Remove.
22367 (sh_num_regs): Define.
22368 (sh_regmap): Renamed from regmap, made static.
22369 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22370 made static.
22371 (sh_cannot_store_register): Renamed from cannot_store_register,
22372 made static.
22373 (the_low_target): New.
22374 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22375 (the_low_target): New.
22376
223772002-04-09 Daniel Jacobowitz <drow@mvista.com>
22378
22379 * Makefile.in: Add stamp-h target.
22380 * configure.in: Create stamp-h.
22381 * configure: Regenerated.
22382
223832002-04-09 Daniel Jacobowitz <drow@mvista.com>
22384
22385 * inferiors.c: New file.
22386 * target.c: New file.
22387 * target.h: New file.
22388 * Makefile.in: Add target.o and inferiors.o. Update
22389 dependencies.
22390 * linux-low.c (inferior_pid): New static variable,
22391 moved from server.c.
22392 (linux_create_inferior): Renamed from create_inferior.
22393 Call add_inferior. Return 0 on success instead of a PID.
22394 (linux_attach): Renamed from myattach.
22395 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22396 (linux_thread_alive): Renamed from mythread_alive.
22397 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22398 child dies.
22399 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22400 (regsets_store_inferior_registers): Correct error message.
22401 Add missing ``return 0''.
22402 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22403 (linux_store_registers): Renamed from store_inferior_registers.
22404 (linux_read_memory): Renamed from read_inferior_memory.
22405 (linux_write_memory): Renamed from write_inferior_memory.
22406 (linux_target_ops): New structure.
22407 (initialize_low): Call set_target_ops ().
22408 * remote-utils.c (unhexify): New function.
22409 (hexify): New function.
22410 (input_interrupt): Send signals to ``signal_pid''.
22411 * server.c (inferior_pid): Remove.
22412 (start_inferior): Update create_inferior call.
22413 (attach_inferior): Call add_inferior.
22414 (handle_query): New function.
22415 (main): Call handle_query for `q' packets.
22416 * server.h: Include "target.h". Remove obsolete prototypes.
22417 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22418
224192002-04-09 Daniel Jacobowitz <drow@mvista.com>
22420
22421 * Makefile.in: Add WARN_CFLAGS. Update configury
22422 dependencies.
22423 * configure.in: Check for <string.h>
22424 * configure: Regenerate.
22425 * config.in: Regenerate.
22426 * gdbreplay.c: Include needed system headers.
22427 (remote_open): Remove strchr prototype.
22428 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22429 * regcache.c (supply_register): Change buf argument to const void *.
22430 (supply_register_by_name): Likewise.
22431 (collect_register): Change buf argument to void *.
22432 (collect_register_by_name): Likewise.
22433 * regcache.h: Add missing prototypes.
22434 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22435 * server.c (handle_query): New function.
22436 (attached): New static variable, moved out of main.
22437 (main): Quiet longjmp clobber warnings.
22438 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22439 * utils.c (error): Remove NORETURN.
22440 (fatal): Likewise.
This page took 3.235427 seconds and 4 git commands to generate.