Update year range in copyright notice of binutils files
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
19007d95
LM
12020-12-16 Luis Machado <luis.machado@linaro.org>
2
3 * linux-aarch64-low.cc (address_significant): New function.
4 (aarch64_target::low_stopped_data_address): Handle the TBI.
5
96648494
AB
62020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * Makefile.in (IPA_LIB): Include libiberty library.
9
81fdd7ac
AB
102020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * server.cc (gdbserver_usage): Add missing option to usage text.
13 (gdbserver_show_disableable): Likewise.
14
dda83cd7
SM
152020-11-02 Simon Marchi <simon.marchi@efficios.com>
16
17 * ax.cc: Fix indentation.
18 * dll.cc: Fix indentation.
19 * inferiors.h: Fix indentation.
20 * linux-low.cc: Fix indentation.
21 * linux-nios2-low.cc: Fix indentation.
22 * linux-ppc-ipa.cc: Fix indentation.
23 * linux-ppc-low.cc: Fix indentation.
24 * linux-x86-low.cc: Fix indentation.
25 * linux-xtensa-low.cc: Fix indentation.
26 * regcache.cc: Fix indentation.
27 * server.cc: Fix indentation.
28 * tracepoint.cc: Fix indentation.
29
19dd0ae5
SM
302020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
33 AC_LANG_PROGRAM.
34 * configure: Re-generate.
35
b6fb30ed
SM
362020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
37
38 * configure: Re-generate.
864ca435
SM
39
402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
41
42 * configure: Re-generate.
b9442ec1
SM
43
442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * configure: Re-generate.
b6fb30ed 47
5164c117
SM
482020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
49
50 * configure: Re-generate.
51
7e8c7130
SM
522020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * configure.ac: Modernize.
55 * configure: Re-generate.
56
91e1a0ed
SM
572020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
58
59 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
60 AC_CANONICAL_SYSTEM.
61 * configure: Re-generate.
62
d744f0f9
PA
632020-10-26 Pedro Alves <pedro@palves.net>
64
65 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
66 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
67 explicit type.
68
006811bc
SM
692020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
70
71 * acinclude.m4: Update ptrace.m4 path.
72
92a048fd
SM
732020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
74
75 * config.in: Re-generate.
76 * configure: Re-generate.
77
4dbe16c8
SM
782020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
79
80 * server.cc (handle_general_set): Don't use sprintf with
81 argument overlapping buffer.
82
a9b45cb7
TT
832020-10-20 Tom Tromey <tromey@adacore.com>
84
85 PR gdb/26742:
86 * inferiors.cc (remove_thread): Clear current_thread before
87 freeing the thread.
88
b07993f6
KR
892020-10-13 Kamil Rytarowski <n54@gmx.com>x
90
91 * netbsd-low.cc (netbsd_tdesc): Remove.
92 (netbsd_add_process): Likewise.
93 (netbsd_process_target::create_inferior): Update.
94
bbb826f5
AB
952020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
96
97 * linux-arc-low.cc (arc_linux_read_description): Release the
98 unique_ptr returned from arc_create_target_description.
99
361cb219
AB
1002020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
101
102 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
103 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
104
51a948fd
AB
1052020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
106
107 * linux-low.cc (linux_process_target::handle_extended_wait):
108 Release the unique_ptr returned from allocate_target_description.
109 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
110 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
111 (tdesc_i386_linux_no_xml): Change type.
112 (x86_linux_read_description): Borrow pointer from unique_ptr
113 object.
114 (x86_target::get_ipa_tdesc_idx): Likewise.
115 (initialize_low_arch): Likewise.
116 * tdesc.cc (allocate_target_description): Update return type.
117
60b74662
TT
1182020-10-07 Tom Tromey <tromey@adacore.com>
119
120 * server.cc (handle_search_memory): Remove dead code.
121
55b10d89
TT
1222020-10-07 Tom Tromey <tromey@adacore.com>
123
124 * server.cc (handle_search_memory_1): Remove.
125 (handle_search_memory): Use simple_search_memory.
126
a038ffd8
SM
1272020-10-07 Simon Marchi <simon.marchi@efficios.com>
128
129 * Makefile.in (COMPILE): Add CXXFLAGS.
130 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
131 (gdbserver$(EXEEXT)): Add CXXFLAGS.
132 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
133 ($(IPA_LIB)): Add CXXFLAGS.
134 (IPAGENT_COMPILE): Add CXXFLAGS.
135
bbe90b5d 1362020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
137
138 * configure.srv: Support ARC architecture.
139 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
140 * linux-arc-low.cc: New file.
141
48491055
KR
1422020-10-07 Kamil Rytarowski <n54@gmx.com>
143
144 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
145 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
146 (netbsd_process_target::qxfer_libraries_svr4): Update.
147
2be01f63
KR
1482020-10-07 Kamil Rytarowski <n54@gmx.com>
149
150 * netbsd-low.cc: Fix whitespace formatting.
151 * netbsd-amd64-low.cc: Likewise.
152
91e5e8db
KR
1532020-10-07 Kamil Rytarowski <n54@gmx.com>
154
155 * netbsd-low.cc (netbsd_process_target::read_memory)
156 (netbsd_process_target::write_memory): Update.
157
9529c852
KR
1582020-10-07 Kamil Rytarowski <n54@gmx.com>
159
160 * netbsd-aarch64-low.cc: Add.
161 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
162 * configure.srv: Add aarch64*-*-netbsd*.
163
981b570a
SV
1642020-10-06 Shahab Vahedi <shahab@synopsys.com>
165
166 * regcache.cc (register_data): Remove unused "fetch" argument.
167
6b01403b
SM
1682020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * server.cc (handle_monitor_command): Handle "set
171 debug-event-loop".
172 (captured_main): Handle "--debug-event-loop".
173 (monitor_show_help): Mention new setting.
174 (gdbserver_usage): Mention new flag.
175
2554f6f5
SM
1762020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * linux-low.cc (linux_process_target::async): Pass name to
179 add_file_handler.
180 * remote-utils.cc (handle_accept_event): Likewise.
181 (remote_open): Likewise.
182
8b667fae
KR
1832020-10-01 Kamil Rytarowski <n54@gmx.com>
184
185 * netbsd-i386-low.cc: Add.
186 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
187 * configure.srv: Add i[34567]86-*-netbsd*.
188
15397b0e
KR
1892020-10-01 Kamil Rytarowski <n54@gmx.com>
190
191 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
192 (netbsd_target_regsets): Now const.
193 (the_low_target): Remove.
194 (class netbsd_amd64_target, the_netbsd_amd64_target)
195 (the_netbsd_target): Add.
196 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
197 low_arch_setup ().
198 (netbsd_process_target::fetch_registers)
199 (netbsd_process_target::store_registers, initialize_low): Update.
200 (the_netbsd_target): Remove.
201 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
202 (the_low_target, netbsd_tdesc): Remove.
203 (netbsd_process_target::get_regs_info)
204 (netbsd_process_target::low_arch_setup): Add.
205
99bb393f
HD
2062020-09-23 Hannes Domani <ssbssa@yahoo.de>
207
208 * win32-low.cc: Remove local wow64_process variable.
209 * win32-low.h: Remove local wow64_process variable.
210
b60cea74
TT
2112020-09-18 Tom Tromey <tromey@adacore.com>
212
213 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
214 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
215 (netbsd_process_target::wait): Change type of target_options.
216 * win32-low.h (class win32_process_target) <wait>: Update.
217 * win32-low.cc (win32_process_target::wait): Update.
218 * target.h (class process_stratum_target) <wait>: Update.
219 (mywait): Update.
220 * target.cc (mywait, target_wait): Change type of "options".
221 * linux-low.h (class linux_process_target) <wait, wait_1>:
222 Update.
223 * linux-low.cc (linux_process_target::wait)
224 (linux_process_target::wait_1): Update.
225
db92ac45
TT
2262020-09-15 Tom Tromey <tromey@adacore.com>
227
228 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
229 (xmltarget_amd64_linux_no_xml): Now arrays.
230
27087b7f
TT
2312020-09-14 Tom Tromey <tromey@adacore.com>
232
233 * tracepoint.cc (eval_result_names): Now const.
234 * ax.cc (gdb_agent_op_names): Now const.
235
62ba5048
KR
2362020-09-10 Kamil Rytarowski <n54@gmx.com>
237
238 * netbsd-low.cc: Add.
239 * netbsd-low.h: Likewise.
240 * netbsd-amd64-low.cc: Likewise.
241 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
242 "netbsd-amd64-low.cc".
243 * configure.srv: Add x86_64-*-netbsd*.
244
ece5bc8a
SM
2452020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
246
247 * server.cc (captured_main): Accept multiple `--selftest=`
248 options. Pass all `--selftest=` arguments to run_tests.
249
c8693053
RO
2502020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
251
252 * configure, config.in: Regenerate.
253
05a6b8c2
EZ
2542020-07-26 Eli Zaretskii <eliz@gnu.org>
255
256 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
257 When checking whether socklen_t type is defined, use ws2tcpip.h if
258 it is available and sys/socket.h isn't.
259 * configure: Regenerate.
260 * config.in: Regenerate.
261
028a4603
PA
2622020-07-22 Pedro Alves <pedro@palves.net>
263
264 * inferiors.cc (switch_to_process): New, moved here from
265 thread-db.cc, and made extern.
266 * inferiors.h (switch_to_process): Declare.
267 * server.cc: Include "gdbsupport/scoped_restore.h".
268 (handle_qxfer_threads_proper): Now returns bool. Prepare to
269 access memory around target calls.
270 (handle_qxfer_threads): Handle errors.
271 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
272
05c309a8
SM
2732020-07-21 Simon Marchi <simon.marchi@efficios.com>
274
275 * linux-low.cc (stopped_pids): Make static.
276
0e267416
AB
2772020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
278
279 * tdesc.cc (allocate_target_description): Add header comment.
280 (target_desc_deleter::operator()): New function.
281 * tdesc.h (struct target_desc): Declare as final.
282
b315b67d
SM
2832020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * server.cc (handle_query): Use std::vector of
286 std::string for `qsupported` vector. Use separate
287 vector for unknowns.
288 * target.h (class process_stratum_target) <process_qsupported>:
289 Change parameters to array_view of const char *.
290 (target_process_qsupported): Remove `count` parameter.
291 * target.cc (process_stratum_target::process_qsupported): Change
292 parameters to array_view of const char *.
293 * linux-x86-low.cc (class x86_target) <process_qsupported>:
294 Likewise.
295
f638ed73
TV
2962020-06-29 Tom de Vries <tdevries@suse.de>
297
298 * ax.h: Include gdbsupport/debug_agent.h.
299
fbf42f4e
AB
3002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
301
302 * tdesc.cc (struct tdesc_compatible_info): New struct.
303 (tdesc_compatible_info_list): New function.
304 (tdesc_compatible_info_arch_name): New function.
305
013e3554
TBA
3062020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
307
308 Use std::list to stop pending signal instead of manually-created
309 linked list.
310 * linux-low.h: Include <list>.
311 (struct pending_signal): Move here from linux-low.cc.
312 (struct lwp_info) <pending_signals>
313 <pending_signals_to_report>: Update the type.
314 * linux-low.cc (struct pending_signals): Remove.
315 (linux_process_target::delete_lwp)
316 (linux_process_target::add_lwp)
317 (enqueue_one_deferred_signal)
318 (dequeue_one_deferred_signal)
319 (enqueue_pending_signal)
320 (linux_process_target::resume_one_lwp_throw)
321 (linux_process_target::thread_needs_step_over)
322 (linux_process_target::resume_one_thread)
323 (linux_process_target::proceed_one_lwp): Update the use of pending
324 signal list.
325
7d458ea5
SM
3262020-06-17 Simon Marchi <simon.marchi@efficios.com>
327
328 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
329 Remove.
330
84b300de
SM
3312020-06-12 Simon Marchi <simon.marchi@efficios.com>
332
333 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
334 * configure.srv: Remove mingw32ce cases.
335 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
336 * win32-low.h (to_back_slashes): Remove.
337 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
338
96c16e2b
SM
3392020-06-12 Simon Marchi <simon.marchi@efficios.com>
340
341 * Makefile.in (SFILES): linux-tile-low.cc.
342 * configure.srv: Remove tilegx case.
343 * linux-tile-low.cc: Remove.
344
bd1467ae
SM
3452020-06-12 Simon Marchi <simon.marchi@efficios.com>
346
347 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
348 * configure.srv: Remove m32r case.
349 * linux-m32r-low.cc: Remove.
350
7b46bf6f
SM
3512020-06-12 Simon Marchi <simon.marchi@efficios.com>
352
353 * Makefile.in (SFILES): Remove linux-cris-low.c.
354 * configure.srv: Remove cris cases.
355 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
356
1fa29f56
SM
3572020-06-12 Simon Marchi <simon.marchi@efficios.com>
358
359 * Makefile.in (SFILES): Remove linux-bfin-low.c.
360 * configure.srv: Remove bfin case.
361 * linux-bfin-low.cc: Remove.
362 * linux-low.cc: Remove BFIN-conditional code.
363
613f149a
SM
3642020-06-12 Simon Marchi <simon.marchi@efficios.com>
365
366 * configure: Re-generate.
367 * configure.ac: Remove srv_qnx test.
368 * configure.srv: Remove nto case.
369 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
370 * remote-utils.c: Remove __QNX__-guarded code.
371
fdb95bf5
SM
3722020-06-12 Simon Marchi <simon.marchi@efficios.com>
373
374 * configure: Re-generate.
375 * configure.ac: Remove srv_lynxos test.
376 * configure.srv: Remove lynxos cases.
377 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
378 Remove.
379
c00094dc
SM
3802020-06-12 Simon Marchi <simon.marchi@efficios.com>
381
382 * README: Fix a few outdated or incoherent things.
383
6479bf85
HD
3842020-05-27 Hannes Domani <ssbssa@yahoo.de>
385
386 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
387 (win32_clear_inferiors): Use open_process_used.
388 (get_child_debug_event): Likewise.
389
bea571eb
MW
3902020-05-25 Michael Weghorn <m.weghorn@posteo.de>
391
392 PR gdbserver/25893
393 * linux-low.cc (linux_process_target::create_inferior),
394 lynx-low.cc (lynx_process_target::create_inferior),
395 win32-low.cc (win32_process_target::create_inferior): Use
396 construct_inferior_arguments instead of stringify_argv
397 to get string representation which properly escapes
398 special characters.
399 * server.cc (handle_v_run): Just pass empty program arg
400 as such, since any further processing is now handled via
401 construct_inferior_arguments.
402
ace6b919
MW
4032020-05-25 Michael Weghorn <m.weghorn@posteo.de>
404
405 * nto-low.cc (nto_process_target::create_inferior): Pass
406 argv to spawnp function as char **.
407
b69ca137
MW
4082020-05-25 Michael Weghorn <m.weghorn@posteo.de>
409
410 * server.cc (captured_main), (handle_v_run): No longer
411 insert extra NULL element to args vector.
412
51e2cfa2
PA
4132020-05-23 Pedro Alves <palves@redhat.com>
414
415 * gdb-safe-ctype.h: New.
416
8bbf0394
TBA
4172020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
418
419 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
420 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
421 (ia64_target::low_breakpoint_at): Ditto.
422
01370779
HD
4232020-05-15 Hannes Domani <ssbssa@yahoo.de>
424
425 * win32-i386-low.cc (i386_supports_z_point_type): Handle
426 Z_PACKET_HW_BP z_type.
427 (i386_insert_point): Handle raw_bkpt_type type.
428 (i386_remove_point): Likewise.
429
7d186bc0
HD
4302020-04-30 Hannes Domani <ssbssa@yahoo.de>
431
432 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
433 Add arch/i386.o.
434 * win32-arm-low.cc (arm_num_regs): New function.
435 (struct win32_target_ops): Use arm_num_regs.
436 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
437 processes.
438 (i386_get_thread_context): Likewise.
439 (i386_prepare_to_resume): Likewise.
440 (i386_thread_added): Likewise.
441 (i386_single_step): Likewise.
442 (i386_fetch_inferior_register): Likewise.
443 (i386_store_inferior_register): Likewise.
444 (i386_arch_setup): Likewise.
445 (i386_win32_num_regs): New function.
446 (struct win32_target_ops): Use i386_win32_num_regs.
447 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
448 processes.
449 (win32_require_context): Likewise.
450 (child_add_thread): Likewise.
451 (do_initial_child_stuff): Likewise.
452 (continue_one_thread): Likewise.
453 (win32_process_target::resume): Likewise.
454 (load_psapi): Likewise.
455 (win32_add_all_dlls): Likewise.
456 (maybe_adjust_pc): Likewise.
457 (win32_process_target::qxfer_siginfo): Likewise.
458 (initialize_low): Likewise.
459 * win32-low.h (struct win32_target_ops): Change num_regs to
460 callback function.
461
1eb39914
SM
4622020-04-27 Simon Marchi <simon.marchi@efficios.com>
463
464 * configure.ac: Remove check for fs_base/gs_base in
465 user_regs_struct.
466 * configure: Re-generate.
467 * config.in: Re-generate.
468 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
469 x86_store_gregset): Adjust.
470
51ac8e22
HD
4712020-04-22 Hannes Domani <ssbssa@yahoo.de>
472
473 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
474 comparison.
475
a010605f
TT
4762020-04-16 Tom Tromey <tromey@adacore.com>
477
478 * win32-low.cc (windows_nat::handle_access_violation): New
479 function.
480
e2275c6e
SM
4812020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
482
483 * win32-low.cc (get_child_debug_event): Fix format string warning.
484
73944e9f
TT
4852020-04-13 Tom Tromey <tom@tromey.com>
486
487 * server.h (gdb_fildes_t): Remove typedef.
488 * remote-utils.c (remote_desc, list_desc): Now int.
489 (INVALID_DESCRIPTOR): Remove.
490 (gdb_connected, remote_close)
491 (check_remote_input_interrupt_request): Update.
492 * utils.h (pfildes): Don't declare.
493 * utils.c (pfildes): Remove.
494
55d7aec8
TT
4952020-04-13 Tom Tromey <tom@tromey.com>
496
497 * server.h (handle_serial_event, handle_target_event): Update.
498 * server.c: Don't call initialize_event_loop.
499 (keep_processing_events): New global.
500 (handle_serial_event): Return void. Set keep_processing_events.
501 (handle_target_event): Return void.
502 (start_event_loop): Move from event-loop.c. Rewrite.
503 * remote-utils.c (handle_accept_event): Return void.
504 (reset_readchar): Use delete_timer.
505 (process_remaining): Return void.
506 (reschedule): Use create_timer.
507 * event-loop.h: Remove.
508 * event-loop.cc: Remove.
509 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
510
e487f994
TT
5112020-04-13 Tom Tromey <tom@tromey.com>
512
513 * server.c (invoke_async_signal_handlers)
514 (check_async_event_handlers, flush_streams, gdb_select): New
515 functions.
516
8ae8e197
TT
5172020-04-13 Tom Tromey <tom@tromey.com>
518
519 * configure: Rebuild.
520 * config.in: Rebuild.
521
360ad8b3
TT
5222020-04-08 Tom Tromey <tromey@adacore.com>
523
524 PR gdb/22992
525 * win32-low.c (child_continue): Call matching_pending_stop.
526 (get_child_debug_event): Call fetch_pending_stop. Push pending
527 stop when needed.
528
523d4f80
TT
5292020-04-08 Tom Tromey <tromey@adacore.com>
530
531 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
532 (win32_process_target::supports_stopped_by_sw_breakpoint):
533 Declare.
534 * win32-low.c (win32_supports_z_point_type): Always handle
535 Z_PACKET_SW_BP.
536 (win32_insert_point): Call insert_memory_breakpoint when needed.
537 (win32_remove_point): Call remove_memory_breakpoint when needed.
538 (win32_process_target::stopped_by_sw_breakpoint)
539 (win32_process_target::supports_stopped_by_sw_breakpoint): New
540 methods.
541 (win32_target_ops): Update.
542 (maybe_adjust_pc): New function.
543 (win32_wait): Call maybe_adjust_pc.
544
e54e5929
TT
5452020-04-08 Tom Tromey <tromey@adacore.com>
546
547 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
548 field.
549 * win32-i386-low.c (the_low_target): Update.
550 * win32-arm-low.c (the_low_target): Update.
551
d6225aff
TT
5522020-04-08 Tom Tromey <tromey@adacore.com>
553
554 * win32-low.h (win32_process_target::read_pc)
555 (win32_process_target::write_pc): Declare.
556 * win32-low.c (win32_process_target::read_pc)
557 (win32_process_target::write_pc): New methods.
558 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
559 functions.
560 (the_low_target): Update.
561 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
562 functions.
563 (the_low_target): Update.
564
2c1d95e8
TT
5652020-04-08 Tom Tromey <tromey@adacore.com>
566
567 * win32-low.c (win32_kill, get_child_debug_event): Use
568 wait_for_debug_event.
569
e758e19c
TT
5702020-04-08 Tom Tromey <tromey@adacore.com>
571
572 * win32-low.c (child_continue): Call continue_last_debug_event.
573
8d30e395
TT
5742020-04-08 Tom Tromey <tromey@adacore.com>
575
576 * win32-low.c (handle_exception): Remove.
577 (windows_nat::handle_ms_vc_exception): New function.
578 (get_child_debug_event): Add "continue_status" parameter.
579 Update.
580 (win32_wait): Update.
581
a816ba18
TT
5822020-04-08 Tom Tromey <tromey@adacore.com>
583
584 * win32-low.c (windows_nat::handle_load_dll): Rename from
585 handle_load_dll. No longer static.
586 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
587 No longer static.
588
d41b524f
TT
5892020-04-08 Tom Tromey <tromey@adacore.com>
590
591 * win32-low.c (handle_output_debug_string): Add parameter. Change
592 return type.
593 (win32_kill, get_child_debug_event): Update.
594
3c76026d
TT
5952020-04-08 Tom Tromey <tromey@adacore.com>
596
597 * win32-low.c (current_process_handle, current_process_id)
598 (main_thread_id, last_sig, current_event, siginfo_er): Move to
599 nat/windows-nat.c.
600
9d8679cc
TT
6012020-04-08 Tom Tromey <tromey@adacore.com>
602
603 * win32-low.c (get_image_name): Remove.
604 (handle_load_dll): Update.
605
28688adf
TT
6062020-04-08 Tom Tromey <tromey@adacore.com>
607
608 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
609 No longer static. Change parameters.
610 (child_add_thread, child_fetch_inferior_registers)
611 (child_store_inferior_registers, win32_resume)
612 (win32_get_tib_address): Update.
613
4834dad0
TT
6142020-04-08 Tom Tromey <tromey@adacore.com>
615
616 * win32-low.h (struct win32_target_ops): Use qualified names where
617 needed.
618 * win32-i386-low.c: Add "using namespace".
619 * win32-low.c: Add "using namespace".
620 * win32-arm-low.c: Add "using namespace".
621
65bafd5b
TT
6222020-04-08 Tom Tromey <tromey@adacore.com>
623
624 * win32-low.c (delete_thread_info): Don't call CloseHandle.
625
98a03287
TT
6262020-04-08 Tom Tromey <tromey@adacore.com>
627
628 * win32-low.c (win32_require_context, suspend_one_thread): Use
629 windows_thread_info::suspend.
630 (continue_one_thread): Use windows_thread_info::resume.
631 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
632
62fe396b
TT
6332020-04-08 Tom Tromey <tromey@adacore.com>
634
635 * win32-i386-low.c (update_debug_registers)
636 (i386_prepare_to_resume, i386_thread_added): Update.
637
e9534bd2
TT
6382020-04-08 Tom Tromey <tromey@adacore.com>
639
640 * win32-low.c (child_add_thread): Use new.
641 (delete_thread_info): Use delete.
642
ae1f8880
TT
6432020-04-08 Tom Tromey <tromey@adacore.com>
644
645 * win32-low.h (struct windows_thread_info): Remove.
646
e56f8ccb
TT
6472020-04-08 Tom Tromey <tromey@adacore.com>
648
649 * win32-low.h (struct windows_thread_info): Rename from
650 win32_thread_info. Remove typedef.
651 (struct win32_target_ops, win32_require_context): Update.
652 * win32-low.c (win32_get_thread_context)
653 (win32_set_thread_context, win32_prepare_to_resume)
654 (win32_require_context, thread_rec, child_add_thread)
655 (delete_thread_info, continue_one_thread)
656 (child_fetch_inferior_registers, child_store_inferior_registers)
657 (win32_resume, suspend_one_thread, win32_get_tib_address):
658 Update.
659 * win32-i386-low.c (update_debug_registers)
660 (win32_get_current_dr, i386_get_thread_context)
661 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
662 (i386_fetch_inferior_register, i386_store_inferior_register):
663 Update.
664 * win32-arm-low.c (arm_get_thread_context)
665 (arm_fetch_inferior_register, arm_store_inferior_register):
666 Update.
667
0dd7b52e
TBA
6682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
669
670 * linux-low.h (struct linux_target_ops): Remove.
671 (the_low_target): Remove.
672 * linux-x86-low.cc (the_low_target): Remove.
673 * linux-aarch64-low.cc (the_low_target): Ditto.
674 * linux-arm-low.cc (the_low_target): Ditto.
675 * linux-bfin-low.cc (the_low_target): Ditto.
676 * linux-cris-low.cc (the_low_target): Ditto.
677 * linux-crisv32-low.cc (the_low_target): Ditto.
678 * linux-ia64-low.cc (the_low_target): Ditto.
679 * linux-m32r-low.cc (the_low_target): Ditto.
680 * linux-m68k-low.cc (the_low_target): Ditto.
681 * linux-mips-low.cc (the_low_target): Ditto.
682 * linux-nios2-low.cc (the_low_target): Ditto.
683 * linux-ppc-low.cc (the_low_target): Ditto.
684 * linux-riscv-low.cc (the_low_target): Ditto.
685 * linux-s390-low.cc (the_low_target): Ditto.
686 * linux-sh-low.cc (the_low_target): Ditto.
687 * linux-sparc-low.cc (the_low_target): Ditto.
688 * linux-tic6x-low.cc (the_low_target): Ditto.
689 * linux-tile-low.cc (the_low_target): Ditto.
690 * linux-xtensa-low.cc (the_low_target): Ditto.
691
fc5ecdb6
TBA
6922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
693
694 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
695 linux target define the op by overriding the declaration in
696 process_stratum_target.
697
698 * linux-low.h (struct linux_target_ops): Remove the op.
699 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
700 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
701 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
702 (x86_get_ipa_tdesc_idx): Turn into...
703 (x86_target::get_ipa_tdesc_idx): ...this.
704 (the_low_target): Remove the op field.
705 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
706 (ppc_get_ipa_tdesc_idx): Turn into...
707 (ppc_target::get_ipa_tdesc_idx): ...this.
708 (the_low_target): Remove the op field.
709 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
710 (s390_get_ipa_tdesc_idx): Turn into...
711 (s390_target::get_ipa_tdesc_idx): ...this.
712 (the_low_target): Remove the op field.
713
9eedd27d
TBA
7142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
715
716 Turn the 'get_syscall_trapinfo' linux target op into a method
717 of process_stratum_target.
718
719 * linux-low.h (struct linux_target_ops): Remove the op.
720 (class linux_process_target) <get_syscall_trapinfo>
721 <gdb_catch_this_syscall>
722 <low_supports_catch_syscall>
723 <low_get_syscall_trapinfo>: Declare.
724 * linux-low.cc (get_syscall_trapinfo): Turn into...
725 (linux_process_target::get_syscall_trapinfo): ...this.
726 (linux_process_target::low_get_syscall_trapinfo): Define.
727 (gdb_catch_this_syscall_p): Turn into...
728 (linux_process_target::gdb_catch_this_syscall): ...this.
729 (linux_process_target::low_supports_catch_syscall): Define.
730
731 Update the callers below.
732
733 (linux_process_target::wait_1)
734 (linux_process_target::supports_catch_syscall)
735
736 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
737 <low_get_syscall_trapinfo>: Declare.
738 (x86_target::low_supports_catch_syscall): Define.
739 (x86_get_syscall_trapinfo): Turn into...
740 (x86_target::low_get_syscall_trapinfo): ...this.
741 (the_low_target): Remove the op field.
742 * linux-aarch64-low.cc (class aarch64_target)
743 <low_supports_catch_syscall>
744 <low_get_syscall_trapinfo>: Declare.
745 (aarch64_target::low_supports_catch_syscall): Define.
746 (aarch64_get_syscall_trapinfo): Turn into...
747 (aarch64_target::low_get_syscall_trapinfo): ...this.
748 (the_low_target): Remove the op field.
749 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
750 <low_get_syscall_trapinfo>: Declare.
751 (arm_target::low_supports_catch_syscall): Define.
752 (arm_get_syscall_trapinfo): Turn into...
753 (arm_target::low_get_syscall_trapinfo): ...this.
754 (the_low_target): Remove the op field.
755 * linux-ppc-low.cc (the_low_target): Remove the op field.
756 * linux-s390-low.cc (the_low_target): Remove the op field.
757
b31cdfa6
TBA
7582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
759
760 Remove the 'supports_hardware_single_step' linux target op and
761 override the process_stratum_target's op definition in
762 linux_process_target to return true.
763
764 * linux-low.h (struct linux_target_ops): Remove the op.
765 (class linux_process_target) <finish_step_over>
766 <maybe_hw_step>: Declare.
767 * linux-low.cc (can_hardware_single_step): Remove.
768 (maybe_hw_step): Turn into...
769 (linux_process_target::maybe_hw_step): ...this.
770 (finish_step_over): Turn into...
771 (linux_process_target::finish_step_over): ...this.
772 (linux_process_target::supports_hardware_single_step): Update
773 to return true.
774
775 Update the callers below.
776
777 (linux_process_target::single_step)
778 (linux_process_target::resume_one_lwp_throw)
779
780 * linux-arm-low.cc (class arm_target)
781 <supports_hardware_single_step>: Declare.
782 (arm_supports_hardware_single_step): Turn into...
783 (arm_target::supports_hardware_single_step): ...this.
784 (the_low_target): Remove the op field.
785 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
786 (the_low_target): Remove the op field.
787 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
788 Remove.
789 (the_low_target): Remove the op field.
790 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
791 (the_low_target): Remove the op field.
792 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
793 (the_low_target): Remove the op field.
794 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
795 (the_low_target): Remove the op field.
796 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
797 (the_low_target): Remove the op field.
798 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
799 (the_low_target): Remove the op field.
800 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
801 (the_low_target): Remove the op field.
802 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
803 (the_low_target): Remove the op field.
804 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
805 (the_low_target): Remove the op field.
806 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
807 (the_low_target): Remove the op field.
808 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
809 Remove.
810 (the_low_target): Remove the op field.
811
9cfd8715
TBA
8122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
813
814 Turn the 'supports_range_stepping' linux target op into a method
815 of linux_process_target.
816
817 * linux-low.h (struct linux_target_ops): Remove the op.
818 (class linux_process_target) <low_supports_range_stepping>: Declare.
819 * linux-low.cc (linux_process_target::low_supports_range_stepping):
820 Define.
821 (linux_process_target::supports_range_stepping): Update the call
822 site.
823 * linux-x86-low.cc (class x86_target)
824 <low_supports_range_stepping>: Declare.
825 (x86_supports_range_stepping): Turn into...
826 (x86_target::low_supports_range_stepping): ...this.
827 (the_low_target): Remove the op field.
828 * linux-aarch64-low.cc (class aarch64_target)
829 <low_supports_range_stepping>: Declare.
830 (aarch64_supports_range_stepping): Turn into...
831 (aarch64_target::low_supports_range_stepping): ...this.
832 (the_low_target): Remove the op field.
833 * linux-arm-low.cc (the_low_target): Remove the op field.
834 * linux-bfin-low.cc (the_low_target): Ditto.
835 * linux-crisv32-low.cc (the_low_target): Ditto.
836 * linux-m32r-low.cc (the_low_target): Ditto.
837 * linux-m68k-low.cc (the_low_target): Ditto.
838 * linux-ppc-low.cc (the_low_target): Ditto.
839 * linux-s390-low.cc (the_low_target): Ditto.
840 * linux-sh-low.cc (the_low_target): Ditto.
841 * linux-tic6x-low.cc (the_low_target): Ditto.
842 * linux-tile-low.cc (the_low_target): Ditto.
843 * linux-xtensa-low.cc (the_low_target): Ditto.
844
ab64c999
TBA
8452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
846
847 Remove the 'emit_ops' linux target ops and let the concrete
848 linux target define the op by overriding the declaration of
849 process_stratum_target.
850
851 * linux-low.h (struct linux_target_ops): Remove the op.
852 (class linux_process_target) <emit_ops>: Remove.
853 * linux-low.cc (linux_process_target::emit_ops): Remove.
854 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
855 (x86_emit_ops): Turn into...
856 (x86_target::emit_ops): ...this.
857 (the_low_target): Remove the op field.
858 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
859 (aarch64_emit_ops): Turn into...
860 (aarch64_target::emit_ops): ...this.
861 (the_low_target): Remove the op field.
862 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
863 (ppc_emit_ops): Turn into...
864 (ppc_target::emit_ops): ...this.
865 (the_low_target): Remove the op field.
866 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
867 (s390_emit_ops): Turn into...
868 (s390_target::emit_ops): ...this.
869 (the_low_target): Remove the op field.
870 * linux-arm-low.cc (the_low_target): Remove the op field.
871 * linux-bfin-low.cc (the_low_target): Ditto.
872 * linux-crisv32-low.cc (the_low_target): Ditto.
873 * linux-m32r-low.cc (the_low_target): Ditto.
874 * linux-m68k-low.cc (the_low_target): Ditto.
875 * linux-sh-low.cc (the_low_target): Ditto.
876 * linux-tic6x-low.cc (the_low_target): Ditto.
877 * linux-tile-low.cc (the_low_target): Ditto.
878 * linux-xtensa-low.cc (the_low_target): Ditto.
879
809a0c35
TBA
8802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
881
882 Remove the 'install_fast_tracepoint_jump_pad' and
883 'get_min_fast_tracepoint_insn_len' linux target ops to let the
884 concrete linux target define the ops by overriding the declarations
885 of process_stratum_target.
886
887 * linux-low.h (struct linux_target_ops): Remove the ops.
888 (class linux_process_target) <supports_fast_tracepoints>
889 <install_fast_tracepoint_jump_pad>
890 <get_min_fast_tracepoint_insn_len>: Remove.
891 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
892 (linux_process_target::install_fast_tracepoint_jump_pad)
893 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
894 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
895 <install_fast_tracepoint_jump_pad>
896 <get_min_fast_tracepoint_insn_len>: Declare.
897 (x86_target::supports_fast_tracepoints): Define.
898 (x86_install_fast_tracepoint_jump_pad): Turn into...
899 (x86_target::install_fast_tracepoint_jump_pad): ...this.
900 (x86_get_min_fast_tracepoint_insn_len): Turn into...
901 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
902 (the_low_target): Remove the op fields.
903 * linux-aarch64-low.cc (class aarch64_target)
904 <supports_fast_tracepoints>
905 <install_fast_tracepoint_jump_pad>
906 <get_min_fast_tracepoint_insn_len>: Declare.
907 (aarch64_target::supports_fast_tracepoints): Define.
908 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
909 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
910 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
911 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
912 (the_low_target): Remove the op fields.
913 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
914 <install_fast_tracepoint_jump_pad>
915 <get_min_fast_tracepoint_insn_len>: Declare.
916 (ppc_target::supports_fast_tracepoints): Define.
917 (ppc_install_fast_tracepoint_jump_pad): Turn into...
918 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
919 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
920 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
921 (the_low_target): Remove the op fields.
922 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
923 <install_fast_tracepoint_jump_pad>
924 <get_min_fast_tracepoint_insn_len>: Declare.
925 (s390_target::supports_fast_tracepoints): Define.
926 (s390_install_fast_tracepoint_jump_pad): Turn into...
927 (s390_target::install_fast_tracepoint_jump_pad): ...this.
928 (s390_get_min_fast_tracepoint_insn_len): Turn into...
929 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
930 (the_low_target): Remove the op fields.
931 * linux-arm-low.cc (the_low_target): Remove the op fields.
932 * linux-bfin-low.cc (the_low_target): Ditto.
933 * linux-crisv32-low.cc (the_low_target): Ditto.
934 * linux-m32r-low.cc (the_low_target): Ditto.
935 * linux-m68k-low.cc (the_low_target): Ditto.
936 * linux-sh-low.cc (the_low_target): Ditto.
937 * linux-tic6x-low.cc (the_low_target): Ditto.
938 * linux-tile-low.cc (the_low_target): Ditto.
939 * linux-xtensa-low.cc (the_low_target): Ditto.
940
13e567af
TBA
9412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
942
943 Turn the 'get_thread_area' linux target op into a method of
944 process_stratum_target.
945
946 * linux-low.h (struct linux_target_ops): Remove the op.
947 (class linux_process_target) <stuck_in_jump_pad>
948 <linux_fast_tracepoint_collecting>
949 <low_get_thread_area>: Declare.
950 * linux-low.cc (supports_fast_tracepoints): Remove.
951 (linux_fast_tracepoint_collecting): Turn into...
952 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
953 (linux_process_target::low_get_thread_area): Define.
954 (stuck_in_jump_pad_callback): Turn into...
955 (linux_process_target::stuck_in_jump_pad): ...this.
956
957 Update the caller below.
958
959 (linux_process_target::stabilize_threads)
960
961 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
962 Declare.
963 (x86_get_thread_area): Turn into...
964 (x86_target::low_get_thread_area): ...this.
965 (the_low_target): Remove the op field.
966 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
967 Declare.
968 (aarch64_get_thread_area): Turn into...
969 (aarch64_target::low_get_thread_area): ...this.
970 (the_low_target): Remove the op field.
971 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
972 Declare.
973 (ppc_get_thread_area): Turn into...
974 (ppc_target::low_get_thread_area): ...this.
975 (the_low_target): Remove the op field.
976 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
977 Declare.
978 (s390_get_thread_area): Turn into...
979 (s390_target::low_get_thread_area): ...this.
980 (the_low_target): Remove the op field.
981 * linux-arm-low.cc (the_low_target): Remove the op field.
982 * linux-bfin-low.cc (the_low_target): Ditto.
983 * linux-crisv32-low.cc (the_low_target): Ditto.
984 * linux-m32r-low.cc (the_low_target): Ditto.
985 * linux-m68k-low.cc (the_low_target): Ditto.
986 * linux-sh-low.cc (the_low_target): Ditto.
987 * linux-tic6x-low.cc (the_low_target): Ditto.
988 * linux-tile-low.cc (the_low_target): Ditto.
989 * linux-xtensa-low.cc (the_low_target): Ditto.
990
47f70aa7
TBA
9912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
992
993 Remote the 'supports_tracepoints' linux target op and let the
994 concrete linux target define it by overriding the op declared in
995 process_stratum_target.
996
997 * linux-low.h (struct linux_target_ops): Remove the op.
998 (class linux_process_target) <supports_tracepoints>: Remove.
999 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1000 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1001 Declare.
1002 (x86_supports_tracepoints): Turn into...
1003 (x86_target::supports_tracepoints): ...this.
1004 (the_low_target): Remove the op field.
1005 * linux-aarch64-low.cc (class aarch64_target)
1006 <supports_tracepoints>: Declare.
1007 (aarch64_supports_tracepoints): Turn into...
1008 (aarch64_target::supports_tracepoints): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1011 Declare.
1012 (ppc_supports_tracepoints): Turn into...
1013 (ppc_target::supports_tracepoints): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1016 Declare.
1017 (s390_supports_tracepoints): Turn into...
1018 (s390_target::supports_tracepoints): ...this.
1019 (the_low_target): Remove the op field.
1020 * linux-arm-low.cc (the_low_target): Remove the op field.
1021 * linux-bfin-low.cc (the_low_target): Ditto.
1022 * linux-crisv32-low.cc (the_low_target): Ditto.
1023 * linux-m32r-low.cc (the_low_target): Ditto.
1024 * linux-m68k-low.cc (the_low_target): Ditto.
1025 * linux-sh-low.cc (the_low_target): Ditto.
1026 * linux-tic6x-low.cc (the_low_target): Ditto.
1027 * linux-tile-low.cc (the_low_target): Ditto.
1028 * linux-xtensa-low.cc (the_low_target): Ditto.
1029
a5b5da92
TBA
10302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1031
1032 Remove the 'process_qsupported' linux target op and let a concrete
1033 linux target define the op by overriding the op declaration in
1034 process_stratum_target.
1035
1036 * linux-low.h (struct linux_target_ops): Remove the op.
1037 (class linux_process_target) <process_qsupported>: Remove.
1038 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1039 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1040 (x86_linux_process_qsupported): Turn into...
1041 (x86_target::process_qsupported): ...this.
1042 (the_low_target): Remove the op field.
1043 * linux-aarch64-low.cc (the_low_target): Remove the op
1044 field.
1045 * linux-arm-low.cc (the_low_target): Ditto.
1046 * linux-bfin-low.cc (the_low_target): Ditto.
1047 * linux-crisv32-low.cc (the_low_target): Ditto.
1048 * linux-m32r-low.cc (the_low_target): Ditto.
1049 * linux-m68k-low.cc (the_low_target): Ditto.
1050 * linux-ppc-low.cc (the_low_target): Ditto.
1051 * linux-s390-low.cc (the_low_target): Ditto.
1052 * linux-sh-low.cc (the_low_target): Ditto.
1053 * linux-tic6x-low.cc (the_low_target): Ditto.
1054 * linux-tile-low.cc (the_low_target): Ditto.
1055 * linux-xtensa-low.cc (the_low_target): Ditto.
1056
d7599cc0
TBA
10572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1058
1059 Turn the 'prepare_to_resume' linux target op into a method of
1060 linux_process_target.
1061
1062 * linux-low.h (struct linux_target_ops): Remove the op.
1063 (class linux_process_target) <low_prepare_to_resume>: Declare.
1064 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1065 Define.
1066
1067 Update the callers below:
1068
1069 (linux_process_target::resume_one_lwp_throw)
1070 (linux_process_target::low_prepare_to_resume)
1071
1072 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1073 Declare.
1074 (x86_target::low_prepare_to_resume): Define.
1075 (the_low_target): Remove the op field.
1076 * linux-aarch64-low.cc (class aarch64_target)
1077 <low_prepare_to_resume>: Declare.
1078 (aarch64_target::low_prepare_to_resume): Define.
1079 (the_low_target): Remove the op field.
1080 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1081 Declare.
1082 (arm_prepare_to_resume): Turn into...
1083 (arm_target::low_prepare_to_resume): ...this.
1084 (the_low_target): Remove the op field.
1085 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1086 Declare.
1087 (mips_linux_prepare_to_resume): Turn into...
1088 (mips_target::low_prepare_to_resume): ...this.
1089 (the_low_target): Remove the op field.
1090 * linux-bfin-low.cc (the_low_target): Remove the op field.
1091 * linux-crisv32-low.cc (the_low_target): Ditto.
1092 * linux-m32r-low.cc (the_low_target): Ditto.
1093 * linux-m68k-low.cc (the_low_target): Ditto.
1094 * linux-ppc-low.cc (the_low_target): Ditto.
1095 * linux-s390-low.cc (the_low_target): Ditto.
1096 * linux-sh-low.cc (the_low_target): Ditto.
1097 * linux-tic6x-low.cc (the_low_target): Ditto.
1098 * linux-tile-low.cc (the_low_target): Ditto.
1099 * linux-xtensa-low.cc (the_low_target): Ditto.
1100
fd000fb3
TBA
11012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1102
1103 Turn the 'new_process', 'delete_process', 'new_thread',
1104 'delete_thread', and 'new_fork' linux target ops into methods
1105 of linux_process_target.
1106
1107 * linux-low.h (struct linux_target_ops): Remove the ops.
1108 (class linux_process_target) <add_linux_process>
1109 <add_lwp>
1110 <delete_lwp>
1111 <attach_lwp>
1112 <detach_one_lwp>
1113 <check_zombie_leaders>
1114 <filter_exit_event>
1115 <low_new_process>
1116 <low_delete_process>
1117 <low_new_thread>
1118 <low_delete_thread>
1119 <low_new_fork>: Declare.
1120 * linux-low.cc (delete_lwp): Turn into...
1121 (linux_process_target::delete_lwp): ...this.
1122 (linux_process_target::low_delete_thread): Define.
1123 (linux_add_process): Turn into...
1124 (linux_process_target::add_linux_process): ...this.
1125 (linux_process_target::low_new_process): Define.
1126 (linux_process_target::low_delete_process): Define.
1127 (linux_process_target::low_new_fork): Define.
1128 (add_lwp): Turn into...
1129 (linux_process_target::add_lwp): ...this.
1130 (linux_process_target::low_new_thread): Define.
1131 (linux_attach_lwp): Turn into...
1132 (linux_process_target::attach_lwp): ...this.
1133 (linux_detach_one_lwp): Turn into...
1134 (linux_process_target::detach_one_lwp): ...this.
1135 (linux_detach_lwp_callback): Remove and inline...
1136 (linux_process_target::detach): ...here.
1137 (check_zombie_leaders): Turn into...
1138 (linux_process_target::check_zombie_leaders): ...this.
1139 (filter_exit_event): Turn into...
1140 (linux_process_target::filter_exit_event): ...this.
1141
1142 Update the callers below.
1143
1144 (linux_process_target::handle_extended_wait)
1145 (linux_process_target::create_inferior)
1146 (attach_proc_task_lwp_callback)
1147 (linux_process_target::attach)
1148 (linux_process_target::detach)
1149 (linux_process_target::mourn)
1150 * thread-db.cc (attach_thread)
1151
1152 * linux-x86-low.cc (class x86_target) <low_new_process>
1153 <low_delete_process>
1154 <low_new_thread>
1155 <low_delete_thread>
1156 <low_new_fork>: Declare.
1157 (x86_linux_new_process): Turn into...
1158 (x86_target::low_new_process): ...this.
1159 (x86_linux_delete_process): Turn into...
1160 (x86_target::low_delete_process): ...this.
1161 (x86_target::low_new_thread): Define.
1162 (x86_target::low_delete_thread): Define.
1163 (x86_linux_new_fork): Turn into...
1164 (x86_target::low_new_fork): ...this.
1165 (the_low_target): Remove the op fields.
1166 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1167 <low_delete_process>
1168 <low_new_thread>
1169 <low_delete_thread>
1170 <low_new_fork>: Declare.
1171 (aarch64_linux_new_process): Turn into...
1172 (aarch64_target::low_new_process): ...this.
1173 (aarch64_linux_delete_process): Turn into...
1174 (aarch64_target::low_delete_process): ...this.
1175 (aarch64_target::low_new_thread): Define.
1176 (aarch64_target::low_delete_thread): Define.
1177 (aarch64_linux_new_fork): Turn into...
1178 (aarch64_target::low_new_fork): ...this.
1179 (the_low_target): Remove the op fields.
1180 * linux-arm-low.cc (class arm_target) <low_new_process>
1181 <low_delete_process>
1182 <low_new_thread>
1183 <low_delete_thread>
1184 <low_new_fork>: Declare.
1185 (arm_new_process): Turn into...
1186 (arm_target::low_new_process): ...this.
1187 (arm_delete_process): Turn into...
1188 (arm_target::low_delete_process): ...this.
1189 (arm_new_thread): Turn into...
1190 (arm_target::low_new_thread): ...this.
1191 (arm_delete_thread): Turn into...
1192 (arm_target::low_delete_thread): ...this.
1193 (arm_new_fork): Turn into...
1194 (arm_target::low_new_fork): ...this.
1195 (the_low_target): Remove the op fields.
1196 * linux-mips-low.cc (class mips_target) <low_new_process>
1197 <low_delete_process>
1198 <low_new_thread>
1199 <low_delete_thread>
1200 <low_new_fork>: Declare.
1201 (mips_linux_new_process): Turn into...
1202 (mips_target::low_new_process): ...this.
1203 (mips_linux_delete_process): Turn into...
1204 (mips_target::low_delete_process): ...this.
1205 (mips_linux_new_thread): Turn into...
1206 (mips_target::low_new_thread): ...this.
1207 (mips_linux_delete_thread): Turn into...
1208 (mips_target::low_delete_thread): ...this.
1209 (mips_linux_new_fork): Turn into...
1210 (mips_target::low_new_fork): ...this.
1211 (the_low_target): Remove the op fields.
1212 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1213 * linux-crisv32-low.cc (the_low_target): Ditto.
1214 * linux-m32r-low.cc (the_low_target): Ditto.
1215 * linux-m68k-low.cc (the_low_target): Ditto.
1216 * linux-ppc-low.cc (the_low_target): Ditto.
1217 * linux-s390-low.cc (the_low_target): Ditto.
1218 * linux-sh-low.cc (the_low_target): Ditto.
1219 * linux-tic6x-low.cc (the_low_target): Ditto.
1220 * linux-tile-low.cc (the_low_target): Ditto.
1221 * linux-xtensa-low.cc (the_low_target): Ditto.
1222
cb63de7c
TBA
12232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1224
1225 Turn the 'siginfo_fixup' linux target op into a method of
1226 linux_process_target.
1227
1228 * linux-low.h (struct linux_target_ops): Remove the op.
1229 (class linux_process_target) <siginfo_fixup>
1230 <low_siginfo_fixup>: Declare.
1231 * linux-low.cc (siginfo_fixup): Turn into...
1232 (linux_process_target::siginfo_fixup): ...this.
1233 (linux_process_target::low_siginfo_fixup): Define.
1234 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1235 (x86_siginfo_fixup): Turn into...
1236 (x86_target::low_siginfo_fixup): ...this.
1237 (the_low_target): Remove the op field.
1238 * linux-aarch64-low.cc (class aarch64_target):
1239 <low_siginfo_fixup>: Declare.
1240 (aarch64_linux_siginfo_fixup): Turn into...
1241 (aarch64_target::low_siginfo_fixup): ...this.
1242 (the_low_target): Remove the op field.
1243 * linux-arm-low.cc (the_low_target): Remove the op field.
1244 * linux-bfin-low.cc (the_low_target): Ditto.
1245 * linux-crisv32-low.cc (the_low_target): Ditto.
1246 * linux-m32r-low.cc (the_low_target): Ditto.
1247 * linux-m68k-low.cc (the_low_target): Ditto.
1248 * linux-mips-low.cc (the_low_target): Ditto.
1249 * linux-ppc-low.cc (the_low_target): Ditto.
1250 * linux-s390-low.cc (the_low_target): Ditto.
1251 * linux-sh-low.cc (the_low_target): Ditto.
1252 * linux-tic6x-low.cc (the_low_target): Ditto.
1253 * linux-tile-low.cc (the_low_target): Ditto.
1254 * linux-xtensa-low.cc (the_low_target): Ditto.
1255
b35db733
TBA
12562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1257
1258 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1259 linux target ops into methods of linux_process_target.
1260
1261 * linux-low.h (struct linux_target_ops): Remove the ops.
1262 (class linux_process_target) <low_collect_ptrace_register>
1263 <low_store_ptrace_register>: Declare.
1264 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1265 (linux_process_target::low_supply_ptrace_register): Define.
1266
1267 Update the callers below.
1268
1269 (linux_process_target::fetch_register)
1270 (linux_process_target::store_register)
1271
1272 * linux-x86-low.cc (the_low_target): Remove the op fields.
1273 * linux-aarch64-low.cc (the_low_target): Ditto.
1274 * linux-arm-low.cc (the_low_target): Ditto.
1275 * linux-bfin-low.cc (the_low_target): Ditto.
1276 * linux-crisv32-low.cc (the_low_target): Ditto.
1277 * linux-m32r-low.cc (the_low_target): Ditto.
1278 * linux-m68k-low.cc (the_low_target): Ditto.
1279 * linux-sh-low.cc (the_low_target): Ditto.
1280 * linux-sparc-low.cc (the_low_target): Ditto.
1281 * linux-tic6x-low.cc (the_low_target): Ditto.
1282 * linux-tile-low.cc (the_low_target): Ditto.
1283 * linux-xtensa-low.cc (the_low_target): Ditto.
1284 * linux-mips-low.cc (class mips_target)
1285 <low_collect_ptrace_register>
1286 <low_supply_ptrace_register>: Declare.
1287 (mips_collect_ptrace_register): Turn into ...
1288 (mips_target::low_collect_ptrace_register): ...this.
1289 (mips_supply_ptrace_register): Turn into...
1290 (mips_target::low_supply_ptrace_register): ...this.
1291 (the_low_target): Remove the op fields.
1292 * linux-ppc-low.cc (class ppc_target)
1293 <low_collect_ptrace_register>
1294 <low_supply_ptrace_register>: Declare.
1295 (ppc_collect_ptrace_register): Turn into ...
1296 (ppc_target::low_collect_ptrace_register): ...this.
1297 (ppc_supply_ptrace_register): Turn into ...
1298 (ppc_target::low_supply_ptrace_register): ...this.
1299 (ppc_fill_gregset): Update for the calls to
1300 low_collect_ptrace_register.
1301 (the_low_target): Remove the op fields.
1302 * linux-s390-low.cc (class s390_target)
1303 <low_collect_ptrace_register>
1304 <low_supply_ptrace_register>: Declare.
1305 (s390_collect_ptrace_register): Turn into ...
1306 (s390_target::low_collect_ptrace_register): ...this.
1307 (s390_supply_ptrace_register): Turn into ...
1308 (s390_target::low_supply_ptrace_register): ...this.
1309 (s390_fill_gregset): Update for the calls to
1310 low_collect_ptrace_register.
1311 (the_low_target): Remove the op fields.
1312
ac1bbaca
TBA
13132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1314
1315 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1316 target ops into methods of linux_process_target.
1317
1318 * linux-low.h (struct linux_target_ops): Remove the ops.
1319 (class linux_process_target) <check_stopped_by_watchpoint>
1320 <low_stopped_by_watchpoint>
1321 <low_stopped_data_address>: Declare.
1322 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1323 (linux_process_target::check_stopped_by_watchpoint): ...this.
1324 (linux_process_target::low_stopped_by_watchpoint): Define.
1325 (linux_process_target::low_stopped_data_address): Define.
1326 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1327 <low_stopped_data_address>: Declare.
1328 (x86_stopped_by_watchpoint): Turn into...
1329 (x86_target::low_stopped_by_watchpoint): ...this.
1330 (x86_stopped_data_address): Turn into...
1331 (x86_target::low_stopped_data_address): ...this.
1332 (the_low_target): Remove the op fields.
1333 * linux-aarch64-low.cc (class aarch64_target)
1334 <low_stopped_by_watchpoint>
1335 <low_stopped_data_address>: Declare.
1336 (aarch64_stopped_by_watchpoint): Turn into...
1337 (aarch64_target::low_stopped_by_watchpoint): ...this.
1338 (aarch64_stopped_data_address): Turn into...
1339 (aarch64_target::low_stopped_data_address): ...this.
1340 (the_low_target): Remove the op fields.
1341 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1342 <low_stopped_data_address>: Declare.
1343 (arm_stopped_by_watchpoint): Turn into...
1344 (arm_target::low_stopped_by_watchpoint): ...this.
1345 (arm_stopped_data_address): Turn into...
1346 (arm_target::low_stopped_data_address): ...this.
1347 (the_low_target): Remove the op fields.
1348 * linux-crisv32-low.cc (class crisv32_target)
1349 <low_stopped_by_watchpoint>
1350 <low_stopped_data_address>: Declare.
1351 (cris_stopped_by_watchpoint): Turn into...
1352 (crisv32_target::low_stopped_by_watchpoint): ...this.
1353 (cris_stopped_data_address): Turn into...
1354 (crisv32_target::low_stopped_data_address): ...this.
1355 (the_low_target): Remove the op fields.
1356 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1357 <low_stopped_data_address>: Declare.
1358 (mips_stopped_by_watchpoint): Turn into...
1359 (mips_target::low_stopped_by_watchpoint): ...this.
1360 (mips_stopped_data_address): Turn into...
1361 (mips_target::low_stopped_data_address): ...this.
1362 (the_low_target): Remove the op fields.
1363 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1364 * linux-m32r-low.cc (the_low_target): Ditto.
1365 * linux-m68k-low.cc (the_low_target): Ditto.
1366 * linux-ppc-low.cc (the_low_target): Ditto.
1367 * linux-s390-low.cc (the_low_target): Ditto.
1368 * linux-sh-low.cc (the_low_target): Ditto.
1369 * linux-sparc-low.cc (the_low_target): Ditto.
1370 * linux-tic6x-low.cc (the_low_target): Ditto.
1371 * linux-tile-low.cc (the_low_target): Ditto.
1372 * linux-xtensa-low.cc (the_low_target): Ditto.
1373
9db9aa23
TBA
13742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1375
1376 Turn the 'insert_point' and 'remove_point' linux target ops into
1377 methods of linux_process_target.
1378
1379 * linux-low.h (struct linux_target_ops): Remove the ops.
1380 (class linux_process_target) <low_insert_point>
1381 <low_remove_point>: Declare.
1382 * linux-low.cc (linux_process_target::low_insert_point)
1383 (linux_process_target::low_remove_point): Define.
1384 (linux_process_target::insert_point)
1385 (linux_process_target::remove_point): Update for calls to
1386 low_insert_point and low_remove_point.
1387 * linux-x86-low.cc (class x86_target) <low_insert_point>
1388 <low_remove_point>: Declare.
1389 (x86_insert_point): Turn into...
1390 (x86_target::low_insert_point): ...this.
1391 (x86_remove_point): Turn into...
1392 (x86_target::low_remove_point): ...this.
1393 (the_low_target): Remove the op fields.
1394 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1395 <low_remove_point>: Declare.
1396 (aarch64_insert_point): Turn into...
1397 (aarch64_target::low_insert_point): ...this.
1398 (aarch64_remove_point): Turn into...
1399 (aarch64_target::low_remove_point): ...this.
1400 (the_low_target): Remove the op fields.
1401 * linux-arm-low.cc (class arm_target) <low_insert_point>
1402 <low_remove_point>: Declare.
1403 (arm_insert_point): Turn into...
1404 (arm_target::low_insert_point): ...this.
1405 (arm_remove_point): Turn into...
1406 (arm_target::low_remove_point): ...this.
1407 (the_low_target): Remove the op fields.
1408 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1409 <low_remove_point>: Declare.
1410 (crisv32_insert_point): Turn into...
1411 (crisv32_target::low_insert_point): ...this.
1412 (crisv32_remove_point): Turn into...
1413 (crisv32_target::low_remove_point): ...this.
1414 (the_low_target): Remove the op fields.
1415 * linux-mips-low.cc (class mips_target) <low_insert_point>
1416 <low_remove_point>: Declare.
1417 (mips_insert_point): Turn into...
1418 (mips_target::low_insert_point): ...this.
1419 (mips_remove_point): Turn into...
1420 (mips_target::low_remove_point): ...this.
1421 (the_low_target): Remove the op fields.
1422 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1423 <low_remove_point>: Declare.
1424 (ppc_insert_point): Turn into...
1425 (ppc_target::low_insert_point): ...this.
1426 (ppc_remove_point): Turn into...
1427 (ppc_target::low_remove_point): ...this.
1428 (the_low_target): Remove the op fields.
1429 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1430 * linux-m32r-low.cc (the_low_target): Ditto.
1431 * linux-m68k-low.cc (the_low_target): Ditto.
1432 * linux-s390-low.cc (the_low_target): Ditto.
1433 * linux-sh-low.cc (the_low_target): Ditto.
1434 * linux-sparc-low.cc (the_low_target): Ditto.
1435 * linux-tic6x-low.cc (the_low_target): Ditto.
1436 * linux-tile-low.cc (the_low_target): Ditto.
1437 * linux-xtensa-low.cc (the_low_target): Ditto.
1438
007c9b97
TBA
14392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1440
1441 Remove the 'supports_z_point_type' linux target op and let the
1442 concrete linux target define it by overriding the op declared in
1443 process_stratum_target.
1444
1445 * linux-low.cc (linux_process_target::supports_z_point_type):
1446 Remove.
1447 * linux-low.h (struct linux_target_ops): Remove the op.
1448 (class linux_process_target) <supports_z_point_type>: Remove.
1449 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1450 Declare.
1451 (x86_supports_z_point_type): Turn into...
1452 (x86_target::supports_z_point_type): ...this.
1453 (the_low_target): Remove the op field.
1454 * linux-aarch64-low.cc (class aarch64_target)
1455 <supports_z_point_type>: Declare.
1456 (aarch64_supports_z_point_type): Turn into...
1457 (aarch64_target::supports_z_point_type): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1460 Declare.
1461 (arm_supports_z_point_type): Turn into...
1462 (arm_target::supports_z_point_type): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-crisv32-low.cc (class crisv32_target)
1465 <supports_z_point_type>: Declare.
1466 (cris_supports_z_point_type): Turn into...
1467 (crisv32_target::supports_z_point_type): ...this.
1468 (the_low_target): Remove the op field.
1469 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1470 Declare.
1471 (mips_supports_z_point_type): Turn into...
1472 (mips_target::supports_z_point_type): ...this.
1473 (the_low_target): Remove the op field.
1474 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1475 Declare.
1476 (ppc_supports_z_point_type): Turn into...
1477 (ppc_target::supports_z_point_type): ...this.
1478 (the_low_target): Remove the op field.
1479 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1480 Declare.
1481 (s390_supports_z_point_type): Turn into...
1482 (s390_target::supports_z_point_type): ...this.
1483 (the_low_target): Remove the op field.
1484 * linux-bfin-low.cc (the_low_target): Remove the op field.
1485 * linux-m32r-low.cc (the_low_target): Ditto.
1486 * linux-m68k-low.cc (the_low_target): Ditto.
1487 * linux-sh-low.cc (the_low_target): Ditto.
1488 * linux-sparc-low.cc (the_low_target): Ditto.
1489 * linux-tic6x-low.cc (the_low_target): Ditto.
1490 * linux-tile-low.cc (the_low_target): Ditto.
1491 * linux-xtensa-low.cc (the_low_target): Ditto.
1492
d7146cda
TBA
14932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1494
1495 Turn the 'breakpoint_at' linux target op into a method of
1496 linux_process_target.
1497
1498 * linux-low.h (struct linux_target_ops): Remove the op.
1499 (class linux_process_target) <low_breakpoint_at>: Declare.
1500
1501 Update the callers below:
1502
1503 * linux-low.cc (linux_process_target::save_stop_reason)
1504 (linux_process_target::thread_still_has_status_pending)
1505 (linux_process_target::wait_1)
1506
1507 * linux-x86-low.cc (class x86_target)
1508 <low_breakpoint_at>: Declare.
1509 (x86_breakpoint_at): Turn into...
1510 (x86_target::low_breakpoint_at): ...this.
1511 (the_low_target): Remove the op field.
1512 * linux-aarch64-low.cc (class aarch64_target)
1513 <low_breakpoint_at>: Declare.
1514 (aarch64_breakpoint_at): Turn into...
1515 (aarch64_target::low_breakpoint_at): ...this.
1516 (the_low_target): Remove the op field.
1517 * linux-arm-low.cc (class arm_target)
1518 <low_breakpoint_at>: Declare.
1519 (arm_target::low_breakpoint_at): Define.
1520 (the_low_target): Remove the op field.
1521 * linux-bfin-low.cc (class bfin_target)
1522 <low_breakpoint_at>: Declare.
1523 (bfin_breakpoint_at): Turn into...
1524 (bfin_target::low_breakpoint_at): ...this.
1525 (the_low_target): Remove the op field.
1526 * linux-cris-low.cc (class cris_target)
1527 <low_breakpoint_at>: Declare.
1528 (cris_breakpoint_at): Turn into...
1529 (cris_target::low_breakpoint_at): ...this.
1530 (the_low_target): Remove the op field.
1531 * linux-crisv32-low.cc (class crisv32_target)
1532 <low_breakpoint_at>: Declare.
1533 (crisv32_breakpoint_at): Turn into...
1534 (crisv32_target::low_breakpoint_at): ...this.
1535 (the_low_target): Remove the op field.
1536 * linux-ia64-low.cc (class ia64_target)
1537 <low_breakpoint_at>: Declare.
1538 (ia64_target::low_breakpoint_at): Define.
1539 * linux-m32r-low.cc (class m32r_target)
1540 <low_breakpoint_at>: Declare.
1541 (m32r_breakpoint_at): Turn into...
1542 (m32r_target::low_breakpoint_at): ...this.
1543 (the_low_target): Remove the op field.
1544 * linux-m68k-low.cc (class m68k_target)
1545 <low_breakpoint_at>: Declare.
1546 (m68k_breakpoint_at): Turn into...
1547 (m68k_target::low_breakpoint_at): ...this.
1548 (the_low_target): Remove the op field.
1549 * linux-mips-low.cc (class mips_target)
1550 <low_breakpoint_at>: Declare.
1551 (mips_breakpoint_at): Turn into...
1552 (mips_target::low_breakpoint_at): ...this.
1553 (the_low_target): Remove the op field.
1554 * linux-nios2-low.cc (class nios2_target)
1555 <low_breakpoint_at>: Declare.
1556 (nios2_breakpoint_at): Turn into...
1557 (nios2_target::low_breakpoint_at): ...this.
1558 (the_low_target): Remove the op field.
1559 * linux-ppc-low.cc (class ppc_target)
1560 <low_breakpoint_at>: Declare.
1561 (ppc_breakpoint_at): Turn into...
1562 (ppc_target::low_breakpoint_at): ...this.
1563 (the_low_target): Remove the op field.
1564 * linux-riscv-low.cc (class riscv_target)
1565 <low_breakpoint_at>: Declare.
1566 (riscv_breakpoint_at): Turn into...
1567 (riscv_target::low_breakpoint_at): ...this.
1568 (the_low_target): Remove the op field.
1569 * linux-s390-low.cc (class s390_target)
1570 <low_breakpoint_at>: Declare.
1571 (s390_breakpoint_at): Turn into...
1572 (s390_target::low_breakpoint_at): ...this.
1573 (the_low_target): Remove the op field.
1574 * linux-sh-low.cc (class sh_target)
1575 <low_breakpoint_at>: Declare.
1576 (sh_breakpoint_at): Turn into...
1577 (sh_target::low_breakpoint_at): ...this.
1578 (the_low_target): Remove the op field.
1579 * linux-sparc-low.cc (class sparc_target)
1580 <low_breakpoint_at>: Declare.
1581 (sparc_breakpoint_at): Turn into...
1582 (sparc_target::low_breakpoint_at): ...this.
1583 (the_low_target): Remove the op field.
1584 * linux-tic6x-low.cc (class tic6x_target)
1585 <low_breakpoint_at>: Declare.
1586 (tic6x_breakpoint_at): Turn into...
1587 (tic6x_target::low_breakpoint_at): ...this.
1588 (the_low_target): Remove the op field.
1589 * linux-tile-low.cc (class tile_target)
1590 <low_breakpoint_at>: Declare.
1591 (tile_breakpoint_at): Turn into...
1592 (tile_target::low_breakpoint_at): ...this.
1593 (the_low_target): Remove the op field.
1594 * linux-xtensa-low.cc (class xtensa_target)
1595 <low_breakpoint_at>: Declare.
1596 (xtensa_breakpoint_at): Turn into...
1597 (xtensa_target::low_breakpoint_at): ...this.
1598 (the_low_target): Remove the op field.
1599
d4807ea2
TBA
16002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1601
1602 Turn the 'decr_pc_after_break' linux_target_ops field into
1603 a method of linux_process_target.
1604
1605 * linux-low.h (struct linux_target_ops)
1606 <decr_pc_after_break>: Remove.
1607 (class linux_process_target) <low_decr_pc_after_break>: New method
1608 declaration.
1609 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1610 New method implementation.
1611
1612 Update the users below.
1613
1614 (linux_process_target::save_stop_reason)
1615 (linux_process_target::wait_1)
1616 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1617 New declaration.
1618 (x86_target::low_decr_pc_after_break): New method implementation.
1619 (the_low_target): Remove the field.
1620 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1621 New declaration.
1622 (bfin_target::low_decr_pc_after_break): New method implementation.
1623 (the_low_target): Remove the field.
1624 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1625 New declaration.
1626 (m68k_target::low_decr_pc_after_break): New method implementation.
1627 (the_low_target): Remove the field.
1628 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1629 New declaration.
1630 (s390_target::low_decr_pc_after_break): New method implementation.
1631 (the_low_target): Remove the field.
1632 * linux-aarch64-low.cc (the_low_target): Remove the field.
1633 * linux-arm-low.cc (the_low_target): Remove the field.
1634 * linux-cris-low.cc (the_low_target): Remove the field.
1635 * linux-crisv32-low.cc (the_low_target): Remove the field.
1636 * linux-m32r-low.cc (the_low_target): Remove the field.
1637 * linux-mips-low.cc (the_low_target): Remove the field.
1638 * linux-nios2-low.cc (the_low_target): Remove the field.
1639 * linux-ppc-low.cc (the_low_target): Remove the field.
1640 * linux-riscv-low.cc (the_low_target): Remove the field.
1641 * linux-sh-low.cc (the_low_target): Remove the field.
1642 * linux-sparc-low.cc (the_low_target): Remove the field.
1643 * linux-tic6x-low.cc (the_low_target): Remove the field.
1644 * linux-tile-low.cc (the_low_target): Remove the field.
1645 * linux-xtensa-low.cc (the_low_target): Remove the field.
1646
7582c77c
TBA
16472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1648
1649 Remove the 'supports_software_single_step' linux target op and let
1650 the concrete linux target define it by overriding the op in
1651 process_stratum_target.
1652 Turn the 'get_next_pcs' linux target op into a method of
1653 linux_process_target.
1654
1655 * linux-low.h (struct linux_target_ops): Remove the ops.
1656 (class linux_process_target) <supports_software_single_step>:
1657 Remove.
1658 <low_get_next_pcs>: Declare.
1659 * linux-low.cc (can_software_single_step): Remove.
1660 (linux_process_target::low_get_next_pcs): Define.
1661 (linux_process_target::supports_software_single_step): Remove.
1662
1663 Update the callers below.
1664
1665 (linux_process_target::handle_extended_wait)
1666 (linux_process_target::wait_1)
1667 (linux_process_target::install_software_single_step_breakpoints)
1668 (linux_process_target::single_step)
1669 (linux_process_target::thread_needs_step_over)
1670 (linux_process_target::proceed_one_lwp)
1671 (linux_process_target::supports_range_stepping)
1672
1673 * linux-x86-low.cc (the_low_target): Remove the op field.
1674 * linux-aarch64-low.cc (the_low_target): Ditto.
1675 * linux-bfin-low.cc (the_low_target): Ditto.
1676 * linux-cris-low.cc (the_low_target): Ditto.
1677 * linux-crisv32-low.cc (the_low_target): Ditto.
1678 * linux-m32r-low.cc (the_low_target): Ditto.
1679 * linux-m68k-low.cc (the_low_target): Ditto.
1680 * linux-mips-low.cc (the_low_target): Ditto.
1681 * linux-nios2-low.cc (the_low_target): Ditto.
1682 * linux-ppc-low.cc (the_low_target): Ditto.
1683 * linux-riscv-low.cc (the_low_target): Ditto.
1684 * linux-s390-low.cc (the_low_target): Ditto.
1685 * linux-sh-low.cc (the_low_target): Ditto.
1686 * linux-sparc-low.cc (the_low_target): Ditto.
1687 * linux-tic6x-low.cc (the_low_target): Ditto.
1688 * linux-tile-low.cc (the_low_target): Ditto.
1689 * linux-xtensa-low.cc (the_low_target): Ditto.
1690 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1691 <supports_software_single_step>: Declare.
1692 (arm_target::supports_software_single_step): Define.
1693 (arm_gdbserver_get_next_pcs): Turn into...
1694 (arm_target::low_get_next_pcs): ...this.
1695 (the_low_target): Remove the op field.
1696
3ca4edb6
TBA
16972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1698
1699 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1700 the concrete linux target define it by overriding the op
1701 in process_stratum_target.
1702
1703 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1704 Remove.
1705 * linux-low.h (struct linux_target_ops): Remove the op.
1706 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1707 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1708 Declare.
1709 (x86_sw_breakpoint_from_kind): Turn into...
1710 (x86_target::sw_breakpoint_from_kind): ...this.
1711 (the_low_target): Remove the op field.
1712 * linux-aarch64-low.cc (class aarch64_target)
1713 <sw_breakpoint_from_kind>: Declare.
1714 (aarch64_sw_breakpoint_from_kind): Turn into...
1715 (aarch64_target::sw_breakpoint_from_kind): ...this.
1716 (the_low_target): Remove the op field.
1717 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1718 Declare.
1719 (arm_target::sw_breakpoint_from_kind): Define.
1720 (the_low_target): Remove the op field.
1721 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1722 Declare.
1723 (bfin_sw_breakpoint_from_kind): Turn into...
1724 (bfin_target::sw_breakpoint_from_kind): ...this.
1725 (the_low_target): Remove the op field.
1726 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1727 Declare.
1728 (cris_sw_breakpoint_from_kind): Turn into...
1729 (cris_target::sw_breakpoint_from_kind): ...this.
1730 (the_low_target): Remove the op field.
1731 * linux-crisv32-low.cc (class crisv32_target)
1732 <sw_breakpoint_from_kind>: Declare.
1733 (cris_sw_breakpoint_from_kind): Turn into...
1734 (crisv32_target::sw_breakpoint_from_kind): ...this.
1735 (the_low_target): Remove the op field.
1736 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1737 Declare.
1738 (ia64_target::sw_breakpoint_from_kind): Define.
1739 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1740 Declare.
1741 (m32r_sw_breakpoint_from_kind): Turn into...
1742 (m32r_target::sw_breakpoint_from_kind): ...this.
1743 (the_low_target): Remove the op field.
1744 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1745 Declare.
1746 (m68k_sw_breakpoint_from_kind): Turn into...
1747 (m68k_target::sw_breakpoint_from_kind): ...this.
1748 (the_low_target): Remove the op field.
1749 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1750 Declare.
1751 (mips_sw_breakpoint_from_kind): Turn into...
1752 (mips_target::sw_breakpoint_from_kind): ...this.
1753 (the_low_target): Remove the op field.
1754 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1755 Declare.
1756 (nios2_sw_breakpoint_from_kind): Turn into...
1757 (nios2_target::sw_breakpoint_from_kind): ...this.
1758 (the_low_target): Remove the op field.
1759 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1760 Declare.
1761 (ppc_sw_breakpoint_from_kind): Turn into...
1762 (ppc_target::sw_breakpoint_from_kind): ...this.
1763 (the_low_target): Remove the op field.
1764 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1765 Declare.
1766 (riscv_sw_breakpoint_from_kind): Turn into...
1767 (riscv_target::sw_breakpoint_from_kind): ...this.
1768 (the_low_target): Remove the op field.
1769 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1770 Declare.
1771 (s390_sw_breakpoint_from_kind): Turn into...
1772 (s390_target::sw_breakpoint_from_kind): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1775 Declare.
1776 (sh_sw_breakpoint_from_kind): Turn into...
1777 (sh_target::sw_breakpoint_from_kind): ...this.
1778 (the_low_target): Remove the op field.
1779 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1780 Declare.
1781 (sparc_sw_breakpoint_from_kind): Turn into...
1782 (sparc_target::sw_breakpoint_from_kind): ...this.
1783 (the_low_target): Remove the op field.
1784 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1785 Declare.
1786 (tic6x_sw_breakpoint_from_kind): Turn into...
1787 (tic6x_target::sw_breakpoint_from_kind): ...this.
1788 (the_low_target): Remove the op field.
1789 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1790 Declare.
1791 (tile_sw_breakpoint_from_kind): Turn into...
1792 (tile_target::sw_breakpoint_from_kind): ...this.
1793 (the_low_target): Remove the op field.
1794 * linux-xtensa-low.cc (class xtensa_target)
1795 <sw_breakpoint_from_kind>: Declare.
1796 (xtensa_sw_breakpoint_from_kind): Turn into...
1797 (xtensa_target::sw_breakpoint_from_kind): ...this.
1798 (the_low_target): Remove the op field.
1799
06250e4e
TBA
18002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1801
1802 Remove the 'breakpoint_kind_from_pc' and
1803 'breakpoint_kind_from_current_state' linux target ops, and let the
1804 concrete linux target define them by overriding the ops of
1805 process_stratum_target.
1806
1807 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1808 Remove.
1809 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1810 * linux-low.h (struct linux_target_ops): Remove ops.
1811 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1812 <breakpoint_kind_from_current_state>: Remove.
1813 * linux-x86-low.cc (the_low_target): Remove the op fields.
1814 * linux-bfin-low.cc (the_low_target): Ditto.
1815 * linux-cris-low.cc (the_low_target): Ditto.
1816 * linux-crisv32-low.cc (the_low_target): Ditto.
1817 * linux-m32r-low.cc (the_low_target): Ditto.
1818 * linux-m68k-low.cc (the_low_target): Ditto.
1819 * linux-mips-low.cc (the_low_target): Ditto.
1820 * linux-nios2-low.cc (the_low_target): Ditto.
1821 * linux-ppc-low.cc (the_low_target): Ditto.
1822 * linux-s390-low.cc (the_low_target): Ditto.
1823 * linux-sh-low.cc (the_low_target): Ditto.
1824 * linux-sparc-low.cc (the_low_target): Ditto.
1825 * linux-tic6x-low.cc (the_low_target): Ditto.
1826 * linux-tile-low.cc (the_low_target): Ditto.
1827 * linux-xtensa-low.cc (the_low_target): Ditto.
1828 * linux-aarch64-low.cc (class aarch64_target)
1829 <breakpoint_kind_from_pc>
1830 <breakpoint_kind_from_current_state>: Declare.
1831 (aarch64_breakpoint_kind_from_pc): Turn into...
1832 (aarch64_target::breakpoint_kind_from_pc): ...this.
1833 (aarch64_breakpoint_kind_from_current_state): Turn into...
1834 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1835 (the_low_target): Remove the op fields.
1836 * linux-arm-low.cc (class arm_target):
1837 <breakpoint_kind_from_pc>
1838 <breakpoint_kind_from_current_state>: Declare.
1839 (arm_target::breakpoint_kind_from_pc): Define.
1840 (arm_target::breakpoint_kind_from_current_state): Define.
1841 (the_low_target): Remove the op fields.
1842 * linux-riscv-low.cc (class riscv_target):
1843 <breakpoint_kind_from_pc>: Declare.
1844 (riscv_breakpoint_kind_from_pc): Turn into...
1845 (riscv_target::breakpoint_kind_from_pc): ...this.
1846 (the_low_target): Remove the op fields.
1847
bf9ae9d8
TBA
18482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1849
1850 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1851 of linux_process_target.
1852
1853 * linux-low.h (struct linux_target_ops): Remove the ops.
1854 (class linux_process_target) <low_supports_breakpoints>
1855 <low_get_pc>
1856 <low_set_pc>: Declare.
1857 * linux-low.cc (supports_breakpoints): Turn into...
1858 (linux_process_target::low_supports_breakpoints): ...this.
1859 (linux_process_target::low_get_pc): Define.
1860 (linux_process_target::low_set_pc): Define.
1861
1862 Update the callers below.
1863
1864 (linux_process_target::get_pc)
1865 (linux_process_target::save_stop_reason)
1866 (linux_process_target::maybe_move_out_of_jump_pad)
1867 (linux_process_target::wait_1)
1868 (linux_process_target::resume_one_lwp_throw)
1869 (linux_process_target::resume)
1870 (linux_process_target::proceed_all_lwps)
1871 (linux_process_target::read_pc)
1872 (linux_process_target::write_pc)
1873
1874 * linux-x86-low.cc (class linux_process_target)
1875 <low_supports_breakpoints>
1876 <low_get_pc>
1877 <low_set_pc>: Declare.
1878 (x86_target::low_supports_breakpoints): Define.
1879 (x86_get_pc): Turn into...
1880 (x86_target::low_get_pc): ...this.
1881 (x86_set_pc): Turn into...
1882 (x86_target::low_set_pc): ...this.
1883 (the_low_target): Remove the op fields.
1884 * linux-arm-low.cc (class arm_target)
1885 <low_supports_breakpoints>
1886 <low_get_pc>
1887 <low_set_pc>: Declare.
1888 (arm_target::low_supports_breakpoints)
1889 (arm_target::low_get_pc)
1890 (arm_target::low_set_pc): Define.
1891 (the_low_target): Remove the op fields.
1892 * linux-bfin-low.cc (class bfin_target)
1893 <low_supports_breakpoints>
1894 <low_get_pc>
1895 <low_set_pc>: Declare.
1896 (bfin_target::low_supports_breakpoints)
1897 (bfin_target::low_get_pc)
1898 (bfin_target::low_set_pc): Define.
1899 (the_low_target): Remove the op fields.
1900 * linux-cris-low.cc (class cris_target)
1901 <low_supports_breakpoints>
1902 <low_get_pc>
1903 <low_set_pc>: Declare.
1904 (cris_target::low_supports_breakpoints)
1905 (cris_target::low_get_pc)
1906 (cris_target::low_set_pc): Define.
1907 (the_low_target): Remove the op fields.
1908 * linux-crisv32-low.cc (class crisv32_target)
1909 <low_supports_breakpoints>
1910 <low_get_pc>
1911 <low_set_pc>: Declare.
1912 (crisv32_target::low_supports_breakpoints)
1913 (crisv32_target::low_get_pc)
1914 (crisv32_target::low_set_pc): Define.
1915 (the_low_target): Remove the op fields.
1916 * linux-m32r-low.cc (class m32r_target)
1917 <low_supports_breakpoints>
1918 <low_get_pc>
1919 <low_set_pc>: Declare.
1920 (m32r_target::low_supports_breakpoints)
1921 (m32r_target::low_get_pc)
1922 (m32r_target::low_set_pc): Define.
1923 (the_low_target): Remove the op fields.
1924 * linux-m68k-low.cc (class m68k_target)
1925 <low_supports_breakpoints>
1926 <low_get_pc>
1927 <low_set_pc>: Declare.
1928 (m68k_target::low_supports_breakpoints)
1929 (m68k_target::low_get_pc)
1930 (m68k_target::low_set_pc): Define.
1931 (the_low_target): Remove the op fields.
1932 * linux-nios2-low.cc (class nios2_target)
1933 <low_supports_breakpoints>
1934 <low_get_pc>
1935 <low_set_pc>: Declare.
1936 (nios2_target::low_supports_breakpoints)
1937 (nios2_target::low_get_pc)
1938 (nios2_target::low_set_pc): Define.
1939 (the_low_target): Remove the op fields.
1940 * linux-sh-low.cc (class sh_target)
1941 <low_supports_breakpoints>
1942 <low_get_pc>
1943 <low_set_pc>: Declare.
1944 (sh_target::low_supports_breakpoints)
1945 (sh_target::low_get_pc)
1946 (sh_target::low_set_pc): Define.
1947 (the_low_target): Remove the op fields.
1948 * linux-xtensa-low.cc (class xtensa_target)
1949 <low_supports_breakpoints>
1950 <low_get_pc>
1951 <low_set_pc>: Declare.
1952 (xtensa_target::low_supports_breakpoints)
1953 (xtensa_target::low_get_pc)
1954 (xtensa_target::low_set_pc): Define.
1955 (the_low_target): Remove the op fields.
1956 * linux-sparc-low.cc (class sparc_target)
1957 <low_supports_breakpoints>
1958 <low_get_pc>: Declare.
1959 (sparc_target::low_supports_breakpoints)
1960 (sparc_target::low_get_pc): Define.
1961 (the_low_target): Remove the op fields.
1962 * linux-tile-low.cc (class tile_target)
1963 <low_supports_breakpoints>
1964 <low_get_pc>
1965 <low_set_pc>: Declare.
1966 (tile_target::low_supports_breakpoints)
1967 (tile_target::low_get_pc)
1968 (tile_target::low_set_pc): Define.
1969 (the_low_target): Remove the op fields.
1970 * linux-aarch64-low.cc (class aarch64_target)
1971 <low_supports_breakpoints>
1972 <low_get_pc>
1973 <low_set_pc>: Declare.
1974 (aarch64_target::low_supports_breakpoints): Define.
1975 (aarch64_get_pc): Turn into...
1976 (aarch64_target::low_get_pc): ...this.
1977 (aarch64_set_pc): Turn into...
1978 (aarch64_target::low_set_pc): ...this.
1979 (the_low_target): Remove the op fields.
1980 * linux-mips-low.cc (class mips_target)
1981 <low_supports_breakpoints>
1982 <low_get_pc>
1983 <low_set_pc>: Declare.
1984 (mips_target::low_supports_breakpoints): Define.
1985 (mips_get_pc): Turn into...
1986 (mips_target::low_get_pc): ...this.
1987 (mips_set_pc): Turn into...
1988 (mips_target::low_set_pc): ...this.
1989 (the_low_target): Remove the op fields.
1990 * linux-ppc-low.cc (class ppc_target)
1991 <low_supports_breakpoints>
1992 <low_get_pc>
1993 <low_set_pc>: Declare.
1994 (ppc_target::low_supports_breakpoints): Define.
1995 (ppc_get_pc): Turn into...
1996 (ppc_target::low_get_pc): ...this.
1997 (ppc_set_pc): Turn into...
1998 (ppc_target::low_set_pc): ...this.
1999 (the_low_target): Remove the op fields.
2000 * linux-riscv-low.cc (class riscv_target)
2001 <low_supports_breakpoints>
2002 <low_get_pc>
2003 <low_set_pc>: Declare.
2004 (riscv_target::low_supports_breakpoints): Define.
2005 (riscv_get_pc): Turn into...
2006 (riscv_target::low_get_pc): ...this.
2007 (riscv_set_pc): Turn into...
2008 (riscv_target::low_set_pc): ...this.
2009 (the_low_target): Remove the op fields.
2010 * linux-s390-low.cc (class s390_target)
2011 <low_supports_breakpoints>
2012 <low_get_pc>
2013 <low_set_pc>: Declare.
2014 (s390_target::low_supports_breakpoints): Define.
2015 (s390_get_pc): Turn into...
2016 (s390_target::low_get_pc): ...this.
2017 (s390_set_pc): Turn into...
2018 (s390_target::low_set_pc): ...this.
2019 (the_low_target): Remove the op fields.
2020 * linux-tic6x-low.cc (class tic6x_target)
2021 <low_supports_breakpoints>
2022 <low_get_pc>
2023 <low_set_pc>: Declare.
2024 (tic6x_target::low_supports_breakpoints): Define.
2025 (tic6x_get_pc): Turn into...
2026 (tic6x_target::low_get_pc): ...this.
2027 (tic6x_set_pc): Turn into...
2028 (tic6x_target::low_set_pc): ...this.
2029 (the_low_target): Remove the op fields.
2030
df95181f
TBA
20312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2032
2033 Turn some more static methods in linux-low into private methods
2034 of linux_process_target.
2035
2036 * linux-low.cc (get_pc): Turn into...
2037 (linux_process_target::get_pc): ...this.
2038 (save_stop_reason): Turn into...
2039 (linux_process_target::save_stop_reason): ...this.
2040 (thread_still_has_status_pending_p): Turn into...
2041 (linux_process_target::thread_still_has_status_pending): ...this.
2042 (status_pending_p_callback): Turn into...
2043 (linux_process_target::status_pending_p_callback): ...this.
2044 (resume_stopped_resumed_lwps): Turn into...
2045 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2046 (install_software_single_step_breakpoints): Turn into...
2047 (linux_process_target::install_software_single_step_breakpoints):
2048 ...this.
2049 (single_step): Turn into...
2050 (linux_process_target::single_step): ...this.
2051 (linux_resume_one_lwp_throw): Turn into...
2052 (linux_process_target::resume_one_lwp_throw): ...this.
2053 (linux_resume_one_lwp): Turn into...
2054 (linux_process_target::resume_one_lwp): ...this.
2055 (resume_status_pending_p): Turn into...
2056 (linux_process_target::resume_status_pending): ...this.
2057 (need_step_over_p): Turn into...
2058 (linux_process_target::thread_needs_step_over): ...this.
2059 (linux_resume_one_thread): Turn into...
2060 (linux_process_target::resume_one_thread): ...this.
2061 (proceed_one_lwp): Turn into...
2062 (linux_process_target::proceed_one_lwp): ...this.
2063 (unsuspend_and_proceed_one_lwp): Turn into...
2064 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2065
2066 Update the calls/references to the above functions below.
2067
2068 (linux_process_target::handle_extended_wait)
2069 (linux_process_target::filter_event)
2070 (linux_process_target::wait_for_event_filtered)
2071 (linux_process_target::wait_1)
2072 (linux_process_target::move_out_of_jump_pad)
2073 (linux_process_target::start_step_over)
2074 (linux_process_target::resume)
2075 (linux_process_target::proceed_all_lwps)
2076 (regsets_store_inferior_registers)
2077 (linux_process_target::store_register)
2078
2079 * linux-low.h (class linux_process_target)
2080 <get_pc>
2081 <save_stop_reason>
2082 <thread_still_has_status_pending>
2083 <status_pending_p_callback>
2084 <resume_stopped_resumed_lwps>
2085 <install_software_single_step_breakpoints>
2086 <single_step>
2087 <resume_one_lwp_throw>
2088 <resume_one_lwp>
2089 <resume_status_pending>
2090 <thread_needs_step_over>
2091 <resume_one_thread>
2092 <proceed_one_lwp>
2093 <unsuspend_and_proceed_one_lwp>: Declare.
2094
bd70b1f2
TBA
20952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2096
2097 Turn the 'fetch_register' linux target op into a method of
2098 linux_process_target.
2099
2100 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2101 (class linux_process_target) <low_fetch_register>: Declare.
2102 * linux-x86-low.cc (the_low_target)
2103 * linux-aarch64-low.cc (the_low_target)
2104 * linux-arm-low.cc (the_low_target)
2105 * linux-bfin-low.cc (the_low_target)
2106 * linux-cris-low.cc (the_low_target)
2107 * linux-crisv32-low.cc (the_low_target)
2108 * linux-m32r-low.cc (the_low_target)
2109 * linux-m68k-low.cc (the_low_target)
2110 * linux-nios2-low.cc (the_low_target)
2111 * linux-ppc-low.cc (the_low_target)
2112 * linux-s390-low.cc (the_low_target)
2113 * linux-sh-low.cc (the_low_target)
2114 * linux-sparc-low.cc (the_low_target)
2115 * linux-tic6x-low.cc (the_low_target)
2116 * linux-tile-low.cc (the_low_target)
2117 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2118 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2119 Declare.
2120 (ia64_fetch_register): Turn into...
2121 (ia64_target::low_fetch_register): ...this.
2122 (the_low_target): Remove the op field.
2123 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2124 Declare.
2125 (mips_fetch_register): Turn into...
2126 (mips_target::low_fetch_register): ...this.
2127 (the_low_target): Remove the op field.
2128 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2129 Declare.
2130 (riscv_fetch_register): Turn into...
2131 (riscv_target::low_fetch_register): ...this.
2132 (the_low_target): Remove the op field.
2133
2134 Update the callers below.
2135
2136 * linux-low.cc (linux_process_target::fetch_registers)
2137 (linux_process_target::low_fetch_register)
2138
daca57a7
TBA
21392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2140
2141 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2142 linux target ops into methods of linux_process_target.
2143
2144 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2145 (class linux_process_target) <fetch_register>
2146 <store_register>
2147 <usr_fetch_inferior_registers>
2148 <usr_store_inferior_registers>
2149 <low_cannot_fetch_register>
2150 <low_cannot_fetch_register> Declare.
2151 * linux-low.cc (fetch_register): Turn into...
2152 (linux_process_target::fetch_register): ...this.
2153 (store_register): Turn into ...
2154 (linux_process_target::store_register): ...this.
2155 (usr_fetch_inferior_registers): Turn into...
2156 (linux_process_target::usr_fetch_inferior_registers): ...this.
2157 (usr_store_inferior_registers): Turn into...
2158 (linux_process_target::usr_store_inferior_registers): ...this.
2159 * linux-x86-low.cc (class x86_target)
2160 <low_cannot_fetch_register>
2161 <low_cannot_store_register>: Declare.
2162 (x86_cannot_store_register): Turn into...
2163 (x86_target::low_cannot_store_register): ...this.
2164 (x86_cannot_fetch_register): Turn into...
2165 (x86_target::low_cannot_fetch_register): ...this.
2166 (the_low_target): Remove the target op fields.
2167 * linux-aarch64-low.cc (class aarch64_target)
2168 <low_cannot_fetch_register>
2169 <low_cannot_store_register>: Declare.
2170 (aarch64_target::low_cannot_fetch_register)
2171 (aarch64_target::low_cannot_store_register): Define.
2172 (the_low_target): Remove the op fields.
2173 * linux-arm-low.cc (class arm_target)
2174 <low_cannot_fetch_register>
2175 <low_cannot_store_register>: Declare.
2176 (arm_cannot_fetch_register): Turn into...
2177 (arm_target::low_cannot_fetch_register): ...this.
2178 (arm_cannot_store_register): Turn into...
2179 (arm_target::low_cannot_store_register): ...this.
2180 (the_low_target): Remove the op fields.
2181 * linux-bfin-low.cc (class bfin_target)
2182 <low_cannot_fetch_register>
2183 <low_cannot_store_register>: Declare.
2184 (bfin_cannot_fetch_register): Turn into...
2185 (bfin_target::low_cannot_fetch_register): ...this.
2186 (bfin_cannot_store_register): Turn into...
2187 (bfin_target::low_cannot_store_register): ...this.
2188 (the_low_target): Remove the op fields.
2189 * linux-cris-low.cc (class cris_target)
2190 <low_cannot_fetch_register>
2191 <low_cannot_store_register>: Declare.
2192 (cris_cannot_fetch_register): Turn into...
2193 (cris_target::low_cannot_fetch_register): ...this.
2194 (cris_cannot_store_register): Turn into...
2195 (cris_target::low_cannot_store_register): ...this.
2196 (the_low_target): Remove the op fields.
2197 * linux-crisv32-low.cc (class crisv32_target)
2198 <low_cannot_fetch_register>
2199 <low_cannot_store_register>: Declare.
2200 (crisv32_target::low_cannot_fetch_register)
2201 (crisv32_target::low_cannot_store_register): Define.
2202 (the_low_target): Remove the op fields.
2203 * linux-ia64-low.cc (class ia64_target)
2204 <low_cannot_fetch_register>
2205 <low_cannot_store_register>: Declare.
2206 (ia64_cannot_fetch_register): Turn into...
2207 (ia64_target::low_cannot_fetch_register): ...this.
2208 (ia64_cannot_store_register): Turn into...
2209 (ia64_target::low_cannot_store_register): ...this.
2210 (the_low_target): Remove the op fields.
2211 * linux-m32r-low.cc (class m32r_target)
2212 <low_cannot_fetch_register>
2213 <low_cannot_store_register>: Declare.
2214 (m32r_cannot_fetch_register): Turn into...
2215 (m32r_target::low_cannot_fetch_register): ...this.
2216 (m32r_cannot_store_register): Turn into...
2217 (m32r_target::low_cannot_store_register): ...this.
2218 (the_low_target): Remove the op fields.
2219 * linux-m68k-low.cc (class m68k_target)
2220 <low_cannot_fetch_register>
2221 <low_cannot_store_register>: Declare.
2222 (m68k_cannot_fetch_register): Turn into...
2223 (m68k_target::low_cannot_fetch_register): ...this.
2224 (m68k_cannot_store_register): Turn into...
2225 (m68k_target::low_cannot_store_register): ...this.
2226 (the_low_target): Remove the op fields.
2227 * linux-mips-low.cc (class mips_target)
2228 <low_cannot_fetch_register>
2229 <low_cannot_store_register>: Declare.
2230 (mips_cannot_fetch_register): Turn into...
2231 (mips_target::low_cannot_fetch_register): ...this.
2232 (mips_cannot_store_register): Turn into...
2233 (mips_target::low_cannot_store_register): ...this.
2234 (get_usrregs_info): Inline at the call sites in
2235 low_cannot_fetch_register and low_cannot_store_register,
2236 and remove.
2237 (the_low_target): Remove the op fields.
2238 * linux-nios2-low.cc (class nios2_target)
2239 <low_cannot_fetch_register>
2240 <low_cannot_store_register>: Declare.
2241 (nios2_cannot_fetch_register): Turn into...
2242 (nios2_target::low_cannot_fetch_register): ...this.
2243 (nios2_cannot_store_register): Turn into...
2244 (nios2_target::low_cannot_store_register): ...this.
2245 (the_low_target): Remove the op fields.
2246 * linux-ppc-low.cc (class ppc_target)
2247 <low_cannot_fetch_register>
2248 <low_cannot_store_register>: Declare.
2249 (ppc_cannot_fetch_register): Turn into...
2250 (ppc_target::low_cannot_fetch_register): ...this.
2251 (ppc_cannot_store_register): Turn into...
2252 (ppc_target::low_cannot_store_register): ...this.
2253 (the_low_target): Remove the op fields.
2254 * linux-riscv-low.cc (class riscv_target)
2255 <low_cannot_fetch_register>
2256 <low_cannot_store_register>: Declare.
2257 (riscv_target::low_cannot_fetch_register)
2258 (riscv_target::low_cannot_store_register): Define.
2259 (the_low_target): Remove the op fields.
2260 * linux-s390-low.cc (class s390_target)
2261 <low_cannot_fetch_register>
2262 <low_cannot_store_register>: Declare.
2263 (s390_cannot_fetch_register): Turn into...
2264 (s390_target::low_cannot_fetch_register): ...this.
2265 (s390_cannot_store_register): Turn into...
2266 (s390_target::low_cannot_store_register): ...this.
2267 (the_low_target): Remove the op fields.
2268 * linux-sh-low.cc (class sh_target)
2269 <low_cannot_fetch_register>
2270 <low_cannot_store_register>: Declare.
2271 (sh_cannot_fetch_register): Turn into...
2272 (sh_target::low_cannot_fetch_register): ...this.
2273 (sh_cannot_store_register): Turn into...
2274 (sh_target::low_cannot_store_register): ...this.
2275 (the_low_target): Remove the op fields.
2276 * linux-sparc-low.cc (class sparc_target)
2277 <low_cannot_fetch_register>
2278 <low_cannot_store_register>: Declare.
2279 (sparc_cannot_fetch_register): Turn into...
2280 (sparc_target::low_cannot_fetch_register): ...this.
2281 (sparc_cannot_store_register): Turn into...
2282 (sparc_target::low_cannot_store_register): ...this.
2283 (the_low_target): Remove the op fields.
2284 * linux-tic6x-low.cc (class tic6x_target)
2285 <low_cannot_fetch_register>
2286 <low_cannot_store_register>: Declare.
2287 (tic6x_cannot_fetch_register): Turn into...
2288 (tic6x_target::low_cannot_fetch_register): ...this.
2289 (tic6x_cannot_store_register): Turn into...
2290 (tic6x_target::low_cannot_store_register): ...this.
2291 (the_low_target): Remove the op fields.
2292 * linux-tile-low.cc (class tile_target)
2293 <low_cannot_fetch_register>
2294 <low_cannot_store_register>: Declare.
2295 (tile_cannot_fetch_register): Turn into...
2296 (tile_target::low_cannot_fetch_register): ...this.
2297 (tile_cannot_store_register): Turn into...
2298 (tile_target::low_cannot_store_register): ...this.
2299 (the_low_target): Remove the op fields.
2300 * linux-xtensa-low.cc (class xtensa_target)
2301 <low_cannot_fetch_register>
2302 <low_cannot_store_register>: Declare.
2303 (xtensa_target::low_cannot_fetch_register)
2304 (xtensa_target::low_cannot_store_register): Define.
2305 (the_low_target): Remove the op fields.
2306
aa8d21c9
TBA
23072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2308
2309 Turn the 'regs_info' linux target op into a method of
2310 linux_process_target.
2311
2312 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2313 (class linux_process_target) <get_regs_info>: Define.
2314
2315 Update the callers below.
2316
2317 * linux-low.cc (linux_process_target::fetch_registers)
2318 (linux_process_target::store_registers)
2319 * proc-service.cc (gregset_info)
2320
2321 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2322 (x86_linux_regs_info): Turn into ...
2323 (x86_target::get_regs_info): ...this.
2324 (the_low_target): Remove the op field.
2325 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2326 Declare.
2327 (aarch64_regs_info): Turn into ...
2328 (aarch64_target::get_regs_info): ...this.
2329 (the_low_target): Remove the op field.
2330 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2331 (arm_regs_info): Turn into ...
2332 (arm_target::get_regs_info): ...this.
2333 (the_low_target): Remove the op field.
2334 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2335 (bfin_regs_info): Turn into ...
2336 (bfin_target::get_regs_info): ...this.
2337 (the_low_target): Remove the op field.
2338 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2339 (cris_regs_info): Turn into ...
2340 (cris_target::get_regs_info): ...this.
2341 (the_low_target): Remove the op field.
2342 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2343 Declare.
2344 (crisv32_regs_info): Turn into ...
2345 (crisv32_target::get_regs_info): ...this.
2346 (the_low_target): Remove the op field.
2347 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2348 (ia64_regs_info): Turn into ...
2349 (ia64_target::get_regs_info): ...this.
2350 (the_low_target): Remove the op field.
2351 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2352 (m32r_regs_info): Turn into ...
2353 (m32r_target::get_regs_info): ...this.
2354 (the_low_target): Remove the op field.
2355 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2356 (m68k_regs_info): Turn into ...
2357 (m68k_target::get_regs_info): ...this.
2358 (the_low_target): Remove the op field.
2359 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2360 (mips_regs_info): Turn into ...
2361 (mips_target::get_regs_info): ...this.
2362 (the_low_target): Remove the op field.
2363 (get_usrregs_info): Update the call to the op.
2364 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2365 (nios2_regs_info): Turn into ...
2366 (nios2_target::get_regs_info): ...this.
2367 (the_low_target): Remove the op field.
2368 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2369 (ppc_regs_info): Turn into ...
2370 (ppc_target::get_regs_info): ...this.
2371 (the_low_target): Remove the op field.
2372 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2373 (riscv_regs_info): Turn into ...
2374 (riscv_target::get_regs_info): ...this.
2375 (the_low_target): Remove the op field.
2376 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2377 (s390_regs_info): Turn into ...
2378 (s390_target::get_regs_info): ...this.
2379 (the_low_target): Remove the op field.
2380 (s390_collect_ptrace_register)
2381 (s390_supply_ptrace_register)
2382 (s390_fill_gregset): Update the call to the op.
2383 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2384 (sh_regs_info): Turn into ...
2385 (sh_target::get_regs_info): ...this.
2386 (the_low_target): Remove the op field.
2387 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2388 (sparc_regs_info): Turn into ...
2389 (sparc_target::get_regs_info): ...this.
2390 (the_low_target): Remove the op field.
2391 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2392 (tic6x_regs_info): Turn into ...
2393 (tic6x_target::get_regs_info): ...this.
2394 (the_low_target): Remove the op field.
2395 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2396 (tile_regs_info): Turn into ...
2397 (tile_target::get_regs_info): ...this.
2398 (the_low_target): Remove the op field.
2399 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2400 Declare.
2401 (xtensa_regs_info): Turn into ...
2402 (xtensa_target::get_regs_info): ...this.
2403 (the_low_target): Remove the op field.
2404
797bcff5
TBA
24052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2406
2407 Turn the 'arch_setup' linux target op into a method of
2408 linux_process_target.
2409
2410 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2411 (class linux_process_target) <arch_setup_thread>
2412 <low_arch_setup>: New declarations.
2413 * linux-low.cc (linux_arch_setup): Delete.
2414 (linux_arch_setup_thread): Turn into...
2415 (linux_process_target::arch_setup_thread): ... this.
2416
2417 Update the callers below.
2418
2419 (linux_process_target::handle_extended_wait)
2420 (linux_process_target::post_create_inferior)
2421 (linux_process_target::filter_event)
2422
2423 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2424 declaration.
2425 (x86_linux_update_xmltarget): Turn into...
2426 (x86_target::update_xmltarget): ...this.
2427 (x86_linux_process_qsupported): Update the call to
2428 x86_linux_update_xmltarget.
2429 (x86_arch_setup): Turn into ...
2430 (x86_target::low_arch_setup): ...this.
2431 (the_low_target): Remove the op field.
2432 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2433 declaration.
2434 (aarch64_arch_setup): Turn into ...
2435 (aarch64_target::low_arch_setup): ...this.
2436 (the_low_target): Remove the op field.
2437 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2438 declaration.
2439 (arm_arch_setup): Turn into ...
2440 (arm_target::low_arch_setup): ...this.
2441 (the_low_target): Remove the op field.
2442 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2443 declaration.
2444 (bfin_arch_setup): Turn into ...
2445 (bfin_target::low_arch_setup): ...this.
2446 (the_low_target): Remove the op field.
2447 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2448 declaration.
2449 (cris_arch_setup): Turn into ...
2450 (cris_target::low_arch_setup): ...this.
2451 (the_low_target): Remove the op field.
2452 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2453 declaration.
2454 (crisv32_arch_setup): Turn into ...
2455 (crisv32_target::low_arch_setup): ...this.
2456 (the_low_target): Remove the op field.
2457 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2458 declaration.
2459 (ia64_arch_setup): Turn into ...
2460 (ia64_target::low_arch_setup): ...this.
2461 (the_low_target): Remove the op field.
2462 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2463 declaration.
2464 (m32r_arch_setup): Turn into ...
2465 (m32r_target::low_arch_setup): ...this.
2466 (the_low_target): Remove the op field.
2467 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2468 declaration.
2469 (m68k_arch_setup): Turn into ...
2470 (m68k_target::low_arch_setup): ...this.
2471 (the_low_target): Remove the op field.
2472 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2473 declaration.
2474 (mips_arch_setup): Turn into ...
2475 (mips_target::low_arch_setup): ...this.
2476 (the_low_target): Remove the op field.
2477 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2478 declaration.
2479 (nios2_arch_setup): Turn into ...
2480 (nios2_target::low_arch_setup): ...this.
2481 (the_low_target): Remove the op field.
2482 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2483 declaration.
2484 (ppc_arch_setup): Turn into ...
2485 (ppc_target::low_arch_setup): ...this.
2486 (the_low_target): Remove the op field.
2487 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2488 declaration.
2489 (riscv_arch_setup): Turn into ...
2490 (riscv_target::low_arch_setup): ...this.
2491 (the_low_target): Remove the op field.
2492 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2493 declaration.
2494 (s390_arch_setup): Turn into ...
2495 (s390_target::low_arch_setup): ...this.
2496 (the_low_target): Remove the op field.
2497 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2498 declaration.
2499 (sh_arch_setup): Turn into ...
2500 (sh_target::low_arch_setup): ...this.
2501 (the_low_target): Remove the op field.
2502 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2503 declaration.
2504 (sparc_arch_setup): Turn into ...
2505 (sparc_target::low_arch_setup): ...this.
2506 (the_low_target): Remove the op field.
2507 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2508 declaration.
2509 (tic6x_arch_setup): Turn into ...
2510 (tic6x_target::low_arch_setup): ...this.
2511 (the_low_target): Remove the op field.
2512 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2513 declaration.
2514 (tile_arch_setup): Turn into ...
2515 (tile_target::low_arch_setup): ...this.
2516 (the_low_target): Remove the op field.
2517 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2518 declaration.
2519 (xtensa_arch_setup): Turn into ...
2520 (xtensa_target::low_arch_setup): ...this.
2521 (the_low_target): Remove the op field.
2522
ef0478f6
TBA
25232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2524
2525 * linux-low.h (the_linux_target): New extern declaration.
2526 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2527 'the_target'.
2528 (the_linux_target): Remove.
2529 * linux-x86-low.cc (class x86_target): New class.
2530 (the_x86_target): New static object.
2531 (the_linux_target): Define as pointer to the_x86_target.
2532 * linux-aarch64-low.cc (class aarch64_target): New class.
2533 (the_aarch64_target): New static object.
2534 (the_linux_target): Define as pointer to the_aarch64_target.
2535 * linux-arm-low.cc (class arm_target): New class.
2536 (the_arm_target): New static object.
2537 (the_linux_target): Define as pointer to the_arm_target.
2538 * linux-bfin-low.cc (class bfin_target): New class.
2539 (the_bfin_target): New static object.
2540 (the_linux_target): Define as pointer to the_bfin_target.
2541 * linux-cris-low.cc (class cris_target): New class.
2542 (the_cris_target): New static object.
2543 (the_linux_target): Define as pointer to the_cris_target.
2544 * linux-crisv32-low.cc (class crisv32_target): New class.
2545 (the_crisv32_target): New static object.
2546 (the_linux_target): Define as pointer to the_crisv32_target.
2547 * linux-ia64-low.cc (class ia64_target): New class.
2548 (the_ia64_target): New static object.
2549 (the_linux_target): Define as pointer to the_ia64_target.
2550 * linux-m32r-low.cc (class m32r_target): New class.
2551 (the_m32r_target): New static object.
2552 (the_linux_target): Define as pointer to the_m32r_target.
2553 * linux-m68k-low.cc (class m68k_target): New class.
2554 (the_m68k_target): New static object.
2555 (the_linux_target): Define as pointer to the_m68k_target.
2556 * linux-mips-low.cc (class mips_target): New class.
2557 (the_mips_target): New static object.
2558 (the_linux_target): Define as pointer to the_mips_target.
2559 * linux-nios2-low.cc (class nios2_target): New class.
2560 (the_nios2_target): New static object.
2561 (the_linux_target): Define as pointer to the_nios2_target.
2562 * linux-ppc-low.cc (class ppc_target): New class.
2563 (the_ppc_target): New static object.
2564 (the_linux_target): Define as pointer to the_ppc_target.
2565 * linux-riscv-low.cc (class riscv_target): New class.
2566 (the_riscv_target): New static object.
2567 (the_linux_target): Define as pointer to the_riscv_target.
2568 * linux-s390-low.cc (class s390_target): New class.
2569 (the_s390_target): New static object.
2570 (the_linux_target): Define as pointer to the_s390_target.
2571 * linux-sh-low.cc (class sh_target): New class.
2572 (the_sh_target): New static object.
2573 (the_linux_target): Define as pointer to the_sh_target.
2574 * linux-sparc-low.cc (class sparc_target): New class.
2575 (the_sparc_target): New static object.
2576 (the_linux_target): Define as pointer to the_sparc_target.
2577 * linux-tic6x-low.cc (class tic6x_target): New class.
2578 (the_tic6x_target): New static object.
2579 (the_linux_target): Define as pointer to the_tic6x_target.
2580 * linux-tile-low.cc (class tile_target): New class.
2581 (the_tile_target): New static object.
2582 (the_linux_target): Define as pointer to the_tile_target.
2583 * linux-xtensa-low.cc (class xtensa_target): New class.
2584 (the_xtensa_target): New static object.
2585 (the_linux_target): Define as pointer to the_xtensa_target.
2586
d16f3f6c
TBA
25872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2588
2589 Turn some static functions in linux-low.cc into private methods of
2590 linux_process_target.
2591
2592 * linux-low.cc (handle_extended_wait): Turn into ...
2593 (linux_process_target::handle_extended_wait): ...this. Call
2594 'mourn' on 'this' object instead of 'the_target'.
2595 (maybe_move_out_of_jump_pad): Turn into...
2596 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2597 (linux_low_filter_event): Turn into...
2598 (linux_process_target::filter_event): ...this.
2599 (linux_wait_for_event_filtered): Turn into...
2600 (linux_process_target::wait_for_event_filtered): ...this.
2601 (linux_wait_for_event): Turn into...
2602 (linux_process_target::wait_for_event): ...this.
2603 (linux_wait_1): Turn into...
2604 (linux_process_target::wait_1): ...this.
2605 (wait_for_sigstop): Turn into...
2606 (linux_process_target::wait_for_sigstop): ...this.
2607 (move_out_of_jump_pad_callback): Turn into...
2608 (linux_process_target::move_out_of_jump_pad): ...this.
2609 (stop_all_lwps): Turn into...
2610 (linux_process_target::stop_all_lwps): ...this.
2611 (start_step_over): Turn into...
2612 (linux_process_target::start_step_over): ...this.
2613 (complete_ongoing_step_over): Turn into...
2614 (linux_process_target::complete_ongoing_step_over): ...this.
2615 (proceed_all_lwps): Turn into...
2616 (linux_process_target::proceed_all_lwps): ...this.
2617 (unstop_all_lwps): Turn into...
2618 (linux_process_target::unstop_all_lwps): ...this.
2619
2620 * linux-low.h (class linux_process_target)
2621 <handle_extended_wait>
2622 <maybe_move_out_of_jump_pad>
2623 filter_event>
2624 <wait_for_event_filtered>
2625 <wait_for_event>
2626 <wait_1>
2627 <wait_for_sigstop>
2628 <move_out_of_jump_pad>
2629 <stop_all_lwps>
2630 <start_step_over>
2631 <complete_ongoing_step_over>
2632 <proceed_all_lwps>
2633 <unstop_all_lwps>: Declare.
2634
2635 Update the callers below.
2636
2637 * linux-low.cc (linux_process_target::attach): Update.
2638 (linux_process_target::stabilize_threads): Ditto.
2639 (linux_process_target::wait): Ditto.
2640
a5863204
TBA
26412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2642
2643 * linux-low.h (struct linux_target_ops): Update the comment for
2644 'cannot_store_register' to return 0 or 1.
2645 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2646 of 2.
2647
c884cc46
SM
26482020-03-20 Simon Marchi <simon.marchi@efficios.com>
2649
2650 * config.in: Re-generate.
2651 * configure: Re-generate.
2652
5a82b8a1
KR
26532020-03-17 Kamil Rytarowski <n54@gmx.com>
2654
2655 * regcache.cc (find_register_by_number): Update.
2656 * tdesc.cc (init_target_desc): Likewise.
2657 * tdesc.h (target_desc::reg_defs): Likewise.
2658
4635ff97
TT
26592020-03-12 Tom Tromey <tom@tromey.com>
2660
2661 * configure: Rebuild.
2662 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2663 (WIN32APILIBS): New subst.
2664 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2665 gdbsupport files.
2666 (gdbsupport/%.o): Remove target.
2667 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2668 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2669 (WIN32APILIBS): New variable.
2670 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2671 (gdbreplay$(EXEEXT)): Likewise.
2672
9a665d62
TT
26732020-03-12 Tom Tromey <tom@tromey.com>
2674
2675 * config.in, configure: Rebuild.
2676 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2677 * acinclude.m4: Include gettext-sister.m4.
2678 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2679 variables.
2680 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2681 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2682
272cd5a3
SM
26832020-03-12 Simon Marchi <simon.marchi@efficios.com>
2684
2685 * acinclude.m4: Update path to selftest.m4.
2686
db6878ac
SM
26872020-03-12 Simon Marchi <simon.marchi@efficios.com>
2688
2689 * configure.ac: Don't source bfd/development.sh, move
2690 GDB_AC_COMMON higher.
2691 * configure: Re-generate.
2692
4d696a5c
SM
26932020-03-12 Simon Marchi <simon.marchi@efficios.com>
2694
2695 * configure: Re-generate.
2696
a0761e34
SM
26972020-03-11 Simon Marchi <simon.marchi@efficios.com>
2698
2699 * configure: Re-generate.
2700
20ea4a60
AB
27012020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2702
2703 * .dir-locals.el: New file.
2704
842806cb
TBA
27052020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2706
2707 * .gitattributes: New file.
2708
442131c1
AB
27092020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2710
2711 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2712 reply into an S reply.
2713 * server.cc (disable_packet_T): New global.
2714 (captured_main): Set new global when appropriate.
2715 * server.h (disable_packet_T): Declare.
2716
dda42c0b
TT
27172020-02-21 Tom Tromey <tom@tromey.com>
2718
2719 * Makefile.in (mostlyclean): New target.
2720
52405d85
TBA
27212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2722
2723 * target.h (struct process_stratum_target): Remove.
2724 (class process_target): Rename to ...
2725 (class process_stratum_target): ... this.
2726 * linux-low.h (class linux_process_target): Derive from
2727 'process_stratum_target'.
2728 * linux-low.cc (linux_target_ops): Remove.
2729 (initialize_low): Set the_target to the singleton instance of
2730 linux_process_target.
2731 * lynx-low.h (class lynx_process_target): Derive from
2732 'process_stratum_target'.
2733 * lynx-low.cc (lynx_target_ops): Remove.
2734 (initialize_low): Set the_target to the singleton instance of
2735 lynx_process_target.
2736 * nto-low.h (class nto_process_target): Derive from
2737 'process_stratum_target'.
2738 * nto-low.cc (nto_target_ops): Remove.
2739 (initialize_low): Set the_target to the singleton instance of
2740 nto_process_target.
2741 * win32-low.h (class win32_process_target): Derive from
2742 'process_stratum_target'.
2743 * win32-low.cc (win32_target_ops): Remove.
2744 (initialize_low): Set the_target to the singleton instance of
2745 win32_process_target.
2746
2747 Replace 'the_target->pt' with 'the_target' in the uses below.
2748
2749 * hostio.cc (hostio_error)
2750 (handle_setfs)
2751 (handle_open)
2752 (handle_unlink)
2753 (handle_readlink)
2754 * linux-aarch32-low.cc (arm_breakpoint_at)
2755 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2756 * linux-arm-low.cc (arm_sigreturn_next_pc)
2757 (arm_get_hwcap)
2758 (arm_get_syscall_trapinfo)
2759 * linux-cris-low.cc (cris_breakpoint_at)
2760 * linux-crisv32-low.cc (cris_breakpoint_at)
2761 * linux-low.cc (handle_extended_wait)
2762 (linux_wait_1)
2763 (linux_read_memory)
2764 (linux_process_target::breakpoint_kind_from_pc)
2765 (linux_get_auxv)
2766 * linux-m32r-low.cc (m32r_breakpoint_at)
2767 * linux-mips-low.cc (mips_breakpoint_at)
2768 * linux-nios2-low.cc (nios2_breakpoint_at)
2769 * linux-ppc-low.cc (ppc_breakpoint_at)
2770 * linux-s390-low.cc (s390_get_hwcap)
2771 * linux-sh-low.cc (sh_breakpoint_at)
2772 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2773 (sparc_store_gregset_from_stack)
2774 (sparc_breakpoint_at)
2775 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2776 * linux-tile-low.cc (tile_breakpoint_at)
2777 * linux-x86-low.cc (x86_breakpoint_at)
2778 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2779 * mem-break.cc (bp_size)
2780 (bp_opcode)
2781 (insert_memory_breakpoint)
2782 (set_raw_breakpoint_at)
2783 (delete_raw_breakpoint)
2784 (z_type_supported)
2785 (uninsert_raw_breakpoint)
2786 (reinsert_raw_breakpoint)
2787 (validate_inserted_breakpoint)
2788 * regcache.cc (regcache_read_pc)
2789 (regcache_write_pc)
2790 * remote-utils.cc (putpkt_binary_1)
2791 (input_interrupt)
2792 (getpkt)
2793 (prepare_resume_reply)
2794 * server.cc (handle_general_set)
2795 (handle_detach)
2796 (handle_qxfer_auxv)
2797 (handle_qxfer_exec_file)
2798 (handle_qxfer_libraries_svr4)
2799 (handle_qxfer_osdata)
2800 (handle_qxfer_siginfo)
2801 (handle_qxfer_fdpic)
2802 (handle_query)
2803 (resume)
2804 (handle_v_requests)
2805 (queue_stop_reply_callback)
2806 (captured_main)
2807 * target.cc (prepare_to_access_memory)
2808 (done_accessing_memory)
2809 (read_inferior_memory)
2810 (target_write_memory)
2811 (target_stop_and_wait)
2812 (target_wait)
2813 (target_mourn_inferior)
2814 (target_continue_no_signal)
2815 (target_continue)
2816 (target_supports_multi_process)
2817 (kill_inferior)
2818 * target.h
2819 (target_create_inferior)
2820 (target_post_create_inferior)
2821 (myattach)
2822 (target_supports_fork_events)
2823 (target_supports_vfork_events)
2824 (target_supports_exec_events)
2825 (target_handle_new_gdb_connection)
2826 (detach_inferior)
2827 (mythread_alive)
2828 (fetch_inferior_registers)
2829 (store_inferior_registers)
2830 (join_inferior)
2831 (target_supports_non_stop)
2832 (target_async)
2833 (target_process_qsupported)
2834 (target_supports_catch_syscall)
2835 (target_get_ipa_tdesc_idx)
2836 (target_supports_tracepoints)
2837 (target_supports_fast_tracepoints)
2838 (target_get_min_fast_tracepoint_insn_len)
2839 (target_thread_stopped)
2840 (target_pause_all)
2841 (target_unpause_all)
2842 (target_stabilize_threads)
2843 (target_install_fast_tracepoint_jump_pad)
2844 (target_emit_ops)
2845 (target_supports_disable_randomization)
2846 (target_supports_agent)
2847 (target_enable_btrace)
2848 (target_disable_btrace)
2849 (target_read_btrace)
2850 (target_read_btrace_conf)
2851 (target_supports_range_stepping)
2852 (target_supports_stopped_by_sw_breakpoint)
2853 (target_stopped_by_sw_breakpoint)
2854 (target_supports_stopped_by_hw_breakpoint)
2855 (target_supports_hardware_single_step)
2856 (target_stopped_by_hw_breakpoint)
2857 (target_breakpoint_kind_from_pc)
2858 (target_breakpoint_kind_from_current_state)
2859 (target_supports_software_single_step)
2860 (target_core_of_thread)
2861 (target_thread_name)
2862 (target_thread_handle)
2863 * win32-low.cc (do_initial_child_stuff)
2864
2865 Rename target op default definitions listed below.
2866
2867 * target.cc (process_target::post_create_inferior): Rename as ...
2868 (process_stratum_target::post_create_inferior): ... this.
2869 (process_target::prepare_to_access_memory): Rename as ...
2870 (process_stratum_target::prepare_to_access_memory): ... this.
2871 (process_target::done_accessing_memory): Rename as ...
2872 (process_stratum_target::done_accessing_memory): ... this.
2873 (process_target::look_up_symbols): Rename as ...
2874 (process_stratum_target::look_up_symbols): ... this.
2875 (process_target::supports_read_auxv): Rename as ...
2876 (process_stratum_target::supports_read_auxv): ... this.
2877 (process_target::read_auxv): Rename as ...
2878 (process_stratum_target::read_auxv): ... this.
2879 (process_target::supports_z_point_type): Rename as ...
2880 (process_stratum_target::supports_z_point_type): ... this.
2881 (process_target::insert_point): Rename as ...
2882 (process_stratum_target::insert_point): ... this.
2883 (process_target::remove_point): Rename as ...
2884 (process_stratum_target::remove_point): ... this.
2885 (process_target::stopped_by_sw_breakpoint): Rename as ...
2886 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2887 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2888 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2889 (process_target::stopped_by_hw_breakpoint): Rename as ...
2890 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2891 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2892 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2893 (process_target::supports_hardware_single_step): Rename as ...
2894 (process_stratum_target::supports_hardware_single_step): ... this.
2895 (process_target::stopped_by_watchpoint): Rename as ...
2896 (process_stratum_target::stopped_by_watchpoint): ... this.
2897 (process_target::stopped_data_address): Rename as ...
2898 (process_stratum_target::stopped_data_address): ... this.
2899 (process_target::supports_read_offsets): Rename as ...
2900 (process_stratum_target::supports_read_offsets): ... this.
2901 (process_target::read_offsets): Rename as ...
2902 (process_stratum_target::read_offsets): ... this.
2903 (process_target::supports_get_tls_address): Rename as ...
2904 (process_stratum_target::supports_get_tls_address): ... this.
2905 (process_target::get_tls_address): Rename as ...
2906 (process_stratum_target::get_tls_address): ... this.
2907 (process_target::hostio_last_error): Rename as ...
2908 (process_stratum_target::hostio_last_error): ... this.
2909 (process_target::supports_qxfer_osdata): Rename as ...
2910 (process_stratum_target::supports_qxfer_osdata): ... this.
2911 (process_target::qxfer_osdata): Rename as ...
2912 (process_stratum_target::qxfer_osdata): ... this.
2913 (process_target::supports_qxfer_siginfo): Rename as ...
2914 (process_stratum_target::supports_qxfer_siginfo): ... this.
2915 (process_target::qxfer_siginfo): Rename as ...
2916 (process_stratum_target::qxfer_siginfo): ... this.
2917 (process_target::supports_non_stop): Rename as ...
2918 (process_stratum_target::supports_non_stop): ... this.
2919 (process_target::async): Rename as ...
2920 (process_stratum_target::async): ... this.
2921 (process_target::start_non_stop): Rename as ...
2922 (process_stratum_target::start_non_stop): ... this.
2923 (process_target::supports_multi_process): Rename as ...
2924 (process_stratum_target::supports_multi_process): ... this.
2925 (process_target::supports_fork_events): Rename as ...
2926 (process_stratum_target::supports_fork_events): ... this.
2927 (process_target::supports_vfork_events): Rename as ...
2928 (process_stratum_target::supports_vfork_events): ... this.
2929 (process_target::supports_exec_events): Rename as ...
2930 (process_stratum_target::supports_exec_events): ... this.
2931 (process_target::handle_new_gdb_connection): Rename as ...
2932 (process_stratum_target::handle_new_gdb_connection): ... this.
2933 (process_target::handle_monitor_command): Rename as ...
2934 (process_stratum_target::handle_monitor_command): ... this.
2935 (process_target::core_of_thread): Rename as ...
2936 (process_stratum_target::core_of_thread): ... this.
2937 (process_target::supports_read_loadmap): Rename as ...
2938 (process_stratum_target::supports_read_loadmap): ... this.
2939 (process_target::read_loadmap): Rename as ...
2940 (process_stratum_target::read_loadmap): ... this.
2941 (process_target::process_qsupported): Rename as ...
2942 (process_stratum_target::process_qsupported): ... this.
2943 (process_target::supports_tracepoints): Rename as ...
2944 (process_stratum_target::supports_tracepoints): ... this.
2945 (process_target::read_pc): Rename as ...
2946 (process_stratum_target::read_pc): ... this.
2947 (process_target::write_pc): Rename as ...
2948 (process_stratum_target::write_pc): ... this.
2949 (process_target::supports_thread_stopped): Rename as ...
2950 (process_stratum_target::supports_thread_stopped): ... this.
2951 (process_target::thread_stopped): Rename as ...
2952 (process_stratum_target::thread_stopped): ... this.
2953 (process_target::supports_get_tib_address): Rename as ...
2954 (process_stratum_target::supports_get_tib_address): ... this.
2955 (process_target::get_tib_address): Rename as ...
2956 (process_stratum_target::get_tib_address): ... this.
2957 (process_target::pause_all): Rename as ...
2958 (process_stratum_target::pause_all): ... this.
2959 (process_target::unpause_all): Rename as ...
2960 (process_stratum_target::unpause_all): ... this.
2961 (process_target::stabilize_threads): Rename as ...
2962 (process_stratum_target::stabilize_threads): ... this.
2963 (process_target::supports_fast_tracepoints): Rename as ...
2964 (process_stratum_target::supports_fast_tracepoints): ... this.
2965 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2966 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2967 (process_target::emit_ops): Rename as ...
2968 (process_stratum_target::emit_ops): ... this.
2969 (process_target::supports_disable_randomization): Rename as ...
2970 (process_stratum_target::supports_disable_randomization): ... this.
2971 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2972 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2973 (process_target::qxfer_libraries_svr4): Rename as ...
2974 (process_stratum_target::qxfer_libraries_svr4): ... this.
2975 (process_target::supports_agent): Rename as ...
2976 (process_stratum_target::supports_agent): ... this.
2977 (process_target::enable_btrace): Rename as ...
2978 (process_stratum_target::enable_btrace): ... this.
2979 (process_target::disable_btrace): Rename as ...
2980 (process_stratum_target::disable_btrace): ... this.
2981 (process_target::read_btrace): Rename as ...
2982 (process_stratum_target::read_btrace): ... this.
2983 (process_target::read_btrace_conf): Rename as ...
2984 (process_stratum_target::read_btrace_conf): ... this.
2985 (process_target::supports_range_stepping): Rename as ...
2986 (process_stratum_target::supports_range_stepping): ... this.
2987 (process_target::supports_pid_to_exec_file): Rename as ...
2988 (process_stratum_target::supports_pid_to_exec_file): ... this.
2989 (process_target::pid_to_exec_file): Rename as ...
2990 (process_stratum_target::pid_to_exec_file): ... this.
2991 (process_target::supports_multifs): Rename as ...
2992 (process_stratum_target::supports_multifs): ... this.
2993 (process_target::multifs_open): Rename as ...
2994 (process_stratum_target::multifs_open): ... this.
2995 (process_target::multifs_unlink): Rename as ...
2996 (process_stratum_target::multifs_unlink): ... this.
2997 (process_target::multifs_readlink): Rename as ...
2998 (process_stratum_target::multifs_readlink): ... this.
2999 (process_target::breakpoint_kind_from_pc): Rename as ...
3000 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3001 (process_target::breakpoint_kind_from_current_state): Rename as ...
3002 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3003 (process_target::thread_name): Rename as ...
3004 (process_stratum_target::thread_name): ... this.
3005 (process_target::thread_handle): Rename as ...
3006 (process_stratum_target::thread_handle): ... this.
3007 (process_target::supports_software_single_step): Rename as ...
3008 (process_stratum_target::supports_software_single_step): ... this.
3009 (process_target::supports_catch_syscall): Rename as ...
3010 (process_stratum_target::supports_catch_syscall): ... this.
3011 (process_target::get_ipa_tdesc_idx): Rename as ...
3012 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3013
478f9adf
PA
30142020-02-20 Pedro Alves <palves@redhat.com>
3015
3016 * target.cc (set_target_ops): Simply copy the given target pointer
3017 instead of creating a copy of the pointed object.
3018
d633e831
TBA
30192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3020
3021 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3022 of process_target.
3023
3024 * target.h (struct process_stratum_target): Remove the target op.
3025 (class process_target): Add the target op.
3026 (target_get_ipa_tdesc_idx): Update the macro.
3027 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3028
3029 Update the derived classes and callers below.
3030
3031 * linux-low.cc (linux_target_ops): Update.
3032 (linux_get_ipa_tdesc_idx): Turn into ...
3033 (linux_process_target::get_ipa_tdesc_idx): ... this.
3034 * linux-low.h (class linux_process_target): Update.
3035 * lynx-low.cc (lynx_target_ops): Update.
3036 * nto-low.cc (nto_target_ops): Update.
3037 * win32-low.cc (win32_target_ops): Update.
3038
bc8d3ae4
TBA
30392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3040
3041 Turn process_stratum_target's supports_catch_syscall op into a
3042 method of process_target.
3043
3044 * target.h (struct process_stratum_target): Remove the target op.
3045 (class process_target): Add the target op.
3046 (target_supports_catch_syscall): Update the macro.
3047 * target.cc (process_target::supports_catch_syscall): Define.
3048
3049 Update the derived classes and callers below.
3050
3051 * linux-low.cc (linux_target_ops): Update.
3052 (linux_supports_catch_syscall): Turn into ...
3053 (linux_process_target::supports_catch_syscall): ... this.
3054 * linux-low.h (class linux_process_target): Update.
3055 * lynx-low.cc (lynx_target_ops): Update.
3056 * nto-low.cc (nto_target_ops): Update.
3057 * win32-low.cc (win32_target_ops): Update.
3058
5303a34f
TBA
30592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3060
3061 Turn process_stratum_target's supports_software_single_step op
3062 into a method of process_target.
3063
3064 * target.h (struct process_stratum_target): Remove the target op.
3065 (class process_target): Add the target op.
3066 (target_supports_software_single_step): Update the macro.
3067 * target.cc (process_target::supports_software_single_step): Define.
3068
3069 Update the derived classes and callers below.
3070
3071 * linux-low.cc (linux_target_ops): Update.
3072 (linux_supports_software_single_step): Turn into ...
3073 (linux_process_target::supports_software_single_step): ... this.
3074 * linux-low.h (class linux_process_target): Update.
3075 * lynx-low.cc (lynx_target_ops): Update.
3076 * nto-low.cc (nto_target_ops): Update.
3077 * win32-low.cc (win32_target_ops): Update.
3078
7f63b89b
TBA
30792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3080
3081 Turn process_stratum_target's thread_name and thread_handle ops
3082 into methods of process_target.
3083
3084 * target.h (struct process_stratum_target): Remove the target ops.
3085 (class process_target): Add the target ops.
3086 (target_thread_name): Update the macro.
3087 (target_thread_handle): Update the macro.
3088 * target.cc (process_target::thread_name): Define.
3089 (process_target::thread_handle): Define.
3090
3091 Update the derived classes and callers below.
3092
3093 * linux-low.cc (linux_target_ops): Update.
3094 (linux_process_target::thread_name): Define.
3095 (linux_process_target::thread_handle): Define.
3096 * linux-low.h (class linux_process_target): Update.
3097 * lynx-low.cc (lynx_target_ops): Update.
3098 * nto-low.cc (nto_target_ops): Update.
3099 * win32-low.cc (win32_target_ops): Update.
3100
d367006f
TBA
31012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3102
3103 Turn process_stratum_target's breakpoint_kind_from_pc,
3104 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3105 ops into methods of process_target.
3106
3107 * target.h (struct process_stratum_target): Remove the target op.
3108 (class process_target): Add the target op.
3109 (target_breakpoint_kind_from_pc): Update the macro.
3110 (target_breakpoint_kind_from_current_state): Update the macro.
3111 (default_breakpoint_kind_from_pc): Remove declaration.
3112 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3113 (process_target::breakpoint_kind_from_pc): ... this.
3114 (process_target::breakpoint_kind_from_current_state): Define.
3115
3116 Update the derived classes and callers below.
3117
3118 * mem-break.cc (bp_size): Update.
3119 (bp_opcode): Update.
3120 * linux-low.cc (linux_target_ops): Update.
3121 (linux_wait_1): Update.
3122 (linux_breakpoint_kind_from_pc): Turn into ...
3123 (linux_process_target::breakpoint_kind_from_pc): ... this.
3124 (linux_sw_breakpoint_from_kind): Turn into ...
3125 (linux_process_target::sw_breakpoint_from_kind): ... this.
3126 (linux_breakpoint_kind_from_current_state): Turn into ...
3127 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3128 * linux-low.h (class linux_process_target): Update.
3129 * lynx-low.cc (lynx_target_ops): Update.
3130 (lynx_process_target::sw_breakpoint_from_kind): Define.
3131 * lynx-low.h (class lynx_process_target): Update.
3132 * nto-low.cc (nto_target_ops): Update.
3133 (nto_sw_breakpoint_from_kind): Turn into ...
3134 (nto_process_target::sw_breakpoint_from_kind): ... this.
3135 * nto-low.h (class nto_process_target): Update.
3136 * win32-low.cc (win32_target_ops): Update.
3137 (win32_sw_breakpoint_from_kind): Turn into ...
3138 (win32_process_target::sw_breakpoint_from_kind): ... this.
3139 * win32-low.h (class win32_process_target): Update.
3140
c9b7b804
TBA
31412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3142
3143 Turn process_stratum_target's multifs_open, multifs_readlink,
3144 multifs_unlink ops into methods of process_target.
3145
3146 * target.h (struct process_stratum_target): Remove the target ops.
3147 (class process_target): Add the target ops. Also add
3148 'supports_multifs'.
3149 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3150 "sys/stat.h".
3151 (process_target::supports_multifs): Define.
3152 (process_target::multifs_open): Define.
3153 (process_target::multifs_readlink): Define.
3154 (process_target::multifs_unlink): Define.
3155
3156 Update the derived classes and callers below.
3157
3158 * hostio.cc (handle_setfs): Update.
3159 (handle_open): Update.
3160 (handle_unlink): Update.
3161 (handle_readlink): Update.
3162 * linux-low.cc (linux_target_ops): Update.
3163 (linux_process_target::supports_multifs): Define.
3164 (linux_process_target::multifs_open): Define.
3165 (linux_process_target::multifs_readlink): Define.
3166 (linux_process_target::multifs_unlink): Define.
3167 * linux-low.h (class linux_process_target): Update.
3168 * lynx-low.cc (lynx_target_ops): Update.
3169 * nto-low.cc (nto_target_ops): Update.
3170 * win32-low.cc (win32_target_ops): Update.
3171
8247b823
TBA
31722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3173
3174 Turn process_stratum_target's pid_to_exec_file op into a method
3175 of process_target.
3176
3177 * target.h (struct process_stratum_target): Remove the target op.
3178 (class process_target): Add the target op. Also add
3179 'supports_pid_to_exec_file'.
3180 * target.cc (process_target::pid_to_exec_file): Define.
3181 (process_target::supports_pid_to_exec_file): Define.
3182
3183 Update the derived classes and callers below.
3184
3185 * server.cc (handle_qxfer_exec_file): Update.
3186 (handle_query): Update.
3187 * linux-low.cc (linux_target_ops): Update.
3188 (linux_process_target::supports_pid_to_exec_file): Define.
3189 (linux_process_target::pid_to_exec_file): Define.
3190 * linux-low.h (class linux_process_target): Update.
3191 * lynx-low.cc (lynx_target_ops): Update.
3192 * nto-low.cc (nto_target_ops): Update.
3193 * win32-low.cc (win32_target_ops): Update.
3194
2526e0cd
TBA
31952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3196
3197 Turn process_stratum_target's supports_range_stepping op into a
3198 method of process_target.
3199
3200 * target.h (struct process_stratum_target): Remove the target op.
3201 (class process_target): Add the target op.
3202 (target_supports_range_stepping): Update the macro.
3203 * target.cc (process_target::supports_range_stepping): Define.
3204
3205 Update the derived classes and callers below.
3206
3207 * linux-low.cc (linux_target_ops): Update.
3208 (linux_supports_range_stepping): Turn into ...
3209 (linux_process_target::supports_range_stepping): ... this.
3210 * linux-low.h (class linux_process_target): Update.
3211 * lynx-low.cc (lynx_target_ops): Update.
3212 * nto-low.cc (nto_target_ops): Update.
3213 * win32-low.cc (win32_target_ops): Update.
3214
79597bdd
TBA
32152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3216
3217 Turn process_stratum_target's btrace-related ops (enable_btrace,
3218 disable_btrace, read_btrace, read_btrace_conf) into methods of
3219 process_target.
3220
3221 * target.h (struct process_stratum_target): Remove the target ops.
3222 (class process_target): Add the target ops.
3223 (target_enable_btrace): Update.
3224 (target_disable_btrace): Update.
3225 (target_read_btrace): Update.
3226 (target_read_btrace_conf): Update.
3227 * target.cc (process_target::enable_btrace): Define.
3228 (process_target::disable_btrace): Define.
3229 (process_target::read_btrace): Define.
3230 (process_target::read_btrace_conf): Define.
3231
3232 Update the derived classes and callers below.
3233
3234 * linux-low.cc (linux_target_ops): Update.
3235 (linux_process_target:enable_btrace): Define as a wrapper around
3236 linux_enable_btrace.
3237 (linux_low_disable_btrace): Turn into ...
3238 (linux_process_target::disable_btrace): ... this.
3239 (linux_low_read_btrace): Turn into ...
3240 (linux_process_target::read_btrace): ... this.
3241 (linux_low_btrace_conf): Turn into ...
3242 (linux_process_target::read_btrace_conf): ... this.
3243 * linux-low.h (class linux_process_target): Update.
3244 * lynx-low.cc (lynx_target_ops): Update.
3245 * nto-low.cc (nto_target_ops): Update.
3246 * win32-low.cc (win32_target_ops): Update.
3247
c0245cb9
TBA
32482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3249
3250 Turn process_stratum_target's supports_agent op into a method of
3251 process_target.
3252
3253 * target.h (struct process_stratum_target): Remove the target op.
3254 (class process_target): Add the target op.
3255 (target_supports_agent): Update the macro.
3256 * target.cc (process_target::supports_agent): Define.
3257
3258 Update the derived classes and callers below.
3259
3260 * linux-low.cc (linux_target_ops): Update.
3261 (linux_supports_agent): Turn into ...
3262 (linux_process_target::supports_agent): ... this.
3263 * linux-low.h (class linux_process_target): Update.
3264 * lynx-low.cc (lynx_target_ops): Update.
3265 * nto-low.cc (nto_target_ops): Update.
3266 * win32-low.cc (win32_target_ops): Update.
3267
974387bb
TBA
32682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3269
3270 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3271 method of process_target.
3272
3273 * target.h (struct process_stratum_target): Remove the target op.
3274 (class process_target): Add the target op. Also add
3275 'supports_qxfer_libraries_svr4'.
3276 * target.cc (process_target::qxfer_libraries_svr4): Define.
3277 (process_target::supports_qxfer_libraries_svr4): Define.
3278
3279 Update the derived classes and callers below.
3280
3281 * server.cc (handle_qxfer_libraries_svr4): Update.
3282 (handle_query): Update.
3283 * linux-low.cc (linux_target_ops): Update.
3284 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3285 (linux_qxfer_libraries_svr4): Turn into ...
3286 (linux_process_target::qxfer_libraries_svr4): ... this.
3287 * linux-low.h (class linux_process_target): Update.
3288 * lynx-low.cc (lynx_target_ops): Update.
3289 * nto-low.cc (nto_target_ops): Update.
3290 * win32-low.cc (win32_target_ops): Update.
3291
c756403b
TBA
32922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3293
3294 Turn process_stratum_target's supports_disable_randomization op
3295 into a method of process_target.
3296
3297 * target.h (struct process_stratum_target): Remove the target op.
3298 (class process_target): Add the target op.
3299 (target_supports_disable_randomization): Update the macro.
3300 * target.cc (process_target::supports_disable_randomization): Define.
3301
3302 Update the derived classes and callers below.
3303
3304 * linux-low.cc (linux_target_ops): Update.
3305 (linux_supports_disable_randomization): Turn into ...
3306 (linux_process_target::supports_disable_randomization): ... this.
3307 * linux-low.h (class linux_process_target): Update.
3308 * lynx-low.cc (lynx_target_ops): Update.
3309 * nto-low.cc (nto_target_ops): Update.
3310 * win32-low.cc (win32_target_ops): Update.
3311
345dafad
TBA
33122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3313
3314 Turn process_stratum_target's emit_ops op into a method of
3315 process_target.
3316
3317 * target.h (struct process_stratum_target): Remove the target op.
3318 (class process_target): Add the target op.
3319 (target_emit_ops): Update the macro.
3320 * target.cc (process_target::emit_ops): Define.
3321
3322 Update the derived classes and callers below.
3323
3324 * linux-low.cc (linux_target_ops): Update.
3325 (linux_emit_ops): Turn into ...
3326 (linux_process_target::emit_ops): ... this.
3327 * linux-low.h (class linux_process_target): Update.
3328 * lynx-low.cc (lynx_target_ops): Update.
3329 * nto-low.cc (nto_target_ops): Update.
3330 * win32-low.cc (win32_target_ops): Update.
3331
c23c9391
TBA
33322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3333
3334 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3335 and get_min_fast_tracepoint_insn_len ops into methods of
3336 process_target.
3337
3338 * target.h (struct process_stratum_target): Remove the target ops.
3339 (class process_target): Add the target ops. Also add
3340 'supports_fast_tracepoints'.
3341 (target_supports_fast_tracepoints): Update the macro.
3342 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3343 (install_fast_tracepoint_jump_pad): Update and rename the macro
3344 to ...
3345 (target_install_fast_tracepoint_jump_pad): ... this.
3346 * target.cc (process_target::supports_fast_tracepoints): Define.
3347 (process_target::install_fast_tracepoint_jump_pad): Define.
3348 (process_target::get_min_fast_tracepoint_insn_len): Define.
3349
3350 Update the derived classes and callers below.
3351
3352 * tracepoint.cc (install_fast_tracepoint): Update.
3353 * linux-low.cc (linux_target_ops): Update.
3354 (linux_process_target::supports_fast_tracepoints): Define.
3355 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3356 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3357 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3358 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3359 * linux-low.h (class linux_process_target): Update.
3360 * lynx-low.cc (lynx_target_ops): Update.
3361 * nto-low.cc (nto_target_ops): Update.
3362 * win32-low.cc (win32_target_ops): Update.
3363
5c9eb2f2
TBA
33642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3365
3366 Turn process_stratum_target's stabilize_threads op into a
3367 method of process_target.
3368
3369 * target.h (struct process_stratum_target): Remove the target op.
3370 (class process_target): Add the target op.
3371 (target_stabilize_threads): Update the macro.
3372 * target.cc (process_target::stabilize_threads): Define.
3373
3374 Update the derived classes and callers below.
3375
3376 * server.cc (handle_status): Update.
3377 * tracepoint.cc (cmd_qtdp): Update.
3378 (cmd_qtstart): Update.
3379 * linux-low.cc (linux_target_ops): Update.
3380 (linux_stabilize_threads): Turn into ...
3381 (linux_process_target::stabilize_threads): ... this.
3382 (linux_wait_1): Update.
3383 * linux-low.h (class linux_process_target): Update.
3384 * lynx-low.cc (lynx_target_ops): Update.
3385 * nto-low.cc (nto_target_ops): Update.
3386 * win32-low.cc (win32_target_ops): Update.
3387
29e8dc09
TBA
33882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3389
3390 Turn process_stratum_target's pause_all and unpause_all ops
3391 into methods of process_target.
3392
3393 * target.h (struct process_stratum_target): Remove the target ops.
3394 (class process_target): Add the target ops.
3395 (pause_all): Update the macro and rename to...
3396 (target_pause_all): ... this.
3397 (unpause_all): Update the macro and rename to...
3398 (target_unpause_all): ... this.
3399 * target.cc (process_target::pause_all): Define.
3400 (process_target::unpause_all): Define.
3401
3402 Update the derived classes and callers below.
3403
3404 * server.cc (handle_status): Update.
3405 * tracepoint.cc (clear_installed_tracepoints): Update.
3406 (cmd_qtdp): Update.
3407 (cmd_qtstart): Update.
3408 (stop_tracing): Update.
3409 (cmd_qtstatus): Update.
3410 (upload_fast_traceframes): Update.
3411 (run_inferior_command): Update.
3412 * linux-low.cc (linux_target_ops): Update.
3413 (linux_pause_all): Turn into ...
3414 (linux_process_target::pause_all): ... this.
3415 (linux_unpause_all): Turn into ...
3416 (linux_process_target::unpause_all): ... this.
3417 (linux_process_target::prepare_to_access_memory): Update.
3418 (linux_process_target::done_accessing_memory): Update.
3419 * linux-low.h (class linux_process_target): Update.
3420 * lynx-low.cc (lynx_target_ops): Update.
3421 * nto-low.cc (nto_target_ops): Update.
3422 * win32-low.cc (win32_target_ops): Update.
3423
4e2e869c
TBA
34242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3425
3426 Turn process_stratum_target's get_tib_address op into a method of
3427 process_target.
3428
3429 * target.h (struct process_stratum_target): Remove the target op.
3430 (class process_target): Add the target op. Also add
3431 'supports_get_tib_address'.
3432 * target.cc (process_target::get_tib_address): Define.
3433 (process_target::supports_get_tib_address): Define.
3434
3435 Update the derived classes and callers below.
3436
3437 * server.cc (handle_query): Update.
3438 * linux-low.cc (win32_target_ops): Update.
3439 * lynx-low.cc (lynx_target_ops): Update.
3440 * nto-low.cc (nto_target_ops): Update.
3441 * win32-low.cc (win32_target_ops): Update.
3442 (win32_process_target::supports_get_tib_address): Define.
3443 (win32_get_tib_address): Turn into ...
3444 (win32_process_target::get_tib_address): ... this.
3445 * win32-low.h (class win32_process_target): Update.
3446
68119632
TBA
34472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3448
3449 Turn process_stratum_target's thread_stopped op into a method of
3450 process_target.
3451
3452 * target.h (struct process_stratum_target): Remove the target op.
3453 (class process_target): Add the target op. Also add
3454 'supports_thread_stopped'.
3455 (target_thread_stopped): Update the macro.
3456 * target.cc (process_target::thread_stopped): Define.
3457 (process_target::supports_thread_stopped): Define.
3458 (prepare_to_access_memory): Update.
3459
3460 Update the derived classes and callers below.
3461
3462 * server.cc (queue_stop_reply_callback): Update.
3463 * linux-low.cc (linux_target_ops): Update.
3464 (linux_process_target::supports_thread_stopped): Define.
3465 (linux_thread_stopped): Turn into ...
3466 (linux_process_target::thread_stopped): ... this.
3467 * linux-low.h (class linux_process_target): Update.
3468 * lynx-low.cc (lynx_target_ops): Update.
3469 * nto-low.cc (nto_target_ops): Update.
3470 * win32-low.cc (win32_target_ops): Update.
3471
770d8f6a
TBA
34722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3473
3474 Turn process_stratum_target's read_pc and write_pc ops into
3475 methods of process_target.
3476
3477 * target.h (struct process_stratum_target): Remove the target ops.
3478 (class process_target): Add the target ops.
3479 * target.cc (process_target::read_pc): Define.
3480 (process_target::write_pc): Define.
3481
3482 Update the derived classes and callers below.
3483
3484 * regcache.cc (regcache_read_pc): Update.
3485 (regcache_write_pc): Update.
3486 * linux-low.cc (linux_target_ops): Update.
3487 (linux_read_pc): Turn into ...
3488 (linux_process_target::read_pc): ... this.
3489 (linux_write_pc): Turn into ...
3490 (linux_process_target::write_pc): ... this.
3491 * linux-low.h (class linux_process_target): Update.
3492 * lynx-low.cc (lynx_target_ops): Update.
3493 * nto-low.cc (nto_target_ops): Update.
3494 * win32-low.cc (win32_target_ops): Update.
3495
290732bf
TBA
34962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3497
3498 Turn process_stratum_target's supports_tracepoints op into a
3499 method of process_target.
3500
3501 * target.h (struct process_stratum_target): Remove the target op.
3502 (class process_target): Add the target op.
3503 (target_supports_tracepoints): Update the macro.
3504 * target.cc (process_target::supports_tracepoints): Define.
3505
3506 Update the derived classes and callers below.
3507
3508 * linux-low.cc (linux_target_ops): Update.
3509 (linux_supports_tracepoints): Turn into ...
3510 (linux_process_target::supports_tracepoints): ... this.
3511 * linux-low.h (class linux_process_target): Update.
3512 * lynx-low.cc (lynx_target_ops): Update.
3513 * nto-low.cc (nto_target_ops): Update.
3514 * win32-low.cc (win32_target_ops): Update.
3515
0df28b1b
TBA
35162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3517
3518 Turn process_stratum_target's process_qsupported op into a method
3519 of process_target.
3520
3521 * target.h (struct process_stratum_target): Remove the target op.
3522 (class process_target): Add the target op.
3523 (target_process_qsupported): Update the macro.
3524 * target.cc (process_target::process_qsupported): Define.
3525
3526 Update the derived classes and callers below.
3527
3528 * linux-low.cc (linux_target_ops): Update.
3529 (linux_process_qsupported): Turn into ...
3530 (linux_process_target::process_qsupported): ... this.
3531 * linux-low.h (class linux_process_target): Update.
3532 * lynx-low.cc (lynx_target_ops): Update.
3533 * nto-low.cc (nto_target_ops): Update.
3534 * win32-low.cc (win32_target_ops): Update.
3535
9da41fda
TBA
35362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3537
3538 Turn process_stratum_target's read_loadmap op into a method of
3539 process_target.
3540
3541 * target.h (struct process_stratum_target): Remove the target op.
3542 (class process_target): Add the target op. Also add
3543 'supports_read_loadmap'.
3544 * target.cc (process_target::read_loadmap): Define.
3545 (process_target::supports_read_loadmap): Define.
3546
3547 Update the derived classes and callers below.
3548
3549 * server.cc (handle_qxfer_fdpic): Update.
3550 (handle_query): Update.
3551 * linux-low.cc (linux_target_ops): Update.
3552 (linux_process_target::supports_read_loadmap): Define.
3553 (linux_read_loadmap): Turn into ...
3554 (linux_process_target::read_loadmap): ... this.
3555 * linux-low.h (class linux_process_target): Update.
3556 * lynx-low.cc (lynx_target_ops): Update.
3557 * nto-low.cc (nto_target_ops): Update.
3558 * win32-low.cc (win32_target_ops): Update.
3559
95a45fc1
TBA
35602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3561
3562 Turn process_stratum_target's core_of_thread op into a method of
3563 process_target.
3564
3565 * target.h (struct process_stratum_target): Remove the target op.
3566 (class process_target): Add the target op.
3567 (target_core_of_thread): Update the macro.
3568 * target.cc (process_target::core_of_thread): Define.
3569
3570 Update the derived classes and callers below.
3571
3572 * linux-low.cc (linux_target_ops): Update.
3573 (linux_process_target::core_of_thread): Define.
3574 * linux-low.h (class linux_process_target): Update.
3575 * lynx-low.cc (lynx_target_ops): Update.
3576 * nto-low.cc (nto_target_ops): Update.
3577 * win32-low.cc (win32_target_ops): Update.
3578
55cf3021
TBA
35792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3580
3581 Turn process_stratum_target's handle_monitor_command op into a
3582 method of process_target.
3583
3584 * target.h (struct process_stratum_target): Remove the target op.
3585 (class process_target): Add the target op.
3586 (target_handle_monitor_command): Update the macro.
3587 * target.cc (process_target::handle_monitor_command): Define.
3588
3589 Update the derived classes and callers below.
3590
3591 * server.cc (handle_query): Update.
3592 * linux-low.cc (linux_target_ops): Update.
3593 (linux_process_target::handle_monitor_command): Define.
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
fb00dfce
TBA
35992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3600
3601 Turn process_stratum_target's handle_new_gdb_connection op into a
3602 method of process_target.
3603
3604 * target.h (struct process_stratum_target): Remove the target op.
3605 (class process_target): Add the target op.
3606 (target_handle_new_gdb_connection): Update the macro.
3607 * target.cc (process_target::handle_new_gdb_connection): Define.
3608
3609 Update the derived classes and callers below.
3610
3611 * linux-low.cc (linux_target_ops): Update.
3612 (linux_handle_new_gdb_connection): Turn into ...
3613 (linux_process_target::handle_new_gdb_connection): ... this.
3614 * linux-low.h (class linux_process_target): Update.
3615 * lynx-low.cc (lynx_target_ops): Update.
3616 * nto-low.cc (nto_target_ops): Update.
3617 * win32-low.cc (win32_target_ops): Update.
3618
9690a72a
TBA
36192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3620
3621 Turn process_stratum_target's supports_fork_events,
3622 supports_vfork_events, and supports_exec_events ops into methods
3623 of process_target.
3624
3625 * target.h (struct process_stratum_target): Remove the target ops.
3626 (class process_target): Add the target ops.
3627 (target_supports_fork_events): Update the macro.
3628 (target_supports_vfork_events): Update the macro.
3629 (target_supports_exec_events): Update the macro.
3630 * target.cc (process_target::supports_fork_events): Define.
3631 (process_target::supports_vfork_events): Define.
3632 (process_target::supports_exec_events): Define.
3633
3634 Update the derived classes and callers below.
3635
3636 * linux-low.cc (linux_target_ops): Update.
3637 (linux_supports_fork_events): Turn into ...
3638 (linux_process_target::supports_fork_events): ... this.
3639 (linux_supports_vfork_events): Turn into ...
3640 (linux_process_target::supports_vfork_events): ... this.
3641 (linux_supports_exec_events): Turn into ...
3642 (linux_process_target::supports_exec_events): ... this.
3643 * linux-low.h (class linux_process_target): Update.
3644 * lynx-low.cc (lynx_target_ops): Update.
3645 * nto-low.cc (nto_target_ops): Update.
3646 * win32-low.cc (win32_target_ops): Update.
3647
652aef77
TBA
36482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3649
3650 Turn process_stratum_target's supports_multi_process op into a
3651 method of process_target.
3652
3653 * target.h (struct process_stratum_target): Remove the target op.
3654 (class process_target): Add the target op.
3655 * target.cc (process_target::supports_multi_process): Define.
3656 (target_supports_multi_process): Update.
3657
3658 Update the derived classes and callers below.
3659
3660 * linux-low.cc (linux_target_ops): Update.
3661 (linux_supports_multi_process): Turn into ...
3662 (linux_process_target::supports_multi_process): ... this.
3663 * linux-low.h (class linux_process_target): Update.
3664 * lynx-low.cc (lynx_target_ops): Update.
3665 * nto-low.cc (nto_target_ops): Update.
3666 * win32-low.cc (win32_target_ops): Update.
3667
0dc587d4
TBA
36682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3669
3670 Turn process_stratum_target's supports_non_stop, async, and
3671 start_non_stop ops into methods of process_target.
3672
3673 * target.h (struct process_stratum_target): Remove the target ops.
3674 (class process_target): Add the target ops.
3675 (target_supports_non_stop): Update the macro.
3676 (target_async): Update the macro.
3677 (start_non_stop): Remove declaration.
3678 * target.cc (process_target::supports_non_stop): Define.
3679 (process_target::async): Define.
3680 (process_target::start_non_stop): Define.
3681 (start_non_stop): Remove.
3682
3683 Update the derived classes and callers below.
3684
3685 * server.cc (handle_qxfer_siginfo): Update.
3686 (handle_query): Update.
3687 * linux-low.cc (linux_target_ops): Update.
3688 (linux_supports_non_stop): Turn into ...
3689 (linux_process_target::supports_non_stop): ... this.
3690 (linux_async): Turn into ...
3691 (linux_process_target::async): ... this.
3692 (linux_start_non_stop): Turn into ...
3693 (linux_process_target::start_non_stop): ... this.
3694 * linux-low.h (class linux_process_target): Update.
3695 * lynx-low.cc (lynx_target_ops): Update.
3696 * nto-low.cc (nto_target_ops): Update.
3697 (nto_supports_non_stop): Remove; rely on the default behavior
3698 instead.
3699 * win32-low.cc (win32_target_ops): Update.
3700
d7abedf7
TBA
37012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3702
3703 Turn process_stratum_target's qxfer_siginfo op into a method of
3704 process_target.
3705
3706 * target.h (struct process_stratum_target): Remove the target op.
3707 (class process_target): Add the target op. Also add
3708 'supports_qxfer_siginfo'.
3709 * target.cc (process_target::qxfer_siginfo): Define.
3710 (process_target::supports_qxfer_siginfo): Define.
3711
3712 Update the derived classes and callers below.
3713
3714 * server.cc (handle_qxfer_siginfo): Update.
3715 (handle_query): Update.
3716 * linux-low.cc (linux_target_ops): Update.
3717 (linux_process_target::supports_qxfer_siginfo): Define.
3718 (linux_xfer_siginfo): Turn into ...
3719 (linux_process_target::qxfer_siginfo): ... this.
3720 * linux-low.h (class linux_process_target): Update.
3721 * lynx-low.cc (lynx_target_ops): Update.
3722 * nto-low.cc (nto_target_ops): Update.
3723 * win32-low.cc (win32_target_ops): Update.
3724
2d0795ee
TBA
37252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3726
3727 Turn process_stratum_target's qxfer_osdata op into a method of
3728 process_target.
3729
3730 * target.h (struct process_stratum_target): Remove the target op.
3731 (class process_target): Add the target op. Also add
3732 'supports_qxfer_osdata'.
3733 * target.cc (process_target::qxfer_osdata): Define.
3734 (process_target::supports_qxfer_osdata): Define.
3735
3736 Update the derived classes and callers below.
3737
3738 * server.cc (handle_qxfer_osdata): Update.
3739 (handle_query): Update.
3740 * linux-low.cc (linux_target_ops): Update.
3741 (linux_process_target::supports_qxfer_osdata): Define.
3742 (linux_qxfer_osdata): Turn into ...
3743 (linux_process_target::qxfer_osdata): ... this.
3744 * linux-low.h (class linux_process_target): Update.
3745 * lynx-low.cc (lynx_target_ops): Update.
3746 * nto-low.cc (nto_target_ops): Update.
3747 * win32-low.cc (win32_target_ops): Update.
3748
ea06bbaa
TBA
37492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3750
3751 Turn process_stratum_target's hostio_last_error op into a
3752 method of process_target.
3753
3754 * target.h (struct process_stratum_target): Remove the target op.
3755 (class process_target): Add the target op.
3756 * target.cc: Add "hostio.h" to includes.
3757 (process_target::hostio_last_error): Define.
3758
3759 Update the derived classes and callers below.
3760
3761 * hostio.cc (hostio_error): Update.
3762 * linux-low.cc: Remove "hostio.h" from includes.
3763 (linux_target_ops): Update.
3764 * lynx-low.cc (lynx_target_ops): Update.
3765 * nto-low.cc (nto_target_ops): Update.
3766 * win32-low.h (class win32_process_target): Update.
3767 * win32-low.cc (win32_target_ops): Update.
3768 (wince_hostio_last_error): Turn into ...
3769 (win32_process_target::hostio_last_error): ... this.
3770
6e3fd7e9
TBA
37712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3772
3773 Turn process_stratum_target's get_tls_address op into a method of
3774 process_target.
3775
3776 * target.h (struct process_stratum_target): Remove the target op.
3777 (class process_target): Add the target op. Also add
3778 'supports_get_tls_address'.
3779 * target.cc (process_target::get_tls_address): Define.
3780 (process_target::supports_get_tls_address): Define.
3781
3782 Update the derived classes and callers below.
3783
3784 * server.cc (handle_query): Update.
3785 * linux-low.cc (linux_target_ops): Update.
3786 (linux_process_target::supports_get_tls_address): Define.
3787 (linux_process_target::get_tls_address): Define.
3788 * linux-low.h (class linux_process_target): Update.
3789 * lynx-low.cc (lynx_target_ops): Update.
3790 * nto-low.cc (nto_target_ops): Update.
3791 * win32-low.cc (win32_target_ops): Update.
3792
5203ae1e
TBA
37932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3794
3795 Turn process_stratum_target's read_offsets op into a method of
3796 process_target.
3797
3798 * target.h (struct process_stratum_target): Remove the target op.
3799 (class process_target): Add the target op. Also add
3800 'supports_read_offsets'.
3801 * target.cc (process_target::read_offsets): Define.
3802 (process_target::supports_read_offsets): Define.
3803
3804 Update the derived classes and callers below.
3805
3806 * server.cc (handle_query): Update.
3807 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3808 (linux_target_ops): Update.
3809 (linux_process_target::supports_read_offsets): Define.
3810 (linux_read_offsets): Turn into ...
3811 (linux_process_target::read_offsets): ... this.
3812 * linux-low.h (class linux_process_target): Update.
3813 * lynx-low.cc (lynx_target_ops): Update.
3814 * nto-low.cc (nto_target_ops): Update.
3815 * win32-low.cc (win32_target_ops): Update.
3816
6eeb5c55
TBA
38172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3818
3819 Turn process_stratum_target's stopped_by_watchpoint and
3820 stopped_data_address ops into methods of process_target.
3821
3822 * target.h (struct process_stratum_target): Remove the target ops.
3823 (class process_target): Add the target ops.
3824 * target.cc (process_target::stopped_by_watchpoint): Define.
3825 (process_target::stopped_data_address): Define.
3826
3827 Update the derived classes and callers below.
3828
3829 * remote-utils.cc (prepare_resume_reply): Update.
3830 * linux-low.cc (linux_target_ops): Update.
3831 (linux_stopped_by_watchpoint): Turn into ...
3832 (linux_process_target::stopped_by_watchpoint): ... this.
3833 (linux_stopped_data_address): Turn into ...
3834 (linux_process_target::stopped_data_address): ... this.
3835 * linux-low.h (class linux_process_target): Update.
3836 * lynx-low.cc (lynx_target_ops): Update.
3837 * nto-low.cc (nto_target_ops): Update.
3838 (nto_stopped_by_watchpoint): Turn into ...
3839 (nto_process_target::stopped_by_watchpoint): ... this.
3840 (nto_stopped_data_address): Turn into ...
3841 (nto_process_target::stopped_data_address): ... this.
3842 * nto-low.h (class nto_process_target): Update.
3843 * win32-low.cc (win32_target_ops): Update.
3844 (win32_stopped_by_watchpoint): Turn into ...
3845 (win32_process_target::stopped_by_watchpoint): ... this.
3846 (win32_stopped_data_address): Turn into ...
3847 (win32_process_target::stopped_data_address): ... this.
3848 * win32-low.h (class win32_process_target): Update.
3849
22aa6223
TBA
38502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3851
3852 Turn process_stratum_target's supports_hardware_single_step op into
3853 a method of process_target.
3854
3855 * target.h (struct process_stratum_target): Remove the target op.
3856 (class process_target): Add the target op.
3857 (target_supports_hardware_single_step): Update the macro.
3858 (target_can_do_hardware_single_step): Remove declaration.
3859 * target.cc (process_target::supports_hardware_single_step): Define.
3860 (target_can_do_hardware_single_step): Remove.
3861
3862 Update the derived classes and callers below.
3863
3864 * linux-low.h (class linux_process_target): Update.
3865 * linux-low.cc (linux_target_ops): Update.
3866 (linux_supports_hardware_single_step): Turn into ...
3867 (linux_process_target::supports_hardware_single_step): ... this.
3868 * lynx-low.h (class lynx_process_target): Update.
3869 * lynx-low.cc (lynx_target_ops): Update.
3870 (lynx_process_target::supports_hardware_single_step): Define.
3871 * nto-low.h (class nto_process_target): Update.
3872 * nto-low.cc (nto_target_ops): Update.
3873 (nto_process_target::supports_hardware_single_step): Define.
3874 * win32-low.h (class win32_process_target): Update.
3875 * win32-low.cc (win32_target_ops): Update.
3876 (win32_process_target::supports_hardware_single_step): Define.
3877
93fe88b2
TBA
38782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3879
3880 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3881 ops into methods of process_target.
3882
3883 * target.h (struct process_stratum_target): Remove the target ops.
3884 (class process_target): Add the target ops.
3885 (target_stopped_by_hw_breakpoint): Update the macro.
3886 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3887 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3888 (process_target::supports_stopped_by_hw_breakpoint): Define.
3889
3890 Update the derived classes and callers below.
3891
3892 * linux-low.cc (linux_target_ops): Update.
3893 (linux_stopped_by_hw_breakpoint): Turn into ...
3894 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3895 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3896 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3897 * linux-low.h (class linux_process_target): Update.
3898 * lynx-low.cc (lynx_target_ops): Update.
3899 * nto-low.cc (nto_target_ops): Update.
3900 * win32-low.cc (win32_target_ops): Update.
3901
84320c4e
TBA
39022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3903
3904 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3905 ops into methods of process_target.
3906
3907 * target.h (struct process_stratum_target): Remove the target ops.
3908 (class process_target): Add the target ops.
3909 (target_stopped_by_sw_breakpoint): Update the macro.
3910 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3911 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3912 (process_target::supports_stopped_by_sw_breakpoint): Define.
3913
3914 Update the derived classes and callers below.
3915
3916 * linux-low.cc (linux_target_ops): Update.
3917 (linux_stopped_by_sw_breakpoint): Turn into ...
3918 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3919 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3920 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3921 * linux-low.h (class linux_process_target): Update.
3922 * lynx-low.cc (lynx_target_ops): Update.
3923 * nto-low.cc (nto_target_ops): Update.
3924 * win32-low.cc (win32_target_ops): Update.
3925
7e0bde70
TBA
39262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3927
3928 Turn process_stratum_target's insert_point and remove_point ops
3929 into methods of process_target.
3930
3931 * target.h (struct process_stratum_target): Remove the target ops.
3932 (class process_target): Add the target ops.
3933 * target.cc (process_target::insert_point): Define.
3934 (process_target::remove_point): Define.
3935
3936 Update the derived classes and callers below.
3937
3938 * mem-break.cc (set_raw_breakpoint_at): Update.
3939 (delete_raw_breakpoint): Update.
3940 (uninsert_raw_breakpoint): Update.
3941 (reinsert_raw_breakpoint): Update.
3942 * linux-low.cc (linux_target_ops): Update.
3943 (linux_insert_point): Turn into ...
3944 (linux_process_target::insert_point): ... this.
3945 (linux_remove_point): Turn into ...
3946 (linux_process_target::remove_point): ... this.
3947 * linux-low.h (class linux_process_target): Update.
3948 * lynx-low.cc (lynx_target_ops): Update.
3949 * nto-low.cc (nto_target_ops): Update.
3950 (nto_insert_point): Turn into ...
3951 (nto_process_target::insert_point): ... this.
3952 (nto_remove_point): Turn into ...
3953 (nto_process_target::remove_point): ... this.
3954 * nto-low.h (class nto_process_target): Update.
3955 * win32-low.cc (win32_target_ops): Update.
3956 (win32_insert_point): Turn into ...
3957 (win32_process_target::insert_point): ... this.
3958 (win32_remove_point): Turn into ...
3959 (win32_process_target::remove_point): ... this.
3960 * win32-low.h (class win32_process_target): Update.
3961
a2b2297a
TBA
39622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3963
3964 Turn process_stratum_target's supports_z_point_type op into a
3965 method of process_target.
3966
3967 * target.h (struct process_stratum_target): Remove the target op.
3968 (class process_target): Add the target op.
3969 * target.cc (process_target::supports_z_point_type): Define.
3970
3971 Update the derived classes and callers below.
3972
3973 * mem-break.cc (z_type_supported): Update.
3974 * linux-low.cc (linux_target_ops): Update.
3975 (linux_supports_z_point_type): Turn into ...
3976 (linux_process_target::supports_z_point_type): ... this.
3977 * linux-low.h (class linux_process_target): Update.
3978 * lynx-low.cc (lynx_target_ops): Update.
3979 * nto-low.cc (nto_target_ops): Update.
3980 (nto_supports_z_point_type): Turn into ...
3981 (nto_process_target::supports_z_point_type): ... this.
3982 * nto-low.h (class nto_process_target): Update.
3983 * win32-low.cc (win32_target_ops): Update.
3984 (win32_supports_z_point_type): Turn into ...
3985 (win32_process_target::supports_z_point_type): ... this.
3986 * win32-low.h (class win32_process_target): Update.
3987
eac215cc
TBA
39882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3989
3990 Turn process_stratum_target's read_auxv op into a method of
3991 process_target.
3992
3993 * target.h (class process_stratum_target): Remove the target op.
3994 (struct process_target): Add the target op. Also add
3995 'supports_read_auxv'.
3996 * target.cc (process_target::read_auxv): Define.
3997 (process_target::supports_read_auxv): Define.
3998
3999 Update the derived classes and callers below.
4000
4001 * server.cc (handle_qxfer_auxv): Update.
4002 (handle_query): Update.
4003 * linux-low.cc (linux_target_ops): Update.
4004 (linux_process_target::supports_read_auxv): Define.
4005 (linux_read_auxv): Turn into ...
4006 (linux_process_target::read_auxv): ... this.
4007 * linux-low.h (class linux_process_target): Update.
4008 * lynx-low.cc (lynx_target_ops): Update.
4009 * nto-low.cc (nto_target_ops): Update.
4010 (nto_process_target::supports_read_auxv): Define.
4011 (nto_read_auxv): Turn into ...
4012 (nto_process_target::read_auxv): ... this.
4013 * nto-low.h (class nto_process_target): Update.
4014 * win32-low.cc (win32_target_ops): Update.
4015
eb497a2a
TBA
40162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4017
4018 Turn process_stratum_target's request_interrupt op into a method of
4019 process_target.
4020
4021 * target.h (struct process_stratum_target): Remove the target op.
4022 (class process_target): Add the target op.
4023
4024 Update the derived classes and callers below.
4025
4026 * remote-utils.cc (putpkt_binary_1): Update.
4027 (input_interrupt): Update.
4028 (getpkt): Update.
4029 * server.cc (handle_v_requests): Update.
4030 * linux-low.cc (linux_target_ops): Update.
4031 (linux_request_interrupt): Turn into ...
4032 (linux_process_target::request_interrupt): ... this.
4033 * linux-low.h (class linux_process_target): Update.
4034 * lynx-low.cc (lynx_target_ops): Update.
4035 (lynx_request_interrupt): Turn into ...
4036 (lynx_process_target::request_interrupt): ... this.
4037 * lynx-low.h (class lynx_process_target): Update.
4038 * nto-low.cc (nto_target_ops): Update.
4039 (nto_request_interrupt): Turn into ...
4040 (nto_process_target::request_interrupt): ... this.
4041 * nto-low.h (class nto_process_target): Update.
4042 * win32-low.cc (win32_target_ops): Update.
4043 (win32_request_interrupt): Turn into ...
4044 (win32_process_target::request_interrupt): ... this.
4045 * win32-low.h (class win32_process_target): Update.
4046
2a31c7aa
TBA
40472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4048
4049 Turn process_stratum_target's look_up_symbols op into a method of
4050 process_target.
4051
4052 * target.h (struct process_stratum_target): Remove the target op.
4053 (class process_target): Add the target op.
4054 * target.cc (process_target::look_up_symbols): Define.
4055
4056 Update the derived classes and callers below.
4057
4058 * server.cc (handle_query): Update.
4059 * linux-low.cc (linux_target_ops): Update.
4060 (linux_look_up_symbols): Turn into ...
4061 (linux_process_target::look_up_symbols): ... this.
4062 * linux-low.h (class linux_process_target): Update.
4063 * lynx-low.cc (lynx_target_ops): Update.
4064 * nto-low.cc (nto_target_ops): Update.
4065 * win32-low.cc (win32_target_ops): Update.
4066
e2558df3
TBA
40672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4068
4069 Turn process_stratum_target's read_memory and write_memory
4070 ops into methods of process_target.
4071
4072 * target.h (struct process_stratum_target): Remove the target ops.
4073 (class process_target): Add the target ops.
4074
4075 Update the derived classes and callers below.
4076
4077 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4078 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4079 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4080 (arm_get_syscall_trapinfo): Update.
4081 * linux-cris-low.cc (cris_breakpoint_at): Update.
4082 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4083 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4084 * linux-mips-low.cc (mips_breakpoint_at): Update.
4085 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4086 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4087 * linux-sh-low.cc (sh_breakpoint_at): Update.
4088 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4089 (sparc_store_gregset_from_stack): Update.
4090 (sparc_breakpoint_at): Update.
4091 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4092 * linux-tile-low.cc (tile_breakpoint_at): Update.
4093 * linux-x86-low.cc (x86_breakpoint_at): Update.
4094 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4095 * mem-brea.cc (insert_memory_breakpoint): Update.
4096 (validate_inserted_breakpoint): Update.
4097 * target.cc (read_inferior_memory): Update.
4098 (target_write_memory): Update.
4099 * linux-low.cc (linux_target_ops): Update.
4100 (linux_read_memory): Make a wrapper around the read_memory target
4101 op call.
4102 (linux_process_target::read_memory): Rename from linux_read_memory.
4103 (linux_write_memory): Turn into ...
4104 (linux_process_target::write_memory): ... this.
4105 * linux-low.h (class linux_process_target): Update.
4106 * lynx-low.cc (lynx_target_ops): Update.
4107 (lynx_read_memory): Turn into ...
4108 (lynx_process_target::read_memory): ... this.
4109 (lynx_write_memory): Turn into ...
4110 (lynx_process_target::write_memory): ... this.
4111 * lynx-low.h (class lynx_process_target): Update.
4112 * nto-low.cc (nto_target_ops): Update.
4113 (nto_read_memory): Turn into ...
4114 (nto_process_target::read_memory): ... this.
4115 (nto_write_memory): Turn into ...
4116 (nto_process_target::write_memory): ... this.
4117 * nto-low.h (class nto_process_target): Update.
4118 * win32-low.cc (win32_target_ops): Update.
4119 (win32_read_inferior_memory): Turn into ...
4120 (win32_process_target::read_memory): ... this.
4121 (win32_write_inferior_memory): Turn into ...
4122 (win32_process_target::write_memory): ... this.
4123 * win32-low.h (class win32_process_target): Update.
4124
79b44087
TBA
41252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4126
4127 Turn process_stratum_target's prepare_to_access_memory and
4128 done_accessing_memory ops into methods of process_target.
4129
4130 * target.h (struct process_stratum_target): Remove the target ops.
4131 (class process_target): Add the target ops.
4132 * target.cc (process_target::prepare_to_access_memory): Define.
4133 (process_target::done_accessing_memory): Define.
4134 (prepare_to_access_memory): Update.
4135 (done_accessing_memory): Update.
4136
4137 Update the derived classes and callers below.
4138
4139 * linux-low.cc (linux_target_ops): Update.
4140 (linux_prepare_to_access_memory): Turn into ...
4141 (linux_process_target::prepare_to_access_memory): ... this.
4142 (linux_done_accessing_memory): Turn into ...
4143 (linux_process_target::done_accessing_memory): ... this.
4144 * linux-low.h (class linux_process_target): Update.
4145 * lynx-low.cc (lynx_target_ops): Update.
4146 * nto-low.cc (nto_target_ops): Update.
4147 * win32-low.cc (win32_target_ops): Update.
4148
a5a4d4cd
TBA
41492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4150
4151 Turn process_stratum_target's fetch_registers and store_registers
4152 ops into methods of process_target.
4153
4154 * target.h (struct process_stratum_target): Remove the target ops.
4155 (class process_target): Add the target ops.
4156 (fetch_inferior_registers): Update the macro.
4157 (store_inferior_registers): Update the macro.
4158
4159 Update the derived classes and callers below.
4160
4161 * linux-low.cc (linux_target_ops): Update.
4162 (linux_fetch_registers): Turn into ...
4163 (linux_process_target::fetch_registers): ... this.
4164 (linux_store_registers): Turn into ...
4165 (linux_process_target::store_registers): ... this.
4166 * linux-low.h (class linux_process_target): Update.
4167 * lynx-low.cc (lynx_target_ops): Update.
4168 (lynx_fetch_registers): Turn into ...
4169 (lynx_process_target::fetch_registers): ... this.
4170 (lynx_store_registers): Turn into ...
4171 (lynx_process_target::store_registers): ... this.
4172 * lynx-low.h (class lynx_process_target): Update.
4173 * nto-low.cc (nto_target_ops): Update.
4174 (nto_fetch_registers): Turn into ...
4175 (nto_process_target::fetch_registers): ... this.
4176 (nto_store_registers): Turn into ...
4177 (nto_process_target::store_registers): ... this.
4178 * nto-low.h (class nto_process_target): Update.
4179 * win32-low.cc (win32_target_ops): Update.
4180 (win32_fetch_inferior_registers): Turn into ...
4181 (win32_process_target::fetch_registers): ... this.
4182 (win32_store_inferior_registers): Turn into ...
4183 (win32_process_target::store_registers): ... this.
4184 * win32-low.h (class win32_process_target): Update.
4185
6532e7e3
TBA
41862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4187
4188 Turn process_stratum_target's wait op into a method of
4189 process_target.
4190
4191 * target.h (struct process_stratum_target): Remove the target op.
4192 (class process_target): Add the target op.
4193
4194 Update the derived classes and callers below.
4195
4196 * target.cc (target_wait): Update.
4197 * linux-low.cc (linux_target_ops): Update.
4198 (linux_wait): Turn into ...
4199 (linux_process_target::wait): ... this.
4200 * linux-low.h (class linux_process_target): Update.
4201 * lynx-low.cc (lynx_target_ops): Update.
4202 (lynx_wait): Turn into ...
4203 (lynx_process_target::wait): ... this.
4204 * lynx-low.h (class lynx_process_target): Update.
4205 * nto-low.cc (nto_target_ops): Update.
4206 (nto_wait): Turn into ...
4207 (nto_process_target::wait): ... this.
4208 * nto-low.h (class nto_process_target): Update.
4209 * win32-low.cc (win32_target_ops): Update.
4210 (win32_wait): Turn into ...
4211 (win32_process_target::wait): ... this.
4212 (do_initial_child_stuff): Update.
4213 * win32-low.h (class win32_process_target): Update.
4214
0e4d7e35
TBA
42152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4216
4217 Turn process_stratum_target's resume op into a method of
4218 process_target.
4219
4220 * target.h (struct process_stratum_target): Remove the target op.
4221 (class process_target): Add the target op.
4222
4223 Update the derived classes and callers below.
4224
4225 * server.cc (resume): Update.
4226 * target.cc (target_stop_and_wait): Update.
4227 (target_continue_no_signal): Update.
4228 (target_continue): Update.
4229 * linux-low.cc (linux_target_ops): Update.
4230 (linux_resume): Turn into ...
4231 (linux_process_target::resume): ... this.
4232 * linux-low.h (class linux_process_target): Update.
4233 * lynx-low.cc (lynx_target_ops): Update.
4234 (lynx_resume): Turn into ...
4235 (lynx_process_target::resume): ... this.
4236 * lynx-low.h (class lynx_process_target): Update.
4237 * nto-low.cc (nto_target_ops): Update.
4238 (nto_resume): Turn into ...
4239 (nto_process_target::resume): ... this.
4240 * nto-low.h (class nto_process_target): Update.
4241 * win32-low.cc (win32_target_ops): Update.
4242 (win32_resume): Turn into ...
4243 (win32_process_target::resume): ... this.
4244 (win32_process_target::detach): Update.
4245 (do_initial_child_stuff): Update.
4246 * win32-low.h (class win32_process_target): Update.
4247
13d3d99b
TBA
42482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4249
4250 Turn process_stratum_target's thread_alive op into a method of
4251 process_target.
4252
4253 * target.h (struct process_stratum_target): Remove the target op.
4254 (class process_target): Add the target op.
4255 (mythread_alive): Update the macro.
4256
4257 Update the derived classes and callers below.
4258
4259 * linux-low.cc (linux_target_ops): Update.
4260 (linux_thread_alive): Turn into ...
4261 (linux_process_target::thread_alive): ... this.
4262 (wait_for_sigstop): Update.
4263 * linux-low.h (class linux_process_target): Update.
4264 * lynx-low.cc (lynx_target_ops): Update.
4265 (lynx_thread_alive): Turn into ...
4266 (lynx_process_target::thread_alive): ... this.
4267 * lynx-low.h (class lynx_process_target): Update.
4268 * nto-low.cc (nto_target_ops): Update.
4269 (nto_thread_alive): Turn into ...
4270 (nto_process_target::thread_alive): ... this.
4271 * nto-low.h (class nto_process_target): Update.
4272 * win32-low.cc (win32_target_ops): Update.
4273 (win32_thread_alive): Turn into ...
4274 (win32_process_target::thread_alive): ... this.
4275 * win32-low.h (class win32_process_target): Update.
4276
95a49a39
TBA
42772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4278
4279 Turn process_stratum_target's join op into a method of
4280 process_target.
4281
4282 * target.h (struct process_stratum_target): Remove the target op.
4283 (class process_target): Add the target op.
4284 (join_inferior): Update the macro.
4285
4286 Update the derived classes and callers below.
4287
4288 * linux-low.cc (linux_target_ops): Update.
4289 (linux_join): Turn into ...
4290 (linux_process_target::join): ... this.
4291 * linux-low.h (class linux_process_target): Update.
4292 * lynx-low.cc (lynx_target_ops): Update.
4293 (lynx_join): Turn into ...
4294 (lynx_process_target::join): ... this.
4295 * lynx-low.h (class lynx_process_target): Update.
4296 * nto-low.cc (nto_target_ops): Update.
4297 (nto_process_target::join): Define.
4298 * nto-low.h (class nto_process_target): Update.
4299 * win32-low.cc (win32_target_ops): Update.
4300 (win32_join): Turn into ...
4301 (win32_process_target::join): ... this.
4302 * win32-low.h (class win32_process_target): Update.
4303
8adb37b9
TBA
43042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4305
4306 Turn process_stratum_target's mourn op into a method of
4307 process_target.
4308
4309 * target.h (struct process_stratum_target): Remove the target op.
4310 (class process_target): Add the target op.
4311
4312 Update the derived classes and callers below.
4313
4314 * target.cc (target_mourn_inferior): Update.
4315 * linux-low.cc (linux_target_ops): Update.
4316 (linux_mourn): Turn into ...
4317 (linux_process_target::mourn): ... this.
4318 (handle_extended_wait): Update.
4319 (linux_process_target::kill): Update.
4320 (linux_process_target::detach): Update.
4321 * linux-low.h (class linux_process_target): Update.
4322 * lynx-low.cc (lynx_target_ops): Update.
4323 (lynx_mourn): Turn into ...
4324 (lynx_process_target::mourn): ... this.
4325 * lynx-low.h (class lynx_process_target): Update.
4326 * nto-low.cc (nto_target_ops): Update.
4327 (nto_mourn): Turn into ...
4328 (nto_process_target::mourn): ... this.
4329 * nto-low.h (class nto_process_target): Update.
4330 * win32-low.cc (win32_target_ops): Update.
4331 (win32_mourn): Turn into ...
4332 (win32_process_target::mourn): ... this.
4333 * win32-low.h (class win32_process_target): Update.
4334
9061c9cf
TBA
43352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4336
4337 Turn process_stratum_target's detach op into a method of
4338 process_target.
4339
4340 * target.h (struct process_stratum_target): Remove the target op.
4341 (class process_target): Add the target op.
4342 (detach_inferior): Update the macro.
4343
4344 Update the derived classes and callers below.
4345
4346 * linux-low.cc (linux_target_ops): Update.
4347 (linux_detach): Turn into ...
4348 (linux_process_target::detach): ... this.
4349 * linux-low.h (class linux_process_target): Update.
4350 * lynx-low.cc (lynx_target_ops): Update.
4351 (lynx_detach): Turn into ...
4352 (lynx_process_target::detach): ... this.
4353 * lynx-low.h (class lynx_process_target): Update.
4354 * nto-low.cc (nto_target_ops): Update.
4355 (nto_detach): Turn into ...
4356 (nto_process_target::detach): ... this.
4357 * nto-low.h (class nto_process_target): Update.
4358 * win32-low.cc (win32_target_ops): Update.
4359 (win32_detach): Turn into ...
4360 (win32_process_target::detach): ... this.
4361 * win32-low.h (class win32_process_target): Update.
4362
c6885a57
TBA
43632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4364
4365 Turn process_stratum_target's kill op into a method of
4366 process_target.
4367
4368 * target.h (struct process_stratum_target): Remove the target op.
4369 (class process_target): Add the target op.
4370
4371 Update the derived classes and callers below.
4372
4373 * target.cc (kill_inferior): Update.
4374 * linux-low.cc (linux_target_ops): Update.
4375 (linux_kill): Turn into ...
4376 (linux_process_target::kill): ... this.
4377 * linux-low.h (class linux_process_target): Update.
4378 * lynx-low.cc (lynx_target_ops): Update.
4379 (lynx_kill): Turn into ...
4380 (lynx_process_target::kill): ... this.
4381 * lynx-low.h (class lynx_process_target): Update.
4382 * nto-low.cc (nto_target_ops): Update.
4383 (nto_kill): Turn into ...
4384 (nto_process_target::kill): ... this.
4385 * nto-low.h (class nto_process_target): Update.
4386 * win32-low.cc (win32_target_ops): Update.
4387 (win32_kill): Turn into ...
4388 (win32_process_target::kill): ... this.
4389 * win32-low.h (class win32_process_target): Update.
4390
ef03dad8
TBA
43912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4392
4393 Turn process_stratum_target's attach op into a method of
4394 process_target.
4395
4396 * target.h (struct process_stratum_target): Remove the target op.
4397 (class process_target): Add the target op.
4398 (myattach): Update the macro.
4399
4400 Update the derived classes and callers below.
4401
4402 * linux-low.cc (linux_target_ops): Update.
4403 (linux_attach): Turn into ...
4404 (linux_process_target::attach): ... this.
4405 * linux-low.h (class linux_process_target): Update.
4406 * lynx-low.cc (lynx_target_ops): Update.
4407 (lynx_attach): Turn into ...
4408 (lynx_process_target::attach): ... this.
4409 * lynx-low.h (class lynx_process_target): Update.
4410 * nto-low.cc (nto_target_ops): Update.
4411 (nto_attach): Turn into ...
4412 (nto_process_target::attach): ... this.
4413 * nto-low.h (class nto_process_target): Update.
4414 * win32-low.cc (win32_target_ops): Update.
4415 (win32_attach): Turn into ...
4416 (win32_process_target::attach): ... this.
4417 * win32-low.h (class win32_process_target): Update.
4418
6dee9afb
TBA
44192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4420
4421 Turn process_stratum_target's post_create_inferior op into a method
4422 of process_target.
4423
4424 * target.h (struct process_stratum_target): Remove the target op.
4425 (class process_target): Add the target op.
4426 (target_post_create_inferior): Update the macro.
4427 * target.cc (process_target::post_create_inferior): Define.
4428
4429 Update the derived classes and callers below.
4430
4431 * linux-low.cc (linux_target_ops): Update.
4432 (linux_post_create_inferior): Turn into ...
4433 (linux_process_target::post_create_inferior): ... this.
4434 * linux-low.h (class linux_process_target): Update.
4435 * lynx-low.cc (lynx_target_ops): Update.
4436 * nto-low.cc (nto_target_ops): Update.
4437 * win32-low.cc (win32_target_ops): Update.
4438
15295543
TBA
44392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4440
4441 Turn process_stratum_target's create_inferior op into a method of
4442 process_target.
4443
4444 * target.h (struct process_stratum_target): Remove the target op.
4445 (class process_target): Add the target op.
4446 (create_inferior): Rename the macro to ...
4447 (target_create_inferior): ... this.
4448
4449 Update the derived classes and callers below.
4450
4451 * server.cc (handle_v_run): Update.
4452 (captured_main): Update.
4453 (process_serial_event): Update.
4454 * linux-low.cc (linux_target_ops): Update.
4455 (linux_create_inferior): Turn into ...
4456 (linux_process_target::create_inferior): ... this.
4457 * linux-low.h (class linux_process_target): Update.
4458 * lynx-low.cc (lynx_target_ops): Update.
4459 (lynx_create_inferior): Turn into ...
4460 (lynx_process_target::create_inferior): ... this.
4461 * lynx-low.h (class lynx_process_target): Update.
4462 * nto-low.cc (nto_target_ops): Update.
4463 (nto_create_inferior): Turn into ...
4464 (nto_process_target::create_inferior): ... this.
4465 * nto-low.h (class nto_process_target): Update.
4466 * win32-low.cc (win32_target_ops): Update.
4467 (win32_create_inferior): Turn into ...
4468 (win32_process_target::create_inferior): ... this.
4469 * win32-low.h (class win32_process_target): Update.
4470
5ef9273d
TBA
44712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4472
4473 * target.h (class process_target): New class definition.
4474 (struct process_stratum_target) <pt>: New field with type
4475 'process_target*'.
4476 * linux-low.h (class linux_process_target): Define as a derived
4477 class of 'process_target'.
4478 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4479 as the 'pt' field.
4480 * lynx-low.h (class lynx_process_target): Define as a derived
4481 class of 'process_target'.
4482 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4483 as the 'pt' field.
4484 * nto-low.h (class nto_process_target): Define as a derived
4485 class of 'process_target'.
4486 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4487 as the 'pt' field.
4488 * win32-low.h (class win32_process_target): Define as a derived
4489 class of 'process_target'.
4490 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4491 as the 'pt' field.
4492
9f1528a1
AB
44932020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4494
4495 * configure: Regenerate.
4496
bf84f706
MR
44972020-02-19 Maciej W. Rozycki <macro@wdc.com>
4498 Andrew Burgess <andrew.burgess@embecosm.com>
4499
4500 * linux-riscv-low.cc: New file.
4501 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4502 and nat/riscv-linux-tdesc.c.
4503 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4504 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4505 Define.
4506
1a627e7e
TT
45072020-02-14 Tom Tromey <tom@tromey.com>
4508
4509 * acinclude.m4: Don't include acx_configure_dir.m4.
4510 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4511 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4512 (all, install-only, uninstall, clean-info, clean)
4513 (maintainer-clean): Don't recurse.
4514 (subdir_do, all-lib): Remove.
4515 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4516 (GNULIB_H): Remove.
4517 (generated_files): Update.
4518 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4519 * configure: Rebuild.
4520 * configure.ac: Don't configure gnulib or libiberty.
4521 (GNULIB): Update.
4522
a9b34532
EZ
45232020-02-14 Eli Zaretskii <eliz@gnu.org>
4524
4525 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4526 preparing the command line for CreateProcess.
4527 (win32_create_inferior): Reflect the program name in debugging
4528 output that shows the process and its command line.
4529
feacfcac
SM
45302020-02-13 Simon Marchi <simon.marchi@efficios.com>
4531
4532 * Makefile.in: Rename source files from .c to .cc.
4533 * %.c: Rename to %.cc.
4534 * configure.ac: Rename server.c to server.cc.
4535 * configure: Re-generate.
4536
06b3c5bd
SM
45372020-02-13 Simon Marchi <simon.marchi@efficios.com>
4538
4539 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4540
052793ad
HD
45412020-02-12 Hannes Domani <ssbssa@yahoo.de>
4542
4543 * win32-low.c (win32_create_inferior): Set signal_pid.
4544
f20e3e82
MR
45452020-02-12 Maciej W. Rozycki <macro@wdc.com>
4546 Pedro Alves <palves@redhat.com>
4547
4548 Skip building gdbserver in a cross-configuration.
4549 * configure.srv: Set $gdbserver_host depending on whether $target
4550 is $host. Use $gdbserver_host instead of $host.
4551
8ddd8e0e
SM
45522020-02-11 Simon Marchi <simon.marchi@efficios.com>
4553
4554 * configure: Re-generate.
4555
898e7f60
SM
45562020-02-11 Simon Marchi <simon.marchi@efficios.com>
4557
4558 * configure: Re-generate.
4559
58df732b
SM
45602020-02-11 Simon Marchi <simon.marchi@efficios.com>
4561
4562 * acinclude.m4: Update warning.m4 path.
4563
7928d571
HD
45642020-02-09 Hannes Domani <ssbssa@yahoo.de>
4565
4566 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4567 (handle_exception): Set siginfo_er.
4568 (win32_xfer_siginfo): New function.
4569
919adfe8
TT
45702020-02-07 Tom Tromey <tom@tromey.com>
4571 Pedro Alves <palves@redhat.com>
4572
4573 * README: Update build documentation.
4574 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4575 host, not target.
4576 * configure.ac: Update paths.
4577 * configure: Rebuild.
4578 * acinclude.m4: Update paths.
4579 * Makefile.in: Update include paths.
4580 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4581 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4582 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4583 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4584 (%-generated.c): Update paths.
4585 * Move entire directory from ../gdb/gdbserver.
4586
287c844a
MR
45872020-01-29 Maciej W. Rozycki <macro@wdc.com>
4588
4589 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4590
548a204f
PFC
45912020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4592
4593 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4594 assignment instead of srv_linux_obj.
4595
a2236a08
HD
45962020-01-28 Hannes Domani <ssbssa@yahoo.de>
4597
4598 * server.c (handle_qxfer_libraries): Write segment-address with
4599 paddress.
4600
bdaed379
HD
46012020-01-24 Hannes Domani <ssbssa@yahoo.de>
4602
4603 * Makefile.in (install-strip): New target.
4604 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4605 * aclocal.m4: Regenerate.
4606 * configure: Regenerate.
4607 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4608
42cd72aa
MR
46092020-01-24 Maciej W. Rozycki <macro@wdc.com>
4610
4611 * Makefile.in (SFILES): Adjust paths to point to real files.
4612 (OBS): Move waitstatus.o to target/waitstatus.o.
4613 (TAGS): Transform paths appropriately.
4614 (%.o): Rename to...
4615 (nat/%.o): ... this pattern rule.
4616 (%.o): Rename to...
4617 (target/%.o): ... this pattern rule.
4618 * configure.srv: Adjust paths throughout to include nat/ prefix
4619 with the revant files.
4620 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4621 * configure: Regenerate.
4622
42ba50ec
MR
46232020-01-24 Maciej W. Rozycki <macro@wdc.com>
4624
4625 * Makefile.in (TAGS): Remove config files from the recipe.
4626
05ea2a05
TT
46272020-01-14 Tom Tromey <tom@tromey.com>
4628
4629 * configure: Rebuild.
4630 * configure.ac: Remove any checks that were added to common.m4.
4631 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4632 lib-link.m4.
4633
01027315
TT
46342020-01-14 Tom Tromey <tom@tromey.com>
4635
4636 * server.h: Include config.h.
4637 * gdbreplay.c: Include config.h.
4638 * configure: Rebuild.
4639 * configure.ac: Don't source common.host.
4640 * acinclude.m4: Update path.
4641 * Makefile.in (INCSUPPORT): New variable.
4642 (INCLUDE_CFLAGS): Add INCSUPPORT.
4643 (SFILES): Update paths.
4644 (version-generated.c): Update path to create-version.sh.
4645 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4646
b2ceabe8
TT
46472020-01-14 Tom Tromey <tom@tromey.com>
4648
4649 * configure.ac (LIBS): Use WIN32APILIBS.
4650 (USE_WIN32API): Don't define.
4651 * configure: Rebuild.
4652
25c51f71
TT
46532020-01-14 Tom Tromey <tom@tromey.com>
4654
4655 * configure: Rebuild.
4656
c0bd321d
SM
46572020-01-13 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * Makefile.in (%-generated.c): Remove rule for files from
4660 regformats/i386.
4661
bb564c58
SM
46622020-01-13 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * configure: Re-generate.
4665
6e37c371
SM
46662020-01-13 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4669 Define to static.
4670 * tracepoint.c (stop_tracing, flush_trace_buffer,
4671 about_to_request_buffer_space, get_trace_state_variable_value,
4672 set_trace_state_variable_value, gdb_collect): Add declaration.
4673
df4a0200
SM
46742020-01-13 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4677 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4678 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4679 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4680 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4681 static.
4682
89e94ec9
SM
46832020-01-13 Simon Marchi <simon.marchi@efficios.com>
4684
4685 * inferiors.c: Include gdbsupport/common-inferior.h.
4686
2552728a
SM
46872020-01-13 Simon Marchi <simon.marchi@efficios.com>
4688
4689 * hostio-errno.c: Include hostio.h.
4690
4025fa09
SM
46912020-01-13 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4694 prerequisite.
4695
c0b0a142
SM
46962020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4697
4698 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4699 * linux-arm-tdesc.h: Include arch/arm.h.
4700
bb1183e2
SM
47012020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4702
4703 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4704
f5df0b5f
SM
47052020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4706
4707 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4708 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4709
5b6d1e4f
PA
47102020-01-10 Pedro Alves <palves@redhat.com>
4711
4712 * fork-child.c (post_fork_inferior): Pass target down to
4713 startup_inferior.
4714 * inferiors.c (switch_to_thread): Add process_stratum_target
4715 parameter.
4716 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4717 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4718 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4719 * remote-utils.c (prepare_resume_reply): Pass the target to
4720 switch_to_thread.
4721 * target.c (the_target): Now a process_stratum_target.
4722 (done_accessing_memory): Pass the target to switch_to_thread.
4723 (set_target_ops): Ajust to use process_stratum_target.
4724 * target.h (struct target_ops): Rename to ...
4725 (struct process_stratum_target): ... this.
4726 (the_target, set_target_ops): Adjust.
4727 (prepare_to_access_memory): Adjust comment.
4728 * win32-low.c (child_xfer_memory): Adjust to use
4729 process_stratum_target.
4730 (win32_target_ops): Now a process_stratum_target.
4731
559e7e50
EZ
47322020-01-06 Eli Zaretskii <eliz@gnu.org>
4733 Pedro Alves <palves@redhat.com>
4734
4735 * win32-low.c (get_child_debug_event): Extract the fatal exception
4736 from the exit status and convert to the equivalent Posix signal
4737 number.
4738 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4739 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4740
48189bec
HD
47412020-01-01 Hannes Domani <ssbssa@yahoo.de>
4742
4743 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4744
5dd8bf88
JB
47452020-01-01 Joel Brobecker <brobecker@adacore.com>
4746
4747 * server.c (gdbserver_version): Change copyright year to 2020.
4748 * gdbreplay.c (gdbreplay_version): Likewise.
4749
0ad6b8ee
CB
47502019-12-19 Christian Biesinger <cbiesinger@google.com>
4751
4752 * configure: Regenerate.
4753 * configure.ac: Quote variable arguments of test.
4754
1ee7b812
BE
47552019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4756
4757 * Makefile.in: Fix build with GNU Make 3.81
4758
d9fa87f4
TT
47592019-12-16 Tom Tromey <tromey@adacore.com>
4760
4761 * server.c (get_exec_file): Constify result.
4762
ab7d13f0
CB
47632019-12-10 Christian Biesinger <cbiesinger@google.com>
4764
4765 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4766 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4767 * config.in: Regenerate.
4768 * configure: Regenerate.
4769 * configure.ac: Don't check for strerror.
4770 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4771 Call safe_strerror instead of strerror.
4772 * server.h (strerror): Remove this now-unnecessary declaration.
4773 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4774 strerror.
4775 (gdb_agent_helper_thread): Likewise.
4776 * utils.c (perror_with_name): Likewise.
4777
4da8c3a8
TT
47782019-11-26 Tom Tromey <tom@tromey.com>
4779
4780 * configure, config.in: Rebuild.
4781
21987b9c
TT
47822019-11-26 Tom Tromey <tom@tromey.com>
4783
4784 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4785 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4786 gdb_sigmask.
4787 * configure, config.in: Rebuild.
4788
5e030278
TT
47892019-11-26 Tom Tromey <tom@tromey.com>
4790
4791 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4792 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4793 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4794 * acinclude.m4: Include ax_pthread.m4.
4795 * config.in, configure: Rebuild.
4796
6d91ce9a
CB
47972019-11-26 Christian Biesinger <cbiesinger@google.com>
4798
4799 * debug.c (debug_set_output): Call safe_strerror instead of
4800 strerror.
4801 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4802 (linux_kill_one_lwp): Likewise.
4803 (linux_detach_one_lwp): Likewise.
4804 (linux_wait_for_event_filtered): Likewise.
4805 (store_register): Likewise.
4806 * lynx-low.c (lynx_attach): Likewise.
4807 * mem-break.c (insert_memory_breakpoint): Likewise.
4808 (remove_memory_breakpoint): Likewise.
4809 (delete_fast_tracepoint_jump): Likewise.
4810 (set_fast_tracepoint_jump): Likewise.
4811 (uninsert_fast_tracepoint_jumps_at): Likewise.
4812 (reinsert_fast_tracepoint_jumps_at): Likewise.
4813 * nto-low.c (nto_xfer_memory): Likewise.
4814 (nto_resume): Likewise.
4815
6cdd651f
LM
48162019-11-20 Luis Machado <luis.machado@linaro.org>
4817
4818 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4819 instead of register count.
4820 * tdesc.c (tdesc_contains_feature): New function.
4821 * tdesc.h (tdesc_contains_feature): New prototype.
4822
cd850b40
CB
48232019-11-15 Christian Biesinger <cbiesinger@google.com>
4824
4825 * Makefile.in: Add safe-strerror.c.
4826 * configure: Regenerate.
4827 * configure.ac: Don't source common.host.
4828
5abebf3c
CB
48292019-11-15 Christian Biesinger <cbiesinger@google.com>
4830
4831 * config.in: Regenerate.
4832 * configure: Regenerate.
4833
e06f3d6e
AB
48342019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4835
4836 * ax.c (ax_printf): Handle size_t_arg.
4837
ca3a04f6
CB
48382019-11-06 Christian Biesinger <cbiesinger@google.com>
4839
4840 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4841 * mi/mi-main.c (output_cores): Likewise.
4842 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4843 (linux_xfer_osdata_modules): Likewise.
4844 * remote.c (register_remote_support_xml): Likewise.
4845 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4846 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4847
e48f6033
CB
48482019-11-01 Christian Biesinger <cbiesinger@google.com>
4849
4850 * configure: Regenerate.
4851 * configure.ac: Remove check for strerror_r.
4852
e7e97a2e
CB
48532019-10-31 Christian Biesinger <cbiesinger@google.com>
4854
4855 * config.in: Regenerate.
4856 * configure: Regenerate.
4857 * configure.ac: Also check for strerror_r.
4858
75cafaa6
CB
48592019-10-31 Christian Biesinger <cbiesinger@google.com>
4860
4861 * ax.h (debug_agent): Remove duplicate declaration.
4862
30baf67b
TV
48632019-10-26 Tom de Vries <tdevries@suse.de>
4864
4865 * linux-aarch64-low.c: Fix typos in comments.
4866 * linux-arm-low.c: Same.
4867 * linux-low.c: Same.
4868 * linux-ppc-low.c: Same.
4869 * proc-service.c: Same.
4870 * regcache.h: Same.
4871 * server.c: Same.
4872 * tracepoint.c: Same.
4873 * win32-low.c: Same.
4874
52c64cf7
TT
48752019-10-25 Tom Tromey <tromey@adacore.com>
4876
4877 * utils.c (xstrdup): Remove.
4878
c12d372d
TT
48792019-10-23 Tom Tromey <tom@tromey.com>
4880
4881 * configure, config.in: Rebuild.
4882
4d0b984b
TT
48832019-10-23 Tom Tromey <tom@tromey.com>
4884
4885 * configure: Rebuild.
4886 * acinclude.m4: Use m4_include, not sinclude.
4887
c5adaa19
TT
48882019-10-17 Tom Tromey <tromey@adacore.com>
4889
4890 * configure: Rebuild.
4891 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4892 in AC_CONFIG_FILES invocation.
4893 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4894 invocation.
4895
fec4e896
CB
48962019-10-16 Christian Biesinger <cbiesinger@google.com>
4897
4898 * server.c: Include xml-builtin.h.
4899 (get_xml_features): Don't declare xml_builtins here.
4900
00975ff6
AB
49012019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4902
4903 * Makefile.in: Remove references to vec-ipa.o.
4904
0dc32745
AB
49052019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4906
4907 * Makefile.in: Remove references to vec.c.
4908
3e6ec53a
CB
49092019-10-02 Christian Biesinger <cbiesinger@google.com>
4910
4911 * server.c (server_waiting): Change to bool.
4912 (extended_protocol): Likewise.
4913 (response_needed): Likewise.
4914 (exit_requested): Likewise.
4915 (run_once): Likewise.
4916 (report_no_resumed): Likewise.
4917 (non_stop): Likewise.
4918 (disable_packet_vCont): Likewise.
4919 (disable_packet_Tthread): Likewise.
4920 (disable_packet_qC): Likewise.
4921 (disable_packet_qfThreadInfo): Likewise.
4922 (handle_general_set): Update.
4923 (handle_detach): Update.
4924 (handle_monitor_command): Update.
4925 (handle_query): Update.
4926 (captured_main): Update.
4927 (process_serial_event): Update.
4928 * server.h (server_waiting): Change to bool.
4929 (disable_packet_vCont): Likewise.
4930 (disable_packet_Tthread): Likewise.
4931 (disable_packet_qC): Likewise.
4932 (disable_packet_qfThreadInfo): Likewise.
4933 (run_once): Likewise.
4934 (non_stop): Likewise.
4935 * target.c (target_stop_and_wait): Update.
4936
80fd2826
TT
49372019-10-02 Tom Tromey <tromey@adacore.com>
4938
4939 * Makefile.in (SFILES): Add common-inferior.c.
4940 (OBS): Add common-inferior.o.
4941 * server.c (startup_with_shell): Don't define.
4942
46f29a9a
AB
49432019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4944
4945 * linux-low.c (linux_low_read_btrace): Update for change to
4946 std::vector.
4947
f9d949fb
CB
49482019-09-20 Christian Biesinger <cbiesinger@google.com>
4949
4950 * debug.c (debug_threads): Remove comment in favor of the header.
4951 * debug.h (using_threads): Add declaration.
4952 (debug_threads): Add comment.
4953 * linux-aarch64-low.c: Include debug.h and remove declaration of
4954 debug_threads.
4955 * nto-low.c: Likewise.
4956 * remote-utils.c: Likewise.
4957 * thread-db.c: Likewise.
4958
abf516c6
UW
49592019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4960
4961 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4962 and powerpc-cell64l-ipa.o.
4963 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4964 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4965 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4966 (spu*-*-*): Remove.
4967
4968 * spu-low.c: Remove file.
4969
4970 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4971 (parse_spufs_run): Remove.
4972 (ppc_get_pc): Remove Cell/B.E. support.
4973 (ppc_set_pc): Likewise.
4974 (ppc_breakpoint_at): Likewise.
4975 (ppc_arch_setup): Likewise.
4976 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4977 tdesc_powerpc_cell32l.
4978 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4979 or init_registers_powerpc_cell32l.
4980 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4981 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4982 or init_registers_powerpc_cell32l.
4983 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4984 (init_registers_powerpc_cell32l): Remove prototype.
4985 (init_registers_powerpc_cell64l): Likewise.
4986
4987 * target.h (struct target_ops): Remove qxfer_spu member.
4988 * server.c (handle_qxfer_spu): Remove.
4989 (qxfer_packets): Remove entry for "spu".
4990 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4991 * linux-low.c (SPUFS_MAGIC): Remove.
4992 (spu_enumerate_spu_ids): Remove.
4993 (linux_qxfer_spu): Remove.
4994 (linux_target_ops): Remove qxfer_spu member.
4995 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4996 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4997 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4998
2d41fa11
SDJ
49992019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5000
5001 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5002 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5003 * config.in: Regenerate.
5004 * configure: Regenerate.
5005
d59b55f0
TT
50062019-08-15 Tom Tromey <tromey@adacore.com>
5007
5008 * target.c (target_write_memory): Use gdb::byte_vector.
5009
4196ab2a
TT
50102019-08-15 Tom Tromey <tromey@adacore.com>
5011
5012 * tracepoint.c (write_inferior_data_pointer)
5013 (write_inferior_integer, write_inferior_int8)
5014 (write_inferior_uinteger, m_tracepoint_action_download)
5015 (r_tracepoint_action_download, x_tracepoint_action_download)
5016 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5017 (download_agent_expr, download_tracepoint_1)
5018 (download_trace_state_variables, upload_fast_traceframes): Update.
5019 * server.c (gdb_write_memory): Update.
5020 * remote-utils.c (relocate_instruction): Update.
5021 * proc-service.c (ps_pdwrite): Update.
5022 * mem-break.c (remove_memory_breakpoint)
5023 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5024 (uninsert_fast_tracepoint_jumps_at)
5025 (reinsert_fast_tracepoint_jumps_at): Update.
5026 * linux-x86-low.c (append_insns)
5027 (i386_install_fast_tracepoint_jump_pad)
5028 (amd64_write_goto_address, i386_write_goto_address): Update.
5029 * linux-s390-low.c (append_insns, s390_write_goto_address):
5030 Update.
5031 * linux-ppc-low.c (ppc_relocate_instruction)
5032 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5033 (ppc_write_goto_address): Update.
5034 * linux-aarch64-low.c (append_insns): Update.
5035 * target.h (struct target_ops): Update.
5036 (write_inferior_memory): Don't declare.
5037 * target.c (target_write_memory): Rename from
5038 write_inferior_memory. Remove old target_write_memory.
5039
c6778d00
TT
50402019-08-15 Tom Tromey <tromey@adacore.com>
5041
5042 * target.c (write_inferior_memory): Use std::vector.
5043
404f2902
FCE
50442019-08-06 Frank Ch. Eigler <fche@redhat.com>
5045
5046 PR build/24886
5047 * configure.ac: Drop enable-libmcheck support.
5048 * configure, config.in: Rebuild.
5049 * acinclude.m4: Don't include it.
5050
4c5aa8e0
AH
50512019-07-19 Alan Hayward <alan.hayward@arm.com>
5052
5053 * configure.srv: Remove Arm xml files.
5054
7cc17433
AH
50552019-07-19 Alan Hayward <alan.hayward@arm.com>
5056
5057 * configure.srv: Add new files. Remove xml generated files.
5058 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5059 registers.
5060 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5061 * linux-aarch32-tdesc.c: New file.
5062 * linux-aarch32-tdesc.h: New file.
5063 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5064 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5065 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5066 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5067 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5068 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5069 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5070 (arm_read_description): Call arm_linux_read_description.
5071 (initialize_low_arch): Don't init registers.
5072 * linux-arm-tdesc.c: New file.
5073 * linux-arm-tdesc.h: New file.
5074
166a82be
AH
50752019-07-10 Alan Hayward <alan.hayward@arm.com>
5076
5077 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5078 Move counter inside for.
5079 (arm_read_description): Check ptrace earlier.
5080 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5081
268a13a5
TT
50822019-07-09 Tom Tromey <tom@tromey.com>
5083
5084 * configure: Rebuild.
5085 * configure.ac: Change common to gdbsupport.
5086 * acinclude.m4: Change common to gdbsupport.
5087 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5088 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5089 common to gdbsupport.
5090 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5091 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5092 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5093 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5094 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5095 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5096 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5097 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5098 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5099 common to gdbsupport.
5100
350fab54
AH
51012019-07-04 Alan Hayward <alan.hayward@arm.com>
5102
5103 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5104 defines.
5105 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5106
2b40fda7
AH
51072019-07-04 Alan Hayward <alan.hayward@arm.com>
5108
5109 * configure.srv: Remove legacy xml.
5110 * linux-aarch64-low.c (initialize_low_arch): Remove
5111 initialize_low_tdesc call.
5112 * linux-aarch64-tdesc-selftest.c: Remove file.
5113 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5114 * linux-x86-low.c (initialize_low_arch): Remove
5115 initialize_low_tdesc call.
5116 * linux-x86-tdesc-selftest.c: Remove file.
5117 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5118
7d10623d
TV
51192019-06-20 Tom de Vries <tdevries@suse.de>
5120
5121 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5122 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5123
8d6a48df
TV
51242019-06-19 Tom de Vries <tdevries@suse.de>
5125
5126 * debug.h (debug_write): Change return type to ssize_t.
5127 * debug.c (debug_write): Same.
5128
73cc7272
TT
51292019-06-14 Tom Tromey <tom@tromey.com>
5130
5131 * configure.ac: Use new path to gnulib.
5132 * configure: Rebuild.
5133 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5134 to gnulib.
5135
08f10e02
TT
51362019-06-11 Tom Tromey <tom@tromey.com>
5137
5138 * Makefile.in (SFILES): Add alloc.c.
5139 (OBS): Add alloc.o.
5140 (IPA_OBJS): Add alloc-ipa.o.
5141 (alloc-ipa.o): New target.
5142 (%.o: ../%.c): New pattern rule.
5143
422186a9
TT
51442019-06-10 Tom Tromey <tromey@adacore.com>
5145
5146 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5147 end warning with a newline.
5148 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5149 newline.
5150 * thread-db.c (attach_thread): Don't end warning with a newline.
5151 (thread_db_notice_clone): Likewise.
5152 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5153 newline.
5154 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5155 end warning with a newline.
5156
b02f78f9
PA
51572019-06-04 Pedro Alves <palves@redhat.com>
5158
5159 * server.c (captured_main): Use make_unique_xstrdup.
5160
88ed7edb
TT
51612019-06-02 Tom Tromey <tom@tromey.com>
5162
5163 * gdbreplay.c (fromhex): Remove.
5164 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5165
33a6bc35
TT
51662019-05-29 Tom Tromey <tromey@adacore.com>
5167
5168 * configure: Rebuild.
5169
e90a813d
KB
51702019-05-06 Kevin Buettner <kevinb@redhat.com>
5171
5172 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5173 sign extension code on 32-bit builds.
5174
353ea2d1
EZ
51752019-05-03 Eli Zaretskii <eliz@gnu.org>
5176
5177 * remote-utils.c:
5178 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5179
b494cdff
TT
51802019-04-19 Tom Tromey <tom@tromey.com>
5181
5182 * server.c (struct vstop_notif): Derive from notif_event.
5183 <base>: Remove.
5184 (queue_stop_reply): Update.
5185 (remove_all_on_match_ptid): Change type. Rewrite.
5186 (discard_queued_stop_replies): Rewrite.
5187 (in_queued_stop_replies_ptid): Change type.
5188 (in_queued_stop_replies): Rewrite.
5189 (notif_stop): Update.
5190 (queue_stop_reply_callback): Update.
5191 (captured_main): Don't call initialize_notif.
5192 (push_stop_notification): Update.
5193 * notif.c (notif_write_event, handle_notif_ack)
5194 (notif_event_enque, notif_push): Update.
5195 (notif_event_xfree, initialize_notif): Remove.
5196 * notif.h (struct notif_event): Include <list>, not
5197 "common/queue.h".
5198 (struct notif_server) <queue>: Now a std::list.
5199 (notif_event_p): Remove typedef.
5200 (initialize_notif): Don't declare.
5201 (struct notif_event): Add virtual destructor.
5202
a7e559cc
AH
52032019-04-17 Alan Hayward <alan.hayward@arm.com>
5204
5205 * ax.c (ax_vdebug): Call debug_printf.
5206 * debug.c (debug_write): New function.
5207 * debug.h (debug_write): New declaration.
5208 * linux-low.c (sigchld_handler): Call debug_write.
5209
aeb2e706
AH
52102019-04-17 Alan Hayward <alan.hayward@arm.com>
5211
5212 * debug.c (debug_set_output): New function.
5213 (debug_vprintf): Send output to debug_file.
5214 (debug_flush): Likewise.
5215 * debug.h (debug_set_output): New declaration.
5216 * server.c (handle_monitor_command): Add debug-file option.
5217 (captured_main): Likewise.
5218
c1bc0935
AH
52192019-04-17 Alan Hayward <alan.hayward@arm.com>
5220
5221 * debug.c (remote_debug): Add definition.
5222 * debug.h (remote_debug): Add declaration.
5223 * hostio.c (remote_debug): Remove declaration.
5224 * remote-utils.c (struct ui_file): Likewise.
5225 (remote_debug): Likewise.
5226 * remote-utils.h (remote_debug): Likewise,
5227 * server.c (remote_debug): Remove definition.
5228
3f52fdbc
KB
52292019-04-10 Kevin Buettner <kevinb@redhat.com>
5230
5231 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5232 when using a 64-bit gdbserver.
5233
b0319eaa
TT
52342019-04-09 Tom Tromey <tromey@adacore.com>
5235
5236 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5237
eedc3f4f
TT
52382019-04-08 Tom Tromey <tom@tromey.com>
5239
5240 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5241 throw.
5242 (linux_resume_one_lwp): Likewise.
5243
230d2906
TT
52442019-04-08 Tom Tromey <tom@tromey.com>
5245
5246 * gdbreplay.c: Update.
5247 * linux-low.c: Update.
5248 * server.c: Update.
5249
a70b8144
TT
52502019-04-08 Tom Tromey <tom@tromey.com>
5251
5252 * server.c: Use C++ exception handling.
5253 * linux-low.c: Use C++ exception handling.
5254 * gdbreplay.c: Use C++ exception handling.
5255
3d6e9d23
TT
52562019-04-08 Tom Tromey <tom@tromey.com>
5257
5258 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5259 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5260 (captured_main, main): Update.
5261 * gdbreplay.c (main): Update.
5262
0570503d
PFC
52632019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5264
5265 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5266 value in argument pointer, return 1 if the entry is found and 0
5267 otherwise. Move comment.
5268 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5269 * linux-low.h (linux_get_auxv): Declare.
5270 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5271
227a9e65
TT
52722019-04-05 Tom Tromey <tromey@adacore.com>
5273
5274 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5275 variables.
5276
69f4c9cc
AH
52772019-03-28 Alan Hayward <alan.hayward@arm.com>
5278
5279 * linux-low.c (AT_HWCAP2): Add define if not already included.
5280
974c89e0
AH
52812019-03-26 Alan Hayward <alan.hayward@arm.com>
5282
5283 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5284 (aarch64_arch_setup): Call linux_get_hwcap.
5285 * linux-arm-low.c (arm_get_hwcap): Remove function.
5286 (arm_read_description): Call linux_get_hwcap.
5287 * linux-low.c (linux_get_auxv): New function.
5288 (linux_get_hwcap): Likewise.
5289 (linux_get_hwcap2): Likewise.
5290 * linux-low.h (linux_get_hwcap): New declaration.
5291 (linux_get_hwcap2): Likewise.
5292 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5293 (ppc_arch_setup): Call linux_get_hwcap.
5294 * linux-s390-low.c (s390_get_hwcap): Remove function.
5295 (s390_arch_setup): Call linux_get_hwcap.
5296
1ef53e6b
AH
52972019-03-22 Alan Hayward <alan.hayward@arm.com>
5298 Jiong Wang <jiong.wang@arm.com>
5299
5300 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5301 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5302 to fail.
5303 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5304
ee4fbcfa
AH
53052019-03-22 Alan Hayward <alan.hayward@arm.com>
5306 Jiong Wang <jiong.wang@arm.com>
5307
5308 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5309 (aarch64_get_hwcap): New function.
5310 (aarch64_arch_setup): Read APIA hwcap.
5311
6dc0ebde
AH
53122019-03-22 Alan Hayward <alan.hayward@arm.com>
5313 Jiong Wang <jiong.wang@arm.com>
5314
5315 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5316 (initialize_low_tracepoint): Likewise.
5317 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5318 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5319 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5320 (aarch64_linux_read_description): Likewise.
5321 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5322
1163a4b7
JB
53232019-03-12 John Baldwin <jhb@FreeBSD.org>
5324
5325 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5326 i386_create_target_description for 'segments' parameter.
5327 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5328 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5329 * win32-i386-low.c (i386_arch_setup): Likewise.
5330
d3a70e03
TT
53312019-03-12 Tom Tromey <tromey@adacore.com>
5332
5333 * linux-low.c (iterate_over_lwps): Update.
5334
37991b4f
TT
53352019-03-06 Tom Tromey <tom@tromey.com>
5336
5337 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5338 (captured_main): Use SCOPE_EXIT.
5339
45950eb6
SDJ
53402019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5341
5342 * configure.srv: Use '$enable_unittest' instead of '$development'
5343 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5344 case.
5345
43ac54fc
TT
53462019-02-27 Tom Tromey <tromey@adacore.com>
5347
5348 * gdbreplay.c (logchar): Handle \r\n.
5349
df0da8a2
AH
53502019-02-07 Alan Hayward <alan.hayward@arm.com>
5351
5352 * linux-low.c (linux_attach): Add process before lwp.
5353 * server.c (attach_inferior): Check if already attached.
5354
1a5c2598
TT
53552019-02-07 Tom Tromey <tom@tromey.com>
5356
5357 * x86-tdesc.h: Rename include guard.
5358 * x86-low.h: Add include guard.
5359 * wincecompat.h: Rename include guard.
5360 * win32-low.h: Add include guard.
5361 * utils.h: Rename include guard.
5362 * tracepoint.h: Rename include guard.
5363 * tdesc.h: Rename include guard.
5364 * target.h: Rename include guard.
5365 * server.h: Rename include guard.
5366 * remote-utils.h: Rename include guard.
5367 * regcache.h: Rename include guard.
5368 * nto-low.h: Rename include guard.
5369 * notif.h: Add include guard.
5370 * mem-break.h: Rename include guard.
5371 * lynx-low.h: Add include guard.
5372 * linux-x86-tdesc.h: Add include guard.
5373 * linux-s390-tdesc.h: Add include guard.
5374 * linux-ppc-tdesc-init.h: Add include guard.
5375 * linux-low.h: Add include guard.
5376 * linux-aarch64-tdesc.h: Add include guard.
5377 * linux-aarch32-low.h: Add include guard.
5378 * inferiors.h: Rename include guard.
5379 * i387-fp.h: Rename include guard.
5380 * hostio.h: Rename include guard.
5381 * gdbthread.h: Rename include guard.
5382 * gdb_proc_service.h: Rename include guard.
5383 * event-loop.h: Rename include guard.
5384 * dll.h: Rename include guard.
5385 * debug.h: Rename include guard.
5386 * ax.h: Rename include guard.
5387
956cc47c
SN
53882018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5389
5390 PR gdb/23985
5391 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5392 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5393
a0707f3c
TT
53942019-01-25 Tom Tromey <tom@tromey.com>
5395
5396 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5397
0747795c
TT
53982019-01-25 Tom Tromey <tom@tromey.com>
5399
5400 * win32-low.c: Fix common/ includes.
5401 * win32-i386-low.c: Fix common/ includes.
5402 * tracepoint.c: Fix common/ includes.
5403 * thread-db.c: Fix common/ includes.
5404 * target.h: Fix common/ includes.
5405 * symbol.c: Fix common/ includes.
5406 * spu-low.c: Fix common/ includes.
5407 * server.h: Fix common/ includes.
5408 * server.c: Fix common/ includes.
5409 * remote-utils.c: Fix common/ includes.
5410 * regcache.h: Fix common/ includes.
5411 * regcache.c: Fix common/ includes.
5412 * nto-x86-low.c: Fix common/ includes.
5413 * notif.h: Fix common/ includes.
5414 * mem-break.h: Fix common/ includes.
5415 * lynx-low.c: Fix common/ includes.
5416 * lynx-i386-low.c: Fix common/ includes.
5417 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5418 * linux-x86-low.c: Fix common/ includes.
5419 * linux-low.c: Fix common/ includes.
5420 * inferiors.h: Fix common/ includes.
5421 * i387-fp.c: Fix common/ includes.
5422 * hostio.c: Fix common/ includes.
5423 * hostio-errno.c: Fix common/ includes.
5424 * gdbthread.h: Fix common/ includes.
5425 * gdbreplay.c: Fix common/ includes.
5426 * fork-child.c: Fix common/ includes.
5427 * event-loop.c: Fix common/ includes.
5428 * ax.c:
5429 (enum gdb_agent_op): Fix common/ includes.
5430
be6d4f74
TT
54312019-01-21 Tom Tromey <tom@tromey.com>
5432
5433 * tracepoint.c: Fix includes.
5434 * remote-utils.c: Fix includes.
5435 * linux-x86-low.c: Fix includes.
5436
66d91b39
JB
54372019-01-01 Joel Brobecker <brobecker@adacore.com>
5438
5439 * gdbreplay.c (gdbreplay_version): Update copyright year in
5440 version message.
5441 * server.c (gdbserver_version): Likewise.
5442
754e3168
AH
54432018-12-05 Alan Hayward <alan.hayward@arm.com>
5444
5445 * linux-low.c (add_lwp): Switch ordering.
5446
d105de22
TT
54472018-11-29 Tom Tromey <tom@tromey.com>
5448
5449 * win32-low.c (win32_join): Take pid, not process.
5450 * target.h (struct target_ops) <join>: Change argument type.
5451 (join_inferior): Change argument name.
5452 * spu-low.c (spu_join): Take pid, not process.
5453 * server.c (handle_detach): Preserve pid before destroying
5454 process.
5455 * lynx-low.c (lynx_join): Take pid, not process.
5456 * linux-low.c (linux_join): Take pid, not process.
5457
50138245
AH
54582018-11-23 Alan Hayward <alan.hayward@arm.com>
5459
5460 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5461 (aarch64_cannot_fetch_register): Likewise.
5462 (struct linux_target_ops): Update references.
5463
64f57f3d
PFC
54642018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5465
5466 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5467
8d619c01
EBM
54682018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5469
5470 * configure.srv (ipa_ppc_linux_regobj): Add
5471 powerpc-isa207-htm-vsx32l-ipa.o and
5472 powerpc-isa207-htm-vsx64l-ipa.o.
5473 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5474 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5475 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5476 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5477 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5478 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5479 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5480 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5481 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5482 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5483 (init_registers_powerpc_isa207_htm_vsx32l)
5484 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5485 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5486 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5487 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5488 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5489 (ppc_store_tm_ctarregset): New functions.
5490 (ppc_regsets): Add entries for HTM regsets.
5491 (ppc_arch_setup): Set htm in features struct when needed. Set
5492 sizes for the HTM regsets.
5493 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5494 (initialize_low_arch): Call
5495 init_registers_powerpc_isa207_htm_vsx32l and
5496 init_registers_powerpc_isa207_htm_vsx64l.
5497 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5498 PPC_TDESC_ISA207_HTM_VSX.
5499 (initialize_low_tracepoint): Call
5500 init_registers_powerpc_isa207_htm_vsx32l and
5501 init_registers_powerpc_isa207_htm_vsx64l.
5502
232bfb86
EBM
55032018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5504
5505 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5506 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5507 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5508 (ppc_store_pmuregset): New functions.
5509 (ppc_regsets): Add entries for ebb and pmu regsets.
5510 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5511 pmu regsets are available. Set sizes for these regsets.
5512
f2cf6173
EBM
55132018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5514
5515 * configure.srv (ipa_ppc_linux_regobj): Add
5516 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5517 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5518 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5519 rs6000/powerpc-isa207-vsx32l.xml, and
5520 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5521 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5522 <PPC_TDESC_ISA207_VSX>: New enum value.
5523 (init_registers_powerpc_isa207_vsx32l): Declare.
5524 (init_registers_powerpc_isa207_vsx64l): Declare.
5525 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5526 (ppc_store_tarregset): New function.
5527 (ppc_regsets): Add entry for the TAR regset.
5528 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5529 size for the TAR regsets.
5530 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5531 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5532 and init_registers_powerpc_isa207_vsx64l.
5533 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5534 (initialize_low_tracepoint): Call
5535 init_registers_powerpc_isa207_vsx32l and
5536 init_registers_powerpc_isa207_vsx64l.
5537
7ca18ed6
EBM
55382018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5539 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5540
5541 * configure.srv (ipa_ppc_linux_regobj): Add
5542 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5543 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5544 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5545 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5546 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5547 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5548 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5549 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5550 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5551 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5552 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5553 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5554 (ppc_hwcap): Add comment.
5555 (ppc_hwcap2): New global.
5556 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5557 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5558 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5559 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5560 when needed. Set sizes for the the DSCR and PPR regsets.
5561 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5562 (initialize_low_arch): Call
5563 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5564 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5565 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5566 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5567 (initialize_low_tracepoint): Call
5568 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5569 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5570
5c849b22
PFC
55712018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5572
5573 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5574
8ecfd7bd
SDJ
55752018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5576 Simon Marchi <simark@simark.ca>
5577
5578 * acinclude.m4: Include "../selftest.m4".
5579 * configure: Regenerate.
5580 * configure.ac: Use "GDB_AC_SELFTEST".
5581 * configure.srv: Use "$enable_unittests" instead of
5582 "$development" when checking whether unit tests have been
5583 enabled.
5584 * server.c (captured_main): Update message informing that
5585 selftests have been disabled.
5586
96643e35
TT
55872018-10-04 Tom Tromey <tom@tromey.com>
5588
5589 * configure: Rebuild.
5590
da4ae14a
TT
55912018-10-04 Tom Tromey <tom@tromey.com>
5592
5593 * server.c (handle_status): Rename inner "thread".
5594 (process_serial_event): Declare "res" in 'm' case.
5595 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5596 (iterate_over_lwps): Rename inner "thread".
5597 (linux_qxfer_libraries_svr4): Rename inner "len".
5598 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5599
7c619dbd
GB
56002018-10-01 Gary Benson <gbenson@redhat.com>
5601
5602 * gdb_proc_service.h: Moved common code to
5603 common/gdb_proc_service.h.
5604
3795e814
GB
56052018-10-01 Gary Benson <gbenson@redhat.com>
5606
5607 * gdb_proc_service.h: Synchronize comments and whitespace with
5608 GDB's version of this file.
5609
49b036f1
TT
56102018-09-25 Tom Tromey <tom@tromey.com>
5611
5612 * configure: Rebuild.
5613 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5614
8ff03f0b
SM
56152018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5616
5617 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5618 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5619 ($(IPA_LIB)): Sort IPA_OBJS.
5620
a1cd91dc
SM
56212018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5622
5623 * Makefile.in: Remove references to $(ADD_DEPS).
5624
752312ba
TT
56252018-09-16 Tom Tromey <tom@tromey.com>
5626
5627 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5628 variables.
5629 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5630 variables.
5631
f1628857
TT
56322018-09-05 Tom Tromey <tom@tromey.com>
5633
5634 * configure: Rebuild.
5635
ad202fcc
SM
56362018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5637
5638 PR build/23399
5639 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5640
d3d8724a
TT
56412018-08-27 Tom Tromey <tom@tromey.com>
5642
5643 PR build/23087:
5644 * configure: Rebuild.
5645
b4f183d2
TT
56462018-08-27 Tom Tromey <tom@tromey.com>
5647
5648 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5649 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5650 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5651 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5652 (s390x_emit_stack_adjust): Add casts to unsigned char.
5653
4e2aa472
SM
56542018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5655
5656 PR gdb/23374
5657 PR gdb/23375
5658 * server.h (struct client_state) <disable_randomization>:
5659 Initialize to 1.
5660
cf4088a9
SM
56612018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5662
5663 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5664 variable.
5665 (mips_supply_ptrace_register): Likewise.
5666
a0de763e
TT
56672018-07-22 Tom Tromey <tom@tromey.com>
5668
5669 * configure: Rebuild.
5670
b0a7723d
TT
56712018-07-22 Tom Tromey <tom@tromey.com>
5672
5673 * win32-low.c (win32_create_inferior): Remove unused variables.
5674 * gdbreplay.c (remote_open): Remove unused variable.
5675 * remote-utils.c (remote_prepare): Remove unused variable.
5676 * x86-tdesc.h (X86_TDESC_H): Define.
5677 (amd64_expedite_regs): Define conditionally.
5678 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5679 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5680 * remote-utils.c (readchar): Remove unused variable.
5681
a780ef4f
PA
56822018-07-13 Pedro Alves <palves@redhat.com>
5683
5684 * linux-low.c (linux_kill): Change parameter to process_info
5685 pointer instead of pid. Adjust.
5686 * lynx-low.c (lynx_kill): Likewise.
5687 * nto-low.c (nto_kill): Likewise.
5688 * spu-low.c (spu_kill): Likewise.
5689 * win32-low.c (win32_kill): Likewise.
5690 * server.c (handle_v_kill, kill_inferior_callback)
5691 (detach_or_kill_for_exit): Adjust.
5692 * target.c (kill_inferior): Change parameter to process_info
5693 pointer instead of pid. Adjust.
5694 * target.h (struct target_ops) <kill>: Change parameter to
5695 process_info pointer instead of pid. Adjust all implementations
5696 and callers.
5697 (kill_inferior): Likewise.
5698
ef2ddb33
PA
56992018-07-13 Pedro Alves <palves@redhat.com>
5700
5701 * linux-low.c (linux_detach, linux_join): Change parameter to
5702 process_info pointer instead of pid. Adjust.
5703 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5704 * nto-low.c (nto_detach): Likewise.
5705 * spu-low.c (spu_detach, spu_join): Likewise.
5706 * win32-low.c (win32_detach, win32_join): Likewise.
5707 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5708 * target.h (struct target_ops) <detach, join>: Change parameter to
5709 process_info pointer instead of pid. Adjust all implementations
5710 and callers.
5711 (detach_inferior, join_inferior): Rename 'pid' parameter to
5712 'proc'.
5713
c7ab0aef
SDJ
57142018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5715 Jan Kratochvil <jan.kratochvil@redhat.com>
5716 Paul Fertser <fercerpav@gmail.com>
5717 Tsutomu Seki <sekiriki@gmail.com>
5718
5719 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5720 (OBS): Add 'common/netstuff.o'.
5721 (GDBREPLAY_OBS): Likewise.
5722 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5723 (remote_open): Implement support for IPv6
5724 connections.
5725 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5726 and 'wspiapi.h'.
5727 (handle_accept_event): Accept connections from IPv6 sources.
5728 (remote_prepare): Handle IPv6-style hostnames; implement
5729 support for IPv6 connections.
5730 (remote_open): Implement support for printing connections from
5731 IPv6 sources.
5732
31445d10
PA
57332018-07-11 Pedro Alves <palves@redhat.com>
5734
5735 PR gdb/23377
5736 * mem-break.c (any_persistent_commands): Add process_info
5737 parameter and use it instead of relying on the current process.
5738 Change return type to bool.
5739 * mem-break.h (any_persistent_commands): Add process_info
5740 parameter and change return type to bool.
5741 * server.c (handle_detach): Remove require_running_or_return call.
5742 Look up the process_info for the process we're about to detach.
5743 If not found, return back error to GDB. Adjust
5744 any_persistent_commands call to pass down a process pointer.
5745
cb197132
PA
57462018-07-11 Pedro Alves <palves@redhat.com>
5747
5748 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5749 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5750 instead of collect_register_by_name.
5751 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5752 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5753
1b919490
VB
57542018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5755 Pedro Alves <palves@redhat.com>
5756
5757 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5758
d7e15655
TT
57592018-07-03 Tom Tromey <tom@tromey.com>
5760
5761 * linux-low.c: Update.
5762 * lynx-low.c: Update.
5763 * mem-break.c: Update.
5764 * nto-low.c: Update.
5765 * remote-utils.c: Update.
5766 * server.c: Update.
5767 * spu-low.c: Update.
5768 * target.c: Update.
5769 * win32-low.c: Update.
5770
26a57c92
TT
57712018-07-03 Tom Tromey <tom@tromey.com>
5772
5773 * server.c: Update.
5774
0e998d96
TT
57752018-07-03 Tom Tromey <tom@tromey.com>
5776
5777 * linux-low.c: Update.
5778
cc6bcb54
TT
57792018-07-03 Tom Tromey <tom@tromey.com>
5780
5781 * target.c: Update.
5782
e38504b3
TT
57832018-07-03 Tom Tromey <tom@tromey.com>
5784
5785 * linux-low.c: Update.
5786 * linux-mips-low.c: Update.
5787 * lynx-low.c: Update.
5788 * nto-low.c: Update.
5789 * remote-utils.c: Update.
5790 * server.c: Update.
5791 * spu-low.c: Update.
5792 * target.c: Update.
5793 * thread-db.c: Update.
5794
e99b03dc
TT
57952018-07-03 Tom Tromey <tom@tromey.com>
5796
5797 * linux-low.c: Update.
5798 * linux-mips-low.c: Update.
5799 * lynx-low.c: Update.
5800 * mem-break.c: Update.
5801 * nto-low.c: Update.
5802 * remote-utils.c: Update.
5803 * server.c: Update.
5804 * spu-low.c: Update.
5805 * target.c: Update.
5806 * tracepoint.c: Update.
5807
f2907e49
TT
58082018-07-03 Tom Tromey <tom@tromey.com>
5809
5810 * linux-low.c: Update.
5811 * linux-ppc-low.c: Update.
5812 * linux-x86-low.c: Update.
5813 * proc-service.c: Update.
5814 * server.c: Update.
5815 * spu-low.c: Update.
5816 * thread-db.c: Update.
5817 * win32-low.c: Update.
5818
fd79271b
TT
58192018-07-03 Tom Tromey <tom@tromey.com>
5820
5821 * linux-low.c: Update.
5822 * lynx-low.c: Update.
5823 * nto-low.c: Update.
5824 * remote-utils.c: Update.
5825 * spu-low.c: Update.
5826 * thread-db.c: Update.
5827 * win32-low.c: Update.
5828
c0867626
SDJ
58292018-06-29 Joel Brobecker <brobecker@adacore.com>
5830
5831 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5832 parameter in call to 'amd64_create_target_description'.
5833
2512d7ef
JK
58342018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5835
5836 * x86-tdesc.h: Remove executable permission flag.
5837
d0ac1c44
SM
58382018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5839
5840 * configure.ac: Remove AC_PREREQ, add missing quoting.
5841 * configure: Re-generate.
5842 * config.in: Re-generate.
5843 * aclocal.m4: Re-generate.
5844
c4eb05ff
SM
58452018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5846
5847 * tracepoint.h (current_traceframe): Remove declaration.
5848
02895270
AH
58492018-06-18 Alan Hayward <alan.hayward@arm.com>
5850
5851 * linux-aarch64-low.c (is_sve_tdesc): New function.
5852 (aarch64_sve_regs_copy_to_regcache): Likewise.
5853 (aarch64_sve_regs_copy_from_regcache): Likewise.
5854 (aarch64_regs_info): Add SVE checks.
5855 (initialize_low_arch): Initialize SVE.
5856
e9902bfc
AH
58572018-06-18 Alan Hayward <alan.hayward@arm.com>
5858
5859 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5860
fefa175e
AH
58612018-06-11 Alan Hayward <alan.hayward@arm.com>
5862
5863 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5864 (initialize_low_tracepoint): Likewise
5865 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5866 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5867 param.
5868 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5869 checks.
5870 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5871
b91ad3ff
AH
58722018-06-11 Alan Hayward <alan.hayward@arm.com>
5873
5874 * server.h (PBUFSIZ): Increase size
5875
f868386e
AH
58762018-06-11 Alan Hayward <alan.hayward@arm.com>
5877
5878 * regcache.c (regcache::raw_compare): New function.
5879 * regcache.h (regcache::raw_compare): New declaration.
5880
9c861883
AH
58812018-06-11 Alan Hayward <alan.hayward@arm.com>
5882
5883 * regcache.c (new_register_cache): Use new.
5884 (free_register_cache): Use delete.
5885 (register_data): Use const.
5886 (supply_register): Move body inside regcache.
5887 (regcache::raw_supply): New override function.
5888 (collect_register): Move body inside regcache.
5889 (regcache::raw_collect): New override function.
5890 (regcache::get_register_status): New override function.
5891 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5892
40591844
TT
58932018-06-09 Tom Tromey <tom@tromey.com>
5894
5895 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5896 declare queue.
5897 (event_queue): Use std::queue.
5898 (gdb_event_xfree): Remove.
5899 (initialize_event_loop, process_event, wait_for_event): Update.
5900
6341380d
SC
59012018-06-08 Stan Cox <scox@redhat.com>
5902
5903 * win32-low.c (win32_create_inferior): last_ptid and last_status
5904 moved to client_state.
5905
03349c93
PA
59062018-06-08 Pedro Alves <palves@redhat.com>
5907
5908 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5909 common/common-exceptions.o, common/common-utils.o,
5910 common/errors.o, common/print-utils.o and utils.o.
5911 * gdbreplay.c: Include "common-defs.h" instead of the two
5912 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5913 string.h or alloca.h.
5914 (perror_with_name): Delete.
5915 (remote_open): Use xstrdup instead of strdup.
5916 (main): Rename to ...
5917 (captured_main): ... this.
5918 (main): New.
5919
8dcc53b3
TT
59202018-06-08 Tom Tromey <tom@tromey.com>
5921
5922 * linux-low.c (linux_low_read_btrace): Update.
5923
c12a5089
SC
59242018-06-04 Stan Cox <scox@redhat.com>
5925
5926 * server.h (struct client_state): New.
5927 * server.c (cont_thread, general_thread, multi_process)
5928 (report_fork_events, report_vfork_events, report_exec_events)
5929 (report_thread_events, swbreak_feature, hwbreak_feature)
5930 (vCont_supported, disable_randomization, pass_signals)
5931 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5932 Moved to client_state.
5933 * remote-utils.c (remote_debug, noack_mode)
5934 (transport_is_reliable): Moved to client_state.
5935 * tracepoint.c (current_traceframe): Moved to client_state.
5936
5937 Update all callers.
5938 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5939 linux-low.c, remote-utils.h, target.c: Use client_state.
5940
122394f1
AH
59412018-05-31 Alan Hayward <alan.hayward@arm.com>
5942
5943 * configure.srv: Add new c/h file.
5944
95228a0d
AH
59452018-05-31 Alan Hayward <alan.hayward@arm.com>
5946
5947 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5948 null VQ.
5949
d8dab6c3
MR
59502018-05-25 Maciej W. Rozycki <macro@mips.com>
5951
5952 * gdb.arch/mips-fpregset-core.exp: New test.
5953 * gdb.arch/mips-fpregset-core.c: New test source.
5954
81e25b7c
EK
59552018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5956
5957 PR server/23198
5958 * hostio.c (require_int): Do not report overflow for integers
5959 between 0xfffffff and 0x7fffffff.
5960
7e947ad3
MR
59612018-05-22 Maciej W. Rozycki <macro@mips.com>
5962
5963 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5964 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5965 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5966 functions.
5967 (the_low_target): Wire them.
5968
1d75a658
PFC
59692018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5970
5971 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5972 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5973 mode. Call collect_register_by_name with vscr using
5974 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5975 (ppc_store_vrregset): Add and set vscr_offset variable as in
5976 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5977 vscr_offset.
5978
d078308a
PFC
59792018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5980
5981 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5982 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5983 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5984
7273b5fc
PFC
59852018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5986
5987 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5988 (ppc_store_vsxregset): Likewise.
5989 (ppc_fill_vrregset): Likewise.
5990 (ppc_store_vrregset): Likewise.
5991 (ppc_fill_evrregset): Likewise.
5992 (ppc_store_evrregset): Likewise.
5993 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5994 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5995 needed.
5996
2e077f5e
PFC
59972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5998
5999 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6000 wordsize of the inferior. Call ppc_linux_target_wordsize.
6001
bd64614e
PFC
60022018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6003
6004 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6005 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6006 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6007 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6008 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6009 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6010 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6011 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6012 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6013 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6014 (tdesc_powerpc_e500l): Remove.
6015 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6016 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6017 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6018 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6019 linux-ppc-tdesc.h.
6020 (ppc_arch_setup): Remove target description matching code. Fill a
6021 ppc_linux_features struct and call ppc_linux_match_description
6022 with it.
6023
75d74cca
MR
60242018-05-22 Maciej W. Rozycki <macro@mips.com>
6025
6026 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6027 width of the requested register exceeds the width of the
6028 `ptrace' data type.
6029 (mips_cannot_store_register): Likewise.
6030
e4439e43
MR
60312018-05-21 Maciej W. Rozycki <macro@mips.com>
6032
6033 * linux-mips-low.c (mips_fetch_register): New function. Update
6034 preceding comment.
6035 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6036 (the_low_target): Wire `mips_fetch_register'.
6037
55271bf9
JB
60382018-05-10 Joel Brobecker <brobecker@adacore.com>
6039
6040 * lynx-i386-low.c (LYNXOS_178): New macro.
6041 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6042 the layout on LynxOS-178.
6043 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6044 handle floating point registers that are not supported by
6045 LynxOS-178.
6046
1a34f210
TT
60472018-05-10 Tom Tromey <tom@tromey.com>
6048
6049 * configure: Rebuild.
6050
190852c8
JB
60512018-05-10 Joel Brobecker <brobecker@adacore.com>
6052
6053 PR server/23158:
6054 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6055 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6056 Use it to set the expedite_regs field in the given tdesc.
6057 * x86-tdesc.h: New file.
6058 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6059 Adjust following the addition of the new expedite_regs parameter
6060 to init_target_desc.
6061 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6062 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6063 (i386_linux_read_description, amd64_linux_read_description):
6064 Adjust following the addition of the new expedite_regs parameter
6065 to init_target_desc.
6066 * lynx-i386-low.c: #include "x86-tdesc.h".
6067 (lynx_i386_arch_setup): Adjust following the addition of the new
6068 expedite_regs parameter to init_target_desc.
6069 * nto-x86-low.c: #include "x86-tdesc.h".
6070 (nto_x86_arch_setup): Adjust following the addition of the new
6071 expedite_regs parameter to init_target_desc.
6072 * win32-i386-low.c: #include "x86-tdesc.h".
6073 (i386_arch_setup): Adjust following the addition of the new
6074 expedite_regs parameter to init_target_desc.
6075
7dbac825
JB
60762018-05-10 Joel Brobecker <brobecker@adacore.com>
6077
6078 PR server/23158:
6079 * win32-low.c (win32_create_inferior): Add call to my_wait
6080 setting last_status global.
6081
906994d9
JB
60822018-05-10 Joel Brobecker <brobecker@adacore.com>
6083
6084 PR server/23158:
6085 * win32-low.c (create_process): Only call gdb_tilde_expand if
6086 inferior_cwd is not NULL.
6087
8ee22052
AB
60882018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6089
6090 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6091 registers to the cache if their values have changed.
6092 (i387_xsave_to_cache): Provide default values for x87 control
6093 registers when these features are available, but disabled.
6094 * regcache.c (supply_register_by_name_zeroed): New function.
6095 * regcache.h (supply_register_by_name_zeroed): Declare new
6096 function.
6097
aff689d3
TT
60982018-05-07 Tom Tromey <tom@tromey.com>
6099
6100 * configure: Rebuild.
6101
85e26832
TT
61022018-05-04 Tom Tromey <tom@tromey.com>
6103
6104 * configure: Rebuild.
6105
a3b60e45
JK
61062018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6107 Pedro Alves <palves@redhat.com>
6108
6109 * linux-aarch64-low.c (aarch64_stopped_data_address):
6110 Likewise.
6111
632e107b
TT
61122018-04-27 Tom Tromey <tom@tromey.com>
6113
6114 * configure: Rebuild.
6115
458412c3
TT
61162018-04-23 Tom Tromey <tom@tromey.com>
6117
6118 * configure: Rebuild.
6119
f31c089e
SM
61202018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6121
6122 * Makefile.in (depcomp): Add "..".
6123 (all_deps_files): New and use it.
6124
b319b098
AH
61252018-04-18 Alan Hayward <alan.hayward@arm.com>
6126
6127 * configure.srv (aarch64*-*-linux*): Don't include xml.
6128 (i[34567]86-*-cygwin*): Likewise.
6129 (i[34567]86-*-linux*): Likewise.
6130 (i[34567]86-*-lynxos*): Likewise.
6131 (i[34567]86-*-mingw32ce*): Likewise.
6132 (i[34567]86-*-mingw*): Likewise.
6133 (i[34567]86-*-nto*): Likewise.
6134 (tic6x-*-uclinux): Likewise.
6135 (x86_64-*-linux*): Likewise.
6136 (x86_64-*-mingw*): Likewise.
6137 (x86_64-*-cygwin*): Likewise.
6138
3b74854b
AH
61392018-04-18 Alan Hayward <alan.hayward@arm.com>
6140
6141 * tdesc.c: Remove xml parameter.
6142
e98577a9
AH
61432018-04-18 Alan Hayward <alan.hayward@arm.com>
6144
6145 * server.c (get_features_xml): Remove cast.
6146 * tdesc.c (void target_desc::accept): Fill in function.
6147 (tdesc_get_features_xml): Remove old xml creation.
6148 (print_xml_feature::visit_pre): Add xml vistor.
6149 * tdesc.h (struct target_desc): Make xmltarget mutable.
6150 (tdesc_get_features_xml): Remove declaration.
6151
d278f585
AH
61522018-04-18 Alan Hayward <alan.hayward@arm.com>
6153
6154 * tdesc.c (tdesc_architecture_name): Add new function.
6155 (tdesc_osabi_name): Likewise.
6156 (tdesc_get_features_xml): Use new functions.
6157
eee8a18d
AH
61582018-04-18 Alan Hayward <alan.hayward@arm.com>
6159
6160 * tdesc.c (tdesc_create_flags): Remove.
6161 (tdesc_add_flag): Likewise.
6162 (tdesc_named_type): Likewise.
6163 (tdesc_create_union): Likewise.
6164 (tdesc_create_struct): Likewise.
6165 (tdesc_create_vector): Likewise.
6166 (tdesc_add_bitfield): Likewise.
6167 (tdesc_add_field): Likewise.
6168 (tdesc_set_struct_size): Likewise.
6169
82ec9bc7
AH
61702018-04-18 Alan Hayward <alan.hayward@arm.com>
6171
6172 * tdesc.c (~target_desc): Remove implictly deleted items.
6173 (init_target_desc): Iterate all features.
6174 (tdesc_get_features_xml): Use vector.
6175 (tdesc_create_feature): Create feature.
6176 * tdesc.h (tdesc_feature) Remove
6177 (target_desc): Add features.
6178
ea3e7d71
AH
61792018-04-18 Alan Hayward <alan.hayward@arm.com>
6180
6181 * Makefile.in: Add common/tdesc.c
6182 * tdesc.c (init_target_desc): init all reg_defs from register
6183 vector.
6184 (tdesc_create_reg): Create tdesc_reg.
6185 * tdesc.h (tdesc_feature): Add register vector.
6186
17d08cd4
SM
61872018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6188
6189 * tdesc.h (struct target_desc) <features>: Change type to
6190 std::vector<std::string>.
6191 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6192 changes.
6193 (tdesc_get_features_xml): Likewise.
6194 (tdesc_create_feature): Likewise.
6195
5cd3e386
AH
61962018-03-26 Alan Hayward <alan.hayward@arm.com>
6197
6198 * regcache.c (find_register_by_number): Return a ref.
6199 (find_regno): Use references.
6200 (register_size): Likewise.
6201 (register_data): Likewise.
6202 * tdesc.c (target_desc::~target_desc): Remove free calls.
6203 (target_desc::operator==): Use std::vector compare.
6204 (init_target_desc): Use reference.
6205 (tdesc_create_reg): Use reg constructors.
6206 * tdesc.h (struct target_desc): Replace pointer with object.
6207
dff7492c
AH
62082018-03-23 Alan Hayward <alan.hayward@arm.com>
6209
6210 * regcache.c (find_register_by_number): Make static.
6211 (find_regno): Use find_register_by_number
6212 * regcache.h (struct reg): Remove declaration.
6213
d80e5242
AH
62142018-03-23 Alan Hayward <alan.hayward@arm.com>
6215
6216 * tdesc.c (target_desc::~target_desc): Move to here.
6217 (target_desc::operator==): Likewise.
6218 * tdesc.h (target_desc::~target_desc): Move from here.
6219 (target_desc::operator==): Likewise.
6220
f69c5afb
AA
62212018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6222
6223 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6224
ce29f843
AA
62252018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6226
6227 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6228 S390_TDESC_GS.
6229 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6230 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6231 and init_registers_s390_gs_linux64.
6232
c49bd90b
AA
62332018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6234
6235 * linux-s390-low.c (s390_fill_gs): Remove function.
6236 (s390_fill_gsbc): Remove function.
6237 (s390_regsets): Set fill functions for the guarded storage regsets
6238 to NULL.
6239
7edb9bd3
AA
62402018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6241
6242 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6243 the word size. Add comment.
6244 (s390_get_wordsize): New function.
6245 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6246 pswm with it. Instead, use s390_get_wordsize to determine the
6247 word size first and derive the correct tdesc from that directly.
6248
39be3c7e
SM
62492018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6250
6251 * Makefile.in: Include silent-rules.mk.
6252 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6253 (COMPILE): Add ECHO_CXX.
6254 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6255 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6256 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6257 (version-generated.c): Add ECHO_GEN.
6258 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6259 (IPAGENT_COMPILE): Add ECHO_CXX.
6260 (%-generated.c): Add ECHO_REGDAT.
6261
3ae9ce5d
TT
62622018-03-14 Tom Tromey <tom@tromey.com>
6263
6264 PR cli/14977:
6265 * ax.c (ax_printf): Special case for NULL.
6266
e6a58aa8
SM
62672018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * linux-low.c (linux_qxfer_libraries_svr4): Use
6270 xml_escape_text_append.
6271
f6e8a41e
SM
62722018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6275
b9671caf
SM
62762018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6277
6278 * server.c (handle_general_set): Remove unnecessary xstrdup.
6279
e80aaf61
SM
62802018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * server.c (parse_debug_format_options): Adjust to
6283 delim_string_to_char_ptr_vec changes.
6284 * thread-db.c (thread_db_load_search): Adjust to
6285 dirnames_to_char_ptr_vec changes.
6286
b1223e78
MM
62872018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6288
6289 * target.h (target_enable_btrace, target_disable_btrace)
6290 (target_read_btrace, target_read_btrace_conf): Turn macro into
6291 inline function. Throw error if target method is not defined.
6292 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6293 check for btrace target method. Be prepared to handle exceptions
6294 from btrace target methods.
6295
81561546
SDJ
62962018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6297
6298 * server.c (captured_main): Change order of error message printed
6299 when the current working directory cannot be found.
6300
25e3c82c
SDJ
63012018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6302
6303 * server.c: Include "filenames.h" and "pathstuff.h".
6304 (program_name): Delete variable.
6305 (program_path): New anonymous class.
6306 (get_exec_wrapper): Use "program_path" instead of
6307 "program_name".
6308 (handle_v_run): Likewise.
6309 (captured_main): Likewise.
6310 (process_serial_event): Likewise.
6311
b4987c95
SDJ
63122018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6313
6314 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6315 (OBJS): Add "pathstuff.o".
6316 * server.c (current_directory): New global variable.
6317 (captured_main): Initialize "current_directory".
6318
f46cd62a
AH
63192018-02-26 Alan Hayward <alan.hayward@arm.com>
6320
6321 * tdesc.c: Use common/tdesc.h.
6322 * tdesc.h: Likewise.
6323
a543c5ca
AH
63242018-02-20 Alan Hayward <alan.hayward@arm.com>
6325 Simon Marchi <simon.marchi@ericsson.com>
6326
6327 * Makefile.in: Switch order of make rules.
6328
b5884fa7
AH
63292018-02-19 Alan Hayward <alan.hayward@arm.com>
6330
6331 * Makefile.in: Add common directory in build.
6332 * configure.ac: Add common reference.
6333 * configure: Regenerate.
6334
de6242d3
MM
63352018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6336
6337 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6338 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6339 * spu-low.c (spu_target_ops): Likewise.
6340 * win32-low.c (win32_target_ops): Likewise.
6341 * server.c (supported_btrace_packets): Report packets unconditionally.
6342 * target.h (target_ops) <supports_btrace>: Remove.
6343 (target_supports_btrace): Remove.
6344
9ee23a85
MM
63452018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6346
6347 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6348 (handle_btrace_disable): Change return type to void. Use exceptions
6349 to report errors.
6350 (handle_btrace_general_set): Catch exception and copy message to
6351 return message.
6352
8ce47547
TT
63532018-02-08 Tom Tromey <tom@tromey.com>
6354
6355 * linux-low.c (install_software_single_step_breakpoints): Use
6356 make_scoped_restore.
6357 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6358 (do_restore_current_thread_cleanup): Remove.
6359 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6360 declare.
6361
45dd3607
TT
63622018-02-08 Tom Tromey <tom@tromey.com>
6363
6364 * mem-break.c (set_raw_breakpoint_at): Use
6365 gdb::unique_xmalloc_ptr.
6366
e671cd59
PA
63672018-01-30 Pedro Alves <palves@redhat.com>
6368
6369 PR gdb/13211
6370 * target.c (target_terminal::terminal_state): Rename to ...
6371 (target_terminal::m_terminal_state): ... this.
6372
a0aad537
JC
63732018-01-19 James Clarke <jrtc27@jrtc27.com>
6374
6375 * linux-low.c (handle_extended_wait): Surround call to
6376 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6377
4d9b86e1
SM
63782018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6379
6380 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6381 linux_ptrace_attach_fail_reason_string now returning an
6382 std::string.
6383 (linux_attach): Likewise.
6384 * thread-db.c (attach_thread): Likewise.
6385
f517c180
EA
63862018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6387
6388 PR gdb/21559
6389 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6390 checking for fs_base/gs_base fields in struct user_regs_struct.
6391 * configure: Regenerate.
6392
9a70f35c
YQ
63932018-01-16 Yao Qi <yao.qi@linaro.org>
6394
6395 PR gdb/18749
6396 * linux-low.c (fetch_register): Call supply_register instead of
6397 error.
6398
605fd3c6
YQ
63992018-01-08 Yao Qi <yao.qi@linaro.org>
6400 Simon Marchi <simon.marchi@ericsson.com>
6401
6402 * Makefile.in (OBS): Remove selftest.o.
6403 * configure.ac: Set srv_selftest_objs if $development is true.
6404 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6405 * configure: Re-generated.
6406 * server.c (captured_main): Wrap variable selftest_filter with
6407 GDB_SELF_TEST.
6408
2cc05030
SM
64092018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6410
6411 * server.c (parse_debug_format_options): Return std::string.
6412 (handle_monitor_command, captured_main): Adjust.
6413
e379cee6
PA
64142018-01-05 Pedro Alves <palves@redhat.com>
6415
6416 PR gdb/18653
6417 * server.c (captured_main): Pass quiet=false to
6418 save_original_signals_state.
6419
82e1e79a
JB
64202018-01-01 Joel Brobecker <brobecker@adacore.com>
6421
6422 * gdbreplay.c (gdbreplay_version): Update copyright year in
6423 version message.
6424 * server.c (gdbserver_version): Likewise.
6425
8e481c3b
TT
64262017-12-08 Tom Tromey <tom@tromey.com>
6427
6428 * ax.c (ax_printf): Update.
6429
a8806230
YQ
64302017-12-07 Yao Qi <yao.qi@linaro.org>
6431
6432 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6433 aarch64_linux_read_description.
6434 * linux-amd64-ipa.c (idx2mask): New array.
6435 (get_ipa_tdesc): Move idx2mask out.
6436 (initialize_low_tracepoint): Initialize target descriptions.
6437 * linux-i386-ipa.c (idx2mask): New array.
6438 (get_ipa_tdesc): Move idx2mask out.
6439 (initialize_low_tracepoint): Initialize target descriptions.
6440
d4a0e8b5
SM
64412017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6442
6443 * tdesc.c (struct tdesc_type): Change return type.
6444 (tdesc_add_flag): Change parameter type.
6445 (tdesc_add_bitfield): Likewise.
6446 (tdesc_add_field): Likewise.
6447 (tdesc_set_struct_size): Likewise.
6448
798a7429
SM
64492017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6450
6451 * regcache.c (registers_to_string): Remove unused variable.
6452
c0e15c9b
SM
64532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6454
6455 * inferiors.c (for_each_inferior_with_data): Remove.
6456 * inferiors.h (for_each_inferior_with_data): Remove.
6457 * server.c (handle_qxfer_threads_worker): Change parameter type.
6458 (handle_qxfer_threads_proper): Use for_each_thread.
6459
f0045347
SM
64602017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6461
6462 * inferiors.c (for_each_inferior): Remove.
6463 (clear_inferiors): Use for_each_thread.
6464 * inferiors.h (for_each_inferior): Remove.
6465 * linux-low.c (linux_wait_for_event_filtered): Use
6466 for_each_thread.
6467 (linux_stabilize_threads): Likewise.
6468 * regcache.c (regcache_release): Likewise.
6469 * server.c (gdb_wants_all_threads_stopped): Likewise.
6470 (clear_pending_status_callback): Remove.
6471 (handle_status): Use for_each_thread.
6472 (captured_main): Likewise.
6473 * win32-low.c (child_init_thread_list): Likewise.
6474 (win32_clear_inferiors): Likewise.
6475 (fake_breakpoint_event): Likewise.
6476
9521758b
SM
64772017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6478
6479 * inferiors.h (find_inferior): Remove.
6480 * inferiors.c (find_inferior): Remove.
6481
8f86d7aa
SM
64822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * linux-low.c (resume_status_pending_p): Update comment.
6485 (need_step_over_p): Update comment.
6486
e2b44075
SM
64872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6488
6489 * linux-low.c (proceed_one_lwp): Return void, change parameter
6490 type.
6491 (unsuspend_and_proceed_one_lwp): Likewise.
6492 (proceed_all_lwps): Use for_each_thread.
6493 (unstop_all_lwps): Likewise.
6494
c80825ff
SM
64952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6496
6497 * linux-low.c (linux_resume_one_thread): Return void, take
6498 parameter directly.
6499 (linux_resume): Use for_each_thread.
6500
df3e4dbe
SM
65012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6502
6503 * linux-low.c (send_sigstop_callback): Return void, change
6504 parameter type. Rename to...
6505 (send_sigstop): ... this.
6506 (suspend_and_send_sigstop_callback): Return void, change parameter
6507 type. Rename to...
6508 (suspend_and_send_sigstop): ... this.
6509 (stop_all_lwps): Use for_each_thread.
6510
5a6b0a41
SM
65112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6512
6513 * linux-low.c (lwp_running): Return bool, remove unused
6514 argument.
6515 (linux_stabilize_threads): Use find_thread.
6516
39a64da5
SM
65172017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6518
6519 * linux-low.c (select_singlestep_lwp_callback): Remove.
6520 (count_events_callback): Remove.
6521 (select_event_lwp_callback): Remove.
6522 (select_event_lwp): Use find_thread/for_each_thread.
6523
a1385b7b
SM
65242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6525
6526 * linux-low.c (not_stopped_callback): Return bool, take filter
6527 argument directly.
6528 (linux_wait_for_event_filtered): Use find_thread.
6529 (linux_wait_1): Likewise.
6530
454296a2
SM
65312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * linux-low.c (same_lwp): Remove.
6534 (find_lwp_pid): Use find_thread.
6535
6b2a85da
SM
65362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6537
6538 * linux-low.c (delete_lwp_callback): Remove.
6539 (linux_mourn): Use for_each_thread.
6540
798a38e8
SM
65412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6542
6543 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6544 args parameter, don't check for pid.
6545 (linux_detach): Use for_each_thread.
6546
e4eb0dec
SM
65472017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6548
6549 * linux-low.c (struct counter): Remove.
6550 (second_thread_of_pid_p): Remove.
6551 (last_thread_of_process_p): Use find_thread.
6552
83e1b6c1
SM
65532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6554
6555 * inferiors.c (find_inferior_in_random): Remove.
6556 * inferiors.h (find_inferior_in_random): Remove.
6557 * linux-low.c (status_pending_p_callback): Return bool, accept
6558 parameter ptid directly.
6559 (linux_wait_for_event_filtered): Use find_thread_in_random.
6560 (linux_wait_1): Likewise.
6561
8dc7b443
SM
65622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6563
6564 * inferiors.c (find_inferior_id): Remove.
6565 (find_thread_ptid): Move implemention from find_inferior_id to
6566 here.
6567 * inferiors.h (find_inferior_id): Remove.
6568 * server.c (handle_status): Use find_thread_ptid.
6569 (process_serial_event): Likewise.
6570 * thread-db.c (find_one_thread): Likewise.
6571 (thread_db_thread_handle): Likewise.
6572 * win32-low.c (thread_rec): Likewise.
6573 (child_delete_thread): Likewise.
6574 (win32_thread_alive): Likewise.
6575 (get_child_debug_event): Likewise.
6576
da25033c
SM
65772017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6578
6579 * linux-mips-low.c (update_watch_registers_callback): Return
6580 void, remove pid_p parameter, don't check for pid.
6581 (mips_insert_point, mips_remove_point): Use for_each_thread.
6582
c91bb56b
SM
65832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6584
6585 * lynx.low (lynx_delete_thread_callback): Remove.
6586 (lynx_mourn): Use for_each_thread.
6587
634a3254
SM
65882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6589
6590 * regcache.c (regcache_invalidate_one): Remove.
6591 (regcache_invalidate_pid): use for_each_thread.
6592
41272101
TT
65932017-11-26 Tom Tromey <tom@tromey.com>
6594
6595 * linux-low.c (linux_create_inferior): Update.
6596
f5291a6f
UW
65972017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6598
6599 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6600
6654d750
AH
66012017-11-24 Alan Hayward <alan.hayward@arm.com>
6602
6603 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6604 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6605 * linux-aarch64-tdesc-selftest.c: New file.
6606 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6607
66082017-11-24 Alan Hayward <alan.hayward@arm.com>
6609
6610 * configure.srv: Add new file.
6611 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6612 * linux-aarch64-tdesc-selftest.c: New file.
6613 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6614
49bdb7ee
AH
66152017-11-24 Alan Hayward <alan.hayward@arm.com>
6616
6617 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6618 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6619 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6620
d6d7ce56
AH
66212017-11-24 Alan Hayward <alan.hayward@arm.com>
6622
6623 * configure.srv: Add new files.
6624 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6625 aarch64_linux_read_description.
6626 * linux-aarch64-low.c (aarch64_linux_read_description):
6627 Merge with aarch64_arch_setup.
6628 (aarch64_arch_setup): Call aarch64_linux_read_description.
6629 * linux-aarch64-tdesc.c: New file.
6630 * linux-aarch64-tdesc.h: New file.
6631
506fe5f4
YQ
66322017-11-24 Yao Qi <yao.qi@linaro.org>
6633
6634 * configure.srv: Set $srv_regobj for tic6x-linux.
6635 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6636 (tic6x_read_description): Move some code to tic6x_arch_setup.
6637 (tic6x_tdesc_test): New function.
6638 (initialize_low_arch): Call selftests::register_test.
6639
29f9a567
YQ
66402017-11-22 Yao Qi <yao.qi@linaro.org>
6641
6642 * remote-utils.c (prepare_resume_reply): Use memcpy.
6643
578290ec
SM
66442017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6645
6646 * linux-low.c (kill_one_lwp_callback): Return void, take
6647 argument directly, don't filter on pid.
6648 (linux_kill): Use for_each_thread.
6649
eca55aec
SM
66502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6651
6652 * linux-low.c (need_step_over_p): Return bool, remove dummy
6653 argument.
6654 (linux_resume, proceed_all_lwps): Use find_thread.
6655
25c28b4d
SM
66562017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6657
6658 * linux-low.c (resume_status_pending_p): Return bool, remove
6659 flag_p argument.
6660 (linux_resume): Use find_thread.
6661
5fdda392
SM
66622017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6663
6664 * linux-low.c (struct thread_resume_array): Remove.
6665 (linux_set_resume_request): Return void, take arguments
6666 directly.
6667 (linux_resume): Use for_each_thread.
6668
fcb056a5
SM
66692017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6670
6671 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6672 return bool, remove data argument.
6673 (linux_stabilize_threads): Use find_thread.
6674
139720c5
SM
66752017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6676
6677 * linux-low.c (unsuspend_one_lwp): Remove.
6678 (unsuspend_all_lwps): Use for_each_thread, inline code from
6679 unsuspend_one_lwp.
6680
6d1e5673
SM
66812017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6682
6683 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6684 * linux-low.c (struct iterate_over_lwps_args): Remove.
6685 (iterate_over_lwps_filter): Remove.
6686 (iterate_over_lwps): Use find_thread.
6687
bbf550d5
SM
66882017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6689
6690 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6691 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6692 code from reset_lwp_ptrace_options_callback.
6693
00192f77
SM
66942017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6695
6696 * linux-arm-low.c (struct update_registers_data): Remove.
6697 (update_registers_callback): Return void, take arguments
6698 directly, don't check thread's pid.
6699 (arm_insert_point, arm_remove_point): Use for_each_thread.
6700
2bee2b6c
SM
67012017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6702
6703 * win32-low.c (continue_one_thread): Return void, take argument
6704 directly.
6705 (child_continue): Use for_each_thread.
6706
0b360f19
SM
67072017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6708
6709 * win32-i386-low.c (update_debug_registers_callback): Rename
6710 to ...
6711 (update_debug_registers): ... this, return void, remove pid_p arg.
6712 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6713
f27866ba
SM
67142017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6715
6716 * inferiors.h (struct process_info): Add constructor, initialize
6717 fields..
6718 <syscalls_to_catch>: Change type to std::vector<int>.
6719 * inferiors.c (add_process): Allocate process_info with new.
6720 (remove_process): Free process_info with delete.
6721 * linux-low.c (handle_extended_wait): Adjust.
6722 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6723 * server.c (handle_general_set): Adjust.
6724
e849ea89
PA
67252017-11-16 Pedro Alves <palves@redhat.com>
6726
6727 * remote-utils.c (remote_close): Block SIGIO signals instead of
6728 uninstalling the SIGIO handler.
6729
1d0aa65c
AH
67302017-11-16 Alan Hayward <alan.hayward@arm.com>
6731
6732 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6733
3491a34c
YQ
67342017-11-16 Yao Qi <yao.qi@linaro.org>
6735
6736 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6737 (tic6x_store_gregset): Likewise.
6738 (tic6x_usrregs_info): Move it up.
6739
a602f924
AH
67402017-11-15 Alan Hayward <alan.hayward@arm.com>
6741
6742 * Makefile.in: Update arch rules.
6743 * configure.srv: Explicitly mark arch/ files.
6744
5616b6c3
AS
67452017-11-13 Andreas Schwab <schwab@suse.de>
6746
6747 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6748 function.
6749 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6750
d1928160
PA
67512017-11-06 Pedro Alves <palves@redhat.com>
6752
6753 * config.in, configure: Regenerate.
6754
bac608e7
SM
67552017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6756
6757 * target.c (struct thread_search): Remove.
6758 (thread_search_callback): Remove.
6759 (prepare_to_access_memory): Use for_each_thread instead of
6760 find_inferior. Inline code from thread_search_callback.
6761
eaddb425
SM
67622017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6763
6764 * server.c (struct visit_actioned_threads_data): Remove.
6765 (visit_actioned_threads): Change prototype to take arguments
6766 directly.
6767 (resume): Use find_thread instead of find_inferior.
6768
99078d34
SM
67692017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6770
6771 * server.c (queue_stop_reply_callback): Change prototype, return
6772 void.
6773 (find_status_pending_thread_callback): Remove.
6774 (handle_status): Replace find_inferior with find_thread and
6775 for_each_thread.
6776
cc628f3d
AH
67772017-10-25 Alan Hayward <alan.hayward@arm.com>
6778
6779 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6780 with REGNO.
6781 (aarch64_store_gregset): Likewise.
6782 (aarch64_fill_fpregset): Likewise.
6783 (aarch64_store_fpregset): Likewise.
6784
4d3bb80e
SM
67852017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6786
6787 * gdbthread.h (find_thread, for_each_thread): New functions.
6788 * inferiors.c (thread_of_pid): Remove.
6789 (find_any_thread_of_pid): Use find_thread.
6790 * linux-low.c (num_lwps): Use for_each_thread.
6791
7a7cdfa0
YQ
67922017-10-17 Yao Qi <yao.qi@linaro.org>
6793
6794 * Makefile.in: Remove one rule.
6795 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6796
e675d170
YQ
67972017-10-17 Yao Qi <yao.qi@linaro.org>
6798
6799 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6800 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6801
7eb4e0f9
YQ
68022017-10-17 Yao Qi <yao.qi@linaro.org>
6803
6804 * configure.srv: Rename arm.o with arch/arm.o.
6805
60d6cfc9
YQ
68062017-10-17 Yao Qi <yao.qi@linaro.org>
6807
6808 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6809 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6810 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6811 (arch-i386.o, arch-amd64.o): Remove rules.
6812 (arch/%.o): New rule.
6813 Update POSTCOMPILE and COMPILE.pre.
6814 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6815 * configure: Re-generated.
6816 * configure.srv: Replace arch-i386.o with arch/i386.o.
6817 Replace arch-amd64.o with arch/amd64.o.
6818
5bfda255
YQ
68192017-10-16 Yao Qi <yao.qi@linaro.org>
6820
6821 * configure: Regenerated.
6822
9c80ecd6
SM
68232017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6824
6825 * inferiors.h: (struct inferior_list): Remove.
6826 (struct inferior_list_entry); Remove.
6827 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6828 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6829 get_first_inferior): Remove.
6830 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6831 find_inferior_id, find_inferior_in_random): Change signature.
6832 * inferiors.c (all_threads): Change type to
6833 std::list<thread_info *>.
6834 (get_thread): Remove macro.
6835 (find_inferior, find_inferior_id): Change signature, implement
6836 using find_thread.
6837 (find_inferior_in_random): Change signature, implement using
6838 find_thread_in_random.
6839 (for_each_inferior, for_each_inferior_with_data): Change
6840 signature, implement using for_each_thread.
6841 (add_inferior_to_list, remove_inferior): Remove.
6842 (add_thread, get_first_thread, thread_of_pid,
6843 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6844 (get_first_inferior, one_inferior_p, clear_inferior_list):
6845 Remove.
6846 (clear_inferiors, get_thread_process): Update.
6847 * gdbthread.h: Include <list>.
6848 (struct thread_info) <entry>: Remove field.
6849 <id>: New field.
6850 (all_threads): Change type to std::list<thread_info *>.
6851 (get_first_inferior): Add doc.
6852 (find_thread, for_each_thread, find_thread_in_random): New
6853 functions.
6854 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6855 * linux-arm-low.c (update_registers_callback): Update.
6856 * linux-low.c (second_thread_of_pid_p): Update.
6857 (kill_one_lwp_callback, linux_detach_lwp_callback,
6858 delete_lwp_callback, status_pending_p_callback, same_lwp,
6859 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6860 iterate_over_lwps, not_stopped_callback,
6861 resume_stopped_resumed_lwps, count_events_callback,
6862 select_singlestep_lwp_callback, select_event_lwp_callback,
6863 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6864 suspend_and_send_sigstop_callback, wait_for_sigstop,
6865 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6866 lwp_running, linux_set_resume_request, resume_status_pending_p,
6867 need_step_over_p, start_step_over, linux_resume_one_thread,
6868 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6869 reset_lwp_ptrace_options_callback): Update.
6870 * linux-mips-low.c (update_watch_registers_callback): Update.
6871 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6872 Update.
6873 (free_register_cache_thread_one): Remove.
6874 (regcache_release): Update.
6875 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6876 handle_qxfer_threads_worker): Update.
6877 (handle_query): Update, use list iterator.
6878 (visit_actioned_threads, handle_pending_status,
6879 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6880 clear_pending_status_callback, set_pending_status_callback,
6881 find_status_pending_thread_callback, handle_status,
6882 process_serial_event): Update.
6883 * target.c (thread_search_callback): Update.
6884 * thread-db.c (thread_db_get_tls_address): Update.
6885 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6886 Update.
6887 * win32-i386-low.c (update_debug_registers_callback): Update.
6888 * win32-low.c (delete_thread_info, child_delete_thread,
6889 continue_one_thread, suspend_one_thread,
6890 get_child_debug_event): Adjust.
6891
9179355e
SM
68922017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6893
6894 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6895 * inferiors.h: Include <list>.
6896 (struct process_info) <entry>: Remove field.
6897 <pid>: New field.
6898 (pid_of): Change macro to function.
6899 (ptid_of, lwpid_of): Remove macro.
6900 (all_processes): Change type to std::list<process_info *>.
6901 (ALL_PROCESSES): Remove macro.
6902 (for_each_process, find_process): New function.
6903 * inferiors.c (all_processes): Change type to
6904 std::list<process_info *>.
6905 (find_thread_process): Adjust.
6906 (add_process): Likewise.
6907 (remove_process): Likewise.
6908 (find_process_pid): Likewise.
6909 (get_first_process): Likewise.
6910 (started_inferior_callback): Remove.
6911 (have_started_inferiors_p): Adjust.
6912 (attached_inferior_callback): Remove.
6913 (have_attached_inferiors_p): Adjust.
6914 * linux-low.c (check_zombie_leaders): Likewise.
6915 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6916 (x86_linux_update_xmltarget): Adjust.
6917 * server.c (handle_query): Likewise.
6918 (gdb_reattached_process): Remove.
6919 (handle_status): Adjust.
6920 (kill_inferior_callback): Likewise.
6921 (detach_or_kill_inferior): Remove.
6922 (print_started_pid): Likewise.
6923 (print_attached_pid): Likewise.
6924 (detach_or_kill_for_exit): Update.
6925 (process_serial_event): Likewise.
6926 * linux-arm-low.c (arm_new_fork): Likewise.
6927
c9cb8905
SM
69282017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6929
6930 * dll.h: Include <list>.
6931 (struct dll_info): Add constructor.
6932 <entry>: Remove field.
6933 (all_dlls): Change type to std::list<dll_info>.
6934 * dll.c: Include <algorithm>.
6935 (get_dll): Remove macro.
6936 (all_dlls): Change type to std::list<dll_info *>.
6937 (free_one_dll): Remove.
6938 (match_dll): Likewise.
6939 (loaded_dll): Adjust.
6940 (unloaded_dll): Adjust to all_dlls type change, use
6941 std::find_if. Inline code from match_dll.
6942 (clear_dlls): Adjust to all_dlls type change.
6943 * server.c (emit_dll_description): Remove.
6944 (handle_qxfer_libraries): Adjust to all_dlls type change,
6945 integrate emit_dll_description's functionality.
6946
04ec7890
SM
69472017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6948
6949 * linux-low.h (struct linux_target_ops) <delete_process>: New
6950 field.
6951 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6952 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6953 (struct linux_target_ops): Add delete_process callback.
6954 * linux-arm-low.c (arm_delete_process): New.
6955 (struct linux_target_ops): Add delete_process callback.
6956 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6957 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6958 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6959 * linux-mips-low.c (mips_linux_delete_process): New.
6960 (struct linux_target_ops): Add delete_process callback.
6961 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6962 * linux-s390-low.c (struct linux_target_ops): Likewise.
6963 * linux-sh-low.c (struct linux_target_ops): Likewise.
6964 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6965 * linux-tile-low.c (struct linux_target_ops): Likewise.
6966 * linux-x86-low.c (x86_linux_delete_process): New.
6967 (struct linux_target_ops): Add delete_process callback.
6968 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6969
466eecee
SM
69702017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6971
6972 * linux-aarch64-low.c (the_low_target): Add thread delete
6973 callback.
6974 * linux-arm-low.c (arm_delete_thread): New function.
6975 (the_low_target): Add thread delete callback.
6976 * linux-bfin-low.c (the_low_target): Likewise.
6977 * linux-crisv32-low.c (the_low_target): Likewise.
6978 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6979 set.
6980 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6981 field.
6982 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6983 * linux-mips-low.c (mips_linux_delete_thread): New function.
6984 (the_low_target): Add thread delete callback.
6985 * linux-ppc-low.c (the_low_target): Likewise.
6986 * linux-s390-low.c (the_low_target): Likewise.
6987 * linux-sh-low.c (the_low_target): Likewise.
6988 * linux-tic6x-low.c (the_low_target): Likewise.
6989 * linux-tile-low.c (the_low_target): Likewise.
6990 * linux-x86-low.c (the_low_target): Likewise.
6991 * linux-xtensa-low.c (the_low_target): Likewise.
6992
b79f7801
YZ
69932017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6994
6995 * win32-low.c: Include "common-inferior.h".
6996
bc3b087d
SDJ
69972017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6998
6999 * inferiors.c (set_inferior_cwd): New function.
7000 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7001 (handle_query): Inform that QSetWorkingDir is supported.
7002 * win32-low.c (create_process): Pass the inferior's cwd to
7003 CreateProcess.
7004
d092c5a2
SDJ
70052017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7006
7007 * inferiors.c (current_inferior_cwd): New global variable.
7008 (get_inferior_cwd): New function.
7009 * inferiors.h (struct process_info) <cwd>: New field.
7010
7da0a886
SDJ
70112017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7012
7013 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7014 (OBS): Add gdb_tilde_expand.o.
7015
289a6840
SM
70162017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7017
7018 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7019 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7020
256642e8
PA
70212017-09-29 Pedro Alves <palves@redhat.com>
7022
7023 * ax.c (gdb_parse_agent_expr): Constify.
7024 * ax.h (gdb_parse_agent_expr): Constify.
7025 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7026 Constify.
7027 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7028 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7029 * remote-utils.h (read_ptid): Constify.
7030 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7031 (process_point_options, process_serial_event): Constify.
7032 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7033 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7034 (cmd_qtbuffer): Constify.
7035
5b9ca4d4
PA
70362017-09-29 Pedro Alves <palves@redhat.com>
7037
7038 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7039 fails.
7040
94c207e0
PA
70412017-09-29 Pedro Alves <palves@redhat.com>
7042
7043 * linux-low.c (handle_extended_wait): Pass parent thread instead
7044 of process to thread_db_notice_clone.
7045 * linux-low.h (thread_db_notice_clone): Replace parent process
7046 parameter with parent thread parameter.
7047 * thread-db.c (find_one_thread): Add comment.
7048 (thread_db_notice_clone): Replace parent process parameter with
7049 parent thread parameter. Temporarily switch to the parent thread.
7050
75352e28
SDJ
70512017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7052
7053 * gdbthread.h: Include "common-gdbthread.h".
7054 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7055 "if" when validating the ptid.
7056 * remote-utils.c: Include "gdbthread.h".
7057 (prepare_resume_reply): Use "switch_to_thread".
7058 * target.c (done_accessing_memory): Likewise.
7059
ad339634
AA
70602017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7061
7062 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7063 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7064 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7065 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7066 s390x-gs-linux64-ipa.o to ipa_obj.
7067 * linux-s390-low.c (HWCAP_S390_GS): New define.
7068 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7069 New functions.
7070 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7071 (s390_arch_setup): Check for guarded-storage support and choose
7072 appropriate tdesc.
7073 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7074 init_registers_s390x_gs_linux64.
7075 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7076 enum value.
7077 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7078 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7079
cc4d742f
SM
70802017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7081
7082 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7083
f6327dcb
KB
70842017-09-21 Kevin Buettner <kevinb@redhat.com>
7085
7086 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7087 (thread_db_thread_handle): Declare.
7088 * linux-low.c (linux_target_ops): Initialize thread_handle.
7089 * server.c (handle_qxfer_threads_worker): Add support for
7090 "handle" attribute.
7091 * target.h (struct target_ops): Add new function pointer,
7092 thread_handle.
7093 (target_thread_handle): Define.
7094 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7095 field in lwp.
7096 (thread_db_thread_handle): New function.
7097
86299109
KB
70982017-09-21 Kevin Buettner <kevinb@redhat.com>
7099
7100 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7101 * linux-low.h (thread_db_notice_clone): Declare.
7102 * thread-db.c (thread_db_notice_clone): New function.
7103
f557a88a
PA
71042017-09-21 Pedro Alves <palves@redhat.com>
7105
7106 * server.c (gdb_read_memory, handle_status, process_serial_event)
7107 (handle_serial_event, handle_target_event): Adjust to
7108 set_desired_thread prototype change.
7109 * target.c (set_desired_thread): Remove 'use_general' parameter
7110 and adjust.
7111 * target.h (set_desired_thread): Remove 'use_general' parameter.
7112
223ffa71
TT
71132017-09-20 Tom Tromey <tom@tromey.com>
7114
7115 * target.c (target_terminal::terminal_state): Define.
7116 (target_terminal::init): Rename from target_terminal_init.
7117 (target_terminal::inferior): Rename from
7118 target_terminal_inferior.
7119 (target_terminal::ours): Rename from target_terminal_ours.
7120 (target_terminal::ours_for_output, target_terminal::info): New.
7121
04fd3ba9
SM
71222017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7123
7124 * server.c (accumulate_file_name_length): Remove.
7125 (emit_dll_description): Adjust to std::string change.
7126 (handle_qxfer_libraries): Use std::string to hold document.
7127
5e187554
SM
71282017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7129
7130 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7131 return type of xml_escape_text.
7132 * server.c (emit_dll_description): Likewise.
7133
1526853e
SM
71342017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7135
7136 * server.c (captured_main): Accept argument for --selftest.
7137 Update run_tests call.
7138 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7139 when registering selftests.
7140
c4dfafab
SDJ
71412017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7142
7143 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7144 instead of "VEC" for "target_desc.reg_defs".
7145 (regcache_cpy): Likewise.
7146 (registers_to_string): Likewise.
7147 (registers_from_string): Likewise.
7148 (find_regno): Likewise.
7149 (supply_regblock): Likewise.
7150 (regcache_raw_read_unsigned): Likewise.
7151 * tdesc.c (init_target_desc): Likewise.
7152 (tdesc_create_reg): Likewise.
7153 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7154 (struct target_desc) <reg_defs>: Convert to "std::vector".
7155 (target_desc): Do not initialize "reg_defs".
7156 (~target_desc): Update code to use "std::vector" instead of "VEC"
7157 for "target_desc.reg_defs".
7158 (operator==): Likewise.
7159
124aceb4
SM
71602017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7161
7162 * inferiors.h (thread_to_gdb_id): Remove.
7163 * inferiors.c (thread_to_gdb_id): Remove.
7164 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7165 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7166 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7167 Likewise.
7168 * nto-low.c (nto_fetch_registers, nto_store_registers,
7169 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7170
96cde54f
SM
71712017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7172
7173 * inferiors.h (gdb_id_to_thread_id): Remove.
7174 * inferiors.c (gdb_id_to_thread_id): Remove.
7175 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7176 removal. Move pid declaration closer to where it's used.
7177
e8ca139e
SM
71782017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7179
7180 * server.c (handle_detach): New function.
7181 (process_serial_event): Move code out, call handle_detach.
7182
f8a4e119
SM
71832017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7184
7185 * server.c (require_running): Rename to ...
7186 (require_running_or_return): ... this ...
7187 (require_running_or_break): ... and this.
7188 (handle_query, process_serial_event): Adjust.
7189
0eb0a407
SM
71902017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7191
7192 * linux-low.c (linux_set_resume_request): Remove unused
7193 variables.
7194
785922a5
SM
71952017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7196
7197 * server.c (first_thread_of): Remove.
7198 (process_serial_event): Replace usage of first_thread_of with
7199 find_any_thread_of_pid.
7200 * tracepoint.c (same_process_p): Remove.
7201 (gdb_agent_about_to_close): Replace usage of same_process_p with
7202 find_any_thread_of_pid.
7203 * linux-x86-low.c (same_process_callback): Remove.
7204 (x86_arch_setup_process_callback): Replace usage of
7205 same_process_callback with find_any_thread_of_pid.
7206 * thread-db.c (any_thread_of): Remove.
7207 (switch_to_process): Replace usage of any_thread_of with
7208 find_any_thread_of_pid.
7209 * inferiors.c (thread_pid_matches_callback): Remove.
7210 (find_thread_process): Adjust to use find_any_thread_of_pid.
7211
a059f00c
SDJ
72122017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7213
7214 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7215 with "!VEC_empty".
a059f00c 7216
cc397f3a
SDJ
72172017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7218
7219 * linux-low.c (handle_extended_wait): Use
7220 "allocate_target_description" instead of "XNEW".
7221 * linux-x86-low.c (initialize_low_arch): Likewise.
7222
22916b07
YQ
72232017-09-05 Yao Qi <yao.qi@linaro.org>
7224
7225 * configure.srv (srv_i386_regobj): Remove.
7226 (srv_amd64_regobj): Remove.
7227 (srv_regobj): Set it to "" for x86 non-linux targets.
7228 * linux-x86-tdesc.c (i386_linux_read_description):
7229 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7230 (init_registers_i386): Remove the declaration.
7231 (tdesc_i386): Remove the declaration.
7232 (lynx_i386_arch_setup): Call i386_create_target_description.
7233 * nto-x86-low.c: Likewise.
7234 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7235 [!__x86_64__]: include arch/i386.h.
7236 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7237
38602d55
YQ
72382017-09-05 Yao Qi <yao.qi@linaro.org>
7239
7240 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7241 i386/amd64-XXX-linux from it.
7242
44b886ff
YQ
72432017-09-05 Yao Qi <yao.qi@linaro.org>
7244
7245 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7246 false.
7247 (ipa_amd64_linux_regobj): Remove.
7248 (ipa_x32_linux_regobj): Remove.
7249
b4570e4b
YQ
72502017-09-05 Yao Qi <yao.qi@linaro.org>
7251
7252 * Makefile.in (arch-amd64.o): New rule.
7253 * configure.srv: Append arch-amd64.o.
7254 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7255 (get_ipa_tdesc): Call amd64_linux_read_description.
7256 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7257 and init_registers_amd64_XXX.
7258 * linux-x86-low.c (x86_linux_read_description): Call
7259 amd64_linux_read_description.
7260 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7261 (initialize_low_arch): Don't call init_registers_x32_XXX and
7262 init_registers_amd64_XXX.
7263 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7264 and tdesc_amd64_XXX.
7265 [__x86_64__] (amd64_tdesc_test): New function.
7266 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7267 and init_registers_amd64_XXX.
7268 * linux-x86-tdesc.c: Include arch/amd64.h.
7269 (xcr0_to_tdesc_idx): New function.
7270 (i386_linux_read_description): New function.
7271 (amd64_get_ipa_tdesc_idx): New function.
7272 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7273 (amd64_get_ipa_tdesc): Declare.
7274
d1f28ea2
YQ
72752017-09-05 Yao Qi <yao.qi@linaro.org>
7276
7277 * configure.srv (srv_i386_linux_xmlfiles): Remove
7278 i386/i386-XXX-linux.xml from it.
7279
25a93583
YQ
72802017-09-05 Yao Qi <yao.qi@linaro.org>
7281
7282 * configure.srv: Set srv_i386_linux_regobj empty if $development
7283 is false.
7284 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7285 initialize_low_tdesc.
7286 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7287 with #if initialize_low_tdesc.
7288 * linux-x86-tdesc-selftest.c: New file.
7289 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7290
5f035c07
YQ
72912017-09-05 Yao Qi <yao.qi@linaro.org>
7292
7293 * Makefile.in (arch-i386.o): New rule.
7294 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7295 (x86_64-*-linux*): Likewise.
7296 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7297 include arch/i386.h.
7298 (i386_linux_read_description): Remove code and call
7299 i386_create_target_description.
7300 * tdesc.c (allocate_target_description): New function.
7301 * tdesc.h (set_tdesc_architecture): Remove declaration.
7302 (set_tdesc_osabi): Likewise.
7303
0abe8a89
YQ
73042017-09-05 Yao Qi <yao.qi@linaro.org>
7305
7306 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7307 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7308 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7309 .xmltarget.
7310 * server.c (get_features_xml): Call tdesc_get_features_xml.
7311 * tdesc.c (set_tdesc_architecture): New function.
7312 (set_tdesc_osabi): New function.
7313 (tdesc_get_features_xml): New function.
7314 (tdesc_create_feature): Add an argument.
7315 * tdesc.h (struct target_desc) <features>: New field.
7316 <arch, osabi>: New field.
7317 (~target_desc): xfree features, arch, and osabi.
7318 (target_desc::oerator==): Don't compare .xmltarget.
7319 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7320 (set_tdesc_osabi): Likewise.
7321 (tdesc_get_features_xml): Likewise.
7322
0a188386
YQ
73232017-09-05 Yao Qi <yao.qi@linaro.org>
7324
7325 * linux-x86-tdesc.c: Include selftest.h.
7326 (i386_tdesc_test): New function.
7327 (initialize_low_tdesc): Call selftests::register_test.
7328 * tdesc.h: Include regdef.h.
7329 (target_desc): Override operator == and !=.
7330
f49ff000
YQ
73312017-09-05 Yao Qi <yao.qi@linaro.org>
7332
7333 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7334 (ipa_obj): Likewise.
7335 * linux-i386-ipa.c: Include common/x86-xstate.h
7336 (get_ipa_tdesc): Call i386_linux_read_description.
7337 (initialize_low_tracepoint): Don't call init_registers_XXX
7338 functions, call initialize_low_tdesc instead.
7339 * linux-x86-low.c (x86_linux_read_description): Call
7340 i386_linux_read_description.
7341 (initialize_low_arch): Don't call init_registers_i386_XXX
7342 functions, call initialize_low_tdesc.
7343 * linux-x86-tdesc.c: New file.
7344 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7345 (i386_get_ipa_tdesc_idx): Declare.
7346 (i386_get_ipa_tdesc): Declare.
7347 (initialize_low_tdesc): Declare.
7348
2b68ef2f
YQ
73492017-09-05 Yao Qi <yao.qi@linaro.org>
7350
7351 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7352 instead of 0.
7353
f7000548
YQ
73542017-09-05 Yao Qi <yao.qi@linaro.org>
7355
7356 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7357 * regcache.c (get_thread_regcache): Use VEC_length.
7358 (init_register_cache): Likewise.
7359 (regcache_cpy): Likewise.
7360 (registers_to_string): Iterate reg_defs via VEC_iterate.
7361 (find_regno): Likewise.
7362 (find_register_by_number): Use VEC_index.
7363 (register_size): Call find_register_by_number.
7364 (register_data): Call find_register_by_number.
7365 (supply_regblock): Use VEC_length.
7366 (regcache_raw_read_unsigned): Likewise.
7367 * tdesc.c (init_target_desc): Iterate reg_defs via
7368 VEC_iterate.
7369 (default_description): Update initializer.
7370 (copy_target_description): Don't update field num_registers.
7371 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7372 <num_registers>: Remove.
7373
50a421ac
SM
73742017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7375
7376 * Makefile.in (.SECONDARY): Define target.
7377
23fdd69e
SM
73782017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7379
7380 * linux-low.c (linux_wait_1): Adjust.
7381 * server.c (queue_stop_reply_callback): Adjust.
7382
0a2dde4a
SDJ
73832017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7384
7385 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7386 QEnvironmentUnset and QEnvironmentReset packets.
7387 (handle_query): Inform remote that QEnvironmentHexEncoded,
7388 QEnvironmentUnset and QEnvironmentReset are supported.
7389
6afd337d
SM
73902017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7391
7392 * inferiors.h (inferior_target_data): Rename to ...
7393 (thread_target_data): ... this.
7394 (inferior_regcache_data): Rename to ...
7395 (thread_regcache_data): ... this.
7396 (set_inferior_regcache_data): Rename to ...
7397 (set_thread_regcache_data): ... this.
7398 * inferiors.c (inferior_target_data): Rename to ...
7399 (thread_target_data): ... this.
7400 (inferior_regcache_data): Rename to ...
7401 (thread_regcache_data): ... this.
7402 (set_inferior_regcache_data): Rename to ...
7403 (set_thread_regcache_data): ... this.
7404 (free_one_thread): Update.
7405 * linux-low.h (get_thread_lwp): Update.
7406 * regcache.c (get_thread_regcache): Update.
7407 (regcache_invalidate_thread): Update.
7408 (free_register_cache_thread): Update.
7409 * win32-i386-low.c (update_debug_registers_callback): Update.
7410 (win32_get_current_dr): Update.
7411 * win32-low.c (thread_rec): Update.
7412 (delete_thread_info): Update.
7413 (continue_one_thread): Update.
7414 (suspend_one_thread): Update.
7415
a160cc46
SM
74162017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7417
7418 * inferiors.c (set_inferior_target_data): Remove.
7419 * inferiors.h (set_inferior_target_data): Remove.
7420
6d580b63
YQ
74212017-08-18 Yao Qi <yao.qi@linaro.org>
7422
7423 * Makefile.in (OBS): Add selftest.o.
7424 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7425 * configure, config.in: Re-generated.
7426 * server.c: Include common/sefltest.h.
7427 (captured_main): Handle option --selftest.
7428
f5a29eb0
YQ
74292017-08-09 Yao Qi <yao.qi@linaro.org>
7430
7431 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7432 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7433 i386-avx-mpx.o and i386-mmx.o.
7434 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7435 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7436 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7437 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7438 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7439 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7440 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7441 i386/amd64-avx-mpx.xml.
7442
57757c2f
YQ
74432017-08-09 Yao Qi <yao.qi@linaro.org>
7444
7445 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7446 and x32-avx-avx512.o.
7447 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7448 i386/x32-avx-avx512.xml.
7449
229d26fc
SM
74502017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7451
7452 * tracepoint.h (enum class fast_tpoint_collect_result): New
7453 enumeration.
7454 (fast_tracepoint_collecting): Change return type to
7455 fast_tpoint_collect_result.
7456 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7457 * linux-low.h: Include tracepoint.h.
7458 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7459 fast_tpoint_collect_result.
7460 * linux-low.c (handle_tracepoints): Adjust.
7461 (linux_fast_tracepoint_collecting): Change return type to
7462 fast_tpoint_collect_result.
7463 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7464 linux_wait_1, stuck_in_jump_pad_callback,
7465 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7466 proceed_one_lwp): Adjust to type change.
7467
2e1e43e1
YQ
74682017-07-10 Yao Qi <yao.qi@linaro.org>
7469
7470 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7471
adc764e7
YQ
74722017-06-29 Yao Qi <yao.qi@linaro.org>
7473
7474 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7475 Remove.
7476 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7477
a206891a
SM
74782017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7479
7480 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7481
9a6c7d9c
SDJ
74822017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7483
7484 * linux-low.c (linux_create_inferior): Adjust code to access the
7485 environment information via 'gdb_environ' class.
7486 * lynx-low.c (lynx_create_inferior): Likewise.
7487 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7488 (get_environ): Return a pointer to 'our_environ'.
7489 (captured_main): Initialize 'our_environ'.
7490 * server.h (get_environ): Adjust prototype.
7491 * spu-low.c (spu_create_inferior): Adjust code to access the
7492 environment information via 'gdb_environ' class.
7493
ae3e2ccf
SM
74942017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7495
7496 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7497 usage of "register" keyword.
7498
3e019bdc
SM
74992017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7500
7501 * configure: Re-generate.
7502
8465943a
SM
75032017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7504
7505 * configure: Re-generate.
7506
cf0dd6f0
SM
75072017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7508
7509 * Makefile.in (COMPILE.pre): Add "-x c++".
7510
9845682b
SDJ
75112017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7512
7513 * fork-child.c: Conditionally include <signal.h>.
7514
aefd8b33
SDJ
75152017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7516
7517 * server.c (handle_general_set): Handle new packet
7518 "QStartupWithShell".
7519 (handle_query): Add "QStartupWithShell" to the list of supported
7520 packets.
7521 (gdbserver_usage): Add help text explaining the
7522 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7523 options.
7524 (captured_main): Recognize and act upon the presence of the new
7525 CLI options.
7526
2090129c
SDJ
75272017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7528 Pedro Alves <palves@redhat.com>
7529
7530 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7531 * configure: Regenerate.
7532 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7533 "fork-inferior.o".
7534 (i[34567]86-*-lynxos*): Likewise.
7535 (spu*-*-*): Likewise.
7536 * fork-child.c: New file.
7537 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7538 and "environ.h".
7539 (linux_ptrace_fun): New function.
7540 (linux_create_inferior): Adjust function prototype to reflect
7541 change on "target.h". Adjust function code to use
7542 "fork_inferior".
7543 (linux_request_interrupt): Delete "signal_pid".
7544 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7545 (lynx_ptrace_fun): New function.
7546 (lynx_create_inferior): Adjust function prototype to reflect
7547 change on "target.h". Adjust function code to use
7548 "fork_inferior".
7549 * nto-low.c (nto_create_inferior): Adjust function prototype and
7550 code to reflect change on "target.h". Update comments.
7551 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7552 "common-terminal.h" and "environ.h".
7553 (terminal_fd): Moved to fork-child.c.
7554 (old_foreground_pgrp): Likewise.
7555 (restore_old_foreground_pgrp): Likewise.
7556 (last_status): Make it global.
7557 (last_ptid): Likewise.
7558 (our_environ): New variable.
7559 (startup_with_shell): Likewise.
7560 (program_name): Likewise.
7561 (program_argv): Rename to...
7562 (program_args): ...this.
7563 (wrapper_argv): New variable.
7564 (start_inferior): Delete function.
7565 (get_exec_wrapper): New function.
7566 (get_exec_file): Likewise.
7567 (get_environ): Likewise.
7568 (prefork_hook): Likewise.
7569 (post_fork_inferior): Likewise.
7570 (postfork_hook): Likewise.
7571 (postfork_child_hook): Likewise.
7572 (handle_v_run): Update code to deal with arguments coming from the
7573 remote host. Update calls from "start_inferior" to
7574 "create_inferior".
7575 (captured_main): Likewise. Initialize environment variable. Call
7576 "have_job_control".
7577 * server.h (post_fork_inferior): New prototype.
7578 (get_environ): Likewise.
7579 (last_status): Declare.
7580 (last_ptid): Likewise.
7581 (signal_pid): Likewise.
7582 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7583 (spu_ptrace_fun): New function.
7584 (spu_create_inferior): Adjust function prototype to reflect change
7585 on "target.h". Adjust function code to use "fork_inferior".
7586 * target.c (target_terminal_init): New function.
7587 (target_terminal_inferior): Likewise.
7588 (target_terminal_ours): Likewise.
7589 * target.h: Include <vector>.
7590 (struct target_ops) <create_inferior>: Update prototype.
7591 (create_inferior): Update macro.
7592 * utils.c (gdb_flush_out_err): New function.
7593 * win32-low.c (win32_create_inferior): Adjust function prototype
7594 and code to reflect change on "target.h".
7595
043a4934
SDJ
75962017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7597
7598 * inferiors.c (switch_to_thread): New function.
7599
15652511
SDJ
76002017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7601
7602 * Makefile.in (SFILE): Add "common/job-control.c".
7603 (OBS): Add "job-control.o".
7604
21ea5acd
SDJ
76052017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7606
7607 * Makefile: Remove "@host_makefile_frag@".
7608
e13cb306
PA
76092017-05-05 Pedro Alves <palves@redhat.com>
7610
7611 * configure: Regenerate.
7612
c94fee56
SDJ
76132017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7614
7615 * configure: Regenerate.
7616
a0ff9e1a
SM
76172017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7618
7619 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7620 software_single_step change of return type to
7621 std::vector<CORE_ADDR>.
7622 * linux-low.c (install_software_single_step_breakpoints):
7623 Likewise.
7624 * linux-low.h (install_software_single_step_breakpoints):
7625 Likewise.
7626
be628ab8
SDJ
76272017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7628
7629 * remote-utils.c: Include "gdb_termios.h" instead of
7630 "terminal.h".
7631 * terminal.h: Delete file.
7632
7c5ded6a
SDJ
76332017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7634
7635 * server.c: Include <vector>.
7636 <program_argv, wrapper_argv>: Convert to std::vector.
7637 (start_inferior): Rewrite function to use C++.
7638 (handle_v_run): Likewise. Update code that calculates the argv
7639 based on the vRun packet; use C++.
7640 (captured_main): Likewise.
7641
436252de
SM
76422017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7643
7644 * server.c (handle_v_cont): Initialize thread_resume::thread
7645 with null_ptid.
7646
9bf2a700
PA
76472017-04-05 Pedro Alves <palves@redhat.com>
7648
7649 * configure: Regenerate.
7650
a121b7c1
PA
76512017-04-05 Pedro Alves <palves@redhat.com>
7652
7653 * gdbreplay.c (sync_error): Constify.
7654 * linux-x86-low.c (push_opcode): Constify.
7655
21c8a587
PA
76562017-04-05 Pedro Alves <palves@redhat.com>
7657
7658 * win32-low.c (get_child_debug_event)
7659 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7660 Report TARGET_WAITKIND_SPURIOUS instead.
7661
fb32b4f7
PA
76622017-04-05 Pedro Alves <palves@redhat.com>
7663
e79be6e5
SM
7664 * remote-utils.c (remote_prepare, remote_open): Constify.
7665 * remote-utils.h (remote_prepare, remote_open): Constify.
7666 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7667
65dd1e59
SM
76682017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7669
7670 * Makefile.in (clean): Clear .deps.
7671
8fa5b777
SM
76722017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7673
7674 * .gitignore: Remove generated files, replace with wildcard.
7675 * (clean): Replace removal of generated files with wildcard.
7676 (version.c): Replace with...
7677 (version-generated.c): ...this.
7678 (xml-builtin.c): Replace with...
7679 (xml-builtin-generated.c): ...this.
7680 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7681 (%.c: *regformats*): Replace with...
7682 (%-generated.c: *regformats*): ...this.
7683
a12e714b
MF
76842017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7685
7686 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7687 (xtensa_fill_gregset): Call collect_register_by_name for
7688 threadptr register.
7689 (xtensa_store_gregset): Call supply_register_by_name for
7690 threadptr register.
7691
1a09b50a
MF
76922017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7693
7694 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7695 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7696 (xtensa_store_gregset): Call supply_register for all registers in
7697 a0_regnum..a0_regnum + C0_NREGS range.
7698
1a01e7c6
SM
76992017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7700
7701 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7702 (ax-ipa.o: ax.c): Remove.
7703 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7704 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7705 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7706 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7707 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7708
36bc18a8
SM
77092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7710
7711 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7712 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7713 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7714 (errors-ipa.o: ../common/errors.c): Remove.
7715 (format-ipa.o: ../common/format.c): Remove.
7716 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7717
a8ebe3d5
SM
77182017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7719
7720 * Makefile.in (%-ipa.o: %.c): New rule.
7721 (tracepoint-ipa.o: tracepoint.c): Remove.
7722 (utils-ipa.o: utils.c): Remove.
7723 (remote-utils-ipa.o: remote-utils.c): Remove.
7724 (regcache-ipa.o: regcache.c): Remove.
7725 (i386-linux-ipa.o: i386-linux.c): Remove.
7726 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7727 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7728 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7729 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7730 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7731 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7732 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7733 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7734 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7735 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7736 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7737 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7738 (aarch64-ipa.o: aarch64.c): Remove.
7739 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7740 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7741 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7742 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7743 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7744 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7745 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7746 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7747 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7748 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7749 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7750 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7751 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7752 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7753 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7754 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7755 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7756 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7757 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7758 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7759 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7760 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7761 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7762 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7763 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7764 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7765 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7766 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7767 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7768 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7769 (tdesc-ipa.o: tdesc.c): Remove.
7770 (x32-linux-ipa.o: x32-linux.c): Remove.
7771 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7772 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7773
50cfacb7
SM
77742017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7775
7776 * Makefile.in (%.o: ../arch/%.c): New rule.
7777 (arm.o: ../arch/arm.c): Remove.
7778 (arm-linux.o: ../arch/arm-linux.c): Remove.
7779 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7780 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7781
c5a22423
SM
77822017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7783
7784 * Makefile.in (%.o: ../nat/%.c): New rule.
7785 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7786 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7787 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7788 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7789 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7790 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7791 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7792 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7793 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7794 (linux-personality.o: ../nat/linux-personality.c): Remove.
7795 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7796 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7797 (x86-linux.o: ../nat/x86-linux.c): Remove.
7798 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7799 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7800
6bda016b
SM
78012017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7802
7803 * Makefile.in (%.o: ../common/%.c): New rule.
7804 (signals.o: ../common/signals.c): Remove.
7805 (print-utils.o: ../common/print-utils.c): Remove.
7806 (rsp-low.o: ../common/rsp-low.c): Remove.
7807 (common-utils.o: ../common/common-utils.c): Remove.
7808 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7809 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7810 (vec.o: ../common/vec.c): Remove.
7811 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7812 (xml-utils.o: ../common/xml-utils.c): Remove.
7813 (ptid.o: ../common/ptid.c): Remove.
7814 (buffer.o: ../common/buffer.c): Remove.
7815 (format.o: ../common/format.c): Remove.
7816 (filestuff.o: ../common/filestuff.c): Remove.
7817 (agent.o: ../common/agent.c): Remove.
7818 (errors.o: ../common/errors.c): Remove.
7819 (environ.o: ../common/environ.c): Remove.
7820 (common-debug.o: ../common/common-debug.c): Remove.
7821 (cleanups.o: ../common/cleanups.c): Remove.
7822 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7823 (fileio.o: ../common/fileio.c): Remove.
7824 (common-regcache.o: ../common/common-regcache.c): Remove.
7825 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7826 (new-op.o: ../common/new-op.c): Remove.
7827 (btrace-common.o: ../common/btrace-common.c): Remove.
7828
21122961
SM
78292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7830
7831 * Makefile.in (%.o: ../target/%.c): New rule.
7832 (waitstatus.o: ../target/waitstatus.c): Remove.
7833
c362e621
SM
78342017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7835
7836 * Makefile.in
7837 (%.c: ../regformats/%.dat,
7838 (%.c: ../regformats/arm/%.dat,
7839 (%.c: ../regformats/i386/%.dat,
7840 (%.c: ../regformats/rs6000/%.dat): New rules.
7841 (aarch64.c): Remove.
7842 (reg-arm.c): Remove.
7843 (arm-with-iwmmxt.c): Remove.
7844 (arm-with-vfpv2.c): Remove.
7845 (arm-with-vfpv3.c): Remove.
7846 (arm-with-neon.c): Remove.
7847 (reg-bfin.c): Remove.
7848 (reg-cris.c): Remove.
7849 (reg-crisv32.c): Remove.
7850 (i386.c): Remove.
7851 (i386-linux.c): Remove.
7852 (i386-avx.c): Remove.
7853 (i386-avx-linux.c): Remove.
7854 (i386-avx-avx512.c): Remove.
7855 (i386-avx-avx512-linux.c): Remove.
7856 (i386-mpx.c): Remove.
7857 (i386-mpx-linux.c): Remove.
7858 (i386-avx-mpx-avx512-pku.c): Remove.
7859 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7860 (i386-avx-mpx.c): Remove.
7861 (i386-avx-mpx-linux.c): Remove.
7862 (i386-mmx.c): Remove.
7863 (i386-mmx-linux.c): Remove.
7864 (reg-ia64.c): Remove.
7865 (reg-m32r.c): Remove.
7866 (reg-m68k.c): Remove.
7867 (reg-cf.c): Remove.
7868 (mips-linux.c): Remove.
7869 (mips-dsp-linux.c): Remove.
7870 (mips64-linux.c): Remove.
7871 (mips64-dsp-linux.c): Remove.
7872 (nios2-linux.c): Remove.
7873 (powerpc-32.c): Remove.
7874 (powerpc-32l.c): Remove.
7875 (powerpc-altivec32l.c): Remove.
7876 (powerpc-cell32l.c): Remove.
7877 (powerpc-vsx32l.c): Remove.
7878 (powerpc-isa205-32l.c): Remove.
7879 (powerpc-isa205-altivec32l.c): Remove.
7880 (powerpc-isa205-vsx32l.c): Remove.
7881 (powerpc-e500l.c): Remove.
7882 (powerpc-64l.c): Remove.
7883 (powerpc-altivec64l.c): Remove.
7884 (powerpc-cell64l.c): Remove.
7885 (powerpc-vsx64l.c): Remove.
7886 (powerpc-isa205-64l.c): Remove.
7887 (powerpc-isa205-altivec64l.c): Remove.
7888 (powerpc-isa205-vsx64l.c): Remove.
7889 (s390-linux32.c): Remove.
7890 (s390-linux32v1.c): Remove.
7891 (s390-linux32v2.c): Remove.
7892 (s390-linux64.c): Remove.
7893 (s390-linux64v1.c): Remove.
7894 (s390-linux64v2.c): Remove.
7895 (s390-te-linux64.c): Remove.
7896 (s390-vx-linux64.c): Remove.
7897 (s390-tevx-linux64.c): Remove.
7898 (s390x-linux64.c): Remove.
7899 (s390x-linux64v1.c): Remove.
7900 (s390x-linux64v2.c): Remove.
7901 (s390x-te-linux64.c): Remove.
7902 (s390x-vx-linux64.c): Remove.
7903 (s390x-tevx-linux64.c): Remove.
7904 (tic6x-c64xp-linux.c): Remove.
7905 (tic6x-c64x-linux.c): Remove.
7906 (tic6x-c62x-linux.c): Remove.
7907 (reg-sh.c): Remove.
7908 (reg-sparc64.c): Remove.
7909 (reg-spu.c): Remove.
7910 (amd64.c): Remove.
7911 (amd64-linux.c): Remove.
7912 (amd64-avx.c): Remove.
7913 (amd64-avx-linux.c): Remove.
7914 (amd64-avx-avx512.c): Remove.
7915 (amd64-avx-avx512-linux.c): Remove.
7916 (amd64-mpx.c): Remove.
7917 (amd64-mpx-linux.c): Remove.
7918 (amd64-avx-mpx-avx512-pku.c): Remove.
7919 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7920 (amd64-avx-mpx.c): Remove.
7921 (amd64-avx-mpx-linux.c): Remove.
7922 (x32.c): Remove.
7923 (x32-linux.c): Remove.
7924 (x32-avx.c): Remove.
7925 (x32-avx-linux.c): Remove.
7926 (x32-avx-avx512.c): Remove.
7927 (x32-avx-avx512-linux.c): Remove.
7928 (reg-xtensa.c): Remove.
7929 (reg-tilegx.c): Remove.
7930 (reg-tilegx32.c): Remove.
7931
1672e0d9
SDJ
79322017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7933
7934 * Makefile.in (SFILES): Add "common/environ.c".
7935 (OBJS): Add "common/environ.h".
7936
239b6d10
WT
79372017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7938
7939 * configure.ac: Check if the fs_base and gs_base members of
7940 `struct user_regs_struct' exist.
7941 * config.in: Regenerated.
7942 * configure: Likewise.
7943
694b382c
AT
79442017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7945
7946 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7947 target_read_memory.
7948 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7949 (get_next_pcs_syscall_next_pc): Likewise.
7950
7dc53023
LM
79512016-12-23 Luis Machado <lgustavo@codesourcery.com>
7952
7953 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7954 * nto-x86-low.c: Likewise.
7955
ad02e4fe
SM
79562016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7957
7958 * Makefile.in: Include disable-implicit-rules.mk.
7959
dcb07cfa
PA
79602016-11-23 Pedro Alves <palves@redhat.com>
7961
7962 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7963 (debug_vprintf): Use std::chrono::steady_clock instead of
7964 gettimeofday. Use '.' instead of ':'.
7965 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7966 (get_timestamp): Use std::chrono::steady_clock instead of
7967 gettimeofday.
7968
8629c02c
SM
79692016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7970
7971 * Makefile.in: Fix whitespace formatting.
7972
b593ecca
SM
79732016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7974
7975 * Makefile.in (SFILES, OBS): Flatten list and order
7976 alphabetically.
7977
9986ba08
PA
79782016-11-23 Pedro Alves <palves@redhat.com>
7979
7980 * event-loop.c (handle_file_event): Use warning.
7981 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7982 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7983 Use warning.
7984
4eefa7bc
PA
79852016-11-23 Pedro Alves <palves@redhat.com>
7986
7987 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7988 output.
7989 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7990 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7991 debug_printf and debug_flush for debug output.
7992 * server.c (handle_general_set): Likewise.
7993 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7994 output.
7995
5443506e
SM
79962016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7997
7998 * Makefile.in (.c.o): Replace rule with ...
7999 (%.o: %.c): ... this one.
8000
3b165252
SM
80012016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8002
8003 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8004 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8005 make.
8006 * configure.ac: Remove checks for the make program.
8007 * configure: Re-generate.
8008
0bcda685
PA
80092016-10-28 Pedro Alves <palves@redhat.com>
8010
8011 * Makefile.in (CXX_DIALECT): Get from configure.
8012 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8013 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8014 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8015 * config.in: Regenerate.
8016 * configure: Regenerate.
8017
c3805894
YQ
80182016-10-27 Yao Qi <yao.qi@linaro.org>
8019
8020 * linux-low.c (linux_supports_range_stepping): Return true if
8021 can_software_single_step return true.
8022
89342618
YQ
80232016-10-27 Yao Qi <yao.qi@linaro.org>
8024
8025 * inferiors.c (find_inferior_in_random): New function.
8026 * inferiors.h (find_inferior_in_random): Declare.
8027 * linux-low.c (linux_wait_for_event_filtered): Call
8028 find_inferior_in_random instead of find_inferior.
8029
e3652c84
YQ
80302016-10-27 Yao Qi <yao.qi@linaro.org>
8031
8032 * linux-low.c (linux_wait_1): If single-step breakpoints are
8033 inserted, remove them.
8034
5a04c4cf
PA
80352016-10-26 Pedro Alves <palves@redhat.com>
8036
8037 * linux-low.c (handle_extended_wait): Link parent/child fork
8038 threads.
8039 (linux_wait_1): Unlink them.
8040 (linux_set_resume_request): Ignore resume requests for
8041 already-resumed and unhandled fork child threads.
8042 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8043 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8044 New functions.
8045 (handle_v_requests) <vCont>: Don't call require_running.
8046 * server.h (in_queued_stop_replies): New declaration.
8047
cb93dc7f
YQ
80482016-10-24 Yao Qi <yao.qi@linaro.org>
8049
8050 PR server/20733
8051 * linux-aarch64-low.c (append_insns): Cast the return value to
8052 'uint32_t *'.
8053
a1078bea
YQ
80542016-10-10 Yao Qi <yao.qi@linaro.org>
8055
8056 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8057
1fb77080
SDJ
80582016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8059
8060 * target.c (target_supports_multi_process): New function, moved
8061 from...
8062 * target.h (target_supports_multi_process): ... here. Remove
8063 macro.
8064
39b5a3b9
TT
80652016-10-05 Tom Tromey <tom@tromey.com>
8066
8067 PR remote/20655:
8068 * tracepoint.c (handle_tracepoint_bkpts): Check
8069 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8070
c1d0b70a
YQ
80712016-10-05 Yao Qi <yao.qi@linaro.org>
8072
8073 * configure.srv: Update the path of arm-*.xml files.
8074
0a69eedb
YQ
80752016-10-05 Terry Guo <terry.guo@arm.com>
8076 Yao Qi <yao.qi@linaro.org>
8077
8078 * Makefile.in: Adjust the path of rules.
8079 * configure.srv: Update the path of xml files.
8080 * regformats/arm-with-iwmmxt.dat: Regenerated.
8081 * regformats/arm-with-neon.dat: Likewise.
8082 * regformats/arm-with-vfpv2.dat: Likewise.
8083 * regformats/arm-with-vfpv3.dat Likewise.
8084
17e16485
YQ
80852016-09-30 Yao Qi <yao.qi@linaro.org>
8086
8087 PR gdbserver/20627
8088 * target.c (target_stop_and_wait): Don't call
8089 target_continue_no_signal, use resume_stop instead.
8090
edeeb602
YQ
80912016-09-26 Yao Qi <yao.qi@linaro.org>
8092
8093 * linux-low.c (linux_wait_1): Call debug_exit.
8094
503b1c39
PA
80952016-09-23 Pedro Alves <palves@redhat.com>
8096
8097 * Makefile.in (SFILES): Add common/new-op.c.
8098 (OBS): Add common/new-op.o.
8099 (new-op.o): New rule.
8100
74172ecf
SM
81012016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8102
8103 * .gitinore: Ignore more files.
8104
fc6cda2e
YQ
81052016-09-21 Yao Qi <yao.qi@linaro.org>
8106
8107 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8108 23.
8109
bc1e6c81
SDJ
81102016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8111
8112 * server.c (start_inferior): Call target_mourn_inferior instead of
8113 mourn_inferior; pass ptid_t argument to it.
8114 (resume): Likewise.
8115 (handle_target_event): Likewise.
8116 * target.c (target_mourn_inferior): New function.
8117 * target.h (mourn_inferior): Delete macro.
8118
0e00e962
AA
81192016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8120
8121 * linux-low.c (lwp_is_stepping): New function.
8122
1d8cb77d
CL
81232016-09-06 Carl Love <cel@us.ibm.com>
8124
8125 * server.c (start_inferior): Fixed comment, requested comment change
8126 didn't get updated correctly. Removed reference to ptrace () call as
8127 it is only true on Linux systems.
8128
7313bced
CL
81292016-09-06 Carl Love <cel@us.ibm.com>
8130
8131 * server.c (start_inferior): Do not call
8132 function target_post_create_inferior () if the
8133 inferior process has already exited.
8134
cf6de44d
PA
81352016-09-05 Pedro Alves <palves@redhat.com>
8136
8137 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8138 (COMPILE.pre, CC_LD): Use CXX directly.
8139 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8140 * acinclude.m4: Don't include build-with-cxx.m4.
8141 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8142 * configure: Regenerate.
8143
c1da6748
AT
81442016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8145
8146 PR gdb/19495
8147 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8148 call writing data to own_buf.
8149
f2b9e3df
SDJ
81502016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8151
8152 * target.c (mywait): Call target_wait instead of
8153 the_target->wait.
8154 (target_wait): New function.
8155
049a8570
SDJ
81562016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8157
8158 * server.c (start_inferior): New variable 'ptid'. Replace calls
8159 to the_target->resume by target_continue{,_no_signal}, depending
8160 on the case.
8161 * target.c (target_stop_and_wait): Call target_continue_no_signal
8162 instead of the_target->resume.
8163 (target_continue): New function.
8164
3aa5cfa0
AT
81652016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8166
8167 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8168
754653a7
AZ
81692016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8170
8171 PR server/20491
8172 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8173 ps_prochandle.
8174 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8175 * linux-arm-low.c (ps_get_thread_area): Likewise.
8176 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8177 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8178 * linux-mips-low.c (ps_get_thread_area): Likewise.
8179 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8180 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8181 * linux-x86-low.c (ps_get_thread_area): Likewise.
8182 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8183
ed036b40
PA
81842016-08-19 Pedro Alves <palves@redhat.com>
8185
8186 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8187
c8ef42ee
PA
81882016-08-19 Pedro Alves <palves@redhat.com>
8189
8190 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8191 comment. Use memcpy instead of casting through unsigned long.
8192
9c235a72
PA
81932016-08-19 Pedro Alves <palves@redhat.com>
8194
8195 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8196 allocating around 0x80000000.
8197
201506da
PA
81982016-08-19 Pedro Alves <palves@redhat.com>
8199
8200 PR gdb/20415
8201 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8202 (x32-avx512-linux-ipa.o): New rules.
8203 * configure.ac (x86_64-*-linux*): New x32 check.
8204 * configure.srv (ipa_x32_linux_regobj): New.
8205 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8206 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8207 descriptions.
8208 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8209 descriptions.
8210 * configure: Regenerate.
8211
f348d89a
PA
82122016-08-09 Pedro Alves <palves@redhat.com>
8213
8214 PR gdb/18653
8215 * Makefile.in (OBS): Add signals-state-save-restore.o.
8216 (signals-state-save-restore.o): New rule.
8217 * config.in: Regenerate.
8218 * configure: Regenerate.
8219 * linux-low.c: Include "signals-state-save-restore.h".
8220 (linux_create_inferior): Call
8221 restore_original_signals_state.
8222 * server.c: Include "dispositions-save-restore.h".
8223 (captured_main): Call save_original_signals_state.
8224
1baf5149
PA
82252016-08-05 Pedro Alves <palves@redhat.com>
8226
8227 * configure: Regenerate.
8228
fcd4a73d
YQ
82292016-08-04 Yao Qi <yao.qi@linaro.org>
8230
8231 * linux-low.c (regsets_fetch_inferior_registers): Check
8232 errno is ESRCH or not.
8233
979659d0
YQ
82342016-08-02 Yao Qi <yao.qi@linaro.org>
8235
8236 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8237 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8238 (thread_db_load_search): Update.
8239 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8240 td_ta_set_event and td_ta_event_getmsg.
8241
6598661d
PA
82422016-07-26 Pedro Alves <palves@redhat.com>
8243
8244 PR server/20414
8245 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8246 of unsigned long for 64-bit registers and use uint32_t instead of
8247 unsigned int for 32-bit registers.
8248
9cf12d57
PA
82492016-07-26 Pedro Alves <palves@redhat.com>
8250
8251 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8252 to 'ptrace'.
8253
305450ed
TT
82542016-07-21 Tom Tromey <tom@tromey.com>
8255
8256 * configure: Rebuild.
8257
2583da7c
YQ
82582016-07-21 Yao Qi <yao.qi@linaro.org>
8259
8260 * mem-break.c (find_gdb_breakpoint): Cast bp to
8261 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8262
21536b36
YQ
82632016-07-21 Yao Qi <yao.qi@linaro.org>
8264
8265 * server.c (handle_v_requests): Support s and S actions
8266 if target_supports_software_single_step return true.
8267
8901d193
YQ
82682016-07-21 Yao Qi <yao.qi@linaro.org>
8269
8270 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8271 is resume_step, call maybe_hw_step.
8272 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8273 and unstop them.
8274 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8275 breakpoints or not.
8276 (proceed_one_lwp): If resume request is resume_step, install
8277 reinsert breakpoints and call maybe_hw_step.
8278
0e9a339e
YQ
82792016-07-21 Yao Qi <yao.qi@linaro.org>
8280
8281 * linux-low.c (proceed_one_lwp): Declare.
8282 (linux_resume_one_thread): Remove local variable 'step'.
8283 Lift code enqueue signal. Call proceed_one_lwp instead of
8284 linux_resume_one_lwp.
8285
4281b351
YQ
82862016-07-21 Yao Qi <yao.qi@linaro.org>
8287
8288 * linux-low.c (linux_resume_one_thread): Call
8289 enqueue_pending_signal.
8290
984a2c04
YQ
82912016-07-21 Yao Qi <yao.qi@linaro.org>
8292
8293 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8294 * inferiors.c (do_restore_current_thread_cleanup): New function.
8295 (make_cleanup_restore_current_thread): Likewise.
8296 * linux-low.c (install_software_single_step_breakpoints): Call
8297 make_cleanup_restore_current_thread. Switch current_thread to
8298 thread.
8299
bec903c9
YQ
83002016-07-21 Yao Qi <yao.qi@linaro.org>
8301
8302 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8303 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8304 (clone_one_breakpoint): Likewise.
8305 (delete_reinsert_breakpoints): Change parameter to thread.
8306 Callers updated.
8307 (has_reinsert_breakpoints): Likewise.
8308 (uninsert_reinsert_breakpoints): Likewise.
8309 (reinsert_reinsert_breakpoints): Likewise.
8310 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8311 (delete_reinsert_breakpoints): Likewise.
8312 (reinsert_reinsert_breakpoints): Likewise.
8313 (uninsert_reinsert_breakpoints): Likewise.
8314 (has_reinsert_breakpoints): Likewise.
8315
63c40ec7
YQ
83162016-07-21 Yao Qi <yao.qi@linaro.org>
8317
8318 * inferiors.c (get_thread_process): Make parameter const.
8319 * inferiors.h (get_thread_process): Update declaration.
8320 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8321 Add new parameters child_thread and parent_thread. Callers
8322 updated.
8323 * mem-break.h (clone_all_breakpoints): Update declaration.
8324
9aa76cd0
YQ
83252016-07-21 Yao Qi <yao.qi@linaro.org>
8326
8327 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8328 <command_list, handler>: Remove.
8329 (struct gdb_breakpoint): New.
8330 (struct other_breakpoint): New.
8331 (struct reinsert_breakpoint): New.
8332 (is_gdb_breakpoint): New function.
8333 (any_persistent_commands): Update command_list if
8334 is_gdb_breakpoint returns true.
8335 (set_breakpoint): Create breakpoints according to their types.
8336 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8337 (set_gdb_breakpoint_1): Likewise.
8338 (set_gdb_breakpoint): Likewise.
8339 (clear_breakpoint_conditions): Change parameter type to
8340 'struct gdb_breakpoint *'.
8341 (clear_breakpoint_commands): Likewise.
8342 (clear_breakpoint_conditions_and_commands): Likewise.
8343 (add_condition_to_breakpoint): Likewise.
8344 (add_breakpoint_condition): Likewise.
8345 (add_commands_to_breakpoint): Likewise.
8346 (check_breakpoints): Check other_breakpoint.
8347 (clone_one_breakpoint): Clone breakpopint according to its type.
8348 * mem-break.h (struct gdb_breakpoint): Declare.
8349 (set_gdb_breakpoint): Update declaration.
8350 (clear_breakpoint_conditions_and_commands): Likewise.
8351 (add_breakpoint_condition): Likewise.
8352 (add_breakpoint_commands): Likewise.
8353 * server.c (process_point_options): Change parameter type to
8354 'struct gdb_breakpoint *'.
8355
811f8301
YQ
83562016-07-21 Yao Qi <yao.qi@linaro.org>
8357
8358 * mem-break.c (set_breakpoint_at): Rename it to ...
8359 (set_breakpoint_type_at): ... it.
8360 (set_breakpoint_at): Call set_breakpoint_type_at.
8361 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8362 * mem-break.h (set_breakpoint_at): Update comments.
8363
b1c51e36
CLT
83642016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8365
8366 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8367 to buf parameter.
8368 (nios2_store_gregset): Likewise.
8369
ced2dffb
PA
83702016-07-01 Pedro Alves <palves@redhat.com>
8371 Antoine Tremblay <antoine.tremblay@ericsson.com>
8372
8373 * linux-low.c: Change interface to take the target lwp_info
8374 pointer directly and return void. Handle detaching from a zombie
8375 thread.
8376 (linux_detach_lwp_callback): New function.
8377 (linux_detach): Detach from the leader thread after detaching from
8378 the clone threads.
8379
2ac09a5b
YQ
83802016-06-28 Yao Qi <yao.qi@linaro.org>
8381
8382 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8383 for variable new_offset.
8384 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8385 (aarch64_ftrace_insn_reloc_cb): Likewise.
8386 (aarch64_ftrace_insn_reloc_tb): Likewise.
8387 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8388 PRIx64 instead of PRIx32.
8389
79e7fd4f
YQ
83902016-06-28 Yao Qi <yao.qi@linaro.org>
8391
8392 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8393 (the_low_target): Install arm_get_syscall_trapinfo.
8394
061fc021
YQ
83952016-06-28 Yao Qi <yao.qi@linaro.org>
8396
8397 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8398 function.
8399 (the_low_target): Install aarch64_get_syscall_trapinfo.
8400
4cc32bec
YQ
84012016-06-28 Yao Qi <yao.qi@linaro.org>
8402
8403 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8404 Callers updated.
8405 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8406 Remove parameter sysno.
8407 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8408 sysret.
8409
782c1122
AA
84102016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8411
8412 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8413 (s390_emit_ne_goto): Likewise.
8414 (s390_emit_lt_goto): Likewise.
8415 (s390_emit_le_goto): Likewise.
8416 (s390_emit_gt_goto): Likewise.
8417 (s390_emit_ge_goto): Likewise.
8418 (s390x_emit_eq_goto): Likewise.
8419 (s390x_emit_ne_goto): Likewise.
8420 (s390x_emit_lt_goto): Likewise.
8421 (s390x_emit_le_goto): Likewise.
8422 (s390x_emit_gt_goto): Likewise.
8423 (s390x_emit_ge_goto): Likewise.
8424 (s390_emit_ops_impl): Mark variable static.
8425 (s390x_emit_ops): Likewise.
8426
2e7b624b
YQ
84272016-06-17 Yao Qi <yao.qi@linaro.org>
8428
8429 * linux-low.c (handle_extended_wait): Call
8430 uninsert_reinsert_breakpoints for the parent process. Remove
8431 reinsert breakpoints from the child process. Reinsert them to
8432 the parent process when vfork is done.
8433 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8434 (reinsert_reinsert_breakpoints): New function.
8435 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8436 (reinsert_reinsert_breakpoints): Declare.
8437
8a81c5d7
YQ
84382016-06-17 Yao Qi <yao.qi@linaro.org>
8439
8440 * linux-low.c (handle_extended_wait): If the parent is doing
8441 step-over, remove the reinsert breakpoints from the forked child.
8442
f50bf8e5
YQ
84432016-06-17 Yao Qi <yao.qi@linaro.org>
8444
8445 * linux-low.c (unsuspend_all_lwps): Declare.
8446 (linux_low_filter_event): If thread exited, call finish_step_over.
8447 If step-over is finished, unsuspend other threads.
8448
8376a3cb
YQ
84492016-06-17 Yao Qi <yao.qi@linaro.org>
8450
8451 * linux-low.c (linux_resume_one_lwp_throw): Assert
8452 has_reinsert_breakpoints returns false.
8453 * mem-break.c (delete_disabled_breakpoints): Assert
8454 bp type isn't reinsert_breakpoint.
8455
f79b145d
YQ
84562016-06-17 Yao Qi <yao.qi@linaro.org>
8457
8458 * linux-low.c (maybe_hw_step): New function.
8459 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8460 (finish_step_over): Switch current_thread to lwp temporarily,
8461 and assert has_reinsert_breakpoints returns true.
8462 (proceed_one_lwp): Call maybe_hw_step.
8463 * mem-break.c (has_reinsert_breakpoints): New function.
8464 * mem-break.h (has_reinsert_breakpoints): Declare.
8465
0ae534d2
JT
84662016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8467
8468 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8469
fcdad592
YQ
84702016-05-17 Yao Qi <yao.qi@linaro.org>
8471
8472 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8473 instead of find_inferior.
8474
9e784964
YQ
84752016-05-05 Yao Qi <yao.qi@linaro.org>
8476
8477 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8478 Initialize res to zero.
8479
cf2ebb6e
YQ
84802016-05-05 Yao Qi <yao.qi@linaro.org>
8481
8482 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8483 to uint32_t.
8484
c1aebf87
UW
84852016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8486
8487 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8488 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8489 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8490
35fd2deb 84912016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8492 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8493
8494 * tracepoint.c (write_inferior_int8): New function.
8495 (cmd_qtenable_disable): Write enable flag using
8496 write_inferior_int8.
8497
484b3c32
YQ
84982016-04-25 Yao Qi <yao.qi@linaro.org>
8499
8500 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8501 (need_step_over_p): Return zero if the LWP has pending signals
8502 can be delivered on software single step target.
8503
85ba7d86
YQ
85042016-04-25 Yao Qi <yao.qi@linaro.org>
8505
8506 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8507 return instead of error.
8508
3539aa13
YQ
85092016-04-22 Yao Qi <yao.qi@linaro.org>
8510
8511 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8512 to 23.
8513
5b061e98
YQ
85142016-04-22 Yao Qi <yao.qi@linaro.org>
8515
8516 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8517 signal when stepping over breakpoint with software single
8518 step.
8519
3451269c
PA
85202016-04-21 Pedro Alves <palves@redhat.com>
8521
8522 * linux-s390-low.c (s390_collect_ptrace_register)
8523 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8524 add casts.
8525 (s390_check_regset): Use void * instead of gdb_byte *.
8526
a2358508
PA
85272016-04-20 Pedro Alves <palves@redhat.com>
8528
8529 * configure: Renegerate.
8530
6885166d
YQ
85312016-04-20 Yao Qi <yao.qi@linaro.org>
8532
8533 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8534 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8535 number 16.
8536 (arm_store_gregset): Likewise.
8537
2b863f51
WT
85382016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8539
8540 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8541 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8542 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8543 (amd64-avx-mpx-linux.c): New rules.
8544 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8545 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8546 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8547 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8548 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8549 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8550 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8551 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8552 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8553 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8554 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8555 * linux-x86-low.c (x86_linux_read_description): Add case for
8556 X86_XSTATE_AVX_MPX_MASK.
8557 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8558 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8559 init_registers_i386_avx_mpx_linux.
8560 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8561 (initialize_low_tracepoint): Call
8562 init_registers_i386_avx_mpx_linux.
8563 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8564 (initialize_low_tracepoint): Call
8565 init_registers_amd64_avx_mpx_linux.
8566 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8567 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8568 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8569 declarations.
8570
9b30624b
PA
85712016-04-18 Pedro Alves <palves@redhat.com>
8572
8573 * configure: Regenerate.
8574
45e3745e
AT
85752016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8576
8577 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8578 (aarch64_emit_sub): Likewise.
8579
2afc13ff
PA
85802016-04-12 Pedro Alves <palves@redhat.com>
8581
8582 * utils.c (prepare_to_throw_exception): Delete.
8583
6e774b13
SM
85842016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8585
8586 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8587
4dca19f8
MK
85882016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8589
8590 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8591
d0a9981f
MK
85922016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8593
8594 * linux-aarch64-ipa.c: Add <elf.h> include.
8595 * linux-ppc-ipa.c: Add <elf.h> include.
8596 * linux-s390-ipa.c: Add <elf.h> include.
8597
252db07e
MK
85982016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8599
8600 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8601 (get_raw_reg_ptr): Likewise.
8602 (get_trace_state_variable_value_ptr): Likewise.
8603 (set_trace_state_variable_value_ptr): Likewise.
8604 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8605 char *.
8606
14e2b6d9
MK
86072016-03-31 Wei-cheng Wang <cole945@gmail.com>
8608 Marcin Kościelnicki <koriakin@0x04.net>
8609
8610 PR/17221
8611 * linux-ppc-low.c (emit_insns): New function.
8612 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8613 (ppc_emit_prologue): New function.
8614 (ppc_emit_epilogue): New function.
8615 (ppc_emit_add): New function.
8616 (ppc_emit_sub): New function.
8617 (ppc_emit_mul): New function.
8618 (ppc_emit_lsh): New function.
8619 (ppc_emit_rsh_signed): New function.
8620 (ppc_emit_rsh_unsigned): New function.
8621 (ppc_emit_ext): New function.
8622 (ppc_emit_zero_ext): New function.
8623 (ppc_emit_log_not): New function.
8624 (ppc_emit_bit_and): New function.
8625 (ppc_emit_bit_or): New function.
8626 (ppc_emit_bit_xor): New function.
8627 (ppc_emit_bit_not): New function.
8628 (ppc_emit_equal): New function.
8629 (ppc_emit_less_signed): New function.
8630 (ppc_emit_less_unsigned): New function.
8631 (ppc_emit_ref): New function.
8632 (ppc_emit_const): New function.
8633 (ppc_emit_reg): New function.
8634 (ppc_emit_pop): New function.
8635 (ppc_emit_stack_flush): New function.
8636 (ppc_emit_swap): New function.
8637 (ppc_emit_stack_adjust): New function.
8638 (ppc_emit_call): New function.
8639 (ppc_emit_int_call_1): New function.
8640 (ppc_emit_void_call_2): New function.
8641 (ppc_emit_if_goto): New function.
8642 (ppc_emit_goto): New function.
8643 (ppc_emit_eq_goto): New function.
8644 (ppc_emit_ne_goto): New function.
8645 (ppc_emit_lt_goto): New function.
8646 (ppc_emit_le_goto): New function.
8647 (ppc_emit_gt_goto): New function.
8648 (ppc_emit_ge_goto): New function.
8649 (ppc_write_goto_address): New function.
8650 (ppc_emit_ops_impl): New static variable.
8651 (ppc64v1_emit_prologue): New function.
8652 (ppc64v2_emit_prologue): New function.
8653 (ppc64_emit_epilogue): New function.
8654 (ppc64_emit_add): New function.
8655 (ppc64_emit_sub): New function.
8656 (ppc64_emit_mul): New function.
8657 (ppc64_emit_lsh): New function.
8658 (ppc64_emit_rsh_signed): New function.
8659 (ppc64_emit_rsh_unsigned): New function.
8660 (ppc64_emit_ext): New function.
8661 (ppc64_emit_zero_ext): New function.
8662 (ppc64_emit_log_not): New function.
8663 (ppc64_emit_bit_and): New function.
8664 (ppc64_emit_bit_or): New function.
8665 (ppc64_emit_bit_xor): New function.
8666 (ppc64_emit_bit_not): New function.
8667 (ppc64_emit_equal): New function.
8668 (ppc64_emit_less_signed): New function.
8669 (ppc64_emit_less_unsigned): New function.
8670 (ppc64_emit_ref): New function.
8671 (ppc64_emit_const): New function.
8672 (ppc64v1_emit_reg): New function.
8673 (ppc64v2_emit_reg): New function.
8674 (ppc64_emit_pop): New function.
8675 (ppc64_emit_stack_flush): New function.
8676 (ppc64_emit_swap): New function.
8677 (ppc64v1_emit_call): New function.
8678 (ppc64v2_emit_call): New function.
8679 (ppc64v1_emit_int_call_1): New function.
8680 (ppc64v2_emit_int_call_1): New function.
8681 (ppc64v1_emit_void_call_2): New function.
8682 (ppc64v2_emit_void_call_2): New function.
8683 (ppc64_emit_if_goto): New function.
8684 (ppc64_emit_eq_goto): New function.
8685 (ppc64_emit_ne_goto): New function.
8686 (ppc64_emit_lt_goto): New function.
8687 (ppc64_emit_le_goto): New function.
8688 (ppc64_emit_gt_goto): New function.
8689 (ppc64_emit_ge_goto): New function.
8690 (ppc64v1_emit_ops_impl): New static variable.
8691 (ppc64v2_emit_ops_impl): New static variable.
8692 (ppc_emit_ops): New function.
8693 (linux_low_target): Wire in ppc_emit_ops.
8694
a2174ba4
MK
86952016-03-31 Wei-cheng Wang <cole945@gmail.com>
8696 Marcin Kościelnicki <koriakin@0x04.net>
8697
8698 PR/17221
8699 * Makefile.in: Add powerpc-*-ipa.o
8700 * configure.srv: Add ipa_obj for powerpc*-linux.
8701 * linux-ppc-ipa.c: New file.
8702 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8703 includes.
8704 (PPC_FIELD): New macro.
8705 (PPC_SEXT): New macro.
8706 (PPC_OP6): New macro.
8707 (PPC_BO): New macro.
8708 (PPC_LI): New macro.
8709 (PPC_BD): New macro.
8710 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8711 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8712 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8713 (ppc_get_thread_area): New function.
8714 (is_elfv2_inferior): New function.
8715 (gen_ds_form): New function.
8716 (GEN_STD): New macro.
8717 (GEN_STDU): New macro.
8718 (GEN_LD): New macro.
8719 (GEN_LDU): New macro.
8720 (gen_d_form): New function.
8721 (GEN_ADDI): New macro.
8722 (GEN_ADDIS): New macro.
8723 (GEN_LI): New macro.
8724 (GEN_LIS): New macro.
8725 (GEN_ORI): New macro.
8726 (GEN_ORIS): New macro.
8727 (GEN_LWZ): New macro.
8728 (GEN_STW): New macro.
8729 (GEN_STWU): New macro.
8730 (gen_xfx_form): New function.
8731 (GEN_MFSPR): New macro.
8732 (GEN_MTSPR): New macro.
8733 (GEN_MFCR): New macro.
8734 (GEN_MTCR): New macro.
8735 (GEN_SYNC): New macro.
8736 (GEN_LWSYNC): New macro.
8737 (gen_x_form): New function.
8738 (GEN_OR): New macro.
8739 (GEN_MR): New macro.
8740 (GEN_LWARX): New macro.
8741 (GEN_STWCX): New macro.
8742 (GEN_CMPW): New macro.
8743 (gen_md_form): New function.
8744 (GEN_RLDICL): New macro.
8745 (GEN_RLDICR): New macro.
8746 (gen_i_form): New function.
8747 (GEN_B): New macro.
8748 (GEN_BL): New macro.
8749 (gen_b_form): New function.
8750 (GEN_BNE): New macro.
8751 (GEN_LOAD): New macro.
8752 (GEN_STORE): New macro.
8753 (gen_limm): New function.
8754 (gen_atomic_xchg): New function.
8755 (gen_call): New function.
8756 (ppc_relocate_instruction): New function.
8757 (ppc_install_fast_tracepoint_jump_pad): New function.
8758 (ppc_get_min_fast_tracepoint_insn_len): New function.
8759 (ppc_get_ipa_tdesc_idx): New function.
8760 (the_low_target): Wire in the new functions.
8761 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8762 tdescs.
8763 * linux-ppc-tdesc.h: New file.
8764
a13c4696
MK
87652016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8766
8767 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8768 (alloc_jump_pad_buffer): New function.
8769 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8770 (alloc_jump_pad_buffer): New function.
8771 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8772 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8773 (alloc_jump_pad_buffer): New function.
8774 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8775 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8776 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8777 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8778
1cda1512
MK
87792016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8780
8781 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8782 * linux-amd64-ipa.c: Likewise.
8783 * linux-i386-ipa.c: Likewise.
8784 * linux-s390-ipa.c: Likewise.
8785 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8786 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8787 set_trace_state_variable_value_ptr.
8788 (struct ipa_sym_addresses): Likewise.
8789 (symbol_list): Likewise.
8790 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8791 accessing gdb_collect directly.
8792 (gdb_collect_ptr_type): New typedef.
8793 (get_raw_reg_ptr_type): New typedef.
8794 (get_trace_state_variable_value_ptr_type): New typedef.
8795 (set_trace_state_variable_value_ptr_type): New typedef.
8796 (gdb_collect_ptr): New global.
8797 (get_raw_reg_ptr): New global.
8798 (get_trace_state_variable_value_ptr): New global.
8799 (set_trace_state_variable_value_ptr): New global.
8800 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8801 accessing get_raw_reg directly.
8802 (get_get_tsv_func_addr): Likewise for
8803 get_trace_state_variable_value_ptr.
8804 (get_set_tsv_func_addr): Likewise for
8805 set_trace_state_variable_value_ptr.
8806 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8807
72fb5488
SM
88082016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8809
8810 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8811
28170b88
MK
88122016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8813
8814 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8815 packets.
8816 (relocate_instruction): Remove own_buf.
8817 * server.c (own_buf): Make global.
8818 (handle_v_requests): Make global.
8819 * server.h (own_buf): New declaration.
8820 (handle_v_requests): New prototype.
8821
f39e8743
MK
88222016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8823
8824 PR 18377
8825 * linux-s390-low.c (add_insns): New function.
8826 (s390_emit_prologue): New function.
8827 (s390_emit_epilogue): New function.
8828 (s390_emit_add): New function.
8829 (s390_emit_sub): New function.
8830 (s390_emit_mul): New function.
8831 (s390_emit_lsh): New function.
8832 (s390_emit_rsh_signed): New function.
8833 (s390_emit_rsh_unsigned): New function.
8834 (s390_emit_ext): New function.
8835 (s390_emit_log_not): New function.
8836 (s390_emit_bit_and): New function.
8837 (s390_emit_bit_or): New function.
8838 (s390_emit_bit_xor): New function.
8839 (s390_emit_bit_not): New function.
8840 (s390_emit_equal): New function.
8841 (s390_emit_less_signed): New function.
8842 (s390_emit_less_unsigned): New function.
8843 (s390_emit_ref): New function.
8844 (s390_emit_if_goto): New function.
8845 (s390_emit_goto): New function.
8846 (s390_write_goto_address): New function.
8847 (s390_emit_litpool): New function.
8848 (s390_emit_const): New function.
8849 (s390_emit_call): New function.
8850 (s390_emit_reg): New function.
8851 (s390_emit_pop): New function.
8852 (s390_emit_stack_flush): New function.
8853 (s390_emit_zero_ext): New function.
8854 (s390_emit_swap): New function.
8855 (s390_emit_stack_adjust): New function.
8856 (s390_emit_set_r2): New function.
8857 (s390_emit_int_call_1): New function.
8858 (s390_emit_void_call_2): New function.
8859 (s390_emit_eq_goto): New function.
8860 (s390_emit_ne_goto): New function.
8861 (s390_emit_lt_goto): New function.
8862 (s390_emit_le_goto): New function.
8863 (s390_emit_gt_goto): New function.
8864 (s390_emit_ge_goto): New function.
8865 (s390x_emit_prologue): New function.
8866 (s390x_emit_epilogue): New function.
8867 (s390x_emit_add): New function.
8868 (s390x_emit_sub): New function.
8869 (s390x_emit_mul): New function.
8870 (s390x_emit_lsh): New function.
8871 (s390x_emit_rsh_signed): New function.
8872 (s390x_emit_rsh_unsigned): New function.
8873 (s390x_emit_ext): New function.
8874 (s390x_emit_log_not): New function.
8875 (s390x_emit_bit_and): New function.
8876 (s390x_emit_bit_or): New function.
8877 (s390x_emit_bit_xor): New function.
8878 (s390x_emit_bit_not): New function.
8879 (s390x_emit_equal): New function.
8880 (s390x_emit_less_signed): New function.
8881 (s390x_emit_less_unsigned): New function.
8882 (s390x_emit_ref): New function.
8883 (s390x_emit_if_goto): New function.
8884 (s390x_emit_const): New function.
8885 (s390x_emit_call): New function.
8886 (s390x_emit_reg): New function.
8887 (s390x_emit_pop): New function.
8888 (s390x_emit_stack_flush): New function.
8889 (s390x_emit_zero_ext): New function.
8890 (s390x_emit_swap): New function.
8891 (s390x_emit_stack_adjust): New function.
8892 (s390x_emit_int_call_1): New function.
8893 (s390x_emit_void_call_2): New function.
8894 (s390x_emit_eq_goto): New function.
8895 (s390x_emit_ne_goto): New function.
8896 (s390x_emit_lt_goto): New function.
8897 (s390x_emit_le_goto): New function.
8898 (s390x_emit_gt_goto): New function.
8899 (s390x_emit_ge_goto): New function.
8900 (s390_emit_ops): New function.
8901 (struct linux_target_ops): Fill in emit_ops hook.
8902
abd9baf9
MK
89032016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8904
8905 PR 18377
8906 * Makefile.in: Add s390 IPA files.
8907 * configure.srv: Build IPA for s390.
8908 * linux-s390-ipa.c: New file.
8909 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8910 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8911 (tdesc_s390_linux32): Likewise.
8912 (init_registers_s390_linux32v1): Likewise.
8913 (tdesc_s390_linux32v1): Likewise.
8914 (init_registers_s390_linux32v2): Likewise.
8915 (tdesc_s390_linux32v2): Likewise.
8916 (init_registers_s390_linux64): Likewise.
8917 (tdesc_s390_linux64): Likewise.
8918 (init_registers_s390_linux64v1): Likewise.
8919 (tdesc_s390_linux64v1): Likewise.
8920 (init_registers_s390_linux64v2): Likewise.
8921 (tdesc_s390_linux64v2): Likewise.
8922 (init_registers_s390_te_linux64): Likewise.
8923 (tdesc_s390_te_linux64): Likewise.
8924 (init_registers_s390_vx_linux64): Likewise.
8925 (tdesc_s390_vx_linux64): Likewise.
8926 (init_registers_s390_tevx_linux64): Likewise.
8927 (tdesc_s390_tevx_linux64): Likewise.
8928 (init_registers_s390x_linux64): Likewise.
8929 (tdesc_s390x_linux64): Likewise.
8930 (init_registers_s390x_linux64v1): Likewise.
8931 (tdesc_s390x_linux64v1): Likewise.
8932 (init_registers_s390x_linux64v2): Likewise.
8933 (tdesc_s390x_linux64v2): Likewise.
8934 (init_registers_s390x_te_linux64): Likewise.
8935 (tdesc_s390x_te_linux64): Likewise.
8936 (init_registers_s390x_vx_linux64): Likewise.
8937 (tdesc_s390x_vx_linux64): Likewise.
8938 (init_registers_s390x_tevx_linux64): Likewise.
8939 (tdesc_s390x_tevx_linux64): Likewise.
8940 (have_hwcap_s390_vx): New static variable.
8941 (s390_arch_setup): Fill have_hwcap_s390_vx.
8942 (s390_get_thread_area): New function.
8943 (s390_ft_entry_gpr_esa): New const.
8944 (s390_ft_entry_gpr_zarch): New const.
8945 (s390_ft_entry_misc): New const.
8946 (s390_ft_entry_fr): New const.
8947 (s390_ft_entry_vr): New const.
8948 (s390_ft_main_31): New const.
8949 (s390_ft_main_64): New const.
8950 (s390_ft_exit_fr): New const.
8951 (s390_ft_exit_vr): New const.
8952 (s390_ft_exit_misc): New const.
8953 (s390_ft_exit_gpr_esa): New const.
8954 (s390_ft_exit_gpr_zarch): New const.
8955 (append_insns): New function.
8956 (s390_relocate_instruction): New function.
8957 (s390_install_fast_tracepoint_jump_pad): New function.
8958 (s390_get_min_fast_tracepoint_insn_len): New function.
8959 (s390_get_ipa_tdesc_idx): New function.
8960 (struct linux_target_ops): Wire in the above functions.
8961 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8962 * linux-s390-tdesc.h: New file.
8963
a4105d04
MK
89642016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8965
8966 * linux-s390-low.c (s390_supports_tracepoints): New function.
8967 (struct linux_target_ops): Fill supports_tracepoints hook.
8968
35ac8b3e
YQ
89692016-03-18 Yao Qi <yao.qi@linaro.org>
8970
8971 * linux-low.c (lwp_signal_can_be_delivered): New function.
8972 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8973
94610ec4
YQ
89742016-03-18 Yao Qi <yao.qi@linaro.org>
8975
8976 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8977 0 if signal is enqueued. Remove 'signal' from one debugging
8978 message. Move one debugging message to some lines below.
8979 Remove code setting 'signal' to 0.
8980
80aea927
YQ
89812016-03-18 Yao Qi <yao.qi@linaro.org>
8982
8983 * linux-low.c (linux_low_filter_event): Remove redundant
8984 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8985
b04fd3be
MK
89862016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8987
8988 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8989 (struct linux_target_ops): Wire in the above.
8990
c40c8d4b
YQ
89912016-03-03 Yao Qi <yao.qi@linaro.org>
8992
8993 * linux-low.c: Update comments to start_step_over.
8994
0f8288ae
YQ
89952016-03-03 Yao Qi <yao.qi@linaro.org>
8996
8997 PR server/19736
8998 * linux-low.c (handle_extended_wait): Set child suspended
8999 if event_lwp->bp_reinsert isn't zero.
9000
fdbd04a8
YQ
90012016-03-02 Yao Qi <yao.qi@linaro.org>
9002
9003 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9004 enqueue_pending_signal.
9005
6896a8fa
MK
90062016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9007
9008 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9009 is actually loaded.
9010
ab503087
MK
90112016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9012
9013 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9014 (s390_regmap_3264) [!__s390x__]: New global.
9015 (s390_collect_ptrace_register): Skip map entries containing -1.
9016 (s390_supply_ptrace_register): Ditto.
9017 (s390_fill_gprs_high): New function.
9018 (s390_store_gprs_high): New function.
9019 (s390_regsets): Add NT_S390_HIGH_GPRS.
9020 (s390_get_hwcap): Enable on 31-bit.
9021 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9022 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9023 Detect NT_S390_HIGH_GPRS.
9024 (s390_usrregs_info_3264): Enable on 31-bit.
9025 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9026 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9027
ae91f625
MK
90282016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9029
9030 PR gdb/13808
9031 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9032 * configure.srv: Ditto.
9033 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9034 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9035 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9036 (init_registers_amd64_linux): Remove prototype.
9037 (tdesc_amd64_linux): Remove declaration.
9038 (get_ipa_tdesc): New function.
9039 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9040 initialize remaining tdescs.
9041 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9042 (init_registers_i386_linux): Remove prototype.
9043 (tdesc_i386_linux): Remove declaration.
9044 (get_ipa_tdesc): New function.
9045 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9046 initialize remaining tdescs.
9047 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9048 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9049 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9050 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9051 (x86_get_ipa_tdesc_idx): New function.
9052 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9053 * linux-x86-tdesc.h: New file.
9054 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9055 (target_get_ipa_tdesc_idx): New macro.
9056 * tracepoint.c (ipa_tdesc_idx): New macro.
9057 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9058 (symbol_list): Add ipa_tdesc_idx.
9059 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9060 (ipa_tdesc): Remove.
9061 (ipa_tdesc_idx): New variable.
9062 (get_context_regcache): Use get_ipa_tdesc.
9063 (gdb_collect): Ditto.
9064 (gdb_probe): Ditto.
9065 * tracepoint.h (get_ipa_tdesc): New prototype.
9066 (ipa_tdesc): Remove.
9067
e7ad2f14
PA
90682016-02-24 Pedro Alves <palves@redhat.com>
9069
9070 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9071 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9072 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9073 Factor out common code between the USE_SIGTRAP_SIGINFO and
9074 !USE_SIGTRAP_SIGINFO blocks.
9075 (linux_low_filter_event): Call save_stop_reason instead of
9076 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9077 Update comments.
9078 (linux_wait_1): Update comments.
9079
657f9cde
WW
90802016-02-24 Wei-cheng Wang <cole945@gmail.com>
9081
9082 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9083 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9084 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9085 ppc_insert_point, ppc_remove_point.
9086
b00b61e1
MK
90872016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9088
9089 * linux-s390-low.c (s390_supports_z_point_type): New function.
9090 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9091
553cb527
YQ
90922016-02-16 Yao Qi <yao.qi@linaro.org>
9093
9094 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9095 PC. Get pc from regcache_read_pc.
9096
a5652c21
YQ
90972016-02-12 Yao Qi <yao.qi@linaro.org>
9098
9099 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9100 or linux_get_pc_32bit.
9101 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9102
ed443b61
YQ
91032016-02-12 Yao Qi <yao.qi@linaro.org>
9104
9105 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9106 arm_linux_get_next_pcs_fixup.
9107
020ecd38
MK
91082016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9109
9110 * tracepoint.c (x_tracepoint_action_download): Change
9111 write_inferior_data_ptr to write_inferior_data_pointer.
9112 (cmd_qtstart): Likewise.
9113 (write_inferior_data_ptr): Remove.
9114 (download_agent_expr): Change write_inferior_data_ptr to
9115 write_inferior_data_pointer.
9116 (download_tracepoint_1): Likewise.
9117 (download_tracepoint): Likewise.
9118 (download_trace_state_variables): Likewise.
9119
7cae9051
WW
91202016-02-11 Wei-cheng Wang <cole945@gmail.com>
9121 Marcin Kościelnicki <koriakin@0x04.net>
9122
9123 * tracepoint.c (struct tracepoint_action_ops): Remove.
9124 (struct tracepoint_action): Remove ops.
9125 (m_tracepoint_action_download, r_tracepoint_action_download)
9126 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9127 size and offset accordingly.
9128 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9129 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9130 (tracepoint_action_send, tracepoint_action_download): New functions.
9131 Helpers for trace action handlers.
9132 (add_tracepoint_action): Remove setup actions ops.
9133 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9134
9f6a71b4
YQ
91352016-02-10 Yao Qi <yao.qi@linaro.org>
9136
9137 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9138
1e94266c
SM
91392016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9140
9141 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9142 to AC_OUTPUT.
9143 * configure: Regenerate.
9144
8adce034
SM
91452016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9146
9147 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9148 void * to gdb_byte *.
9149 * linux-low.c (siginfo_fixup): Likewise.
9150 (linux_xfer_siginfo): Likewise.
9151 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9152 Likewise.
9153 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9154
93813b37
WT
91552016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9156
9157 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9158 to srv_tgtobj.
9159 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9160 to srv_tgtobj.
9161 * linux-x86-low.c [__x86_64__]: Include
9162 "nat/amd64-linux-siginfo.h".
9163 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9164 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9165 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9166 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9167 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9168 (cpt_si_fd, si_timerid, si_overrun): Move from
9169 nat/amd64-linux-siginfo.c.
9170 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9171
8424cc97
SM
91722016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9173
9174 * server.c (skip_to_semicolon): Remove.
9175 (process_point_options): Use strchrnul instead of
9176 skip_to_semicolon.
9177
4d18591b
YQ
91782016-01-26 Yao Qi <yao.qi@linaro.org>
9179
9180 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9181 * linux-low.c (install_software_single_step_breakpoints): Don't
9182 call regcache_read_pc.
9183 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9184 argument pc.
9185
d8020970
YQ
91862016-01-26 Yao Qi <yao.qi@linaro.org>
9187
9188 * linux-low.c (install_software_single_step_breakpoints): Call
9189 regcache_read_pc instead of get_pc.
9190
8b207339
YQ
91912016-01-26 Yao Qi <yao.qi@linaro.org>
9192
9193 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9194 (unblock_async_io): Rename to ...
9195 (block_unblock_async_io): ... it. New function.
9196 (enable_async_io): Don't install SIGIO handler. Unblock it
9197 instead.
9198 (disable_async_io): Don't ignore SIGIO. Block it instead.
9199 (initialize_async_io): Install SIGIO handler. Don't call
9200 unblock_async_io.
9201
18879fef
YQ
92022016-01-26 Yao Qi <yao.qi@linaro.org>
9203
9204 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9205 first character is '\003', call *the_target->request_interrupt.
9206
a0f8e08a
YQ
92072016-01-25 Yao Qi <yao.qi@linaro.org>
9208
9209 * remote-utils.c (new_thread_notify): Remove.
9210 (dead_thread_notify): Likewise.
9211 * remote-utils.h (new_thread_notify): Remove declaration.
9212 (dead_thread_notify): Likewise.
9213
cc5fd9ab
MK
92142016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9215
9216 * gdb.trace/pending.exp: Fix expected message on continue.
9217
99e8eb11
MK
92182016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9219
9220 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9221 it works properly on big-endian machines where sizeof (CORE_ADDR)
9222 != sizeof (void *).
9223
a994041d
PA
92242016-01-21 Pedro Alves <palves@redhat.com>
9225
9226 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9227 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9228 * configure: Regenerate.
9229
f7a6a40d
YQ
92302016-01-21 Yao Qi <yao.qi@linaro.org>
9231
9232 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9233 is_thumb and set it according to CPSR saved on the stack.
9234 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9235 arm_sigreturn_next_pc.
9236
6f69e520
YQ
92372016-01-18 Yao Qi <yao.qi@linaro.org>
9238
9239 * linux-low.c (linux_set_pc_64bit): New function.
9240 (linux_get_pc_64bit): New function.
9241 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9242 Declare.
9243 * linux-sparc-low.c (debug_threads): Remove declaration.
9244 (sparc_get_pc): Remove.
9245 (the_low_target): Use linux_get_pc_64bit instead of
9246 sparc_get_pc.
9247 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9248 (the_low_target): Use linux_get_pc_64bit and
9249 linux_set_pc_64bit.
9250
276d4552
YQ
92512016-01-18 Yao Qi <yao.qi@linaro.org>
9252
9253 * linux-arm-low.c (debug_threads): Remove declaration.
9254 (arm_get_pc, arm_set_pc): Remove.
9255 (the_low_target): Use linux_get_pc_32bit and
9256 linux_set_pc_32bit.
9257 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9258 (the_low_target): Use linux_get_pc_32bit and
9259 linux_set_pc_32bit.
9260 * linux-cris-low.c (debug_threads): Remove declaration.
9261 (cris_get_pc, cris_set_pc,): Remove.
9262 (the_low_target): Use linux_get_pc_32bit and
9263 linux_set_pc_32bit.
9264 * linux-crisv32-low.c (debug_threads): Remove declaration.
9265 (cris_get_pc, cris_set_pc): Remove.
9266 (the_low_target): Use linux_get_pc_32bit and
9267 linux_set_pc_32bit.
9268 * linux-low.c: Include inttypes.h.
9269 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9270 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9271 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9272 (the_low_target): Use linux_get_pc_32bit and
9273 linux_set_pc_32bit.
9274 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9275 (the_low_target): Use linux_get_pc_32bit and
9276 linux_set_pc_32bit.
9277 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9278 (the_low_target): Use linux_get_pc_32bit and
9279 linux_set_pc_32bit.
9280 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9281 (the_low_target): Use linux_get_pc_32bit and
9282 linux_set_pc_32bit.
9283 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9284 (the_low_target): Use linux_get_pc_32bit and
9285 linux_set_pc_32bit.
9286
eb0edac8
GB
92872016-01-18 Gary Benson <gbenson@redhat.com>
9288
9289 * configure.ac (AC_FUNC_FORK): New check.
9290 * config.in: Regenerate.
9291 * configure: Likewise.
9292
1b451dda
YQ
92932016-01-14 Yao Qi <yao.qi@linaro.org>
9294
9295 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9296 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9297 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9298 arm_get_next_pcs_ctor.
9299
82075af2
JS
93002016-01-12 Josh Stone <jistone@redhat.com>
9301 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9302
9303 * inferiors.h: Include "gdb_vecs.h".
9304 (struct process_info): Add syscalls_to_catch.
9305 * inferiors.c (remove_process): Free syscalls_to_catch.
9306 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9307 syscall_return stops.
9308 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9309 * server.c (handle_general_set): Handle QCatchSyscalls.
9310 (handle_query): Report support for QCatchSyscalls.
9311 * target.h (struct target_ops): Add supports_catch_syscall.
9312 (target_supports_catch_syscall): New macro.
9313 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9314 (struct lwp_info): Add syscall_state.
9315 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9316 Maintain syscall_state and syscalls_to_catch across exec.
9317 (get_syscall_trapinfo): New function, proxy to the_low_target.
9318 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9319 (linux_low_filter_event): Toggle syscall_state entry/return for
9320 syscall traps, and set it ignored for all others.
9321 (gdb_catching_syscalls_p): New function.
9322 (gdb_catch_this_syscall_p): New function.
9323 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9324 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9325 (linux_supports_catch_syscall): New function.
9326 (linux_target_ops): Install it.
9327 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9328 (the_low_target): Install it.
9329
8f13a3ce
MF
93302016-01-12 Mike Frysinger <vapier@gentoo.org>
9331
9332 * acinclude.m4: Include new ../warning.m4 file.
9333 * configure: Regenerated.
9334 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9335
5b3da067
MF
93362016-01-12 Mike Frysinger <vapier@gentoo.org>
9337
9338 * ax.c (is_goto_target): Mark static.
9339 * linux-low.c (register_addr): Likewise.
9340 (linux_fetch_registers, linux_store_registers): Likewise.
9341 * mem-break.c (any_persistent_commands): Fix old prototype.
9342 (add_commands_to_breakpoint): Mark static.
9343 * regcache.c (find_register_by_name): Delete unused func.
9344 * remote-utils.c (hex_or_minus_one): Mark static.
9345 * server.c (monitor_show_help): Mark static.
9346 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9347 handle_v_requests): Likewise.
9348
bc504a31
PA
93492016-01-12 Pedro Alves <palves@redhat.com>
9350
9351 Remove use of the registered trademark symbol throughout.
9352
5a0dd67a
YQ
93532016-01-08 Yao Qi <yao.qi@linaro.org>
9354
9355 * remote-utils.c (getpkt): If c is '\003', call target hook
9356 request_interrupt.
9357
b2ca446f
YQ
93582016-01-06 Yao Qi <yao.qi@linaro.org>
9359
9360 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9361 linux-aarch32-low.c.
9362 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9363 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9364 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9365 (thumb2_breakpoint): Declare.
9366 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9367 linux-aarch32-low.h.
9368 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9369 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9370 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9371
edd88788
JB
93722016-01-01 Joel Brobecker <brobecker@adacore.com>
9373
9374 * gdbreplay.c (gdbreplay_version): Change copyright year in
9375 version message.
9376 * server.c (gdbserver_version): Likewise.
9377
65da7f14
PP
93782015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9379
9380 * server.c (crc32_table): Delete.
9381 (crc32): Use libiberty's xcrc32 function.
9382
4abd5ed2
JB
93832015-12-22 Joel Brobecker <brobecker@adacore.com>
9384
9385 * lynx-low.c (lynx_delete_thread_callback): New function.
9386 (lynx_mourn): Properly delete our process and all of its
9387 threads. Remove call to clear_inferiors.
9388
0e50fe5c
JB
93892015-12-22 Joel Brobecker <brobecker@adacore.com>
9390
9391 * target.c (thread_search_callback): Add check that
9392 the thread_stopped target callback is not NULL before
9393 calling it.
9394
35adc03f
YQ
93952015-12-21 Yao Qi <yao.qi@linaro.org>
9396
9397 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9398 arm breakpoint.
9399
bd2b2909
AT
94002015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9401
9402 * server.c (handle_query): Call target_supports_software_single_step.
9403
7fe5e27e
AT
94042015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9405
9406 * linux-low.c (single_step): New function.
9407 (linux_resume_one_lwp_throw): Call single_step.
9408 (start_step_over): Likewise.
9409
d9311bfa
AT
94102015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9411
9412 * Makefile.in (SFILES): Append arch/arm-linux.c,
9413 arch/arm-get-next-pcs.c.
9414 (arm-linux.o): New rule.
9415 (arm-get-next-pcs.o): New rule.
9416 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9417 arm-linux.o.
9418 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9419 to linux-aarch32-low.c.
9420 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9421 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9422 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9423 (thumb2_breakpoint_len): Likewise.
9424 (arm_is_thumb_mode): Make non-static.
9425 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9426 from linux-aarch32-low.c.
9427 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9428 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9429 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9430 (thumb2_breakpoint_len): Likewise.
9431 (arm_is_thumb_mode): New declaration.
9432 * linux-arm-low.c: Include arch/arm-linux.h
9433 aarch/arm-get-next-pcs.h, sys/syscall.h.
9434 (get_next_pcs_ops): New struct.
9435 (get_next_pcs_addr_bits_remove): New function.
9436 (get_next_pcs_is_thumb): New function.
9437 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9438 (arm_sigreturn_next_pc): Likewise.
9439 (get_next_pcs_syscall_next_pc): Likewise.
9440 (arm_gdbserver_get_next_pcs): Likewise.
9441 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9442 Initialize.
9443 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9444 * server.h: Include gdb_vecs.h.
9445
68ce2059
AT
94462015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9447
9448 * Makefile.in (SFILES): Append common/common-regcache.c.
9449 (OBS): Append common-regcache.o.
9450 (common-regcache.o): New rule.
9451 * regcache.c (init_register_cache): Initialize cache to
9452 REG_UNAVAILABLE.
9453 (regcache_raw_read_unsigned): New function.
9454 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9455 register_status enum.
9456
fa5308bd
AT
94572015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9458
9459 * linux-aarch64-low.c (the_low_targets): Rename
9460 breakpoint_reinsert_addr to get_next_pcs.
9461 * linux-arm-low.c (the_low_targets): Likewise.
9462 * linux-bfin-low.c (the_low_targets): Likewise.
9463 * linux-cris-low.c (the_low_targets): Likewise.
9464 * linux-crisv32-low.c (the_low_targets): Likewise.
9465 * linux-low.c (can_software_single_step): Likewise.
9466 (install_software_single_step_breakpoints): New function.
9467 (start_step_over): Use install_software_single_step_breakpoints.
9468 * linux-low.h: New CORE_ADDR vector.
9469 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9470 get_next_pcs.
9471 * linux-mips-low.c (the_low_targets): Likewise.
9472 * linux-nios2-low.c (the_low_targets): Likewise.
9473 * linux-sparc-low.c (the_low_targets): Likewise.
9474
4a6ed09b
PA
94752015-12-17 Pedro Alves <palves@redhat.com>
9476
9477 * linux-low.c (linux_kill_one_lwp): Remove references to
9478 LinuxThreads.
9479 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9480 to 'kill'.
9481 (linux_init_signals): Delete.
9482 (initialize_low): Adjust.
9483 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9484
7544db95
PA
94852015-12-16 Pedro Alves <palves@redhat.com>
9486
9487 * configure.ac (compiler warning flags): When testing a
9488 -Wno-foo option, check whether -Wfoo works instead.
9489 * configure: Regenerate.
9490
8020350c
DB
94912015-12-11 Don Breazeal <donb@codesourcery.com>
9492
9493 * server.c (process_serial_event): Don't exit from gdbserver
9494 in remote mode if there are still active inferiors.
9495
db91f502
YQ
94962015-12-11 Yao Qi <yao.qi@linaro.org>
9497
9498 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9499 arm_breakpoint_at if the process is 32-bit.
9500
b37a6290
YQ
95012015-12-11 Yao Qi <yao.qi@linaro.org>
9502
9503 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9504 arm breakpoint.
9505
17b1509a
YQ
95062015-12-07 Yao Qi <yao.qi@linaro.org>
9507
9508 * configure.srv: Append arm.o to srv_tgtobj for
9509 aarch64*-*-linux* target.
9510 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9511 from linux-arm-low.c.
9512 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9513 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9514 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9515 (thumb2_breakpoint_len): Likewise.
9516 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9517 (arm_breakpoint_kinds): Likewise.
9518 (arm_breakpoint_kind_from_pc): Likewise.
9519 (arm_sw_breakpoint_from_kind): Likewise.
9520 (arm_breakpoint_kind_from_current_state): Likewise.
9521 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9522 (arm_sw_breakpoint_from_kind): Declare.
9523 (arm_breakpoint_kind_from_current_state): Declare.
9524 (arm_breakpoint_at): Declare.
9525 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9526 arm_sw_breakpoint_from_kind if process is 32-bit.
9527 (aarch64_breakpoint_kind_from_pc): New function.
9528 (aarch64_breakpoint_kind_from_current_state): New function.
9529 (the_low_target): Initialize fields breakpoint_kind_from_pc
9530 and breakpoint_kind_from_current_state.
9531 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9532 linux-aarch32-low.c.
9533 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9534 (arm_breakpoint, arm_breakpoint_len): Likewise.
9535 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9536 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9537 (arm_is_thumb_mode): Likewise.
9538 (arm_breakpoint_at): Likewise.
9539 (arm_breakpoint_kind_from_pc): Likewise.
9540 (arm_sw_breakpoint_from_kind): Likewise.
9541 (arm_breakpoint_kind_from_current_state): Likewise.
9542
9543 Revert:
9544 2015-08-04 Yao Qi <yao.qi@linaro.org>
9545
9546 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9547 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9548 * server.c (extended_protocol): Remove "static".
9549 * server.h (extended_protocol): Declare it.
9550
ece66d65
JS
95512015-12-04 Josh Stone <jistone@redhat.com>
9552
9553 * target.h (struct target_ops) <arch_setup>: Rename to ...
9554 (struct target_ops) <post_create_inferior>: ... this.
9555 (target_arch_setup): Rename to ...
9556 (target_post_create_inferior): ... this, calling post_create_inferior.
9557 * server.c (start_inferior): Update target_arch_setup calls to
9558 target_post_create_inferior.
9559 * linux-low.c (linux_low_ptrace_options): Forward declare.
9560 (linux_arch_setup): Update its comment for general use.
9561 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9562 (struct linux_target_ops): Use linux_post_create_inferior.
9563 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9564 to post_create_inferior.
9565 * nto-low.c (struct nto_target_ops): Likewise.
9566 * spu-low.c (struct spu_target_ops): Likewise.
9567 * win32-low.c (struct win32_target_ops): Likewise.
9568
e58c48b4
AT
95692015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9570
9571 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9572
fbec8956
AT
95732015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9574
9575 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9576 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9577 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9578 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9579 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9580 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9581 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9582 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9583 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9584 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9585 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9586 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9587
9b4c5f87
AT
95882015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9589
9590 * linux-low.c (linux_look_up_symbols): Don't call
9591 linux_supports_traceclone.
9592 * linux-low.h (thread_db_init): Remove use_events argument.
9593 * thread-db.c (thread_db_use_event): Remove global variable.
9594 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9595 (struct thread_db) <td_create_bp>: Remove field.
9596 (thread_db_create_event): Remove function.
9597 (thread_db_enable_reporting): Likewise.
9598 (find_one_thread): Don't check for thread_db_use_events.
9599 (attach_thread): Likewise.
9600 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9601 (try_thread_db_load_1): Don't check for thread_db_use_events.
9602 (thread_db_init): Remove use_events argument and thread events
9603 handling.
9604 (remove_thread_event_breakpoints): Remove function.
9605 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9606
7d00775e
AT
96072015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9608
9609 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9610 New function.
9611 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9612 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9613 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9614 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9615 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9616 Initialize.
9617 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9618 New function.
9619 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9620 * linux-low.c (can_hardware_single_step): Use
9621 supports_hardware_single_step.
9622 (can_software_single_step): New function.
9623 (start_step_over): Call can_software_single_step.
9624 (linux_supports_hardware_single_step): New function.
9625 (struct target_ops) <supports_software_single_step>: Initialize.
9626 * linux-low.h (struct linux_target_ops)
9627 <supports_hardware_single_step>: Initialize.
9628 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9629 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9630 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9631 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9632 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9633 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9634 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9635 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9636 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9637 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9638 Initialize.
9639 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9640 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9641 Initialize.
9642 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9643 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9644 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9645 New function.
9646 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9647 * target.h (struct target_ops): <supports_software_single_step>:
9648 New field.
9649 (target_supports_software_single_step): New macro.
9650
2d97cd35
AT
96512015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9652
9653 * linux-low.c (linux_wait_1): Fix pc advance condition.
9654 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9655 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9656
769ef81f
AT
96572015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9658
9659 * linux-arm-low.c (arm_is_thumb_mode): New function.
9660 (arm_breakpoint_at): Use arm_is_thumb_mode.
9661 (arm_breakpoint_kind_from_current_state): New function.
9662 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9663 Initialize.
9664 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9665 (linux_breakpoint_kind_from_current_state): New function.
9666 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9667 * linux-low.h (struct linux_target_ops)
9668 <breakpoint_kind_from_current_state>: New field.
9669 * target.h (struct target_ops): Likewise.
9670 (target_breakpoint_kind_from_current_state): New macro.
9671
1bebeeca
PA
96722015-11-30 Pedro Alves <palves@redhat.com>
9673
9674 * linux-low.c (linux_resume): Wake up the event loop before
9675 returning.
9676
a67a9fae
PA
96772015-11-30 Pedro Alves <palves@redhat.com>
9678
9679 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9680 check.
9681 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9682 to -1.
9683 * target.c (struct thread_search): New structure.
9684 (thread_search_callback): New function.
9685 (prev_general_thread): New global.
9686 (prepare_to_access_memory, done_accessing_memory): New functions.
9687 * target.h (prepare_to_access_memory, done_accessing_memory):
9688 Replace macros with function declarations.
9689
f2faf941
PA
96902015-11-30 Pedro Alves <palves@redhat.com>
9691
9692 PR 14618
9693 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9694 report TARGET_WAITKIND_NO_RESUMED.
9695 * remote-utils.c (prepare_resume_reply): Handle
9696 TARGET_WAITKIND_NO_RESUMED.
9697 * server.c (report_no_resumed): New global.
9698 (handle_query) <qSupported>: Handle "no-resumed+". Report
9699 "no-resumed+" support.
9700 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9701 return error if the client doesn't support no-resumed events.
9702 (push_stop_notification): New function.
9703 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9704 events if the client supports them.
9705
a681f9c9
PA
97062015-11-30 Pedro Alves <palves@redhat.com>
9707
9708 * linux-low.c (thread_still_has_status_pending_p): Don't check
9709 vCont;t here.
9710 (lwp_resumed): New function.
9711 (status_pending_p_callback): Return early if the LWP is not
9712 supposed to be resumed.
9713
65706a29
PA
97142015-11-30 Pedro Alves <palves@redhat.com>
9715
9716 * linux-low.c (handle_extended_wait): Assert that the LWP's
9717 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9718 thread create events, leave the new child's status pending.
9719 (linux_low_filter_event): If GDB wants to hear about thread exit
9720 events, leave the LWP marked dead and don't delete it.
9721 (linux_wait_for_event_filtered): Don't check for thread exit.
9722 (filter_exit_event): New function.
9723 (linux_wait_1): Use it, when returning an exit event.
9724 (linux_resume_one_lwp_throw): Assert that the LWP's
9725 waitstatus is TARGET_WAITKIND_IGNORE.
9726 * remote-utils.c (prepare_resume_reply): Handle
9727 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9728 * server.c (report_thread_events): New global.
9729 (handle_general_set): Handle QThreadEvents.
9730 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9731 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9732 TARGET_WAITKIND_THREAD_EXITED.
9733 * server.h (report_thread_events): Declare.
9734
56cf4bed
PA
97352015-11-30 Pedro Alves <palves@redhat.com>
9736
9737 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9738 the thread's last_resume_kind was resume_stop.
9739
500c1d85
PA
97402015-11-30 Pedro Alves <palves@redhat.com>
9741
9742 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9743 before returning.
9744
de979965
PA
97452015-11-30 Pedro Alves <palves@redhat.com>
9746
9747 * server.c (handle_v_requests): Handle vCtrlC.
9748
34c65914
PA
97492015-11-30 Pedro Alves <palves@redhat.com>
9750
9751 * gdbthread.h (find_any_thread_of_pid): Declare.
9752 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9753 functions.
9754 * server.c (handle_query): If current_thread is NULL, look for
9755 another thread of the selected process.
9756
79efa585 97572015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9758 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9759
9760 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9761 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9762 name in reply.
9763 * target.h (struct target_ops) <thread_name>: New field.
9764 (target_thread_name): New macro.
9765
80d82c19
JB
97662015-11-23 Joel Brobecker <brobecker@adacore.com>
9767
9768 * regcache.h (regcache_invalidate_pid): Add declaration.
9769 * regcache.c (regcache_invalidate_pid): New function, extracted
9770 from regcache_invalidate.
9771 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9772 Add trivial documentation comment.
9773 * lynx-low.c: Use regcache_invalidate_pid instead of
9774 regcache_invalidate.
9775
64da5dd5
JB
97762015-11-23 Joel Brobecker <brobecker@adacore.com>
9777
9778 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9779 and Elf64_auxv_t if the target is Android.
9780
37ce4055
DE
97812015-11-22 Doug Evans <xdje42@gmail.com>
9782
9783 * target.h: #include <sys/types.h>.
9784
06e03fff
PA
97852015-11-19 Pedro Alves <palves@redhat.com>
9786
9787 * linux-low.c (linux_process_qsupported): Change prototype.
9788 Adjust.
9789 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9790 Change prototype.
9791 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9792 and adjust to loop over all features.
9793 * server.c (handle_query) <qSupported>: Adjust to call
9794 target_process_qsupported once, passing it a vector of unprocessed
9795 features.
9796 * target.h (struct target_ops) <process_qsupported>: Change
9797 prototype.
9798 (target_process_qsupported): Adjust.
9799
9a084706
PA
98002015-11-19 Pedro Alves <palves@redhat.com>
9801
9802 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9803 mode.
9804 * configure: Regenerate.
9805
dad44a1f
PA
98062015-11-19 Pedro Alves <palves@redhat.com>
9807
9808 * configure: Regenerate.
9809
231c0592
YQ
98102015-11-19 Yao Qi <yao.qi@linaro.org>
9811
9812 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9813 type to uint32_t.
9814
6c1c9a8b
YQ
98152015-11-19 Yao Qi <yao.qi@linaro.org>
9816
9817 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9818 (struct aarch64_operand): Move enum out.
9819
9caa3311
YQ
98202015-11-19 Yao Qi <yao.qi@linaro.org>
9821
9822 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9823 struct user_fpsimd_state *.
9824 (aarch64_store_fpregset): Likewise.
9825
6a69a054
YQ
98262015-11-19 Yao Qi <yao.qi@linaro.org>
9827
9828 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9829 struct user_pt_regs *.
9830 (aarch64_store_gregset): Likewise.
9831
1798301e
PA
98322015-11-18 Pedro Alves <palves@redhat.com>
9833
9834 * Makefile.in (all_object_files): Add $IPA_OBJS.
9835
ce7715e2
PA
98362015-11-17 Pedro Alves <palves@redhat.com>
9837
9838 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9839 GDB_SIGNAL_0 and gdb_signal_to_string.
9840
c0879059
PA
98412015-11-17 Pedro Alves <palves@redhat.com>
9842
9843 * win32-low.c (handle_output_debug_string): Remove parameter.
9844 (win32_kill): Remove our_status local and adjust call to
9845 handle_output_debug_string.
9846 (get_child_debug_event): Adjust call to
9847 handle_output_debug_string.
9848
1996e237
SM
98492015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9850
9851 * linux-mips-low.c (mips_fill_gregset): Add cast.
9852 (mips_store_gregset): Likewise.
9853 (mips_fill_fpregset): Likewise.
9854 (mips_store_fpregset): Likewise.
9855
cbec665b
SM
98562015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9857
9858 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9859 priv.
9860
eb3e3c67
SM
98612015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9862
9863 * linux-mips-low.c (mips_linux_new_thread): Change type of
9864 watch_type to enum target_hw_bp_type.
9865
171de4b8
SM
98662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9867
9868 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9869 Change return type to arm_hwbp_type.
9870
04248ead
SM
98712015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9872
9873 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9874 (arm_store_gregset): Likewise.
9875 * linux-arm-low.c (arm_get_hwcap): Likewise.
9876 (arm_read_description): Likewise.
9877
04b3479c
SM
98782015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9879
9880 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9881
2bc84e8a
SM
98822015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9883
9884 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9885 (ppc_fill_vsxregset): Likewise.
9886 (ppc_store_vsxregset): Likewise.
9887 (ppc_fill_vrregset): Likewise.
9888 (ppc_store_vrregset): Likewise.
9889 (ppc_fill_evrregset): Likewise.
9890 (ppc_store_evrregset): Likewise.
9891
e6c5bb05
SM
98922015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9893
9894 * linux-ppc-low.c (ppc_usrregs_info): Remove
9895 forward-declaration.
9896 (ppc_arch_setup): Move lower in file.
9897
7ea45d72
SM
98982015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9899
9900 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9901 (ps_pdwrite): Likewise.
9902
69291610
HW
99032015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9904
9905 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9906 to after assert checks.
9907
b42945fd
SM
99082015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9909
9910 * proc-service.c (ps_pdread): Add/adjust casts.
9911 (ps_pdwrite): Add/adjust casts.
9912
d6f85c84
SM
99132015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9914
9915 * server.c (handle_search_memory_1): Cast return value of
9916 memmem.
9917
f98cd059
SM
99182015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9919
9920 * server.c (write_qxfer_response): Change type of data to
9921 gdb_byte *.
9922
d2412fa5
PA
99232015-10-29 Pedro Alves <palves@redhat.com>
9924
9925 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9926
c17414a2
PA
99272015-10-29 Pedro Alves <palves@redhat.com>
9928
9929 * tracepoint.c (clear_installed_tracepoints): Add casts.
9930
e053fbc4
PA
99312015-10-29 Pedro Alves <palves@redhat.com>
9932
9933 * server.c (handle_v_cont, process_serial_event): Add enum
9934 gdb_signal casts to signal parsing code.
9935
add67df8
PA
99362015-10-29 Pedro Alves <palves@redhat.com>
9937
9938 * linux-low.h (NULL_REGSET): Define.
9939 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9940 * linux-arm-low.c (arm_regsets): Likewise.
9941 * linux-crisv32-low.c (cris_regsets): Likewise.
9942 * linux-m68k-low.c (m68k_regsets): Likewise.
9943 * linux-mips-low.c (mips_regsets): Likewise.
9944 * linux-nios2-low.c (nios2_regsets): Likewise.
9945 * linux-ppc-low.c (ppc_regsets): Likewise.
9946 * linux-s390-low.c (s390_regsets): Likewise.
9947 * linux-sh-low.c (sh_regsets): Likewise.
9948 * linux-sparc-low.c (sparc_regsets): Likewise.
9949 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9950 * linux-tile-low.c (tile_regsets): Likewise.
9951 * linux-x86-low.c (x86_regsets): Likewise.
9952 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9953
50bc912a
PA
99542015-10-29 Pedro Alves <palves@redhat.com>
9955
9956 * linux-low.h (NULL_REGSET): Define.
9957 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9958 * linux-arm-low.c (arm_regsets): Likewise.
9959 * linux-crisv32-low.c (cris_regsets): Likewise.
9960 * linux-m68k-low.c (m68k_regsets): Likewise.
9961 * linux-mips-low.c (mips_regsets): Likewise.
9962 * linux-nios2-low.c (nios2_regsets): Likewise.
9963 * linux-ppc-low.c (ppc_regsets): Likewise.
9964 * linux-s390-low.c (s390_regsets): Likewise.
9965 * linux-sh-low.c (sh_regsets): Likewise.
9966 * linux-sparc-low.c (sparc_regsets): Likewise.
9967 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9968 * linux-tile-low.c (tile_regsets): Likewise.
9969 * linux-x86-low.c (x86_regsets): Likewise.
9970 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9971
682b2546
DE
99722015-10-26 Doug Evans <dje@google.com>
9973
9974 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9975
963843d4
DE
99762015-10-26 Doug Evans <dje@google.com>
9977
9978 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9979
d41401ac
DE
99802015-10-26 Doug Evans <dje@google.com>
9981
9982 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9983 for debug_printf.
9984 (attach_thread, find_new_threads_callback): Ditto.
9985
3db28855
AT
99862015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9987
9988 * mem-break.h (set_breakpoint_data): Remove.
9989
fb78e89c
AT
99902015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9991
9992 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9993 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9994 (initialize_low): Remove set_breakpoint_data call.
9995 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9996 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9997 (initialize_low): Remove set_breakpoint_data call.
9998 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9999 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10000 (initialize_low): Remove set_breakpoint_data call.
10001
2e6ee069
AT
100022015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10003
10004 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10005 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10006 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10007 * target.h (target_breakpoint_kind_from_pc): New macro.
10008
1652a986
AT
100092015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10010
10011 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10012 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10013 the default breakpoint kind.
10014
abeead09
AT
100152015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10016
10017 * linux-arm-low.c (arm_supports_z_point_type): Add software
10018 breakpoint support.
10019
b0b4b501
AT
100202015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10021
10022 * linux-arm-low.c: Refactor breakpoint definitions.
10023 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10024 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10025
8689682c
AT
100262015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10027
10028 * Makefile.in: Add arm.c/o.
10029 * configure.srv: Likewise.
10030 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10031 (arm_breakpoint_kind_from_pc): New function.
10032 (arm_sw_breakpoint_from_kind): Return proper kind.
10033 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10034
27165294
AT
100352015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10036
10037 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10038 removal.
10039 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10040 (struct raw_breakpoint) <size>: Remove.
10041 (struct raw_breakpoint) <kind>: Add.
10042 (bp_size): New function.
10043 (bp_opcode): Likewise.
10044 (find_raw_breakpoint_at): Adjust for kind.
10045 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10046 (remove_memory_breakpoint): Adjust for kind call bp_size.
10047 (set_raw_breakpoint_at): Adjust for kind.
10048 (set_breakpoint): Likewise.
10049 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10050 (delete_raw_breakpoint): Adjust for kind.
10051 (delete_breakpoint): Likewise.
10052 (find_gdb_breakpoint): Likewise.
10053 (set_gdb_breakpoint_1): Likewise.
10054 (set_gdb_breakpoint): Likewise.
10055 (delete_gdb_breakpoint_1): Likewise.
10056 (delete_gdb_breakpoint): Likewise.
10057 (uninsert_raw_breakpoint): Likewise.
10058 (reinsert_raw_breakpoint): Likewise.
10059 (set_breakpoint_data): Remove.
10060 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10061 (check_mem_read): Adjust for kind call bp_size.
10062 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10063 (clone_one_breakpoint): Adjust for kind.
10064 * mem-break.h (set_gdb_breakpoint): Likewise.
10065 (delete_gdb_breakpoint): Likewise.
10066 * server.c (process_serial_event): Likewise.
10067
dd373349
AT
100682015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10069
10070 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10071 (struct linux_target_ops) <breakpoint>: Remove.
10072 (struct linux_target_ops) <breakpoint_len>: Remove.
10073 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10074 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10075 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10076 (arm_sw_breakpoint_from_kind): New function.
10077 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10078 (struct linux_target_ops) <breakpoint>: Remove.
10079 (struct linux_target_ops) <breakpoint_len>: Remove.
10080 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10081 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10082 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10083 (struct linux_target_ops) <breakpoint>: Remove.
10084 (struct linux_target_ops) <breakpoint_len>: Remove.
10085 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10086 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10087 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10088 (struct linux_target_ops) <breakpoint>: Remove.
10089 (struct linux_target_ops) <breakpoint_len>: Remove.
10090 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10091 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10092 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10093 and sw_breakpoint_from_kind to increment the pc.
10094 (linux_breakpoint_kind_from_pc): New function.
10095 (linux_sw_breakpoint_from_kind): New function.
10096 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10097 (initialize_low): Call breakpoint_kind_from_pc and
10098 sw_breakpoint_from_kind to replace breakpoint_data/len.
10099 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10100 New field.
10101 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10102 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10103 (struct linux_target_ops) <breakpoint>: Remove.
10104 (struct linux_target_ops) <breakpoint_len>: Remove.
10105 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10106 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10107 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10108 (struct linux_target_ops) <breakpoint>: Remove.
10109 (struct linux_target_ops) <breakpoint_len>: Remove.
10110 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10111 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10112 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10113 (struct linux_target_ops) <breakpoint>: Remove.
10114 (struct linux_target_ops) <breakpoint_len>: Remove.
10115 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10116 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10117 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10118 (struct linux_target_ops) <breakpoint>: Remove.
10119 (struct linux_target_ops) <breakpoint_len>: Remove.
10120 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10121 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10122 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10123 (struct linux_target_ops) <breakpoint>: Remove.
10124 (struct linux_target_ops) <breakpoint_len>: Remove.
10125 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10126 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10127 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10128 (struct linux_target_ops) <breakpoint>: Remove.
10129 (struct linux_target_ops) <breakpoint_len>: Remove.
10130 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10131 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10132 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10133 (struct linux_target_ops) <breakpoint>: Remove.
10134 (struct linux_target_ops) <breakpoint_len>: Remove.
10135 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10136 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10137 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10138 (struct linux_target_ops) <breakpoint>: Remove.
10139 (struct linux_target_ops) <breakpoint_len>: Remove.
10140 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10141 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10142 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10143 (struct linux_target_ops) <breakpoint>: Remove.
10144 (struct linux_target_ops) <breakpoint_len>: Remove.
10145 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10146 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10147 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10148 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10149 (struct linux_target_ops) <breakpoint>: Remove.
10150 (struct linux_target_ops) <breakpoint_len>: Remove.
10151 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10152 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10153 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10154 (struct linux_target_ops) <breakpoint>: Remove.
10155 (struct linux_target_ops) <breakpoint_len>: Remove.
10156 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10157 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10158
4cd98a19
AT
101592015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10160
10161 * linux-cris-low.c (cris_get_pc): Remove void arg.
10162
774ee6d2
AR
101632015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10164
10165 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10166 variable name.
10167
833dcd29
AR
101682015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10169
10170 * inferiors.c (thread_pid_matches_callback): New function.
10171 (find_thread_process): New function.
10172 (remove_thread): Reset current_thread.
10173 (remove_process): Assert threads have been removed first.
10174
8d689ee5
YQ
101752015-10-15 Yao Qi <yao.qi@linaro.org>
10176
10177 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10178 if it is 3.
10179 (aarch64_remove_point): Likewise.
10180 * regcache.c (regcache_register_size): New function.
10181
1c2e1515
YQ
101822015-10-12 Yao Qi <yao.qi@linaro.org>
10183
10184 * linux-aarch64-low.c: Update all callers as emit_load_store
10185 is renamed to aarch64_emit_load_store.
10186
e1c587c3
YQ
101872015-10-12 Yao Qi <yao.qi@linaro.org>
10188
10189 * linux-aarch64-low.c: Update all callers of function renaming
10190 from emit_insn to aarch64_emit_insn.
10191
b6542f81
YQ
101922015-10-12 Yao Qi <yao.qi@linaro.org>
10193
10194 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10195 arch/aarch64-insn.h.
10196 (struct aarch64_memory_operand): Likewise.
10197 (ENCODE): Likewise.
10198 (emit_insn): Move to arch/aarch64-insn.c.
10199 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10200 (emit_load_store): Move to arch/aarch64-insn.c.
10201 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10202 (can_encode_int32): Remove.
10203
246994ce
YQ
102042015-10-12 Yao Qi <yao.qi@linaro.org>
10205
10206 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10207 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10208 (aarch64_relocate_instruction): Likewise.
10209 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10210 (struct aarch64_insn_visitor): Likewise.
10211
0badd99f
YQ
102122015-10-12 Yao Qi <yao.qi@linaro.org>
10213
10214 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10215 (struct aarch64_insn_visitor): New.
10216 (struct aarch64_insn_relocation_data): New.
10217 (aarch64_ftrace_insn_reloc_b): New function.
10218 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10219 (aarch64_ftrace_insn_reloc_cb): Likewise.
10220 (aarch64_ftrace_insn_reloc_tb): Likewise.
10221 (aarch64_ftrace_insn_reloc_adr): Likewise.
10222 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10223 (aarch64_ftrace_insn_reloc_others): Likewise.
10224 (visitor): New.
10225 (aarch64_relocate_instruction): Use visitor.
10226
dfaffe9d
YQ
102272015-10-12 Yao Qi <yao.qi@linaro.org>
10228
10229 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10230 int. Add argument buf.
10231 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10232 aarch64_relocate_instruction.
10233
70b439f0
YQ
102342015-10-12 Yao Qi <yao.qi@linaro.org>
10235
10236 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10237 argument insn. Remove local variable insn. Don't call
10238 target_read_uint32.
10239 (aarch64_install_fast_tracepoint_jump_pad): Call
10240 target_read_uint32.
10241
7781c06f
YQ
102422015-09-30 Yao Qi <yao.qi@linaro.org>
10243
10244 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10245 (emit_load_store_pair): Likewise.
10246
9a3c8263
SM
102472015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10248
10249 * dll.c (match_dll): Add cast(s).
10250 (unloaded_dll): Likewise.
10251 * linux-low.c (second_thread_of_pid_p): Likewise.
10252 (delete_lwp_callback): Likewise.
10253 (count_events_callback): Likewise.
10254 (select_event_lwp_callback): Likewise.
10255 (linux_set_resume_request): Likewise.
10256 * server.c (accumulate_file_name_length): Likewise.
10257 (emit_dll_description): Likewise.
10258 (handle_qxfer_threads_worker): Likewise.
10259 (visit_actioned_threads): Likewise.
10260 * thread-db.c (any_thread_of): Likewise.
10261 * tracepoint.c (same_process_p): Likewise.
10262 (match_blocktype): Likewise.
10263 (build_traceframe_info_xml): Likewise.
10264
224c3ddb
SM
102652015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10266
10267 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10268 assignment.
10269 (gdb_unparse_agent_expr): Likewise.
10270 * hostio.c (require_data): Likewise.
10271 (handle_pread): Likewise.
10272 * linux-low.c (disable_regset): Likewise.
10273 (fetch_register): Likewise.
10274 (store_register): Likewise.
10275 (get_dynamic): Likewise.
10276 (linux_qxfer_libraries_svr4): Likewise.
10277 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10278 (set_fast_tracepoint_jump): Likewise.
10279 (uninsert_fast_tracepoint_jumps_at): Likewise.
10280 (reinsert_fast_tracepoint_jumps_at): Likewise.
10281 (validate_inserted_breakpoint): Likewise.
10282 (clone_agent_expr): Likewise.
10283 * regcache.c (init_register_cache): Likewise.
10284 * remote-utils.c (putpkt_binary_1): Likewise.
10285 (decode_M_packet): Likewise.
10286 (decode_X_packet): Likewise.
10287 (look_up_one_symbol): Likewise.
10288 (relocate_instruction): Likewise.
10289 (monitor_output): Likewise.
10290 * server.c (handle_search_memory): Likewise.
10291 (handle_qxfer_exec_file): Likewise.
10292 (handle_qxfer_libraries): Likewise.
10293 (handle_qxfer): Likewise.
10294 (handle_query): Likewise.
10295 (handle_v_cont): Likewise.
10296 (handle_v_run): Likewise.
10297 (captured_main): Likewise.
10298 * target.c (write_inferior_memory): Likewise.
10299 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10300 * tracepoint.c (init_trace_buffer): Likewise.
10301 (add_tracepoint_action): Likewise.
10302 (add_traceframe): Likewise.
10303 (add_traceframe_block): Likewise.
10304 (cmd_qtdpsrc): Likewise.
10305 (cmd_qtdv): Likewise.
10306 (cmd_qtstatus): Likewise.
10307 (response_source): Likewise.
10308 (response_tsv): Likewise.
10309 (cmd_qtnotes): Likewise.
10310 (gdb_collect): Likewise.
10311 (initialize_tracepoint): Likewise.
10312
afbe19f8
PL
103132015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10314
10315 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10316 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10317 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10318 <NOP>: New.
10319 (enum aarch64_condition_codes): New enum.
10320 (w0): New static global.
10321 (fp): Likewise.
10322 (lr): Likewise.
10323 (struct aarch64_memory_operand) <type>: New
10324 MEMORY_OPERAND_POSTINDEX type.
10325 (postindex_memory_operand): New helper function.
10326 (emit_ret): New function.
10327 (emit_load_store_pair): New function, factored out of emit_stp
10328 with support for MEMORY_OPERAND_POSTINDEX.
10329 (emit_stp): Rewrite using emit_load_store_pair.
10330 (emit_ldp): New function.
10331 (emit_load_store): Likewise.
10332 (emit_ldr): Mention post-index instruction in comment.
10333 (emit_ldrh): New function.
10334 (emit_ldrb): New function.
10335 (emit_ldrsw): Mention post-index instruction in comment.
10336 (emit_str): Likewise.
10337 (emit_subs): New function.
10338 (emit_cmp): Likewise.
10339 (emit_and): Likewise.
10340 (emit_orr): Likewise.
10341 (emit_orn): Likewise.
10342 (emit_eor): Likewise.
10343 (emit_mvn): Likewise.
10344 (emit_lslv): Likewise.
10345 (emit_lsrv): Likewise.
10346 (emit_asrv): Likewise.
10347 (emit_mul): Likewise.
10348 (emit_sbfm): Likewise.
10349 (emit_sbfx): Likewise.
10350 (emit_ubfm): Likewise.
10351 (emit_ubfx): Likewise.
10352 (emit_csinc): Likewise.
10353 (emit_cset): Likewise.
10354 (emit_nop): Likewise.
10355 (emit_ops_insns): New helper function.
10356 (emit_pop): Likewise.
10357 (emit_push): Likewise.
10358 (aarch64_emit_prologue): New function.
10359 (aarch64_emit_epilogue): Likewise.
10360 (aarch64_emit_add): Likewise.
10361 (aarch64_emit_sub): Likewise.
10362 (aarch64_emit_mul): Likewise.
10363 (aarch64_emit_lsh): Likewise.
10364 (aarch64_emit_rsh_signed): Likewise.
10365 (aarch64_emit_rsh_unsigned): Likewise.
10366 (aarch64_emit_ext): Likewise.
10367 (aarch64_emit_log_not): Likewise.
10368 (aarch64_emit_bit_and): Likewise.
10369 (aarch64_emit_bit_or): Likewise.
10370 (aarch64_emit_bit_xor): Likewise.
10371 (aarch64_emit_bit_not): Likewise.
10372 (aarch64_emit_equal): Likewise.
10373 (aarch64_emit_less_signed): Likewise.
10374 (aarch64_emit_less_unsigned): Likewise.
10375 (aarch64_emit_ref): Likewise.
10376 (aarch64_emit_if_goto): Likewise.
10377 (aarch64_emit_goto): Likewise.
10378 (aarch64_write_goto_address): Likewise.
10379 (aarch64_emit_const): Likewise.
10380 (aarch64_emit_call): Likewise.
10381 (aarch64_emit_reg): Likewise.
10382 (aarch64_emit_pop): Likewise.
10383 (aarch64_emit_stack_flush): Likewise.
10384 (aarch64_emit_zero_ext): Likewise.
10385 (aarch64_emit_swap): Likewise.
10386 (aarch64_emit_stack_adjust): Likewise.
10387 (aarch64_emit_int_call_1): Likewise.
10388 (aarch64_emit_void_call_2): Likewise.
10389 (aarch64_emit_eq_goto): Likewise.
10390 (aarch64_emit_ne_goto): Likewise.
10391 (aarch64_emit_lt_goto): Likewise.
10392 (aarch64_emit_le_goto): Likewise.
10393 (aarch64_emit_gt_goto): Likewise.
10394 (aarch64_emit_ge_got): Likewise.
10395 (aarch64_emit_ops_impl): New static global variable.
10396 (aarch64_emit_ops): New target function, return
10397 &aarch64_emit_ops_impl.
10398 (struct linux_target_ops): Install it.
10399
bb903df0
PL
104002015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10401
10402 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10403 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10404 aarch64-ipa.o.
10405 * linux-aarch64-ipa.c: New file.
10406 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10407 and endian.h.
10408 (aarch64_get_thread_area): New target method.
10409 (extract_signed_bitfield): New helper function.
10410 (aarch64_decode_ldr_literal): New function.
10411 (enum aarch64_opcodes): New enum.
10412 (struct aarch64_register): New struct.
10413 (struct aarch64_operand): New struct.
10414 (x0): New static global.
10415 (x1): Likewise.
10416 (x2): Likewise.
10417 (x3): Likewise.
10418 (x4): Likewise.
10419 (w2): Likewise.
10420 (ip0): Likewise.
10421 (sp): Likewise.
10422 (xzr): Likewise.
10423 (aarch64_register): New helper function.
10424 (register_operand): Likewise.
10425 (immediate_operand): Likewise.
10426 (struct aarch64_memory_operand): New struct.
10427 (offset_memory_operand): New helper function.
10428 (preindex_memory_operand): Likewise.
10429 (enum aarch64_system_control_registers): New enum.
10430 (ENCODE): New macro.
10431 (emit_insn): New helper function.
10432 (emit_b): New function.
10433 (emit_bcond): Likewise.
10434 (emit_cb): Likewise.
10435 (emit_tb): Likewise.
10436 (emit_blr): Likewise.
10437 (emit_stp): Likewise.
10438 (emit_ldp_q_offset): Likewise.
10439 (emit_stp_q_offset): Likewise.
10440 (emit_load_store): Likewise.
10441 (emit_ldr): Likewise.
10442 (emit_ldrsw): Likewise.
10443 (emit_str): Likewise.
10444 (emit_ldaxr): Likewise.
10445 (emit_stxr): Likewise.
10446 (emit_stlr): Likewise.
10447 (emit_data_processing_reg): Likewise.
10448 (emit_data_processing): Likewise.
10449 (emit_add): Likewise.
10450 (emit_sub): Likewise.
10451 (emit_mov): Likewise.
10452 (emit_movk): Likewise.
10453 (emit_mov_addr): Likewise.
10454 (emit_mrs): Likewise.
10455 (emit_msr): Likewise.
10456 (emit_sevl): Likewise.
10457 (emit_wfe): Likewise.
10458 (append_insns): Likewise.
10459 (can_encode_int32_in): New helper function.
10460 (aarch64_relocate_instruction): New function.
10461 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10462 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10463 (struct linux_target_ops): Install aarch64_get_thread_area,
10464 aarch64_install_fast_tracepoint_jump_pad and
10465 aarch64_get_min_fast_tracepoint_insn_len.
10466
787749ea
PL
104672015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10468
10469 * Makefile.in (aarch64-insn.o): New rule.
10470 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10471
9812b2e6
YQ
104722015-09-21 Yao Qi <yao.qi@linaro.org>
10473
10474 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10475
18fe412b
YQ
104762015-09-21 Yao Qi <yao.qi@linaro.org>
10477
10478 * tracepoint.c (max_jump_pad_size): Remove.
10479
a0cc84cd
YQ
104802015-09-18 Yao Qi <yao.qi@linaro.org>
10481
10482 * linux-aarch64-low.c: Don't include sys/uio.h.
10483 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10484
d78908cf
WW
104852015-09-16 Wei-cheng Wang <cole945@gmail.com>
10486
10487 * tracepoint.c (eval_result_type): Change prototype.
10488 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10489
d57e0d50
PA
104902015-09-15 Pedro Alves <palves@redhat.com>
10491
10492 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10493 Check whether to report exec events instead of checking whether
10494 multiprocess is enabled.
10495
5a676acc
PA
104962015-09-15 Pedro Alves <palves@redhat.com>
10497
10498 PR remote/18965
10499 * remote-utils.c (prepare_resume_reply): Merge
10500 TARGET_WAITKIND_VFORK_DONE switch case with the
10501 TARGET_WAITKIND_FORKED case.
10502
7c5d0fad
YQ
105032015-09-15 Yao Qi <yao.qi@linaro.org>
10504
10505 * server.c (handle_query): Check string comparison using
10506 "else if" instead of "if".
10507
750ce8d1
YQ
105082015-09-15 Yao Qi <yao.qi@linaro.org>
10509
10510 * server.c (vCont_supported): New global variable.
10511 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10512 matches. Append ";vContSupported+" to own_buf.
10513 (handle_v_requests): Append ";s;S" to own_buf if target supports
10514 hardware single step or vCont_supported is false.
10515 (capture_main): Set vCont_supported to zero.
10516
70b90b91
YQ
105172015-09-15 Yao Qi <yao.qi@linaro.org>
10518
10519 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10520 it to ...
10521 (linux_supports_hardware_single_step): ... New function.
10522 (linux_target_ops): Update.
10523 * lynx-low.c (lynx_target_ops): Set field
10524 supports_hardware_single_step to target_can_do_hardware_single_step.
10525 * nto-low.c (nto_target_ops): Likewise.
10526 * spu-low.c (spu_target_ops): Likewise.
10527 * win32-low.c (win32_target_ops): Likewise.
10528 * target.c (target_can_do_hardware_single_step): New function.
10529 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10530 Remove. <supports_hardware_single_step>: New field.
10531 (target_supports_conditional_breakpoints): Remove.
10532 (target_supports_hardware_single_step): New macro.
10533 (target_can_do_hardware_single_step): Declare.
10534 * server.c (handle_query): Use target_supports_hardware_single_step
10535 instead of target_supports_conditional_breakpoints.
10536
ade90bde
YQ
105372015-09-15 Yao Qi <yao.qi@linaro.org>
10538
10539 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10540 function.
10541 (struct linux_target_ops the_low_target): Install
10542 aarch64_linux_siginfo_fixup.
10543
94585166
DB
105442015-09-11 Don Breazeal <donb@codesourcery.com>
10545 Luis Machado <lgustavo@codesourcery.com>
10546
10547 * linux-low.c (linux_mourn): Static declaration.
10548 (linux_arch_setup): Move in front of
10549 handle_extended_wait.
10550 (linux_arch_setup_thread): New function.
10551 (handle_extended_wait): Handle exec events. Call
10552 linux_arch_setup_thread. Make event_lwp argument a
10553 pointer-to-a-pointer.
10554 (check_zombie_leaders): Do not check stopped threads.
10555 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10556 (linux_low_filter_event): Add lwp and thread for exec'ing
10557 non-leader thread if leader thread has been deleted.
10558 Refactor code into linux_arch_setup_thread and call it.
10559 Pass child lwp pointer by reference to handle_extended_wait.
10560 (linux_wait_for_event_filtered): Update comment.
10561 (linux_wait_1): Prevent clobbering exec event status.
10562 (linux_supports_exec_events): New function.
10563 (linux_target_ops) <supports_exec_events>: Initialize new member.
10564 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10565 new member.
10566 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10567 * server.c (report_exec_events): New global variable.
10568 (handle_query): Handle qSupported query for exec-events feature.
10569 (captured_main): Initialize report_exec_events.
10570 * server.h (report_exec_events): Declare new global variable.
10571 * target.h (struct target_ops) <supports_exec_events>: New
10572 member.
10573 (target_supports_exec_events): New macro.
10574 * win32-low.c (win32_target_ops) <supports_exec_events>:
10575 Initialize new member.
10576
0568462b
MM
105772015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10578
10579 * linux-low.c (linux_low_enable_btrace): Remove.
10580 (linux_target_ops): Replace linux_low_enable_btrace with
10581 linux_enable_btrace.
10582
39edd165
YQ
105832015-09-03 Yao Qi <yao.qi@linaro.org>
10584
10585 * linux-aarch64-low.c (aarch64_insert_point): Call
10586 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10587 returns true.
10588
1db33b5a
UW
105892015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10590
10591 * linux-low.c (check_stopped_by_breakpoint): Use
10592 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10593
ab290430
PA
105942015-08-27 Pedro Alves <palves@redhat.com>
10595
10596 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10597
8d749320
SM
105982015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10599
6711b7f8
SM
10600 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10601 the XNEW-family equivalent.
8d749320
SM
10602 (compile_bytecodes): Likewise.
10603 * dll.c (loaded_dll): Likewise.
10604 * event-loop.c (append_callback_event): Likewise.
10605 (create_file_handler): Likewise.
10606 (create_file_event): Likewise.
10607 * hostio.c (handle_open): Likewise.
10608 * inferiors.c (add_thread): Likewise.
10609 (add_process): Likewise.
10610 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10611 * linux-arm-low.c (arm_new_process): Likewise.
10612 (arm_new_thread): Likewise.
10613 * linux-low.c (add_to_pid_list): Likewise.
10614 (linux_add_process): Likewise.
10615 (handle_extended_wait): Likewise.
10616 (add_lwp): Likewise.
10617 (enqueue_one_deferred_signal): Likewise.
10618 (enqueue_pending_signal): Likewise.
10619 (linux_resume_one_lwp_throw): Likewise.
10620 (linux_resume_one_thread): Likewise.
10621 (linux_read_memory): Likewise.
10622 (linux_write_memory): Likewise.
10623 * linux-mips-low.c (mips_linux_new_process): Likewise.
10624 (mips_linux_new_thread): Likewise.
10625 (mips_add_watchpoint): Likewise.
10626 * linux-x86-low.c (initialize_low_arch): Likewise.
10627 * lynx-low.c (lynx_add_process): Likewise.
10628 * mem-break.c (set_raw_breakpoint_at): Likewise.
10629 (set_breakpoint): Likewise.
10630 (add_condition_to_breakpoint): Likewise.
10631 (add_commands_to_breakpoint): Likewise.
10632 (clone_agent_expr): Likewise.
10633 (clone_one_breakpoint): Likewise.
10634 * regcache.c (new_register_cache): Likewise.
10635 * remote-utils.c (look_up_one_symbol): Likewise.
10636 * server.c (queue_stop_reply): Likewise.
10637 (start_inferior): Likewise.
10638 (queue_stop_reply_callback): Likewise.
10639 (handle_target_event): Likewise.
10640 * spu-low.c (fetch_ppc_memory): Likewise.
10641 (store_ppc_memory): Likewise.
10642 * target.c (set_target_ops): Likewise.
10643 * thread-db.c (thread_db_load_search): Likewise.
10644 (try_thread_db_load_1): Likewise.
10645 * tracepoint.c (add_tracepoint): Likewise.
10646 (add_tracepoint_action): Likewise.
10647 (create_trace_state_variable): Likewise.
10648 (cmd_qtdpsrc): Likewise.
10649 (cmd_qtro): Likewise.
10650 (add_while_stepping_state): Likewise.
10651 * win32-low.c (child_add_thread): Likewise.
10652 (get_image_name): Likewise.
10653
ed8b7b42
YQ
106542015-08-25 Yao Qi <yao.qi@linaro.org>
10655
10656 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10657
db3cb7cb
YQ
106582015-08-25 Yao Qi <yao.qi@linaro.org>
10659
10660 * Makefile.in (aarch64-linux.o): New rule.
10661 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10662 srv_tgtobj.
10663 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10664 (aarch64_init_debug_reg_state): Make it extern.
10665 (aarch64_linux_prepare_to_resume): Remove.
10666
f6011a1c
YQ
106672015-08-25 Yao Qi <yao.qi@linaro.org>
10668
10669 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10670 lwp_arch_private_info and ptid_of_lwp.
10671
88e2cf7e
YQ
106722015-08-25 Yao Qi <yao.qi@linaro.org>
10673
10674 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10675 Find proc_info by find_process_pid. All callers updated.
10676
5e35436e
YQ
106772015-08-25 Yao Qi <yao.qi@linaro.org>
10678
10679 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10680 Remove.
10681 (debug_reg_change_callback): Remove.
10682 (aarch64_notify_debug_reg_change): Remove.
10683
4a8a7965
YQ
106842015-08-25 Yao Qi <yao.qi@linaro.org>
10685
10686 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10687 Call current_lwp_ptid.
10688
32a271ee
YQ
106892015-08-25 Yao Qi <yao.qi@linaro.org>
10690
10691 * linux-aarch64-low.c (debug_reg_change_callback): Use
10692 debug_printf.
10693
0d51c8d7
YQ
106942015-08-25 Yao Qi <yao.qi@linaro.org>
10695
10696 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10697
31a43dd5
YQ
106982015-08-25 Yao Qi <yao.qi@linaro.org>
10699
10700 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10701
8ee52567
YQ
107022015-08-25 Yao Qi <yao.qi@linaro.org>
10703
10704 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10705 the code.
10706
ff3f0f45
YQ
107072015-08-25 Yao Qi <yao.qi@linaro.org>
10708
10709 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10710 Remove.
10711 (debug_reg_change_callback): Remove argument entry and add argument
10712 lwp. Remove local variable thread. Don't print thread id in the
10713 debugging output. Don't check whether pid of thread equals to pid.
10714 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10715 iterate_over_lwps instead find_inferior.
10716
3d40fbb5
PA
107172015-08-24 Pedro Alves <palves@redhat.com>
10718
10719 * inferiors.c (get_first_process): New function.
10720 * inferiors.h (get_first_process): New declaration.
10721 * remote-utils.c (read_ptid): Default to the first process in the
10722 list, instead of to the current thread's process.
10723
438e1e42
PA
107242015-08-24 Pedro Alves <palves@redhat.com>
10725
10726 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10727 * event-loop.c: Likewise.
10728 * remote-utils.c: Likewise.
10729 * tracepoint.c: Likewise.
10730
a8c6d4fc
PA
107312015-08-24 Pedro Alves <palves@redhat.com>
10732
10733 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10734 ptid_get_lwp.
10735
99b0bb12
PA
107362015-08-21 Pedro Alves <palves@redhat.com>
10737
10738 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10739 instead of literal 1.
10740
f8904751
PA
107412015-08-21 Pedro Alves <palves@redhat.com>
10742
10743 * tdesc.c (default_description): Explicitly zero-initialize.
10744
465a859e
PA
107452015-08-21 Pedro Alves <palves@redhat.com>
10746
10747 PR gdb/18749
10748 * inferiors.c (remove_thread): Discard any pending stop reply for
10749 this thread.
10750 * server.c (remove_all_on_match_pid): Rename to ...
10751 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10752 instead of a pid.
10753 (discard_queued_stop_replies): Change parameter to a ptid. Now
10754 extern.
10755 (handle_v_kill, kill_inferior_callback, captured_main)
10756 (process_serial_event): Adjust.
10757 * server.h (discard_queued_stop_replies): Declare.
10758
f0db101d
PA
107592015-08-21 Pedro Alves <palves@redhat.com>
10760
10761 * linux-low.c (wait_for_sigstop): Always switch to no thread
10762 selected if the previously current thread dies.
10763 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10764 process instead of the current thread's.
10765 * remote-utils.c (input_interrupt): Don't check if there's no
10766 current thread.
10767 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10768 current thread to the general thread fails, error out.
10769 (handle_qxfer_auxv, handle_qxfer_libraries)
10770 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10771 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10772 (handle_query): Check if there's a thread selected instead of
10773 checking whether there's any thread in the thread list.
10774 (handle_qxfer_threads, handle_qxfer_btrace)
10775 (handle_qxfer_btrace_conf): Don't error out early if there's no
10776 thread in the thread list.
10777 (handle_v_cont, myresume): Don't set the current thread to the
10778 continue thread.
10779 (process_serial_event) <Hg handling>: Also set thread_id if the
10780 previous general thread is still alive.
10781 (process_serial_event) <g/G handling>: If setting the current
10782 thread to the general thread fails, error out.
10783 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10784 thread's lwp instead of the current thread's.
10785 * target.c (set_desired_thread): If the desired thread was not
10786 found, leave the current thread pointing to NULL. Return an int
10787 (boolean) indicating success.
10788 * target.h (set_desired_thread): Change return type to int.
10789
40045d91
MF
107902015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10791
10792 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10793 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10794 #includes.
10795 (ps_get_thread_area): New function.
10796
45face3b
GB
107972015-08-19 Gary Benson <gbenson@redhat.com>
10798
10799 * hostio.c (handle_pread): Do not attempt to read more data
10800 than hostio_reply_with_data can fit in a packet.
10801
16d5f642
JB
108022015-08-18 Joel Brobecker <brobecker@adacore.com>
10803
10804 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10805
a738da3a
MF
108062015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10807
10808 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10809
33ebda9d
PA
108102015-08-06 Pedro Alves <palves@redhat.com>
10811
10812 * tracepoint.c (expr_eval_result): Now an int.
10813
a44892be
PA
108142015-08-06 Pedro Alves <palves@redhat.com>
10815
10816 * gdbthread.h (struct regcache): Forward declare.
10817 (struct thread_info) <regcache_data>: Now a struct regcache
10818 pointer.
10819 * inferiors.c (inferior_regcache_data)
10820 (set_inferior_regcache_data): Now work with struct regcache
10821 pointers.
10822 * inferiors.h (struct regcache): Forward declare.
10823 (inferior_regcache_data, set_inferior_regcache_data): Now work
10824 with struct regcache pointers.
10825 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10826 (free_register_cache_thread): Remove struct regcache pointer
10827 casts.
10828
608a1e46
PA
108292015-08-06 Pedro Alves <palves@redhat.com>
10830
10831 * server.c (captured_main): On error, print the exception message
10832 to stderr, and if run_once is set, throw a quit.
10833
f0ce0d3a
PA
108342015-08-06 Pedro Alves <palves@redhat.com>
10835
10836 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10837 the current thread.
10838
bf47e248
PA
108392015-08-06 Pedro Alves <palves@redhat.com>
10840
10841 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10842 reading beyond the passed in buffer length.
10843
b6b9ffcc
PL
108442015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10845
10846 * tracepoint.c (symbol_list) <required>: Remove.
10847
863d01bd
PA
108482015-08-06 Pedro Alves <palves@redhat.com>
10849
10850 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10851 count if stopping and suspending threads.
10852 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10853 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10854 (linux_detach): Complete an ongoing step-over.
10855 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10856 throughout.
10857 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10858 (linux_wait_1): If passing a signal to the inferior after
10859 finishing a step-over, unsuspend and re-resume all lwps. If we
10860 see a single-step event but the thread should be continuing, don't
10861 pass the trap to gdb.
10862 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10863 internal_error instead of gdb_assert.
10864 (enqueue_pending_signal): New function.
10865 (check_ptrace_stopped_lwp_gone): Add debug output.
10866 (start_step_over): Use internal_error instead of gdb_assert.
10867 (complete_ongoing_step_over): New function.
10868 (linux_resume_one_thread): Don't resume a suspended thread.
10869 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10870 it stepping.
10871
00db26fa
PA
108722015-08-06 Pedro Alves <palves@redhat.com>
10873
10874 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10875 (linux_thread_alive): Use lwp_is_marked_dead.
10876 (extended_event_reported): Delete.
10877 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10878 instead of extended_event_reported.
10879 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10880 as well.
10881 (lwp_is_marked_dead): New function.
10882 (lwp_running): Use lwp_is_marked_dead.
10883 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10884 comment.
10885
ad071a30
PA
108862015-08-06 Pedro Alves <palves@redhat.com>
10887
10888 * linux-low.c (linux_wait_1): Move fork event output out of the
10889 !report_to_gdb check. Pass event_child->waitstatus to
10890 target_waitstatus_to_string instead of ourstatus.
10891
524b57e6
YQ
108922015-08-04 Yao Qi <yao.qi@linaro.org>
10893
10894 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10895 if current_thread is 32 bit.
10896
6085d6f6
YQ
108972015-08-04 Yao Qi <yao.qi@linaro.org>
10898
10899 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10900 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10901 * server.c (extended_protocol): Remove "static".
10902 * server.h (extended_protocol): Declare it.
10903
8a7e4587
YQ
109042015-08-04 Yao Qi <yao.qi@linaro.org>
10905
10906 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10907 both aarch64 and aarch32.
10908 (aarch64_set_pc): Likewise.
10909
3b53ae99
YQ
109102015-08-04 Yao Qi <yao.qi@linaro.org>
10911
10912 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10913 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10914 arm-with-neon.xml to srv_xmlfiles.
10915 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10916 (is_64bit_tdesc): New function.
10917 (aarch64_linux_read_description): New function.
10918 (aarch64_arch_setup): Call aarch64_linux_read_description.
10919 (regs_info): Rename to regs_info_aarch64.
10920 (aarch64_regs_info): Return right regs_info.
10921 (initialize_low_arch): Call initialize_low_arch_aarch32.
10922
bd9e6534
YQ
109232015-08-04 Yao Qi <yao.qi@linaro.org>
10924
10925 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10926 * linux-aarch32-low.c: New file.
10927 * linux-aarch32-low.h: New file.
10928 * linux-arm-low.c (arm_fill_gregset): Move it to
10929 linux-aarch32-low.c.
10930 (arm_store_gregset): Likewise.
10931 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10932 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10933 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10934 (regs_info): Rename to regs_info_arm.
10935 (arm_regs_info): Return regs_info_aarch32 if
10936 have_ptrace_getregset is 1 and target description is
10937 arm_with_neon or arm_with_vfpv3.
10938 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10939 Call initialize_low_arch_aarch32 instead.
10940
ded48a5e
YQ
109412015-08-04 Yao Qi <yao.qi@linaro.org>
10942
10943 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10944 * linux-low.c: ... here.
10945 * linux-low.h (have_ptrace_getregset): Declare it.
10946
96e9210f
PA
109472015-08-04 Pedro Alves <palves@redhat.com>
10948
10949 * thread-db.c (struct thread_db): Use new typedefs.
10950 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10951 CHK calls.
10952 (disable_thread_event_reporting): Cast result of dlsym to
10953 destination function pointer type.
10954 (thread_db_mourn): Use td_ta_delete_ftype.
10955
af60a1ef
SL
109562015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10957
10958 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10959 arch variant.
10960 (CDX_BREAKPOINT): Define for R2.
10961 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10962 (the_low_target): Add comments.
10963
e8b41681
YQ
109642015-07-30 Yao Qi <yao.qi@linaro.org>
10965
10966 * linux-arm-low.c (arm_hwcap): Remove it.
10967 (arm_read_description): New local variable arm_hwcap. Don't
10968 set arm_hwcap to zero.
10969
89abb039
YQ
109702015-07-30 Yao Qi <yao.qi@linaro.org>
10971
10972 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10973 Use regcache->tdesc instead.
10974 (arm_store_wmmxregset): Likewise.
10975 (arm_fill_vfpregset): Likewise.
10976 (arm_store_vfpregset): Likewise.
10977
deca266c
YQ
109782015-07-30 Yao Qi <yao.qi@linaro.org>
10979
10980 * linux-arm-low.c: Include arch/arm.h.
10981 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10982 (arm_store_gregset): Likewise.
10983
aa58a496
SM
109842015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10985
10986 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10987 ptrace's 4th parameter.
10988
50904b25
YQ
109892015-07-27 Yao Qi <yao.qi@linaro.org>
10990
10991 * configure.srv (case aarch64*-*-linux*): Don't set
10992 srv_linux_usrregs.
10993
5826e159
PA
109942015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10995
10996 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10997 sys/ptrace.h.
10998 * linux-arm-low.c: Likewise.
10999 * linux-cris-low.c: Likewise.
11000 * linux-crisv32-low.c: Likewise.
11001 * linux-low.c: Likewise.
11002 * linux-m68k-low.c: Likewise.
11003 * linux-mips-low.c: Likewise.
11004 * linux-nios2-low.c: Likewise.
11005 * linux-s390-low.c: Likewise.
11006 * linux-sparc-low.c: Likewise.
11007 * linux-tic6x-low.c: Likewise.
11008 * linux-tile-low.c: Likewise.
11009 * linux-x86-low.c: Likewise.
11010
54019719
PA
110112015-07-24 Pedro Alves <palves@redhat.com>
11012
11013 * config.in: Regenerate.
11014 * configure: Regenerate.
11015
eb7aa561
PA
110162015-07-24 Pedro Alves <palves@redhat.com>
11017
11018 * acinclude.m4: Include ../ptrace.m4.
11019 * configure.ac: Call GDB_AC_PTRACE.
11020 * config.in, configure: Regenerate.
11021
55d7b841
YQ
110222015-07-24 Yao Qi <yao.qi@linaro.org>
11023
11024 * linux-low.c (linux_create_inferior): Remove setting to
11025 proc->priv->new_inferior.
11026 (linux_attach): Likewise.
11027 (linux_low_filter_event): Likewise.
11028 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11029
c06cbd92
YQ
110302015-07-24 Yao Qi <yao.qi@linaro.org>
11031
11032 * linux-low.c (linux_arch_setup): New function.
11033 (linux_low_filter_event): If proc->tdesc is NULL and
11034 proc->attached is true, call the_low_target.arch_setup.
11035 Otherwise, keep status pending, and return.
11036 (linux_resume_one_lwp_throw): Don't call get_pc if
11037 thread->while_stepping isn't NULL. Don't call
11038 get_thread_regcache if proc->tdesc is NULL.
11039 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11040 (linux_target_ops): Install arch_setup.
11041 * server.c (start_inferior): Call the_target->arch_setup.
11042 * target.h (struct target_ops) <arch_setup>: New field.
11043 (target_arch_setup): New marco.
11044 * lynx-low.c (lynx_target_ops): Update.
11045 * nto-low.c (nto_target_ops): Update.
11046 * spu-low.c (spu_target_ops): Update.
11047 * win32-low.c (win32_target_ops): Update.
11048
5ae3ebba
YQ
110492015-07-24 Yao Qi <yao.qi@linaro.org>
11050
11051 * linux-low.c (linux_add_process): Don't set
11052 proc->priv->new_inferior.
11053 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11054 (linux_attach): Likewise.
11055
eb97750b
YQ
110562015-07-24 Yao Qi <yao.qi@linaro.org>
11057
11058 * server.c (start_inferior): Code refactor.
11059
51aee833
YQ
110602015-07-24 Yao Qi <yao.qi@linaro.org>
11061
11062 * server.c (process_serial_event): Set general_thread.
11063
af1b22f3
YQ
110642015-07-21 Yao Qi <yao.qi@linaro.org>
11065
11066 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11067 aarch64_linux_get_debug_reg_capacity.
11068
554717a3
YQ
110692015-07-17 Yao Qi <yao.qi@linaro.org>
11070
11071 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11072 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11073 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11074 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11075 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11076 (AARCH64_HWP_ALIGNMENT): Likewise.
11077 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11078 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11079 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11080 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11081 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11082 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11083 (struct aarch64_debug_reg_state): Likewise.
11084 (struct arch_lwp_info): Likewise.
11085 (aarch64_align_watchpoint): Likewise.
11086 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11087 (aarch64_watchpoint_length): Likewise.
11088 (aarch64_point_encode_ctrl_reg): Likewise
11089 (aarch64_point_is_aligned): Likewise.
11090 (aarch64_align_watchpoint): Likewise.
11091 (aarch64_linux_set_debug_regs):
11092 (aarch64_dr_state_insert_one_point): Likewise.
11093 (aarch64_dr_state_remove_one_point): Likewise.
11094 (aarch64_handle_breakpoint): Likewise.
11095 (aarch64_handle_aligned_watchpoint): Likewise.
11096 (aarch64_handle_unaligned_watchpoint): Likewise.
11097 (aarch64_handle_watchpoint): Likewise.
11098
c67ca4de
YQ
110992015-07-17 Yao Qi <yao.qi@linaro.org>
11100
11101 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11102 and don't aarch64_get_debug_reg_state. All callers update.
11103 (aarch64_handle_aligned_watchpoint): Likewise.
11104 (aarch64_handle_unaligned_watchpoint): Likewise.
11105 (aarch64_handle_watchpoint): Likewise.
11106 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11107 (aarch64_remove_point): Likewise.
11108
25abf979
YQ
111092015-07-17 Yao Qi <yao.qi@linaro.org>
11110
11111 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11112 debug_printf.
11113 (aarch64_handle_unaligned_watchpoint): Likewise.
11114
db1ff28b
JK
111152015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11116
11117 Revert the previous 3 commits:
11118 Move gdb_regex* to common/
11119 Move linux_find_memory_regions_full & co.
11120 gdbserver build-id attribute generator
11121
700ca40f
JK
111222015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11123 Jan Kratochvil <jan.kratochvil@redhat.com>
11124
11125 gdbserver build-id attribute generator.
11126 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11127 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11128 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11129 (find_phdr): New.
11130 (get_dynamic): Use find_pdhr to traverse program headers.
11131 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11132 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11133 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11134 (get_hex_build_id): New.
11135 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11136 to reply XML document.
11137
9904185c
JK
111382015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11139 Jan Kratochvil <jan.kratochvil@redhat.com>
11140
11141 * target.c: Include target/target-utils.h and fcntl.h.
11142 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11143 (target_fileio_read_stralloc): New functions.
11144
6e5b4429
JK
111452015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11146
11147 * Makefile.in (OBS): Add gdb_regex.o.
11148 (gdb_regex.o): New.
11149 * config.in: Rebuilt.
11150 * configure: Rebuilt.
11151
ddc98fbf
JK
111522015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11153 Jan Kratochvil <jan.kratochvil@redhat.com>
11154
11155 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11156 * Makefile.in (OBS): Add target-utils.o.
11157 (linux-maps.o, target-utils.o): New.
11158 * configure.srv (srv_linux_obj): Add linux-maps.o.
11159
e57bb7a0
PL
111602015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11161
11162 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11163 function, return 1.
11164 (the_low_target): Install it.
11165
586b02a9
PA
111662015-07-14 Pedro Alves <palves@redhat.com>
11167
11168 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11169 Instead, ignore ECHILD, and throw an error for other errnos.
11170
58c1b36c
PA
111712015-07-10 Pedro Alves <palves@redhat.com>
11172
11173 * event-loop.c (struct callback_event) <data>: Change type to
11174 gdb_client_data instance instead of gdb_client_data pointer.
11175 (append_callback_event): Adjust.
11176
421530db
PL
111772015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11178
11179 * linux-aarch64-low.c: Add comments for each linux_target_ops
11180 method. Remove comments already covered in target_ops and
11181 linux_target_ops definitions.
11182 (the_low_target): Add comments for each unimplemented method.
11183
c2d65f38
YQ
111842015-07-09 Yao Qi <yao.qi@linaro.org>
11185
11186 * linux-aarch64-low.c (aarch64_regmap): Remove.
11187 (aarch64_usrregs_info): Remove.
11188 (regs_info): Set field usrregs to NULL.
11189
b20a6524
MM
111902015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11191
11192 * linux-low.c: Include "rsp-low.h"
11193 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11194 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11195 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11196 (handle_btrace_enable_pt): New.
11197 (handle_btrace_general_set): Support "pt".
11198 (handle_btrace_conf_general_set): Support "pt:size".
11199
96c97461
PL
112002015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11201
11202 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11203 Z_PACKET_SW_BP.
11204
37d66942
PL
112052015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11206
11207 * linux-aarch64-low.c: Remove comment about endianness.
11208 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11209 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11210 memcmp.
11211
dc06243f
GB
112122015-06-24 Gary Benson <gbenson@redhat.com>
11213
11214 * linux-i386-ipa.c (stdint.h): Do not include.
11215 * lynx-i386-low.c (stdint.h): Likewise.
11216 * lynx-ppc-low.c (stdint.h): Likewise.
11217 * mem-break.c (stdint.h): Likewise.
11218 * thread-db.c (stdint.h): Likewise.
11219 * tracepoint.c (stdint.h): Likewise.
11220 * win32-low.c (stdint.h): Likewise.
11221
124e13d9
SM
112222015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11223
11224 * server.c (write_qxfer_response): Update call to
11225 remote_escape_output.
11226
909c2cda
JK
112272015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11228 Jan Kratochvil <jan.kratochvil@redhat.com>
11229
11230 Merge multiple hex conversions.
11231 * gdbreplay.c (tohex): Rename to 'fromhex'.
11232 (logchar): Use fromhex.
11233
24c05f46
JK
112342015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11235
11236 * server.c (handle_qxfer_libraries): Set `version' attribute for
11237 <library-list>.
11238
14d2069a
GB
112392015-06-10 Gary Benson <gbenson@redhat.com>
11240
11241 * target.h (struct target_ops) <multifs_open>: New field.
11242 <multifs_unlink>: Likewise.
11243 <multifs_readlink>: Likewise.
11244 * linux-low.c (nat/linux-namespaces.h): New include.
11245 (linux_target_ops): Initialize the_target->multifs_open,
11246 the_target->multifs_unlink and the_target->multifs_readlink.
11247 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11248 * hostio.c (hostio_fs_pid): New static variable.
11249 (hostio_handle_new_gdb_connection): New function.
11250 (handle_setfs): Likewise.
11251 (handle_open): Use the_target->multifs_open as appropriate.
11252 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11253 (handle_readlink): Use the_target->multifs_readlink as
11254 appropriate.
11255 (handle_vFile): Handle vFile:setfs packets.
11256 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11257 after target_handle_new_gdb_connection.
11258
4b8b5e72
GB
112592015-06-10 Gary Benson <gbenson@redhat.com>
11260
11261 * configure.ac (AC_CHECK_FUNCS): Add setns.
11262 * config.in: Regenerate.
11263 * configure: Likewise.
11264 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11265 (linux-namespaces.o): New rule.
11266 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11267
3ac2e371
GB
112682015-06-09 Gary Benson <gbenson@redhat.com>
11269
11270 * hostio.c (handle_open): Process mode argument with
11271 fileio_to_host_mode.
11272
ca9b78ce
YQ
112732015-06-01 Yao Qi <yao.qi@linaro.org>
11274
11275 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11276 * linux-x86-low.c: Likewise.
11277
bfacd19d
DB
112782015-05-28 Don Breazeal <donb@codesourcery.com>
11279
11280 * linux-low.c (handle_extended_wait): Initialize
11281 thread_info.last_resume_kind for new fork children.
11282
452003ef
PA
112832015-05-15 Pedro Alves <palves@redhat.com>
11284
11285 * target.h (target_handle_new_gdb_connection): Rewrite using if
11286 wrapped in do/while.
11287
1041a03c
JB
112882015-05-14 Joel Brobecker <brobecker@adacore.com>
11289
11290 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11291 * configure, config.in: Regenerate.
11292 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11293 Declare typedef.
11294
c269dbdb
DB
112952015-05-12 Don Breazeal <donb@codesourcery.com>
11296
11297 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11298 PTRACE_EVENT_VFORK_DONE.
11299 (linux_low_ptrace_options, extended_event_reported): Add vfork
11300 events.
11301 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11302 and "vforkdone" for RSP 'T' Stop Reply Packet.
11303 * server.h (report_vfork_events): Declare
11304 global variable.
11305
3a8a0396
DB
113062015-05-12 Don Breazeal <donb@codesourcery.com>
11307
11308 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11309 (the_low_target) <new_fork>: Initialize new member.
11310 * linux-arm-low.c (arm_new_fork): New function.
11311 (the_low_target) <new_fork>: Initialize new member.
11312 * linux-low.c (handle_extended_wait): Call new target function
11313 new_fork.
11314 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11315 * linux-mips-low.c (mips_add_watchpoint): New function
11316 extracted from mips_insert_point.
11317 (the_low_target) <new_fork>: Initialize new member.
11318 (mips_linux_new_fork): New function.
11319 (mips_insert_point): Call mips_add_watchpoint.
11320 * linux-x86-low.c (x86_linux_new_fork): New function.
11321 (the_low_target) <new_fork>: Initialize new member.
11322
de0d863e
DB
113232015-05-12 Don Breazeal <donb@codesourcery.com>
11324
11325 * linux-low.c (handle_extended_wait): Implement return value,
11326 rename argument 'event_child' to 'event_lwp', handle
11327 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11328 (linux_low_ptrace_options): New function.
11329 (linux_low_filter_event): Call linux_low_ptrace_options,
11330 use different argument fo linux_enable_event_reporting,
11331 use return value from handle_extended_wait.
11332 (extended_event_reported): New function.
11333 (linux_wait_1): Call extended_event_reported and set
11334 status to report fork events.
11335 (linux_write_memory): Add pid to debug message.
11336 (reset_lwp_ptrace_options_callback): New function.
11337 (linux_handle_new_gdb_connection): New function.
11338 (linux_target_ops): Initialize new structure member.
11339 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11340 * lynx-low.c: Initialize new structure member.
11341 * remote-utils.c (prepare_resume_reply): Implement stop reason
11342 "fork" for "T" stop message.
11343 * server.c (handle_query): Call handle_new_gdb_connection.
11344 * server.h (report_fork_events): Declare global flag.
11345 * target.h (struct target_ops) <handle_new_gdb_connection>:
11346 New member.
11347 (target_handle_new_gdb_connection): New macro.
11348 * win32-low.c: Initialize new structure member.
11349
ddcbc397
DB
113502015-05-12 Don Breazeal <donb@codesourcery.com>
11351
11352 * mem-break.c (APPEND_TO_LIST): Define macro.
11353 (clone_agent_expr): New function.
11354 (clone_one_breakpoint): New function.
11355 (clone_all_breakpoints): New function.
11356 * mem-break.h: Declare new functions.
11357
89245bc0
DB
113582015-05-12 Don Breazeal <donb@codesourcery.com>
11359
11360 * linux-low.c (linux_supports_fork_events): New function.
11361 (linux_supports_vfork_events): New function.
11362 (linux_target_ops): Initialize new structure members.
11363 (initialize_low): Call linux_check_ptrace_features.
11364 * lynx-low.c (lynx_target_ops): Initialize new structure
11365 members.
11366 * server.c (report_fork_events, report_vfork_events):
11367 New global flags.
11368 (handle_query): Add new features to qSupported packet and
11369 response.
11370 (captured_main): Initialize new global variables.
11371 * target.h (struct target_ops) <supports_fork_events>:
11372 New member.
11373 <supports_vfork_events>: New member.
11374 (target_supports_fork_events): New macro.
11375 (target_supports_vfork_events): New macro.
11376 * win32-low.c (win32_target_ops): Initialize new structure
11377 members.
11378
835205d0
GB
113792015-05-12 Gary Benson <gbenson@redhat.com>
11380
11381 * server.c (handle_qxfer_exec_file): Use current process
11382 if annex is empty.
11383
21e94bd9
SL
113842015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11385
11386 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11387 Remove HAVE_PTRACE_GETREGS conditionals.
11388 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11389 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11390
45614f15
YQ
113912015-05-08 Yao Qi <yao.qi@linaro.org>
11392
11393 * linux-low.c (linux_supports_conditional_breakpoints): New
11394 function.
11395 (linux_target_ops): Install new target method.
11396 * lynx-low.c (lynx_target_ops): Install NULL hook for
11397 supports_conditional_breakpoints.
11398 * nto-low.c (nto_target_ops): Likewise.
11399 * spu-low.c (spu_target_ops): Likewise.
11400 * win32-low.c (win32_target_ops): Likewise.
11401 * server.c (handle_query): Check
11402 target_supports_conditional_breakpoints.
11403 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11404 New field.
11405 (target_supports_conditional_breakpoints): New macro.
11406
80ad801e
PA
114072015-05-06 Pedro Alves <palves@redhat.com>
11408
11409 PR server/18081
11410 * server.c (start_inferior): If the process exits, mourn it.
11411
819843c7
GB
114122015-04-21 Gary Benson <gbenson@redhat.com>
11413
11414 * hostio.c (fileio_open_flags_to_host): Factored out to
11415 fileio_to_host_openflags in common/fileio.c. Single use
11416 updated.
11417
a2d5a9d7
MF
114182015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11419
11420 * linux-xtensa-low.c (xtensa_fill_gregset)
11421 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11422 XCHAL_HAVE_LOOP.
11423
deb44829
MF
114242015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11425
11426 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11427 (regs_info): Replace usrregs pointer with NULL.
11428
e57f1de3
GB
114292015-04-17 Gary Benson <gbenson@redhat.com>
11430
11431 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11432 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11433 * server.c (handle_qxfer_exec_file): New function.
11434 (qxfer_packets): Add exec-file entry.
11435 (handle_query): Report qXfer:exec-file:read as supported packet.
11436
62828379
RN
114372015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11438
11439 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11440
b88bb450
GB
114412015-04-09 Gary Benson <gbenson@redhat.com>
11442
11443 * hostio-errno.c (errno_to_fileio_error): Remove function.
11444 Update caller to use remote_fileio_to_fio_error.
11445
c8f4bfdd
YQ
114462015-04-09 Yao Qi <yao.qi@linaro.org>
11447
11448 * linux-low.c (linux_insert_point): Call
11449 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11450 (linux_remove_point): Call remove_memory_breakpoint if type is
11451 raw_bkpt_type_sw.
11452 * linux-x86-low.c (x86_insert_point): Don't call
11453 insert_memory_breakpoint.
11454 (x86_remove_point): Don't call remove_memory_breakpoint.
11455
41f98f02
PA
114562015-04-01 Pedro Alves <palves@redhat.com>
11457 Cleber Rosa <crosa@redhat.com>
11458
11459 * server.c (gdbserver_usage): Reorganize and extend the usage
11460 message.
11461
2bf6fb9d
PA
114622015-03-24 Pedro Alves <palves@redhat.com>
11463
11464 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11465 output. Also dump TRAP_TRACE.
11466 (linux_low_filter_event): In debug output, distinguish a
11467 resume_stop SIGSTOP from a delayed SIGSTOP.
11468
369f6daa
GB
114692015-03-24 Gary Benson <gbenson@redhat.com>
11470
11471 * linux-x86-low.c (x86_linux_new_thread): Moved to
11472 nat/x86-linux.c.
11473 (x86_linux_prepare_to_resume): Likewise.
11474
8e5d4070
GB
114752015-03-24 Gary Benson <gbenson@redhat.com>
11476
11477 * Makefile.in (x86-linux-dregs.o): New rule.
11478 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11479 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11480 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11481 (x86_linux_dr_get): Likewise.
11482 (x86_linux_dr_set): Likewise.
11483 (update_debug_registers_callback): Likewise.
11484 (x86_linux_dr_set_addr): Likewise.
11485 (x86_linux_dr_get_addr): Likewise.
11486 (x86_linux_dr_set_control): Likewise.
11487 (x86_linux_dr_get_control): Likewise.
11488 (x86_linux_dr_get_status): Likewise.
11489 (x86_linux_update_debug_registers): Likewise.
11490
2b95d440
GB
114912015-03-24 Gary Benson <gbenson@redhat.com>
11492
11493 * linux-x86-low.c (x86_linux_update_debug_registers):
11494 New function, factored out from...
11495 (x86_linux_prepare_to_resume): ...this.
11496
14b0bc68
GB
114972015-03-24 Gary Benson <gbenson@redhat.com>
11498
11499 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11500 (x86_linux_dr_set): Likewise.
11501 (update_debug_registers_callback): Likewise.
11502 (x86_linux_dr_set_addr): Likewise.
11503 (x86_linux_dr_get_addr): Likewise.
11504 (x86_linux_dr_set_control): Likewise.
11505 (x86_linux_dr_get_control): Likewise.
11506 (x86_linux_dr_get_status): Likewise.
11507 (x86_linux_prepare_to_resume): Likewise.
11508
5dfe6ca8
GB
115092015-03-24 Gary Benson <gbenson@redhat.com>
11510
11511 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11512 Use perror_with_name. Pass string through gettext.
11513 (x86_linux_dr_set): Likewise.
11514
d33472ad
GB
115152015-03-24 Gary Benson <gbenson@redhat.com>
11516
11517 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11518 (x86_linux_dr_set_addr): ...this.
11519 (x86_dr_low_get_addr): Rename to...
11520 (x86_linux_dr_get_addr): ...this.
11521 (x86_dr_low_set_control): Rename to...
11522 (x86_linux_dr_set_control): ...this.
11523 (x86_dr_low_get_control): Rename to...
11524 (x86_linux_dr_get_control): ...this.
11525 (x86_dr_low_get_status): Rename to...
11526 (x86_linux_dr_get_status): ...this.
11527 (x86_dr_low): Update with new function names.
11528
4b134ca1
GB
115292015-03-24 Gary Benson <gbenson@redhat.com>
11530
11531 * Makefile.in (x86-linux.o): New rule.
11532 * configure.srv: Add x86-linux.o to relevant targets.
11533 * linux-low.c (lwp_set_arch_private_info): New function.
11534 (lwp_arch_private_info): Likewise.
11535 * linux-x86-low.c: Include nat/x86-linux.h.
11536 (arch_lwp_info): Removed structure.
11537 (update_debug_registers_callback):
11538 Use lwp_set_debug_registers_changed.
11539 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11540 and lwp_set_debug_registers_changed.
11541 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11542
34c703da
GB
115432015-03-24 Gary Benson <gbenson@redhat.com>
11544
11545 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11546 * linux-arm-low.c (arm_new_thread): Likewise.
11547 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11548 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11549 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11550 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11551
cff068da
GB
115522015-03-24 Gary Benson <gbenson@redhat.com>
11553
11554 * linux-low.c (ptid_of_lwp): New function.
11555 (lwp_is_stopped): Likewise.
11556 (lwp_stop_reason): Likewise.
11557 * linux-x86-low.c (update_debug_registers_callback):
11558 Use lwp_is_stopped.
11559 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11560 lwp_stop_reason.
11561
b2f7c7e8
GB
115622015-03-24 Gary Benson <gbenson@redhat.com>
11563
11564 * linux-low.h (linux_stop_lwp): Remove declaration.
11565
6d4ee8c6
GB
115662015-03-24 Gary Benson <gbenson@redhat.com>
11567
11568 * linux-low.h: Include nat/linux-nat.h.
11569 * linux-low.c (iterate_over_lwps_args): New structure.
11570 (iterate_over_lwps_filter): New function.
11571 (iterate_over_lwps): Likewise.
11572 * linux-x86-low.c (update_debug_registers_callback):
11573 Update signature to what iterate_over_lwps expects.
11574 Remove PID check that iterate_over_lwps now performs.
11575 (x86_dr_low_set_addr): Use iterate_over_lwps.
11576 (x86_dr_low_set_control): Likewise.
11577
70a0bb6b
GB
115782015-03-24 Gary Benson <gbenson@redhat.com>
11579
11580 * linux-x86-low.c (x86_debug_reg_state): New function.
11581 (x86_linux_prepare_to_resume): Use the above.
11582
7b669087
GB
115832015-03-24 Gary Benson <gbenson@redhat.com>
11584
11585 * linux-low.c (current_lwp_ptid): New function.
11586 * linux-x86-low.c: Include nat/linux-nat.h.
11587 (x86_dr_low_get_addr): Use current_lwp_ptid.
11588 (x86_dr_low_get_control): Likewise.
11589 (x86_dr_low_get_status): Likewise.
11590
eef49a3d
PA
115912015-03-20 Pedro Alves <palves@redhat.com>
11592
11593 * tracepoint.c (cmd_qtstatus): Make "str" const.
11594
b2333d22
PA
115952015-03-20 Pedro Alves <palves@redhat.com>
11596
11597 * server.c (handle_general_set): Make "req_str" const.
11598
23f238d3
PA
115992015-03-19 Pedro Alves <palves@redhat.com>
11600
11601 * linux-low.c (linux_resume_one_lwp): Rename to ...
11602 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11603 instead call perror_with_name.
11604 (check_ptrace_stopped_lwp_gone): New function.
11605 (linux_resume_one_lwp): Reimplement as wrapper around
11606 linux_resume_one_lwp_throw that swallows errors if the LWP is
11607 gone.
11608
91baf43f
PA
116092015-03-19 Pedro Alves <palves@redhat.com>
11610
11611 * linux-low.c (count_events_callback, select_event_lwp_callback):
11612 No longer check whether the thread has resume_stop as last resume
11613 kind.
11614
8bf3b159
PA
116152015-03-19 Pedro Alves <palves@redhat.com>
11616
11617 * linux-low.c (count_events_callback, select_event_lwp_callback):
11618 Use the lwp's status_pending_p field, not the thread's.
11619
b90fc188
PA
116202015-03-19 Pedro Alves <palves@redhat.com>
11621
11622 * linux-low.c (select_event_lwp_callback): Update comments to
11623 no longer mention SIGTRAP.
11624
464b0089
GB
116252015-03-18 Gary Benson <gbenson@redhat.com>
11626
11627 * server.c (handle_query): Do not report vFile:fstat as supported.
11628
aa9e327f
GB
116292015-03-11 Gary Benson <gbenson@redhat.com>
11630
11631 * hostio.c (sys/types.h): New include.
11632 (sys/stat.h): Likewise.
11633 (common-remote-fileio.h): Likewise.
11634 (handle_fstat): New function.
11635 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11636
791c0056
GB
116372015-03-11 Gary Benson <gbenson@redhat.com>
11638
11639 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11640 struct stat.st_blocks and struct stat.st_blksize.
11641 * configure: Regenerate.
11642 * config.in: Likewise.
11643 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11644 (OBS): Add common-remote-fileio.o.
11645 (common-remote-fileio.o): New rule.
11646
9a9df970
PA
116472015-03-09 Pedro Alves <palves@redhat.com>
11648
11649 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11650 'struct sockaddr' pointer in 'accept' call.
11651
9eb1356e
PA
116522015-03-09 Pedro Alves <palves@redhat.com>
11653
11654 Revert:
11655 2015-03-07 Pedro Alves <palves@redhat.com>
11656 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11657 or <winsock2.h> here. Instead include "gdb_socket.h".
11658 (remote_open): Use union gdb_sockaddr_u.
11659 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11660 or <winsock2.h> here. Instead include "gdb_socket.h".
11661 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11662 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11663 or <sys/un.h>.
11664 (init_named_socket, gdb_agent_helper_thread): Use union
11665 gdb_sockaddr_u.
11666
aac331e4
PA
116672015-03-07 Pedro Alves <palves@redhat.com>
11668
11669 * configure.ac (build_warnings): Move
11670 -Wdeclaration-after-statement to the C-specific set.
11671 * configure: Regenerate.
11672
366c75fc
PA
116732015-03-07 Pedro Alves <palves@redhat.com>
11674
11675 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11676 or <winsock2.h> here. Instead include "gdb_socket.h".
11677 (remote_open): Use union gdb_sockaddr_u.
11678 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11679 or <winsock2.h> here. Instead include "gdb_socket.h".
11680 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11681 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11682 or <sys/un.h>.
11683 (init_named_socket, gdb_agent_helper_thread): Use union
11684 gdb_sockaddr_u.
11685
492d29ea
PA
116862015-03-07 Pedro Alves <palves@redhat.com>
11687
11688 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11689 instead.
11690
60a191ed
YQ
116912015-03-06 Yao Qi <yao.qi@linaro.org>
11692
11693 * linux-aarch64-low.c (aarch64_insert_point): Use
11694 show_debug_regs as a boolean.
11695 (aarch64_remove_point): Likewise.
11696
f5771b1d
PA
116972015-03-05 Pedro Alves <palves@redhat.com>
11698
11699 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11700 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11701 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11702 * nto-low.c (nto_target_ops): Likewise.
11703 * spu-low.c (spu_target_ops): Likewise.
11704 * win32-low.c (win32_target_ops): Likewise.
11705
3e572f71
PA
117062015-03-04 Pedro Alves <palves@redhat.com>
11707
72f4393d 11708 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11709 Decide whether a breakpoint triggered based on the SIGTRAP's
11710 siginfo.si_code.
72f4393d
L
11711 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11712 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11713 (linux_low_filter_event): Check for breakpoints before checking
11714 watchpoints.
11715 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11716 siginfo.si_code.
72f4393d
L
11717 (linux_stopped_by_sw_breakpoint)
11718 (linux_supports_stopped_by_sw_breakpoint)
11719 (linux_stopped_by_hw_breakpoint)
11720 (linux_supports_stopped_by_hw_breakpoint): New functions.
11721 (linux_target_ops): Install new target methods.
3e572f71 11722
1ec68e26
PA
117232015-03-04 Pedro Alves <palves@redhat.com>
11724
11725 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11726 * server.c (swbreak_feature, hwbreak_feature): New globals.
11727 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11728 (captured_main): Clear swbreak_feature and hwbreak_feature.
11729 * server.h (swbreak_feature, hwbreak_feature): Declare.
11730 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11731 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11732 supports_stopped_by_hw_breakpoint>: New fields.
11733 (target_supports_stopped_by_sw_breakpoint)
11734 (target_stopped_by_sw_breakpoint)
11735 (target_supports_stopped_by_hw_breakpoint)
11736 (target_stopped_by_hw_breakpoint): Declare.
11737
15c66dd6
PA
117382015-03-04 Pedro Alves <palves@redhat.com>
11739
11740 enum lwp_stop_reason -> enum target_stop_reason
11741 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11742 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11743 (linux_wait_1, stuck_in_jump_pad_callback)
11744 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11745 (linux_stopped_by_watchpoint):
11746 * linux-low.h (enum lwp_stop_reason): Delete.
11747 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11748 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11749
98fc70d6
YQ
117502015-03-04 Yao Qi <yao.qi@linaro.org>
11751
11752 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11753
dd2ac174
GB
117542015-03-03 Gary Benson <gbenson@redhat.com>
11755
11756 * hostio.c (handle_vFile): Fix prefix lengths.
11757
d68e53f4
MM
117582015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11759
11760 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11761 ptr_bits.
11762
bf2d68ab
AA
117632015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11764
11765 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11766 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11767 (clean): Add "rm -f" for above C files.
11768 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11769 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11770 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11771 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11772 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11773 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11774 (init_registers_s390x_vx_linux64)
11775 (init_registers_s390x_tevx_linux64)
11776 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11777 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11778 declarations.
11779 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11780 (s390_store_vxrs_high): New functions.
11781 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11782 NT_S390_VXRS_HIGH.
11783 (s390_arch_setup): Add logic for selecting one of the new target
11784 descriptions. Activate the new vector regsets if applicable.
11785 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11786 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11787 and init_registers_s390x_tevx_linux64.
11788
c966a859
PA
117892015-03-01 Pedro Alves <palves@redhat.com>
11790
11791 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11792 parameter.
11793
4180215b
PA
117942015-02-27 Pedro Alves <palves@redhat.com>
11795
11796 * linux-x86-low.c (u_debugreg_offset): New function.
11797 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11798
749bab01
PA
117992015-02-27 Pedro Alves <palves@redhat.com>
11800
11801 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11802 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11803 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11804 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11805 (ps_lsetfpregs, ps_getpid)
11806 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11807 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11808 (ps_lsetxregs, ps_plog): Declare.
11809
3c14e5a3
PA
118102015-02-27 Pedro Alves <palves@redhat.com>
11811
11812 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11813 IP_AGENT_EXPORT_FUNC.
11814 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11815 IP_AGENT_EXPORT_FUNC.
11816 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11817 (IP_AGENT_EXPORT): Delete.
11818 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11819 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11820 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11821 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11822 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11823 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11824 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11825 (traceframe_read_count, traceframe_write_count)
11826 (traceframes_created, trace_state_variables, get_raw_reg)
11827 (get_trace_state_variable_value, set_trace_state_variable_value)
11828 (ust_loaded, helper_thread_id, cmd_buf): Use
11829 IPA_SYM_EXPORTED_NAME.
11830 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11831 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11832 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11833 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11834 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11835 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11836 EXTERN_C_PUSH/EXTERN_C_POP.
11837 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11838 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11839 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11840 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11841 (traceframe_write_count, traceframe_read_count)
11842 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11843 (about_to_request_buffer_space, get_trace_state_variable_value)
11844 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11845 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11846 EXTERN_C_PUSH/EXTERN_C_POP.
11847 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11848 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11849 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11850 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11851 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11852 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11853 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11854 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11855 Define.
11856 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11857 (IP_AGENT_EXPORT_VAR_DECL): Define.
11858 (tracing): Declare.
11859 (gdb_agent_get_raw_reg): Declare.
11860
fe978cb0
PA
118612015-02-27 Tom Tromey <tromey@redhat.com>
11862 Pedro Alves <palves@redhat.com>
11863
11864 Rename symbols whose names are reserved C++ keywords throughout.
11865
3bc3d82a
PA
118662015-02-27 Pedro Alves <palves@redhat.com>
11867
11868 * Makefile.in (COMPILER): New, get it from autoconf.
11869 (CXX): Get from autoconf instead.
11870 (COMPILE.pre): Use COMPILER.
11871 (CC-LD): Rename to ...
11872 (CC_LD): ... this. Use COMPILER.
11873 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11874 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11875 * acinclude.m4: Include build-with-cxx.m4.
11876 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11877 Disable -Werror by default if building in C++ mode.
11878 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11879 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11880 the C++ compiler. Save/restore CXXFLAGS too.
11881 * configure: Regenerate.
11882
07697489
PA
118832015-02-27 Pedro Alves <palves@redhat.com>
11884
11885 * acinclude.m4: Include libiberty.m4.
11886 * configure.ac: Call libiberty_INIT.
11887 * config.in, configure: Regenerate.
11888
9beb7c4e
PA
118892015-02-26 Pedro Alves <palves@redhat.com>
11890
11891 * linux-low.c (linux_wait_1): When incrementing the PC past a
11892 program breakpoint always use the_low_target.breakpoint_len as
11893 increment, rather than the maximum between that and
11894 the_low_target.decr_pc_after_break.
11895
8090aef2
PA
118962015-02-23 Pedro Alves <palves@redhat.com>
11897
11898 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11899 thread was doing a step-over; always adjust the PC if
11900 we stepped over a permanent breakpoint.
11901 (linux_wait_1): If we stepped over breakpoint that was on top of a
11902 permanent breakpoint, manually advance the PC past it.
11903
bc9540e8
PA
119042015-02-23 Pedro Alves <palves@redhat.com>
11905
11906 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11907 modes.
11908 (x86_fill_gregset, x86_store_gregset): Use it when handling
11909 $orig_eax.
11910
2db9a427
PA
119112015-02-20 Pedro Alves <palves@redhat.com>
11912
11913 * thread-db.c: Include "nat/linux-procfs.h".
11914 (thread_db_init): Skip listing new threads if the kernel supports
11915 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11916
afa8d396
PA
119172015-02-20 Pedro Alves <palves@redhat.com>
11918
11919 * linux-low.c (status_pending_p_callback): Use ptid_match.
11920
c9587f88
AT
119212015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11922
11923 PR breakpoints/16812
11924 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11925 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11926 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11927
b05ec7a5
AT
119282015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11929
11930 PR breakpoints/15956
11931 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11932
d33501a5
MM
119332015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11934
11935 * linux-low.c (linux_low_btrace_conf): Print size.
11936 * server.c (handle_btrace_conf_general_set): New.
11937 (hanle_general_set): Call handle_btrace_conf_general_set.
11938 (handle_query): Report Qbtrace-conf:bts:size as supported.
11939
f4abbc16
MM
119402015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11941
11942 * linux-low.c (linux_low_enable_btrace): Update parameters.
11943 (linux_low_btrace_conf): New.
11944 (linux_target_ops)<to_btrace_conf>: Initialize.
11945 * server.c (current_btrace_conf): New.
11946 (handle_btrace_enable): Rename to ...
11947 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11948 to target_enable_btrace. Update comment. Update users.
11949 (handle_qxfer_btrace_conf): New.
11950 (qxfer_packets): Add btrace-conf entry.
11951 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11952 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11953 (target_ops)<read_btrace_conf>: New.
11954 (target_enable_btrace): Update parameters.
11955 (target_read_btrace_conf): New.
11956
043c3577
MM
119572015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11958
11959 * server.c (handle_btrace_general_set): Remove call to
11960 target_supports_btrace.
11961 (supported_btrace_packets): New.
11962 (handle_query): Call supported_btrace_packets.
11963 * target.h: include btrace-common.h.
11964 (btrace_target_info): Removed.
11965 (supports_btrace, target_supports_btrace): Update parameters.
11966
734b0e4b
MM
119672015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11968
11969 * Makefile.in (SFILES): Add common/btrace-common.c.
11970 (OBS): Add common/btrace-common.o.
11971 (btrace-common.o): Add build rules.
11972 * linux-low: Include btrace-common.h.
11973 (linux_low_read_btrace): Use struct btrace_data. Call
11974 btrace_data_init and btrace_data_fini.
11975
d6c146e9
PA
119762015-02-06 Pedro Alves <palves@redhat.com>
11977
11978 * thread-db.c (find_new_threads_callback): Add debug output.
11979
20ba1ce6
PA
119802015-02-04 Pedro Alves <palves@redhat.com>
11981
11982 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11983 (resume_stopped_resumed_lwps): New function.
11984 (linux_wait_for_event_filtered): Use it.
11985
8cc73a39
SDJ
119862015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11987
11988 * Makefile.in (SFILES): Add linux-personality.c.
11989 (linux-personality.o): New rule.
11990 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11991 list of objects to be built.
11992 * linux-low.c: Include nat/linux-personality.h.
11993 (linux_create_inferior): Remove code to disable address space
11994 randomization (moved to ../nat/linux-personality.c). Create
11995 cleanup to disable address space randomization.
11996
fb23d554
SDJ
119972015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11998
11999 * Makefile.in (posix-strerror.o): New rule.
12000 (mingw-strerror.o): Likewise.
12001 * configure: Regenerated.
12002 * configure.ac: Source file ../common/common.host. Initialize new
12003 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12004
cdf43629
YQ
120052015-01-14 Yao Qi <yao@codesourcery.com>
12006
12007 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12008 (ppc-linux.o): New rule.
12009 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12010 * configure.ac: AC_CHECK_FUNCS(getauxval).
12011 * config.in: Re-generated.
12012 * configure: Re-generated.
12013 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12014 ppc64_64bit_inferior_p
12015
514c5338
YQ
120162015-01-14 Yao Qi <yao@codesourcery.com>
12017
12018 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12019 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12020 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12021 (PT_ORIG_R3, PT_TRAP): Likewise.
12022 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12023 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12024 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12025
3368c1e5
JB
120262015-01-10 Joel Brobecker <brobecker@adacore.com>
12027
12028 * i387-fp.c (i387_cache_to_xsave): In look over
12029 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12030 zmmh_low_space field by use of zmmh_high_space.
12031
582511be
PA
120322015-01-09 Pedro Alves <palves@redhat.com>
12033
12034 * linux-low.c (step_over_bkpt): Move higher up in the file.
12035 (handle_extended_wait): Don't store the stop_pc here.
12036 (get_stop_pc): Adjust comments and rename to ...
12037 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12038 stopped for a software breakpoint or hardware breakpoint.
12039 (thread_still_has_status_pending_p): New function.
12040 (status_pending_p_callback): Use
12041 thread_still_has_status_pending_p. If the event is no longer
12042 interesting, resume the LWP.
12043 (handle_tracepoints): Add assert.
12044 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12045 (wstatus_maybe_breakpoint): New function.
12046 (cancel_breakpoint): Delete function.
12047 (check_stopped_by_watchpoint): New function, factored out from
12048 linux_low_filter_event.
12049 (lp_status_maybe_breakpoint): Delete function.
12050 (linux_low_filter_event): Remove filter_ptid argument.
12051 Leave thread group exits pending here. Store the LWP's stop PC.
12052 Always leave events pending.
12053 (linux_wait_for_event_filtered): Pull all events out of the
12054 kernel, and leave them all pending.
12055 (count_events_callback, select_event_lwp_callback): Consider all
12056 events.
12057 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12058 (select_event_lwp): Only give preference to the stepping LWP in
12059 all-stop mode. Adjust comments.
12060 (ignore_event): New function.
12061 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12062 references to cancel_breakpoints. Adjust to renames. Also give
12063 equal priority to all LWPs that have had events in non-stop mode.
12064 If reporting a software breakpoint event, unadjust the LWP's PC.
12065 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12066 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12067 Adjust.
12068 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12069 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12070 (linux_stopped_by_watchpoint): Adjust.
12071 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12072 * linux-low.h (enum lwp_stop_reason): New.
12073 (struct lwp_info) <stop_pc>: Adjust comment.
12074 <stopped_by_watchpoint>: Delete field.
12075 <stop_reason>: New field.
12076 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12077 * mem-break.c (software_breakpoint_inserted_here)
12078 (hardware_breakpoint_inserted_here): New function.
12079 * mem-break.h (software_breakpoint_inserted_here)
12080 (hardware_breakpoint_inserted_here): Declare.
12081 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12082 (cancel_breakpoints): Delete.
12083 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12084 (upload_fast_traceframes): Remove references to
12085 cancel_breakpoints.
12086
a33e3959
PA
120872015-01-09 Pedro Alves <palves@redhat.com>
12088
12089 * thread-db.c (find_new_threads_callback): Ignore thread if the
12090 kernel thread ID is -1.
12091
8784d563
PA
120922015-01-09 Pedro Alves <palves@redhat.com>
12093
12094 * linux-low.c (linux_attach_fail_reason_string): Move to
12095 nat/linux-ptrace.c, and rename.
12096 (linux_attach_lwp): Update comment.
12097 (attach_proc_task_lwp_callback): New function.
12098 (linux_attach): Adjust to rename and use
12099 linux_proc_attach_tgid_threads.
12100 (linux_attach_fail_reason_string): Delete declaration.
12101
76f2b779
JB
121022015-01-01 Joel Brobecker <brobecker@adacore.com>
12103
12104 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12105 * server.c (gdbserver_version): Likewise.
12106
fafcc06a
SDJ
121072014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12108
12109 * remote-utils.c: Include ctype.h.
12110 (input_interrupt): Explicitly handle the case when the char
12111 received is the NUL byte. Improve the printing of non-ASCII
12112 characters.
12113
beed38b8
JB
121142014-12-16 Joel Brobecker <brobecker@adacore.com>
12115
12116 * linux-low.c (linux_low_filter_event): Update call to
12117 linux_enable_event_reporting following the addition of
12118 a new parameter to that function.
12119
bf330350
CU
121202014-12-16 Catalin Udma <catalin.udma@freescale.com>
12121
12122 PR server/17457
12123 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12124 (AARCH64_FPCR_REGNO): Likewise.
12125 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12126 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12127 (aarch64_store_fpregset): Likewise.
12128
5227d625
JB
121292014-12-15 Joel Brobecker <brobecker@adacore.com>
12130
12131 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12132 Remove FIXME comment about assumption about N.
12133
f93b65a0
JB
121342014-12-13 Joel Brobecker <brobecker@adacore.com>
12135
12136 * configure.ac: If large-file support is disabled in GDBserver,
12137 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12138 * configure: Regenerate.
12139
e5a9158d
AA
121402014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12141
12142 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12143 warning upon ENODATA from ptrace.
12144 * linux-s390-low.c (s390_store_tdb): New.
12145 (s390_regsets): Add regset for NT_S390_TDB.
12146
feea5f36
AA
121472014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12148
12149 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12150 without a fill_function.
12151 * linux-s390-low.c (s390_fill_last_break): Remove.
12152 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12153 (s390_arch_setup): Use regset's size instead of fill_function for
12154 loop end condition.
12155
098dbe61
AA
121562014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12157
12158 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12159 the regset's store function when ptrace returned an error.
12160 * regcache.c (get_thread_regcache): Invalidate register cache
12161 before fetching inferior's registers.
12162
28eef672
AA
121632014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12164
12165 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12166 while-loop as for-loop.
12167 (regsets_store_inferior_registers): Likewise.
12168
bdca27a2
YQ
121692014-11-28 Yao Qi <yao@codesourcery.com>
12170
12171 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12172 * config.in, configure: Re-generate.
12173 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12174 is defined.
12175
9c232dda
YQ
121762014-11-21 Yao Qi <yao@codesourcery.com>
12177
12178 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12179 (AC_CHECK_HEADERS): Remove malloc.h.
12180 * configure: Re-generated.
12181 * config.in: Re-generated.
12182 * server.h: Don't include alloca.h and malloc.h.
12183 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12184 Don't include malloc.h.
12185
43968415
JB
121862014-11-17 Joel Brobecker <brobecker@adacore.com>
12187
12188 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12189 corresponding ERRNO check in same block.
12190
40e91bc7
PA
121912014-11-12 Pedro Alves <palves@redhat.com>
12192
12193 * server.c (cont_thread): Update comment.
12194 (start_inferior, attach_inferior): No longer clear cont_thread.
12195 (handle_v_cont): No longer set cont_thread.
12196 (captured_main): Clear cont_thread each time a GDB connects.
12197
c2c118cf
PA
121982014-11-12 Pedro Alves <palves@redhat.com>
12199
12200 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12201 thread, and don't resume all threads if the Hc thread has exited.
12202
78708b7c
PA
122032014-11-12 Pedro Alves <palves@redhat.com>
12204
12205 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12206 the process group instead of to a specific LWP.
12207
a2abc7de
PA
122082014-10-15 Pedro Alves <palves@redhat.com>
12209
12210 PR server/17487
12211 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12212 parameter.
12213 (arm_set_thread_context): Delete.
12214 (the_low_target): Adjust.
12215 * win32-i386-low.c (debug_registers_changed)
12216 (debug_registers_used): Delete.
12217 (update_debug_registers_callback): New function.
12218 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12219 needing to update their debug registers.
12220 (win32_get_current_dr): New function.
12221 (x86_dr_low_get_addr, x86_dr_low_get_control)
12222 (x86_dr_low_get_status): Fetch the debug register from the thread
12223 record's context.
12224 (i386_initial_stuff): Adjust.
12225 (i386_get_thread_context): Remove current_event parameter. Don't
12226 clear debug_registers_changed nor copy DR values to
12227 debug_reg_state.
12228 (i386_set_thread_context): Delete.
12229 (i386_prepare_to_resume): New function.
12230 (i386_thread_added): Mark the thread as needing to update irs
12231 debug registers.
12232 (the_low_target): Remove i386_set_thread_context and install
12233 i386_prepare_to_resume.
12234 * win32-low.c (win32_get_thread_context): Adjust.
12235 (win32_set_thread_context): Use SetThreadContext
12236 directly.
12237 (win32_prepare_to_resume): New function.
12238 (win32_require_context): New function, factored out from ...
12239 (thread_rec): ... this.
12240 (continue_one_thread): Call win32_prepare_to_resume on each thread
12241 we're about to continue.
12242 (win32_resume): Call win32_prepare_to_resume on the event thread.
12243 * win32-low.h (struct win32_thread_info)
12244 <debug_registers_changed>: New field.
12245 (struct win32_target_ops): Change prototype of set_thread_context,
12246 delete set_thread_context and add prepare_to_resume.
12247 (win32_require_context): New declaration.
12248
a442d071
GB
122492014-10-08 Gary Benson <gbenson@redhat.com>
12250
12251 * server.h: Do not include common-exceptions.h.
12252
6f1947e8
GB
122532014-10-08 Gary Benson <gbenson@redhat.com>
12254
12255 * server.h: Do not include cleanups.h.
12256
63b434a4
JH
122572014-09-30 James Hogan <james.hogan@imgtec.com>
12258
12259 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12260 mips64-dsp-linux.c.
12261
c4d9ceb6
YQ
122622014-09-23 Yao Qi <yao@codesourcery.com>
12263
12264 * linux-low.c (lp_status_maybe_breakpoint): New function.
12265 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12266 (count_events_callback): Likewise.
12267 (select_event_lwp_callback): Likewise.
12268 (cancel_breakpoints_callback): Likewise.
12269
89a5711c
DB
122702014-09-19 Don Breazeal <donb@codesourcery.com>
12271
12272 * linux-low.c (handle_extended_wait): Call
12273 linux_ptrace_get_extended_event.
12274 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12275 linux_is_extended_waitstatus.
12276
bffc0964
JB
122772014-09-16 Joel Brobecker <brobecker@adacore.com>
12278
12279 * Makefile.in (CPPFLAGS): Define.
12280 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12281 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12282
0bfdf32f
GB
122832014-09-16 Gary Benson <gbenson@redhat.com>
12284
12285 * inferiors.h (current_inferior): Renamed as...
12286 (current_thread): New variable. All uses updated.
12287 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12288 (maybe_move_out_of_jump_pad): Likewise.
12289 (cancel_breakpoint): Likewise.
12290 (linux_low_filter_event): Likewise.
12291 (wait_for_sigstop): Likewise.
12292 (linux_resume_one_lwp): Likewise.
12293 (need_step_over_p): Likewise.
12294 (start_step_over): Likewise.
12295 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12296 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12297 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12298 and save_inferior as saved_thread.
12299 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12300 saved_thread.
12301 (regcache_invalidate_thread): Likewise.
12302 * remote-utils.c (prepare_resume_reply): Likewise.
12303 * thread-db.c (thread_db_get_tls_address): Likewise.
12304 (disable_thread_event_reporting): Likewise.
12305 (remove_thread_event_breakpoints): Likewise.
12306 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12307 as saved_thread.
12308 * target.h (set_desired_inferior): Renamed as...
12309 (set_desired_thread): New declaration. All uses updated.
12310 * server.c (myresume): Updated comment to reference thread instead
12311 of inferior.
12312 (handle_serial_event): Likewise.
12313 (handle_target_event): Likewise.
12314
361c8ade
GB
123152014-09-12 Tom Tromey <tromey@redhat.com>
12316 Gary Benson <gbenson@redhat.com>
12317
12318 * regcache.h: Include common-regcache.h.
12319 (regcache_read_pc): Don't declare.
12320 * regcache.c (get_thread_regcache_for_ptid): New function.
12321
bd9269f7
GB
123222014-09-11 Tom Tromey <tromey@redhat.com>
12323 Gary Benson <gbenson@redhat.com>
12324
12325 * symbol.c: New file.
12326 * Makefile.in (SFILES): Add symbol.c.
12327 (OBS): Add symbol.o.
12328
f8c1d06b
GB
123292014-09-11 Gary Benson <gbenson@redhat.com>
12330
12331 * target.c (target_stop_ptid, target_continue_ptid): New
12332 functions.
12333
721ec300
GB
123342014-09-11 Tom Tromey <tromey@redhat.com>
12335 Gary Benson <gbenson@redhat.com>
12336
12337 * target.h: Include target/target.h.
12338 * target.c (target_read_memory, target_read_uint32)
12339 (target_write_memory): New functions.
12340
c5e92cca
GB
123412014-09-11 Gary Benson <gbenson@redhat.com>
12342
12343 * server.h (debug_hw_points): Don't declare.
12344 * server.c (debug_hw_points): Don't define. Replace all uses
12345 with show_debug_regs.
12346 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12347 all uses with show_debug_regs.
12348
2e4bb98a
EBM
123492014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12350
12351 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12352 endianness into account.
12353 (ppc_supply_ptrace_register): Likewise.
12354
ac740bc7
JH
123552014-09-03 James Hogan <james.hogan@imgtec.com>
12356
12357 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12358 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12359
97ea6506
GB
123602014-09-03 Gary Benson <gbenson@redhat.com>
12361
12362 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12363 ALL_DEBUG_ADDRESS_REGISTERS.
12364
df7e5265
GB
123652014-09-02 Gary Benson <gbenson@redhat.com>
12366
12367 * i386-low.h: Renamed as...
12368 * x86-low.h: New file. All type, function and variable name
12369 prefixes changed from "i386_" to "x86_". All references updated.
12370 * i386-low.c: Renamed as...
12371 * x86-low.c: New file. All type, function and variable name
12372 prefixes changed from "i386_" to "x86_". All references updated.
12373
ed859da7
GB
123742014-09-02 Gary Benson <gbenson@redhat.com>
12375
12376 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12377 (x86_linux_new_thread): Likewise.
12378
860789c7
GB
123792014-08-29 Gary Benson <gbenson@redhat.com>
12380
12381 * server.h (setjmp.h): Do not include.
12382 (toplevel): Do not declare.
12383 (common-exceptions.h): Include.
12384 (cleanups.h): Likewise.
12385 * server.c (toplevel): Do not define.
12386 (exit_code): New static global.
12387 (detach_or_kill_for_exit_cleanup): New function.
12388 (main): New function. Original main renamed to...
12389 (captured_main): New function.
12390 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12391
ff55e1b5
GB
123922014-08-29 Gary Benson <gbenson@redhat.com>
12393
12394 * Makefile.in (SFILES): Add common/common-exceptions.c.
12395 (OBS): Add common-exceptions.o.
12396 (common-exceptions.o): New rule.
12397 * utils.c (prepare_to_throw_exception): New function.
12398
e9bcb658
GB
123992014-08-29 Gary Benson <gbenson@redhat.com>
12400
12401 * config.in: Regenerate.
12402 * configure: Likewise.
12403
e3180625
GB
124042014-08-29 Gary Benson <gbenson@redhat.com>
12405
12406 * Makefile.in (SFILES): Add common/cleanups.c.
12407 (OBS): cleanups.o.
12408 (cleanups.o): New rule.
12409
e3d6ba5d
GB
124102014-08-29 Gary Benson <gbenson@redhat.com>
12411
12412 * utils.c (internal_vwarning): New function.
12413
7096e886
GB
124142014-08-28 Gary Benson <gbenson@redhat.com>
12415
12416 * utils.h (fatal): Remove declaration.
12417 * utils.c (fatal): Remove function.
12418
14ce3192
GB
124192014-08-28 Gary Benson <gbenson@redhat.com>
12420
12421 * tracepoint.c (gdb_agent_init): Replace fatal with
12422 perror_with_name.
12423 (initialize_tracepoint): Likewise.
12424
50278d59
GB
124252014-08-28 Gary Benson <gbenson@redhat.com>
12426
12427 * remote-utils.c (remote_prepare): Replace fatal with error.
12428
aa96c426
GB
124292014-08-28 Gary Benson <gbenson@redhat.com>
12430
12431 * linux-low.c (linux_async): Replace fatal with warning.
12432 Tidy up and return.
12433 (linux_start_non_stop): Return -1 if linux_async failed.
12434
f7160e97
GB
124352014-08-28 Gary Benson <gbenson@redhat.com>
12436
12437 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12438 gdb_assert.
12439 (i386_dr_low_get_addr): Remove vague comment.
12440 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12441 gdb_assert.
12442
38e08fca
GB
124432014-08-28 Gary Benson <gbenson@redhat.com>
12444
12445 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12446 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12447 internal_error.
12448 (linux_resume_one_lwp): Likewise.
12449 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12450 gdb_assert.
12451 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12452 with internal_error.
12453 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12454 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12455 (find_register_by_name): Replace fatal with internal_error.
12456 (find_regno): Likewise.
12457 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12458 * thread-db.c (thread_db_create_event): Likewise.
12459 (thread_db_load_search): Likewise.
12460 (try_thread_db_load_1): Likewise.
12461 * tracepoint.c (get_jump_space_head): Replace fatal with
12462 internal_error.
12463 (claim_trampoline_space): Likewise.
12464 (have_fast_tracepoint_trampoline_buffer): Likewise.
12465 (cmd_qtstart): Likewise.
12466 (stop_tracing): Likewise.
12467 (fast_tracepoint_collecting): Likewise.
12468 (target_malloc): Likewise.
12469 (download_tracepoint): Likewise.
12470 (download_trace_state_variables): Replace check with gdb_assert.
12471 (upload_fast_traceframes): Replace fatal with internal_error.
12472
34abf635
GB
124732014-08-19 Tom Tromey <tromey@redhat.com>
12474 Gary Benson <gbenson@redhat.com>
12475
12476 * Makefile.in (SFILES): Add common/common-debug.c.
12477 (OBS): Add common-debug.o.
12478 (common-debug.o): New rule.
12479 * debug.h (debug_printf): Don't declare.
12480 * debug.c (debug_printf): Renamed and rewritten as...
12481 (debug_vprintf): New function.
12482
f6e94d78
GB
124832014-08-19 Gary Benson <gbenson@redhat.com>
12484
12485 * utils.h: Do not include print-utils.h.
12486
9239eeab
GB
124872014-08-19 Tom Tromey <tromey@redhat.com>
12488 Gary Benson <gbenson@redhat.com>
12489
12490 * server.h: Add static assertion.
12491 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12492
ef87c8bb
GB
124932014-08-19 Tom Tromey <tromey@redhat.com>
12494 Gary Benson <gbenson@redhat.com>
12495
12496 * Makefile.in (SFILES): Add common/errors.c.
12497 (OBS): Add errors.o.
12498 (IPA_OBS): Add errors-ipa.o.
12499 (errors.o): New rule.
12500 (errors-ipa.o): Likewise.
12501 * utils.h (perror_with_name, error, warning): Don't declare.
12502 * utils.c (warning): Renamed and rewritten as...
12503 (vwarning): New function.
12504 (error): Renamed and rewritten as...
12505 (verror): New function.
12506 (internal_error): Renamed and rewritten as...
12507 (internal_verror): New function.
12508
bb974a24
GB
125092014-08-07 Gary Benson <gbenson@redhat.com>
12510
12511 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12512 * configure: Regenerate.
12513 * config.in: Likewise.
12514 * server.h: Do not include errno.h.
12515 * event-loop.c: Likewise.
12516 * hostio-errno.c: Likewise.
12517 * linux-low.c: Likewise.
12518 * remote-utils.c: Likewise.
12519 * spu-low.c: Likewise.
12520 * utils.c: Likewise.
12521 * gdbreplay.c: Unconditionally include errno.h.
12522
6d3d12eb
GB
125232014-08-07 Gary Benson <gbenson@redhat.com>
12524
12525 * server.h: Do not include string.h.
12526 * event-loop.c: Likewise.
12527 * linux-low.c: Likewise.
12528 * regcache.c: Likewise.
12529 * remote-utils.c: Likewise.
12530 * spu-low.c: Likewise.
12531 * utils.c: Likewise.
12532
dccbb609
GB
125332014-08-07 Gary Benson <gbenson@redhat.com>
12534
12535 * server.h: Do not include gdb_assert.h.
12536
e76df0d0
GB
125372014-08-07 Gary Benson <gbenson@redhat.com>
12538
12539 * server.h: Do not include common-utils.h.
12540
4cb9c816
GB
125412014-08-07 Gary Benson <gbenson@redhat.com>
12542
12543 * server.h: Do not include ptid.h.
12544 * notif.h: Likewise.
12545
3995eeee
GB
125462014-08-07 Gary Benson <gbenson@redhat.com>
12547
12548 * server.h: Do not include gdb_locale.h.
12549
cb9f1a9b
GB
125502014-08-07 Gary Benson <gbenson@redhat.com>
12551
12552 * server.h: Do not include gdb/signals.h.
12553 * win32-low.c: Likewise.
12554
a5fceff8
GB
125552014-08-07 Gary Benson <gbenson@redhat.com>
12556
12557 * server.h: Do not include pathmax.h.
12558
b9391142
GB
125592014-08-07 Gary Benson <gbenson@redhat.com>
12560
12561 * server.h: Do not include libiberty.h.
12562 * linux-bfin-low.c: Likewise.
12563
0e443c87
GB
125642014-08-07 Gary Benson <gbenson@redhat.com>
12565
12566 * server.h: Do not include ansidecl.h.
12567
8ebb3f56
GB
125682014-08-07 Gary Benson <gbenson@redhat.com>
12569
12570 * linux-x86-low.c: Do not include stddef.h.
12571 * lynx-ppc-low.c: Likewise.
12572 * tracepoint.c: Likewise.
12573
8980bdf6
GB
125742014-08-07 Gary Benson <gbenson@redhat.com>
12575
12576 * server.h: Do not include stdarg.h.
12577 * nto-low.c: Likewise.
12578
d7096f71
GB
125792014-08-07 Gary Benson <gbenson@redhat.com>
12580
12581 * server.h: Do not include stdlib.h.
12582 * inferiors.c: Likewise.
12583 * linux-low.c: Likewise.
12584 * regcache.c: Likewise.
12585 * spu-low.c: Likewise.
12586 * tracepoint.c: Likewise.
12587 * utils.c: Likewise.
12588
d02f550d
GB
125892014-08-07 Gary Benson <gbenson@redhat.com>
12590
12591 * server.h: Do not include stdio.h.
12592 * linux-low.c: Likewise.
12593 * remote-utils.c: Likewise.
12594 * spu-low.c: Likewise.
12595 * utils.c: Likewise.
12596 * wincecompat.c: Likewise.
12597
87f6c4e3
GB
125982014-08-06 Gary Benson <gbenson@redhat.com>
12599
12600 * regcache.c (init_register_cache): Move conditionals inside if.
12601
7089dca4
GB
126022014-08-06 Gary Benson <gbenson@redhat.com>
12603
12604 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12605
462f517e
GB
126062014-07-31 Gary Benson <gbenson@redhat.com>
12607
12608 * ax.h: Do not include server.h.
12609 * gdbthread.h: Likewise.
12610 * lynx-low.h: Likewise.
12611 * notif.h: Likewise.
12612
976411d6
GB
126132014-07-30 Gary Benson <gbenson@redhat.com>
12614
12615 * server.h: Include common-defs.h.
12616 Do not include config.h or build-gnulib-gdbserver/config.h.
12617
d41f6d8e
GB
126182014-07-30 Gary Benson <gbenson@redhat.com>
12619
12620 * hostio-errno.c: Move server.h to top of includes list.
12621 * inferiors.c: Likewise.
12622 * linux-x86-low.c: Likewise.
12623 * notif.c: Include server.h.
12624
314c6a35
TT
126252014-07-24 Tom Tromey <tromey@redhat.com>
12626 Gary Benson <gbenson@redhat.com>
12627
12628 * server.h (CORE_ADDR): Now unsigned.
12629
69ff6be5
PA
126302014-07-16 Pedro Alves <palves@redhat.com>
12631
12632 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12633
ce9e3fe7
PA
126342014-07-15 Pedro Alves <palves@redhat.com>
12635
12636 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12637 copy.
12638
e76126e8
PA
126392014-07-11 Pedro Alves <palves@redhat.com>
12640
12641 * linux-low.c (kill_wait_lwp): New function, based on
12642 kill_one_lwp_callback, but use my_waitpid directly.
12643 (kill_one_lwp_callback, linux_kill): Use it.
12644
8e9db26e
PA
126452014-06-23 Pedro Alves <palves@redhat.com>
12646
12647 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12648 before setting DR0..DR3.
12649
698b3e08
GB
126502014-06-20 Gary Benson <gbenson@redhat.com>
12651
12652 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12653 * configure: Regenerated.
12654 * config.in: Likewise.
12655
125f8a3d
GB
126562014-06-20 Gary Benson <gbenson@redhat.com>
12657
12658 * Makefile.in (SFILES): Update locations for files moved
12659 from common to nat.
12660 (object file files): Reordered.
12661
42995dbd
GB
126622014-06-20 Gary Benson <gbenson@redhat.com>
12663
12664 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12665 (i386_dr_low_set_addr): Likewise.
12666 (i386_dr_low_get_addr): Likewise.
12667 (i386_dr_low_can_set_control): Likewise.
12668 (i386_dr_low_set_control): Likewise.
12669 (i386_dr_low_get_control): Likewise.
12670 (i386_dr_low_get_status): Likewise.
12671 (i386_get_debug_register_length): Likewise.
12672 * linux-x86-low.c (i386_dr_low_set_addr):
12673 Changed signature. Made static.
12674 (i386_dr_low_get_addr): Likewise.
12675 (i386_dr_low_set_control): Likewise.
12676 (i386_dr_low_get_control): Likewise.
12677 (i386_dr_low_get_status): Likewise.
12678 (i386_dr_low): New global variable.
12679 * win32-i386-low.c (i386_dr_low_set_addr):
12680 Changed signature. Made static.
12681 (i386_dr_low_get_addr): Likewise.
12682 (i386_dr_low_set_control): Likewise.
12683 (i386_dr_low_get_control): Likewise.
12684 (i386_dr_low_get_status): Likewise.
12685 (i386_dr_low): New global variable.
12686
e1d2394b
MS
126872014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12688
12689 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12690 * Makefile.in (AR, AR_FLAGS): Define.
12691 * configure: Regenerate.
12692
3a8ee006
GB
126932014-06-19 Gary Benson <gbenson@redhat.com>
12694
12695 * Makefile.in (i386-dregs.o): New rule.
12696 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12697 * i386-low.c (target.h): Remove include.
12698 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12699 (DR_CONTROL_SHIFT): Likewise.
12700 (DR_CONTROL_SIZE): Likewise.
12701 (DR_RW_EXECUTE): Likewise.
12702 (DR_RW_WRITE): Likewise.
12703 (DR_RW_READ): Likewise.
12704 (DR_RW_IORW): Likewise.
12705 (DR_LEN_1): Likewise.
12706 (DR_LEN_2): Likewise.
12707 (DR_LEN_4): Likewise.
12708 (DR_LEN_8): Likewise.
12709 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12710 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12711 (DR_ENABLE_SIZE): Likewise.
12712 (DR_LOCAL_SLOWDOWN): Likewise.
12713 (DR_GLOBAL_SLOWDOWN): Likewise.
12714 (DR_CONTROL_RESERVED): Likewise.
12715 (I386_DR_CONTROL_MASK): Likewise.
12716 (I386_DR_VACANT): Likewise.
12717 (I386_DR_LOCAL_ENABLE): Likewise.
12718 (I386_DR_GLOBAL_ENABLE): Likewise.
12719 (I386_DR_DISABLE): Likewise.
12720 (I386_DR_SET_RW_LEN): Likewise.
12721 (I386_DR_GET_RW_LEN): Likewise.
12722 (I386_DR_WATCH_HIT): Likewise.
12723 (i386_wp_op_t): Likewise.
12724 (i386_show_dr): Likewise.
12725 (i386_length_and_rw_bits): Likewise.
12726 (i386_insert_aligned_watchpoint): Likewise.
12727 (i386_remove_aligned_watchpoint): Likewise.
12728 (i386_handle_nonaligned_watchpoint): Likewise.
12729 i386_update_inferior_debug_regs(): Likewise.
12730 (i386_dr_insert_watchpoint): Likewise.
12731 (i386_dr_remove_watchpoint): Likewise.
12732 (i386_dr_region_ok_for_watchpoint): Likewise.
12733 (i386_dr_stopped_data_address): Likewise.
12734 (i386_dr_stopped_by_watchpoint): Likewise.
12735
8f26655c
GB
127362014-06-19 Gary Benson <gbenson@redhat.com>
12737
12738 * i386-low.c (i386_dr_show): Renamed to
12739 i386_show_dr and made static. All uses updated.
12740 (i386_dr_length_and_rw_bits): Renamed to
12741 i386_length_and_rw_bits and made static.
12742 All uses updated.
12743 (i386_dr_insert_aligned_watchpoint): Renamed to
12744 i386_insert_aligned_watchpoint and made static.
12745 All uses updated.
12746 (i386_dr_remove_aligned_watchpoint): Renamed to
12747 i386_remove_aligned_watchpoint and made static.
12748 All uses updated.
12749 (i386_dr_update_inferior_debug_regs): Renamed to
12750 i386_update_inferior_debug_regs and made static.
12751 All uses updated.
12752
b9228891
GB
127532014-06-18 Gary Benson <gbenson@redhat.com>
12754
5171def3
GB
12755 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12756 (i386_dr_low_can_set_control): Likewise.
12757 (i386_get_debug_register_length): Likewise.
12758 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12759 (i386_dr_low_can_set_control): Likewise.
12760 (i386_get_debug_register_length): Likewise.
12761
127622014-06-17 Gary Benson <gbenson@redhat.com>
12763
b9228891
GB
12764 * i386-low.h (i386-dregs.h): New include.
12765 (DR_FIRSTADDR): Now in i386-dregs.h.
12766 (DR_LASTADDR): Likewise.
12767 (DR_NADDR): Likewise.
12768 (DR_STATUS): Likewise.
12769 (DR_CONTROL): Likewise.
12770 (i386_debug_reg_state): Likewise.
12771 (i386_dr_insert_watchpoint): Likewise.
12772 (i386_dr_remove_watchpoint): Likewise.
12773 (i386_dr_region_ok_for_watchpoint): Likewise.
12774 (i386_dr_stopped_data_address): Likewise.
12775 (i386_dr_stopped_by_watchpoint): Likewise.
12776 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12777
4be83cc2
GB
127782014-06-18 Gary Benson <gbenson@redhat.com>
12779
12780 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12781 i386_dr_insert_watchpoint.
12782 (i386_low_remove_watchpoint): Renamed to
12783 i386_dr_remove_watchpoint.
12784 (i386_low_region_ok_for_watchpoint): Renamed to
12785 i386_dr_region_ok_for_watchpoint.
12786 (i386_low_stopped_data_address): Renamed to
12787 i386_dr_stopped_data_address.
12788 (i386_low_stopped_by_watchpoint): Renamed to
12789 i386_dr_stopped_by_watchpoint.
12790 * i386-low.c (i386_show_dr): Renamed to
12791 i386_dr_show and made nonstatic. All uses updated.
12792 (i386_length_and_rw_bits): Renamed to
12793 i386_dr_length_and_rw_bits and made nonstatic.
12794 All uses updated.
12795 (i386_insert_aligned_watchpoint): Renamed to
12796 i386_dr_insert_aligned_watchpoint and made nonstatic.
12797 All uses updated.
12798 (i386_remove_aligned_watchpoint): Renamed to
12799 i386_dr_remove_aligned_watchpoint and made nonstatic.
12800 All uses updated.
12801 (i386_update_inferior_debug_regs): Renamed to
12802 i386_dr_update_inferior_debug_regs and made nonstatic.
12803 All uses updated.
12804 (i386_low_insert_watchpoint): Renamed to
12805 i386_dr_insert_watchpoint. All uses updated.
12806 (i386_low_remove_watchpoint): Renamed to
12807 i386_dr_remove_watchpoint. All uses updated.
12808 (i386_low_region_ok_for_watchpoint): Renamed to
12809 i386_dr_region_ok_for_watchpoint. All uses updated.
12810 (i386_low_stopped_data_address): Renamed to
12811 i386_dr_stopped_data_address. All uses updated.
12812 (i386_low_stopped_by_watchpoint): Renamed to
12813 i386_dr_stopped_by_watchpoint. All uses updated.
12814
131aa0d4
GB
128152014-06-18 Gary Benson <gbenson@redhat.com>
12816
12817 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12818 (i386_dr_low_can_set_control): Likewise.
12819 (i386_insert_aligned_watchpoint): New check.
12820
d9305f7f
GB
128212014-06-18 Gary Benson <gbenson@redhat.com>
12822
12823 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12824 Renamed to state.
12825
e927c9fc
GB
128262014-06-18 Gary Benson <gbenson@redhat.com>
12827
12828 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12829 instead of fatal and error.
12830 (i386_handle_nonaligned_watchpoint): Likewise.
12831
1b6d4134
GB
128322014-06-18 Gary Benson <gbenson@redhat.com>
12833
12834 * i386-low.c (i386_get_debug_register_length): New macro.
12835 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12836 (i386_show_dr): Use debug_printf instead of fprintf. Use
12837 phex to format values.
12838
6e62758f
GB
128392014-06-18 Gary Benson <gbenson@redhat.com>
12840
12841 * i386-low.h: Comment changes.
12842 * i386-low.c: Likewise.
12843
fc6e2f03
GB
128442014-06-18 Gary Benson <gbenson@redhat.com>
12845
12846 * i386-low.c: Whitespace changes.
12847
f9d1eeed
TT
128482014-06-12 Tom Tromey <tromey@redhat.com>
12849
12850 * utils.c (freeargv): Remove.
12851
0b04e523
TT
128522014-06-12 Tom Tromey <tromey@redhat.com>
12853
12854 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12855 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12856 (parse_debug_format_options): Likewise.
12857 (gdbserver_usage): Likewise.
12858 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12859 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12860 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12861 against libiberty.
12862 ($(LIBGNU)): Depend on libiberty.
12863 (all-lib): Recurse into all subdirs.
12864 (install-only): Invoke "install" target in subdirs.
12865 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12866 targets.
12867 * configure: Rebuild.
12868 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12869 for vasprintf, vsnprintf, or gettimeofday.
12870 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12871 srv_tgtobj.
12872
270c9937
JB
128732014-06-05 Joel Brobecker <brobecker@adacore.com>
12874
12875 * development.sh: Delete.
12876 * Makefile.in (config.status): Adjust dependency on development.sh.
12877 * configure.ac: Adjust development.sh source call.
12878 * configure: Regenerate.
12879
0a261ed8
PA
128802014-06-02 Pedro Alves <palves@redhat.com>
12881
12882 * ax.c (gdb_free_agent_expr): New function.
12883 * ax.h (gdb_free_agent_expr): New declaration.
12884 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12885 list.
12886 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12887 static.
12888 (clear_breakpoint_conditions_and_commands): New function.
12889 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12890 (clear_breakpoint_conditions_and_commands): New declaration.
12891
e9dae05e
RR
128922014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12893
12894 * linux-aarch64-low.c (asm/ptrace.h): Include.
12895
5876f503
JK
128962014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12897
12898 Fix TLS access for -static -pthread.
12899 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12900 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12901 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12902
802e8e6d
PA
129032014-05-20 Pedro Alves <palves@redhat.com>
12904
12905 * linux-aarch64-low.c (aarch64_insert_point)
12906 (aarch64_remove_point): No longer check whether the type is
12907 supported here. Adjust to new interface.
12908 (the_low_target): Install aarch64_supports_z_point_type as
12909 supports_z_point_type method.
12910 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12911 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12912 instead of a Z packet char. Adjust.
12913 (arm_supports_z_point_type): New function.
12914 (arm_insert_point, arm_remove_point): Adjust to new interface.
12915 (the_low_target): Install arm_supports_z_point_type.
12916 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12917 (cris_insert_point, cris_remove_point): Adjust to new interface.
12918 Don't check whether the type is supported here.
12919 (the_low_target): Install cris_supports_z_point_type.
12920 * linux-low.c (linux_supports_z_point_type): New function.
12921 (linux_insert_point, linux_remove_point): Adjust to new interface.
12922 * linux-low.h (struct linux_target_ops) <insert_point,
12923 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12924 raw_breakpoint pointer parameter.
12925 <supports_z_point_type>: New method.
12926 * linux-mips-low.c (mips_supports_z_point_type): New function.
12927 (mips_insert_point, mips_remove_point): Adjust to new interface.
12928 Use mips_supports_z_point_type.
12929 (the_low_target): Install mips_supports_z_point_type.
12930 * linux-ppc-low.c (the_low_target): Install NULL as
12931 supports_z_point_type method.
12932 * linux-s390-low.c (the_low_target): Install NULL as
12933 supports_z_point_type method.
12934 * linux-sparc-low.c (the_low_target): Install NULL as
12935 supports_z_point_type method.
12936 * linux-x86-low.c (x86_supports_z_point_type): New function.
12937 (x86_insert_point): Adjust to new insert_point interface. Use
12938 insert_memory_breakpoint. Adjust to new
12939 i386_low_insert_watchpoint interface.
12940 (x86_remove_point): Adjust to remove_point interface. Use
12941 remove_memory_breakpoint. Adjust to new
12942 i386_low_remove_watchpoint interface.
12943 (the_low_target): Install x86_supports_z_point_type.
12944 * lynx-low.c (lynx_target_ops): Install NULL as
12945 supports_z_point_type callback.
12946 * nto-low.c (nto_supports_z_point_type): New.
12947 (nto_insert_point, nto_remove_point): Adjust to new interface.
12948 (nto_target_ops): Install nto_supports_z_point_type.
12949 * mem-break.c: Adjust intro comment.
12950 (struct raw_breakpoint) <raw_type, size>: New fields.
12951 <inserted>: Update comment.
12952 <shlib_disabled>: Delete field.
12953 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12954 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12955 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12956 (raw_bkpt_type_to_target_hw_bp_type): New function.
12957 (find_enabled_raw_code_breakpoint_at): New function.
12958 (find_raw_breakpoint_at): New type and size parameters. Use them.
12959 (insert_memory_breakpoint): New function, based off
12960 set_raw_breakpoint_at.
12961 (remove_memory_breakpoint): New function.
12962 (set_raw_breakpoint_at): Reimplement.
12963 (set_breakpoint): New, based on set_breakpoint_at.
12964 (set_breakpoint_at): Reimplement.
12965 (delete_raw_breakpoint): Go through the_target->remove_point
12966 instead of assuming memory breakpoints.
12967 (find_gdb_breakpoint_at): Delete.
12968 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12969 (find_gdb_breakpoint): New function.
12970 (set_gdb_breakpoint_at): Delete.
12971 (z_type_supported): New function.
12972 (set_gdb_breakpoint_1): New function, loosely based off
12973 set_gdb_breakpoint_at.
12974 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12975 (delete_gdb_breakpoint_at): Delete.
12976 (delete_gdb_breakpoint_1): New function, loosely based off
12977 delete_gdb_breakpoint_at.
12978 (delete_gdb_breakpoint): New function.
12979 (clear_gdb_breakpoint_conditions): Rename to ...
12980 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12981 breakpoint.
12982 (add_condition_to_breakpoint): Make static.
12983 (add_breakpoint_condition): Take a struct breakpoint pointer
12984 instead of an address. Adjust.
12985 (gdb_condition_true_at_breakpoint): Rename to ...
12986 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12987 z_type parameter.
12988 (gdb_condition_true_at_breakpoint): Reimplement.
12989 (add_breakpoint_commands): Take a struct breakpoint pointer
12990 instead of an address. Adjust.
12991 (gdb_no_commands_at_breakpoint): Rename to ...
12992 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12993 parameter. Return true if no breakpoint was found. Change debug
12994 output.
12995 (gdb_no_commands_at_breakpoint): Reimplement.
12996 (run_breakpoint_commands): Rename to ...
12997 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12998 and change return type to boolean.
12999 (run_breakpoint_commands): New function.
13000 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13001 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13002 breakpoint. Go through the_target->remove_point instead of
13003 assuming memory breakpoint.
13004 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13005 software and hardware breakpoints.
13006 (reinsert_raw_breakpoint): Go through the_target->insert_point
13007 instead of assuming memory breakpoint.
13008 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13009 software and hardware breakpoints.
13010 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13011 Check both software and hardware breakpoints.
13012 (validate_inserted_breakpoint): Assert the breakpoint is a
13013 software breakpoint. Set the inserted flag to -1 instead of
13014 setting shlib_disabled.
13015 (delete_disabled_breakpoints): Adjust.
13016 (validate_breakpoints): Only validate software breakpoints.
13017 Adjust to inserted flag change.
13018 (check_mem_read, check_mem_write): Skip breakpoint types other
13019 than software breakpoints. Adjust to inserted flag change.
13020 * mem-break.h (enum raw_bkpt_type): New enum.
13021 (raw_breakpoint, struct process_info): Forward declare.
13022 (Z_packet_to_target_hw_bp_type): Delete declaration.
13023 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13024 (set_gdb_breakpoint, delete_gdb_breakpoint)
13025 (clear_breakpoint_conditions): New declarations.
13026 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13027 (breakpoint_inserted_here): Update comment.
13028 (add_breakpoint_condition, add_breakpoint_commands): Replace
13029 address parameter with a breakpoint pointer parameter.
13030 (gdb_breakpoint_here): Update comment.
13031 (delete_gdb_breakpoint_at): Delete.
13032 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13033 * server.c (process_point_options): Take a struct breakpoint
13034 pointer instead of an address. Adjust.
13035 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13036 delete_gdb_breakpoint.
13037 * spu-low.c (spu_target_ops): Install NULL as
13038 supports_z_point_type method.
13039 * target.h: Include mem-break.h.
13040 (struct target_ops) <prepare_to_access_memory>: Update comment.
13041 <supports_z_point_type>: New field.
13042 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13043 instead of a char. Also take a raw breakpoint pointer.
13044 * win32-arm-low.c (the_low_target): Install NULL as
13045 supports_z_point_type.
13046 * win32-i386-low.c (i386_supports_z_point_type): New function.
13047 (i386_insert_point, i386_remove_point): Adjust to new interface.
13048 (the_low_target): Install i386_supports_z_point_type.
13049 * win32-low.c (win32_supports_z_point_type): New function.
13050 (win32_insert_point, win32_remove_point): Adjust to new interface.
13051 (win32_target_ops): Install win32_supports_z_point_type.
13052 * win32-low.h (struct win32_target_ops):
13053 <supports_z_point_type>: New method.
13054 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13055 instead of a char. Also take a raw breakpoint pointer.
13056
932539e3
PA
130572014-05-20 Pedro Alves <palves@redhat.com>
13058
13059 * mem-break.h: Include break-common.h.
13060 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13061 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13062 (Z_packet_to_target_hw_bp_type): New declaration.
13063 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13064 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13065 (Z_PACKET_ACCESS_WP): Delete macros.
13066 (Z_packet_to_hw_type): Delete function.
13067 * i386-low.h: Don't include break-common.h here.
13068 (Z_packet_to_hw_type): Delete declaration.
13069 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13070 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13071 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13072 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13073 * linux-aarch64-low.c: Don't include break-common.h here.
13074 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13075 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13076 (Z_packet_to_target_hw_bp_type): Delete function.
13077 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13078 function.
13079 (mips_insert_point, mips_remove_point): Use
13080 Z_packet_to_target_hw_bp_type.
13081
4ff0d3d8
PA
130822014-05-20 Pedro Alves <palves@redhat.com>
13083
13084 * linux-aarch64-low.c: Include break-common.h.
13085 (enum target_point_type): Delete.
13086 (Z_packet_to_point_type): Rename to ...
13087 (Z_packet_to_target_hw_bp_type): ... this, and return a
13088 target_hw_bp_type instead.
13089 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13090 instead of an enum target_point_type.
13091 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13092 breakpoint type.
13093 (aarch64_dr_state_insert_one_point)
13094 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13095 (aarch64_handle_aligned_watchpoint)
13096 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13097 Take an enum target_hw_bp_type instead of an enum
13098 target_point_type.
13099 (aarch64_supports_z_point_type): New function.
13100 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13101 use Z_packet_to_target_hw_bp_type.
13102
786dc519
JB
131032014-05-20 Joel Brobecker <brobecker@adacore.com>
13104
13105 * configure.ac: Only use -Werror by default when DEVELOPMENT
13106 is true.
13107 * configure: Regenerate.
13108
9e0aa64f
JK
131092014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13110
13111 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13112 * linux-x86-low.c (X86_64_USER_REGS): New.
13113 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13114
2b577b92
YQ
131152014-04-28 Yao Qi <yao@codesourcery.com>
13116
13117 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13118 name.
13119
94611da2
PA
131202014-04-25 Pedro Alves <palves@redhat.com>
13121
13122 PR server/16255
13123 * linux-low.c (linux_attach_fail_reason_string): New function.
13124 (linux_attach_lwp): Delete.
13125 (linux_attach_lwp_1): Rename to ...
13126 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13127 argument. Remove "initial" parameter. Return int instead of
13128 void. Don't error or warn here.
13129 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13130 failure to attach to the tgid. Call warning when failing to
13131 attach to an lwp.
13132 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13133 argument. Remove "initial" parameter. Return int instead of
13134 void. Don't error or warn here.
13135 (linux_attach_fail_reason_string): New declaration.
13136 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13137 interface change. Use linux_attach_fail_reason_string.
13138
01f9f808
MS
131392014-04-24 Michael Sturm <michael.sturm@mintel.com>
13140 Walfred Tedeschi <walfred.tedeschi@intel.com>
13141
13142 * Makefile.in: Added rules to handle new files
13143 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13144 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13145 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13146 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13147 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13148 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13149 x32-avx512-linux.o.
13150 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13151 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13152 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13153 i386/x32-avx512.xml.
13154 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13155 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13156 i386/x32-avx512-linux.xml.
13157 * i387-fp.c (num_avx512_k_registers): New constant for number
13158 of K registers.
13159 (num_avx512_zmmh_low_registers): New constant for number of
13160 lower ZMM registers (0-15).
13161 (num_avx512_zmmh_high_registers): New constant for number of
13162 higher ZMM registers (16-31).
13163 (num_avx512_ymmh_registers): New contant for number of higher
13164 YMM registers (ymm16-31 added by avx521 on x86_64).
13165 (num_avx512_xmm_registers): New constant for number of higher
13166 XMM registers (xmm16-31 added by AVX512 on x86_64).
13167 (struct i387_xsave): Add space for AVX512 registers.
13168 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13169 Add code to handle AVX512 registers.
13170 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13171 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13172 prototypei from generated file.
13173 (tdesc_amd64_avx512_linux): Likewise.
13174 (init_registers_x32_avx512_linux): Likewise.
13175 (tdesc_x32_avx512_linux): Likewise.
13176 (init_registers_i386_avx512_linux): Likewise.
13177 (tdesc_i386_avx512_linux): Likewise.
13178 (x86_64_regmap): Add AVX512 registers.
13179 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13180 mask.
13181 (initialize_low_arch): Add code to initialize AVX512 registers.
13182
51aa91f9
PA
131832014-04-23 Pedro Alves <palves@redhat.com>
13184
13185 * mem-break.c (find_gdb_breakpoint_at): Make static.
13186 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13187
a4165e94
PA
131882014-04-23 Pedro Alves <palves@redhat.com>
13189
13190 * i386-low.c: Don't include break-common.h here.
13191 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13192 prototype to take target_hw_bp_type as argument instead of a Z
13193 packet char.
13194 * i386-low.h: Include break-common.h here.
13195 (Z_packet_to_hw_type): Declare.
13196 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13197 prototypes.
13198 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13199 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13200 (x86_remove_point): Convert the packet number to a
13201 target_hw_bp_type before calling i386_low_remove_watchpoint.
13202 * win32-i386-low.c (i386_insert_point): Convert the packet number
13203 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13204 (i386_remove_point): Convert the packet number to a
13205 target_hw_bp_type before calling i386_low_remove_watchpoint.
13206
b8acf843
PA
132072014-04-23 Pedro Alves <palves@redhat.com>
13208
13209 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13210
d708bcd1
PA
132112014-04-10 Pedro Alves <palves@redhat.com>
13212
13213 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13214 Check if the condition or command is NULL before checking if the
13215 breakpoint is known. On success, return true.
13216 * mem-break.h (add_breakpoint_condition): Document return.
13217 (add_breakpoint_commands): Add describing comment.
13218 * server.c (skip_to_semicolon): New function.
13219 (process_point_options): Use it.
13220
2eec7d5b
PA
132212014-04-09 Pedro Alves <palves@redhat.com>
13222
13223 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13224 to lwpid_of.
13225
fa96cb38
PA
132262014-02-27 Pedro Alves <palves@redhat.com>
13227
13228 PR 12702
13229 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13230 macros.
13231 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13232 output.
13233 (last_thread_of_process_p): Take a PID argument instead of a
13234 thread pointer.
13235 (linux_wait_for_lwp): Delete.
13236 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13237 functions.
13238 (linux_low_filter_event): New function, party factored out from
13239 linux_wait_for_event.
13240 (linux_wait_for_event): Rename to ...
13241 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13242 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13243 sigsuspend. Check for zombie leaders.
13244 (linux_wait_for_event): Reimplement as wrapper around
13245 linux_wait_for_event_filtered.
13246 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13247 a normal or signal exit is seen, it's the whole process exiting.
13248 (wait_for_sigstop): No longer a for_each_inferior callback.
13249 Rewrite on top of linux_wait_for_event_filtered.
13250 (stop_all_lwps): Call wait_for_sigstop directly.
13251 * server.c (resume, handle_target_event): Handle
13252 TARGET_WAITKIND_NO_RESUMED.
13253
d763de10
JB
132542014-02-26 Joel Brobecker <brobecker@adacore.com>
13255
13256 * win32-low.c (psapi_get_dll_name,
13257 * win32_CreateToolhelp32Snapshot): Delete.
13258 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13259 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13260 Delete.
13261 (handle_load_dll): Add function description.
13262 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13263
850a0f76
JB
132642014-02-26 Joel Brobecker <brobecker@adacore.com>
13265
13266 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13267 Add comment.
13268 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13269 base address when calling win32_add_one_solib.
13270 (handle_load_dll): Delete local variable load_addr.
13271 Remove 0x1000 offset applied to DLL base address when calling
13272 win32_add_one_solib.
13273 (handle_unload_dll): Add comment.
13274
f25b3fc3
JB
132752014-02-26 Joel Brobecker <brobecker@adacore.com>
13276
13277 * win32-low.c (win32_add_all_dlls): Renames
13278 win32_ensure_ntdll_loaded. Rewrite function documentation.
13279 Adjust implementation to always load all DLLs.
13280 Add 0x1000 offset to DLL base address when calling
13281 win32_add_one_solib.
13282 (child_initialization_done): New static global.
13283 (do_initial_child_stuff): Set child_initialization_done to
13284 zero during child initialization, and 1 after. Replace call
13285 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13286 Add comment.
13287 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13288 (handle_unload_dll): Add function documentation.
13289 (get_child_debug_event): Ignore load and unload DLL events
13290 during child initialization.
13291
d86d4aaf
DE
132922014-02-20 Doug Evans <dje@google.com>
13293
3bc32da3 13294 Remove global all_lwps.
d86d4aaf
DE
13295 * inferiors.h (ptid_of): Move here from linux-low.h.
13296 (pid_of, lwpid_of): Ditto.
13297 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13298 parameter is a struct thread_info * now.
13299 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13300 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13301 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13302 directly.
13303 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13304 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13305 * linux-arm-low.c (update_registers_callback): Update, "entry"
13306 parameter is a struct thread_info * now.
13307 Fetch lwpid from current_inferior directly.
13308 (arm_insert_point): Pass &all_threads to find_inferior instead of
13309 &all_lwps.
13310 (arm_remove_point): Ditto.
13311 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13312 (arm_prepare_to_resume): Fetch pid from thread.
13313 (arm_read_description): Fetch lwpid from current_inferior directly.
13314 * linux-low.c (all_lwps): Delete.
13315 (delete_lwp): Delete call to remove_inferior.
13316 (handle_extended_wait): Fetch lwpid from thread.
13317 (add_lwp): Don't set lwp->entry.id. Remove call to
13318 add_inferior_to_list.
13319 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13320 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13321 (kill_one_lwp_callback): Ditto.
13322 (linux_kill): Don't dereference NULL pointer.
13323 Fetch ptid,lwpid from thread.
13324 (get_detach_signal): Fetch ptid from thread.
13325 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13326 Simplify call to regcache_invalidate_thread.
13327 (delete_lwp_callback): Update, "entry" parameter is a
13328 struct thread_info * now. Fetch pid from thread.
13329 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13330 (status_pending_p_callback): Update, "entry" parameter is a
13331 struct thread_info * now. Fetch ptid from thread.
13332 (find_lwp_pid): Update, "entry" parameter is a
13333 struct thread_info * now.
13334 (linux_wait_for_lwp): Fetch pid from thread.
13335 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13336 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13337 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13338 (dequeue_one_deferred_signal): Ditto.
13339 (cancel_breakpoint): Fetch ptid from current_inferior.
13340 (linux_wait_for_event): Pass &all_threads to find_inferior,
13341 not &all_lwps. Fetch ptid, lwpid from thread.
13342 (count_events_callback): Update, "entry" parameter is a
13343 struct thread_info * now.
13344 (select_singlestep_lwp_callback): Ditto.
13345 (select_event_lwp_callback): Ditto.
13346 (cancel_breakpoints_callback): Ditto.
13347 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13348 not &all_lwps.
13349 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13350 (unsuspend_one_lwp): Update, "entry" parameter is a
13351 struct thread_info * now.
13352 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13353 not &all_lwps.
13354 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13355 Fetch lwpid from thread, not lwp.
13356 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13357 Pass &all_threads to find_inferior, not &all_lwps.
13358 (send_sigstop): Fetch lwpid from thread, not lwp.
13359 (send_sigstop_callback): Update, "entry" parameter is a
13360 struct thread_info * now.
13361 (suspend_and_send_sigstop_callback): Ditto.
13362 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13363 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13364 struct thread_info * now.
13365 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13366 from thread, lwp.
13367 (lwp_running): Update, "entry" parameter is a
13368 struct thread_info * now.
13369 (stop_all_lwps): Fetch ptid from thread.
13370 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13371 (linux_resume_one_lwp): Fetch lwpid from thread.
13372 (linux_set_resume_request): Update, "entry" parameter is a
13373 struct thread_info * now. Fetch pid, lwpid from thread.
13374 (resume_status_pending_p): Update, "entry" parameter is a
13375 struct thread_info * now.
13376 (need_step_over_p): Ditto. Fetch lwpid from thread.
13377 (start_step_over): Fetch lwpid from thread.
13378 (linux_resume_one_thread): Update, "entry" parameter is a
13379 struct thread_info * now. Fetch lwpid from thread.
13380 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13381 (proceed_one_lwp): Update, "entry" parameter is a
13382 struct thread_info * now. Fetch lwpid from thread.
13383 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13384 struct thread_info * now.
13385 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13386 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13387 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13388 directly.
13389 (regsets_store_inferior_registers): Ditto.
13390 (fetch_register, store_register): Ditto.
13391 (linux_read_memory, linux_write_memory): Ditto.
13392 (linux_request_interrupt): Ditto.
13393 (linux_read_auxv): Ditto.
13394 (linux_xfer_siginfo): Ditto.
13395 (linux_qxfer_spu): Ditto.
13396 (linux_qxfer_libraries_svr4): Ditto.
13397 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13398 moved to inferiors.h.
13399 (get_lwp): Delete.
13400 (get_thread_lwp): Update.
13401 (struct lwp_info): Delete member "entry". Simplify comment for
13402 member "thread".
13403 (all_lwps): Delete.
13404 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13405 current_inferior directly.
13406 (update_watch_registers_callback): Update, "entry" parameter is a
13407 struct thread_info * now. Fetch pid from thread.
13408 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13409 (mips_insert_point): Fetch lwpid from current_inferior.
13410 Pass &all_threads to find_inferior, not &all_lwps.
13411 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13412 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13413 directly.
13414 (mips_stopped_data_address): Ditto.
13415 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13416 directly.
13417 * linux-tile-low.c (tile_arch_setup): Ditto.
13418 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13419 (update_debug_registers_callback): Update, "entry" parameter is a
13420 struct thread_info * now. Fetch pid from thread.
13421 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13422 Pass &all_threads to find_inferior, not &all_lwps.
13423 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13424 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13425 Pass &all_threads to find_inferior, not &all_lwps.
13426 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13427 (i386_dr_low_get_status): Ditto.
13428 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13429 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13430 (x86_linux_read_description): Ditto.
13431 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13432
3b8361aa
DE
134332014-02-20 Doug Evans <dje@google.com>
13434
13435 * inferiors.c (get_first_inferior): Fix buglet.
13436
f7667f0d
DE
134372014-02-19 Doug Evans <dje@google.com>
13438
13439 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13440 * inferiors.c (add_thread): Change result type to struct thread_info *.
13441 All callers updated.
13442 (add_lwp): Call add_thread here instead of in callers.
13443 All callers updated.
13444 * linux-low.h (get_lwp_thread): Rewrite.
13445 (struct lwp_info): New member "thread".
13446
b3312d80
DE
134472014-02-19 Doug Evans <dje@google.com>
13448
13449 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13450 All callers updated.
13451
ecc6f45c
DE
134522014-02-19 Doug Evans <dje@google.com>
13453
13454 * inferiors.c (add_thread): Fix whitespace.
13455
649ebbca
DE
134562014-02-19 Doug Evans <dje@google.com>
13457
13458 * dll.c (clear_dlls): Replace accessing list implemention details
13459 with API function.
13460 * gdbthread.h (get_first_thread): Declare.
13461 * inferiors.c (for_each_inferior_with_data): New function.
13462 (get_first_thread): New function.
13463 (find_thread_ptid): Simplify.
13464 (get_first_inferior): New function.
13465 (clear_list): Delete.
13466 (one_inferior_p): New function.
13467 (clear_inferior_list): New function.
13468 (clear_inferiors): Update.
13469 * inferiors.h (for_each_inferior_with_data): Declare.
13470 (clear_inferior_list): Declare.
13471 (one_inferior_p): Declare.
13472 (get_first_inferior): Declare.
13473 * linux-low.c (linux_wait_for_event): Replace accessing list
13474 implemention details with API function.
13475 * server.c (target_running): Ditto.
13476 (accumulate_file_name_length): New function.
13477 (emit_dll_description): New function.
13478 (handle_qxfer_libraries): Replace accessing list implemention
13479 details with API function.
13480 (handle_qxfer_threads_worker): New function.
13481 (handle_qxfer_threads_proper): Replace accessing list implemention
13482 details with API function.
13483 (handle_query): Ditto.
13484 (visit_actioned_threads_callback_ftype): New typedef.
13485 (visit_actioned_threads_data): New struct.
13486 (visit_actioned_threads): Rewrite to be find_inferior callback.
13487 (resume): Call find_inferior.
13488 (handle_status): Replace accessing list implemention
13489 details with API function.
13490 (process_serial_event): Replace accessing list implemention details
13491 with API function.
13492 * target.c (set_desired_inferior): Replace accessing list implemention
13493 details with API function.
13494 * tracepoint.c (same_process_p): New function.
13495 (gdb_agent_about_to_close): Replace accessing list implemention
13496 details with API function.
13497 * win32-low.c (child_delete_thread): Replace accessing list
13498 implemention details with API function.
13499 (match_dll_by_basename): New function.
13500 (dll_is_loaded_by_basename): New function.
13501 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13502 details call to dll_is_loaded_by_basename.
13503
80894984
DE
135042014-02-19 Doug Evans <dje@google.com>
13505
13506 * dll.h (struct dll_info): Add comment.
13507 * gdbthread.h (struct thread_info): Add comment.
13508 (current_ptid): Simplify.
13509 * inferiors.c (add_process): Update.
13510 (remove_process): Update.
13511 * inferiors.h (struct process_info): Rename member "head" to "entry".
13512 * linux-low.c (delete_lwp): Update.
13513 (add_lwp): Update.
13514 (last_thread_of_process_p): Update.
13515 (kill_one_lwp_callback, linux_kill): Update.
13516 (status_pending_p_callback): Update.
13517 (wait_for_sigstop): Update. Simplify read of ptid.
13518 (start_step_over): Update.
13519 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13520 (get_lwp_thread): Update.
13521 (struct lwp_info): Rename member "head" to "entry".
13522 * regcache.h (inferior_list_entry): Delete.
13523 * server.c (kill_inferior_callback): Update.
13524 (detach_or_kill_inferior_callback): Update.
13525 (print_started_pid): Update.
13526 (print_attached_pid): Update.
13527 (process_serial_event): Simplify read of ptid.
13528 * thread-db.c (thread_db_create_event): Update.
13529 (thread_db_get_tls_address): Update.
13530 * win32-low.c (current_inferior_ptid): Simplify.
13531
46917d26
TT
135322014-02-19 Tom Tromey <tromey@redhat.com>
13533
13534 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13535 argument.
13536 (target_supports_btrace): Update.
13537
0759a81e
YQ
135382014-02-14 Yao Qi <yao@codesourcery.com>
13539
13540 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13541 (rsp-low-ipa.o): New target.
13542
a7191e8b
TT
135432014-02-12 Tom Tromey <tromey@redhat.com>
13544
13545 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13546 convert_ascii_to_int.
13547 * regcache.c (registers_to_string): Likewise.
13548 * remote-utils.c (decode_M_packet): Likewise.
13549 * server.c (process_serial_event): Likewise.
13550
ff0e980e
TT
135512014-02-12 Tom Tromey <tromey@redhat.com>
13552
13553 * server.c (handle_query, handle_v_run): Use hex2bin, not
13554 unhexify.
13555 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13556
e9371aff
TT
135572014-02-12 Tom Tromey <tromey@redhat.com>
13558
13559 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13560 convert_int_to_ascii.
13561 * regcache.c (registers_to_string, collect_register_as_string):
13562 Likewise.
13563 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13564 Likewise.
13565 * server.c (process_serial_event): Likewise.
13566 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13567 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13568
971dc0b8
TT
135692014-02-12 Tom Tromey <tromey@redhat.com>
13570
13571 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13572 bin2hex, not hexify.
13573 * tracepoint.c (cmd_qtstatus): Likewise.
13574
0a822afb
TT
135752014-02-12 Tom Tromey <tromey@redhat.com>
13576
13577 * remote-utils.c (monitor_output): Pass explicit length to
13578 hexify.
13579
9c3d6531
TT
135802014-02-12 Tom Tromey <tromey@redhat.com>
13581
13582 * tracepoint.c: Include rsp-low.h.
13583 * server.c: Include rsp-low.h.
13584 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13585 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13586 declare.
13587 * remote-utils.c: Include rsp-low.h.
13588 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13589 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13590 (convert_int_to_ascii, convert_ascii_to_int): Move to
13591 common/rsp-low.c.
13592 * regcache.c: Include rsp-low.h.
13593 * ax.c: Include rsp-low.h.
13594 * Makefile.in (SFILES): Add common/rsp-low.c.
13595 (OBS): Add rsp-low.o.
13596 (rsp-low.o): New target.
13597
01fd3ea5
TT
135982014-02-12 Tom Tromey <tromey@redhat.com>
13599
13600 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13601 Include print-utils.h.
13602 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13603 (plongest, thirty_two, phex_nz): Remove.
13604 * Makefile.in (SFILES): Add common/print-utils.c.
13605 (OBS): Add print-utils.o.
13606 (print-utils-ipa.o): New target.
13607 (print-utils.o): New target.
13608 (IPA_OBJS): Add print-utils-ipa.o.
13609
e99dc820
TT
136102014-02-06 Tom Tromey <tromey@redhat.com>
13611
13612 * Makefile.in (SFILES): Fix indentation.
13613
ee1e2d4f
DE
136142014-02-05 Doug Evans <dje@google.com>
13615
13616 * linux-low.c (linux_wait_for_event): Improve comment.
13617 (linux_wait_1): Keep current_inferior in sync with event_child.
13618
f5a02773
DE
136192014-01-22 Doug Evans <dje@google.com>
13620
13621 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13622
87ce2a04
DE
136232014-01-22 Doug Evans <dje@google.com>
13624
13625 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13626 * configure: Regenerate.
13627 * config.in: Regenerate.
13628 * Makefile.in (SFILES): Add debug.c.
13629 (OBS): Add debug.o.
13630 * debug.c: New file.
13631 * debug.h: New file.
13632 * linux-aarch64-low.c (*): Update all debugging printfs to use
13633 debug_printf instead of fprintf.
13634 * linux-arm-low.c (*): Ditto.
13635 * linux-cris-low.c (*): Ditto.
13636 * linux-crisv32-low.c (*): Ditto.
13637 * linux-m32r-low.c (*): Ditto.
13638 * linux-sparc-low.c (*): Ditto.
13639 * linux-x86.c (*): Ditto.
13640 * linux-low.c (*): Ditto.
13641 (linux_wait_1): Add calls to debug_enter, debug_exit.
13642 (linux_wait): Remove redundant debugging printf.
13643 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13644 (linux_resume, unstop_all_lwps): Ditto.
13645 * mem-break.c (*): Update all debugging printfs to use
13646 debug_printf instead of fprintf.
13647 * remote-utils.c (*): Ditto.
13648 * thread-db.c (*): Ditto.
13649 * server.c #include <ctype.h>, "gdb_vecs.h".
13650 (debug_threads): Moved to debug.c.
13651 (*): Update all debugging printfs to use debug_printf instead of
13652 fprintf.
13653 (start_inferior): Replace call to fflush with call to debug_flush.
13654 (monitor_show_help): Mention set debug-format.
13655 (parse_debug_format_options): New function.
13656 (handle_monitor_command): Handle "monitor set debug-format".
13657 (gdbserver_usage): Mention --debug-format.
13658 (main): Parse --debug-format.
13659 * server.h (debug_threads): Declaration moved to debug.h.
13660 #include "debug.h".
13661 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13662 trace_debug_1 that uses debug_printf.
13663 (tracepoint_look_up_symbols): Update all debugging printfs to use
13664 debug_printf instead of fprintf.
13665
e671835b
BS
136662014-01-20 Baruch Siach <baruch@tkos.co.il>
13667
13668 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13669 sys/ptrace.h.
13670
b5737fa9
PA
136712014-01-17 Pedro Alves <palves@redhat.com>
13672
ea38d2a9 13673 PR build/16445
c7faa97a
PA
13674 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13675 defined after including gdb_proc_service.h.
b5737fa9 13676
40ed484e
DE
136772014-01-16 Doug Evans <dje@google.com>
13678
13679 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13680 (match_dll): Use it.
13681
969c39fb
MM
136822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13683
13684 * target.h (target_ops) <read_btrace>: Change parameters and
13685 return type to allow error reporting.
13686 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13687 trace reading errors on.
13688 * linux-low.c (linux_low_read_btrace): Pass trace reading
13689 errors on.
13690 (linux_low_disable_btrace): New.
13691
ab7f45ba
DE
136922014-01-15 Doug Evans <dje@google.com>
13693
13694 * inferiors.c (thread_id_to_gdb_id): Delete.
13695 * inferiors.h (thread_id_to_gdb_id): Delete.
13696
66af0f44
EZ
136972014-01-13 Eli Zaretskii <eliz@gnu.org>
13698
13699 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13700 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13701 versions.
13702
9939e131
PA
137032014-01-08 Pedro Alves <palves@redhat.com>
13704
13705 * server.c (handle_status): Don't discard previous queued stop
13706 replies or thread's pending status here.
13707 (main) <disconnection>: Do it here instead.
13708
b7ea362b
PA
137092014-01-08 Pedro Alves <palves@redhat.com>
13710
13711 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13712 * server.c (visit_actioned_threads, handle_pending_status): New
13713 function.
13714 (handle_v_cont): Factor out parts to ...
13715 (resume): ... this new function. If in all-stop, and a thread
13716 being resumed has a pending status, report it without actually
13717 resuming.
13718 (myresume): Adjust to use the new 'resume' function.
13719 (clear_pending_status_callback, set_pending_status_callback)
13720 (find_status_pending_thread_callback): New functions.
13721 (handle_status): Handle the case of multiple threads having
13722 interesting statuses to report. Report threads' real last signal
13723 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13724 with an interesting thread to report the status for, instead of
13725 always reporting the status of the first thread.
13726
28498c42
JB
137272014-01-01 Joel Brobecker <brobecker@adacore.com>
13728
13729 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13730 * gdbreplay.c (gdbreplay_version): Likewise.
13731
f45c82da
YZ
137322013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13733
13734 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13735 iov.iov_len with the real length in use.
13736
379a5e2d
JB
137372013-12-13 Joel Brobecker <brobecker@adacore.com>
13738
13739 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13740 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13741 for all targets that use win32-low.c.
13742 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13743 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13744
4210d83e
PA
137452013-12-13 Pedro Alves <palves@redhat.com>
13746
13747 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13748 if equal to TARGET_WAITKIND_LOADED.
13749 * win32-low.c (cached_status): New static global.
13750 (win32_wait): Add declaration.
13751 (do_initial_child_stuff): Flush all initial pending debug events
13752 up to the initial breakpoint.
13753 (win32_wait): If CACHED_STATUS was set, return that instead
13754 of doing a real wait. Remove the code resuming the execution
13755 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13756 during the initial phase. Also remove the code changing
13757 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13758 TARGET_WAITKIND_STOPPED.
13759
e7f0d979
YQ
137602013-12-11 Yao Qi <yao@codesourcery.com>
13761
13762 * notif.c (handle_notif_ack): Return 0 if no notification
13763 matches.
13764
ebcf782c
DE
137652013-11-20 Doug Evans <dje@google.com>
13766
13767 * linux-low.c (linux_set_resume_request): Fix comment.
13768
20ad9378
DE
137692013-11-20 Doug Evans <dje@google.com>
13770
13771 * linux-low.c (resume_status_pending_p): Tweak comment.
13772
a196ebeb
WT
137732013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13774
13775 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13776 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13777 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13778 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13779 (srv_amd64_regobj): Add amd64-mpx.o.
13780 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13781 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13782 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13783 * i387-fp.c (num_pl_bnd_register) Added constant.
13784 (num_pl_bnd_cfg_registers) Added constant.
13785 (struct i387_xsave) Added reserved area and MPX fields.
13786 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13787 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13788 function.
13789 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13790 (init_registers_amd64_mpx_linux): Declare new function.
13791 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13792 (x86_64_regmap): Add MPX registers.
13793 (x86_linux_read_description): Add MPX case.
13794 (initialize_low_arch): Initialize MPX targets.
13795
0080a2f6
TT
137962013-11-18 Tom Tromey <tromey@redhat.com>
13797
13798 * configure: Rebuild.
13799 * configure.ac: Don't check for stdlib.h.
13800 * gdbreplay.c: Unconditionally include stdlib.h.
13801
2978b111
TT
138022013-11-18 Tom Tromey <tromey@redhat.com>
13803
13804 * config.in: Rebuild.
13805 * configure: Rebuild.
13806 * configure.ac: Don't use AC_HEADER_DIRENT.
13807
a3d08894
TT
138082013-11-18 Tom Tromey <tromey@redhat.com>
13809
13810 * server.h: Don't check HAVE_STRING_H.
13811 * gdbreplay.c: Don't check HAVE_STRING_H.
13812 * configure: Rebuild.
13813
0a5dd17d
TT
138142013-11-18 Tom Tromey <tromey@redhat.com>
13815
13816 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13817 LIBGNU.
13818
1bd2f0ba
TT
138192013-11-08 Tom Tromey <tromey@redhat.com>
13820
13821 * configure, config.in: Rebuild.
13822 * configure.ac: Remove unused configury.
13823
3266f10b
TT
138242013-11-08 Tom Tromey <tromey@redhat.com>
13825
13826 * acinclude.m4: Include common.m4, codeset.m4.
13827 * configure, config.in: Rebuild.
13828 * configure.ac: Use GDB_AC_COMMON.
13829
6682d959
AA
138302013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13831
13832 * linux-s390-low.c (HWCAP_S390_TE): New define.
13833 (s390_arch_setup): Consider the TE field in the HWCAP for
13834 determining 'have_regset_tdb'.
13835
fd0a4d76
SDJ
138362013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13837
13838 PR gdb/16014
13839 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13840 call to sizeof.
13841
1a3d890b
PA
138422013-10-02 Pedro Alves <palves@redhat.com>
13843
13844 * server.c (process_serial_event): Don't output "GDBserver
13845 exiting" if GDB is connected through stdio.
13846 * target.c (mywait): Likewise, be silent if GDB is connected
13847 through stdio.
13848
97ad4581
JB
138492013-10-01 Joel Brobecker <brobecker@adacore.com>
13850
13851 * lynx-low.c (lynx_add_threads_after_attach): New function.
13852 (lynx_attach): Remove call to add_thread. Add call to
13853 lynx_add_threads_after_attach instead.
13854
5b4e221c
MF
138552013-09-28 Mike Frysinger <vapier@gentoo.org>
13856
13857 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13858 * config.in, configure: Regenerated.
13859
ee47b2f8
YQ
138602013-09-18 Yao Qi <yao@codesourcery.com>
13861
13862 PR server/15959
13863 * server.c (start_inferior): Clear 'resume_info'.
13864
d6707650 138652013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13866
d6707650
JW
13867 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13868 for each register.
13869
9243dd0e 138702013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13871
9243dd0e
JW
13872 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13873 linux-tile-low.o to srv_tgtobj.
13874
c623a6ef
WN
138752013-09-16 Will Newton <will.newton@linaro.org>
13876
13877 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13878 out regs.
13879
fb71d39e
PA
138802013-09-06 Pedro Alves <palves@redhat.com>
13881
13882 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13883 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13884 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13885 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13886 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13887 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13888
8e7e9910
PA
138892013-09-06 Pedro Alves <palves@redhat.com>
13890
13891 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13892 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13893
7c3a12ca
PA
138942013-09-06 Pedro Alves <palves@redhat.com>
13895
13896 * linux-amd64-ipa.c: Include tracepoint.h.
13897 * linux-i386-ipa.c: Include tracepoint.h.
13898
8eb3d7b6
RW
138992013-09-06 Ricard Wanderlof <ricardw@axis.com>
13900
13901 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13902 (ps_get_thread_area): New function.
13903
eddddb9d
RW
139042013-09-06 Ricard Wanderlof <ricardw@axis.com>
13905
13906 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13907 (initialize_low_arch): Call init_registers_crisv32 rather than
13908 init_register_crisv32.
13909
533b0600
PA
139102013-09-05 Pedro Alves <palves@redhat.com>
13911
13912 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13913 to ...
13914 * hostio.h: ... this new file.
13915 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13916 win32-low.c: Include hostio.h.
13917
0ce3d3b5
PA
139182013-09-05 Pedro Alves <palves@redhat.com>
13919
13920 * server.h (gdb_client_data, handler_func, callback_handler_func)
13921 (delete_file_handler, add_file_handler, append_callback_event)
13922 (delete_callback_event, start_event_loop, initialize_event_loop):
13923 Move to event-loop.h and include it.
13924 * event-loop.h: New file.
13925
799cdc37
PA
139262013-09-05 Pedro Alves <palves@redhat.com>
13927
13928 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13929 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13930 (loaded_dll, unloaded_dll): Move to ...
13931 * dll.h: ... this new file.
13932 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13933
6a6bbd9d
PA
139342013-09-05 Pedro Alves <palves@redhat.com>
13935
13936 * server.h (current_process, get_thread_process, all_processes)
13937 (add_inferior_to_list, for_each_inferior, current_inferior)
13938 (remove_inferior, add_process, remove_process, find_process_pid)
13939 (have_started_inferiors_p, have_attached_inferiors_p)
13940 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13941 (clear_inferiors, find_inferior, find_inferior_id)
13942 (inferior_target_data, set_inferior_target_data)
13943 (inferior_regcache_data, set_inferior_regcache_data): Move to
13944 inferiors.h, and include it.
13945 * inferiors.h: New file.
13946
f699aaba
PA
139472013-09-05 Pedro Alves <palves@redhat.com>
13948
13949 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13950 Move ...
72f4393d 13951 * ax.h: ... here.
f699aaba 13952
c144c7a0
PA
139532013-09-05 Pedro Alves <palves@redhat.com>
13954
13955 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13956 tracepoint.h.
13957 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13958 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13959 (handle_tracepoint_general_set, handle_tracepoint_query)
13960 (tracepoint_finished_step, tracepoint_was_hit)
13961 (release_while_stepping_state_list, current_traceframe)
13962 (in_readonly_region, traceframe_read_mem)
13963 (fetch_traceframe_registers, traceframe_read_sdata)
13964 (traceframe_read_info, struct fast_tpoint_collect_status)
13965 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13966 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13967 (supply_fast_tracepoint_registers)
13968 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13969 (ipa_tdesc, claim_trampoline_space)
13970 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13971 (agent_mem_read, agent_get_trace_state_variable_value)
13972 (agent_set_trace_state_variable_value, agent_tsv_read)
13973 (agent_mem_read_string, get_raw_reg_func_addr)
13974 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13975 * tracepoint.h: ... this new file.
13976
ff42e6ab
PA
139772013-09-05 Pedro Alves <palves@redhat.com>
13978
13979 * server.h (perror_with_name, error, fatal, warning, paddress)
13980 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13981 include it.
13982 * utils.h: New file.
13983
541af0f4
PA
139842013-09-05 Pedro Alves <palves@redhat.com>
13985
13986 * server.h (remote_debug, noack_mode, transport_is_reliable)
13987 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13988 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13989 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13990 (write_enn, initialize_async_io, enable_async_io)
13991 (disable_async_io, check_remote_input_interrupt_request)
13992 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13993 (dead_thread_notify, prepare_resume_reply)
13994 (decode_address_to_semicolon, decode_address, decode_m_packet)
13995 (decode_M_packet, decode_X_packet, decode_xfer_write)
13996 (decode_search_memory_packet, unhexify, hexify)
13997 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13998 (look_up_one_symbol, relocate_instruction)
13999 (monitor_output): Move to remote-utils.h, and include it.
14000 * remote-utils.h: New file.
14001
eebdf26b
PA
140022013-09-05 Pedro Alves <palves@redhat.com>
14003
14004 * server.h (_): Delete.
14005
3aafd2ff
PA
140062013-09-02 Pedro Alves <palves@redhat.com>
14007
14008 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14009 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14010 allocated.
14011 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14012
cee83bcb
PM
140132013-09-02 Pierre Muller <muller@sourceware.org>
14014
14015 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14016 or WriteProcessMemory complete successfully and handle
14017 ERROR_PARTIAL_COPY error.
14018
9a13b2fa
PA
140192013-09-02 Pedro Alves <palves@redhat.com>
14020
14021 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14022 error instead of EIO.
14023
602e3198
JK
140242013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14025
14026 PR server/15604
14027 * linux-low.c: Include filestuff.h.
14028 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14029 * lynx-low.c: Include filestuff.h.
14030 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14031 * server.c: Include filestuff.h.
14032 (main): Call notice_open_fds.
14033 * spu-low.c: Include filestuff.h.
14034 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14035
96d7229d
LM
140362013-08-22 Luis Machado <lgustavo@codesourcery.com>
14037
14038 * Makefile.in: Explain why ../target and ../nat are not
14039 listed as include file search paths.
14040 (linux-waitpid.o): New object file rule.
14041 * configure.srv (srv_native_linux_obj): New variable.
14042 Replace all occurrences of linux native object files with
14043 $srv_native_linux_obj.
14044 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14045 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14046 (linux_enable_event_reporting): Remove declaration.
14047 (my_waitpid): Moved to common/linux-waitpid.c.
14048 (linux_wait_for_event): Pass ptid when calling
14049 linux_enable_event_reporting.
14050 (linux_supports_tracefork_flag): Remove.
14051 (linux_enable_event_reporting): Likewise.
14052 (linux_tracefork_grandchild): Remove.
14053 (STACK_SIZE): Moved to common/linux-ptrace.c.
14054 (linux_tracefork_child): Remove.
14055 (linux_test_for_tracefork): Remove.
14056 (linux_look_up_symbols): Call linux_supports_traceclone.
14057 (initialize_low): Remove call to linux_test_for_tracefork.
14058 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14059 common/linux-ptrace.h.
14060 (PTRACE_TYPE_ARG4): Likewise.
14061 Include linux-ptrace.h.
14062
32940073
PA
140632013-08-21 Pedro Alves <palves@redhat.com>
14064
14065 * config.in: Renegerate.
14066
33b60d58 140672013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14068
33b60d58
LM
14069 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14070 (SFILES): Remove $(srcdir)/common/target-common.c and
14071 add $(srcdir)/target/waitstatus.c.
14072 (OBS): Remove target-common.o and add waitstatus.o.
14073 (server_h): Remove $(srcdir)/../common/target-common.h and
14074 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14075 and $(srcdir)/../target/waitstatus.h.
14076 (target-common.o): Remove.
14077 (waitstatus.o): New target object file.
14078 * target.h: Do not include target-common.h and
14079 include target/resume.h, target/wait.h and
14080 target/waitstatus.h.
14081
b8e1b30e
LM
140822013-08-13 Luis Machado <lgustavo@codesourcery.com>
14083
14084 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14085 to PTRACE_TYPE_ARG3.
14086 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14087 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14088 PTRACE_TYPE_ARG4.
14089 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14090 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14091
7a60ad40
YQ
140922013-07-27 Jie Zhang <jie@codesourcery.com>
14093 Daniel Jacobowitz <dan@codesourcery.com>
14094 Yao Qi <yao@codesourcery.com>
14095
14096 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14097 (mips-linux-watch.o): New rule.
14098 (mips_linux_watch_h): New variable.
14099 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14100 srv_tgtobj.
14101 * linux-mips-low.c: Include mips-linux-watch.h.
14102 (struct arch_process_info, struct arch_lwp_info): New.
14103 (update_watch_registers_callback): New function.
14104 (mips_linux_new_process, mips_linux_new_thread) New functions.
14105 (mips_linux_prepare_to_resume, mips_insert_point): New
14106 functions.
14107 (mips_remove_point, mips_stopped_by_watchpoint): New
14108 functions.
14109 (rsp_bp_type_to_target_hw_bp_type): New function.
14110 (mips_stopped_data_address): New function.
14111 (the_low_target): Add watchpoint support functions.
14112
de6f69ad
YQ
141132013-07-27 Yao Qi <yao@codesourcery.com>
14114
14115 * i386-low.c: Include break-common.h.
14116 (enum target_hw_bp_type): Remove.
14117
3360c0bf
LM
141182013-07-24 Luis Machado <lgustavo@codesourcery.com>
14119
14120 * Makefile.in (SFILES): /common/target-common.c.
14121 (OBS): Add target-common.o.
14122 (server_h): Add $(srcdir)/../common/target-common.h.
14123 (target-common.o): New target.
14124 * server.c (queue_stop_reply_callback): Free
14125 status string after use.
14126 * target.c (target_waitstatus_to_string): Remove.
14127 * target.h: Include target-common.h.
14128 (resume_kind): Likewise.
14129 (target_waitkind): Likewise.
14130 (target_waitstatus): Likewise.
14131 (TARGET_WNOHANG): Likewise.
14132
bd885420
YQ
141332013-07-04 Yao Qi <yao@codesourcery.com>
14134
14135 * Makefile.in (host_alias): Use @host_noncanonical@.
14136 (target_alias): Use @target_noncanonical@.
14137 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14138 ACX_NONCANONICAL_HOST.
14139 * configure: Regenerated.
14140
14141 Revert:
14142 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14143
14144 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14145 * configure: Rebuild.
14146 * Makefile.in (version_host, version_target): Get from configure.
14147 (version.c): Use $(version_host) and $(version_target).
14148
17ef446e
PA
141492013-07-03 Pedro Alves <palves@redhat.com>
14150
14151 * Makefile.in (config.status): Depend on development.sh.
14152 * acinclude.m4: Include libmcheck.m4.
14153 * configure: Regenerate.
14154
7a9a7487
MG
141552013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14156
14157 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14158 attribute inside the parentheses.
14159 (winapi_DebugSetProcessKillOnExit): Ditto.
14160 (winapi_DebugBreakProcess): Ditto.
14161 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14162
49b64de6
MG
141632013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14164
14165 * notif.h (notif_event): Add a dummy member to avoid compiler
14166 errors.
14167
d5749ee7
PA
141682013-07-01 Pedro Alves <palves@redhat.com>
14169
14170 * hostio.c (HOSTIO_PATH_MAX): Define.
14171 (require_filename, handle_open, handle_unlink, handle_readlink):
14172 Use it.
14173
d8d2a3ee
PA
141742013-07-01 Pedro Alves <palves@redhat.com>
14175
14176 * server.h: Include "pathmax.h".
14177 * linux-low.c: Don't include sys/param.h.
14178 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14179 MAXPATHLEN.
14180 * win32-low.c: Don't include sys/param.h.
14181 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14182
bc7dea8d
PA
141832013-07-01 Pedro Alves <palves@redhat.com>
14184
14185 * event-loop.c: Don't check HAVE_UNISTD_H before including
14186 <unistd.h>.
14187 * gdbreplay.c: Likewise.
14188 * remote-utils.c: Likewise.
14189 * server.c: Likewise.
14190 * configure.ac: Don't check for unistd.h.
14191 * configure: Regenerate.
14192
d6c2da54
TT
141932013-06-28 Tom Tromey <tromey@redhat.com>
14194
14195 * Makefile.in (version.c): Use version.in, not
14196 common/version.in.
14197
257b6bec
MG
141982013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14199
14200 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14201 * configure: Rebuild.
14202 * Makefile.in (version_host, version_target): Get from configure.
14203 (version.c): Use $(version_host) and $(version_target).
14204
86ebe149
DK
142052013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14206
14207 Fix trace-status to output user name without trailing colon.
14208 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14209
f30aa5af
DK
142102013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14211
14212 Fix trace-status to output proper start-time and stop-time.
14213 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14214 output start time and stop time in hex as gdb expects.
14215
28a93511
YQ
142162013-06-26 Pedro Alves <pedro@codesourcery.com>
14217
14218 * tracepoint.c (build_traceframe_info_xml): Output trace state
14219 variables present in the trace buffer.
14220
01208463
TT
142212013-06-24 Tom Tromey <tromey@redhat.com>
14222
14223 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14224 create-version.sh.
14225 (version.o): Remove.
14226 * gdbreplay.c: Include version.h.
14227 (version, host_name): Don't declare.
14228 * server.h: Include version.h.
14229 (version, host_name): Don't declare.
14230
760256f9
PA
142312013-06-12 Pedro Alves <palves@redhat.com>
14232
14233 * linux-x86-low.c (linux_is_elf64): Delete global.
14234 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14235 with local linux_pid_exe_is_elf_64_file use.
14236
030031ee
PA
142372013-06-11 Pedro Alves <palves@redhat.com>
14238
14239 * linux-low.c (regset_disabled, disable_regset): New functions.
14240 (regsets_fetch_inferior_registers)
14241 (regsets_store_inferior_registers): Use them.
14242 (initialize_regsets_info); Don't allocate the disabled_regsets
14243 array here.
14244 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14245 comment.
14246
5da6eb0a
PA
142472013-06-11 Pedro Alves <palves@redhat.com>
14248
14249 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14250 xmalloc.
14251
7e5aaa09
PA
142522013-06-11 Pedro Alves <palves@redhat.com>
14253
14254 * linux-x86-low.c (initialize_low_arch): Call
14255 init_registers_x32_avx_linux.
14256
d878444c
JK
142572013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14258
14259 Fix compatibility with Android Bionic.
14260 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14261 it is not empty.
14262
3aee8918
PA
142632013-06-07 Pedro Alves <palves@redhat.com>
14264
5f2b57b5 14265 PR server/14823
3aee8918
PA
14266 * Makefile.in (OBS): Add tdesc.o.
14267 (IPA_OBJS): Add tdesc-ipa.o.
14268 (tdesc-ipa.o): New rule.
14269 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14270 interface.
14271 * linux-low.c (new_inferior): Delete.
14272 (disabled_regsets, num_regsets): Delete.
14273 (linux_add_process): Adjust to set the new per-process
14274 new_inferior flag.
14275 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14276 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14277 was a stop. When calling arch_setup, switch the current inferior
14278 to the thread that got an event.
14279 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14280 (regsets_fetch_inferior_registers)
14281 (regsets_store_inferior_registers): New regsets_info parameter.
14282 Adjust to use it.
14283 (linux_register_in_regsets): New regs_info parameter. Adjust to
14284 use it.
14285 (register_addr, fetch_register, store_register): New usrregs_info
14286 parameter. Adjust to use it.
14287 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14288 parameter regs_info. Adjust to use it.
14289 (linux_fetch_registers): Get the current inferior's regs_info, and
14290 adjust to use it.
14291 (linux_store_registers): Ditto.
14292 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14293 (initialize_low): Don't initialize the target_regsets here. Call
14294 initialize_low_arch.
14295 * linux-low.h (target_regsets): Delete declaration.
14296 (struct regsets_info): New.
14297 (struct usrregs_info): New.
14298 (struct regs_info): New.
14299 (struct process_info_private) <new_inferior>: New field.
14300 (struct linux_target_ops): Delete the num_regs, regmap, and
14301 regset_bitmap fields. New field regs_info.
14302 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14303 * i387-fp.c (num_xmm_registers): Delete.
14304 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14305 calls to new interface.
14306 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14307 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14308 Infer the number of xmm registers from the regcache's target
14309 description.
14310 * i387-fp.h (num_xmm_registers): Delete.
14311 * inferiors.c (add_thread): Don't install the thread's regcache
14312 here.
14313 * proc-service.c (gregset_info): Fetch the current inferior's
14314 regs_info. Adjust to use it.
14315 * regcache.c: Include tdesc.h.
14316 (register_bytes, reg_defs, num_registers)
14317 (gdbserver_expedite_regs): Delete.
14318 (get_thread_regcache): If the thread doesn't have a regcache yet,
14319 create one, instead of aborting gdbserver.
14320 (regcache_invalidate_one): Rename to ...
14321 (regcache_invalidate_thread): ... this.
14322 (regcache_invalidate_one): New.
14323 (regcache_invalidate): Only invalidate registers of the current
14324 process.
14325 (init_register_cache): Add target_desc parameter, and use it.
14326 (new_register_cache): Ditto. Assert the target description has a
14327 non zero registers_size.
14328 (regcache_cpy): Add assertions. Adjust.
14329 (realloc_register_cache, set_register_cache): Delete.
14330 (registers_to_string, registers_from_string): Adjust.
14331 (find_register_by_name, find_regno, find_register_by_number)
14332 (register_cache_size): Add target_desc parameter, and use it.
14333 (free_register_cache_thread, free_register_cache_thread_one)
14334 (regcache_release, register_cache_size): New.
14335 (register_size): Add target_desc parameter, and use it.
14336 (register_data, supply_register, supply_register_zeroed)
14337 (supply_regblock, supply_register_by_name, collect_register)
14338 (collect_register_as_string, collect_register_by_name): Adjust.
14339 * regcache.h (struct target_desc): Forward declare.
14340 (struct regcache) <tdesc>: New field.
14341 (init_register_cache, new_register_cache): Add target_desc
14342 parameter.
14343 (regcache_invalidate_thread): Declare.
14344 (regcache_invalidate_one): Delete declaration.
14345 (regcache_release): Declare.
14346 (find_register_by_number, register_cache_size, register_size)
14347 (find_regno): Add target_desc parameter.
14348 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14349 declarations.
14350 * remote-utils.c: Include tdesc.h.
14351 (outreg, prepare_resume_reply): Adjust.
14352 * server.c: Include tdesc.h.
14353 (gdbserver_xmltarget): Delete declaration.
14354 (get_features_xml, process_serial_event): Adjust.
14355 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14356 declare.
14357 (struct process_info) <tdesc>: New field.
14358 (ipa_tdesc): Declare.
14359 * tdesc.c: New file.
14360 * tdesc.h: New file.
14361 * tracepoint.c: Include tdesc.h.
14362 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14363 (get_context_regcache): Adjust to pass ipa_tdesc down.
14364 (do_action_at_tracepoint): Adjust to get the register cache size
14365 from the context regcache's description.
14366 (traceframe_walk_blocks): Adjust to get the register cache size
14367 from the current trace frame's description.
14368 (traceframe_get_pc): Adjust to get current trace frame's
14369 description and pass it down.
14370 (gdb_collect): Adjust to get the register cache size from the
14371 IPA's description.
14372 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14373 (gdbserver_xmltarget): Delete.
14374 (initialize_low_tracepoint): Set the ipa's target description.
14375 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14376 (initialize_low_tracepoint): Set the ipa's target description.
14377 * linux-x86-low.c: Include tdesc.h.
14378 [__x86_64__] (is_64bit_tdesc): New.
14379 (ps_get_thread_area, x86_get_thread_area): Use it.
14380 (i386_cannot_store_register): Rename to ...
14381 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14382 (i386_cannot_fetch_register): Rename to ...
14383 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14384 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14385 to new interface.
14386 (target_regsets): Rename to ...
14387 (x86_regsets): ... this.
14388 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14389 interface.
14390 (x86_siginfo_fixup): Use is_64bit_tdesc.
14391 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14392 (tdesc_x32_avx_linux, tdesc_x32_linux)
14393 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14394 Declare.
14395 (x86_linux_update_xmltarget): Delete.
14396 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14397 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14398 (AMD64_LINUX_USER64_CS): New.
14399 (x86_linux_read_description): New, based on
14400 x86_linux_update_xmltarget.
14401 (same_process_callback): New.
14402 (x86_arch_setup_process_callback): New.
14403 (x86_linux_update_xmltarget): New.
14404 (x86_regsets_info): New.
14405 (amd64_linux_regs_info): New.
14406 (i386_linux_usrregs_info): New.
14407 (i386_linux_regs_info): New.
14408 (x86_linux_regs_info): New.
14409 (x86_arch_setup): Reimplement.
14410 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14411 (x86_emit_ops): Ditto.
14412 (the_low_target): Adjust. Install x86_linux_regs_info,
14413 x86_cannot_fetch_register, and x86_cannot_store_register.
14414 (initialize_low_arch): New.
14415 * linux-ia64-low.c (tdesc_ia64): Declare.
14416 (ia64_fetch_register): Adjust.
14417 (ia64_usrregs_info, regs_info): New globals.
14418 (ia64_regs_info): New function.
14419 (the_low_target): Adjust.
14420 (initialize_low_arch): New function.
14421 * linux-sparc-low.c (tdesc_sparc64): Declare.
14422 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14423 Adjust.
14424 (sparc_arch_setup): New function.
14425 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14426 (the_low_target): Adjust.
14427 (initialize_low_arch): New function.
14428 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14429 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14430 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14431 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14432 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14433 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14434 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14435 (tdesc_powerpc_isa205_vsx64l): Declare.
14436 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14437 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14438 (ppc_set_pc, ppc_get_hwcap): Adjust.
14439 (ppc_usrregs_info): Forward declare.
14440 (!__powerpc64__) ppc_regmap_adjusted: New global.
14441 (ppc_arch_setup): Adjust to the current process'es target
14442 description.
14443 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14444 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14445 (ppc_store_evrregset): Adjust.
14446 (target_regsets): Rename to ...
14447 (ppc_regsets): ... this, and make static.
14448 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14449 (ppc_regs_info): New function.
14450 (the_low_target): Adjust.
14451 (initialize_low_arch): New function.
14452 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14453 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14454 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14455 (tdesc_s390x_linux64v2): Declare.
14456 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14457 (s390_fill_gregset, s390_store_last_break): Adjust.
14458 (target_regsets): Rename to ...
14459 (s390_regsets): ... this, and make static.
14460 (s390_get_pc, s390_set_pc): Adjust.
14461 (s390_get_hwcap): New target_desc parameter, and use it.
14462 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14463 (s390_arch_setup): Adjust to set the current process'es target
14464 description. Don't adjust the regmap.
14465 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14466 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14467 (regs_info_3264): New globals.
14468 (s390_regs_info): New function.
14469 (the_low_target): Adjust.
14470 (initialize_low_arch): New function.
14471 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14472 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14473 [__mips64] (init_registers_mips_linux)
14474 (init_registers_mips_dsp_linux): Delete defines.
14475 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14476 (have_dsp): New global.
14477 (mips_read_description): New, based on mips_arch_setup.
14478 (mips_arch_setup): Reimplement.
14479 (get_usrregs_info): New function.
14480 (mips_cannot_fetch_register, mips_cannot_store_register)
14481 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14482 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14483 (target_regsets): Rename to ...
14484 (mips_regsets): ... this, and make static.
14485 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14486 (dsp_regs_info, regs_info): New globals.
14487 (mips_regs_info): New function.
14488 (the_low_target): Adjust.
14489 (initialize_low_arch): New function.
14490 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14491 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14492 Declare.
14493 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14494 (arm_read_description): New, with bits factored from
14495 arm_arch_setup.
14496 (arm_arch_setup): Reimplement.
14497 (target_regsets): Rename to ...
14498 (arm_regsets): ... this, and make static.
14499 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14500 (arm_regs_info): New function.
14501 (the_low_target): Adjust.
14502 (initialize_low_arch): New function.
14503 * linux-m68k-low.c (tdesc_m68k): Declare.
14504 (target_regsets): Rename to ...
14505 (m68k_regsets): ... this, and make static.
14506 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14507 (m68k_regs_info): New function.
14508 (m68k_arch_setup): New function.
14509 (the_low_target): Adjust.
14510 (initialize_low_arch): New function.
14511 * linux-sh-low.c (tdesc_sharch): Declare.
14512 (target_regsets): Rename to ...
14513 (sh_regsets): ... this, and make static.
14514 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14515 (sh_regs_info, sh_arch_setup): New functions.
14516 (the_low_target): Adjust.
14517 (initialize_low_arch): New function.
14518 * linux-bfin-low.c (tdesc_bfin): Declare.
14519 (bfin_arch_setup): New function.
14520 (bfin_usrregs_info, regs_info): New globals.
14521 (bfin_regs_info): New function.
14522 (the_low_target): Adjust.
14523 (initialize_low_arch): New function.
14524 * linux-cris-low.c (tdesc_cris): Declare.
14525 (cris_arch_setup): New function.
14526 (cris_usrregs_info, regs_info): New globals.
14527 (cris_regs_info): New function.
14528 (the_low_target): Adjust.
14529 (initialize_low_arch): New function.
14530 * linux-cris-low.c (tdesc_crisv32): Declare.
14531 (cris_arch_setup): New function.
14532 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14533 (cris_regs_info): New function.
14534 (the_low_target): Adjust.
14535 (initialize_low_arch): New function.
14536 * linux-m32r-low.c (tdesc_m32r): Declare.
14537 (m32r_arch_setup): New function.
14538 (m32r_usrregs_info, regs_info): New globals.
14539 (m32r_regs_info): Adjust.
14540 (initialize_low_arch): New function.
14541 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14542 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14543 (tic6x_usrregs_info): Forward declare.
14544 (tic6x_read_description): New function, based on ...
14545 (tic6x_arch_setup): ... this. Reimplement.
14546 (target_regsets): Rename to ...
14547 (tic6x_regsets): ... this, and make static.
14548 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14549 (tic6x_regs_info): New function.
14550 (the_low_target): Adjust.
14551 (initialize_low_arch): New function.
14552 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14553 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14554 (target_regsets): Rename to ...
14555 (xtensa_regsets): ... this, and make static.
14556 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14557 globals.
14558 (xtensa_arch_setup, xtensa_regs_info): New functions.
14559 (the_low_target): Adjust.
14560 (initialize_low_arch): New function.
14561 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14562 (nios2_arch_setup): Set the current process'es tdesc.
14563 (target_regsets): Rename to ...
14564 (nios2_regsets): ... this.
14565 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14566 (nios2_regs_info): New function.
14567 (the_low_target): Adjust.
14568 (initialize_low_arch): New function.
a261b8f5
PA
14569 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14570 (aarch64_arch_setup): Set the current process'es tdesc.
14571 (target_regsets): Rename to ...
14572 (aarch64_regsets): ... this.
14573 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14574 (aarch64_regs_info): New function.
14575 (the_low_target): Adjust.
14576 (initialize_low_arch): New function.
3aee8918
PA
14577 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14578 globals.
14579 (target_regsets): Rename to ...
14580 (tile_regsets): ... this.
14581 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14582 (tile_regs_info): New function.
14583 (tile_arch_setup): Set the current process'es tdesc.
14584 (the_low_target): Adjust.
14585 (initialize_low_arch): New function.
14586 * spu-low.c (tdesc_spu): Declare.
14587 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14588 * win32-arm-low.c (tdesc_arm): Declare.
14589 (arm_arch_setup): New function.
14590 (the_low_target): Install arm_arch_setup instead of
14591 init_registers_arm.
14592 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14593 (init_windows_x86): Rename to ...
14594 (i386_arch_setup): ... this. Set `win32_tdesc'.
14595 (the_low_target): Adjust.
14596 * win32-low.c (win32_tdesc): New global.
14597 (child_add_thread): Don't create the thread cache here.
14598 (do_initial_child_stuff): Set the new process'es tdesc.
14599 * win32-low.h (struct target_desc): Forward declare.
14600 (win32_tdesc): Declare.
14601 * lynx-i386-low.c (tdesc_i386): Declare global.
14602 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14603 * lynx-low.c (lynx_tdesc): New global.
14604 (lynx_add_process): Set the new process'es tdesc.
14605 * lynx-low.h (struct target_desc): Forward declare.
14606 (lynx_tdesc): Declare global.
14607 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14608 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14609 * nto-low.c (nto_tdesc): New global.
14610 (do_attach): Set the new process'es tdesc.
14611 * nto-low.h (struct target_desc): Forward declare.
14612 (nto_tdesc): Declare.
14613 * nto-x86-low.c (tdesc_i386): Declare.
14614 (nto_x86_arch_setup): Set `nto_tdesc'.
14615
b1fbec62
GB
146162013-06-04 Gary Benson <gbenson@redhat.com>
14617
14618 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14619 to qSupported response when appropriate.
14620 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14621 with nonzero-length annex.
14622 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14623 arguments supplied in annex.
14624
d1ec4ce7
DE
146252013-05-31 Doug Evans <dje@google.com>
14626
ac44adcb 14627 PR server/15594
d1ec4ce7
DE
14628 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14629 64 bits in 64-cross-32 environment.
14630
9b25f2d3
PA
146312013-05-28 Pedro Alves <palves@redhat.com>
14632
14633 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14634 (aarch64-without-fpu.c): Delete rule.
14635 * configure.srv (aarch64*-*-linux*): Remove references to
14636 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14637 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14638 declaration.
14639
6740dc9c
PA
146402013-05-24 Pedro Alves <palves@redhat.com>
14641
14642 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14643 instead of strchr/decode_address. Error if the range isn't split
14644 with a ','. Don't assume there's be a ':' in the action.
14645
c2d6af84
PA
146462013-05-23 Yao Qi <yao@codesourcery.com>
14647 Pedro Alves <palves@redhat.com>
14648
14649 * linux-low.c (lwp_in_step_range): New function.
14650 (linux_wait_1): If the thread was range stepping and stopped
14651 outside the stepping range, report the stop to GDB. Otherwise,
14652 continue stepping. Add range stepping debug output.
14653 (linux_set_resume_request): Copy the step range from the resume
14654 request to the lwp.
14655 (linux_supports_range_stepping): New.
14656 (linux_target_ops) <supports_range_stepping>: Set to
14657 linux_supports_range_stepping.
14658 * linux-low.h (struct linux_target_ops)
14659 <supports_range_stepping>: New field.
14660 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14661 * linux-x86-low.c (x86_supports_range_stepping): New.
14662 (the_low_target) <supports_range_stepping>: Set to
14663 x86_supports_range_stepping.
14664 * server.c (handle_v_cont): Handle 'r' action.
14665 (handle_v_requests): Append ";r" if the target supports range
14666 stepping.
14667 * target.h (struct thread_resume) <step_range_start,
14668 step_range_end>: New fields.
14669 (struct target_ops) <supports_range_stepping>:
14670 New field.
14671 (target_supports_range_stepping): New macro.
14672
58794e1a
JB
146732013-05-17 Joel Brobecker <brobecker@adacore.com>
14674
14675 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14676 confusion in comment.
14677
d631c5a7
JB
146782013-05-17 Joel Brobecker <brobecker@adacore.com>
14679
14680 * lynx-low.c (struct process_info_private): New type.
14681 (lynx_add_process): New function.
14682 (lynx_create_inferior, lynx_attach): Replace calls to
14683 add_process by calls to lynx_add_process.
14684 (lynx_resume): If PTID is null, then try using
14685 current_process()->private->last_wait_event_ptid.
14686 Add comments.
14687 (lynx_clear_inferiors): Delete. The contents of that function
14688 has been inlined in lynx_mourn;
14689 (lynx_wait_1): Save the ptid in the process's private data.
14690 (lynx_mourn): Free the process' private data. Replace call
14691 to lynx_clear_inferiors by call to clear_inferiors.
14692
96f7a20f
YQ
146932013-05-17 Yao Qi <yao@codesourcery.com>
14694
14695 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14696 the right place.
14697
db0dfaa0
LM
146982013-05-16 Luis Machado <lgustavo@codesourcery.com>
14699
14700 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14701 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14702 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14703 PT_TEXT_END_ADDR guards. Update comments.
14704 (linux_target_op) <read_offsets>: Conditionally define to
14705 linux_read_offsets if the target is UCLIBC and if it defines
14706 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14707
68f5f838
SL
147082013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14709 Andrew Jenner <andrew@codesourcery.com>
14710
14711 * Makefile.in (SFILES): Add linux-nios2-low.c.
14712 (clean): Add action to delete nios2-linux.c.
14713 (nios2-linux.c): New rule.
14714 * configure.srv: Add nios2*-*-linux*.
14715 * linux-nios2-low.c: New.
14716
1ebff1fd
HAQ
147172013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14718
14719 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14720
f6150862
HZ
147212013-04-25 Hui Zhu <hui@codesourcery.com>
14722
14723 PR gdb/15186
f6150862
HZ
14724 * ax.c (ax_printf): Add fflush.
14725
614c279d
TT
147262013-04-22 Tom Tromey <tromey@redhat.com>
14727
14728 * Makefile.in (SFILES): Add filestuff.c.
14729 (OBS): Add filestuff.o.
14730 (filestuff.o): New target.
14731 * config.in, configure: Rebuild.
14732 * configure.ac: Check for fdwalk, pipe2.
14733
7d4e5717
PA
147342013-04-17 Pedro Alves <palves@redhat.com>
14735
14736 * configure.ac (USE_THREAD_DB): Delete variable.
14737 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14738 Don't AC_SUBST USE_THREAD_DB.
14739 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14740 * config.in, configure: Regenerate.
14741
d5c93e41
PA
147422013-04-16 Pedro Alves <palves@redhat.com>
14743
14744 * linux-low.h (struct lwp_info) <thread_known>: Move under
14745 the USE_THREAD_DB #ifdef.
14746
04f5fe89
PA
147472013-04-16 Pedro Alves <palves@redhat.com>
14748
14749 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14750 (linux-low.o): Delete rule.
14751 * linux-low.h: Always include "gdb_thread_db.h" instead of
14752 conditionally including thread_db.h.
14753 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14754 HAVE_THREAD_DB_H.
14755
480b27bf
JK
147562013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14757
14758 * Makefile.in (install-only): Fix make install regression.
14759
43662968
JK
147602013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14761
14762 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14763 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14764 installation.
14765 * gdbserver.1: Remove.
14766
3e74e146
PA
147672013-03-22 Pedro Alves <palves@redhat.com>
14768
14769 * linux-low.c (handle_extended_wait): Don't call
14770 linux_enable_event_reporting.
14771
a8347a2a
TT
147722013-03-15 Tony Theodore <tonyt@logyst.com>
14773
14774 PR build/9098:
14775 * Makefile.in (SHELL): Use @SHELL@.
14776
eeb56fa7
SDJ
147772013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14778
14779 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14780 compiler warning.
14781
4fa7e2ff
JB
147822013-03-13 Joel Brobecker <brobecker@adacore.com>
14783
14784 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14785 Remove extraneous NULL element.
14786
8ddb1965
YQ
147872013-03-13 Yao Qi <yao@codesourcery.com>
14788
14789 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14790 'V' block in trace frame.
14791
9accd112
MM
147922013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14793
14794 * target.h (struct target_ops): Add btrace ops.
14795 (target_supports_btrace): New macro.
14796 (target_enable_btrace): New macro.
14797 (target_disable_btrace): New macro.
14798 (target_read_btrace): New macro.
14799 * gdbthread.h (struct thread_info): Add btrace field.
14800 * server.c: Include btrace-common.h.
14801 (handle_btrace_general_set): New function.
14802 (handle_btrace_enable): New function.
14803 (handle_btrace_disable): New function.
14804 (handle_general_set): Call handle_btrace_general_set.
14805 (handle_qxfer_btrace): New function.
14806 (struct qxfer qxfer_packets[]): Add btrace entry.
14807 * inferiors.c (remove_thread): Disable btrace.
14808 * linux-low: Include linux-btrace.h.
14809 (linux_low_enable_btrace): New function.
14810 (linux_low_read_btrace): New function.
14811 (linux_target_ops): Add btrace ops.
14812 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14813 Add srv_linux_btrace=yes.
14814 (x86_64-*-linux*): Add linux-btrace.o.
14815 Add srv_linux_btrace=yes.
14816 * configure.ac: Define HAVE_LINUX_BTRACE.
14817 * config.in: Regenerated.
14818 * configure: Regenerated.
14819
5cc22e4c
MM
148202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14821
14822 * server.c (handle_qxfer): Preserve error message if -3 is
14823 returned.
14824 (qxfer): Document the -3 return value.
14825
7c97f91e
MM
148262013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14827
14828 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14829 (linux_btrace_h): New variable.
14830 (linux-btrace.o): New rule.
14831
be9a119c 148322013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14833 Hafiz Abid Qadeer <abidh@codesourcery.com>
14834
14835 * tracepoint.c (trace_buffer_size): New global.
14836 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14837 (init_trace_buffer): Change to one-argument function. Allocate
14838 trace buffer memory.
14839 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14840 handle QTBuffer:size packet.
14841 (cmd_bigqtbuffer_size): New function.
14842 (initialize_tracepoint): Call init_trace_buffer with
14843 DEFAULT_TRACE_BUFFER_SIZE.
14844 * server.c (handle_query): Add QTBuffer:size in the
14845 supported packets.
14846
e64f7499
YQ
148472013-03-07 Yao Qi <yao@codesourcery.com>
14848
14849 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14850 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14851 of -1.
14852 (cmd_qtsp): Adjust condition. Do post increment.
14853 Set cur_action and cur_step_action back to 0.
14854
f0ae6fc3
PA
148552013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14856
14857 PR server/15236
14858 * linux-low.c (linux_write_memory): Return early success if LEN is
14859 zero.
14860
b5b0b0af
CV
148612013-03-05 Corinna Vinschen <vinschen@redhat.de>
14862
334ad4a8 14863 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14864
589bc927
TT
148652013-02-28 Tom Tromey <tromey@redhat.com>
14866
14867 * configure.ac: Invoke AC_SYS_LARGEFILE.
14868 * configure, config.in: Rebuild.
14869
dfe07582
CV
148702013-02-28 Corinna Vinschen <vinschen@redhat.com>
14871
14872 * win32-low.c: Throughout, fix format strings and casts of
14873 printf-like functions to avoid type related warnings on all
14874 platforms.
14875 (get_child_debug_event): Print dwDebugEventCode as hex since
14876 that's how it's usually documented.
14877
736cd585
YQ
148782013-02-28 Yao Qi <yao@codesourcery.com>
14879
14880 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14881 pulongest.
14882
e1f58301
JW
148832013-02-27 Jiong Wang <jiwang@tilera.com>
14884
14885 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14886 (reg-tilegx32.c): New rule.
14887 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14888 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14889 different register info initializer according to elf class.
14890 (init_registers_tilgx32): New function. The tilegx32 register info
14891 initializer.
14892 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14893 (tile_store_gregset): Likewise.
14894
d171ca78
YQ
148952013-02-27 Yao Qi <yao@codesourcery.com>
14896
14897 * server.c (process_point_options): Print debug message when
14898 debug_threads is true.
14899
282bbdf3
YQ
149002013-02-26 Yao Qi <yao@codesourcery.com>
14901
14902 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14903
aca22551
PA
149042013-02-19 Pedro Alves <palves@redhat.com>
14905 Kai Tietz <ktietz@redhat.com>
14906
14907 PR gdb/15161
14908
14909 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14910 instead of strtoul to extract address from packet.
14911 (process_serial_event) <'z'>: Likewise.
14912
4f3cee1c
YQ
149132013-02-18 Yao Qi <yao@codesourcery.com>
14914
14915 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14916
8e1d55a3
PA
149172013-02-14 Pedro Alves <palves@redhat.com>
14918
14919 Plug memory leak.
14920
14921 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14922 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14923
458820da
PA
149242013-02-14 Pedro Alves <palves@redhat.com>
14925
14926 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14927
baea0dae
PA
149282013-02-14 Pedro Alves <palves@redhat.com>
14929
14930 * tracepoint.c (save_string): Delete.
14931 (add_tracepoint_action): Use savestring instead of save_string.
14932
0b1afbb3
PA
149332013-02-12 Pedro Alves <palves@redhat.com>
14934
14935 * linux-xtensa-low.c: Ditto.
14936 * xtensa-xtregs.c: Ditto.
14937
8a4ac37e
PA
149382013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14939
14940 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14941 thread_db.
14942
148de6bb
MS
149432013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14944
14945 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14946 aarch64_num_wp_regs and aarch64_num_bp_regs to
14947 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14948
55fac6e0
MS
149492013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14950
14951 * linux-aarch64-low.c (ps_get_thread_area): Replace
14952 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14953
176eb98c
MS
149542013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14955 Marcus Shawcroft <marcus.shawcroft@arm.com>
14956 Nigel Stephens <nigel.stephens@arm.com>
14957 Yufeng Zhang <yufeng.zhang@arm.com>
14958
14959 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14960 (aarch64.c, aarch64-without-fpu.c): New targets.
14961 * configure.srv (aarch64*-*-linux*): New.
14962 * linux-aarch64-low.c: New file.
14963
56f7af9c
MS
149642013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14965
43aaf8b6 14966 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14967 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14968 (dequeue_one_deferred_signal, linux_resume_one_thread)
14969 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14970 (linux_tracefork_grandchild, linux_test_for_tracefork)
14971 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14972 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14973 where the argument is 0.
14974
60f662b0
YQ
149752013-01-25 Yao Qi <yao@codesourcery.com>
14976
14977 * event-loop.c: Include "queue.h".
14978 (gdb_event_p): New typedef.
14979 (struct gdb_event) <next_event>: Remove.
14980 (event_queue): Change to QUEUE(gdb_event_p).
14981 (async_queue_event): Remove.
14982 (gdb_event_xfree): New.
14983 (initialize_event_loop): New.
14984 (process_event): Use API from QUEUE.
14985 (wait_for_event): Likewise.
14986 * server.c (main): Call initialize_event_loop.
14987 * server.h (initialize_event_loop): Declare.
14988
5ae4861a
YQ
149892013-01-18 Yao Qi <yao@codesourcery.com>
14990
14991 * ax.h (struct eval_agent_expr_context): New.
14992 (gdb_eval_agent_expr): Update declaration.
14993 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14994 TFRAME. Add new argument CTX.
14995 * server.h (struct eval_agent_expr_context): Declare.
14996 (agent_mem_read, agent_tsv_read): Update declaration.
14997 (agent_mem_read_string): Likewise.
14998 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14999 (add_traceframe_block): Add new argument TPOINT.
15000 Increase TPOINT->traceframe_usage.
15001 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15002 eval_tracepoint_agent_expr.
15003 (condition_true_at_tracepoint): Likewise.
15004 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15005 (agent_mem_read_string, agent_tsv_read): Likewise.
15006
85e00e85
YQ
150072013-01-16 Yao Qi <yao@codesourcery.com>
15008
15009 * linux-low.c (linux_resume_one_lwp): Don't check
15010 'lwp->bp_reinsert != 0'.
15011
4039cf45
JB
150122013-01-07 Joel Brobecker <brobecker@adacore.com>
15013 Pedro Alves <palves@redhat.com>
15014
15015 * lynx-low.c (ptrace_request_to_str): Define a temporary
15016 macro and use it to simplify this function's implementation.
15017
9044dee2
JB
150182013-01-07 Joel Brobecker <brobecker@adacore.com>
15019
15020 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15021 sets errno.
15022
e6352c8f
JB
150232013-01-07 Joel Brobecker <brobecker@adacore.com>
15024
15025 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15026
50681a27
JB
150272013-01-07 Joel Brobecker <brobecker@adacore.com>
15028
15029 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15030
3f6e77ef
JB
150312013-01-07 Joel Brobecker <brobecker@adacore.com>
15032
15033 * lynx-low.c (lynx_resume): Use the resume_info parameter
15034 to determine the ptid for the lynx_ptrace call, unless
15035 it is equal to minus_one_ptid, in which case we use the
15036 ptid of the current_inferior.
15037 (lynx_wait_1): After having received a thread create/exit
15038 event, resume the inferior's execution using the signaling
15039 thread's ptid, rather than the old ptid.
15040
7fda33ae
JB
150412013-01-07 Joel Brobecker <brobecker@adacore.com>
15042
15043 * lynx-low.c (lynx_resume): Delete variable ret.
15044
b9786c74
JB
150452013-01-01 Joel Brobecker <brobecker@adacore.com>
15046
15047 * gdbreplay.c (gdbreplay_version): Update copyright year.
15048 * server.c (gdbserver_version): Likewise.
15049
8b93d60f
JB
150502012-12-17 Joel Brobecker <brobecker@adacore.com>
15051
15052 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15053 new thread.
15054
037335a7
JB
150552012-12-17 Joel Brobecker <brobecker@adacore.com>
15056
15057 * lynx-low.c (ptrace_request_to_str): Add handling for
15058 PTRACE_GETTRACESIG.
15059
52d4cbd8
JB
150602012-12-17 Joel Brobecker <brobecker@adacore.com>
15061
15062 * lynx-low.c (lynx_attach): Delete variable new_process.
15063
ab8f6ca9
JB
150642012-12-17 Joel Brobecker <brobecker@adacore.com>
15065
15066 * lynx-low.c (lynx_create_inferior): Delete variable
15067 new_process.
15068
78cbc024
JB
150692012-12-17 Joel Brobecker <brobecker@adacore.com>
15070
15071 * lynx-low.c (ptrace_request_to_str): Do not handle
15072 PTRACE_GETTHREADLIST if this macro does not exist.
15073
14a00470
YQ
150742012-12-15 Yao Qi <yao@codesourcery.com>
15075
15076 * Makefile.in (OBS): Add notif.o.
15077 * notif.c, notif.h: New.
15078 * server.c: Include "notif.h".
15079 (struct vstop_notif) <next>: Remove.
15080 <base>: New field.
15081 (queue_stop_reply): Update.
15082 (push_event, send_next_stop_reply): Remove.
15083 (discard_queued_stop_replies): Update.
15084 (notif_stop): New variable.
15085 (handle_v_stopped): Remove.
15086 (handle_v_requests): Don't call handle_v_stopped. Call
15087 handle_ack_notif instead.
15088 (queue_stop_reply_callback): Call notif_event_enque instead
15089 of queue_stop_reply.
15090 (handle_status): Don't call send_next_stop_reply, call
15091 notif_write_event instead.
15092 (kill_inferior_callback): Likewise.
15093 (detach_or_kill_inferior_callback): Likewise.
15094 (main): Call initialize_notif.
15095 (process_serial_event): Call QUEUE_is_empty.
15096 (handle_target_event): Call notif_push instead of push event.
15097 * server.h (push_event): Remove declaration.
15098
61c125b9
TT
150992012-12-10 Tom Tromey <tromey@redhat.com>
15100
15101 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15102 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15103 macros.
15104 (.c.o): Rewrite.
15105 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15106 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15107 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15108 (amd64-linux-ipa.o, ax.o): Rewrite.
15109 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15110 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15111 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15112 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15113 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15114 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15115 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15116 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15117 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15118 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15119 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15120 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15121 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15122 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15123 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15124 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15125 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15126 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15127 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15128 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15129 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15130 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15131 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15132 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15133 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15134 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15135 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15136 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15137 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15138 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15139 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15140 (reg-tilegx.o): Remove.
15141 (all_object_files): New macro.
15142 Include .deps files.
15143 * aclocal.m4, configure: Rebuild.
15144 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15145 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15146 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15147
e90e9ad9
TT
151482012-12-05 Tom Tromey <tromey@redhat.com>
15149
15150 PR gdb/14917:
15151 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15152
02d403bf 151532012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15154
15155 * configure.ac: Check for linux/perf_event.h.
15156 * config.in: Regenerated.
15157 * configure: Regenerated.
15158
0270a750
PA
151592012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15160
15161 * hostio.c (handle_readlink): Decrease buffer size
15162 parameter passed to readlink by one byte.
15163
8c29b58e
YQ
151642012-11-26 Yao Qi <yao@codesourcery.com>
15165
15166 * configure.ac (build_warnings): Append '-Wempty-body'.
15167 * configure: Regenerated.
15168 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15169 body.
15170
8bdce1ff
PM
151712012-11-15 Pierre Muller <muller@sourceware.org>
15172
15173 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15174 * config.in: Regenerate.
15175 * configure: Regenerate.
15176 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15177 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15178 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15179 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15180 header.
15181 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15182 instead of <sys/wait.h> header.
15183 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15184
02d403bf 151852012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15186
15187 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15188 (various make rules): Remove -DGDBSERVER
15189
fbd5db48
YQ
151902012-11-09 Yao Qi <yao@codesourcery.com>
15191
15192 * spu-low.c (current_ptid): Move it to ..
15193 * gdbthread.h: ... here. New.
15194 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15195 * server.c (myresume, process_serial_event): Likewise.
15196 * thread-db.c (thread_db_find_new_threads): Likewise.
15197 * tracepoint.c (run_inferior_command): Likewise.
15198
b3dc46ff
AB
151992012-10-01 Andrew Burgess <aburgess@broadcom.com>
15200
15201 * server.c (handle_search_memory_1): Include access length in
15202 warning message.
15203
07c04788
HPN
152042012-09-05 Michael Brandt <michael.brandt@axis.com>
15205
15206 * linux-crisv32-low.c: Fix compile errors.
15207
918d227b
YQ
152082012-09-04 Yao Qi <yao@codesourcery.com>
15209
15210 * tracepoint.c (cmd_qtsv): Adjust debug message.
15211 Don't check CUR_TPOINT.
15212
18c1b81a
YQ
152132012-08-28 Yao Qi <yao@codesourcery.com>
15214
15215 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15216 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15217 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15218 Remove declarations of xmalloc, xreallloc, xstrdup and
15219 freeargv.
15220 * Makefile.in (libiberty_h): New.
15221 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15222 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15223
dc82f37b
YQ
152242012-08-23 Yao Qi <yao@codesourcery.com>
15225
15226 * server.h: Remove declaration of 'xsnprintf'.
15227
406b1477
KS
152282012-08-22 Keith Seitz <keiths@redhat.com>
15229
15230 * server.h: Include build-gnulib-gbserver/config.h.
15231 * gdbreplay.c: Likewise.
15232
e6712ff1
DE
152332012-08-08 Doug Evans <dje@google.com>
15234
15235 * Makefile.in (SFILES): Add gdb_vecs.c.
15236 (OBS): Add gdb_vecs.o.
15237 (gdb_vecs_h, host_defs_h): New variables.
15238 (thread-db.o): Add $(gdb_vecs_h) dependency.
15239 (gdb_vecs.o): New rule.
15240 * thread-db.c: #include "gdb_vecs.h".
15241 (thread_db_load_search): Use a vector to iterate over path elements.
15242 Handle text appearing after "$pdir".
15243
15244 * configure.ac: Add check for strstr.
15245 * config.in: Regenerate.
15246 * configure: Regenerate.
15247
7c3270ae
UW
152482012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15249
15250 * hostio.c (handle_pread): If pread fails, fall back to attempting
15251 lseek/read.
15252 (handle_pwrite): Likewise for pwrite.
15253
b62e2b27
UW
152542012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15255
15256 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15257 between unsupported TYPE and unimplementable ADDR/LEN combination.
15258 (arm_insert_point): Act on new return value.
15259
78a99e91
PA
152602012-07-31 Pedro Alves <palves@redhat.com>
15261
15262 * server.c (process_point_options): Only skip tokens if we find
15263 one that is unrecognized. Don't treat 'X' specially while
15264 skipping unrecognized tokens.
15265
fcf303ab
UW
152662012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15267
15268 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15269 to 4-byte-align HW breakpoint addresses for Thumb.
15270
7255706c
YQ
152712012-07-27 Yao Qi <yao@codesourcery.com>
15272
15273 PR remote/14161.
15274
15275 * server.h: Declare gdb_agent_about_to_close.
15276 * target.c (kill_inferior): Include "agent.h".
15277 New. Send command 'kill'.
15278 * target.h (kill_inferior): Removed macro.
15279 * tracepoint.c (gdb_agent_about_to_close): New.
15280 (gdb_agent_helper_thread): Handle command 'close'.
15281 Wait endlessly until the inferior stops.
15282 Install gdb_agent_remove_socket to atexit hook.
15283 (agent_socket_name): New static variable.
15284 (gdb_agent_socket_init): Replace local variable 'name' with
15285 'agent_socket_name'.
15286 (gdb_agent_remove_socket): New.
15287
5a3f286f
YQ
152882012-07-27 Yao Qi <yao@codesourcery.com>
15289
15290 * server.c (process_point_options): Stop at 'X' when parsing.
15291
961bd387
ME
152922012-07-19 Michael Eager <eager@eagercon.com>
15293
a261b8f5 15294 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15295 to hw_execute.
15296 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15297 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15298 hardware breakpoint.
15299
aa7c7447
JK
153002012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15301
15302 * gdbserver/linux-low.c (initialize_low): Call
15303 linux_ptrace_init_warnings.
15304
7f216e7c
DE
153052012-07-02 Doug Evans <dje@google.com>
15306
15307 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15308 pointer to int.
15309
d3ce09f5
SS
153102012-07-02 Stan Shebs <stan@codesourcery.com>
15311
15312 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15313 (ax.o): Add it to build rule.
15314 (ax-ipa.o): Ditto.
15315 (OBS): Add format.o.
15316 (IPA_OBS): Add format.o.
15317 * server.c (handle_query): Claim support for breakpoint commands.
15318 (process_point_options): Add command case.
15319 (process_serial_event): Leave running if there are printfs in
15320 effect.
15321 * mem-break.h (any_persistent_commands): Declare.
15322 (add_breakpoint_commands): Declare.
15323 (gdb_no_commands_at_breakpoint): Declare.
15324 (run_breakpoint_commands): Declare.
15325 * mem-break.c (struct point_command_list): New struct.
15326 (struct breakpoint): New field command_list.
15327 (any_persistent_commands): New function.
15328 (add_commands_to_breakpoint): New function.
15329 (add_breakpoint_commands): New function.
15330 (gdb_no_commands_at_breakpoint): New function.
15331 (run_breakpoint_commands): New function.
15332 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15333 locally.
15334 * ax.c: Include format.h.
15335 (ax_printf): New function.
15336 (gdb_eval_agent_expr): Add printf opcode.
15337
2f8f6aed
YQ
153382012-06-13 Yao Qi <yao@codesourcery.com>
15339
15340 * server.c (start_inferior): Remove duplicated writes to fields
15341 'last_resume_kind' and 'last_status' of 'current_inferior'.
15342
0c9070b3
YQ
153432012-06-12 Yao Qi <yao@codesourcery.com>
15344 Pedro Alves <palves@redhat.com>
15345
15346 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15347 comment.
15348 * server.c (handle_v_cont): Extend comment.
15349
c52daf70
YQ
153502012-06-11 Yao Qi <yao@codesourcery.com>
15351
15352 * linux-low.c (linux_attach): Add 'static'.
15353
d38bbb0a
YQ
153542012-06-06 Yao Qi <yao@codesourcery.com>
15355
15356 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15357
89dc0afd
JK
153582012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15359
15360 Fix gcc -flto compilation warning.
15361 * server.c (main): Make variable multi_mode and attach volatile.
15362
75f62ce7
TJB
153632012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15364
15365 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15366 if the platform doesn't know about it.
15367
65f479b6
PA
153682012-05-30 Jeff Kenton <jkenton@tilera.com>
15369
15370 * Makefile.in (SFILES): Add linux-tile-low.c.
15371 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15372 * configure.srv: Handle tilegx-*-linux*.
15373 * linux-tile-low.c: New file.
15374
0c5bf5a9
JK
153752012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15376
15377 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15378
a493e3e2
PA
153792012-05-24 Pedro Alves <palves@redhat.com>
15380
15381 PR gdb/7205
15382
43aaf8b6 15383 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15384
2ea28649
PA
153852012-05-24 Pedro Alves <palves@redhat.com>
15386
15387 PR gdb/7205
15388
15389 Replace target_signal with gdb_signal throughout.
15390
8d409d16
MR
153912012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15392
15393 * linux-low.c (linux_store_registers): Avoid the copying sequence
15394 when no data has been retrieved by ptrace.
15395
23512c01
MGD
153962012-05-22 Will Deacon <will.deacon@arm.com>
15397
15398 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15399 Include asm/ptrace.h.
15400 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15401 already defined.
15402
4934b29e
MR
154032012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15404
15405 * linux-low.c (linux_store_registers): Don't re-retrieve data
15406 with ptrace that has already been obtained from /proc. Always
15407 copy any data retrieved with ptrace to the buffer supplied.
15408
bde24c0a
PA
154092012-05-11 Yao Qi <yao@codesourcery.com>
15410 Pedro Alves <palves@redhat.com>
15411
15412 * linux-low.c (enum stopping_threads_kind): New.
15413 (stopping_threads): Change type to `enum stopping_threads_kind'.
15414 (handle_extended_wait): If stopping and suspending threads, leave
15415 the new_lwp suspended too.
15416 (linux_wait_for_event): Adjust.
15417 (stop_all_lwps): Set `stopping_threads' to
15418 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15419 whether we're suspending threads or just stopping them. Assert no
15420 recursion happens.
15421
623b6bdf
YQ
154222012-04-29 Yao Qi <yao@codesourcery.com>
15423
15424 * server.h: Move some code to ...
15425 * gdbthread.h: ... here. New.
15426 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15427 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15428 (nto-low.o, win32-low.o): Likewise.
15429 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15430 * regcache.c, remote-utils.c, server.c: Likewise.
15431 * target.c, tracepoint.c, win32-low.c: Likewise.
15432
f15f9948
TJB
154332012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15434
15435 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15436 (PTRACE_ARG4_TYPE): Likewise.
15437 (PTRACE_XFER_TYPE): Likewise.
15438 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15439 ptrace to PTRACE_ARG3_TYPE.
15440 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15441 (PTRACE_ARG4_TYPE): Likewise.
15442 (PTRACE_XFER_TYPE): Likewise.
15443 (linux_detach_one_lwp): Cast fourth argument of
15444 ptrace to long then PTRACE_ARG4_TYPE.
15445 (regsets_fetch_inferior_registers): Cast third argument of
15446 ptrace to long then PTRACE_ARG3_TYPE.
15447 (regsets_store_inferior_registers): Likewise.
15448
38ea300a
PA
154492012-04-20 Pedro Alves <palves@redhat.com>
15450
15451 * configure: Regenerate.
15452
c971b7fa
PA
154532012-04-19 Pedro Alves <palves@redhat.com>
15454
43aaf8b6 15455 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15456 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15457 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15458 (all, install-only, uninstall, clean-info, all-lib, clean): No
15459 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15460 (maintainer-clean realclean distclean): Use subdir_do.
15461 (subdir_do): New.
15462 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15463 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15464 * acinclude.m4: Include acx_configure_dir.m4.
15465 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15466 calls. Call AC_PROG_RANLIB. Configure gnulib using
15467 ACX_CONFIGURE_DIR.
15468 (GNULIB): New.
15469 (GNULIB_STDINT_H): Adjust.
15470 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15471 * gdbreplay.c: Include build-gnulib/config.h.
15472 * server.h: Likewise.
15473 * aclocal.m4: Regenerate.
15474 * config.in: Regenerate.
15475 * configure: Regenerate.
c971b7fa 15476
809277f8
PA
154772012-04-19 Pedro Alves <palves@redhat.com>
15478
15479 * Makefile.in (LIBGNU, INCGNU): Adjust.
15480 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15481 (all, install-only, uninstall, clean-info, all-lib, clean)
15482 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15483 * configure.ac: Adjust AC_OUTPUT output.
15484 * aclocal.m4: Regenerate.
15485 * configure: Regenerate.
15486
fd9bb8b8
PA
154872012-04-19 Pedro Alves <palves@redhat.com>
15488
15489 * Makefile.in (generated_files): New.
15490 (server_h): Remove the explicit dependency on config.h, and depend
15491 on $generated_files.
15492
1c298c66
PA
154932012-04-19 Pedro Alves <palves@redhat.com>
15494
15495 * Makefile.in (INCGNU): Add -Ignulib.
15496
57c4b50b
PA
154972012-04-19 Pedro Alves <palves@redhat.com>
15498
15499 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15500 (INCGNU): ... this, and spell out -I here.
15501 (GNULIB_LIB): Rename to ...
15502 (LIBGNU): ... this.
15503 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15504
1030e047
PA
155052012-04-19 Pedro Alves <palves@redhat.com>
15506
15507 * config.in: Regenerate.
15508
447d4319
PA
155092012-04-19 Pedro Alves <palves@redhat.com>
15510
15511 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15512 * server.h (memmem): Remove declaration.
15513 * config.in: Regenerate.
15514 * configure: Regenerate.
15515
aad9eab9
YQ
155162012-04-19 Yao Qi <yao@codesourcery.com>
15517
15518 * Makefile.in (SFILES): Add common/vec.c.
15519 (OBS): Add vec.o.
15520 (vec.o): New rule.
15521
3e10640f
YQ
155222012-04-19 Yao Qi <yao@codesourcery.com>
15523
15524 * remote-utils.c (prepare_resume_reply): Replace with macro
15525 target_core_of_thread.
15526 * server.c (handle_qxfer_threads_proper): Likewise.
15527 * target.h (traget_core_of_thread): New macro.
15528
71622373
PA
155292012-04-18 Pedro Alves <palves@redhat.com>
15530
15531 * aclocal.m4: Regenerate.
15532 * configure: Regenerate.
15533
80d26939
YQ
155342012-04-16 Yao Qi <yao@codesourcery.com>
15535
15536 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15537 duplicated on address.
15538
42476b70
YQ
155392012-04-16 Yao Qi <yao@codesourcery.com>
15540
15541 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15542 (struct tracepoint_action_ops) <send>: New field.
15543 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15544 (agent_expr_send, x_tracepoint_action_send): New.
15545 (l_tracepoint_action_send): New.
15546 (cmd_qtdp): Download and install tracepoint
15547 according to `use_agent'.
15548 (run_inferior_command): Add one more parameter `len'.
15549 Update callers.
15550 (tracepoint_send_agent): New.
15551 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15552
7bc83639
YQ
155532012-04-16 Yao Qi <yao@codesourcery.com>
15554
15555 * tracepoint.c (download_tracepoints): Moved to ...
15556 (cmd_qtstart): ... here.
15557
5f18041e
YQ
155582012-04-14 Yao Qi <yao@codesourcery.com>
15559
15560 * tracepoint.c: Include inttypes.h.
15561 (struct collect_memory_action): Use sized types.
15562 (struct tracepoint): Likewise.
15563 (cmd_qtdp, stop_tracing): Update print specifiers.
15564 (cmd_qtp, response_tracepoint): Likewise.
15565 (collect_data_at_tracepoint): Likewise.
15566 (collect_data_at_step): Likewise.
15567
55a8c076
YQ
155682012-04-14 Yao Qi <yao@codesourcery.com>
15569
15570 Import gnulib module inttypes.
15571 * aclocal.m4, config.in, configure: Regenerated.
15572
dc750257
YQ
155732012-04-14 Yao Qi <yao@codesourcery.com>
15574
15575 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15576 Makefile and config.status at last.
15577
0ab5faf9
YQ
155782012-04-13 Yao Qi <yao@codesourcery.com>
15579
15580 * tracepoint.c: Include stdint.h unconditionally.
15581
18f5fd81
TJB
155822012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15583
15584 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15585 on BFD_HAVE_SYS_PROCFS_TYPE.
15586 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15587 * configure: Regenerate.
15588 * config.in: Likewise.
15589
4d47af5c
L
155902012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15591
15592 * Makefile.in (clean): Also remove x32.c x32-linux.c
15593 x32-avx.c x32-avx-linux.c.
15594 (x32.o): New target.
15595 (x32.c): Likewise.
15596 (x32-linux.o): Likewise.
15597 (x32-linux.c): Likewise.
15598 (x32-avx.o): Likewise.
15599 (x32-avx.c): Likewise.
15600 (x32-avx-linux.o): Likewise.
15601 (x32-avx-linux.c): Likewise.
15602
15603 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15604 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15605 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15606 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15607 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15608 i386/x32-avx-linux.xml.
15609
15610 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15611 (init_registers_x32_avx_linux): Likwise.
15612 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15613 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15614
ecedbe58
PA
156152012-04-13 Pedro Alves <palves@redhat.com>
15616
15617 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15618 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15619 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15620 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15621 the sub-make.
15622
c92b5177
L
156232012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15624
15625 * linux-x86-low.c (compat_x32_clock_t): New.
15626 (compat_x32_siginfo_t): Likewise.
15627 (compat_x32_siginfo_from_siginfo): Likewise.
15628 (siginfo_from_compat_x32_siginfo): Likewise.
15629 (linux_is_elf64): Likewise.
15630 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15631 and siginfo_from_compat_x32_siginfo for x32.
15632 (x86_arch_setup): Set linux_is_elf64.
15633
214d508e
L
156342012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15635
15636 PR gdb/13969
15637 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15638 e_machine field.
15639 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15640 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15641 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15642 compatible with process.
15643
c9a1864a
YQ
156442012-04-12 Yao Qi <yao@codesourcery.com>
15645
15646 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15647 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15648 (install-only, install-info, clean): Handle sub dir gnulib.
15649 (all-lib, am--refresh): New targets.
15650 (memmem.o): Remove target.
15651 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15652 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15653 (AC_REPLACE_FUNCS): Remove memmem.
15654 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15655 (AC_OUTPUT): Generate Makefile in gnulib/.
15656 * aclocal.m4, config.in, configure: Regenerated.
15657
367ba2c2
MR
156582012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15659
15660 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15661
9d236627
PA
156622012-04-05 Pedro Alves <palves@redhat.com>
15663
15664 -Werror=strict-aliasing
15665
15666 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15667 pointer.
15668
111217b3
PA
156692012-04-04 Pedro Alves <palves@redhat.com>
15670
15671 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15672 (sparc_store_gregset_from_stack, sparc_store_gregset)
15673 (sparc_breakpoint_at): Fix formatting.
15674
8365dcf5
TJB
156752012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15676
15677 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15678 are available.
15679 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15680 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15681 * config.in: Regenerate.
15682 * configure: Likewise.
15683
689cc2ae
PA
156842012-03-29 Pedro Alves <palves@redhat.com>
15685
15686 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15687 Correct ptrace arguments.
15688
c14dfd32
PA
156892012-03-28 Pedro Alves <palves@redhat.com>
15690
15691 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15692 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15693 (IA64_FR1_REGNUM): New defines.
15694 (ia64_fetch_register): New.
15695 (the_low_target): Install it.
15696 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15697 field.
15698 * linux-low.c (linux_fetch_registers): Try the
15699 the_low_target.fetch_register hook first.
15700
15701 * linux-arm-low.c (the_low_target): Adjust.
15702 * linux-bfin-low.c (the_low_target): Adjust.
15703 * linux-cris-low.c (the_low_target): Adjust.
15704 * linux-crisv32-low.c (the_low_target): Adjust.
15705 * linux-m32r-low.c (the_low_target): Adjust.
15706 * linux-m68k-low.c (the_low_target): Adjust.
15707 * linux-mips-low.c (the_low_target): Adjust.
15708 * linux-ppc-low.c (the_low_target): Adjust.
15709 * linux-s390-low.c (the_low_target): Adjust.
15710 * linux-sh-low.c (the_low_target): Adjust.
15711 * linux-sparc-low.c (the_low_target): Adjust.
15712 * linux-tic6x-low.c (the_low_target): Adjust.
15713 * linux-x86-low.c (the_low_target): Adjust.
15714 * linux-xtensa-low.c (the_low_target): Adjust.
15715
63c88e13
PA
157162012-03-26 Pedro Alves <palves@redhat.com>
15717
15718 * server.c (handle_qxfer_libraries): Don't bail early if
15719 the_target->qxfer_libraries_svr4 is not NULL.
15720
fb723180
PA
157212012-03-26 Pedro Alves <palves@redhat.com>
15722
15723 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15724
0afae3cf
PA
157252012-03-23 Pedro Alves <palves@redhat.com>
15726
15727 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15728 "library-list-svr4" element's start tag when the the DSO list is
15729 empty.
15730
485f1ee4
PA
157312012-03-23 Pedro Alves <palves@redhat.com>
15732
15733 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15734 a variable whose type size is the same as the inferior's pointer
15735 size.
15736
a5362b9a
TS
157372012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15738
15739 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15740 struct siginfo.
15741 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15742 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15743 * linux-low.h: Include <signal.h>.
15744 (struct siginfo): Remove forward declaration.
15745 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15746 struct siginfo.
15747
d226c142
MF
157482012-03-21 Mike Frysinger <vapier@gentoo.org>
15749
15750 * .gitignore: Ignore more files.
15751
122f36ef
PA
157522012-03-19 Pedro Alves <palves@redhat.com>
15753 Jan Kratochvil <jan.kratochvil@redhat.com>
15754
15755 * server.c (cont_thread, general_thread): Add describing comments.
15756 (start_inferior): Clear `cont_thread'.
15757 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15758 of a process.
15759
fc3e5175
YQ
157602012-03-15 Yao Qi <yao@codesourcery.com>
15761
15762 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15763 handling to ...
15764 (cmd_qtdp): ... here.
15765
8d0d92cd
YQ
157662012-03-15 Yao Qi <yao@codesourcery.com>
15767
15768 * tracepoint.c (struct tracepoint_action_ops): New.
15769 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15770 (m_tracepoint_action_download): New.
15771 (r_tracepoint_action_download): New.
15772 (x_tracepoint_action_download): New.
15773 (l_tracepoint_action_download): New.
15774 (add_tracepoint_action): Install `action->ops' according type.
15775 (download_tracepoint_1): Move code `download' function pointer
15776 of various tracepoint_action_ops.
15777
87b0bb13
JK
157782012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15779
15780 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15781 linux_ptrace_attach_warnings.
15782
5f572dec
JK
157832012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15784
15785 * Makefile.in (linux-ptrace.o): New.
15786 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15787 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15788 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15789 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15790 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15791 of these targets.
15792 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15793
f4647387
YQ
157942012-03-08 Yao Qi <yao@codesourcery.com>
15795 Pedro Alves <palves@redhat.com>
15796
15797 Fix PR server/13392.
15798 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15799 offset of JMP insn.
15800 * tracepoint.c (remove_tracepoint): New.
15801 (cmd_qtdp): Call remove_tracepoint when failed to install.
15802
9b224c5e
PA
158032012-03-07 Pedro Alves <palves@redhat.com>
15804
15805 * linux-low.c (get_detach_signal): New.
15806 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15807 Pass on pending signals to PTRACE_DETACH. Check the result of the
15808 ptrace call.
15809 * server.c (program_signals, program_signals_p): New.
15810 (handle_general_set): Handle QProgramSignals.
15811 * server.h (program_signals, program_signals_p): Declare.
15812
e237a7e2
JK
158132012-03-05 Pedro Alves <palves@redhat.com>
15814 Jan Kratochvil <jan.kratochvil@redhat.com>
15815
15816 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15817 New comment why.
15818
5808517f
YQ
158192012-03-03 Yao Qi <yao@codesourcery.com>
15820
15821 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15822 agent_look_up_symbols.
15823
58b4daa5
YQ
158242012-03-03 Yao Qi <yao@codesourcery.com>
15825
15826 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15827 (linux-x86-low.o): Likewise.
15828 * server.h: Remove in_process_agent_loaded.
15829 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15830 common/agent.c.
15831 Update callers.
15832
8ffcbaaf
YQ
158332012-03-03 Yao Qi <yao@codesourcery.com>
15834
15835 * tracepoint.c (gdb_agent_capability): New global.
15836 (in_process_agent_loaded_ust): Renamed to
15837 `in_process_agent_supports_ust'.
15838 Update callers.
15839 (in_process_agent_supports_ust): Call agent_capability_check.
15840 (clear_installed_tracepoints): Assert that agent supports
15841 agent.
15842
d1feda86
YQ
158432012-03-03 Yao Qi <yao@codesourcery.com>
15844
15845 * linux-low.c (linux_supports_agent): New.
15846 (linux_target_ops): Initialize field `supports_agent' with
15847 linux_supports_agent.
15848 * target.h (struct target_ops) <supports_agent>: New.
15849 (target_supports_agent): New macro.
15850 * server.c (handle_general_set): Handle packet 'QAgent'.
15851 (handle_query): Send `QAgent+'.
15852 * Makefile.in (server.o): Depends on agent.h.
15853
2fa291ac
YQ
158542012-03-03 Yao Qi <yao@codesourcery.com>
15855
15856 * Makefile.in (OBS): Add agent.o.
15857 Add new rule for agent.o.
15858 Track dependence of tracepoint.c on agent.h.
15859 * tracepoint.c (run_inferior_command_1):
15860 (run_inferior_command): Call agent_run_command.
15861 (gdb_ust_connect_sync_socket): Deleted. Move it to
15862 common/agent.c.
15863 (resume_thread, stop_thread): Likewise.
15864 (gdb_ust_socket_init): Renamed to ...
15865 (gdb_agent_socket_init): ... New.
15866 (gdb_ust_thread): Renamed to ...
15867 (gdb_agent_helper_thread): ... New.
15868 (gdb_ust_init): Move some code to ...
15869 (gdb_agent_init): ... here. New.
15870 [HAVE_UST]: Call gdb_ust_init.
15871 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15872 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15873 * config.in, configure: Regenerated.
15874
05044653
PA
158752012-03-02 Pedro Alves <palves@redhat.com>
15876
15877 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15878 * linux-low.c (struct simple_pid_list): New.
15879 (stopped_pids): New a struct simple_pid_list pointer.
15880 (add_to_pid_list, pull_pid_from_list): New.
15881 (handle_extended_wait): Don't assume the first signal new children
15882 report is SIGSTOP. Adjust call to pull_pid_from_list.
15883 (linux_wait_for_lwp): Adjust.
15884
8d00225b
YQ
158852012-03-02 Yao Qi <yao@codesourcery.com>
15886
15887 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15888 debug log.
15889
19560ba5
YQ
158902012-03-02 Yao Qi <yao@codesourcery.com>
15891
15892 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15893 `stop_pc' and `tpoint'. Update caller.
15894
1faeff08
MR
158952012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15896
15897 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15898 * linux-low.c (use_linux_regsets): New macro.
15899 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15900 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15901 (linux_register_in_regsets): New function.
15902 (usr_fetch_inferior_registers): Skip registers covered by
15903 regsets.
15904 (usr_store_inferior_registers): Likewise.
15905 (usr_fetch_inferior_registers): New macro.
15906 (usr_store_inferior_registers): Likewise.
15907 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15908 (linux_store_registers): Likewise.
15909 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15910 prototype.
15911 (init_registers_mips64_dsp_linux): Likewise.
15912 (init_registers_mips_linux): New macro.
15913 (init_registers_mips_dsp_linux): Likewise.
15914 (mips_dsp_num_regs): Likewise.
15915 (DSP_BASE, DSP_CONTROL): New fallback macros.
15916 (mips_base_regs): New macro.
15917 (mips_regmap): Use it. Fix the size.
15918 (mips_dsp_regmap): New variable.
15919 (mips_dsp_regset_bitmap): Likewise.
15920 (mips_arch_setup): New function.
15921 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15922 than mips_regmap.
15923 (mips_cannot_store_register): Likewise.
15924 (the_low_target): Update .arch_setup, .num_regs and .regmap
15925 initializers. Add .regset_bitmap initializer.
15926 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15927 initializer.
15928 * linux-bfin-low.c (the_low_target): Likewise.
15929 * linux-cris-low.c (the_low_target): Likewise.
15930 * linux-crisv32-low.c (the_low_target): Likewise.
15931 * linux-ia64-low.c (the_low_target): Likewise.
15932 * linux-m32r-low.c (the_low_target): Likewise.
15933 * linux-m68k-low.c (the_low_target): Likewise.
15934 * linux-ppc-low.c (the_low_target): Likewise.
15935 * linux-s390-low.c (the_low_target): Likewise.
15936 * linux-sh-low.c (the_low_target): Likewise.
15937 * linux-sparc-low.c (the_low_target): Likewise.
15938 * linux-tic6x-low.c (the_low_target): Likewise.
15939 * linux-x86-low.c (the_low_target): Likewise.
15940 * linux-xtensa-low.c (the_low_target): Likewise.
15941 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15942 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15943 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15944 srv_xmlfiles.
15945 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15946 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15947
c03e6ccc
YQ
159482012-02-29 Yao Qi <yao@codesourcery.com>
15949 Pedro Alves <palves@redhat.com>
15950
15951 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15952 `step_over_finished' is true.
15953
644cebc9
PA
159542012-02-27 Pedro Alves <palves@redhat.com>
15955
15956 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15957 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15958
c14d7ab2
PA
159592012-02-27 Pedro Alves <palves@redhat.com>
15960
15961 PR server/9684
15962 * linux-low.c (pid_is_stopped): New.
15963 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15964
412c89dd
LM
159652012-02-25 Luis Machado <lgustavo@codesourcery.com>
15966
15967 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15968 of conditions.
15969
b745defe
MR
159702012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15971
15972 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15973
9f3a5c85
LM
159742012-02-24 Luis Machado <lgustavo@codesourcery>
15975
15976 * server.c (handle_query): Advertise support for target-side
15977 breakpoint condition evaluation.
15978 (process_point_options): New function.
15979 (process_serial_event): When inserting a breakpoint, check for
15980 a target-side condition that should be evaluated.
15981
15982 * mem-break.c: Include regcache.h and ax.h.
15983 (point_cond_list_t): New data structure.
15984 (breakpoint) <cond_list>: New field.
15985 (find_gdb_breakpoint_at): Make non-static.
15986 (delete_gdb_breakpoint_at): Clear any target-side
15987 conditions.
15988 (clear_gdb_breakpoint_conditions): New function.
15989 (add_condition_to_breakpoint): Likewise.
15990 (add_breakpoint_condition): Likewise.
15991 (gdb_condition_true_at_breakpoint): Likewise.
15992 (gdb_breakpoint_here): Return result directly instead
15993 of going through a local variable.
15994
15995 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15996 (clear_gdb_breakpoint_conditions): Likewise.
15997 (add_breakpoint_condition): Likewise.
15998 (gdb_condition_true_at_breakpoint): Likewise.
15999
16000 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16001 (need_step_over_p): Take target-side breakpoint condition into
16002 consideration.
16003
5e1dc496
LM
160042012-02-24 Luis Machado <lgustavo@codesourcery>
16005
16006 * server.h: Include tracepoint.h.
16007 (agent_mem_read, agent_get_trace_state_variable_value,
16008 agent_set_trace_state_variable_value,
16009 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16010 get_set_tsv_func_addr): New prototypes.
16011
16012 * ax.h: New include file.
16013 * ax.c: New source file.
16014
16015 * tracepoint.c: Include ax.h.
16016 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16017 agent_expr, eval_result_type): Move to ax.h.
16018 (parse_agent_expr): Rename to ...
16019 (gdb_parse_agent_expr): ... this, make it non-static and move
16020 to ax.h.
16021 (unparse_agent_expr) Rename to ...
16022 (gdb_unparse_agent_expr): ... this, make it non-static and move
16023 to ax.h.
16024 (eval_agent_expr): Rename to ...
16025 (eval_tracepoint_agent_expr): ... this.
16026 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16027 forward declarations.
16028 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16029 (agent_get_trace_state_variable_value): New function.
16030 (agent_set_trace_state_variable_value): New function.
16031 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16032 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16033 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16034 (condition_true_at_tracepoint): Likewise.
16035 (parse_agent_expr): Rename to ...
16036 (gdb_parse_agent_expr): ... this and move to ax.c.
16037 (unparse_agent_expr): Rename to ...
16038 (gdb_unparse_agent_expr): ... this and move to ax.c.
16039 (gdb_agent_op_name): Move to ax.c.
16040 (eval_agent_expr): Rename to ...
16041 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16042 and move to ax.c.
16043 (eval_tracepoint_agent_expr): New function.
16044 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16045 non-static.
5e1dc496
LM
16046 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16047 ax.c.
16048 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16049 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16050 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16051 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16052 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16053 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16054 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16055 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16056 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16057 (compile_bytecodes): Remove forward declaration.
16058 (is_goto_target): Move to ax.c.
16059 (compile_bytecodes): Move to ax.c and call
16060 agent_get_trace_state_variable_value (...) and
16061 agent_set_trace_state_variable_value (...).
16062
16063 * Makefile.in: Update ax.c and IPA dependencies.
16064
277e4e52
PA
160652012-02-24 Pedro Alves <palves@redhat.com>
16066
16067 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16068 (cmd_bigqtbuffer_circular): ... this. Only handle
16069 'QTBuffer:circular:'.
16070 (handle_tracepoint_general_set): Adjust.
16071
bf4c19f7
YQ
160722012-02-16 Yao Qi <yao@codesourcery.com>
16073
16074 * inferiors.c: Move code to ...
16075 * dll.c: .... here. New.
16076 * server.h: Declare clear_dlls.
16077 * Makefile.in (SFILES): Add dll.c.
16078 (OBS): Add dll.o
16079 (dll.o): New rule.
16080
d73f2619
YQ
160812012-02-11 Yao Qi <yao@codesourcery.com>
16082
16083 * server.c: (handle_monitor_command): Add a new parameter
16084 `own_buf'.
16085 (handle_query): Update caller.
16086
f8255c2a
JB
160872012-02-09 Joel Brobecker <brobecker@adacore.com>
16088
16089 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16090 * configure, config.in: Regenerate.
16091 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16092 is not defined.
16093
da84f473
PA
160942012-02-02 Pedro Alves <palves@redhat.com>
16095
16096 Try SIGKILL first, then PTRACE_KILL.
16097 * linux-low.c (linux_kill_one_lwp): New.
16098 (linux_kill_one_lwp): Rename to ...
16099 (kill_one_lwp_callback): ... this. Use the new
16100 linux_kill_one_lwp.
16101
e886a173
PA
161022012-02-02 Pedro Alves <palves@redhat.com>
16103
16104 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16105 inferior.
16106
be07f1a2
PA
161072012-01-27 Pedro Alves <palves@redhat.com>
16108
16109 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16110 (elf_64_file_p): Make static.
16111 (linux_pid_exe_is_elf_64_file): New.
16112 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16113 Delete declarations.
16114 (linux_pid_exe_is_elf_64_file): Declare.
16115 * linux-x86-low.c (x86_arch_setup): Use
16116 linux_pid_exe_is_elf_64_file.
16117
d8301ad1
JK
161182012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16119
16120 * linux-low.c (linux_wait_for_event_1): Rename to ...
16121 (linux_wait_for_event): ... here and merge it with former
16122 linux_wait_for_event - new variable wait_ptid, use it.
16123 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16124
01b17894
PA
161252012-01-23 Pedro Alves <palves@redhat.com>
16126
16127 * server.c (main): Avoid yet another case of infinite loop while
16128 detaching/killing after a longjmp.
16129
e825046f
JK
161302012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16131
16132 Code cleanup.
16133 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16134
b9e7b9c3
UW
161352012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16136
16137 * hostio.c (handle_readlink): New function.
16138 (handle_vFile): Call it to handle "vFile:readlink" packets.
16139
901f9912
UW
161402012-01-20 Pedro Alves <palves@redhat.com>
16141 Ulrich Weigand <ulrich.weigand@linaro.org>
16142
16143 * server.c (handle_v_requests): Only support vAttach and vRun to
16144 start multiple processes when in extended protocol mode.
16145
fc1ab1a0
PA
161462012-01-17 Pedro Alves <palves@redhat.com>
16147
16148 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16149 memalign plus mprotect to allocate the scratch buffer.
16150
7d5d4e98
PA
161512012-01-13 Pedro Alves <palves@redhat.com>
16152
16153 * server.c (attach_inferior): Clear `cont_thread'.
16154
f128d5e9
PA
161552012-01-13 Pedro Alves <palves@redhat.com>
16156
16157 * server.c (main): Avoid infinite loop while detaching/killing
16158 after a longjmp.
16159
06db92f0
DE
161602012-01-09 Doug Evans <dje@google.com>
16161
16162 * server.c (start_inferior): Set last_ptid in --wrapper case.
16163
32d92999
YQ
161642012-01-06 Yao Qi <yao@codesourcery.com>
16165
16166 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16167 defined.
16168 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16169
5e0a92a9
YQ
161702012-01-04 Yao Qi <yao@codesourcery.com>
16171
16172 * tracepoint.c (cmd_qtdp): Print debug message
16173 for static tracepoint.
16174
ae639e8c
YQ
161752012-01-04 Yao Qi <yao@codesourcery.com>
16176
16177 * tracepoint.c (trace_vdebug): Differentiate debug message
16178 between gdbserver and IPA.
16179
f72429c5
YQ
161802012-01-03 Yao Qi <yao@codesourcery.com>
16181
16182 * tracepoint.c (tracepoint_was_hit): Don't collect for
16183 static tracepoint.
16184
12c3e59c
JB
161852012-01-02 Joel Brobecker <brobecker@adacore.com>
16186
16187 * terminal.h: Reformat copyright header.
16188
67827812
JB
161892012-01-02 Joel Brobecker <brobecker@adacore.com>
16190
16191 * server.c (gdbserver_version): Update copyright year.
16192 * gdbreplay.c (gdbreplay_version): Likewise.
16193
3e52c33d
JK
161942011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16195
16196 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16197
16198 Revert:
16199 2011-12-18 Hui Zhu <teawater@gmail.com>
16200 * linux-low.c (linux_create_inferior): Save return value to ret.
16201
66f1260e
HZ
162022011-12-18 Hui Zhu <teawater@gmail.com>
16203
16204 * linux-low.c (linux_create_inferior): Save return value to ret.
16205
e77616d7
DE
162062011-12-16 Doug Evans <dje@google.com>
16207
e7b06c57
DE
16208 * linux-low.c (linux_create_inferior): If stdio connection,
16209 redirect stdin from /dev/null, stdout to stderr.
16210 * remote-utils.c (remote_is_stdio): New static global.
16211 (remote_connection_is_stdio): New function.
16212 (remote_prepare): Handle stdio connection.
16213 (remote_open): Ditto.
16214 (remote_close): Don't close stdin for stdio connections.
16215 (read_prim,write_prim): New functions. Replace all calls to
16216 read/write to these.
16217 * server.c (main): Watch for "-" argument. Move call to
16218 remote_prepare before start_inferior.
16219 * server.h (STDIO_CONNECTION_NAME): New macro.
16220 (remote_connection_is_stdio): Declare.
16221
e77616d7
DE
16222 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16223 in debugging output.
16224
82067193
YQ
162252011-12-15 Yao Qi <yao@codesourcery.com>
16226
16227 * tracepoint.c: Include sys/syscall.h.
16228 (gdb_ust_thread): Remove preprocessor conditional.
16229
82bfbe7e
PA
162302011-12-14 Pedro Alves <pedro@codesourcery.com>
16231
16232 * linux-low.c (linux_detach_one_lwp): Call
16233 the_low_target.prepare_to_resume before detaching.
16234
712c6575
YQ
162352011-12-14 Yao Qi <yao@codesourcery.com>
16236
16237 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16238 of write.
16239
d54d1edf
YQ
162402011-12-14 Yao Qi <yao@codesourcery.com>
16241
16242 * i386-low.c (i386_low_stopped_data_address): Initialize local
16243 variable `control'.
16244
6210a125
PA
162452011-12-13 Pedro Alves <pedro@codesourcery.com>
16246
16247 PR remote/13492
16248
16249 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16250 DR_CONTROL unless necessary. Extend comments.
16251 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16252 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16253
2ece8244
YQ
162542011-12-13 Yao Qi <yao@codesourcery.com>
16255
16256 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16257 macros.
16258 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16259
784867a5
JK
162602011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16261
16262 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16263 Print new debug message for such case.
16264
6bf36717
JK
162652011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16266
16267 Fix overlapping memcpy.
16268 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16269 the read_inferior_memory transfer.
16270 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16271 write_inferior_memory transfer.
16272 (set_fast_tracepoint_jump): New variable buf. Use it for the
16273 read_inferior_memory and write_inferior_memory transfers.
16274 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16275 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16276 Use it for the write_inferior_memory transfer.
16277 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16278 buffers.
16279
50275556
MR
162802011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16281
16282 * linux-low.c (fetch_register, store_register): Make code
16283 consistent, fix formatting.
16284
7325beb4
MR
162852011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16286
16287 * linux-low.c (usr_store_inferior_registers): Factor out code
16288 to handle individual registers into...
16289 (store_register): ... this new function.
16290
c642a434
UW
162912011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16292
16293 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16294 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16295 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16296 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16297 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16298 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16299 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16300 (srv_xmlfiles): Add new XML files.
16301
16302 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16303 and <sys/uio.h>.
16304 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16305 (init_registers_s390_linux32v1): Add prototype.
16306 (init_registers_s390_linux32v2): Likewise.
16307 (init_registers_s390_linux64v1): Likewise.
16308 (init_registers_s390_linux64v2): Likewise.
16309 (init_registers_s390x_linux64v1): Likewise.
16310 (init_registers_s390x_linux64v2): Likewise.
16311 (s390_num_regs): Increment to 52.
16312 (s390_regmap): Add orig_r2 register.
16313 (s390_num_regs_3264): Increment to 68.
16314 (s390_regmap_3264): Add orig_r2 register.
16315 (s390_collect_ptrace_register): Handle orig_r2 register.
16316 (s390_supply_ptrace_register): Likewise.
16317 (s390_fill_last_break): New function.
16318 (s390_store_last_break): Likewise.
16319 (s390_fill_system_call): New function.
16320 (s390_store_system_call): Likewise.
16321 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16322 register sets.
16323 (s390_check_regset): New function.
16324 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16325 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16326 Update target_regsets for available register sets.
16327
2268b414
JK
163282011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16329 Jan Kratochvil <jan.kratochvil@redhat.com>
16330
16331 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16332 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16333 New.
16334 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16335 * linux-low.h (struct process_info_private): New member r_debug.
16336 * server.c (handle_qxfer_libraries): Call
16337 the_target->qxfer_libraries_svr4.
16338 (handle_qxfer_libraries_svr4): New function.
16339 (qxfer_packets): New entry "libraries-svr4".
16340 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16341 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16342 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16343 PACKET_qXfer_libraries_svr4.
16344
d6db1fab
UW
163452011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16346
16347 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16348 PSW address/mask between 8-byte and 16-byte formats.
16349 (s390_supply_ptrace_register): Likewise.
16350 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16351 basic addressing mode bit.
16352
242f5f1c
SS
163532011-11-24 Stan Shebs <stan@codesourcery.com>
16354
16355 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16356
f196051f
SS
163572011-11-17 Stan Shebs <stan@codesourcery.com>
16358
16359 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16360 (tracing_start_time): New global.
16361 (tracing_stop_time): New global.
16362 (tracing_user_name): New global.
16363 (tracing_notes): New global.
16364 (tracing_stop_note): New global.
16365 (cmd_qtstart): Set traceframe_usage, start_time.
16366 (stop_tracing): Set stop_time.
16367 (cmd_qtstatus): Report additional status.
16368 (cmd_qtp): New function.
16369 (handle_tracepoint_query): Call it.
16370 (cmd_qtnotes): New function.
16371 (handle_tracepoint_general_set): Call it.
16372 (get_timestamp): Rename from tsv_get_timestamp.
16373
405f8e94
SS
163742011-11-14 Stan Shebs <stan@codesourcery.com>
16375 Kwok Cheung Yeung <kcy@codesourcery.com>
16376
16377 * linux-x86-low.c (small_jump_insn): New.
16378 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16379 trampoline and error message, build a trampoline and issue a small
16380 jump instruction to it.
16381 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16382 trampoline and error message.
16383 (x86_get_min_fast_tracepoint_insn_len): New.
16384 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16385 * linux-low.h (struct linux_target_ops): Add arguments to
16386 install_fast_tracepoint_jump_pad operation, add new operation.
16387 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16388 arguments.
16389 (linux_get_min_fast_tracepoint_insn_len): New function.
16390 (linux_target_op): Add new operation.
16391 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16392 (gdb_trampoline_buffer_end): Ditto.
16393 (gdb_trampoline_buffer_error): Ditto.
16394 (struct ipa_sym_addresses): Add fields for new IPA variables.
16395 (symbol_list): Add entries for new IPA variables.
16396 (struct tracepoint): Add fields to hold the address range of the
16397 trampoline used by the tracepoint.
16398 (trampoline_buffer_head): New static variable.
16399 (trampoline_buffer_tail): Ditto.
16400 (claim_trampoline_space): New function.
16401 (have_fast_tracepoint_trampoline_buffer): New function.
16402 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16403 structure.
16404 (install_fast_tracepoint): Ditto, also add error buffer argument.
16405 (cmd_qtminftpilen): New function.
16406 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16407 (fast_tracepoint_from_trampoline_address): New function.
16408 (fast_tracepoint_collecting): Handle trampoline as part of jump
16409 pad space.
16410 (set_trampoline_buffer_space): New function.
16411 (initialize_tracepoint): Initialize new IPA variables.
16412 * target.h (struct target_ops): Add arguments to
16413 install_fast_tracepoint_jump_pad operation, add new
16414 get_min_fast_tracepoint_insn_len operation.
16415 (target_get_min_fast_tracepoint_insn_len): New.
16416 (install_fast_tracepoint_jump_pad): Add arguments.
16417 * server.h (IPA_BUFSIZ): Define.
16418 * linux-i386-ipa.c: Include extra header files.
16419 (initialize_fast_tracepoint_trampoline_buffer): New function.
16420 (initialize_low_tracepoint): Call it.
16421 * server.h (set_trampoline_buffer_space): Declare.
16422 (claim_trampoline_space): Ditto.
16423 (have_fast_tracepoint_trampoline_buffer): Ditto.
16424
1e4d1764
YQ
164252011-11-14 Yao Qi <yao@codesourcery.com>
16426
16427 * server.c (handle_query): Handle InstallInTrace for qSupported.
16428 * tracepoint.c (add_tracepoint): Sort list.
16429 (install_tracepoint, download_tracepoint): New.
16430 (cmd_qtdp): Call them to install and download tracepoints.
16431 (sort_tracepoints): Removed.
16432 (cmd_qtstart): Update.
16433
5c73ff4e
YQ
164342011-11-14 Yao Qi <yao@codesourcery.com>
16435
16436 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16437 * mem-break.h: Declare.
16438 * tracepoint.c (cmd_qtstart): Move some code to ...
16439 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16440 New.
16441 (download_tracepoints): Move some code to ...
16442 (download_tracepoint_1): ... here. New.
16443
86a30030
YQ
164442011-11-08 Yao Qi <yao@codesourcery.com>
16445
16446 * remote-utils.c (relocate_instruction): A comment fix.
16447
8d26e50c
JB
164482011-11-07 Joel Brobecker <brobecker@adacore.com>
16449
16450 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16451 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16452 dr_status_mirror and dr_control_mirror from debug_reg_state.
16453 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16454 (i386_initial_stuff): Remove use of deleted globals.
16455 (i386_get_thread_context, i386_set_thread_context,
16456 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16457 from debug_reg_state.
16458
a59306a3
YQ
164592011-11-05 Yao Qi <yao@codesourcery.com>
16460
16461 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16462 address as TPOINT's.
16463
3065dfb6
SS
164642011-11-02 Stan Shebs <stan@codesourcery.com>
16465
16466 * tracepoint.c (agent_mem_read_string): New function.
16467 (eval_agent_expr): Call it for tracenz.
16468 * server.c (handle_query): Report support for tracenz.
16469
fd0d8c7c
YQ
164702011-11-02 Yao Qi <yao@codesourcery.com>
16471
16472 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16473
609086b1
YQ
164742011-11-02 Yao Qi <yao@codesourcery.com>
16475
16476 * target.h: Fix a typo in comment.
16477
b9fd1791
PA
164782011-10-31 Pedro Alves <pedro@codesourcery.com>
16479
16480 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16481 clobber the breakpoints' shadows with fast tracepoint jumps.
16482 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16483 * target.c (write_inferior_memory): Also pass MYADDR down to
16484 check_mem_write.
16485
03583c20
UW
164862011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16487
16488 * configure.ac: Check support for personality routine.
16489 * configure: Regenerate.
16490 * config.in: Likewise.
16491 * linux-low.c: Include <sys/personality.h>.
16492 Define ADDR_NO_RANDOMIZE if necessary.
16493 (linux_create_inferior): Disable address space randomization when
16494 forking inferior, if requested.
16495 (linux_supports_disable_randomization): New function.
16496 (linux_target_ops): Install it.
16497 * server.h (disable_randomization): Declare.
16498 * server.c (disable_randomization): New global variable.
16499 (handle_general_set): Handle QDisableRandomization.
16500 (handle_query): Likewise for qSupported.
16501 (main): Support --disable-randomization and --no-disable-randomization
16502 command line arguments.
16503 * target.h (struct target_ops): Add supports_disable_randomization.
16504 (target_supports_disable_randomization): New macro.
16505
723b724b
MF
165062011-09-29 Mike Frysinger <vapier@gentoo.org>
16507
16508 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16509 ifdef check.
16510 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16511 [!PT_GETDSBT] (target_loadmap): New definition.
16512 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16513 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16514 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16515 and PT_GETDSBT to LINUX_LOADMAP.
16516 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16517 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16518
55329a5c 165192011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16520
16521 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16522 (arm_linux_hwbp_cap): New static variable.
16523 (arm_linux_get_hwbp_cap): Replace by ...
16524 (arm_linux_init_hwbp_cap): ... this new function.
16525 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16526 (arm_linux_get_hw_watchpoint_count): Likewise.
16527 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16528 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16529 (arm_prepare_to_resume): Use perror_with_name instead of error.
16530
55329a5c 165312011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16532
16533 * linux-arm-low.c: Include <signal.h>.
16534 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16535 (struct arm_linux_hwbp_cap): New data type.
16536 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16537 (struct arm_linux_hw_breakpoint): New data type.
16538 (MAX_BPTS, MAX_WPTS): Define.
16539 (struct arch_process_info, struct arch_lwp_info): New data types.
16540 (arm_linux_get_hwbp_cap): New function.
16541 (arm_linux_get_hw_breakpoint_count): Likewise.
16542 (arm_linux_get_hw_watchpoint_count): Likewise.
16543 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16544 (arm_hwbp_control_initialize): Likewise.
16545 (arm_hwbp_control_is_enabled): Likewise.
16546 (arm_hwbp_control_is_initialized): Likewise.
16547 (arm_hwbp_control_disable): Likewise.
16548 (arm_linux_hw_breakpoint_equal): Likewise.
16549 (arm_linux_hw_point_initialize): Likewise.
16550 (struct update_registers_data): New data structure.
16551 (update_registers_callback: New function.
16552 (arm_insert_point): Likewise.
16553 (arm_remove_point): Likewise.
16554 (arm_stopped_by_watchpoint): Likewise.
16555 (arm_stopped_data_address): Likewise.
16556 (arm_new_process): Likewise.
16557 (arm_new_thread): Likewise.
16558 (arm_prepare_to_resume): Likewise.
16559 (the_low_target): Register arm_insert_point, arm_remove_point,
16560 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16561 arm_new_thread, and arm_prepare_to_resume.
16562
6b9801d4
SS
165632011-09-15 Stan Shebs <stan@codesourcery.com>
16564
16565 * server.h (struct emit_ops): Add compare-goto fields.
16566 * tracepoint.c (gdb_agent_op_sizes): New table.
16567 (emit_eq_goto): New function.
16568 (emit_ne_goto): New function.
16569 (emit_lt_goto): New function.
16570 (emit_le_goto): New function.
16571 (emit_gt_goto): New function.
16572 (emit_ge_goto): New function.
16573 (is_goto_target): New function.
16574 (compile_bytecodes): Recognize special cases of compare-goto
16575 combinations and call specialized emitters for them.
16576 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16577 (amd64_emit_ne_goto): New function.
16578 (amd64_emit_lt_goto): New function.
16579 (amd64_emit_le_goto): New function.
16580 (amd64_emit_gt_goto): New function.
16581 (amd64_emit_ge_goto): New function.
16582 (amd64_emit_ops): Add the new functions.
16583 (i386_emit_eq_goto): New function.
16584 (i386_emit_ne_goto): New function.
16585 (i386_emit_lt_goto): New function.
16586 (i386_emit_le_goto): New function.
16587 (i386_emit_gt_goto): New function.
16588 (i386_emit_ge_goto): New function.
16589 (i386_emit_ops): Add the new functions.
16590
bf15cbda
SS
165912011-09-08 Stan Shebs <stan@codesourcery.com>
16592
16593 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16594 (i386_emit_epilogue): Restore %ebx.
16595
943ca1dd
JZ
165962011-08-31 Jie Zhang <jzhang918@gmail.com>
16597
16598 * server.c (step_thread): Remove definition.
16599 (process_serial_event): Don't handle Hs.
16600 * server.h (step_thread): Remove declaration.
16601 * target.c (set_desired_inferior): Remove use of step_thread.
16602
e3deef73
LM
166032011-08-24 Luis Machado <lgustavo@codesourcery.com>
16604
16605 * linux-low.c: Include linux-procfs.h.
16606 (linux_attach_lwp_1): Update comments.
16607 (linux_attach): Scan for existing threads when attaching to a
16608 process that is the tgid.
16609 * Makefile.in: Update dependencies.
16610
13da1c97
LM
166112011-08-24 Luis Machado <lgustavo@codesourcery.com>
16612
16613 * configure.srv: Add linux-procfs.o dependencies.
16614
881127c9
YQ
166152011-08-14 Yao Qi <yao@codesourcery.com>
16616
16617 * target.h (struct target_ops): Fix indent.
16618 * win32-low.c (win32_target_ops): Fix comment.
16619
58dbd541
YQ
166202011-08-14 Andrew Jenner <andrew@codesourcery.com>
16621 Yao Qi <yao@codesourcery.com>
16622
16623 * Makefile.in (clean): Remove tic6x-*.c files.
16624 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16625 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16626 (tic6x-c64xp-linux.c): Likewise.
16627 * configure.srv: Add support for tic6x-*-uclinux.
16628 * linux-tic6x-low.c: New.
16629 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16630
78d85199
YQ
166312011-08-14 Andrew Stubbs <ams@codesourcery.com>
16632 Yao Qi <yao@codesourcery.com>
16633
16634 * target.h (struct target_ops): Add read_loadmap.
16635 * linux-low.c (struct target_loadseg): New type.
16636 (struct target_loadmap): New type.
16637 (linux_read_loadmap): New function.
16638 (linux_target_ops): Add linux_read_loadmap.
16639 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16640 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16641 to NULL.
78d85199 16642
a959a88d
EZ
166432011-08-05 Eli Zaretskii <eliz@gnu.org>
16644
16645 * win32-low.c: Include <stdint.h>.
16646
1ced966e
PA
166472011-07-22 Pedro Alves <pedro@codesourcery.com>
16648
16649 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16650 to the inferior here.
16651 (i386_remove_aligned_watchpoint): Ditto.
16652 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16653 fit part of the watchpoint in the debug registers.
16654 (i386_update_inferior_debug_regs): New.
16655 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16656 registers, and only update the inferior on success.
16657 (i386_low_remove_watchpoint): Ditto.
16658
d26e3629
KY
166592011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16660
16661 * linux-low.c (compare_ints, unique, list_threads, show_process,
16662 linux_core_of_thread): Delete.
16663 (linux_target_ops): Change linux_core_of_thread to
16664 linux_common_core_of_thread.
16665 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16666 * utils.c (malloc_failure): Change type of argument.
16667 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16668 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16669 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16670 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16671 (IPA_OBJS): Add common-utils-ipa.o.
16672 (ptid_h, linux_osdata_h): New macros.
16673 (server_h): Add common/common-utils.h, common/xml-utils.h,
16674 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16675 common/ptid.h.
16676 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16677 ptid.o, buffer.o): New rules.
16678 (linux-low.o): Add common/linux-osdata.h as a dependency.
16679 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16680 * configure.ac: Add AC_HEADER_DIRENT check.
16681 * config.in: Regenerate.
16682 * configure: Regenerate.
16683 * remote-utils.c (xml_escape_text): Delete.
16684 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16685 buffer_xml_printf): Move to common/buffer.c.
16686 * server.c (main): Remove call to initialize_inferiors.
16687 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16688 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16689 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16690 internal_error, gdb_assert, gdb_assert_fail): Delete.
16691 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16692 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16693 common/buffer.h.
16694 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16695 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16696 initialize_inferiors): Delete.
16697
2275a1a7
PA
166982011-07-20 Pedro Alves <pedro@codesourcery.com>
16699
16700 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16701 symbol error.
16702
0a5b1e09
PA
167032011-05-31 Pedro Alves <pedro@codesourcery.com>
16704
16705 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16706 assertion.
16707 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16708
6938fd34
YQ
167092011-05-26 Yao Qi <yao@codesourcery.com>
16710
16711 * Makefile.in (thread-db.o): Track dependence to
16712 common/gdb_thread_db.h.
16713 * thread-db.c: include gdb_thread_db.h from right place.
16714
b481f9e0
TT
167152011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16716
16717 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16718 __FILE__ and __LINE__ to internal_error.
16719
98a5dd13
DE
167202011-05-13 Doug Evans <dje@google.com>
16721
16722 * thread-db.c (try_thread_db_load_from_sdir): New function.
16723 (try_thread_db_load_from_dir): New function.
16724 (thread_db_load_search): Handle $sdir, ignore $pdir.
16725 Remove trying of system directories if search of
16726 libthread-db-search-path fails, that is now done via $sdir.
16727
d248b706
KY
167282011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16729
16730 * server.c (handle_query): Add EnableDisableTracepoints to the list
16731 of supported features.
43aaf8b6 16732 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16733 tracepoints.
43aaf8b6
PA
16734 (cmd_qtenable_disable): New.
16735 (cmd_qtstart): Install tracepoints even if disabled.
16736 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16737 receiving a QTEnable or QTDisable packet.
16738 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16739 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16740 tracepoints.
16741 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16742
84e578fb
DE
167432011-05-10 Doug Evans <dje@google.com>
16744
16745 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16746
71f55dd8
DE
167472011-05-04 Doug Evans <dje@google.com>
16748
16749 * linux-low.c (linux_join): Skip process lookup.
16750 * spu-low.c (spu_join): Ditto.
16751 * server.c (join_inferiors_callback): Delete.
16752 (process_serial_event): For 'D' packet (detach) call join_inferior
16753 directly.
16754
4d393d60
JM
167552011-05-04 Joseph Myers <joseph@codesourcery.com>
16756
16757 * README: Don't mention xscale*-*-linux*.
16758 * configure.srv (xscale*-*-linux*): Don't handle target.
16759
b00ad6ff
NF
167602011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16761
16762 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16763 casting pointers.
16764 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16765 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16766 (i386_emit_void_call_2): Likewise.
16767
af96c192
YQ
167682011-04-26 Yao Qi <yao@codesourcery.com>
16769
43aaf8b6
PA
16770 * linux-low.c: Move common macros to linux-ptrace.h.
16771 Include linux-ptrace.h.
af96c192
YQ
16772 * Makefile.in (linux_ptrace_h): New.
16773 (linux-low.o): Depends on linux-ptrace.h.
16774
03f2bd59
JK
167752011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16776
16777 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16778 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16779 (remote_prepare): New function with most of the TCP code from ...
16780 (remote_open): ... here. Detect PORT here unconditionally. Move also
16781 setting transport_is_reliable.
16782 * server.c (run_once): New variable.
16783 (gdbserver_usage): Document it.
16784 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16785 the first run if RUN_ONCE.
16786 * server.h (run_once, remote_prepare): New declarations.
16787
7a9dd1b2
TT
167882011-04-19 Tom Tromey <tromey@redhat.com>
16789
16790 * win32-low.c (handle_load_dll): Remove duplicate "the".
16791
81239425
PM
167922011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16793
16794 Remove support for old Cygwin 1.5 versions.
16795 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16796 function to avoid warning.
16797 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16798 warning.
16799
9e0627f1
PM
168002011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16801
16802 * gdbserver/server.h (Macro _): Define it if not available.
16803
588eebee
MS
168042011-03-14 Michael Snyder <msnyder@vmware.com>
16805
348af9f7 16806 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16807
43f70d4c
JB
168082011-03-10 Joel Brobecker <brobecker@adacore.com>
16809
16810 * Makefile.in (maintainer-clean realclean distclean): Remove
16811 "make ... subdir_do" command.
16812
348af9f7
MS
168132011-03-10 Michael Snyder <msnyder@vmware.com>
16814
16815 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16816
16817 * server.c (handle_v_run): Free alloced buffer on early return.
16818
e637a4f5
YQ
168192011-03-09 Yao Qi <yao@codesourcery.com>
16820
16821 Revert:
16822 2011-03-04 Yao Qi <yao@codesourcery.com>
16823
16824 * Makefile.in: Remove GNU make feature --directory.
16825
16826 2011-03-05 Yao Qi <yao@codesourcery.com>
16827
16828 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16829 (subdir_do): New make target. Copied from gdb/Makefile.
16830 (maintainer-clean, realclean, distclean, clean): Call corresponding
16831 make targets in common/Makefile.
16832
16833 2011-02-11 Yao Qi <yao@codesourcery.com>
16834
16835 * configure.ac: Call AC_PROG_RANLIB.
16836 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16837 * configure: Regenerate.
16838
e6edda56
JK
168392011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16840
16841 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16842
e5141119
JB
168432011-03-06 Yao Qi <yao@codesourcery.com>
16844
16845 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16846
64794aa4
JB
168472011-03-05 Yao Qi <yao@codesourcery.com>
16848
16849 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16850 (subdir_do): New make target. Copied from gdb/Makefile.
16851 (maintainer-clean, realclean, distclean, clean): Call corresponding
16852 make targets in common/Makefile.
16853
7a762829
YQ
168542011-03-04 Yao Qi <yao@codesourcery.com>
16855
16856 * Makefile.in: Remove GNU make feature --directory.
16857
348af9f7
MS
168582011-03-04 Michael Snyder <msnyder@vmware.com>
16859
16860 * server.c (queue_stop_reply): Call xmalloc not malloc.
16861
168622011-03-02 Michael Snyder <msnyder@vmware.com>
16863
16864 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16865
9f72fee2
MS
168662011-02-28 Michael Snyder <msnyder@vmware.com>
16867
588eebee
MS
16868 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16869 (cmd_qtframe): Ditto.
16870 (cmd_qtbuffer): Ditto.
16871 (cmd_bigqtbuffer): Ditto.
16872
9f72fee2
MS
16873 * utils.c (decimal2str): Initialize 'width' to nine, then
16874 don't mess with it.
16875
8040bd49
UW
168762011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16877
16878 * hostio.c (require_data): Free *data, not data.
16879
7e52cbd0
JK
168802011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16881
16882 * hostio.c (require_data): Use free, not xfree.
16883
9130f83e
MS
168842011-02-27 Michael Snyder <msnyder@vmware.com>
16885
4b812f4e
MS
16886 * server.c (handle_query): Discard unused value.
16887
9130f83e
MS
16888 * hostio.c (require_data): Free malloc memory before returning
16889 error.
16890
69d37113
MS
168912011-02-26 Michael Snyder <msnyder@vmware.com>
16892
16893 * linux-low.c (list_threads): Call closedir for dirent.
16894
35f5825a
MS
168952011-02-27 Michael Snyder <msnyder@vmware.com>
16896
2a589cef
MS
16897 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16898 a case statement falls through.
16899
0adea5f7
MS
16900 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16901
35f5825a
MS
16902 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16903 in comparison.
16904
238f1c74
MS
169052011-02-26 Michael Snyder <msnyder@vmware.com>
16906
16907 * utils.c (decimal2str): Eliminate dead code and dead param.
16908 (pulongest): Drop dead param from call to decimal2str.
16909 (plongest): Ditto.
16910
633ff500
JB
169112011-02-24 Joel Brobecker <brobecker@adacore.com>
16912
16913 Revert the following patch (not approved yet):
16914 2011-02-21 Hui Zhu <teawater@gmail.com>
16915 * tracepoint.c (tp_printf): New function.
16916 (eval_agent_expr): Handle gdb_agent_op_printf.
16917
f9c6ff72
HZ
169182011-02-21 Hui Zhu <teawater@gmail.com>
16919
16920 * tracepoint.c (tp_printf): New function.
16921 (eval_agent_expr): Handle gdb_agent_op_printf.
16922
94d5e490
TT
169232011-02-18 Tom Tromey <tromey@redhat.com>
16924
16925 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16926 (tracepoint.o): Likewise.
16927 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16928 (gdb_agent_op_names): Likewise.
16929
c7f96d2b
TT
169302011-02-18 Tom Tromey <tromey@redhat.com>
16931
16932 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16933 gdb_agent_op_rot>: New constants.
16934 (gdb_agent_op_names): Add pick and roll.
16935 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16936 cases.
16937
0feedb2c
JK
169382011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16939
16940 * aclocal.m4: Regenerated with aclocal-1.11.1.
16941
b3b9301e
PA
169422011-02-14 Pedro Alves <pedro@codesourcery.com>
16943
16944 * server.c (handle_qxfer_traceframe_info): New.
16945 (qxfer_packets): Register "traceframe-info".
16946 (handle_query): Report support for qXfer:traceframe-info:read+.
16947 * tracepoint.c (match_blocktype): New.
16948 (traceframe_find_block_type): Rename to ...
16949 (traceframe_walk_blocks): ... this. Add callback filter argument,
16950 and use it.
16951 (traceframe_find_block_type): New, reimplemented on top of
16952 traceframe_walk_blocks.
16953 (build_traceframe_info_xml): New.
16954 (traceframe_read_info): New.
16955 * server.h (traceframe_read_info): Declare.
16956
4f3e6fb7
YQ
169572011-02-11 Yao Qi <yao@codesourcery.com>
16958
16959 * configure.ac: Call AC_PROG_RANLIB.
16960 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16961 * configure: Regenerate.
16962
764880b7
PA
169632011-02-07 Pedro Alves <pedro@codesourcery.com>
16964
16965 * server.c (gdb_read_memory): Change return semantics to allow
16966 partial transfers.
16967 (handle_search_memory_1): Adjust.
16968 (process_serial_event) <'m' packet>: Handle partial transfers.
16969 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16970
1c79eb8a
PA
169712011-01-28 Pedro Alves <pedro@codesourcery.com>
16972
16973 * regcache.c (init_register_cache): Initialize
16974 regcache->register_status.
16975 (free_register_cache): Release regcache->register_status.
16976 (regcache_cpy): Copy register_status.
16977 (registers_to_string): Print 'x's for unavailable registers.
16978 (supply_register): Mark the register's status valid or
16979 unavailable, depending on whether a buffer was passed in or not.
16980 (supply_register_zeroed): New.
16981 (supply_regblock): Mark the registers' status valid or
16982 unavailable, depending on whether a buffer was passed in or not.
16983 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16984 (struct regcache): New `register_status' field.
16985 (supply_register_zeroed): Declare.
16986 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16987 supply_register_zeroed, rather than passing a NULL buffer to
16988 supply_register.
16989 * tracepoint.c (fetch_traceframe_registers): Update comment.
16990
85724a0e
PA
169912011-01-28 Pedro Alves <pedro@codesourcery.com>
16992
16993 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16994 buffer explicit.
16995
d08aafef
PA
169962011-01-25 Pedro Alves <pedro@codesourcery.com>
16997
16998 * server.h (decode_xfer_write): Change prototype.
16999 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17000 and don't extract the annex here.
17001 * server.c (decode_xfer_read): Remove `annex' parameter,
17002 and don't extract the annex here.
17003 (decode_xfer): New.
17004 (struct qxfer): New.
17005 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17006 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17007 (handle_qxfer_statictrace): New functions, abstracted out from
17008 handle_query, and made to use the struct qxfer interface.
17009 (handle_threads_qxfer_proper): Rename to ...
17010 (handle_qxfer_threads_proper): ... this.
17011 (handle_threads_qxfer): Rename to ...
17012 (handle_qxfer_threads): ... this. Adjust.
17013 (qxfer_packets): New array.
17014 (handle_qxfer): New function.
17015 (handle_query): Use handle_qxfer.
17016
493e2a69
MS
170172011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17018
17019 * gdbreplay.c: Shorten lines of >= 80 columns.
17020 * linux-low.c: Ditto.
17021 * linux-ppc-low.c: Ditto.
17022 * linux-s390-low.c: Ditto.
17023 * linux-sparc-low.c: Ditto.
17024 * linux-x86-low.c: Ditto.
17025 * linux-xtensa-low.c: Ditto.
17026 * mem-break.c: Ditto.
17027 * nto-low.c: Ditto.
17028 * regcache.h: Ditto.
17029 * remote-utils.c: Ditto.
17030 * server.c: Ditto.
17031 * server.h: Ditto.
17032 * thread-db.c: Ditto.
17033 * tracepoint.c: Ditto.
17034 * utils.c: Ditto.
17035 * win32-low.h: Ditto.
17036
44944448
JB
170372011-01-05 Joel Brobecker <brobecker@adacore.com>
17038
17039 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17040 update.
17041
71ce852c
JB
170422011-01-01 Joel Brobecker <brobecker@adacore.com>
17043
17044 * server.c (gdbserver_version): Update copyright year in version
17045 output.
17046 * gdbreplay.c (gdbreplay_version): Ditto.
17047
eb826dc6
MF
170482010-12-29 Jie Zhang <jie.zhang@analog.com>
17049
17050 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17051 * linux-bfin-low.c: New file.
17052 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17053 PT_DATA_ADDR for BFIN targets.
17054 * Makefile.in (SFILES): Add linux-bfin-low.c.
17055 (clean): Remove reg-bfin.c.
17056 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17057 * README: Mention supported Blackfin targets.
17058
39ab222a
MF
170592010-12-23 Mike Frysinger <vapier@gentoo.org>
17060
17061 * .gitignore: New file.
17062
a1f2ce7d
MF
170632010-11-16 Mike Frysinger <vapier@gentoo.org>
17064
17065 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17066
f474844c
JZ
170672010-10-22 Jie Zhang <jie@codesourcery.com>
17068
17069 * Makefile.in: Add FLAGS_TO_PASS variable.
17070 (install): Remove dependency of install-only and recursively
17071 invoke make for install-only.
17072
f1048712
DE
170732010-10-04 Doug Evans <dje@google.com>
17074
17075 * Makefile.in (uninstall): Use $(DESTDIR).
17076
b53a1623
PA
170772010-09-24 Pedro Alves <pedro@codesourcery.com>
17078
e6ee044d
PA
17079 PR gdb/11842
17080
b53a1623
PA
17081 * linux-x86-low.c (compat_siginfo_from_siginfo)
17082 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17083 si_code is < 0. Check for si_code == SI_TIMER before checking for
17084 si_code < 0.
17085
fa1bd1e4
JB
170862010-09-13 Joel Brobecker <brobecker@adacore.com>
17087
17088 * lynx-i386-low.c: New file.
17089 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17090
47fac8f8
JB
170912010-09-13 Joel Brobecker <brobecker@adacore.com>
17092
17093 * lynx-low.c (ptrace_request_to_str): Remove handling for
17094 request values that have been removed in LynxOS 5.x.
17095
1adfc54d
JB
170962010-09-13 Joel Brobecker <brobecker@adacore.com>
17097
17098 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17099 <ptrace.h>
17100
c2a66c29
NS
171012010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17102
17103 * configure.ac: Add --enable-inprocess-agent option.
17104 * configure: Rebuilt.
17105
32fcada3
YQ
171062010-09-06 Yao Qi <yao@codesourcery.com>
17107
17108 * linux-low.c (linux_kill): Remove unused variable.
17109 (linux_stabilize_threads): Likewise.
17110 * server.c (start_inferior): Likewise.
17111 (queue_stop_reply_callback): Likewise.
17112 * tracepoint.c (do_action_at_tracepoint): Likewise.
17113
0cccb683
YQ
171142010-09-06 Yao Qi <yao@codesourcery.com>
17115
17116 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17117 on return.
17118
423ec54c
JK
171192010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17120
17121 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17122
12ac6819
PA
171232010-09-06 Pedro Alves <pedro@codesourcery.com>
17124
17125 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17126 "$(IPA_DEPFILES)".
17127
8ed54b31
JB
171282010-09-01 Joel Brobecker <brobecker@adacore.com>
17129
17130 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17131 gdbserver/lynx-ppc-low.c: New files.
17132 * Makefile.in (lynx_low_h): New variable.
17133 (lynx-low.o, lynx-ppc-low.o): New rules.
17134 * configure.ac: On LynxOS, link with -lnetinet.
17135 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17136 * configure: regenerate.
17137
bb0116a4
JB
171382010-09-01 Joel Brobecker <brobecker@adacore.com>
17139
17140 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17141 * configure.ac: Add check for vasprintf and vsnprintf.
17142 * configure, config.in: Regenerate.
17143 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17144
a778ab81 171452010-09-01 Joel Brobecker <brobecker@adacore.com>
17146
17147 * gdbreplay.c: Move include of alloca.h up, next to include of
17148 malloc.h.
17149 * server.h: Add include of malloc.h.
17150 * mem-break.c: Remove include of malloc.h.
17151 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17152
8b034a19 171532010-09-01 Joel Brobecker <brobecker@adacore.com>
17154
17155 * Makefile.in (memmem.o): Build with -Wno-error.
17156
171572010-09-01 Joel Brobecker <brobecker@adacore.com>
17158
17159 * utils.c (xsnprintf): Make non-static.
17160 * server.h: Add xsnprintf declaration.
17161 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17162 replace calls to snprintf by calls to xsnprintf throughout.
17163
171642010-09-01 Joel Brobecker <brobecker@adacore.com>
17165
17166 * configure.ac: Add configure check for alloca.
17167 * configure, config.in: Regenerate.
17168 * server.h: Include alloca.h if it exists.
17169 * gdbreplay.c: Include alloca.h if it exists.
17170
1a981360
PA
171712010-08-28 Pedro Alves <pedro@codesourcery.com>
17172
17173 * linux-low.c (__SIGRTMIN): Define if not already defined.
17174 (linux_create_inferior): Check for __ANDROID__ rather than
17175 __SIGRTMIN.
17176 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17177 are already deferred.
17178 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17179 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17180 stopped and already has a pending signal to report.
17181 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17182 a pending signal to report or is moving out of a jump pad.
17183 (linux_init_signals): Check for __ANDROID__ rather than
17184 __SIGRTMIN.
17185
b4d51a55
PA
171862010-08-28 Pedro Alves <pedro@codesourcery.com>
17187
17188 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17189 debug_threads check. Avoid a linear search when not doing debug
17190 output.
17191
ec48365d
PA
171922010-08-27 Pedro Alves <pedro@codesourcery.com>
17193
17194 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17195 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17196 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17197 (process_event): Change local fd's type to gdb_fildes_t.
17198 (create_file_handler): Adjust prototype.
17199 (delete_file_handler): Adjust prototype.
17200 (handle_file_event): Adjust prototype. Use pfildes.
17201 (create_file_event): Adjsut prototype.
17202 * remote-utils.c (remote_desc, listen_desc): Change type to
17203 gdb_fildes_t.
17204 * server.h: New gdb_fildes_t typedef.
17205 [USE_WIN32API]: Include winsock2.h.
17206 (delete_file_handler, add_file_handler): Adjust prototypes.
17207 (pfildes): Declare.
17208 * utils.c (pfildes): New.
17209
854d88f0
PA
172102010-08-27 Pedro Alves <pedro@codesourcery.com>
17211
17212 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17213 * configure: Regenerate.
17214
0146f85b
PA
172152010-08-27 Pedro Alves <pedro@codesourcery.com>
17216
17217 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17218 (linux_done_accessing_memory): ... this.
17219 (linux_target_ops): Adjust.
17220 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17221 * nto-low.c (nto_target_ops): Adjust comment.
17222 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17223 * spu-low.c (spu_target_ops): Adjust comment.
17224 * target.h (target_ops): Rename unprepare_to_access_memory field
17225 to done_accessing_memory.
17226 (unprepare_to_access_memory): Rename to ...
17227 (done_accessing_memory): ... this.
17228
90d74c30
PA
172292010-08-26 Pedro Alves <pedro@codesourcery.com>
17230
17231 * linux-low.c (linux_prepare_to_access_memory): New.
17232 (linux_unprepare_to_access_memory): New.
17233 (linux_target_ops): Install them.
17234 * server.c (read_memory): Rename to ...
17235 (gdb_read_memory): ... this. Use
17236 prepare_to_access_memory/prepare_to_access_memory.
17237 (write_memory): Rename to ...
17238 (gdb_write_memory): ... this. Use
17239 prepare_to_access_memory/prepare_to_access_memory.
17240 (handle_search_memory_1): Adjust.
17241 (process_serial_event): Adjust.
17242 * target.h (struct target_ops): New fields
17243 prepare_to_access_memory and unprepare_to_access_memory.
17244 (prepare_to_access_memory, unprepare_to_access_memory): New.
17245 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17246 prepare_to_access_memory/prepare_to_access_memory.
17247 * nto-low.c (nto_target_ops): Adjust.
17248 * spu-low.c (spu_target_ops): Adjust.
17249 * win32-low.c (win32_target_ops): Adjust.
17250
fd467969
PA
172512010-08-26 Pedro Alves <pedro@codesourcery.com>
17252
17253 * Makefile.in (WARN_CFLAGS): Get it from configure.
17254 (WERROR_CFLAGS): New.
17255 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17256 * configure.ac: Introduce --enable-werror, which adds -Werror to
17257 the compiler command line. Enabled by default. Disable with
17258 --disable-werror. Add -Wdeclaration-after-statement
17259 Wpointer-arith and -Wformat-nonliteral to warning flags.
17260 * configure: Regenerate.
17261
331e2f5f
PA
172622010-08-26 Pedro Alves <pedro@codesourcery.com>
17263
17264 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17265
e581f2b4
PA
172662010-08-26 Pedro Alves <pedro@codesourcery.com>
17267
17268 * gdbreplay.c (remote_error): New.
17269 (gdbchar): New.
17270 (expect): Use gdbchar. Check for error reading from GDB.
17271 Clarify sync error output.
17272 (play): Check for errors writing to GDB.
17273 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17274 * remote-utils.c (getpkt): Check for errors writing to the remote
17275 descriptor.
17276
3c11dd79
PA
172772010-08-25 Pedro Alves <pedro@codesourcery.com>
17278
17279 * linux-low.c (linux_wait_1): Move non-debugging code out of
17280 `debug_threads' control.
17281
d20a8ad9
PA
172822010-08-25 Pedro Alves <pedro@codesourcery.com>
17283
17284 * linux-low.c (linux_wait_1): Don't set last_status here.
17285 * server.c (push_event, queue_stop_reply_callback): Assert we're
17286 not pushing a TARGET_WAITKIND_IGNORE event.
17287 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17288 (myresume, handle_target_event): Set the thread's last_resume_kind
17289 and last_status from the target returned status.
17290
964e4306
PA
172912010-08-25 Pedro Alves <pedro@codesourcery.com>
17292
17293 PR threads/10729
17294
17295 * linux-x86-low.c (update_debug_registers_callback): New.
17296 (i386_dr_low_set_addr): Use it.
17297 (i386_dr_low_get_addr): New.
17298 (i386_dr_low_set_control): Use update_debug_registers_callback.
17299 (i386_dr_low_get_control): New.
17300 (i386_dr_low_get_status): Adjust.
17301 * linux-low.c (linux_stop_lwp): New.
17302 * linux-low.h (linux_stop_lwp): Declare.
17303
17304 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17305 argument instead of a i386_debug_reg_state.
17306 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17307 a i386_debug_reg_state.
17308 (i386_insert_aligned_watchpoint): Adjust.
17309 (i386_remove_aligned_watchpoint): Adjust.
17310 (i386_low_stopped_data_address): Read the debug registers from the
17311 inferior instead of from the mirrors.
17312 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17313 (i386_dr_low_get_addr): Declare.
17314 (i386_dr_low_get_control): Declare.
17315 (i386_dr_low_get_status): Change prototype.
17316
17317 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17318 (i386_dr_low_get_addr): New.
17319 (i386_dr_low_get_control): New.
17320 (i386_dr_low_get_status): Adjust prototype. Return
17321 dr_status_mirror.
17322 (i386_initial_stuff): Clear dr_status_mirror and
17323 dr_control_mirror.
17324 (i386_get_thread_context): Adjust.
17325 (i386_set_thread_context): Adjust.
17326 (i386_thread_added): Adjust.
17327
5f21a75b
PA
173282010-08-24 Pedro Alves <pedro@codesourcery.com>
17329
17330 * linux-low.h (linux_thread_area): Delete declaration.
17331
3e4c1235
TS
173322010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17333
17334 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17335 after its termination.
17336
1971b033
PA
173372010-08-09 Pedro Alves <pedro@codesourcery.com>
17338
17339 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17340 (gdb_wants_all_stopped): Delete.
17341 (linux_wait_1): Don't call them.
17342 * server.c (handle_v_cont): Tag all threads as want-stopped.
17343 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17344 stopped as "client-wants-stopped".
17345
310444ac
PA
173462010-07-31 Pedro Alves <pedro@codesourcery.com>
17347
17348 * Makefile.in (signals_h): New.
17349 (server_h): Depend on it.
17350 (server.o): Don't depend on $(signals_def).
17351 (signals.o): Depend on $(signals_def).
17352
a19cae16
JK
173532010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17354
17355 * Makefile.in (signals_def): New.
17356 (server_h): Append include/gdb/signals.h and signals_def.
17357 (server.o): Append signals_def.
17358
30d50328
JK
173592010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17360
17361 * server.c (handle_target_event): Use target_signal_to_host for
17362 resume_info.sig initialization.
17363 * target.h (struct thread_resume) <sig>: New comment.
17364
5c3216e2
OS
173652010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17366
c6f46ca0
OS
17367 * server.c (handle_query): strcpy() the returned string from paddress()
17368 instead of sprintf().
5c3216e2
OS
17369 * utils.c (paddress): Return phex_nz().
17370
6bd31874
JB
173712010-07-07 Joel Brobecker <brobecker@adacore.com>
17372
17373 * server.c (handle_v_cont): Call mourn_inferior if process
17374 just exited.
17375 (myresume): Likewise.
17376
0fb4aa4b
PA
173772010-07-01 Pedro Alves <pedro@codesourcery.com>
17378
17379 Static tracepoints, and integration with UST.
17380
17381 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17382 * mem-break.c (uninsert_all_breakpoints)
17383 (reinsert_all_breakpoints): New.
17384 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17385 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17386 (gdb_agent_ust_loaded, helper_thread_id)
17387 (gdb_agent_helper_thread_id): New macros.
17388 (struct ipa_sym_addresses): Add addr_ust_loaded,
17389 addr_helper_thread_id, addr_cmd_buf.
17390 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17391 (in_process_agent_loaded_ust): New.
17392 (write_e_ust_not_loaded): New.
17393 (maybe_write_ipa_ust_not_loaded): New.
17394 (struct collect_static_trace_data_action): New.
17395 (enum tracepoint_type) <static_tracepoint>: New.
17396 (struct tracepoint) <handle>: Mention static tracepoints.
17397 (struct static_tracepoint_ctx): New.
17398 (CMD_BUF_SIZE): New.
17399 (add_tracepoint_action): Handle static tracepoint actions.
17400 (unprobe_marker_at): New.
17401 (clear_installed_tracepoints): Handle static tracepoints.
17402 (cmd_qtdp): Handle static tracepoints.
17403 (probe_marker_at): New.
17404 (cmd_qtstart): Handle static tracepoints.
17405 (response_tracepoint): Handle static tracepoints.
17406 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17407 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17408 (get_context_regcache): Handle static tracepoints.
17409 (do_action_at_tracepoint): Handle static tracepoint actions.
17410 (traceframe_find_block_type): Handle static trace data blocks.
17411 (traceframe_read_sdata): New.
17412 (download_tracepoints): Download static tracepoint actions.
17413 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17414 (GDB_PROBE_NAME): New.
17415 (ust_ops): New.
17416 (GET_UST_SYM): New.
17417 (USTF): New.
17418 (dlsym_ust): New.
17419 (ust_marker_to_static_tracepoint): New.
17420 (gdb_probe): New.
17421 (collect_ust_data_at_tracepoint): New.
17422 (gdb_ust_probe): New.
17423 (UNIX_PATH_MAX, SOCK_DIR): New.
17424 (gdb_ust_connect_sync_socket): New.
17425 (resume_thread, stop_thread): New.
17426 (run_inferior_command): New.
17427 (init_named_socket): New.
17428 (gdb_ust_socket_init): New.
17429 (cstr_to_hexstr): New.
17430 (next_st): New.
17431 (first_marker, next_marker): New.
17432 (response_ust_marker): New.
17433 (cmd_qtfstm, cmd_qtsstm): New.
17434 (unprobe_marker_at, probe_marker_at): New.
17435 (cmd_qtstmat, gdb_ust_thread): New.
17436 (gdb_ust_init): New.
17437 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17438 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17439 (ST_REGENTRY): New.
17440 (x86_64_st_collect_regmap): New.
17441 (X86_64_NUM_ST_COLLECT_GREGS): New.
17442 (AMD64_RIP_REGNUM): New.
17443 (supply_static_tracepoint_registers): New.
17444 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17445 (ST_REGENTRY): New.
17446 (i386_st_collect_regmap): New.
17447 (i386_NUM_ST_COLLECT_GREGS): New.
17448 (supply_static_tracepoint_registers): New.
17449 * server.c (handle_query): Handle qXfer:statictrace:read.
17450 <qSupported>: Report support for StaticTracepoints, and
17451 qXfer:statictrace:read features.
17452 * server.h (traceframe_read_sdata)
17453 (supply_static_tracepoint_registers): Declare.
17454 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17455 (unpack_varlen_hex): Include in IPA build.
17456 * Makefile.in (ustlibs, ustinc): New.
17457 (IPA_OBJS): Add remote-utils-ipa.o.
17458 ($(IPA_LIB)): Link -ldl and -lpthread.
17459 (UST_CFLAGS): New.
17460 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17461 * config.in, configure: Regenerate.
17462
9e4344e5
PA
174632010-06-20 Ian Lance Taylor <iant@google.com>
17464 Pedro Alves <pedro@codesourcery.com>
17465
17466 * linux-x86-low.c (always_true): Delete.
17467 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17468 trying to fool the compiler with always_true.
17469
c6beb2cb
PA
174702010-06-20 Pedro Alves <pedro@codesourcery.com>
17471
17472 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17473 conditions in gdbserver.
17474
d2ed6730
UW
174752010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17476
17477 * spu-low.c (spu_read_memory): Wrap around local store limit.
17478 (spu_write_memory): Likewise.
17479
4e29fb54
PA
174802010-06-15 Pedro Alves <pedro@codesourcery.com>
17481
17482 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17483 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17484 LONGEST uses.
17485 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17486 uses.
17487 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17488 uses with LONGEST uses.
17489
6a271cae
PA
174902010-06-14 Stan Shebs <stan@codesourcery.com>
17491 Pedro Alves <pedro@codesourcery.com>
17492
17493 Bytecode compiler.
17494
17495 * linux-x86-low.c: Include limits.h.
17496 (add_insns): New.
17497 (always_true): New.
17498 (EMIT_ASM): New.
17499 (EMIT_ASM32): New.
17500 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17501 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17502 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17503 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17504 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17505 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17506 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17507 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17508 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17509 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17510 (amd64_emit_void_call_2): New.
17511 (amd64_emit_ops): New.
17512 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17513 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17514 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17515 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17516 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17517 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17518 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17519 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17520 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17521 (i386_emit_stack_adjust, i386_emit_int_call_1)
17522 (i386_emit_void_call_2): New.
17523 (i386_emit_ops): New.
17524 (x86_emit_ops): New.
17525 (the_low_target): Install x86_emit_ops.
17526 * server.h (struct emit_ops): New.
17527 (get_raw_reg_func_addr): Declare.
17528 (current_insn_ptr, emit_error): Declare.
17529 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17530 (set_trace_state_variable_value): New defines.
17531 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17532 addr_get_trace_state_variable_value and
17533 addr_set_trace_state_variable_value.
17534 (symbol_list): New fields for get_raw_reg,
17535 get_trace_state_variable_value and set_trace_state_variable_value.
17536 (condfn): New typedef.
17537 (struct tracepoint): New field `compiled_cond'.
17538 (do_action_at_tracepoint): Clear compiled_cond.
17539 (get_trace_state_variable_value, set_trace_state_variable_value):
17540 Export in the IPA.
17541 (condition_true_at_tracepoint): If there's a compiled condition,
17542 run that.
17543 (current_insn_ptr, emit_error): New globals.
17544 (struct bytecode_address): New.
17545 (get_raw_reg_func_addr): New.
17546 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17547 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17548 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17549 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17550 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17551 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17552 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17553 (compile_tracepoint_condition, compile_bytecodes): New.
17554 * target.h (emit_ops): Forward declare.
17555 (struct target_ops): New field emit_ops.
17556 (target_emit_ops): New.
17557 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17558 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17559 * linux-low.c (linux_emit_ops): New.
17560 (linux_target_ops): Install it.
17561 * linux-low.h (struct linux_target_ops): New field emit_ops.
17562
92b72907
UW
175632010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17564
17565 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17566 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17567
fa593d66
PA
175682010-06-01 Pedro Alves <pedro@codesourcery.com>
17569 Stan Shebs <stan@codesourcery.com>
17570
17571 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17572 (all): Depend on $(extra_libraries).
17573 (install-only): Install the IPA.
17574 (IPA_OBJS, IPA_LIB): New.
17575 (clean): Remove the IPA lib.
17576 (IPAGENT_CFLAGS): New.
17577 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17578 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17579 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17580 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17581 * configure.ac: Check for atomic builtins support in the compiler.
17582 (IPA_DEPFILES, extra_libraries): Define.
17583 * configure.srv (ipa_obj): Add description.
17584 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17585 (i[34567]86-*-linux*): Set ipa_obj.
17586 (x86_64-*-linux*): Set ipa_obj.
17587 * linux-low.c (stabilizing_threads): New.
17588 (supports_fast_tracepoints): New.
17589 (linux_detach): Stabilize threads before detaching.
17590 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17591 the lwp is either not stabilizing, or is moving out of a jump pad.
17592 (linux_fast_tracepoint_collecting): New.
17593 (maybe_move_out_of_jump_pad): New.
17594 (enqueue_one_deferred_signal): New.
17595 (dequeue_one_deferred_signal): New.
17596 (linux_wait_for_event_1): If moving out of a jump pad, defer
17597 pending signals to later.
17598 (linux_stabilize_threads): New.
17599 (linux_wait_1): Check if threads need moving out of jump pads, and
17600 do it if so.
17601 (stuck_in_jump_pad_callback): New.
17602 (move_out_of_jump_pad_callback): New.
17603 (lwp_running): New.
17604 (linux_resume_one_lwp): Handle moving out of jump pads.
17605 (linux_set_resume_request): Dequeue deferred signals.
17606 (need_step_over_p): Also step over fast tracepoint jumps.
17607 (start_step_over): Also uninsert fast tracepoint jumps.
17608 (finish_step_over): Also reinsert fast tracepoint jumps.
17609 (linux_install_fast_tracepoint_jump): New.
17610 (linux_target_ops): Install linux_stabilize_threads and
17611 linux_install_fast_tracepoint_jump_pad.
17612 * linux-low.h (linux_target_ops) <get_thread_area,
17613 install_fast_tracepoint_jump_pad>: New fields.
17614 (struct lwp_info) <collecting_fast_tracepoint,
17615 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17616 (linux_get_thread_area): Declare.
17617 * linux-x86-low.c (jump_insn): New.
17618 (x86_get_thread_area): New.
17619 (append_insns): New.
17620 (push_opcode): New.
17621 (amd64_install_fast_tracepoint_jump_pad): New.
17622 (i386_install_fast_tracepoint_jump_pad): New.
17623 (x86_install_fast_tracepoint_jump_pad): New.
17624 (the_low_target): Install x86_get_thread_area and
17625 x86_install_fast_tracepoint_jump_pad.
17626 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17627 (struct fast_tracepoint_jump): New.
17628 (fast_tracepoint_jump_insn): New.
17629 (fast_tracepoint_jump_shadow): New.
17630 (find_fast_tracepoint_jump_at): New.
17631 (fast_tracepoint_jump_here): New.
17632 (delete_fast_tracepoint_jump): New.
17633 (set_fast_tracepoint_jump): New.
17634 (uninsert_fast_tracepoint_jumps_at): New.
17635 (reinsert_fast_tracepoint_jumps_at): New.
17636 (set_breakpoint_at): Use write_inferior_memory.
17637 (uninsert_raw_breakpoint): Use write_inferior_memory.
17638 (check_mem_read): Mask out fast tracepoint jumps.
17639 (check_mem_write): Mask out fast tracepoint jumps.
17640 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17641 (set_fast_tracepoint_jump): Declare.
17642 (delete_fast_tracepoint_jump)
17643 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17644 (reinsert_fast_tracepoint_jumps_at): Declare.
17645 * regcache.c: Don't compile many functions when building the
17646 in-process agent library.
17647 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17648 the register buffer in the heap.
17649 (free_register_cache): If the register buffer isn't owned by the
17650 regcache, don't free it.
17651 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17652 pre-existing register caches.
17653 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17654 type.
17655 (convert_ascii_to_int): : Constify `from' parameter type.
17656 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17657 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17658 the needed buffer in-place.
17659 (relocate_instruction): New.
17660 * server.c (handle_query) <qSymbols>: If the target supports
17661 tracepoints, give it a chance of looking up symbols. Report
17662 support for fast tracepoints.
17663 (handle_status): Stabilize threads.
17664 (process_serial_event): Adjust.
17665 * server.h (struct fast_tracepoint_jump): Forward declare.
17666 (struct process_info) <fast_tracepoint_jumps>: New field.
17667 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17668 (decode_X_packet, decode_M_packet): Adjust.
17669 (relocate_instruction): Declare.
17670 (in_process_agent_loaded): Declare.
17671 (tracepoint_look_up_symbols): Declare.
17672 (struct fast_tpoint_collect_status): Declare.
17673 (fast_tracepoint_collecting): Declare.
17674 (force_unlock_trace_buffer): Declare.
17675 (handle_tracepoint_bkpts): Declare.
17676 (initialize_low_tracepoint)
17677 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17678 * target.h (struct target_ops) <stabilize_threads,
17679 install_fast_tracepoint_jump_pad>: New fields.
17680 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17681 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17682 [HAVE_STDINT_H]: Include stdint.h.
17683 (trace_debug_1): Rename to ...
17684 (trace_vdebug): ... this.
17685 (trace_debug): Rename to ...
17686 (trace_debug_1): ... this. Add `level' parameter.
17687 (trace_debug): New.
17688 (ATTR_USED, ATTR_NOINLINE): New.
17689 (IP_AGENT_EXPORT): New.
17690 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17691 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17692 (about_to_request_buffer_space, trace_buffer_is_full)
17693 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17694 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17695 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17696 (traceframe_write_count, traceframes_created)
17697 (trace_state_variables)
17698 New renaming defines.
17699 (struct ipa_sym_addresses): New.
17700 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17701 (symbol_list): New.
17702 (ipa_sym_addrs): New.
17703 (all_tracepoint_symbols_looked_up): New.
17704 (in_process_agent_loaded): New.
17705 (write_e_ipa_not_loaded): New.
17706 (maybe_write_ipa_not_loaded): New.
17707 (tracepoint_look_up_symbols): New.
17708 (debug_threads) [IN_PROCESS_AGENT]: New.
17709 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17710 (UNKNOWN_SIDE_EFFECTS): New.
17711 (stop_tracing): New.
17712 (flush_trace_buffer): New.
17713 (stop_tracing_bkpt): New.
17714 (flush_trace_buffer_bkpt): New.
17715 (read_inferior_integer): New.
17716 (read_inferior_uinteger): New.
17717 (read_inferior_data_pointer): New.
17718 (write_inferior_data_pointer): New.
17719 (write_inferior_integer): New.
17720 (write_inferior_uinteger): New.
17721 (struct collect_static_trace_data_action): Delete.
17722 (enum tracepoint_type): New.
17723 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17724 <actions_str, step_actions, step_actions_str>: Only include in
17725 GDBserver.
fa593d66
PA
17726 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17727 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17728 (tracepoints): Use IP_AGENT_EXPORT.
17729 (last_tracepoint): Don't include in the IPA.
17730 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17731 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17732 (alloced_trace_state_variables): New.
17733 (trace_state_variables): Use IP_AGENT_EXPORT.
17734 (traceframe_t): Delete unused variable.
17735 (circular_trace_buffer): Don't include in the IPA.
17736 (trace_buffer_start): Delete.
17737 (struct trace_buffer_control): New.
17738 (trace_buffer_free): Delete.
17739 (struct ipa_trace_buffer_control): New.
17740 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17741 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17742 New.
17743 (trace_buffer_ctrl): New.
17744 (TRACE_BUFFER_CTRL_CURR): New.
17745 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17746 Reimplement as macros.
17747 (trace_buffer_wrap): Delete.
17748 (traceframe_write_count, traceframe_read_count)
17749 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17750 (struct tracepoint_hit_ctx) <type>: New field.
17751 (struct fast_tracepoint_ctx): New.
17752 (memory_barrier): New.
17753 (cmpxchg): New.
17754 (record_tracepoint_error): Update atomically in the IPA.
17755 (clear_inferior_trace_buffer): New.
17756 (about_to_request_buffer_space): New.
17757 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17758 updating the same buffer.
17759 (add_tracepoint): Default the tracepoint's type to trap
17760 tracepoint, and orig_size to -1.
17761 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17762 internal variables.
17763 (create_trace_state_variable): New parameter `gdb'. Handle it.
17764 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17765 (cmd_qtdp): Handle fast tracepoints.
17766 (cmd_qtdv): Adjust.
17767 (max_jump_pad_size): New.
17768 (gdb_jump_pad_head): New.
17769 (get_jump_space_head): New.
17770 (claim_jump_space): New.
17771 (sort_tracepoints): New.
17772 (MAX_JUMP_SIZE): New.
17773 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17774 IPA.
17775 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17776 support. Upload fast traceframes, and delete internal IPA
17777 breakpoints.
17778 (stop_tracing_handler): New.
17779 (flush_trace_buffer_handler): New.
17780 (cmd_qtstop): Upload fast tracepoints.
17781 (response_tracepoint): Handle fast tracepoints.
17782 (tracepoint_finished_step): Upload fast traceframes. Set the
17783 tracepoint hit context's tracepoint type.
17784 (handle_tracepoint_bkpts): New.
17785 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17786 type. Add comment about fast tracepoints.
17787 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17788 non-existing action_str field.
17789 (get_context_regcache): Handle fast tracepoints.
17790 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17791 to the regcache.
17792 (fast_tracepoint_from_jump_pad_address): New.
17793 (fast_tracepoint_from_ipa_tpoint_address): New.
17794 (collecting_t): New.
17795 (force_unlock_trace_buffer): New.
17796 (fast_tracepoint_collecting): New.
17797 (collecting): New.
17798 (gdb_collect): New.
17799 (write_inferior_data_ptr): New.
17800 (target_tp_heap): New.
17801 (target_malloc): New.
17802 (download_agent_expr): New.
17803 (UALIGN): New.
17804 (download_tracepoints): New.
17805 (download_trace_state_variables): New.
17806 (upload_fast_traceframes): New.
17807 (IPA_FIRST_TRACEFRAME): New.
17808 (IPA_NEXT_TRACEFRAME_1): New.
17809 (IPA_NEXT_TRACEFRAME): New.
17810 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17811 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17812 (gdb_jump_pad_buffer_end): New.
17813 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17814 (initialize_tracepoint): Adjust.
17815 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17816 buffer. Initialize the low module.
17817 * utils.c (PREFIX, TOOLNAME): New.
17818 (malloc_failure): Use PREFIX.
17819 (error): In the IPA, an error causes an exit.
17820 (fatal, warning): Use PREFIX.
17821 (internal_error): Use TOOLNAME.
17822 (NUMCELLS): Increase to 10.
17823 * configure, config.in: Regenerate.
17824
d149dd1d
PA
178252010-06-01 Pedro Alves <pedro@codesourcery.com>
17826
17827 * server.c (handle_query) <qSupported>: Do two passes over the
17828 qSupported string to avoid nesting strtok.
17829
f6528abd
JK
178302010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17831
17832 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17833 (CDEPS): New.
17834 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17835 -Wl,--dynamic-list.
17836 * configure: Regenerate.
17837 * proc-service.list: New.
17838
ca2a87a0
JK
178392010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17840
17841 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17842 New comment.
17843
363a6e9f
OS
178442010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17845
17846 * gdbreplay.c (remote_open): Check error return from socket() call by
17847 its equality to -1 not by it being negative.
17848 * remote-utils.c (remote_open): Likewise.
17849
d23b6cb1
PA
178502010-05-23 Pedro Alves <pedro@codesourcery.com>
17851
17852 * config.h: Regenerate.
17853
28d3cf85
MK
178542010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17855
17856 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17857 doesn't provide PTRACE_GET_THREAD_AREA.
17858
fea36a59
MK
178592010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17860
17861 * linux-m68k-low.c: Include <asm/ptrace.h>
17862 (ps_get_thread_area): Implement.
17863
24b066ba
DE
178642010-05-03 Doug Evans <dje@google.com>
17865
17866 * event-loop.c (struct callback_event): New struct.
17867 (callback_list): New global.
17868 (append_callback_event, delete_callback_event): New functions.
17869 (process_callback): New function.
17870 (start_event_loop): Call it.
17871 * remote-utils.c (NOT_SCHEDULED): Define.
17872 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17873 moved out of readchar.
17874 (readchar): Rewrite. Call reschedule before returning.
17875 (reset_readchar): New function.
17876 (remote_close): Call it.
17877 (process_remaining, reschedule): New functions.
17878 * server.h (callback_handler_func): New typedef.
17879 (append_callback_event, delete_callback_event): Declare.
17880
9836d6ea
PA
178812010-05-03 Pedro Alves <pedro@codesourcery.com>
17882
17883 * proc-service.c (ps_pglobal_lookup): Use
17884 thread_db_look_up_one_symbol.
17885 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17886 parameter. Use it instead of all_symbols_looked_up.
17887 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17888 field.
17889 (all_symbols_looked_up): Don't declare.
17890 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17891 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17892 field.
17893 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17894 Set all_symbols_looked_up here.
17895 (thread_db_look_up_one_symbol): New.
17896 (thread_db_get_tls_address): Adjust.
17897 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17898 thread_db object on the heap, and tentatively set it in the
17899 process structure.
17900 (thread_db_init): Don't set all_symbols_looked_up here.
17901 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17902
7984d532
PA
179032010-05-03 Pedro Alves <pedro@codesourcery.com>
17904
17905 * linux-low.c (linux_kill, linux_detach): Adjust.
17906 (status_pending_p_callback): Remove redundant statement. Check
17907 for !TARGET_WAITIKIND_IGNORE, instead of
17908 TARGET_WAITKIND_STOPPED.
17909 (handle_tracepoints): Make sure LWP is locked. Adjust.
17910 (linux_wait_for_event_1): Adjust.
17911 (linux_cancel_breakpoints): New.
17912 (unsuspend_one_lwp): New.
17913 (unsuspend_all_lwps): New.
17914 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17915 (send_sigstop_callback): Change return type to int, add new
17916 `except' parameter and handle it.
17917 (suspend_and_send_sigstop_callback): New.
17918 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17919 pass them down. If SUSPEND, also increment the lwp's suspend
17920 count.
17921 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17922 (need_step_over_p): Don't consider suspended LWPs.
17923 (start_step_over): Adjust.
17924 (proceed_one_lwp): Change return type to int, add new `except'
17925 parameter and handle it.
17926 (unsuspend_and_proceed_one_lwp): New.
17927 (proceed_all_lwps): Use find_inferior instead of
17928 for_each_inferior.
17929 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17930 also decrement the suspend count of LWPs. Pass `except' down,
17931 instead of hacking its suspend count.
17932 (linux_pause_all): Add `freeze' parameter. Adjust.
17933 (linux_unpause_all): New.
17934 (linux_target_ops): Install linux_unpause_all.
17935 * server.c (handle_status): Adjust.
17936 * target.h (struct target_ops): New fields `unpause_all' and
17937 `cancel_breakpoints'. Add new parameter to `pause_all'.
17938 (pause_all): Add new `freeze' parameter.
17939 (unpause_all): New.
17940 (cancel_breakpoints): New.
17941 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17942 cancel breakpoints.
17943 (cmd_qtstart): Pause threads.
17944 (stop_tracing): Pause threads, and cancel breakpoints.
17945 * win32-low.c (win32_target_ops): Adjust.
17946
e471f25b
PA
179472010-05-03 Pedro Alves <pedro@codesourcery.com>
17948
17949 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17950 the inferior right away from here...
17951 (linux_wait_1): ... to here, and adjust to check the thread's
17952 last_resume_kind instead of the lwp's step or stop_expected flags.
17953
1915ef4f
PA
179542010-05-02 Pedro Alves <pedro@codesourcery.com>
17955
17956 * README: Use consistent `GDB' and `GDBserver' spellings.
17957
f9e39928
PA
179582010-05-02 Pedro Alves <pedro@codesourcery.com>
17959
17960 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17961 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17962 (linux_detach_one_lwp): Assume the lwp is stopped.
17963 (any_thread_of): Delete.
17964 (linux_detach): Stop all lwps here. Don't blindly delete all
17965 breakpoints.
17966 (delete_lwp_callback): New.
17967 (linux_mourn): Delete all lwps of the process that is gone.
17968 (linux_wait_1): Don't delete the last lwp of the process here.
17969 * mem-break.h (mark_breakpoints_out): Declare.
17970 * mem-break.c (mark_breakpoints_out): New.
17971 (free_all_breakpoints): Use it.
17972 * server.c (handle_target_event): If the process is gone, mark
17973 breakpoints out.
17974 * thread-db.c (struct thread_db) <create_bp>: New field.
17975 (thread_db_enable_reporting): Fix prototype. Store a thread event
17976 breakpoint reference in the thread_db struct.
17977 (thread_db_load_search): Clear the thread_db object.
17978 (try_thread_db_load_1): Ditto.
17979 (switch_to_process): New.
17980 (disable_thread_event_reporting): Use it.
17981 (remove_thread_event_breakpoints): New.
17982 (thread_db_detach, thread_db_mourn): Use it.
17983
1e7fc18c
PA
179842010-05-01 Pedro Alves <pedro@codesourcery.com>
17985
17986 * linux-low.c (linux_enable_event_reporting): New.
17987 (linux_wait_for_event_1, handle_extended_wait): Use it.
17988
02fc4de7
PA
179892010-04-30 Pedro Alves <pedro@codesourcery.com>
17990
17991 * linux-low.c (linux_kill_one_lwp, linux_kill)
17992 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17993 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17994 SIGSTOP even if the LWP is stopped.
17995 (send_sigstop_callback): New.
17996 (stop_all_lwps): Use send_sigstop_callback instead.
17997 (linux_resume_one_thread): Adjust.
17998 (proceed_one_lwp): Still proceed an LWP that the client has
17999 requested to stop, if we haven't reported it as stopped yet. Make
18000 sure that LWPs the client want stopped, have a pending SIGSTOP.
18001
bc3b5632
DE
180022010-04-26 Doug Evans <dje@google.com>
18003
ae1ada35
DE
18004 * server.c (handle_general_set): Make static.
18005
bc3b5632
DE
18006 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18007 Print received char after testing for error/eof instead of before.
18008 (input_interrupt): Tweak comment.
18009
65730243
DE
180102010-04-23 Doug Evans <dje@google.com>
18011
18012 * server.c (start_inferior): Print inferior argv if --debug.
18013
a8ae7dc0
AR
180142010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18015
18016 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18017 * nto-x86-low.c: Include server.h
18018
1c07cc19
PM
180192010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18020
18021 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18022 be consistent with other sources of this directory.
18023 (init_registers_amd64): Correct name of source file of this function
18024 in the comment.
18025
e0a61e09
PM
180262010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18027
18028 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18029 64-bit executables.
18030
54709339
PM
180312010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18032
18033 * win32-i386-low.c: Add 64-bit support.
18034 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18035 (init_registers_amd64): Declare.
18036 (mappings): Add 64-bit version of array.
18037 (init_windows_x86): New function.
18038 (the_low_target): Change init_arch field to init_windows_x86.
18039
e8f0053d
PM
180402010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18041
18042 * win32-low.c: Adapt to support also 64-bit architecture.
18043 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18044 (get_image_name): Use SIZE_T type for local variable `done'.
18045 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18046 (toolhelp_get_dll_name): Idem.
18047 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18048 Use uintptr_t typecast to avoid warning.
18049 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18050 (handle_exception): Use phex_nz to avoid warning.
18051 (win32_wait): Remove unused local variable `process'.
18052
c481e77e
PM
180532010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18054
18055 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18056 `amd64-avx.o'.
18057
12ea4b69
PM
180582010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18059
18060 * configure.ac: Use `ws2_32' library for srv_mingw.
18061 * configure: Regenerate.
18062 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18063 * remote-utils.c: Likewise.
18064
f6d1620c
L
180652010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18066
18067 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18068 if __x86_64__ is defined.
18069
8e642873
PM
180702010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18071
18072 * configure: Regenerate.
18073
711e434b
PM
180742010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18075
18076 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18077 * target.h (target_ops): New get_tib_address field.
18078 * win32-low.h (win32_thread_info): Add thread_local_base field.
18079 * win32-low.c (child_add_thread): Add tlb argument.
18080 Set thread_local_base field to TLB.
18081 (get_child_debug_event): Adapt to child_add_thread change.
18082 (win32_get_tib_address): New function.
18083 (win32_target_ops): Set get_tib_address field to
18084 win32_get_tib_address.
18085 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18086
505106cd
PA
180872010-04-12 Pedro Alves <pedro@codesourcery.com>
18088
505106cd
PA
18089 * linux-low.c (linux_mourn): Also remove the process.
18090 * server.c (handle_target_event): Don't remove the process here.
18091 * nto-low.c (nto_mourn): New.
18092 (nto_target_ops): Install it.
18093 * spu-low.c (spu_mourn): New.
18094 (spu_target_ops): Install it.
18095 * win32-low.c (win32_mourn): New.
18096 (win32_target_ops): Install it.
18097
e8470a06
PA
180982010-04-12 Pedro Alves <pedro@codesourcery.com>
18099
18100 * server.h (buffer_xml_printf): Remove redundant `;'.
18101
45ba0d02
PA
181022010-04-12 Pedro Alves <pedro@codesourcery.com>
18103
18104 * regcache.c (set_register_cache): Invalidate regcaches before
18105 changing the register cache layout.
18106 (regcache_invalidate_one): Allow a NULL regcache.
18107 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18108 regcaches before changing the register cache layout or the target
18109 regsets.
18110
59e04013
L
181112010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18112
18113 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18114 variable warning on Linux/x86-64.
18115
8336d594
PA
181162010-04-11 Pedro Alves <pedro@codesourcery.com>
18117
18118 GDBserver disconnected tracing support.
18119
18120 * linux-low.c (linux_remove_process): Delete.
18121 (add_lwp): Don't set last_resume_kind here.
18122 (linux_kill): Use `mourn'.
18123 (linux_detach): Use `thread_db_detach', and `mourn'.
18124 (linux_mourn): New.
18125 (linux_attach_lwp_1): Adjust comment.
18126 (linux_attach): last_resume_kind moved the thread_info; adjust.
18127 (status_pending_p_callback): Adjust.
18128 (linux_wait_for_event_1): Adjust.
18129 (count_events_callback, select_singlestep_lwp_callback)
18130 (select_event_lwp_callback, cancel_breakpoints_callback)
18131 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18132 (proceed_one_lwp): Adjust.
18133 (linux_async): Add debug output.
18134 (linux_thread_stopped): New.
18135 (linux_pause_all): New.
18136 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18137 linux_pause_all.
18138 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18139 (thread_db_free): Delete declaration.
18140 (thread_db_detach, thread_db_mourn): Declare.
18141 * thread-db.c (thread_db_init): Use thread_db_mourn.
18142 (thread_db_free): Delete, split in two.
18143 (disable_thread_event_reporting): New.
18144 (thread_db_detach): New.
18145 (thread_db_mourn): New.
18146
18147 * server.h (struct thread_info) <last_resume_kind>: New field.
18148 <attached>: Add comment.
18149 <gdb_detached>: New field.
18150 (handler_func): Change return type to int.
18151 (handle_serial_event, handle_target_event): Ditto.
18152 (gdb_connected): Declare.
18153 (tracing): Delete.
18154 (disconnected_tracing): Declare.
18155 (stop_tracing): Declare.
18156
18157 * server.c (handle_query) <qSupported>: Report support for
18158 disconnected tracing.
18159 (queue_stop_reply_callback): Account for running threads.
18160 (gdb_wants_thread_stopped): New.
18161 (gdb_wants_all_threads_stopped): New.
18162 (gdb_reattached_process): New.
18163 (handle_status): Clear the `gdb_detached' flag of all processes.
18164 In all-stop, stop all threads.
18165 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18166 (process_serial_event): If the remote connection breaks, or if an
18167 exit was forced with "monitor exit", force an event loop exit.
18168 Handle disconnected tracing on detach.
18169 (handle_serial_event): Adjust.
18170 (handle_target_event): If GDB isn't connected, forward events back
18171 to the inferior, unless the last process exited, in which case,
18172 exit gdbserver. Adjust interface.
18173
18174 * remote-utils.c (remote_open): Don't block in accept. Instead
18175 register an event loop source on the listen socket file
18176 descriptor. Refactor bits into ...
18177 (listen_desc): ... this new global.
18178 (gdb_connected): ... this new function.
18179 (enable_async_notification): ... this new function.
18180 (handle_accept_event): ... this new function.
18181 (remote_close): Clear remote_desc.
18182
18183 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18184
18185 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18186 New fields.
18187 (mourn_inferior): Define.
18188 (target_process_qsupported): Avoid the dangling else problem.
18189 (thread_stopped): Define.
18190 (pause_all): Define.
18191 (target_waitstatus_to_string): Declare.
18192 * target.c (target_waitstatus_to_string): New.
18193
18194 * tracepoint.c (tracing): Make extern.
18195 (disconnected_tracing): New.
18196 (stop_tracing): Make extern. Handle tracing stops due to GDB
18197 disconnecting.
18198 (cmd_qtdisconnected): New.
18199 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18200 (handle_tracepoint_general_set): Handle QTDisconnected.
18201
18202 * event-loop.c (event_handler_func): Change return type to int.
18203 (process_event): Bail out if the event handler wants the event
18204 loop to stop.
18205 (handle_file_event): Ditto.
18206 (start_event_loop): Bail out if the event handler wants the event
18207 loop to stop.
18208
18209 * nto-low.c (nto_target_ops): Adjust.
18210 * spu-low.c (spu_wait): Don't remove the process here.
18211 (spu_target_ops): Adjust.
18212 * win32-low.c (win32_wait): Don't remove the process here.
18213 (win32_target_ops): Adjust.
18214
5d267c4c
PA
182152010-04-11 Pedro Alves <pedro@codesourcery.com>
18216
18217 * regcache.c (realloc_register_cache): Invalidate inferior's
18218 regcache before recreating it.
18219
623ccd72
PA
182202010-04-09 Pedro Alves <pedro@codesourcery.com>
18221
18222 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18223
219f2f23
PA
182242010-04-09 Stan Shebs <stan@codesourcery.com>
18225 Pedro Alves <pedro@codesourcery.com>
18226
18227 * server.h (LONGEST): New.
18228 (struct thread_info) <while_stepping>: New field.
18229 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18230 Declare.
18231 (initialize_tracepoint, handle_tracepoint_general_set)
18232 (handle_tracepoint_query, tracepoint_finished_step)
18233 (tracepoint_was_hit, release_while_stepping_state_list):
18234 (current_traceframe): Declare.
18235 * server.c (handle_general_set): Handle tracepoint packets.
18236 (read_memory): New.
18237 (write_memory): New.
18238 (handle_search_memory_1): Use read_memory.
18239 (handle_query): Report support for conditional tracepoints, trace
18240 state variables, and tracepoint sources. Handle tracepoint
18241 queries.
18242 (main): Initialize the tracepoints module.
18243 (process_serial_event): Handle traceframe reads/writes.
18244
18245 * linux-low.c (handle_tracepoints): New.
18246 (linux_wait_1): Call it.
18247 (linux_resume_one_lwp): Handle while-stepping.
18248 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18249 (linux_target_ops): Install them.
18250 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18251 New field.
18252 * linux-x86-low.c (x86_supports_tracepoints): New.
18253 (the_low_target). Install it.
18254
18255 * mem-break.h (delete_breakpoint): Declare.
18256 * mem-break.c (delete_breakpoint): Make external.
18257
18258 * target.h (struct target_ops): Add `supports_tracepoints',
18259 `read_pc', and `write_pc' fields.
18260 (target_supports_tracepoints): Define.
18261 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18262 (phex_nz): New.
18263
18264 * regcache.h (struct regcache) <registers_owned>: New field.
18265 (init_register_cache, regcache_cpy): Declare.
18266 (regcache_read_pc, regcache_write_pc): Declare.
18267 (register_cache_size): Declare.
18268 (supply_regblock): Declare.
18269 * regcache.c (init_register_cache): New.
18270 (new_register_cache): Use it.
18271 (regcache_cpy): New.
18272 (register_cache_size): New.
18273 (supply_regblock): New.
18274 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18275
219f2f23
PA
18276 * tracepoint.c: New.
18277
18278 * Makefile.in (OBS): Add tracepoint.o.
18279 (tracepoint.o): New rule.
18280
3a13a53b
L
182812010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18282
18283 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18284 (i386-mmx.o): New.
18285 (i386-mmx.c): Likewise.
18286 (i386-mmx-linux.o): Likewise.
18287 (i386-mmx-linux.c): Likewise.
18288
18289 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18290 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18291 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18292 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18293
18294 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18295 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18296 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18297
1570b33e
L
182982010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18299
18300 * Makefile.in (clean): Updated.
18301 (i386-avx.o): New.
18302 (i386-avx.c): Likewise.
18303 (i386-avx-linux.o): Likewise.
18304 (i386-avx-linux.c): Likewise.
18305 (amd64-avx.o): Likewise.
18306 (amd64-avx.c): Likewise.
18307 (amd64-avx-linux.o): Likewise.
18308 (amd64-avx-linux.c): Likewise.
18309
18310 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18311 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18312 (srv_amd64_regobj): Add amd64-avx.o.
18313 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18314 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18315 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18316 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18317 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18318 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18319 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18320
18321 * i387-fp.c: Include "i386-xstate.h".
18322 (i387_xsave): New.
18323 (i387_cache_to_xsave): Likewise.
18324 (i387_xsave_to_cache): Likewise.
18325 (x86_xcr0): Likewise.
18326
18327 * i387-fp.h (i387_cache_to_xsave): Likewise.
18328 (i387_xsave_to_cache): Likewise.
18329 (x86_xcr0): Likewise.
18330
18331 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18332 * linux-crisv32-low.c (target_regsets): Likewise.
18333 * linux-m68k-low.c (target_regsets): Likewise.
18334 * linux-mips-low.c (target_regsets): Likewise.
18335 * linux-ppc-low.c (target_regsets): Likewise.
18336 * linux-s390-low.c (target_regsets): Likewise.
18337 * linux-sh-low.c (target_regsets): Likewise.
18338 * linux-sparc-low.c (target_regsets): Likewise.
18339 * linux-xtensa-low.c (target_regsets): Likewise.
18340
18341 * linux-low.c: Include <sys/uio.h>.
18342 (regsets_fetch_inferior_registers): Support nt_type.
18343 (regsets_store_inferior_registers): Likewise.
18344 (linux_process_qsupported): New.
18345 (linux_target_ops): Add linux_process_qsupported.
18346
18347 * linux-low.h (regset_info): Add nt_type.
18348 (linux_target_ops): Add process_qsupported.
18349
18350 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18351 and <sys/uio.h>.
18352 (init_registers_i386_avx_linux): New.
18353 (init_registers_amd64_avx_linux): Likewise.
18354 (xmltarget_i386_linux_no_xml): Likewise.
18355 (xmltarget_amd64_linux_no_xml): Likewise.
18356 (PTRACE_GETREGSET): Likewise.
18357 (PTRACE_SETREGSET): Likewise.
18358 (x86_fill_xstateregset): Likewise.
18359 (x86_store_xstateregset): Likewise.
18360 (use_xml): Likewise.
18361 (x86_linux_update_xmltarget): Likewise.
18362 (x86_linux_process_qsupported): Likewise.
18363 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18364 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18365 init_registers_i386_linux here. Call
18366 x86_linux_update_xmltarget.
18367 (the_low_target): Add x86_linux_process_qsupported.
18368
18369 * server.c (handle_query): Call target_process_qsupported.
18370
18371 * target.h (target_ops): Add process_qsupported.
18372 (target_process_qsupported): New.
18373
fc7238bb
PA
183742010-04-03 Pedro Alves <pedro@codesourcery.com>
18375
18376 * inferiors.c (add_thread): Set last_status kind to
18377 TARGET_WAITKIND_IGNORE.
18378 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18379 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18380 (linux_wait_1): Move `thread' local definition to block that uses
18381 it. Don't NULL initialize `event_child'.
18382 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18383 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18384 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18385
bdabb078
PA
183862010-04-01 Pedro Alves <pedro@codesourcery.com>
18387
18388 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18389 an extended waitstatus, or by a watchpoint.
18390 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18391 thread was stepping or has been stopped by a watchpoint.
18392
d3bbe7a0
PA
183932010-04-01 Pedro Alves <pedro@codesourcery.com>
18394
18395 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18396 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18397 of another, then delete the previous, and validate all
18398 breakpoints.
18399 (validate_inserted_breakpoint): New.
18400 (delete_disabled_breakpoints): New.
18401 (validate_breakpoints): New.
18402 (check_mem_read): Validate breakpoints before trusting their
18403 shadow. Delete disabled breakpoints.
18404 (check_mem_write): Validate breakpoints before trusting they
18405 should be inserted. Delete disabled breakpoints.
18406 * mem-break.h (validate_breakpoints):
18407 * server.c (handle_query): Validate breakpoints when we see a
18408 qSymbol query.
18409
8b07ae33
PA
184102010-04-01 Pedro Alves <pedro@codesourcery.com>
18411
18412 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18413 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18414 if we could tell there's a GDB breakpoint at stop_pc.
18415 (need_step_over_p): Don't do a step over if we find a GDB
18416 breakpoint at the resume PC.
18417
18418 * mem-break.c (struct raw_breakpoint): New.
18419 (enum bkpt_type): New type `gdb_breakpoint'.
18420 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18421 fields. New field `raw'.
18422 (find_raw_breakpoint_at): New.
18423 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18424 breakpoint instead.
18425 (set_breakpoint_at): Adjust.
18426 (delete_raw_breakpoint): New.
18427 (release_breakpoint): New.
18428 (delete_breakpoint): Rename to...
18429 (delete_breakpoint_1): ... this. Add proc parameter. Use
18430 release_breakpoint. Return ENOENT.
18431 (delete_breakpoint): Reimplement.
18432 (find_breakpoint_at): Delete.
18433 (find_gdb_breakpoint_at): New.
18434 (delete_breakpoint_at): Delete.
18435 (set_gdb_breakpoint_at): New.
18436 (delete_gdb_breakpoint_at): New.
18437 (gdb_breakpoint_here): New.
18438 (set_reinsert_breakpoint): Use release_breakpoint.
18439 (uninsert_breakpoint): Rename to ...
18440 (uninsert_raw_breakpoint): ... this.
18441 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18442 (reinsert_raw_breakpoint): Change parameter type to
18443 raw_breakpoint.
18444 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18445 instead.
18446 (check_breakpoints): Adjust. Use release_breakpoint.
18447 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18448 (breakpoint_inserted_here): Ditto.
18449 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18450 Don't trust the breakpoint's shadow if it is not inserted.
18451 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18452 (delete_all_breakpoints): Adjust.
18453 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18454 use delete_breakpoint_1.
18455
18456 * mem-break.h (breakpoints_supported): Delete declaration.
18457 (set_gdb_breakpoint_at): Declare.
18458 (gdb_breakpoint_here): Declare.
18459 (delete_breakpoint_at): Delete.
18460 (delete_gdb_breakpoint_at): Declare.
18461
18462 * server.h (struct raw_breakpoint): Forward declare.
18463 (struct process_info): New field `raw_breakpoints'.
18464
18465 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18466 breakpoints.
18467
6bf5e0ba
PA
184682010-03-24 Pedro Alves <pedro@codesourcery.com>
18469
18470 * linux-low.c (status_pending_p_callback): Fix comment.
18471 (linux_wait_for_event_1): Move most of the internal breakpoint
18472 handling from here...
18473 (linux_wait_1): ... to here.
18474 (count_events_callback): New.
18475 (select_singlestep_lwp_callback): New.
18476 (select_event_lwp_callback): New.
18477 (cancel_breakpoints_callback): New.
18478 (select_event_lwp): New.
18479 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18480 priority to all LWPs that have had events that should be reported
18481 to the client. Cancel breakpoints when about to reporting the
18482 event to the client, not while stopping lwps. No longer cancel
18483 finished single-steps here.
18484 (cancel_finished_single_step): Delete.
18485 (cancel_finished_single_steps): Delete.
18486
414a389f
PA
184872010-03-24 Pedro Alves <pedro@codesourcery.com>
18488
18489 * mem-break.c (enum bkpt_type): New.
18490 (struct breakpoint): New field `type'.
18491 (set_breakpoint_at): Change return type to struct breakpoint
18492 pointer. Set type to `other_breakpoint' by default.
18493 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18494 in the breakpoint list.
18495 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18496 (reinsert_breakpoint): Rename to ...
18497 (reinsert_raw_breakpoint): ... this.
18498 (reinsert_breakpoints_at): Adjust.
18499 * mem-break.h (struct breakpoint): Declare.
18500 (set_breakpoint_at): Change return type to struct breakpoint
18501 pointer.
18502
2280c721
PA
185032010-03-24 Pedro Alves <pedro@codesourcery.com>
18504
18505 * server.c (handle_query): Assign, not compare.
18506
d50171e4
PA
185072010-03-24 Pedro Alves <pedro@codesourcery.com>
18508
18509 Teach linux gdbserver to step-over-breakpoints.
18510
18511 * linux-low.c (can_hardware_single_step): New.
18512 (supports_breakpoints): New.
18513 (handle_extended_wait): If stopping threads, read the stop pc of
18514 the new cloned LWP.
18515 (get_pc): New.
18516 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18517 low target doesn't support retrieving the PC.
18518 (add_lwp): Set last_resume_kind to resume_continue.
18519 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18520 (linux_attach): Don't clear stop_expected. Set the lwp's
18521 last_resume_kind to resume_stop.
18522 (linux_detach_one_lwp): Don't check for removed breakpoints.
18523 (check_removed_breakpoint): Delete.
18524 (status_pending_p): Rename to ...
18525 (status_pending_p_callback): ... this. Don't check for removed
18526 breakpoints. Don't consider threads that are stopped from GDB's
18527 perspective.
18528 (linux_wait_for_lwp): Always read the stop_pc here.
18529 (cancel_breakpoint): New.
18530 (step_over_bkpt): New global.
18531 (linux_wait_for_event_1): Implement stepping over breakpoints.
18532 (gdb_wants_lwp_stopped): New.
18533 (gdb_wants_all_stopped): New.
18534 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18535 single-step traps here. Store the thread's last reported target
18536 wait status.
18537 (send_sigstop): Don't clear stop_expected. Always set it,
18538 instead.
18539 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18540 (cancel_finished_single_step): New.
18541 (cancel_finished_single_steps): New.
18542 (wait_for_sigstop): Don't cancel finished single-step traps here.
18543 (linux_resume_one_lwp): Don't check for removed breakpoints.
18544 Don't set `step' on non-hardware step archs.
18545 (linux_set_resume_request): Ignore resume_stop requests if already
18546 stopping or stopped. Set the lwp's last_resume_kind.
18547 (resume_status_pending_p): Don't check for removed breakpoints.
18548 (need_step_over_p): New.
18549 (start_step_over): New.
18550 (finish_step_over): New.
18551 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18552 requests. Clear the thread's last reported target waitstatus.
18553 Don't use the `suspended' flag. Don't consider pending breakpoints.
18554 (linux_resume): Start a step-over if necessary.
18555 (proceed_one_lwp): New.
18556 (proceed_all_lwps): New.
18557 (unstop_all_lwps): New.
18558 * linux-low.h (struct lwp_info): Rewrite comment for the
18559 `suspended' flag. Add the `stop_pc' field. Delete the
18560 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18561 Add `'last_resume_kind' and `need_step_over' fields.
18562 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18563 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18564 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18565 (set_raw_breakpoint_at): New.
18566 (set_breakpoint_at): Rewrite to use it.
18567 (reinsert_breakpoint_handler): Delete.
18568 (set_reinsert_breakpoint): New.
18569 (reinsert_breakpoint_by_bp): Delete.
18570 (delete_reinsert_breakpoints): New.
18571 (uninsert_breakpoint): Rewrite.
18572 (uninsert_breakpoints_at): New.
18573 (reinsert_breakpoint): Rewrite.
18574 (reinsert_breakpoints_at): New.
18575 (check_breakpoints): Rewrite.
18576 (breakpoint_here): New.
18577 (breakpoint_inserted_here): New.
18578 (check_mem_read): Adjust.
18579 * mem-break.h (breakpoints_supported, breakpoint_here)
18580 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18581 (reinsert_breakpoint_by_bp): Delete declaration.
18582 (delete_reinsert_breakpoints): Declare.
18583 (reinsert_breakpoint): Delete declaration.
18584 (reinsert_breakpoints_at): Declare.
18585 (uninsert_breakpoint): Delete declaration.
18586 (uninsert_breakpoints_at): Declare.
18587 (check_breakpoints): Adjust prototype.
18588 * server.h: Adjust include order.
18589 (struct thread_info): Declare here. Add a `last_status' field.
18590
30ba68cb
MS
185912010-03-23 Michael Snyder <msnyder@vmware.com>
18592
18593 * server.c (crc32): New function.
18594 (handle_query): Add handling for 'qCRC:' request.
18595
b9a881c2
PA
185962010-03-23 Pedro Alves <pedro@codesourcery.com>
18597
18598 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18599 lwp had been stopped by a watchpoint.
18600
e92d13d5
PA
186012010-03-16 Pedro Alves <pedro@codesourcery.com>
18602
18603 * server.h (internal_error): Declare.
18604 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18605 * utils.c (internal_error): New function.
18606
64daa791
AS
186072010-03-15 Andreas Schwab <schwab@redhat.com>
18608
18609 * configure.srv: Fix typo setting srv_regobj.
18610
f52cd8cd
PA
186112010-03-15 Pedro Alves <pedro@codesourcery.com>
18612
18613 * linux-low.c (fetch_register): Avoid passing a non string literal
18614 format to `error'.
18615 (usr_store_inferior_registers): Ditto.
18616
93ae6fdc
PA
186172010-03-14 Pedro Alves <pedro@codesourcery.com>
18618
18619 * linux-low.c (linux_write_memory): Bail out early if peeking
18620 memory failed.
18621
c3adc08c
PA
186222010-03-14 Pedro Alves <pedro@codesourcery.com>
18623
18624 * linux-low.h (struct lwp_info): New fields
18625 `stopped_by_watchpoint' and `stopped_data_address'.
18626 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18627 here, and cache them in the lwp object.
18628 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18629 directly.
18630 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18631 field.
18632 (linux_stopped_by_watchpoint): Rewrite.
18633 (linux_stopped_data_address): Rewrite.
18634
bce522a2
PA
186352010-03-06 Simo Melenius <simo.melenius@iki.fi>
18636
18637 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18638 switching the current inferior, not before.
18639
90884b2b
L
186402010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18641
18642 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18643 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18644 i386-linux.c and amd64-linux.c.
18645 (reg-i386.o): Removed.
18646 (reg-i386.c): Likewise.
18647 (reg-i386-linux.o): Likewise.
18648 (reg-i386-linux.c): Likewise.
18649 (reg-x86-64.o): Likewise.
18650 (reg-x86-64.c): Likewise.
18651 (reg-x86-64-linux.o): Likewise.
18652 (reg-x86-64-linux.c): Likewise.
18653 (i386.o): New.
18654 (i386.c): Likewise.
18655 (i386-linux.o): Likewise.
18656 (i386-linux.c): Likewise.
18657 (amd64.o): Likewise.
18658 (amd64.c): Likewise.
18659 (amd64-linux.o): Likewise.
18660 (amd64-linux.c): Likewise.
18661
18662 * configure.srv (srv_i386_regobj): New.
18663 (srv_i386_linux_regobj): Likewise.
18664 (srv_amd64_regobj): Likewise.
18665 (srv_amd64_linux_regobj): Likewise.
18666 (srv_i386_32bit_xmlfiles): Likewise.
18667 (srv_i386_64bit_xmlfiles): Likewise.
18668 (srv_i386_xmlfiles): Likewise.
18669 (srv_amd64_xmlfiles): Likewise.
18670 (srv_i386_linux_xmlfiles): Likewise.
18671 (srv_amd64_linux_xmlfiles): Likewise.
18672 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18673 srv_xmlfiles to $srv_i386_xmlfiles.
18674 (i[34567]86-*-mingw32ce*): Likewise.
18675 (i[34567]86-*-mingw*): Likewise.
18676 (i[34567]86-*-nto*): Likewise.
18677 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18678 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18679 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18680 (x86_64-*-linux*): Likewise.
18681
18682 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18683 (init_registers_amd64_linux): New.
18684 (x86_arch_setup): Replace init_registers_x86_64_linux with
18685 init_registers_amd64_linux.
18686
193f13e6
MK
186872010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18688
18689 * configure.ac: Check for libdl. If it is not available link against
18690 static libthread_db.
18691 * configure: Regenerate.
18692
85d721b8
PA
186932010-02-22 Pedro Alves <pedro@codesourcery.com>
18694
18695 PR9605
18696
18697 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18698 handing a read watchpoint.
18699 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18700
6076632b
DE
187012010-02-12 Doug Evans <dje@google.com>
18702
18703 * linux-low.c (linux_supports_tracefork_flag): Document.
18704 (linux_look_up_symbols): Add comment.
18705
3327ccf7
L
187062010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18707
18708 * regcache.c (supply_register): Clear regcache if buf is NULL.
18709
0718675c 187102010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18711 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18712
18713 * inferiors.c (find_inferior): Add function documentation.
18714 (unloaded_dll): Handle the case where the unloaded dll has not
18715 been previously registered in the dll list.
18716
177321bd
DJ
187172010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18718
18719 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18720 (thumb2_breakpoint): New.
18721 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18722
2b009048
DJ
187232010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18724
18725 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18726 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18727 breakpoints.
18728
3be029c7
PA
187292010-01-21 Pedro Alves <pedro@codesourcery.com>
18730
18731 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18732
18f5de3b
JK
187332010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18734
18735 * linux-s390-low.c (s390_collect_ptrace_register)
18736 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18737
3743bb4f
DE
187382010-01-21 Doug Evans <dje@google.com>
18739
14ce3065
DE
18740 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18741 (PTRACE_ARG4_TYPE): New macro.
18742 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18743 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18744 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18745 (usr_store_inferior_registers): Ditto.
18746 (linux_read_memory, linux_write_memory): Ditto.
18747 (linux_test_for_tracefork): Ditto.
18748
3743bb4f
DE
18749 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18750 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18751
8b315be5
PA
187522010-01-21 Pedro Alves <pedro@codesourcery.com>
18753
18754 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18755 target.
18756
85492558
PA
187572010-01-21 Pedro Alves <pedro@codesourcery.com>
18758
18759 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18760 prototype to take a regcache. Adjust.
18761
442ea881
PA
187622010-01-20 Pedro Alves <pedro@codesourcery.com>
18763
18764 * regcache.h (struct thread_info): Forward declare.
18765 (struct regcache): New.
18766 (new_register_cache): Adjust prototype.
18767 (get_thread_regcache): Declare.
18768 (free_register_cache): Adjust prototype.
18769 (registers_to_string, registers_from_string): Ditto.
18770 (supply_register, supply_register_by_name, collect_register)
18771 (collect_register_as_string, collect_register_by_name): Ditto.
18772 * regcache.c (struct inferior_regcache_data): Delete.
18773 (get_regcache): Rename to ...
18774 (get_thread_regcache): ... this. Adjust. Switch inferior before
18775 fetching registers.
18776 (regcache_invalidate_one): Adjust.
18777 (regcache_invalidate): Fix prototype.
18778 (new_register_cache): Return the new register cache.
18779 (free_register_cache): Change prototype.
18780 (realloc_register_cache): Adjust.
18781 (registers_to_string): Change prototype to take a regcache. Adjust.
18782 (registers_from_string): Ditto.
18783 (register_data): Ditto.
18784 (supply_register): Ditto.
18785 (supply_register_by_name): Ditto.
18786 (collect_register): Ditto.
18787 (collect_register_as_string): Ditto.
18788 (collect_register_by_name): Ditto.
18789 * server.c (process_serial_event): Adjust.
18790 * linux-low.h (regset_fill_func, regset_store_func): Change
18791 prototype.
18792 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18793 Change prototype.
18794 * linux-low.c (get_stop_pc): Adjust.
18795 (check_removed_breakpoint): Adjust.
18796 (linux_wait_for_event): Adjust.
18797 (linux_resume_one_lwp): Adjust.
18798 (fetch_register): Add regcache parameter. Adjust.
18799 (usr_store_inferior_registers): Ditto.
18800 (regsets_fetch_inferior_registers): Ditto.
18801 (regsets_store_inferior_registers): Ditto.
18802 (linux_fetch_registers, linux_store_registers): Ditto.
18803 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18804 regcache. Adjust.
43aaf8b6
PA
18805 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18806 Ditto.
442ea881
PA
18807 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18808 prototype to take a regcache.
18809 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18810 * remote-utils.c (convert_ascii_to_int, outreg)
18811 (prepare_resume_reply): Change prototype to take a regcache.
18812 Adjust.
18813 * target.h (struct target_ops) <fetch_registers, store_registers>:
18814 Change prototype to take a regcache.
18815 (fetch_inferior_registers, store_inferior_registers): Change
18816 prototype to take a regcache. Adjust.
18817 * proc-service.c (ps_lgetregs): Adjust.
18818 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18819 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18820 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18821 take a regcache. Adjust.
18822 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18823 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18824 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18825 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18826 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18827 (cris_cannot_fetch_register):
18828 (cris_breakpoint_at): Change prototype to take a regcache.
18829 Adjust.
18830 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18831 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18832 to take a regcache. Adjust.
18833 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18834 Adjust.
18835 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18836 take a regcache. Adjust.
18837 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18838 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18839 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18840 * linux-mips-low.c (mips_get_pc):
18841 (mips_set_pc): Change prototype to take a regcache. Adjust.
18842 (mips_reinsert_addr): Adjust.
18843 (mips_collect_register): Change prototype to take a regcache.
18844 Adjust.
18845 (mips_supply_register):
18846 (mips_collect_register_32bit, mips_supply_register_32bit)
18847 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18848 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18849 * linux-ppc-low.c (ppc_supply_ptrace_register)
18850 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18851 (parse_spufs_run): Adjust.
18852 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18853 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18854 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18855 take a regcache. Adjust.
18856 * linux-s390-low.c (s390_collect_ptrace_register)
18857 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18858 (s390_set_pc): Change prototype to take a regcache. Adjust.
18859 (s390_arch_setup): Adjust.
18860 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18861 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18862 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18863 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18864 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18865 regcache. Adjust.
18866 (sparc_breakpoint_at): Adjust.
18867 * linux-xtensa-low.c (xtensa_fill_gregset):
18868 (xtensa_store_gregset):
18869 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18870 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18871 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18872 prototype to take a regcache. Adjust.
18873 * win32-arm-low.c (arm_fetch_inferior_register)
18874 (arm_store_inferior_register): Change prototype to take a
18875 regcache. Adjust.
18876 * win32-i386-low.c (i386_fetch_inferior_register)
18877 (i386_store_inferior_register): Change prototype to take a
18878 regcache. Adjust.
18879 * win32-low.c (child_fetch_inferior_registers)
18880 (child_store_inferior_registers): Change prototype to take a
18881 regcache. Adjust.
18882 (win32_wait): Adjust.
18883 (win32_fetch_inferior_registers): Change prototype to take a
18884 regcache. Adjust.
18885 (win32_store_inferior_registers): Adjust.
18886 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18887 store_inferior_register>: Change prototype to take a regcache.
18888
60c3d7b0
DE
188892010-01-20 Doug Evans <dje@google.com>
18890
18891 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18892 #ifdef.
18893 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18894 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18895
dc146f7c
VP
188962010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18897
18898 * linux-low.c (linux_core_of_thread): New.
18899 (compare_ints, show_process, list_threads): New.
18900 (linux_qxfer_osdata): Report threads and cores.
18901 (linux_target_op): Register linux_core_of_thread.
18902 * remote-utils.c (prepare_resume_reply): Report the core.
18903 (buffer_xml_printf): Support %d specifier.
18904 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18905 New.
18906 (handle_query): Handle qXfer:threads. Announce availability
18907 thereof.
18908 * target.h (struct target_ops): New field core_of_thread.
18909
7803799a
UW
189102010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18911
18912 * Makefile.in (clean): Remove new generated files.
18913 (reg-s390.o, reg-s390.c): Remove rules.
18914 (reg-s390x.o, reg-s390x.c): Likewise.
18915 (s390-linux32.o, s390-linux32.c): Add rules.
18916 (s390-linux64.o, s390-linux64.c): Likewise.
18917 (s390x-linux64.o, s390x-linux64.c): Likewise.
18918 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18919 * linux-s390-low.c: Include <elf.h>.
18920 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18921 (init_registers_s390): Remove prototype.
18922 (init_registers_s390x): Likewise.
18923 (init_registers_s390_linux32): Add prototype.
18924 (init_registers_s390_linux64): Likewise.
18925 (init_registers_s390x_linux64): Likewise.
18926 (s390_num_regs_3264): New define.
18927 (s390_regmap_3264): New global variable.
18928 (s390_cannot_fetch_register): Remove obsolete check.
18929 (s390_cannot_store_register): Likewise.
18930 (s390_collect_ptrace_register): Handle upper/lower register halves.
18931 (s390_supply_ptrace_register): Likewise.
18932 (s390_fill_gregset): Update to register number changes.
18933 (s390_get_hwcap): New routine.
18934 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18935 Install appropriate regmap and register set.
18936
6e7ffa39
JB
189372010-01-01 Joel Brobecker <brobecker@adacore.com>
18938
18939 * server.c (gdbserver_version): Update copyright year to 2010.
18940 * gdbreplay.c (gdbreplay_version): Likewise.
18941
957f3f49
DE
189422009-12-28 Doug Evans <dje@google.com>
18943
18944 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18945 elf/external.h. Include <elf.h> instead but only if necessary.
18946
ca5c370d
PA
189472009-12-28 Pedro Alves <pedro@codesourcery.com>
18948
18949 * linux-low.c (linux_remove_process): Remove `detaching'
18950 parameter. Don't release/detach from thread_db here.
18951 (linux_kill): Release/detach from thread_db here, ...
18952 (linux_detach): ... and here, before actually detaching.
18953 (linux_wait_1): ... and here, when a process exits.
18954 * thread-db.c (any_thread_of): New.
18955 (thread_db_free): Switch the current inferior to a thread of the
18956 passed in process.
18957
4ee62156
DE
189582009-12-21 Doug Evans <dje@google.com>
18959
d90e6a88
DE
18960 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18961
c5f62d5f
DE
18962 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18963 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18964 warning ifndef __NR_tkill. Move setting of errno there too.
18965 Delete unnecessary resetting of errno after syscall.
18966 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18967
10e86dd7
DE
18968 * configure.ac: Check for dladdr.
18969 * config.in: Regenerate.
18970 * configure: Regenerate.
18971 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18972 (try_thread_db_load): Update.
18973
4ee62156
DE
18974 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18975
00f515da
DE
189762009-12-18 Doug Evans <dje@google.com>
18977
e9464885
DE
18978 * event-loop.c: Include unistd.h if it exists.
18979
07d4f67e
DE
18980 * linux-low.c (my_waitpid): Move definition away from being in
18981 between linux_tracefork_child/linux_test_for_tracefork.
18982
00f515da
DE
18983 * gdb_proc_service.h (psaddr_t): Fix type.
18984 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18985 signature to match glibc.
18986
1de1badb
DE
189872009-12-16 Doug Evans <dje@google.com>
18988
18989 * linux-low.c (linux_read_memory): Fix argument to read.
18990
aeeb81d1
PA
189912009-11-26 Pedro Alves <pedro@codesourcery.com>
18992
18993 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18994 events, don't leave current_inferior pointing at null.
18995
10357975
PA
189962009-11-26 Pedro Alves <pedro@codesourcery.com>
18997
18998 * win32-low.c (LOG): Delete.
18999 (OUTMSG): Output to stderr.
19000 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19001 on compile time LOG macro.
19002 (win32_wait): Fix debug output.
19003
cf6e3471
PA
190042009-11-26 Pedro Alves <pedro@codesourcery.com>
19005
19006 * win32-low.c (win32_add_one_solib): If the dll name is
19007 "ntdll.dll", prepend the system directory to the dll path.
19008
0c85e18e
MK
190092009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19010
19011 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19012
9ac544ce 190132009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 19014 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
19015
19016 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19017 * configure.ac: Check for __mcoldfire__ and set
19018 gdb_cv_m68k_is_coldfire.
19019 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19020 reg-cf.o and reg-m68k.o.
19021 * configure: Regenerated.
19022
fd7dd3e6
PA
190232009-11-16 Pedro Alves <pedro@codesourcery.com>
19024
19025 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19026 Pass it to thread_db_free.
19027 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19028 proper `detaching' argument to linux_remove_process.
19029 * linux-low.h (thread_db_free): Add `detaching' parameter.
19030 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19031 to thread_db_free.
19032 (thread_db_free): Add `detaching' parameter. Only
19033 call td_ta_clear_event if detaching from process.
19034
75aa492e
MK
190352009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19036
19037 * thread-db.c (thread_db_free): Fix typo.
19038
21e1bee4
PP
190392009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19040
19041 PR gdb/10838
19042 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19043
8838b45e
NS
190442009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19045
19046 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19047 with an i686 compiler.
19048 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19049 needed.
19050 * configure: Rebuilt.
19051
8a35fb51
SL
190522009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19053
19054 PR gdb/10783
19055
19056 * server.c (handle_search_memory_1): Correct read_addr initialization
19057 in loop for searching subsequent chunks.
19058
96f15937
PP
190592009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19060
19061 * configure.ac: New --with-libthread-db option.
19062 * thread-db.c: Allow direct dependence on libthread_db.
19063 (thread_db_free): Adjust.
19064 * config.in: Regenerate.
19065 * configure: Likewise.
889bf7c5 19066
5f7d1694
PP
190672009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19068
19069 PR gdb/10757
19070 * thread-db.c (attach_thread): New function.
19071 (maybe_attach_thread): Return success/failure.
19072 (find_new_threads_callback): Adjust.
889bf7c5
PA
19073 (thread_db_find_new_threads): Loop until no new threads.
19074
88e3b899
PA
190752009-10-13 Pedro Alves <pedro@codesourcery.com>
19076
19077 * proc-service.c (ps_lgetregs): Formatting.
19078
cdbfd419
PP
190792009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19080
19081 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19082 * configure.ac: Adjust.
19083 * linux-low.h (struct process_info_private): Move members to struct
19084 thread_db.
19085 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19086 * linux-low.c (linux_remove_process): Adjust.
19087 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19088 * server.c (handle_query): Move code ...
19089 (handle_monitor_command): ... here. New function.
19090 * target.h (struct target_ops): New member.
19091 * thread-db.c (struct thread_db): New.
19092 (libthread_db_search_path): New variable.
19093 (thread_db_create_event, thread_db_enable_reporting)
19094 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19095 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19096 (try_thread_db_load_1, dladdr_to_soname): New functions.
19097 (try_thread_db_load, thread_db_load_search): New functions.
19098 (thread_db_init): Search for libthread_db.
19099 (thread_db_free): New function.
19100 (thread_db_handle_monitor_command): Likewise.
19101 * config.in: Regenerate.
19102 * configure: Regenerate.
889bf7c5 19103
4168d2d6
UW
191042009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19105
19106 * spu-low.c (spu_kill): Wait for inferior to terminate.
19107 Call clear_inferiors.
19108 (spu_detach): Call clear_inferiors.
19109
81ecdfbb
RW
191102009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19111
19112 * aclocal.m4: Regenerate.
19113 * config.in: Likewise.
19114 * configure: Likewise.
19115
0b9ff2c0
UW
191162009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19117
19118 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19119 (parse_spufs_run): New function.
19120 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19121 (ppc_breakpoint_at): Handle SPU breakpoints.
19122
efcbbd14
UW
191232009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19124
19125 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19126 (SPUFS_MAGIC): Define.
19127 (spu_enumerate_spu_ids): New function.
19128 (linux_qxfer_spu): New function.
19129 (linux_target_ops): Install linux_qxfer_spu.
19130
f4d9bade
UW
191312009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19132
19133 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19134 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19135 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19136 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19137 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19138 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19139 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19140 (init_registers_powerpc_cell32l): Add prototype.
19141 (init_registers_powerpc_cell64l): Likewise.
19142 (ppc_arch_setup): Detect Cell/B.E. architecture.
19143
96e946ca
RW
191442009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19145
19146 * Makefile.in (datarootdir): New variable.
19147
58d6951d
DJ
191482009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19149
19150 * linux-low.c (linux_write_memory): Update debugging output.
19151 * Makefile.in (clean): Add new descriptions.
19152 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19153 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19154 * configure.srv: Add new files for arm*-*-linux*.
19155 * linux-arm-low.c: Add new declarations.
19156 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19157 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19158 (HWCAP_VFPv3D16): New.
19159 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19160 instead of __IWMMXT__.
19161 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19162 (arm_arch_setup): New.
19163 (target_regsets): Remove #ifdef. Add VFP regset.
19164 (the_low_target): Use arm_arch_setup.
19165
12b42a12
DJ
191662009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19167
19168 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19169 the main thread again.
19170
ac8c974e
AR
191712009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19172
19173 Adding Neutrino gdbserver.
19174 * configure: Regenerated.
19175 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19176 * configure.srv (i[34567]86-*-nto*): New target.
19177 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19178 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19179 (nto_comctrl) [__QNX__]: New function.
19180 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19181
4424e0c3 191822009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19183
19184 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19185 srv_tgtobj.
19186
912cf4ba
PA
191872009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19188 Pedro Alves <pedro@codesourcery.com>
19189
19190 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19191 don't support CONTEXT_EXTENDED_REGISTERS.
19192 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19193 (the_low_target): Install them.
19194 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19195 failing with ERROR_PIPE_NOT_CONNECTED.
19196
aa5ca48f
DE
191972009-06-30 Doug Evans <dje@google.com>
19198 Pierre Muller <muller@ics.u-strasbg.fr>
19199
19200 Add h/w watchpoint support to x86-linux, win32-i386.
19201 * Makefile.in (SFILES): Add i386-low.c
19202 (i386_low_h): Define.
19203 (i386-low.o): Add dependencies.
19204 (linux-x86-low.o): Add i386-low.h dependency.
19205 (win32-i386-low.o): Ditto.
19206 * i386-low.c: New file.
19207 * i386-low.h: New file.
19208 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19209 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19210 * linux-low.c (linux_add_process): Initialize arch_private.
19211 (linux_remove_process): Free arch_private.
19212 (add_lwp): Initialize arch_private.
19213 (delete_lwp): Free arch_private.
19214 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19215 provided.
19216 * linux-low.h (process_info_private): New member arch_private.
19217 (lwp_info): New member arch_private.
19218 (linux_target_ops): New members new_process, new_thread,
19219 prepare_to_resume.
19220 (ptid_of): New macro.
19221 * linux-x86-low.c: Include stddef.h, i386-low.h.
19222 (arch_process_info): New struct.
19223 (arch_lwp_info): New struct.
19224 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19225 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19226 (i386_dr_low_get_status): New function.
19227 (x86_insert_point, x86_remove_point): New functions.
19228 (x86_stopped_by_watchpoint): New function.
19229 (x86_stopped_data_address): New function.
19230 (x86_linux_new_process, x86_linux_new_thread): New functions.
19231 (x86_linux_prepare_to_resume): New function.
19232 (the_low_target): Add entries for insert_point, remove_point,
19233 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19234 prepare_to_resume.
19235 * server.c (debug_hw_points): New global.
19236 (monitor_show_help): Document set debug-hw-points.
19237 (handle_query): Process "set debug-hw-points".
19238 * server.h (debug_hw_points): Declare.
19239 (paddress): Declare.
19240 * utils.c (NUMCELLS, CELLSIZE): New macros.
19241 (get_sell, xsnprintf, paddress): New functions.
19242 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19243 remove_point, stopped_by_watchpoint, stopped_data_address.
19244 * win32-i386-low.c: Include i386-low.h.
19245 (debug_reg_state): Replaces dr.
19246 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19247 (i386_dr_low_get_status): New function.
19248 (i386_insert_point, i386_remove_point): New functions.
19249 (i386_stopped_by_watchpoint): New function.
19250 (i386_stopped_data_address): New function.
19251 (i386_initial_stuff): Update.
19252 (get_thread_context,set_thread_context,i386_thread_added): Update.
19253 (the_low_target): Add entries for insert_point,
19254 remove_point, stopped_by_watchpoint, stopped_data_address.
19255 * win32-low.c (win32_insert_watchpoint): New function.
19256 (win32_remove_watchpoint): New function.
19257 (win32_stopped_by_watchpoint): New function.
19258 (win32_stopped_data_address): New function.
19259 (win32_target_ops): Add entries for insert_watchpoint,
19260 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19261 * win32-low.h (win32_target_ops): New members insert_point,
19262 remove_point, stopped_by_watchpoint, stopped_data_address.
19263
d993e290
PA
192642009-06-25 Pedro Alves <pedro@codesourcery.com>
19265
19266 * server.c (process_serial_event): Re-return unsupported, not
19267 error, if the type isn't recognized. Re-allow supporting only
19268 insert or remove packets. Also call require_running for
19269 breakpoints. Add missing break statement to default case. Tidy.
19270 * target.h (struct target_ops): Rename insert_watchpoint to
19271 insert_point, and remove_watchpoint to remove_point.
19272
19273 * linux-low.h (struct linux_target_ops): Likewise.
19274 * linux-low.c (linux_insert_watchpoint): Rename to ...
19275 (linux_insert_point): ... this. Adjust.
19276 (linux_remove_watchpoint): Rename to ...
19277 (linux_remove_point): ... this. Adjust.
19278 (linux_target_ops): Adjust.
19279 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19280 (cris_insert_point): ... this.
19281 (cris_remove_watchpoint): Rename to ...
19282 (cris_remove_point): ... this.
19283 (the_low_target): Adjust.
19284
0f54c268
PM
192852009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19286
19287 * server.c (handle_v_kill): Pass signal_pid to
19288 kill_inferior if multi_process is zero.
19289
c6314022
AR
192902009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19291
19292 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19293 * target.h (target_ops): Comment for *_watchpoint to make it clear
19294 the functions can get types '0' and '1'.
19295
4463ce24
AR
192962009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19297
19298 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19299 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19300 * regcache.c (get_regcache): Likewise.
19301 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19302 * win32-low.c (child_fetch_inferior_registers): Remove check for
19303 regno 0.
19304
cf8fd78b
PA
193052009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19306 Pedro Alves <pedro@codesourcery.com>
19307
19308 * target.h (struct target_ops) <supports_multi_process>: New
19309 callback.
19310 (target_supports_multi_process): New.
19311 * server.c (handle_query): Even if GDB reports support, only
19312 enable multi-process if the target also supports it. Report
19313 multi-process support only if the target backend supports it.
19314 * linux-low.c (linux_supports_multi_process): New function.
19315 (linux_target_ops): Install it as target_supports_multi_process
19316 callback.
19317
47c0c975
DE
193182009-05-24 Doug Evans <dje@google.com>
19319
e09875d4
DE
19320 Global renaming of find_thread_pid to find_thread_ptid.
19321 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19322 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19323 All callers updated.
19324
e27d73f6
DE
19325 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19326 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19327 directly.
19328
47c0c975
DE
19329 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19330 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19331 (linux_resume_one_lwp): Ditto.
19332
2acc282a
DE
193332009-05-23 Doug Evans <dje@google.com>
19334
19335 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19336 from struct inferior_list_entry * to struct lwp_info *.
19337 All callers updated.
19338
9f1036c1
DE
193392009-05-13 Doug Evans <dje@google.com>
19340
19341 * linux-x86-low.c: Don't include assert.h.
19342 (x86_siginfo_fixup): Use fatal, not assert.
19343 (x86_arch_setup): Fix comment.
19344
d0722149
DE
193452009-05-12 Doug Evans <dje@google.com>
19346
19347 Biarch support for i386/amd64 gdbserver.
19348 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19349 Add linux-x86-low.c.
19350 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19351 (linux-x86-low.o): Add.
19352 * linux-x86-64-low.c: Delete.
19353 * linux-i386-low.c: Delete.
19354 * linux-x86-low.c: New file.
19355 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19356 linux-x86-low.o.
19357 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19358 linux-x86-low.o.
19359 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19360 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19361 (linux_child_pid_to_exec_file): New function.
19362 (elf_64_header_p, elf_64_file_p): New functions.
19363 (siginfo_fixup): New function.
19364 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19365 give target a chance to convert layout.
19366 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19367 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19368
fdeb2a12
DE
193692009-05-07 Doug Evans <dje@google.com>
19370
19371 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19372 (regsets_store_inferior_registers): Ditto.
19373
a6dbe5df
PA
193742009-05-06 Pedro Alves <pedro@codesourcery.com>
19375
19376 PR server/10048
19377
19378 * linux-low.c (must_set_ptrace_flags): Delete.
19379 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19380 of the global.
19381 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19382 `lwp->must_set_ptrace_flags' instead.
ba42693b 19383 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19384 (linux_wait_1): ... not here.
19385
5091eb23
DE
193862009-04-30 Doug Evans <dje@google.com>
19387
9f767825
DE
19388 * inferiors.c (started_inferior_callback): New function.
19389 (attached_inferior_callback): New function.
19390 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19391 * server.c (print_started_pid, print_attached_pid): New functions.
19392 (detach_or_kill_for_exit): New function.
19393 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19394 * server.h (have_started_inferiors_p): Declare.
19395 (have_attached_inferiors_p): Declare.
19396
5091eb23
DE
19397 * inferiors.c (remove_process): Fix memory leak, free process.
19398 * linux-low.c (linux_remove_process): New function.
19399 (linux_kill): Call it instead of remove_process.
19400 (linux_detach, linux_wait_1): Ditto.
19401
155c8968
PA
194022009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19403
19404 * configure.srv: Add x86 Windows CE target.
19405
7fe519cb
UW
194062009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19407
19408 * inferiors.c (get_thread_process): Make global.
19409 * server.h (get_thread_process): Add prototype.
19410 * thread-db.c (find_one_thread): Use get_thread_process
19411 instead of current_process.
19412 (thread_db_get_tls_address): Do not crash if called when
19413 thread layer is not yet initialized.
19414
5472f405
UW
194152009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19416
19417 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19418 * spu-low.c (current_tid): Rename to ...
19419 (current_ptid): ... this.
19420 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19421 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19422 ptid_get_lwp (current_ptid) instead of current_tid.
19423 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19424 instead of current_tid. Use find_process_pid to verify pid
19425 argument is valid. Pass proper argument to remove_process.
19426 (spu_thread_alive): Compare current_ptid instead of current_tid.
19427 (spu_resume): Likewise.
19428
55ac2b99
PA
194292009-04-02 Pedro Alves <pedro@codesourcery.com>
19430
19431 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19432 variable.
19433
95954743
PA
194342009-04-01 Pedro Alves <pedro@codesourcery.com>
19435
19436 Implement the multiprocess extensions, and add linux multiprocess
19437 support.
19438
19439 * server.h (ULONGEST): Declare.
19440 (struct ptid, ptid_t): New.
19441 (minus_one_ptid, null_ptid): Declare.
19442 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19443 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19444 (struct inferior_list_entry): Change `id' type from unsigned from
19445 to ptid_t.
19446 (struct sym_cache, struct breakpoint, struct
19447 process_info_private): Forward declare.
19448 (struct process_info): Declare.
19449 (current_process): Declare.
19450 (all_processes): Declare.
19451 (initialize_inferiors): Declare.
19452 (add_thread): Adjust to use ptid_t.
19453 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19454 (add_process, remove_process, find_thread_pid): Declare.
19455 (find_inferior_id): Adjust to use ptid_t.
19456 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19457 (multi_process): Declare.
19458 (push_event): Adjust to use ptid_t.
19459 (read_ptid, write_ptid): Declare.
19460 (prepare_resume_reply): Adjust to use ptid_t.
19461 (clear_symbol_cache): Declare.
19462 * inferiors.c (all_processes): New.
19463 (null_ptid, minus_one_ptid): New.
19464 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19465 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19466 (add_thread): Change unsigned long to ptid. Remove gdb_id
19467 parameter. Adjust.
19468 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19469 (gdb_id_to_thread): Rename to ...
19470 (find_thread_pid): ... this. Change unsigned long to ptid.
19471 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19472 (loaded_dll, pull_pid_from_list): Adjust.
19473 (add_process, remove_process, find_process_pid)
19474 (get_thread_process, current_process, initialize_inferiors): New.
19475 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19476 (struct target_waitstatus) <related_pid>: Ditto.
19477 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19478 return type to int.
19479 (struct target_ops) <join>: Add `pid' argument.
19480 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19481 (struct target_ops) <wait>: Add `ptid' field. Change return type
19482 to ptid.
19483 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19484 (mywait): Add `ptid' argument. Change return type to ptid_t.
19485 (target_pid_to_str): Declare.
19486 * target.c (set_desired_inferior): Adjust to use ptids.
19487 (mywait): Add new `ptid' argument. Adjust.
19488 (target_pid_to_str): New.
19489 * mem-break.h (free_all_breakpoints): Declare.
19490 * mem-break.c (breakpoints): Delelete.
19491 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19492 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19493 to use per-process breakpoint list.
19494 (free_all_breakpoints): New.
19495 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19496 (symbol_cache, all_symbols_looked_up): Delete.
19497 (hexchars): New.
19498 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19499 read_ptid): New.
19500 (prepare_resume_reply): Change ptid argument's type from unsigned
19501 long to ptid_t. Adjust. Implement W;process and X;process.
19502 (free_sym_cache, clear_symbol_cache): New.
19503 (look_up_one_symbol): Adjust to per-process symbol cache. *
19504 * server.c (cont_thread, general_thread, step_thread): Change type
19505 to ptid_t.
19506 (attached): Delete.
19507 (multi_process): New.
19508 (last_ptid): Change type to ptid_t.
19509 (struct vstop_notif) <ptid>: Change type to ptid_t.
19510 (queue_stop_reply, push_event): Change `ptid' argument's type to
19511 ptid_t.
19512 (discard_queued_stop_replies): Add `pid' argument.
19513 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19514 changes. Don't reference the `attached' global.
19515 (attach_inferior): Adjust to mywait interface changes.
19516 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19517 features. Handle and report "multiprocess+". Handle
19518 "qAttached:PID".
19519 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19520 changes.
19521 (handle_v_kill): New.
19522 (handle_v_stopped): Adjust to use target_pid_to_str.
19523 (handle_v_requests): Allow multiple attaches and runs when
19524 multiprocess extensions are in effect. Handle "vKill".
19525 (myresume): Adjust to use ptids.
19526 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19527 (handle_status): Adjust to discard_queued_stop_replies interface
19528 change.
19529 (first_thread_of, kill_inferior_callback)
19530 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19531 (main): Call initialize_inferiors. Adjust to use ptids, killing
19532 and detaching from all inferiors. Handle multiprocess packet
19533 variants.
19534 * linux-low.h: Include gdb_proc_service.h.
19535 (struct process_info_private): New.
19536 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19537 <lwpid_of>: Use ptid_get_lwp.
19538 (get_lwp_thread): Adjust.
19539 (struct lwp_info): Add `dead' member.
19540 (find_lwp_pid): Declare.
19541 * linux-low.c (thread_db_active): Delete.
19542 (new_inferior): Adjust comment.
19543 (inferior_pid): Delete.
19544 (linux_add_process): New.
19545 (handle_extended_wait): Adjust.
19546 (add_lwp): Change unsigned long to ptid.
19547 (linux_create_inferior): Add process to processes table. Adjust
19548 to use ptids. Don't set new_inferior here.
19549 (linux_attach_lwp): Rename to ...
19550 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19551 it. Adjust to use ptids.
19552 (linux_attach_lwp): New.
19553 (linux_attach): Add process to processes table. Don't set
19554 new_inferior here.
19555 (struct counter): New.
19556 (second_thread_of_pid_p, last_thread_of_process_p): New.
19557 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19558 multiple processes.
19559 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19560 processes. Remove process from process table.
19561 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19562 to multiple processes.
19563 (any_thread_of): New.
19564 (linux_detach): Add `pid' argument, and handle it. Remove process
19565 from processes table.
19566 (linux_join): Add `pid' argument. Handle it.
19567 (linux_thread_alive): Change unsighed long argument to ptid_t.
19568 Consider dead lwps as not being alive.
19569 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19570 threads we're not interested in.
19571 (same_lwp, find_lwp_pid): New.
19572 (linux_wait_for_lwp): Change `pid' argument's type from int to
19573 ptid_t. Adjust.
19574 (linux_wait_for_event): Rename to ...
19575 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19576 from int to ptid_t. Adjust.
19577 (linux_wait_for_event): New.
19578 (linux_wait_1): Add `ptid' argument. Change return type to
19579 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19580 that exit from the process table.
19581 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19582 Adjust.
19583 (mark_lwp_dead): New.
19584 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19585 stopping all threads, mark its main lwp as dead.
19586 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19587 ptids.
19588 (fetch_register, usr_store_inferior_registers)
19589 (regsets_fetch_inferior_registers)
19590 (regsets_store_inferior_registers, linux_read_memory)
19591 (linux_write_memory): Inline `inferior_pid'.
19592 (linux_look_up_symbols): Adjust to use per-process
19593 `thread_db_active'.
19594 (linux_request_interrupt): Adjust to use ptids.
19595 (linux_read_auxv): Inline `inferior_pid'.
19596 (initialize_low): Don't reference thread_db_active.
19597 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19598 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19599 (ps_getpid): Return the pid of the current inferior.
19600 * thread-db.c (proc_handle, thread_agent): Delete.
19601 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19602 per-process data.
19603 (find_one_thread): Change argument type to ptid_t. Adjust to
19604 per-process data.
19605 (maybe_attach_thread): Adjust to per-process data and ptids.
19606 (thread_db_find_new_threads): Ditto.
19607 (thread_db_init): Ditto.
19608 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19609 processes table. Adjust to use ptids.
19610 (spu_kill, spu_detach): Adjust interface. Remove process from
19611 processes table.
19612 (spu_join, spu_thread_alive): Adjust interface.
19613 (spu_wait): Adjust interface. Remove process from processes
19614 table. Adjust to use ptids.
19615 * win32-low.c (current_inferior_tid): Delete.
19616 (current_inferior_ptid): New.
19617 (debug_event_ptid): New.
19618 (thread_rec): Take a ptid. Adjust.
19619 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19620 (child_delete_thread): Ditto.
19621 (do_initial_child_stuff): Add `attached' argument. Add process to
19622 processes table.
19623 (child_fetch_inferior_registers, child_store_inferior_registers):
19624 Adjust.
19625 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19626 (win32_attach): Pass 1 to do_initial_child_stuff.
19627 (win32_kill): Adjust interface. Remove process from processes
19628 table.
19629 (win32_detach): Ditto.
19630 (win32_join): Adjust interface.
19631 (win32_thread_alive): Take a ptid.
19632 (win32_resume): Adjust to use ptids.
19633 (get_child_debug_event): Ditto.
19634 (win32_wait): Adjust interface. Remove exiting process from
19635 processes table.
19636
bd99dc85
PA
196372009-04-01 Pedro Alves <pedro@codesourcery.com>
19638
19639 Non-stop mode support.
19640
19641 * server.h (non_stop): Declare.
19642 (gdb_client_data, handler_func): Declare.
19643 (delete_file_handler, add_file_handler, start_event_loop):
19644 Declare.
19645 (handle_serial_event, handle_target_event, push_event)
19646 (putpkt_notif): Declare.
19647 * target.h (enum resume_kind): New.
19648 (struct thread_resume): Replace `step' field by `kind' field.
19649 (TARGET_WNOHANG): Define.
19650 (struct target_ops) <wait>: Add `options' argument.
19651 <supports_non_stop, async, start_non_stop>: New fields.
19652 (target_supports_non_stop, target_async): New.
19653 (start_non_stop): Declare.
19654 (mywait): Add `options' argument.
19655 * target.c (mywait): Add `options' argument. Print child exit
19656 notifications here.
19657 (start_non_stop): New.
19658 * server.c (non_stop, own_buf, mem_buf): New globals.
19659 (struct vstop_notif): New.
19660 (notif_queue): New global.
19661 (queue_stop_reply, push_event, discard_queued_stop_replies)
19662 (send_next_stop_reply): New.
19663 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19664 interface changes.
19665 (attach_inferior): In non-stop mode, don't wait for the target
19666 here.
19667 (handle_general_set): Handle QNonStop.
19668 (handle_query): When handling qC, return the current general
19669 thread, instead of the first thread of the list.
19670 (handle_query): If the backend supports non-stop mode, include
19671 QNonStop+ in the qSupported query response.
19672 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19673 and non-stop mode.
19674 (handle_v_attach, handle_v_run): Handle non-stop mode.
19675 (handle_v_stopped): New.
19676 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19677 (myresume): Adjust to use resume_kind. Handle non-stop.
19678 (queue_stop_reply_callback): New.
19679 (handle_status): Handle non-stop mode.
19680 (main): Clear non_stop flag on reconnection. Use the event-loop.
19681 Refactor serial protocol handling from here ...
19682 (process_serial_event): ... to this new function. When GDB
19683 selects any thread, select one here. In non-stop mode, wait until
19684 GDB acks all pending events before exiting.
19685 (handle_serial_event, handle_target_event): New.
19686 * remote-utils.c (remote_open): Install remote_desc in the event
19687 loop.
19688 (remote_close): Remove remote_desc from the event loop.
19689 (putpkt_binary): Rename to...
19690 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19691 (putpkt_binary): New as wrapper around putpkt_binary_1.
19692 (putpkt_notif): New.
19693 (prepare_resume_reply): In non-stop mode, don't change the
19694 general_thread.
19695 * event-loop.c: New.
19696 * Makefile.in (OBJ): Add event-loop.o.
19697 (event-loop.o): New rule.
19698
19699 * linux-low.h (pid_of): Moved here.
19700 (lwpid_of): New.
19701 (get_lwp_thread): Use lwpid_of.
19702 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19703 * linux-low.c (pid_of): Delete.
19704 (inferior_pid): Use lwpid_of.
19705 (linux_event_pipe): New.
19706 (target_is_async_p): New.
19707 (delete_lwp): New.
19708 (handle_extended_wait): Use lwpid_of.
19709 (add_lwp): Don't set lwpid field.
19710 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19711 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19712 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19713 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19714 first. Adjust to linux_wait_for_event interface changes. Use
19715 lwpid_of.
19716 (linux_detach): Don't delete the main lwp here.
19717 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19718 (status_pending_p): Don't consider explicitly suspended lwps.
19719 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19720 pointer. Add OPTIONS argument. Change return type to int. Use
19721 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19722 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19723 pointer. Add status pointer argument. Return a pid instead of a
19724 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19725 changes. In non-stop mode, don't switch to a random thread.
19726 (linux_wait): Rename to...
19727 (linux_wait_1): ... this. Add target_options argument, and handle
19728 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19729 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19730 clean exit and signal exit code. Don't stop all threads in
19731 non-stop mode. In all-stop mode, only stop all threads when
19732 reporting a stop to GDB. Handle explicit thread stop requests.
19733 (async_file_flush, async_file_mark): New.
19734 (linux_wait): New.
19735 (send_sigstop): Use lwpid_of.
19736 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19737 interface changes. In non-stop mode, don't switch to a random
19738 thread.
19739 (linux_resume_one_lwp): Use lwpid_of.
19740 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19741 (linux_resume_one_thread): ... this. Handle resume_stop. In
19742 non-stop mode, don't look for pending flag in all threads.
19743 (resume_status_pending_p): Don't consider explicitly suspended
19744 threads.
19745 (my_waitpid): Reimplement. Emulate __WALL.
19746 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19747 Use lwpid_of.
19748 (sigchld_handler, linux_supports_non_stop, linux_async)
19749 (linux_start_non_stop): New.
19750 (linux_target_ops): Register linux_supports_non_stop, linux_async
19751 and linux_start_non_stop.
19752 (initialize_low): Install SIGCHLD handler.
19753 * thread-db.c (thread_db_create_event, find_one_thread)
19754 (thread_db_get_tls_address): Use lwpid_of.
19755 * win32-low.c (win32_detach): Adjust to use resume_kind.
19756 (win32_wait): Add `options' argument.
19757 * spu-low.c (spu_resume): Adjust to use resume_kind.
19758 (spu_wait): Add `options' argument.
19759
5b1c542e
PA
197602009-04-01 Pedro Alves <pedro@codesourcery.com>
19761
19762 Decouple target code from remote protocol.
19763
19764 * target.h (enum target_waitkind): New.
19765 (struct target_waitstatus): New.
19766 (struct target_ops) <wait>: Return an unsigned long. Take a
19767 target_waitstatus pointer instead of a char pointer.
19768 (mywait): Likewise.
19769 * target.c (mywait): Change prototype to return an unsigned long.
19770 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19771 * server.h (thread_from_wait, old_thread_from_wait): Delete
19772 declarations.
19773 (prepare_resume_reply): Change prototype to take a
19774 target_waitstatus.
19775 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19776 (last_status, last_ptid): New.
19777 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19778 pid instead of a signal.
19779 (attach_inferior): Remove "status" and "signal" parameters.
19780 Adjust.
19781 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19782 not as an address.
19783 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19784 (handle_v_requests, myresume): Remove "status" and "signal"
19785 parameters. Adjust.
19786 (handle_status): New.
19787 (main): Delete local `status'. Adjust.
19788 * remote-utils.c: Include target.h.
19789 (prepare_resume_reply): Change prototype to take a
19790 target_waitstatus. Adjust.
19791
19792 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19793 interface.
19794 * spu-low.c (spu_wait): Adjust.
19795 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19796 Delete.
19797 (win32_wait): Adjust.
19798
2bd7c093
PA
197992009-04-01 Pedro Alves <pedro@codesourcery.com>
19800
19801 * target.h (struct thread_resume): Delete leave_stopped member.
19802 (struct target_ops): Add a `n' argument to the `resume' callback.
19803 * server.c (start_inferior): Adjust.
19804 (handle_v_cont, myresume): Adjust.
19805 * linux-low.c (check_removed_breakpoint): Adjust to resume
19806 interface change, and to removed leave_stopped field.
19807 (resume_ptr): Delete.
19808 (struct thread_resume_array): New.
19809 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19810 resume interface change.
19811 (linux_continue_one_thread, linux_queue_one_thread)
19812 (resume_status_pending_p): Check if the resume field is NULL
19813 instead of checking the leave_stopped member.
19814 (linux_resume): Adjust to the target resume interface change.
19815 * spu-low.c (spu_resume): Adjust to the target resume interface
19816 change.
19817 * win32-low.c (win32_detach, win32_resume): Ditto.
19818
c35fafde
PA
198192009-04-01 Pedro Alves <pedro@codesourcery.com>
19820
19821 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19822 flag.
19823 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19824 pending.
19825 (linux_continue_one_thread): Only preserve the stepping flag if
19826 there's a pending breakpoint.
19827
0a59d50b
PA
198282009-03-31 Pedro Alves <pedro@codesourcery.com>
19829
19830 * server.c (main): After the inferior having exited, call
19831 remote_close before exiting gdbserver.
19832
f04c6d38
TJB
198332009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19834
19835 Fix size of FPSCR in Power 7 processors.
19836 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19837 (PPC_FEATURE_HAS_DFP): New #define.
19838 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19839 size of the FPSCR.
19840
78e5cee6
PA
198412009-03-23 Pedro Alves <pedro@codesourcery.com>
19842
19843 * server.c (handle_query) Whitespace and formatting.
19844
1b3f6016
PA
198452009-03-22 Pedro Alves <pedro@codesourcery.com>
19846
19847 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19848 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19849 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19850 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19851 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19852 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19853 Makefile.in, configure.ac: Fix whitespace throughout.
19854 * configure: Regenerate.
19855
a07b2135
PA
198562009-03-22 Pedro Alves <pedro@codesourcery.com>
19857
19858 * inferiors.c (find_inferior): Make it safe for the callback
19859 function to delete the currently iterated inferior.
19860
67cc2626
PA
198612009-03-22 Pedro Alves <pedro@codesourcery.com>
19862
19863 * Makefile.in (linuw_low_h): Move higher.
19864 (thread-db.o): Depend on $(linux_low_h).
19865
54a0b537
PA
198662009-03-17 Pedro Alves <pedro@codesourcery.com>
19867
19868 Rename "process" to "lwp" throughout.
19869
19870 * linux-low.c (all_processes): Rename to...
19871 (all_lwps): ... this.
19872 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19873 (add_process): Rename to ...
19874 (add_lwp): ... this. Adjust.
19875 (linux_create_inferior): Adjust.
19876 (linux_attach_lwp): Adjust.
19877 (linux_attach): Adjust.
19878 (linux_kill_one_process): Rename to ...
19879 (linux_kill_one_lwp): ... this. Adjust.
19880 (linux_kill): Adjust.
19881 (linux_detach_one_process): Rename to ...
19882 (linux_detach_one_lwp): ... this. Adjust.
19883 (linux_detach): Adjust.
19884 (check_removed_breakpoint): Adjust.
19885 (status_pending_p): Adjust.
19886 (linux_wait_for_process): Rename to ...
19887 (linux_wait_for_lwp): ... this. Adjust.
19888 (linux_wait_for_event): Adjust.
19889 (send_sigstop): Adjust.
19890 (wait_for_sigstop): Adjust.
19891 (stop_all_processes): Rename to ...
19892 (stop_all_lwps): ... this.
19893 (linux_resume_one_process): Rename to ...
19894 (linux_resume_one_lwp): ... this. Adjust.
19895 (linux_set_resume_request, linux_continue_one_thread)
19896 (linux_queue_one_thread, resume_status_pending_p)
19897 (usr_store_inferior_registers, regsets_store_inferior_registers)
19898 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19899 Adjust.
19900 * linux-low.h (get_process): Rename to ...
19901 (get_lwp): ... this. Adjust.
19902 (get_thread_process): Rename to ...
19903 (get_thread_lwp): ... this. Adjust.
19904 (get_process_thread): Rename to ...
19905 (get_lwp_thread): ... this. Adjust.
19906 (struct process_info): Rename to ...
19907 (struct lwp_info): ... this.
19908 (all_processes): Rename to ...
19909 (all_lwps): ... this.
19910 * proc-service.c (ps_lgetregs): Adjust.
19911 * thread-db.c (thread_db_create_event, find_one_thread)
19912 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19913
0b16c5cf
PA
199142009-03-14 Pedro Alves <pedro@codesourcery.com>
19915
19916 * server.c (handle_query): Handle "qAttached".
19917
32de4b9d
NS
199182009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19919
19920 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19921 GPLv3, update license URL.
19922
2aecd87f
DE
199232009-03-01 Doug Evans <dje@google.com>
19924
93efd302 19925 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19926 (server_h): Add gdb_signals.h.
19927 (signals.o): Update.
19928 * server.h (target_signal_from_host,target_signal_to_host_p)
19929 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19930
86b1f9c5
PM
199312009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19932
19933 * remote-utils.c (getpkt): Also generate remote-debug
19934 information if noack_mode is set.
19935
4aa995e1
PA
199362009-02-06 Pedro Alves <pedro@codesourcery.com>
19937
19938 * server.c (handle_query): Report qXfer:siginfo:read and
19939 qXfer:siginfo:write as supported and handle them.
19940 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19941 * linux-low.c (linux_xfer_siginfo): New.
19942 (linux_target_ops): Set it.
19943
62709adf
PA
199442009-01-26 Pedro Alves <pedro@codesourcery.com>
19945
19946 * server.c (gdbserver_usage): Mention --remote-debug.
19947 (main): Accept '--remote-debug' switch.
19948
aef93bd7
DE
199492009-01-18 Doug Evans <dje@google.com>
19950
19951 * regcache.c (new_register_cache): No need to check result of xcalloc.
19952 * server.c (handle_search_memory): Back out calls to xmalloc,
19953 result is checked and error is returned to user upon failure.
19954 (handle_query): Ditto. Add more checks for result of malloc.
19955 (handle_v_cont): Check result of malloc, report error back to
19956 user upon failure.
19957 (handle_v_run): Ditto. Call freeargv.
19958 * server.h (freeargv): Declare.
19959 * utils.c (freeargv): New fn.
19960
54363045
DE
199612009-01-15 Doug Evans <dje@google.com>
19962
f626972c
DE
19963 * gdbreplay.c (perror_with_name): Make arg const char *.
19964 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19965 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19966 * utils.c (perror_with_name): Make arg const char *.
54363045 19967
18aae699
PA
199682009-01-14 Pedro Alves <pedro@codesourcery.com>
19969
19970 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19971 when handling a EXIT_PROCESS_DEBUG_EVENT.
19972
ff703abe
JB
199732009-01-06 Joel Brobecker <brobecker@adacore.com>
19974
19975 * gdbreplay.c (gdbreplay_version): Update copyright year.
19976 * server.c (gdbserver_version): Likewise.
19977
f21cc1a2 199782009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19979
19980 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19981 (handle_extended_wait): Improve comment.
0e21c1ec 19982
bca929d3
DE
199832008-12-13 Doug Evans <dje@google.com>
19984
19985 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19986 * server.h (ATTR_MALLOC): New macro.
19987 (xmalloc,xcalloc,xstrdup): Declare.
19988 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19989 * inferiors.c: Ditto.
19990 * linux-low.c: Ditto.
19991 * mem-break.c: Ditto.
19992 * regcache.c: Ditto.
19993 * remote-utils.c: Ditto.
19994 * server.c: Ditto.
19995 * target.c: Ditto.
19996 * win32-low.c: Ditto.
19997
97438e3f
DE
199982008-12-12 Doug Evans <dje@google.com>
19999
896c7fbb
DE
20000 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20001 in debugging printf.
20002
97438e3f
DE
20003 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20004
e3b886f8
DE
200052008-12-09 Doug Evans <dje@google.com>
20006
20007 * linux-low.h (struct process_info): Delete member tid, unused.
20008 * thread-db.c (find_one_thread): Update.
20009 (maybe_attach_thread): Update.
20010
07e059b5
VP
200112008-12-02 Pedro Alves <pedro@codesourcery.com>
20012
889bf7c5
PA
20013 * target.h (struct target_ops): Add qxfer_osdata member.
20014 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20015 and dirent.h.
20016 (linux_qxfer_osdata): New functions.
20017 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20018 callback.
20019 * server.c (handle_query): Handle "qXfer:osdata:read:".
20020 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20021 (buffer_xml_printf): New functions.
20022 * server.h (struct buffer): New.
20023 (buffer_grow_str, buffer_grow_str0): New macros.
20024 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20025 (buffer_xml_printf): Declare.
07e059b5 20026
4cab47ab
DE
200272008-11-24 Doug Evans <dje@google.com>
20028
20029 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20030
f142445f
DJ
200312008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20032
20033 * server.c (handle_v_run): Always use the supplied argument list.
20034
d0107bb6 200352008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20036
d0107bb6
BW
20037 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20038 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20039
2c4ad781
TJB
200402008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20041
20042 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20043 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20044 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20045 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20046 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20047 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20048 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20049 XML target descriptions.
20050 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20051 when inferior is running on an ISA 2.05 or later processor. Add
20052 special case to return offset for full 64-bit slot of FPSCR when
20053 in 32-bits.
20054
dfb64f85
DJ
200552008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20056
20057 * Makefile.in (SFILES, clean): Added sparc64 files.
20058 (reg-sparc64.o, reg-sparc64.c): New.
20059 * configure.srv (sparc*-*-linux*): New configuration.
20060 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20061 syscall arguments for SPARC.
20062 (regsets_store_inferior_registers): Likewise.
20063 * linux-sparc-low.c: New file.
20064
66b6e1dd
DE
200652008-10-21 Doug Evans <dje@google.com>
20066
20067 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20068 (READLINE_DIR,READLINE_DEP): Delete.
20069 (INTERNAL_CFLAGS): Update.
20070 (LINTFLAGS): Update.
20071
9b710a42
PA
200722008-10-10 Pedro Alves <pedro@codesourcery.com>
20073
20074 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20075 whole argv from the last run, not just argv[0].
20076
5822d809
PA
200772008-09-08 Pedro Alves <pedro@codesourcery.com>
20078
20079 * regcache.c (new_register_cache): Return NULL if the register
20080 cache size isn't known yet.
20081 (free_register_cache): Avoid dereferencing a NULL regcache.
20082
74aac56f
DJ
200832008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20084
20085 * configure.srv: Merge MIPS and MIPS64.
20086
400b20f5
MR
200872008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20088
20089 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20090
677c5bb1
LM
200912008-08-18 Luis Machado <luisgpm@br.ibm.com>
20092
20093 * Makefile.in: Add required vsx dependencies.
20094
20095 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20096 Declare init_registers_powerpc_vsx32l.
20097 Declare init_registers_powerpc_vsx64l.
20098 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20099 (ppc_arch_setup): Check for VSX in hwcap.
20100 (ppc_fill_vsxregset): New function.
20101 (ppc_store_vsxregset): New function.
20102 Add new VSX entry in regset_info target_regsets.
20103
20104 * configure.srv: Add new VSX dependencies.
20105
a6f3e723
SL
201062008-08-12 Pedro Alves <pedro@codesourcery.com>
20107
20108 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20109 (remote_open): Set or clear transport_is_reliable.
20110 (putpkt_binary): Don't expect acks in noack mode.
20111 (getpkt): Don't send ack/nac in noack mode.
20112 * server.c (handle_general_set): Handle QStartNoAckMode.
20113 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20114 qSupported.
20115 (main): Reset noack_mode on every connection.
20116 * server.h (noack_mode): Declare.
20117
a417dc56
RW
201182008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20119
20120 * Makefile.in (GDBREPLAY_OBS): New variable.
20121 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20122
3221518c
UW
201232008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20124 Daniel Jacobowitz <dan@codesourcery.com>
20125
20126 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20127 (usr_store_inferior_registers): Likewise.
20128 (regsets_store_inferior_registers): Likewise.
20129
ec56be1b
PA
201302008-07-31 Rolf Jansen <rj@surtec.com>
20131 Pedro Alves <pedro@codesourcery.com>
20132
20133 * configure.ac: Check for memmem declaration.
20134 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20135 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20136 (disable_packet_qfThreadInfo): Unconditionally compile.
20137 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20138 * configure, config.in: Regenerate.
20139
2fe5e3ff
DE
201402008-07-28 Doug Kwan <dougkwan@google.com>
20141
20142 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20143 (linux_write_memory): Remove declaration of errno.
20144
836acd6d
UW
201452008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20146
20147 * linux-low.c (handle_extended_wait): Do not use "status"
20148 variable uninitialized.
20149
aeba519e
PA
201502008-07-07 Pedro Alves <pedro@codesourcery.com>
20151
20152 * server.c (handle_v_attach): Inhibit reporting dll changes.
20153
db42f210
PA
201542008-06-27 Pedro Alves <pedro@codesourcery.com>
20155
20156 * remote-utils.c (prepare_resume_reply): If requested, don't
20157 output "thread:TID" in the T stop reply.
20158
20159 * server.c (disable_packet_vCont, disable_packet_Tthread)
20160 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20161 (handle_query): If requested, disable support for qC, qfThreadInfo
20162 and qsThreadInfo.
20163 (handle_v_requests): If requested, disable support for vCont.
20164 (gdbserver_show_disableable): New.
20165 (main): Handle --disable-packet and --disable-packet=LIST.
20166
20167 * server.h (disable_packet_vCont, disable_packet_Tthread)
20168 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20169
8e4c5421
CD
201702008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20171
20172 * server.c (gdbserver_usage): Mention --version.
20173
6e23a804
DJ
201742008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20175
20176 * Makefile.in (gdbreplay.o): New rule.
20177
90aa6a40
JM
201782008-06-06 Joseph Myers <joseph@codesourcery.com>
20179
20180 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20181 message, not gdbserver.
20182
c16158bc 201832008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20184 Nathan Sidwell <nathan@codesourcery.com>
20185 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20186
20187 * acinclude.m4: Include ../../config/acx.m4.
20188 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20189 * configure, config.in: Regenerate.
20190 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20191 * server.c (gdbserver_version): Print PKGVERSION.
20192 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20193 (main): Adjust gdbserver_usage calls.
20194 * gdbreplay.c (version, host_name): Add declarations.
20195 (gdbreplay_version, gdbreplay_usage): New.
20196 (main): Accept --version and --help options.
20197
aeb75bf5
DJ
201982008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20199
20200 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20201 (arm_breakpoint_at): Handle Thumb.
20202 (the_low_target): Add comment.
20203
76b233dd
UW
202042008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20205
20206 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20207
08388c79
DE
202082008-05-09 Doug Evans <dje@google.com>
20209
a3c83fae
DE
20210 * server.h (decode_search_memory_packet): Declare.
20211 * remote-utils.c (decode_search_memory_packet): New fn.
20212 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20213 (handle_search_memory): New fn.
20214 (handle_query): Process qSearch:memory packets.
20215
bb9c3d36
UW
202162008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20217
20218 * regcache.c (registers_length): Remove.
20219 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20220 full register packet.
20221 * regcache.h (registers_length): Remove prototype.
20222 * server.h (PBUFSIZ): Define to 16384.
20223
7284e1be
UW
202242008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20225
20226 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20227 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20228 powerpc-64l.o, and powerpc-altivec64l.o.
20229 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20230 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20231 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20232 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20233 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20234 to srv_xmlfiles.
20235
20236 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20237 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20238 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20239 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20240 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20241 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20242 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20243 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20244 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20245 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20246 (clean): Update.
20247
20248 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20249 (init_registers_powerpc_32l): ... this new prototype.
20250 (init_registers_powerpc_32): Remove, replace by ...
20251 (init_registers_powerpc_altivec32l): ... this new prototype.
20252 (init_registers_powerpc_e500): Remove, replace by ...
20253 (init_registers_powerpc_e500l): ... this new prototype.
20254 (init_registers_ppc64): Remove, replace by ...
20255 (init_registers_powerpc_64l): ... this new prototype.
20256 (init_registers_powerpc_64): Remove, replace by ...
20257 (init_registers_powerpc_altivec64l): ... this new prototype.
20258 (ppc_num_regs): Set to 73.
20259 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20260 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20261 (ppc_cannot_store_register): Handle orig_r3 and trap.
20262 (ppc_arch_setup): Update init_registers_... calls.
20263 (ppc_fill_gregset): Handle orig_r3 and trap.
20264
20265 * inferiors.c (clear_inferiors): Reset current_inferior.
20266
fdc59709
PB
202672008-04-23 Paolo Bonzini <bonzini@gnu.org>
20268
889bf7c5
PA
20269 * acinclude.m4: Add override.m4.
20270 * configure: Regenerate.
fdc59709 20271
c9b2f845
UW
202722008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20273
20274 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20275 initial call to init_register_ppc64.
20276
550512b8
UW
202772008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20278
43aaf8b6
PA
20279 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20280 single powerpc*-*-linux* case.
550512b8
UW
20281 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20282
b6430ec3
UW
202832008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20284
20285 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20286 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20287 from reg_xmlfiles.
20288 * linux-ppc-low.c: Include <elf.h>.
20289 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20290 (ppc_hwcap): New global variable.
20291 (ppc_regmap): Remove __SPE__ #ifdef sections.
20292 (ppc_regmap_e500): New global variable.
20293 (ppc_cannot_store_register): Update __SPE__ special case.
20294 (ppc_get_hwcap): New function.
20295 (ppc_arch_setup): Use it to determine whether inferior supports
20296 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20297 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20298 Do not access registers if target does not support AltiVec.
20299 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20300 Do not access registers if target does not support SPE.
20301 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20302
52fa2412
UW
203032008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20304
20305 * linux-low.c (disabled_regsets, num_regsets): New.
20306 (use_regsets_p): Delete.
20307 (linux_wait_for_process): Clear disabled_regsets.
20308 (regsets_fetch_inferior_registers): Check and set it.
20309 (regsets_store_inferior_registers): Likewise.
20310 (linux_fetch_registers, linux_store_registers): Do not use
20311 use_regsets_p.
20312 (initialize_low): Allocate disabled_regsets.
20313
e28b3332
DJ
203142008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20315
20316 * Makefile.in (LIBOBJS): New.
20317 (OBS): Use LIBOBJS.
20318 (memmem.o): New rule.
20319 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20320 * configure: Regenerated.
20321
4536995d
UW
203222008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20323
20324 * server.c (handle_query): Never return "unsupported" for
20325 qXfer:features:read queries.
20326
221c031f
UW
203272008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20328
20329 * server.c (get_features_xml): Fix inverted condition.
20330 (handle_query): Always support qXfer:feature:read.
20331
ccd213ac
DJ
203322008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20333
20334 * server.c (wrapper_argv): New.
20335 (start_inferior): Handle wrapper_argv. If set, expect an extra
20336 trap.
20337 (gdbserver_usage): Document --wrapper.
20338 (main): Parse --wrapper.
20339
6fe305f7
UW
203402008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20341
20342 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20343 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20344 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20345 (ppc_set_pc): Likewise.
20346 (ppc_arch_setup): New function.
20347 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20348 of collect_register.
889bf7c5 20349 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20350
5b0a002e
UW
203512008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20352
20353 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20354 instead of linux-ppc64-low.o.
20355 * linux-ppc64-low.c: Remove file.
20356 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20357 (linux-ppc64-low.o): Remove rule.
20358
20359 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20360 (init_registers_powerpc_64): Likewise.
20361 (ppc_regmap): Conditionally define depending on __powerpc64__.
20362 (ppc_cannot_store_register): Do not special-case "fpscr" when
20363 compiled on __powerpc64__.
20364 (ppc_collect_ptrace_register): New function.
20365 (ppc_supply_ptrace_register): New function.
20366 (ppc_breakpoint): Change type to "unsigned int".
20367 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20368 (the_low_target): Conditionally provide initializers for the
889bf7c5 20369 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20370 collect_ptrace_register and supply_ptrace_register members.
20371
9b4b61c8
UW
203722008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20373
20374 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20375 * server.c (gdbserver_xmltarget): Define.
20376 (get_features_xml): Use it to replace "target.xml" and arch_string.
20377
20378 * configure.srv: Remove srv_xmltarget. Add XML files that were
20379 mentioned there to srv_xmlfiles instead. Remove conditional tests
20380 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20381 srv_xmlfiles and srv_regobj to include all possible choices.
20382 * configure.ac (srv_xmltarget): Remove.
20383 (srv_xmlfiles): Do not add "target.xml".
20384 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20385 checks for supplementary target information.
20386 * configure: Regenerate.
20387 * Makefile.in (XML_TARGET): Remove.
20388 (target.xml): Remove rule.
20389 (clean): Do not clean up target.xml.
20390 (.PRECIOUS): Do not mention target.xml.
20391
20392 * target.h (struct target_ops): Remove arch_string member.
20393 * linux-low.c (linux_arch_string): Remove.
20394 (linux_target_ops): Remove arch_string initializer.
20395 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20396 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20397 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20398 * spu-low.c (spu_arch_string): Remove.
20399 (spu_target_ops): Remove arch_string initializer.
20400 * win32-low.c (win32_arch_string): Remove.
20401 (win32_target_ops): Remove arch_string initializer.
20402 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20403 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20404 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20405
ee1a7ae4
UW
204062008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20407
20408 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20409 by collect_ptrace_register and supply_ptrace_register hooks.
20410 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20411 instead of checking for the_low_target.left_pad_xfer.
20412 (usr_store_inferior_registers): Use collect_ptrace_register callback
20413 instead of checking for the_low_target.left_pad_xfer.
20414
20415 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20416 (s390_supply_ptrace_register): Likewise.
20417 (s390_fill_gregset): Call s390_collect_ptrace_register.
20418 (the_low_target): Update.
20419
20420 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20421 (ppc_supply_ptrace_register): Likewise.
20422 (the_low_target): Update.
20423
20424 * linux-i386-low.c (the_low_target): Update.
20425 * linux-x86-64-low.c (the_low_target): Update.
20426
d61ddec4
UW
204272008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20428
20429 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20430 reg-s390.o and reg-s390x.o.
20431
20432 * linux-low.c (new_inferior): New global variable.
20433 (linux_create_inferior, linux_attach): Set it.
20434 (linux_wait_for_process): Call the_low_target.arch_setup after the
20435 target has stopped for the first time.
20436 (initialize_low): Do not call the_low_target.arch_setup.
20437
20438 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20439 (s390_set_pc): Likewise.
20440 (s390_arch_setup): New function.
20441 (the_low_target): Use s390_arch_setup as arch_setup routine.
20442
20443 * regcache.c (realloc_register_cache): New function.
20444 (set_register_cache): Call it for each existing regcache.
20445
d05b4ac3
UW
204462008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20447
20448 * server.h (init_registers): Remove prototype.
20449
20450 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20451 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20452 instead of init_registers ().
20453 * linux-arm-low.c (init_registers_arm): Add prototype.
20454 (init_registers_arm_with_iwmmxt): Likewise.
20455 (the_low_target): Add initializer for arch_setup field.
20456 * linux-cris-low.c (init_registers_cris): Add prototype.
20457 (the_low_target): Add initializer for arch_setup field.
20458 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20459 (the_low_target): Add initializer for arch_setup field.
20460 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20461 (the_low_target): Add initializer for arch_setup field.
20462 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20463 (the_low_target): Add initializer for arch_setup field.
20464 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20465 (the_low_target): Add initializer for arch_setup field.
20466 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20467 (the_low_target): Add initializer for arch_setup field.
20468 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20469 (init_registers_mips64_linux): Likewise.
20470 (the_low_target): Add initializer for arch_setup field.
20471 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20472 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20473 (the_low_target): Add initializer for arch_setup field.
20474 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20475 (init_registers_powerpc_64): Likewise.
20476 (the_low_target): Add initializer for arch_setup field.
20477 * linux-s390-low.c (init_registers_s390): Add prototype.
20478 (init_registers_s390x): Likewise.
20479 (the_low_target): Add initializer for arch_setup field.
20480 * linux-sh-low.c (init_registers_sh): Add prototype.
20481 (the_low_target): Add initializer for arch_setup field.
20482 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20483 (the_low_target): Add initializer for arch_setup field.
20484 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20485 (the_low_target): Add initializer for arch_setup field.
20486
20487 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20488 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20489 instead of init_registers ().
20490 * win32-arm-low.c (init_registers_arm): Add prototype.
20491 (the_low_target): Add initializer for arch_setup field.
20492 * win32-i386-low.c (init_registers_i386): Add prototype.
20493 (the_low_target): Add initializer for arch_setup field.
20494
20495 * spu-low.c (init_registers_spu): Add prototype.
20496 (initialize_low): Call initialie_registers_spu () instead of
20497 initialize_registers ().
20498
fd96d250
PA
204992008-02-19 Pedro Alves <pedro@codesourcery.com>
20500
20501 * server.c (handle_v_requests): When handling the vRun and vAttach
20502 packets, if already debugging a process, don't kill it. Return an
20503 error instead.
20504
d41b6bb4
DJ
205052008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20506
20507 * server.c (handle_query): Correct length check.
20508
5ac588cf
PA
205092008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20510
20511 * win32-low.c (do_initial_child_stuff): Add process handle
20512 parameter. Set current_process_handle and current_process_id from the
20513 parameters. Clear globals.
20514 (win32_create_inferior): Don't set current_process_handle and
20515 current_process_id here. Instead pass them on the call to
20516 do_initial_child_stuff.
20517 (win32_attach): Likewise.
20518 (win32_clear_inferiors): New.
20519 (win32_kill): Don't close the current process handle or the
20520 current thread handle here. Instead call win32_clear_inferiors.
20521 (win32_detach): Don't open a new handle to the process. Call
20522 win32_clear_inferiors.
20523 (win32_join): Don't rely on current_process_handle; open a new
20524 handle using the process id.
20525 (win32_wait): Call win32_clear_inferiors when the inferior process
20526 has exited.
20527
ecd7ecbc
DJ
205282008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20529
20530 * server.c (monitor_show_help): Add "exit".
20531
1525d545
MG
205322008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20533
ecd7ecbc 20534 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20535 (clean): Add reg-xtensa.c.
20536 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20537 * configure.srv (xtensa*-*-linux*) New target.
20538 * linux-xtensa-low.c: New.
20539 * xtensa-xtregs.c: New.
1525d545 20540
59a016f0
PA
205412008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20542
20543 * hostio.c: Don't include errno.h.
20544 (errno_to_fileio_errno): Move to hostio-errno.
20545 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20546 error number outputting to the target->hostio_last_error callback.
20547 (hostio_packet_error): Use FILEIO_EINVAL directly.
20548 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20549 calls to hostio_error.
20550 * hostio-errno.c: New.
20551 * server.h (hostio_last_error_from_errno): Declare.
20552 * target.h (target_ops): Add hostio_last_error member.
20553 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20554 as hostio_last_error handler.
889bf7c5 20555 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20556 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20557 (wince_hostio_last_error): New functions.
20558 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20559 as hostio_last_error handler.
20560 (win32_target_ops) [!_WIN32_WCE]: Register
20561 hostio_last_error_from_errno as hostio_last_error handler.
20562 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20563 (hostio-errno.o): New rule.
20564 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20565 * configure.srv (srv_hostio_err_objs): New variable. Default to
20566 hostio-errno.o.
20567 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20568 * configure: Regenerate.
20569
2d717e4f
DJ
205702008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20571
20572 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20573 (linux_kill, linux_detach): Clean up the process list.
20574 * remote-utils.c (remote_open): Improve port number parsing.
20575 (putpkt_binary, input_interrupt): Only send interrupts if the target
20576 is running.
20577 * server.c (extended_protocol): Make static.
20578 (attached): Define earlier.
20579 (exit_requested, response_needed, program_argv): New variables.
20580 (target_running): New.
20581 (start_inferior): Clear attached here.
20582 (attach_inferior): Set attached here.
20583 (require_running): Define.
20584 (handle_query): Use require_running and target_running. Implement
20585 "monitor exit".
20586 (handle_v_attach, handle_v_run): New.
20587 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20588 (gdbserver_usage): Update.
20589 (main): Redo argument parsing. Handle --debug and --multi. Handle
20590 --attach along with other options or after the port. Save
20591 program_argv. Support no initial program. Resynchronize
20592 communication with GDB after an error. Handle "monitor exit".
20593 Use require_running and target_running. Always allow the extended
20594 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20595 restart in extended mode.
20596 * README: Refer to the GDB manual. Update --attach usage.
20597
7407e2de
AS
205982007-12-20 Andreas Schwab <schwab@suse.de>
20599
20600 * linux-low.c (STACK_SIZE): Define.
20601 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20602 (linux_test_for_tracefork): Likewise.
20603
b65d95c5
DJ
206042007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20605
20606 * linux-low.c (linux_wait_for_event): Update messages. Do not
20607 reinsert auto-delete breakpoints.
20608 * mem-break.c (struct breakpoint): Change return type of handler to
20609 int.
20610 (set_breakpoint_at): Update handler type.
20611 (reinsert_breakpoint_handler): Return 1 instead of calling
20612 delete_breakpoint.
20613 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20614 setting a new one.
20615 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20616 * mem-break.h (set_breakpoint_at): Update handler type.
20617 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20618 * win32-low.c (auto_delete_breakpoint): New.
20619 (get_child_debug_event): Use it.
20620
4e799345
DJ
206212007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20622
20623 * configure.ac: Check for pread and pwrite.
20624 * hostio.c (handle_pread): Fall back to lseek and read.
20625 (handle_pwrite): Fall back to lseek and write.
20626 * config.in, configure: Regenerated.
20627
27524b67
DJ
206282007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20629
20630 * server.c (myresume): Add own_buf argument.
20631 (main): Update calls.
20632
a20d5e98
DJ
206332007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20634
20635 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20636 * remote-utils.c (remote_open): Do not call disable_async_io.
20637 (block_async_io): Delete.
20638 (unblock_async_io): Make static.
20639 (initialize_async_io): New.
20640 * server.c (handle_v_cont): Handle async I/O here.
20641 (myresume): Likewise. Move other common resume tasks here...
20642 (main): ... from here. Call initialize_async_io. Disable async
20643 I/O before the main loop.
20644 * server.h (initialize_async_io): Declare.
20645 (block_async_io, unblock_async_io): Delete prototypes.
20646 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20647
b79d787e
DJ
206482007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20649
20650 * remote-utils.c (readchar): Allow binary data in received messages.
20651
d97903b2
PA
206522007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20653
20654 * win32-low.c (attaching): New global.
20655 (win32_create_inferior): Clear the `attaching' global.
20656 (win32_attach): Set the `attaching' global.
20657 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20658 attaching. Only set a breakpoint at the entry point if not
20659 attaching.
20660
311de423
PA
206612007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20662
20663 * server.c (main): Don't report dll events on the initial
20664 connection on attaches.
20665
6c2d16d2
PA
206662007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20667
20668 * server.c (main): Relax numerical bases supported for the pid of
20669 the --attach command line argument.
20670
5ca906e6
PA
206712007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20672
20673 * win32-low.c (win32_attach): Call OpenProcess before
20674 DebugActiveProcess, not after. Add last error output to error
20675 call.
20676
9c6c8194
PA
206772007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20678
20679 * win32-low.c (win32_get_thread_context)
20680 (win32_set_thread_context): New functions.
20681 (thread_rec): Use win32_get_thread_context.
20682 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20683 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20684 field.
20685
4d5d1aaa
PA
206862007-12-03 Leo Zayas
20687 Pedro Alves <pedro_alves@portugalmail.pt>
20688
20689 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20690 global variables.
20691 (child_add_thread): Minor cleanup.
20692 (child_continue): Resume artificially suspended threads before
20693 calling ContinueDebugEvent.
20694 (suspend_one_thread): New.
20695 (fake_breakpoint_event): New.
20696 (get_child_debug_event): Change return type to int. Check here if
20697 gdb sent an interrupt request. If a soft interrupt was requested,
20698 fake a breakpoint event. Return 0 if there is no event to handle,
20699 and 1 otherwise.
20700 (win32_wait): Don't check here if gdb sent an interrupt request.
20701 Ensure there is a valid event to handle.
20702 (win32_request_interrupt): Add soft interruption method as last
20703 resort.
20704
c436e841
PA
207052007-12-03 Leo Zayas
20706 Pedro Alves <pedro_alves@portugalmail.pt>
20707
20708 * win32-low.h (win32_thread_info): Add descriptions to the
20709 structure members. Replace `suspend_count' counter by a
20710 `suspended' flag.
20711 * win32-low.c (thread_rec): Update condition of when to get the
20712 context from the inferior. Rely on ContextFlags being set if it
20713 has already been retrieved. Only suspend the inferior thread if
20714 we haven't already. Warn if that fails.
20715 (continue_one_thread): s/suspend_count/suspended/. Only call
20716 ResumeThread once. Warn if that fails.
20717
e7b5fa67
PA
207182007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20719
20720 * win32-low.c (win32_wait): Don't read from the inferior when it
20721 has already exited.
20722
a385171d
PA
207232007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20724
20725 * Makefile.in (win32_low_h): New variable.
20726 (win32-low.o): Add dependency on $(win32_low_h).
20727 (win32-arm-low.o, win32-i386-low.o): New rules.
20728
f80c84b3
DJ
207292007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20730
20731 * hostio.c: Correct copyright year.
20732
a6b151f1
DJ
207332007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20734
20735 * Makefile.in (OBS): Add hostio.o.
20736 (hostio.o): New rule.
20737 * server.h (handle_vFile): Declare.
20738 * hostio.c: New file.
20739 * server.c (handle_v_requests): Take packet_len and new_packet_len
20740 for binary packets. Call handle_vFile.
20741 (main): Update call to handle_v_requests.
20742
f9387fc3
DJ
207432007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20744
20745 * linux-low.c: Include <sched.h>.
20746
51c2684e
DJ
207472007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20748
20749 * linux-low.c (linux_tracefork_grandchild): New.
20750 (linux_tracefork_child): Use clone.
20751 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20752
75f83163
JB
207532007-10-31 Joel Brobecker <brobecker@adacore.com>
20754
20755 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20756
da5898ce
DJ
207572007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20758
20759 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20760
24a09b5f
DJ
207612007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20762
20763 * inferiors.c (change_inferior_id): Delete.
20764 (add_pid_to_list, pull_pid_from_list): New.
20765 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20766 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20767 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20768 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20769 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20770 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20771 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20772 (using_threads): Always set to 1.
20773 (handle_extended_wait): New.
20774 (add_process): Do not set TID.
20775 (linux_create_inferior): Set must_set_ptrace_flags.
20776 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20777 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20778 (linux_thread_alive): Rename TID argument to LWPID.
20779 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20780 (linux_wait_for_event): Do not use TID or check using_threads. Update
20781 call to dead_thread_notify. Call handle_extended_wait.
20782 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20783 (send_sigstop): Delete sigstop_sent.
20784 (wait_for_sigstop): Avoid TID.
20785 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20786 (linux_test_for_tracefork): New.
20787 (linux_lookup_signals): Use thread_db_active and
20788 linux_supports_tracefork_flag.
20789 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20790 * linux-low.h (get_process_thread): Avoid TID.
20791 (struct process_ifo): Move thread_known and tid to the end. Remove
20792 sigstop_sent.
20793 (linux_attach_lwp, thread_db_init): Update prototypes.
20794 * server.h (change_inferior_id): Delete prototype.
20795 (add_pid_to_list, pull_pid_from_list): New prototypes.
20796 * thread-db.c (thread_db_use_events): New.
20797 (find_first_thread): Rename to...
20798 (find_one_thread): ...this. Update callers and messages. Do not
20799 call fatal. Check thread_db_use_events. Do not call
20800 change_inferior_id or new_thread_notify.
20801 (maybe_attach_thread): Update. Do not call new_thread_notify.
20802 (thread_db_init): Set thread_db_use_events. Check use_events.
20803 * utils.c (fatal, warning): Correct message prefix.
20804
30ed0a8f
DJ
208052007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20806
20807 * Makefile.in (clean): Remove new files.
20808 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20809 (powerpc-64.o, powerpc-64.c): New rules.
20810 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20811 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20812 with SPE.
20813 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20814 SPE targets.
20815 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20816 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20817 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20818 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20819 (target_regsets): Add AltiVec and SPE register sets.
20820 * configure.ac: Check for AltiVec and SPE.
20821 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20822 (ppc_fill_vrregset, ppc_store_vrregset): New.
20823 (target_regsets): Add AltiVec register set.
20824 * configure: Regenerated.
20825
fd462a61
DJ
208262007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20827
20828 * linux-low.c (O_LARGEFILE): Define.
20829 (linux_read_memory): Use /proc/PID/mem.
20830 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20831 * configure, config.in: Regenerated.
20832
69f223ed
DJ
208332007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20834
20835 * linux-low.c (linux_wait_for_event): Do not pass signals while
20836 single-stepping.
20837
aec18585
PA
208382007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20839
20840 * win32-low.c (create_process): New.
20841 (win32_create_inferior): Use create_process instead of
20842 CreateProcess. If create_process failed retry appending an ".exe"
20843 suffix. Store the GetLastError result immediatelly after
20844 create_process calls and use it on the call to error.
20845
34d86ddd
PA
208462007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20847
20848 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20849
5a0e3bd0
JB
208502007-08-23 Joel Brobecker <brobecker@adacore.com>
20851
20852 * configure.ac: Switch license to GPLv3.
20853
f88c79e6
MS
208542007-08-01 Michael Snyder <msnyder@access-company.com>
20855
20856 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20857
6b3d9b83
PA
208582007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20859
20860 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20861 typedef.
20862 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20863 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20864 CloseToolhelp32Snapshot.
20865 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20866 CloseToolhelp32Snapshot.
20867
c588c53c
MS
208682007-07-27 Michael Snyder <michael.snyder@access-company.com>
20869
20870 * server.c (main): Check for inferior exit before main loop.
20871
aa0403d9
PA
208722007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20873
20874 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20875 instead of on tmp_desc.
20876
255e7678
DJ
208772007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20878 Daniel Jacobowitz <dan@codesourcery.com>
20879
20880 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20881 (add_thread): Minor cleanups.
20882 (clear_inferiors): Move lower in the file. Clear the DLL
20883 list.
20884 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20885 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20886 (xml_escape_text): New.
20887 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20888 for qSupported.
20889 (handle_v_cont): Report errors.
20890 (gdbserver_version): Update.
20891 (main): Correct size of own_buf. Do not report initial DLL events.
20892 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20893 (unloaded_dll, xml_escape_text): New.
20894 * win32-low.c (enum target_waitkind): Update comments.
20895 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20896 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20897 (win32_EnumProcessModules, win32_GetModuleInformation)
20898 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20899 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20900 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20901 (win32_Module32First, win32_Module32Next, load_toolhelp)
20902 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20903 (get_child_debug_event): Handle DLL events.
20904 (win32_wait): Likewise.
20905
0d37add9
DJ
209062007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20907
20908 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20909 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20910
45e2715e
PA
209112007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20912
20913 * win32-low.c (handle_output_debug_string): Ignore event if not
20914 waiting.
20915
c5674cf1
PA
209162007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20917
20918 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20919
2bbe3cc1
DJ
209202007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20921
20922 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20923
ae13219e
DJ
209242007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20925
20926 * inferiors.c (change_inferior_id): Add comment.
20927 * linux-low.c (check_removed_breakpoint): Add an early
20928 prototype. Improve debug output.
20929 (linux_attach): Doc update.
20930 (linux_detach_one_process, linux_detach): Clean up before releasing
20931 each process.
20932 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20933 * linux-low.h (struct process_info): Doc improvement.
20934 * mem-break.c (delete_all_breakpoints): New.
20935 * mem-break.h (delete_all_breakpoints): New prototype.
20936 * thread-db.c (find_first_thread): New.
20937 (thread_db_create_event): Call it instead of
20938 thread_db_find_new_threads. Clean up unused variables.
20939 (maybe_attach_thread): Remove first thread handling.
20940 (thread_db_find_new_threads): Use find_first_thread.
20941 (thread_db_get_tls_address): Likewise.
20942
4105de34
DJ
209432007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20944
20945 * thread-db.c (thread_db_find_new_threads): Add prototype.
20946 (thread_db_create_event): Check for the main thread before adding
20947 a new thread.
20948 (maybe_attach_thread): Only enable event reporting if TID == 0.
20949 (thread_db_get_tls_address): Check for new threads.
20950
2b876972
DJ
209512007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20952
20953 * linux-low.c (linux_create_inferior): Try execv before execvp.
20954 * spu-low.c (spu_create_inferior): Likewise.
20955
7a245884
DJ
209562007-06-13 Mike Frysinger <vapier@gentoo.org>
20957
20958 * linux-low.c (linux_create_inferior): Change execv to execvp.
20959 * spu-low.c (spu_create_inferior): Likewies.
20960
117ce543
DJ
209612007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20962
20963 * Makefile.in (clean): Clean new files instead of deleted ones.
20964 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20965 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20966 rules.
20967 * configure.srv: Specify XML files and new regformats for MIPS and
20968 MIPS64 GNU/Linux.
20969 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20970 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20971 an entry for the restart register.
20972 (mips_cannot_fetch_register, mips_cannot_store_register)
20973 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20974 register names to match the XML descriptions.
20975 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20976 restart register instead of $0.
20977
0e7f50da
UW
209782007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20979 Markus Deuling <deuling@de.ibm.com>
20980
20981 * remote-utils.c (decode_xfer_write): New function.
20982 * server.h (decode_xfer_write): Add prototype.
20983 * server.c (handle_query): Add PACKET_LEN argument. Support
20984 qXfer:spu:read and qXfer:spu:write packets.
20985 (main): Pass packet_len to handle_query.
20986 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20987 * target.h (target_ops): Add qxfer_spu.
20988
374c1d38
UW
209892007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20990
20991 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20992 accessing non-seekable spufs files.
20993
bb63802a
UW
209942007-05-16 Markus Deuling <deuling@de.ibm.com>
20995
889bf7c5 20996 * server.c (handle_query): Add reply for qC packet.
bb63802a 20997
7390519e
PA
209982007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20999 Leo Zayas <lerele@champenstudios@com>
21000
21001 * server.h (check_remote_input_interrupt_request): New function.
21002 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21003 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21004 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21005 (check_remote_input_interrupt_request): New function.
21006 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 21007 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
21008 winapi_GenerateConsoleCtrlEvent): New typedefs.
21009 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21010 to 250 ms.
21011 (win32_wait): Check for remote interrupt request
21012 with check_remote_input_interrupt_request.
21013 (win32_request_interrupt): New function.
21014 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21015
34b34921
PA
210162007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21017
21018 * win32-low.c (debug_registers_changed,
21019 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21020 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21021 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21022 (thread_rec): Get context using the low target.
21023 (child_add_thread): Call thread_added on the low target,
21024 which does the same thing.
21025 (regptr): Delete.
21026 (do_initial_child_stuff): Remove debug registers references.
21027 Set context using the low target. Resume threads after
21028 setting the contexts.
21029 (child_continue): Remove dead variable. Remove debug
21030 registers references.
21031 (child_fetch_inferior_registers): Go through the low target.
21032 (do_child_store_inferior_registers): Remove.
21033 (child_store_inferior_registers): Go through the low target.
21034 (win32_resume): Remove debug registers references.
21035 Set context using the low target.
21036 (handle_exception): Change return type to void. Don't record
21037 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21038 first chance exception.
889bf7c5 21039 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21040 goto loop. Always return after waiting for debug event.
21041 (win32_wait): Convert to switch statement. Handle spurious
21042 events.
21043
21044 * win32-i386-low.c (debug_registers_changed,
21045 debug_registers_used): New.
21046 (initial_stuff): Rename to ...
21047 (i386_initial_stuff): ... this. Clear debug registers
21048 state variables.
21049 (store_debug_registers): Delete.
21050 (i386_get_thread_context): New.
21051 (load_debug_registers): Delete.
21052 (i386_set_thread_context): New.
21053 (i386_thread_added): New.
21054 (single_step): Rename to ...
21055 (i386_single_step): ... this.
21056 (do_fetch_inferior_registers): Rename to ...
21057 (i386_fetch_inferior_register): ... this.
21058 (i386_store_inferior_register): New.
21059 (the_low_target): Adapt to new interface.
21060
21061 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21062 (arm_get_thread_context): New.
21063 (arm_set_thread_context): New.
21064 (regptr): New.
21065 (do_fetch_inferior_registers): Rename to ...
21066 (arm_fetch_inferior_register): ... this.
21067 (arm_store_inferior_register): New.
21068 (arm_wince_breakpoint): Reimplement as unsigned long.
21069 (arm_wince_breakpoint_len): Define.
21070 (the_low_target): Adapt to new interface.
21071
21072 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21073 load_debug_registers. Add get_thread_context, set_thread_context,
21074 thread_added and store_inferior_register. Rename
21075 fetch_inferior_registers to fetch_inferior_register.
21076 (regptr): Remove declaration.
21077
dd6953e1
PA
210782007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21079
21080 * linux-low.c (linux_detach): Change return type to int. Return 0.
21081 * spu-low.c (spu_detach): Likewise.
21082
444d6139
PA
210832007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21084
21085 * target.h (target_ops): Change return type of detach to int.
21086 Add join.
21087 (join_inferior): New.
21088 * server.c (main): Don't skip detach support on mingw32.
21089 If the inferior doesn't support detaching return error.
21090 Call join_inferior instead of using waitpid.
21091 * linux-low.c (linux_join): New.
21092 (linux_target_op): Add linux_join.
21093 * spu-low.c (spu_join): New.
21094 (spu_target_ops): Add spu_join.
21095 * win32-low.c (win32_detach): Adapt to new interface.
21096 Reopen current_process_handle before detaching. Issue a child
21097 resume before detaching.
21098 (win32_join): New.
21099 (win32_target_op): Add win32_join.
21100
1d5315fe
PA
211012007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21102
21103 * win32-low.c (win32-attach): Fix return value.
21104 * target.h (target_ops): Describe ATTACH return values.
21105
bf914831
PA
211062007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21107
21108 * win32-low.c (GETPROCADDRESS): Define.
21109 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21110 (winapi_DebugSetProcessKillOnExit): Likewise.
21111 (win32_create_inferior): Force usage of ansi CreateProcessA.
21112 (win32_attach): Use GETPROCADDRESS.
21113 (win32_detach): Likewise.
21114
f72f3e60
PA
211152007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21116
21117 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21118
ed50f18f
PA
211192007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21120
21121 * win32-low.c: Commit leftover changes from 2007-03-29.
21122
0c2ead7e
DJ
211232007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21124
21125 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21126 fields short instead of int. Add explicit padding.
21127 (i387_cache_to_fsave): Remove unnecessary casts.
21128 (i387_fsave_to_cache): Doc fix.
21129 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21130
73725ff3
DJ
211312007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21132
21133 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21134 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21135
d99f33d8
PA
211362007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21137
21138 * configure.srv (arm*-*-mingw32ce*): Move near the other
21139 arm targets.
21140
68070c10
PA
211412007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21142
2482afc6 21143 * configure.ac: Add errno checking.
68070c10
PA
21144 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21145 sys/file.h and malloc.h.
21146 (AC_CHECK_DECLS): Add perror.
21147 (srv_mingwce): Handle.
2482afc6 21148 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21149 win32-i386-low.o to srv_tgtobj.
21150 (i[34567]86-*-mingw*): Likewise.
21151 (arm*-*-mingw32ce*): Add case.
21152 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21153 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21154 [__MINGW32CE__] (strerror): New function.
21155 [__MINGW32CE__] (errno): Define to GetLastError.
21156 [__MINGW32CE__] (COUNTOF): New macro.
21157 (remote_open): Remove extra close call.
21158 * mem-break.c (delete_breakpoint_at): New function.
21159 * mem-break.h (delete_breakpoint_at): Declare.
21160 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21161 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21162 [USE_WIN32API] (read, write): Add char* casts.
21163 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21164 * server.h: Include wincecompat.h on Windows CE.
21165 [HAVE_ERRNO_H]: Check.
21166 (perror): Declare if not declared.
21167 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21168 (perror_with_name): Remove errno declaration.
21169 * wincecompat.h: New.
21170 * wincecompat.c: New.
21171 * win32-low.h: New.
21172 * win32-arm-low.c: New.
21173 * win32-i386-low.c: New.
21174 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21175 (OUTMSG2): Make it safe.
21176 (_T): New macro.
21177 (COUNTOF): New macro.
21178 (NUM_REGS): Get it from the low target.
21179 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21180 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21181 (thread_rec): Let low target handle debug registers.
21182 (child_add_thread): Likewise.
21183 (child_init_thread_list): Likewise.
21184 (continue_one_thread): Likewise.
21185 (regptr): New.
21186 (do_child_fetch_inferior_registers): Move to ...
21187 * win32-i386-low.c: ... here, and rename to ...
21188 (do_fetch_inferior_registers): ... this.
889bf7c5 21189 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21190 Go through the low target.
21191 (do_child_store_inferior_registers): Use regptr.
21192 (strwinerror): New function.
21193 (win32_create_inferior): Handle Windows CE.
21194 Use strwinerror instead of strerror on Windows error
21195 codes. Add program to the error output.
21196 Don't close the main thread handle on Windows CE.
21197 (win32_attach): Use coredll.dll on Windows CE.
21198 (win32_kill): Close current process and current
21199 thread handles.
21200 (win32_detach): Use coredll.dll on Windows CE.
21201 (win32_resume): Let low target handle debug registers, and
21202 step request.
21203 (handle_exception): Add/Remove initial breakpoint. Avoid
21204 non-existant WSTOPSIG on Windows CE.
21205 (win32_read_inferior_memory): Cast to remove warning.
21206 (win32_arch_string): Go through the low target.
21207 (initialize_low): Call set_breakpoint_data with the low
21208 target's breakpoint.
21209 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21210 FOP_REGNUM, mappings): Move to ...
21211 * win32-i386-low.c: ... here.
21212 * win32-low.c (win32_thread_info): Move to ...
21213 * win32-low.h: ... here.
21214 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21215 win32-arm-low.c and wincecompat.c.
21216 (all:): Add $EXEEXT.
21217 (install-only:): Likewise.
21218 (gdbserver:): Likewise.
21219 (gdbreplay:): Likewise.
21220 * config.in: Regenerate.
21221 * configure: Regenerate.
21222
41093d81
PA
212232007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21224
21225 * win32-low.c: Rename typedef thread_info to
21226 win32_thread_info throughout.
21227
544afa54
PA
212282007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21229
21230 * win32-i386-low.c: Rename to ...
21231 * win32-low.c: ... this.
21232 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21233 * Makefile.in: Likewise.
21234
bce7165d
PA
212352007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21236
21237 * remote-utils.c (monitor_output): Constify msg parameter.
21238 * server.h (monitor_output): Likewise.
21239 * win32-i386-low.c (handle_output_debug_string): New.
21240 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21241 handle_output_debug_string.
21242 (get_child_debug_event): Likewise.
21243
506c7aa0
DJ
212442007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21245
21246 * server.c (main): Correct strtoul check.
21247
42c81e2a
DJ
212482007-03-27 Jon Ringle <jon@ringle.org>
21249
21250 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21251
9453113a
DJ
212522007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21253
21254 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21255
64a69107
DJ
212562007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21257
21258 * terminal.h: Check HAVE_SGTTY_H.
21259
212602007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21261
21262 * remote-utils.c (remote_open): Print out the assigned port number.
21263
c74d0ad8
DJ
212642007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21265
21266 * remote-utils.c (monitor_output): New function.
21267 * server.c (debug_threads): Define here.
21268 (monitor_show_help): New function.
21269 (handle_query): Handle qRcmd.
21270 (main): Do not handle 'd' packet.
21271 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21272 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21273 of debug_threads.
21274
de7c3b4a
PA
212752007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21276
21277 * Makefile.in (EXEEXT): New.
21278 (clean): Use $(EXEEXT).
21279
ef57601b
PA
212802007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21281
21282 * target.h (target_ops): Rename send_signal to request_interrupt,
21283 and remove enum target_signal parameter.
21284 * linux-low.c (linux_request_interrupt): Rename from
21285 linux_send_signal, and always send SIGINT.
21286 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21287 and always send SIGINT.
21288 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21289 of send_signal.
21290 (input_interrupt): Likewise.
21291
820f2bda
PA
212922007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21293
21294 * server.c (get_features_xml): Check if target implemented
21295 arch_string.
21296 * win32-i386-low.c (win32_arch_string): New.
21297 (win32_target_ops): Add win32_arch_string as arch_string member.
21298
ab39bf24
UW
212992007-02-22 Markus Deuling <deuling@de.ibm.com>
21300
21301 * spu-low.c (spu_arch_string): New.
21302 (spu_target_ops): Add spu_arch_string.
21303
61ff6e04
DJ
213042007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21305
21306 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21307 * configure.ac: Do not check for terminal.h.
21308 * configure, config.in: Regenerated.
21309
fb1e4ffc
DJ
213102007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21311
21312 * Makefile.in (OBS): Add $(XML_BUILTIN).
21313 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21314 (clean): Update.
21315 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21316 (arm-with-iwmmxt.c): New.
21317 * config.in, configure: Regenerate.
21318 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21319 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21320 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21321 (arm*-*-linux*): Add iWMMXt and regset support.
21322 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21323 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21324 (arm_store_wmmxregset, target_regsets): New.
21325 * server.c (get_features_xml): Take annex argument. Check builtin
21326 XML documents.
21327 (handle_query): Handle multiple annexes.
21328
0f48aa01
DJ
213292007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21330
21331 * remote-utils.c [USE_WIN32API] (read, write): Define.
21332 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21333 write.
21334
23181151
DJ
213352007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21336
21337 * linux-i386-low.c (the_low_target): Set arch_string.
21338 * linux-x86-64-low.c (the_low_target): Likewise.
21339 * linux-low.c (linux_arch_string): New.
21340 (linux_target_ops): Add it.
21341 * linux-low.h (struct linux_target_ops): Add arch_string.
21342 * server.c (write_qxfer_response): Use const void * for DATA.
21343 (get_features_xml): New.
21344 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21345 * target.h (struct target_ops): Add arch_string method.
21346
9d606399
DJ
213472007-01-03 Denis Pilat <denis.pilat@st.com>
21348 Daniel Jacobowitz <dan@codesourcery.com>
21349
21350 * linux-low.c (linux_kill): Handle being called with no threads.
21351 * win32-i386-low.c (win32_kill): Likewise.
21352 (get_child_debug_event): Clear current_process_handle.
21353
213542006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21355 Daniel Jacobowitz <dan@codesourcery.com>
21356
21357 * remote-utils.c (remote_open): Check the type of specified
21358 serial port devices before opening them.
21359 * server.c (main): Kill the inferior if an error occurs during
21360 the first remote_open.
21361
a5e13d24
DJ
213622006-12-05 Markus Deuling <deuling@de.ibm.com>
21363
21364 * README: Update supported targets.
21365
186947f7
DJ
213662006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21367
21368 * Makefile.in (clean): Remove reg-mips64.c.
21369 (reg-mips64.c, reg-mips64.o): New rules.
21370 * configure.srv: Handle mips64. Include regset support for mips.
21371 * linux-mips-low.c (union mips_register): New.
21372 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21373 (mips_breakpoint, mips_breakpoint_at): Use int.
21374 (mips_collect_register, mips_supply_register)
21375 (mips_collect_register_32bit, mips_supply_register_32bit)
21376 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21377 (mips_store_fpregset, target_regsets): New.
21378 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21379
a13e2c95
UW
213802006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21381
21382 * configure.srv: Add target "spu*-*-*".
21383 * Makefile.in (clean): Remove reg-spu.c.
21384 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21385 * spu-low.c: New file.
21386
cb7283db
DJ
213872006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21388
21389 * configure.ac: Correct td_thr_tls_get_addr test.
21390 * configure: Regenerated.
21391
89be2091
DJ
213922006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21393
21394 * linux-low.c (linux_wait_for_event): Reformat. Use the
21395 pass_signals array.
21396 * remote-utils.c (decode_address_to_semicolon): New.
21397 * server.c (pass_signals, handle_general_set): New.
21398 (handle_query): Mention QPassSignals for qSupported.
21399 (main): Call handle_general_set.
21400 * server.h (pass_signals, decode_address_to_semicolon): New.
21401
000ef4f0
DJ
214022006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21403
21404 * server.c (handle_query): Correct error handling for read_auxv.
21405
b7149293
UW
214062005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21407
21408 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21409 and srv_linux_thread_db to yes.
21410 * linux-s390-low.c (s390_fill_gregset): New function.
21411 (target_regsets): Define data structure.
21412
dae5f5cf
DJ
214132006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21414
21415 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21416 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21417 * config.in, configure: Regenerated.
21418 * inferiors.c (gdb_id_to_thread): New function.
21419 (gdb_id_to_thread_id): Use it.
21420 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21421 * linux-low.h (struct process_info): Add th member.
21422 (thread_db_get_tls_address): New prototype.
21423 * remote-utils.c (decode_address): Make non-static.
21424 * server.c (handle_query): Handle qGetTLSAddr.
21425 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21426 * target.h (struct target_ops): Add get_tls_address.
21427 * thread-db.c (maybe_attach_thread): Save the thread handle.
21428 (thread_db_get_tls_address): New.
21429
32ca6d61
DJ
214302006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21431
21432 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21433 (linux_resume_one_process): Take a siginfo_t *. Update all
21434 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21435 (struct pending_signals): Add a siginfo_t.
21436 (linux_wait_for_process): Always set last_status.
21437 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21438 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21439 * linux-low.h (struct process_info): Add last_status.
21440
5ffff7c1
DJ
214412006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21442
21443 * remote-utils.c (try_rle): New function.
21444 (putpkt_binary): Use it.
21445
8695c747
DJ
214462006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21447
21448 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21449 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21450 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21451 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21452 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21453 point registers.
21454
290fadea
RS
214552006-08-08 Richard Sandiford <richard@codesourcery.com>
21456
21457 * server.c (terminal_fd): New variable.
21458 (old_foreground_pgrp): Likewise.
21459 (restore_old_foreground_pgrp): New function.
21460 (start_inferior): Record the terminal file descriptor in terminal_fd
21461 and its original foreground group in old_foreground_pgrp. Register
21462 restore_old_foreground_pgrp with atexit().
21463
9f2e1e63
DJ
214642006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21465
21466 * server.c (handle_query): Correct qPart to qXfer.
21467
b80864fb
DJ
214682006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21469
21470 * configure.ac: Check for more headers which are missing on
21471 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21472 * configure.srv: Add Cygwin and mingw32.
21473 * remote-utils.c: Don't include headers unconditionally which
21474 are missing on mingw32. Include <winsock.h> for mingw32.
21475 (remote_open): Adjust for mingw32 support. Flush
21476 standard error after writing to it.
21477 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21478 (unblock_async_io, enable_async_io, disable_async_io)
21479 (readchar, getpkt): Update for Winsock support.
21480 (prepare_resume_reply): Expect a protocol signal number.
21481 * server.c: Disable <sys/wait.h> on mingw32.
21482 (start_inferior): Adjust for mingw32 support. Flush
21483 standard error after writing to it.
21484 (attach_inferior): Likewise. Use protocol signal
21485 numbers.
21486 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21487 and names.
21488 * win32-i386-low.c: New file.
21489 * Makefile.in (XM_CLIBS): Set.
21490 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21491 (win32-i386-low.o): New dependency rule.
21492 * linux-low.c (linux_wait): Use target signal numbers.
21493 * target.h (struct target_ops): Doc fix.
21494 * server.h (target_signal_to_name): New prototype.
21495 * gdbreplay.c: Don't include headers unconditionally which
21496 are missing on mingw32. Include <winsock.h> for mingw32.
21497 (remote_close, remote_open): Adjust for Winsock support.
21498 * configure, config.in: Regenerated.
21499
0876f84a
DJ
215002006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21501
21502 * server.c (decode_xfer_read, write_qxfer_response): New.
21503 (handle_query): Take a packet length argument. Handle
21504 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21505 the qSupported response.
21506 (main): Update call to handle_query.
21507
01f9e8fa
DJ
215082006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21509
21510 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21511 (putpkt_binary): Renamed from putpkt and adjusted for binary
21512 data.
21513 (putpkt): New wrapper for putpkt_binary.
21514 (readchar): Don't mask off the high bit.
21515 (decode_X_packet): New function.
21516 * server.c (main): Call putpkt_binary if a handler sets the packet
21517 length. Save the length of the incoming packet. Handle 'X'.
21518 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21519
be2a5f71
DJ
215202006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21521
21522 * server.c (handle_query): Handle qSupported.
21523
ea025f5f
DJ
215242006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21525
21526 * remote-utils.c (all_symbols_looked_up): New variable.
21527 (look_up_one_symbol): Check it.
21528 * server.h (look_up_one_symbol): New declaration.
21529 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21530
9308fc88
DJ
215312006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21532
21533 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21534 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21535 (PTRACE_GET_THREAD_AREA): Define.
21536 (ps_get_thread_area): New function.
21537
52fb6437
NS
215382006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21539
21540 * configure.srv (m68k*-*-uclinux*): New target.
21541 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21542 (linux_resume_one_process): Remove extraneous cast.
21543 (linux_read_offsets): New.
21544 (linux_target_op): Add linux_read_offsets on mmuless systems.
21545 * server.c (handle_query): Add qOffsets logic.
21546 * target.h (struct target_ops): Add read_offsets.
21547
21b0f40c
DJ
215482006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21549
21550 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21551 (PTRACE_GET_THREAD_AREA): Define.
21552 (ps_get_thread_area): New function.
21553 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21554 (linux-x86-64-low.o): Update.
21555
0050a760
DJ
215562006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21557
21558 * configure.ac: Remove checks for prfpregset_t.
21559 * gdb_proc_service.h: New file.
21560 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21561 new "gdb_proc_service.h".
21562 * proc-service.c: Likewise.
21563 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21564 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21565 * Makefile.in (gdb_proc_service_h): Updated.
21566 * configure, config.in: Regenerated.
21567
b92a518e
DJ
215682006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21569
21570 * remote-utils.c (prepare_resume_reply): Move declaration
21571 of gdb_id_from_wait to the top of the block.
21572
545587ee
DJ
215732006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21574
21575 * linux-low.c (regsets_store_inferior_registers): Read the regset
21576 from the target before filling it.
21577
9db87ebd
DJ
215782006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21579
21580 * server.c (attach_inferior): Return SIGTRAP for a successful
21581 attach.
21582
dd24457d
DJ
215832006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21584
21585 * Makefile.in (OBS): Add version.o.
21586 (STAGESTUFF): Delete.
21587 (version.o): Add dependencies.
21588 (version.c): Replace rule.
21589 (clean): Remove version.c.
21590 * server.c (gdbserver_version): New.
21591 (gdbserver_usage): Use printf.
21592 (main): Handle --version and --help.
21593 * server.h (version, host_name): Add declarations.
21594
6f0f660e
EZ
215952005-12-23 Eli Zaretskii <eliz@gnu.org>
21596
889bf7c5
PA
21597 * linux-arm-low.c:
21598 * linux-arm-low.c:
21599 * inferiors.c:
21600 * i387-fp.h:
21601 * i387-fp.c:
21602 * gdbreplay.c:
21603 * regcache.c:
21604 * proc-service.c:
21605 * mem-break.h:
21606 * mem-break.c:
21607 * linux-x86-64-low.c:
21608 * linux-sh-low.c:
21609 * linux-s390-low.c:
21610 * linux-ppc64-low.c:
21611 * linux-ppc-low.c:
21612 * linux-mips-low.c:
21613 * linux-m68k-low.c:
21614 * linux-m32r-low.c:
21615 * linux-low.h:
21616 * linux-low.c:
21617 * linux-ia64-low.c:
21618 * linux-i386-low.c:
21619 * linux-crisv32-low.c:
21620 * thread-db.c:
21621 * terminal.h:
21622 * target.h:
21623 * target.c:
21624 * server.h:
21625 * server.c:
21626 * remote-utils.c:
21627 * regcache.h:
21628 * utils.c:
21629 * Makefile.in:
21630 * configure.ac:
6f0f660e
EZ
21631 * gdbserver.1: Add (C) after Copyright. Update the FSF
21632 address.
21633
9d1fb177
DJ
216342005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21635
21636 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21637 (arm_breakpoint_at): Recognize both breakpoints.
21638 (the_low_target): Use the correct breakpoint instruction.
21639
011a70c2
DJ
216402005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21641
21642 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21643 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21644 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21645 (the_low_target): Update.
21646
7fb85e41
AS
216472005-10-25 Andreas Schwab <schwab@suse.de>
21648
21649 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21650
21651 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21652 (ia64_num_regs): Reduce to 462.
21653
3db0444b
DJ
216542005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21655
21656 * acinclude.m4: Correct quoting.
21657 * aclocal.m4: Regenerated.
21658
21659 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21660 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21661 (thread_db_init): Call thread_db_err_str.
21662 * configure.ac: Check for TD_VERSION.
21663 * config.in, configure: Regenerated.
21664
bee0189a
DJ
216652005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21666
21667 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21668
e9d25b98
DJ
216692005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21670
21671 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21672 is not available. Define HAVE_PTRACE_GETREGS if it is.
21673 * config.in, configure: Regenerated.
21674 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21675 * linux-i386-low.c, linux-m68k-low.c: Update to use
21676 HAVE_PTRACE_GETREGS.
21677 * linux-low.c (regsets_fetch_inferior_registers)
21678 (regsets_store_inferior_registers): Only return 0 if we processed
21679 GENERAL_REGS.
21680 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21681 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21682
a06660f7
DJ
216832005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21684
21685 * inferiors.c (struct thread_info): Add gdb_id.
21686 (add_thread): Add gdb_id argument.
21687 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21688 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21689 calls to add_thread.
21690 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21691 * server.c (handle_query): Use thread_to_gdb_id.
21692 (handle_v_cont, main): Use gdb_id_to_thread_id.
21693 * server.h (add_thread): Update prototype.
21694 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21695 prototypes.
21696
5a1f5858
DJ
216972005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21698
21699 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21700 left-padded registers.
21701 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21702 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21703
e122f1f5
SE
217042005-07-01 Steve Ellcey <sje@cup.hp.com>
21705
21706 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21707 * configure: Regenerate.
21708 * config.in: Regenerate.
21709 * server.h (NEED_DECLARATION_STRERROR):
21710 Replace with !HAVE_DECL_STRERROR.
21711
d592fa2f
DJ
217122005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21713
21714 * linux-low.c (linux_wait, linux_send_signal): Don't test
21715 an unsigned long variable for > 0 if it could be MAX_ULONG.
21716 * server.c (myresume): Likewise.
21717 * target.c (set_desired_inferior): Likewise.
21718
ccbd4912
MK
217192005-06-13 Mark Kettenis <kettenis@gnu.org>
21720
21721 * configure.ac: Simplify and improve check for socklen_t.
21722 * configure, config.in: Regenerate.
21723
f450004a
DJ
217242005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21725
21726 * acconfig.h: Remove.
21727 * configure.ac: Add a test for socklen_t. Use three-argument
21728 AC_DEFINE throughout.
21729 * config.in: Regenerated using autoheader 2.59.
21730 * configure: Regenerated.
21731
21732 * gdbreplay.c (socklen_t): Provide a default.
21733 (remote_open): Use socklen_t.
21734 * remote-utils.c (socklen_t): Provide a default.
21735 (remote_open): Use socklen_t.
21736 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21737 unsigned char.
21738
21739 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21740 char for buffers.
21741 * linux-low.c (linux_read_memory, linux_write_memory)
21742 (linux_read_auxv): Likewise.
21743 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21744 (check_mem_write): Likewise.
21745 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21746 Likewise.
21747 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21748 (registers_from_string, register_data): Likewise.
21749 * server.c (handle_query, main): Likewise.
21750 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21751 (decode_M_packet): Likewise.
21752 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21753 * target.h (struct target_ops): Update read_memory, write_memory,
21754 and read_auxv.
21755 (read_inferior_memory, write_inferior_memory): Update.
21756 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21757 to unsigned char *.
21758 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21759 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21760 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21761 linux-s390-low.c, linux-sh-low.c: Update for changes in
21762 read_inferior_memory and the_low_target->breakpoint.
21763
eee84df1
DJ
217642005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21765
21766 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21767 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21768 * configure.srv: Add powerpc64-*-linux*.
21769 * linux-ppc64-low.c: New file.
21770
45b134e5
OF
217712005-05-23 Orjan Friberg <orjanf@axis.com>
21772
21773 * linux-cris-low.c: New file with support for CRIS.
21774 * linux-crisv32-low.c: Ditto for CRISv32.
21775 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21776 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21777 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21778 reg-crisv32.o, and reg-crisv32.c to make rules.
21779 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21780 recognized targets.
21781
48d93c75
UW
217822005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21783
21784 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21785 of sizeof (PTRACE_XFER_TYPE).
21786 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21787
e013ee27
OF
217882005-05-12 Orjan Friberg <orjanf@axis.com>
21789
889bf7c5 21790 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21791 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21792 pointers for hardware watchpoint support.
21793 * linux-low.h (struct linux_target_ops): Ditto.
21794 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21795 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21796 to linux_target_ops.
21797 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21798 reply packet.
21799 * server.c (main): Recognize 'Z' and 'z' packets.
21800
b0ded00b
UW
218012005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21802
21803 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21804 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21805 (the_low_target): Add new members.
21806
8643e2ad
DJ
218072005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21808
21809 * proc-service.c (ps_lgetregs): Search all_processes instead of
21810 all_threads.
21811
fc620387
DJ
218122005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21813
21814 * server.c (start_inferior): Change return type to int.
21815 (attach_inferior): Change sigptr to int *.
21816 (handle_v_cont, handle_v_requests): Change signal to int *.
21817 (main): Change signal to int.
21818
218192005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21820
21821 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21822 * configure.srv: Add m32r*-*-linux*.
21823 * linux-m32r-low.c: New file.
21824
e0e76420
DJ
218252005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21826
21827 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21828
a1928bad
DJ
218292005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21830
21831 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21832 Take unsigned long arguments for PIDs.
21833 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21834 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21835 (wait_for_sigstop, linux_resume_one_process)
21836 (regsets_fetch_inferior_registers, linux_send_signal)
21837 (linux_read_auxv): Likewise. Update the types of variables holding
21838 PIDs. Update format string specifiers.
21839 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21840 * remote-utils.c (prepare_resume_reply): Likewise.
21841 * server.c (cont_thread, general_thread, step_thread)
21842 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21843 unsigned long.
21844 (handle_query): Update format specifiers.
21845 (handle_v_cont, main): Use strtoul for thread IDs.
21846 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21847 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21848 (general_thread, step_thread, thread_from_wait)
21849 (old_thread_from_wait): Update.
21850 * target.h (struct thread_resume): Use unsigned long for THREAD.
21851 (struct target_ops): Use unsigned long for arguments to attach and
21852 thread_alive.
21853
dcdb98d2
DJ
218542005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21855
21856 * acinclude.m4: Include bfd/bfd.m4 directly.
21857 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21858 <agriffis@toolchain.org>.
21859 * aclocal.m4, configure: Regenerated.
21860
bec39cab
AC
218612005-01-07 Andrew Cagney <cagney@gnu.org>
21862
21863 * configure.ac: Rename configure.in, require autoconf 2.59.
21864 * configure: Re-generate.
21865
434c4c77
DJ
218662004-12-08 Daniel Jacobowitz <dan@debian.org>
21867
21868 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21869 LIBS when finished.
21870 * aclocal.m4: Regenerated.
21871 * configure: Regenerated.
21872
db1d3e1b
AS
218732004-11-21 Andreas Schwab <schwab@suse.de>
21874
21875 * linux-m68k-low.c (m68k_num_gregs): Define.
21876 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21877 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21878 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21879 (m68k_breakpoint_at): New. Add to the_low_target.
21880
21881 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21882 srv_linux_thread_db to yes.
21883
43360365
JB
218842004-10-20 Joel Brobecker <brobecker@gnat.com>
21885
21886 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21887 (ARCH_SET_FS): Likewise.
21888 (ARCH_GET_FS): Likewise.
21889 (ARCH_GET_GS): Likewise.
21890
fd500816
DJ
218912004-10-16 Daniel Jacobowitz <dan@debian.org>
21892
21893 * linux-i386-low.c (ps_get_thread_area): New.
21894 * linux-x86-64-low.c (ps_get_thread_area): New.
21895 * linux-low.c: Include <sys/syscall.h>.
21896 (linux_kill_one_process): Don't kill the first thread here.
21897 (linux_kill): Kill the first thread here.
21898 (kill_lwp): New function.
21899 (send_sigstop, linux_send_signal): Use it.
21900 * proc-service.c: Clean up #ifdefs.
21901 (fpregset_info): Delete.
21902 (ps_lgetregs): Update and enable implementation.
21903 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21904 implementations.
21905 * remote-utils.c (struct sym_cache, symbol_cache): New.
21906 (input_interrupt): Print a clearer message.
21907 (async_io_enabled): New variable.
21908 (enable_async_io, disable_async_io): Use it. Update comments.
21909 (look_up_one_symbol): Use the symbol cache.
21910 * thread-db.c (thread_db_look_up_symbols): New function.
21911 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21912
f6de3c42
DJ
219132004-10-16 Daniel Jacobowitz <dan@debian.org>
21914
21915 * configure.in: Test for -rdynamic.
21916 * configure: Regenerated.
21917 * Makefile (INTERNAL_LDFLAGS): New.
21918 (gdbserver, gdbreplay): Use it.
21919
2c0fc042
AC
219202004-09-02 Andrew Cagney <cagney@gnu.org>
21921
21922 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21923
075b3282
DJ
219242004-03-23 Daniel Jacobowitz <drow@mvista.com>
21925
21926 * linux-low.c (linux_wait): Clear all_processes list also.
21927
fa6a77dc
DJ
219282004-03-12 Daniel Jacobowitz <drow@mvista.com>
21929
21930 * linux-low.c: Include <errno.h>. Remove extern declaration of
21931 errno.
21932
6d782a97
DJ
219332004-03-12 Daniel Jacobowitz <drow@mvista.com>
21934
21935 * gdbreplay.c, server.h, utils.c: Update copyright years.
21936
3a7fb99b
DJ
219372004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21938
21939 * server.c (main): Print child status or termination signal from
21940 variable 'signal', not 'sig'.
21941
c3e735a6
DJ
219422004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21943
21944 * linux-low.c (linux_read_memory): Change return type to
21945 int. Check for and return error from ptrace().
21946 * target.c (read_inferior_memory): Change return type to int. Pass
21947 back return status from the_target->read_memory().
21948 * target.h (struct target_ops): Adapt *read_memory() prototype.
21949 Update comment.
21950 (read_inferior_memory): Adapt prototype.
21951 * server.c (main): Return an error packet if
21952 read_inferior_memory() returns an error.
21953
a59d1c82
DJ
219542004-03-04 Daniel Jacobowitz <drow@mvista.com>
21955
21956 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21957 Unify with other clean targets.
21958
dc3f8883
DJ
219592004-02-29 Daniel Jacobowitz <drow@mvista.com>
21960
21961 * server.c (handle_v_cont): Call set_desired_inferior.
21962
89a208da
DJ
219632004-02-29 Daniel Jacobowitz <drow@mvista.com>
21964
21965 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21966
62ea82f5
DJ
219672004-02-29 Daniel Jacobowitz <drow@mvista.com>
21968
21969 * linux-low.c (linux_wait): Unblock async I/O.
21970 (linux_resume): Block and enable async I/O.
21971 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21972 * server.h (block_async_io, unblock_async_io): Add prototypes.
21973
6910d122
DJ
219742004-02-29 Daniel Jacobowitz <drow@mvista.com>
21975
21976 * remote-utils.c (remote_open): Print a status notice after
21977 opening a TCP port.
21978 * server.c (attach_inferior): Print a status notice after
21979 attaching.
21980
219812004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21982
21983 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21984
c89dc5d4
DJ
219852004-02-26 Daniel Jacobowitz <drow@mvista.com>
21986
21987 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21988 error packet.
21989 * server.c, target.h: Update copyright years.
21990
4b8dad4a
RM
219912004-02-25 Roland McGrath <roland@redhat.com>
21992
21993 * target.h (struct target_ops): New member `read_auxv'.
21994 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21995 * linux-low.c (linux_read_auxv): New function.
21996 (linux_target_ops): Initialize `read_auxv' member to that.
21997
d7446758
JB
219982004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21999
22000 Committed by Jim Blandy <jimb@redhat.com>.
22001
22002 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 22003 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
22004 instead of GPR_SIZE to distiguish s390 and s390x targets.
22005
5544ad89
DJ
220062004-01-31 Daniel Jacobowitz <drow@mvista.com>
22007
22008 * linux-low.c: Update copyright year.
22009 (check_removed_breakpoint): Clear pending_is_breakpoint.
22010 (linux_set_resume_request, linux_queue_one_thread)
22011 (resume_status_pending_p): New functions.
22012 (linux_continue_one_thread): Use process->resume.
22013 (linux_resume): Only resume threads if there are no pending events.
22014 * linux-low.h (struct process_info): Add resume request
22015 pointer.
22016
2a68b70e
DJ
220172004-01-30 Daniel Jacobowitz <drow@mvista.com>
22018
22019 * regcache.c (new_register_cache): Clear the allocated register
22020 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22021
64386c31
DJ
220222003-10-13 Daniel Jacobowitz <drow@mvista.com>
22023
22024 * linux-low.c (linux_resume): Take a struct thread_resume *
22025 argument.
22026 (linux_wait): Update call.
22027 (resume_ptr): New static variable.
22028 (linux_continue_one_thread): Renamed from
22029 linux_continue_one_process. Use resume_ptr.
22030 (linux_resume): Use linux_continue_one_thread.
22031 * server.c (handle_v_cont, handle_v_requests): New functions.
22032 (myresume): New function.
22033 (main): Handle 'v' case.
22034 * target.h (struct thread_resume): New type.
22035 (struct target_ops): Change argument of "resume" to struct
22036 thread_resume *.
22037 (myresume): Delete macro.
22038
c938e9b0
L
220392003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22040
22041 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22042 (uninstall): Support DESTDIR.
22043
7f313d07
BC
22044Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22045
22046 * configure.srv: Add xscale*linux copy of arm*linux entry.
22047
3b2fc2ea
DJ
220482003-07-24 Daniel Jacobowitz <drow@mvista.com>
22049
22050 * linux-arm-low.c (arm_reinsert_addr): New function.
22051 (the_low_target): Add arm_reinsert_addr.
22052
1c0a559e
MK
220532003-07-08 Mark Kettenis <kettenis@gnu.org>
22054
22055 * mem-break.c: Remove whitespace at end of file.
22056
43d5792c
DJ
220572003-06-28 Daniel Jacobowitz <drow@mvista.com>
22058
22059 * configure.in: Check whether we need to prototype strerror.
22060 * server.h: Optionally prototype strerror.
22061 * gdbreplay.c (perror_with_name): Use strerror.
22062 * linux-low.c (linux_attach_lwp): Use strerror.
22063 * utils.c (perror_with_name): Use strerror.
22064 * config.in, configure: Regenerated.
22065
c8a86edf
DJ
220662003-06-28 Daniel Jacobowitz <drow@mvista.com>
22067
22068 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22069 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22070
73d37363
DJ
220712003-06-20 Daniel Jacobowitz <drow@mvista.com>
22072
22073 * Makefile.in (SFILES): Update.
22074 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22075 low-sun3.c: Remove files.
22076
6ad8ae5c
DJ
220772003-06-17 Daniel Jacobowitz <drow@mvista.com>
22078
22079 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22080 (linux_detach_one_process, linux_detach): New functions.
22081 (linux_target_ops): Add linux_detach.
22082 * server.c (main): Handle 'D' packet.
22083 * target.h (struct target_ops): Add "detach" member.
22084 (detach_inferior): Define.
22085
1581182a
MK
220862003-06-13 Mark Kettenis <kettenis@gnu.org>
22087
22088 From Kelley Cook <kelleycook@wideopenwest.com>:
22089 * configure.srv: Accept i[34567]86 variants.
22090
e5379b03
DJ
220912003-06-05 Daniel Jacobowitz <drow@mvista.com>
22092
22093 * linux-low.c (linux_wait_for_event): Correct comment typos.
22094 (linux_resume_one_process): Call check_removed_breakpoint.
22095 (linux_send_signal): New function.
22096 (linux_target_ops): Add linux_send_signal.
22097 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22098 of kill.
22099 * target.h (struct target_ops): Add send_signal.
22100
2ff29de4
JB
221012003-05-29 Jim Blandy <jimb@redhat.com>
22102
22103 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22104 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22105 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22106 away part of the register's value.
22107
254787d4
DJ
221082003-03-26 Daniel Jacobowitz <drow@mvista.com>
22109
22110 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22111 (linux_wait_for_event, linux_init_signals): Likewise.
22112
94e10508
DJ
221132003-03-17 Daniel Jacobowitz <drow@mvista.com>
22114
22115 * configure.in: Check for stdlib.h.
22116 * configure: Regenerated.
22117 * config.in: Regenerated.
22118
4c0711e0
DJ
221192003-01-04 Andreas Schwab <schwab@suse.de>
22120
22121 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22122
ef66e766
AC
221232003-01-02 Andrew Cagney <ac131313@redhat.com>
22124
22125 * Makefile.in: Remove obsolete code.
22126
a1358604
DJ
221272002-11-20 Daniel Jacobowitz <drow@mvista.com>
22128
22129 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22130 defined(PT_FPR0_HI).
22131
23ce3b1c
DJ
221322002-11-17 Stuart Hughes <seh@zee2.com>
22133
22134 * linux-arm-low.c (arm_num_regs): Increase.
22135 (arm_regmap): Include status register.
22136
221372002-11-17 Daniel Jacobowitz <drow@mvista.com>
22138
22139 * linux-low.c (register_addr): Remove incorrect -1 check.
22140
a9fa9f7d
DJ
221412002-08-29 Daniel Jacobowitz <drow@mvista.com>
22142
22143 * linux-low.c (linux_create_inferior): Call setpgid. Return
22144 the new PID.
22145 (unstopped_p, linux_signal_pid): Remove.
22146 (linux_target_ops): Remove linux_signal_pid.
22147 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22148 global instead of target method.
22149 * target.h (struct target_ops): Remove signal_pid. Update comment
22150 for create_inferior.
22151 * server.c (signal_pid): New variable.
22152 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22153 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22154 (attach_inferior): Set signal_pid.
22155
17574093
DJ
221562002-08-23 Daniel Jacobowitz <drow@mvista.com>
22157
22158 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22159
221602002-08-20 Jim Blandy <jimb@redhat.com>
22161
22162 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22163 default for this.
22164
221652002-08-01 Andrew Cagney <cagney@redhat.com>
22166
22167 * Makefile.in: Make chill references obsolete.
22168
221692002-07-24 Kevin Buettner <kevinb@redhat.com>
22170
22171 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22172 * configure: Regenerate.
22173 * config.in: Regenerate.
22174
221752002-07-09 David O'Brien <obrien@FreeBSD.org>
22176
22177 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22178 (perror_with_name, remote_close, remote_open, expect, play): Static.
22179
221802002-07-04 Michal Ludvig <mludvig@suse.cz>
22181
4b8dad4a 22182 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22183 byte offsets instead of an array of indexes.
22184 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22185
221862002-06-13 Daniel Jacobowitz <drow@mvista.com>
22187
22188 * regcache.c: Add comment.
22189
221902002-06-11 Daniel Jacobowitz <drow@mvista.com>
22191
22192 * thread-db.c: New file.
22193 * proc-service.c: New file.
22194 * acinclude.m4: New file.
22195 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22196 proc-service.o, and thread-db.o.
22197 (linux-low.o): Add USE_THREAD_DB.
22198 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22199 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22200 * aclocal.m4: Regenerated.
22201 * config.in: Regenerated.
22202 * configure: Regenerated.
22203 * configure.in: Check for proc_service.h, sys/procfs.h,
22204 thread_db.h, and linux/elf.h headrs.
22205 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22206 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22207 Check for -lthread_db and thread support.
22208 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22209 PowerPC, and SuperH.
22210 * i387-fp.c: Constify arguments.
22211 * i387-fp.h: Likewise.
22212 * inferiors.c: (struct thread_info): Renamed from
22213 `struct inferior_info'. Remove PID member. Use generic inferior
22214 list header. All uses updated.
22215 (inferiors, signal_pid): Removed.
22216 (all_threads): New variable.
22217 (get_thread): Define.
22218 (add_inferior_to_list): New function.
22219 (for_each_inferior): New function.
22220 (change_inferior_id): New function.
22221 (add_inferior): Removed.
22222 (remove_inferior): New function.
22223 (add_thread): New function.
22224 (free_one_thread): New function.
22225 (remove_thread): New function.
22226 (clear_inferiors): Use for_each_inferior and free_one_thread.
22227 (find_inferior): New function.
22228 (find_inferior_id): New function.
22229 (inferior_target_data): Update argument type.
22230 (set_inferior_target_data): Likewise.
22231 (inferior_regcache_data): Likewise.
22232 (set_inferior_regcache_data): Likewise.
22233 * linux-low.c (linux_bp_reinsert): Remove.
22234 (all_processes, stopping_threads, using_thrads)
22235 (struct pending_signals, debug_threads, pid_of): New.
22236 (inferior_pid): Replace with macro.
22237 (struct inferior_linux_data): Remove.
22238 (get_stop_pc, add_process): New functions.
22239 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22240 Use add_process and add_thread.
22241 (linux_attach_lwp): New function, based on old linux_attach. Use
22242 add_process and add_thread. Set stop_expected for new threads.
22243 (linux_attach): New function.
22244 (linux_kill_one_process): New function.
22245 (linux_kill): Kill all LWPs.
22246 (linux_thread_alive): Use find_inferior_id.
22247 (check_removed_breakpoints, status_pending_p): New functions.
22248 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22249 Update. Use WNOHANG. Wait for cloned processes also. Update process
22250 struct for the found process.
22251 (linux_wait_for_event): New function.
22252 (linux_wait): Use it. Support LWPs.
22253 (send_sigstop, wait_for_sigstop, stop_all_processes)
22254 (linux_resume_one_process, linux_continue_one_process): New functions.
22255 (linux_resume): Support LWPs.
22256 (REGISTER_RAW_SIZE): Remove.
22257 (fetch_register): Use register_size instead. Call supply_register.
22258 (usr_store_inferior_registers): Likewise. Call collect_register.
22259 Fix recursive case.
22260 (regsets_fetch_inferior_registers): Improve error message.
22261 (regsets_store_inferior_registers): Add debugging.
22262 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22263 (unstopped_p, linux_signal_pid): New functions.
22264 (linux_target_ops): Add linux_signal_pid.
22265 (linux_init_signals): New function.
22266 (initialize_low): Call it. Initialize using_threads.
22267 * regcache.c (inferior_regcache_data): Add valid
22268 flag.
22269 (get_regcache): Fetch registers lazily. Add fetch argument
22270 and update all callers.
22271 (regcache_invalidate_one, regcache_invalidate): New
22272 functions.
22273 (new_register_cache): Renamed from create_register_cache.
22274 Return the new regcache.
22275 (free_register_cache): Change argument to a void *.
22276 (registers_to_string, registers_from_string): Call get_regcache
22277 with fetch flag set.
22278 (register_data): Make static. Pass fetch flag to get_regcache.
22279 (supply_register): Call get_regcache with fetch flag clear.
22280 (collect_register): Call get_regcache with fetch flag set.
22281 (collect_register_as_string): New function.
22282 * regcache.h: Update.
22283 * remote-utils.c (putpkt): Flush after debug output and use
22284 stderr.
22285 Handle input interrupts while waiting for an ACK.
22286 (input_interrupt): Use signal_pid method.
22287 (getpkt): Flush after debug output and use stderr.
22288 (outreg): Use collect_register_as_string.
22289 (new_thread_notify, dead_thread_notify): New functions.
22290 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22291 and general_thread.
22292 (look_up_one_symbol): Flush after debug output.
22293 * server.c (step_thread, server_waiting): New variables.
22294 (start_inferior): Don't use signal_pid. Update call to mywait.
22295 (attach_inferior): Update call to mywait.
22296 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22297 (main): Don't fetch/store registers explicitly. Use
22298 set_desired_inferior. Support proposed ``Hs'' packet. Update
22299 calls to mywait.
22300 * server.h: Update.
22301 (struct inferior_list, struct_inferior_list_entry): New.
22302 * target.c (set_desired_inferior): New.
22303 (write_inferior_memory): Constify.
22304 (mywait): New function.
22305 * target.h: Update.
22306 (struct target_ops): New signal_pid method.
22307 (mywait): Removed macro, added prototype.
22308
22309 * linux-low.h (regset_func): Removed.
22310 (regset_fill_func, regset_store_func): New.
22311 (enum regset_type): New.
22312 (struct regset_info): Add type field. Use new operation types.
22313 (struct linux_target_ops): stop_pc renamed to get_pc.
22314 Add decr_pc_after_break and breakpoint_at.
22315 (get_process, get_thread_proess, get_process_thread)
22316 (strut process_info, all_processes, linux_attach_lwp)
22317 (thread_db_init): New.
22318
22319 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22320 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22321 (the_low_target): Add new members.
22322 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22323 (i386_store_fpxregset): Constify.
22324 (target_regsets): Add new kind identifier.
22325 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22326 (i386_set_pc): Add debugging.
22327 (i386_breakpoint_at): New function.
22328 (the_low_target): Add new members.
22329 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22330 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22331 (mips_breakpoint_at): New.
22332 (the_low_target): Add new members.
22333 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22334 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22335 (the_low_target): Add new members.
22336 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22337 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22338 (the_low_target): Add new members.
22339 * linux-x86-64-low.c (target_regsets): Add new kind
22340 identifier.
22341
223422002-05-15 Daniel Jacobowitz <drow@mvista.com>
22343
22344 From Martin Pool <mbp@samba.org>:
22345 * server.c (gdbserver_usage): New function.
22346 (main): Call it.
22347
223482002-05-14 Daniel Jacobowitz <drow@mvista.com>
22349
22350 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22351 stop_at -> stop_pc.
22352
223532002-05-04 Andrew Cagney <ac131313@redhat.com>
22354
22355 * Makefile.in: Remove obsolete code.
22356
223572002-04-24 Michal Ludvig <mludvig@suse.cz>
22358
22359 * linux-low.c (regsets_fetch_inferior_registers),
22360 (regsets_store_inferior_registers): Removed cast to int from
22361 ptrace() calls.
22362 * regcache.h: Added declaration of struct inferior_info.
22363
223642002-04-20 Daniel Jacobowitz <drow@mvista.com>
22365
22366 * inferiors.c (struct inferior_info): Add regcache_data.
22367 (add_inferior): Call create_register_cache.
22368 (clear_inferiors): Call free_register_cache.
22369 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22370 * regcache.c (struct inferior_regcache_data): New.
22371 (registers): Remove.
22372 (get_regcache): New function.
22373 (create_register_cache, free_register_cache): New functions.
22374 (set_register_cache): Don't initialize the register cache here.
22375 (registers_to_string, registers_from_string, register_data): Call
22376 get_regcache.
22377 * regcache.h: Add prototypes.
22378 * server.h: Likewise.
22379
223802002-04-20 Daniel Jacobowitz <drow@mvista.com>
22381
22382 * mem-break.c: New file.
22383 * mem-break.h: New file.
22384 * Makefile.in: Add mem-break.o rule; update server.h
22385 dependencies.
22386 * inferiors.c (struct inferior_info): Add target_data
22387 member.
22388 (clear_inferiors): Free target_data member if set.
22389 (inferior_target_data, set_inferior_target_data): New functions.
22390 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22391 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22392 * linux-low.c (linux_bp_reinsert): New variable.
22393 (struct inferior_linux_data): New.
22394 (linux_create_inferior): Use set_inferior_target_data.
22395 (linux_attach): Likewise. Call add_inferior.
22396 (linux_wait_for_one_inferior): New function.
22397 (linux_wait): Call it.
22398 (linux_write_memory): Add const.
22399 (initialize_low): Call set_breakpoint_data.
22400 * linux-low.h (struct linux_target_ops): Add breakpoint
22401 handling members.
22402 * server.c (attach_inferior): Remove extra add_inferior
22403 call.
22404 * server.h: Include mem-break.h. Update inferior.c
22405 prototypes.
22406 * target.c (read_inferior_memory)
22407 (write_inferior_memory): New functions.
22408 * target.h (read_inferior_memory)
22409 (write_inferior_memory): Change macros to prototypes.
22410 (struct target_ops): Update comments. Add const to write_memory
22411 definition.
22412
224132002-04-11 Daniel Jacobowitz <drow@mvista.com>
22414
22415 * linux-low.c (usr_store_inferior_registers): Support
22416 registers which are allowed to fail to store.
22417 * linux-low.h (linux_target_ops): Likewise.
22418 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22419 (ppc_cannot_store_register): FPSCR may not be storable.
22420
224212002-04-09 Daniel Jacobowitz <drow@mvista.com>
22422
22423 * server.h: Include <string.h> if HAVE_STRING_H.
22424 * ChangeLog: Correct paths in last ChangeLog entry.
22425
224262002-04-09 Daniel Jacobowitz <drow@mvista.com>
22427
22428 * linux-low.h: Remove obsolete prototypes.
22429 (struct linux_target_ops): New.
22430 (extern the_low_target): New.
22431 * linux-low.c (num_regs, regmap): Remove declarations.
22432 (register_addr): Use the_low_target explicitly.
22433 (fetch_register): Likewise.
22434 (usr_fetch_inferior_registers): Likewise.
22435 (usr_store_inferior_registers): Likewise.
22436 * linux-arm-low.c (num_regs): Remove.
22437 (arm_num_regs): Define.
22438 (arm_regmap): Renamed from regmap, made static.
22439 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22440 made static.
22441 (arm_cannot_store_register): Renamed from cannot_store_register,
22442 made static.
22443 (the_low_target): New.
22444 * linux-i386-low.c (num_regs): Remove.
22445 (i386_num_regs): Define.
22446 (i386_regmap): Renamed from regmap, made static.
22447 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22448 made static.
22449 (i386_cannot_store_register): Renamed from cannot_store_register,
22450 made static.
22451 (the_low_target): New.
22452 * linux-ia64-low.c (num_regs): Remove.
22453 (ia64_num_regs): Define.
22454 (ia64_regmap): Renamed from regmap, made static.
22455 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22456 made static.
22457 (ia64_cannot_store_register): Renamed from cannot_store_register,
22458 made static.
22459 (the_low_target): New.
22460 * linux-m68k-low.c (num_regs): Remove.
22461 (m68k_num_regs): Define.
22462 (m68k_regmap): Renamed from regmap, made static.
22463 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22464 made static.
22465 (m68k_cannot_store_register): Renamed from cannot_store_register,
22466 made static.
22467 (the_low_target): New.
22468 * linux-mips-low.c (num_regs): Remove.
22469 (mips_num_regs): Define.
22470 (mips_regmap): Renamed from regmap, made static.
22471 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22472 made static.
22473 (mips_cannot_store_register): Renamed from cannot_store_register,
22474 made static.
22475 (the_low_target): New.
22476 * linux-ppc-low.c (num_regs): Remove.
22477 (ppc_num_regs): Define.
22478 (ppc_regmap): Renamed from regmap, made static.
22479 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22480 made static.
22481 (ppc_cannot_store_register): Renamed from cannot_store_register,
22482 made static.
22483 (the_low_target): New.
22484 * linux-s390-low.c (num_regs): Remove.
22485 (s390_num_regs): Define.
22486 (s390_regmap): Renamed from regmap, made static.
22487 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22488 made static.
22489 (s390_cannot_store_register): Renamed from cannot_store_register,
22490 made static.
22491 (the_low_target): New.
22492 * linux-sh-low.c (num_regs): Remove.
22493 (sh_num_regs): Define.
22494 (sh_regmap): Renamed from regmap, made static.
22495 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22496 made static.
22497 (sh_cannot_store_register): Renamed from cannot_store_register,
22498 made static.
22499 (the_low_target): New.
22500 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22501 (the_low_target): New.
22502
225032002-04-09 Daniel Jacobowitz <drow@mvista.com>
22504
22505 * Makefile.in: Add stamp-h target.
22506 * configure.in: Create stamp-h.
22507 * configure: Regenerated.
22508
225092002-04-09 Daniel Jacobowitz <drow@mvista.com>
22510
22511 * inferiors.c: New file.
22512 * target.c: New file.
22513 * target.h: New file.
22514 * Makefile.in: Add target.o and inferiors.o. Update
22515 dependencies.
22516 * linux-low.c (inferior_pid): New static variable,
22517 moved from server.c.
22518 (linux_create_inferior): Renamed from create_inferior.
22519 Call add_inferior. Return 0 on success instead of a PID.
22520 (linux_attach): Renamed from myattach.
22521 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22522 (linux_thread_alive): Renamed from mythread_alive.
22523 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22524 child dies.
22525 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22526 (regsets_store_inferior_registers): Correct error message.
22527 Add missing ``return 0''.
22528 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22529 (linux_store_registers): Renamed from store_inferior_registers.
22530 (linux_read_memory): Renamed from read_inferior_memory.
22531 (linux_write_memory): Renamed from write_inferior_memory.
22532 (linux_target_ops): New structure.
22533 (initialize_low): Call set_target_ops ().
22534 * remote-utils.c (unhexify): New function.
22535 (hexify): New function.
22536 (input_interrupt): Send signals to ``signal_pid''.
22537 * server.c (inferior_pid): Remove.
22538 (start_inferior): Update create_inferior call.
22539 (attach_inferior): Call add_inferior.
22540 (handle_query): New function.
22541 (main): Call handle_query for `q' packets.
22542 * server.h: Include "target.h". Remove obsolete prototypes.
22543 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22544
225452002-04-09 Daniel Jacobowitz <drow@mvista.com>
22546
22547 * Makefile.in: Add WARN_CFLAGS. Update configury
22548 dependencies.
22549 * configure.in: Check for <string.h>
22550 * configure: Regenerate.
22551 * config.in: Regenerate.
22552 * gdbreplay.c: Include needed system headers.
22553 (remote_open): Remove strchr prototype.
22554 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22555 * regcache.c (supply_register): Change buf argument to const void *.
22556 (supply_register_by_name): Likewise.
22557 (collect_register): Change buf argument to void *.
22558 (collect_register_by_name): Likewise.
22559 * regcache.h: Add missing prototypes.
22560 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22561 * server.c (handle_query): New function.
22562 (attached): New static variable, moved out of main.
22563 (main): Quiet longjmp clobber warnings.
22564 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22565 * utils.c (error): Remove NORETURN.
22566 (fatal): Likewise.
This page took 2.573666 seconds and 4 git commands to generate.