[gdb/testsuite] Prevent pagination in GDB_INTERNALFLAGS
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
006811bc
SM
12020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * acinclude.m4: Update ptrace.m4 path.
4
92a048fd
SM
52020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * config.in: Re-generate.
8 * configure: Re-generate.
9
4dbe16c8
SM
102020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
11
12 * server.cc (handle_general_set): Don't use sprintf with
13 argument overlapping buffer.
14
a9b45cb7
TT
152020-10-20 Tom Tromey <tromey@adacore.com>
16
17 PR gdb/26742:
18 * inferiors.cc (remove_thread): Clear current_thread before
19 freeing the thread.
20
b07993f6
KR
212020-10-13 Kamil Rytarowski <n54@gmx.com>x
22
23 * netbsd-low.cc (netbsd_tdesc): Remove.
24 (netbsd_add_process): Likewise.
25 (netbsd_process_target::create_inferior): Update.
26
bbb826f5
AB
272020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
28
29 * linux-arc-low.cc (arc_linux_read_description): Release the
30 unique_ptr returned from arc_create_target_description.
31
361cb219
AB
322020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
33
34 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
35 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
36
51a948fd
AB
372020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
38
39 * linux-low.cc (linux_process_target::handle_extended_wait):
40 Release the unique_ptr returned from allocate_target_description.
41 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
42 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
43 (tdesc_i386_linux_no_xml): Change type.
44 (x86_linux_read_description): Borrow pointer from unique_ptr
45 object.
46 (x86_target::get_ipa_tdesc_idx): Likewise.
47 (initialize_low_arch): Likewise.
48 * tdesc.cc (allocate_target_description): Update return type.
49
60b74662
TT
502020-10-07 Tom Tromey <tromey@adacore.com>
51
52 * server.cc (handle_search_memory): Remove dead code.
53
55b10d89
TT
542020-10-07 Tom Tromey <tromey@adacore.com>
55
56 * server.cc (handle_search_memory_1): Remove.
57 (handle_search_memory): Use simple_search_memory.
58
a038ffd8
SM
592020-10-07 Simon Marchi <simon.marchi@efficios.com>
60
61 * Makefile.in (COMPILE): Add CXXFLAGS.
62 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
63 (gdbserver$(EXEEXT)): Add CXXFLAGS.
64 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
65 ($(IPA_LIB)): Add CXXFLAGS.
66 (IPAGENT_COMPILE): Add CXXFLAGS.
67
bbe90b5d 682020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
69
70 * configure.srv: Support ARC architecture.
71 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
72 * linux-arc-low.cc: New file.
73
48491055
KR
742020-10-07 Kamil Rytarowski <n54@gmx.com>
75
76 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
77 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
78 (netbsd_process_target::qxfer_libraries_svr4): Update.
79
2be01f63
KR
802020-10-07 Kamil Rytarowski <n54@gmx.com>
81
82 * netbsd-low.cc: Fix whitespace formatting.
83 * netbsd-amd64-low.cc: Likewise.
84
91e5e8db
KR
852020-10-07 Kamil Rytarowski <n54@gmx.com>
86
87 * netbsd-low.cc (netbsd_process_target::read_memory)
88 (netbsd_process_target::write_memory): Update.
89
9529c852
KR
902020-10-07 Kamil Rytarowski <n54@gmx.com>
91
92 * netbsd-aarch64-low.cc: Add.
93 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
94 * configure.srv: Add aarch64*-*-netbsd*.
95
981b570a
SV
962020-10-06 Shahab Vahedi <shahab@synopsys.com>
97
98 * regcache.cc (register_data): Remove unused "fetch" argument.
99
6b01403b
SM
1002020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * server.cc (handle_monitor_command): Handle "set
103 debug-event-loop".
104 (captured_main): Handle "--debug-event-loop".
105 (monitor_show_help): Mention new setting.
106 (gdbserver_usage): Mention new flag.
107
2554f6f5
SM
1082020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * linux-low.cc (linux_process_target::async): Pass name to
111 add_file_handler.
112 * remote-utils.cc (handle_accept_event): Likewise.
113 (remote_open): Likewise.
114
8b667fae
KR
1152020-10-01 Kamil Rytarowski <n54@gmx.com>
116
117 * netbsd-i386-low.cc: Add.
118 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
119 * configure.srv: Add i[34567]86-*-netbsd*.
120
15397b0e
KR
1212020-10-01 Kamil Rytarowski <n54@gmx.com>
122
123 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
124 (netbsd_target_regsets): Now const.
125 (the_low_target): Remove.
126 (class netbsd_amd64_target, the_netbsd_amd64_target)
127 (the_netbsd_target): Add.
128 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
129 low_arch_setup ().
130 (netbsd_process_target::fetch_registers)
131 (netbsd_process_target::store_registers, initialize_low): Update.
132 (the_netbsd_target): Remove.
133 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
134 (the_low_target, netbsd_tdesc): Remove.
135 (netbsd_process_target::get_regs_info)
136 (netbsd_process_target::low_arch_setup): Add.
137
99bb393f
HD
1382020-09-23 Hannes Domani <ssbssa@yahoo.de>
139
140 * win32-low.cc: Remove local wow64_process variable.
141 * win32-low.h: Remove local wow64_process variable.
142
b60cea74
TT
1432020-09-18 Tom Tromey <tromey@adacore.com>
144
145 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
146 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
147 (netbsd_process_target::wait): Change type of target_options.
148 * win32-low.h (class win32_process_target) <wait>: Update.
149 * win32-low.cc (win32_process_target::wait): Update.
150 * target.h (class process_stratum_target) <wait>: Update.
151 (mywait): Update.
152 * target.cc (mywait, target_wait): Change type of "options".
153 * linux-low.h (class linux_process_target) <wait, wait_1>:
154 Update.
155 * linux-low.cc (linux_process_target::wait)
156 (linux_process_target::wait_1): Update.
157
db92ac45
TT
1582020-09-15 Tom Tromey <tromey@adacore.com>
159
160 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
161 (xmltarget_amd64_linux_no_xml): Now arrays.
162
27087b7f
TT
1632020-09-14 Tom Tromey <tromey@adacore.com>
164
165 * tracepoint.cc (eval_result_names): Now const.
166 * ax.cc (gdb_agent_op_names): Now const.
167
62ba5048
KR
1682020-09-10 Kamil Rytarowski <n54@gmx.com>
169
170 * netbsd-low.cc: Add.
171 * netbsd-low.h: Likewise.
172 * netbsd-amd64-low.cc: Likewise.
173 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
174 "netbsd-amd64-low.cc".
175 * configure.srv: Add x86_64-*-netbsd*.
176
ece5bc8a
SM
1772020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
178
179 * server.cc (captured_main): Accept multiple `--selftest=`
180 options. Pass all `--selftest=` arguments to run_tests.
181
c8693053
RO
1822020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
183
184 * configure, config.in: Regenerate.
185
05a6b8c2
EZ
1862020-07-26 Eli Zaretskii <eliz@gnu.org>
187
188 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
189 When checking whether socklen_t type is defined, use ws2tcpip.h if
190 it is available and sys/socket.h isn't.
191 * configure: Regenerate.
192 * config.in: Regenerate.
193
028a4603
PA
1942020-07-22 Pedro Alves <pedro@palves.net>
195
196 * inferiors.cc (switch_to_process): New, moved here from
197 thread-db.cc, and made extern.
198 * inferiors.h (switch_to_process): Declare.
199 * server.cc: Include "gdbsupport/scoped_restore.h".
200 (handle_qxfer_threads_proper): Now returns bool. Prepare to
201 access memory around target calls.
202 (handle_qxfer_threads): Handle errors.
203 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
204
05c309a8
SM
2052020-07-21 Simon Marchi <simon.marchi@efficios.com>
206
207 * linux-low.cc (stopped_pids): Make static.
208
0e267416
AB
2092020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
210
211 * tdesc.cc (allocate_target_description): Add header comment.
212 (target_desc_deleter::operator()): New function.
213 * tdesc.h (struct target_desc): Declare as final.
214
b315b67d
SM
2152020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
216
217 * server.cc (handle_query): Use std::vector of
218 std::string for `qsupported` vector. Use separate
219 vector for unknowns.
220 * target.h (class process_stratum_target) <process_qsupported>:
221 Change parameters to array_view of const char *.
222 (target_process_qsupported): Remove `count` parameter.
223 * target.cc (process_stratum_target::process_qsupported): Change
224 parameters to array_view of const char *.
225 * linux-x86-low.cc (class x86_target) <process_qsupported>:
226 Likewise.
227
f638ed73
TV
2282020-06-29 Tom de Vries <tdevries@suse.de>
229
230 * ax.h: Include gdbsupport/debug_agent.h.
231
fbf42f4e
AB
2322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
233
234 * tdesc.cc (struct tdesc_compatible_info): New struct.
235 (tdesc_compatible_info_list): New function.
236 (tdesc_compatible_info_arch_name): New function.
237
013e3554
TBA
2382020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
239
240 Use std::list to stop pending signal instead of manually-created
241 linked list.
242 * linux-low.h: Include <list>.
243 (struct pending_signal): Move here from linux-low.cc.
244 (struct lwp_info) <pending_signals>
245 <pending_signals_to_report>: Update the type.
246 * linux-low.cc (struct pending_signals): Remove.
247 (linux_process_target::delete_lwp)
248 (linux_process_target::add_lwp)
249 (enqueue_one_deferred_signal)
250 (dequeue_one_deferred_signal)
251 (enqueue_pending_signal)
252 (linux_process_target::resume_one_lwp_throw)
253 (linux_process_target::thread_needs_step_over)
254 (linux_process_target::resume_one_thread)
255 (linux_process_target::proceed_one_lwp): Update the use of pending
256 signal list.
257
7d458ea5
SM
2582020-06-17 Simon Marchi <simon.marchi@efficios.com>
259
260 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
261 Remove.
262
84b300de
SM
2632020-06-12 Simon Marchi <simon.marchi@efficios.com>
264
265 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
266 * configure.srv: Remove mingw32ce cases.
267 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
268 * win32-low.h (to_back_slashes): Remove.
269 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
270
96c16e2b
SM
2712020-06-12 Simon Marchi <simon.marchi@efficios.com>
272
273 * Makefile.in (SFILES): linux-tile-low.cc.
274 * configure.srv: Remove tilegx case.
275 * linux-tile-low.cc: Remove.
276
bd1467ae
SM
2772020-06-12 Simon Marchi <simon.marchi@efficios.com>
278
279 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
280 * configure.srv: Remove m32r case.
281 * linux-m32r-low.cc: Remove.
282
7b46bf6f
SM
2832020-06-12 Simon Marchi <simon.marchi@efficios.com>
284
285 * Makefile.in (SFILES): Remove linux-cris-low.c.
286 * configure.srv: Remove cris cases.
287 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
288
1fa29f56
SM
2892020-06-12 Simon Marchi <simon.marchi@efficios.com>
290
291 * Makefile.in (SFILES): Remove linux-bfin-low.c.
292 * configure.srv: Remove bfin case.
293 * linux-bfin-low.cc: Remove.
294 * linux-low.cc: Remove BFIN-conditional code.
295
613f149a
SM
2962020-06-12 Simon Marchi <simon.marchi@efficios.com>
297
298 * configure: Re-generate.
299 * configure.ac: Remove srv_qnx test.
300 * configure.srv: Remove nto case.
301 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
302 * remote-utils.c: Remove __QNX__-guarded code.
303
fdb95bf5
SM
3042020-06-12 Simon Marchi <simon.marchi@efficios.com>
305
306 * configure: Re-generate.
307 * configure.ac: Remove srv_lynxos test.
308 * configure.srv: Remove lynxos cases.
309 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
310 Remove.
311
c00094dc
SM
3122020-06-12 Simon Marchi <simon.marchi@efficios.com>
313
314 * README: Fix a few outdated or incoherent things.
315
6479bf85
HD
3162020-05-27 Hannes Domani <ssbssa@yahoo.de>
317
318 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
319 (win32_clear_inferiors): Use open_process_used.
320 (get_child_debug_event): Likewise.
321
bea571eb
MW
3222020-05-25 Michael Weghorn <m.weghorn@posteo.de>
323
324 PR gdbserver/25893
325 * linux-low.cc (linux_process_target::create_inferior),
326 lynx-low.cc (lynx_process_target::create_inferior),
327 win32-low.cc (win32_process_target::create_inferior): Use
328 construct_inferior_arguments instead of stringify_argv
329 to get string representation which properly escapes
330 special characters.
331 * server.cc (handle_v_run): Just pass empty program arg
332 as such, since any further processing is now handled via
333 construct_inferior_arguments.
334
ace6b919
MW
3352020-05-25 Michael Weghorn <m.weghorn@posteo.de>
336
337 * nto-low.cc (nto_process_target::create_inferior): Pass
338 argv to spawnp function as char **.
339
b69ca137
MW
3402020-05-25 Michael Weghorn <m.weghorn@posteo.de>
341
342 * server.cc (captured_main), (handle_v_run): No longer
343 insert extra NULL element to args vector.
344
51e2cfa2
PA
3452020-05-23 Pedro Alves <palves@redhat.com>
346
347 * gdb-safe-ctype.h: New.
348
8bbf0394
TBA
3492020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
350
351 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
352 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
353 (ia64_target::low_breakpoint_at): Ditto.
354
01370779
HD
3552020-05-15 Hannes Domani <ssbssa@yahoo.de>
356
357 * win32-i386-low.cc (i386_supports_z_point_type): Handle
358 Z_PACKET_HW_BP z_type.
359 (i386_insert_point): Handle raw_bkpt_type type.
360 (i386_remove_point): Likewise.
361
7d186bc0
HD
3622020-04-30 Hannes Domani <ssbssa@yahoo.de>
363
364 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
365 Add arch/i386.o.
366 * win32-arm-low.cc (arm_num_regs): New function.
367 (struct win32_target_ops): Use arm_num_regs.
368 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
369 processes.
370 (i386_get_thread_context): Likewise.
371 (i386_prepare_to_resume): Likewise.
372 (i386_thread_added): Likewise.
373 (i386_single_step): Likewise.
374 (i386_fetch_inferior_register): Likewise.
375 (i386_store_inferior_register): Likewise.
376 (i386_arch_setup): Likewise.
377 (i386_win32_num_regs): New function.
378 (struct win32_target_ops): Use i386_win32_num_regs.
379 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
380 processes.
381 (win32_require_context): Likewise.
382 (child_add_thread): Likewise.
383 (do_initial_child_stuff): Likewise.
384 (continue_one_thread): Likewise.
385 (win32_process_target::resume): Likewise.
386 (load_psapi): Likewise.
387 (win32_add_all_dlls): Likewise.
388 (maybe_adjust_pc): Likewise.
389 (win32_process_target::qxfer_siginfo): Likewise.
390 (initialize_low): Likewise.
391 * win32-low.h (struct win32_target_ops): Change num_regs to
392 callback function.
393
1eb39914
SM
3942020-04-27 Simon Marchi <simon.marchi@efficios.com>
395
396 * configure.ac: Remove check for fs_base/gs_base in
397 user_regs_struct.
398 * configure: Re-generate.
399 * config.in: Re-generate.
400 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
401 x86_store_gregset): Adjust.
402
51ac8e22
HD
4032020-04-22 Hannes Domani <ssbssa@yahoo.de>
404
405 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
406 comparison.
407
a010605f
TT
4082020-04-16 Tom Tromey <tromey@adacore.com>
409
410 * win32-low.cc (windows_nat::handle_access_violation): New
411 function.
412
e2275c6e
SM
4132020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
414
415 * win32-low.cc (get_child_debug_event): Fix format string warning.
416
73944e9f
TT
4172020-04-13 Tom Tromey <tom@tromey.com>
418
419 * server.h (gdb_fildes_t): Remove typedef.
420 * remote-utils.c (remote_desc, list_desc): Now int.
421 (INVALID_DESCRIPTOR): Remove.
422 (gdb_connected, remote_close)
423 (check_remote_input_interrupt_request): Update.
424 * utils.h (pfildes): Don't declare.
425 * utils.c (pfildes): Remove.
426
55d7aec8
TT
4272020-04-13 Tom Tromey <tom@tromey.com>
428
429 * server.h (handle_serial_event, handle_target_event): Update.
430 * server.c: Don't call initialize_event_loop.
431 (keep_processing_events): New global.
432 (handle_serial_event): Return void. Set keep_processing_events.
433 (handle_target_event): Return void.
434 (start_event_loop): Move from event-loop.c. Rewrite.
435 * remote-utils.c (handle_accept_event): Return void.
436 (reset_readchar): Use delete_timer.
437 (process_remaining): Return void.
438 (reschedule): Use create_timer.
439 * event-loop.h: Remove.
440 * event-loop.cc: Remove.
441 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
442
e487f994
TT
4432020-04-13 Tom Tromey <tom@tromey.com>
444
445 * server.c (invoke_async_signal_handlers)
446 (check_async_event_handlers, flush_streams, gdb_select): New
447 functions.
448
8ae8e197
TT
4492020-04-13 Tom Tromey <tom@tromey.com>
450
451 * configure: Rebuild.
452 * config.in: Rebuild.
453
360ad8b3
TT
4542020-04-08 Tom Tromey <tromey@adacore.com>
455
456 PR gdb/22992
457 * win32-low.c (child_continue): Call matching_pending_stop.
458 (get_child_debug_event): Call fetch_pending_stop. Push pending
459 stop when needed.
460
523d4f80
TT
4612020-04-08 Tom Tromey <tromey@adacore.com>
462
463 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
464 (win32_process_target::supports_stopped_by_sw_breakpoint):
465 Declare.
466 * win32-low.c (win32_supports_z_point_type): Always handle
467 Z_PACKET_SW_BP.
468 (win32_insert_point): Call insert_memory_breakpoint when needed.
469 (win32_remove_point): Call remove_memory_breakpoint when needed.
470 (win32_process_target::stopped_by_sw_breakpoint)
471 (win32_process_target::supports_stopped_by_sw_breakpoint): New
472 methods.
473 (win32_target_ops): Update.
474 (maybe_adjust_pc): New function.
475 (win32_wait): Call maybe_adjust_pc.
476
e54e5929
TT
4772020-04-08 Tom Tromey <tromey@adacore.com>
478
479 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
480 field.
481 * win32-i386-low.c (the_low_target): Update.
482 * win32-arm-low.c (the_low_target): Update.
483
d6225aff
TT
4842020-04-08 Tom Tromey <tromey@adacore.com>
485
486 * win32-low.h (win32_process_target::read_pc)
487 (win32_process_target::write_pc): Declare.
488 * win32-low.c (win32_process_target::read_pc)
489 (win32_process_target::write_pc): New methods.
490 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
491 functions.
492 (the_low_target): Update.
493 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
494 functions.
495 (the_low_target): Update.
496
2c1d95e8
TT
4972020-04-08 Tom Tromey <tromey@adacore.com>
498
499 * win32-low.c (win32_kill, get_child_debug_event): Use
500 wait_for_debug_event.
501
e758e19c
TT
5022020-04-08 Tom Tromey <tromey@adacore.com>
503
504 * win32-low.c (child_continue): Call continue_last_debug_event.
505
8d30e395
TT
5062020-04-08 Tom Tromey <tromey@adacore.com>
507
508 * win32-low.c (handle_exception): Remove.
509 (windows_nat::handle_ms_vc_exception): New function.
510 (get_child_debug_event): Add "continue_status" parameter.
511 Update.
512 (win32_wait): Update.
513
a816ba18
TT
5142020-04-08 Tom Tromey <tromey@adacore.com>
515
516 * win32-low.c (windows_nat::handle_load_dll): Rename from
517 handle_load_dll. No longer static.
518 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
519 No longer static.
520
d41b524f
TT
5212020-04-08 Tom Tromey <tromey@adacore.com>
522
523 * win32-low.c (handle_output_debug_string): Add parameter. Change
524 return type.
525 (win32_kill, get_child_debug_event): Update.
526
3c76026d
TT
5272020-04-08 Tom Tromey <tromey@adacore.com>
528
529 * win32-low.c (current_process_handle, current_process_id)
530 (main_thread_id, last_sig, current_event, siginfo_er): Move to
531 nat/windows-nat.c.
532
9d8679cc
TT
5332020-04-08 Tom Tromey <tromey@adacore.com>
534
535 * win32-low.c (get_image_name): Remove.
536 (handle_load_dll): Update.
537
28688adf
TT
5382020-04-08 Tom Tromey <tromey@adacore.com>
539
540 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
541 No longer static. Change parameters.
542 (child_add_thread, child_fetch_inferior_registers)
543 (child_store_inferior_registers, win32_resume)
544 (win32_get_tib_address): Update.
545
4834dad0
TT
5462020-04-08 Tom Tromey <tromey@adacore.com>
547
548 * win32-low.h (struct win32_target_ops): Use qualified names where
549 needed.
550 * win32-i386-low.c: Add "using namespace".
551 * win32-low.c: Add "using namespace".
552 * win32-arm-low.c: Add "using namespace".
553
65bafd5b
TT
5542020-04-08 Tom Tromey <tromey@adacore.com>
555
556 * win32-low.c (delete_thread_info): Don't call CloseHandle.
557
98a03287
TT
5582020-04-08 Tom Tromey <tromey@adacore.com>
559
560 * win32-low.c (win32_require_context, suspend_one_thread): Use
561 windows_thread_info::suspend.
562 (continue_one_thread): Use windows_thread_info::resume.
563 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
564
62fe396b
TT
5652020-04-08 Tom Tromey <tromey@adacore.com>
566
567 * win32-i386-low.c (update_debug_registers)
568 (i386_prepare_to_resume, i386_thread_added): Update.
569
e9534bd2
TT
5702020-04-08 Tom Tromey <tromey@adacore.com>
571
572 * win32-low.c (child_add_thread): Use new.
573 (delete_thread_info): Use delete.
574
ae1f8880
TT
5752020-04-08 Tom Tromey <tromey@adacore.com>
576
577 * win32-low.h (struct windows_thread_info): Remove.
578
e56f8ccb
TT
5792020-04-08 Tom Tromey <tromey@adacore.com>
580
581 * win32-low.h (struct windows_thread_info): Rename from
582 win32_thread_info. Remove typedef.
583 (struct win32_target_ops, win32_require_context): Update.
584 * win32-low.c (win32_get_thread_context)
585 (win32_set_thread_context, win32_prepare_to_resume)
586 (win32_require_context, thread_rec, child_add_thread)
587 (delete_thread_info, continue_one_thread)
588 (child_fetch_inferior_registers, child_store_inferior_registers)
589 (win32_resume, suspend_one_thread, win32_get_tib_address):
590 Update.
591 * win32-i386-low.c (update_debug_registers)
592 (win32_get_current_dr, i386_get_thread_context)
593 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
594 (i386_fetch_inferior_register, i386_store_inferior_register):
595 Update.
596 * win32-arm-low.c (arm_get_thread_context)
597 (arm_fetch_inferior_register, arm_store_inferior_register):
598 Update.
599
0dd7b52e
TBA
6002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
601
602 * linux-low.h (struct linux_target_ops): Remove.
603 (the_low_target): Remove.
604 * linux-x86-low.cc (the_low_target): Remove.
605 * linux-aarch64-low.cc (the_low_target): Ditto.
606 * linux-arm-low.cc (the_low_target): Ditto.
607 * linux-bfin-low.cc (the_low_target): Ditto.
608 * linux-cris-low.cc (the_low_target): Ditto.
609 * linux-crisv32-low.cc (the_low_target): Ditto.
610 * linux-ia64-low.cc (the_low_target): Ditto.
611 * linux-m32r-low.cc (the_low_target): Ditto.
612 * linux-m68k-low.cc (the_low_target): Ditto.
613 * linux-mips-low.cc (the_low_target): Ditto.
614 * linux-nios2-low.cc (the_low_target): Ditto.
615 * linux-ppc-low.cc (the_low_target): Ditto.
616 * linux-riscv-low.cc (the_low_target): Ditto.
617 * linux-s390-low.cc (the_low_target): Ditto.
618 * linux-sh-low.cc (the_low_target): Ditto.
619 * linux-sparc-low.cc (the_low_target): Ditto.
620 * linux-tic6x-low.cc (the_low_target): Ditto.
621 * linux-tile-low.cc (the_low_target): Ditto.
622 * linux-xtensa-low.cc (the_low_target): Ditto.
623
fc5ecdb6
TBA
6242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
625
626 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
627 linux target define the op by overriding the declaration in
628 process_stratum_target.
629
630 * linux-low.h (struct linux_target_ops): Remove the op.
631 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
632 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
633 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
634 (x86_get_ipa_tdesc_idx): Turn into...
635 (x86_target::get_ipa_tdesc_idx): ...this.
636 (the_low_target): Remove the op field.
637 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
638 (ppc_get_ipa_tdesc_idx): Turn into...
639 (ppc_target::get_ipa_tdesc_idx): ...this.
640 (the_low_target): Remove the op field.
641 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
642 (s390_get_ipa_tdesc_idx): Turn into...
643 (s390_target::get_ipa_tdesc_idx): ...this.
644 (the_low_target): Remove the op field.
645
9eedd27d
TBA
6462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
647
648 Turn the 'get_syscall_trapinfo' linux target op into a method
649 of process_stratum_target.
650
651 * linux-low.h (struct linux_target_ops): Remove the op.
652 (class linux_process_target) <get_syscall_trapinfo>
653 <gdb_catch_this_syscall>
654 <low_supports_catch_syscall>
655 <low_get_syscall_trapinfo>: Declare.
656 * linux-low.cc (get_syscall_trapinfo): Turn into...
657 (linux_process_target::get_syscall_trapinfo): ...this.
658 (linux_process_target::low_get_syscall_trapinfo): Define.
659 (gdb_catch_this_syscall_p): Turn into...
660 (linux_process_target::gdb_catch_this_syscall): ...this.
661 (linux_process_target::low_supports_catch_syscall): Define.
662
663 Update the callers below.
664
665 (linux_process_target::wait_1)
666 (linux_process_target::supports_catch_syscall)
667
668 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
669 <low_get_syscall_trapinfo>: Declare.
670 (x86_target::low_supports_catch_syscall): Define.
671 (x86_get_syscall_trapinfo): Turn into...
672 (x86_target::low_get_syscall_trapinfo): ...this.
673 (the_low_target): Remove the op field.
674 * linux-aarch64-low.cc (class aarch64_target)
675 <low_supports_catch_syscall>
676 <low_get_syscall_trapinfo>: Declare.
677 (aarch64_target::low_supports_catch_syscall): Define.
678 (aarch64_get_syscall_trapinfo): Turn into...
679 (aarch64_target::low_get_syscall_trapinfo): ...this.
680 (the_low_target): Remove the op field.
681 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
682 <low_get_syscall_trapinfo>: Declare.
683 (arm_target::low_supports_catch_syscall): Define.
684 (arm_get_syscall_trapinfo): Turn into...
685 (arm_target::low_get_syscall_trapinfo): ...this.
686 (the_low_target): Remove the op field.
687 * linux-ppc-low.cc (the_low_target): Remove the op field.
688 * linux-s390-low.cc (the_low_target): Remove the op field.
689
b31cdfa6
TBA
6902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
691
692 Remove the 'supports_hardware_single_step' linux target op and
693 override the process_stratum_target's op definition in
694 linux_process_target to return true.
695
696 * linux-low.h (struct linux_target_ops): Remove the op.
697 (class linux_process_target) <finish_step_over>
698 <maybe_hw_step>: Declare.
699 * linux-low.cc (can_hardware_single_step): Remove.
700 (maybe_hw_step): Turn into...
701 (linux_process_target::maybe_hw_step): ...this.
702 (finish_step_over): Turn into...
703 (linux_process_target::finish_step_over): ...this.
704 (linux_process_target::supports_hardware_single_step): Update
705 to return true.
706
707 Update the callers below.
708
709 (linux_process_target::single_step)
710 (linux_process_target::resume_one_lwp_throw)
711
712 * linux-arm-low.cc (class arm_target)
713 <supports_hardware_single_step>: Declare.
714 (arm_supports_hardware_single_step): Turn into...
715 (arm_target::supports_hardware_single_step): ...this.
716 (the_low_target): Remove the op field.
717 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
718 (the_low_target): Remove the op field.
719 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
720 Remove.
721 (the_low_target): Remove the op field.
722 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
723 (the_low_target): Remove the op field.
724 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
725 (the_low_target): Remove the op field.
726 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
727 (the_low_target): Remove the op field.
728 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
729 (the_low_target): Remove the op field.
730 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
731 (the_low_target): Remove the op field.
732 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
733 (the_low_target): Remove the op field.
734 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
735 (the_low_target): Remove the op field.
736 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
737 (the_low_target): Remove the op field.
738 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
739 (the_low_target): Remove the op field.
740 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
741 Remove.
742 (the_low_target): Remove the op field.
743
9cfd8715
TBA
7442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
745
746 Turn the 'supports_range_stepping' linux target op into a method
747 of linux_process_target.
748
749 * linux-low.h (struct linux_target_ops): Remove the op.
750 (class linux_process_target) <low_supports_range_stepping>: Declare.
751 * linux-low.cc (linux_process_target::low_supports_range_stepping):
752 Define.
753 (linux_process_target::supports_range_stepping): Update the call
754 site.
755 * linux-x86-low.cc (class x86_target)
756 <low_supports_range_stepping>: Declare.
757 (x86_supports_range_stepping): Turn into...
758 (x86_target::low_supports_range_stepping): ...this.
759 (the_low_target): Remove the op field.
760 * linux-aarch64-low.cc (class aarch64_target)
761 <low_supports_range_stepping>: Declare.
762 (aarch64_supports_range_stepping): Turn into...
763 (aarch64_target::low_supports_range_stepping): ...this.
764 (the_low_target): Remove the op field.
765 * linux-arm-low.cc (the_low_target): Remove the op field.
766 * linux-bfin-low.cc (the_low_target): Ditto.
767 * linux-crisv32-low.cc (the_low_target): Ditto.
768 * linux-m32r-low.cc (the_low_target): Ditto.
769 * linux-m68k-low.cc (the_low_target): Ditto.
770 * linux-ppc-low.cc (the_low_target): Ditto.
771 * linux-s390-low.cc (the_low_target): Ditto.
772 * linux-sh-low.cc (the_low_target): Ditto.
773 * linux-tic6x-low.cc (the_low_target): Ditto.
774 * linux-tile-low.cc (the_low_target): Ditto.
775 * linux-xtensa-low.cc (the_low_target): Ditto.
776
ab64c999
TBA
7772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
778
779 Remove the 'emit_ops' linux target ops and let the concrete
780 linux target define the op by overriding the declaration of
781 process_stratum_target.
782
783 * linux-low.h (struct linux_target_ops): Remove the op.
784 (class linux_process_target) <emit_ops>: Remove.
785 * linux-low.cc (linux_process_target::emit_ops): Remove.
786 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
787 (x86_emit_ops): Turn into...
788 (x86_target::emit_ops): ...this.
789 (the_low_target): Remove the op field.
790 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
791 (aarch64_emit_ops): Turn into...
792 (aarch64_target::emit_ops): ...this.
793 (the_low_target): Remove the op field.
794 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
795 (ppc_emit_ops): Turn into...
796 (ppc_target::emit_ops): ...this.
797 (the_low_target): Remove the op field.
798 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
799 (s390_emit_ops): Turn into...
800 (s390_target::emit_ops): ...this.
801 (the_low_target): Remove the op field.
802 * linux-arm-low.cc (the_low_target): Remove the op field.
803 * linux-bfin-low.cc (the_low_target): Ditto.
804 * linux-crisv32-low.cc (the_low_target): Ditto.
805 * linux-m32r-low.cc (the_low_target): Ditto.
806 * linux-m68k-low.cc (the_low_target): Ditto.
807 * linux-sh-low.cc (the_low_target): Ditto.
808 * linux-tic6x-low.cc (the_low_target): Ditto.
809 * linux-tile-low.cc (the_low_target): Ditto.
810 * linux-xtensa-low.cc (the_low_target): Ditto.
811
809a0c35
TBA
8122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
813
814 Remove the 'install_fast_tracepoint_jump_pad' and
815 'get_min_fast_tracepoint_insn_len' linux target ops to let the
816 concrete linux target define the ops by overriding the declarations
817 of process_stratum_target.
818
819 * linux-low.h (struct linux_target_ops): Remove the ops.
820 (class linux_process_target) <supports_fast_tracepoints>
821 <install_fast_tracepoint_jump_pad>
822 <get_min_fast_tracepoint_insn_len>: Remove.
823 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
824 (linux_process_target::install_fast_tracepoint_jump_pad)
825 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
826 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
827 <install_fast_tracepoint_jump_pad>
828 <get_min_fast_tracepoint_insn_len>: Declare.
829 (x86_target::supports_fast_tracepoints): Define.
830 (x86_install_fast_tracepoint_jump_pad): Turn into...
831 (x86_target::install_fast_tracepoint_jump_pad): ...this.
832 (x86_get_min_fast_tracepoint_insn_len): Turn into...
833 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
834 (the_low_target): Remove the op fields.
835 * linux-aarch64-low.cc (class aarch64_target)
836 <supports_fast_tracepoints>
837 <install_fast_tracepoint_jump_pad>
838 <get_min_fast_tracepoint_insn_len>: Declare.
839 (aarch64_target::supports_fast_tracepoints): Define.
840 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
841 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
842 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
843 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
844 (the_low_target): Remove the op fields.
845 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
846 <install_fast_tracepoint_jump_pad>
847 <get_min_fast_tracepoint_insn_len>: Declare.
848 (ppc_target::supports_fast_tracepoints): Define.
849 (ppc_install_fast_tracepoint_jump_pad): Turn into...
850 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
851 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
852 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
853 (the_low_target): Remove the op fields.
854 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
855 <install_fast_tracepoint_jump_pad>
856 <get_min_fast_tracepoint_insn_len>: Declare.
857 (s390_target::supports_fast_tracepoints): Define.
858 (s390_install_fast_tracepoint_jump_pad): Turn into...
859 (s390_target::install_fast_tracepoint_jump_pad): ...this.
860 (s390_get_min_fast_tracepoint_insn_len): Turn into...
861 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
862 (the_low_target): Remove the op fields.
863 * linux-arm-low.cc (the_low_target): Remove the op fields.
864 * linux-bfin-low.cc (the_low_target): Ditto.
865 * linux-crisv32-low.cc (the_low_target): Ditto.
866 * linux-m32r-low.cc (the_low_target): Ditto.
867 * linux-m68k-low.cc (the_low_target): Ditto.
868 * linux-sh-low.cc (the_low_target): Ditto.
869 * linux-tic6x-low.cc (the_low_target): Ditto.
870 * linux-tile-low.cc (the_low_target): Ditto.
871 * linux-xtensa-low.cc (the_low_target): Ditto.
872
13e567af
TBA
8732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
874
875 Turn the 'get_thread_area' linux target op into a method of
876 process_stratum_target.
877
878 * linux-low.h (struct linux_target_ops): Remove the op.
879 (class linux_process_target) <stuck_in_jump_pad>
880 <linux_fast_tracepoint_collecting>
881 <low_get_thread_area>: Declare.
882 * linux-low.cc (supports_fast_tracepoints): Remove.
883 (linux_fast_tracepoint_collecting): Turn into...
884 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
885 (linux_process_target::low_get_thread_area): Define.
886 (stuck_in_jump_pad_callback): Turn into...
887 (linux_process_target::stuck_in_jump_pad): ...this.
888
889 Update the caller below.
890
891 (linux_process_target::stabilize_threads)
892
893 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
894 Declare.
895 (x86_get_thread_area): Turn into...
896 (x86_target::low_get_thread_area): ...this.
897 (the_low_target): Remove the op field.
898 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
899 Declare.
900 (aarch64_get_thread_area): Turn into...
901 (aarch64_target::low_get_thread_area): ...this.
902 (the_low_target): Remove the op field.
903 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
904 Declare.
905 (ppc_get_thread_area): Turn into...
906 (ppc_target::low_get_thread_area): ...this.
907 (the_low_target): Remove the op field.
908 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
909 Declare.
910 (s390_get_thread_area): Turn into...
911 (s390_target::low_get_thread_area): ...this.
912 (the_low_target): Remove the op field.
913 * linux-arm-low.cc (the_low_target): Remove the op field.
914 * linux-bfin-low.cc (the_low_target): Ditto.
915 * linux-crisv32-low.cc (the_low_target): Ditto.
916 * linux-m32r-low.cc (the_low_target): Ditto.
917 * linux-m68k-low.cc (the_low_target): Ditto.
918 * linux-sh-low.cc (the_low_target): Ditto.
919 * linux-tic6x-low.cc (the_low_target): Ditto.
920 * linux-tile-low.cc (the_low_target): Ditto.
921 * linux-xtensa-low.cc (the_low_target): Ditto.
922
47f70aa7
TBA
9232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
924
925 Remote the 'supports_tracepoints' linux target op and let the
926 concrete linux target define it by overriding the op declared in
927 process_stratum_target.
928
929 * linux-low.h (struct linux_target_ops): Remove the op.
930 (class linux_process_target) <supports_tracepoints>: Remove.
931 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
932 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
933 Declare.
934 (x86_supports_tracepoints): Turn into...
935 (x86_target::supports_tracepoints): ...this.
936 (the_low_target): Remove the op field.
937 * linux-aarch64-low.cc (class aarch64_target)
938 <supports_tracepoints>: Declare.
939 (aarch64_supports_tracepoints): Turn into...
940 (aarch64_target::supports_tracepoints): ...this.
941 (the_low_target): Remove the op field.
942 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
943 Declare.
944 (ppc_supports_tracepoints): Turn into...
945 (ppc_target::supports_tracepoints): ...this.
946 (the_low_target): Remove the op field.
947 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
948 Declare.
949 (s390_supports_tracepoints): Turn into...
950 (s390_target::supports_tracepoints): ...this.
951 (the_low_target): Remove the op field.
952 * linux-arm-low.cc (the_low_target): Remove the op field.
953 * linux-bfin-low.cc (the_low_target): Ditto.
954 * linux-crisv32-low.cc (the_low_target): Ditto.
955 * linux-m32r-low.cc (the_low_target): Ditto.
956 * linux-m68k-low.cc (the_low_target): Ditto.
957 * linux-sh-low.cc (the_low_target): Ditto.
958 * linux-tic6x-low.cc (the_low_target): Ditto.
959 * linux-tile-low.cc (the_low_target): Ditto.
960 * linux-xtensa-low.cc (the_low_target): Ditto.
961
a5b5da92
TBA
9622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
963
964 Remove the 'process_qsupported' linux target op and let a concrete
965 linux target define the op by overriding the op declaration in
966 process_stratum_target.
967
968 * linux-low.h (struct linux_target_ops): Remove the op.
969 (class linux_process_target) <process_qsupported>: Remove.
970 * linux-low.cc (linux_process_target::process_qsupported): Remove.
971 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
972 (x86_linux_process_qsupported): Turn into...
973 (x86_target::process_qsupported): ...this.
974 (the_low_target): Remove the op field.
975 * linux-aarch64-low.cc (the_low_target): Remove the op
976 field.
977 * linux-arm-low.cc (the_low_target): Ditto.
978 * linux-bfin-low.cc (the_low_target): Ditto.
979 * linux-crisv32-low.cc (the_low_target): Ditto.
980 * linux-m32r-low.cc (the_low_target): Ditto.
981 * linux-m68k-low.cc (the_low_target): Ditto.
982 * linux-ppc-low.cc (the_low_target): Ditto.
983 * linux-s390-low.cc (the_low_target): Ditto.
984 * linux-sh-low.cc (the_low_target): Ditto.
985 * linux-tic6x-low.cc (the_low_target): Ditto.
986 * linux-tile-low.cc (the_low_target): Ditto.
987 * linux-xtensa-low.cc (the_low_target): Ditto.
988
d7599cc0
TBA
9892020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
990
991 Turn the 'prepare_to_resume' linux target op into a method of
992 linux_process_target.
993
994 * linux-low.h (struct linux_target_ops): Remove the op.
995 (class linux_process_target) <low_prepare_to_resume>: Declare.
996 * linux-low.cc (linux_process_target::low_prepare_to_resume):
997 Define.
998
999 Update the callers below:
1000
1001 (linux_process_target::resume_one_lwp_throw)
1002 (linux_process_target::low_prepare_to_resume)
1003
1004 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1005 Declare.
1006 (x86_target::low_prepare_to_resume): Define.
1007 (the_low_target): Remove the op field.
1008 * linux-aarch64-low.cc (class aarch64_target)
1009 <low_prepare_to_resume>: Declare.
1010 (aarch64_target::low_prepare_to_resume): Define.
1011 (the_low_target): Remove the op field.
1012 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1013 Declare.
1014 (arm_prepare_to_resume): Turn into...
1015 (arm_target::low_prepare_to_resume): ...this.
1016 (the_low_target): Remove the op field.
1017 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1018 Declare.
1019 (mips_linux_prepare_to_resume): Turn into...
1020 (mips_target::low_prepare_to_resume): ...this.
1021 (the_low_target): Remove the op field.
1022 * linux-bfin-low.cc (the_low_target): Remove the op field.
1023 * linux-crisv32-low.cc (the_low_target): Ditto.
1024 * linux-m32r-low.cc (the_low_target): Ditto.
1025 * linux-m68k-low.cc (the_low_target): Ditto.
1026 * linux-ppc-low.cc (the_low_target): Ditto.
1027 * linux-s390-low.cc (the_low_target): Ditto.
1028 * linux-sh-low.cc (the_low_target): Ditto.
1029 * linux-tic6x-low.cc (the_low_target): Ditto.
1030 * linux-tile-low.cc (the_low_target): Ditto.
1031 * linux-xtensa-low.cc (the_low_target): Ditto.
1032
fd000fb3
TBA
10332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1034
1035 Turn the 'new_process', 'delete_process', 'new_thread',
1036 'delete_thread', and 'new_fork' linux target ops into methods
1037 of linux_process_target.
1038
1039 * linux-low.h (struct linux_target_ops): Remove the ops.
1040 (class linux_process_target) <add_linux_process>
1041 <add_lwp>
1042 <delete_lwp>
1043 <attach_lwp>
1044 <detach_one_lwp>
1045 <check_zombie_leaders>
1046 <filter_exit_event>
1047 <low_new_process>
1048 <low_delete_process>
1049 <low_new_thread>
1050 <low_delete_thread>
1051 <low_new_fork>: Declare.
1052 * linux-low.cc (delete_lwp): Turn into...
1053 (linux_process_target::delete_lwp): ...this.
1054 (linux_process_target::low_delete_thread): Define.
1055 (linux_add_process): Turn into...
1056 (linux_process_target::add_linux_process): ...this.
1057 (linux_process_target::low_new_process): Define.
1058 (linux_process_target::low_delete_process): Define.
1059 (linux_process_target::low_new_fork): Define.
1060 (add_lwp): Turn into...
1061 (linux_process_target::add_lwp): ...this.
1062 (linux_process_target::low_new_thread): Define.
1063 (linux_attach_lwp): Turn into...
1064 (linux_process_target::attach_lwp): ...this.
1065 (linux_detach_one_lwp): Turn into...
1066 (linux_process_target::detach_one_lwp): ...this.
1067 (linux_detach_lwp_callback): Remove and inline...
1068 (linux_process_target::detach): ...here.
1069 (check_zombie_leaders): Turn into...
1070 (linux_process_target::check_zombie_leaders): ...this.
1071 (filter_exit_event): Turn into...
1072 (linux_process_target::filter_exit_event): ...this.
1073
1074 Update the callers below.
1075
1076 (linux_process_target::handle_extended_wait)
1077 (linux_process_target::create_inferior)
1078 (attach_proc_task_lwp_callback)
1079 (linux_process_target::attach)
1080 (linux_process_target::detach)
1081 (linux_process_target::mourn)
1082 * thread-db.cc (attach_thread)
1083
1084 * linux-x86-low.cc (class x86_target) <low_new_process>
1085 <low_delete_process>
1086 <low_new_thread>
1087 <low_delete_thread>
1088 <low_new_fork>: Declare.
1089 (x86_linux_new_process): Turn into...
1090 (x86_target::low_new_process): ...this.
1091 (x86_linux_delete_process): Turn into...
1092 (x86_target::low_delete_process): ...this.
1093 (x86_target::low_new_thread): Define.
1094 (x86_target::low_delete_thread): Define.
1095 (x86_linux_new_fork): Turn into...
1096 (x86_target::low_new_fork): ...this.
1097 (the_low_target): Remove the op fields.
1098 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1099 <low_delete_process>
1100 <low_new_thread>
1101 <low_delete_thread>
1102 <low_new_fork>: Declare.
1103 (aarch64_linux_new_process): Turn into...
1104 (aarch64_target::low_new_process): ...this.
1105 (aarch64_linux_delete_process): Turn into...
1106 (aarch64_target::low_delete_process): ...this.
1107 (aarch64_target::low_new_thread): Define.
1108 (aarch64_target::low_delete_thread): Define.
1109 (aarch64_linux_new_fork): Turn into...
1110 (aarch64_target::low_new_fork): ...this.
1111 (the_low_target): Remove the op fields.
1112 * linux-arm-low.cc (class arm_target) <low_new_process>
1113 <low_delete_process>
1114 <low_new_thread>
1115 <low_delete_thread>
1116 <low_new_fork>: Declare.
1117 (arm_new_process): Turn into...
1118 (arm_target::low_new_process): ...this.
1119 (arm_delete_process): Turn into...
1120 (arm_target::low_delete_process): ...this.
1121 (arm_new_thread): Turn into...
1122 (arm_target::low_new_thread): ...this.
1123 (arm_delete_thread): Turn into...
1124 (arm_target::low_delete_thread): ...this.
1125 (arm_new_fork): Turn into...
1126 (arm_target::low_new_fork): ...this.
1127 (the_low_target): Remove the op fields.
1128 * linux-mips-low.cc (class mips_target) <low_new_process>
1129 <low_delete_process>
1130 <low_new_thread>
1131 <low_delete_thread>
1132 <low_new_fork>: Declare.
1133 (mips_linux_new_process): Turn into...
1134 (mips_target::low_new_process): ...this.
1135 (mips_linux_delete_process): Turn into...
1136 (mips_target::low_delete_process): ...this.
1137 (mips_linux_new_thread): Turn into...
1138 (mips_target::low_new_thread): ...this.
1139 (mips_linux_delete_thread): Turn into...
1140 (mips_target::low_delete_thread): ...this.
1141 (mips_linux_new_fork): Turn into...
1142 (mips_target::low_new_fork): ...this.
1143 (the_low_target): Remove the op fields.
1144 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1145 * linux-crisv32-low.cc (the_low_target): Ditto.
1146 * linux-m32r-low.cc (the_low_target): Ditto.
1147 * linux-m68k-low.cc (the_low_target): Ditto.
1148 * linux-ppc-low.cc (the_low_target): Ditto.
1149 * linux-s390-low.cc (the_low_target): Ditto.
1150 * linux-sh-low.cc (the_low_target): Ditto.
1151 * linux-tic6x-low.cc (the_low_target): Ditto.
1152 * linux-tile-low.cc (the_low_target): Ditto.
1153 * linux-xtensa-low.cc (the_low_target): Ditto.
1154
cb63de7c
TBA
11552020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1156
1157 Turn the 'siginfo_fixup' linux target op into a method of
1158 linux_process_target.
1159
1160 * linux-low.h (struct linux_target_ops): Remove the op.
1161 (class linux_process_target) <siginfo_fixup>
1162 <low_siginfo_fixup>: Declare.
1163 * linux-low.cc (siginfo_fixup): Turn into...
1164 (linux_process_target::siginfo_fixup): ...this.
1165 (linux_process_target::low_siginfo_fixup): Define.
1166 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1167 (x86_siginfo_fixup): Turn into...
1168 (x86_target::low_siginfo_fixup): ...this.
1169 (the_low_target): Remove the op field.
1170 * linux-aarch64-low.cc (class aarch64_target):
1171 <low_siginfo_fixup>: Declare.
1172 (aarch64_linux_siginfo_fixup): Turn into...
1173 (aarch64_target::low_siginfo_fixup): ...this.
1174 (the_low_target): Remove the op field.
1175 * linux-arm-low.cc (the_low_target): Remove the op field.
1176 * linux-bfin-low.cc (the_low_target): Ditto.
1177 * linux-crisv32-low.cc (the_low_target): Ditto.
1178 * linux-m32r-low.cc (the_low_target): Ditto.
1179 * linux-m68k-low.cc (the_low_target): Ditto.
1180 * linux-mips-low.cc (the_low_target): Ditto.
1181 * linux-ppc-low.cc (the_low_target): Ditto.
1182 * linux-s390-low.cc (the_low_target): Ditto.
1183 * linux-sh-low.cc (the_low_target): Ditto.
1184 * linux-tic6x-low.cc (the_low_target): Ditto.
1185 * linux-tile-low.cc (the_low_target): Ditto.
1186 * linux-xtensa-low.cc (the_low_target): Ditto.
1187
b35db733
TBA
11882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1189
1190 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1191 linux target ops into methods of linux_process_target.
1192
1193 * linux-low.h (struct linux_target_ops): Remove the ops.
1194 (class linux_process_target) <low_collect_ptrace_register>
1195 <low_store_ptrace_register>: Declare.
1196 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1197 (linux_process_target::low_supply_ptrace_register): Define.
1198
1199 Update the callers below.
1200
1201 (linux_process_target::fetch_register)
1202 (linux_process_target::store_register)
1203
1204 * linux-x86-low.cc (the_low_target): Remove the op fields.
1205 * linux-aarch64-low.cc (the_low_target): Ditto.
1206 * linux-arm-low.cc (the_low_target): Ditto.
1207 * linux-bfin-low.cc (the_low_target): Ditto.
1208 * linux-crisv32-low.cc (the_low_target): Ditto.
1209 * linux-m32r-low.cc (the_low_target): Ditto.
1210 * linux-m68k-low.cc (the_low_target): Ditto.
1211 * linux-sh-low.cc (the_low_target): Ditto.
1212 * linux-sparc-low.cc (the_low_target): Ditto.
1213 * linux-tic6x-low.cc (the_low_target): Ditto.
1214 * linux-tile-low.cc (the_low_target): Ditto.
1215 * linux-xtensa-low.cc (the_low_target): Ditto.
1216 * linux-mips-low.cc (class mips_target)
1217 <low_collect_ptrace_register>
1218 <low_supply_ptrace_register>: Declare.
1219 (mips_collect_ptrace_register): Turn into ...
1220 (mips_target::low_collect_ptrace_register): ...this.
1221 (mips_supply_ptrace_register): Turn into...
1222 (mips_target::low_supply_ptrace_register): ...this.
1223 (the_low_target): Remove the op fields.
1224 * linux-ppc-low.cc (class ppc_target)
1225 <low_collect_ptrace_register>
1226 <low_supply_ptrace_register>: Declare.
1227 (ppc_collect_ptrace_register): Turn into ...
1228 (ppc_target::low_collect_ptrace_register): ...this.
1229 (ppc_supply_ptrace_register): Turn into ...
1230 (ppc_target::low_supply_ptrace_register): ...this.
1231 (ppc_fill_gregset): Update for the calls to
1232 low_collect_ptrace_register.
1233 (the_low_target): Remove the op fields.
1234 * linux-s390-low.cc (class s390_target)
1235 <low_collect_ptrace_register>
1236 <low_supply_ptrace_register>: Declare.
1237 (s390_collect_ptrace_register): Turn into ...
1238 (s390_target::low_collect_ptrace_register): ...this.
1239 (s390_supply_ptrace_register): Turn into ...
1240 (s390_target::low_supply_ptrace_register): ...this.
1241 (s390_fill_gregset): Update for the calls to
1242 low_collect_ptrace_register.
1243 (the_low_target): Remove the op fields.
1244
ac1bbaca
TBA
12452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1246
1247 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1248 target ops into methods of linux_process_target.
1249
1250 * linux-low.h (struct linux_target_ops): Remove the ops.
1251 (class linux_process_target) <check_stopped_by_watchpoint>
1252 <low_stopped_by_watchpoint>
1253 <low_stopped_data_address>: Declare.
1254 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1255 (linux_process_target::check_stopped_by_watchpoint): ...this.
1256 (linux_process_target::low_stopped_by_watchpoint): Define.
1257 (linux_process_target::low_stopped_data_address): Define.
1258 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1259 <low_stopped_data_address>: Declare.
1260 (x86_stopped_by_watchpoint): Turn into...
1261 (x86_target::low_stopped_by_watchpoint): ...this.
1262 (x86_stopped_data_address): Turn into...
1263 (x86_target::low_stopped_data_address): ...this.
1264 (the_low_target): Remove the op fields.
1265 * linux-aarch64-low.cc (class aarch64_target)
1266 <low_stopped_by_watchpoint>
1267 <low_stopped_data_address>: Declare.
1268 (aarch64_stopped_by_watchpoint): Turn into...
1269 (aarch64_target::low_stopped_by_watchpoint): ...this.
1270 (aarch64_stopped_data_address): Turn into...
1271 (aarch64_target::low_stopped_data_address): ...this.
1272 (the_low_target): Remove the op fields.
1273 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1274 <low_stopped_data_address>: Declare.
1275 (arm_stopped_by_watchpoint): Turn into...
1276 (arm_target::low_stopped_by_watchpoint): ...this.
1277 (arm_stopped_data_address): Turn into...
1278 (arm_target::low_stopped_data_address): ...this.
1279 (the_low_target): Remove the op fields.
1280 * linux-crisv32-low.cc (class crisv32_target)
1281 <low_stopped_by_watchpoint>
1282 <low_stopped_data_address>: Declare.
1283 (cris_stopped_by_watchpoint): Turn into...
1284 (crisv32_target::low_stopped_by_watchpoint): ...this.
1285 (cris_stopped_data_address): Turn into...
1286 (crisv32_target::low_stopped_data_address): ...this.
1287 (the_low_target): Remove the op fields.
1288 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1289 <low_stopped_data_address>: Declare.
1290 (mips_stopped_by_watchpoint): Turn into...
1291 (mips_target::low_stopped_by_watchpoint): ...this.
1292 (mips_stopped_data_address): Turn into...
1293 (mips_target::low_stopped_data_address): ...this.
1294 (the_low_target): Remove the op fields.
1295 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1296 * linux-m32r-low.cc (the_low_target): Ditto.
1297 * linux-m68k-low.cc (the_low_target): Ditto.
1298 * linux-ppc-low.cc (the_low_target): Ditto.
1299 * linux-s390-low.cc (the_low_target): Ditto.
1300 * linux-sh-low.cc (the_low_target): Ditto.
1301 * linux-sparc-low.cc (the_low_target): Ditto.
1302 * linux-tic6x-low.cc (the_low_target): Ditto.
1303 * linux-tile-low.cc (the_low_target): Ditto.
1304 * linux-xtensa-low.cc (the_low_target): Ditto.
1305
9db9aa23
TBA
13062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1307
1308 Turn the 'insert_point' and 'remove_point' linux target ops into
1309 methods of linux_process_target.
1310
1311 * linux-low.h (struct linux_target_ops): Remove the ops.
1312 (class linux_process_target) <low_insert_point>
1313 <low_remove_point>: Declare.
1314 * linux-low.cc (linux_process_target::low_insert_point)
1315 (linux_process_target::low_remove_point): Define.
1316 (linux_process_target::insert_point)
1317 (linux_process_target::remove_point): Update for calls to
1318 low_insert_point and low_remove_point.
1319 * linux-x86-low.cc (class x86_target) <low_insert_point>
1320 <low_remove_point>: Declare.
1321 (x86_insert_point): Turn into...
1322 (x86_target::low_insert_point): ...this.
1323 (x86_remove_point): Turn into...
1324 (x86_target::low_remove_point): ...this.
1325 (the_low_target): Remove the op fields.
1326 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1327 <low_remove_point>: Declare.
1328 (aarch64_insert_point): Turn into...
1329 (aarch64_target::low_insert_point): ...this.
1330 (aarch64_remove_point): Turn into...
1331 (aarch64_target::low_remove_point): ...this.
1332 (the_low_target): Remove the op fields.
1333 * linux-arm-low.cc (class arm_target) <low_insert_point>
1334 <low_remove_point>: Declare.
1335 (arm_insert_point): Turn into...
1336 (arm_target::low_insert_point): ...this.
1337 (arm_remove_point): Turn into...
1338 (arm_target::low_remove_point): ...this.
1339 (the_low_target): Remove the op fields.
1340 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1341 <low_remove_point>: Declare.
1342 (crisv32_insert_point): Turn into...
1343 (crisv32_target::low_insert_point): ...this.
1344 (crisv32_remove_point): Turn into...
1345 (crisv32_target::low_remove_point): ...this.
1346 (the_low_target): Remove the op fields.
1347 * linux-mips-low.cc (class mips_target) <low_insert_point>
1348 <low_remove_point>: Declare.
1349 (mips_insert_point): Turn into...
1350 (mips_target::low_insert_point): ...this.
1351 (mips_remove_point): Turn into...
1352 (mips_target::low_remove_point): ...this.
1353 (the_low_target): Remove the op fields.
1354 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1355 <low_remove_point>: Declare.
1356 (ppc_insert_point): Turn into...
1357 (ppc_target::low_insert_point): ...this.
1358 (ppc_remove_point): Turn into...
1359 (ppc_target::low_remove_point): ...this.
1360 (the_low_target): Remove the op fields.
1361 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1362 * linux-m32r-low.cc (the_low_target): Ditto.
1363 * linux-m68k-low.cc (the_low_target): Ditto.
1364 * linux-s390-low.cc (the_low_target): Ditto.
1365 * linux-sh-low.cc (the_low_target): Ditto.
1366 * linux-sparc-low.cc (the_low_target): Ditto.
1367 * linux-tic6x-low.cc (the_low_target): Ditto.
1368 * linux-tile-low.cc (the_low_target): Ditto.
1369 * linux-xtensa-low.cc (the_low_target): Ditto.
1370
007c9b97
TBA
13712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1372
1373 Remove the 'supports_z_point_type' linux target op and let the
1374 concrete linux target define it by overriding the op declared in
1375 process_stratum_target.
1376
1377 * linux-low.cc (linux_process_target::supports_z_point_type):
1378 Remove.
1379 * linux-low.h (struct linux_target_ops): Remove the op.
1380 (class linux_process_target) <supports_z_point_type>: Remove.
1381 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1382 Declare.
1383 (x86_supports_z_point_type): Turn into...
1384 (x86_target::supports_z_point_type): ...this.
1385 (the_low_target): Remove the op field.
1386 * linux-aarch64-low.cc (class aarch64_target)
1387 <supports_z_point_type>: Declare.
1388 (aarch64_supports_z_point_type): Turn into...
1389 (aarch64_target::supports_z_point_type): ...this.
1390 (the_low_target): Remove the op field.
1391 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1392 Declare.
1393 (arm_supports_z_point_type): Turn into...
1394 (arm_target::supports_z_point_type): ...this.
1395 (the_low_target): Remove the op field.
1396 * linux-crisv32-low.cc (class crisv32_target)
1397 <supports_z_point_type>: Declare.
1398 (cris_supports_z_point_type): Turn into...
1399 (crisv32_target::supports_z_point_type): ...this.
1400 (the_low_target): Remove the op field.
1401 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1402 Declare.
1403 (mips_supports_z_point_type): Turn into...
1404 (mips_target::supports_z_point_type): ...this.
1405 (the_low_target): Remove the op field.
1406 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1407 Declare.
1408 (ppc_supports_z_point_type): Turn into...
1409 (ppc_target::supports_z_point_type): ...this.
1410 (the_low_target): Remove the op field.
1411 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1412 Declare.
1413 (s390_supports_z_point_type): Turn into...
1414 (s390_target::supports_z_point_type): ...this.
1415 (the_low_target): Remove the op field.
1416 * linux-bfin-low.cc (the_low_target): Remove the op field.
1417 * linux-m32r-low.cc (the_low_target): Ditto.
1418 * linux-m68k-low.cc (the_low_target): Ditto.
1419 * linux-sh-low.cc (the_low_target): Ditto.
1420 * linux-sparc-low.cc (the_low_target): Ditto.
1421 * linux-tic6x-low.cc (the_low_target): Ditto.
1422 * linux-tile-low.cc (the_low_target): Ditto.
1423 * linux-xtensa-low.cc (the_low_target): Ditto.
1424
d7146cda
TBA
14252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1426
1427 Turn the 'breakpoint_at' linux target op into a method of
1428 linux_process_target.
1429
1430 * linux-low.h (struct linux_target_ops): Remove the op.
1431 (class linux_process_target) <low_breakpoint_at>: Declare.
1432
1433 Update the callers below:
1434
1435 * linux-low.cc (linux_process_target::save_stop_reason)
1436 (linux_process_target::thread_still_has_status_pending)
1437 (linux_process_target::wait_1)
1438
1439 * linux-x86-low.cc (class x86_target)
1440 <low_breakpoint_at>: Declare.
1441 (x86_breakpoint_at): Turn into...
1442 (x86_target::low_breakpoint_at): ...this.
1443 (the_low_target): Remove the op field.
1444 * linux-aarch64-low.cc (class aarch64_target)
1445 <low_breakpoint_at>: Declare.
1446 (aarch64_breakpoint_at): Turn into...
1447 (aarch64_target::low_breakpoint_at): ...this.
1448 (the_low_target): Remove the op field.
1449 * linux-arm-low.cc (class arm_target)
1450 <low_breakpoint_at>: Declare.
1451 (arm_target::low_breakpoint_at): Define.
1452 (the_low_target): Remove the op field.
1453 * linux-bfin-low.cc (class bfin_target)
1454 <low_breakpoint_at>: Declare.
1455 (bfin_breakpoint_at): Turn into...
1456 (bfin_target::low_breakpoint_at): ...this.
1457 (the_low_target): Remove the op field.
1458 * linux-cris-low.cc (class cris_target)
1459 <low_breakpoint_at>: Declare.
1460 (cris_breakpoint_at): Turn into...
1461 (cris_target::low_breakpoint_at): ...this.
1462 (the_low_target): Remove the op field.
1463 * linux-crisv32-low.cc (class crisv32_target)
1464 <low_breakpoint_at>: Declare.
1465 (crisv32_breakpoint_at): Turn into...
1466 (crisv32_target::low_breakpoint_at): ...this.
1467 (the_low_target): Remove the op field.
1468 * linux-ia64-low.cc (class ia64_target)
1469 <low_breakpoint_at>: Declare.
1470 (ia64_target::low_breakpoint_at): Define.
1471 * linux-m32r-low.cc (class m32r_target)
1472 <low_breakpoint_at>: Declare.
1473 (m32r_breakpoint_at): Turn into...
1474 (m32r_target::low_breakpoint_at): ...this.
1475 (the_low_target): Remove the op field.
1476 * linux-m68k-low.cc (class m68k_target)
1477 <low_breakpoint_at>: Declare.
1478 (m68k_breakpoint_at): Turn into...
1479 (m68k_target::low_breakpoint_at): ...this.
1480 (the_low_target): Remove the op field.
1481 * linux-mips-low.cc (class mips_target)
1482 <low_breakpoint_at>: Declare.
1483 (mips_breakpoint_at): Turn into...
1484 (mips_target::low_breakpoint_at): ...this.
1485 (the_low_target): Remove the op field.
1486 * linux-nios2-low.cc (class nios2_target)
1487 <low_breakpoint_at>: Declare.
1488 (nios2_breakpoint_at): Turn into...
1489 (nios2_target::low_breakpoint_at): ...this.
1490 (the_low_target): Remove the op field.
1491 * linux-ppc-low.cc (class ppc_target)
1492 <low_breakpoint_at>: Declare.
1493 (ppc_breakpoint_at): Turn into...
1494 (ppc_target::low_breakpoint_at): ...this.
1495 (the_low_target): Remove the op field.
1496 * linux-riscv-low.cc (class riscv_target)
1497 <low_breakpoint_at>: Declare.
1498 (riscv_breakpoint_at): Turn into...
1499 (riscv_target::low_breakpoint_at): ...this.
1500 (the_low_target): Remove the op field.
1501 * linux-s390-low.cc (class s390_target)
1502 <low_breakpoint_at>: Declare.
1503 (s390_breakpoint_at): Turn into...
1504 (s390_target::low_breakpoint_at): ...this.
1505 (the_low_target): Remove the op field.
1506 * linux-sh-low.cc (class sh_target)
1507 <low_breakpoint_at>: Declare.
1508 (sh_breakpoint_at): Turn into...
1509 (sh_target::low_breakpoint_at): ...this.
1510 (the_low_target): Remove the op field.
1511 * linux-sparc-low.cc (class sparc_target)
1512 <low_breakpoint_at>: Declare.
1513 (sparc_breakpoint_at): Turn into...
1514 (sparc_target::low_breakpoint_at): ...this.
1515 (the_low_target): Remove the op field.
1516 * linux-tic6x-low.cc (class tic6x_target)
1517 <low_breakpoint_at>: Declare.
1518 (tic6x_breakpoint_at): Turn into...
1519 (tic6x_target::low_breakpoint_at): ...this.
1520 (the_low_target): Remove the op field.
1521 * linux-tile-low.cc (class tile_target)
1522 <low_breakpoint_at>: Declare.
1523 (tile_breakpoint_at): Turn into...
1524 (tile_target::low_breakpoint_at): ...this.
1525 (the_low_target): Remove the op field.
1526 * linux-xtensa-low.cc (class xtensa_target)
1527 <low_breakpoint_at>: Declare.
1528 (xtensa_breakpoint_at): Turn into...
1529 (xtensa_target::low_breakpoint_at): ...this.
1530 (the_low_target): Remove the op field.
1531
d4807ea2
TBA
15322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1533
1534 Turn the 'decr_pc_after_break' linux_target_ops field into
1535 a method of linux_process_target.
1536
1537 * linux-low.h (struct linux_target_ops)
1538 <decr_pc_after_break>: Remove.
1539 (class linux_process_target) <low_decr_pc_after_break>: New method
1540 declaration.
1541 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1542 New method implementation.
1543
1544 Update the users below.
1545
1546 (linux_process_target::save_stop_reason)
1547 (linux_process_target::wait_1)
1548 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1549 New declaration.
1550 (x86_target::low_decr_pc_after_break): New method implementation.
1551 (the_low_target): Remove the field.
1552 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1553 New declaration.
1554 (bfin_target::low_decr_pc_after_break): New method implementation.
1555 (the_low_target): Remove the field.
1556 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1557 New declaration.
1558 (m68k_target::low_decr_pc_after_break): New method implementation.
1559 (the_low_target): Remove the field.
1560 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1561 New declaration.
1562 (s390_target::low_decr_pc_after_break): New method implementation.
1563 (the_low_target): Remove the field.
1564 * linux-aarch64-low.cc (the_low_target): Remove the field.
1565 * linux-arm-low.cc (the_low_target): Remove the field.
1566 * linux-cris-low.cc (the_low_target): Remove the field.
1567 * linux-crisv32-low.cc (the_low_target): Remove the field.
1568 * linux-m32r-low.cc (the_low_target): Remove the field.
1569 * linux-mips-low.cc (the_low_target): Remove the field.
1570 * linux-nios2-low.cc (the_low_target): Remove the field.
1571 * linux-ppc-low.cc (the_low_target): Remove the field.
1572 * linux-riscv-low.cc (the_low_target): Remove the field.
1573 * linux-sh-low.cc (the_low_target): Remove the field.
1574 * linux-sparc-low.cc (the_low_target): Remove the field.
1575 * linux-tic6x-low.cc (the_low_target): Remove the field.
1576 * linux-tile-low.cc (the_low_target): Remove the field.
1577 * linux-xtensa-low.cc (the_low_target): Remove the field.
1578
7582c77c
TBA
15792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1580
1581 Remove the 'supports_software_single_step' linux target op and let
1582 the concrete linux target define it by overriding the op in
1583 process_stratum_target.
1584 Turn the 'get_next_pcs' linux target op into a method of
1585 linux_process_target.
1586
1587 * linux-low.h (struct linux_target_ops): Remove the ops.
1588 (class linux_process_target) <supports_software_single_step>:
1589 Remove.
1590 <low_get_next_pcs>: Declare.
1591 * linux-low.cc (can_software_single_step): Remove.
1592 (linux_process_target::low_get_next_pcs): Define.
1593 (linux_process_target::supports_software_single_step): Remove.
1594
1595 Update the callers below.
1596
1597 (linux_process_target::handle_extended_wait)
1598 (linux_process_target::wait_1)
1599 (linux_process_target::install_software_single_step_breakpoints)
1600 (linux_process_target::single_step)
1601 (linux_process_target::thread_needs_step_over)
1602 (linux_process_target::proceed_one_lwp)
1603 (linux_process_target::supports_range_stepping)
1604
1605 * linux-x86-low.cc (the_low_target): Remove the op field.
1606 * linux-aarch64-low.cc (the_low_target): Ditto.
1607 * linux-bfin-low.cc (the_low_target): Ditto.
1608 * linux-cris-low.cc (the_low_target): Ditto.
1609 * linux-crisv32-low.cc (the_low_target): Ditto.
1610 * linux-m32r-low.cc (the_low_target): Ditto.
1611 * linux-m68k-low.cc (the_low_target): Ditto.
1612 * linux-mips-low.cc (the_low_target): Ditto.
1613 * linux-nios2-low.cc (the_low_target): Ditto.
1614 * linux-ppc-low.cc (the_low_target): Ditto.
1615 * linux-riscv-low.cc (the_low_target): Ditto.
1616 * linux-s390-low.cc (the_low_target): Ditto.
1617 * linux-sh-low.cc (the_low_target): Ditto.
1618 * linux-sparc-low.cc (the_low_target): Ditto.
1619 * linux-tic6x-low.cc (the_low_target): Ditto.
1620 * linux-tile-low.cc (the_low_target): Ditto.
1621 * linux-xtensa-low.cc (the_low_target): Ditto.
1622 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1623 <supports_software_single_step>: Declare.
1624 (arm_target::supports_software_single_step): Define.
1625 (arm_gdbserver_get_next_pcs): Turn into...
1626 (arm_target::low_get_next_pcs): ...this.
1627 (the_low_target): Remove the op field.
1628
3ca4edb6
TBA
16292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1630
1631 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1632 the concrete linux target define it by overriding the op
1633 in process_stratum_target.
1634
1635 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1636 Remove.
1637 * linux-low.h (struct linux_target_ops): Remove the op.
1638 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1639 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1640 Declare.
1641 (x86_sw_breakpoint_from_kind): Turn into...
1642 (x86_target::sw_breakpoint_from_kind): ...this.
1643 (the_low_target): Remove the op field.
1644 * linux-aarch64-low.cc (class aarch64_target)
1645 <sw_breakpoint_from_kind>: Declare.
1646 (aarch64_sw_breakpoint_from_kind): Turn into...
1647 (aarch64_target::sw_breakpoint_from_kind): ...this.
1648 (the_low_target): Remove the op field.
1649 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1650 Declare.
1651 (arm_target::sw_breakpoint_from_kind): Define.
1652 (the_low_target): Remove the op field.
1653 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1654 Declare.
1655 (bfin_sw_breakpoint_from_kind): Turn into...
1656 (bfin_target::sw_breakpoint_from_kind): ...this.
1657 (the_low_target): Remove the op field.
1658 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1659 Declare.
1660 (cris_sw_breakpoint_from_kind): Turn into...
1661 (cris_target::sw_breakpoint_from_kind): ...this.
1662 (the_low_target): Remove the op field.
1663 * linux-crisv32-low.cc (class crisv32_target)
1664 <sw_breakpoint_from_kind>: Declare.
1665 (cris_sw_breakpoint_from_kind): Turn into...
1666 (crisv32_target::sw_breakpoint_from_kind): ...this.
1667 (the_low_target): Remove the op field.
1668 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1669 Declare.
1670 (ia64_target::sw_breakpoint_from_kind): Define.
1671 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1672 Declare.
1673 (m32r_sw_breakpoint_from_kind): Turn into...
1674 (m32r_target::sw_breakpoint_from_kind): ...this.
1675 (the_low_target): Remove the op field.
1676 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1677 Declare.
1678 (m68k_sw_breakpoint_from_kind): Turn into...
1679 (m68k_target::sw_breakpoint_from_kind): ...this.
1680 (the_low_target): Remove the op field.
1681 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1682 Declare.
1683 (mips_sw_breakpoint_from_kind): Turn into...
1684 (mips_target::sw_breakpoint_from_kind): ...this.
1685 (the_low_target): Remove the op field.
1686 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1687 Declare.
1688 (nios2_sw_breakpoint_from_kind): Turn into...
1689 (nios2_target::sw_breakpoint_from_kind): ...this.
1690 (the_low_target): Remove the op field.
1691 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1692 Declare.
1693 (ppc_sw_breakpoint_from_kind): Turn into...
1694 (ppc_target::sw_breakpoint_from_kind): ...this.
1695 (the_low_target): Remove the op field.
1696 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1697 Declare.
1698 (riscv_sw_breakpoint_from_kind): Turn into...
1699 (riscv_target::sw_breakpoint_from_kind): ...this.
1700 (the_low_target): Remove the op field.
1701 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1702 Declare.
1703 (s390_sw_breakpoint_from_kind): Turn into...
1704 (s390_target::sw_breakpoint_from_kind): ...this.
1705 (the_low_target): Remove the op field.
1706 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1707 Declare.
1708 (sh_sw_breakpoint_from_kind): Turn into...
1709 (sh_target::sw_breakpoint_from_kind): ...this.
1710 (the_low_target): Remove the op field.
1711 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1712 Declare.
1713 (sparc_sw_breakpoint_from_kind): Turn into...
1714 (sparc_target::sw_breakpoint_from_kind): ...this.
1715 (the_low_target): Remove the op field.
1716 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1717 Declare.
1718 (tic6x_sw_breakpoint_from_kind): Turn into...
1719 (tic6x_target::sw_breakpoint_from_kind): ...this.
1720 (the_low_target): Remove the op field.
1721 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1722 Declare.
1723 (tile_sw_breakpoint_from_kind): Turn into...
1724 (tile_target::sw_breakpoint_from_kind): ...this.
1725 (the_low_target): Remove the op field.
1726 * linux-xtensa-low.cc (class xtensa_target)
1727 <sw_breakpoint_from_kind>: Declare.
1728 (xtensa_sw_breakpoint_from_kind): Turn into...
1729 (xtensa_target::sw_breakpoint_from_kind): ...this.
1730 (the_low_target): Remove the op field.
1731
06250e4e
TBA
17322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1733
1734 Remove the 'breakpoint_kind_from_pc' and
1735 'breakpoint_kind_from_current_state' linux target ops, and let the
1736 concrete linux target define them by overriding the ops of
1737 process_stratum_target.
1738
1739 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1740 Remove.
1741 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1742 * linux-low.h (struct linux_target_ops): Remove ops.
1743 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1744 <breakpoint_kind_from_current_state>: Remove.
1745 * linux-x86-low.cc (the_low_target): Remove the op fields.
1746 * linux-bfin-low.cc (the_low_target): Ditto.
1747 * linux-cris-low.cc (the_low_target): Ditto.
1748 * linux-crisv32-low.cc (the_low_target): Ditto.
1749 * linux-m32r-low.cc (the_low_target): Ditto.
1750 * linux-m68k-low.cc (the_low_target): Ditto.
1751 * linux-mips-low.cc (the_low_target): Ditto.
1752 * linux-nios2-low.cc (the_low_target): Ditto.
1753 * linux-ppc-low.cc (the_low_target): Ditto.
1754 * linux-s390-low.cc (the_low_target): Ditto.
1755 * linux-sh-low.cc (the_low_target): Ditto.
1756 * linux-sparc-low.cc (the_low_target): Ditto.
1757 * linux-tic6x-low.cc (the_low_target): Ditto.
1758 * linux-tile-low.cc (the_low_target): Ditto.
1759 * linux-xtensa-low.cc (the_low_target): Ditto.
1760 * linux-aarch64-low.cc (class aarch64_target)
1761 <breakpoint_kind_from_pc>
1762 <breakpoint_kind_from_current_state>: Declare.
1763 (aarch64_breakpoint_kind_from_pc): Turn into...
1764 (aarch64_target::breakpoint_kind_from_pc): ...this.
1765 (aarch64_breakpoint_kind_from_current_state): Turn into...
1766 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1767 (the_low_target): Remove the op fields.
1768 * linux-arm-low.cc (class arm_target):
1769 <breakpoint_kind_from_pc>
1770 <breakpoint_kind_from_current_state>: Declare.
1771 (arm_target::breakpoint_kind_from_pc): Define.
1772 (arm_target::breakpoint_kind_from_current_state): Define.
1773 (the_low_target): Remove the op fields.
1774 * linux-riscv-low.cc (class riscv_target):
1775 <breakpoint_kind_from_pc>: Declare.
1776 (riscv_breakpoint_kind_from_pc): Turn into...
1777 (riscv_target::breakpoint_kind_from_pc): ...this.
1778 (the_low_target): Remove the op fields.
1779
bf9ae9d8
TBA
17802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1781
1782 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1783 of linux_process_target.
1784
1785 * linux-low.h (struct linux_target_ops): Remove the ops.
1786 (class linux_process_target) <low_supports_breakpoints>
1787 <low_get_pc>
1788 <low_set_pc>: Declare.
1789 * linux-low.cc (supports_breakpoints): Turn into...
1790 (linux_process_target::low_supports_breakpoints): ...this.
1791 (linux_process_target::low_get_pc): Define.
1792 (linux_process_target::low_set_pc): Define.
1793
1794 Update the callers below.
1795
1796 (linux_process_target::get_pc)
1797 (linux_process_target::save_stop_reason)
1798 (linux_process_target::maybe_move_out_of_jump_pad)
1799 (linux_process_target::wait_1)
1800 (linux_process_target::resume_one_lwp_throw)
1801 (linux_process_target::resume)
1802 (linux_process_target::proceed_all_lwps)
1803 (linux_process_target::read_pc)
1804 (linux_process_target::write_pc)
1805
1806 * linux-x86-low.cc (class linux_process_target)
1807 <low_supports_breakpoints>
1808 <low_get_pc>
1809 <low_set_pc>: Declare.
1810 (x86_target::low_supports_breakpoints): Define.
1811 (x86_get_pc): Turn into...
1812 (x86_target::low_get_pc): ...this.
1813 (x86_set_pc): Turn into...
1814 (x86_target::low_set_pc): ...this.
1815 (the_low_target): Remove the op fields.
1816 * linux-arm-low.cc (class arm_target)
1817 <low_supports_breakpoints>
1818 <low_get_pc>
1819 <low_set_pc>: Declare.
1820 (arm_target::low_supports_breakpoints)
1821 (arm_target::low_get_pc)
1822 (arm_target::low_set_pc): Define.
1823 (the_low_target): Remove the op fields.
1824 * linux-bfin-low.cc (class bfin_target)
1825 <low_supports_breakpoints>
1826 <low_get_pc>
1827 <low_set_pc>: Declare.
1828 (bfin_target::low_supports_breakpoints)
1829 (bfin_target::low_get_pc)
1830 (bfin_target::low_set_pc): Define.
1831 (the_low_target): Remove the op fields.
1832 * linux-cris-low.cc (class cris_target)
1833 <low_supports_breakpoints>
1834 <low_get_pc>
1835 <low_set_pc>: Declare.
1836 (cris_target::low_supports_breakpoints)
1837 (cris_target::low_get_pc)
1838 (cris_target::low_set_pc): Define.
1839 (the_low_target): Remove the op fields.
1840 * linux-crisv32-low.cc (class crisv32_target)
1841 <low_supports_breakpoints>
1842 <low_get_pc>
1843 <low_set_pc>: Declare.
1844 (crisv32_target::low_supports_breakpoints)
1845 (crisv32_target::low_get_pc)
1846 (crisv32_target::low_set_pc): Define.
1847 (the_low_target): Remove the op fields.
1848 * linux-m32r-low.cc (class m32r_target)
1849 <low_supports_breakpoints>
1850 <low_get_pc>
1851 <low_set_pc>: Declare.
1852 (m32r_target::low_supports_breakpoints)
1853 (m32r_target::low_get_pc)
1854 (m32r_target::low_set_pc): Define.
1855 (the_low_target): Remove the op fields.
1856 * linux-m68k-low.cc (class m68k_target)
1857 <low_supports_breakpoints>
1858 <low_get_pc>
1859 <low_set_pc>: Declare.
1860 (m68k_target::low_supports_breakpoints)
1861 (m68k_target::low_get_pc)
1862 (m68k_target::low_set_pc): Define.
1863 (the_low_target): Remove the op fields.
1864 * linux-nios2-low.cc (class nios2_target)
1865 <low_supports_breakpoints>
1866 <low_get_pc>
1867 <low_set_pc>: Declare.
1868 (nios2_target::low_supports_breakpoints)
1869 (nios2_target::low_get_pc)
1870 (nios2_target::low_set_pc): Define.
1871 (the_low_target): Remove the op fields.
1872 * linux-sh-low.cc (class sh_target)
1873 <low_supports_breakpoints>
1874 <low_get_pc>
1875 <low_set_pc>: Declare.
1876 (sh_target::low_supports_breakpoints)
1877 (sh_target::low_get_pc)
1878 (sh_target::low_set_pc): Define.
1879 (the_low_target): Remove the op fields.
1880 * linux-xtensa-low.cc (class xtensa_target)
1881 <low_supports_breakpoints>
1882 <low_get_pc>
1883 <low_set_pc>: Declare.
1884 (xtensa_target::low_supports_breakpoints)
1885 (xtensa_target::low_get_pc)
1886 (xtensa_target::low_set_pc): Define.
1887 (the_low_target): Remove the op fields.
1888 * linux-sparc-low.cc (class sparc_target)
1889 <low_supports_breakpoints>
1890 <low_get_pc>: Declare.
1891 (sparc_target::low_supports_breakpoints)
1892 (sparc_target::low_get_pc): Define.
1893 (the_low_target): Remove the op fields.
1894 * linux-tile-low.cc (class tile_target)
1895 <low_supports_breakpoints>
1896 <low_get_pc>
1897 <low_set_pc>: Declare.
1898 (tile_target::low_supports_breakpoints)
1899 (tile_target::low_get_pc)
1900 (tile_target::low_set_pc): Define.
1901 (the_low_target): Remove the op fields.
1902 * linux-aarch64-low.cc (class aarch64_target)
1903 <low_supports_breakpoints>
1904 <low_get_pc>
1905 <low_set_pc>: Declare.
1906 (aarch64_target::low_supports_breakpoints): Define.
1907 (aarch64_get_pc): Turn into...
1908 (aarch64_target::low_get_pc): ...this.
1909 (aarch64_set_pc): Turn into...
1910 (aarch64_target::low_set_pc): ...this.
1911 (the_low_target): Remove the op fields.
1912 * linux-mips-low.cc (class mips_target)
1913 <low_supports_breakpoints>
1914 <low_get_pc>
1915 <low_set_pc>: Declare.
1916 (mips_target::low_supports_breakpoints): Define.
1917 (mips_get_pc): Turn into...
1918 (mips_target::low_get_pc): ...this.
1919 (mips_set_pc): Turn into...
1920 (mips_target::low_set_pc): ...this.
1921 (the_low_target): Remove the op fields.
1922 * linux-ppc-low.cc (class ppc_target)
1923 <low_supports_breakpoints>
1924 <low_get_pc>
1925 <low_set_pc>: Declare.
1926 (ppc_target::low_supports_breakpoints): Define.
1927 (ppc_get_pc): Turn into...
1928 (ppc_target::low_get_pc): ...this.
1929 (ppc_set_pc): Turn into...
1930 (ppc_target::low_set_pc): ...this.
1931 (the_low_target): Remove the op fields.
1932 * linux-riscv-low.cc (class riscv_target)
1933 <low_supports_breakpoints>
1934 <low_get_pc>
1935 <low_set_pc>: Declare.
1936 (riscv_target::low_supports_breakpoints): Define.
1937 (riscv_get_pc): Turn into...
1938 (riscv_target::low_get_pc): ...this.
1939 (riscv_set_pc): Turn into...
1940 (riscv_target::low_set_pc): ...this.
1941 (the_low_target): Remove the op fields.
1942 * linux-s390-low.cc (class s390_target)
1943 <low_supports_breakpoints>
1944 <low_get_pc>
1945 <low_set_pc>: Declare.
1946 (s390_target::low_supports_breakpoints): Define.
1947 (s390_get_pc): Turn into...
1948 (s390_target::low_get_pc): ...this.
1949 (s390_set_pc): Turn into...
1950 (s390_target::low_set_pc): ...this.
1951 (the_low_target): Remove the op fields.
1952 * linux-tic6x-low.cc (class tic6x_target)
1953 <low_supports_breakpoints>
1954 <low_get_pc>
1955 <low_set_pc>: Declare.
1956 (tic6x_target::low_supports_breakpoints): Define.
1957 (tic6x_get_pc): Turn into...
1958 (tic6x_target::low_get_pc): ...this.
1959 (tic6x_set_pc): Turn into...
1960 (tic6x_target::low_set_pc): ...this.
1961 (the_low_target): Remove the op fields.
1962
df95181f
TBA
19632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1964
1965 Turn some more static methods in linux-low into private methods
1966 of linux_process_target.
1967
1968 * linux-low.cc (get_pc): Turn into...
1969 (linux_process_target::get_pc): ...this.
1970 (save_stop_reason): Turn into...
1971 (linux_process_target::save_stop_reason): ...this.
1972 (thread_still_has_status_pending_p): Turn into...
1973 (linux_process_target::thread_still_has_status_pending): ...this.
1974 (status_pending_p_callback): Turn into...
1975 (linux_process_target::status_pending_p_callback): ...this.
1976 (resume_stopped_resumed_lwps): Turn into...
1977 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1978 (install_software_single_step_breakpoints): Turn into...
1979 (linux_process_target::install_software_single_step_breakpoints):
1980 ...this.
1981 (single_step): Turn into...
1982 (linux_process_target::single_step): ...this.
1983 (linux_resume_one_lwp_throw): Turn into...
1984 (linux_process_target::resume_one_lwp_throw): ...this.
1985 (linux_resume_one_lwp): Turn into...
1986 (linux_process_target::resume_one_lwp): ...this.
1987 (resume_status_pending_p): Turn into...
1988 (linux_process_target::resume_status_pending): ...this.
1989 (need_step_over_p): Turn into...
1990 (linux_process_target::thread_needs_step_over): ...this.
1991 (linux_resume_one_thread): Turn into...
1992 (linux_process_target::resume_one_thread): ...this.
1993 (proceed_one_lwp): Turn into...
1994 (linux_process_target::proceed_one_lwp): ...this.
1995 (unsuspend_and_proceed_one_lwp): Turn into...
1996 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1997
1998 Update the calls/references to the above functions below.
1999
2000 (linux_process_target::handle_extended_wait)
2001 (linux_process_target::filter_event)
2002 (linux_process_target::wait_for_event_filtered)
2003 (linux_process_target::wait_1)
2004 (linux_process_target::move_out_of_jump_pad)
2005 (linux_process_target::start_step_over)
2006 (linux_process_target::resume)
2007 (linux_process_target::proceed_all_lwps)
2008 (regsets_store_inferior_registers)
2009 (linux_process_target::store_register)
2010
2011 * linux-low.h (class linux_process_target)
2012 <get_pc>
2013 <save_stop_reason>
2014 <thread_still_has_status_pending>
2015 <status_pending_p_callback>
2016 <resume_stopped_resumed_lwps>
2017 <install_software_single_step_breakpoints>
2018 <single_step>
2019 <resume_one_lwp_throw>
2020 <resume_one_lwp>
2021 <resume_status_pending>
2022 <thread_needs_step_over>
2023 <resume_one_thread>
2024 <proceed_one_lwp>
2025 <unsuspend_and_proceed_one_lwp>: Declare.
2026
bd70b1f2
TBA
20272020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2028
2029 Turn the 'fetch_register' linux target op into a method of
2030 linux_process_target.
2031
2032 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2033 (class linux_process_target) <low_fetch_register>: Declare.
2034 * linux-x86-low.cc (the_low_target)
2035 * linux-aarch64-low.cc (the_low_target)
2036 * linux-arm-low.cc (the_low_target)
2037 * linux-bfin-low.cc (the_low_target)
2038 * linux-cris-low.cc (the_low_target)
2039 * linux-crisv32-low.cc (the_low_target)
2040 * linux-m32r-low.cc (the_low_target)
2041 * linux-m68k-low.cc (the_low_target)
2042 * linux-nios2-low.cc (the_low_target)
2043 * linux-ppc-low.cc (the_low_target)
2044 * linux-s390-low.cc (the_low_target)
2045 * linux-sh-low.cc (the_low_target)
2046 * linux-sparc-low.cc (the_low_target)
2047 * linux-tic6x-low.cc (the_low_target)
2048 * linux-tile-low.cc (the_low_target)
2049 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2050 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2051 Declare.
2052 (ia64_fetch_register): Turn into...
2053 (ia64_target::low_fetch_register): ...this.
2054 (the_low_target): Remove the op field.
2055 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2056 Declare.
2057 (mips_fetch_register): Turn into...
2058 (mips_target::low_fetch_register): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2061 Declare.
2062 (riscv_fetch_register): Turn into...
2063 (riscv_target::low_fetch_register): ...this.
2064 (the_low_target): Remove the op field.
2065
2066 Update the callers below.
2067
2068 * linux-low.cc (linux_process_target::fetch_registers)
2069 (linux_process_target::low_fetch_register)
2070
daca57a7
TBA
20712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2072
2073 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2074 linux target ops into methods of linux_process_target.
2075
2076 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2077 (class linux_process_target) <fetch_register>
2078 <store_register>
2079 <usr_fetch_inferior_registers>
2080 <usr_store_inferior_registers>
2081 <low_cannot_fetch_register>
2082 <low_cannot_fetch_register> Declare.
2083 * linux-low.cc (fetch_register): Turn into...
2084 (linux_process_target::fetch_register): ...this.
2085 (store_register): Turn into ...
2086 (linux_process_target::store_register): ...this.
2087 (usr_fetch_inferior_registers): Turn into...
2088 (linux_process_target::usr_fetch_inferior_registers): ...this.
2089 (usr_store_inferior_registers): Turn into...
2090 (linux_process_target::usr_store_inferior_registers): ...this.
2091 * linux-x86-low.cc (class x86_target)
2092 <low_cannot_fetch_register>
2093 <low_cannot_store_register>: Declare.
2094 (x86_cannot_store_register): Turn into...
2095 (x86_target::low_cannot_store_register): ...this.
2096 (x86_cannot_fetch_register): Turn into...
2097 (x86_target::low_cannot_fetch_register): ...this.
2098 (the_low_target): Remove the target op fields.
2099 * linux-aarch64-low.cc (class aarch64_target)
2100 <low_cannot_fetch_register>
2101 <low_cannot_store_register>: Declare.
2102 (aarch64_target::low_cannot_fetch_register)
2103 (aarch64_target::low_cannot_store_register): Define.
2104 (the_low_target): Remove the op fields.
2105 * linux-arm-low.cc (class arm_target)
2106 <low_cannot_fetch_register>
2107 <low_cannot_store_register>: Declare.
2108 (arm_cannot_fetch_register): Turn into...
2109 (arm_target::low_cannot_fetch_register): ...this.
2110 (arm_cannot_store_register): Turn into...
2111 (arm_target::low_cannot_store_register): ...this.
2112 (the_low_target): Remove the op fields.
2113 * linux-bfin-low.cc (class bfin_target)
2114 <low_cannot_fetch_register>
2115 <low_cannot_store_register>: Declare.
2116 (bfin_cannot_fetch_register): Turn into...
2117 (bfin_target::low_cannot_fetch_register): ...this.
2118 (bfin_cannot_store_register): Turn into...
2119 (bfin_target::low_cannot_store_register): ...this.
2120 (the_low_target): Remove the op fields.
2121 * linux-cris-low.cc (class cris_target)
2122 <low_cannot_fetch_register>
2123 <low_cannot_store_register>: Declare.
2124 (cris_cannot_fetch_register): Turn into...
2125 (cris_target::low_cannot_fetch_register): ...this.
2126 (cris_cannot_store_register): Turn into...
2127 (cris_target::low_cannot_store_register): ...this.
2128 (the_low_target): Remove the op fields.
2129 * linux-crisv32-low.cc (class crisv32_target)
2130 <low_cannot_fetch_register>
2131 <low_cannot_store_register>: Declare.
2132 (crisv32_target::low_cannot_fetch_register)
2133 (crisv32_target::low_cannot_store_register): Define.
2134 (the_low_target): Remove the op fields.
2135 * linux-ia64-low.cc (class ia64_target)
2136 <low_cannot_fetch_register>
2137 <low_cannot_store_register>: Declare.
2138 (ia64_cannot_fetch_register): Turn into...
2139 (ia64_target::low_cannot_fetch_register): ...this.
2140 (ia64_cannot_store_register): Turn into...
2141 (ia64_target::low_cannot_store_register): ...this.
2142 (the_low_target): Remove the op fields.
2143 * linux-m32r-low.cc (class m32r_target)
2144 <low_cannot_fetch_register>
2145 <low_cannot_store_register>: Declare.
2146 (m32r_cannot_fetch_register): Turn into...
2147 (m32r_target::low_cannot_fetch_register): ...this.
2148 (m32r_cannot_store_register): Turn into...
2149 (m32r_target::low_cannot_store_register): ...this.
2150 (the_low_target): Remove the op fields.
2151 * linux-m68k-low.cc (class m68k_target)
2152 <low_cannot_fetch_register>
2153 <low_cannot_store_register>: Declare.
2154 (m68k_cannot_fetch_register): Turn into...
2155 (m68k_target::low_cannot_fetch_register): ...this.
2156 (m68k_cannot_store_register): Turn into...
2157 (m68k_target::low_cannot_store_register): ...this.
2158 (the_low_target): Remove the op fields.
2159 * linux-mips-low.cc (class mips_target)
2160 <low_cannot_fetch_register>
2161 <low_cannot_store_register>: Declare.
2162 (mips_cannot_fetch_register): Turn into...
2163 (mips_target::low_cannot_fetch_register): ...this.
2164 (mips_cannot_store_register): Turn into...
2165 (mips_target::low_cannot_store_register): ...this.
2166 (get_usrregs_info): Inline at the call sites in
2167 low_cannot_fetch_register and low_cannot_store_register,
2168 and remove.
2169 (the_low_target): Remove the op fields.
2170 * linux-nios2-low.cc (class nios2_target)
2171 <low_cannot_fetch_register>
2172 <low_cannot_store_register>: Declare.
2173 (nios2_cannot_fetch_register): Turn into...
2174 (nios2_target::low_cannot_fetch_register): ...this.
2175 (nios2_cannot_store_register): Turn into...
2176 (nios2_target::low_cannot_store_register): ...this.
2177 (the_low_target): Remove the op fields.
2178 * linux-ppc-low.cc (class ppc_target)
2179 <low_cannot_fetch_register>
2180 <low_cannot_store_register>: Declare.
2181 (ppc_cannot_fetch_register): Turn into...
2182 (ppc_target::low_cannot_fetch_register): ...this.
2183 (ppc_cannot_store_register): Turn into...
2184 (ppc_target::low_cannot_store_register): ...this.
2185 (the_low_target): Remove the op fields.
2186 * linux-riscv-low.cc (class riscv_target)
2187 <low_cannot_fetch_register>
2188 <low_cannot_store_register>: Declare.
2189 (riscv_target::low_cannot_fetch_register)
2190 (riscv_target::low_cannot_store_register): Define.
2191 (the_low_target): Remove the op fields.
2192 * linux-s390-low.cc (class s390_target)
2193 <low_cannot_fetch_register>
2194 <low_cannot_store_register>: Declare.
2195 (s390_cannot_fetch_register): Turn into...
2196 (s390_target::low_cannot_fetch_register): ...this.
2197 (s390_cannot_store_register): Turn into...
2198 (s390_target::low_cannot_store_register): ...this.
2199 (the_low_target): Remove the op fields.
2200 * linux-sh-low.cc (class sh_target)
2201 <low_cannot_fetch_register>
2202 <low_cannot_store_register>: Declare.
2203 (sh_cannot_fetch_register): Turn into...
2204 (sh_target::low_cannot_fetch_register): ...this.
2205 (sh_cannot_store_register): Turn into...
2206 (sh_target::low_cannot_store_register): ...this.
2207 (the_low_target): Remove the op fields.
2208 * linux-sparc-low.cc (class sparc_target)
2209 <low_cannot_fetch_register>
2210 <low_cannot_store_register>: Declare.
2211 (sparc_cannot_fetch_register): Turn into...
2212 (sparc_target::low_cannot_fetch_register): ...this.
2213 (sparc_cannot_store_register): Turn into...
2214 (sparc_target::low_cannot_store_register): ...this.
2215 (the_low_target): Remove the op fields.
2216 * linux-tic6x-low.cc (class tic6x_target)
2217 <low_cannot_fetch_register>
2218 <low_cannot_store_register>: Declare.
2219 (tic6x_cannot_fetch_register): Turn into...
2220 (tic6x_target::low_cannot_fetch_register): ...this.
2221 (tic6x_cannot_store_register): Turn into...
2222 (tic6x_target::low_cannot_store_register): ...this.
2223 (the_low_target): Remove the op fields.
2224 * linux-tile-low.cc (class tile_target)
2225 <low_cannot_fetch_register>
2226 <low_cannot_store_register>: Declare.
2227 (tile_cannot_fetch_register): Turn into...
2228 (tile_target::low_cannot_fetch_register): ...this.
2229 (tile_cannot_store_register): Turn into...
2230 (tile_target::low_cannot_store_register): ...this.
2231 (the_low_target): Remove the op fields.
2232 * linux-xtensa-low.cc (class xtensa_target)
2233 <low_cannot_fetch_register>
2234 <low_cannot_store_register>: Declare.
2235 (xtensa_target::low_cannot_fetch_register)
2236 (xtensa_target::low_cannot_store_register): Define.
2237 (the_low_target): Remove the op fields.
2238
aa8d21c9
TBA
22392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2240
2241 Turn the 'regs_info' linux target op into a method of
2242 linux_process_target.
2243
2244 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2245 (class linux_process_target) <get_regs_info>: Define.
2246
2247 Update the callers below.
2248
2249 * linux-low.cc (linux_process_target::fetch_registers)
2250 (linux_process_target::store_registers)
2251 * proc-service.cc (gregset_info)
2252
2253 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2254 (x86_linux_regs_info): Turn into ...
2255 (x86_target::get_regs_info): ...this.
2256 (the_low_target): Remove the op field.
2257 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2258 Declare.
2259 (aarch64_regs_info): Turn into ...
2260 (aarch64_target::get_regs_info): ...this.
2261 (the_low_target): Remove the op field.
2262 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2263 (arm_regs_info): Turn into ...
2264 (arm_target::get_regs_info): ...this.
2265 (the_low_target): Remove the op field.
2266 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2267 (bfin_regs_info): Turn into ...
2268 (bfin_target::get_regs_info): ...this.
2269 (the_low_target): Remove the op field.
2270 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2271 (cris_regs_info): Turn into ...
2272 (cris_target::get_regs_info): ...this.
2273 (the_low_target): Remove the op field.
2274 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2275 Declare.
2276 (crisv32_regs_info): Turn into ...
2277 (crisv32_target::get_regs_info): ...this.
2278 (the_low_target): Remove the op field.
2279 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2280 (ia64_regs_info): Turn into ...
2281 (ia64_target::get_regs_info): ...this.
2282 (the_low_target): Remove the op field.
2283 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2284 (m32r_regs_info): Turn into ...
2285 (m32r_target::get_regs_info): ...this.
2286 (the_low_target): Remove the op field.
2287 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2288 (m68k_regs_info): Turn into ...
2289 (m68k_target::get_regs_info): ...this.
2290 (the_low_target): Remove the op field.
2291 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2292 (mips_regs_info): Turn into ...
2293 (mips_target::get_regs_info): ...this.
2294 (the_low_target): Remove the op field.
2295 (get_usrregs_info): Update the call to the op.
2296 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2297 (nios2_regs_info): Turn into ...
2298 (nios2_target::get_regs_info): ...this.
2299 (the_low_target): Remove the op field.
2300 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2301 (ppc_regs_info): Turn into ...
2302 (ppc_target::get_regs_info): ...this.
2303 (the_low_target): Remove the op field.
2304 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2305 (riscv_regs_info): Turn into ...
2306 (riscv_target::get_regs_info): ...this.
2307 (the_low_target): Remove the op field.
2308 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2309 (s390_regs_info): Turn into ...
2310 (s390_target::get_regs_info): ...this.
2311 (the_low_target): Remove the op field.
2312 (s390_collect_ptrace_register)
2313 (s390_supply_ptrace_register)
2314 (s390_fill_gregset): Update the call to the op.
2315 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2316 (sh_regs_info): Turn into ...
2317 (sh_target::get_regs_info): ...this.
2318 (the_low_target): Remove the op field.
2319 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2320 (sparc_regs_info): Turn into ...
2321 (sparc_target::get_regs_info): ...this.
2322 (the_low_target): Remove the op field.
2323 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2324 (tic6x_regs_info): Turn into ...
2325 (tic6x_target::get_regs_info): ...this.
2326 (the_low_target): Remove the op field.
2327 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2328 (tile_regs_info): Turn into ...
2329 (tile_target::get_regs_info): ...this.
2330 (the_low_target): Remove the op field.
2331 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2332 Declare.
2333 (xtensa_regs_info): Turn into ...
2334 (xtensa_target::get_regs_info): ...this.
2335 (the_low_target): Remove the op field.
2336
797bcff5
TBA
23372020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2338
2339 Turn the 'arch_setup' linux target op into a method of
2340 linux_process_target.
2341
2342 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2343 (class linux_process_target) <arch_setup_thread>
2344 <low_arch_setup>: New declarations.
2345 * linux-low.cc (linux_arch_setup): Delete.
2346 (linux_arch_setup_thread): Turn into...
2347 (linux_process_target::arch_setup_thread): ... this.
2348
2349 Update the callers below.
2350
2351 (linux_process_target::handle_extended_wait)
2352 (linux_process_target::post_create_inferior)
2353 (linux_process_target::filter_event)
2354
2355 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2356 declaration.
2357 (x86_linux_update_xmltarget): Turn into...
2358 (x86_target::update_xmltarget): ...this.
2359 (x86_linux_process_qsupported): Update the call to
2360 x86_linux_update_xmltarget.
2361 (x86_arch_setup): Turn into ...
2362 (x86_target::low_arch_setup): ...this.
2363 (the_low_target): Remove the op field.
2364 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2365 declaration.
2366 (aarch64_arch_setup): Turn into ...
2367 (aarch64_target::low_arch_setup): ...this.
2368 (the_low_target): Remove the op field.
2369 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2370 declaration.
2371 (arm_arch_setup): Turn into ...
2372 (arm_target::low_arch_setup): ...this.
2373 (the_low_target): Remove the op field.
2374 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2375 declaration.
2376 (bfin_arch_setup): Turn into ...
2377 (bfin_target::low_arch_setup): ...this.
2378 (the_low_target): Remove the op field.
2379 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2380 declaration.
2381 (cris_arch_setup): Turn into ...
2382 (cris_target::low_arch_setup): ...this.
2383 (the_low_target): Remove the op field.
2384 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2385 declaration.
2386 (crisv32_arch_setup): Turn into ...
2387 (crisv32_target::low_arch_setup): ...this.
2388 (the_low_target): Remove the op field.
2389 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2390 declaration.
2391 (ia64_arch_setup): Turn into ...
2392 (ia64_target::low_arch_setup): ...this.
2393 (the_low_target): Remove the op field.
2394 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2395 declaration.
2396 (m32r_arch_setup): Turn into ...
2397 (m32r_target::low_arch_setup): ...this.
2398 (the_low_target): Remove the op field.
2399 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2400 declaration.
2401 (m68k_arch_setup): Turn into ...
2402 (m68k_target::low_arch_setup): ...this.
2403 (the_low_target): Remove the op field.
2404 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2405 declaration.
2406 (mips_arch_setup): Turn into ...
2407 (mips_target::low_arch_setup): ...this.
2408 (the_low_target): Remove the op field.
2409 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2410 declaration.
2411 (nios2_arch_setup): Turn into ...
2412 (nios2_target::low_arch_setup): ...this.
2413 (the_low_target): Remove the op field.
2414 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2415 declaration.
2416 (ppc_arch_setup): Turn into ...
2417 (ppc_target::low_arch_setup): ...this.
2418 (the_low_target): Remove the op field.
2419 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2420 declaration.
2421 (riscv_arch_setup): Turn into ...
2422 (riscv_target::low_arch_setup): ...this.
2423 (the_low_target): Remove the op field.
2424 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2425 declaration.
2426 (s390_arch_setup): Turn into ...
2427 (s390_target::low_arch_setup): ...this.
2428 (the_low_target): Remove the op field.
2429 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2430 declaration.
2431 (sh_arch_setup): Turn into ...
2432 (sh_target::low_arch_setup): ...this.
2433 (the_low_target): Remove the op field.
2434 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2435 declaration.
2436 (sparc_arch_setup): Turn into ...
2437 (sparc_target::low_arch_setup): ...this.
2438 (the_low_target): Remove the op field.
2439 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2440 declaration.
2441 (tic6x_arch_setup): Turn into ...
2442 (tic6x_target::low_arch_setup): ...this.
2443 (the_low_target): Remove the op field.
2444 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2445 declaration.
2446 (tile_arch_setup): Turn into ...
2447 (tile_target::low_arch_setup): ...this.
2448 (the_low_target): Remove the op field.
2449 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2450 declaration.
2451 (xtensa_arch_setup): Turn into ...
2452 (xtensa_target::low_arch_setup): ...this.
2453 (the_low_target): Remove the op field.
2454
ef0478f6
TBA
24552020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2456
2457 * linux-low.h (the_linux_target): New extern declaration.
2458 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2459 'the_target'.
2460 (the_linux_target): Remove.
2461 * linux-x86-low.cc (class x86_target): New class.
2462 (the_x86_target): New static object.
2463 (the_linux_target): Define as pointer to the_x86_target.
2464 * linux-aarch64-low.cc (class aarch64_target): New class.
2465 (the_aarch64_target): New static object.
2466 (the_linux_target): Define as pointer to the_aarch64_target.
2467 * linux-arm-low.cc (class arm_target): New class.
2468 (the_arm_target): New static object.
2469 (the_linux_target): Define as pointer to the_arm_target.
2470 * linux-bfin-low.cc (class bfin_target): New class.
2471 (the_bfin_target): New static object.
2472 (the_linux_target): Define as pointer to the_bfin_target.
2473 * linux-cris-low.cc (class cris_target): New class.
2474 (the_cris_target): New static object.
2475 (the_linux_target): Define as pointer to the_cris_target.
2476 * linux-crisv32-low.cc (class crisv32_target): New class.
2477 (the_crisv32_target): New static object.
2478 (the_linux_target): Define as pointer to the_crisv32_target.
2479 * linux-ia64-low.cc (class ia64_target): New class.
2480 (the_ia64_target): New static object.
2481 (the_linux_target): Define as pointer to the_ia64_target.
2482 * linux-m32r-low.cc (class m32r_target): New class.
2483 (the_m32r_target): New static object.
2484 (the_linux_target): Define as pointer to the_m32r_target.
2485 * linux-m68k-low.cc (class m68k_target): New class.
2486 (the_m68k_target): New static object.
2487 (the_linux_target): Define as pointer to the_m68k_target.
2488 * linux-mips-low.cc (class mips_target): New class.
2489 (the_mips_target): New static object.
2490 (the_linux_target): Define as pointer to the_mips_target.
2491 * linux-nios2-low.cc (class nios2_target): New class.
2492 (the_nios2_target): New static object.
2493 (the_linux_target): Define as pointer to the_nios2_target.
2494 * linux-ppc-low.cc (class ppc_target): New class.
2495 (the_ppc_target): New static object.
2496 (the_linux_target): Define as pointer to the_ppc_target.
2497 * linux-riscv-low.cc (class riscv_target): New class.
2498 (the_riscv_target): New static object.
2499 (the_linux_target): Define as pointer to the_riscv_target.
2500 * linux-s390-low.cc (class s390_target): New class.
2501 (the_s390_target): New static object.
2502 (the_linux_target): Define as pointer to the_s390_target.
2503 * linux-sh-low.cc (class sh_target): New class.
2504 (the_sh_target): New static object.
2505 (the_linux_target): Define as pointer to the_sh_target.
2506 * linux-sparc-low.cc (class sparc_target): New class.
2507 (the_sparc_target): New static object.
2508 (the_linux_target): Define as pointer to the_sparc_target.
2509 * linux-tic6x-low.cc (class tic6x_target): New class.
2510 (the_tic6x_target): New static object.
2511 (the_linux_target): Define as pointer to the_tic6x_target.
2512 * linux-tile-low.cc (class tile_target): New class.
2513 (the_tile_target): New static object.
2514 (the_linux_target): Define as pointer to the_tile_target.
2515 * linux-xtensa-low.cc (class xtensa_target): New class.
2516 (the_xtensa_target): New static object.
2517 (the_linux_target): Define as pointer to the_xtensa_target.
2518
d16f3f6c
TBA
25192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2520
2521 Turn some static functions in linux-low.cc into private methods of
2522 linux_process_target.
2523
2524 * linux-low.cc (handle_extended_wait): Turn into ...
2525 (linux_process_target::handle_extended_wait): ...this. Call
2526 'mourn' on 'this' object instead of 'the_target'.
2527 (maybe_move_out_of_jump_pad): Turn into...
2528 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2529 (linux_low_filter_event): Turn into...
2530 (linux_process_target::filter_event): ...this.
2531 (linux_wait_for_event_filtered): Turn into...
2532 (linux_process_target::wait_for_event_filtered): ...this.
2533 (linux_wait_for_event): Turn into...
2534 (linux_process_target::wait_for_event): ...this.
2535 (linux_wait_1): Turn into...
2536 (linux_process_target::wait_1): ...this.
2537 (wait_for_sigstop): Turn into...
2538 (linux_process_target::wait_for_sigstop): ...this.
2539 (move_out_of_jump_pad_callback): Turn into...
2540 (linux_process_target::move_out_of_jump_pad): ...this.
2541 (stop_all_lwps): Turn into...
2542 (linux_process_target::stop_all_lwps): ...this.
2543 (start_step_over): Turn into...
2544 (linux_process_target::start_step_over): ...this.
2545 (complete_ongoing_step_over): Turn into...
2546 (linux_process_target::complete_ongoing_step_over): ...this.
2547 (proceed_all_lwps): Turn into...
2548 (linux_process_target::proceed_all_lwps): ...this.
2549 (unstop_all_lwps): Turn into...
2550 (linux_process_target::unstop_all_lwps): ...this.
2551
2552 * linux-low.h (class linux_process_target)
2553 <handle_extended_wait>
2554 <maybe_move_out_of_jump_pad>
2555 filter_event>
2556 <wait_for_event_filtered>
2557 <wait_for_event>
2558 <wait_1>
2559 <wait_for_sigstop>
2560 <move_out_of_jump_pad>
2561 <stop_all_lwps>
2562 <start_step_over>
2563 <complete_ongoing_step_over>
2564 <proceed_all_lwps>
2565 <unstop_all_lwps>: Declare.
2566
2567 Update the callers below.
2568
2569 * linux-low.cc (linux_process_target::attach): Update.
2570 (linux_process_target::stabilize_threads): Ditto.
2571 (linux_process_target::wait): Ditto.
2572
a5863204
TBA
25732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2574
2575 * linux-low.h (struct linux_target_ops): Update the comment for
2576 'cannot_store_register' to return 0 or 1.
2577 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2578 of 2.
2579
c884cc46
SM
25802020-03-20 Simon Marchi <simon.marchi@efficios.com>
2581
2582 * config.in: Re-generate.
2583 * configure: Re-generate.
2584
5a82b8a1
KR
25852020-03-17 Kamil Rytarowski <n54@gmx.com>
2586
2587 * regcache.cc (find_register_by_number): Update.
2588 * tdesc.cc (init_target_desc): Likewise.
2589 * tdesc.h (target_desc::reg_defs): Likewise.
2590
4635ff97
TT
25912020-03-12 Tom Tromey <tom@tromey.com>
2592
2593 * configure: Rebuild.
2594 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2595 (WIN32APILIBS): New subst.
2596 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2597 gdbsupport files.
2598 (gdbsupport/%.o): Remove target.
2599 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2600 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2601 (WIN32APILIBS): New variable.
2602 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2603 (gdbreplay$(EXEEXT)): Likewise.
2604
9a665d62
TT
26052020-03-12 Tom Tromey <tom@tromey.com>
2606
2607 * config.in, configure: Rebuild.
2608 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2609 * acinclude.m4: Include gettext-sister.m4.
2610 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2611 variables.
2612 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2613 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2614
272cd5a3
SM
26152020-03-12 Simon Marchi <simon.marchi@efficios.com>
2616
2617 * acinclude.m4: Update path to selftest.m4.
2618
db6878ac
SM
26192020-03-12 Simon Marchi <simon.marchi@efficios.com>
2620
2621 * configure.ac: Don't source bfd/development.sh, move
2622 GDB_AC_COMMON higher.
2623 * configure: Re-generate.
2624
4d696a5c
SM
26252020-03-12 Simon Marchi <simon.marchi@efficios.com>
2626
2627 * configure: Re-generate.
2628
a0761e34
SM
26292020-03-11 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * configure: Re-generate.
2632
20ea4a60
AB
26332020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 * .dir-locals.el: New file.
2636
842806cb
TBA
26372020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2638
2639 * .gitattributes: New file.
2640
442131c1
AB
26412020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2642
2643 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2644 reply into an S reply.
2645 * server.cc (disable_packet_T): New global.
2646 (captured_main): Set new global when appropriate.
2647 * server.h (disable_packet_T): Declare.
2648
dda42c0b
TT
26492020-02-21 Tom Tromey <tom@tromey.com>
2650
2651 * Makefile.in (mostlyclean): New target.
2652
52405d85
TBA
26532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2654
2655 * target.h (struct process_stratum_target): Remove.
2656 (class process_target): Rename to ...
2657 (class process_stratum_target): ... this.
2658 * linux-low.h (class linux_process_target): Derive from
2659 'process_stratum_target'.
2660 * linux-low.cc (linux_target_ops): Remove.
2661 (initialize_low): Set the_target to the singleton instance of
2662 linux_process_target.
2663 * lynx-low.h (class lynx_process_target): Derive from
2664 'process_stratum_target'.
2665 * lynx-low.cc (lynx_target_ops): Remove.
2666 (initialize_low): Set the_target to the singleton instance of
2667 lynx_process_target.
2668 * nto-low.h (class nto_process_target): Derive from
2669 'process_stratum_target'.
2670 * nto-low.cc (nto_target_ops): Remove.
2671 (initialize_low): Set the_target to the singleton instance of
2672 nto_process_target.
2673 * win32-low.h (class win32_process_target): Derive from
2674 'process_stratum_target'.
2675 * win32-low.cc (win32_target_ops): Remove.
2676 (initialize_low): Set the_target to the singleton instance of
2677 win32_process_target.
2678
2679 Replace 'the_target->pt' with 'the_target' in the uses below.
2680
2681 * hostio.cc (hostio_error)
2682 (handle_setfs)
2683 (handle_open)
2684 (handle_unlink)
2685 (handle_readlink)
2686 * linux-aarch32-low.cc (arm_breakpoint_at)
2687 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2688 * linux-arm-low.cc (arm_sigreturn_next_pc)
2689 (arm_get_hwcap)
2690 (arm_get_syscall_trapinfo)
2691 * linux-cris-low.cc (cris_breakpoint_at)
2692 * linux-crisv32-low.cc (cris_breakpoint_at)
2693 * linux-low.cc (handle_extended_wait)
2694 (linux_wait_1)
2695 (linux_read_memory)
2696 (linux_process_target::breakpoint_kind_from_pc)
2697 (linux_get_auxv)
2698 * linux-m32r-low.cc (m32r_breakpoint_at)
2699 * linux-mips-low.cc (mips_breakpoint_at)
2700 * linux-nios2-low.cc (nios2_breakpoint_at)
2701 * linux-ppc-low.cc (ppc_breakpoint_at)
2702 * linux-s390-low.cc (s390_get_hwcap)
2703 * linux-sh-low.cc (sh_breakpoint_at)
2704 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2705 (sparc_store_gregset_from_stack)
2706 (sparc_breakpoint_at)
2707 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2708 * linux-tile-low.cc (tile_breakpoint_at)
2709 * linux-x86-low.cc (x86_breakpoint_at)
2710 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2711 * mem-break.cc (bp_size)
2712 (bp_opcode)
2713 (insert_memory_breakpoint)
2714 (set_raw_breakpoint_at)
2715 (delete_raw_breakpoint)
2716 (z_type_supported)
2717 (uninsert_raw_breakpoint)
2718 (reinsert_raw_breakpoint)
2719 (validate_inserted_breakpoint)
2720 * regcache.cc (regcache_read_pc)
2721 (regcache_write_pc)
2722 * remote-utils.cc (putpkt_binary_1)
2723 (input_interrupt)
2724 (getpkt)
2725 (prepare_resume_reply)
2726 * server.cc (handle_general_set)
2727 (handle_detach)
2728 (handle_qxfer_auxv)
2729 (handle_qxfer_exec_file)
2730 (handle_qxfer_libraries_svr4)
2731 (handle_qxfer_osdata)
2732 (handle_qxfer_siginfo)
2733 (handle_qxfer_fdpic)
2734 (handle_query)
2735 (resume)
2736 (handle_v_requests)
2737 (queue_stop_reply_callback)
2738 (captured_main)
2739 * target.cc (prepare_to_access_memory)
2740 (done_accessing_memory)
2741 (read_inferior_memory)
2742 (target_write_memory)
2743 (target_stop_and_wait)
2744 (target_wait)
2745 (target_mourn_inferior)
2746 (target_continue_no_signal)
2747 (target_continue)
2748 (target_supports_multi_process)
2749 (kill_inferior)
2750 * target.h
2751 (target_create_inferior)
2752 (target_post_create_inferior)
2753 (myattach)
2754 (target_supports_fork_events)
2755 (target_supports_vfork_events)
2756 (target_supports_exec_events)
2757 (target_handle_new_gdb_connection)
2758 (detach_inferior)
2759 (mythread_alive)
2760 (fetch_inferior_registers)
2761 (store_inferior_registers)
2762 (join_inferior)
2763 (target_supports_non_stop)
2764 (target_async)
2765 (target_process_qsupported)
2766 (target_supports_catch_syscall)
2767 (target_get_ipa_tdesc_idx)
2768 (target_supports_tracepoints)
2769 (target_supports_fast_tracepoints)
2770 (target_get_min_fast_tracepoint_insn_len)
2771 (target_thread_stopped)
2772 (target_pause_all)
2773 (target_unpause_all)
2774 (target_stabilize_threads)
2775 (target_install_fast_tracepoint_jump_pad)
2776 (target_emit_ops)
2777 (target_supports_disable_randomization)
2778 (target_supports_agent)
2779 (target_enable_btrace)
2780 (target_disable_btrace)
2781 (target_read_btrace)
2782 (target_read_btrace_conf)
2783 (target_supports_range_stepping)
2784 (target_supports_stopped_by_sw_breakpoint)
2785 (target_stopped_by_sw_breakpoint)
2786 (target_supports_stopped_by_hw_breakpoint)
2787 (target_supports_hardware_single_step)
2788 (target_stopped_by_hw_breakpoint)
2789 (target_breakpoint_kind_from_pc)
2790 (target_breakpoint_kind_from_current_state)
2791 (target_supports_software_single_step)
2792 (target_core_of_thread)
2793 (target_thread_name)
2794 (target_thread_handle)
2795 * win32-low.cc (do_initial_child_stuff)
2796
2797 Rename target op default definitions listed below.
2798
2799 * target.cc (process_target::post_create_inferior): Rename as ...
2800 (process_stratum_target::post_create_inferior): ... this.
2801 (process_target::prepare_to_access_memory): Rename as ...
2802 (process_stratum_target::prepare_to_access_memory): ... this.
2803 (process_target::done_accessing_memory): Rename as ...
2804 (process_stratum_target::done_accessing_memory): ... this.
2805 (process_target::look_up_symbols): Rename as ...
2806 (process_stratum_target::look_up_symbols): ... this.
2807 (process_target::supports_read_auxv): Rename as ...
2808 (process_stratum_target::supports_read_auxv): ... this.
2809 (process_target::read_auxv): Rename as ...
2810 (process_stratum_target::read_auxv): ... this.
2811 (process_target::supports_z_point_type): Rename as ...
2812 (process_stratum_target::supports_z_point_type): ... this.
2813 (process_target::insert_point): Rename as ...
2814 (process_stratum_target::insert_point): ... this.
2815 (process_target::remove_point): Rename as ...
2816 (process_stratum_target::remove_point): ... this.
2817 (process_target::stopped_by_sw_breakpoint): Rename as ...
2818 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2819 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2820 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2821 (process_target::stopped_by_hw_breakpoint): Rename as ...
2822 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2823 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2824 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2825 (process_target::supports_hardware_single_step): Rename as ...
2826 (process_stratum_target::supports_hardware_single_step): ... this.
2827 (process_target::stopped_by_watchpoint): Rename as ...
2828 (process_stratum_target::stopped_by_watchpoint): ... this.
2829 (process_target::stopped_data_address): Rename as ...
2830 (process_stratum_target::stopped_data_address): ... this.
2831 (process_target::supports_read_offsets): Rename as ...
2832 (process_stratum_target::supports_read_offsets): ... this.
2833 (process_target::read_offsets): Rename as ...
2834 (process_stratum_target::read_offsets): ... this.
2835 (process_target::supports_get_tls_address): Rename as ...
2836 (process_stratum_target::supports_get_tls_address): ... this.
2837 (process_target::get_tls_address): Rename as ...
2838 (process_stratum_target::get_tls_address): ... this.
2839 (process_target::hostio_last_error): Rename as ...
2840 (process_stratum_target::hostio_last_error): ... this.
2841 (process_target::supports_qxfer_osdata): Rename as ...
2842 (process_stratum_target::supports_qxfer_osdata): ... this.
2843 (process_target::qxfer_osdata): Rename as ...
2844 (process_stratum_target::qxfer_osdata): ... this.
2845 (process_target::supports_qxfer_siginfo): Rename as ...
2846 (process_stratum_target::supports_qxfer_siginfo): ... this.
2847 (process_target::qxfer_siginfo): Rename as ...
2848 (process_stratum_target::qxfer_siginfo): ... this.
2849 (process_target::supports_non_stop): Rename as ...
2850 (process_stratum_target::supports_non_stop): ... this.
2851 (process_target::async): Rename as ...
2852 (process_stratum_target::async): ... this.
2853 (process_target::start_non_stop): Rename as ...
2854 (process_stratum_target::start_non_stop): ... this.
2855 (process_target::supports_multi_process): Rename as ...
2856 (process_stratum_target::supports_multi_process): ... this.
2857 (process_target::supports_fork_events): Rename as ...
2858 (process_stratum_target::supports_fork_events): ... this.
2859 (process_target::supports_vfork_events): Rename as ...
2860 (process_stratum_target::supports_vfork_events): ... this.
2861 (process_target::supports_exec_events): Rename as ...
2862 (process_stratum_target::supports_exec_events): ... this.
2863 (process_target::handle_new_gdb_connection): Rename as ...
2864 (process_stratum_target::handle_new_gdb_connection): ... this.
2865 (process_target::handle_monitor_command): Rename as ...
2866 (process_stratum_target::handle_monitor_command): ... this.
2867 (process_target::core_of_thread): Rename as ...
2868 (process_stratum_target::core_of_thread): ... this.
2869 (process_target::supports_read_loadmap): Rename as ...
2870 (process_stratum_target::supports_read_loadmap): ... this.
2871 (process_target::read_loadmap): Rename as ...
2872 (process_stratum_target::read_loadmap): ... this.
2873 (process_target::process_qsupported): Rename as ...
2874 (process_stratum_target::process_qsupported): ... this.
2875 (process_target::supports_tracepoints): Rename as ...
2876 (process_stratum_target::supports_tracepoints): ... this.
2877 (process_target::read_pc): Rename as ...
2878 (process_stratum_target::read_pc): ... this.
2879 (process_target::write_pc): Rename as ...
2880 (process_stratum_target::write_pc): ... this.
2881 (process_target::supports_thread_stopped): Rename as ...
2882 (process_stratum_target::supports_thread_stopped): ... this.
2883 (process_target::thread_stopped): Rename as ...
2884 (process_stratum_target::thread_stopped): ... this.
2885 (process_target::supports_get_tib_address): Rename as ...
2886 (process_stratum_target::supports_get_tib_address): ... this.
2887 (process_target::get_tib_address): Rename as ...
2888 (process_stratum_target::get_tib_address): ... this.
2889 (process_target::pause_all): Rename as ...
2890 (process_stratum_target::pause_all): ... this.
2891 (process_target::unpause_all): Rename as ...
2892 (process_stratum_target::unpause_all): ... this.
2893 (process_target::stabilize_threads): Rename as ...
2894 (process_stratum_target::stabilize_threads): ... this.
2895 (process_target::supports_fast_tracepoints): Rename as ...
2896 (process_stratum_target::supports_fast_tracepoints): ... this.
2897 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2898 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2899 (process_target::emit_ops): Rename as ...
2900 (process_stratum_target::emit_ops): ... this.
2901 (process_target::supports_disable_randomization): Rename as ...
2902 (process_stratum_target::supports_disable_randomization): ... this.
2903 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2904 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2905 (process_target::qxfer_libraries_svr4): Rename as ...
2906 (process_stratum_target::qxfer_libraries_svr4): ... this.
2907 (process_target::supports_agent): Rename as ...
2908 (process_stratum_target::supports_agent): ... this.
2909 (process_target::enable_btrace): Rename as ...
2910 (process_stratum_target::enable_btrace): ... this.
2911 (process_target::disable_btrace): Rename as ...
2912 (process_stratum_target::disable_btrace): ... this.
2913 (process_target::read_btrace): Rename as ...
2914 (process_stratum_target::read_btrace): ... this.
2915 (process_target::read_btrace_conf): Rename as ...
2916 (process_stratum_target::read_btrace_conf): ... this.
2917 (process_target::supports_range_stepping): Rename as ...
2918 (process_stratum_target::supports_range_stepping): ... this.
2919 (process_target::supports_pid_to_exec_file): Rename as ...
2920 (process_stratum_target::supports_pid_to_exec_file): ... this.
2921 (process_target::pid_to_exec_file): Rename as ...
2922 (process_stratum_target::pid_to_exec_file): ... this.
2923 (process_target::supports_multifs): Rename as ...
2924 (process_stratum_target::supports_multifs): ... this.
2925 (process_target::multifs_open): Rename as ...
2926 (process_stratum_target::multifs_open): ... this.
2927 (process_target::multifs_unlink): Rename as ...
2928 (process_stratum_target::multifs_unlink): ... this.
2929 (process_target::multifs_readlink): Rename as ...
2930 (process_stratum_target::multifs_readlink): ... this.
2931 (process_target::breakpoint_kind_from_pc): Rename as ...
2932 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2933 (process_target::breakpoint_kind_from_current_state): Rename as ...
2934 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2935 (process_target::thread_name): Rename as ...
2936 (process_stratum_target::thread_name): ... this.
2937 (process_target::thread_handle): Rename as ...
2938 (process_stratum_target::thread_handle): ... this.
2939 (process_target::supports_software_single_step): Rename as ...
2940 (process_stratum_target::supports_software_single_step): ... this.
2941 (process_target::supports_catch_syscall): Rename as ...
2942 (process_stratum_target::supports_catch_syscall): ... this.
2943 (process_target::get_ipa_tdesc_idx): Rename as ...
2944 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2945
478f9adf
PA
29462020-02-20 Pedro Alves <palves@redhat.com>
2947
2948 * target.cc (set_target_ops): Simply copy the given target pointer
2949 instead of creating a copy of the pointed object.
2950
d633e831
TBA
29512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2952
2953 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2954 of process_target.
2955
2956 * target.h (struct process_stratum_target): Remove the target op.
2957 (class process_target): Add the target op.
2958 (target_get_ipa_tdesc_idx): Update the macro.
2959 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2960
2961 Update the derived classes and callers below.
2962
2963 * linux-low.cc (linux_target_ops): Update.
2964 (linux_get_ipa_tdesc_idx): Turn into ...
2965 (linux_process_target::get_ipa_tdesc_idx): ... this.
2966 * linux-low.h (class linux_process_target): Update.
2967 * lynx-low.cc (lynx_target_ops): Update.
2968 * nto-low.cc (nto_target_ops): Update.
2969 * win32-low.cc (win32_target_ops): Update.
2970
bc8d3ae4
TBA
29712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2972
2973 Turn process_stratum_target's supports_catch_syscall op into a
2974 method of process_target.
2975
2976 * target.h (struct process_stratum_target): Remove the target op.
2977 (class process_target): Add the target op.
2978 (target_supports_catch_syscall): Update the macro.
2979 * target.cc (process_target::supports_catch_syscall): Define.
2980
2981 Update the derived classes and callers below.
2982
2983 * linux-low.cc (linux_target_ops): Update.
2984 (linux_supports_catch_syscall): Turn into ...
2985 (linux_process_target::supports_catch_syscall): ... this.
2986 * linux-low.h (class linux_process_target): Update.
2987 * lynx-low.cc (lynx_target_ops): Update.
2988 * nto-low.cc (nto_target_ops): Update.
2989 * win32-low.cc (win32_target_ops): Update.
2990
5303a34f
TBA
29912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2992
2993 Turn process_stratum_target's supports_software_single_step op
2994 into a method of process_target.
2995
2996 * target.h (struct process_stratum_target): Remove the target op.
2997 (class process_target): Add the target op.
2998 (target_supports_software_single_step): Update the macro.
2999 * target.cc (process_target::supports_software_single_step): Define.
3000
3001 Update the derived classes and callers below.
3002
3003 * linux-low.cc (linux_target_ops): Update.
3004 (linux_supports_software_single_step): Turn into ...
3005 (linux_process_target::supports_software_single_step): ... this.
3006 * linux-low.h (class linux_process_target): Update.
3007 * lynx-low.cc (lynx_target_ops): Update.
3008 * nto-low.cc (nto_target_ops): Update.
3009 * win32-low.cc (win32_target_ops): Update.
3010
7f63b89b
TBA
30112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3012
3013 Turn process_stratum_target's thread_name and thread_handle ops
3014 into methods of process_target.
3015
3016 * target.h (struct process_stratum_target): Remove the target ops.
3017 (class process_target): Add the target ops.
3018 (target_thread_name): Update the macro.
3019 (target_thread_handle): Update the macro.
3020 * target.cc (process_target::thread_name): Define.
3021 (process_target::thread_handle): Define.
3022
3023 Update the derived classes and callers below.
3024
3025 * linux-low.cc (linux_target_ops): Update.
3026 (linux_process_target::thread_name): Define.
3027 (linux_process_target::thread_handle): Define.
3028 * linux-low.h (class linux_process_target): Update.
3029 * lynx-low.cc (lynx_target_ops): Update.
3030 * nto-low.cc (nto_target_ops): Update.
3031 * win32-low.cc (win32_target_ops): Update.
3032
d367006f
TBA
30332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3034
3035 Turn process_stratum_target's breakpoint_kind_from_pc,
3036 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3037 ops into methods of process_target.
3038
3039 * target.h (struct process_stratum_target): Remove the target op.
3040 (class process_target): Add the target op.
3041 (target_breakpoint_kind_from_pc): Update the macro.
3042 (target_breakpoint_kind_from_current_state): Update the macro.
3043 (default_breakpoint_kind_from_pc): Remove declaration.
3044 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3045 (process_target::breakpoint_kind_from_pc): ... this.
3046 (process_target::breakpoint_kind_from_current_state): Define.
3047
3048 Update the derived classes and callers below.
3049
3050 * mem-break.cc (bp_size): Update.
3051 (bp_opcode): Update.
3052 * linux-low.cc (linux_target_ops): Update.
3053 (linux_wait_1): Update.
3054 (linux_breakpoint_kind_from_pc): Turn into ...
3055 (linux_process_target::breakpoint_kind_from_pc): ... this.
3056 (linux_sw_breakpoint_from_kind): Turn into ...
3057 (linux_process_target::sw_breakpoint_from_kind): ... this.
3058 (linux_breakpoint_kind_from_current_state): Turn into ...
3059 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3060 * linux-low.h (class linux_process_target): Update.
3061 * lynx-low.cc (lynx_target_ops): Update.
3062 (lynx_process_target::sw_breakpoint_from_kind): Define.
3063 * lynx-low.h (class lynx_process_target): Update.
3064 * nto-low.cc (nto_target_ops): Update.
3065 (nto_sw_breakpoint_from_kind): Turn into ...
3066 (nto_process_target::sw_breakpoint_from_kind): ... this.
3067 * nto-low.h (class nto_process_target): Update.
3068 * win32-low.cc (win32_target_ops): Update.
3069 (win32_sw_breakpoint_from_kind): Turn into ...
3070 (win32_process_target::sw_breakpoint_from_kind): ... this.
3071 * win32-low.h (class win32_process_target): Update.
3072
c9b7b804
TBA
30732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3074
3075 Turn process_stratum_target's multifs_open, multifs_readlink,
3076 multifs_unlink ops into methods of process_target.
3077
3078 * target.h (struct process_stratum_target): Remove the target ops.
3079 (class process_target): Add the target ops. Also add
3080 'supports_multifs'.
3081 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3082 "sys/stat.h".
3083 (process_target::supports_multifs): Define.
3084 (process_target::multifs_open): Define.
3085 (process_target::multifs_readlink): Define.
3086 (process_target::multifs_unlink): Define.
3087
3088 Update the derived classes and callers below.
3089
3090 * hostio.cc (handle_setfs): Update.
3091 (handle_open): Update.
3092 (handle_unlink): Update.
3093 (handle_readlink): Update.
3094 * linux-low.cc (linux_target_ops): Update.
3095 (linux_process_target::supports_multifs): Define.
3096 (linux_process_target::multifs_open): Define.
3097 (linux_process_target::multifs_readlink): Define.
3098 (linux_process_target::multifs_unlink): Define.
3099 * linux-low.h (class linux_process_target): Update.
3100 * lynx-low.cc (lynx_target_ops): Update.
3101 * nto-low.cc (nto_target_ops): Update.
3102 * win32-low.cc (win32_target_ops): Update.
3103
8247b823
TBA
31042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3105
3106 Turn process_stratum_target's pid_to_exec_file op into a method
3107 of process_target.
3108
3109 * target.h (struct process_stratum_target): Remove the target op.
3110 (class process_target): Add the target op. Also add
3111 'supports_pid_to_exec_file'.
3112 * target.cc (process_target::pid_to_exec_file): Define.
3113 (process_target::supports_pid_to_exec_file): Define.
3114
3115 Update the derived classes and callers below.
3116
3117 * server.cc (handle_qxfer_exec_file): Update.
3118 (handle_query): Update.
3119 * linux-low.cc (linux_target_ops): Update.
3120 (linux_process_target::supports_pid_to_exec_file): Define.
3121 (linux_process_target::pid_to_exec_file): Define.
3122 * linux-low.h (class linux_process_target): Update.
3123 * lynx-low.cc (lynx_target_ops): Update.
3124 * nto-low.cc (nto_target_ops): Update.
3125 * win32-low.cc (win32_target_ops): Update.
3126
2526e0cd
TBA
31272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3128
3129 Turn process_stratum_target's supports_range_stepping op into a
3130 method of process_target.
3131
3132 * target.h (struct process_stratum_target): Remove the target op.
3133 (class process_target): Add the target op.
3134 (target_supports_range_stepping): Update the macro.
3135 * target.cc (process_target::supports_range_stepping): Define.
3136
3137 Update the derived classes and callers below.
3138
3139 * linux-low.cc (linux_target_ops): Update.
3140 (linux_supports_range_stepping): Turn into ...
3141 (linux_process_target::supports_range_stepping): ... this.
3142 * linux-low.h (class linux_process_target): Update.
3143 * lynx-low.cc (lynx_target_ops): Update.
3144 * nto-low.cc (nto_target_ops): Update.
3145 * win32-low.cc (win32_target_ops): Update.
3146
79597bdd
TBA
31472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3148
3149 Turn process_stratum_target's btrace-related ops (enable_btrace,
3150 disable_btrace, read_btrace, read_btrace_conf) into methods of
3151 process_target.
3152
3153 * target.h (struct process_stratum_target): Remove the target ops.
3154 (class process_target): Add the target ops.
3155 (target_enable_btrace): Update.
3156 (target_disable_btrace): Update.
3157 (target_read_btrace): Update.
3158 (target_read_btrace_conf): Update.
3159 * target.cc (process_target::enable_btrace): Define.
3160 (process_target::disable_btrace): Define.
3161 (process_target::read_btrace): Define.
3162 (process_target::read_btrace_conf): Define.
3163
3164 Update the derived classes and callers below.
3165
3166 * linux-low.cc (linux_target_ops): Update.
3167 (linux_process_target:enable_btrace): Define as a wrapper around
3168 linux_enable_btrace.
3169 (linux_low_disable_btrace): Turn into ...
3170 (linux_process_target::disable_btrace): ... this.
3171 (linux_low_read_btrace): Turn into ...
3172 (linux_process_target::read_btrace): ... this.
3173 (linux_low_btrace_conf): Turn into ...
3174 (linux_process_target::read_btrace_conf): ... this.
3175 * linux-low.h (class linux_process_target): Update.
3176 * lynx-low.cc (lynx_target_ops): Update.
3177 * nto-low.cc (nto_target_ops): Update.
3178 * win32-low.cc (win32_target_ops): Update.
3179
c0245cb9
TBA
31802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3181
3182 Turn process_stratum_target's supports_agent op into a method of
3183 process_target.
3184
3185 * target.h (struct process_stratum_target): Remove the target op.
3186 (class process_target): Add the target op.
3187 (target_supports_agent): Update the macro.
3188 * target.cc (process_target::supports_agent): Define.
3189
3190 Update the derived classes and callers below.
3191
3192 * linux-low.cc (linux_target_ops): Update.
3193 (linux_supports_agent): Turn into ...
3194 (linux_process_target::supports_agent): ... this.
3195 * linux-low.h (class linux_process_target): Update.
3196 * lynx-low.cc (lynx_target_ops): Update.
3197 * nto-low.cc (nto_target_ops): Update.
3198 * win32-low.cc (win32_target_ops): Update.
3199
974387bb
TBA
32002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3201
3202 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3203 method of process_target.
3204
3205 * target.h (struct process_stratum_target): Remove the target op.
3206 (class process_target): Add the target op. Also add
3207 'supports_qxfer_libraries_svr4'.
3208 * target.cc (process_target::qxfer_libraries_svr4): Define.
3209 (process_target::supports_qxfer_libraries_svr4): Define.
3210
3211 Update the derived classes and callers below.
3212
3213 * server.cc (handle_qxfer_libraries_svr4): Update.
3214 (handle_query): Update.
3215 * linux-low.cc (linux_target_ops): Update.
3216 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3217 (linux_qxfer_libraries_svr4): Turn into ...
3218 (linux_process_target::qxfer_libraries_svr4): ... this.
3219 * linux-low.h (class linux_process_target): Update.
3220 * lynx-low.cc (lynx_target_ops): Update.
3221 * nto-low.cc (nto_target_ops): Update.
3222 * win32-low.cc (win32_target_ops): Update.
3223
c756403b
TBA
32242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3225
3226 Turn process_stratum_target's supports_disable_randomization op
3227 into a method of process_target.
3228
3229 * target.h (struct process_stratum_target): Remove the target op.
3230 (class process_target): Add the target op.
3231 (target_supports_disable_randomization): Update the macro.
3232 * target.cc (process_target::supports_disable_randomization): Define.
3233
3234 Update the derived classes and callers below.
3235
3236 * linux-low.cc (linux_target_ops): Update.
3237 (linux_supports_disable_randomization): Turn into ...
3238 (linux_process_target::supports_disable_randomization): ... this.
3239 * linux-low.h (class linux_process_target): Update.
3240 * lynx-low.cc (lynx_target_ops): Update.
3241 * nto-low.cc (nto_target_ops): Update.
3242 * win32-low.cc (win32_target_ops): Update.
3243
345dafad
TBA
32442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3245
3246 Turn process_stratum_target's emit_ops op into a method of
3247 process_target.
3248
3249 * target.h (struct process_stratum_target): Remove the target op.
3250 (class process_target): Add the target op.
3251 (target_emit_ops): Update the macro.
3252 * target.cc (process_target::emit_ops): Define.
3253
3254 Update the derived classes and callers below.
3255
3256 * linux-low.cc (linux_target_ops): Update.
3257 (linux_emit_ops): Turn into ...
3258 (linux_process_target::emit_ops): ... this.
3259 * linux-low.h (class linux_process_target): Update.
3260 * lynx-low.cc (lynx_target_ops): Update.
3261 * nto-low.cc (nto_target_ops): Update.
3262 * win32-low.cc (win32_target_ops): Update.
3263
c23c9391
TBA
32642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3265
3266 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3267 and get_min_fast_tracepoint_insn_len ops into methods of
3268 process_target.
3269
3270 * target.h (struct process_stratum_target): Remove the target ops.
3271 (class process_target): Add the target ops. Also add
3272 'supports_fast_tracepoints'.
3273 (target_supports_fast_tracepoints): Update the macro.
3274 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3275 (install_fast_tracepoint_jump_pad): Update and rename the macro
3276 to ...
3277 (target_install_fast_tracepoint_jump_pad): ... this.
3278 * target.cc (process_target::supports_fast_tracepoints): Define.
3279 (process_target::install_fast_tracepoint_jump_pad): Define.
3280 (process_target::get_min_fast_tracepoint_insn_len): Define.
3281
3282 Update the derived classes and callers below.
3283
3284 * tracepoint.cc (install_fast_tracepoint): Update.
3285 * linux-low.cc (linux_target_ops): Update.
3286 (linux_process_target::supports_fast_tracepoints): Define.
3287 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3288 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3289 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3290 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3291 * linux-low.h (class linux_process_target): Update.
3292 * lynx-low.cc (lynx_target_ops): Update.
3293 * nto-low.cc (nto_target_ops): Update.
3294 * win32-low.cc (win32_target_ops): Update.
3295
5c9eb2f2
TBA
32962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3297
3298 Turn process_stratum_target's stabilize_threads op into a
3299 method of process_target.
3300
3301 * target.h (struct process_stratum_target): Remove the target op.
3302 (class process_target): Add the target op.
3303 (target_stabilize_threads): Update the macro.
3304 * target.cc (process_target::stabilize_threads): Define.
3305
3306 Update the derived classes and callers below.
3307
3308 * server.cc (handle_status): Update.
3309 * tracepoint.cc (cmd_qtdp): Update.
3310 (cmd_qtstart): Update.
3311 * linux-low.cc (linux_target_ops): Update.
3312 (linux_stabilize_threads): Turn into ...
3313 (linux_process_target::stabilize_threads): ... this.
3314 (linux_wait_1): Update.
3315 * linux-low.h (class linux_process_target): Update.
3316 * lynx-low.cc (lynx_target_ops): Update.
3317 * nto-low.cc (nto_target_ops): Update.
3318 * win32-low.cc (win32_target_ops): Update.
3319
29e8dc09
TBA
33202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3321
3322 Turn process_stratum_target's pause_all and unpause_all ops
3323 into methods of process_target.
3324
3325 * target.h (struct process_stratum_target): Remove the target ops.
3326 (class process_target): Add the target ops.
3327 (pause_all): Update the macro and rename to...
3328 (target_pause_all): ... this.
3329 (unpause_all): Update the macro and rename to...
3330 (target_unpause_all): ... this.
3331 * target.cc (process_target::pause_all): Define.
3332 (process_target::unpause_all): Define.
3333
3334 Update the derived classes and callers below.
3335
3336 * server.cc (handle_status): Update.
3337 * tracepoint.cc (clear_installed_tracepoints): Update.
3338 (cmd_qtdp): Update.
3339 (cmd_qtstart): Update.
3340 (stop_tracing): Update.
3341 (cmd_qtstatus): Update.
3342 (upload_fast_traceframes): Update.
3343 (run_inferior_command): Update.
3344 * linux-low.cc (linux_target_ops): Update.
3345 (linux_pause_all): Turn into ...
3346 (linux_process_target::pause_all): ... this.
3347 (linux_unpause_all): Turn into ...
3348 (linux_process_target::unpause_all): ... this.
3349 (linux_process_target::prepare_to_access_memory): Update.
3350 (linux_process_target::done_accessing_memory): Update.
3351 * linux-low.h (class linux_process_target): Update.
3352 * lynx-low.cc (lynx_target_ops): Update.
3353 * nto-low.cc (nto_target_ops): Update.
3354 * win32-low.cc (win32_target_ops): Update.
3355
4e2e869c
TBA
33562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3357
3358 Turn process_stratum_target's get_tib_address op into a method of
3359 process_target.
3360
3361 * target.h (struct process_stratum_target): Remove the target op.
3362 (class process_target): Add the target op. Also add
3363 'supports_get_tib_address'.
3364 * target.cc (process_target::get_tib_address): Define.
3365 (process_target::supports_get_tib_address): Define.
3366
3367 Update the derived classes and callers below.
3368
3369 * server.cc (handle_query): Update.
3370 * linux-low.cc (win32_target_ops): Update.
3371 * lynx-low.cc (lynx_target_ops): Update.
3372 * nto-low.cc (nto_target_ops): Update.
3373 * win32-low.cc (win32_target_ops): Update.
3374 (win32_process_target::supports_get_tib_address): Define.
3375 (win32_get_tib_address): Turn into ...
3376 (win32_process_target::get_tib_address): ... this.
3377 * win32-low.h (class win32_process_target): Update.
3378
68119632
TBA
33792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3380
3381 Turn process_stratum_target's thread_stopped op into a method of
3382 process_target.
3383
3384 * target.h (struct process_stratum_target): Remove the target op.
3385 (class process_target): Add the target op. Also add
3386 'supports_thread_stopped'.
3387 (target_thread_stopped): Update the macro.
3388 * target.cc (process_target::thread_stopped): Define.
3389 (process_target::supports_thread_stopped): Define.
3390 (prepare_to_access_memory): Update.
3391
3392 Update the derived classes and callers below.
3393
3394 * server.cc (queue_stop_reply_callback): Update.
3395 * linux-low.cc (linux_target_ops): Update.
3396 (linux_process_target::supports_thread_stopped): Define.
3397 (linux_thread_stopped): Turn into ...
3398 (linux_process_target::thread_stopped): ... this.
3399 * linux-low.h (class linux_process_target): Update.
3400 * lynx-low.cc (lynx_target_ops): Update.
3401 * nto-low.cc (nto_target_ops): Update.
3402 * win32-low.cc (win32_target_ops): Update.
3403
770d8f6a
TBA
34042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3405
3406 Turn process_stratum_target's read_pc and write_pc ops into
3407 methods of process_target.
3408
3409 * target.h (struct process_stratum_target): Remove the target ops.
3410 (class process_target): Add the target ops.
3411 * target.cc (process_target::read_pc): Define.
3412 (process_target::write_pc): Define.
3413
3414 Update the derived classes and callers below.
3415
3416 * regcache.cc (regcache_read_pc): Update.
3417 (regcache_write_pc): Update.
3418 * linux-low.cc (linux_target_ops): Update.
3419 (linux_read_pc): Turn into ...
3420 (linux_process_target::read_pc): ... this.
3421 (linux_write_pc): Turn into ...
3422 (linux_process_target::write_pc): ... this.
3423 * linux-low.h (class linux_process_target): Update.
3424 * lynx-low.cc (lynx_target_ops): Update.
3425 * nto-low.cc (nto_target_ops): Update.
3426 * win32-low.cc (win32_target_ops): Update.
3427
290732bf
TBA
34282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3429
3430 Turn process_stratum_target's supports_tracepoints op into a
3431 method of process_target.
3432
3433 * target.h (struct process_stratum_target): Remove the target op.
3434 (class process_target): Add the target op.
3435 (target_supports_tracepoints): Update the macro.
3436 * target.cc (process_target::supports_tracepoints): Define.
3437
3438 Update the derived classes and callers below.
3439
3440 * linux-low.cc (linux_target_ops): Update.
3441 (linux_supports_tracepoints): Turn into ...
3442 (linux_process_target::supports_tracepoints): ... this.
3443 * linux-low.h (class linux_process_target): Update.
3444 * lynx-low.cc (lynx_target_ops): Update.
3445 * nto-low.cc (nto_target_ops): Update.
3446 * win32-low.cc (win32_target_ops): Update.
3447
0df28b1b
TBA
34482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3449
3450 Turn process_stratum_target's process_qsupported op into a method
3451 of process_target.
3452
3453 * target.h (struct process_stratum_target): Remove the target op.
3454 (class process_target): Add the target op.
3455 (target_process_qsupported): Update the macro.
3456 * target.cc (process_target::process_qsupported): Define.
3457
3458 Update the derived classes and callers below.
3459
3460 * linux-low.cc (linux_target_ops): Update.
3461 (linux_process_qsupported): Turn into ...
3462 (linux_process_target::process_qsupported): ... this.
3463 * linux-low.h (class linux_process_target): Update.
3464 * lynx-low.cc (lynx_target_ops): Update.
3465 * nto-low.cc (nto_target_ops): Update.
3466 * win32-low.cc (win32_target_ops): Update.
3467
9da41fda
TBA
34682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3469
3470 Turn process_stratum_target's read_loadmap op into a method of
3471 process_target.
3472
3473 * target.h (struct process_stratum_target): Remove the target op.
3474 (class process_target): Add the target op. Also add
3475 'supports_read_loadmap'.
3476 * target.cc (process_target::read_loadmap): Define.
3477 (process_target::supports_read_loadmap): Define.
3478
3479 Update the derived classes and callers below.
3480
3481 * server.cc (handle_qxfer_fdpic): Update.
3482 (handle_query): Update.
3483 * linux-low.cc (linux_target_ops): Update.
3484 (linux_process_target::supports_read_loadmap): Define.
3485 (linux_read_loadmap): Turn into ...
3486 (linux_process_target::read_loadmap): ... this.
3487 * linux-low.h (class linux_process_target): Update.
3488 * lynx-low.cc (lynx_target_ops): Update.
3489 * nto-low.cc (nto_target_ops): Update.
3490 * win32-low.cc (win32_target_ops): Update.
3491
95a45fc1
TBA
34922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3493
3494 Turn process_stratum_target's core_of_thread op into a method of
3495 process_target.
3496
3497 * target.h (struct process_stratum_target): Remove the target op.
3498 (class process_target): Add the target op.
3499 (target_core_of_thread): Update the macro.
3500 * target.cc (process_target::core_of_thread): Define.
3501
3502 Update the derived classes and callers below.
3503
3504 * linux-low.cc (linux_target_ops): Update.
3505 (linux_process_target::core_of_thread): Define.
3506 * linux-low.h (class linux_process_target): Update.
3507 * lynx-low.cc (lynx_target_ops): Update.
3508 * nto-low.cc (nto_target_ops): Update.
3509 * win32-low.cc (win32_target_ops): Update.
3510
55cf3021
TBA
35112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3512
3513 Turn process_stratum_target's handle_monitor_command op into a
3514 method of process_target.
3515
3516 * target.h (struct process_stratum_target): Remove the target op.
3517 (class process_target): Add the target op.
3518 (target_handle_monitor_command): Update the macro.
3519 * target.cc (process_target::handle_monitor_command): Define.
3520
3521 Update the derived classes and callers below.
3522
3523 * server.cc (handle_query): Update.
3524 * linux-low.cc (linux_target_ops): Update.
3525 (linux_process_target::handle_monitor_command): Define.
3526 * linux-low.h (class linux_process_target): Update.
3527 * lynx-low.cc (lynx_target_ops): Update.
3528 * nto-low.cc (nto_target_ops): Update.
3529 * win32-low.cc (win32_target_ops): Update.
3530
fb00dfce
TBA
35312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3532
3533 Turn process_stratum_target's handle_new_gdb_connection op into a
3534 method of process_target.
3535
3536 * target.h (struct process_stratum_target): Remove the target op.
3537 (class process_target): Add the target op.
3538 (target_handle_new_gdb_connection): Update the macro.
3539 * target.cc (process_target::handle_new_gdb_connection): Define.
3540
3541 Update the derived classes and callers below.
3542
3543 * linux-low.cc (linux_target_ops): Update.
3544 (linux_handle_new_gdb_connection): Turn into ...
3545 (linux_process_target::handle_new_gdb_connection): ... this.
3546 * linux-low.h (class linux_process_target): Update.
3547 * lynx-low.cc (lynx_target_ops): Update.
3548 * nto-low.cc (nto_target_ops): Update.
3549 * win32-low.cc (win32_target_ops): Update.
3550
9690a72a
TBA
35512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3552
3553 Turn process_stratum_target's supports_fork_events,
3554 supports_vfork_events, and supports_exec_events ops into methods
3555 of process_target.
3556
3557 * target.h (struct process_stratum_target): Remove the target ops.
3558 (class process_target): Add the target ops.
3559 (target_supports_fork_events): Update the macro.
3560 (target_supports_vfork_events): Update the macro.
3561 (target_supports_exec_events): Update the macro.
3562 * target.cc (process_target::supports_fork_events): Define.
3563 (process_target::supports_vfork_events): Define.
3564 (process_target::supports_exec_events): Define.
3565
3566 Update the derived classes and callers below.
3567
3568 * linux-low.cc (linux_target_ops): Update.
3569 (linux_supports_fork_events): Turn into ...
3570 (linux_process_target::supports_fork_events): ... this.
3571 (linux_supports_vfork_events): Turn into ...
3572 (linux_process_target::supports_vfork_events): ... this.
3573 (linux_supports_exec_events): Turn into ...
3574 (linux_process_target::supports_exec_events): ... this.
3575 * linux-low.h (class linux_process_target): Update.
3576 * lynx-low.cc (lynx_target_ops): Update.
3577 * nto-low.cc (nto_target_ops): Update.
3578 * win32-low.cc (win32_target_ops): Update.
3579
652aef77
TBA
35802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3581
3582 Turn process_stratum_target's supports_multi_process op into a
3583 method of process_target.
3584
3585 * target.h (struct process_stratum_target): Remove the target op.
3586 (class process_target): Add the target op.
3587 * target.cc (process_target::supports_multi_process): Define.
3588 (target_supports_multi_process): Update.
3589
3590 Update the derived classes and callers below.
3591
3592 * linux-low.cc (linux_target_ops): Update.
3593 (linux_supports_multi_process): Turn into ...
3594 (linux_process_target::supports_multi_process): ... this.
3595 * linux-low.h (class linux_process_target): Update.
3596 * lynx-low.cc (lynx_target_ops): Update.
3597 * nto-low.cc (nto_target_ops): Update.
3598 * win32-low.cc (win32_target_ops): Update.
3599
0dc587d4
TBA
36002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3601
3602 Turn process_stratum_target's supports_non_stop, async, and
3603 start_non_stop ops into methods of process_target.
3604
3605 * target.h (struct process_stratum_target): Remove the target ops.
3606 (class process_target): Add the target ops.
3607 (target_supports_non_stop): Update the macro.
3608 (target_async): Update the macro.
3609 (start_non_stop): Remove declaration.
3610 * target.cc (process_target::supports_non_stop): Define.
3611 (process_target::async): Define.
3612 (process_target::start_non_stop): Define.
3613 (start_non_stop): Remove.
3614
3615 Update the derived classes and callers below.
3616
3617 * server.cc (handle_qxfer_siginfo): Update.
3618 (handle_query): Update.
3619 * linux-low.cc (linux_target_ops): Update.
3620 (linux_supports_non_stop): Turn into ...
3621 (linux_process_target::supports_non_stop): ... this.
3622 (linux_async): Turn into ...
3623 (linux_process_target::async): ... this.
3624 (linux_start_non_stop): Turn into ...
3625 (linux_process_target::start_non_stop): ... this.
3626 * linux-low.h (class linux_process_target): Update.
3627 * lynx-low.cc (lynx_target_ops): Update.
3628 * nto-low.cc (nto_target_ops): Update.
3629 (nto_supports_non_stop): Remove; rely on the default behavior
3630 instead.
3631 * win32-low.cc (win32_target_ops): Update.
3632
d7abedf7
TBA
36332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3634
3635 Turn process_stratum_target's qxfer_siginfo op into a method of
3636 process_target.
3637
3638 * target.h (struct process_stratum_target): Remove the target op.
3639 (class process_target): Add the target op. Also add
3640 'supports_qxfer_siginfo'.
3641 * target.cc (process_target::qxfer_siginfo): Define.
3642 (process_target::supports_qxfer_siginfo): Define.
3643
3644 Update the derived classes and callers below.
3645
3646 * server.cc (handle_qxfer_siginfo): Update.
3647 (handle_query): Update.
3648 * linux-low.cc (linux_target_ops): Update.
3649 (linux_process_target::supports_qxfer_siginfo): Define.
3650 (linux_xfer_siginfo): Turn into ...
3651 (linux_process_target::qxfer_siginfo): ... this.
3652 * linux-low.h (class linux_process_target): Update.
3653 * lynx-low.cc (lynx_target_ops): Update.
3654 * nto-low.cc (nto_target_ops): Update.
3655 * win32-low.cc (win32_target_ops): Update.
3656
2d0795ee
TBA
36572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3658
3659 Turn process_stratum_target's qxfer_osdata op into a method of
3660 process_target.
3661
3662 * target.h (struct process_stratum_target): Remove the target op.
3663 (class process_target): Add the target op. Also add
3664 'supports_qxfer_osdata'.
3665 * target.cc (process_target::qxfer_osdata): Define.
3666 (process_target::supports_qxfer_osdata): Define.
3667
3668 Update the derived classes and callers below.
3669
3670 * server.cc (handle_qxfer_osdata): Update.
3671 (handle_query): Update.
3672 * linux-low.cc (linux_target_ops): Update.
3673 (linux_process_target::supports_qxfer_osdata): Define.
3674 (linux_qxfer_osdata): Turn into ...
3675 (linux_process_target::qxfer_osdata): ... this.
3676 * linux-low.h (class linux_process_target): Update.
3677 * lynx-low.cc (lynx_target_ops): Update.
3678 * nto-low.cc (nto_target_ops): Update.
3679 * win32-low.cc (win32_target_ops): Update.
3680
ea06bbaa
TBA
36812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3682
3683 Turn process_stratum_target's hostio_last_error op into a
3684 method of process_target.
3685
3686 * target.h (struct process_stratum_target): Remove the target op.
3687 (class process_target): Add the target op.
3688 * target.cc: Add "hostio.h" to includes.
3689 (process_target::hostio_last_error): Define.
3690
3691 Update the derived classes and callers below.
3692
3693 * hostio.cc (hostio_error): Update.
3694 * linux-low.cc: Remove "hostio.h" from includes.
3695 (linux_target_ops): Update.
3696 * lynx-low.cc (lynx_target_ops): Update.
3697 * nto-low.cc (nto_target_ops): Update.
3698 * win32-low.h (class win32_process_target): Update.
3699 * win32-low.cc (win32_target_ops): Update.
3700 (wince_hostio_last_error): Turn into ...
3701 (win32_process_target::hostio_last_error): ... this.
3702
6e3fd7e9
TBA
37032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3704
3705 Turn process_stratum_target's get_tls_address op into a method of
3706 process_target.
3707
3708 * target.h (struct process_stratum_target): Remove the target op.
3709 (class process_target): Add the target op. Also add
3710 'supports_get_tls_address'.
3711 * target.cc (process_target::get_tls_address): Define.
3712 (process_target::supports_get_tls_address): Define.
3713
3714 Update the derived classes and callers below.
3715
3716 * server.cc (handle_query): Update.
3717 * linux-low.cc (linux_target_ops): Update.
3718 (linux_process_target::supports_get_tls_address): Define.
3719 (linux_process_target::get_tls_address): Define.
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
5203ae1e
TBA
37252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3726
3727 Turn process_stratum_target's read_offsets 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_read_offsets'.
3733 * target.cc (process_target::read_offsets): Define.
3734 (process_target::supports_read_offsets): Define.
3735
3736 Update the derived classes and callers below.
3737
3738 * server.cc (handle_query): Update.
3739 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3740 (linux_target_ops): Update.
3741 (linux_process_target::supports_read_offsets): Define.
3742 (linux_read_offsets): Turn into ...
3743 (linux_process_target::read_offsets): ... 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
6eeb5c55
TBA
37492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3750
3751 Turn process_stratum_target's stopped_by_watchpoint and
3752 stopped_data_address ops into methods of process_target.
3753
3754 * target.h (struct process_stratum_target): Remove the target ops.
3755 (class process_target): Add the target ops.
3756 * target.cc (process_target::stopped_by_watchpoint): Define.
3757 (process_target::stopped_data_address): Define.
3758
3759 Update the derived classes and callers below.
3760
3761 * remote-utils.cc (prepare_resume_reply): Update.
3762 * linux-low.cc (linux_target_ops): Update.
3763 (linux_stopped_by_watchpoint): Turn into ...
3764 (linux_process_target::stopped_by_watchpoint): ... this.
3765 (linux_stopped_data_address): Turn into ...
3766 (linux_process_target::stopped_data_address): ... this.
3767 * linux-low.h (class linux_process_target): Update.
3768 * lynx-low.cc (lynx_target_ops): Update.
3769 * nto-low.cc (nto_target_ops): Update.
3770 (nto_stopped_by_watchpoint): Turn into ...
3771 (nto_process_target::stopped_by_watchpoint): ... this.
3772 (nto_stopped_data_address): Turn into ...
3773 (nto_process_target::stopped_data_address): ... this.
3774 * nto-low.h (class nto_process_target): Update.
3775 * win32-low.cc (win32_target_ops): Update.
3776 (win32_stopped_by_watchpoint): Turn into ...
3777 (win32_process_target::stopped_by_watchpoint): ... this.
3778 (win32_stopped_data_address): Turn into ...
3779 (win32_process_target::stopped_data_address): ... this.
3780 * win32-low.h (class win32_process_target): Update.
3781
22aa6223
TBA
37822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3783
3784 Turn process_stratum_target's supports_hardware_single_step op into
3785 a method of process_target.
3786
3787 * target.h (struct process_stratum_target): Remove the target op.
3788 (class process_target): Add the target op.
3789 (target_supports_hardware_single_step): Update the macro.
3790 (target_can_do_hardware_single_step): Remove declaration.
3791 * target.cc (process_target::supports_hardware_single_step): Define.
3792 (target_can_do_hardware_single_step): Remove.
3793
3794 Update the derived classes and callers below.
3795
3796 * linux-low.h (class linux_process_target): Update.
3797 * linux-low.cc (linux_target_ops): Update.
3798 (linux_supports_hardware_single_step): Turn into ...
3799 (linux_process_target::supports_hardware_single_step): ... this.
3800 * lynx-low.h (class lynx_process_target): Update.
3801 * lynx-low.cc (lynx_target_ops): Update.
3802 (lynx_process_target::supports_hardware_single_step): Define.
3803 * nto-low.h (class nto_process_target): Update.
3804 * nto-low.cc (nto_target_ops): Update.
3805 (nto_process_target::supports_hardware_single_step): Define.
3806 * win32-low.h (class win32_process_target): Update.
3807 * win32-low.cc (win32_target_ops): Update.
3808 (win32_process_target::supports_hardware_single_step): Define.
3809
93fe88b2
TBA
38102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3811
3812 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3813 ops into methods of process_target.
3814
3815 * target.h (struct process_stratum_target): Remove the target ops.
3816 (class process_target): Add the target ops.
3817 (target_stopped_by_hw_breakpoint): Update the macro.
3818 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3819 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3820 (process_target::supports_stopped_by_hw_breakpoint): Define.
3821
3822 Update the derived classes and callers below.
3823
3824 * linux-low.cc (linux_target_ops): Update.
3825 (linux_stopped_by_hw_breakpoint): Turn into ...
3826 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3827 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3828 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3829 * linux-low.h (class linux_process_target): Update.
3830 * lynx-low.cc (lynx_target_ops): Update.
3831 * nto-low.cc (nto_target_ops): Update.
3832 * win32-low.cc (win32_target_ops): Update.
3833
84320c4e
TBA
38342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3835
3836 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3837 ops into methods of process_target.
3838
3839 * target.h (struct process_stratum_target): Remove the target ops.
3840 (class process_target): Add the target ops.
3841 (target_stopped_by_sw_breakpoint): Update the macro.
3842 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3843 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3844 (process_target::supports_stopped_by_sw_breakpoint): Define.
3845
3846 Update the derived classes and callers below.
3847
3848 * linux-low.cc (linux_target_ops): Update.
3849 (linux_stopped_by_sw_breakpoint): Turn into ...
3850 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3851 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3852 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3853 * linux-low.h (class linux_process_target): Update.
3854 * lynx-low.cc (lynx_target_ops): Update.
3855 * nto-low.cc (nto_target_ops): Update.
3856 * win32-low.cc (win32_target_ops): Update.
3857
7e0bde70
TBA
38582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3859
3860 Turn process_stratum_target's insert_point and remove_point ops
3861 into methods of process_target.
3862
3863 * target.h (struct process_stratum_target): Remove the target ops.
3864 (class process_target): Add the target ops.
3865 * target.cc (process_target::insert_point): Define.
3866 (process_target::remove_point): Define.
3867
3868 Update the derived classes and callers below.
3869
3870 * mem-break.cc (set_raw_breakpoint_at): Update.
3871 (delete_raw_breakpoint): Update.
3872 (uninsert_raw_breakpoint): Update.
3873 (reinsert_raw_breakpoint): Update.
3874 * linux-low.cc (linux_target_ops): Update.
3875 (linux_insert_point): Turn into ...
3876 (linux_process_target::insert_point): ... this.
3877 (linux_remove_point): Turn into ...
3878 (linux_process_target::remove_point): ... this.
3879 * linux-low.h (class linux_process_target): Update.
3880 * lynx-low.cc (lynx_target_ops): Update.
3881 * nto-low.cc (nto_target_ops): Update.
3882 (nto_insert_point): Turn into ...
3883 (nto_process_target::insert_point): ... this.
3884 (nto_remove_point): Turn into ...
3885 (nto_process_target::remove_point): ... this.
3886 * nto-low.h (class nto_process_target): Update.
3887 * win32-low.cc (win32_target_ops): Update.
3888 (win32_insert_point): Turn into ...
3889 (win32_process_target::insert_point): ... this.
3890 (win32_remove_point): Turn into ...
3891 (win32_process_target::remove_point): ... this.
3892 * win32-low.h (class win32_process_target): Update.
3893
a2b2297a
TBA
38942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3895
3896 Turn process_stratum_target's supports_z_point_type op into a
3897 method of process_target.
3898
3899 * target.h (struct process_stratum_target): Remove the target op.
3900 (class process_target): Add the target op.
3901 * target.cc (process_target::supports_z_point_type): Define.
3902
3903 Update the derived classes and callers below.
3904
3905 * mem-break.cc (z_type_supported): Update.
3906 * linux-low.cc (linux_target_ops): Update.
3907 (linux_supports_z_point_type): Turn into ...
3908 (linux_process_target::supports_z_point_type): ... this.
3909 * linux-low.h (class linux_process_target): Update.
3910 * lynx-low.cc (lynx_target_ops): Update.
3911 * nto-low.cc (nto_target_ops): Update.
3912 (nto_supports_z_point_type): Turn into ...
3913 (nto_process_target::supports_z_point_type): ... this.
3914 * nto-low.h (class nto_process_target): Update.
3915 * win32-low.cc (win32_target_ops): Update.
3916 (win32_supports_z_point_type): Turn into ...
3917 (win32_process_target::supports_z_point_type): ... this.
3918 * win32-low.h (class win32_process_target): Update.
3919
eac215cc
TBA
39202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3921
3922 Turn process_stratum_target's read_auxv op into a method of
3923 process_target.
3924
3925 * target.h (class process_stratum_target): Remove the target op.
3926 (struct process_target): Add the target op. Also add
3927 'supports_read_auxv'.
3928 * target.cc (process_target::read_auxv): Define.
3929 (process_target::supports_read_auxv): Define.
3930
3931 Update the derived classes and callers below.
3932
3933 * server.cc (handle_qxfer_auxv): Update.
3934 (handle_query): Update.
3935 * linux-low.cc (linux_target_ops): Update.
3936 (linux_process_target::supports_read_auxv): Define.
3937 (linux_read_auxv): Turn into ...
3938 (linux_process_target::read_auxv): ... this.
3939 * linux-low.h (class linux_process_target): Update.
3940 * lynx-low.cc (lynx_target_ops): Update.
3941 * nto-low.cc (nto_target_ops): Update.
3942 (nto_process_target::supports_read_auxv): Define.
3943 (nto_read_auxv): Turn into ...
3944 (nto_process_target::read_auxv): ... this.
3945 * nto-low.h (class nto_process_target): Update.
3946 * win32-low.cc (win32_target_ops): Update.
3947
eb497a2a
TBA
39482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3949
3950 Turn process_stratum_target's request_interrupt op into a method of
3951 process_target.
3952
3953 * target.h (struct process_stratum_target): Remove the target op.
3954 (class process_target): Add the target op.
3955
3956 Update the derived classes and callers below.
3957
3958 * remote-utils.cc (putpkt_binary_1): Update.
3959 (input_interrupt): Update.
3960 (getpkt): Update.
3961 * server.cc (handle_v_requests): Update.
3962 * linux-low.cc (linux_target_ops): Update.
3963 (linux_request_interrupt): Turn into ...
3964 (linux_process_target::request_interrupt): ... this.
3965 * linux-low.h (class linux_process_target): Update.
3966 * lynx-low.cc (lynx_target_ops): Update.
3967 (lynx_request_interrupt): Turn into ...
3968 (lynx_process_target::request_interrupt): ... this.
3969 * lynx-low.h (class lynx_process_target): Update.
3970 * nto-low.cc (nto_target_ops): Update.
3971 (nto_request_interrupt): Turn into ...
3972 (nto_process_target::request_interrupt): ... this.
3973 * nto-low.h (class nto_process_target): Update.
3974 * win32-low.cc (win32_target_ops): Update.
3975 (win32_request_interrupt): Turn into ...
3976 (win32_process_target::request_interrupt): ... this.
3977 * win32-low.h (class win32_process_target): Update.
3978
2a31c7aa
TBA
39792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3980
3981 Turn process_stratum_target's look_up_symbols op into a method of
3982 process_target.
3983
3984 * target.h (struct process_stratum_target): Remove the target op.
3985 (class process_target): Add the target op.
3986 * target.cc (process_target::look_up_symbols): Define.
3987
3988 Update the derived classes and callers below.
3989
3990 * server.cc (handle_query): Update.
3991 * linux-low.cc (linux_target_ops): Update.
3992 (linux_look_up_symbols): Turn into ...
3993 (linux_process_target::look_up_symbols): ... this.
3994 * linux-low.h (class linux_process_target): Update.
3995 * lynx-low.cc (lynx_target_ops): Update.
3996 * nto-low.cc (nto_target_ops): Update.
3997 * win32-low.cc (win32_target_ops): Update.
3998
e2558df3
TBA
39992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4000
4001 Turn process_stratum_target's read_memory and write_memory
4002 ops into methods of process_target.
4003
4004 * target.h (struct process_stratum_target): Remove the target ops.
4005 (class process_target): Add the target ops.
4006
4007 Update the derived classes and callers below.
4008
4009 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4010 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4011 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4012 (arm_get_syscall_trapinfo): Update.
4013 * linux-cris-low.cc (cris_breakpoint_at): Update.
4014 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4015 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4016 * linux-mips-low.cc (mips_breakpoint_at): Update.
4017 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4018 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4019 * linux-sh-low.cc (sh_breakpoint_at): Update.
4020 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4021 (sparc_store_gregset_from_stack): Update.
4022 (sparc_breakpoint_at): Update.
4023 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4024 * linux-tile-low.cc (tile_breakpoint_at): Update.
4025 * linux-x86-low.cc (x86_breakpoint_at): Update.
4026 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4027 * mem-brea.cc (insert_memory_breakpoint): Update.
4028 (validate_inserted_breakpoint): Update.
4029 * target.cc (read_inferior_memory): Update.
4030 (target_write_memory): Update.
4031 * linux-low.cc (linux_target_ops): Update.
4032 (linux_read_memory): Make a wrapper around the read_memory target
4033 op call.
4034 (linux_process_target::read_memory): Rename from linux_read_memory.
4035 (linux_write_memory): Turn into ...
4036 (linux_process_target::write_memory): ... this.
4037 * linux-low.h (class linux_process_target): Update.
4038 * lynx-low.cc (lynx_target_ops): Update.
4039 (lynx_read_memory): Turn into ...
4040 (lynx_process_target::read_memory): ... this.
4041 (lynx_write_memory): Turn into ...
4042 (lynx_process_target::write_memory): ... this.
4043 * lynx-low.h (class lynx_process_target): Update.
4044 * nto-low.cc (nto_target_ops): Update.
4045 (nto_read_memory): Turn into ...
4046 (nto_process_target::read_memory): ... this.
4047 (nto_write_memory): Turn into ...
4048 (nto_process_target::write_memory): ... this.
4049 * nto-low.h (class nto_process_target): Update.
4050 * win32-low.cc (win32_target_ops): Update.
4051 (win32_read_inferior_memory): Turn into ...
4052 (win32_process_target::read_memory): ... this.
4053 (win32_write_inferior_memory): Turn into ...
4054 (win32_process_target::write_memory): ... this.
4055 * win32-low.h (class win32_process_target): Update.
4056
79b44087
TBA
40572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4058
4059 Turn process_stratum_target's prepare_to_access_memory and
4060 done_accessing_memory ops into methods of process_target.
4061
4062 * target.h (struct process_stratum_target): Remove the target ops.
4063 (class process_target): Add the target ops.
4064 * target.cc (process_target::prepare_to_access_memory): Define.
4065 (process_target::done_accessing_memory): Define.
4066 (prepare_to_access_memory): Update.
4067 (done_accessing_memory): Update.
4068
4069 Update the derived classes and callers below.
4070
4071 * linux-low.cc (linux_target_ops): Update.
4072 (linux_prepare_to_access_memory): Turn into ...
4073 (linux_process_target::prepare_to_access_memory): ... this.
4074 (linux_done_accessing_memory): Turn into ...
4075 (linux_process_target::done_accessing_memory): ... this.
4076 * linux-low.h (class linux_process_target): Update.
4077 * lynx-low.cc (lynx_target_ops): Update.
4078 * nto-low.cc (nto_target_ops): Update.
4079 * win32-low.cc (win32_target_ops): Update.
4080
a5a4d4cd
TBA
40812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4082
4083 Turn process_stratum_target's fetch_registers and store_registers
4084 ops into methods of process_target.
4085
4086 * target.h (struct process_stratum_target): Remove the target ops.
4087 (class process_target): Add the target ops.
4088 (fetch_inferior_registers): Update the macro.
4089 (store_inferior_registers): Update the macro.
4090
4091 Update the derived classes and callers below.
4092
4093 * linux-low.cc (linux_target_ops): Update.
4094 (linux_fetch_registers): Turn into ...
4095 (linux_process_target::fetch_registers): ... this.
4096 (linux_store_registers): Turn into ...
4097 (linux_process_target::store_registers): ... this.
4098 * linux-low.h (class linux_process_target): Update.
4099 * lynx-low.cc (lynx_target_ops): Update.
4100 (lynx_fetch_registers): Turn into ...
4101 (lynx_process_target::fetch_registers): ... this.
4102 (lynx_store_registers): Turn into ...
4103 (lynx_process_target::store_registers): ... this.
4104 * lynx-low.h (class lynx_process_target): Update.
4105 * nto-low.cc (nto_target_ops): Update.
4106 (nto_fetch_registers): Turn into ...
4107 (nto_process_target::fetch_registers): ... this.
4108 (nto_store_registers): Turn into ...
4109 (nto_process_target::store_registers): ... this.
4110 * nto-low.h (class nto_process_target): Update.
4111 * win32-low.cc (win32_target_ops): Update.
4112 (win32_fetch_inferior_registers): Turn into ...
4113 (win32_process_target::fetch_registers): ... this.
4114 (win32_store_inferior_registers): Turn into ...
4115 (win32_process_target::store_registers): ... this.
4116 * win32-low.h (class win32_process_target): Update.
4117
6532e7e3
TBA
41182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4119
4120 Turn process_stratum_target's wait op into a method of
4121 process_target.
4122
4123 * target.h (struct process_stratum_target): Remove the target op.
4124 (class process_target): Add the target op.
4125
4126 Update the derived classes and callers below.
4127
4128 * target.cc (target_wait): Update.
4129 * linux-low.cc (linux_target_ops): Update.
4130 (linux_wait): Turn into ...
4131 (linux_process_target::wait): ... this.
4132 * linux-low.h (class linux_process_target): Update.
4133 * lynx-low.cc (lynx_target_ops): Update.
4134 (lynx_wait): Turn into ...
4135 (lynx_process_target::wait): ... this.
4136 * lynx-low.h (class lynx_process_target): Update.
4137 * nto-low.cc (nto_target_ops): Update.
4138 (nto_wait): Turn into ...
4139 (nto_process_target::wait): ... this.
4140 * nto-low.h (class nto_process_target): Update.
4141 * win32-low.cc (win32_target_ops): Update.
4142 (win32_wait): Turn into ...
4143 (win32_process_target::wait): ... this.
4144 (do_initial_child_stuff): Update.
4145 * win32-low.h (class win32_process_target): Update.
4146
0e4d7e35
TBA
41472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4148
4149 Turn process_stratum_target's resume op into a method of
4150 process_target.
4151
4152 * target.h (struct process_stratum_target): Remove the target op.
4153 (class process_target): Add the target op.
4154
4155 Update the derived classes and callers below.
4156
4157 * server.cc (resume): Update.
4158 * target.cc (target_stop_and_wait): Update.
4159 (target_continue_no_signal): Update.
4160 (target_continue): Update.
4161 * linux-low.cc (linux_target_ops): Update.
4162 (linux_resume): Turn into ...
4163 (linux_process_target::resume): ... this.
4164 * linux-low.h (class linux_process_target): Update.
4165 * lynx-low.cc (lynx_target_ops): Update.
4166 (lynx_resume): Turn into ...
4167 (lynx_process_target::resume): ... this.
4168 * lynx-low.h (class lynx_process_target): Update.
4169 * nto-low.cc (nto_target_ops): Update.
4170 (nto_resume): Turn into ...
4171 (nto_process_target::resume): ... this.
4172 * nto-low.h (class nto_process_target): Update.
4173 * win32-low.cc (win32_target_ops): Update.
4174 (win32_resume): Turn into ...
4175 (win32_process_target::resume): ... this.
4176 (win32_process_target::detach): Update.
4177 (do_initial_child_stuff): Update.
4178 * win32-low.h (class win32_process_target): Update.
4179
13d3d99b
TBA
41802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4181
4182 Turn process_stratum_target's thread_alive op into a method of
4183 process_target.
4184
4185 * target.h (struct process_stratum_target): Remove the target op.
4186 (class process_target): Add the target op.
4187 (mythread_alive): Update the macro.
4188
4189 Update the derived classes and callers below.
4190
4191 * linux-low.cc (linux_target_ops): Update.
4192 (linux_thread_alive): Turn into ...
4193 (linux_process_target::thread_alive): ... this.
4194 (wait_for_sigstop): Update.
4195 * linux-low.h (class linux_process_target): Update.
4196 * lynx-low.cc (lynx_target_ops): Update.
4197 (lynx_thread_alive): Turn into ...
4198 (lynx_process_target::thread_alive): ... this.
4199 * lynx-low.h (class lynx_process_target): Update.
4200 * nto-low.cc (nto_target_ops): Update.
4201 (nto_thread_alive): Turn into ...
4202 (nto_process_target::thread_alive): ... this.
4203 * nto-low.h (class nto_process_target): Update.
4204 * win32-low.cc (win32_target_ops): Update.
4205 (win32_thread_alive): Turn into ...
4206 (win32_process_target::thread_alive): ... this.
4207 * win32-low.h (class win32_process_target): Update.
4208
95a49a39
TBA
42092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4210
4211 Turn process_stratum_target's join op into a method of
4212 process_target.
4213
4214 * target.h (struct process_stratum_target): Remove the target op.
4215 (class process_target): Add the target op.
4216 (join_inferior): Update the macro.
4217
4218 Update the derived classes and callers below.
4219
4220 * linux-low.cc (linux_target_ops): Update.
4221 (linux_join): Turn into ...
4222 (linux_process_target::join): ... this.
4223 * linux-low.h (class linux_process_target): Update.
4224 * lynx-low.cc (lynx_target_ops): Update.
4225 (lynx_join): Turn into ...
4226 (lynx_process_target::join): ... this.
4227 * lynx-low.h (class lynx_process_target): Update.
4228 * nto-low.cc (nto_target_ops): Update.
4229 (nto_process_target::join): Define.
4230 * nto-low.h (class nto_process_target): Update.
4231 * win32-low.cc (win32_target_ops): Update.
4232 (win32_join): Turn into ...
4233 (win32_process_target::join): ... this.
4234 * win32-low.h (class win32_process_target): Update.
4235
8adb37b9
TBA
42362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4237
4238 Turn process_stratum_target's mourn op into a method of
4239 process_target.
4240
4241 * target.h (struct process_stratum_target): Remove the target op.
4242 (class process_target): Add the target op.
4243
4244 Update the derived classes and callers below.
4245
4246 * target.cc (target_mourn_inferior): Update.
4247 * linux-low.cc (linux_target_ops): Update.
4248 (linux_mourn): Turn into ...
4249 (linux_process_target::mourn): ... this.
4250 (handle_extended_wait): Update.
4251 (linux_process_target::kill): Update.
4252 (linux_process_target::detach): Update.
4253 * linux-low.h (class linux_process_target): Update.
4254 * lynx-low.cc (lynx_target_ops): Update.
4255 (lynx_mourn): Turn into ...
4256 (lynx_process_target::mourn): ... this.
4257 * lynx-low.h (class lynx_process_target): Update.
4258 * nto-low.cc (nto_target_ops): Update.
4259 (nto_mourn): Turn into ...
4260 (nto_process_target::mourn): ... this.
4261 * nto-low.h (class nto_process_target): Update.
4262 * win32-low.cc (win32_target_ops): Update.
4263 (win32_mourn): Turn into ...
4264 (win32_process_target::mourn): ... this.
4265 * win32-low.h (class win32_process_target): Update.
4266
9061c9cf
TBA
42672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4268
4269 Turn process_stratum_target's detach op into a method of
4270 process_target.
4271
4272 * target.h (struct process_stratum_target): Remove the target op.
4273 (class process_target): Add the target op.
4274 (detach_inferior): Update the macro.
4275
4276 Update the derived classes and callers below.
4277
4278 * linux-low.cc (linux_target_ops): Update.
4279 (linux_detach): Turn into ...
4280 (linux_process_target::detach): ... this.
4281 * linux-low.h (class linux_process_target): Update.
4282 * lynx-low.cc (lynx_target_ops): Update.
4283 (lynx_detach): Turn into ...
4284 (lynx_process_target::detach): ... this.
4285 * lynx-low.h (class lynx_process_target): Update.
4286 * nto-low.cc (nto_target_ops): Update.
4287 (nto_detach): Turn into ...
4288 (nto_process_target::detach): ... this.
4289 * nto-low.h (class nto_process_target): Update.
4290 * win32-low.cc (win32_target_ops): Update.
4291 (win32_detach): Turn into ...
4292 (win32_process_target::detach): ... this.
4293 * win32-low.h (class win32_process_target): Update.
4294
c6885a57
TBA
42952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4296
4297 Turn process_stratum_target's kill op into a method of
4298 process_target.
4299
4300 * target.h (struct process_stratum_target): Remove the target op.
4301 (class process_target): Add the target op.
4302
4303 Update the derived classes and callers below.
4304
4305 * target.cc (kill_inferior): Update.
4306 * linux-low.cc (linux_target_ops): Update.
4307 (linux_kill): Turn into ...
4308 (linux_process_target::kill): ... this.
4309 * linux-low.h (class linux_process_target): Update.
4310 * lynx-low.cc (lynx_target_ops): Update.
4311 (lynx_kill): Turn into ...
4312 (lynx_process_target::kill): ... this.
4313 * lynx-low.h (class lynx_process_target): Update.
4314 * nto-low.cc (nto_target_ops): Update.
4315 (nto_kill): Turn into ...
4316 (nto_process_target::kill): ... this.
4317 * nto-low.h (class nto_process_target): Update.
4318 * win32-low.cc (win32_target_ops): Update.
4319 (win32_kill): Turn into ...
4320 (win32_process_target::kill): ... this.
4321 * win32-low.h (class win32_process_target): Update.
4322
ef03dad8
TBA
43232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4324
4325 Turn process_stratum_target's attach op into a method of
4326 process_target.
4327
4328 * target.h (struct process_stratum_target): Remove the target op.
4329 (class process_target): Add the target op.
4330 (myattach): Update the macro.
4331
4332 Update the derived classes and callers below.
4333
4334 * linux-low.cc (linux_target_ops): Update.
4335 (linux_attach): Turn into ...
4336 (linux_process_target::attach): ... this.
4337 * linux-low.h (class linux_process_target): Update.
4338 * lynx-low.cc (lynx_target_ops): Update.
4339 (lynx_attach): Turn into ...
4340 (lynx_process_target::attach): ... this.
4341 * lynx-low.h (class lynx_process_target): Update.
4342 * nto-low.cc (nto_target_ops): Update.
4343 (nto_attach): Turn into ...
4344 (nto_process_target::attach): ... this.
4345 * nto-low.h (class nto_process_target): Update.
4346 * win32-low.cc (win32_target_ops): Update.
4347 (win32_attach): Turn into ...
4348 (win32_process_target::attach): ... this.
4349 * win32-low.h (class win32_process_target): Update.
4350
6dee9afb
TBA
43512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4352
4353 Turn process_stratum_target's post_create_inferior op into a method
4354 of process_target.
4355
4356 * target.h (struct process_stratum_target): Remove the target op.
4357 (class process_target): Add the target op.
4358 (target_post_create_inferior): Update the macro.
4359 * target.cc (process_target::post_create_inferior): Define.
4360
4361 Update the derived classes and callers below.
4362
4363 * linux-low.cc (linux_target_ops): Update.
4364 (linux_post_create_inferior): Turn into ...
4365 (linux_process_target::post_create_inferior): ... this.
4366 * linux-low.h (class linux_process_target): Update.
4367 * lynx-low.cc (lynx_target_ops): Update.
4368 * nto-low.cc (nto_target_ops): Update.
4369 * win32-low.cc (win32_target_ops): Update.
4370
15295543
TBA
43712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4372
4373 Turn process_stratum_target's create_inferior op into a method of
4374 process_target.
4375
4376 * target.h (struct process_stratum_target): Remove the target op.
4377 (class process_target): Add the target op.
4378 (create_inferior): Rename the macro to ...
4379 (target_create_inferior): ... this.
4380
4381 Update the derived classes and callers below.
4382
4383 * server.cc (handle_v_run): Update.
4384 (captured_main): Update.
4385 (process_serial_event): Update.
4386 * linux-low.cc (linux_target_ops): Update.
4387 (linux_create_inferior): Turn into ...
4388 (linux_process_target::create_inferior): ... this.
4389 * linux-low.h (class linux_process_target): Update.
4390 * lynx-low.cc (lynx_target_ops): Update.
4391 (lynx_create_inferior): Turn into ...
4392 (lynx_process_target::create_inferior): ... this.
4393 * lynx-low.h (class lynx_process_target): Update.
4394 * nto-low.cc (nto_target_ops): Update.
4395 (nto_create_inferior): Turn into ...
4396 (nto_process_target::create_inferior): ... this.
4397 * nto-low.h (class nto_process_target): Update.
4398 * win32-low.cc (win32_target_ops): Update.
4399 (win32_create_inferior): Turn into ...
4400 (win32_process_target::create_inferior): ... this.
4401 * win32-low.h (class win32_process_target): Update.
4402
5ef9273d
TBA
44032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4404
4405 * target.h (class process_target): New class definition.
4406 (struct process_stratum_target) <pt>: New field with type
4407 'process_target*'.
4408 * linux-low.h (class linux_process_target): Define as a derived
4409 class of 'process_target'.
4410 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4411 as the 'pt' field.
4412 * lynx-low.h (class lynx_process_target): Define as a derived
4413 class of 'process_target'.
4414 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4415 as the 'pt' field.
4416 * nto-low.h (class nto_process_target): Define as a derived
4417 class of 'process_target'.
4418 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4419 as the 'pt' field.
4420 * win32-low.h (class win32_process_target): Define as a derived
4421 class of 'process_target'.
4422 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4423 as the 'pt' field.
4424
9f1528a1
AB
44252020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4426
4427 * configure: Regenerate.
4428
bf84f706
MR
44292020-02-19 Maciej W. Rozycki <macro@wdc.com>
4430 Andrew Burgess <andrew.burgess@embecosm.com>
4431
4432 * linux-riscv-low.cc: New file.
4433 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4434 and nat/riscv-linux-tdesc.c.
4435 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4436 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4437 Define.
4438
1a627e7e
TT
44392020-02-14 Tom Tromey <tom@tromey.com>
4440
4441 * acinclude.m4: Don't include acx_configure_dir.m4.
4442 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4443 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4444 (all, install-only, uninstall, clean-info, clean)
4445 (maintainer-clean): Don't recurse.
4446 (subdir_do, all-lib): Remove.
4447 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4448 (GNULIB_H): Remove.
4449 (generated_files): Update.
4450 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4451 * configure: Rebuild.
4452 * configure.ac: Don't configure gnulib or libiberty.
4453 (GNULIB): Update.
4454
a9b34532
EZ
44552020-02-14 Eli Zaretskii <eliz@gnu.org>
4456
4457 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4458 preparing the command line for CreateProcess.
4459 (win32_create_inferior): Reflect the program name in debugging
4460 output that shows the process and its command line.
4461
feacfcac
SM
44622020-02-13 Simon Marchi <simon.marchi@efficios.com>
4463
4464 * Makefile.in: Rename source files from .c to .cc.
4465 * %.c: Rename to %.cc.
4466 * configure.ac: Rename server.c to server.cc.
4467 * configure: Re-generate.
4468
06b3c5bd
SM
44692020-02-13 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4472
052793ad
HD
44732020-02-12 Hannes Domani <ssbssa@yahoo.de>
4474
4475 * win32-low.c (win32_create_inferior): Set signal_pid.
4476
f20e3e82
MR
44772020-02-12 Maciej W. Rozycki <macro@wdc.com>
4478 Pedro Alves <palves@redhat.com>
4479
4480 Skip building gdbserver in a cross-configuration.
4481 * configure.srv: Set $gdbserver_host depending on whether $target
4482 is $host. Use $gdbserver_host instead of $host.
4483
8ddd8e0e
SM
44842020-02-11 Simon Marchi <simon.marchi@efficios.com>
4485
4486 * configure: Re-generate.
4487
898e7f60
SM
44882020-02-11 Simon Marchi <simon.marchi@efficios.com>
4489
4490 * configure: Re-generate.
4491
58df732b
SM
44922020-02-11 Simon Marchi <simon.marchi@efficios.com>
4493
4494 * acinclude.m4: Update warning.m4 path.
4495
7928d571
HD
44962020-02-09 Hannes Domani <ssbssa@yahoo.de>
4497
4498 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4499 (handle_exception): Set siginfo_er.
4500 (win32_xfer_siginfo): New function.
4501
919adfe8
TT
45022020-02-07 Tom Tromey <tom@tromey.com>
4503 Pedro Alves <palves@redhat.com>
4504
4505 * README: Update build documentation.
4506 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4507 host, not target.
4508 * configure.ac: Update paths.
4509 * configure: Rebuild.
4510 * acinclude.m4: Update paths.
4511 * Makefile.in: Update include paths.
4512 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4513 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4514 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4515 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4516 (%-generated.c): Update paths.
4517 * Move entire directory from ../gdb/gdbserver.
4518
287c844a
MR
45192020-01-29 Maciej W. Rozycki <macro@wdc.com>
4520
4521 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4522
548a204f
PFC
45232020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4524
4525 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4526 assignment instead of srv_linux_obj.
4527
a2236a08
HD
45282020-01-28 Hannes Domani <ssbssa@yahoo.de>
4529
4530 * server.c (handle_qxfer_libraries): Write segment-address with
4531 paddress.
4532
bdaed379
HD
45332020-01-24 Hannes Domani <ssbssa@yahoo.de>
4534
4535 * Makefile.in (install-strip): New target.
4536 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4537 * aclocal.m4: Regenerate.
4538 * configure: Regenerate.
4539 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4540
42cd72aa
MR
45412020-01-24 Maciej W. Rozycki <macro@wdc.com>
4542
4543 * Makefile.in (SFILES): Adjust paths to point to real files.
4544 (OBS): Move waitstatus.o to target/waitstatus.o.
4545 (TAGS): Transform paths appropriately.
4546 (%.o): Rename to...
4547 (nat/%.o): ... this pattern rule.
4548 (%.o): Rename to...
4549 (target/%.o): ... this pattern rule.
4550 * configure.srv: Adjust paths throughout to include nat/ prefix
4551 with the revant files.
4552 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4553 * configure: Regenerate.
4554
42ba50ec
MR
45552020-01-24 Maciej W. Rozycki <macro@wdc.com>
4556
4557 * Makefile.in (TAGS): Remove config files from the recipe.
4558
05ea2a05
TT
45592020-01-14 Tom Tromey <tom@tromey.com>
4560
4561 * configure: Rebuild.
4562 * configure.ac: Remove any checks that were added to common.m4.
4563 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4564 lib-link.m4.
4565
01027315
TT
45662020-01-14 Tom Tromey <tom@tromey.com>
4567
4568 * server.h: Include config.h.
4569 * gdbreplay.c: Include config.h.
4570 * configure: Rebuild.
4571 * configure.ac: Don't source common.host.
4572 * acinclude.m4: Update path.
4573 * Makefile.in (INCSUPPORT): New variable.
4574 (INCLUDE_CFLAGS): Add INCSUPPORT.
4575 (SFILES): Update paths.
4576 (version-generated.c): Update path to create-version.sh.
4577 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4578
b2ceabe8
TT
45792020-01-14 Tom Tromey <tom@tromey.com>
4580
4581 * configure.ac (LIBS): Use WIN32APILIBS.
4582 (USE_WIN32API): Don't define.
4583 * configure: Rebuild.
4584
25c51f71
TT
45852020-01-14 Tom Tromey <tom@tromey.com>
4586
4587 * configure: Rebuild.
4588
c0bd321d
SM
45892020-01-13 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * Makefile.in (%-generated.c): Remove rule for files from
4592 regformats/i386.
4593
bb564c58
SM
45942020-01-13 Simon Marchi <simon.marchi@efficios.com>
4595
4596 * configure: Re-generate.
4597
6e37c371
SM
45982020-01-13 Simon Marchi <simon.marchi@efficios.com>
4599
4600 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4601 Define to static.
4602 * tracepoint.c (stop_tracing, flush_trace_buffer,
4603 about_to_request_buffer_space, get_trace_state_variable_value,
4604 set_trace_state_variable_value, gdb_collect): Add declaration.
4605
df4a0200
SM
46062020-01-13 Simon Marchi <simon.marchi@efficios.com>
4607
4608 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4609 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4610 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4611 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4612 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4613 static.
4614
89e94ec9
SM
46152020-01-13 Simon Marchi <simon.marchi@efficios.com>
4616
4617 * inferiors.c: Include gdbsupport/common-inferior.h.
4618
2552728a
SM
46192020-01-13 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * hostio-errno.c: Include hostio.h.
4622
4025fa09
SM
46232020-01-13 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4626 prerequisite.
4627
c0b0a142
SM
46282020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4629
4630 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4631 * linux-arm-tdesc.h: Include arch/arm.h.
4632
bb1183e2
SM
46332020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4634
4635 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4636
f5df0b5f
SM
46372020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4638
4639 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4640 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4641
5b6d1e4f
PA
46422020-01-10 Pedro Alves <palves@redhat.com>
4643
4644 * fork-child.c (post_fork_inferior): Pass target down to
4645 startup_inferior.
4646 * inferiors.c (switch_to_thread): Add process_stratum_target
4647 parameter.
4648 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4649 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4650 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4651 * remote-utils.c (prepare_resume_reply): Pass the target to
4652 switch_to_thread.
4653 * target.c (the_target): Now a process_stratum_target.
4654 (done_accessing_memory): Pass the target to switch_to_thread.
4655 (set_target_ops): Ajust to use process_stratum_target.
4656 * target.h (struct target_ops): Rename to ...
4657 (struct process_stratum_target): ... this.
4658 (the_target, set_target_ops): Adjust.
4659 (prepare_to_access_memory): Adjust comment.
4660 * win32-low.c (child_xfer_memory): Adjust to use
4661 process_stratum_target.
4662 (win32_target_ops): Now a process_stratum_target.
4663
559e7e50
EZ
46642020-01-06 Eli Zaretskii <eliz@gnu.org>
4665 Pedro Alves <palves@redhat.com>
4666
4667 * win32-low.c (get_child_debug_event): Extract the fatal exception
4668 from the exit status and convert to the equivalent Posix signal
4669 number.
4670 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4671 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4672
48189bec
HD
46732020-01-01 Hannes Domani <ssbssa@yahoo.de>
4674
4675 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4676
5dd8bf88
JB
46772020-01-01 Joel Brobecker <brobecker@adacore.com>
4678
4679 * server.c (gdbserver_version): Change copyright year to 2020.
4680 * gdbreplay.c (gdbreplay_version): Likewise.
4681
0ad6b8ee
CB
46822019-12-19 Christian Biesinger <cbiesinger@google.com>
4683
4684 * configure: Regenerate.
4685 * configure.ac: Quote variable arguments of test.
4686
1ee7b812
BE
46872019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4688
4689 * Makefile.in: Fix build with GNU Make 3.81
4690
d9fa87f4
TT
46912019-12-16 Tom Tromey <tromey@adacore.com>
4692
4693 * server.c (get_exec_file): Constify result.
4694
ab7d13f0
CB
46952019-12-10 Christian Biesinger <cbiesinger@google.com>
4696
4697 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4698 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4699 * config.in: Regenerate.
4700 * configure: Regenerate.
4701 * configure.ac: Don't check for strerror.
4702 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4703 Call safe_strerror instead of strerror.
4704 * server.h (strerror): Remove this now-unnecessary declaration.
4705 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4706 strerror.
4707 (gdb_agent_helper_thread): Likewise.
4708 * utils.c (perror_with_name): Likewise.
4709
4da8c3a8
TT
47102019-11-26 Tom Tromey <tom@tromey.com>
4711
4712 * configure, config.in: Rebuild.
4713
21987b9c
TT
47142019-11-26 Tom Tromey <tom@tromey.com>
4715
4716 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4717 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4718 gdb_sigmask.
4719 * configure, config.in: Rebuild.
4720
5e030278
TT
47212019-11-26 Tom Tromey <tom@tromey.com>
4722
4723 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4724 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4725 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4726 * acinclude.m4: Include ax_pthread.m4.
4727 * config.in, configure: Rebuild.
4728
6d91ce9a
CB
47292019-11-26 Christian Biesinger <cbiesinger@google.com>
4730
4731 * debug.c (debug_set_output): Call safe_strerror instead of
4732 strerror.
4733 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4734 (linux_kill_one_lwp): Likewise.
4735 (linux_detach_one_lwp): Likewise.
4736 (linux_wait_for_event_filtered): Likewise.
4737 (store_register): Likewise.
4738 * lynx-low.c (lynx_attach): Likewise.
4739 * mem-break.c (insert_memory_breakpoint): Likewise.
4740 (remove_memory_breakpoint): Likewise.
4741 (delete_fast_tracepoint_jump): Likewise.
4742 (set_fast_tracepoint_jump): Likewise.
4743 (uninsert_fast_tracepoint_jumps_at): Likewise.
4744 (reinsert_fast_tracepoint_jumps_at): Likewise.
4745 * nto-low.c (nto_xfer_memory): Likewise.
4746 (nto_resume): Likewise.
4747
6cdd651f
LM
47482019-11-20 Luis Machado <luis.machado@linaro.org>
4749
4750 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4751 instead of register count.
4752 * tdesc.c (tdesc_contains_feature): New function.
4753 * tdesc.h (tdesc_contains_feature): New prototype.
4754
cd850b40
CB
47552019-11-15 Christian Biesinger <cbiesinger@google.com>
4756
4757 * Makefile.in: Add safe-strerror.c.
4758 * configure: Regenerate.
4759 * configure.ac: Don't source common.host.
4760
5abebf3c
CB
47612019-11-15 Christian Biesinger <cbiesinger@google.com>
4762
4763 * config.in: Regenerate.
4764 * configure: Regenerate.
4765
e06f3d6e
AB
47662019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4767
4768 * ax.c (ax_printf): Handle size_t_arg.
4769
ca3a04f6
CB
47702019-11-06 Christian Biesinger <cbiesinger@google.com>
4771
4772 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4773 * mi/mi-main.c (output_cores): Likewise.
4774 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4775 (linux_xfer_osdata_modules): Likewise.
4776 * remote.c (register_remote_support_xml): Likewise.
4777 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4778 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4779
e48f6033
CB
47802019-11-01 Christian Biesinger <cbiesinger@google.com>
4781
4782 * configure: Regenerate.
4783 * configure.ac: Remove check for strerror_r.
4784
e7e97a2e
CB
47852019-10-31 Christian Biesinger <cbiesinger@google.com>
4786
4787 * config.in: Regenerate.
4788 * configure: Regenerate.
4789 * configure.ac: Also check for strerror_r.
4790
75cafaa6
CB
47912019-10-31 Christian Biesinger <cbiesinger@google.com>
4792
4793 * ax.h (debug_agent): Remove duplicate declaration.
4794
30baf67b
TV
47952019-10-26 Tom de Vries <tdevries@suse.de>
4796
4797 * linux-aarch64-low.c: Fix typos in comments.
4798 * linux-arm-low.c: Same.
4799 * linux-low.c: Same.
4800 * linux-ppc-low.c: Same.
4801 * proc-service.c: Same.
4802 * regcache.h: Same.
4803 * server.c: Same.
4804 * tracepoint.c: Same.
4805 * win32-low.c: Same.
4806
52c64cf7
TT
48072019-10-25 Tom Tromey <tromey@adacore.com>
4808
4809 * utils.c (xstrdup): Remove.
4810
c12d372d
TT
48112019-10-23 Tom Tromey <tom@tromey.com>
4812
4813 * configure, config.in: Rebuild.
4814
4d0b984b
TT
48152019-10-23 Tom Tromey <tom@tromey.com>
4816
4817 * configure: Rebuild.
4818 * acinclude.m4: Use m4_include, not sinclude.
4819
c5adaa19
TT
48202019-10-17 Tom Tromey <tromey@adacore.com>
4821
4822 * configure: Rebuild.
4823 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4824 in AC_CONFIG_FILES invocation.
4825 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4826 invocation.
4827
fec4e896
CB
48282019-10-16 Christian Biesinger <cbiesinger@google.com>
4829
4830 * server.c: Include xml-builtin.h.
4831 (get_xml_features): Don't declare xml_builtins here.
4832
00975ff6
AB
48332019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4834
4835 * Makefile.in: Remove references to vec-ipa.o.
4836
0dc32745
AB
48372019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4838
4839 * Makefile.in: Remove references to vec.c.
4840
3e6ec53a
CB
48412019-10-02 Christian Biesinger <cbiesinger@google.com>
4842
4843 * server.c (server_waiting): Change to bool.
4844 (extended_protocol): Likewise.
4845 (response_needed): Likewise.
4846 (exit_requested): Likewise.
4847 (run_once): Likewise.
4848 (report_no_resumed): Likewise.
4849 (non_stop): Likewise.
4850 (disable_packet_vCont): Likewise.
4851 (disable_packet_Tthread): Likewise.
4852 (disable_packet_qC): Likewise.
4853 (disable_packet_qfThreadInfo): Likewise.
4854 (handle_general_set): Update.
4855 (handle_detach): Update.
4856 (handle_monitor_command): Update.
4857 (handle_query): Update.
4858 (captured_main): Update.
4859 (process_serial_event): Update.
4860 * server.h (server_waiting): Change to bool.
4861 (disable_packet_vCont): Likewise.
4862 (disable_packet_Tthread): Likewise.
4863 (disable_packet_qC): Likewise.
4864 (disable_packet_qfThreadInfo): Likewise.
4865 (run_once): Likewise.
4866 (non_stop): Likewise.
4867 * target.c (target_stop_and_wait): Update.
4868
80fd2826
TT
48692019-10-02 Tom Tromey <tromey@adacore.com>
4870
4871 * Makefile.in (SFILES): Add common-inferior.c.
4872 (OBS): Add common-inferior.o.
4873 * server.c (startup_with_shell): Don't define.
4874
46f29a9a
AB
48752019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4876
4877 * linux-low.c (linux_low_read_btrace): Update for change to
4878 std::vector.
4879
f9d949fb
CB
48802019-09-20 Christian Biesinger <cbiesinger@google.com>
4881
4882 * debug.c (debug_threads): Remove comment in favor of the header.
4883 * debug.h (using_threads): Add declaration.
4884 (debug_threads): Add comment.
4885 * linux-aarch64-low.c: Include debug.h and remove declaration of
4886 debug_threads.
4887 * nto-low.c: Likewise.
4888 * remote-utils.c: Likewise.
4889 * thread-db.c: Likewise.
4890
abf516c6
UW
48912019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4892
4893 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4894 and powerpc-cell64l-ipa.o.
4895 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4896 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4897 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4898 (spu*-*-*): Remove.
4899
4900 * spu-low.c: Remove file.
4901
4902 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4903 (parse_spufs_run): Remove.
4904 (ppc_get_pc): Remove Cell/B.E. support.
4905 (ppc_set_pc): Likewise.
4906 (ppc_breakpoint_at): Likewise.
4907 (ppc_arch_setup): Likewise.
4908 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4909 tdesc_powerpc_cell32l.
4910 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4911 or init_registers_powerpc_cell32l.
4912 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4913 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4914 or init_registers_powerpc_cell32l.
4915 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4916 (init_registers_powerpc_cell32l): Remove prototype.
4917 (init_registers_powerpc_cell64l): Likewise.
4918
4919 * target.h (struct target_ops): Remove qxfer_spu member.
4920 * server.c (handle_qxfer_spu): Remove.
4921 (qxfer_packets): Remove entry for "spu".
4922 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4923 * linux-low.c (SPUFS_MAGIC): Remove.
4924 (spu_enumerate_spu_ids): Remove.
4925 (linux_qxfer_spu): Remove.
4926 (linux_target_ops): Remove qxfer_spu member.
4927 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4928 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4929 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4930
2d41fa11
SDJ
49312019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4932
4933 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4934 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4935 * config.in: Regenerate.
4936 * configure: Regenerate.
4937
d59b55f0
TT
49382019-08-15 Tom Tromey <tromey@adacore.com>
4939
4940 * target.c (target_write_memory): Use gdb::byte_vector.
4941
4196ab2a
TT
49422019-08-15 Tom Tromey <tromey@adacore.com>
4943
4944 * tracepoint.c (write_inferior_data_pointer)
4945 (write_inferior_integer, write_inferior_int8)
4946 (write_inferior_uinteger, m_tracepoint_action_download)
4947 (r_tracepoint_action_download, x_tracepoint_action_download)
4948 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4949 (download_agent_expr, download_tracepoint_1)
4950 (download_trace_state_variables, upload_fast_traceframes): Update.
4951 * server.c (gdb_write_memory): Update.
4952 * remote-utils.c (relocate_instruction): Update.
4953 * proc-service.c (ps_pdwrite): Update.
4954 * mem-break.c (remove_memory_breakpoint)
4955 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4956 (uninsert_fast_tracepoint_jumps_at)
4957 (reinsert_fast_tracepoint_jumps_at): Update.
4958 * linux-x86-low.c (append_insns)
4959 (i386_install_fast_tracepoint_jump_pad)
4960 (amd64_write_goto_address, i386_write_goto_address): Update.
4961 * linux-s390-low.c (append_insns, s390_write_goto_address):
4962 Update.
4963 * linux-ppc-low.c (ppc_relocate_instruction)
4964 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4965 (ppc_write_goto_address): Update.
4966 * linux-aarch64-low.c (append_insns): Update.
4967 * target.h (struct target_ops): Update.
4968 (write_inferior_memory): Don't declare.
4969 * target.c (target_write_memory): Rename from
4970 write_inferior_memory. Remove old target_write_memory.
4971
c6778d00
TT
49722019-08-15 Tom Tromey <tromey@adacore.com>
4973
4974 * target.c (write_inferior_memory): Use std::vector.
4975
404f2902
FCE
49762019-08-06 Frank Ch. Eigler <fche@redhat.com>
4977
4978 PR build/24886
4979 * configure.ac: Drop enable-libmcheck support.
4980 * configure, config.in: Rebuild.
4981 * acinclude.m4: Don't include it.
4982
4c5aa8e0
AH
49832019-07-19 Alan Hayward <alan.hayward@arm.com>
4984
4985 * configure.srv: Remove Arm xml files.
4986
7cc17433
AH
49872019-07-19 Alan Hayward <alan.hayward@arm.com>
4988
4989 * configure.srv: Add new files. Remove xml generated files.
4990 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4991 registers.
4992 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4993 * linux-aarch32-tdesc.c: New file.
4994 * linux-aarch32-tdesc.h: New file.
4995 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4996 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4997 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4998 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4999 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5000 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5001 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5002 (arm_read_description): Call arm_linux_read_description.
5003 (initialize_low_arch): Don't init registers.
5004 * linux-arm-tdesc.c: New file.
5005 * linux-arm-tdesc.h: New file.
5006
166a82be
AH
50072019-07-10 Alan Hayward <alan.hayward@arm.com>
5008
5009 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5010 Move counter inside for.
5011 (arm_read_description): Check ptrace earlier.
5012 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5013
268a13a5
TT
50142019-07-09 Tom Tromey <tom@tromey.com>
5015
5016 * configure: Rebuild.
5017 * configure.ac: Change common to gdbsupport.
5018 * acinclude.m4: Change common to gdbsupport.
5019 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5020 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5021 common to gdbsupport.
5022 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5023 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5024 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5025 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5026 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5027 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5028 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5029 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5030 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5031 common to gdbsupport.
5032
350fab54
AH
50332019-07-04 Alan Hayward <alan.hayward@arm.com>
5034
5035 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5036 defines.
5037 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5038
2b40fda7
AH
50392019-07-04 Alan Hayward <alan.hayward@arm.com>
5040
5041 * configure.srv: Remove legacy xml.
5042 * linux-aarch64-low.c (initialize_low_arch): Remove
5043 initialize_low_tdesc call.
5044 * linux-aarch64-tdesc-selftest.c: Remove file.
5045 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5046 * linux-x86-low.c (initialize_low_arch): Remove
5047 initialize_low_tdesc call.
5048 * linux-x86-tdesc-selftest.c: Remove file.
5049 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5050
7d10623d
TV
50512019-06-20 Tom de Vries <tdevries@suse.de>
5052
5053 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5054 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5055
8d6a48df
TV
50562019-06-19 Tom de Vries <tdevries@suse.de>
5057
5058 * debug.h (debug_write): Change return type to ssize_t.
5059 * debug.c (debug_write): Same.
5060
73cc7272
TT
50612019-06-14 Tom Tromey <tom@tromey.com>
5062
5063 * configure.ac: Use new path to gnulib.
5064 * configure: Rebuild.
5065 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5066 to gnulib.
5067
08f10e02
TT
50682019-06-11 Tom Tromey <tom@tromey.com>
5069
5070 * Makefile.in (SFILES): Add alloc.c.
5071 (OBS): Add alloc.o.
5072 (IPA_OBJS): Add alloc-ipa.o.
5073 (alloc-ipa.o): New target.
5074 (%.o: ../%.c): New pattern rule.
5075
422186a9
TT
50762019-06-10 Tom Tromey <tromey@adacore.com>
5077
5078 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5079 end warning with a newline.
5080 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5081 newline.
5082 * thread-db.c (attach_thread): Don't end warning with a newline.
5083 (thread_db_notice_clone): Likewise.
5084 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5085 newline.
5086 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5087 end warning with a newline.
5088
b02f78f9
PA
50892019-06-04 Pedro Alves <palves@redhat.com>
5090
5091 * server.c (captured_main): Use make_unique_xstrdup.
5092
88ed7edb
TT
50932019-06-02 Tom Tromey <tom@tromey.com>
5094
5095 * gdbreplay.c (fromhex): Remove.
5096 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5097
33a6bc35
TT
50982019-05-29 Tom Tromey <tromey@adacore.com>
5099
5100 * configure: Rebuild.
5101
e90a813d
KB
51022019-05-06 Kevin Buettner <kevinb@redhat.com>
5103
5104 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5105 sign extension code on 32-bit builds.
5106
353ea2d1
EZ
51072019-05-03 Eli Zaretskii <eliz@gnu.org>
5108
5109 * remote-utils.c:
5110 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5111
b494cdff
TT
51122019-04-19 Tom Tromey <tom@tromey.com>
5113
5114 * server.c (struct vstop_notif): Derive from notif_event.
5115 <base>: Remove.
5116 (queue_stop_reply): Update.
5117 (remove_all_on_match_ptid): Change type. Rewrite.
5118 (discard_queued_stop_replies): Rewrite.
5119 (in_queued_stop_replies_ptid): Change type.
5120 (in_queued_stop_replies): Rewrite.
5121 (notif_stop): Update.
5122 (queue_stop_reply_callback): Update.
5123 (captured_main): Don't call initialize_notif.
5124 (push_stop_notification): Update.
5125 * notif.c (notif_write_event, handle_notif_ack)
5126 (notif_event_enque, notif_push): Update.
5127 (notif_event_xfree, initialize_notif): Remove.
5128 * notif.h (struct notif_event): Include <list>, not
5129 "common/queue.h".
5130 (struct notif_server) <queue>: Now a std::list.
5131 (notif_event_p): Remove typedef.
5132 (initialize_notif): Don't declare.
5133 (struct notif_event): Add virtual destructor.
5134
a7e559cc
AH
51352019-04-17 Alan Hayward <alan.hayward@arm.com>
5136
5137 * ax.c (ax_vdebug): Call debug_printf.
5138 * debug.c (debug_write): New function.
5139 * debug.h (debug_write): New declaration.
5140 * linux-low.c (sigchld_handler): Call debug_write.
5141
aeb2e706
AH
51422019-04-17 Alan Hayward <alan.hayward@arm.com>
5143
5144 * debug.c (debug_set_output): New function.
5145 (debug_vprintf): Send output to debug_file.
5146 (debug_flush): Likewise.
5147 * debug.h (debug_set_output): New declaration.
5148 * server.c (handle_monitor_command): Add debug-file option.
5149 (captured_main): Likewise.
5150
c1bc0935
AH
51512019-04-17 Alan Hayward <alan.hayward@arm.com>
5152
5153 * debug.c (remote_debug): Add definition.
5154 * debug.h (remote_debug): Add declaration.
5155 * hostio.c (remote_debug): Remove declaration.
5156 * remote-utils.c (struct ui_file): Likewise.
5157 (remote_debug): Likewise.
5158 * remote-utils.h (remote_debug): Likewise,
5159 * server.c (remote_debug): Remove definition.
5160
3f52fdbc
KB
51612019-04-10 Kevin Buettner <kevinb@redhat.com>
5162
5163 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5164 when using a 64-bit gdbserver.
5165
b0319eaa
TT
51662019-04-09 Tom Tromey <tromey@adacore.com>
5167
5168 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5169
eedc3f4f
TT
51702019-04-08 Tom Tromey <tom@tromey.com>
5171
5172 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5173 throw.
5174 (linux_resume_one_lwp): Likewise.
5175
230d2906
TT
51762019-04-08 Tom Tromey <tom@tromey.com>
5177
5178 * gdbreplay.c: Update.
5179 * linux-low.c: Update.
5180 * server.c: Update.
5181
a70b8144
TT
51822019-04-08 Tom Tromey <tom@tromey.com>
5183
5184 * server.c: Use C++ exception handling.
5185 * linux-low.c: Use C++ exception handling.
5186 * gdbreplay.c: Use C++ exception handling.
5187
3d6e9d23
TT
51882019-04-08 Tom Tromey <tom@tromey.com>
5189
5190 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5191 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5192 (captured_main, main): Update.
5193 * gdbreplay.c (main): Update.
5194
0570503d
PFC
51952019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5196
5197 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5198 value in argument pointer, return 1 if the entry is found and 0
5199 otherwise. Move comment.
5200 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5201 * linux-low.h (linux_get_auxv): Declare.
5202 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5203
227a9e65
TT
52042019-04-05 Tom Tromey <tromey@adacore.com>
5205
5206 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5207 variables.
5208
69f4c9cc
AH
52092019-03-28 Alan Hayward <alan.hayward@arm.com>
5210
5211 * linux-low.c (AT_HWCAP2): Add define if not already included.
5212
974c89e0
AH
52132019-03-26 Alan Hayward <alan.hayward@arm.com>
5214
5215 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5216 (aarch64_arch_setup): Call linux_get_hwcap.
5217 * linux-arm-low.c (arm_get_hwcap): Remove function.
5218 (arm_read_description): Call linux_get_hwcap.
5219 * linux-low.c (linux_get_auxv): New function.
5220 (linux_get_hwcap): Likewise.
5221 (linux_get_hwcap2): Likewise.
5222 * linux-low.h (linux_get_hwcap): New declaration.
5223 (linux_get_hwcap2): Likewise.
5224 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5225 (ppc_arch_setup): Call linux_get_hwcap.
5226 * linux-s390-low.c (s390_get_hwcap): Remove function.
5227 (s390_arch_setup): Call linux_get_hwcap.
5228
1ef53e6b
AH
52292019-03-22 Alan Hayward <alan.hayward@arm.com>
5230 Jiong Wang <jiong.wang@arm.com>
5231
5232 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5233 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5234 to fail.
5235 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5236
ee4fbcfa
AH
52372019-03-22 Alan Hayward <alan.hayward@arm.com>
5238 Jiong Wang <jiong.wang@arm.com>
5239
5240 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5241 (aarch64_get_hwcap): New function.
5242 (aarch64_arch_setup): Read APIA hwcap.
5243
6dc0ebde
AH
52442019-03-22 Alan Hayward <alan.hayward@arm.com>
5245 Jiong Wang <jiong.wang@arm.com>
5246
5247 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5248 (initialize_low_tracepoint): Likewise.
5249 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5250 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5251 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5252 (aarch64_linux_read_description): Likewise.
5253 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5254
1163a4b7
JB
52552019-03-12 John Baldwin <jhb@FreeBSD.org>
5256
5257 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5258 i386_create_target_description for 'segments' parameter.
5259 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5260 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5261 * win32-i386-low.c (i386_arch_setup): Likewise.
5262
d3a70e03
TT
52632019-03-12 Tom Tromey <tromey@adacore.com>
5264
5265 * linux-low.c (iterate_over_lwps): Update.
5266
37991b4f
TT
52672019-03-06 Tom Tromey <tom@tromey.com>
5268
5269 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5270 (captured_main): Use SCOPE_EXIT.
5271
45950eb6
SDJ
52722019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5273
5274 * configure.srv: Use '$enable_unittest' instead of '$development'
5275 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5276 case.
5277
43ac54fc
TT
52782019-02-27 Tom Tromey <tromey@adacore.com>
5279
5280 * gdbreplay.c (logchar): Handle \r\n.
5281
df0da8a2
AH
52822019-02-07 Alan Hayward <alan.hayward@arm.com>
5283
5284 * linux-low.c (linux_attach): Add process before lwp.
5285 * server.c (attach_inferior): Check if already attached.
5286
1a5c2598
TT
52872019-02-07 Tom Tromey <tom@tromey.com>
5288
5289 * x86-tdesc.h: Rename include guard.
5290 * x86-low.h: Add include guard.
5291 * wincecompat.h: Rename include guard.
5292 * win32-low.h: Add include guard.
5293 * utils.h: Rename include guard.
5294 * tracepoint.h: Rename include guard.
5295 * tdesc.h: Rename include guard.
5296 * target.h: Rename include guard.
5297 * server.h: Rename include guard.
5298 * remote-utils.h: Rename include guard.
5299 * regcache.h: Rename include guard.
5300 * nto-low.h: Rename include guard.
5301 * notif.h: Add include guard.
5302 * mem-break.h: Rename include guard.
5303 * lynx-low.h: Add include guard.
5304 * linux-x86-tdesc.h: Add include guard.
5305 * linux-s390-tdesc.h: Add include guard.
5306 * linux-ppc-tdesc-init.h: Add include guard.
5307 * linux-low.h: Add include guard.
5308 * linux-aarch64-tdesc.h: Add include guard.
5309 * linux-aarch32-low.h: Add include guard.
5310 * inferiors.h: Rename include guard.
5311 * i387-fp.h: Rename include guard.
5312 * hostio.h: Rename include guard.
5313 * gdbthread.h: Rename include guard.
5314 * gdb_proc_service.h: Rename include guard.
5315 * event-loop.h: Rename include guard.
5316 * dll.h: Rename include guard.
5317 * debug.h: Rename include guard.
5318 * ax.h: Rename include guard.
5319
956cc47c
SN
53202018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5321
5322 PR gdb/23985
5323 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5324 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5325
a0707f3c
TT
53262019-01-25 Tom Tromey <tom@tromey.com>
5327
5328 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5329
0747795c
TT
53302019-01-25 Tom Tromey <tom@tromey.com>
5331
5332 * win32-low.c: Fix common/ includes.
5333 * win32-i386-low.c: Fix common/ includes.
5334 * tracepoint.c: Fix common/ includes.
5335 * thread-db.c: Fix common/ includes.
5336 * target.h: Fix common/ includes.
5337 * symbol.c: Fix common/ includes.
5338 * spu-low.c: Fix common/ includes.
5339 * server.h: Fix common/ includes.
5340 * server.c: Fix common/ includes.
5341 * remote-utils.c: Fix common/ includes.
5342 * regcache.h: Fix common/ includes.
5343 * regcache.c: Fix common/ includes.
5344 * nto-x86-low.c: Fix common/ includes.
5345 * notif.h: Fix common/ includes.
5346 * mem-break.h: Fix common/ includes.
5347 * lynx-low.c: Fix common/ includes.
5348 * lynx-i386-low.c: Fix common/ includes.
5349 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5350 * linux-x86-low.c: Fix common/ includes.
5351 * linux-low.c: Fix common/ includes.
5352 * inferiors.h: Fix common/ includes.
5353 * i387-fp.c: Fix common/ includes.
5354 * hostio.c: Fix common/ includes.
5355 * hostio-errno.c: Fix common/ includes.
5356 * gdbthread.h: Fix common/ includes.
5357 * gdbreplay.c: Fix common/ includes.
5358 * fork-child.c: Fix common/ includes.
5359 * event-loop.c: Fix common/ includes.
5360 * ax.c:
5361 (enum gdb_agent_op): Fix common/ includes.
5362
be6d4f74
TT
53632019-01-21 Tom Tromey <tom@tromey.com>
5364
5365 * tracepoint.c: Fix includes.
5366 * remote-utils.c: Fix includes.
5367 * linux-x86-low.c: Fix includes.
5368
66d91b39
JB
53692019-01-01 Joel Brobecker <brobecker@adacore.com>
5370
5371 * gdbreplay.c (gdbreplay_version): Update copyright year in
5372 version message.
5373 * server.c (gdbserver_version): Likewise.
5374
754e3168
AH
53752018-12-05 Alan Hayward <alan.hayward@arm.com>
5376
5377 * linux-low.c (add_lwp): Switch ordering.
5378
d105de22
TT
53792018-11-29 Tom Tromey <tom@tromey.com>
5380
5381 * win32-low.c (win32_join): Take pid, not process.
5382 * target.h (struct target_ops) <join>: Change argument type.
5383 (join_inferior): Change argument name.
5384 * spu-low.c (spu_join): Take pid, not process.
5385 * server.c (handle_detach): Preserve pid before destroying
5386 process.
5387 * lynx-low.c (lynx_join): Take pid, not process.
5388 * linux-low.c (linux_join): Take pid, not process.
5389
50138245
AH
53902018-11-23 Alan Hayward <alan.hayward@arm.com>
5391
5392 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5393 (aarch64_cannot_fetch_register): Likewise.
5394 (struct linux_target_ops): Update references.
5395
64f57f3d
PFC
53962018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5397
5398 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5399
8d619c01
EBM
54002018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5401
5402 * configure.srv (ipa_ppc_linux_regobj): Add
5403 powerpc-isa207-htm-vsx32l-ipa.o and
5404 powerpc-isa207-htm-vsx64l-ipa.o.
5405 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5406 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5407 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5408 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5409 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5410 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5411 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5412 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5413 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5414 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5415 (init_registers_powerpc_isa207_htm_vsx32l)
5416 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5417 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5418 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5419 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5420 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5421 (ppc_store_tm_ctarregset): New functions.
5422 (ppc_regsets): Add entries for HTM regsets.
5423 (ppc_arch_setup): Set htm in features struct when needed. Set
5424 sizes for the HTM regsets.
5425 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5426 (initialize_low_arch): Call
5427 init_registers_powerpc_isa207_htm_vsx32l and
5428 init_registers_powerpc_isa207_htm_vsx64l.
5429 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5430 PPC_TDESC_ISA207_HTM_VSX.
5431 (initialize_low_tracepoint): Call
5432 init_registers_powerpc_isa207_htm_vsx32l and
5433 init_registers_powerpc_isa207_htm_vsx64l.
5434
232bfb86
EBM
54352018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5436
5437 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5438 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5439 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5440 (ppc_store_pmuregset): New functions.
5441 (ppc_regsets): Add entries for ebb and pmu regsets.
5442 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5443 pmu regsets are available. Set sizes for these regsets.
5444
f2cf6173
EBM
54452018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5446
5447 * configure.srv (ipa_ppc_linux_regobj): Add
5448 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5449 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5450 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5451 rs6000/powerpc-isa207-vsx32l.xml, and
5452 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5453 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5454 <PPC_TDESC_ISA207_VSX>: New enum value.
5455 (init_registers_powerpc_isa207_vsx32l): Declare.
5456 (init_registers_powerpc_isa207_vsx64l): Declare.
5457 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5458 (ppc_store_tarregset): New function.
5459 (ppc_regsets): Add entry for the TAR regset.
5460 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5461 size for the TAR regsets.
5462 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5463 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5464 and init_registers_powerpc_isa207_vsx64l.
5465 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5466 (initialize_low_tracepoint): Call
5467 init_registers_powerpc_isa207_vsx32l and
5468 init_registers_powerpc_isa207_vsx64l.
5469
7ca18ed6
EBM
54702018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5471 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5472
5473 * configure.srv (ipa_ppc_linux_regobj): Add
5474 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5475 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5476 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5477 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5478 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5479 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5480 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5481 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5482 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5483 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5484 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5485 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5486 (ppc_hwcap): Add comment.
5487 (ppc_hwcap2): New global.
5488 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5489 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5490 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5491 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5492 when needed. Set sizes for the the DSCR and PPR regsets.
5493 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5494 (initialize_low_arch): Call
5495 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5496 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5497 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5498 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5499 (initialize_low_tracepoint): Call
5500 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5501 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5502
5c849b22
PFC
55032018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5504
5505 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5506
8ecfd7bd
SDJ
55072018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5508 Simon Marchi <simark@simark.ca>
5509
5510 * acinclude.m4: Include "../selftest.m4".
5511 * configure: Regenerate.
5512 * configure.ac: Use "GDB_AC_SELFTEST".
5513 * configure.srv: Use "$enable_unittests" instead of
5514 "$development" when checking whether unit tests have been
5515 enabled.
5516 * server.c (captured_main): Update message informing that
5517 selftests have been disabled.
5518
96643e35
TT
55192018-10-04 Tom Tromey <tom@tromey.com>
5520
5521 * configure: Rebuild.
5522
da4ae14a
TT
55232018-10-04 Tom Tromey <tom@tromey.com>
5524
5525 * server.c (handle_status): Rename inner "thread".
5526 (process_serial_event): Declare "res" in 'm' case.
5527 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5528 (iterate_over_lwps): Rename inner "thread".
5529 (linux_qxfer_libraries_svr4): Rename inner "len".
5530 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5531
7c619dbd
GB
55322018-10-01 Gary Benson <gbenson@redhat.com>
5533
5534 * gdb_proc_service.h: Moved common code to
5535 common/gdb_proc_service.h.
5536
3795e814
GB
55372018-10-01 Gary Benson <gbenson@redhat.com>
5538
5539 * gdb_proc_service.h: Synchronize comments and whitespace with
5540 GDB's version of this file.
5541
49b036f1
TT
55422018-09-25 Tom Tromey <tom@tromey.com>
5543
5544 * configure: Rebuild.
5545 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5546
8ff03f0b
SM
55472018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5548
5549 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5550 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5551 ($(IPA_LIB)): Sort IPA_OBJS.
5552
a1cd91dc
SM
55532018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5554
5555 * Makefile.in: Remove references to $(ADD_DEPS).
5556
752312ba
TT
55572018-09-16 Tom Tromey <tom@tromey.com>
5558
5559 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5560 variables.
5561 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5562 variables.
5563
f1628857
TT
55642018-09-05 Tom Tromey <tom@tromey.com>
5565
5566 * configure: Rebuild.
5567
ad202fcc
SM
55682018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5569
5570 PR build/23399
5571 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5572
d3d8724a
TT
55732018-08-27 Tom Tromey <tom@tromey.com>
5574
5575 PR build/23087:
5576 * configure: Rebuild.
5577
b4f183d2
TT
55782018-08-27 Tom Tromey <tom@tromey.com>
5579
5580 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5581 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5582 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5583 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5584 (s390x_emit_stack_adjust): Add casts to unsigned char.
5585
4e2aa472
SM
55862018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5587
5588 PR gdb/23374
5589 PR gdb/23375
5590 * server.h (struct client_state) <disable_randomization>:
5591 Initialize to 1.
5592
cf4088a9
SM
55932018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5594
5595 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5596 variable.
5597 (mips_supply_ptrace_register): Likewise.
5598
a0de763e
TT
55992018-07-22 Tom Tromey <tom@tromey.com>
5600
5601 * configure: Rebuild.
5602
b0a7723d
TT
56032018-07-22 Tom Tromey <tom@tromey.com>
5604
5605 * win32-low.c (win32_create_inferior): Remove unused variables.
5606 * gdbreplay.c (remote_open): Remove unused variable.
5607 * remote-utils.c (remote_prepare): Remove unused variable.
5608 * x86-tdesc.h (X86_TDESC_H): Define.
5609 (amd64_expedite_regs): Define conditionally.
5610 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5611 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5612 * remote-utils.c (readchar): Remove unused variable.
5613
a780ef4f
PA
56142018-07-13 Pedro Alves <palves@redhat.com>
5615
5616 * linux-low.c (linux_kill): Change parameter to process_info
5617 pointer instead of pid. Adjust.
5618 * lynx-low.c (lynx_kill): Likewise.
5619 * nto-low.c (nto_kill): Likewise.
5620 * spu-low.c (spu_kill): Likewise.
5621 * win32-low.c (win32_kill): Likewise.
5622 * server.c (handle_v_kill, kill_inferior_callback)
5623 (detach_or_kill_for_exit): Adjust.
5624 * target.c (kill_inferior): Change parameter to process_info
5625 pointer instead of pid. Adjust.
5626 * target.h (struct target_ops) <kill>: Change parameter to
5627 process_info pointer instead of pid. Adjust all implementations
5628 and callers.
5629 (kill_inferior): Likewise.
5630
ef2ddb33
PA
56312018-07-13 Pedro Alves <palves@redhat.com>
5632
5633 * linux-low.c (linux_detach, linux_join): Change parameter to
5634 process_info pointer instead of pid. Adjust.
5635 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5636 * nto-low.c (nto_detach): Likewise.
5637 * spu-low.c (spu_detach, spu_join): Likewise.
5638 * win32-low.c (win32_detach, win32_join): Likewise.
5639 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5640 * target.h (struct target_ops) <detach, join>: Change parameter to
5641 process_info pointer instead of pid. Adjust all implementations
5642 and callers.
5643 (detach_inferior, join_inferior): Rename 'pid' parameter to
5644 'proc'.
5645
c7ab0aef
SDJ
56462018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5647 Jan Kratochvil <jan.kratochvil@redhat.com>
5648 Paul Fertser <fercerpav@gmail.com>
5649 Tsutomu Seki <sekiriki@gmail.com>
5650
5651 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5652 (OBS): Add 'common/netstuff.o'.
5653 (GDBREPLAY_OBS): Likewise.
5654 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5655 (remote_open): Implement support for IPv6
5656 connections.
5657 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5658 and 'wspiapi.h'.
5659 (handle_accept_event): Accept connections from IPv6 sources.
5660 (remote_prepare): Handle IPv6-style hostnames; implement
5661 support for IPv6 connections.
5662 (remote_open): Implement support for printing connections from
5663 IPv6 sources.
5664
31445d10
PA
56652018-07-11 Pedro Alves <palves@redhat.com>
5666
5667 PR gdb/23377
5668 * mem-break.c (any_persistent_commands): Add process_info
5669 parameter and use it instead of relying on the current process.
5670 Change return type to bool.
5671 * mem-break.h (any_persistent_commands): Add process_info
5672 parameter and change return type to bool.
5673 * server.c (handle_detach): Remove require_running_or_return call.
5674 Look up the process_info for the process we're about to detach.
5675 If not found, return back error to GDB. Adjust
5676 any_persistent_commands call to pass down a process pointer.
5677
cb197132
PA
56782018-07-11 Pedro Alves <palves@redhat.com>
5679
5680 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5681 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5682 instead of collect_register_by_name.
5683 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5684 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5685
1b919490
VB
56862018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5687 Pedro Alves <palves@redhat.com>
5688
5689 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5690
d7e15655
TT
56912018-07-03 Tom Tromey <tom@tromey.com>
5692
5693 * linux-low.c: Update.
5694 * lynx-low.c: Update.
5695 * mem-break.c: Update.
5696 * nto-low.c: Update.
5697 * remote-utils.c: Update.
5698 * server.c: Update.
5699 * spu-low.c: Update.
5700 * target.c: Update.
5701 * win32-low.c: Update.
5702
26a57c92
TT
57032018-07-03 Tom Tromey <tom@tromey.com>
5704
5705 * server.c: Update.
5706
0e998d96
TT
57072018-07-03 Tom Tromey <tom@tromey.com>
5708
5709 * linux-low.c: Update.
5710
cc6bcb54
TT
57112018-07-03 Tom Tromey <tom@tromey.com>
5712
5713 * target.c: Update.
5714
e38504b3
TT
57152018-07-03 Tom Tromey <tom@tromey.com>
5716
5717 * linux-low.c: Update.
5718 * linux-mips-low.c: Update.
5719 * lynx-low.c: Update.
5720 * nto-low.c: Update.
5721 * remote-utils.c: Update.
5722 * server.c: Update.
5723 * spu-low.c: Update.
5724 * target.c: Update.
5725 * thread-db.c: Update.
5726
e99b03dc
TT
57272018-07-03 Tom Tromey <tom@tromey.com>
5728
5729 * linux-low.c: Update.
5730 * linux-mips-low.c: Update.
5731 * lynx-low.c: Update.
5732 * mem-break.c: Update.
5733 * nto-low.c: Update.
5734 * remote-utils.c: Update.
5735 * server.c: Update.
5736 * spu-low.c: Update.
5737 * target.c: Update.
5738 * tracepoint.c: Update.
5739
f2907e49
TT
57402018-07-03 Tom Tromey <tom@tromey.com>
5741
5742 * linux-low.c: Update.
5743 * linux-ppc-low.c: Update.
5744 * linux-x86-low.c: Update.
5745 * proc-service.c: Update.
5746 * server.c: Update.
5747 * spu-low.c: Update.
5748 * thread-db.c: Update.
5749 * win32-low.c: Update.
5750
fd79271b
TT
57512018-07-03 Tom Tromey <tom@tromey.com>
5752
5753 * linux-low.c: Update.
5754 * lynx-low.c: Update.
5755 * nto-low.c: Update.
5756 * remote-utils.c: Update.
5757 * spu-low.c: Update.
5758 * thread-db.c: Update.
5759 * win32-low.c: Update.
5760
c0867626
SDJ
57612018-06-29 Joel Brobecker <brobecker@adacore.com>
5762
5763 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5764 parameter in call to 'amd64_create_target_description'.
5765
2512d7ef
JK
57662018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5767
5768 * x86-tdesc.h: Remove executable permission flag.
5769
d0ac1c44
SM
57702018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5771
5772 * configure.ac: Remove AC_PREREQ, add missing quoting.
5773 * configure: Re-generate.
5774 * config.in: Re-generate.
5775 * aclocal.m4: Re-generate.
5776
c4eb05ff
SM
57772018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5778
5779 * tracepoint.h (current_traceframe): Remove declaration.
5780
02895270
AH
57812018-06-18 Alan Hayward <alan.hayward@arm.com>
5782
5783 * linux-aarch64-low.c (is_sve_tdesc): New function.
5784 (aarch64_sve_regs_copy_to_regcache): Likewise.
5785 (aarch64_sve_regs_copy_from_regcache): Likewise.
5786 (aarch64_regs_info): Add SVE checks.
5787 (initialize_low_arch): Initialize SVE.
5788
e9902bfc
AH
57892018-06-18 Alan Hayward <alan.hayward@arm.com>
5790
5791 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5792
fefa175e
AH
57932018-06-11 Alan Hayward <alan.hayward@arm.com>
5794
5795 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5796 (initialize_low_tracepoint): Likewise
5797 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5798 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5799 param.
5800 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5801 checks.
5802 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5803
b91ad3ff
AH
58042018-06-11 Alan Hayward <alan.hayward@arm.com>
5805
5806 * server.h (PBUFSIZ): Increase size
5807
f868386e
AH
58082018-06-11 Alan Hayward <alan.hayward@arm.com>
5809
5810 * regcache.c (regcache::raw_compare): New function.
5811 * regcache.h (regcache::raw_compare): New declaration.
5812
9c861883
AH
58132018-06-11 Alan Hayward <alan.hayward@arm.com>
5814
5815 * regcache.c (new_register_cache): Use new.
5816 (free_register_cache): Use delete.
5817 (register_data): Use const.
5818 (supply_register): Move body inside regcache.
5819 (regcache::raw_supply): New override function.
5820 (collect_register): Move body inside regcache.
5821 (regcache::raw_collect): New override function.
5822 (regcache::get_register_status): New override function.
5823 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5824
40591844
TT
58252018-06-09 Tom Tromey <tom@tromey.com>
5826
5827 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5828 declare queue.
5829 (event_queue): Use std::queue.
5830 (gdb_event_xfree): Remove.
5831 (initialize_event_loop, process_event, wait_for_event): Update.
5832
6341380d
SC
58332018-06-08 Stan Cox <scox@redhat.com>
5834
5835 * win32-low.c (win32_create_inferior): last_ptid and last_status
5836 moved to client_state.
5837
03349c93
PA
58382018-06-08 Pedro Alves <palves@redhat.com>
5839
5840 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5841 common/common-exceptions.o, common/common-utils.o,
5842 common/errors.o, common/print-utils.o and utils.o.
5843 * gdbreplay.c: Include "common-defs.h" instead of the two
5844 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5845 string.h or alloca.h.
5846 (perror_with_name): Delete.
5847 (remote_open): Use xstrdup instead of strdup.
5848 (main): Rename to ...
5849 (captured_main): ... this.
5850 (main): New.
5851
8dcc53b3
TT
58522018-06-08 Tom Tromey <tom@tromey.com>
5853
5854 * linux-low.c (linux_low_read_btrace): Update.
5855
c12a5089
SC
58562018-06-04 Stan Cox <scox@redhat.com>
5857
5858 * server.h (struct client_state): New.
5859 * server.c (cont_thread, general_thread, multi_process)
5860 (report_fork_events, report_vfork_events, report_exec_events)
5861 (report_thread_events, swbreak_feature, hwbreak_feature)
5862 (vCont_supported, disable_randomization, pass_signals)
5863 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5864 Moved to client_state.
5865 * remote-utils.c (remote_debug, noack_mode)
5866 (transport_is_reliable): Moved to client_state.
5867 * tracepoint.c (current_traceframe): Moved to client_state.
5868
5869 Update all callers.
5870 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5871 linux-low.c, remote-utils.h, target.c: Use client_state.
5872
122394f1
AH
58732018-05-31 Alan Hayward <alan.hayward@arm.com>
5874
5875 * configure.srv: Add new c/h file.
5876
95228a0d
AH
58772018-05-31 Alan Hayward <alan.hayward@arm.com>
5878
5879 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5880 null VQ.
5881
d8dab6c3
MR
58822018-05-25 Maciej W. Rozycki <macro@mips.com>
5883
5884 * gdb.arch/mips-fpregset-core.exp: New test.
5885 * gdb.arch/mips-fpregset-core.c: New test source.
5886
81e25b7c
EK
58872018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5888
5889 PR server/23198
5890 * hostio.c (require_int): Do not report overflow for integers
5891 between 0xfffffff and 0x7fffffff.
5892
7e947ad3
MR
58932018-05-22 Maciej W. Rozycki <macro@mips.com>
5894
5895 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5896 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5897 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5898 functions.
5899 (the_low_target): Wire them.
5900
1d75a658
PFC
59012018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5902
5903 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5904 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5905 mode. Call collect_register_by_name with vscr using
5906 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5907 (ppc_store_vrregset): Add and set vscr_offset variable as in
5908 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5909 vscr_offset.
5910
d078308a
PFC
59112018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5912
5913 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5914 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5915 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5916
7273b5fc
PFC
59172018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5918
5919 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5920 (ppc_store_vsxregset): Likewise.
5921 (ppc_fill_vrregset): Likewise.
5922 (ppc_store_vrregset): Likewise.
5923 (ppc_fill_evrregset): Likewise.
5924 (ppc_store_evrregset): Likewise.
5925 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5926 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5927 needed.
5928
2e077f5e
PFC
59292018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5930
5931 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5932 wordsize of the inferior. Call ppc_linux_target_wordsize.
5933
bd64614e
PFC
59342018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5935
5936 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5937 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5938 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5939 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5940 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5941 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5942 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5943 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5944 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5945 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5946 (tdesc_powerpc_e500l): Remove.
5947 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5948 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5949 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5950 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5951 linux-ppc-tdesc.h.
5952 (ppc_arch_setup): Remove target description matching code. Fill a
5953 ppc_linux_features struct and call ppc_linux_match_description
5954 with it.
5955
75d74cca
MR
59562018-05-22 Maciej W. Rozycki <macro@mips.com>
5957
5958 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5959 width of the requested register exceeds the width of the
5960 `ptrace' data type.
5961 (mips_cannot_store_register): Likewise.
5962
e4439e43
MR
59632018-05-21 Maciej W. Rozycki <macro@mips.com>
5964
5965 * linux-mips-low.c (mips_fetch_register): New function. Update
5966 preceding comment.
5967 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5968 (the_low_target): Wire `mips_fetch_register'.
5969
55271bf9
JB
59702018-05-10 Joel Brobecker <brobecker@adacore.com>
5971
5972 * lynx-i386-low.c (LYNXOS_178): New macro.
5973 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5974 the layout on LynxOS-178.
5975 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5976 handle floating point registers that are not supported by
5977 LynxOS-178.
5978
1a34f210
TT
59792018-05-10 Tom Tromey <tom@tromey.com>
5980
5981 * configure: Rebuild.
5982
190852c8
JB
59832018-05-10 Joel Brobecker <brobecker@adacore.com>
5984
5985 PR server/23158:
5986 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5987 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5988 Use it to set the expedite_regs field in the given tdesc.
5989 * x86-tdesc.h: New file.
5990 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5991 Adjust following the addition of the new expedite_regs parameter
5992 to init_target_desc.
5993 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5994 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5995 (i386_linux_read_description, amd64_linux_read_description):
5996 Adjust following the addition of the new expedite_regs parameter
5997 to init_target_desc.
5998 * lynx-i386-low.c: #include "x86-tdesc.h".
5999 (lynx_i386_arch_setup): Adjust following the addition of the new
6000 expedite_regs parameter to init_target_desc.
6001 * nto-x86-low.c: #include "x86-tdesc.h".
6002 (nto_x86_arch_setup): Adjust following the addition of the new
6003 expedite_regs parameter to init_target_desc.
6004 * win32-i386-low.c: #include "x86-tdesc.h".
6005 (i386_arch_setup): Adjust following the addition of the new
6006 expedite_regs parameter to init_target_desc.
6007
7dbac825
JB
60082018-05-10 Joel Brobecker <brobecker@adacore.com>
6009
6010 PR server/23158:
6011 * win32-low.c (win32_create_inferior): Add call to my_wait
6012 setting last_status global.
6013
906994d9
JB
60142018-05-10 Joel Brobecker <brobecker@adacore.com>
6015
6016 PR server/23158:
6017 * win32-low.c (create_process): Only call gdb_tilde_expand if
6018 inferior_cwd is not NULL.
6019
8ee22052
AB
60202018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6021
6022 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6023 registers to the cache if their values have changed.
6024 (i387_xsave_to_cache): Provide default values for x87 control
6025 registers when these features are available, but disabled.
6026 * regcache.c (supply_register_by_name_zeroed): New function.
6027 * regcache.h (supply_register_by_name_zeroed): Declare new
6028 function.
6029
aff689d3
TT
60302018-05-07 Tom Tromey <tom@tromey.com>
6031
6032 * configure: Rebuild.
6033
85e26832
TT
60342018-05-04 Tom Tromey <tom@tromey.com>
6035
6036 * configure: Rebuild.
6037
a3b60e45
JK
60382018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6039 Pedro Alves <palves@redhat.com>
6040
6041 * linux-aarch64-low.c (aarch64_stopped_data_address):
6042 Likewise.
6043
632e107b
TT
60442018-04-27 Tom Tromey <tom@tromey.com>
6045
6046 * configure: Rebuild.
6047
458412c3
TT
60482018-04-23 Tom Tromey <tom@tromey.com>
6049
6050 * configure: Rebuild.
6051
f31c089e
SM
60522018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6053
6054 * Makefile.in (depcomp): Add "..".
6055 (all_deps_files): New and use it.
6056
b319b098
AH
60572018-04-18 Alan Hayward <alan.hayward@arm.com>
6058
6059 * configure.srv (aarch64*-*-linux*): Don't include xml.
6060 (i[34567]86-*-cygwin*): Likewise.
6061 (i[34567]86-*-linux*): Likewise.
6062 (i[34567]86-*-lynxos*): Likewise.
6063 (i[34567]86-*-mingw32ce*): Likewise.
6064 (i[34567]86-*-mingw*): Likewise.
6065 (i[34567]86-*-nto*): Likewise.
6066 (tic6x-*-uclinux): Likewise.
6067 (x86_64-*-linux*): Likewise.
6068 (x86_64-*-mingw*): Likewise.
6069 (x86_64-*-cygwin*): Likewise.
6070
3b74854b
AH
60712018-04-18 Alan Hayward <alan.hayward@arm.com>
6072
6073 * tdesc.c: Remove xml parameter.
6074
e98577a9
AH
60752018-04-18 Alan Hayward <alan.hayward@arm.com>
6076
6077 * server.c (get_features_xml): Remove cast.
6078 * tdesc.c (void target_desc::accept): Fill in function.
6079 (tdesc_get_features_xml): Remove old xml creation.
6080 (print_xml_feature::visit_pre): Add xml vistor.
6081 * tdesc.h (struct target_desc): Make xmltarget mutable.
6082 (tdesc_get_features_xml): Remove declaration.
6083
d278f585
AH
60842018-04-18 Alan Hayward <alan.hayward@arm.com>
6085
6086 * tdesc.c (tdesc_architecture_name): Add new function.
6087 (tdesc_osabi_name): Likewise.
6088 (tdesc_get_features_xml): Use new functions.
6089
eee8a18d
AH
60902018-04-18 Alan Hayward <alan.hayward@arm.com>
6091
6092 * tdesc.c (tdesc_create_flags): Remove.
6093 (tdesc_add_flag): Likewise.
6094 (tdesc_named_type): Likewise.
6095 (tdesc_create_union): Likewise.
6096 (tdesc_create_struct): Likewise.
6097 (tdesc_create_vector): Likewise.
6098 (tdesc_add_bitfield): Likewise.
6099 (tdesc_add_field): Likewise.
6100 (tdesc_set_struct_size): Likewise.
6101
82ec9bc7
AH
61022018-04-18 Alan Hayward <alan.hayward@arm.com>
6103
6104 * tdesc.c (~target_desc): Remove implictly deleted items.
6105 (init_target_desc): Iterate all features.
6106 (tdesc_get_features_xml): Use vector.
6107 (tdesc_create_feature): Create feature.
6108 * tdesc.h (tdesc_feature) Remove
6109 (target_desc): Add features.
6110
ea3e7d71
AH
61112018-04-18 Alan Hayward <alan.hayward@arm.com>
6112
6113 * Makefile.in: Add common/tdesc.c
6114 * tdesc.c (init_target_desc): init all reg_defs from register
6115 vector.
6116 (tdesc_create_reg): Create tdesc_reg.
6117 * tdesc.h (tdesc_feature): Add register vector.
6118
17d08cd4
SM
61192018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6120
6121 * tdesc.h (struct target_desc) <features>: Change type to
6122 std::vector<std::string>.
6123 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6124 changes.
6125 (tdesc_get_features_xml): Likewise.
6126 (tdesc_create_feature): Likewise.
6127
5cd3e386
AH
61282018-03-26 Alan Hayward <alan.hayward@arm.com>
6129
6130 * regcache.c (find_register_by_number): Return a ref.
6131 (find_regno): Use references.
6132 (register_size): Likewise.
6133 (register_data): Likewise.
6134 * tdesc.c (target_desc::~target_desc): Remove free calls.
6135 (target_desc::operator==): Use std::vector compare.
6136 (init_target_desc): Use reference.
6137 (tdesc_create_reg): Use reg constructors.
6138 * tdesc.h (struct target_desc): Replace pointer with object.
6139
dff7492c
AH
61402018-03-23 Alan Hayward <alan.hayward@arm.com>
6141
6142 * regcache.c (find_register_by_number): Make static.
6143 (find_regno): Use find_register_by_number
6144 * regcache.h (struct reg): Remove declaration.
6145
d80e5242
AH
61462018-03-23 Alan Hayward <alan.hayward@arm.com>
6147
6148 * tdesc.c (target_desc::~target_desc): Move to here.
6149 (target_desc::operator==): Likewise.
6150 * tdesc.h (target_desc::~target_desc): Move from here.
6151 (target_desc::operator==): Likewise.
6152
f69c5afb
AA
61532018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6154
6155 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6156
ce29f843
AA
61572018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6158
6159 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6160 S390_TDESC_GS.
6161 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6162 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6163 and init_registers_s390_gs_linux64.
6164
c49bd90b
AA
61652018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6166
6167 * linux-s390-low.c (s390_fill_gs): Remove function.
6168 (s390_fill_gsbc): Remove function.
6169 (s390_regsets): Set fill functions for the guarded storage regsets
6170 to NULL.
6171
7edb9bd3
AA
61722018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6173
6174 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6175 the word size. Add comment.
6176 (s390_get_wordsize): New function.
6177 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6178 pswm with it. Instead, use s390_get_wordsize to determine the
6179 word size first and derive the correct tdesc from that directly.
6180
39be3c7e
SM
61812018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * Makefile.in: Include silent-rules.mk.
6184 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6185 (COMPILE): Add ECHO_CXX.
6186 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6187 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6188 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6189 (version-generated.c): Add ECHO_GEN.
6190 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6191 (IPAGENT_COMPILE): Add ECHO_CXX.
6192 (%-generated.c): Add ECHO_REGDAT.
6193
3ae9ce5d
TT
61942018-03-14 Tom Tromey <tom@tromey.com>
6195
6196 PR cli/14977:
6197 * ax.c (ax_printf): Special case for NULL.
6198
e6a58aa8
SM
61992018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6200
6201 * linux-low.c (linux_qxfer_libraries_svr4): Use
6202 xml_escape_text_append.
6203
f6e8a41e
SM
62042018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6205
6206 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6207
b9671caf
SM
62082018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6209
6210 * server.c (handle_general_set): Remove unnecessary xstrdup.
6211
e80aaf61
SM
62122018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6213
6214 * server.c (parse_debug_format_options): Adjust to
6215 delim_string_to_char_ptr_vec changes.
6216 * thread-db.c (thread_db_load_search): Adjust to
6217 dirnames_to_char_ptr_vec changes.
6218
b1223e78
MM
62192018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6220
6221 * target.h (target_enable_btrace, target_disable_btrace)
6222 (target_read_btrace, target_read_btrace_conf): Turn macro into
6223 inline function. Throw error if target method is not defined.
6224 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6225 check for btrace target method. Be prepared to handle exceptions
6226 from btrace target methods.
6227
81561546
SDJ
62282018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6229
6230 * server.c (captured_main): Change order of error message printed
6231 when the current working directory cannot be found.
6232
25e3c82c
SDJ
62332018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6234
6235 * server.c: Include "filenames.h" and "pathstuff.h".
6236 (program_name): Delete variable.
6237 (program_path): New anonymous class.
6238 (get_exec_wrapper): Use "program_path" instead of
6239 "program_name".
6240 (handle_v_run): Likewise.
6241 (captured_main): Likewise.
6242 (process_serial_event): Likewise.
6243
b4987c95
SDJ
62442018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6245
6246 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6247 (OBJS): Add "pathstuff.o".
6248 * server.c (current_directory): New global variable.
6249 (captured_main): Initialize "current_directory".
6250
f46cd62a
AH
62512018-02-26 Alan Hayward <alan.hayward@arm.com>
6252
6253 * tdesc.c: Use common/tdesc.h.
6254 * tdesc.h: Likewise.
6255
a543c5ca
AH
62562018-02-20 Alan Hayward <alan.hayward@arm.com>
6257 Simon Marchi <simon.marchi@ericsson.com>
6258
6259 * Makefile.in: Switch order of make rules.
6260
b5884fa7
AH
62612018-02-19 Alan Hayward <alan.hayward@arm.com>
6262
6263 * Makefile.in: Add common directory in build.
6264 * configure.ac: Add common reference.
6265 * configure: Regenerate.
6266
de6242d3
MM
62672018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6268
6269 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6270 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6271 * spu-low.c (spu_target_ops): Likewise.
6272 * win32-low.c (win32_target_ops): Likewise.
6273 * server.c (supported_btrace_packets): Report packets unconditionally.
6274 * target.h (target_ops) <supports_btrace>: Remove.
6275 (target_supports_btrace): Remove.
6276
9ee23a85
MM
62772018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6278
6279 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6280 (handle_btrace_disable): Change return type to void. Use exceptions
6281 to report errors.
6282 (handle_btrace_general_set): Catch exception and copy message to
6283 return message.
6284
8ce47547
TT
62852018-02-08 Tom Tromey <tom@tromey.com>
6286
6287 * linux-low.c (install_software_single_step_breakpoints): Use
6288 make_scoped_restore.
6289 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6290 (do_restore_current_thread_cleanup): Remove.
6291 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6292 declare.
6293
45dd3607
TT
62942018-02-08 Tom Tromey <tom@tromey.com>
6295
6296 * mem-break.c (set_raw_breakpoint_at): Use
6297 gdb::unique_xmalloc_ptr.
6298
e671cd59
PA
62992018-01-30 Pedro Alves <palves@redhat.com>
6300
6301 PR gdb/13211
6302 * target.c (target_terminal::terminal_state): Rename to ...
6303 (target_terminal::m_terminal_state): ... this.
6304
a0aad537
JC
63052018-01-19 James Clarke <jrtc27@jrtc27.com>
6306
6307 * linux-low.c (handle_extended_wait): Surround call to
6308 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6309
4d9b86e1
SM
63102018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6311
6312 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6313 linux_ptrace_attach_fail_reason_string now returning an
6314 std::string.
6315 (linux_attach): Likewise.
6316 * thread-db.c (attach_thread): Likewise.
6317
f517c180
EA
63182018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6319
6320 PR gdb/21559
6321 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6322 checking for fs_base/gs_base fields in struct user_regs_struct.
6323 * configure: Regenerate.
6324
9a70f35c
YQ
63252018-01-16 Yao Qi <yao.qi@linaro.org>
6326
6327 PR gdb/18749
6328 * linux-low.c (fetch_register): Call supply_register instead of
6329 error.
6330
605fd3c6
YQ
63312018-01-08 Yao Qi <yao.qi@linaro.org>
6332 Simon Marchi <simon.marchi@ericsson.com>
6333
6334 * Makefile.in (OBS): Remove selftest.o.
6335 * configure.ac: Set srv_selftest_objs if $development is true.
6336 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6337 * configure: Re-generated.
6338 * server.c (captured_main): Wrap variable selftest_filter with
6339 GDB_SELF_TEST.
6340
2cc05030
SM
63412018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6342
6343 * server.c (parse_debug_format_options): Return std::string.
6344 (handle_monitor_command, captured_main): Adjust.
6345
e379cee6
PA
63462018-01-05 Pedro Alves <palves@redhat.com>
6347
6348 PR gdb/18653
6349 * server.c (captured_main): Pass quiet=false to
6350 save_original_signals_state.
6351
82e1e79a
JB
63522018-01-01 Joel Brobecker <brobecker@adacore.com>
6353
6354 * gdbreplay.c (gdbreplay_version): Update copyright year in
6355 version message.
6356 * server.c (gdbserver_version): Likewise.
6357
8e481c3b
TT
63582017-12-08 Tom Tromey <tom@tromey.com>
6359
6360 * ax.c (ax_printf): Update.
6361
a8806230
YQ
63622017-12-07 Yao Qi <yao.qi@linaro.org>
6363
6364 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6365 aarch64_linux_read_description.
6366 * linux-amd64-ipa.c (idx2mask): New array.
6367 (get_ipa_tdesc): Move idx2mask out.
6368 (initialize_low_tracepoint): Initialize target descriptions.
6369 * linux-i386-ipa.c (idx2mask): New array.
6370 (get_ipa_tdesc): Move idx2mask out.
6371 (initialize_low_tracepoint): Initialize target descriptions.
6372
d4a0e8b5
SM
63732017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6374
6375 * tdesc.c (struct tdesc_type): Change return type.
6376 (tdesc_add_flag): Change parameter type.
6377 (tdesc_add_bitfield): Likewise.
6378 (tdesc_add_field): Likewise.
6379 (tdesc_set_struct_size): Likewise.
6380
798a7429
SM
63812017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6382
6383 * regcache.c (registers_to_string): Remove unused variable.
6384
c0e15c9b
SM
63852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6386
6387 * inferiors.c (for_each_inferior_with_data): Remove.
6388 * inferiors.h (for_each_inferior_with_data): Remove.
6389 * server.c (handle_qxfer_threads_worker): Change parameter type.
6390 (handle_qxfer_threads_proper): Use for_each_thread.
6391
f0045347
SM
63922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6393
6394 * inferiors.c (for_each_inferior): Remove.
6395 (clear_inferiors): Use for_each_thread.
6396 * inferiors.h (for_each_inferior): Remove.
6397 * linux-low.c (linux_wait_for_event_filtered): Use
6398 for_each_thread.
6399 (linux_stabilize_threads): Likewise.
6400 * regcache.c (regcache_release): Likewise.
6401 * server.c (gdb_wants_all_threads_stopped): Likewise.
6402 (clear_pending_status_callback): Remove.
6403 (handle_status): Use for_each_thread.
6404 (captured_main): Likewise.
6405 * win32-low.c (child_init_thread_list): Likewise.
6406 (win32_clear_inferiors): Likewise.
6407 (fake_breakpoint_event): Likewise.
6408
9521758b
SM
64092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6410
6411 * inferiors.h (find_inferior): Remove.
6412 * inferiors.c (find_inferior): Remove.
6413
8f86d7aa
SM
64142017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6415
6416 * linux-low.c (resume_status_pending_p): Update comment.
6417 (need_step_over_p): Update comment.
6418
e2b44075
SM
64192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6420
6421 * linux-low.c (proceed_one_lwp): Return void, change parameter
6422 type.
6423 (unsuspend_and_proceed_one_lwp): Likewise.
6424 (proceed_all_lwps): Use for_each_thread.
6425 (unstop_all_lwps): Likewise.
6426
c80825ff
SM
64272017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6428
6429 * linux-low.c (linux_resume_one_thread): Return void, take
6430 parameter directly.
6431 (linux_resume): Use for_each_thread.
6432
df3e4dbe
SM
64332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6434
6435 * linux-low.c (send_sigstop_callback): Return void, change
6436 parameter type. Rename to...
6437 (send_sigstop): ... this.
6438 (suspend_and_send_sigstop_callback): Return void, change parameter
6439 type. Rename to...
6440 (suspend_and_send_sigstop): ... this.
6441 (stop_all_lwps): Use for_each_thread.
6442
5a6b0a41
SM
64432017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6444
6445 * linux-low.c (lwp_running): Return bool, remove unused
6446 argument.
6447 (linux_stabilize_threads): Use find_thread.
6448
39a64da5
SM
64492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6450
6451 * linux-low.c (select_singlestep_lwp_callback): Remove.
6452 (count_events_callback): Remove.
6453 (select_event_lwp_callback): Remove.
6454 (select_event_lwp): Use find_thread/for_each_thread.
6455
a1385b7b
SM
64562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6457
6458 * linux-low.c (not_stopped_callback): Return bool, take filter
6459 argument directly.
6460 (linux_wait_for_event_filtered): Use find_thread.
6461 (linux_wait_1): Likewise.
6462
454296a2
SM
64632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6464
6465 * linux-low.c (same_lwp): Remove.
6466 (find_lwp_pid): Use find_thread.
6467
6b2a85da
SM
64682017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6469
6470 * linux-low.c (delete_lwp_callback): Remove.
6471 (linux_mourn): Use for_each_thread.
6472
798a38e8
SM
64732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6474
6475 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6476 args parameter, don't check for pid.
6477 (linux_detach): Use for_each_thread.
6478
e4eb0dec
SM
64792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6480
6481 * linux-low.c (struct counter): Remove.
6482 (second_thread_of_pid_p): Remove.
6483 (last_thread_of_process_p): Use find_thread.
6484
83e1b6c1
SM
64852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6486
6487 * inferiors.c (find_inferior_in_random): Remove.
6488 * inferiors.h (find_inferior_in_random): Remove.
6489 * linux-low.c (status_pending_p_callback): Return bool, accept
6490 parameter ptid directly.
6491 (linux_wait_for_event_filtered): Use find_thread_in_random.
6492 (linux_wait_1): Likewise.
6493
8dc7b443
SM
64942017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6495
6496 * inferiors.c (find_inferior_id): Remove.
6497 (find_thread_ptid): Move implemention from find_inferior_id to
6498 here.
6499 * inferiors.h (find_inferior_id): Remove.
6500 * server.c (handle_status): Use find_thread_ptid.
6501 (process_serial_event): Likewise.
6502 * thread-db.c (find_one_thread): Likewise.
6503 (thread_db_thread_handle): Likewise.
6504 * win32-low.c (thread_rec): Likewise.
6505 (child_delete_thread): Likewise.
6506 (win32_thread_alive): Likewise.
6507 (get_child_debug_event): Likewise.
6508
da25033c
SM
65092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6510
6511 * linux-mips-low.c (update_watch_registers_callback): Return
6512 void, remove pid_p parameter, don't check for pid.
6513 (mips_insert_point, mips_remove_point): Use for_each_thread.
6514
c91bb56b
SM
65152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6516
6517 * lynx.low (lynx_delete_thread_callback): Remove.
6518 (lynx_mourn): Use for_each_thread.
6519
634a3254
SM
65202017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6521
6522 * regcache.c (regcache_invalidate_one): Remove.
6523 (regcache_invalidate_pid): use for_each_thread.
6524
41272101
TT
65252017-11-26 Tom Tromey <tom@tromey.com>
6526
6527 * linux-low.c (linux_create_inferior): Update.
6528
f5291a6f
UW
65292017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6530
6531 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6532
6654d750
AH
65332017-11-24 Alan Hayward <alan.hayward@arm.com>
6534
6535 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6536 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6537 * linux-aarch64-tdesc-selftest.c: New file.
6538 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6539
65402017-11-24 Alan Hayward <alan.hayward@arm.com>
6541
6542 * configure.srv: Add new file.
6543 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6544 * linux-aarch64-tdesc-selftest.c: New file.
6545 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6546
49bdb7ee
AH
65472017-11-24 Alan Hayward <alan.hayward@arm.com>
6548
6549 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6550 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6551 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6552
d6d7ce56
AH
65532017-11-24 Alan Hayward <alan.hayward@arm.com>
6554
6555 * configure.srv: Add new files.
6556 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6557 aarch64_linux_read_description.
6558 * linux-aarch64-low.c (aarch64_linux_read_description):
6559 Merge with aarch64_arch_setup.
6560 (aarch64_arch_setup): Call aarch64_linux_read_description.
6561 * linux-aarch64-tdesc.c: New file.
6562 * linux-aarch64-tdesc.h: New file.
6563
506fe5f4
YQ
65642017-11-24 Yao Qi <yao.qi@linaro.org>
6565
6566 * configure.srv: Set $srv_regobj for tic6x-linux.
6567 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6568 (tic6x_read_description): Move some code to tic6x_arch_setup.
6569 (tic6x_tdesc_test): New function.
6570 (initialize_low_arch): Call selftests::register_test.
6571
29f9a567
YQ
65722017-11-22 Yao Qi <yao.qi@linaro.org>
6573
6574 * remote-utils.c (prepare_resume_reply): Use memcpy.
6575
578290ec
SM
65762017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6577
6578 * linux-low.c (kill_one_lwp_callback): Return void, take
6579 argument directly, don't filter on pid.
6580 (linux_kill): Use for_each_thread.
6581
eca55aec
SM
65822017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6583
6584 * linux-low.c (need_step_over_p): Return bool, remove dummy
6585 argument.
6586 (linux_resume, proceed_all_lwps): Use find_thread.
6587
25c28b4d
SM
65882017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6589
6590 * linux-low.c (resume_status_pending_p): Return bool, remove
6591 flag_p argument.
6592 (linux_resume): Use find_thread.
6593
5fdda392
SM
65942017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6595
6596 * linux-low.c (struct thread_resume_array): Remove.
6597 (linux_set_resume_request): Return void, take arguments
6598 directly.
6599 (linux_resume): Use for_each_thread.
6600
fcb056a5
SM
66012017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6602
6603 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6604 return bool, remove data argument.
6605 (linux_stabilize_threads): Use find_thread.
6606
139720c5
SM
66072017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6608
6609 * linux-low.c (unsuspend_one_lwp): Remove.
6610 (unsuspend_all_lwps): Use for_each_thread, inline code from
6611 unsuspend_one_lwp.
6612
6d1e5673
SM
66132017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6614
6615 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6616 * linux-low.c (struct iterate_over_lwps_args): Remove.
6617 (iterate_over_lwps_filter): Remove.
6618 (iterate_over_lwps): Use find_thread.
6619
bbf550d5
SM
66202017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6621
6622 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6623 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6624 code from reset_lwp_ptrace_options_callback.
6625
00192f77
SM
66262017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6627
6628 * linux-arm-low.c (struct update_registers_data): Remove.
6629 (update_registers_callback): Return void, take arguments
6630 directly, don't check thread's pid.
6631 (arm_insert_point, arm_remove_point): Use for_each_thread.
6632
2bee2b6c
SM
66332017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6634
6635 * win32-low.c (continue_one_thread): Return void, take argument
6636 directly.
6637 (child_continue): Use for_each_thread.
6638
0b360f19
SM
66392017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6640
6641 * win32-i386-low.c (update_debug_registers_callback): Rename
6642 to ...
6643 (update_debug_registers): ... this, return void, remove pid_p arg.
6644 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6645
f27866ba
SM
66462017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6647
6648 * inferiors.h (struct process_info): Add constructor, initialize
6649 fields..
6650 <syscalls_to_catch>: Change type to std::vector<int>.
6651 * inferiors.c (add_process): Allocate process_info with new.
6652 (remove_process): Free process_info with delete.
6653 * linux-low.c (handle_extended_wait): Adjust.
6654 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6655 * server.c (handle_general_set): Adjust.
6656
e849ea89
PA
66572017-11-16 Pedro Alves <palves@redhat.com>
6658
6659 * remote-utils.c (remote_close): Block SIGIO signals instead of
6660 uninstalling the SIGIO handler.
6661
1d0aa65c
AH
66622017-11-16 Alan Hayward <alan.hayward@arm.com>
6663
6664 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6665
3491a34c
YQ
66662017-11-16 Yao Qi <yao.qi@linaro.org>
6667
6668 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6669 (tic6x_store_gregset): Likewise.
6670 (tic6x_usrregs_info): Move it up.
6671
a602f924
AH
66722017-11-15 Alan Hayward <alan.hayward@arm.com>
6673
6674 * Makefile.in: Update arch rules.
6675 * configure.srv: Explicitly mark arch/ files.
6676
5616b6c3
AS
66772017-11-13 Andreas Schwab <schwab@suse.de>
6678
6679 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6680 function.
6681 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6682
d1928160
PA
66832017-11-06 Pedro Alves <palves@redhat.com>
6684
6685 * config.in, configure: Regenerate.
6686
bac608e7
SM
66872017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6688
6689 * target.c (struct thread_search): Remove.
6690 (thread_search_callback): Remove.
6691 (prepare_to_access_memory): Use for_each_thread instead of
6692 find_inferior. Inline code from thread_search_callback.
6693
eaddb425
SM
66942017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6695
6696 * server.c (struct visit_actioned_threads_data): Remove.
6697 (visit_actioned_threads): Change prototype to take arguments
6698 directly.
6699 (resume): Use find_thread instead of find_inferior.
6700
99078d34
SM
67012017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6702
6703 * server.c (queue_stop_reply_callback): Change prototype, return
6704 void.
6705 (find_status_pending_thread_callback): Remove.
6706 (handle_status): Replace find_inferior with find_thread and
6707 for_each_thread.
6708
cc628f3d
AH
67092017-10-25 Alan Hayward <alan.hayward@arm.com>
6710
6711 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6712 with REGNO.
6713 (aarch64_store_gregset): Likewise.
6714 (aarch64_fill_fpregset): Likewise.
6715 (aarch64_store_fpregset): Likewise.
6716
4d3bb80e
SM
67172017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6718
6719 * gdbthread.h (find_thread, for_each_thread): New functions.
6720 * inferiors.c (thread_of_pid): Remove.
6721 (find_any_thread_of_pid): Use find_thread.
6722 * linux-low.c (num_lwps): Use for_each_thread.
6723
7a7cdfa0
YQ
67242017-10-17 Yao Qi <yao.qi@linaro.org>
6725
6726 * Makefile.in: Remove one rule.
6727 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6728
e675d170
YQ
67292017-10-17 Yao Qi <yao.qi@linaro.org>
6730
6731 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6732 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6733
7eb4e0f9
YQ
67342017-10-17 Yao Qi <yao.qi@linaro.org>
6735
6736 * configure.srv: Rename arm.o with arch/arm.o.
6737
60d6cfc9
YQ
67382017-10-17 Yao Qi <yao.qi@linaro.org>
6739
6740 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6741 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6742 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6743 (arch-i386.o, arch-amd64.o): Remove rules.
6744 (arch/%.o): New rule.
6745 Update POSTCOMPILE and COMPILE.pre.
6746 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6747 * configure: Re-generated.
6748 * configure.srv: Replace arch-i386.o with arch/i386.o.
6749 Replace arch-amd64.o with arch/amd64.o.
6750
5bfda255
YQ
67512017-10-16 Yao Qi <yao.qi@linaro.org>
6752
6753 * configure: Regenerated.
6754
9c80ecd6
SM
67552017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6756
6757 * inferiors.h: (struct inferior_list): Remove.
6758 (struct inferior_list_entry); Remove.
6759 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6760 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6761 get_first_inferior): Remove.
6762 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6763 find_inferior_id, find_inferior_in_random): Change signature.
6764 * inferiors.c (all_threads): Change type to
6765 std::list<thread_info *>.
6766 (get_thread): Remove macro.
6767 (find_inferior, find_inferior_id): Change signature, implement
6768 using find_thread.
6769 (find_inferior_in_random): Change signature, implement using
6770 find_thread_in_random.
6771 (for_each_inferior, for_each_inferior_with_data): Change
6772 signature, implement using for_each_thread.
6773 (add_inferior_to_list, remove_inferior): Remove.
6774 (add_thread, get_first_thread, thread_of_pid,
6775 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6776 (get_first_inferior, one_inferior_p, clear_inferior_list):
6777 Remove.
6778 (clear_inferiors, get_thread_process): Update.
6779 * gdbthread.h: Include <list>.
6780 (struct thread_info) <entry>: Remove field.
6781 <id>: New field.
6782 (all_threads): Change type to std::list<thread_info *>.
6783 (get_first_inferior): Add doc.
6784 (find_thread, for_each_thread, find_thread_in_random): New
6785 functions.
6786 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6787 * linux-arm-low.c (update_registers_callback): Update.
6788 * linux-low.c (second_thread_of_pid_p): Update.
6789 (kill_one_lwp_callback, linux_detach_lwp_callback,
6790 delete_lwp_callback, status_pending_p_callback, same_lwp,
6791 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6792 iterate_over_lwps, not_stopped_callback,
6793 resume_stopped_resumed_lwps, count_events_callback,
6794 select_singlestep_lwp_callback, select_event_lwp_callback,
6795 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6796 suspend_and_send_sigstop_callback, wait_for_sigstop,
6797 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6798 lwp_running, linux_set_resume_request, resume_status_pending_p,
6799 need_step_over_p, start_step_over, linux_resume_one_thread,
6800 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6801 reset_lwp_ptrace_options_callback): Update.
6802 * linux-mips-low.c (update_watch_registers_callback): Update.
6803 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6804 Update.
6805 (free_register_cache_thread_one): Remove.
6806 (regcache_release): Update.
6807 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6808 handle_qxfer_threads_worker): Update.
6809 (handle_query): Update, use list iterator.
6810 (visit_actioned_threads, handle_pending_status,
6811 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6812 clear_pending_status_callback, set_pending_status_callback,
6813 find_status_pending_thread_callback, handle_status,
6814 process_serial_event): Update.
6815 * target.c (thread_search_callback): Update.
6816 * thread-db.c (thread_db_get_tls_address): Update.
6817 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6818 Update.
6819 * win32-i386-low.c (update_debug_registers_callback): Update.
6820 * win32-low.c (delete_thread_info, child_delete_thread,
6821 continue_one_thread, suspend_one_thread,
6822 get_child_debug_event): Adjust.
6823
9179355e
SM
68242017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6825
6826 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6827 * inferiors.h: Include <list>.
6828 (struct process_info) <entry>: Remove field.
6829 <pid>: New field.
6830 (pid_of): Change macro to function.
6831 (ptid_of, lwpid_of): Remove macro.
6832 (all_processes): Change type to std::list<process_info *>.
6833 (ALL_PROCESSES): Remove macro.
6834 (for_each_process, find_process): New function.
6835 * inferiors.c (all_processes): Change type to
6836 std::list<process_info *>.
6837 (find_thread_process): Adjust.
6838 (add_process): Likewise.
6839 (remove_process): Likewise.
6840 (find_process_pid): Likewise.
6841 (get_first_process): Likewise.
6842 (started_inferior_callback): Remove.
6843 (have_started_inferiors_p): Adjust.
6844 (attached_inferior_callback): Remove.
6845 (have_attached_inferiors_p): Adjust.
6846 * linux-low.c (check_zombie_leaders): Likewise.
6847 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6848 (x86_linux_update_xmltarget): Adjust.
6849 * server.c (handle_query): Likewise.
6850 (gdb_reattached_process): Remove.
6851 (handle_status): Adjust.
6852 (kill_inferior_callback): Likewise.
6853 (detach_or_kill_inferior): Remove.
6854 (print_started_pid): Likewise.
6855 (print_attached_pid): Likewise.
6856 (detach_or_kill_for_exit): Update.
6857 (process_serial_event): Likewise.
6858 * linux-arm-low.c (arm_new_fork): Likewise.
6859
c9cb8905
SM
68602017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6861
6862 * dll.h: Include <list>.
6863 (struct dll_info): Add constructor.
6864 <entry>: Remove field.
6865 (all_dlls): Change type to std::list<dll_info>.
6866 * dll.c: Include <algorithm>.
6867 (get_dll): Remove macro.
6868 (all_dlls): Change type to std::list<dll_info *>.
6869 (free_one_dll): Remove.
6870 (match_dll): Likewise.
6871 (loaded_dll): Adjust.
6872 (unloaded_dll): Adjust to all_dlls type change, use
6873 std::find_if. Inline code from match_dll.
6874 (clear_dlls): Adjust to all_dlls type change.
6875 * server.c (emit_dll_description): Remove.
6876 (handle_qxfer_libraries): Adjust to all_dlls type change,
6877 integrate emit_dll_description's functionality.
6878
04ec7890
SM
68792017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6880
6881 * linux-low.h (struct linux_target_ops) <delete_process>: New
6882 field.
6883 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6884 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6885 (struct linux_target_ops): Add delete_process callback.
6886 * linux-arm-low.c (arm_delete_process): New.
6887 (struct linux_target_ops): Add delete_process callback.
6888 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6889 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6890 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6891 * linux-mips-low.c (mips_linux_delete_process): New.
6892 (struct linux_target_ops): Add delete_process callback.
6893 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6894 * linux-s390-low.c (struct linux_target_ops): Likewise.
6895 * linux-sh-low.c (struct linux_target_ops): Likewise.
6896 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6897 * linux-tile-low.c (struct linux_target_ops): Likewise.
6898 * linux-x86-low.c (x86_linux_delete_process): New.
6899 (struct linux_target_ops): Add delete_process callback.
6900 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6901
466eecee
SM
69022017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6903
6904 * linux-aarch64-low.c (the_low_target): Add thread delete
6905 callback.
6906 * linux-arm-low.c (arm_delete_thread): New function.
6907 (the_low_target): Add thread delete callback.
6908 * linux-bfin-low.c (the_low_target): Likewise.
6909 * linux-crisv32-low.c (the_low_target): Likewise.
6910 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6911 set.
6912 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6913 field.
6914 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6915 * linux-mips-low.c (mips_linux_delete_thread): New function.
6916 (the_low_target): Add thread delete callback.
6917 * linux-ppc-low.c (the_low_target): Likewise.
6918 * linux-s390-low.c (the_low_target): Likewise.
6919 * linux-sh-low.c (the_low_target): Likewise.
6920 * linux-tic6x-low.c (the_low_target): Likewise.
6921 * linux-tile-low.c (the_low_target): Likewise.
6922 * linux-x86-low.c (the_low_target): Likewise.
6923 * linux-xtensa-low.c (the_low_target): Likewise.
6924
b79f7801
YZ
69252017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6926
6927 * win32-low.c: Include "common-inferior.h".
6928
bc3b087d
SDJ
69292017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6930
6931 * inferiors.c (set_inferior_cwd): New function.
6932 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6933 (handle_query): Inform that QSetWorkingDir is supported.
6934 * win32-low.c (create_process): Pass the inferior's cwd to
6935 CreateProcess.
6936
d092c5a2
SDJ
69372017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6938
6939 * inferiors.c (current_inferior_cwd): New global variable.
6940 (get_inferior_cwd): New function.
6941 * inferiors.h (struct process_info) <cwd>: New field.
6942
7da0a886
SDJ
69432017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6944
6945 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6946 (OBS): Add gdb_tilde_expand.o.
6947
289a6840
SM
69482017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6949
6950 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6951 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6952
256642e8
PA
69532017-09-29 Pedro Alves <palves@redhat.com>
6954
6955 * ax.c (gdb_parse_agent_expr): Constify.
6956 * ax.h (gdb_parse_agent_expr): Constify.
6957 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6958 Constify.
6959 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6960 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6961 * remote-utils.h (read_ptid): Constify.
6962 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6963 (process_point_options, process_serial_event): Constify.
6964 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6965 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6966 (cmd_qtbuffer): Constify.
6967
5b9ca4d4
PA
69682017-09-29 Pedro Alves <palves@redhat.com>
6969
6970 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6971 fails.
6972
94c207e0
PA
69732017-09-29 Pedro Alves <palves@redhat.com>
6974
6975 * linux-low.c (handle_extended_wait): Pass parent thread instead
6976 of process to thread_db_notice_clone.
6977 * linux-low.h (thread_db_notice_clone): Replace parent process
6978 parameter with parent thread parameter.
6979 * thread-db.c (find_one_thread): Add comment.
6980 (thread_db_notice_clone): Replace parent process parameter with
6981 parent thread parameter. Temporarily switch to the parent thread.
6982
75352e28
SDJ
69832017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6984
6985 * gdbthread.h: Include "common-gdbthread.h".
6986 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6987 "if" when validating the ptid.
6988 * remote-utils.c: Include "gdbthread.h".
6989 (prepare_resume_reply): Use "switch_to_thread".
6990 * target.c (done_accessing_memory): Likewise.
6991
ad339634
AA
69922017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6993
6994 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6995 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6996 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6997 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6998 s390x-gs-linux64-ipa.o to ipa_obj.
6999 * linux-s390-low.c (HWCAP_S390_GS): New define.
7000 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7001 New functions.
7002 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7003 (s390_arch_setup): Check for guarded-storage support and choose
7004 appropriate tdesc.
7005 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7006 init_registers_s390x_gs_linux64.
7007 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7008 enum value.
7009 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7010 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7011
cc4d742f
SM
70122017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7013
7014 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7015
f6327dcb
KB
70162017-09-21 Kevin Buettner <kevinb@redhat.com>
7017
7018 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7019 (thread_db_thread_handle): Declare.
7020 * linux-low.c (linux_target_ops): Initialize thread_handle.
7021 * server.c (handle_qxfer_threads_worker): Add support for
7022 "handle" attribute.
7023 * target.h (struct target_ops): Add new function pointer,
7024 thread_handle.
7025 (target_thread_handle): Define.
7026 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7027 field in lwp.
7028 (thread_db_thread_handle): New function.
7029
86299109
KB
70302017-09-21 Kevin Buettner <kevinb@redhat.com>
7031
7032 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7033 * linux-low.h (thread_db_notice_clone): Declare.
7034 * thread-db.c (thread_db_notice_clone): New function.
7035
f557a88a
PA
70362017-09-21 Pedro Alves <palves@redhat.com>
7037
7038 * server.c (gdb_read_memory, handle_status, process_serial_event)
7039 (handle_serial_event, handle_target_event): Adjust to
7040 set_desired_thread prototype change.
7041 * target.c (set_desired_thread): Remove 'use_general' parameter
7042 and adjust.
7043 * target.h (set_desired_thread): Remove 'use_general' parameter.
7044
223ffa71
TT
70452017-09-20 Tom Tromey <tom@tromey.com>
7046
7047 * target.c (target_terminal::terminal_state): Define.
7048 (target_terminal::init): Rename from target_terminal_init.
7049 (target_terminal::inferior): Rename from
7050 target_terminal_inferior.
7051 (target_terminal::ours): Rename from target_terminal_ours.
7052 (target_terminal::ours_for_output, target_terminal::info): New.
7053
04fd3ba9
SM
70542017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7055
7056 * server.c (accumulate_file_name_length): Remove.
7057 (emit_dll_description): Adjust to std::string change.
7058 (handle_qxfer_libraries): Use std::string to hold document.
7059
5e187554
SM
70602017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7061
7062 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7063 return type of xml_escape_text.
7064 * server.c (emit_dll_description): Likewise.
7065
1526853e
SM
70662017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7067
7068 * server.c (captured_main): Accept argument for --selftest.
7069 Update run_tests call.
7070 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7071 when registering selftests.
7072
c4dfafab
SDJ
70732017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7074
7075 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7076 instead of "VEC" for "target_desc.reg_defs".
7077 (regcache_cpy): Likewise.
7078 (registers_to_string): Likewise.
7079 (registers_from_string): Likewise.
7080 (find_regno): Likewise.
7081 (supply_regblock): Likewise.
7082 (regcache_raw_read_unsigned): Likewise.
7083 * tdesc.c (init_target_desc): Likewise.
7084 (tdesc_create_reg): Likewise.
7085 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7086 (struct target_desc) <reg_defs>: Convert to "std::vector".
7087 (target_desc): Do not initialize "reg_defs".
7088 (~target_desc): Update code to use "std::vector" instead of "VEC"
7089 for "target_desc.reg_defs".
7090 (operator==): Likewise.
7091
124aceb4
SM
70922017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7093
7094 * inferiors.h (thread_to_gdb_id): Remove.
7095 * inferiors.c (thread_to_gdb_id): Remove.
7096 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7097 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7098 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7099 Likewise.
7100 * nto-low.c (nto_fetch_registers, nto_store_registers,
7101 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7102
96cde54f
SM
71032017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7104
7105 * inferiors.h (gdb_id_to_thread_id): Remove.
7106 * inferiors.c (gdb_id_to_thread_id): Remove.
7107 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7108 removal. Move pid declaration closer to where it's used.
7109
e8ca139e
SM
71102017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7111
7112 * server.c (handle_detach): New function.
7113 (process_serial_event): Move code out, call handle_detach.
7114
f8a4e119
SM
71152017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7116
7117 * server.c (require_running): Rename to ...
7118 (require_running_or_return): ... this ...
7119 (require_running_or_break): ... and this.
7120 (handle_query, process_serial_event): Adjust.
7121
0eb0a407
SM
71222017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7123
7124 * linux-low.c (linux_set_resume_request): Remove unused
7125 variables.
7126
785922a5
SM
71272017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7128
7129 * server.c (first_thread_of): Remove.
7130 (process_serial_event): Replace usage of first_thread_of with
7131 find_any_thread_of_pid.
7132 * tracepoint.c (same_process_p): Remove.
7133 (gdb_agent_about_to_close): Replace usage of same_process_p with
7134 find_any_thread_of_pid.
7135 * linux-x86-low.c (same_process_callback): Remove.
7136 (x86_arch_setup_process_callback): Replace usage of
7137 same_process_callback with find_any_thread_of_pid.
7138 * thread-db.c (any_thread_of): Remove.
7139 (switch_to_process): Replace usage of any_thread_of with
7140 find_any_thread_of_pid.
7141 * inferiors.c (thread_pid_matches_callback): Remove.
7142 (find_thread_process): Adjust to use find_any_thread_of_pid.
7143
a059f00c
SDJ
71442017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7145
7146 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7147 with "!VEC_empty".
a059f00c 7148
cc397f3a
SDJ
71492017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7150
7151 * linux-low.c (handle_extended_wait): Use
7152 "allocate_target_description" instead of "XNEW".
7153 * linux-x86-low.c (initialize_low_arch): Likewise.
7154
22916b07
YQ
71552017-09-05 Yao Qi <yao.qi@linaro.org>
7156
7157 * configure.srv (srv_i386_regobj): Remove.
7158 (srv_amd64_regobj): Remove.
7159 (srv_regobj): Set it to "" for x86 non-linux targets.
7160 * linux-x86-tdesc.c (i386_linux_read_description):
7161 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7162 (init_registers_i386): Remove the declaration.
7163 (tdesc_i386): Remove the declaration.
7164 (lynx_i386_arch_setup): Call i386_create_target_description.
7165 * nto-x86-low.c: Likewise.
7166 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7167 [!__x86_64__]: include arch/i386.h.
7168 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7169
38602d55
YQ
71702017-09-05 Yao Qi <yao.qi@linaro.org>
7171
7172 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7173 i386/amd64-XXX-linux from it.
7174
44b886ff
YQ
71752017-09-05 Yao Qi <yao.qi@linaro.org>
7176
7177 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7178 false.
7179 (ipa_amd64_linux_regobj): Remove.
7180 (ipa_x32_linux_regobj): Remove.
7181
b4570e4b
YQ
71822017-09-05 Yao Qi <yao.qi@linaro.org>
7183
7184 * Makefile.in (arch-amd64.o): New rule.
7185 * configure.srv: Append arch-amd64.o.
7186 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7187 (get_ipa_tdesc): Call amd64_linux_read_description.
7188 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7189 and init_registers_amd64_XXX.
7190 * linux-x86-low.c (x86_linux_read_description): Call
7191 amd64_linux_read_description.
7192 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7193 (initialize_low_arch): Don't call init_registers_x32_XXX and
7194 init_registers_amd64_XXX.
7195 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7196 and tdesc_amd64_XXX.
7197 [__x86_64__] (amd64_tdesc_test): New function.
7198 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7199 and init_registers_amd64_XXX.
7200 * linux-x86-tdesc.c: Include arch/amd64.h.
7201 (xcr0_to_tdesc_idx): New function.
7202 (i386_linux_read_description): New function.
7203 (amd64_get_ipa_tdesc_idx): New function.
7204 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7205 (amd64_get_ipa_tdesc): Declare.
7206
d1f28ea2
YQ
72072017-09-05 Yao Qi <yao.qi@linaro.org>
7208
7209 * configure.srv (srv_i386_linux_xmlfiles): Remove
7210 i386/i386-XXX-linux.xml from it.
7211
25a93583
YQ
72122017-09-05 Yao Qi <yao.qi@linaro.org>
7213
7214 * configure.srv: Set srv_i386_linux_regobj empty if $development
7215 is false.
7216 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7217 initialize_low_tdesc.
7218 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7219 with #if initialize_low_tdesc.
7220 * linux-x86-tdesc-selftest.c: New file.
7221 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7222
5f035c07
YQ
72232017-09-05 Yao Qi <yao.qi@linaro.org>
7224
7225 * Makefile.in (arch-i386.o): New rule.
7226 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7227 (x86_64-*-linux*): Likewise.
7228 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7229 include arch/i386.h.
7230 (i386_linux_read_description): Remove code and call
7231 i386_create_target_description.
7232 * tdesc.c (allocate_target_description): New function.
7233 * tdesc.h (set_tdesc_architecture): Remove declaration.
7234 (set_tdesc_osabi): Likewise.
7235
0abe8a89
YQ
72362017-09-05 Yao Qi <yao.qi@linaro.org>
7237
7238 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7239 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7240 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7241 .xmltarget.
7242 * server.c (get_features_xml): Call tdesc_get_features_xml.
7243 * tdesc.c (set_tdesc_architecture): New function.
7244 (set_tdesc_osabi): New function.
7245 (tdesc_get_features_xml): New function.
7246 (tdesc_create_feature): Add an argument.
7247 * tdesc.h (struct target_desc) <features>: New field.
7248 <arch, osabi>: New field.
7249 (~target_desc): xfree features, arch, and osabi.
7250 (target_desc::oerator==): Don't compare .xmltarget.
7251 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7252 (set_tdesc_osabi): Likewise.
7253 (tdesc_get_features_xml): Likewise.
7254
0a188386
YQ
72552017-09-05 Yao Qi <yao.qi@linaro.org>
7256
7257 * linux-x86-tdesc.c: Include selftest.h.
7258 (i386_tdesc_test): New function.
7259 (initialize_low_tdesc): Call selftests::register_test.
7260 * tdesc.h: Include regdef.h.
7261 (target_desc): Override operator == and !=.
7262
f49ff000
YQ
72632017-09-05 Yao Qi <yao.qi@linaro.org>
7264
7265 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7266 (ipa_obj): Likewise.
7267 * linux-i386-ipa.c: Include common/x86-xstate.h
7268 (get_ipa_tdesc): Call i386_linux_read_description.
7269 (initialize_low_tracepoint): Don't call init_registers_XXX
7270 functions, call initialize_low_tdesc instead.
7271 * linux-x86-low.c (x86_linux_read_description): Call
7272 i386_linux_read_description.
7273 (initialize_low_arch): Don't call init_registers_i386_XXX
7274 functions, call initialize_low_tdesc.
7275 * linux-x86-tdesc.c: New file.
7276 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7277 (i386_get_ipa_tdesc_idx): Declare.
7278 (i386_get_ipa_tdesc): Declare.
7279 (initialize_low_tdesc): Declare.
7280
2b68ef2f
YQ
72812017-09-05 Yao Qi <yao.qi@linaro.org>
7282
7283 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7284 instead of 0.
7285
f7000548
YQ
72862017-09-05 Yao Qi <yao.qi@linaro.org>
7287
7288 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7289 * regcache.c (get_thread_regcache): Use VEC_length.
7290 (init_register_cache): Likewise.
7291 (regcache_cpy): Likewise.
7292 (registers_to_string): Iterate reg_defs via VEC_iterate.
7293 (find_regno): Likewise.
7294 (find_register_by_number): Use VEC_index.
7295 (register_size): Call find_register_by_number.
7296 (register_data): Call find_register_by_number.
7297 (supply_regblock): Use VEC_length.
7298 (regcache_raw_read_unsigned): Likewise.
7299 * tdesc.c (init_target_desc): Iterate reg_defs via
7300 VEC_iterate.
7301 (default_description): Update initializer.
7302 (copy_target_description): Don't update field num_registers.
7303 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7304 <num_registers>: Remove.
7305
50a421ac
SM
73062017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7307
7308 * Makefile.in (.SECONDARY): Define target.
7309
23fdd69e
SM
73102017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7311
7312 * linux-low.c (linux_wait_1): Adjust.
7313 * server.c (queue_stop_reply_callback): Adjust.
7314
0a2dde4a
SDJ
73152017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7316
7317 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7318 QEnvironmentUnset and QEnvironmentReset packets.
7319 (handle_query): Inform remote that QEnvironmentHexEncoded,
7320 QEnvironmentUnset and QEnvironmentReset are supported.
7321
6afd337d
SM
73222017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7323
7324 * inferiors.h (inferior_target_data): Rename to ...
7325 (thread_target_data): ... this.
7326 (inferior_regcache_data): Rename to ...
7327 (thread_regcache_data): ... this.
7328 (set_inferior_regcache_data): Rename to ...
7329 (set_thread_regcache_data): ... this.
7330 * inferiors.c (inferior_target_data): Rename to ...
7331 (thread_target_data): ... this.
7332 (inferior_regcache_data): Rename to ...
7333 (thread_regcache_data): ... this.
7334 (set_inferior_regcache_data): Rename to ...
7335 (set_thread_regcache_data): ... this.
7336 (free_one_thread): Update.
7337 * linux-low.h (get_thread_lwp): Update.
7338 * regcache.c (get_thread_regcache): Update.
7339 (regcache_invalidate_thread): Update.
7340 (free_register_cache_thread): Update.
7341 * win32-i386-low.c (update_debug_registers_callback): Update.
7342 (win32_get_current_dr): Update.
7343 * win32-low.c (thread_rec): Update.
7344 (delete_thread_info): Update.
7345 (continue_one_thread): Update.
7346 (suspend_one_thread): Update.
7347
a160cc46
SM
73482017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7349
7350 * inferiors.c (set_inferior_target_data): Remove.
7351 * inferiors.h (set_inferior_target_data): Remove.
7352
6d580b63
YQ
73532017-08-18 Yao Qi <yao.qi@linaro.org>
7354
7355 * Makefile.in (OBS): Add selftest.o.
7356 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7357 * configure, config.in: Re-generated.
7358 * server.c: Include common/sefltest.h.
7359 (captured_main): Handle option --selftest.
7360
f5a29eb0
YQ
73612017-08-09 Yao Qi <yao.qi@linaro.org>
7362
7363 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7364 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7365 i386-avx-mpx.o and i386-mmx.o.
7366 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7367 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7368 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7369 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7370 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7371 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7372 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7373 i386/amd64-avx-mpx.xml.
7374
57757c2f
YQ
73752017-08-09 Yao Qi <yao.qi@linaro.org>
7376
7377 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7378 and x32-avx-avx512.o.
7379 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7380 i386/x32-avx-avx512.xml.
7381
229d26fc
SM
73822017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7383
7384 * tracepoint.h (enum class fast_tpoint_collect_result): New
7385 enumeration.
7386 (fast_tracepoint_collecting): Change return type to
7387 fast_tpoint_collect_result.
7388 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7389 * linux-low.h: Include tracepoint.h.
7390 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7391 fast_tpoint_collect_result.
7392 * linux-low.c (handle_tracepoints): Adjust.
7393 (linux_fast_tracepoint_collecting): Change return type to
7394 fast_tpoint_collect_result.
7395 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7396 linux_wait_1, stuck_in_jump_pad_callback,
7397 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7398 proceed_one_lwp): Adjust to type change.
7399
2e1e43e1
YQ
74002017-07-10 Yao Qi <yao.qi@linaro.org>
7401
7402 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7403
adc764e7
YQ
74042017-06-29 Yao Qi <yao.qi@linaro.org>
7405
7406 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7407 Remove.
7408 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7409
a206891a
SM
74102017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7411
7412 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7413
9a6c7d9c
SDJ
74142017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7415
7416 * linux-low.c (linux_create_inferior): Adjust code to access the
7417 environment information via 'gdb_environ' class.
7418 * lynx-low.c (lynx_create_inferior): Likewise.
7419 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7420 (get_environ): Return a pointer to 'our_environ'.
7421 (captured_main): Initialize 'our_environ'.
7422 * server.h (get_environ): Adjust prototype.
7423 * spu-low.c (spu_create_inferior): Adjust code to access the
7424 environment information via 'gdb_environ' class.
7425
ae3e2ccf
SM
74262017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7427
7428 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7429 usage of "register" keyword.
7430
3e019bdc
SM
74312017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7432
7433 * configure: Re-generate.
7434
8465943a
SM
74352017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7436
7437 * configure: Re-generate.
7438
cf0dd6f0
SM
74392017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7440
7441 * Makefile.in (COMPILE.pre): Add "-x c++".
7442
9845682b
SDJ
74432017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7444
7445 * fork-child.c: Conditionally include <signal.h>.
7446
aefd8b33
SDJ
74472017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7448
7449 * server.c (handle_general_set): Handle new packet
7450 "QStartupWithShell".
7451 (handle_query): Add "QStartupWithShell" to the list of supported
7452 packets.
7453 (gdbserver_usage): Add help text explaining the
7454 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7455 options.
7456 (captured_main): Recognize and act upon the presence of the new
7457 CLI options.
7458
2090129c
SDJ
74592017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7460 Pedro Alves <palves@redhat.com>
7461
7462 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7463 * configure: Regenerate.
7464 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7465 "fork-inferior.o".
7466 (i[34567]86-*-lynxos*): Likewise.
7467 (spu*-*-*): Likewise.
7468 * fork-child.c: New file.
7469 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7470 and "environ.h".
7471 (linux_ptrace_fun): New function.
7472 (linux_create_inferior): Adjust function prototype to reflect
7473 change on "target.h". Adjust function code to use
7474 "fork_inferior".
7475 (linux_request_interrupt): Delete "signal_pid".
7476 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7477 (lynx_ptrace_fun): New function.
7478 (lynx_create_inferior): Adjust function prototype to reflect
7479 change on "target.h". Adjust function code to use
7480 "fork_inferior".
7481 * nto-low.c (nto_create_inferior): Adjust function prototype and
7482 code to reflect change on "target.h". Update comments.
7483 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7484 "common-terminal.h" and "environ.h".
7485 (terminal_fd): Moved to fork-child.c.
7486 (old_foreground_pgrp): Likewise.
7487 (restore_old_foreground_pgrp): Likewise.
7488 (last_status): Make it global.
7489 (last_ptid): Likewise.
7490 (our_environ): New variable.
7491 (startup_with_shell): Likewise.
7492 (program_name): Likewise.
7493 (program_argv): Rename to...
7494 (program_args): ...this.
7495 (wrapper_argv): New variable.
7496 (start_inferior): Delete function.
7497 (get_exec_wrapper): New function.
7498 (get_exec_file): Likewise.
7499 (get_environ): Likewise.
7500 (prefork_hook): Likewise.
7501 (post_fork_inferior): Likewise.
7502 (postfork_hook): Likewise.
7503 (postfork_child_hook): Likewise.
7504 (handle_v_run): Update code to deal with arguments coming from the
7505 remote host. Update calls from "start_inferior" to
7506 "create_inferior".
7507 (captured_main): Likewise. Initialize environment variable. Call
7508 "have_job_control".
7509 * server.h (post_fork_inferior): New prototype.
7510 (get_environ): Likewise.
7511 (last_status): Declare.
7512 (last_ptid): Likewise.
7513 (signal_pid): Likewise.
7514 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7515 (spu_ptrace_fun): New function.
7516 (spu_create_inferior): Adjust function prototype to reflect change
7517 on "target.h". Adjust function code to use "fork_inferior".
7518 * target.c (target_terminal_init): New function.
7519 (target_terminal_inferior): Likewise.
7520 (target_terminal_ours): Likewise.
7521 * target.h: Include <vector>.
7522 (struct target_ops) <create_inferior>: Update prototype.
7523 (create_inferior): Update macro.
7524 * utils.c (gdb_flush_out_err): New function.
7525 * win32-low.c (win32_create_inferior): Adjust function prototype
7526 and code to reflect change on "target.h".
7527
043a4934
SDJ
75282017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7529
7530 * inferiors.c (switch_to_thread): New function.
7531
15652511
SDJ
75322017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7533
7534 * Makefile.in (SFILE): Add "common/job-control.c".
7535 (OBS): Add "job-control.o".
7536
21ea5acd
SDJ
75372017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7538
7539 * Makefile: Remove "@host_makefile_frag@".
7540
e13cb306
PA
75412017-05-05 Pedro Alves <palves@redhat.com>
7542
7543 * configure: Regenerate.
7544
c94fee56
SDJ
75452017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7546
7547 * configure: Regenerate.
7548
a0ff9e1a
SM
75492017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7550
7551 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7552 software_single_step change of return type to
7553 std::vector<CORE_ADDR>.
7554 * linux-low.c (install_software_single_step_breakpoints):
7555 Likewise.
7556 * linux-low.h (install_software_single_step_breakpoints):
7557 Likewise.
7558
be628ab8
SDJ
75592017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7560
7561 * remote-utils.c: Include "gdb_termios.h" instead of
7562 "terminal.h".
7563 * terminal.h: Delete file.
7564
7c5ded6a
SDJ
75652017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7566
7567 * server.c: Include <vector>.
7568 <program_argv, wrapper_argv>: Convert to std::vector.
7569 (start_inferior): Rewrite function to use C++.
7570 (handle_v_run): Likewise. Update code that calculates the argv
7571 based on the vRun packet; use C++.
7572 (captured_main): Likewise.
7573
436252de
SM
75742017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7575
7576 * server.c (handle_v_cont): Initialize thread_resume::thread
7577 with null_ptid.
7578
9bf2a700
PA
75792017-04-05 Pedro Alves <palves@redhat.com>
7580
7581 * configure: Regenerate.
7582
a121b7c1
PA
75832017-04-05 Pedro Alves <palves@redhat.com>
7584
7585 * gdbreplay.c (sync_error): Constify.
7586 * linux-x86-low.c (push_opcode): Constify.
7587
21c8a587
PA
75882017-04-05 Pedro Alves <palves@redhat.com>
7589
7590 * win32-low.c (get_child_debug_event)
7591 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7592 Report TARGET_WAITKIND_SPURIOUS instead.
7593
fb32b4f7
PA
75942017-04-05 Pedro Alves <palves@redhat.com>
7595
e79be6e5
SM
7596 * remote-utils.c (remote_prepare, remote_open): Constify.
7597 * remote-utils.h (remote_prepare, remote_open): Constify.
7598 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7599
65dd1e59
SM
76002017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7601
7602 * Makefile.in (clean): Clear .deps.
7603
8fa5b777
SM
76042017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7605
7606 * .gitignore: Remove generated files, replace with wildcard.
7607 * (clean): Replace removal of generated files with wildcard.
7608 (version.c): Replace with...
7609 (version-generated.c): ...this.
7610 (xml-builtin.c): Replace with...
7611 (xml-builtin-generated.c): ...this.
7612 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7613 (%.c: *regformats*): Replace with...
7614 (%-generated.c: *regformats*): ...this.
7615
a12e714b
MF
76162017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7617
7618 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7619 (xtensa_fill_gregset): Call collect_register_by_name for
7620 threadptr register.
7621 (xtensa_store_gregset): Call supply_register_by_name for
7622 threadptr register.
7623
1a09b50a
MF
76242017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7625
7626 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7627 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7628 (xtensa_store_gregset): Call supply_register for all registers in
7629 a0_regnum..a0_regnum + C0_NREGS range.
7630
1a01e7c6
SM
76312017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7632
7633 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7634 (ax-ipa.o: ax.c): Remove.
7635 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7636 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7637 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7638 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7639 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7640
36bc18a8
SM
76412017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7642
7643 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7644 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7645 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7646 (errors-ipa.o: ../common/errors.c): Remove.
7647 (format-ipa.o: ../common/format.c): Remove.
7648 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7649
a8ebe3d5
SM
76502017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7651
7652 * Makefile.in (%-ipa.o: %.c): New rule.
7653 (tracepoint-ipa.o: tracepoint.c): Remove.
7654 (utils-ipa.o: utils.c): Remove.
7655 (remote-utils-ipa.o: remote-utils.c): Remove.
7656 (regcache-ipa.o: regcache.c): Remove.
7657 (i386-linux-ipa.o: i386-linux.c): Remove.
7658 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7659 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7660 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7661 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7662 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7663 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7664 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7665 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7666 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7667 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7668 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7669 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7670 (aarch64-ipa.o: aarch64.c): Remove.
7671 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7672 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7673 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7674 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7675 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7676 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7677 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7678 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7679 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7680 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7681 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7682 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7683 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7684 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7685 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7686 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7687 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7688 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7689 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7690 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7691 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7692 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7693 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7694 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7695 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7696 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7697 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7698 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7699 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7700 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7701 (tdesc-ipa.o: tdesc.c): Remove.
7702 (x32-linux-ipa.o: x32-linux.c): Remove.
7703 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7704 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7705
50cfacb7
SM
77062017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7707
7708 * Makefile.in (%.o: ../arch/%.c): New rule.
7709 (arm.o: ../arch/arm.c): Remove.
7710 (arm-linux.o: ../arch/arm-linux.c): Remove.
7711 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7712 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7713
c5a22423
SM
77142017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7715
7716 * Makefile.in (%.o: ../nat/%.c): New rule.
7717 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7718 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7719 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7720 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7721 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7722 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7723 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7724 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7725 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7726 (linux-personality.o: ../nat/linux-personality.c): Remove.
7727 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7728 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7729 (x86-linux.o: ../nat/x86-linux.c): Remove.
7730 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7731 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7732
6bda016b
SM
77332017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7734
7735 * Makefile.in (%.o: ../common/%.c): New rule.
7736 (signals.o: ../common/signals.c): Remove.
7737 (print-utils.o: ../common/print-utils.c): Remove.
7738 (rsp-low.o: ../common/rsp-low.c): Remove.
7739 (common-utils.o: ../common/common-utils.c): Remove.
7740 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7741 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7742 (vec.o: ../common/vec.c): Remove.
7743 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7744 (xml-utils.o: ../common/xml-utils.c): Remove.
7745 (ptid.o: ../common/ptid.c): Remove.
7746 (buffer.o: ../common/buffer.c): Remove.
7747 (format.o: ../common/format.c): Remove.
7748 (filestuff.o: ../common/filestuff.c): Remove.
7749 (agent.o: ../common/agent.c): Remove.
7750 (errors.o: ../common/errors.c): Remove.
7751 (environ.o: ../common/environ.c): Remove.
7752 (common-debug.o: ../common/common-debug.c): Remove.
7753 (cleanups.o: ../common/cleanups.c): Remove.
7754 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7755 (fileio.o: ../common/fileio.c): Remove.
7756 (common-regcache.o: ../common/common-regcache.c): Remove.
7757 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7758 (new-op.o: ../common/new-op.c): Remove.
7759 (btrace-common.o: ../common/btrace-common.c): Remove.
7760
21122961
SM
77612017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7762
7763 * Makefile.in (%.o: ../target/%.c): New rule.
7764 (waitstatus.o: ../target/waitstatus.c): Remove.
7765
c362e621
SM
77662017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7767
7768 * Makefile.in
7769 (%.c: ../regformats/%.dat,
7770 (%.c: ../regformats/arm/%.dat,
7771 (%.c: ../regformats/i386/%.dat,
7772 (%.c: ../regformats/rs6000/%.dat): New rules.
7773 (aarch64.c): Remove.
7774 (reg-arm.c): Remove.
7775 (arm-with-iwmmxt.c): Remove.
7776 (arm-with-vfpv2.c): Remove.
7777 (arm-with-vfpv3.c): Remove.
7778 (arm-with-neon.c): Remove.
7779 (reg-bfin.c): Remove.
7780 (reg-cris.c): Remove.
7781 (reg-crisv32.c): Remove.
7782 (i386.c): Remove.
7783 (i386-linux.c): Remove.
7784 (i386-avx.c): Remove.
7785 (i386-avx-linux.c): Remove.
7786 (i386-avx-avx512.c): Remove.
7787 (i386-avx-avx512-linux.c): Remove.
7788 (i386-mpx.c): Remove.
7789 (i386-mpx-linux.c): Remove.
7790 (i386-avx-mpx-avx512-pku.c): Remove.
7791 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7792 (i386-avx-mpx.c): Remove.
7793 (i386-avx-mpx-linux.c): Remove.
7794 (i386-mmx.c): Remove.
7795 (i386-mmx-linux.c): Remove.
7796 (reg-ia64.c): Remove.
7797 (reg-m32r.c): Remove.
7798 (reg-m68k.c): Remove.
7799 (reg-cf.c): Remove.
7800 (mips-linux.c): Remove.
7801 (mips-dsp-linux.c): Remove.
7802 (mips64-linux.c): Remove.
7803 (mips64-dsp-linux.c): Remove.
7804 (nios2-linux.c): Remove.
7805 (powerpc-32.c): Remove.
7806 (powerpc-32l.c): Remove.
7807 (powerpc-altivec32l.c): Remove.
7808 (powerpc-cell32l.c): Remove.
7809 (powerpc-vsx32l.c): Remove.
7810 (powerpc-isa205-32l.c): Remove.
7811 (powerpc-isa205-altivec32l.c): Remove.
7812 (powerpc-isa205-vsx32l.c): Remove.
7813 (powerpc-e500l.c): Remove.
7814 (powerpc-64l.c): Remove.
7815 (powerpc-altivec64l.c): Remove.
7816 (powerpc-cell64l.c): Remove.
7817 (powerpc-vsx64l.c): Remove.
7818 (powerpc-isa205-64l.c): Remove.
7819 (powerpc-isa205-altivec64l.c): Remove.
7820 (powerpc-isa205-vsx64l.c): Remove.
7821 (s390-linux32.c): Remove.
7822 (s390-linux32v1.c): Remove.
7823 (s390-linux32v2.c): Remove.
7824 (s390-linux64.c): Remove.
7825 (s390-linux64v1.c): Remove.
7826 (s390-linux64v2.c): Remove.
7827 (s390-te-linux64.c): Remove.
7828 (s390-vx-linux64.c): Remove.
7829 (s390-tevx-linux64.c): Remove.
7830 (s390x-linux64.c): Remove.
7831 (s390x-linux64v1.c): Remove.
7832 (s390x-linux64v2.c): Remove.
7833 (s390x-te-linux64.c): Remove.
7834 (s390x-vx-linux64.c): Remove.
7835 (s390x-tevx-linux64.c): Remove.
7836 (tic6x-c64xp-linux.c): Remove.
7837 (tic6x-c64x-linux.c): Remove.
7838 (tic6x-c62x-linux.c): Remove.
7839 (reg-sh.c): Remove.
7840 (reg-sparc64.c): Remove.
7841 (reg-spu.c): Remove.
7842 (amd64.c): Remove.
7843 (amd64-linux.c): Remove.
7844 (amd64-avx.c): Remove.
7845 (amd64-avx-linux.c): Remove.
7846 (amd64-avx-avx512.c): Remove.
7847 (amd64-avx-avx512-linux.c): Remove.
7848 (amd64-mpx.c): Remove.
7849 (amd64-mpx-linux.c): Remove.
7850 (amd64-avx-mpx-avx512-pku.c): Remove.
7851 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7852 (amd64-avx-mpx.c): Remove.
7853 (amd64-avx-mpx-linux.c): Remove.
7854 (x32.c): Remove.
7855 (x32-linux.c): Remove.
7856 (x32-avx.c): Remove.
7857 (x32-avx-linux.c): Remove.
7858 (x32-avx-avx512.c): Remove.
7859 (x32-avx-avx512-linux.c): Remove.
7860 (reg-xtensa.c): Remove.
7861 (reg-tilegx.c): Remove.
7862 (reg-tilegx32.c): Remove.
7863
1672e0d9
SDJ
78642017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7865
7866 * Makefile.in (SFILES): Add "common/environ.c".
7867 (OBJS): Add "common/environ.h".
7868
239b6d10
WT
78692017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7870
7871 * configure.ac: Check if the fs_base and gs_base members of
7872 `struct user_regs_struct' exist.
7873 * config.in: Regenerated.
7874 * configure: Likewise.
7875
694b382c
AT
78762017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7877
7878 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7879 target_read_memory.
7880 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7881 (get_next_pcs_syscall_next_pc): Likewise.
7882
7dc53023
LM
78832016-12-23 Luis Machado <lgustavo@codesourcery.com>
7884
7885 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7886 * nto-x86-low.c: Likewise.
7887
ad02e4fe
SM
78882016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7889
7890 * Makefile.in: Include disable-implicit-rules.mk.
7891
dcb07cfa
PA
78922016-11-23 Pedro Alves <palves@redhat.com>
7893
7894 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7895 (debug_vprintf): Use std::chrono::steady_clock instead of
7896 gettimeofday. Use '.' instead of ':'.
7897 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7898 (get_timestamp): Use std::chrono::steady_clock instead of
7899 gettimeofday.
7900
8629c02c
SM
79012016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7902
7903 * Makefile.in: Fix whitespace formatting.
7904
b593ecca
SM
79052016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7906
7907 * Makefile.in (SFILES, OBS): Flatten list and order
7908 alphabetically.
7909
9986ba08
PA
79102016-11-23 Pedro Alves <palves@redhat.com>
7911
7912 * event-loop.c (handle_file_event): Use warning.
7913 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7914 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7915 Use warning.
7916
4eefa7bc
PA
79172016-11-23 Pedro Alves <palves@redhat.com>
7918
7919 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7920 output.
7921 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7922 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7923 debug_printf and debug_flush for debug output.
7924 * server.c (handle_general_set): Likewise.
7925 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7926 output.
7927
5443506e
SM
79282016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7929
7930 * Makefile.in (.c.o): Replace rule with ...
7931 (%.o: %.c): ... this one.
7932
3b165252
SM
79332016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7934
7935 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7936 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7937 make.
7938 * configure.ac: Remove checks for the make program.
7939 * configure: Re-generate.
7940
0bcda685
PA
79412016-10-28 Pedro Alves <palves@redhat.com>
7942
7943 * Makefile.in (CXX_DIALECT): Get from configure.
7944 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7945 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7946 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7947 * config.in: Regenerate.
7948 * configure: Regenerate.
7949
c3805894
YQ
79502016-10-27 Yao Qi <yao.qi@linaro.org>
7951
7952 * linux-low.c (linux_supports_range_stepping): Return true if
7953 can_software_single_step return true.
7954
89342618
YQ
79552016-10-27 Yao Qi <yao.qi@linaro.org>
7956
7957 * inferiors.c (find_inferior_in_random): New function.
7958 * inferiors.h (find_inferior_in_random): Declare.
7959 * linux-low.c (linux_wait_for_event_filtered): Call
7960 find_inferior_in_random instead of find_inferior.
7961
e3652c84
YQ
79622016-10-27 Yao Qi <yao.qi@linaro.org>
7963
7964 * linux-low.c (linux_wait_1): If single-step breakpoints are
7965 inserted, remove them.
7966
5a04c4cf
PA
79672016-10-26 Pedro Alves <palves@redhat.com>
7968
7969 * linux-low.c (handle_extended_wait): Link parent/child fork
7970 threads.
7971 (linux_wait_1): Unlink them.
7972 (linux_set_resume_request): Ignore resume requests for
7973 already-resumed and unhandled fork child threads.
7974 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7975 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7976 New functions.
7977 (handle_v_requests) <vCont>: Don't call require_running.
7978 * server.h (in_queued_stop_replies): New declaration.
7979
cb93dc7f
YQ
79802016-10-24 Yao Qi <yao.qi@linaro.org>
7981
7982 PR server/20733
7983 * linux-aarch64-low.c (append_insns): Cast the return value to
7984 'uint32_t *'.
7985
a1078bea
YQ
79862016-10-10 Yao Qi <yao.qi@linaro.org>
7987
7988 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7989
1fb77080
SDJ
79902016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7991
7992 * target.c (target_supports_multi_process): New function, moved
7993 from...
7994 * target.h (target_supports_multi_process): ... here. Remove
7995 macro.
7996
39b5a3b9
TT
79972016-10-05 Tom Tromey <tom@tromey.com>
7998
7999 PR remote/20655:
8000 * tracepoint.c (handle_tracepoint_bkpts): Check
8001 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8002
c1d0b70a
YQ
80032016-10-05 Yao Qi <yao.qi@linaro.org>
8004
8005 * configure.srv: Update the path of arm-*.xml files.
8006
0a69eedb
YQ
80072016-10-05 Terry Guo <terry.guo@arm.com>
8008 Yao Qi <yao.qi@linaro.org>
8009
8010 * Makefile.in: Adjust the path of rules.
8011 * configure.srv: Update the path of xml files.
8012 * regformats/arm-with-iwmmxt.dat: Regenerated.
8013 * regformats/arm-with-neon.dat: Likewise.
8014 * regformats/arm-with-vfpv2.dat: Likewise.
8015 * regformats/arm-with-vfpv3.dat Likewise.
8016
17e16485
YQ
80172016-09-30 Yao Qi <yao.qi@linaro.org>
8018
8019 PR gdbserver/20627
8020 * target.c (target_stop_and_wait): Don't call
8021 target_continue_no_signal, use resume_stop instead.
8022
edeeb602
YQ
80232016-09-26 Yao Qi <yao.qi@linaro.org>
8024
8025 * linux-low.c (linux_wait_1): Call debug_exit.
8026
503b1c39
PA
80272016-09-23 Pedro Alves <palves@redhat.com>
8028
8029 * Makefile.in (SFILES): Add common/new-op.c.
8030 (OBS): Add common/new-op.o.
8031 (new-op.o): New rule.
8032
74172ecf
SM
80332016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8034
8035 * .gitinore: Ignore more files.
8036
fc6cda2e
YQ
80372016-09-21 Yao Qi <yao.qi@linaro.org>
8038
8039 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8040 23.
8041
bc1e6c81
SDJ
80422016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8043
8044 * server.c (start_inferior): Call target_mourn_inferior instead of
8045 mourn_inferior; pass ptid_t argument to it.
8046 (resume): Likewise.
8047 (handle_target_event): Likewise.
8048 * target.c (target_mourn_inferior): New function.
8049 * target.h (mourn_inferior): Delete macro.
8050
0e00e962
AA
80512016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8052
8053 * linux-low.c (lwp_is_stepping): New function.
8054
1d8cb77d
CL
80552016-09-06 Carl Love <cel@us.ibm.com>
8056
8057 * server.c (start_inferior): Fixed comment, requested comment change
8058 didn't get updated correctly. Removed reference to ptrace () call as
8059 it is only true on Linux systems.
8060
7313bced
CL
80612016-09-06 Carl Love <cel@us.ibm.com>
8062
8063 * server.c (start_inferior): Do not call
8064 function target_post_create_inferior () if the
8065 inferior process has already exited.
8066
cf6de44d
PA
80672016-09-05 Pedro Alves <palves@redhat.com>
8068
8069 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8070 (COMPILE.pre, CC_LD): Use CXX directly.
8071 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8072 * acinclude.m4: Don't include build-with-cxx.m4.
8073 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8074 * configure: Regenerate.
8075
c1da6748
AT
80762016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8077
8078 PR gdb/19495
8079 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8080 call writing data to own_buf.
8081
f2b9e3df
SDJ
80822016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8083
8084 * target.c (mywait): Call target_wait instead of
8085 the_target->wait.
8086 (target_wait): New function.
8087
049a8570
SDJ
80882016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8089
8090 * server.c (start_inferior): New variable 'ptid'. Replace calls
8091 to the_target->resume by target_continue{,_no_signal}, depending
8092 on the case.
8093 * target.c (target_stop_and_wait): Call target_continue_no_signal
8094 instead of the_target->resume.
8095 (target_continue): New function.
8096
3aa5cfa0
AT
80972016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8098
8099 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8100
754653a7
AZ
81012016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8102
8103 PR server/20491
8104 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8105 ps_prochandle.
8106 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8107 * linux-arm-low.c (ps_get_thread_area): Likewise.
8108 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8109 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8110 * linux-mips-low.c (ps_get_thread_area): Likewise.
8111 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8112 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8113 * linux-x86-low.c (ps_get_thread_area): Likewise.
8114 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8115
ed036b40
PA
81162016-08-19 Pedro Alves <palves@redhat.com>
8117
8118 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8119
c8ef42ee
PA
81202016-08-19 Pedro Alves <palves@redhat.com>
8121
8122 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8123 comment. Use memcpy instead of casting through unsigned long.
8124
9c235a72
PA
81252016-08-19 Pedro Alves <palves@redhat.com>
8126
8127 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8128 allocating around 0x80000000.
8129
201506da
PA
81302016-08-19 Pedro Alves <palves@redhat.com>
8131
8132 PR gdb/20415
8133 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8134 (x32-avx512-linux-ipa.o): New rules.
8135 * configure.ac (x86_64-*-linux*): New x32 check.
8136 * configure.srv (ipa_x32_linux_regobj): New.
8137 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8138 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8139 descriptions.
8140 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8141 descriptions.
8142 * configure: Regenerate.
8143
f348d89a
PA
81442016-08-09 Pedro Alves <palves@redhat.com>
8145
8146 PR gdb/18653
8147 * Makefile.in (OBS): Add signals-state-save-restore.o.
8148 (signals-state-save-restore.o): New rule.
8149 * config.in: Regenerate.
8150 * configure: Regenerate.
8151 * linux-low.c: Include "signals-state-save-restore.h".
8152 (linux_create_inferior): Call
8153 restore_original_signals_state.
8154 * server.c: Include "dispositions-save-restore.h".
8155 (captured_main): Call save_original_signals_state.
8156
1baf5149
PA
81572016-08-05 Pedro Alves <palves@redhat.com>
8158
8159 * configure: Regenerate.
8160
fcd4a73d
YQ
81612016-08-04 Yao Qi <yao.qi@linaro.org>
8162
8163 * linux-low.c (regsets_fetch_inferior_registers): Check
8164 errno is ESRCH or not.
8165
979659d0
YQ
81662016-08-02 Yao Qi <yao.qi@linaro.org>
8167
8168 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8169 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8170 (thread_db_load_search): Update.
8171 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8172 td_ta_set_event and td_ta_event_getmsg.
8173
6598661d
PA
81742016-07-26 Pedro Alves <palves@redhat.com>
8175
8176 PR server/20414
8177 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8178 of unsigned long for 64-bit registers and use uint32_t instead of
8179 unsigned int for 32-bit registers.
8180
9cf12d57
PA
81812016-07-26 Pedro Alves <palves@redhat.com>
8182
8183 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8184 to 'ptrace'.
8185
305450ed
TT
81862016-07-21 Tom Tromey <tom@tromey.com>
8187
8188 * configure: Rebuild.
8189
2583da7c
YQ
81902016-07-21 Yao Qi <yao.qi@linaro.org>
8191
8192 * mem-break.c (find_gdb_breakpoint): Cast bp to
8193 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8194
21536b36
YQ
81952016-07-21 Yao Qi <yao.qi@linaro.org>
8196
8197 * server.c (handle_v_requests): Support s and S actions
8198 if target_supports_software_single_step return true.
8199
8901d193
YQ
82002016-07-21 Yao Qi <yao.qi@linaro.org>
8201
8202 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8203 is resume_step, call maybe_hw_step.
8204 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8205 and unstop them.
8206 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8207 breakpoints or not.
8208 (proceed_one_lwp): If resume request is resume_step, install
8209 reinsert breakpoints and call maybe_hw_step.
8210
0e9a339e
YQ
82112016-07-21 Yao Qi <yao.qi@linaro.org>
8212
8213 * linux-low.c (proceed_one_lwp): Declare.
8214 (linux_resume_one_thread): Remove local variable 'step'.
8215 Lift code enqueue signal. Call proceed_one_lwp instead of
8216 linux_resume_one_lwp.
8217
4281b351
YQ
82182016-07-21 Yao Qi <yao.qi@linaro.org>
8219
8220 * linux-low.c (linux_resume_one_thread): Call
8221 enqueue_pending_signal.
8222
984a2c04
YQ
82232016-07-21 Yao Qi <yao.qi@linaro.org>
8224
8225 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8226 * inferiors.c (do_restore_current_thread_cleanup): New function.
8227 (make_cleanup_restore_current_thread): Likewise.
8228 * linux-low.c (install_software_single_step_breakpoints): Call
8229 make_cleanup_restore_current_thread. Switch current_thread to
8230 thread.
8231
bec903c9
YQ
82322016-07-21 Yao Qi <yao.qi@linaro.org>
8233
8234 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8235 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8236 (clone_one_breakpoint): Likewise.
8237 (delete_reinsert_breakpoints): Change parameter to thread.
8238 Callers updated.
8239 (has_reinsert_breakpoints): Likewise.
8240 (uninsert_reinsert_breakpoints): Likewise.
8241 (reinsert_reinsert_breakpoints): Likewise.
8242 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8243 (delete_reinsert_breakpoints): Likewise.
8244 (reinsert_reinsert_breakpoints): Likewise.
8245 (uninsert_reinsert_breakpoints): Likewise.
8246 (has_reinsert_breakpoints): Likewise.
8247
63c40ec7
YQ
82482016-07-21 Yao Qi <yao.qi@linaro.org>
8249
8250 * inferiors.c (get_thread_process): Make parameter const.
8251 * inferiors.h (get_thread_process): Update declaration.
8252 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8253 Add new parameters child_thread and parent_thread. Callers
8254 updated.
8255 * mem-break.h (clone_all_breakpoints): Update declaration.
8256
9aa76cd0
YQ
82572016-07-21 Yao Qi <yao.qi@linaro.org>
8258
8259 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8260 <command_list, handler>: Remove.
8261 (struct gdb_breakpoint): New.
8262 (struct other_breakpoint): New.
8263 (struct reinsert_breakpoint): New.
8264 (is_gdb_breakpoint): New function.
8265 (any_persistent_commands): Update command_list if
8266 is_gdb_breakpoint returns true.
8267 (set_breakpoint): Create breakpoints according to their types.
8268 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8269 (set_gdb_breakpoint_1): Likewise.
8270 (set_gdb_breakpoint): Likewise.
8271 (clear_breakpoint_conditions): Change parameter type to
8272 'struct gdb_breakpoint *'.
8273 (clear_breakpoint_commands): Likewise.
8274 (clear_breakpoint_conditions_and_commands): Likewise.
8275 (add_condition_to_breakpoint): Likewise.
8276 (add_breakpoint_condition): Likewise.
8277 (add_commands_to_breakpoint): Likewise.
8278 (check_breakpoints): Check other_breakpoint.
8279 (clone_one_breakpoint): Clone breakpopint according to its type.
8280 * mem-break.h (struct gdb_breakpoint): Declare.
8281 (set_gdb_breakpoint): Update declaration.
8282 (clear_breakpoint_conditions_and_commands): Likewise.
8283 (add_breakpoint_condition): Likewise.
8284 (add_breakpoint_commands): Likewise.
8285 * server.c (process_point_options): Change parameter type to
8286 'struct gdb_breakpoint *'.
8287
811f8301
YQ
82882016-07-21 Yao Qi <yao.qi@linaro.org>
8289
8290 * mem-break.c (set_breakpoint_at): Rename it to ...
8291 (set_breakpoint_type_at): ... it.
8292 (set_breakpoint_at): Call set_breakpoint_type_at.
8293 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8294 * mem-break.h (set_breakpoint_at): Update comments.
8295
b1c51e36
CLT
82962016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8297
8298 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8299 to buf parameter.
8300 (nios2_store_gregset): Likewise.
8301
ced2dffb
PA
83022016-07-01 Pedro Alves <palves@redhat.com>
8303 Antoine Tremblay <antoine.tremblay@ericsson.com>
8304
8305 * linux-low.c: Change interface to take the target lwp_info
8306 pointer directly and return void. Handle detaching from a zombie
8307 thread.
8308 (linux_detach_lwp_callback): New function.
8309 (linux_detach): Detach from the leader thread after detaching from
8310 the clone threads.
8311
2ac09a5b
YQ
83122016-06-28 Yao Qi <yao.qi@linaro.org>
8313
8314 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8315 for variable new_offset.
8316 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8317 (aarch64_ftrace_insn_reloc_cb): Likewise.
8318 (aarch64_ftrace_insn_reloc_tb): Likewise.
8319 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8320 PRIx64 instead of PRIx32.
8321
79e7fd4f
YQ
83222016-06-28 Yao Qi <yao.qi@linaro.org>
8323
8324 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8325 (the_low_target): Install arm_get_syscall_trapinfo.
8326
061fc021
YQ
83272016-06-28 Yao Qi <yao.qi@linaro.org>
8328
8329 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8330 function.
8331 (the_low_target): Install aarch64_get_syscall_trapinfo.
8332
4cc32bec
YQ
83332016-06-28 Yao Qi <yao.qi@linaro.org>
8334
8335 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8336 Callers updated.
8337 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8338 Remove parameter sysno.
8339 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8340 sysret.
8341
782c1122
AA
83422016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8343
8344 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8345 (s390_emit_ne_goto): Likewise.
8346 (s390_emit_lt_goto): Likewise.
8347 (s390_emit_le_goto): Likewise.
8348 (s390_emit_gt_goto): Likewise.
8349 (s390_emit_ge_goto): Likewise.
8350 (s390x_emit_eq_goto): Likewise.
8351 (s390x_emit_ne_goto): Likewise.
8352 (s390x_emit_lt_goto): Likewise.
8353 (s390x_emit_le_goto): Likewise.
8354 (s390x_emit_gt_goto): Likewise.
8355 (s390x_emit_ge_goto): Likewise.
8356 (s390_emit_ops_impl): Mark variable static.
8357 (s390x_emit_ops): Likewise.
8358
2e7b624b
YQ
83592016-06-17 Yao Qi <yao.qi@linaro.org>
8360
8361 * linux-low.c (handle_extended_wait): Call
8362 uninsert_reinsert_breakpoints for the parent process. Remove
8363 reinsert breakpoints from the child process. Reinsert them to
8364 the parent process when vfork is done.
8365 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8366 (reinsert_reinsert_breakpoints): New function.
8367 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8368 (reinsert_reinsert_breakpoints): Declare.
8369
8a81c5d7
YQ
83702016-06-17 Yao Qi <yao.qi@linaro.org>
8371
8372 * linux-low.c (handle_extended_wait): If the parent is doing
8373 step-over, remove the reinsert breakpoints from the forked child.
8374
f50bf8e5
YQ
83752016-06-17 Yao Qi <yao.qi@linaro.org>
8376
8377 * linux-low.c (unsuspend_all_lwps): Declare.
8378 (linux_low_filter_event): If thread exited, call finish_step_over.
8379 If step-over is finished, unsuspend other threads.
8380
8376a3cb
YQ
83812016-06-17 Yao Qi <yao.qi@linaro.org>
8382
8383 * linux-low.c (linux_resume_one_lwp_throw): Assert
8384 has_reinsert_breakpoints returns false.
8385 * mem-break.c (delete_disabled_breakpoints): Assert
8386 bp type isn't reinsert_breakpoint.
8387
f79b145d
YQ
83882016-06-17 Yao Qi <yao.qi@linaro.org>
8389
8390 * linux-low.c (maybe_hw_step): New function.
8391 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8392 (finish_step_over): Switch current_thread to lwp temporarily,
8393 and assert has_reinsert_breakpoints returns true.
8394 (proceed_one_lwp): Call maybe_hw_step.
8395 * mem-break.c (has_reinsert_breakpoints): New function.
8396 * mem-break.h (has_reinsert_breakpoints): Declare.
8397
0ae534d2
JT
83982016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8399
8400 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8401
fcdad592
YQ
84022016-05-17 Yao Qi <yao.qi@linaro.org>
8403
8404 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8405 instead of find_inferior.
8406
9e784964
YQ
84072016-05-05 Yao Qi <yao.qi@linaro.org>
8408
8409 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8410 Initialize res to zero.
8411
cf2ebb6e
YQ
84122016-05-05 Yao Qi <yao.qi@linaro.org>
8413
8414 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8415 to uint32_t.
8416
c1aebf87
UW
84172016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8418
8419 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8420 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8421 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8422
35fd2deb 84232016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8424 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8425
8426 * tracepoint.c (write_inferior_int8): New function.
8427 (cmd_qtenable_disable): Write enable flag using
8428 write_inferior_int8.
8429
484b3c32
YQ
84302016-04-25 Yao Qi <yao.qi@linaro.org>
8431
8432 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8433 (need_step_over_p): Return zero if the LWP has pending signals
8434 can be delivered on software single step target.
8435
85ba7d86
YQ
84362016-04-25 Yao Qi <yao.qi@linaro.org>
8437
8438 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8439 return instead of error.
8440
3539aa13
YQ
84412016-04-22 Yao Qi <yao.qi@linaro.org>
8442
8443 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8444 to 23.
8445
5b061e98
YQ
84462016-04-22 Yao Qi <yao.qi@linaro.org>
8447
8448 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8449 signal when stepping over breakpoint with software single
8450 step.
8451
3451269c
PA
84522016-04-21 Pedro Alves <palves@redhat.com>
8453
8454 * linux-s390-low.c (s390_collect_ptrace_register)
8455 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8456 add casts.
8457 (s390_check_regset): Use void * instead of gdb_byte *.
8458
a2358508
PA
84592016-04-20 Pedro Alves <palves@redhat.com>
8460
8461 * configure: Renegerate.
8462
6885166d
YQ
84632016-04-20 Yao Qi <yao.qi@linaro.org>
8464
8465 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8466 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8467 number 16.
8468 (arm_store_gregset): Likewise.
8469
2b863f51
WT
84702016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8471
8472 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8473 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8474 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8475 (amd64-avx-mpx-linux.c): New rules.
8476 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8477 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8478 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8479 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8480 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8481 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8482 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8483 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8484 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8485 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8486 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8487 * linux-x86-low.c (x86_linux_read_description): Add case for
8488 X86_XSTATE_AVX_MPX_MASK.
8489 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8490 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8491 init_registers_i386_avx_mpx_linux.
8492 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8493 (initialize_low_tracepoint): Call
8494 init_registers_i386_avx_mpx_linux.
8495 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8496 (initialize_low_tracepoint): Call
8497 init_registers_amd64_avx_mpx_linux.
8498 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8499 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8500 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8501 declarations.
8502
9b30624b
PA
85032016-04-18 Pedro Alves <palves@redhat.com>
8504
8505 * configure: Regenerate.
8506
45e3745e
AT
85072016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8508
8509 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8510 (aarch64_emit_sub): Likewise.
8511
2afc13ff
PA
85122016-04-12 Pedro Alves <palves@redhat.com>
8513
8514 * utils.c (prepare_to_throw_exception): Delete.
8515
6e774b13
SM
85162016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8517
8518 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8519
4dca19f8
MK
85202016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8521
8522 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8523
d0a9981f
MK
85242016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8525
8526 * linux-aarch64-ipa.c: Add <elf.h> include.
8527 * linux-ppc-ipa.c: Add <elf.h> include.
8528 * linux-s390-ipa.c: Add <elf.h> include.
8529
252db07e
MK
85302016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8531
8532 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8533 (get_raw_reg_ptr): Likewise.
8534 (get_trace_state_variable_value_ptr): Likewise.
8535 (set_trace_state_variable_value_ptr): Likewise.
8536 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8537 char *.
8538
14e2b6d9
MK
85392016-03-31 Wei-cheng Wang <cole945@gmail.com>
8540 Marcin Kościelnicki <koriakin@0x04.net>
8541
8542 PR/17221
8543 * linux-ppc-low.c (emit_insns): New function.
8544 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8545 (ppc_emit_prologue): New function.
8546 (ppc_emit_epilogue): New function.
8547 (ppc_emit_add): New function.
8548 (ppc_emit_sub): New function.
8549 (ppc_emit_mul): New function.
8550 (ppc_emit_lsh): New function.
8551 (ppc_emit_rsh_signed): New function.
8552 (ppc_emit_rsh_unsigned): New function.
8553 (ppc_emit_ext): New function.
8554 (ppc_emit_zero_ext): New function.
8555 (ppc_emit_log_not): New function.
8556 (ppc_emit_bit_and): New function.
8557 (ppc_emit_bit_or): New function.
8558 (ppc_emit_bit_xor): New function.
8559 (ppc_emit_bit_not): New function.
8560 (ppc_emit_equal): New function.
8561 (ppc_emit_less_signed): New function.
8562 (ppc_emit_less_unsigned): New function.
8563 (ppc_emit_ref): New function.
8564 (ppc_emit_const): New function.
8565 (ppc_emit_reg): New function.
8566 (ppc_emit_pop): New function.
8567 (ppc_emit_stack_flush): New function.
8568 (ppc_emit_swap): New function.
8569 (ppc_emit_stack_adjust): New function.
8570 (ppc_emit_call): New function.
8571 (ppc_emit_int_call_1): New function.
8572 (ppc_emit_void_call_2): New function.
8573 (ppc_emit_if_goto): New function.
8574 (ppc_emit_goto): New function.
8575 (ppc_emit_eq_goto): New function.
8576 (ppc_emit_ne_goto): New function.
8577 (ppc_emit_lt_goto): New function.
8578 (ppc_emit_le_goto): New function.
8579 (ppc_emit_gt_goto): New function.
8580 (ppc_emit_ge_goto): New function.
8581 (ppc_write_goto_address): New function.
8582 (ppc_emit_ops_impl): New static variable.
8583 (ppc64v1_emit_prologue): New function.
8584 (ppc64v2_emit_prologue): New function.
8585 (ppc64_emit_epilogue): New function.
8586 (ppc64_emit_add): New function.
8587 (ppc64_emit_sub): New function.
8588 (ppc64_emit_mul): New function.
8589 (ppc64_emit_lsh): New function.
8590 (ppc64_emit_rsh_signed): New function.
8591 (ppc64_emit_rsh_unsigned): New function.
8592 (ppc64_emit_ext): New function.
8593 (ppc64_emit_zero_ext): New function.
8594 (ppc64_emit_log_not): New function.
8595 (ppc64_emit_bit_and): New function.
8596 (ppc64_emit_bit_or): New function.
8597 (ppc64_emit_bit_xor): New function.
8598 (ppc64_emit_bit_not): New function.
8599 (ppc64_emit_equal): New function.
8600 (ppc64_emit_less_signed): New function.
8601 (ppc64_emit_less_unsigned): New function.
8602 (ppc64_emit_ref): New function.
8603 (ppc64_emit_const): New function.
8604 (ppc64v1_emit_reg): New function.
8605 (ppc64v2_emit_reg): New function.
8606 (ppc64_emit_pop): New function.
8607 (ppc64_emit_stack_flush): New function.
8608 (ppc64_emit_swap): New function.
8609 (ppc64v1_emit_call): New function.
8610 (ppc64v2_emit_call): New function.
8611 (ppc64v1_emit_int_call_1): New function.
8612 (ppc64v2_emit_int_call_1): New function.
8613 (ppc64v1_emit_void_call_2): New function.
8614 (ppc64v2_emit_void_call_2): New function.
8615 (ppc64_emit_if_goto): New function.
8616 (ppc64_emit_eq_goto): New function.
8617 (ppc64_emit_ne_goto): New function.
8618 (ppc64_emit_lt_goto): New function.
8619 (ppc64_emit_le_goto): New function.
8620 (ppc64_emit_gt_goto): New function.
8621 (ppc64_emit_ge_goto): New function.
8622 (ppc64v1_emit_ops_impl): New static variable.
8623 (ppc64v2_emit_ops_impl): New static variable.
8624 (ppc_emit_ops): New function.
8625 (linux_low_target): Wire in ppc_emit_ops.
8626
a2174ba4
MK
86272016-03-31 Wei-cheng Wang <cole945@gmail.com>
8628 Marcin Kościelnicki <koriakin@0x04.net>
8629
8630 PR/17221
8631 * Makefile.in: Add powerpc-*-ipa.o
8632 * configure.srv: Add ipa_obj for powerpc*-linux.
8633 * linux-ppc-ipa.c: New file.
8634 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8635 includes.
8636 (PPC_FIELD): New macro.
8637 (PPC_SEXT): New macro.
8638 (PPC_OP6): New macro.
8639 (PPC_BO): New macro.
8640 (PPC_LI): New macro.
8641 (PPC_BD): New macro.
8642 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8643 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8644 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8645 (ppc_get_thread_area): New function.
8646 (is_elfv2_inferior): New function.
8647 (gen_ds_form): New function.
8648 (GEN_STD): New macro.
8649 (GEN_STDU): New macro.
8650 (GEN_LD): New macro.
8651 (GEN_LDU): New macro.
8652 (gen_d_form): New function.
8653 (GEN_ADDI): New macro.
8654 (GEN_ADDIS): New macro.
8655 (GEN_LI): New macro.
8656 (GEN_LIS): New macro.
8657 (GEN_ORI): New macro.
8658 (GEN_ORIS): New macro.
8659 (GEN_LWZ): New macro.
8660 (GEN_STW): New macro.
8661 (GEN_STWU): New macro.
8662 (gen_xfx_form): New function.
8663 (GEN_MFSPR): New macro.
8664 (GEN_MTSPR): New macro.
8665 (GEN_MFCR): New macro.
8666 (GEN_MTCR): New macro.
8667 (GEN_SYNC): New macro.
8668 (GEN_LWSYNC): New macro.
8669 (gen_x_form): New function.
8670 (GEN_OR): New macro.
8671 (GEN_MR): New macro.
8672 (GEN_LWARX): New macro.
8673 (GEN_STWCX): New macro.
8674 (GEN_CMPW): New macro.
8675 (gen_md_form): New function.
8676 (GEN_RLDICL): New macro.
8677 (GEN_RLDICR): New macro.
8678 (gen_i_form): New function.
8679 (GEN_B): New macro.
8680 (GEN_BL): New macro.
8681 (gen_b_form): New function.
8682 (GEN_BNE): New macro.
8683 (GEN_LOAD): New macro.
8684 (GEN_STORE): New macro.
8685 (gen_limm): New function.
8686 (gen_atomic_xchg): New function.
8687 (gen_call): New function.
8688 (ppc_relocate_instruction): New function.
8689 (ppc_install_fast_tracepoint_jump_pad): New function.
8690 (ppc_get_min_fast_tracepoint_insn_len): New function.
8691 (ppc_get_ipa_tdesc_idx): New function.
8692 (the_low_target): Wire in the new functions.
8693 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8694 tdescs.
8695 * linux-ppc-tdesc.h: New file.
8696
a13c4696
MK
86972016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8698
8699 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8700 (alloc_jump_pad_buffer): New function.
8701 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8702 (alloc_jump_pad_buffer): New function.
8703 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8704 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8705 (alloc_jump_pad_buffer): New function.
8706 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8707 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8708 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8709 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8710
1cda1512
MK
87112016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8712
8713 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8714 * linux-amd64-ipa.c: Likewise.
8715 * linux-i386-ipa.c: Likewise.
8716 * linux-s390-ipa.c: Likewise.
8717 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8718 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8719 set_trace_state_variable_value_ptr.
8720 (struct ipa_sym_addresses): Likewise.
8721 (symbol_list): Likewise.
8722 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8723 accessing gdb_collect directly.
8724 (gdb_collect_ptr_type): New typedef.
8725 (get_raw_reg_ptr_type): New typedef.
8726 (get_trace_state_variable_value_ptr_type): New typedef.
8727 (set_trace_state_variable_value_ptr_type): New typedef.
8728 (gdb_collect_ptr): New global.
8729 (get_raw_reg_ptr): New global.
8730 (get_trace_state_variable_value_ptr): New global.
8731 (set_trace_state_variable_value_ptr): New global.
8732 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8733 accessing get_raw_reg directly.
8734 (get_get_tsv_func_addr): Likewise for
8735 get_trace_state_variable_value_ptr.
8736 (get_set_tsv_func_addr): Likewise for
8737 set_trace_state_variable_value_ptr.
8738 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8739
72fb5488
SM
87402016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8741
8742 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8743
28170b88
MK
87442016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8745
8746 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8747 packets.
8748 (relocate_instruction): Remove own_buf.
8749 * server.c (own_buf): Make global.
8750 (handle_v_requests): Make global.
8751 * server.h (own_buf): New declaration.
8752 (handle_v_requests): New prototype.
8753
f39e8743
MK
87542016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8755
8756 PR 18377
8757 * linux-s390-low.c (add_insns): New function.
8758 (s390_emit_prologue): New function.
8759 (s390_emit_epilogue): New function.
8760 (s390_emit_add): New function.
8761 (s390_emit_sub): New function.
8762 (s390_emit_mul): New function.
8763 (s390_emit_lsh): New function.
8764 (s390_emit_rsh_signed): New function.
8765 (s390_emit_rsh_unsigned): New function.
8766 (s390_emit_ext): New function.
8767 (s390_emit_log_not): New function.
8768 (s390_emit_bit_and): New function.
8769 (s390_emit_bit_or): New function.
8770 (s390_emit_bit_xor): New function.
8771 (s390_emit_bit_not): New function.
8772 (s390_emit_equal): New function.
8773 (s390_emit_less_signed): New function.
8774 (s390_emit_less_unsigned): New function.
8775 (s390_emit_ref): New function.
8776 (s390_emit_if_goto): New function.
8777 (s390_emit_goto): New function.
8778 (s390_write_goto_address): New function.
8779 (s390_emit_litpool): New function.
8780 (s390_emit_const): New function.
8781 (s390_emit_call): New function.
8782 (s390_emit_reg): New function.
8783 (s390_emit_pop): New function.
8784 (s390_emit_stack_flush): New function.
8785 (s390_emit_zero_ext): New function.
8786 (s390_emit_swap): New function.
8787 (s390_emit_stack_adjust): New function.
8788 (s390_emit_set_r2): New function.
8789 (s390_emit_int_call_1): New function.
8790 (s390_emit_void_call_2): New function.
8791 (s390_emit_eq_goto): New function.
8792 (s390_emit_ne_goto): New function.
8793 (s390_emit_lt_goto): New function.
8794 (s390_emit_le_goto): New function.
8795 (s390_emit_gt_goto): New function.
8796 (s390_emit_ge_goto): New function.
8797 (s390x_emit_prologue): New function.
8798 (s390x_emit_epilogue): New function.
8799 (s390x_emit_add): New function.
8800 (s390x_emit_sub): New function.
8801 (s390x_emit_mul): New function.
8802 (s390x_emit_lsh): New function.
8803 (s390x_emit_rsh_signed): New function.
8804 (s390x_emit_rsh_unsigned): New function.
8805 (s390x_emit_ext): New function.
8806 (s390x_emit_log_not): New function.
8807 (s390x_emit_bit_and): New function.
8808 (s390x_emit_bit_or): New function.
8809 (s390x_emit_bit_xor): New function.
8810 (s390x_emit_bit_not): New function.
8811 (s390x_emit_equal): New function.
8812 (s390x_emit_less_signed): New function.
8813 (s390x_emit_less_unsigned): New function.
8814 (s390x_emit_ref): New function.
8815 (s390x_emit_if_goto): New function.
8816 (s390x_emit_const): New function.
8817 (s390x_emit_call): New function.
8818 (s390x_emit_reg): New function.
8819 (s390x_emit_pop): New function.
8820 (s390x_emit_stack_flush): New function.
8821 (s390x_emit_zero_ext): New function.
8822 (s390x_emit_swap): New function.
8823 (s390x_emit_stack_adjust): New function.
8824 (s390x_emit_int_call_1): New function.
8825 (s390x_emit_void_call_2): New function.
8826 (s390x_emit_eq_goto): New function.
8827 (s390x_emit_ne_goto): New function.
8828 (s390x_emit_lt_goto): New function.
8829 (s390x_emit_le_goto): New function.
8830 (s390x_emit_gt_goto): New function.
8831 (s390x_emit_ge_goto): New function.
8832 (s390_emit_ops): New function.
8833 (struct linux_target_ops): Fill in emit_ops hook.
8834
abd9baf9
MK
88352016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8836
8837 PR 18377
8838 * Makefile.in: Add s390 IPA files.
8839 * configure.srv: Build IPA for s390.
8840 * linux-s390-ipa.c: New file.
8841 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8842 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8843 (tdesc_s390_linux32): Likewise.
8844 (init_registers_s390_linux32v1): Likewise.
8845 (tdesc_s390_linux32v1): Likewise.
8846 (init_registers_s390_linux32v2): Likewise.
8847 (tdesc_s390_linux32v2): Likewise.
8848 (init_registers_s390_linux64): Likewise.
8849 (tdesc_s390_linux64): Likewise.
8850 (init_registers_s390_linux64v1): Likewise.
8851 (tdesc_s390_linux64v1): Likewise.
8852 (init_registers_s390_linux64v2): Likewise.
8853 (tdesc_s390_linux64v2): Likewise.
8854 (init_registers_s390_te_linux64): Likewise.
8855 (tdesc_s390_te_linux64): Likewise.
8856 (init_registers_s390_vx_linux64): Likewise.
8857 (tdesc_s390_vx_linux64): Likewise.
8858 (init_registers_s390_tevx_linux64): Likewise.
8859 (tdesc_s390_tevx_linux64): Likewise.
8860 (init_registers_s390x_linux64): Likewise.
8861 (tdesc_s390x_linux64): Likewise.
8862 (init_registers_s390x_linux64v1): Likewise.
8863 (tdesc_s390x_linux64v1): Likewise.
8864 (init_registers_s390x_linux64v2): Likewise.
8865 (tdesc_s390x_linux64v2): Likewise.
8866 (init_registers_s390x_te_linux64): Likewise.
8867 (tdesc_s390x_te_linux64): Likewise.
8868 (init_registers_s390x_vx_linux64): Likewise.
8869 (tdesc_s390x_vx_linux64): Likewise.
8870 (init_registers_s390x_tevx_linux64): Likewise.
8871 (tdesc_s390x_tevx_linux64): Likewise.
8872 (have_hwcap_s390_vx): New static variable.
8873 (s390_arch_setup): Fill have_hwcap_s390_vx.
8874 (s390_get_thread_area): New function.
8875 (s390_ft_entry_gpr_esa): New const.
8876 (s390_ft_entry_gpr_zarch): New const.
8877 (s390_ft_entry_misc): New const.
8878 (s390_ft_entry_fr): New const.
8879 (s390_ft_entry_vr): New const.
8880 (s390_ft_main_31): New const.
8881 (s390_ft_main_64): New const.
8882 (s390_ft_exit_fr): New const.
8883 (s390_ft_exit_vr): New const.
8884 (s390_ft_exit_misc): New const.
8885 (s390_ft_exit_gpr_esa): New const.
8886 (s390_ft_exit_gpr_zarch): New const.
8887 (append_insns): New function.
8888 (s390_relocate_instruction): New function.
8889 (s390_install_fast_tracepoint_jump_pad): New function.
8890 (s390_get_min_fast_tracepoint_insn_len): New function.
8891 (s390_get_ipa_tdesc_idx): New function.
8892 (struct linux_target_ops): Wire in the above functions.
8893 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8894 * linux-s390-tdesc.h: New file.
8895
a4105d04
MK
88962016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8897
8898 * linux-s390-low.c (s390_supports_tracepoints): New function.
8899 (struct linux_target_ops): Fill supports_tracepoints hook.
8900
35ac8b3e
YQ
89012016-03-18 Yao Qi <yao.qi@linaro.org>
8902
8903 * linux-low.c (lwp_signal_can_be_delivered): New function.
8904 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8905
94610ec4
YQ
89062016-03-18 Yao Qi <yao.qi@linaro.org>
8907
8908 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8909 0 if signal is enqueued. Remove 'signal' from one debugging
8910 message. Move one debugging message to some lines below.
8911 Remove code setting 'signal' to 0.
8912
80aea927
YQ
89132016-03-18 Yao Qi <yao.qi@linaro.org>
8914
8915 * linux-low.c (linux_low_filter_event): Remove redundant
8916 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8917
b04fd3be
MK
89182016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8919
8920 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8921 (struct linux_target_ops): Wire in the above.
8922
c40c8d4b
YQ
89232016-03-03 Yao Qi <yao.qi@linaro.org>
8924
8925 * linux-low.c: Update comments to start_step_over.
8926
0f8288ae
YQ
89272016-03-03 Yao Qi <yao.qi@linaro.org>
8928
8929 PR server/19736
8930 * linux-low.c (handle_extended_wait): Set child suspended
8931 if event_lwp->bp_reinsert isn't zero.
8932
fdbd04a8
YQ
89332016-03-02 Yao Qi <yao.qi@linaro.org>
8934
8935 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8936 enqueue_pending_signal.
8937
6896a8fa
MK
89382016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8939
8940 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8941 is actually loaded.
8942
ab503087
MK
89432016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8944
8945 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8946 (s390_regmap_3264) [!__s390x__]: New global.
8947 (s390_collect_ptrace_register): Skip map entries containing -1.
8948 (s390_supply_ptrace_register): Ditto.
8949 (s390_fill_gprs_high): New function.
8950 (s390_store_gprs_high): New function.
8951 (s390_regsets): Add NT_S390_HIGH_GPRS.
8952 (s390_get_hwcap): Enable on 31-bit.
8953 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8954 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8955 Detect NT_S390_HIGH_GPRS.
8956 (s390_usrregs_info_3264): Enable on 31-bit.
8957 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8958 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8959
ae91f625
MK
89602016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8961
8962 PR gdb/13808
8963 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8964 * configure.srv: Ditto.
8965 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8966 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8967 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8968 (init_registers_amd64_linux): Remove prototype.
8969 (tdesc_amd64_linux): Remove declaration.
8970 (get_ipa_tdesc): New function.
8971 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8972 initialize remaining tdescs.
8973 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8974 (init_registers_i386_linux): Remove prototype.
8975 (tdesc_i386_linux): Remove declaration.
8976 (get_ipa_tdesc): New function.
8977 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8978 initialize remaining tdescs.
8979 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8980 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8981 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8982 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8983 (x86_get_ipa_tdesc_idx): New function.
8984 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8985 * linux-x86-tdesc.h: New file.
8986 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8987 (target_get_ipa_tdesc_idx): New macro.
8988 * tracepoint.c (ipa_tdesc_idx): New macro.
8989 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8990 (symbol_list): Add ipa_tdesc_idx.
8991 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8992 (ipa_tdesc): Remove.
8993 (ipa_tdesc_idx): New variable.
8994 (get_context_regcache): Use get_ipa_tdesc.
8995 (gdb_collect): Ditto.
8996 (gdb_probe): Ditto.
8997 * tracepoint.h (get_ipa_tdesc): New prototype.
8998 (ipa_tdesc): Remove.
8999
e7ad2f14
PA
90002016-02-24 Pedro Alves <palves@redhat.com>
9001
9002 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9003 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9004 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9005 Factor out common code between the USE_SIGTRAP_SIGINFO and
9006 !USE_SIGTRAP_SIGINFO blocks.
9007 (linux_low_filter_event): Call save_stop_reason instead of
9008 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9009 Update comments.
9010 (linux_wait_1): Update comments.
9011
657f9cde
WW
90122016-02-24 Wei-cheng Wang <cole945@gmail.com>
9013
9014 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9015 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9016 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9017 ppc_insert_point, ppc_remove_point.
9018
b00b61e1
MK
90192016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9020
9021 * linux-s390-low.c (s390_supports_z_point_type): New function.
9022 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9023
553cb527
YQ
90242016-02-16 Yao Qi <yao.qi@linaro.org>
9025
9026 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9027 PC. Get pc from regcache_read_pc.
9028
a5652c21
YQ
90292016-02-12 Yao Qi <yao.qi@linaro.org>
9030
9031 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9032 or linux_get_pc_32bit.
9033 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9034
ed443b61
YQ
90352016-02-12 Yao Qi <yao.qi@linaro.org>
9036
9037 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9038 arm_linux_get_next_pcs_fixup.
9039
020ecd38
MK
90402016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9041
9042 * tracepoint.c (x_tracepoint_action_download): Change
9043 write_inferior_data_ptr to write_inferior_data_pointer.
9044 (cmd_qtstart): Likewise.
9045 (write_inferior_data_ptr): Remove.
9046 (download_agent_expr): Change write_inferior_data_ptr to
9047 write_inferior_data_pointer.
9048 (download_tracepoint_1): Likewise.
9049 (download_tracepoint): Likewise.
9050 (download_trace_state_variables): Likewise.
9051
7cae9051
WW
90522016-02-11 Wei-cheng Wang <cole945@gmail.com>
9053 Marcin Kościelnicki <koriakin@0x04.net>
9054
9055 * tracepoint.c (struct tracepoint_action_ops): Remove.
9056 (struct tracepoint_action): Remove ops.
9057 (m_tracepoint_action_download, r_tracepoint_action_download)
9058 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9059 size and offset accordingly.
9060 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9061 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9062 (tracepoint_action_send, tracepoint_action_download): New functions.
9063 Helpers for trace action handlers.
9064 (add_tracepoint_action): Remove setup actions ops.
9065 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9066
9f6a71b4
YQ
90672016-02-10 Yao Qi <yao.qi@linaro.org>
9068
9069 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9070
1e94266c
SM
90712016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9072
9073 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9074 to AC_OUTPUT.
9075 * configure: Regenerate.
9076
8adce034
SM
90772016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9078
9079 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9080 void * to gdb_byte *.
9081 * linux-low.c (siginfo_fixup): Likewise.
9082 (linux_xfer_siginfo): Likewise.
9083 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9084 Likewise.
9085 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9086
93813b37
WT
90872016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9088
9089 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9090 to srv_tgtobj.
9091 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9092 to srv_tgtobj.
9093 * linux-x86-low.c [__x86_64__]: Include
9094 "nat/amd64-linux-siginfo.h".
9095 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9096 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9097 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9098 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9099 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9100 (cpt_si_fd, si_timerid, si_overrun): Move from
9101 nat/amd64-linux-siginfo.c.
9102 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9103
8424cc97
SM
91042016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9105
9106 * server.c (skip_to_semicolon): Remove.
9107 (process_point_options): Use strchrnul instead of
9108 skip_to_semicolon.
9109
4d18591b
YQ
91102016-01-26 Yao Qi <yao.qi@linaro.org>
9111
9112 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9113 * linux-low.c (install_software_single_step_breakpoints): Don't
9114 call regcache_read_pc.
9115 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9116 argument pc.
9117
d8020970
YQ
91182016-01-26 Yao Qi <yao.qi@linaro.org>
9119
9120 * linux-low.c (install_software_single_step_breakpoints): Call
9121 regcache_read_pc instead of get_pc.
9122
8b207339
YQ
91232016-01-26 Yao Qi <yao.qi@linaro.org>
9124
9125 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9126 (unblock_async_io): Rename to ...
9127 (block_unblock_async_io): ... it. New function.
9128 (enable_async_io): Don't install SIGIO handler. Unblock it
9129 instead.
9130 (disable_async_io): Don't ignore SIGIO. Block it instead.
9131 (initialize_async_io): Install SIGIO handler. Don't call
9132 unblock_async_io.
9133
18879fef
YQ
91342016-01-26 Yao Qi <yao.qi@linaro.org>
9135
9136 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9137 first character is '\003', call *the_target->request_interrupt.
9138
a0f8e08a
YQ
91392016-01-25 Yao Qi <yao.qi@linaro.org>
9140
9141 * remote-utils.c (new_thread_notify): Remove.
9142 (dead_thread_notify): Likewise.
9143 * remote-utils.h (new_thread_notify): Remove declaration.
9144 (dead_thread_notify): Likewise.
9145
cc5fd9ab
MK
91462016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9147
9148 * gdb.trace/pending.exp: Fix expected message on continue.
9149
99e8eb11
MK
91502016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9151
9152 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9153 it works properly on big-endian machines where sizeof (CORE_ADDR)
9154 != sizeof (void *).
9155
a994041d
PA
91562016-01-21 Pedro Alves <palves@redhat.com>
9157
9158 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9159 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9160 * configure: Regenerate.
9161
f7a6a40d
YQ
91622016-01-21 Yao Qi <yao.qi@linaro.org>
9163
9164 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9165 is_thumb and set it according to CPSR saved on the stack.
9166 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9167 arm_sigreturn_next_pc.
9168
6f69e520
YQ
91692016-01-18 Yao Qi <yao.qi@linaro.org>
9170
9171 * linux-low.c (linux_set_pc_64bit): New function.
9172 (linux_get_pc_64bit): New function.
9173 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9174 Declare.
9175 * linux-sparc-low.c (debug_threads): Remove declaration.
9176 (sparc_get_pc): Remove.
9177 (the_low_target): Use linux_get_pc_64bit instead of
9178 sparc_get_pc.
9179 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9180 (the_low_target): Use linux_get_pc_64bit and
9181 linux_set_pc_64bit.
9182
276d4552
YQ
91832016-01-18 Yao Qi <yao.qi@linaro.org>
9184
9185 * linux-arm-low.c (debug_threads): Remove declaration.
9186 (arm_get_pc, arm_set_pc): Remove.
9187 (the_low_target): Use linux_get_pc_32bit and
9188 linux_set_pc_32bit.
9189 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9190 (the_low_target): Use linux_get_pc_32bit and
9191 linux_set_pc_32bit.
9192 * linux-cris-low.c (debug_threads): Remove declaration.
9193 (cris_get_pc, cris_set_pc,): Remove.
9194 (the_low_target): Use linux_get_pc_32bit and
9195 linux_set_pc_32bit.
9196 * linux-crisv32-low.c (debug_threads): Remove declaration.
9197 (cris_get_pc, cris_set_pc): Remove.
9198 (the_low_target): Use linux_get_pc_32bit and
9199 linux_set_pc_32bit.
9200 * linux-low.c: Include inttypes.h.
9201 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9202 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9203 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9204 (the_low_target): Use linux_get_pc_32bit and
9205 linux_set_pc_32bit.
9206 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9207 (the_low_target): Use linux_get_pc_32bit and
9208 linux_set_pc_32bit.
9209 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9210 (the_low_target): Use linux_get_pc_32bit and
9211 linux_set_pc_32bit.
9212 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9213 (the_low_target): Use linux_get_pc_32bit and
9214 linux_set_pc_32bit.
9215 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9216 (the_low_target): Use linux_get_pc_32bit and
9217 linux_set_pc_32bit.
9218
eb0edac8
GB
92192016-01-18 Gary Benson <gbenson@redhat.com>
9220
9221 * configure.ac (AC_FUNC_FORK): New check.
9222 * config.in: Regenerate.
9223 * configure: Likewise.
9224
1b451dda
YQ
92252016-01-14 Yao Qi <yao.qi@linaro.org>
9226
9227 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9228 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9229 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9230 arm_get_next_pcs_ctor.
9231
82075af2
JS
92322016-01-12 Josh Stone <jistone@redhat.com>
9233 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9234
9235 * inferiors.h: Include "gdb_vecs.h".
9236 (struct process_info): Add syscalls_to_catch.
9237 * inferiors.c (remove_process): Free syscalls_to_catch.
9238 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9239 syscall_return stops.
9240 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9241 * server.c (handle_general_set): Handle QCatchSyscalls.
9242 (handle_query): Report support for QCatchSyscalls.
9243 * target.h (struct target_ops): Add supports_catch_syscall.
9244 (target_supports_catch_syscall): New macro.
9245 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9246 (struct lwp_info): Add syscall_state.
9247 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9248 Maintain syscall_state and syscalls_to_catch across exec.
9249 (get_syscall_trapinfo): New function, proxy to the_low_target.
9250 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9251 (linux_low_filter_event): Toggle syscall_state entry/return for
9252 syscall traps, and set it ignored for all others.
9253 (gdb_catching_syscalls_p): New function.
9254 (gdb_catch_this_syscall_p): New function.
9255 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9256 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9257 (linux_supports_catch_syscall): New function.
9258 (linux_target_ops): Install it.
9259 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9260 (the_low_target): Install it.
9261
8f13a3ce
MF
92622016-01-12 Mike Frysinger <vapier@gentoo.org>
9263
9264 * acinclude.m4: Include new ../warning.m4 file.
9265 * configure: Regenerated.
9266 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9267
5b3da067
MF
92682016-01-12 Mike Frysinger <vapier@gentoo.org>
9269
9270 * ax.c (is_goto_target): Mark static.
9271 * linux-low.c (register_addr): Likewise.
9272 (linux_fetch_registers, linux_store_registers): Likewise.
9273 * mem-break.c (any_persistent_commands): Fix old prototype.
9274 (add_commands_to_breakpoint): Mark static.
9275 * regcache.c (find_register_by_name): Delete unused func.
9276 * remote-utils.c (hex_or_minus_one): Mark static.
9277 * server.c (monitor_show_help): Mark static.
9278 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9279 handle_v_requests): Likewise.
9280
bc504a31
PA
92812016-01-12 Pedro Alves <palves@redhat.com>
9282
9283 Remove use of the registered trademark symbol throughout.
9284
5a0dd67a
YQ
92852016-01-08 Yao Qi <yao.qi@linaro.org>
9286
9287 * remote-utils.c (getpkt): If c is '\003', call target hook
9288 request_interrupt.
9289
b2ca446f
YQ
92902016-01-06 Yao Qi <yao.qi@linaro.org>
9291
9292 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9293 linux-aarch32-low.c.
9294 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9295 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9296 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9297 (thumb2_breakpoint): Declare.
9298 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9299 linux-aarch32-low.h.
9300 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9301 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9302 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9303
edd88788
JB
93042016-01-01 Joel Brobecker <brobecker@adacore.com>
9305
9306 * gdbreplay.c (gdbreplay_version): Change copyright year in
9307 version message.
9308 * server.c (gdbserver_version): Likewise.
9309
65da7f14
PP
93102015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9311
9312 * server.c (crc32_table): Delete.
9313 (crc32): Use libiberty's xcrc32 function.
9314
4abd5ed2
JB
93152015-12-22 Joel Brobecker <brobecker@adacore.com>
9316
9317 * lynx-low.c (lynx_delete_thread_callback): New function.
9318 (lynx_mourn): Properly delete our process and all of its
9319 threads. Remove call to clear_inferiors.
9320
0e50fe5c
JB
93212015-12-22 Joel Brobecker <brobecker@adacore.com>
9322
9323 * target.c (thread_search_callback): Add check that
9324 the thread_stopped target callback is not NULL before
9325 calling it.
9326
35adc03f
YQ
93272015-12-21 Yao Qi <yao.qi@linaro.org>
9328
9329 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9330 arm breakpoint.
9331
bd2b2909
AT
93322015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9333
9334 * server.c (handle_query): Call target_supports_software_single_step.
9335
7fe5e27e
AT
93362015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9337
9338 * linux-low.c (single_step): New function.
9339 (linux_resume_one_lwp_throw): Call single_step.
9340 (start_step_over): Likewise.
9341
d9311bfa
AT
93422015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9343
9344 * Makefile.in (SFILES): Append arch/arm-linux.c,
9345 arch/arm-get-next-pcs.c.
9346 (arm-linux.o): New rule.
9347 (arm-get-next-pcs.o): New rule.
9348 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9349 arm-linux.o.
9350 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9351 to linux-aarch32-low.c.
9352 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9353 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9354 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9355 (thumb2_breakpoint_len): Likewise.
9356 (arm_is_thumb_mode): Make non-static.
9357 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9358 from linux-aarch32-low.c.
9359 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9360 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9361 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9362 (thumb2_breakpoint_len): Likewise.
9363 (arm_is_thumb_mode): New declaration.
9364 * linux-arm-low.c: Include arch/arm-linux.h
9365 aarch/arm-get-next-pcs.h, sys/syscall.h.
9366 (get_next_pcs_ops): New struct.
9367 (get_next_pcs_addr_bits_remove): New function.
9368 (get_next_pcs_is_thumb): New function.
9369 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9370 (arm_sigreturn_next_pc): Likewise.
9371 (get_next_pcs_syscall_next_pc): Likewise.
9372 (arm_gdbserver_get_next_pcs): Likewise.
9373 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9374 Initialize.
9375 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9376 * server.h: Include gdb_vecs.h.
9377
68ce2059
AT
93782015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9379
9380 * Makefile.in (SFILES): Append common/common-regcache.c.
9381 (OBS): Append common-regcache.o.
9382 (common-regcache.o): New rule.
9383 * regcache.c (init_register_cache): Initialize cache to
9384 REG_UNAVAILABLE.
9385 (regcache_raw_read_unsigned): New function.
9386 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9387 register_status enum.
9388
fa5308bd
AT
93892015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9390
9391 * linux-aarch64-low.c (the_low_targets): Rename
9392 breakpoint_reinsert_addr to get_next_pcs.
9393 * linux-arm-low.c (the_low_targets): Likewise.
9394 * linux-bfin-low.c (the_low_targets): Likewise.
9395 * linux-cris-low.c (the_low_targets): Likewise.
9396 * linux-crisv32-low.c (the_low_targets): Likewise.
9397 * linux-low.c (can_software_single_step): Likewise.
9398 (install_software_single_step_breakpoints): New function.
9399 (start_step_over): Use install_software_single_step_breakpoints.
9400 * linux-low.h: New CORE_ADDR vector.
9401 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9402 get_next_pcs.
9403 * linux-mips-low.c (the_low_targets): Likewise.
9404 * linux-nios2-low.c (the_low_targets): Likewise.
9405 * linux-sparc-low.c (the_low_targets): Likewise.
9406
4a6ed09b
PA
94072015-12-17 Pedro Alves <palves@redhat.com>
9408
9409 * linux-low.c (linux_kill_one_lwp): Remove references to
9410 LinuxThreads.
9411 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9412 to 'kill'.
9413 (linux_init_signals): Delete.
9414 (initialize_low): Adjust.
9415 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9416
7544db95
PA
94172015-12-16 Pedro Alves <palves@redhat.com>
9418
9419 * configure.ac (compiler warning flags): When testing a
9420 -Wno-foo option, check whether -Wfoo works instead.
9421 * configure: Regenerate.
9422
8020350c
DB
94232015-12-11 Don Breazeal <donb@codesourcery.com>
9424
9425 * server.c (process_serial_event): Don't exit from gdbserver
9426 in remote mode if there are still active inferiors.
9427
db91f502
YQ
94282015-12-11 Yao Qi <yao.qi@linaro.org>
9429
9430 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9431 arm_breakpoint_at if the process is 32-bit.
9432
b37a6290
YQ
94332015-12-11 Yao Qi <yao.qi@linaro.org>
9434
9435 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9436 arm breakpoint.
9437
17b1509a
YQ
94382015-12-07 Yao Qi <yao.qi@linaro.org>
9439
9440 * configure.srv: Append arm.o to srv_tgtobj for
9441 aarch64*-*-linux* target.
9442 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9443 from linux-arm-low.c.
9444 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9445 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9446 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9447 (thumb2_breakpoint_len): Likewise.
9448 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9449 (arm_breakpoint_kinds): Likewise.
9450 (arm_breakpoint_kind_from_pc): Likewise.
9451 (arm_sw_breakpoint_from_kind): Likewise.
9452 (arm_breakpoint_kind_from_current_state): Likewise.
9453 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9454 (arm_sw_breakpoint_from_kind): Declare.
9455 (arm_breakpoint_kind_from_current_state): Declare.
9456 (arm_breakpoint_at): Declare.
9457 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9458 arm_sw_breakpoint_from_kind if process is 32-bit.
9459 (aarch64_breakpoint_kind_from_pc): New function.
9460 (aarch64_breakpoint_kind_from_current_state): New function.
9461 (the_low_target): Initialize fields breakpoint_kind_from_pc
9462 and breakpoint_kind_from_current_state.
9463 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9464 linux-aarch32-low.c.
9465 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9466 (arm_breakpoint, arm_breakpoint_len): Likewise.
9467 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9468 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9469 (arm_is_thumb_mode): Likewise.
9470 (arm_breakpoint_at): Likewise.
9471 (arm_breakpoint_kind_from_pc): Likewise.
9472 (arm_sw_breakpoint_from_kind): Likewise.
9473 (arm_breakpoint_kind_from_current_state): Likewise.
9474
9475 Revert:
9476 2015-08-04 Yao Qi <yao.qi@linaro.org>
9477
9478 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9479 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9480 * server.c (extended_protocol): Remove "static".
9481 * server.h (extended_protocol): Declare it.
9482
ece66d65
JS
94832015-12-04 Josh Stone <jistone@redhat.com>
9484
9485 * target.h (struct target_ops) <arch_setup>: Rename to ...
9486 (struct target_ops) <post_create_inferior>: ... this.
9487 (target_arch_setup): Rename to ...
9488 (target_post_create_inferior): ... this, calling post_create_inferior.
9489 * server.c (start_inferior): Update target_arch_setup calls to
9490 target_post_create_inferior.
9491 * linux-low.c (linux_low_ptrace_options): Forward declare.
9492 (linux_arch_setup): Update its comment for general use.
9493 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9494 (struct linux_target_ops): Use linux_post_create_inferior.
9495 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9496 to post_create_inferior.
9497 * nto-low.c (struct nto_target_ops): Likewise.
9498 * spu-low.c (struct spu_target_ops): Likewise.
9499 * win32-low.c (struct win32_target_ops): Likewise.
9500
e58c48b4
AT
95012015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9502
9503 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9504
fbec8956
AT
95052015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9506
9507 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9508 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9509 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9510 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9511 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9512 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9513 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9514 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9515 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9516 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9517 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9518 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9519
9b4c5f87
AT
95202015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9521
9522 * linux-low.c (linux_look_up_symbols): Don't call
9523 linux_supports_traceclone.
9524 * linux-low.h (thread_db_init): Remove use_events argument.
9525 * thread-db.c (thread_db_use_event): Remove global variable.
9526 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9527 (struct thread_db) <td_create_bp>: Remove field.
9528 (thread_db_create_event): Remove function.
9529 (thread_db_enable_reporting): Likewise.
9530 (find_one_thread): Don't check for thread_db_use_events.
9531 (attach_thread): Likewise.
9532 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9533 (try_thread_db_load_1): Don't check for thread_db_use_events.
9534 (thread_db_init): Remove use_events argument and thread events
9535 handling.
9536 (remove_thread_event_breakpoints): Remove function.
9537 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9538
7d00775e
AT
95392015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9540
9541 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9542 New function.
9543 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9544 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9545 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9546 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9547 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9548 Initialize.
9549 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9550 New function.
9551 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9552 * linux-low.c (can_hardware_single_step): Use
9553 supports_hardware_single_step.
9554 (can_software_single_step): New function.
9555 (start_step_over): Call can_software_single_step.
9556 (linux_supports_hardware_single_step): New function.
9557 (struct target_ops) <supports_software_single_step>: Initialize.
9558 * linux-low.h (struct linux_target_ops)
9559 <supports_hardware_single_step>: Initialize.
9560 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9561 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9562 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9563 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9564 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9565 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9566 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9567 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9568 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9569 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9570 Initialize.
9571 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9572 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9573 Initialize.
9574 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9575 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9576 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9577 New function.
9578 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9579 * target.h (struct target_ops): <supports_software_single_step>:
9580 New field.
9581 (target_supports_software_single_step): New macro.
9582
2d97cd35
AT
95832015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9584
9585 * linux-low.c (linux_wait_1): Fix pc advance condition.
9586 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9587 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9588
769ef81f
AT
95892015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9590
9591 * linux-arm-low.c (arm_is_thumb_mode): New function.
9592 (arm_breakpoint_at): Use arm_is_thumb_mode.
9593 (arm_breakpoint_kind_from_current_state): New function.
9594 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9595 Initialize.
9596 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9597 (linux_breakpoint_kind_from_current_state): New function.
9598 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9599 * linux-low.h (struct linux_target_ops)
9600 <breakpoint_kind_from_current_state>: New field.
9601 * target.h (struct target_ops): Likewise.
9602 (target_breakpoint_kind_from_current_state): New macro.
9603
1bebeeca
PA
96042015-11-30 Pedro Alves <palves@redhat.com>
9605
9606 * linux-low.c (linux_resume): Wake up the event loop before
9607 returning.
9608
a67a9fae
PA
96092015-11-30 Pedro Alves <palves@redhat.com>
9610
9611 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9612 check.
9613 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9614 to -1.
9615 * target.c (struct thread_search): New structure.
9616 (thread_search_callback): New function.
9617 (prev_general_thread): New global.
9618 (prepare_to_access_memory, done_accessing_memory): New functions.
9619 * target.h (prepare_to_access_memory, done_accessing_memory):
9620 Replace macros with function declarations.
9621
f2faf941
PA
96222015-11-30 Pedro Alves <palves@redhat.com>
9623
9624 PR 14618
9625 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9626 report TARGET_WAITKIND_NO_RESUMED.
9627 * remote-utils.c (prepare_resume_reply): Handle
9628 TARGET_WAITKIND_NO_RESUMED.
9629 * server.c (report_no_resumed): New global.
9630 (handle_query) <qSupported>: Handle "no-resumed+". Report
9631 "no-resumed+" support.
9632 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9633 return error if the client doesn't support no-resumed events.
9634 (push_stop_notification): New function.
9635 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9636 events if the client supports them.
9637
a681f9c9
PA
96382015-11-30 Pedro Alves <palves@redhat.com>
9639
9640 * linux-low.c (thread_still_has_status_pending_p): Don't check
9641 vCont;t here.
9642 (lwp_resumed): New function.
9643 (status_pending_p_callback): Return early if the LWP is not
9644 supposed to be resumed.
9645
65706a29
PA
96462015-11-30 Pedro Alves <palves@redhat.com>
9647
9648 * linux-low.c (handle_extended_wait): Assert that the LWP's
9649 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9650 thread create events, leave the new child's status pending.
9651 (linux_low_filter_event): If GDB wants to hear about thread exit
9652 events, leave the LWP marked dead and don't delete it.
9653 (linux_wait_for_event_filtered): Don't check for thread exit.
9654 (filter_exit_event): New function.
9655 (linux_wait_1): Use it, when returning an exit event.
9656 (linux_resume_one_lwp_throw): Assert that the LWP's
9657 waitstatus is TARGET_WAITKIND_IGNORE.
9658 * remote-utils.c (prepare_resume_reply): Handle
9659 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9660 * server.c (report_thread_events): New global.
9661 (handle_general_set): Handle QThreadEvents.
9662 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9663 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9664 TARGET_WAITKIND_THREAD_EXITED.
9665 * server.h (report_thread_events): Declare.
9666
56cf4bed
PA
96672015-11-30 Pedro Alves <palves@redhat.com>
9668
9669 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9670 the thread's last_resume_kind was resume_stop.
9671
500c1d85
PA
96722015-11-30 Pedro Alves <palves@redhat.com>
9673
9674 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9675 before returning.
9676
de979965
PA
96772015-11-30 Pedro Alves <palves@redhat.com>
9678
9679 * server.c (handle_v_requests): Handle vCtrlC.
9680
34c65914
PA
96812015-11-30 Pedro Alves <palves@redhat.com>
9682
9683 * gdbthread.h (find_any_thread_of_pid): Declare.
9684 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9685 functions.
9686 * server.c (handle_query): If current_thread is NULL, look for
9687 another thread of the selected process.
9688
79efa585 96892015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9690 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9691
9692 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9693 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9694 name in reply.
9695 * target.h (struct target_ops) <thread_name>: New field.
9696 (target_thread_name): New macro.
9697
80d82c19
JB
96982015-11-23 Joel Brobecker <brobecker@adacore.com>
9699
9700 * regcache.h (regcache_invalidate_pid): Add declaration.
9701 * regcache.c (regcache_invalidate_pid): New function, extracted
9702 from regcache_invalidate.
9703 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9704 Add trivial documentation comment.
9705 * lynx-low.c: Use regcache_invalidate_pid instead of
9706 regcache_invalidate.
9707
64da5dd5
JB
97082015-11-23 Joel Brobecker <brobecker@adacore.com>
9709
9710 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9711 and Elf64_auxv_t if the target is Android.
9712
37ce4055
DE
97132015-11-22 Doug Evans <xdje42@gmail.com>
9714
9715 * target.h: #include <sys/types.h>.
9716
06e03fff
PA
97172015-11-19 Pedro Alves <palves@redhat.com>
9718
9719 * linux-low.c (linux_process_qsupported): Change prototype.
9720 Adjust.
9721 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9722 Change prototype.
9723 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9724 and adjust to loop over all features.
9725 * server.c (handle_query) <qSupported>: Adjust to call
9726 target_process_qsupported once, passing it a vector of unprocessed
9727 features.
9728 * target.h (struct target_ops) <process_qsupported>: Change
9729 prototype.
9730 (target_process_qsupported): Adjust.
9731
9a084706
PA
97322015-11-19 Pedro Alves <palves@redhat.com>
9733
9734 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9735 mode.
9736 * configure: Regenerate.
9737
dad44a1f
PA
97382015-11-19 Pedro Alves <palves@redhat.com>
9739
9740 * configure: Regenerate.
9741
231c0592
YQ
97422015-11-19 Yao Qi <yao.qi@linaro.org>
9743
9744 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9745 type to uint32_t.
9746
6c1c9a8b
YQ
97472015-11-19 Yao Qi <yao.qi@linaro.org>
9748
9749 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9750 (struct aarch64_operand): Move enum out.
9751
9caa3311
YQ
97522015-11-19 Yao Qi <yao.qi@linaro.org>
9753
9754 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9755 struct user_fpsimd_state *.
9756 (aarch64_store_fpregset): Likewise.
9757
6a69a054
YQ
97582015-11-19 Yao Qi <yao.qi@linaro.org>
9759
9760 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9761 struct user_pt_regs *.
9762 (aarch64_store_gregset): Likewise.
9763
1798301e
PA
97642015-11-18 Pedro Alves <palves@redhat.com>
9765
9766 * Makefile.in (all_object_files): Add $IPA_OBJS.
9767
ce7715e2
PA
97682015-11-17 Pedro Alves <palves@redhat.com>
9769
9770 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9771 GDB_SIGNAL_0 and gdb_signal_to_string.
9772
c0879059
PA
97732015-11-17 Pedro Alves <palves@redhat.com>
9774
9775 * win32-low.c (handle_output_debug_string): Remove parameter.
9776 (win32_kill): Remove our_status local and adjust call to
9777 handle_output_debug_string.
9778 (get_child_debug_event): Adjust call to
9779 handle_output_debug_string.
9780
1996e237
SM
97812015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9782
9783 * linux-mips-low.c (mips_fill_gregset): Add cast.
9784 (mips_store_gregset): Likewise.
9785 (mips_fill_fpregset): Likewise.
9786 (mips_store_fpregset): Likewise.
9787
cbec665b
SM
97882015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9789
9790 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9791 priv.
9792
eb3e3c67
SM
97932015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9794
9795 * linux-mips-low.c (mips_linux_new_thread): Change type of
9796 watch_type to enum target_hw_bp_type.
9797
171de4b8
SM
97982015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9799
9800 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9801 Change return type to arm_hwbp_type.
9802
04248ead
SM
98032015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9804
9805 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9806 (arm_store_gregset): Likewise.
9807 * linux-arm-low.c (arm_get_hwcap): Likewise.
9808 (arm_read_description): Likewise.
9809
04b3479c
SM
98102015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9811
9812 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9813
2bc84e8a
SM
98142015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9815
9816 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9817 (ppc_fill_vsxregset): Likewise.
9818 (ppc_store_vsxregset): Likewise.
9819 (ppc_fill_vrregset): Likewise.
9820 (ppc_store_vrregset): Likewise.
9821 (ppc_fill_evrregset): Likewise.
9822 (ppc_store_evrregset): Likewise.
9823
e6c5bb05
SM
98242015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9825
9826 * linux-ppc-low.c (ppc_usrregs_info): Remove
9827 forward-declaration.
9828 (ppc_arch_setup): Move lower in file.
9829
7ea45d72
SM
98302015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9831
9832 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9833 (ps_pdwrite): Likewise.
9834
69291610
HW
98352015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9836
9837 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9838 to after assert checks.
9839
b42945fd
SM
98402015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9841
9842 * proc-service.c (ps_pdread): Add/adjust casts.
9843 (ps_pdwrite): Add/adjust casts.
9844
d6f85c84
SM
98452015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9846
9847 * server.c (handle_search_memory_1): Cast return value of
9848 memmem.
9849
f98cd059
SM
98502015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9851
9852 * server.c (write_qxfer_response): Change type of data to
9853 gdb_byte *.
9854
d2412fa5
PA
98552015-10-29 Pedro Alves <palves@redhat.com>
9856
9857 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9858
c17414a2
PA
98592015-10-29 Pedro Alves <palves@redhat.com>
9860
9861 * tracepoint.c (clear_installed_tracepoints): Add casts.
9862
e053fbc4
PA
98632015-10-29 Pedro Alves <palves@redhat.com>
9864
9865 * server.c (handle_v_cont, process_serial_event): Add enum
9866 gdb_signal casts to signal parsing code.
9867
add67df8
PA
98682015-10-29 Pedro Alves <palves@redhat.com>
9869
9870 * linux-low.h (NULL_REGSET): Define.
9871 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9872 * linux-arm-low.c (arm_regsets): Likewise.
9873 * linux-crisv32-low.c (cris_regsets): Likewise.
9874 * linux-m68k-low.c (m68k_regsets): Likewise.
9875 * linux-mips-low.c (mips_regsets): Likewise.
9876 * linux-nios2-low.c (nios2_regsets): Likewise.
9877 * linux-ppc-low.c (ppc_regsets): Likewise.
9878 * linux-s390-low.c (s390_regsets): Likewise.
9879 * linux-sh-low.c (sh_regsets): Likewise.
9880 * linux-sparc-low.c (sparc_regsets): Likewise.
9881 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9882 * linux-tile-low.c (tile_regsets): Likewise.
9883 * linux-x86-low.c (x86_regsets): Likewise.
9884 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9885
50bc912a
PA
98862015-10-29 Pedro Alves <palves@redhat.com>
9887
9888 * linux-low.h (NULL_REGSET): Define.
9889 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9890 * linux-arm-low.c (arm_regsets): Likewise.
9891 * linux-crisv32-low.c (cris_regsets): Likewise.
9892 * linux-m68k-low.c (m68k_regsets): Likewise.
9893 * linux-mips-low.c (mips_regsets): Likewise.
9894 * linux-nios2-low.c (nios2_regsets): Likewise.
9895 * linux-ppc-low.c (ppc_regsets): Likewise.
9896 * linux-s390-low.c (s390_regsets): Likewise.
9897 * linux-sh-low.c (sh_regsets): Likewise.
9898 * linux-sparc-low.c (sparc_regsets): Likewise.
9899 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9900 * linux-tile-low.c (tile_regsets): Likewise.
9901 * linux-x86-low.c (x86_regsets): Likewise.
9902 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9903
682b2546
DE
99042015-10-26 Doug Evans <dje@google.com>
9905
9906 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9907
963843d4
DE
99082015-10-26 Doug Evans <dje@google.com>
9909
9910 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9911
d41401ac
DE
99122015-10-26 Doug Evans <dje@google.com>
9913
9914 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9915 for debug_printf.
9916 (attach_thread, find_new_threads_callback): Ditto.
9917
3db28855
AT
99182015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9919
9920 * mem-break.h (set_breakpoint_data): Remove.
9921
fb78e89c
AT
99222015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9923
9924 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9925 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9926 (initialize_low): Remove set_breakpoint_data call.
9927 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9928 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9929 (initialize_low): Remove set_breakpoint_data call.
9930 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9931 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9932 (initialize_low): Remove set_breakpoint_data call.
9933
2e6ee069
AT
99342015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9935
9936 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9937 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9938 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9939 * target.h (target_breakpoint_kind_from_pc): New macro.
9940
1652a986
AT
99412015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9942
9943 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9944 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9945 the default breakpoint kind.
9946
abeead09
AT
99472015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9948
9949 * linux-arm-low.c (arm_supports_z_point_type): Add software
9950 breakpoint support.
9951
b0b4b501
AT
99522015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9953
9954 * linux-arm-low.c: Refactor breakpoint definitions.
9955 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9956 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9957
8689682c
AT
99582015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9959
9960 * Makefile.in: Add arm.c/o.
9961 * configure.srv: Likewise.
9962 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9963 (arm_breakpoint_kind_from_pc): New function.
9964 (arm_sw_breakpoint_from_kind): Return proper kind.
9965 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9966
27165294
AT
99672015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9968
9969 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9970 removal.
9971 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9972 (struct raw_breakpoint) <size>: Remove.
9973 (struct raw_breakpoint) <kind>: Add.
9974 (bp_size): New function.
9975 (bp_opcode): Likewise.
9976 (find_raw_breakpoint_at): Adjust for kind.
9977 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9978 (remove_memory_breakpoint): Adjust for kind call bp_size.
9979 (set_raw_breakpoint_at): Adjust for kind.
9980 (set_breakpoint): Likewise.
9981 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9982 (delete_raw_breakpoint): Adjust for kind.
9983 (delete_breakpoint): Likewise.
9984 (find_gdb_breakpoint): Likewise.
9985 (set_gdb_breakpoint_1): Likewise.
9986 (set_gdb_breakpoint): Likewise.
9987 (delete_gdb_breakpoint_1): Likewise.
9988 (delete_gdb_breakpoint): Likewise.
9989 (uninsert_raw_breakpoint): Likewise.
9990 (reinsert_raw_breakpoint): Likewise.
9991 (set_breakpoint_data): Remove.
9992 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9993 (check_mem_read): Adjust for kind call bp_size.
9994 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9995 (clone_one_breakpoint): Adjust for kind.
9996 * mem-break.h (set_gdb_breakpoint): Likewise.
9997 (delete_gdb_breakpoint): Likewise.
9998 * server.c (process_serial_event): Likewise.
9999
dd373349
AT
100002015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10001
10002 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10003 (struct linux_target_ops) <breakpoint>: Remove.
10004 (struct linux_target_ops) <breakpoint_len>: Remove.
10005 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10006 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10007 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10008 (arm_sw_breakpoint_from_kind): New function.
10009 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10010 (struct linux_target_ops) <breakpoint>: Remove.
10011 (struct linux_target_ops) <breakpoint_len>: Remove.
10012 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10013 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10014 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10015 (struct linux_target_ops) <breakpoint>: Remove.
10016 (struct linux_target_ops) <breakpoint_len>: Remove.
10017 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10018 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10019 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10020 (struct linux_target_ops) <breakpoint>: Remove.
10021 (struct linux_target_ops) <breakpoint_len>: Remove.
10022 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10023 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10024 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10025 and sw_breakpoint_from_kind to increment the pc.
10026 (linux_breakpoint_kind_from_pc): New function.
10027 (linux_sw_breakpoint_from_kind): New function.
10028 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10029 (initialize_low): Call breakpoint_kind_from_pc and
10030 sw_breakpoint_from_kind to replace breakpoint_data/len.
10031 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10032 New field.
10033 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10034 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10035 (struct linux_target_ops) <breakpoint>: Remove.
10036 (struct linux_target_ops) <breakpoint_len>: Remove.
10037 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10038 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10039 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10040 (struct linux_target_ops) <breakpoint>: Remove.
10041 (struct linux_target_ops) <breakpoint_len>: Remove.
10042 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10043 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10044 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10045 (struct linux_target_ops) <breakpoint>: Remove.
10046 (struct linux_target_ops) <breakpoint_len>: Remove.
10047 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10048 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10049 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10050 (struct linux_target_ops) <breakpoint>: Remove.
10051 (struct linux_target_ops) <breakpoint_len>: Remove.
10052 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10053 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10054 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10055 (struct linux_target_ops) <breakpoint>: Remove.
10056 (struct linux_target_ops) <breakpoint_len>: Remove.
10057 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10058 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10059 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10060 (struct linux_target_ops) <breakpoint>: Remove.
10061 (struct linux_target_ops) <breakpoint_len>: Remove.
10062 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10063 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10064 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10065 (struct linux_target_ops) <breakpoint>: Remove.
10066 (struct linux_target_ops) <breakpoint_len>: Remove.
10067 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10068 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10069 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10070 (struct linux_target_ops) <breakpoint>: Remove.
10071 (struct linux_target_ops) <breakpoint_len>: Remove.
10072 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10073 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10074 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10075 (struct linux_target_ops) <breakpoint>: Remove.
10076 (struct linux_target_ops) <breakpoint_len>: Remove.
10077 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10078 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10079 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10080 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10081 (struct linux_target_ops) <breakpoint>: Remove.
10082 (struct linux_target_ops) <breakpoint_len>: Remove.
10083 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10084 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10085 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10086 (struct linux_target_ops) <breakpoint>: Remove.
10087 (struct linux_target_ops) <breakpoint_len>: Remove.
10088 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10089 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10090
4cd98a19
AT
100912015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10092
10093 * linux-cris-low.c (cris_get_pc): Remove void arg.
10094
774ee6d2
AR
100952015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10096
10097 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10098 variable name.
10099
833dcd29
AR
101002015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10101
10102 * inferiors.c (thread_pid_matches_callback): New function.
10103 (find_thread_process): New function.
10104 (remove_thread): Reset current_thread.
10105 (remove_process): Assert threads have been removed first.
10106
8d689ee5
YQ
101072015-10-15 Yao Qi <yao.qi@linaro.org>
10108
10109 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10110 if it is 3.
10111 (aarch64_remove_point): Likewise.
10112 * regcache.c (regcache_register_size): New function.
10113
1c2e1515
YQ
101142015-10-12 Yao Qi <yao.qi@linaro.org>
10115
10116 * linux-aarch64-low.c: Update all callers as emit_load_store
10117 is renamed to aarch64_emit_load_store.
10118
e1c587c3
YQ
101192015-10-12 Yao Qi <yao.qi@linaro.org>
10120
10121 * linux-aarch64-low.c: Update all callers of function renaming
10122 from emit_insn to aarch64_emit_insn.
10123
b6542f81
YQ
101242015-10-12 Yao Qi <yao.qi@linaro.org>
10125
10126 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10127 arch/aarch64-insn.h.
10128 (struct aarch64_memory_operand): Likewise.
10129 (ENCODE): Likewise.
10130 (emit_insn): Move to arch/aarch64-insn.c.
10131 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10132 (emit_load_store): Move to arch/aarch64-insn.c.
10133 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10134 (can_encode_int32): Remove.
10135
246994ce
YQ
101362015-10-12 Yao Qi <yao.qi@linaro.org>
10137
10138 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10139 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10140 (aarch64_relocate_instruction): Likewise.
10141 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10142 (struct aarch64_insn_visitor): Likewise.
10143
0badd99f
YQ
101442015-10-12 Yao Qi <yao.qi@linaro.org>
10145
10146 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10147 (struct aarch64_insn_visitor): New.
10148 (struct aarch64_insn_relocation_data): New.
10149 (aarch64_ftrace_insn_reloc_b): New function.
10150 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10151 (aarch64_ftrace_insn_reloc_cb): Likewise.
10152 (aarch64_ftrace_insn_reloc_tb): Likewise.
10153 (aarch64_ftrace_insn_reloc_adr): Likewise.
10154 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10155 (aarch64_ftrace_insn_reloc_others): Likewise.
10156 (visitor): New.
10157 (aarch64_relocate_instruction): Use visitor.
10158
dfaffe9d
YQ
101592015-10-12 Yao Qi <yao.qi@linaro.org>
10160
10161 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10162 int. Add argument buf.
10163 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10164 aarch64_relocate_instruction.
10165
70b439f0
YQ
101662015-10-12 Yao Qi <yao.qi@linaro.org>
10167
10168 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10169 argument insn. Remove local variable insn. Don't call
10170 target_read_uint32.
10171 (aarch64_install_fast_tracepoint_jump_pad): Call
10172 target_read_uint32.
10173
7781c06f
YQ
101742015-09-30 Yao Qi <yao.qi@linaro.org>
10175
10176 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10177 (emit_load_store_pair): Likewise.
10178
9a3c8263
SM
101792015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10180
10181 * dll.c (match_dll): Add cast(s).
10182 (unloaded_dll): Likewise.
10183 * linux-low.c (second_thread_of_pid_p): Likewise.
10184 (delete_lwp_callback): Likewise.
10185 (count_events_callback): Likewise.
10186 (select_event_lwp_callback): Likewise.
10187 (linux_set_resume_request): Likewise.
10188 * server.c (accumulate_file_name_length): Likewise.
10189 (emit_dll_description): Likewise.
10190 (handle_qxfer_threads_worker): Likewise.
10191 (visit_actioned_threads): Likewise.
10192 * thread-db.c (any_thread_of): Likewise.
10193 * tracepoint.c (same_process_p): Likewise.
10194 (match_blocktype): Likewise.
10195 (build_traceframe_info_xml): Likewise.
10196
224c3ddb
SM
101972015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10198
10199 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10200 assignment.
10201 (gdb_unparse_agent_expr): Likewise.
10202 * hostio.c (require_data): Likewise.
10203 (handle_pread): Likewise.
10204 * linux-low.c (disable_regset): Likewise.
10205 (fetch_register): Likewise.
10206 (store_register): Likewise.
10207 (get_dynamic): Likewise.
10208 (linux_qxfer_libraries_svr4): Likewise.
10209 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10210 (set_fast_tracepoint_jump): Likewise.
10211 (uninsert_fast_tracepoint_jumps_at): Likewise.
10212 (reinsert_fast_tracepoint_jumps_at): Likewise.
10213 (validate_inserted_breakpoint): Likewise.
10214 (clone_agent_expr): Likewise.
10215 * regcache.c (init_register_cache): Likewise.
10216 * remote-utils.c (putpkt_binary_1): Likewise.
10217 (decode_M_packet): Likewise.
10218 (decode_X_packet): Likewise.
10219 (look_up_one_symbol): Likewise.
10220 (relocate_instruction): Likewise.
10221 (monitor_output): Likewise.
10222 * server.c (handle_search_memory): Likewise.
10223 (handle_qxfer_exec_file): Likewise.
10224 (handle_qxfer_libraries): Likewise.
10225 (handle_qxfer): Likewise.
10226 (handle_query): Likewise.
10227 (handle_v_cont): Likewise.
10228 (handle_v_run): Likewise.
10229 (captured_main): Likewise.
10230 * target.c (write_inferior_memory): Likewise.
10231 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10232 * tracepoint.c (init_trace_buffer): Likewise.
10233 (add_tracepoint_action): Likewise.
10234 (add_traceframe): Likewise.
10235 (add_traceframe_block): Likewise.
10236 (cmd_qtdpsrc): Likewise.
10237 (cmd_qtdv): Likewise.
10238 (cmd_qtstatus): Likewise.
10239 (response_source): Likewise.
10240 (response_tsv): Likewise.
10241 (cmd_qtnotes): Likewise.
10242 (gdb_collect): Likewise.
10243 (initialize_tracepoint): Likewise.
10244
afbe19f8
PL
102452015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10246
10247 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10248 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10249 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10250 <NOP>: New.
10251 (enum aarch64_condition_codes): New enum.
10252 (w0): New static global.
10253 (fp): Likewise.
10254 (lr): Likewise.
10255 (struct aarch64_memory_operand) <type>: New
10256 MEMORY_OPERAND_POSTINDEX type.
10257 (postindex_memory_operand): New helper function.
10258 (emit_ret): New function.
10259 (emit_load_store_pair): New function, factored out of emit_stp
10260 with support for MEMORY_OPERAND_POSTINDEX.
10261 (emit_stp): Rewrite using emit_load_store_pair.
10262 (emit_ldp): New function.
10263 (emit_load_store): Likewise.
10264 (emit_ldr): Mention post-index instruction in comment.
10265 (emit_ldrh): New function.
10266 (emit_ldrb): New function.
10267 (emit_ldrsw): Mention post-index instruction in comment.
10268 (emit_str): Likewise.
10269 (emit_subs): New function.
10270 (emit_cmp): Likewise.
10271 (emit_and): Likewise.
10272 (emit_orr): Likewise.
10273 (emit_orn): Likewise.
10274 (emit_eor): Likewise.
10275 (emit_mvn): Likewise.
10276 (emit_lslv): Likewise.
10277 (emit_lsrv): Likewise.
10278 (emit_asrv): Likewise.
10279 (emit_mul): Likewise.
10280 (emit_sbfm): Likewise.
10281 (emit_sbfx): Likewise.
10282 (emit_ubfm): Likewise.
10283 (emit_ubfx): Likewise.
10284 (emit_csinc): Likewise.
10285 (emit_cset): Likewise.
10286 (emit_nop): Likewise.
10287 (emit_ops_insns): New helper function.
10288 (emit_pop): Likewise.
10289 (emit_push): Likewise.
10290 (aarch64_emit_prologue): New function.
10291 (aarch64_emit_epilogue): Likewise.
10292 (aarch64_emit_add): Likewise.
10293 (aarch64_emit_sub): Likewise.
10294 (aarch64_emit_mul): Likewise.
10295 (aarch64_emit_lsh): Likewise.
10296 (aarch64_emit_rsh_signed): Likewise.
10297 (aarch64_emit_rsh_unsigned): Likewise.
10298 (aarch64_emit_ext): Likewise.
10299 (aarch64_emit_log_not): Likewise.
10300 (aarch64_emit_bit_and): Likewise.
10301 (aarch64_emit_bit_or): Likewise.
10302 (aarch64_emit_bit_xor): Likewise.
10303 (aarch64_emit_bit_not): Likewise.
10304 (aarch64_emit_equal): Likewise.
10305 (aarch64_emit_less_signed): Likewise.
10306 (aarch64_emit_less_unsigned): Likewise.
10307 (aarch64_emit_ref): Likewise.
10308 (aarch64_emit_if_goto): Likewise.
10309 (aarch64_emit_goto): Likewise.
10310 (aarch64_write_goto_address): Likewise.
10311 (aarch64_emit_const): Likewise.
10312 (aarch64_emit_call): Likewise.
10313 (aarch64_emit_reg): Likewise.
10314 (aarch64_emit_pop): Likewise.
10315 (aarch64_emit_stack_flush): Likewise.
10316 (aarch64_emit_zero_ext): Likewise.
10317 (aarch64_emit_swap): Likewise.
10318 (aarch64_emit_stack_adjust): Likewise.
10319 (aarch64_emit_int_call_1): Likewise.
10320 (aarch64_emit_void_call_2): Likewise.
10321 (aarch64_emit_eq_goto): Likewise.
10322 (aarch64_emit_ne_goto): Likewise.
10323 (aarch64_emit_lt_goto): Likewise.
10324 (aarch64_emit_le_goto): Likewise.
10325 (aarch64_emit_gt_goto): Likewise.
10326 (aarch64_emit_ge_got): Likewise.
10327 (aarch64_emit_ops_impl): New static global variable.
10328 (aarch64_emit_ops): New target function, return
10329 &aarch64_emit_ops_impl.
10330 (struct linux_target_ops): Install it.
10331
bb903df0
PL
103322015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10333
10334 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10335 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10336 aarch64-ipa.o.
10337 * linux-aarch64-ipa.c: New file.
10338 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10339 and endian.h.
10340 (aarch64_get_thread_area): New target method.
10341 (extract_signed_bitfield): New helper function.
10342 (aarch64_decode_ldr_literal): New function.
10343 (enum aarch64_opcodes): New enum.
10344 (struct aarch64_register): New struct.
10345 (struct aarch64_operand): New struct.
10346 (x0): New static global.
10347 (x1): Likewise.
10348 (x2): Likewise.
10349 (x3): Likewise.
10350 (x4): Likewise.
10351 (w2): Likewise.
10352 (ip0): Likewise.
10353 (sp): Likewise.
10354 (xzr): Likewise.
10355 (aarch64_register): New helper function.
10356 (register_operand): Likewise.
10357 (immediate_operand): Likewise.
10358 (struct aarch64_memory_operand): New struct.
10359 (offset_memory_operand): New helper function.
10360 (preindex_memory_operand): Likewise.
10361 (enum aarch64_system_control_registers): New enum.
10362 (ENCODE): New macro.
10363 (emit_insn): New helper function.
10364 (emit_b): New function.
10365 (emit_bcond): Likewise.
10366 (emit_cb): Likewise.
10367 (emit_tb): Likewise.
10368 (emit_blr): Likewise.
10369 (emit_stp): Likewise.
10370 (emit_ldp_q_offset): Likewise.
10371 (emit_stp_q_offset): Likewise.
10372 (emit_load_store): Likewise.
10373 (emit_ldr): Likewise.
10374 (emit_ldrsw): Likewise.
10375 (emit_str): Likewise.
10376 (emit_ldaxr): Likewise.
10377 (emit_stxr): Likewise.
10378 (emit_stlr): Likewise.
10379 (emit_data_processing_reg): Likewise.
10380 (emit_data_processing): Likewise.
10381 (emit_add): Likewise.
10382 (emit_sub): Likewise.
10383 (emit_mov): Likewise.
10384 (emit_movk): Likewise.
10385 (emit_mov_addr): Likewise.
10386 (emit_mrs): Likewise.
10387 (emit_msr): Likewise.
10388 (emit_sevl): Likewise.
10389 (emit_wfe): Likewise.
10390 (append_insns): Likewise.
10391 (can_encode_int32_in): New helper function.
10392 (aarch64_relocate_instruction): New function.
10393 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10394 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10395 (struct linux_target_ops): Install aarch64_get_thread_area,
10396 aarch64_install_fast_tracepoint_jump_pad and
10397 aarch64_get_min_fast_tracepoint_insn_len.
10398
787749ea
PL
103992015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10400
10401 * Makefile.in (aarch64-insn.o): New rule.
10402 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10403
9812b2e6
YQ
104042015-09-21 Yao Qi <yao.qi@linaro.org>
10405
10406 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10407
18fe412b
YQ
104082015-09-21 Yao Qi <yao.qi@linaro.org>
10409
10410 * tracepoint.c (max_jump_pad_size): Remove.
10411
a0cc84cd
YQ
104122015-09-18 Yao Qi <yao.qi@linaro.org>
10413
10414 * linux-aarch64-low.c: Don't include sys/uio.h.
10415 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10416
d78908cf
WW
104172015-09-16 Wei-cheng Wang <cole945@gmail.com>
10418
10419 * tracepoint.c (eval_result_type): Change prototype.
10420 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10421
d57e0d50
PA
104222015-09-15 Pedro Alves <palves@redhat.com>
10423
10424 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10425 Check whether to report exec events instead of checking whether
10426 multiprocess is enabled.
10427
5a676acc
PA
104282015-09-15 Pedro Alves <palves@redhat.com>
10429
10430 PR remote/18965
10431 * remote-utils.c (prepare_resume_reply): Merge
10432 TARGET_WAITKIND_VFORK_DONE switch case with the
10433 TARGET_WAITKIND_FORKED case.
10434
7c5d0fad
YQ
104352015-09-15 Yao Qi <yao.qi@linaro.org>
10436
10437 * server.c (handle_query): Check string comparison using
10438 "else if" instead of "if".
10439
750ce8d1
YQ
104402015-09-15 Yao Qi <yao.qi@linaro.org>
10441
10442 * server.c (vCont_supported): New global variable.
10443 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10444 matches. Append ";vContSupported+" to own_buf.
10445 (handle_v_requests): Append ";s;S" to own_buf if target supports
10446 hardware single step or vCont_supported is false.
10447 (capture_main): Set vCont_supported to zero.
10448
70b90b91
YQ
104492015-09-15 Yao Qi <yao.qi@linaro.org>
10450
10451 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10452 it to ...
10453 (linux_supports_hardware_single_step): ... New function.
10454 (linux_target_ops): Update.
10455 * lynx-low.c (lynx_target_ops): Set field
10456 supports_hardware_single_step to target_can_do_hardware_single_step.
10457 * nto-low.c (nto_target_ops): Likewise.
10458 * spu-low.c (spu_target_ops): Likewise.
10459 * win32-low.c (win32_target_ops): Likewise.
10460 * target.c (target_can_do_hardware_single_step): New function.
10461 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10462 Remove. <supports_hardware_single_step>: New field.
10463 (target_supports_conditional_breakpoints): Remove.
10464 (target_supports_hardware_single_step): New macro.
10465 (target_can_do_hardware_single_step): Declare.
10466 * server.c (handle_query): Use target_supports_hardware_single_step
10467 instead of target_supports_conditional_breakpoints.
10468
ade90bde
YQ
104692015-09-15 Yao Qi <yao.qi@linaro.org>
10470
10471 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10472 function.
10473 (struct linux_target_ops the_low_target): Install
10474 aarch64_linux_siginfo_fixup.
10475
94585166
DB
104762015-09-11 Don Breazeal <donb@codesourcery.com>
10477 Luis Machado <lgustavo@codesourcery.com>
10478
10479 * linux-low.c (linux_mourn): Static declaration.
10480 (linux_arch_setup): Move in front of
10481 handle_extended_wait.
10482 (linux_arch_setup_thread): New function.
10483 (handle_extended_wait): Handle exec events. Call
10484 linux_arch_setup_thread. Make event_lwp argument a
10485 pointer-to-a-pointer.
10486 (check_zombie_leaders): Do not check stopped threads.
10487 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10488 (linux_low_filter_event): Add lwp and thread for exec'ing
10489 non-leader thread if leader thread has been deleted.
10490 Refactor code into linux_arch_setup_thread and call it.
10491 Pass child lwp pointer by reference to handle_extended_wait.
10492 (linux_wait_for_event_filtered): Update comment.
10493 (linux_wait_1): Prevent clobbering exec event status.
10494 (linux_supports_exec_events): New function.
10495 (linux_target_ops) <supports_exec_events>: Initialize new member.
10496 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10497 new member.
10498 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10499 * server.c (report_exec_events): New global variable.
10500 (handle_query): Handle qSupported query for exec-events feature.
10501 (captured_main): Initialize report_exec_events.
10502 * server.h (report_exec_events): Declare new global variable.
10503 * target.h (struct target_ops) <supports_exec_events>: New
10504 member.
10505 (target_supports_exec_events): New macro.
10506 * win32-low.c (win32_target_ops) <supports_exec_events>:
10507 Initialize new member.
10508
0568462b
MM
105092015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10510
10511 * linux-low.c (linux_low_enable_btrace): Remove.
10512 (linux_target_ops): Replace linux_low_enable_btrace with
10513 linux_enable_btrace.
10514
39edd165
YQ
105152015-09-03 Yao Qi <yao.qi@linaro.org>
10516
10517 * linux-aarch64-low.c (aarch64_insert_point): Call
10518 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10519 returns true.
10520
1db33b5a
UW
105212015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10522
10523 * linux-low.c (check_stopped_by_breakpoint): Use
10524 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10525
ab290430
PA
105262015-08-27 Pedro Alves <palves@redhat.com>
10527
10528 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10529
8d749320
SM
105302015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10531
6711b7f8
SM
10532 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10533 the XNEW-family equivalent.
8d749320
SM
10534 (compile_bytecodes): Likewise.
10535 * dll.c (loaded_dll): Likewise.
10536 * event-loop.c (append_callback_event): Likewise.
10537 (create_file_handler): Likewise.
10538 (create_file_event): Likewise.
10539 * hostio.c (handle_open): Likewise.
10540 * inferiors.c (add_thread): Likewise.
10541 (add_process): Likewise.
10542 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10543 * linux-arm-low.c (arm_new_process): Likewise.
10544 (arm_new_thread): Likewise.
10545 * linux-low.c (add_to_pid_list): Likewise.
10546 (linux_add_process): Likewise.
10547 (handle_extended_wait): Likewise.
10548 (add_lwp): Likewise.
10549 (enqueue_one_deferred_signal): Likewise.
10550 (enqueue_pending_signal): Likewise.
10551 (linux_resume_one_lwp_throw): Likewise.
10552 (linux_resume_one_thread): Likewise.
10553 (linux_read_memory): Likewise.
10554 (linux_write_memory): Likewise.
10555 * linux-mips-low.c (mips_linux_new_process): Likewise.
10556 (mips_linux_new_thread): Likewise.
10557 (mips_add_watchpoint): Likewise.
10558 * linux-x86-low.c (initialize_low_arch): Likewise.
10559 * lynx-low.c (lynx_add_process): Likewise.
10560 * mem-break.c (set_raw_breakpoint_at): Likewise.
10561 (set_breakpoint): Likewise.
10562 (add_condition_to_breakpoint): Likewise.
10563 (add_commands_to_breakpoint): Likewise.
10564 (clone_agent_expr): Likewise.
10565 (clone_one_breakpoint): Likewise.
10566 * regcache.c (new_register_cache): Likewise.
10567 * remote-utils.c (look_up_one_symbol): Likewise.
10568 * server.c (queue_stop_reply): Likewise.
10569 (start_inferior): Likewise.
10570 (queue_stop_reply_callback): Likewise.
10571 (handle_target_event): Likewise.
10572 * spu-low.c (fetch_ppc_memory): Likewise.
10573 (store_ppc_memory): Likewise.
10574 * target.c (set_target_ops): Likewise.
10575 * thread-db.c (thread_db_load_search): Likewise.
10576 (try_thread_db_load_1): Likewise.
10577 * tracepoint.c (add_tracepoint): Likewise.
10578 (add_tracepoint_action): Likewise.
10579 (create_trace_state_variable): Likewise.
10580 (cmd_qtdpsrc): Likewise.
10581 (cmd_qtro): Likewise.
10582 (add_while_stepping_state): Likewise.
10583 * win32-low.c (child_add_thread): Likewise.
10584 (get_image_name): Likewise.
10585
ed8b7b42
YQ
105862015-08-25 Yao Qi <yao.qi@linaro.org>
10587
10588 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10589
db3cb7cb
YQ
105902015-08-25 Yao Qi <yao.qi@linaro.org>
10591
10592 * Makefile.in (aarch64-linux.o): New rule.
10593 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10594 srv_tgtobj.
10595 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10596 (aarch64_init_debug_reg_state): Make it extern.
10597 (aarch64_linux_prepare_to_resume): Remove.
10598
f6011a1c
YQ
105992015-08-25 Yao Qi <yao.qi@linaro.org>
10600
10601 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10602 lwp_arch_private_info and ptid_of_lwp.
10603
88e2cf7e
YQ
106042015-08-25 Yao Qi <yao.qi@linaro.org>
10605
10606 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10607 Find proc_info by find_process_pid. All callers updated.
10608
5e35436e
YQ
106092015-08-25 Yao Qi <yao.qi@linaro.org>
10610
10611 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10612 Remove.
10613 (debug_reg_change_callback): Remove.
10614 (aarch64_notify_debug_reg_change): Remove.
10615
4a8a7965
YQ
106162015-08-25 Yao Qi <yao.qi@linaro.org>
10617
10618 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10619 Call current_lwp_ptid.
10620
32a271ee
YQ
106212015-08-25 Yao Qi <yao.qi@linaro.org>
10622
10623 * linux-aarch64-low.c (debug_reg_change_callback): Use
10624 debug_printf.
10625
0d51c8d7
YQ
106262015-08-25 Yao Qi <yao.qi@linaro.org>
10627
10628 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10629
31a43dd5
YQ
106302015-08-25 Yao Qi <yao.qi@linaro.org>
10631
10632 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10633
8ee52567
YQ
106342015-08-25 Yao Qi <yao.qi@linaro.org>
10635
10636 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10637 the code.
10638
ff3f0f45
YQ
106392015-08-25 Yao Qi <yao.qi@linaro.org>
10640
10641 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10642 Remove.
10643 (debug_reg_change_callback): Remove argument entry and add argument
10644 lwp. Remove local variable thread. Don't print thread id in the
10645 debugging output. Don't check whether pid of thread equals to pid.
10646 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10647 iterate_over_lwps instead find_inferior.
10648
3d40fbb5
PA
106492015-08-24 Pedro Alves <palves@redhat.com>
10650
10651 * inferiors.c (get_first_process): New function.
10652 * inferiors.h (get_first_process): New declaration.
10653 * remote-utils.c (read_ptid): Default to the first process in the
10654 list, instead of to the current thread's process.
10655
438e1e42
PA
106562015-08-24 Pedro Alves <palves@redhat.com>
10657
10658 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10659 * event-loop.c: Likewise.
10660 * remote-utils.c: Likewise.
10661 * tracepoint.c: Likewise.
10662
a8c6d4fc
PA
106632015-08-24 Pedro Alves <palves@redhat.com>
10664
10665 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10666 ptid_get_lwp.
10667
99b0bb12
PA
106682015-08-21 Pedro Alves <palves@redhat.com>
10669
10670 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10671 instead of literal 1.
10672
f8904751
PA
106732015-08-21 Pedro Alves <palves@redhat.com>
10674
10675 * tdesc.c (default_description): Explicitly zero-initialize.
10676
465a859e
PA
106772015-08-21 Pedro Alves <palves@redhat.com>
10678
10679 PR gdb/18749
10680 * inferiors.c (remove_thread): Discard any pending stop reply for
10681 this thread.
10682 * server.c (remove_all_on_match_pid): Rename to ...
10683 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10684 instead of a pid.
10685 (discard_queued_stop_replies): Change parameter to a ptid. Now
10686 extern.
10687 (handle_v_kill, kill_inferior_callback, captured_main)
10688 (process_serial_event): Adjust.
10689 * server.h (discard_queued_stop_replies): Declare.
10690
f0db101d
PA
106912015-08-21 Pedro Alves <palves@redhat.com>
10692
10693 * linux-low.c (wait_for_sigstop): Always switch to no thread
10694 selected if the previously current thread dies.
10695 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10696 process instead of the current thread's.
10697 * remote-utils.c (input_interrupt): Don't check if there's no
10698 current thread.
10699 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10700 current thread to the general thread fails, error out.
10701 (handle_qxfer_auxv, handle_qxfer_libraries)
10702 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10703 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10704 (handle_query): Check if there's a thread selected instead of
10705 checking whether there's any thread in the thread list.
10706 (handle_qxfer_threads, handle_qxfer_btrace)
10707 (handle_qxfer_btrace_conf): Don't error out early if there's no
10708 thread in the thread list.
10709 (handle_v_cont, myresume): Don't set the current thread to the
10710 continue thread.
10711 (process_serial_event) <Hg handling>: Also set thread_id if the
10712 previous general thread is still alive.
10713 (process_serial_event) <g/G handling>: If setting the current
10714 thread to the general thread fails, error out.
10715 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10716 thread's lwp instead of the current thread's.
10717 * target.c (set_desired_thread): If the desired thread was not
10718 found, leave the current thread pointing to NULL. Return an int
10719 (boolean) indicating success.
10720 * target.h (set_desired_thread): Change return type to int.
10721
40045d91
MF
107222015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10723
10724 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10725 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10726 #includes.
10727 (ps_get_thread_area): New function.
10728
45face3b
GB
107292015-08-19 Gary Benson <gbenson@redhat.com>
10730
10731 * hostio.c (handle_pread): Do not attempt to read more data
10732 than hostio_reply_with_data can fit in a packet.
10733
16d5f642
JB
107342015-08-18 Joel Brobecker <brobecker@adacore.com>
10735
10736 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10737
a738da3a
MF
107382015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10739
10740 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10741
33ebda9d
PA
107422015-08-06 Pedro Alves <palves@redhat.com>
10743
10744 * tracepoint.c (expr_eval_result): Now an int.
10745
a44892be
PA
107462015-08-06 Pedro Alves <palves@redhat.com>
10747
10748 * gdbthread.h (struct regcache): Forward declare.
10749 (struct thread_info) <regcache_data>: Now a struct regcache
10750 pointer.
10751 * inferiors.c (inferior_regcache_data)
10752 (set_inferior_regcache_data): Now work with struct regcache
10753 pointers.
10754 * inferiors.h (struct regcache): Forward declare.
10755 (inferior_regcache_data, set_inferior_regcache_data): Now work
10756 with struct regcache pointers.
10757 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10758 (free_register_cache_thread): Remove struct regcache pointer
10759 casts.
10760
608a1e46
PA
107612015-08-06 Pedro Alves <palves@redhat.com>
10762
10763 * server.c (captured_main): On error, print the exception message
10764 to stderr, and if run_once is set, throw a quit.
10765
f0ce0d3a
PA
107662015-08-06 Pedro Alves <palves@redhat.com>
10767
10768 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10769 the current thread.
10770
bf47e248
PA
107712015-08-06 Pedro Alves <palves@redhat.com>
10772
10773 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10774 reading beyond the passed in buffer length.
10775
b6b9ffcc
PL
107762015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10777
10778 * tracepoint.c (symbol_list) <required>: Remove.
10779
863d01bd
PA
107802015-08-06 Pedro Alves <palves@redhat.com>
10781
10782 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10783 count if stopping and suspending threads.
10784 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10785 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10786 (linux_detach): Complete an ongoing step-over.
10787 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10788 throughout.
10789 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10790 (linux_wait_1): If passing a signal to the inferior after
10791 finishing a step-over, unsuspend and re-resume all lwps. If we
10792 see a single-step event but the thread should be continuing, don't
10793 pass the trap to gdb.
10794 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10795 internal_error instead of gdb_assert.
10796 (enqueue_pending_signal): New function.
10797 (check_ptrace_stopped_lwp_gone): Add debug output.
10798 (start_step_over): Use internal_error instead of gdb_assert.
10799 (complete_ongoing_step_over): New function.
10800 (linux_resume_one_thread): Don't resume a suspended thread.
10801 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10802 it stepping.
10803
00db26fa
PA
108042015-08-06 Pedro Alves <palves@redhat.com>
10805
10806 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10807 (linux_thread_alive): Use lwp_is_marked_dead.
10808 (extended_event_reported): Delete.
10809 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10810 instead of extended_event_reported.
10811 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10812 as well.
10813 (lwp_is_marked_dead): New function.
10814 (lwp_running): Use lwp_is_marked_dead.
10815 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10816 comment.
10817
ad071a30
PA
108182015-08-06 Pedro Alves <palves@redhat.com>
10819
10820 * linux-low.c (linux_wait_1): Move fork event output out of the
10821 !report_to_gdb check. Pass event_child->waitstatus to
10822 target_waitstatus_to_string instead of ourstatus.
10823
524b57e6
YQ
108242015-08-04 Yao Qi <yao.qi@linaro.org>
10825
10826 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10827 if current_thread is 32 bit.
10828
6085d6f6
YQ
108292015-08-04 Yao Qi <yao.qi@linaro.org>
10830
10831 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10832 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10833 * server.c (extended_protocol): Remove "static".
10834 * server.h (extended_protocol): Declare it.
10835
8a7e4587
YQ
108362015-08-04 Yao Qi <yao.qi@linaro.org>
10837
10838 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10839 both aarch64 and aarch32.
10840 (aarch64_set_pc): Likewise.
10841
3b53ae99
YQ
108422015-08-04 Yao Qi <yao.qi@linaro.org>
10843
10844 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10845 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10846 arm-with-neon.xml to srv_xmlfiles.
10847 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10848 (is_64bit_tdesc): New function.
10849 (aarch64_linux_read_description): New function.
10850 (aarch64_arch_setup): Call aarch64_linux_read_description.
10851 (regs_info): Rename to regs_info_aarch64.
10852 (aarch64_regs_info): Return right regs_info.
10853 (initialize_low_arch): Call initialize_low_arch_aarch32.
10854
bd9e6534
YQ
108552015-08-04 Yao Qi <yao.qi@linaro.org>
10856
10857 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10858 * linux-aarch32-low.c: New file.
10859 * linux-aarch32-low.h: New file.
10860 * linux-arm-low.c (arm_fill_gregset): Move it to
10861 linux-aarch32-low.c.
10862 (arm_store_gregset): Likewise.
10863 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10864 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10865 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10866 (regs_info): Rename to regs_info_arm.
10867 (arm_regs_info): Return regs_info_aarch32 if
10868 have_ptrace_getregset is 1 and target description is
10869 arm_with_neon or arm_with_vfpv3.
10870 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10871 Call initialize_low_arch_aarch32 instead.
10872
ded48a5e
YQ
108732015-08-04 Yao Qi <yao.qi@linaro.org>
10874
10875 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10876 * linux-low.c: ... here.
10877 * linux-low.h (have_ptrace_getregset): Declare it.
10878
96e9210f
PA
108792015-08-04 Pedro Alves <palves@redhat.com>
10880
10881 * thread-db.c (struct thread_db): Use new typedefs.
10882 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10883 CHK calls.
10884 (disable_thread_event_reporting): Cast result of dlsym to
10885 destination function pointer type.
10886 (thread_db_mourn): Use td_ta_delete_ftype.
10887
af60a1ef
SL
108882015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10889
10890 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10891 arch variant.
10892 (CDX_BREAKPOINT): Define for R2.
10893 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10894 (the_low_target): Add comments.
10895
e8b41681
YQ
108962015-07-30 Yao Qi <yao.qi@linaro.org>
10897
10898 * linux-arm-low.c (arm_hwcap): Remove it.
10899 (arm_read_description): New local variable arm_hwcap. Don't
10900 set arm_hwcap to zero.
10901
89abb039
YQ
109022015-07-30 Yao Qi <yao.qi@linaro.org>
10903
10904 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10905 Use regcache->tdesc instead.
10906 (arm_store_wmmxregset): Likewise.
10907 (arm_fill_vfpregset): Likewise.
10908 (arm_store_vfpregset): Likewise.
10909
deca266c
YQ
109102015-07-30 Yao Qi <yao.qi@linaro.org>
10911
10912 * linux-arm-low.c: Include arch/arm.h.
10913 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10914 (arm_store_gregset): Likewise.
10915
aa58a496
SM
109162015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10917
10918 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10919 ptrace's 4th parameter.
10920
50904b25
YQ
109212015-07-27 Yao Qi <yao.qi@linaro.org>
10922
10923 * configure.srv (case aarch64*-*-linux*): Don't set
10924 srv_linux_usrregs.
10925
5826e159
PA
109262015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10927
10928 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10929 sys/ptrace.h.
10930 * linux-arm-low.c: Likewise.
10931 * linux-cris-low.c: Likewise.
10932 * linux-crisv32-low.c: Likewise.
10933 * linux-low.c: Likewise.
10934 * linux-m68k-low.c: Likewise.
10935 * linux-mips-low.c: Likewise.
10936 * linux-nios2-low.c: Likewise.
10937 * linux-s390-low.c: Likewise.
10938 * linux-sparc-low.c: Likewise.
10939 * linux-tic6x-low.c: Likewise.
10940 * linux-tile-low.c: Likewise.
10941 * linux-x86-low.c: Likewise.
10942
54019719
PA
109432015-07-24 Pedro Alves <palves@redhat.com>
10944
10945 * config.in: Regenerate.
10946 * configure: Regenerate.
10947
eb7aa561
PA
109482015-07-24 Pedro Alves <palves@redhat.com>
10949
10950 * acinclude.m4: Include ../ptrace.m4.
10951 * configure.ac: Call GDB_AC_PTRACE.
10952 * config.in, configure: Regenerate.
10953
55d7b841
YQ
109542015-07-24 Yao Qi <yao.qi@linaro.org>
10955
10956 * linux-low.c (linux_create_inferior): Remove setting to
10957 proc->priv->new_inferior.
10958 (linux_attach): Likewise.
10959 (linux_low_filter_event): Likewise.
10960 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10961
c06cbd92
YQ
109622015-07-24 Yao Qi <yao.qi@linaro.org>
10963
10964 * linux-low.c (linux_arch_setup): New function.
10965 (linux_low_filter_event): If proc->tdesc is NULL and
10966 proc->attached is true, call the_low_target.arch_setup.
10967 Otherwise, keep status pending, and return.
10968 (linux_resume_one_lwp_throw): Don't call get_pc if
10969 thread->while_stepping isn't NULL. Don't call
10970 get_thread_regcache if proc->tdesc is NULL.
10971 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10972 (linux_target_ops): Install arch_setup.
10973 * server.c (start_inferior): Call the_target->arch_setup.
10974 * target.h (struct target_ops) <arch_setup>: New field.
10975 (target_arch_setup): New marco.
10976 * lynx-low.c (lynx_target_ops): Update.
10977 * nto-low.c (nto_target_ops): Update.
10978 * spu-low.c (spu_target_ops): Update.
10979 * win32-low.c (win32_target_ops): Update.
10980
5ae3ebba
YQ
109812015-07-24 Yao Qi <yao.qi@linaro.org>
10982
10983 * linux-low.c (linux_add_process): Don't set
10984 proc->priv->new_inferior.
10985 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10986 (linux_attach): Likewise.
10987
eb97750b
YQ
109882015-07-24 Yao Qi <yao.qi@linaro.org>
10989
10990 * server.c (start_inferior): Code refactor.
10991
51aee833
YQ
109922015-07-24 Yao Qi <yao.qi@linaro.org>
10993
10994 * server.c (process_serial_event): Set general_thread.
10995
af1b22f3
YQ
109962015-07-21 Yao Qi <yao.qi@linaro.org>
10997
10998 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10999 aarch64_linux_get_debug_reg_capacity.
11000
554717a3
YQ
110012015-07-17 Yao Qi <yao.qi@linaro.org>
11002
11003 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11004 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11005 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11006 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11007 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11008 (AARCH64_HWP_ALIGNMENT): Likewise.
11009 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11010 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11011 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11012 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11013 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11014 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11015 (struct aarch64_debug_reg_state): Likewise.
11016 (struct arch_lwp_info): Likewise.
11017 (aarch64_align_watchpoint): Likewise.
11018 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11019 (aarch64_watchpoint_length): Likewise.
11020 (aarch64_point_encode_ctrl_reg): Likewise
11021 (aarch64_point_is_aligned): Likewise.
11022 (aarch64_align_watchpoint): Likewise.
11023 (aarch64_linux_set_debug_regs):
11024 (aarch64_dr_state_insert_one_point): Likewise.
11025 (aarch64_dr_state_remove_one_point): Likewise.
11026 (aarch64_handle_breakpoint): Likewise.
11027 (aarch64_handle_aligned_watchpoint): Likewise.
11028 (aarch64_handle_unaligned_watchpoint): Likewise.
11029 (aarch64_handle_watchpoint): Likewise.
11030
c67ca4de
YQ
110312015-07-17 Yao Qi <yao.qi@linaro.org>
11032
11033 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11034 and don't aarch64_get_debug_reg_state. All callers update.
11035 (aarch64_handle_aligned_watchpoint): Likewise.
11036 (aarch64_handle_unaligned_watchpoint): Likewise.
11037 (aarch64_handle_watchpoint): Likewise.
11038 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11039 (aarch64_remove_point): Likewise.
11040
25abf979
YQ
110412015-07-17 Yao Qi <yao.qi@linaro.org>
11042
11043 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11044 debug_printf.
11045 (aarch64_handle_unaligned_watchpoint): Likewise.
11046
db1ff28b
JK
110472015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11048
11049 Revert the previous 3 commits:
11050 Move gdb_regex* to common/
11051 Move linux_find_memory_regions_full & co.
11052 gdbserver build-id attribute generator
11053
700ca40f
JK
110542015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11055 Jan Kratochvil <jan.kratochvil@redhat.com>
11056
11057 gdbserver build-id attribute generator.
11058 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11059 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11060 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11061 (find_phdr): New.
11062 (get_dynamic): Use find_pdhr to traverse program headers.
11063 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11064 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11065 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11066 (get_hex_build_id): New.
11067 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11068 to reply XML document.
11069
9904185c
JK
110702015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11071 Jan Kratochvil <jan.kratochvil@redhat.com>
11072
11073 * target.c: Include target/target-utils.h and fcntl.h.
11074 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11075 (target_fileio_read_stralloc): New functions.
11076
6e5b4429
JK
110772015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11078
11079 * Makefile.in (OBS): Add gdb_regex.o.
11080 (gdb_regex.o): New.
11081 * config.in: Rebuilt.
11082 * configure: Rebuilt.
11083
ddc98fbf
JK
110842015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11085 Jan Kratochvil <jan.kratochvil@redhat.com>
11086
11087 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11088 * Makefile.in (OBS): Add target-utils.o.
11089 (linux-maps.o, target-utils.o): New.
11090 * configure.srv (srv_linux_obj): Add linux-maps.o.
11091
e57bb7a0
PL
110922015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11093
11094 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11095 function, return 1.
11096 (the_low_target): Install it.
11097
586b02a9
PA
110982015-07-14 Pedro Alves <palves@redhat.com>
11099
11100 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11101 Instead, ignore ECHILD, and throw an error for other errnos.
11102
58c1b36c
PA
111032015-07-10 Pedro Alves <palves@redhat.com>
11104
11105 * event-loop.c (struct callback_event) <data>: Change type to
11106 gdb_client_data instance instead of gdb_client_data pointer.
11107 (append_callback_event): Adjust.
11108
421530db
PL
111092015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11110
11111 * linux-aarch64-low.c: Add comments for each linux_target_ops
11112 method. Remove comments already covered in target_ops and
11113 linux_target_ops definitions.
11114 (the_low_target): Add comments for each unimplemented method.
11115
c2d65f38
YQ
111162015-07-09 Yao Qi <yao.qi@linaro.org>
11117
11118 * linux-aarch64-low.c (aarch64_regmap): Remove.
11119 (aarch64_usrregs_info): Remove.
11120 (regs_info): Set field usrregs to NULL.
11121
b20a6524
MM
111222015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11123
11124 * linux-low.c: Include "rsp-low.h"
11125 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11126 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11127 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11128 (handle_btrace_enable_pt): New.
11129 (handle_btrace_general_set): Support "pt".
11130 (handle_btrace_conf_general_set): Support "pt:size".
11131
96c97461
PL
111322015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11133
11134 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11135 Z_PACKET_SW_BP.
11136
37d66942
PL
111372015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11138
11139 * linux-aarch64-low.c: Remove comment about endianness.
11140 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11141 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11142 memcmp.
11143
dc06243f
GB
111442015-06-24 Gary Benson <gbenson@redhat.com>
11145
11146 * linux-i386-ipa.c (stdint.h): Do not include.
11147 * lynx-i386-low.c (stdint.h): Likewise.
11148 * lynx-ppc-low.c (stdint.h): Likewise.
11149 * mem-break.c (stdint.h): Likewise.
11150 * thread-db.c (stdint.h): Likewise.
11151 * tracepoint.c (stdint.h): Likewise.
11152 * win32-low.c (stdint.h): Likewise.
11153
124e13d9
SM
111542015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11155
11156 * server.c (write_qxfer_response): Update call to
11157 remote_escape_output.
11158
909c2cda
JK
111592015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11160 Jan Kratochvil <jan.kratochvil@redhat.com>
11161
11162 Merge multiple hex conversions.
11163 * gdbreplay.c (tohex): Rename to 'fromhex'.
11164 (logchar): Use fromhex.
11165
24c05f46
JK
111662015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11167
11168 * server.c (handle_qxfer_libraries): Set `version' attribute for
11169 <library-list>.
11170
14d2069a
GB
111712015-06-10 Gary Benson <gbenson@redhat.com>
11172
11173 * target.h (struct target_ops) <multifs_open>: New field.
11174 <multifs_unlink>: Likewise.
11175 <multifs_readlink>: Likewise.
11176 * linux-low.c (nat/linux-namespaces.h): New include.
11177 (linux_target_ops): Initialize the_target->multifs_open,
11178 the_target->multifs_unlink and the_target->multifs_readlink.
11179 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11180 * hostio.c (hostio_fs_pid): New static variable.
11181 (hostio_handle_new_gdb_connection): New function.
11182 (handle_setfs): Likewise.
11183 (handle_open): Use the_target->multifs_open as appropriate.
11184 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11185 (handle_readlink): Use the_target->multifs_readlink as
11186 appropriate.
11187 (handle_vFile): Handle vFile:setfs packets.
11188 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11189 after target_handle_new_gdb_connection.
11190
4b8b5e72
GB
111912015-06-10 Gary Benson <gbenson@redhat.com>
11192
11193 * configure.ac (AC_CHECK_FUNCS): Add setns.
11194 * config.in: Regenerate.
11195 * configure: Likewise.
11196 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11197 (linux-namespaces.o): New rule.
11198 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11199
3ac2e371
GB
112002015-06-09 Gary Benson <gbenson@redhat.com>
11201
11202 * hostio.c (handle_open): Process mode argument with
11203 fileio_to_host_mode.
11204
ca9b78ce
YQ
112052015-06-01 Yao Qi <yao.qi@linaro.org>
11206
11207 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11208 * linux-x86-low.c: Likewise.
11209
bfacd19d
DB
112102015-05-28 Don Breazeal <donb@codesourcery.com>
11211
11212 * linux-low.c (handle_extended_wait): Initialize
11213 thread_info.last_resume_kind for new fork children.
11214
452003ef
PA
112152015-05-15 Pedro Alves <palves@redhat.com>
11216
11217 * target.h (target_handle_new_gdb_connection): Rewrite using if
11218 wrapped in do/while.
11219
1041a03c
JB
112202015-05-14 Joel Brobecker <brobecker@adacore.com>
11221
11222 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11223 * configure, config.in: Regenerate.
11224 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11225 Declare typedef.
11226
c269dbdb
DB
112272015-05-12 Don Breazeal <donb@codesourcery.com>
11228
11229 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11230 PTRACE_EVENT_VFORK_DONE.
11231 (linux_low_ptrace_options, extended_event_reported): Add vfork
11232 events.
11233 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11234 and "vforkdone" for RSP 'T' Stop Reply Packet.
11235 * server.h (report_vfork_events): Declare
11236 global variable.
11237
3a8a0396
DB
112382015-05-12 Don Breazeal <donb@codesourcery.com>
11239
11240 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11241 (the_low_target) <new_fork>: Initialize new member.
11242 * linux-arm-low.c (arm_new_fork): New function.
11243 (the_low_target) <new_fork>: Initialize new member.
11244 * linux-low.c (handle_extended_wait): Call new target function
11245 new_fork.
11246 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11247 * linux-mips-low.c (mips_add_watchpoint): New function
11248 extracted from mips_insert_point.
11249 (the_low_target) <new_fork>: Initialize new member.
11250 (mips_linux_new_fork): New function.
11251 (mips_insert_point): Call mips_add_watchpoint.
11252 * linux-x86-low.c (x86_linux_new_fork): New function.
11253 (the_low_target) <new_fork>: Initialize new member.
11254
de0d863e
DB
112552015-05-12 Don Breazeal <donb@codesourcery.com>
11256
11257 * linux-low.c (handle_extended_wait): Implement return value,
11258 rename argument 'event_child' to 'event_lwp', handle
11259 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11260 (linux_low_ptrace_options): New function.
11261 (linux_low_filter_event): Call linux_low_ptrace_options,
11262 use different argument fo linux_enable_event_reporting,
11263 use return value from handle_extended_wait.
11264 (extended_event_reported): New function.
11265 (linux_wait_1): Call extended_event_reported and set
11266 status to report fork events.
11267 (linux_write_memory): Add pid to debug message.
11268 (reset_lwp_ptrace_options_callback): New function.
11269 (linux_handle_new_gdb_connection): New function.
11270 (linux_target_ops): Initialize new structure member.
11271 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11272 * lynx-low.c: Initialize new structure member.
11273 * remote-utils.c (prepare_resume_reply): Implement stop reason
11274 "fork" for "T" stop message.
11275 * server.c (handle_query): Call handle_new_gdb_connection.
11276 * server.h (report_fork_events): Declare global flag.
11277 * target.h (struct target_ops) <handle_new_gdb_connection>:
11278 New member.
11279 (target_handle_new_gdb_connection): New macro.
11280 * win32-low.c: Initialize new structure member.
11281
ddcbc397
DB
112822015-05-12 Don Breazeal <donb@codesourcery.com>
11283
11284 * mem-break.c (APPEND_TO_LIST): Define macro.
11285 (clone_agent_expr): New function.
11286 (clone_one_breakpoint): New function.
11287 (clone_all_breakpoints): New function.
11288 * mem-break.h: Declare new functions.
11289
89245bc0
DB
112902015-05-12 Don Breazeal <donb@codesourcery.com>
11291
11292 * linux-low.c (linux_supports_fork_events): New function.
11293 (linux_supports_vfork_events): New function.
11294 (linux_target_ops): Initialize new structure members.
11295 (initialize_low): Call linux_check_ptrace_features.
11296 * lynx-low.c (lynx_target_ops): Initialize new structure
11297 members.
11298 * server.c (report_fork_events, report_vfork_events):
11299 New global flags.
11300 (handle_query): Add new features to qSupported packet and
11301 response.
11302 (captured_main): Initialize new global variables.
11303 * target.h (struct target_ops) <supports_fork_events>:
11304 New member.
11305 <supports_vfork_events>: New member.
11306 (target_supports_fork_events): New macro.
11307 (target_supports_vfork_events): New macro.
11308 * win32-low.c (win32_target_ops): Initialize new structure
11309 members.
11310
835205d0
GB
113112015-05-12 Gary Benson <gbenson@redhat.com>
11312
11313 * server.c (handle_qxfer_exec_file): Use current process
11314 if annex is empty.
11315
21e94bd9
SL
113162015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11317
11318 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11319 Remove HAVE_PTRACE_GETREGS conditionals.
11320 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11321 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11322
45614f15
YQ
113232015-05-08 Yao Qi <yao.qi@linaro.org>
11324
11325 * linux-low.c (linux_supports_conditional_breakpoints): New
11326 function.
11327 (linux_target_ops): Install new target method.
11328 * lynx-low.c (lynx_target_ops): Install NULL hook for
11329 supports_conditional_breakpoints.
11330 * nto-low.c (nto_target_ops): Likewise.
11331 * spu-low.c (spu_target_ops): Likewise.
11332 * win32-low.c (win32_target_ops): Likewise.
11333 * server.c (handle_query): Check
11334 target_supports_conditional_breakpoints.
11335 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11336 New field.
11337 (target_supports_conditional_breakpoints): New macro.
11338
80ad801e
PA
113392015-05-06 Pedro Alves <palves@redhat.com>
11340
11341 PR server/18081
11342 * server.c (start_inferior): If the process exits, mourn it.
11343
819843c7
GB
113442015-04-21 Gary Benson <gbenson@redhat.com>
11345
11346 * hostio.c (fileio_open_flags_to_host): Factored out to
11347 fileio_to_host_openflags in common/fileio.c. Single use
11348 updated.
11349
a2d5a9d7
MF
113502015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11351
11352 * linux-xtensa-low.c (xtensa_fill_gregset)
11353 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11354 XCHAL_HAVE_LOOP.
11355
deb44829
MF
113562015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11357
11358 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11359 (regs_info): Replace usrregs pointer with NULL.
11360
e57f1de3
GB
113612015-04-17 Gary Benson <gbenson@redhat.com>
11362
11363 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11364 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11365 * server.c (handle_qxfer_exec_file): New function.
11366 (qxfer_packets): Add exec-file entry.
11367 (handle_query): Report qXfer:exec-file:read as supported packet.
11368
62828379
RN
113692015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11370
11371 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11372
b88bb450
GB
113732015-04-09 Gary Benson <gbenson@redhat.com>
11374
11375 * hostio-errno.c (errno_to_fileio_error): Remove function.
11376 Update caller to use remote_fileio_to_fio_error.
11377
c8f4bfdd
YQ
113782015-04-09 Yao Qi <yao.qi@linaro.org>
11379
11380 * linux-low.c (linux_insert_point): Call
11381 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11382 (linux_remove_point): Call remove_memory_breakpoint if type is
11383 raw_bkpt_type_sw.
11384 * linux-x86-low.c (x86_insert_point): Don't call
11385 insert_memory_breakpoint.
11386 (x86_remove_point): Don't call remove_memory_breakpoint.
11387
41f98f02
PA
113882015-04-01 Pedro Alves <palves@redhat.com>
11389 Cleber Rosa <crosa@redhat.com>
11390
11391 * server.c (gdbserver_usage): Reorganize and extend the usage
11392 message.
11393
2bf6fb9d
PA
113942015-03-24 Pedro Alves <palves@redhat.com>
11395
11396 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11397 output. Also dump TRAP_TRACE.
11398 (linux_low_filter_event): In debug output, distinguish a
11399 resume_stop SIGSTOP from a delayed SIGSTOP.
11400
369f6daa
GB
114012015-03-24 Gary Benson <gbenson@redhat.com>
11402
11403 * linux-x86-low.c (x86_linux_new_thread): Moved to
11404 nat/x86-linux.c.
11405 (x86_linux_prepare_to_resume): Likewise.
11406
8e5d4070
GB
114072015-03-24 Gary Benson <gbenson@redhat.com>
11408
11409 * Makefile.in (x86-linux-dregs.o): New rule.
11410 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11411 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11412 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11413 (x86_linux_dr_get): Likewise.
11414 (x86_linux_dr_set): Likewise.
11415 (update_debug_registers_callback): Likewise.
11416 (x86_linux_dr_set_addr): Likewise.
11417 (x86_linux_dr_get_addr): Likewise.
11418 (x86_linux_dr_set_control): Likewise.
11419 (x86_linux_dr_get_control): Likewise.
11420 (x86_linux_dr_get_status): Likewise.
11421 (x86_linux_update_debug_registers): Likewise.
11422
2b95d440
GB
114232015-03-24 Gary Benson <gbenson@redhat.com>
11424
11425 * linux-x86-low.c (x86_linux_update_debug_registers):
11426 New function, factored out from...
11427 (x86_linux_prepare_to_resume): ...this.
11428
14b0bc68
GB
114292015-03-24 Gary Benson <gbenson@redhat.com>
11430
11431 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11432 (x86_linux_dr_set): Likewise.
11433 (update_debug_registers_callback): Likewise.
11434 (x86_linux_dr_set_addr): Likewise.
11435 (x86_linux_dr_get_addr): Likewise.
11436 (x86_linux_dr_set_control): Likewise.
11437 (x86_linux_dr_get_control): Likewise.
11438 (x86_linux_dr_get_status): Likewise.
11439 (x86_linux_prepare_to_resume): Likewise.
11440
5dfe6ca8
GB
114412015-03-24 Gary Benson <gbenson@redhat.com>
11442
11443 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11444 Use perror_with_name. Pass string through gettext.
11445 (x86_linux_dr_set): Likewise.
11446
d33472ad
GB
114472015-03-24 Gary Benson <gbenson@redhat.com>
11448
11449 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11450 (x86_linux_dr_set_addr): ...this.
11451 (x86_dr_low_get_addr): Rename to...
11452 (x86_linux_dr_get_addr): ...this.
11453 (x86_dr_low_set_control): Rename to...
11454 (x86_linux_dr_set_control): ...this.
11455 (x86_dr_low_get_control): Rename to...
11456 (x86_linux_dr_get_control): ...this.
11457 (x86_dr_low_get_status): Rename to...
11458 (x86_linux_dr_get_status): ...this.
11459 (x86_dr_low): Update with new function names.
11460
4b134ca1
GB
114612015-03-24 Gary Benson <gbenson@redhat.com>
11462
11463 * Makefile.in (x86-linux.o): New rule.
11464 * configure.srv: Add x86-linux.o to relevant targets.
11465 * linux-low.c (lwp_set_arch_private_info): New function.
11466 (lwp_arch_private_info): Likewise.
11467 * linux-x86-low.c: Include nat/x86-linux.h.
11468 (arch_lwp_info): Removed structure.
11469 (update_debug_registers_callback):
11470 Use lwp_set_debug_registers_changed.
11471 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11472 and lwp_set_debug_registers_changed.
11473 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11474
34c703da
GB
114752015-03-24 Gary Benson <gbenson@redhat.com>
11476
11477 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11478 * linux-arm-low.c (arm_new_thread): Likewise.
11479 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11480 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11481 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11482 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11483
cff068da
GB
114842015-03-24 Gary Benson <gbenson@redhat.com>
11485
11486 * linux-low.c (ptid_of_lwp): New function.
11487 (lwp_is_stopped): Likewise.
11488 (lwp_stop_reason): Likewise.
11489 * linux-x86-low.c (update_debug_registers_callback):
11490 Use lwp_is_stopped.
11491 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11492 lwp_stop_reason.
11493
b2f7c7e8
GB
114942015-03-24 Gary Benson <gbenson@redhat.com>
11495
11496 * linux-low.h (linux_stop_lwp): Remove declaration.
11497
6d4ee8c6
GB
114982015-03-24 Gary Benson <gbenson@redhat.com>
11499
11500 * linux-low.h: Include nat/linux-nat.h.
11501 * linux-low.c (iterate_over_lwps_args): New structure.
11502 (iterate_over_lwps_filter): New function.
11503 (iterate_over_lwps): Likewise.
11504 * linux-x86-low.c (update_debug_registers_callback):
11505 Update signature to what iterate_over_lwps expects.
11506 Remove PID check that iterate_over_lwps now performs.
11507 (x86_dr_low_set_addr): Use iterate_over_lwps.
11508 (x86_dr_low_set_control): Likewise.
11509
70a0bb6b
GB
115102015-03-24 Gary Benson <gbenson@redhat.com>
11511
11512 * linux-x86-low.c (x86_debug_reg_state): New function.
11513 (x86_linux_prepare_to_resume): Use the above.
11514
7b669087
GB
115152015-03-24 Gary Benson <gbenson@redhat.com>
11516
11517 * linux-low.c (current_lwp_ptid): New function.
11518 * linux-x86-low.c: Include nat/linux-nat.h.
11519 (x86_dr_low_get_addr): Use current_lwp_ptid.
11520 (x86_dr_low_get_control): Likewise.
11521 (x86_dr_low_get_status): Likewise.
11522
eef49a3d
PA
115232015-03-20 Pedro Alves <palves@redhat.com>
11524
11525 * tracepoint.c (cmd_qtstatus): Make "str" const.
11526
b2333d22
PA
115272015-03-20 Pedro Alves <palves@redhat.com>
11528
11529 * server.c (handle_general_set): Make "req_str" const.
11530
23f238d3
PA
115312015-03-19 Pedro Alves <palves@redhat.com>
11532
11533 * linux-low.c (linux_resume_one_lwp): Rename to ...
11534 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11535 instead call perror_with_name.
11536 (check_ptrace_stopped_lwp_gone): New function.
11537 (linux_resume_one_lwp): Reimplement as wrapper around
11538 linux_resume_one_lwp_throw that swallows errors if the LWP is
11539 gone.
11540
91baf43f
PA
115412015-03-19 Pedro Alves <palves@redhat.com>
11542
11543 * linux-low.c (count_events_callback, select_event_lwp_callback):
11544 No longer check whether the thread has resume_stop as last resume
11545 kind.
11546
8bf3b159
PA
115472015-03-19 Pedro Alves <palves@redhat.com>
11548
11549 * linux-low.c (count_events_callback, select_event_lwp_callback):
11550 Use the lwp's status_pending_p field, not the thread's.
11551
b90fc188
PA
115522015-03-19 Pedro Alves <palves@redhat.com>
11553
11554 * linux-low.c (select_event_lwp_callback): Update comments to
11555 no longer mention SIGTRAP.
11556
464b0089
GB
115572015-03-18 Gary Benson <gbenson@redhat.com>
11558
11559 * server.c (handle_query): Do not report vFile:fstat as supported.
11560
aa9e327f
GB
115612015-03-11 Gary Benson <gbenson@redhat.com>
11562
11563 * hostio.c (sys/types.h): New include.
11564 (sys/stat.h): Likewise.
11565 (common-remote-fileio.h): Likewise.
11566 (handle_fstat): New function.
11567 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11568
791c0056
GB
115692015-03-11 Gary Benson <gbenson@redhat.com>
11570
11571 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11572 struct stat.st_blocks and struct stat.st_blksize.
11573 * configure: Regenerate.
11574 * config.in: Likewise.
11575 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11576 (OBS): Add common-remote-fileio.o.
11577 (common-remote-fileio.o): New rule.
11578
9a9df970
PA
115792015-03-09 Pedro Alves <palves@redhat.com>
11580
11581 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11582 'struct sockaddr' pointer in 'accept' call.
11583
9eb1356e
PA
115842015-03-09 Pedro Alves <palves@redhat.com>
11585
11586 Revert:
11587 2015-03-07 Pedro Alves <palves@redhat.com>
11588 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11589 or <winsock2.h> here. Instead include "gdb_socket.h".
11590 (remote_open): Use union gdb_sockaddr_u.
11591 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11592 or <winsock2.h> here. Instead include "gdb_socket.h".
11593 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11594 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11595 or <sys/un.h>.
11596 (init_named_socket, gdb_agent_helper_thread): Use union
11597 gdb_sockaddr_u.
11598
aac331e4
PA
115992015-03-07 Pedro Alves <palves@redhat.com>
11600
11601 * configure.ac (build_warnings): Move
11602 -Wdeclaration-after-statement to the C-specific set.
11603 * configure: Regenerate.
11604
366c75fc
PA
116052015-03-07 Pedro Alves <palves@redhat.com>
11606
11607 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11608 or <winsock2.h> here. Instead include "gdb_socket.h".
11609 (remote_open): Use union gdb_sockaddr_u.
11610 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11611 or <winsock2.h> here. Instead include "gdb_socket.h".
11612 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11613 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11614 or <sys/un.h>.
11615 (init_named_socket, gdb_agent_helper_thread): Use union
11616 gdb_sockaddr_u.
11617
492d29ea
PA
116182015-03-07 Pedro Alves <palves@redhat.com>
11619
11620 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11621 instead.
11622
60a191ed
YQ
116232015-03-06 Yao Qi <yao.qi@linaro.org>
11624
11625 * linux-aarch64-low.c (aarch64_insert_point): Use
11626 show_debug_regs as a boolean.
11627 (aarch64_remove_point): Likewise.
11628
f5771b1d
PA
116292015-03-05 Pedro Alves <palves@redhat.com>
11630
11631 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11632 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11633 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11634 * nto-low.c (nto_target_ops): Likewise.
11635 * spu-low.c (spu_target_ops): Likewise.
11636 * win32-low.c (win32_target_ops): Likewise.
11637
3e572f71
PA
116382015-03-04 Pedro Alves <palves@redhat.com>
11639
72f4393d 11640 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11641 Decide whether a breakpoint triggered based on the SIGTRAP's
11642 siginfo.si_code.
72f4393d
L
11643 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11644 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11645 (linux_low_filter_event): Check for breakpoints before checking
11646 watchpoints.
11647 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11648 siginfo.si_code.
72f4393d
L
11649 (linux_stopped_by_sw_breakpoint)
11650 (linux_supports_stopped_by_sw_breakpoint)
11651 (linux_stopped_by_hw_breakpoint)
11652 (linux_supports_stopped_by_hw_breakpoint): New functions.
11653 (linux_target_ops): Install new target methods.
3e572f71 11654
1ec68e26
PA
116552015-03-04 Pedro Alves <palves@redhat.com>
11656
11657 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11658 * server.c (swbreak_feature, hwbreak_feature): New globals.
11659 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11660 (captured_main): Clear swbreak_feature and hwbreak_feature.
11661 * server.h (swbreak_feature, hwbreak_feature): Declare.
11662 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11663 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11664 supports_stopped_by_hw_breakpoint>: New fields.
11665 (target_supports_stopped_by_sw_breakpoint)
11666 (target_stopped_by_sw_breakpoint)
11667 (target_supports_stopped_by_hw_breakpoint)
11668 (target_stopped_by_hw_breakpoint): Declare.
11669
15c66dd6
PA
116702015-03-04 Pedro Alves <palves@redhat.com>
11671
11672 enum lwp_stop_reason -> enum target_stop_reason
11673 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11674 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11675 (linux_wait_1, stuck_in_jump_pad_callback)
11676 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11677 (linux_stopped_by_watchpoint):
11678 * linux-low.h (enum lwp_stop_reason): Delete.
11679 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11680 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11681
98fc70d6
YQ
116822015-03-04 Yao Qi <yao.qi@linaro.org>
11683
11684 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11685
dd2ac174
GB
116862015-03-03 Gary Benson <gbenson@redhat.com>
11687
11688 * hostio.c (handle_vFile): Fix prefix lengths.
11689
d68e53f4
MM
116902015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11691
11692 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11693 ptr_bits.
11694
bf2d68ab
AA
116952015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11696
11697 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11698 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11699 (clean): Add "rm -f" for above C files.
11700 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11701 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11702 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11703 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11704 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11705 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11706 (init_registers_s390x_vx_linux64)
11707 (init_registers_s390x_tevx_linux64)
11708 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11709 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11710 declarations.
11711 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11712 (s390_store_vxrs_high): New functions.
11713 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11714 NT_S390_VXRS_HIGH.
11715 (s390_arch_setup): Add logic for selecting one of the new target
11716 descriptions. Activate the new vector regsets if applicable.
11717 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11718 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11719 and init_registers_s390x_tevx_linux64.
11720
c966a859
PA
117212015-03-01 Pedro Alves <palves@redhat.com>
11722
11723 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11724 parameter.
11725
4180215b
PA
117262015-02-27 Pedro Alves <palves@redhat.com>
11727
11728 * linux-x86-low.c (u_debugreg_offset): New function.
11729 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11730
749bab01
PA
117312015-02-27 Pedro Alves <palves@redhat.com>
11732
11733 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11734 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11735 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11736 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11737 (ps_lsetfpregs, ps_getpid)
11738 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11739 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11740 (ps_lsetxregs, ps_plog): Declare.
11741
3c14e5a3
PA
117422015-02-27 Pedro Alves <palves@redhat.com>
11743
11744 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11745 IP_AGENT_EXPORT_FUNC.
11746 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11747 IP_AGENT_EXPORT_FUNC.
11748 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11749 (IP_AGENT_EXPORT): Delete.
11750 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11751 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11752 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11753 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11754 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11755 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11756 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11757 (traceframe_read_count, traceframe_write_count)
11758 (traceframes_created, trace_state_variables, get_raw_reg)
11759 (get_trace_state_variable_value, set_trace_state_variable_value)
11760 (ust_loaded, helper_thread_id, cmd_buf): Use
11761 IPA_SYM_EXPORTED_NAME.
11762 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11763 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11764 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11765 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11766 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11767 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11768 EXTERN_C_PUSH/EXTERN_C_POP.
11769 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11770 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11771 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11772 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11773 (traceframe_write_count, traceframe_read_count)
11774 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11775 (about_to_request_buffer_space, get_trace_state_variable_value)
11776 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11777 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11778 EXTERN_C_PUSH/EXTERN_C_POP.
11779 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11780 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11781 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11782 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11783 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11784 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11785 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11786 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11787 Define.
11788 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11789 (IP_AGENT_EXPORT_VAR_DECL): Define.
11790 (tracing): Declare.
11791 (gdb_agent_get_raw_reg): Declare.
11792
fe978cb0
PA
117932015-02-27 Tom Tromey <tromey@redhat.com>
11794 Pedro Alves <palves@redhat.com>
11795
11796 Rename symbols whose names are reserved C++ keywords throughout.
11797
3bc3d82a
PA
117982015-02-27 Pedro Alves <palves@redhat.com>
11799
11800 * Makefile.in (COMPILER): New, get it from autoconf.
11801 (CXX): Get from autoconf instead.
11802 (COMPILE.pre): Use COMPILER.
11803 (CC-LD): Rename to ...
11804 (CC_LD): ... this. Use COMPILER.
11805 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11806 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11807 * acinclude.m4: Include build-with-cxx.m4.
11808 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11809 Disable -Werror by default if building in C++ mode.
11810 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11811 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11812 the C++ compiler. Save/restore CXXFLAGS too.
11813 * configure: Regenerate.
11814
07697489
PA
118152015-02-27 Pedro Alves <palves@redhat.com>
11816
11817 * acinclude.m4: Include libiberty.m4.
11818 * configure.ac: Call libiberty_INIT.
11819 * config.in, configure: Regenerate.
11820
9beb7c4e
PA
118212015-02-26 Pedro Alves <palves@redhat.com>
11822
11823 * linux-low.c (linux_wait_1): When incrementing the PC past a
11824 program breakpoint always use the_low_target.breakpoint_len as
11825 increment, rather than the maximum between that and
11826 the_low_target.decr_pc_after_break.
11827
8090aef2
PA
118282015-02-23 Pedro Alves <palves@redhat.com>
11829
11830 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11831 thread was doing a step-over; always adjust the PC if
11832 we stepped over a permanent breakpoint.
11833 (linux_wait_1): If we stepped over breakpoint that was on top of a
11834 permanent breakpoint, manually advance the PC past it.
11835
bc9540e8
PA
118362015-02-23 Pedro Alves <palves@redhat.com>
11837
11838 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11839 modes.
11840 (x86_fill_gregset, x86_store_gregset): Use it when handling
11841 $orig_eax.
11842
2db9a427
PA
118432015-02-20 Pedro Alves <palves@redhat.com>
11844
11845 * thread-db.c: Include "nat/linux-procfs.h".
11846 (thread_db_init): Skip listing new threads if the kernel supports
11847 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11848
afa8d396
PA
118492015-02-20 Pedro Alves <palves@redhat.com>
11850
11851 * linux-low.c (status_pending_p_callback): Use ptid_match.
11852
c9587f88
AT
118532015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11854
11855 PR breakpoints/16812
11856 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11857 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11858 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11859
b05ec7a5
AT
118602015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11861
11862 PR breakpoints/15956
11863 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11864
d33501a5
MM
118652015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11866
11867 * linux-low.c (linux_low_btrace_conf): Print size.
11868 * server.c (handle_btrace_conf_general_set): New.
11869 (hanle_general_set): Call handle_btrace_conf_general_set.
11870 (handle_query): Report Qbtrace-conf:bts:size as supported.
11871
f4abbc16
MM
118722015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11873
11874 * linux-low.c (linux_low_enable_btrace): Update parameters.
11875 (linux_low_btrace_conf): New.
11876 (linux_target_ops)<to_btrace_conf>: Initialize.
11877 * server.c (current_btrace_conf): New.
11878 (handle_btrace_enable): Rename to ...
11879 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11880 to target_enable_btrace. Update comment. Update users.
11881 (handle_qxfer_btrace_conf): New.
11882 (qxfer_packets): Add btrace-conf entry.
11883 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11884 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11885 (target_ops)<read_btrace_conf>: New.
11886 (target_enable_btrace): Update parameters.
11887 (target_read_btrace_conf): New.
11888
043c3577
MM
118892015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11890
11891 * server.c (handle_btrace_general_set): Remove call to
11892 target_supports_btrace.
11893 (supported_btrace_packets): New.
11894 (handle_query): Call supported_btrace_packets.
11895 * target.h: include btrace-common.h.
11896 (btrace_target_info): Removed.
11897 (supports_btrace, target_supports_btrace): Update parameters.
11898
734b0e4b
MM
118992015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11900
11901 * Makefile.in (SFILES): Add common/btrace-common.c.
11902 (OBS): Add common/btrace-common.o.
11903 (btrace-common.o): Add build rules.
11904 * linux-low: Include btrace-common.h.
11905 (linux_low_read_btrace): Use struct btrace_data. Call
11906 btrace_data_init and btrace_data_fini.
11907
d6c146e9
PA
119082015-02-06 Pedro Alves <palves@redhat.com>
11909
11910 * thread-db.c (find_new_threads_callback): Add debug output.
11911
20ba1ce6
PA
119122015-02-04 Pedro Alves <palves@redhat.com>
11913
11914 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11915 (resume_stopped_resumed_lwps): New function.
11916 (linux_wait_for_event_filtered): Use it.
11917
8cc73a39
SDJ
119182015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11919
11920 * Makefile.in (SFILES): Add linux-personality.c.
11921 (linux-personality.o): New rule.
11922 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11923 list of objects to be built.
11924 * linux-low.c: Include nat/linux-personality.h.
11925 (linux_create_inferior): Remove code to disable address space
11926 randomization (moved to ../nat/linux-personality.c). Create
11927 cleanup to disable address space randomization.
11928
fb23d554
SDJ
119292015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11930
11931 * Makefile.in (posix-strerror.o): New rule.
11932 (mingw-strerror.o): Likewise.
11933 * configure: Regenerated.
11934 * configure.ac: Source file ../common/common.host. Initialize new
11935 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11936
cdf43629
YQ
119372015-01-14 Yao Qi <yao@codesourcery.com>
11938
11939 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11940 (ppc-linux.o): New rule.
11941 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11942 * configure.ac: AC_CHECK_FUNCS(getauxval).
11943 * config.in: Re-generated.
11944 * configure: Re-generated.
11945 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11946 ppc64_64bit_inferior_p
11947
514c5338
YQ
119482015-01-14 Yao Qi <yao@codesourcery.com>
11949
11950 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11951 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11952 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11953 (PT_ORIG_R3, PT_TRAP): Likewise.
11954 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11955 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11956 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11957
3368c1e5
JB
119582015-01-10 Joel Brobecker <brobecker@adacore.com>
11959
11960 * i387-fp.c (i387_cache_to_xsave): In look over
11961 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11962 zmmh_low_space field by use of zmmh_high_space.
11963
582511be
PA
119642015-01-09 Pedro Alves <palves@redhat.com>
11965
11966 * linux-low.c (step_over_bkpt): Move higher up in the file.
11967 (handle_extended_wait): Don't store the stop_pc here.
11968 (get_stop_pc): Adjust comments and rename to ...
11969 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11970 stopped for a software breakpoint or hardware breakpoint.
11971 (thread_still_has_status_pending_p): New function.
11972 (status_pending_p_callback): Use
11973 thread_still_has_status_pending_p. If the event is no longer
11974 interesting, resume the LWP.
11975 (handle_tracepoints): Add assert.
11976 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11977 (wstatus_maybe_breakpoint): New function.
11978 (cancel_breakpoint): Delete function.
11979 (check_stopped_by_watchpoint): New function, factored out from
11980 linux_low_filter_event.
11981 (lp_status_maybe_breakpoint): Delete function.
11982 (linux_low_filter_event): Remove filter_ptid argument.
11983 Leave thread group exits pending here. Store the LWP's stop PC.
11984 Always leave events pending.
11985 (linux_wait_for_event_filtered): Pull all events out of the
11986 kernel, and leave them all pending.
11987 (count_events_callback, select_event_lwp_callback): Consider all
11988 events.
11989 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11990 (select_event_lwp): Only give preference to the stepping LWP in
11991 all-stop mode. Adjust comments.
11992 (ignore_event): New function.
11993 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11994 references to cancel_breakpoints. Adjust to renames. Also give
11995 equal priority to all LWPs that have had events in non-stop mode.
11996 If reporting a software breakpoint event, unadjust the LWP's PC.
11997 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11998 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11999 Adjust.
12000 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12001 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12002 (linux_stopped_by_watchpoint): Adjust.
12003 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12004 * linux-low.h (enum lwp_stop_reason): New.
12005 (struct lwp_info) <stop_pc>: Adjust comment.
12006 <stopped_by_watchpoint>: Delete field.
12007 <stop_reason>: New field.
12008 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12009 * mem-break.c (software_breakpoint_inserted_here)
12010 (hardware_breakpoint_inserted_here): New function.
12011 * mem-break.h (software_breakpoint_inserted_here)
12012 (hardware_breakpoint_inserted_here): Declare.
12013 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12014 (cancel_breakpoints): Delete.
12015 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12016 (upload_fast_traceframes): Remove references to
12017 cancel_breakpoints.
12018
a33e3959
PA
120192015-01-09 Pedro Alves <palves@redhat.com>
12020
12021 * thread-db.c (find_new_threads_callback): Ignore thread if the
12022 kernel thread ID is -1.
12023
8784d563
PA
120242015-01-09 Pedro Alves <palves@redhat.com>
12025
12026 * linux-low.c (linux_attach_fail_reason_string): Move to
12027 nat/linux-ptrace.c, and rename.
12028 (linux_attach_lwp): Update comment.
12029 (attach_proc_task_lwp_callback): New function.
12030 (linux_attach): Adjust to rename and use
12031 linux_proc_attach_tgid_threads.
12032 (linux_attach_fail_reason_string): Delete declaration.
12033
76f2b779
JB
120342015-01-01 Joel Brobecker <brobecker@adacore.com>
12035
12036 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12037 * server.c (gdbserver_version): Likewise.
12038
fafcc06a
SDJ
120392014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12040
12041 * remote-utils.c: Include ctype.h.
12042 (input_interrupt): Explicitly handle the case when the char
12043 received is the NUL byte. Improve the printing of non-ASCII
12044 characters.
12045
beed38b8
JB
120462014-12-16 Joel Brobecker <brobecker@adacore.com>
12047
12048 * linux-low.c (linux_low_filter_event): Update call to
12049 linux_enable_event_reporting following the addition of
12050 a new parameter to that function.
12051
bf330350
CU
120522014-12-16 Catalin Udma <catalin.udma@freescale.com>
12053
12054 PR server/17457
12055 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12056 (AARCH64_FPCR_REGNO): Likewise.
12057 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12058 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12059 (aarch64_store_fpregset): Likewise.
12060
5227d625
JB
120612014-12-15 Joel Brobecker <brobecker@adacore.com>
12062
12063 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12064 Remove FIXME comment about assumption about N.
12065
f93b65a0
JB
120662014-12-13 Joel Brobecker <brobecker@adacore.com>
12067
12068 * configure.ac: If large-file support is disabled in GDBserver,
12069 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12070 * configure: Regenerate.
12071
e5a9158d
AA
120722014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12073
12074 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12075 warning upon ENODATA from ptrace.
12076 * linux-s390-low.c (s390_store_tdb): New.
12077 (s390_regsets): Add regset for NT_S390_TDB.
12078
feea5f36
AA
120792014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12080
12081 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12082 without a fill_function.
12083 * linux-s390-low.c (s390_fill_last_break): Remove.
12084 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12085 (s390_arch_setup): Use regset's size instead of fill_function for
12086 loop end condition.
12087
098dbe61
AA
120882014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12089
12090 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12091 the regset's store function when ptrace returned an error.
12092 * regcache.c (get_thread_regcache): Invalidate register cache
12093 before fetching inferior's registers.
12094
28eef672
AA
120952014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12096
12097 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12098 while-loop as for-loop.
12099 (regsets_store_inferior_registers): Likewise.
12100
bdca27a2
YQ
121012014-11-28 Yao Qi <yao@codesourcery.com>
12102
12103 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12104 * config.in, configure: Re-generate.
12105 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12106 is defined.
12107
9c232dda
YQ
121082014-11-21 Yao Qi <yao@codesourcery.com>
12109
12110 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12111 (AC_CHECK_HEADERS): Remove malloc.h.
12112 * configure: Re-generated.
12113 * config.in: Re-generated.
12114 * server.h: Don't include alloca.h and malloc.h.
12115 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12116 Don't include malloc.h.
12117
43968415
JB
121182014-11-17 Joel Brobecker <brobecker@adacore.com>
12119
12120 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12121 corresponding ERRNO check in same block.
12122
40e91bc7
PA
121232014-11-12 Pedro Alves <palves@redhat.com>
12124
12125 * server.c (cont_thread): Update comment.
12126 (start_inferior, attach_inferior): No longer clear cont_thread.
12127 (handle_v_cont): No longer set cont_thread.
12128 (captured_main): Clear cont_thread each time a GDB connects.
12129
c2c118cf
PA
121302014-11-12 Pedro Alves <palves@redhat.com>
12131
12132 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12133 thread, and don't resume all threads if the Hc thread has exited.
12134
78708b7c
PA
121352014-11-12 Pedro Alves <palves@redhat.com>
12136
12137 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12138 the process group instead of to a specific LWP.
12139
a2abc7de
PA
121402014-10-15 Pedro Alves <palves@redhat.com>
12141
12142 PR server/17487
12143 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12144 parameter.
12145 (arm_set_thread_context): Delete.
12146 (the_low_target): Adjust.
12147 * win32-i386-low.c (debug_registers_changed)
12148 (debug_registers_used): Delete.
12149 (update_debug_registers_callback): New function.
12150 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12151 needing to update their debug registers.
12152 (win32_get_current_dr): New function.
12153 (x86_dr_low_get_addr, x86_dr_low_get_control)
12154 (x86_dr_low_get_status): Fetch the debug register from the thread
12155 record's context.
12156 (i386_initial_stuff): Adjust.
12157 (i386_get_thread_context): Remove current_event parameter. Don't
12158 clear debug_registers_changed nor copy DR values to
12159 debug_reg_state.
12160 (i386_set_thread_context): Delete.
12161 (i386_prepare_to_resume): New function.
12162 (i386_thread_added): Mark the thread as needing to update irs
12163 debug registers.
12164 (the_low_target): Remove i386_set_thread_context and install
12165 i386_prepare_to_resume.
12166 * win32-low.c (win32_get_thread_context): Adjust.
12167 (win32_set_thread_context): Use SetThreadContext
12168 directly.
12169 (win32_prepare_to_resume): New function.
12170 (win32_require_context): New function, factored out from ...
12171 (thread_rec): ... this.
12172 (continue_one_thread): Call win32_prepare_to_resume on each thread
12173 we're about to continue.
12174 (win32_resume): Call win32_prepare_to_resume on the event thread.
12175 * win32-low.h (struct win32_thread_info)
12176 <debug_registers_changed>: New field.
12177 (struct win32_target_ops): Change prototype of set_thread_context,
12178 delete set_thread_context and add prepare_to_resume.
12179 (win32_require_context): New declaration.
12180
a442d071
GB
121812014-10-08 Gary Benson <gbenson@redhat.com>
12182
12183 * server.h: Do not include common-exceptions.h.
12184
6f1947e8
GB
121852014-10-08 Gary Benson <gbenson@redhat.com>
12186
12187 * server.h: Do not include cleanups.h.
12188
63b434a4
JH
121892014-09-30 James Hogan <james.hogan@imgtec.com>
12190
12191 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12192 mips64-dsp-linux.c.
12193
c4d9ceb6
YQ
121942014-09-23 Yao Qi <yao@codesourcery.com>
12195
12196 * linux-low.c (lp_status_maybe_breakpoint): New function.
12197 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12198 (count_events_callback): Likewise.
12199 (select_event_lwp_callback): Likewise.
12200 (cancel_breakpoints_callback): Likewise.
12201
89a5711c
DB
122022014-09-19 Don Breazeal <donb@codesourcery.com>
12203
12204 * linux-low.c (handle_extended_wait): Call
12205 linux_ptrace_get_extended_event.
12206 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12207 linux_is_extended_waitstatus.
12208
bffc0964
JB
122092014-09-16 Joel Brobecker <brobecker@adacore.com>
12210
12211 * Makefile.in (CPPFLAGS): Define.
12212 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12213 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12214
0bfdf32f
GB
122152014-09-16 Gary Benson <gbenson@redhat.com>
12216
12217 * inferiors.h (current_inferior): Renamed as...
12218 (current_thread): New variable. All uses updated.
12219 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12220 (maybe_move_out_of_jump_pad): Likewise.
12221 (cancel_breakpoint): Likewise.
12222 (linux_low_filter_event): Likewise.
12223 (wait_for_sigstop): Likewise.
12224 (linux_resume_one_lwp): Likewise.
12225 (need_step_over_p): Likewise.
12226 (start_step_over): Likewise.
12227 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12228 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12229 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12230 and save_inferior as saved_thread.
12231 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12232 saved_thread.
12233 (regcache_invalidate_thread): Likewise.
12234 * remote-utils.c (prepare_resume_reply): Likewise.
12235 * thread-db.c (thread_db_get_tls_address): Likewise.
12236 (disable_thread_event_reporting): Likewise.
12237 (remove_thread_event_breakpoints): Likewise.
12238 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12239 as saved_thread.
12240 * target.h (set_desired_inferior): Renamed as...
12241 (set_desired_thread): New declaration. All uses updated.
12242 * server.c (myresume): Updated comment to reference thread instead
12243 of inferior.
12244 (handle_serial_event): Likewise.
12245 (handle_target_event): Likewise.
12246
361c8ade
GB
122472014-09-12 Tom Tromey <tromey@redhat.com>
12248 Gary Benson <gbenson@redhat.com>
12249
12250 * regcache.h: Include common-regcache.h.
12251 (regcache_read_pc): Don't declare.
12252 * regcache.c (get_thread_regcache_for_ptid): New function.
12253
bd9269f7
GB
122542014-09-11 Tom Tromey <tromey@redhat.com>
12255 Gary Benson <gbenson@redhat.com>
12256
12257 * symbol.c: New file.
12258 * Makefile.in (SFILES): Add symbol.c.
12259 (OBS): Add symbol.o.
12260
f8c1d06b
GB
122612014-09-11 Gary Benson <gbenson@redhat.com>
12262
12263 * target.c (target_stop_ptid, target_continue_ptid): New
12264 functions.
12265
721ec300
GB
122662014-09-11 Tom Tromey <tromey@redhat.com>
12267 Gary Benson <gbenson@redhat.com>
12268
12269 * target.h: Include target/target.h.
12270 * target.c (target_read_memory, target_read_uint32)
12271 (target_write_memory): New functions.
12272
c5e92cca
GB
122732014-09-11 Gary Benson <gbenson@redhat.com>
12274
12275 * server.h (debug_hw_points): Don't declare.
12276 * server.c (debug_hw_points): Don't define. Replace all uses
12277 with show_debug_regs.
12278 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12279 all uses with show_debug_regs.
12280
2e4bb98a
EBM
122812014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12282
12283 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12284 endianness into account.
12285 (ppc_supply_ptrace_register): Likewise.
12286
ac740bc7
JH
122872014-09-03 James Hogan <james.hogan@imgtec.com>
12288
12289 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12290 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12291
97ea6506
GB
122922014-09-03 Gary Benson <gbenson@redhat.com>
12293
12294 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12295 ALL_DEBUG_ADDRESS_REGISTERS.
12296
df7e5265
GB
122972014-09-02 Gary Benson <gbenson@redhat.com>
12298
12299 * i386-low.h: Renamed as...
12300 * x86-low.h: New file. All type, function and variable name
12301 prefixes changed from "i386_" to "x86_". All references updated.
12302 * i386-low.c: Renamed as...
12303 * x86-low.c: New file. All type, function and variable name
12304 prefixes changed from "i386_" to "x86_". All references updated.
12305
ed859da7
GB
123062014-09-02 Gary Benson <gbenson@redhat.com>
12307
12308 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12309 (x86_linux_new_thread): Likewise.
12310
860789c7
GB
123112014-08-29 Gary Benson <gbenson@redhat.com>
12312
12313 * server.h (setjmp.h): Do not include.
12314 (toplevel): Do not declare.
12315 (common-exceptions.h): Include.
12316 (cleanups.h): Likewise.
12317 * server.c (toplevel): Do not define.
12318 (exit_code): New static global.
12319 (detach_or_kill_for_exit_cleanup): New function.
12320 (main): New function. Original main renamed to...
12321 (captured_main): New function.
12322 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12323
ff55e1b5
GB
123242014-08-29 Gary Benson <gbenson@redhat.com>
12325
12326 * Makefile.in (SFILES): Add common/common-exceptions.c.
12327 (OBS): Add common-exceptions.o.
12328 (common-exceptions.o): New rule.
12329 * utils.c (prepare_to_throw_exception): New function.
12330
e9bcb658
GB
123312014-08-29 Gary Benson <gbenson@redhat.com>
12332
12333 * config.in: Regenerate.
12334 * configure: Likewise.
12335
e3180625
GB
123362014-08-29 Gary Benson <gbenson@redhat.com>
12337
12338 * Makefile.in (SFILES): Add common/cleanups.c.
12339 (OBS): cleanups.o.
12340 (cleanups.o): New rule.
12341
e3d6ba5d
GB
123422014-08-29 Gary Benson <gbenson@redhat.com>
12343
12344 * utils.c (internal_vwarning): New function.
12345
7096e886
GB
123462014-08-28 Gary Benson <gbenson@redhat.com>
12347
12348 * utils.h (fatal): Remove declaration.
12349 * utils.c (fatal): Remove function.
12350
14ce3192
GB
123512014-08-28 Gary Benson <gbenson@redhat.com>
12352
12353 * tracepoint.c (gdb_agent_init): Replace fatal with
12354 perror_with_name.
12355 (initialize_tracepoint): Likewise.
12356
50278d59
GB
123572014-08-28 Gary Benson <gbenson@redhat.com>
12358
12359 * remote-utils.c (remote_prepare): Replace fatal with error.
12360
aa96c426
GB
123612014-08-28 Gary Benson <gbenson@redhat.com>
12362
12363 * linux-low.c (linux_async): Replace fatal with warning.
12364 Tidy up and return.
12365 (linux_start_non_stop): Return -1 if linux_async failed.
12366
f7160e97
GB
123672014-08-28 Gary Benson <gbenson@redhat.com>
12368
12369 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12370 gdb_assert.
12371 (i386_dr_low_get_addr): Remove vague comment.
12372 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12373 gdb_assert.
12374
38e08fca
GB
123752014-08-28 Gary Benson <gbenson@redhat.com>
12376
12377 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12378 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12379 internal_error.
12380 (linux_resume_one_lwp): Likewise.
12381 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12382 gdb_assert.
12383 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12384 with internal_error.
12385 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12386 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12387 (find_register_by_name): Replace fatal with internal_error.
12388 (find_regno): Likewise.
12389 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12390 * thread-db.c (thread_db_create_event): Likewise.
12391 (thread_db_load_search): Likewise.
12392 (try_thread_db_load_1): Likewise.
12393 * tracepoint.c (get_jump_space_head): Replace fatal with
12394 internal_error.
12395 (claim_trampoline_space): Likewise.
12396 (have_fast_tracepoint_trampoline_buffer): Likewise.
12397 (cmd_qtstart): Likewise.
12398 (stop_tracing): Likewise.
12399 (fast_tracepoint_collecting): Likewise.
12400 (target_malloc): Likewise.
12401 (download_tracepoint): Likewise.
12402 (download_trace_state_variables): Replace check with gdb_assert.
12403 (upload_fast_traceframes): Replace fatal with internal_error.
12404
34abf635
GB
124052014-08-19 Tom Tromey <tromey@redhat.com>
12406 Gary Benson <gbenson@redhat.com>
12407
12408 * Makefile.in (SFILES): Add common/common-debug.c.
12409 (OBS): Add common-debug.o.
12410 (common-debug.o): New rule.
12411 * debug.h (debug_printf): Don't declare.
12412 * debug.c (debug_printf): Renamed and rewritten as...
12413 (debug_vprintf): New function.
12414
f6e94d78
GB
124152014-08-19 Gary Benson <gbenson@redhat.com>
12416
12417 * utils.h: Do not include print-utils.h.
12418
9239eeab
GB
124192014-08-19 Tom Tromey <tromey@redhat.com>
12420 Gary Benson <gbenson@redhat.com>
12421
12422 * server.h: Add static assertion.
12423 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12424
ef87c8bb
GB
124252014-08-19 Tom Tromey <tromey@redhat.com>
12426 Gary Benson <gbenson@redhat.com>
12427
12428 * Makefile.in (SFILES): Add common/errors.c.
12429 (OBS): Add errors.o.
12430 (IPA_OBS): Add errors-ipa.o.
12431 (errors.o): New rule.
12432 (errors-ipa.o): Likewise.
12433 * utils.h (perror_with_name, error, warning): Don't declare.
12434 * utils.c (warning): Renamed and rewritten as...
12435 (vwarning): New function.
12436 (error): Renamed and rewritten as...
12437 (verror): New function.
12438 (internal_error): Renamed and rewritten as...
12439 (internal_verror): New function.
12440
bb974a24
GB
124412014-08-07 Gary Benson <gbenson@redhat.com>
12442
12443 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12444 * configure: Regenerate.
12445 * config.in: Likewise.
12446 * server.h: Do not include errno.h.
12447 * event-loop.c: Likewise.
12448 * hostio-errno.c: Likewise.
12449 * linux-low.c: Likewise.
12450 * remote-utils.c: Likewise.
12451 * spu-low.c: Likewise.
12452 * utils.c: Likewise.
12453 * gdbreplay.c: Unconditionally include errno.h.
12454
6d3d12eb
GB
124552014-08-07 Gary Benson <gbenson@redhat.com>
12456
12457 * server.h: Do not include string.h.
12458 * event-loop.c: Likewise.
12459 * linux-low.c: Likewise.
12460 * regcache.c: Likewise.
12461 * remote-utils.c: Likewise.
12462 * spu-low.c: Likewise.
12463 * utils.c: Likewise.
12464
dccbb609
GB
124652014-08-07 Gary Benson <gbenson@redhat.com>
12466
12467 * server.h: Do not include gdb_assert.h.
12468
e76df0d0
GB
124692014-08-07 Gary Benson <gbenson@redhat.com>
12470
12471 * server.h: Do not include common-utils.h.
12472
4cb9c816
GB
124732014-08-07 Gary Benson <gbenson@redhat.com>
12474
12475 * server.h: Do not include ptid.h.
12476 * notif.h: Likewise.
12477
3995eeee
GB
124782014-08-07 Gary Benson <gbenson@redhat.com>
12479
12480 * server.h: Do not include gdb_locale.h.
12481
cb9f1a9b
GB
124822014-08-07 Gary Benson <gbenson@redhat.com>
12483
12484 * server.h: Do not include gdb/signals.h.
12485 * win32-low.c: Likewise.
12486
a5fceff8
GB
124872014-08-07 Gary Benson <gbenson@redhat.com>
12488
12489 * server.h: Do not include pathmax.h.
12490
b9391142
GB
124912014-08-07 Gary Benson <gbenson@redhat.com>
12492
12493 * server.h: Do not include libiberty.h.
12494 * linux-bfin-low.c: Likewise.
12495
0e443c87
GB
124962014-08-07 Gary Benson <gbenson@redhat.com>
12497
12498 * server.h: Do not include ansidecl.h.
12499
8ebb3f56
GB
125002014-08-07 Gary Benson <gbenson@redhat.com>
12501
12502 * linux-x86-low.c: Do not include stddef.h.
12503 * lynx-ppc-low.c: Likewise.
12504 * tracepoint.c: Likewise.
12505
8980bdf6
GB
125062014-08-07 Gary Benson <gbenson@redhat.com>
12507
12508 * server.h: Do not include stdarg.h.
12509 * nto-low.c: Likewise.
12510
d7096f71
GB
125112014-08-07 Gary Benson <gbenson@redhat.com>
12512
12513 * server.h: Do not include stdlib.h.
12514 * inferiors.c: Likewise.
12515 * linux-low.c: Likewise.
12516 * regcache.c: Likewise.
12517 * spu-low.c: Likewise.
12518 * tracepoint.c: Likewise.
12519 * utils.c: Likewise.
12520
d02f550d
GB
125212014-08-07 Gary Benson <gbenson@redhat.com>
12522
12523 * server.h: Do not include stdio.h.
12524 * linux-low.c: Likewise.
12525 * remote-utils.c: Likewise.
12526 * spu-low.c: Likewise.
12527 * utils.c: Likewise.
12528 * wincecompat.c: Likewise.
12529
87f6c4e3
GB
125302014-08-06 Gary Benson <gbenson@redhat.com>
12531
12532 * regcache.c (init_register_cache): Move conditionals inside if.
12533
7089dca4
GB
125342014-08-06 Gary Benson <gbenson@redhat.com>
12535
12536 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12537
462f517e
GB
125382014-07-31 Gary Benson <gbenson@redhat.com>
12539
12540 * ax.h: Do not include server.h.
12541 * gdbthread.h: Likewise.
12542 * lynx-low.h: Likewise.
12543 * notif.h: Likewise.
12544
976411d6
GB
125452014-07-30 Gary Benson <gbenson@redhat.com>
12546
12547 * server.h: Include common-defs.h.
12548 Do not include config.h or build-gnulib-gdbserver/config.h.
12549
d41f6d8e
GB
125502014-07-30 Gary Benson <gbenson@redhat.com>
12551
12552 * hostio-errno.c: Move server.h to top of includes list.
12553 * inferiors.c: Likewise.
12554 * linux-x86-low.c: Likewise.
12555 * notif.c: Include server.h.
12556
314c6a35
TT
125572014-07-24 Tom Tromey <tromey@redhat.com>
12558 Gary Benson <gbenson@redhat.com>
12559
12560 * server.h (CORE_ADDR): Now unsigned.
12561
69ff6be5
PA
125622014-07-16 Pedro Alves <palves@redhat.com>
12563
12564 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12565
ce9e3fe7
PA
125662014-07-15 Pedro Alves <palves@redhat.com>
12567
12568 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12569 copy.
12570
e76126e8
PA
125712014-07-11 Pedro Alves <palves@redhat.com>
12572
12573 * linux-low.c (kill_wait_lwp): New function, based on
12574 kill_one_lwp_callback, but use my_waitpid directly.
12575 (kill_one_lwp_callback, linux_kill): Use it.
12576
8e9db26e
PA
125772014-06-23 Pedro Alves <palves@redhat.com>
12578
12579 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12580 before setting DR0..DR3.
12581
698b3e08
GB
125822014-06-20 Gary Benson <gbenson@redhat.com>
12583
12584 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12585 * configure: Regenerated.
12586 * config.in: Likewise.
12587
125f8a3d
GB
125882014-06-20 Gary Benson <gbenson@redhat.com>
12589
12590 * Makefile.in (SFILES): Update locations for files moved
12591 from common to nat.
12592 (object file files): Reordered.
12593
42995dbd
GB
125942014-06-20 Gary Benson <gbenson@redhat.com>
12595
12596 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12597 (i386_dr_low_set_addr): Likewise.
12598 (i386_dr_low_get_addr): Likewise.
12599 (i386_dr_low_can_set_control): Likewise.
12600 (i386_dr_low_set_control): Likewise.
12601 (i386_dr_low_get_control): Likewise.
12602 (i386_dr_low_get_status): Likewise.
12603 (i386_get_debug_register_length): Likewise.
12604 * linux-x86-low.c (i386_dr_low_set_addr):
12605 Changed signature. Made static.
12606 (i386_dr_low_get_addr): Likewise.
12607 (i386_dr_low_set_control): Likewise.
12608 (i386_dr_low_get_control): Likewise.
12609 (i386_dr_low_get_status): Likewise.
12610 (i386_dr_low): New global variable.
12611 * win32-i386-low.c (i386_dr_low_set_addr):
12612 Changed signature. Made static.
12613 (i386_dr_low_get_addr): Likewise.
12614 (i386_dr_low_set_control): Likewise.
12615 (i386_dr_low_get_control): Likewise.
12616 (i386_dr_low_get_status): Likewise.
12617 (i386_dr_low): New global variable.
12618
e1d2394b
MS
126192014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12620
12621 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12622 * Makefile.in (AR, AR_FLAGS): Define.
12623 * configure: Regenerate.
12624
3a8ee006
GB
126252014-06-19 Gary Benson <gbenson@redhat.com>
12626
12627 * Makefile.in (i386-dregs.o): New rule.
12628 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12629 * i386-low.c (target.h): Remove include.
12630 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12631 (DR_CONTROL_SHIFT): Likewise.
12632 (DR_CONTROL_SIZE): Likewise.
12633 (DR_RW_EXECUTE): Likewise.
12634 (DR_RW_WRITE): Likewise.
12635 (DR_RW_READ): Likewise.
12636 (DR_RW_IORW): Likewise.
12637 (DR_LEN_1): Likewise.
12638 (DR_LEN_2): Likewise.
12639 (DR_LEN_4): Likewise.
12640 (DR_LEN_8): Likewise.
12641 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12642 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12643 (DR_ENABLE_SIZE): Likewise.
12644 (DR_LOCAL_SLOWDOWN): Likewise.
12645 (DR_GLOBAL_SLOWDOWN): Likewise.
12646 (DR_CONTROL_RESERVED): Likewise.
12647 (I386_DR_CONTROL_MASK): Likewise.
12648 (I386_DR_VACANT): Likewise.
12649 (I386_DR_LOCAL_ENABLE): Likewise.
12650 (I386_DR_GLOBAL_ENABLE): Likewise.
12651 (I386_DR_DISABLE): Likewise.
12652 (I386_DR_SET_RW_LEN): Likewise.
12653 (I386_DR_GET_RW_LEN): Likewise.
12654 (I386_DR_WATCH_HIT): Likewise.
12655 (i386_wp_op_t): Likewise.
12656 (i386_show_dr): Likewise.
12657 (i386_length_and_rw_bits): Likewise.
12658 (i386_insert_aligned_watchpoint): Likewise.
12659 (i386_remove_aligned_watchpoint): Likewise.
12660 (i386_handle_nonaligned_watchpoint): Likewise.
12661 i386_update_inferior_debug_regs(): Likewise.
12662 (i386_dr_insert_watchpoint): Likewise.
12663 (i386_dr_remove_watchpoint): Likewise.
12664 (i386_dr_region_ok_for_watchpoint): Likewise.
12665 (i386_dr_stopped_data_address): Likewise.
12666 (i386_dr_stopped_by_watchpoint): Likewise.
12667
8f26655c
GB
126682014-06-19 Gary Benson <gbenson@redhat.com>
12669
12670 * i386-low.c (i386_dr_show): Renamed to
12671 i386_show_dr and made static. All uses updated.
12672 (i386_dr_length_and_rw_bits): Renamed to
12673 i386_length_and_rw_bits and made static.
12674 All uses updated.
12675 (i386_dr_insert_aligned_watchpoint): Renamed to
12676 i386_insert_aligned_watchpoint and made static.
12677 All uses updated.
12678 (i386_dr_remove_aligned_watchpoint): Renamed to
12679 i386_remove_aligned_watchpoint and made static.
12680 All uses updated.
12681 (i386_dr_update_inferior_debug_regs): Renamed to
12682 i386_update_inferior_debug_regs and made static.
12683 All uses updated.
12684
b9228891
GB
126852014-06-18 Gary Benson <gbenson@redhat.com>
12686
5171def3
GB
12687 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12688 (i386_dr_low_can_set_control): Likewise.
12689 (i386_get_debug_register_length): Likewise.
12690 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12691 (i386_dr_low_can_set_control): Likewise.
12692 (i386_get_debug_register_length): Likewise.
12693
126942014-06-17 Gary Benson <gbenson@redhat.com>
12695
b9228891
GB
12696 * i386-low.h (i386-dregs.h): New include.
12697 (DR_FIRSTADDR): Now in i386-dregs.h.
12698 (DR_LASTADDR): Likewise.
12699 (DR_NADDR): Likewise.
12700 (DR_STATUS): Likewise.
12701 (DR_CONTROL): Likewise.
12702 (i386_debug_reg_state): Likewise.
12703 (i386_dr_insert_watchpoint): Likewise.
12704 (i386_dr_remove_watchpoint): Likewise.
12705 (i386_dr_region_ok_for_watchpoint): Likewise.
12706 (i386_dr_stopped_data_address): Likewise.
12707 (i386_dr_stopped_by_watchpoint): Likewise.
12708 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12709
4be83cc2
GB
127102014-06-18 Gary Benson <gbenson@redhat.com>
12711
12712 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12713 i386_dr_insert_watchpoint.
12714 (i386_low_remove_watchpoint): Renamed to
12715 i386_dr_remove_watchpoint.
12716 (i386_low_region_ok_for_watchpoint): Renamed to
12717 i386_dr_region_ok_for_watchpoint.
12718 (i386_low_stopped_data_address): Renamed to
12719 i386_dr_stopped_data_address.
12720 (i386_low_stopped_by_watchpoint): Renamed to
12721 i386_dr_stopped_by_watchpoint.
12722 * i386-low.c (i386_show_dr): Renamed to
12723 i386_dr_show and made nonstatic. All uses updated.
12724 (i386_length_and_rw_bits): Renamed to
12725 i386_dr_length_and_rw_bits and made nonstatic.
12726 All uses updated.
12727 (i386_insert_aligned_watchpoint): Renamed to
12728 i386_dr_insert_aligned_watchpoint and made nonstatic.
12729 All uses updated.
12730 (i386_remove_aligned_watchpoint): Renamed to
12731 i386_dr_remove_aligned_watchpoint and made nonstatic.
12732 All uses updated.
12733 (i386_update_inferior_debug_regs): Renamed to
12734 i386_dr_update_inferior_debug_regs and made nonstatic.
12735 All uses updated.
12736 (i386_low_insert_watchpoint): Renamed to
12737 i386_dr_insert_watchpoint. All uses updated.
12738 (i386_low_remove_watchpoint): Renamed to
12739 i386_dr_remove_watchpoint. All uses updated.
12740 (i386_low_region_ok_for_watchpoint): Renamed to
12741 i386_dr_region_ok_for_watchpoint. All uses updated.
12742 (i386_low_stopped_data_address): Renamed to
12743 i386_dr_stopped_data_address. All uses updated.
12744 (i386_low_stopped_by_watchpoint): Renamed to
12745 i386_dr_stopped_by_watchpoint. All uses updated.
12746
131aa0d4
GB
127472014-06-18 Gary Benson <gbenson@redhat.com>
12748
12749 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12750 (i386_dr_low_can_set_control): Likewise.
12751 (i386_insert_aligned_watchpoint): New check.
12752
d9305f7f
GB
127532014-06-18 Gary Benson <gbenson@redhat.com>
12754
12755 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12756 Renamed to state.
12757
e927c9fc
GB
127582014-06-18 Gary Benson <gbenson@redhat.com>
12759
12760 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12761 instead of fatal and error.
12762 (i386_handle_nonaligned_watchpoint): Likewise.
12763
1b6d4134
GB
127642014-06-18 Gary Benson <gbenson@redhat.com>
12765
12766 * i386-low.c (i386_get_debug_register_length): New macro.
12767 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12768 (i386_show_dr): Use debug_printf instead of fprintf. Use
12769 phex to format values.
12770
6e62758f
GB
127712014-06-18 Gary Benson <gbenson@redhat.com>
12772
12773 * i386-low.h: Comment changes.
12774 * i386-low.c: Likewise.
12775
fc6e2f03
GB
127762014-06-18 Gary Benson <gbenson@redhat.com>
12777
12778 * i386-low.c: Whitespace changes.
12779
f9d1eeed
TT
127802014-06-12 Tom Tromey <tromey@redhat.com>
12781
12782 * utils.c (freeargv): Remove.
12783
0b04e523
TT
127842014-06-12 Tom Tromey <tromey@redhat.com>
12785
12786 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12787 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12788 (parse_debug_format_options): Likewise.
12789 (gdbserver_usage): Likewise.
12790 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12791 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12792 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12793 against libiberty.
12794 ($(LIBGNU)): Depend on libiberty.
12795 (all-lib): Recurse into all subdirs.
12796 (install-only): Invoke "install" target in subdirs.
12797 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12798 targets.
12799 * configure: Rebuild.
12800 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12801 for vasprintf, vsnprintf, or gettimeofday.
12802 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12803 srv_tgtobj.
12804
270c9937
JB
128052014-06-05 Joel Brobecker <brobecker@adacore.com>
12806
12807 * development.sh: Delete.
12808 * Makefile.in (config.status): Adjust dependency on development.sh.
12809 * configure.ac: Adjust development.sh source call.
12810 * configure: Regenerate.
12811
0a261ed8
PA
128122014-06-02 Pedro Alves <palves@redhat.com>
12813
12814 * ax.c (gdb_free_agent_expr): New function.
12815 * ax.h (gdb_free_agent_expr): New declaration.
12816 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12817 list.
12818 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12819 static.
12820 (clear_breakpoint_conditions_and_commands): New function.
12821 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12822 (clear_breakpoint_conditions_and_commands): New declaration.
12823
e9dae05e
RR
128242014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12825
12826 * linux-aarch64-low.c (asm/ptrace.h): Include.
12827
5876f503
JK
128282014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12829
12830 Fix TLS access for -static -pthread.
12831 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12832 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12833 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12834
802e8e6d
PA
128352014-05-20 Pedro Alves <palves@redhat.com>
12836
12837 * linux-aarch64-low.c (aarch64_insert_point)
12838 (aarch64_remove_point): No longer check whether the type is
12839 supported here. Adjust to new interface.
12840 (the_low_target): Install aarch64_supports_z_point_type as
12841 supports_z_point_type method.
12842 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12843 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12844 instead of a Z packet char. Adjust.
12845 (arm_supports_z_point_type): New function.
12846 (arm_insert_point, arm_remove_point): Adjust to new interface.
12847 (the_low_target): Install arm_supports_z_point_type.
12848 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12849 (cris_insert_point, cris_remove_point): Adjust to new interface.
12850 Don't check whether the type is supported here.
12851 (the_low_target): Install cris_supports_z_point_type.
12852 * linux-low.c (linux_supports_z_point_type): New function.
12853 (linux_insert_point, linux_remove_point): Adjust to new interface.
12854 * linux-low.h (struct linux_target_ops) <insert_point,
12855 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12856 raw_breakpoint pointer parameter.
12857 <supports_z_point_type>: New method.
12858 * linux-mips-low.c (mips_supports_z_point_type): New function.
12859 (mips_insert_point, mips_remove_point): Adjust to new interface.
12860 Use mips_supports_z_point_type.
12861 (the_low_target): Install mips_supports_z_point_type.
12862 * linux-ppc-low.c (the_low_target): Install NULL as
12863 supports_z_point_type method.
12864 * linux-s390-low.c (the_low_target): Install NULL as
12865 supports_z_point_type method.
12866 * linux-sparc-low.c (the_low_target): Install NULL as
12867 supports_z_point_type method.
12868 * linux-x86-low.c (x86_supports_z_point_type): New function.
12869 (x86_insert_point): Adjust to new insert_point interface. Use
12870 insert_memory_breakpoint. Adjust to new
12871 i386_low_insert_watchpoint interface.
12872 (x86_remove_point): Adjust to remove_point interface. Use
12873 remove_memory_breakpoint. Adjust to new
12874 i386_low_remove_watchpoint interface.
12875 (the_low_target): Install x86_supports_z_point_type.
12876 * lynx-low.c (lynx_target_ops): Install NULL as
12877 supports_z_point_type callback.
12878 * nto-low.c (nto_supports_z_point_type): New.
12879 (nto_insert_point, nto_remove_point): Adjust to new interface.
12880 (nto_target_ops): Install nto_supports_z_point_type.
12881 * mem-break.c: Adjust intro comment.
12882 (struct raw_breakpoint) <raw_type, size>: New fields.
12883 <inserted>: Update comment.
12884 <shlib_disabled>: Delete field.
12885 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12886 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12887 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12888 (raw_bkpt_type_to_target_hw_bp_type): New function.
12889 (find_enabled_raw_code_breakpoint_at): New function.
12890 (find_raw_breakpoint_at): New type and size parameters. Use them.
12891 (insert_memory_breakpoint): New function, based off
12892 set_raw_breakpoint_at.
12893 (remove_memory_breakpoint): New function.
12894 (set_raw_breakpoint_at): Reimplement.
12895 (set_breakpoint): New, based on set_breakpoint_at.
12896 (set_breakpoint_at): Reimplement.
12897 (delete_raw_breakpoint): Go through the_target->remove_point
12898 instead of assuming memory breakpoints.
12899 (find_gdb_breakpoint_at): Delete.
12900 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12901 (find_gdb_breakpoint): New function.
12902 (set_gdb_breakpoint_at): Delete.
12903 (z_type_supported): New function.
12904 (set_gdb_breakpoint_1): New function, loosely based off
12905 set_gdb_breakpoint_at.
12906 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12907 (delete_gdb_breakpoint_at): Delete.
12908 (delete_gdb_breakpoint_1): New function, loosely based off
12909 delete_gdb_breakpoint_at.
12910 (delete_gdb_breakpoint): New function.
12911 (clear_gdb_breakpoint_conditions): Rename to ...
12912 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12913 breakpoint.
12914 (add_condition_to_breakpoint): Make static.
12915 (add_breakpoint_condition): Take a struct breakpoint pointer
12916 instead of an address. Adjust.
12917 (gdb_condition_true_at_breakpoint): Rename to ...
12918 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12919 z_type parameter.
12920 (gdb_condition_true_at_breakpoint): Reimplement.
12921 (add_breakpoint_commands): Take a struct breakpoint pointer
12922 instead of an address. Adjust.
12923 (gdb_no_commands_at_breakpoint): Rename to ...
12924 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12925 parameter. Return true if no breakpoint was found. Change debug
12926 output.
12927 (gdb_no_commands_at_breakpoint): Reimplement.
12928 (run_breakpoint_commands): Rename to ...
12929 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12930 and change return type to boolean.
12931 (run_breakpoint_commands): New function.
12932 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12933 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12934 breakpoint. Go through the_target->remove_point instead of
12935 assuming memory breakpoint.
12936 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12937 software and hardware breakpoints.
12938 (reinsert_raw_breakpoint): Go through the_target->insert_point
12939 instead of assuming memory breakpoint.
12940 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12941 software and hardware breakpoints.
12942 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12943 Check both software and hardware breakpoints.
12944 (validate_inserted_breakpoint): Assert the breakpoint is a
12945 software breakpoint. Set the inserted flag to -1 instead of
12946 setting shlib_disabled.
12947 (delete_disabled_breakpoints): Adjust.
12948 (validate_breakpoints): Only validate software breakpoints.
12949 Adjust to inserted flag change.
12950 (check_mem_read, check_mem_write): Skip breakpoint types other
12951 than software breakpoints. Adjust to inserted flag change.
12952 * mem-break.h (enum raw_bkpt_type): New enum.
12953 (raw_breakpoint, struct process_info): Forward declare.
12954 (Z_packet_to_target_hw_bp_type): Delete declaration.
12955 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12956 (set_gdb_breakpoint, delete_gdb_breakpoint)
12957 (clear_breakpoint_conditions): New declarations.
12958 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12959 (breakpoint_inserted_here): Update comment.
12960 (add_breakpoint_condition, add_breakpoint_commands): Replace
12961 address parameter with a breakpoint pointer parameter.
12962 (gdb_breakpoint_here): Update comment.
12963 (delete_gdb_breakpoint_at): Delete.
12964 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12965 * server.c (process_point_options): Take a struct breakpoint
12966 pointer instead of an address. Adjust.
12967 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12968 delete_gdb_breakpoint.
12969 * spu-low.c (spu_target_ops): Install NULL as
12970 supports_z_point_type method.
12971 * target.h: Include mem-break.h.
12972 (struct target_ops) <prepare_to_access_memory>: Update comment.
12973 <supports_z_point_type>: New field.
12974 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12975 instead of a char. Also take a raw breakpoint pointer.
12976 * win32-arm-low.c (the_low_target): Install NULL as
12977 supports_z_point_type.
12978 * win32-i386-low.c (i386_supports_z_point_type): New function.
12979 (i386_insert_point, i386_remove_point): Adjust to new interface.
12980 (the_low_target): Install i386_supports_z_point_type.
12981 * win32-low.c (win32_supports_z_point_type): New function.
12982 (win32_insert_point, win32_remove_point): Adjust to new interface.
12983 (win32_target_ops): Install win32_supports_z_point_type.
12984 * win32-low.h (struct win32_target_ops):
12985 <supports_z_point_type>: New method.
12986 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12987 instead of a char. Also take a raw breakpoint pointer.
12988
932539e3
PA
129892014-05-20 Pedro Alves <palves@redhat.com>
12990
12991 * mem-break.h: Include break-common.h.
12992 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12993 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12994 (Z_packet_to_target_hw_bp_type): New declaration.
12995 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12996 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12997 (Z_PACKET_ACCESS_WP): Delete macros.
12998 (Z_packet_to_hw_type): Delete function.
12999 * i386-low.h: Don't include break-common.h here.
13000 (Z_packet_to_hw_type): Delete declaration.
13001 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13002 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13003 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13004 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13005 * linux-aarch64-low.c: Don't include break-common.h here.
13006 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13007 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13008 (Z_packet_to_target_hw_bp_type): Delete function.
13009 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13010 function.
13011 (mips_insert_point, mips_remove_point): Use
13012 Z_packet_to_target_hw_bp_type.
13013
4ff0d3d8
PA
130142014-05-20 Pedro Alves <palves@redhat.com>
13015
13016 * linux-aarch64-low.c: Include break-common.h.
13017 (enum target_point_type): Delete.
13018 (Z_packet_to_point_type): Rename to ...
13019 (Z_packet_to_target_hw_bp_type): ... this, and return a
13020 target_hw_bp_type instead.
13021 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13022 instead of an enum target_point_type.
13023 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13024 breakpoint type.
13025 (aarch64_dr_state_insert_one_point)
13026 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13027 (aarch64_handle_aligned_watchpoint)
13028 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13029 Take an enum target_hw_bp_type instead of an enum
13030 target_point_type.
13031 (aarch64_supports_z_point_type): New function.
13032 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13033 use Z_packet_to_target_hw_bp_type.
13034
786dc519
JB
130352014-05-20 Joel Brobecker <brobecker@adacore.com>
13036
13037 * configure.ac: Only use -Werror by default when DEVELOPMENT
13038 is true.
13039 * configure: Regenerate.
13040
9e0aa64f
JK
130412014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13042
13043 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13044 * linux-x86-low.c (X86_64_USER_REGS): New.
13045 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13046
2b577b92
YQ
130472014-04-28 Yao Qi <yao@codesourcery.com>
13048
13049 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13050 name.
13051
94611da2
PA
130522014-04-25 Pedro Alves <palves@redhat.com>
13053
13054 PR server/16255
13055 * linux-low.c (linux_attach_fail_reason_string): New function.
13056 (linux_attach_lwp): Delete.
13057 (linux_attach_lwp_1): Rename to ...
13058 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13059 argument. Remove "initial" parameter. Return int instead of
13060 void. Don't error or warn here.
13061 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13062 failure to attach to the tgid. Call warning when failing to
13063 attach to an lwp.
13064 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13065 argument. Remove "initial" parameter. Return int instead of
13066 void. Don't error or warn here.
13067 (linux_attach_fail_reason_string): New declaration.
13068 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13069 interface change. Use linux_attach_fail_reason_string.
13070
01f9f808
MS
130712014-04-24 Michael Sturm <michael.sturm@mintel.com>
13072 Walfred Tedeschi <walfred.tedeschi@intel.com>
13073
13074 * Makefile.in: Added rules to handle new files
13075 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13076 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13077 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13078 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13079 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13080 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13081 x32-avx512-linux.o.
13082 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13083 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13084 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13085 i386/x32-avx512.xml.
13086 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13087 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13088 i386/x32-avx512-linux.xml.
13089 * i387-fp.c (num_avx512_k_registers): New constant for number
13090 of K registers.
13091 (num_avx512_zmmh_low_registers): New constant for number of
13092 lower ZMM registers (0-15).
13093 (num_avx512_zmmh_high_registers): New constant for number of
13094 higher ZMM registers (16-31).
13095 (num_avx512_ymmh_registers): New contant for number of higher
13096 YMM registers (ymm16-31 added by avx521 on x86_64).
13097 (num_avx512_xmm_registers): New constant for number of higher
13098 XMM registers (xmm16-31 added by AVX512 on x86_64).
13099 (struct i387_xsave): Add space for AVX512 registers.
13100 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13101 Add code to handle AVX512 registers.
13102 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13103 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13104 prototypei from generated file.
13105 (tdesc_amd64_avx512_linux): Likewise.
13106 (init_registers_x32_avx512_linux): Likewise.
13107 (tdesc_x32_avx512_linux): Likewise.
13108 (init_registers_i386_avx512_linux): Likewise.
13109 (tdesc_i386_avx512_linux): Likewise.
13110 (x86_64_regmap): Add AVX512 registers.
13111 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13112 mask.
13113 (initialize_low_arch): Add code to initialize AVX512 registers.
13114
51aa91f9
PA
131152014-04-23 Pedro Alves <palves@redhat.com>
13116
13117 * mem-break.c (find_gdb_breakpoint_at): Make static.
13118 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13119
a4165e94
PA
131202014-04-23 Pedro Alves <palves@redhat.com>
13121
13122 * i386-low.c: Don't include break-common.h here.
13123 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13124 prototype to take target_hw_bp_type as argument instead of a Z
13125 packet char.
13126 * i386-low.h: Include break-common.h here.
13127 (Z_packet_to_hw_type): Declare.
13128 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13129 prototypes.
13130 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13131 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13132 (x86_remove_point): Convert the packet number to a
13133 target_hw_bp_type before calling i386_low_remove_watchpoint.
13134 * win32-i386-low.c (i386_insert_point): Convert the packet number
13135 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13136 (i386_remove_point): Convert the packet number to a
13137 target_hw_bp_type before calling i386_low_remove_watchpoint.
13138
b8acf843
PA
131392014-04-23 Pedro Alves <palves@redhat.com>
13140
13141 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13142
d708bcd1
PA
131432014-04-10 Pedro Alves <palves@redhat.com>
13144
13145 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13146 Check if the condition or command is NULL before checking if the
13147 breakpoint is known. On success, return true.
13148 * mem-break.h (add_breakpoint_condition): Document return.
13149 (add_breakpoint_commands): Add describing comment.
13150 * server.c (skip_to_semicolon): New function.
13151 (process_point_options): Use it.
13152
2eec7d5b
PA
131532014-04-09 Pedro Alves <palves@redhat.com>
13154
13155 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13156 to lwpid_of.
13157
fa96cb38
PA
131582014-02-27 Pedro Alves <palves@redhat.com>
13159
13160 PR 12702
13161 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13162 macros.
13163 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13164 output.
13165 (last_thread_of_process_p): Take a PID argument instead of a
13166 thread pointer.
13167 (linux_wait_for_lwp): Delete.
13168 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13169 functions.
13170 (linux_low_filter_event): New function, party factored out from
13171 linux_wait_for_event.
13172 (linux_wait_for_event): Rename to ...
13173 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13174 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13175 sigsuspend. Check for zombie leaders.
13176 (linux_wait_for_event): Reimplement as wrapper around
13177 linux_wait_for_event_filtered.
13178 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13179 a normal or signal exit is seen, it's the whole process exiting.
13180 (wait_for_sigstop): No longer a for_each_inferior callback.
13181 Rewrite on top of linux_wait_for_event_filtered.
13182 (stop_all_lwps): Call wait_for_sigstop directly.
13183 * server.c (resume, handle_target_event): Handle
13184 TARGET_WAITKIND_NO_RESUMED.
13185
d763de10
JB
131862014-02-26 Joel Brobecker <brobecker@adacore.com>
13187
13188 * win32-low.c (psapi_get_dll_name,
13189 * win32_CreateToolhelp32Snapshot): Delete.
13190 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13191 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13192 Delete.
13193 (handle_load_dll): Add function description.
13194 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13195
850a0f76
JB
131962014-02-26 Joel Brobecker <brobecker@adacore.com>
13197
13198 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13199 Add comment.
13200 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13201 base address when calling win32_add_one_solib.
13202 (handle_load_dll): Delete local variable load_addr.
13203 Remove 0x1000 offset applied to DLL base address when calling
13204 win32_add_one_solib.
13205 (handle_unload_dll): Add comment.
13206
f25b3fc3
JB
132072014-02-26 Joel Brobecker <brobecker@adacore.com>
13208
13209 * win32-low.c (win32_add_all_dlls): Renames
13210 win32_ensure_ntdll_loaded. Rewrite function documentation.
13211 Adjust implementation to always load all DLLs.
13212 Add 0x1000 offset to DLL base address when calling
13213 win32_add_one_solib.
13214 (child_initialization_done): New static global.
13215 (do_initial_child_stuff): Set child_initialization_done to
13216 zero during child initialization, and 1 after. Replace call
13217 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13218 Add comment.
13219 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13220 (handle_unload_dll): Add function documentation.
13221 (get_child_debug_event): Ignore load and unload DLL events
13222 during child initialization.
13223
d86d4aaf
DE
132242014-02-20 Doug Evans <dje@google.com>
13225
3bc32da3 13226 Remove global all_lwps.
d86d4aaf
DE
13227 * inferiors.h (ptid_of): Move here from linux-low.h.
13228 (pid_of, lwpid_of): Ditto.
13229 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13230 parameter is a struct thread_info * now.
13231 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13232 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13233 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13234 directly.
13235 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13236 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13237 * linux-arm-low.c (update_registers_callback): Update, "entry"
13238 parameter is a struct thread_info * now.
13239 Fetch lwpid from current_inferior directly.
13240 (arm_insert_point): Pass &all_threads to find_inferior instead of
13241 &all_lwps.
13242 (arm_remove_point): Ditto.
13243 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13244 (arm_prepare_to_resume): Fetch pid from thread.
13245 (arm_read_description): Fetch lwpid from current_inferior directly.
13246 * linux-low.c (all_lwps): Delete.
13247 (delete_lwp): Delete call to remove_inferior.
13248 (handle_extended_wait): Fetch lwpid from thread.
13249 (add_lwp): Don't set lwp->entry.id. Remove call to
13250 add_inferior_to_list.
13251 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13252 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13253 (kill_one_lwp_callback): Ditto.
13254 (linux_kill): Don't dereference NULL pointer.
13255 Fetch ptid,lwpid from thread.
13256 (get_detach_signal): Fetch ptid from thread.
13257 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13258 Simplify call to regcache_invalidate_thread.
13259 (delete_lwp_callback): Update, "entry" parameter is a
13260 struct thread_info * now. Fetch pid from thread.
13261 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13262 (status_pending_p_callback): Update, "entry" parameter is a
13263 struct thread_info * now. Fetch ptid from thread.
13264 (find_lwp_pid): Update, "entry" parameter is a
13265 struct thread_info * now.
13266 (linux_wait_for_lwp): Fetch pid from thread.
13267 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13268 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13269 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13270 (dequeue_one_deferred_signal): Ditto.
13271 (cancel_breakpoint): Fetch ptid from current_inferior.
13272 (linux_wait_for_event): Pass &all_threads to find_inferior,
13273 not &all_lwps. Fetch ptid, lwpid from thread.
13274 (count_events_callback): Update, "entry" parameter is a
13275 struct thread_info * now.
13276 (select_singlestep_lwp_callback): Ditto.
13277 (select_event_lwp_callback): Ditto.
13278 (cancel_breakpoints_callback): Ditto.
13279 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13280 not &all_lwps.
13281 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13282 (unsuspend_one_lwp): Update, "entry" parameter is a
13283 struct thread_info * now.
13284 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13285 not &all_lwps.
13286 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13287 Fetch lwpid from thread, not lwp.
13288 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13289 Pass &all_threads to find_inferior, not &all_lwps.
13290 (send_sigstop): Fetch lwpid from thread, not lwp.
13291 (send_sigstop_callback): Update, "entry" parameter is a
13292 struct thread_info * now.
13293 (suspend_and_send_sigstop_callback): Ditto.
13294 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13295 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13296 struct thread_info * now.
13297 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13298 from thread, lwp.
13299 (lwp_running): Update, "entry" parameter is a
13300 struct thread_info * now.
13301 (stop_all_lwps): Fetch ptid from thread.
13302 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13303 (linux_resume_one_lwp): Fetch lwpid from thread.
13304 (linux_set_resume_request): Update, "entry" parameter is a
13305 struct thread_info * now. Fetch pid, lwpid from thread.
13306 (resume_status_pending_p): Update, "entry" parameter is a
13307 struct thread_info * now.
13308 (need_step_over_p): Ditto. Fetch lwpid from thread.
13309 (start_step_over): Fetch lwpid from thread.
13310 (linux_resume_one_thread): Update, "entry" parameter is a
13311 struct thread_info * now. Fetch lwpid from thread.
13312 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13313 (proceed_one_lwp): Update, "entry" parameter is a
13314 struct thread_info * now. Fetch lwpid from thread.
13315 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13316 struct thread_info * now.
13317 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13318 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13319 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13320 directly.
13321 (regsets_store_inferior_registers): Ditto.
13322 (fetch_register, store_register): Ditto.
13323 (linux_read_memory, linux_write_memory): Ditto.
13324 (linux_request_interrupt): Ditto.
13325 (linux_read_auxv): Ditto.
13326 (linux_xfer_siginfo): Ditto.
13327 (linux_qxfer_spu): Ditto.
13328 (linux_qxfer_libraries_svr4): Ditto.
13329 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13330 moved to inferiors.h.
13331 (get_lwp): Delete.
13332 (get_thread_lwp): Update.
13333 (struct lwp_info): Delete member "entry". Simplify comment for
13334 member "thread".
13335 (all_lwps): Delete.
13336 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13337 current_inferior directly.
13338 (update_watch_registers_callback): Update, "entry" parameter is a
13339 struct thread_info * now. Fetch pid from thread.
13340 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13341 (mips_insert_point): Fetch lwpid from current_inferior.
13342 Pass &all_threads to find_inferior, not &all_lwps.
13343 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13344 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13345 directly.
13346 (mips_stopped_data_address): Ditto.
13347 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13348 directly.
13349 * linux-tile-low.c (tile_arch_setup): Ditto.
13350 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13351 (update_debug_registers_callback): Update, "entry" parameter is a
13352 struct thread_info * now. Fetch pid from thread.
13353 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13354 Pass &all_threads to find_inferior, not &all_lwps.
13355 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13356 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13357 Pass &all_threads to find_inferior, not &all_lwps.
13358 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13359 (i386_dr_low_get_status): Ditto.
13360 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13361 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13362 (x86_linux_read_description): Ditto.
13363 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13364
3b8361aa
DE
133652014-02-20 Doug Evans <dje@google.com>
13366
13367 * inferiors.c (get_first_inferior): Fix buglet.
13368
f7667f0d
DE
133692014-02-19 Doug Evans <dje@google.com>
13370
13371 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13372 * inferiors.c (add_thread): Change result type to struct thread_info *.
13373 All callers updated.
13374 (add_lwp): Call add_thread here instead of in callers.
13375 All callers updated.
13376 * linux-low.h (get_lwp_thread): Rewrite.
13377 (struct lwp_info): New member "thread".
13378
b3312d80
DE
133792014-02-19 Doug Evans <dje@google.com>
13380
13381 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13382 All callers updated.
13383
ecc6f45c
DE
133842014-02-19 Doug Evans <dje@google.com>
13385
13386 * inferiors.c (add_thread): Fix whitespace.
13387
649ebbca
DE
133882014-02-19 Doug Evans <dje@google.com>
13389
13390 * dll.c (clear_dlls): Replace accessing list implemention details
13391 with API function.
13392 * gdbthread.h (get_first_thread): Declare.
13393 * inferiors.c (for_each_inferior_with_data): New function.
13394 (get_first_thread): New function.
13395 (find_thread_ptid): Simplify.
13396 (get_first_inferior): New function.
13397 (clear_list): Delete.
13398 (one_inferior_p): New function.
13399 (clear_inferior_list): New function.
13400 (clear_inferiors): Update.
13401 * inferiors.h (for_each_inferior_with_data): Declare.
13402 (clear_inferior_list): Declare.
13403 (one_inferior_p): Declare.
13404 (get_first_inferior): Declare.
13405 * linux-low.c (linux_wait_for_event): Replace accessing list
13406 implemention details with API function.
13407 * server.c (target_running): Ditto.
13408 (accumulate_file_name_length): New function.
13409 (emit_dll_description): New function.
13410 (handle_qxfer_libraries): Replace accessing list implemention
13411 details with API function.
13412 (handle_qxfer_threads_worker): New function.
13413 (handle_qxfer_threads_proper): Replace accessing list implemention
13414 details with API function.
13415 (handle_query): Ditto.
13416 (visit_actioned_threads_callback_ftype): New typedef.
13417 (visit_actioned_threads_data): New struct.
13418 (visit_actioned_threads): Rewrite to be find_inferior callback.
13419 (resume): Call find_inferior.
13420 (handle_status): Replace accessing list implemention
13421 details with API function.
13422 (process_serial_event): Replace accessing list implemention details
13423 with API function.
13424 * target.c (set_desired_inferior): Replace accessing list implemention
13425 details with API function.
13426 * tracepoint.c (same_process_p): New function.
13427 (gdb_agent_about_to_close): Replace accessing list implemention
13428 details with API function.
13429 * win32-low.c (child_delete_thread): Replace accessing list
13430 implemention details with API function.
13431 (match_dll_by_basename): New function.
13432 (dll_is_loaded_by_basename): New function.
13433 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13434 details call to dll_is_loaded_by_basename.
13435
80894984
DE
134362014-02-19 Doug Evans <dje@google.com>
13437
13438 * dll.h (struct dll_info): Add comment.
13439 * gdbthread.h (struct thread_info): Add comment.
13440 (current_ptid): Simplify.
13441 * inferiors.c (add_process): Update.
13442 (remove_process): Update.
13443 * inferiors.h (struct process_info): Rename member "head" to "entry".
13444 * linux-low.c (delete_lwp): Update.
13445 (add_lwp): Update.
13446 (last_thread_of_process_p): Update.
13447 (kill_one_lwp_callback, linux_kill): Update.
13448 (status_pending_p_callback): Update.
13449 (wait_for_sigstop): Update. Simplify read of ptid.
13450 (start_step_over): Update.
13451 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13452 (get_lwp_thread): Update.
13453 (struct lwp_info): Rename member "head" to "entry".
13454 * regcache.h (inferior_list_entry): Delete.
13455 * server.c (kill_inferior_callback): Update.
13456 (detach_or_kill_inferior_callback): Update.
13457 (print_started_pid): Update.
13458 (print_attached_pid): Update.
13459 (process_serial_event): Simplify read of ptid.
13460 * thread-db.c (thread_db_create_event): Update.
13461 (thread_db_get_tls_address): Update.
13462 * win32-low.c (current_inferior_ptid): Simplify.
13463
46917d26
TT
134642014-02-19 Tom Tromey <tromey@redhat.com>
13465
13466 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13467 argument.
13468 (target_supports_btrace): Update.
13469
0759a81e
YQ
134702014-02-14 Yao Qi <yao@codesourcery.com>
13471
13472 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13473 (rsp-low-ipa.o): New target.
13474
a7191e8b
TT
134752014-02-12 Tom Tromey <tromey@redhat.com>
13476
13477 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13478 convert_ascii_to_int.
13479 * regcache.c (registers_to_string): Likewise.
13480 * remote-utils.c (decode_M_packet): Likewise.
13481 * server.c (process_serial_event): Likewise.
13482
ff0e980e
TT
134832014-02-12 Tom Tromey <tromey@redhat.com>
13484
13485 * server.c (handle_query, handle_v_run): Use hex2bin, not
13486 unhexify.
13487 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13488
e9371aff
TT
134892014-02-12 Tom Tromey <tromey@redhat.com>
13490
13491 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13492 convert_int_to_ascii.
13493 * regcache.c (registers_to_string, collect_register_as_string):
13494 Likewise.
13495 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13496 Likewise.
13497 * server.c (process_serial_event): Likewise.
13498 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13499 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13500
971dc0b8
TT
135012014-02-12 Tom Tromey <tromey@redhat.com>
13502
13503 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13504 bin2hex, not hexify.
13505 * tracepoint.c (cmd_qtstatus): Likewise.
13506
0a822afb
TT
135072014-02-12 Tom Tromey <tromey@redhat.com>
13508
13509 * remote-utils.c (monitor_output): Pass explicit length to
13510 hexify.
13511
9c3d6531
TT
135122014-02-12 Tom Tromey <tromey@redhat.com>
13513
13514 * tracepoint.c: Include rsp-low.h.
13515 * server.c: Include rsp-low.h.
13516 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13517 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13518 declare.
13519 * remote-utils.c: Include rsp-low.h.
13520 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13521 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13522 (convert_int_to_ascii, convert_ascii_to_int): Move to
13523 common/rsp-low.c.
13524 * regcache.c: Include rsp-low.h.
13525 * ax.c: Include rsp-low.h.
13526 * Makefile.in (SFILES): Add common/rsp-low.c.
13527 (OBS): Add rsp-low.o.
13528 (rsp-low.o): New target.
13529
01fd3ea5
TT
135302014-02-12 Tom Tromey <tromey@redhat.com>
13531
13532 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13533 Include print-utils.h.
13534 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13535 (plongest, thirty_two, phex_nz): Remove.
13536 * Makefile.in (SFILES): Add common/print-utils.c.
13537 (OBS): Add print-utils.o.
13538 (print-utils-ipa.o): New target.
13539 (print-utils.o): New target.
13540 (IPA_OBJS): Add print-utils-ipa.o.
13541
e99dc820
TT
135422014-02-06 Tom Tromey <tromey@redhat.com>
13543
13544 * Makefile.in (SFILES): Fix indentation.
13545
ee1e2d4f
DE
135462014-02-05 Doug Evans <dje@google.com>
13547
13548 * linux-low.c (linux_wait_for_event): Improve comment.
13549 (linux_wait_1): Keep current_inferior in sync with event_child.
13550
f5a02773
DE
135512014-01-22 Doug Evans <dje@google.com>
13552
13553 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13554
87ce2a04
DE
135552014-01-22 Doug Evans <dje@google.com>
13556
13557 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13558 * configure: Regenerate.
13559 * config.in: Regenerate.
13560 * Makefile.in (SFILES): Add debug.c.
13561 (OBS): Add debug.o.
13562 * debug.c: New file.
13563 * debug.h: New file.
13564 * linux-aarch64-low.c (*): Update all debugging printfs to use
13565 debug_printf instead of fprintf.
13566 * linux-arm-low.c (*): Ditto.
13567 * linux-cris-low.c (*): Ditto.
13568 * linux-crisv32-low.c (*): Ditto.
13569 * linux-m32r-low.c (*): Ditto.
13570 * linux-sparc-low.c (*): Ditto.
13571 * linux-x86.c (*): Ditto.
13572 * linux-low.c (*): Ditto.
13573 (linux_wait_1): Add calls to debug_enter, debug_exit.
13574 (linux_wait): Remove redundant debugging printf.
13575 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13576 (linux_resume, unstop_all_lwps): Ditto.
13577 * mem-break.c (*): Update all debugging printfs to use
13578 debug_printf instead of fprintf.
13579 * remote-utils.c (*): Ditto.
13580 * thread-db.c (*): Ditto.
13581 * server.c #include <ctype.h>, "gdb_vecs.h".
13582 (debug_threads): Moved to debug.c.
13583 (*): Update all debugging printfs to use debug_printf instead of
13584 fprintf.
13585 (start_inferior): Replace call to fflush with call to debug_flush.
13586 (monitor_show_help): Mention set debug-format.
13587 (parse_debug_format_options): New function.
13588 (handle_monitor_command): Handle "monitor set debug-format".
13589 (gdbserver_usage): Mention --debug-format.
13590 (main): Parse --debug-format.
13591 * server.h (debug_threads): Declaration moved to debug.h.
13592 #include "debug.h".
13593 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13594 trace_debug_1 that uses debug_printf.
13595 (tracepoint_look_up_symbols): Update all debugging printfs to use
13596 debug_printf instead of fprintf.
13597
e671835b
BS
135982014-01-20 Baruch Siach <baruch@tkos.co.il>
13599
13600 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13601 sys/ptrace.h.
13602
b5737fa9
PA
136032014-01-17 Pedro Alves <palves@redhat.com>
13604
ea38d2a9 13605 PR build/16445
c7faa97a
PA
13606 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13607 defined after including gdb_proc_service.h.
b5737fa9 13608
40ed484e
DE
136092014-01-16 Doug Evans <dje@google.com>
13610
13611 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13612 (match_dll): Use it.
13613
969c39fb
MM
136142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13615
13616 * target.h (target_ops) <read_btrace>: Change parameters and
13617 return type to allow error reporting.
13618 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13619 trace reading errors on.
13620 * linux-low.c (linux_low_read_btrace): Pass trace reading
13621 errors on.
13622 (linux_low_disable_btrace): New.
13623
ab7f45ba
DE
136242014-01-15 Doug Evans <dje@google.com>
13625
13626 * inferiors.c (thread_id_to_gdb_id): Delete.
13627 * inferiors.h (thread_id_to_gdb_id): Delete.
13628
66af0f44
EZ
136292014-01-13 Eli Zaretskii <eliz@gnu.org>
13630
13631 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13632 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13633 versions.
13634
9939e131
PA
136352014-01-08 Pedro Alves <palves@redhat.com>
13636
13637 * server.c (handle_status): Don't discard previous queued stop
13638 replies or thread's pending status here.
13639 (main) <disconnection>: Do it here instead.
13640
b7ea362b
PA
136412014-01-08 Pedro Alves <palves@redhat.com>
13642
13643 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13644 * server.c (visit_actioned_threads, handle_pending_status): New
13645 function.
13646 (handle_v_cont): Factor out parts to ...
13647 (resume): ... this new function. If in all-stop, and a thread
13648 being resumed has a pending status, report it without actually
13649 resuming.
13650 (myresume): Adjust to use the new 'resume' function.
13651 (clear_pending_status_callback, set_pending_status_callback)
13652 (find_status_pending_thread_callback): New functions.
13653 (handle_status): Handle the case of multiple threads having
13654 interesting statuses to report. Report threads' real last signal
13655 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13656 with an interesting thread to report the status for, instead of
13657 always reporting the status of the first thread.
13658
28498c42
JB
136592014-01-01 Joel Brobecker <brobecker@adacore.com>
13660
13661 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13662 * gdbreplay.c (gdbreplay_version): Likewise.
13663
f45c82da
YZ
136642013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13665
13666 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13667 iov.iov_len with the real length in use.
13668
379a5e2d
JB
136692013-12-13 Joel Brobecker <brobecker@adacore.com>
13670
13671 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13672 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13673 for all targets that use win32-low.c.
13674 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13675 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13676
4210d83e
PA
136772013-12-13 Pedro Alves <palves@redhat.com>
13678
13679 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13680 if equal to TARGET_WAITKIND_LOADED.
13681 * win32-low.c (cached_status): New static global.
13682 (win32_wait): Add declaration.
13683 (do_initial_child_stuff): Flush all initial pending debug events
13684 up to the initial breakpoint.
13685 (win32_wait): If CACHED_STATUS was set, return that instead
13686 of doing a real wait. Remove the code resuming the execution
13687 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13688 during the initial phase. Also remove the code changing
13689 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13690 TARGET_WAITKIND_STOPPED.
13691
e7f0d979
YQ
136922013-12-11 Yao Qi <yao@codesourcery.com>
13693
13694 * notif.c (handle_notif_ack): Return 0 if no notification
13695 matches.
13696
ebcf782c
DE
136972013-11-20 Doug Evans <dje@google.com>
13698
13699 * linux-low.c (linux_set_resume_request): Fix comment.
13700
20ad9378
DE
137012013-11-20 Doug Evans <dje@google.com>
13702
13703 * linux-low.c (resume_status_pending_p): Tweak comment.
13704
a196ebeb
WT
137052013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13706
13707 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13708 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13709 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13710 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13711 (srv_amd64_regobj): Add amd64-mpx.o.
13712 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13713 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13714 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13715 * i387-fp.c (num_pl_bnd_register) Added constant.
13716 (num_pl_bnd_cfg_registers) Added constant.
13717 (struct i387_xsave) Added reserved area and MPX fields.
13718 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13719 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13720 function.
13721 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13722 (init_registers_amd64_mpx_linux): Declare new function.
13723 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13724 (x86_64_regmap): Add MPX registers.
13725 (x86_linux_read_description): Add MPX case.
13726 (initialize_low_arch): Initialize MPX targets.
13727
0080a2f6
TT
137282013-11-18 Tom Tromey <tromey@redhat.com>
13729
13730 * configure: Rebuild.
13731 * configure.ac: Don't check for stdlib.h.
13732 * gdbreplay.c: Unconditionally include stdlib.h.
13733
2978b111
TT
137342013-11-18 Tom Tromey <tromey@redhat.com>
13735
13736 * config.in: Rebuild.
13737 * configure: Rebuild.
13738 * configure.ac: Don't use AC_HEADER_DIRENT.
13739
a3d08894
TT
137402013-11-18 Tom Tromey <tromey@redhat.com>
13741
13742 * server.h: Don't check HAVE_STRING_H.
13743 * gdbreplay.c: Don't check HAVE_STRING_H.
13744 * configure: Rebuild.
13745
0a5dd17d
TT
137462013-11-18 Tom Tromey <tromey@redhat.com>
13747
13748 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13749 LIBGNU.
13750
1bd2f0ba
TT
137512013-11-08 Tom Tromey <tromey@redhat.com>
13752
13753 * configure, config.in: Rebuild.
13754 * configure.ac: Remove unused configury.
13755
3266f10b
TT
137562013-11-08 Tom Tromey <tromey@redhat.com>
13757
13758 * acinclude.m4: Include common.m4, codeset.m4.
13759 * configure, config.in: Rebuild.
13760 * configure.ac: Use GDB_AC_COMMON.
13761
6682d959
AA
137622013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13763
13764 * linux-s390-low.c (HWCAP_S390_TE): New define.
13765 (s390_arch_setup): Consider the TE field in the HWCAP for
13766 determining 'have_regset_tdb'.
13767
fd0a4d76
SDJ
137682013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13769
13770 PR gdb/16014
13771 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13772 call to sizeof.
13773
1a3d890b
PA
137742013-10-02 Pedro Alves <palves@redhat.com>
13775
13776 * server.c (process_serial_event): Don't output "GDBserver
13777 exiting" if GDB is connected through stdio.
13778 * target.c (mywait): Likewise, be silent if GDB is connected
13779 through stdio.
13780
97ad4581
JB
137812013-10-01 Joel Brobecker <brobecker@adacore.com>
13782
13783 * lynx-low.c (lynx_add_threads_after_attach): New function.
13784 (lynx_attach): Remove call to add_thread. Add call to
13785 lynx_add_threads_after_attach instead.
13786
5b4e221c
MF
137872013-09-28 Mike Frysinger <vapier@gentoo.org>
13788
13789 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13790 * config.in, configure: Regenerated.
13791
ee47b2f8
YQ
137922013-09-18 Yao Qi <yao@codesourcery.com>
13793
13794 PR server/15959
13795 * server.c (start_inferior): Clear 'resume_info'.
13796
d6707650 137972013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13798
d6707650
JW
13799 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13800 for each register.
13801
9243dd0e 138022013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13803
9243dd0e
JW
13804 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13805 linux-tile-low.o to srv_tgtobj.
13806
c623a6ef
WN
138072013-09-16 Will Newton <will.newton@linaro.org>
13808
13809 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13810 out regs.
13811
fb71d39e
PA
138122013-09-06 Pedro Alves <palves@redhat.com>
13813
13814 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13815 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13816 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13817 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13818 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13819 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13820
8e7e9910
PA
138212013-09-06 Pedro Alves <palves@redhat.com>
13822
13823 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13824 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13825
7c3a12ca
PA
138262013-09-06 Pedro Alves <palves@redhat.com>
13827
13828 * linux-amd64-ipa.c: Include tracepoint.h.
13829 * linux-i386-ipa.c: Include tracepoint.h.
13830
8eb3d7b6
RW
138312013-09-06 Ricard Wanderlof <ricardw@axis.com>
13832
13833 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13834 (ps_get_thread_area): New function.
13835
eddddb9d
RW
138362013-09-06 Ricard Wanderlof <ricardw@axis.com>
13837
13838 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13839 (initialize_low_arch): Call init_registers_crisv32 rather than
13840 init_register_crisv32.
13841
533b0600
PA
138422013-09-05 Pedro Alves <palves@redhat.com>
13843
13844 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13845 to ...
13846 * hostio.h: ... this new file.
13847 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13848 win32-low.c: Include hostio.h.
13849
0ce3d3b5
PA
138502013-09-05 Pedro Alves <palves@redhat.com>
13851
13852 * server.h (gdb_client_data, handler_func, callback_handler_func)
13853 (delete_file_handler, add_file_handler, append_callback_event)
13854 (delete_callback_event, start_event_loop, initialize_event_loop):
13855 Move to event-loop.h and include it.
13856 * event-loop.h: New file.
13857
799cdc37
PA
138582013-09-05 Pedro Alves <palves@redhat.com>
13859
13860 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13861 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13862 (loaded_dll, unloaded_dll): Move to ...
13863 * dll.h: ... this new file.
13864 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13865
6a6bbd9d
PA
138662013-09-05 Pedro Alves <palves@redhat.com>
13867
13868 * server.h (current_process, get_thread_process, all_processes)
13869 (add_inferior_to_list, for_each_inferior, current_inferior)
13870 (remove_inferior, add_process, remove_process, find_process_pid)
13871 (have_started_inferiors_p, have_attached_inferiors_p)
13872 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13873 (clear_inferiors, find_inferior, find_inferior_id)
13874 (inferior_target_data, set_inferior_target_data)
13875 (inferior_regcache_data, set_inferior_regcache_data): Move to
13876 inferiors.h, and include it.
13877 * inferiors.h: New file.
13878
f699aaba
PA
138792013-09-05 Pedro Alves <palves@redhat.com>
13880
13881 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13882 Move ...
72f4393d 13883 * ax.h: ... here.
f699aaba 13884
c144c7a0
PA
138852013-09-05 Pedro Alves <palves@redhat.com>
13886
13887 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13888 tracepoint.h.
13889 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13890 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13891 (handle_tracepoint_general_set, handle_tracepoint_query)
13892 (tracepoint_finished_step, tracepoint_was_hit)
13893 (release_while_stepping_state_list, current_traceframe)
13894 (in_readonly_region, traceframe_read_mem)
13895 (fetch_traceframe_registers, traceframe_read_sdata)
13896 (traceframe_read_info, struct fast_tpoint_collect_status)
13897 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13898 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13899 (supply_fast_tracepoint_registers)
13900 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13901 (ipa_tdesc, claim_trampoline_space)
13902 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13903 (agent_mem_read, agent_get_trace_state_variable_value)
13904 (agent_set_trace_state_variable_value, agent_tsv_read)
13905 (agent_mem_read_string, get_raw_reg_func_addr)
13906 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13907 * tracepoint.h: ... this new file.
13908
ff42e6ab
PA
139092013-09-05 Pedro Alves <palves@redhat.com>
13910
13911 * server.h (perror_with_name, error, fatal, warning, paddress)
13912 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13913 include it.
13914 * utils.h: New file.
13915
541af0f4
PA
139162013-09-05 Pedro Alves <palves@redhat.com>
13917
13918 * server.h (remote_debug, noack_mode, transport_is_reliable)
13919 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13920 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13921 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13922 (write_enn, initialize_async_io, enable_async_io)
13923 (disable_async_io, check_remote_input_interrupt_request)
13924 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13925 (dead_thread_notify, prepare_resume_reply)
13926 (decode_address_to_semicolon, decode_address, decode_m_packet)
13927 (decode_M_packet, decode_X_packet, decode_xfer_write)
13928 (decode_search_memory_packet, unhexify, hexify)
13929 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13930 (look_up_one_symbol, relocate_instruction)
13931 (monitor_output): Move to remote-utils.h, and include it.
13932 * remote-utils.h: New file.
13933
eebdf26b
PA
139342013-09-05 Pedro Alves <palves@redhat.com>
13935
13936 * server.h (_): Delete.
13937
3aafd2ff
PA
139382013-09-02 Pedro Alves <palves@redhat.com>
13939
13940 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13941 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13942 allocated.
13943 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13944
cee83bcb
PM
139452013-09-02 Pierre Muller <muller@sourceware.org>
13946
13947 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13948 or WriteProcessMemory complete successfully and handle
13949 ERROR_PARTIAL_COPY error.
13950
9a13b2fa
PA
139512013-09-02 Pedro Alves <palves@redhat.com>
13952
13953 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13954 error instead of EIO.
13955
602e3198
JK
139562013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13957
13958 PR server/15604
13959 * linux-low.c: Include filestuff.h.
13960 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13961 * lynx-low.c: Include filestuff.h.
13962 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13963 * server.c: Include filestuff.h.
13964 (main): Call notice_open_fds.
13965 * spu-low.c: Include filestuff.h.
13966 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13967
96d7229d
LM
139682013-08-22 Luis Machado <lgustavo@codesourcery.com>
13969
13970 * Makefile.in: Explain why ../target and ../nat are not
13971 listed as include file search paths.
13972 (linux-waitpid.o): New object file rule.
13973 * configure.srv (srv_native_linux_obj): New variable.
13974 Replace all occurrences of linux native object files with
13975 $srv_native_linux_obj.
13976 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13977 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13978 (linux_enable_event_reporting): Remove declaration.
13979 (my_waitpid): Moved to common/linux-waitpid.c.
13980 (linux_wait_for_event): Pass ptid when calling
13981 linux_enable_event_reporting.
13982 (linux_supports_tracefork_flag): Remove.
13983 (linux_enable_event_reporting): Likewise.
13984 (linux_tracefork_grandchild): Remove.
13985 (STACK_SIZE): Moved to common/linux-ptrace.c.
13986 (linux_tracefork_child): Remove.
13987 (linux_test_for_tracefork): Remove.
13988 (linux_look_up_symbols): Call linux_supports_traceclone.
13989 (initialize_low): Remove call to linux_test_for_tracefork.
13990 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13991 common/linux-ptrace.h.
13992 (PTRACE_TYPE_ARG4): Likewise.
13993 Include linux-ptrace.h.
13994
32940073
PA
139952013-08-21 Pedro Alves <palves@redhat.com>
13996
13997 * config.in: Renegerate.
13998
33b60d58 139992013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14000
33b60d58
LM
14001 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14002 (SFILES): Remove $(srcdir)/common/target-common.c and
14003 add $(srcdir)/target/waitstatus.c.
14004 (OBS): Remove target-common.o and add waitstatus.o.
14005 (server_h): Remove $(srcdir)/../common/target-common.h and
14006 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14007 and $(srcdir)/../target/waitstatus.h.
14008 (target-common.o): Remove.
14009 (waitstatus.o): New target object file.
14010 * target.h: Do not include target-common.h and
14011 include target/resume.h, target/wait.h and
14012 target/waitstatus.h.
14013
b8e1b30e
LM
140142013-08-13 Luis Machado <lgustavo@codesourcery.com>
14015
14016 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14017 to PTRACE_TYPE_ARG3.
14018 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14019 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14020 PTRACE_TYPE_ARG4.
14021 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14022 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14023
7a60ad40
YQ
140242013-07-27 Jie Zhang <jie@codesourcery.com>
14025 Daniel Jacobowitz <dan@codesourcery.com>
14026 Yao Qi <yao@codesourcery.com>
14027
14028 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14029 (mips-linux-watch.o): New rule.
14030 (mips_linux_watch_h): New variable.
14031 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14032 srv_tgtobj.
14033 * linux-mips-low.c: Include mips-linux-watch.h.
14034 (struct arch_process_info, struct arch_lwp_info): New.
14035 (update_watch_registers_callback): New function.
14036 (mips_linux_new_process, mips_linux_new_thread) New functions.
14037 (mips_linux_prepare_to_resume, mips_insert_point): New
14038 functions.
14039 (mips_remove_point, mips_stopped_by_watchpoint): New
14040 functions.
14041 (rsp_bp_type_to_target_hw_bp_type): New function.
14042 (mips_stopped_data_address): New function.
14043 (the_low_target): Add watchpoint support functions.
14044
de6f69ad
YQ
140452013-07-27 Yao Qi <yao@codesourcery.com>
14046
14047 * i386-low.c: Include break-common.h.
14048 (enum target_hw_bp_type): Remove.
14049
3360c0bf
LM
140502013-07-24 Luis Machado <lgustavo@codesourcery.com>
14051
14052 * Makefile.in (SFILES): /common/target-common.c.
14053 (OBS): Add target-common.o.
14054 (server_h): Add $(srcdir)/../common/target-common.h.
14055 (target-common.o): New target.
14056 * server.c (queue_stop_reply_callback): Free
14057 status string after use.
14058 * target.c (target_waitstatus_to_string): Remove.
14059 * target.h: Include target-common.h.
14060 (resume_kind): Likewise.
14061 (target_waitkind): Likewise.
14062 (target_waitstatus): Likewise.
14063 (TARGET_WNOHANG): Likewise.
14064
bd885420
YQ
140652013-07-04 Yao Qi <yao@codesourcery.com>
14066
14067 * Makefile.in (host_alias): Use @host_noncanonical@.
14068 (target_alias): Use @target_noncanonical@.
14069 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14070 ACX_NONCANONICAL_HOST.
14071 * configure: Regenerated.
14072
14073 Revert:
14074 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14075
14076 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14077 * configure: Rebuild.
14078 * Makefile.in (version_host, version_target): Get from configure.
14079 (version.c): Use $(version_host) and $(version_target).
14080
17ef446e
PA
140812013-07-03 Pedro Alves <palves@redhat.com>
14082
14083 * Makefile.in (config.status): Depend on development.sh.
14084 * acinclude.m4: Include libmcheck.m4.
14085 * configure: Regenerate.
14086
7a9a7487
MG
140872013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14088
14089 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14090 attribute inside the parentheses.
14091 (winapi_DebugSetProcessKillOnExit): Ditto.
14092 (winapi_DebugBreakProcess): Ditto.
14093 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14094
49b64de6
MG
140952013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14096
14097 * notif.h (notif_event): Add a dummy member to avoid compiler
14098 errors.
14099
d5749ee7
PA
141002013-07-01 Pedro Alves <palves@redhat.com>
14101
14102 * hostio.c (HOSTIO_PATH_MAX): Define.
14103 (require_filename, handle_open, handle_unlink, handle_readlink):
14104 Use it.
14105
d8d2a3ee
PA
141062013-07-01 Pedro Alves <palves@redhat.com>
14107
14108 * server.h: Include "pathmax.h".
14109 * linux-low.c: Don't include sys/param.h.
14110 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14111 MAXPATHLEN.
14112 * win32-low.c: Don't include sys/param.h.
14113 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14114
bc7dea8d
PA
141152013-07-01 Pedro Alves <palves@redhat.com>
14116
14117 * event-loop.c: Don't check HAVE_UNISTD_H before including
14118 <unistd.h>.
14119 * gdbreplay.c: Likewise.
14120 * remote-utils.c: Likewise.
14121 * server.c: Likewise.
14122 * configure.ac: Don't check for unistd.h.
14123 * configure: Regenerate.
14124
d6c2da54
TT
141252013-06-28 Tom Tromey <tromey@redhat.com>
14126
14127 * Makefile.in (version.c): Use version.in, not
14128 common/version.in.
14129
257b6bec
MG
141302013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14131
14132 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14133 * configure: Rebuild.
14134 * Makefile.in (version_host, version_target): Get from configure.
14135 (version.c): Use $(version_host) and $(version_target).
14136
86ebe149
DK
141372013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14138
14139 Fix trace-status to output user name without trailing colon.
14140 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14141
f30aa5af
DK
141422013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14143
14144 Fix trace-status to output proper start-time and stop-time.
14145 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14146 output start time and stop time in hex as gdb expects.
14147
28a93511
YQ
141482013-06-26 Pedro Alves <pedro@codesourcery.com>
14149
14150 * tracepoint.c (build_traceframe_info_xml): Output trace state
14151 variables present in the trace buffer.
14152
01208463
TT
141532013-06-24 Tom Tromey <tromey@redhat.com>
14154
14155 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14156 create-version.sh.
14157 (version.o): Remove.
14158 * gdbreplay.c: Include version.h.
14159 (version, host_name): Don't declare.
14160 * server.h: Include version.h.
14161 (version, host_name): Don't declare.
14162
760256f9
PA
141632013-06-12 Pedro Alves <palves@redhat.com>
14164
14165 * linux-x86-low.c (linux_is_elf64): Delete global.
14166 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14167 with local linux_pid_exe_is_elf_64_file use.
14168
030031ee
PA
141692013-06-11 Pedro Alves <palves@redhat.com>
14170
14171 * linux-low.c (regset_disabled, disable_regset): New functions.
14172 (regsets_fetch_inferior_registers)
14173 (regsets_store_inferior_registers): Use them.
14174 (initialize_regsets_info); Don't allocate the disabled_regsets
14175 array here.
14176 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14177 comment.
14178
5da6eb0a
PA
141792013-06-11 Pedro Alves <palves@redhat.com>
14180
14181 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14182 xmalloc.
14183
7e5aaa09
PA
141842013-06-11 Pedro Alves <palves@redhat.com>
14185
14186 * linux-x86-low.c (initialize_low_arch): Call
14187 init_registers_x32_avx_linux.
14188
d878444c
JK
141892013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14190
14191 Fix compatibility with Android Bionic.
14192 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14193 it is not empty.
14194
3aee8918
PA
141952013-06-07 Pedro Alves <palves@redhat.com>
14196
5f2b57b5 14197 PR server/14823
3aee8918
PA
14198 * Makefile.in (OBS): Add tdesc.o.
14199 (IPA_OBJS): Add tdesc-ipa.o.
14200 (tdesc-ipa.o): New rule.
14201 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14202 interface.
14203 * linux-low.c (new_inferior): Delete.
14204 (disabled_regsets, num_regsets): Delete.
14205 (linux_add_process): Adjust to set the new per-process
14206 new_inferior flag.
14207 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14208 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14209 was a stop. When calling arch_setup, switch the current inferior
14210 to the thread that got an event.
14211 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14212 (regsets_fetch_inferior_registers)
14213 (regsets_store_inferior_registers): New regsets_info parameter.
14214 Adjust to use it.
14215 (linux_register_in_regsets): New regs_info parameter. Adjust to
14216 use it.
14217 (register_addr, fetch_register, store_register): New usrregs_info
14218 parameter. Adjust to use it.
14219 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14220 parameter regs_info. Adjust to use it.
14221 (linux_fetch_registers): Get the current inferior's regs_info, and
14222 adjust to use it.
14223 (linux_store_registers): Ditto.
14224 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14225 (initialize_low): Don't initialize the target_regsets here. Call
14226 initialize_low_arch.
14227 * linux-low.h (target_regsets): Delete declaration.
14228 (struct regsets_info): New.
14229 (struct usrregs_info): New.
14230 (struct regs_info): New.
14231 (struct process_info_private) <new_inferior>: New field.
14232 (struct linux_target_ops): Delete the num_regs, regmap, and
14233 regset_bitmap fields. New field regs_info.
14234 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14235 * i387-fp.c (num_xmm_registers): Delete.
14236 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14237 calls to new interface.
14238 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14239 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14240 Infer the number of xmm registers from the regcache's target
14241 description.
14242 * i387-fp.h (num_xmm_registers): Delete.
14243 * inferiors.c (add_thread): Don't install the thread's regcache
14244 here.
14245 * proc-service.c (gregset_info): Fetch the current inferior's
14246 regs_info. Adjust to use it.
14247 * regcache.c: Include tdesc.h.
14248 (register_bytes, reg_defs, num_registers)
14249 (gdbserver_expedite_regs): Delete.
14250 (get_thread_regcache): If the thread doesn't have a regcache yet,
14251 create one, instead of aborting gdbserver.
14252 (regcache_invalidate_one): Rename to ...
14253 (regcache_invalidate_thread): ... this.
14254 (regcache_invalidate_one): New.
14255 (regcache_invalidate): Only invalidate registers of the current
14256 process.
14257 (init_register_cache): Add target_desc parameter, and use it.
14258 (new_register_cache): Ditto. Assert the target description has a
14259 non zero registers_size.
14260 (regcache_cpy): Add assertions. Adjust.
14261 (realloc_register_cache, set_register_cache): Delete.
14262 (registers_to_string, registers_from_string): Adjust.
14263 (find_register_by_name, find_regno, find_register_by_number)
14264 (register_cache_size): Add target_desc parameter, and use it.
14265 (free_register_cache_thread, free_register_cache_thread_one)
14266 (regcache_release, register_cache_size): New.
14267 (register_size): Add target_desc parameter, and use it.
14268 (register_data, supply_register, supply_register_zeroed)
14269 (supply_regblock, supply_register_by_name, collect_register)
14270 (collect_register_as_string, collect_register_by_name): Adjust.
14271 * regcache.h (struct target_desc): Forward declare.
14272 (struct regcache) <tdesc>: New field.
14273 (init_register_cache, new_register_cache): Add target_desc
14274 parameter.
14275 (regcache_invalidate_thread): Declare.
14276 (regcache_invalidate_one): Delete declaration.
14277 (regcache_release): Declare.
14278 (find_register_by_number, register_cache_size, register_size)
14279 (find_regno): Add target_desc parameter.
14280 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14281 declarations.
14282 * remote-utils.c: Include tdesc.h.
14283 (outreg, prepare_resume_reply): Adjust.
14284 * server.c: Include tdesc.h.
14285 (gdbserver_xmltarget): Delete declaration.
14286 (get_features_xml, process_serial_event): Adjust.
14287 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14288 declare.
14289 (struct process_info) <tdesc>: New field.
14290 (ipa_tdesc): Declare.
14291 * tdesc.c: New file.
14292 * tdesc.h: New file.
14293 * tracepoint.c: Include tdesc.h.
14294 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14295 (get_context_regcache): Adjust to pass ipa_tdesc down.
14296 (do_action_at_tracepoint): Adjust to get the register cache size
14297 from the context regcache's description.
14298 (traceframe_walk_blocks): Adjust to get the register cache size
14299 from the current trace frame's description.
14300 (traceframe_get_pc): Adjust to get current trace frame's
14301 description and pass it down.
14302 (gdb_collect): Adjust to get the register cache size from the
14303 IPA's description.
14304 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14305 (gdbserver_xmltarget): Delete.
14306 (initialize_low_tracepoint): Set the ipa's target description.
14307 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14308 (initialize_low_tracepoint): Set the ipa's target description.
14309 * linux-x86-low.c: Include tdesc.h.
14310 [__x86_64__] (is_64bit_tdesc): New.
14311 (ps_get_thread_area, x86_get_thread_area): Use it.
14312 (i386_cannot_store_register): Rename to ...
14313 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14314 (i386_cannot_fetch_register): Rename to ...
14315 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14316 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14317 to new interface.
14318 (target_regsets): Rename to ...
14319 (x86_regsets): ... this.
14320 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14321 interface.
14322 (x86_siginfo_fixup): Use is_64bit_tdesc.
14323 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14324 (tdesc_x32_avx_linux, tdesc_x32_linux)
14325 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14326 Declare.
14327 (x86_linux_update_xmltarget): Delete.
14328 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14329 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14330 (AMD64_LINUX_USER64_CS): New.
14331 (x86_linux_read_description): New, based on
14332 x86_linux_update_xmltarget.
14333 (same_process_callback): New.
14334 (x86_arch_setup_process_callback): New.
14335 (x86_linux_update_xmltarget): New.
14336 (x86_regsets_info): New.
14337 (amd64_linux_regs_info): New.
14338 (i386_linux_usrregs_info): New.
14339 (i386_linux_regs_info): New.
14340 (x86_linux_regs_info): New.
14341 (x86_arch_setup): Reimplement.
14342 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14343 (x86_emit_ops): Ditto.
14344 (the_low_target): Adjust. Install x86_linux_regs_info,
14345 x86_cannot_fetch_register, and x86_cannot_store_register.
14346 (initialize_low_arch): New.
14347 * linux-ia64-low.c (tdesc_ia64): Declare.
14348 (ia64_fetch_register): Adjust.
14349 (ia64_usrregs_info, regs_info): New globals.
14350 (ia64_regs_info): New function.
14351 (the_low_target): Adjust.
14352 (initialize_low_arch): New function.
14353 * linux-sparc-low.c (tdesc_sparc64): Declare.
14354 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14355 Adjust.
14356 (sparc_arch_setup): New function.
14357 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14358 (the_low_target): Adjust.
14359 (initialize_low_arch): New function.
14360 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14361 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14362 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14363 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14364 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14365 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14366 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14367 (tdesc_powerpc_isa205_vsx64l): Declare.
14368 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14369 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14370 (ppc_set_pc, ppc_get_hwcap): Adjust.
14371 (ppc_usrregs_info): Forward declare.
14372 (!__powerpc64__) ppc_regmap_adjusted: New global.
14373 (ppc_arch_setup): Adjust to the current process'es target
14374 description.
14375 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14376 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14377 (ppc_store_evrregset): Adjust.
14378 (target_regsets): Rename to ...
14379 (ppc_regsets): ... this, and make static.
14380 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14381 (ppc_regs_info): New function.
14382 (the_low_target): Adjust.
14383 (initialize_low_arch): New function.
14384 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14385 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14386 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14387 (tdesc_s390x_linux64v2): Declare.
14388 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14389 (s390_fill_gregset, s390_store_last_break): Adjust.
14390 (target_regsets): Rename to ...
14391 (s390_regsets): ... this, and make static.
14392 (s390_get_pc, s390_set_pc): Adjust.
14393 (s390_get_hwcap): New target_desc parameter, and use it.
14394 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14395 (s390_arch_setup): Adjust to set the current process'es target
14396 description. Don't adjust the regmap.
14397 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14398 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14399 (regs_info_3264): New globals.
14400 (s390_regs_info): New function.
14401 (the_low_target): Adjust.
14402 (initialize_low_arch): New function.
14403 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14404 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14405 [__mips64] (init_registers_mips_linux)
14406 (init_registers_mips_dsp_linux): Delete defines.
14407 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14408 (have_dsp): New global.
14409 (mips_read_description): New, based on mips_arch_setup.
14410 (mips_arch_setup): Reimplement.
14411 (get_usrregs_info): New function.
14412 (mips_cannot_fetch_register, mips_cannot_store_register)
14413 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14414 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14415 (target_regsets): Rename to ...
14416 (mips_regsets): ... this, and make static.
14417 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14418 (dsp_regs_info, regs_info): New globals.
14419 (mips_regs_info): New function.
14420 (the_low_target): Adjust.
14421 (initialize_low_arch): New function.
14422 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14423 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14424 Declare.
14425 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14426 (arm_read_description): New, with bits factored from
14427 arm_arch_setup.
14428 (arm_arch_setup): Reimplement.
14429 (target_regsets): Rename to ...
14430 (arm_regsets): ... this, and make static.
14431 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14432 (arm_regs_info): New function.
14433 (the_low_target): Adjust.
14434 (initialize_low_arch): New function.
14435 * linux-m68k-low.c (tdesc_m68k): Declare.
14436 (target_regsets): Rename to ...
14437 (m68k_regsets): ... this, and make static.
14438 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14439 (m68k_regs_info): New function.
14440 (m68k_arch_setup): New function.
14441 (the_low_target): Adjust.
14442 (initialize_low_arch): New function.
14443 * linux-sh-low.c (tdesc_sharch): Declare.
14444 (target_regsets): Rename to ...
14445 (sh_regsets): ... this, and make static.
14446 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14447 (sh_regs_info, sh_arch_setup): New functions.
14448 (the_low_target): Adjust.
14449 (initialize_low_arch): New function.
14450 * linux-bfin-low.c (tdesc_bfin): Declare.
14451 (bfin_arch_setup): New function.
14452 (bfin_usrregs_info, regs_info): New globals.
14453 (bfin_regs_info): New function.
14454 (the_low_target): Adjust.
14455 (initialize_low_arch): New function.
14456 * linux-cris-low.c (tdesc_cris): Declare.
14457 (cris_arch_setup): New function.
14458 (cris_usrregs_info, regs_info): New globals.
14459 (cris_regs_info): New function.
14460 (the_low_target): Adjust.
14461 (initialize_low_arch): New function.
14462 * linux-cris-low.c (tdesc_crisv32): Declare.
14463 (cris_arch_setup): New function.
14464 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14465 (cris_regs_info): New function.
14466 (the_low_target): Adjust.
14467 (initialize_low_arch): New function.
14468 * linux-m32r-low.c (tdesc_m32r): Declare.
14469 (m32r_arch_setup): New function.
14470 (m32r_usrregs_info, regs_info): New globals.
14471 (m32r_regs_info): Adjust.
14472 (initialize_low_arch): New function.
14473 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14474 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14475 (tic6x_usrregs_info): Forward declare.
14476 (tic6x_read_description): New function, based on ...
14477 (tic6x_arch_setup): ... this. Reimplement.
14478 (target_regsets): Rename to ...
14479 (tic6x_regsets): ... this, and make static.
14480 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14481 (tic6x_regs_info): New function.
14482 (the_low_target): Adjust.
14483 (initialize_low_arch): New function.
14484 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14485 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14486 (target_regsets): Rename to ...
14487 (xtensa_regsets): ... this, and make static.
14488 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14489 globals.
14490 (xtensa_arch_setup, xtensa_regs_info): New functions.
14491 (the_low_target): Adjust.
14492 (initialize_low_arch): New function.
14493 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14494 (nios2_arch_setup): Set the current process'es tdesc.
14495 (target_regsets): Rename to ...
14496 (nios2_regsets): ... this.
14497 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14498 (nios2_regs_info): New function.
14499 (the_low_target): Adjust.
14500 (initialize_low_arch): New function.
a261b8f5
PA
14501 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14502 (aarch64_arch_setup): Set the current process'es tdesc.
14503 (target_regsets): Rename to ...
14504 (aarch64_regsets): ... this.
14505 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14506 (aarch64_regs_info): New function.
14507 (the_low_target): Adjust.
14508 (initialize_low_arch): New function.
3aee8918
PA
14509 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14510 globals.
14511 (target_regsets): Rename to ...
14512 (tile_regsets): ... this.
14513 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14514 (tile_regs_info): New function.
14515 (tile_arch_setup): Set the current process'es tdesc.
14516 (the_low_target): Adjust.
14517 (initialize_low_arch): New function.
14518 * spu-low.c (tdesc_spu): Declare.
14519 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14520 * win32-arm-low.c (tdesc_arm): Declare.
14521 (arm_arch_setup): New function.
14522 (the_low_target): Install arm_arch_setup instead of
14523 init_registers_arm.
14524 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14525 (init_windows_x86): Rename to ...
14526 (i386_arch_setup): ... this. Set `win32_tdesc'.
14527 (the_low_target): Adjust.
14528 * win32-low.c (win32_tdesc): New global.
14529 (child_add_thread): Don't create the thread cache here.
14530 (do_initial_child_stuff): Set the new process'es tdesc.
14531 * win32-low.h (struct target_desc): Forward declare.
14532 (win32_tdesc): Declare.
14533 * lynx-i386-low.c (tdesc_i386): Declare global.
14534 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14535 * lynx-low.c (lynx_tdesc): New global.
14536 (lynx_add_process): Set the new process'es tdesc.
14537 * lynx-low.h (struct target_desc): Forward declare.
14538 (lynx_tdesc): Declare global.
14539 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14540 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14541 * nto-low.c (nto_tdesc): New global.
14542 (do_attach): Set the new process'es tdesc.
14543 * nto-low.h (struct target_desc): Forward declare.
14544 (nto_tdesc): Declare.
14545 * nto-x86-low.c (tdesc_i386): Declare.
14546 (nto_x86_arch_setup): Set `nto_tdesc'.
14547
b1fbec62
GB
145482013-06-04 Gary Benson <gbenson@redhat.com>
14549
14550 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14551 to qSupported response when appropriate.
14552 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14553 with nonzero-length annex.
14554 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14555 arguments supplied in annex.
14556
d1ec4ce7
DE
145572013-05-31 Doug Evans <dje@google.com>
14558
ac44adcb 14559 PR server/15594
d1ec4ce7
DE
14560 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14561 64 bits in 64-cross-32 environment.
14562
9b25f2d3
PA
145632013-05-28 Pedro Alves <palves@redhat.com>
14564
14565 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14566 (aarch64-without-fpu.c): Delete rule.
14567 * configure.srv (aarch64*-*-linux*): Remove references to
14568 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14569 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14570 declaration.
14571
6740dc9c
PA
145722013-05-24 Pedro Alves <palves@redhat.com>
14573
14574 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14575 instead of strchr/decode_address. Error if the range isn't split
14576 with a ','. Don't assume there's be a ':' in the action.
14577
c2d6af84
PA
145782013-05-23 Yao Qi <yao@codesourcery.com>
14579 Pedro Alves <palves@redhat.com>
14580
14581 * linux-low.c (lwp_in_step_range): New function.
14582 (linux_wait_1): If the thread was range stepping and stopped
14583 outside the stepping range, report the stop to GDB. Otherwise,
14584 continue stepping. Add range stepping debug output.
14585 (linux_set_resume_request): Copy the step range from the resume
14586 request to the lwp.
14587 (linux_supports_range_stepping): New.
14588 (linux_target_ops) <supports_range_stepping>: Set to
14589 linux_supports_range_stepping.
14590 * linux-low.h (struct linux_target_ops)
14591 <supports_range_stepping>: New field.
14592 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14593 * linux-x86-low.c (x86_supports_range_stepping): New.
14594 (the_low_target) <supports_range_stepping>: Set to
14595 x86_supports_range_stepping.
14596 * server.c (handle_v_cont): Handle 'r' action.
14597 (handle_v_requests): Append ";r" if the target supports range
14598 stepping.
14599 * target.h (struct thread_resume) <step_range_start,
14600 step_range_end>: New fields.
14601 (struct target_ops) <supports_range_stepping>:
14602 New field.
14603 (target_supports_range_stepping): New macro.
14604
58794e1a
JB
146052013-05-17 Joel Brobecker <brobecker@adacore.com>
14606
14607 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14608 confusion in comment.
14609
d631c5a7
JB
146102013-05-17 Joel Brobecker <brobecker@adacore.com>
14611
14612 * lynx-low.c (struct process_info_private): New type.
14613 (lynx_add_process): New function.
14614 (lynx_create_inferior, lynx_attach): Replace calls to
14615 add_process by calls to lynx_add_process.
14616 (lynx_resume): If PTID is null, then try using
14617 current_process()->private->last_wait_event_ptid.
14618 Add comments.
14619 (lynx_clear_inferiors): Delete. The contents of that function
14620 has been inlined in lynx_mourn;
14621 (lynx_wait_1): Save the ptid in the process's private data.
14622 (lynx_mourn): Free the process' private data. Replace call
14623 to lynx_clear_inferiors by call to clear_inferiors.
14624
96f7a20f
YQ
146252013-05-17 Yao Qi <yao@codesourcery.com>
14626
14627 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14628 the right place.
14629
db0dfaa0
LM
146302013-05-16 Luis Machado <lgustavo@codesourcery.com>
14631
14632 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14633 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14634 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14635 PT_TEXT_END_ADDR guards. Update comments.
14636 (linux_target_op) <read_offsets>: Conditionally define to
14637 linux_read_offsets if the target is UCLIBC and if it defines
14638 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14639
68f5f838
SL
146402013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14641 Andrew Jenner <andrew@codesourcery.com>
14642
14643 * Makefile.in (SFILES): Add linux-nios2-low.c.
14644 (clean): Add action to delete nios2-linux.c.
14645 (nios2-linux.c): New rule.
14646 * configure.srv: Add nios2*-*-linux*.
14647 * linux-nios2-low.c: New.
14648
1ebff1fd
HAQ
146492013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14650
14651 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14652
f6150862
HZ
146532013-04-25 Hui Zhu <hui@codesourcery.com>
14654
14655 PR gdb/15186
f6150862
HZ
14656 * ax.c (ax_printf): Add fflush.
14657
614c279d
TT
146582013-04-22 Tom Tromey <tromey@redhat.com>
14659
14660 * Makefile.in (SFILES): Add filestuff.c.
14661 (OBS): Add filestuff.o.
14662 (filestuff.o): New target.
14663 * config.in, configure: Rebuild.
14664 * configure.ac: Check for fdwalk, pipe2.
14665
7d4e5717
PA
146662013-04-17 Pedro Alves <palves@redhat.com>
14667
14668 * configure.ac (USE_THREAD_DB): Delete variable.
14669 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14670 Don't AC_SUBST USE_THREAD_DB.
14671 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14672 * config.in, configure: Regenerate.
14673
d5c93e41
PA
146742013-04-16 Pedro Alves <palves@redhat.com>
14675
14676 * linux-low.h (struct lwp_info) <thread_known>: Move under
14677 the USE_THREAD_DB #ifdef.
14678
04f5fe89
PA
146792013-04-16 Pedro Alves <palves@redhat.com>
14680
14681 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14682 (linux-low.o): Delete rule.
14683 * linux-low.h: Always include "gdb_thread_db.h" instead of
14684 conditionally including thread_db.h.
14685 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14686 HAVE_THREAD_DB_H.
14687
480b27bf
JK
146882013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14689
14690 * Makefile.in (install-only): Fix make install regression.
14691
43662968
JK
146922013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14693
14694 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14695 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14696 installation.
14697 * gdbserver.1: Remove.
14698
3e74e146
PA
146992013-03-22 Pedro Alves <palves@redhat.com>
14700
14701 * linux-low.c (handle_extended_wait): Don't call
14702 linux_enable_event_reporting.
14703
a8347a2a
TT
147042013-03-15 Tony Theodore <tonyt@logyst.com>
14705
14706 PR build/9098:
14707 * Makefile.in (SHELL): Use @SHELL@.
14708
eeb56fa7
SDJ
147092013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14710
14711 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14712 compiler warning.
14713
4fa7e2ff
JB
147142013-03-13 Joel Brobecker <brobecker@adacore.com>
14715
14716 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14717 Remove extraneous NULL element.
14718
8ddb1965
YQ
147192013-03-13 Yao Qi <yao@codesourcery.com>
14720
14721 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14722 'V' block in trace frame.
14723
9accd112
MM
147242013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14725
14726 * target.h (struct target_ops): Add btrace ops.
14727 (target_supports_btrace): New macro.
14728 (target_enable_btrace): New macro.
14729 (target_disable_btrace): New macro.
14730 (target_read_btrace): New macro.
14731 * gdbthread.h (struct thread_info): Add btrace field.
14732 * server.c: Include btrace-common.h.
14733 (handle_btrace_general_set): New function.
14734 (handle_btrace_enable): New function.
14735 (handle_btrace_disable): New function.
14736 (handle_general_set): Call handle_btrace_general_set.
14737 (handle_qxfer_btrace): New function.
14738 (struct qxfer qxfer_packets[]): Add btrace entry.
14739 * inferiors.c (remove_thread): Disable btrace.
14740 * linux-low: Include linux-btrace.h.
14741 (linux_low_enable_btrace): New function.
14742 (linux_low_read_btrace): New function.
14743 (linux_target_ops): Add btrace ops.
14744 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14745 Add srv_linux_btrace=yes.
14746 (x86_64-*-linux*): Add linux-btrace.o.
14747 Add srv_linux_btrace=yes.
14748 * configure.ac: Define HAVE_LINUX_BTRACE.
14749 * config.in: Regenerated.
14750 * configure: Regenerated.
14751
5cc22e4c
MM
147522013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14753
14754 * server.c (handle_qxfer): Preserve error message if -3 is
14755 returned.
14756 (qxfer): Document the -3 return value.
14757
7c97f91e
MM
147582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14759
14760 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14761 (linux_btrace_h): New variable.
14762 (linux-btrace.o): New rule.
14763
be9a119c 147642013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14765 Hafiz Abid Qadeer <abidh@codesourcery.com>
14766
14767 * tracepoint.c (trace_buffer_size): New global.
14768 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14769 (init_trace_buffer): Change to one-argument function. Allocate
14770 trace buffer memory.
14771 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14772 handle QTBuffer:size packet.
14773 (cmd_bigqtbuffer_size): New function.
14774 (initialize_tracepoint): Call init_trace_buffer with
14775 DEFAULT_TRACE_BUFFER_SIZE.
14776 * server.c (handle_query): Add QTBuffer:size in the
14777 supported packets.
14778
e64f7499
YQ
147792013-03-07 Yao Qi <yao@codesourcery.com>
14780
14781 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14782 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14783 of -1.
14784 (cmd_qtsp): Adjust condition. Do post increment.
14785 Set cur_action and cur_step_action back to 0.
14786
f0ae6fc3
PA
147872013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14788
14789 PR server/15236
14790 * linux-low.c (linux_write_memory): Return early success if LEN is
14791 zero.
14792
b5b0b0af
CV
147932013-03-05 Corinna Vinschen <vinschen@redhat.de>
14794
334ad4a8 14795 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14796
589bc927
TT
147972013-02-28 Tom Tromey <tromey@redhat.com>
14798
14799 * configure.ac: Invoke AC_SYS_LARGEFILE.
14800 * configure, config.in: Rebuild.
14801
dfe07582
CV
148022013-02-28 Corinna Vinschen <vinschen@redhat.com>
14803
14804 * win32-low.c: Throughout, fix format strings and casts of
14805 printf-like functions to avoid type related warnings on all
14806 platforms.
14807 (get_child_debug_event): Print dwDebugEventCode as hex since
14808 that's how it's usually documented.
14809
736cd585
YQ
148102013-02-28 Yao Qi <yao@codesourcery.com>
14811
14812 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14813 pulongest.
14814
e1f58301
JW
148152013-02-27 Jiong Wang <jiwang@tilera.com>
14816
14817 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14818 (reg-tilegx32.c): New rule.
14819 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14820 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14821 different register info initializer according to elf class.
14822 (init_registers_tilgx32): New function. The tilegx32 register info
14823 initializer.
14824 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14825 (tile_store_gregset): Likewise.
14826
d171ca78
YQ
148272013-02-27 Yao Qi <yao@codesourcery.com>
14828
14829 * server.c (process_point_options): Print debug message when
14830 debug_threads is true.
14831
282bbdf3
YQ
148322013-02-26 Yao Qi <yao@codesourcery.com>
14833
14834 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14835
aca22551
PA
148362013-02-19 Pedro Alves <palves@redhat.com>
14837 Kai Tietz <ktietz@redhat.com>
14838
14839 PR gdb/15161
14840
14841 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14842 instead of strtoul to extract address from packet.
14843 (process_serial_event) <'z'>: Likewise.
14844
4f3cee1c
YQ
148452013-02-18 Yao Qi <yao@codesourcery.com>
14846
14847 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14848
8e1d55a3
PA
148492013-02-14 Pedro Alves <palves@redhat.com>
14850
14851 Plug memory leak.
14852
14853 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14854 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14855
458820da
PA
148562013-02-14 Pedro Alves <palves@redhat.com>
14857
14858 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14859
baea0dae
PA
148602013-02-14 Pedro Alves <palves@redhat.com>
14861
14862 * tracepoint.c (save_string): Delete.
14863 (add_tracepoint_action): Use savestring instead of save_string.
14864
0b1afbb3
PA
148652013-02-12 Pedro Alves <palves@redhat.com>
14866
14867 * linux-xtensa-low.c: Ditto.
14868 * xtensa-xtregs.c: Ditto.
14869
8a4ac37e
PA
148702013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14871
14872 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14873 thread_db.
14874
148de6bb
MS
148752013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14876
14877 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14878 aarch64_num_wp_regs and aarch64_num_bp_regs to
14879 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14880
55fac6e0
MS
148812013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14882
14883 * linux-aarch64-low.c (ps_get_thread_area): Replace
14884 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14885
176eb98c
MS
148862013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14887 Marcus Shawcroft <marcus.shawcroft@arm.com>
14888 Nigel Stephens <nigel.stephens@arm.com>
14889 Yufeng Zhang <yufeng.zhang@arm.com>
14890
14891 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14892 (aarch64.c, aarch64-without-fpu.c): New targets.
14893 * configure.srv (aarch64*-*-linux*): New.
14894 * linux-aarch64-low.c: New file.
14895
56f7af9c
MS
148962013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14897
43aaf8b6 14898 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14899 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14900 (dequeue_one_deferred_signal, linux_resume_one_thread)
14901 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14902 (linux_tracefork_grandchild, linux_test_for_tracefork)
14903 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14904 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14905 where the argument is 0.
14906
60f662b0
YQ
149072013-01-25 Yao Qi <yao@codesourcery.com>
14908
14909 * event-loop.c: Include "queue.h".
14910 (gdb_event_p): New typedef.
14911 (struct gdb_event) <next_event>: Remove.
14912 (event_queue): Change to QUEUE(gdb_event_p).
14913 (async_queue_event): Remove.
14914 (gdb_event_xfree): New.
14915 (initialize_event_loop): New.
14916 (process_event): Use API from QUEUE.
14917 (wait_for_event): Likewise.
14918 * server.c (main): Call initialize_event_loop.
14919 * server.h (initialize_event_loop): Declare.
14920
5ae4861a
YQ
149212013-01-18 Yao Qi <yao@codesourcery.com>
14922
14923 * ax.h (struct eval_agent_expr_context): New.
14924 (gdb_eval_agent_expr): Update declaration.
14925 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14926 TFRAME. Add new argument CTX.
14927 * server.h (struct eval_agent_expr_context): Declare.
14928 (agent_mem_read, agent_tsv_read): Update declaration.
14929 (agent_mem_read_string): Likewise.
14930 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14931 (add_traceframe_block): Add new argument TPOINT.
14932 Increase TPOINT->traceframe_usage.
14933 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14934 eval_tracepoint_agent_expr.
14935 (condition_true_at_tracepoint): Likewise.
14936 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14937 (agent_mem_read_string, agent_tsv_read): Likewise.
14938
85e00e85
YQ
149392013-01-16 Yao Qi <yao@codesourcery.com>
14940
14941 * linux-low.c (linux_resume_one_lwp): Don't check
14942 'lwp->bp_reinsert != 0'.
14943
4039cf45
JB
149442013-01-07 Joel Brobecker <brobecker@adacore.com>
14945 Pedro Alves <palves@redhat.com>
14946
14947 * lynx-low.c (ptrace_request_to_str): Define a temporary
14948 macro and use it to simplify this function's implementation.
14949
9044dee2
JB
149502013-01-07 Joel Brobecker <brobecker@adacore.com>
14951
14952 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14953 sets errno.
14954
e6352c8f
JB
149552013-01-07 Joel Brobecker <brobecker@adacore.com>
14956
14957 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14958
50681a27
JB
149592013-01-07 Joel Brobecker <brobecker@adacore.com>
14960
14961 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14962
3f6e77ef
JB
149632013-01-07 Joel Brobecker <brobecker@adacore.com>
14964
14965 * lynx-low.c (lynx_resume): Use the resume_info parameter
14966 to determine the ptid for the lynx_ptrace call, unless
14967 it is equal to minus_one_ptid, in which case we use the
14968 ptid of the current_inferior.
14969 (lynx_wait_1): After having received a thread create/exit
14970 event, resume the inferior's execution using the signaling
14971 thread's ptid, rather than the old ptid.
14972
7fda33ae
JB
149732013-01-07 Joel Brobecker <brobecker@adacore.com>
14974
14975 * lynx-low.c (lynx_resume): Delete variable ret.
14976
b9786c74
JB
149772013-01-01 Joel Brobecker <brobecker@adacore.com>
14978
14979 * gdbreplay.c (gdbreplay_version): Update copyright year.
14980 * server.c (gdbserver_version): Likewise.
14981
8b93d60f
JB
149822012-12-17 Joel Brobecker <brobecker@adacore.com>
14983
14984 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14985 new thread.
14986
037335a7
JB
149872012-12-17 Joel Brobecker <brobecker@adacore.com>
14988
14989 * lynx-low.c (ptrace_request_to_str): Add handling for
14990 PTRACE_GETTRACESIG.
14991
52d4cbd8
JB
149922012-12-17 Joel Brobecker <brobecker@adacore.com>
14993
14994 * lynx-low.c (lynx_attach): Delete variable new_process.
14995
ab8f6ca9
JB
149962012-12-17 Joel Brobecker <brobecker@adacore.com>
14997
14998 * lynx-low.c (lynx_create_inferior): Delete variable
14999 new_process.
15000
78cbc024
JB
150012012-12-17 Joel Brobecker <brobecker@adacore.com>
15002
15003 * lynx-low.c (ptrace_request_to_str): Do not handle
15004 PTRACE_GETTHREADLIST if this macro does not exist.
15005
14a00470
YQ
150062012-12-15 Yao Qi <yao@codesourcery.com>
15007
15008 * Makefile.in (OBS): Add notif.o.
15009 * notif.c, notif.h: New.
15010 * server.c: Include "notif.h".
15011 (struct vstop_notif) <next>: Remove.
15012 <base>: New field.
15013 (queue_stop_reply): Update.
15014 (push_event, send_next_stop_reply): Remove.
15015 (discard_queued_stop_replies): Update.
15016 (notif_stop): New variable.
15017 (handle_v_stopped): Remove.
15018 (handle_v_requests): Don't call handle_v_stopped. Call
15019 handle_ack_notif instead.
15020 (queue_stop_reply_callback): Call notif_event_enque instead
15021 of queue_stop_reply.
15022 (handle_status): Don't call send_next_stop_reply, call
15023 notif_write_event instead.
15024 (kill_inferior_callback): Likewise.
15025 (detach_or_kill_inferior_callback): Likewise.
15026 (main): Call initialize_notif.
15027 (process_serial_event): Call QUEUE_is_empty.
15028 (handle_target_event): Call notif_push instead of push event.
15029 * server.h (push_event): Remove declaration.
15030
61c125b9
TT
150312012-12-10 Tom Tromey <tromey@redhat.com>
15032
15033 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15034 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15035 macros.
15036 (.c.o): Rewrite.
15037 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15038 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15039 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15040 (amd64-linux-ipa.o, ax.o): Rewrite.
15041 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15042 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15043 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15044 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15045 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15046 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15047 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15048 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15049 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15050 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15051 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15052 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15053 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15054 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15055 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15056 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15057 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15058 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15059 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15060 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15061 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15062 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15063 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15064 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15065 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15066 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15067 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15068 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15069 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15070 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15071 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15072 (reg-tilegx.o): Remove.
15073 (all_object_files): New macro.
15074 Include .deps files.
15075 * aclocal.m4, configure: Rebuild.
15076 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15077 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15078 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15079
e90e9ad9
TT
150802012-12-05 Tom Tromey <tromey@redhat.com>
15081
15082 PR gdb/14917:
15083 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15084
02d403bf 150852012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15086
15087 * configure.ac: Check for linux/perf_event.h.
15088 * config.in: Regenerated.
15089 * configure: Regenerated.
15090
0270a750
PA
150912012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15092
15093 * hostio.c (handle_readlink): Decrease buffer size
15094 parameter passed to readlink by one byte.
15095
8c29b58e
YQ
150962012-11-26 Yao Qi <yao@codesourcery.com>
15097
15098 * configure.ac (build_warnings): Append '-Wempty-body'.
15099 * configure: Regenerated.
15100 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15101 body.
15102
8bdce1ff
PM
151032012-11-15 Pierre Muller <muller@sourceware.org>
15104
15105 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15106 * config.in: Regenerate.
15107 * configure: Regenerate.
15108 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15109 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15110 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15111 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15112 header.
15113 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15114 instead of <sys/wait.h> header.
15115 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15116
02d403bf 151172012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15118
15119 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15120 (various make rules): Remove -DGDBSERVER
15121
fbd5db48
YQ
151222012-11-09 Yao Qi <yao@codesourcery.com>
15123
15124 * spu-low.c (current_ptid): Move it to ..
15125 * gdbthread.h: ... here. New.
15126 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15127 * server.c (myresume, process_serial_event): Likewise.
15128 * thread-db.c (thread_db_find_new_threads): Likewise.
15129 * tracepoint.c (run_inferior_command): Likewise.
15130
b3dc46ff
AB
151312012-10-01 Andrew Burgess <aburgess@broadcom.com>
15132
15133 * server.c (handle_search_memory_1): Include access length in
15134 warning message.
15135
07c04788
HPN
151362012-09-05 Michael Brandt <michael.brandt@axis.com>
15137
15138 * linux-crisv32-low.c: Fix compile errors.
15139
918d227b
YQ
151402012-09-04 Yao Qi <yao@codesourcery.com>
15141
15142 * tracepoint.c (cmd_qtsv): Adjust debug message.
15143 Don't check CUR_TPOINT.
15144
18c1b81a
YQ
151452012-08-28 Yao Qi <yao@codesourcery.com>
15146
15147 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15148 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15149 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15150 Remove declarations of xmalloc, xreallloc, xstrdup and
15151 freeargv.
15152 * Makefile.in (libiberty_h): New.
15153 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15154 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15155
dc82f37b
YQ
151562012-08-23 Yao Qi <yao@codesourcery.com>
15157
15158 * server.h: Remove declaration of 'xsnprintf'.
15159
406b1477
KS
151602012-08-22 Keith Seitz <keiths@redhat.com>
15161
15162 * server.h: Include build-gnulib-gbserver/config.h.
15163 * gdbreplay.c: Likewise.
15164
e6712ff1
DE
151652012-08-08 Doug Evans <dje@google.com>
15166
15167 * Makefile.in (SFILES): Add gdb_vecs.c.
15168 (OBS): Add gdb_vecs.o.
15169 (gdb_vecs_h, host_defs_h): New variables.
15170 (thread-db.o): Add $(gdb_vecs_h) dependency.
15171 (gdb_vecs.o): New rule.
15172 * thread-db.c: #include "gdb_vecs.h".
15173 (thread_db_load_search): Use a vector to iterate over path elements.
15174 Handle text appearing after "$pdir".
15175
15176 * configure.ac: Add check for strstr.
15177 * config.in: Regenerate.
15178 * configure: Regenerate.
15179
7c3270ae
UW
151802012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15181
15182 * hostio.c (handle_pread): If pread fails, fall back to attempting
15183 lseek/read.
15184 (handle_pwrite): Likewise for pwrite.
15185
b62e2b27
UW
151862012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15187
15188 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15189 between unsupported TYPE and unimplementable ADDR/LEN combination.
15190 (arm_insert_point): Act on new return value.
15191
78a99e91
PA
151922012-07-31 Pedro Alves <palves@redhat.com>
15193
15194 * server.c (process_point_options): Only skip tokens if we find
15195 one that is unrecognized. Don't treat 'X' specially while
15196 skipping unrecognized tokens.
15197
fcf303ab
UW
151982012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15199
15200 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15201 to 4-byte-align HW breakpoint addresses for Thumb.
15202
7255706c
YQ
152032012-07-27 Yao Qi <yao@codesourcery.com>
15204
15205 PR remote/14161.
15206
15207 * server.h: Declare gdb_agent_about_to_close.
15208 * target.c (kill_inferior): Include "agent.h".
15209 New. Send command 'kill'.
15210 * target.h (kill_inferior): Removed macro.
15211 * tracepoint.c (gdb_agent_about_to_close): New.
15212 (gdb_agent_helper_thread): Handle command 'close'.
15213 Wait endlessly until the inferior stops.
15214 Install gdb_agent_remove_socket to atexit hook.
15215 (agent_socket_name): New static variable.
15216 (gdb_agent_socket_init): Replace local variable 'name' with
15217 'agent_socket_name'.
15218 (gdb_agent_remove_socket): New.
15219
5a3f286f
YQ
152202012-07-27 Yao Qi <yao@codesourcery.com>
15221
15222 * server.c (process_point_options): Stop at 'X' when parsing.
15223
961bd387
ME
152242012-07-19 Michael Eager <eager@eagercon.com>
15225
a261b8f5 15226 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15227 to hw_execute.
15228 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15229 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15230 hardware breakpoint.
15231
aa7c7447
JK
152322012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15233
15234 * gdbserver/linux-low.c (initialize_low): Call
15235 linux_ptrace_init_warnings.
15236
7f216e7c
DE
152372012-07-02 Doug Evans <dje@google.com>
15238
15239 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15240 pointer to int.
15241
d3ce09f5
SS
152422012-07-02 Stan Shebs <stan@codesourcery.com>
15243
15244 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15245 (ax.o): Add it to build rule.
15246 (ax-ipa.o): Ditto.
15247 (OBS): Add format.o.
15248 (IPA_OBS): Add format.o.
15249 * server.c (handle_query): Claim support for breakpoint commands.
15250 (process_point_options): Add command case.
15251 (process_serial_event): Leave running if there are printfs in
15252 effect.
15253 * mem-break.h (any_persistent_commands): Declare.
15254 (add_breakpoint_commands): Declare.
15255 (gdb_no_commands_at_breakpoint): Declare.
15256 (run_breakpoint_commands): Declare.
15257 * mem-break.c (struct point_command_list): New struct.
15258 (struct breakpoint): New field command_list.
15259 (any_persistent_commands): New function.
15260 (add_commands_to_breakpoint): New function.
15261 (add_breakpoint_commands): New function.
15262 (gdb_no_commands_at_breakpoint): New function.
15263 (run_breakpoint_commands): New function.
15264 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15265 locally.
15266 * ax.c: Include format.h.
15267 (ax_printf): New function.
15268 (gdb_eval_agent_expr): Add printf opcode.
15269
2f8f6aed
YQ
152702012-06-13 Yao Qi <yao@codesourcery.com>
15271
15272 * server.c (start_inferior): Remove duplicated writes to fields
15273 'last_resume_kind' and 'last_status' of 'current_inferior'.
15274
0c9070b3
YQ
152752012-06-12 Yao Qi <yao@codesourcery.com>
15276 Pedro Alves <palves@redhat.com>
15277
15278 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15279 comment.
15280 * server.c (handle_v_cont): Extend comment.
15281
c52daf70
YQ
152822012-06-11 Yao Qi <yao@codesourcery.com>
15283
15284 * linux-low.c (linux_attach): Add 'static'.
15285
d38bbb0a
YQ
152862012-06-06 Yao Qi <yao@codesourcery.com>
15287
15288 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15289
89dc0afd
JK
152902012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15291
15292 Fix gcc -flto compilation warning.
15293 * server.c (main): Make variable multi_mode and attach volatile.
15294
75f62ce7
TJB
152952012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15296
15297 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15298 if the platform doesn't know about it.
15299
65f479b6
PA
153002012-05-30 Jeff Kenton <jkenton@tilera.com>
15301
15302 * Makefile.in (SFILES): Add linux-tile-low.c.
15303 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15304 * configure.srv: Handle tilegx-*-linux*.
15305 * linux-tile-low.c: New file.
15306
0c5bf5a9
JK
153072012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15308
15309 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15310
a493e3e2
PA
153112012-05-24 Pedro Alves <palves@redhat.com>
15312
15313 PR gdb/7205
15314
43aaf8b6 15315 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15316
2ea28649
PA
153172012-05-24 Pedro Alves <palves@redhat.com>
15318
15319 PR gdb/7205
15320
15321 Replace target_signal with gdb_signal throughout.
15322
8d409d16
MR
153232012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15324
15325 * linux-low.c (linux_store_registers): Avoid the copying sequence
15326 when no data has been retrieved by ptrace.
15327
23512c01
MGD
153282012-05-22 Will Deacon <will.deacon@arm.com>
15329
15330 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15331 Include asm/ptrace.h.
15332 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15333 already defined.
15334
4934b29e
MR
153352012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15336
15337 * linux-low.c (linux_store_registers): Don't re-retrieve data
15338 with ptrace that has already been obtained from /proc. Always
15339 copy any data retrieved with ptrace to the buffer supplied.
15340
bde24c0a
PA
153412012-05-11 Yao Qi <yao@codesourcery.com>
15342 Pedro Alves <palves@redhat.com>
15343
15344 * linux-low.c (enum stopping_threads_kind): New.
15345 (stopping_threads): Change type to `enum stopping_threads_kind'.
15346 (handle_extended_wait): If stopping and suspending threads, leave
15347 the new_lwp suspended too.
15348 (linux_wait_for_event): Adjust.
15349 (stop_all_lwps): Set `stopping_threads' to
15350 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15351 whether we're suspending threads or just stopping them. Assert no
15352 recursion happens.
15353
623b6bdf
YQ
153542012-04-29 Yao Qi <yao@codesourcery.com>
15355
15356 * server.h: Move some code to ...
15357 * gdbthread.h: ... here. New.
15358 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15359 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15360 (nto-low.o, win32-low.o): Likewise.
15361 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15362 * regcache.c, remote-utils.c, server.c: Likewise.
15363 * target.c, tracepoint.c, win32-low.c: Likewise.
15364
f15f9948
TJB
153652012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15366
15367 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15368 (PTRACE_ARG4_TYPE): Likewise.
15369 (PTRACE_XFER_TYPE): Likewise.
15370 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15371 ptrace to PTRACE_ARG3_TYPE.
15372 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15373 (PTRACE_ARG4_TYPE): Likewise.
15374 (PTRACE_XFER_TYPE): Likewise.
15375 (linux_detach_one_lwp): Cast fourth argument of
15376 ptrace to long then PTRACE_ARG4_TYPE.
15377 (regsets_fetch_inferior_registers): Cast third argument of
15378 ptrace to long then PTRACE_ARG3_TYPE.
15379 (regsets_store_inferior_registers): Likewise.
15380
38ea300a
PA
153812012-04-20 Pedro Alves <palves@redhat.com>
15382
15383 * configure: Regenerate.
15384
c971b7fa
PA
153852012-04-19 Pedro Alves <palves@redhat.com>
15386
43aaf8b6 15387 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15388 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15389 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15390 (all, install-only, uninstall, clean-info, all-lib, clean): No
15391 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15392 (maintainer-clean realclean distclean): Use subdir_do.
15393 (subdir_do): New.
15394 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15395 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15396 * acinclude.m4: Include acx_configure_dir.m4.
15397 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15398 calls. Call AC_PROG_RANLIB. Configure gnulib using
15399 ACX_CONFIGURE_DIR.
15400 (GNULIB): New.
15401 (GNULIB_STDINT_H): Adjust.
15402 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15403 * gdbreplay.c: Include build-gnulib/config.h.
15404 * server.h: Likewise.
15405 * aclocal.m4: Regenerate.
15406 * config.in: Regenerate.
15407 * configure: Regenerate.
c971b7fa 15408
809277f8
PA
154092012-04-19 Pedro Alves <palves@redhat.com>
15410
15411 * Makefile.in (LIBGNU, INCGNU): Adjust.
15412 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15413 (all, install-only, uninstall, clean-info, all-lib, clean)
15414 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15415 * configure.ac: Adjust AC_OUTPUT output.
15416 * aclocal.m4: Regenerate.
15417 * configure: Regenerate.
15418
fd9bb8b8
PA
154192012-04-19 Pedro Alves <palves@redhat.com>
15420
15421 * Makefile.in (generated_files): New.
15422 (server_h): Remove the explicit dependency on config.h, and depend
15423 on $generated_files.
15424
1c298c66
PA
154252012-04-19 Pedro Alves <palves@redhat.com>
15426
15427 * Makefile.in (INCGNU): Add -Ignulib.
15428
57c4b50b
PA
154292012-04-19 Pedro Alves <palves@redhat.com>
15430
15431 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15432 (INCGNU): ... this, and spell out -I here.
15433 (GNULIB_LIB): Rename to ...
15434 (LIBGNU): ... this.
15435 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15436
1030e047
PA
154372012-04-19 Pedro Alves <palves@redhat.com>
15438
15439 * config.in: Regenerate.
15440
447d4319
PA
154412012-04-19 Pedro Alves <palves@redhat.com>
15442
15443 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15444 * server.h (memmem): Remove declaration.
15445 * config.in: Regenerate.
15446 * configure: Regenerate.
15447
aad9eab9
YQ
154482012-04-19 Yao Qi <yao@codesourcery.com>
15449
15450 * Makefile.in (SFILES): Add common/vec.c.
15451 (OBS): Add vec.o.
15452 (vec.o): New rule.
15453
3e10640f
YQ
154542012-04-19 Yao Qi <yao@codesourcery.com>
15455
15456 * remote-utils.c (prepare_resume_reply): Replace with macro
15457 target_core_of_thread.
15458 * server.c (handle_qxfer_threads_proper): Likewise.
15459 * target.h (traget_core_of_thread): New macro.
15460
71622373
PA
154612012-04-18 Pedro Alves <palves@redhat.com>
15462
15463 * aclocal.m4: Regenerate.
15464 * configure: Regenerate.
15465
80d26939
YQ
154662012-04-16 Yao Qi <yao@codesourcery.com>
15467
15468 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15469 duplicated on address.
15470
42476b70
YQ
154712012-04-16 Yao Qi <yao@codesourcery.com>
15472
15473 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15474 (struct tracepoint_action_ops) <send>: New field.
15475 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15476 (agent_expr_send, x_tracepoint_action_send): New.
15477 (l_tracepoint_action_send): New.
15478 (cmd_qtdp): Download and install tracepoint
15479 according to `use_agent'.
15480 (run_inferior_command): Add one more parameter `len'.
15481 Update callers.
15482 (tracepoint_send_agent): New.
15483 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15484
7bc83639
YQ
154852012-04-16 Yao Qi <yao@codesourcery.com>
15486
15487 * tracepoint.c (download_tracepoints): Moved to ...
15488 (cmd_qtstart): ... here.
15489
5f18041e
YQ
154902012-04-14 Yao Qi <yao@codesourcery.com>
15491
15492 * tracepoint.c: Include inttypes.h.
15493 (struct collect_memory_action): Use sized types.
15494 (struct tracepoint): Likewise.
15495 (cmd_qtdp, stop_tracing): Update print specifiers.
15496 (cmd_qtp, response_tracepoint): Likewise.
15497 (collect_data_at_tracepoint): Likewise.
15498 (collect_data_at_step): Likewise.
15499
55a8c076
YQ
155002012-04-14 Yao Qi <yao@codesourcery.com>
15501
15502 Import gnulib module inttypes.
15503 * aclocal.m4, config.in, configure: Regenerated.
15504
dc750257
YQ
155052012-04-14 Yao Qi <yao@codesourcery.com>
15506
15507 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15508 Makefile and config.status at last.
15509
0ab5faf9
YQ
155102012-04-13 Yao Qi <yao@codesourcery.com>
15511
15512 * tracepoint.c: Include stdint.h unconditionally.
15513
18f5fd81
TJB
155142012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15515
15516 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15517 on BFD_HAVE_SYS_PROCFS_TYPE.
15518 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15519 * configure: Regenerate.
15520 * config.in: Likewise.
15521
4d47af5c
L
155222012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15523
15524 * Makefile.in (clean): Also remove x32.c x32-linux.c
15525 x32-avx.c x32-avx-linux.c.
15526 (x32.o): New target.
15527 (x32.c): Likewise.
15528 (x32-linux.o): Likewise.
15529 (x32-linux.c): Likewise.
15530 (x32-avx.o): Likewise.
15531 (x32-avx.c): Likewise.
15532 (x32-avx-linux.o): Likewise.
15533 (x32-avx-linux.c): Likewise.
15534
15535 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15536 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15537 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15538 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15539 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15540 i386/x32-avx-linux.xml.
15541
15542 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15543 (init_registers_x32_avx_linux): Likwise.
15544 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15545 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15546
ecedbe58
PA
155472012-04-13 Pedro Alves <palves@redhat.com>
15548
15549 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15550 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15551 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15552 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15553 the sub-make.
15554
c92b5177
L
155552012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15556
15557 * linux-x86-low.c (compat_x32_clock_t): New.
15558 (compat_x32_siginfo_t): Likewise.
15559 (compat_x32_siginfo_from_siginfo): Likewise.
15560 (siginfo_from_compat_x32_siginfo): Likewise.
15561 (linux_is_elf64): Likewise.
15562 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15563 and siginfo_from_compat_x32_siginfo for x32.
15564 (x86_arch_setup): Set linux_is_elf64.
15565
214d508e
L
155662012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15567
15568 PR gdb/13969
15569 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15570 e_machine field.
15571 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15572 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15573 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15574 compatible with process.
15575
c9a1864a
YQ
155762012-04-12 Yao Qi <yao@codesourcery.com>
15577
15578 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15579 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15580 (install-only, install-info, clean): Handle sub dir gnulib.
15581 (all-lib, am--refresh): New targets.
15582 (memmem.o): Remove target.
15583 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15584 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15585 (AC_REPLACE_FUNCS): Remove memmem.
15586 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15587 (AC_OUTPUT): Generate Makefile in gnulib/.
15588 * aclocal.m4, config.in, configure: Regenerated.
15589
367ba2c2
MR
155902012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15591
15592 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15593
9d236627
PA
155942012-04-05 Pedro Alves <palves@redhat.com>
15595
15596 -Werror=strict-aliasing
15597
15598 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15599 pointer.
15600
111217b3
PA
156012012-04-04 Pedro Alves <palves@redhat.com>
15602
15603 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15604 (sparc_store_gregset_from_stack, sparc_store_gregset)
15605 (sparc_breakpoint_at): Fix formatting.
15606
8365dcf5
TJB
156072012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15608
15609 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15610 are available.
15611 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15612 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15613 * config.in: Regenerate.
15614 * configure: Likewise.
15615
689cc2ae
PA
156162012-03-29 Pedro Alves <palves@redhat.com>
15617
15618 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15619 Correct ptrace arguments.
15620
c14dfd32
PA
156212012-03-28 Pedro Alves <palves@redhat.com>
15622
15623 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15624 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15625 (IA64_FR1_REGNUM): New defines.
15626 (ia64_fetch_register): New.
15627 (the_low_target): Install it.
15628 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15629 field.
15630 * linux-low.c (linux_fetch_registers): Try the
15631 the_low_target.fetch_register hook first.
15632
15633 * linux-arm-low.c (the_low_target): Adjust.
15634 * linux-bfin-low.c (the_low_target): Adjust.
15635 * linux-cris-low.c (the_low_target): Adjust.
15636 * linux-crisv32-low.c (the_low_target): Adjust.
15637 * linux-m32r-low.c (the_low_target): Adjust.
15638 * linux-m68k-low.c (the_low_target): Adjust.
15639 * linux-mips-low.c (the_low_target): Adjust.
15640 * linux-ppc-low.c (the_low_target): Adjust.
15641 * linux-s390-low.c (the_low_target): Adjust.
15642 * linux-sh-low.c (the_low_target): Adjust.
15643 * linux-sparc-low.c (the_low_target): Adjust.
15644 * linux-tic6x-low.c (the_low_target): Adjust.
15645 * linux-x86-low.c (the_low_target): Adjust.
15646 * linux-xtensa-low.c (the_low_target): Adjust.
15647
63c88e13
PA
156482012-03-26 Pedro Alves <palves@redhat.com>
15649
15650 * server.c (handle_qxfer_libraries): Don't bail early if
15651 the_target->qxfer_libraries_svr4 is not NULL.
15652
fb723180
PA
156532012-03-26 Pedro Alves <palves@redhat.com>
15654
15655 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15656
0afae3cf
PA
156572012-03-23 Pedro Alves <palves@redhat.com>
15658
15659 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15660 "library-list-svr4" element's start tag when the the DSO list is
15661 empty.
15662
485f1ee4
PA
156632012-03-23 Pedro Alves <palves@redhat.com>
15664
15665 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15666 a variable whose type size is the same as the inferior's pointer
15667 size.
15668
a5362b9a
TS
156692012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15670
15671 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15672 struct siginfo.
15673 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15674 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15675 * linux-low.h: Include <signal.h>.
15676 (struct siginfo): Remove forward declaration.
15677 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15678 struct siginfo.
15679
d226c142
MF
156802012-03-21 Mike Frysinger <vapier@gentoo.org>
15681
15682 * .gitignore: Ignore more files.
15683
122f36ef
PA
156842012-03-19 Pedro Alves <palves@redhat.com>
15685 Jan Kratochvil <jan.kratochvil@redhat.com>
15686
15687 * server.c (cont_thread, general_thread): Add describing comments.
15688 (start_inferior): Clear `cont_thread'.
15689 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15690 of a process.
15691
fc3e5175
YQ
156922012-03-15 Yao Qi <yao@codesourcery.com>
15693
15694 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15695 handling to ...
15696 (cmd_qtdp): ... here.
15697
8d0d92cd
YQ
156982012-03-15 Yao Qi <yao@codesourcery.com>
15699
15700 * tracepoint.c (struct tracepoint_action_ops): New.
15701 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15702 (m_tracepoint_action_download): New.
15703 (r_tracepoint_action_download): New.
15704 (x_tracepoint_action_download): New.
15705 (l_tracepoint_action_download): New.
15706 (add_tracepoint_action): Install `action->ops' according type.
15707 (download_tracepoint_1): Move code `download' function pointer
15708 of various tracepoint_action_ops.
15709
87b0bb13
JK
157102012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15711
15712 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15713 linux_ptrace_attach_warnings.
15714
5f572dec
JK
157152012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15716
15717 * Makefile.in (linux-ptrace.o): New.
15718 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15719 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15720 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15721 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15722 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15723 of these targets.
15724 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15725
f4647387
YQ
157262012-03-08 Yao Qi <yao@codesourcery.com>
15727 Pedro Alves <palves@redhat.com>
15728
15729 Fix PR server/13392.
15730 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15731 offset of JMP insn.
15732 * tracepoint.c (remove_tracepoint): New.
15733 (cmd_qtdp): Call remove_tracepoint when failed to install.
15734
9b224c5e
PA
157352012-03-07 Pedro Alves <palves@redhat.com>
15736
15737 * linux-low.c (get_detach_signal): New.
15738 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15739 Pass on pending signals to PTRACE_DETACH. Check the result of the
15740 ptrace call.
15741 * server.c (program_signals, program_signals_p): New.
15742 (handle_general_set): Handle QProgramSignals.
15743 * server.h (program_signals, program_signals_p): Declare.
15744
e237a7e2
JK
157452012-03-05 Pedro Alves <palves@redhat.com>
15746 Jan Kratochvil <jan.kratochvil@redhat.com>
15747
15748 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15749 New comment why.
15750
5808517f
YQ
157512012-03-03 Yao Qi <yao@codesourcery.com>
15752
15753 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15754 agent_look_up_symbols.
15755
58b4daa5
YQ
157562012-03-03 Yao Qi <yao@codesourcery.com>
15757
15758 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15759 (linux-x86-low.o): Likewise.
15760 * server.h: Remove in_process_agent_loaded.
15761 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15762 common/agent.c.
15763 Update callers.
15764
8ffcbaaf
YQ
157652012-03-03 Yao Qi <yao@codesourcery.com>
15766
15767 * tracepoint.c (gdb_agent_capability): New global.
15768 (in_process_agent_loaded_ust): Renamed to
15769 `in_process_agent_supports_ust'.
15770 Update callers.
15771 (in_process_agent_supports_ust): Call agent_capability_check.
15772 (clear_installed_tracepoints): Assert that agent supports
15773 agent.
15774
d1feda86
YQ
157752012-03-03 Yao Qi <yao@codesourcery.com>
15776
15777 * linux-low.c (linux_supports_agent): New.
15778 (linux_target_ops): Initialize field `supports_agent' with
15779 linux_supports_agent.
15780 * target.h (struct target_ops) <supports_agent>: New.
15781 (target_supports_agent): New macro.
15782 * server.c (handle_general_set): Handle packet 'QAgent'.
15783 (handle_query): Send `QAgent+'.
15784 * Makefile.in (server.o): Depends on agent.h.
15785
2fa291ac
YQ
157862012-03-03 Yao Qi <yao@codesourcery.com>
15787
15788 * Makefile.in (OBS): Add agent.o.
15789 Add new rule for agent.o.
15790 Track dependence of tracepoint.c on agent.h.
15791 * tracepoint.c (run_inferior_command_1):
15792 (run_inferior_command): Call agent_run_command.
15793 (gdb_ust_connect_sync_socket): Deleted. Move it to
15794 common/agent.c.
15795 (resume_thread, stop_thread): Likewise.
15796 (gdb_ust_socket_init): Renamed to ...
15797 (gdb_agent_socket_init): ... New.
15798 (gdb_ust_thread): Renamed to ...
15799 (gdb_agent_helper_thread): ... New.
15800 (gdb_ust_init): Move some code to ...
15801 (gdb_agent_init): ... here. New.
15802 [HAVE_UST]: Call gdb_ust_init.
15803 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15804 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15805 * config.in, configure: Regenerated.
15806
05044653
PA
158072012-03-02 Pedro Alves <palves@redhat.com>
15808
15809 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15810 * linux-low.c (struct simple_pid_list): New.
15811 (stopped_pids): New a struct simple_pid_list pointer.
15812 (add_to_pid_list, pull_pid_from_list): New.
15813 (handle_extended_wait): Don't assume the first signal new children
15814 report is SIGSTOP. Adjust call to pull_pid_from_list.
15815 (linux_wait_for_lwp): Adjust.
15816
8d00225b
YQ
158172012-03-02 Yao Qi <yao@codesourcery.com>
15818
15819 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15820 debug log.
15821
19560ba5
YQ
158222012-03-02 Yao Qi <yao@codesourcery.com>
15823
15824 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15825 `stop_pc' and `tpoint'. Update caller.
15826
1faeff08
MR
158272012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15828
15829 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15830 * linux-low.c (use_linux_regsets): New macro.
15831 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15832 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15833 (linux_register_in_regsets): New function.
15834 (usr_fetch_inferior_registers): Skip registers covered by
15835 regsets.
15836 (usr_store_inferior_registers): Likewise.
15837 (usr_fetch_inferior_registers): New macro.
15838 (usr_store_inferior_registers): Likewise.
15839 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15840 (linux_store_registers): Likewise.
15841 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15842 prototype.
15843 (init_registers_mips64_dsp_linux): Likewise.
15844 (init_registers_mips_linux): New macro.
15845 (init_registers_mips_dsp_linux): Likewise.
15846 (mips_dsp_num_regs): Likewise.
15847 (DSP_BASE, DSP_CONTROL): New fallback macros.
15848 (mips_base_regs): New macro.
15849 (mips_regmap): Use it. Fix the size.
15850 (mips_dsp_regmap): New variable.
15851 (mips_dsp_regset_bitmap): Likewise.
15852 (mips_arch_setup): New function.
15853 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15854 than mips_regmap.
15855 (mips_cannot_store_register): Likewise.
15856 (the_low_target): Update .arch_setup, .num_regs and .regmap
15857 initializers. Add .regset_bitmap initializer.
15858 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15859 initializer.
15860 * linux-bfin-low.c (the_low_target): Likewise.
15861 * linux-cris-low.c (the_low_target): Likewise.
15862 * linux-crisv32-low.c (the_low_target): Likewise.
15863 * linux-ia64-low.c (the_low_target): Likewise.
15864 * linux-m32r-low.c (the_low_target): Likewise.
15865 * linux-m68k-low.c (the_low_target): Likewise.
15866 * linux-ppc-low.c (the_low_target): Likewise.
15867 * linux-s390-low.c (the_low_target): Likewise.
15868 * linux-sh-low.c (the_low_target): Likewise.
15869 * linux-sparc-low.c (the_low_target): Likewise.
15870 * linux-tic6x-low.c (the_low_target): Likewise.
15871 * linux-x86-low.c (the_low_target): Likewise.
15872 * linux-xtensa-low.c (the_low_target): Likewise.
15873 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15874 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15875 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15876 srv_xmlfiles.
15877 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15878 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15879
c03e6ccc
YQ
158802012-02-29 Yao Qi <yao@codesourcery.com>
15881 Pedro Alves <palves@redhat.com>
15882
15883 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15884 `step_over_finished' is true.
15885
644cebc9
PA
158862012-02-27 Pedro Alves <palves@redhat.com>
15887
15888 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15889 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15890
c14d7ab2
PA
158912012-02-27 Pedro Alves <palves@redhat.com>
15892
15893 PR server/9684
15894 * linux-low.c (pid_is_stopped): New.
15895 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15896
412c89dd
LM
158972012-02-25 Luis Machado <lgustavo@codesourcery.com>
15898
15899 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15900 of conditions.
15901
b745defe
MR
159022012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15903
15904 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15905
9f3a5c85
LM
159062012-02-24 Luis Machado <lgustavo@codesourcery>
15907
15908 * server.c (handle_query): Advertise support for target-side
15909 breakpoint condition evaluation.
15910 (process_point_options): New function.
15911 (process_serial_event): When inserting a breakpoint, check for
15912 a target-side condition that should be evaluated.
15913
15914 * mem-break.c: Include regcache.h and ax.h.
15915 (point_cond_list_t): New data structure.
15916 (breakpoint) <cond_list>: New field.
15917 (find_gdb_breakpoint_at): Make non-static.
15918 (delete_gdb_breakpoint_at): Clear any target-side
15919 conditions.
15920 (clear_gdb_breakpoint_conditions): New function.
15921 (add_condition_to_breakpoint): Likewise.
15922 (add_breakpoint_condition): Likewise.
15923 (gdb_condition_true_at_breakpoint): Likewise.
15924 (gdb_breakpoint_here): Return result directly instead
15925 of going through a local variable.
15926
15927 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15928 (clear_gdb_breakpoint_conditions): Likewise.
15929 (add_breakpoint_condition): Likewise.
15930 (gdb_condition_true_at_breakpoint): Likewise.
15931
15932 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15933 (need_step_over_p): Take target-side breakpoint condition into
15934 consideration.
15935
5e1dc496
LM
159362012-02-24 Luis Machado <lgustavo@codesourcery>
15937
15938 * server.h: Include tracepoint.h.
15939 (agent_mem_read, agent_get_trace_state_variable_value,
15940 agent_set_trace_state_variable_value,
15941 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15942 get_set_tsv_func_addr): New prototypes.
15943
15944 * ax.h: New include file.
15945 * ax.c: New source file.
15946
15947 * tracepoint.c: Include ax.h.
15948 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15949 agent_expr, eval_result_type): Move to ax.h.
15950 (parse_agent_expr): Rename to ...
15951 (gdb_parse_agent_expr): ... this, make it non-static and move
15952 to ax.h.
15953 (unparse_agent_expr) Rename to ...
15954 (gdb_unparse_agent_expr): ... this, make it non-static and move
15955 to ax.h.
15956 (eval_agent_expr): Rename to ...
15957 (eval_tracepoint_agent_expr): ... this.
15958 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15959 forward declarations.
15960 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15961 (agent_get_trace_state_variable_value): New function.
15962 (agent_set_trace_state_variable_value): New function.
15963 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15964 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15965 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15966 (condition_true_at_tracepoint): Likewise.
15967 (parse_agent_expr): Rename to ...
15968 (gdb_parse_agent_expr): ... this and move to ax.c.
15969 (unparse_agent_expr): Rename to ...
15970 (gdb_unparse_agent_expr): ... this and move to ax.c.
15971 (gdb_agent_op_name): Move to ax.c.
15972 (eval_agent_expr): Rename to ...
15973 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15974 and move to ax.c.
15975 (eval_tracepoint_agent_expr): New function.
15976 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15977 non-static.
5e1dc496
LM
15978 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15979 ax.c.
15980 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15981 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15982 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15983 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15984 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15985 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15986 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15987 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15988 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15989 (compile_bytecodes): Remove forward declaration.
15990 (is_goto_target): Move to ax.c.
15991 (compile_bytecodes): Move to ax.c and call
15992 agent_get_trace_state_variable_value (...) and
15993 agent_set_trace_state_variable_value (...).
15994
15995 * Makefile.in: Update ax.c and IPA dependencies.
15996
277e4e52
PA
159972012-02-24 Pedro Alves <palves@redhat.com>
15998
15999 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16000 (cmd_bigqtbuffer_circular): ... this. Only handle
16001 'QTBuffer:circular:'.
16002 (handle_tracepoint_general_set): Adjust.
16003
bf4c19f7
YQ
160042012-02-16 Yao Qi <yao@codesourcery.com>
16005
16006 * inferiors.c: Move code to ...
16007 * dll.c: .... here. New.
16008 * server.h: Declare clear_dlls.
16009 * Makefile.in (SFILES): Add dll.c.
16010 (OBS): Add dll.o
16011 (dll.o): New rule.
16012
d73f2619
YQ
160132012-02-11 Yao Qi <yao@codesourcery.com>
16014
16015 * server.c: (handle_monitor_command): Add a new parameter
16016 `own_buf'.
16017 (handle_query): Update caller.
16018
f8255c2a
JB
160192012-02-09 Joel Brobecker <brobecker@adacore.com>
16020
16021 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16022 * configure, config.in: Regenerate.
16023 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16024 is not defined.
16025
da84f473
PA
160262012-02-02 Pedro Alves <palves@redhat.com>
16027
16028 Try SIGKILL first, then PTRACE_KILL.
16029 * linux-low.c (linux_kill_one_lwp): New.
16030 (linux_kill_one_lwp): Rename to ...
16031 (kill_one_lwp_callback): ... this. Use the new
16032 linux_kill_one_lwp.
16033
e886a173
PA
160342012-02-02 Pedro Alves <palves@redhat.com>
16035
16036 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16037 inferior.
16038
be07f1a2
PA
160392012-01-27 Pedro Alves <palves@redhat.com>
16040
16041 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16042 (elf_64_file_p): Make static.
16043 (linux_pid_exe_is_elf_64_file): New.
16044 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16045 Delete declarations.
16046 (linux_pid_exe_is_elf_64_file): Declare.
16047 * linux-x86-low.c (x86_arch_setup): Use
16048 linux_pid_exe_is_elf_64_file.
16049
d8301ad1
JK
160502012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16051
16052 * linux-low.c (linux_wait_for_event_1): Rename to ...
16053 (linux_wait_for_event): ... here and merge it with former
16054 linux_wait_for_event - new variable wait_ptid, use it.
16055 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16056
01b17894
PA
160572012-01-23 Pedro Alves <palves@redhat.com>
16058
16059 * server.c (main): Avoid yet another case of infinite loop while
16060 detaching/killing after a longjmp.
16061
e825046f
JK
160622012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16063
16064 Code cleanup.
16065 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16066
b9e7b9c3
UW
160672012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16068
16069 * hostio.c (handle_readlink): New function.
16070 (handle_vFile): Call it to handle "vFile:readlink" packets.
16071
901f9912
UW
160722012-01-20 Pedro Alves <palves@redhat.com>
16073 Ulrich Weigand <ulrich.weigand@linaro.org>
16074
16075 * server.c (handle_v_requests): Only support vAttach and vRun to
16076 start multiple processes when in extended protocol mode.
16077
fc1ab1a0
PA
160782012-01-17 Pedro Alves <palves@redhat.com>
16079
16080 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16081 memalign plus mprotect to allocate the scratch buffer.
16082
7d5d4e98
PA
160832012-01-13 Pedro Alves <palves@redhat.com>
16084
16085 * server.c (attach_inferior): Clear `cont_thread'.
16086
f128d5e9
PA
160872012-01-13 Pedro Alves <palves@redhat.com>
16088
16089 * server.c (main): Avoid infinite loop while detaching/killing
16090 after a longjmp.
16091
06db92f0
DE
160922012-01-09 Doug Evans <dje@google.com>
16093
16094 * server.c (start_inferior): Set last_ptid in --wrapper case.
16095
32d92999
YQ
160962012-01-06 Yao Qi <yao@codesourcery.com>
16097
16098 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16099 defined.
16100 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16101
5e0a92a9
YQ
161022012-01-04 Yao Qi <yao@codesourcery.com>
16103
16104 * tracepoint.c (cmd_qtdp): Print debug message
16105 for static tracepoint.
16106
ae639e8c
YQ
161072012-01-04 Yao Qi <yao@codesourcery.com>
16108
16109 * tracepoint.c (trace_vdebug): Differentiate debug message
16110 between gdbserver and IPA.
16111
f72429c5
YQ
161122012-01-03 Yao Qi <yao@codesourcery.com>
16113
16114 * tracepoint.c (tracepoint_was_hit): Don't collect for
16115 static tracepoint.
16116
12c3e59c
JB
161172012-01-02 Joel Brobecker <brobecker@adacore.com>
16118
16119 * terminal.h: Reformat copyright header.
16120
67827812
JB
161212012-01-02 Joel Brobecker <brobecker@adacore.com>
16122
16123 * server.c (gdbserver_version): Update copyright year.
16124 * gdbreplay.c (gdbreplay_version): Likewise.
16125
3e52c33d
JK
161262011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16127
16128 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16129
16130 Revert:
16131 2011-12-18 Hui Zhu <teawater@gmail.com>
16132 * linux-low.c (linux_create_inferior): Save return value to ret.
16133
66f1260e
HZ
161342011-12-18 Hui Zhu <teawater@gmail.com>
16135
16136 * linux-low.c (linux_create_inferior): Save return value to ret.
16137
e77616d7
DE
161382011-12-16 Doug Evans <dje@google.com>
16139
e7b06c57
DE
16140 * linux-low.c (linux_create_inferior): If stdio connection,
16141 redirect stdin from /dev/null, stdout to stderr.
16142 * remote-utils.c (remote_is_stdio): New static global.
16143 (remote_connection_is_stdio): New function.
16144 (remote_prepare): Handle stdio connection.
16145 (remote_open): Ditto.
16146 (remote_close): Don't close stdin for stdio connections.
16147 (read_prim,write_prim): New functions. Replace all calls to
16148 read/write to these.
16149 * server.c (main): Watch for "-" argument. Move call to
16150 remote_prepare before start_inferior.
16151 * server.h (STDIO_CONNECTION_NAME): New macro.
16152 (remote_connection_is_stdio): Declare.
16153
e77616d7
DE
16154 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16155 in debugging output.
16156
82067193
YQ
161572011-12-15 Yao Qi <yao@codesourcery.com>
16158
16159 * tracepoint.c: Include sys/syscall.h.
16160 (gdb_ust_thread): Remove preprocessor conditional.
16161
82bfbe7e
PA
161622011-12-14 Pedro Alves <pedro@codesourcery.com>
16163
16164 * linux-low.c (linux_detach_one_lwp): Call
16165 the_low_target.prepare_to_resume before detaching.
16166
712c6575
YQ
161672011-12-14 Yao Qi <yao@codesourcery.com>
16168
16169 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16170 of write.
16171
d54d1edf
YQ
161722011-12-14 Yao Qi <yao@codesourcery.com>
16173
16174 * i386-low.c (i386_low_stopped_data_address): Initialize local
16175 variable `control'.
16176
6210a125
PA
161772011-12-13 Pedro Alves <pedro@codesourcery.com>
16178
16179 PR remote/13492
16180
16181 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16182 DR_CONTROL unless necessary. Extend comments.
16183 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16184 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16185
2ece8244
YQ
161862011-12-13 Yao Qi <yao@codesourcery.com>
16187
16188 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16189 macros.
16190 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16191
784867a5
JK
161922011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16193
16194 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16195 Print new debug message for such case.
16196
6bf36717
JK
161972011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16198
16199 Fix overlapping memcpy.
16200 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16201 the read_inferior_memory transfer.
16202 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16203 write_inferior_memory transfer.
16204 (set_fast_tracepoint_jump): New variable buf. Use it for the
16205 read_inferior_memory and write_inferior_memory transfers.
16206 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16207 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16208 Use it for the write_inferior_memory transfer.
16209 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16210 buffers.
16211
50275556
MR
162122011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16213
16214 * linux-low.c (fetch_register, store_register): Make code
16215 consistent, fix formatting.
16216
7325beb4
MR
162172011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16218
16219 * linux-low.c (usr_store_inferior_registers): Factor out code
16220 to handle individual registers into...
16221 (store_register): ... this new function.
16222
c642a434
UW
162232011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16224
16225 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16226 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16227 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16228 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16229 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16230 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16231 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16232 (srv_xmlfiles): Add new XML files.
16233
16234 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16235 and <sys/uio.h>.
16236 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16237 (init_registers_s390_linux32v1): Add prototype.
16238 (init_registers_s390_linux32v2): Likewise.
16239 (init_registers_s390_linux64v1): Likewise.
16240 (init_registers_s390_linux64v2): Likewise.
16241 (init_registers_s390x_linux64v1): Likewise.
16242 (init_registers_s390x_linux64v2): Likewise.
16243 (s390_num_regs): Increment to 52.
16244 (s390_regmap): Add orig_r2 register.
16245 (s390_num_regs_3264): Increment to 68.
16246 (s390_regmap_3264): Add orig_r2 register.
16247 (s390_collect_ptrace_register): Handle orig_r2 register.
16248 (s390_supply_ptrace_register): Likewise.
16249 (s390_fill_last_break): New function.
16250 (s390_store_last_break): Likewise.
16251 (s390_fill_system_call): New function.
16252 (s390_store_system_call): Likewise.
16253 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16254 register sets.
16255 (s390_check_regset): New function.
16256 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16257 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16258 Update target_regsets for available register sets.
16259
2268b414
JK
162602011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16261 Jan Kratochvil <jan.kratochvil@redhat.com>
16262
16263 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16264 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16265 New.
16266 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16267 * linux-low.h (struct process_info_private): New member r_debug.
16268 * server.c (handle_qxfer_libraries): Call
16269 the_target->qxfer_libraries_svr4.
16270 (handle_qxfer_libraries_svr4): New function.
16271 (qxfer_packets): New entry "libraries-svr4".
16272 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16273 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16274 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16275 PACKET_qXfer_libraries_svr4.
16276
d6db1fab
UW
162772011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16278
16279 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16280 PSW address/mask between 8-byte and 16-byte formats.
16281 (s390_supply_ptrace_register): Likewise.
16282 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16283 basic addressing mode bit.
16284
242f5f1c
SS
162852011-11-24 Stan Shebs <stan@codesourcery.com>
16286
16287 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16288
f196051f
SS
162892011-11-17 Stan Shebs <stan@codesourcery.com>
16290
16291 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16292 (tracing_start_time): New global.
16293 (tracing_stop_time): New global.
16294 (tracing_user_name): New global.
16295 (tracing_notes): New global.
16296 (tracing_stop_note): New global.
16297 (cmd_qtstart): Set traceframe_usage, start_time.
16298 (stop_tracing): Set stop_time.
16299 (cmd_qtstatus): Report additional status.
16300 (cmd_qtp): New function.
16301 (handle_tracepoint_query): Call it.
16302 (cmd_qtnotes): New function.
16303 (handle_tracepoint_general_set): Call it.
16304 (get_timestamp): Rename from tsv_get_timestamp.
16305
405f8e94
SS
163062011-11-14 Stan Shebs <stan@codesourcery.com>
16307 Kwok Cheung Yeung <kcy@codesourcery.com>
16308
16309 * linux-x86-low.c (small_jump_insn): New.
16310 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16311 trampoline and error message, build a trampoline and issue a small
16312 jump instruction to it.
16313 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16314 trampoline and error message.
16315 (x86_get_min_fast_tracepoint_insn_len): New.
16316 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16317 * linux-low.h (struct linux_target_ops): Add arguments to
16318 install_fast_tracepoint_jump_pad operation, add new operation.
16319 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16320 arguments.
16321 (linux_get_min_fast_tracepoint_insn_len): New function.
16322 (linux_target_op): Add new operation.
16323 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16324 (gdb_trampoline_buffer_end): Ditto.
16325 (gdb_trampoline_buffer_error): Ditto.
16326 (struct ipa_sym_addresses): Add fields for new IPA variables.
16327 (symbol_list): Add entries for new IPA variables.
16328 (struct tracepoint): Add fields to hold the address range of the
16329 trampoline used by the tracepoint.
16330 (trampoline_buffer_head): New static variable.
16331 (trampoline_buffer_tail): Ditto.
16332 (claim_trampoline_space): New function.
16333 (have_fast_tracepoint_trampoline_buffer): New function.
16334 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16335 structure.
16336 (install_fast_tracepoint): Ditto, also add error buffer argument.
16337 (cmd_qtminftpilen): New function.
16338 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16339 (fast_tracepoint_from_trampoline_address): New function.
16340 (fast_tracepoint_collecting): Handle trampoline as part of jump
16341 pad space.
16342 (set_trampoline_buffer_space): New function.
16343 (initialize_tracepoint): Initialize new IPA variables.
16344 * target.h (struct target_ops): Add arguments to
16345 install_fast_tracepoint_jump_pad operation, add new
16346 get_min_fast_tracepoint_insn_len operation.
16347 (target_get_min_fast_tracepoint_insn_len): New.
16348 (install_fast_tracepoint_jump_pad): Add arguments.
16349 * server.h (IPA_BUFSIZ): Define.
16350 * linux-i386-ipa.c: Include extra header files.
16351 (initialize_fast_tracepoint_trampoline_buffer): New function.
16352 (initialize_low_tracepoint): Call it.
16353 * server.h (set_trampoline_buffer_space): Declare.
16354 (claim_trampoline_space): Ditto.
16355 (have_fast_tracepoint_trampoline_buffer): Ditto.
16356
1e4d1764
YQ
163572011-11-14 Yao Qi <yao@codesourcery.com>
16358
16359 * server.c (handle_query): Handle InstallInTrace for qSupported.
16360 * tracepoint.c (add_tracepoint): Sort list.
16361 (install_tracepoint, download_tracepoint): New.
16362 (cmd_qtdp): Call them to install and download tracepoints.
16363 (sort_tracepoints): Removed.
16364 (cmd_qtstart): Update.
16365
5c73ff4e
YQ
163662011-11-14 Yao Qi <yao@codesourcery.com>
16367
16368 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16369 * mem-break.h: Declare.
16370 * tracepoint.c (cmd_qtstart): Move some code to ...
16371 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16372 New.
16373 (download_tracepoints): Move some code to ...
16374 (download_tracepoint_1): ... here. New.
16375
86a30030
YQ
163762011-11-08 Yao Qi <yao@codesourcery.com>
16377
16378 * remote-utils.c (relocate_instruction): A comment fix.
16379
8d26e50c
JB
163802011-11-07 Joel Brobecker <brobecker@adacore.com>
16381
16382 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16383 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16384 dr_status_mirror and dr_control_mirror from debug_reg_state.
16385 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16386 (i386_initial_stuff): Remove use of deleted globals.
16387 (i386_get_thread_context, i386_set_thread_context,
16388 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16389 from debug_reg_state.
16390
a59306a3
YQ
163912011-11-05 Yao Qi <yao@codesourcery.com>
16392
16393 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16394 address as TPOINT's.
16395
3065dfb6
SS
163962011-11-02 Stan Shebs <stan@codesourcery.com>
16397
16398 * tracepoint.c (agent_mem_read_string): New function.
16399 (eval_agent_expr): Call it for tracenz.
16400 * server.c (handle_query): Report support for tracenz.
16401
fd0d8c7c
YQ
164022011-11-02 Yao Qi <yao@codesourcery.com>
16403
16404 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16405
609086b1
YQ
164062011-11-02 Yao Qi <yao@codesourcery.com>
16407
16408 * target.h: Fix a typo in comment.
16409
b9fd1791
PA
164102011-10-31 Pedro Alves <pedro@codesourcery.com>
16411
16412 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16413 clobber the breakpoints' shadows with fast tracepoint jumps.
16414 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16415 * target.c (write_inferior_memory): Also pass MYADDR down to
16416 check_mem_write.
16417
03583c20
UW
164182011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16419
16420 * configure.ac: Check support for personality routine.
16421 * configure: Regenerate.
16422 * config.in: Likewise.
16423 * linux-low.c: Include <sys/personality.h>.
16424 Define ADDR_NO_RANDOMIZE if necessary.
16425 (linux_create_inferior): Disable address space randomization when
16426 forking inferior, if requested.
16427 (linux_supports_disable_randomization): New function.
16428 (linux_target_ops): Install it.
16429 * server.h (disable_randomization): Declare.
16430 * server.c (disable_randomization): New global variable.
16431 (handle_general_set): Handle QDisableRandomization.
16432 (handle_query): Likewise for qSupported.
16433 (main): Support --disable-randomization and --no-disable-randomization
16434 command line arguments.
16435 * target.h (struct target_ops): Add supports_disable_randomization.
16436 (target_supports_disable_randomization): New macro.
16437
723b724b
MF
164382011-09-29 Mike Frysinger <vapier@gentoo.org>
16439
16440 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16441 ifdef check.
16442 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16443 [!PT_GETDSBT] (target_loadmap): New definition.
16444 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16445 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16446 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16447 and PT_GETDSBT to LINUX_LOADMAP.
16448 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16449 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16450
55329a5c 164512011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16452
16453 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16454 (arm_linux_hwbp_cap): New static variable.
16455 (arm_linux_get_hwbp_cap): Replace by ...
16456 (arm_linux_init_hwbp_cap): ... this new function.
16457 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16458 (arm_linux_get_hw_watchpoint_count): Likewise.
16459 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16460 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16461 (arm_prepare_to_resume): Use perror_with_name instead of error.
16462
55329a5c 164632011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16464
16465 * linux-arm-low.c: Include <signal.h>.
16466 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16467 (struct arm_linux_hwbp_cap): New data type.
16468 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16469 (struct arm_linux_hw_breakpoint): New data type.
16470 (MAX_BPTS, MAX_WPTS): Define.
16471 (struct arch_process_info, struct arch_lwp_info): New data types.
16472 (arm_linux_get_hwbp_cap): New function.
16473 (arm_linux_get_hw_breakpoint_count): Likewise.
16474 (arm_linux_get_hw_watchpoint_count): Likewise.
16475 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16476 (arm_hwbp_control_initialize): Likewise.
16477 (arm_hwbp_control_is_enabled): Likewise.
16478 (arm_hwbp_control_is_initialized): Likewise.
16479 (arm_hwbp_control_disable): Likewise.
16480 (arm_linux_hw_breakpoint_equal): Likewise.
16481 (arm_linux_hw_point_initialize): Likewise.
16482 (struct update_registers_data): New data structure.
16483 (update_registers_callback: New function.
16484 (arm_insert_point): Likewise.
16485 (arm_remove_point): Likewise.
16486 (arm_stopped_by_watchpoint): Likewise.
16487 (arm_stopped_data_address): Likewise.
16488 (arm_new_process): Likewise.
16489 (arm_new_thread): Likewise.
16490 (arm_prepare_to_resume): Likewise.
16491 (the_low_target): Register arm_insert_point, arm_remove_point,
16492 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16493 arm_new_thread, and arm_prepare_to_resume.
16494
6b9801d4
SS
164952011-09-15 Stan Shebs <stan@codesourcery.com>
16496
16497 * server.h (struct emit_ops): Add compare-goto fields.
16498 * tracepoint.c (gdb_agent_op_sizes): New table.
16499 (emit_eq_goto): New function.
16500 (emit_ne_goto): New function.
16501 (emit_lt_goto): New function.
16502 (emit_le_goto): New function.
16503 (emit_gt_goto): New function.
16504 (emit_ge_goto): New function.
16505 (is_goto_target): New function.
16506 (compile_bytecodes): Recognize special cases of compare-goto
16507 combinations and call specialized emitters for them.
16508 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16509 (amd64_emit_ne_goto): New function.
16510 (amd64_emit_lt_goto): New function.
16511 (amd64_emit_le_goto): New function.
16512 (amd64_emit_gt_goto): New function.
16513 (amd64_emit_ge_goto): New function.
16514 (amd64_emit_ops): Add the new functions.
16515 (i386_emit_eq_goto): New function.
16516 (i386_emit_ne_goto): New function.
16517 (i386_emit_lt_goto): New function.
16518 (i386_emit_le_goto): New function.
16519 (i386_emit_gt_goto): New function.
16520 (i386_emit_ge_goto): New function.
16521 (i386_emit_ops): Add the new functions.
16522
bf15cbda
SS
165232011-09-08 Stan Shebs <stan@codesourcery.com>
16524
16525 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16526 (i386_emit_epilogue): Restore %ebx.
16527
943ca1dd
JZ
165282011-08-31 Jie Zhang <jzhang918@gmail.com>
16529
16530 * server.c (step_thread): Remove definition.
16531 (process_serial_event): Don't handle Hs.
16532 * server.h (step_thread): Remove declaration.
16533 * target.c (set_desired_inferior): Remove use of step_thread.
16534
e3deef73
LM
165352011-08-24 Luis Machado <lgustavo@codesourcery.com>
16536
16537 * linux-low.c: Include linux-procfs.h.
16538 (linux_attach_lwp_1): Update comments.
16539 (linux_attach): Scan for existing threads when attaching to a
16540 process that is the tgid.
16541 * Makefile.in: Update dependencies.
16542
13da1c97
LM
165432011-08-24 Luis Machado <lgustavo@codesourcery.com>
16544
16545 * configure.srv: Add linux-procfs.o dependencies.
16546
881127c9
YQ
165472011-08-14 Yao Qi <yao@codesourcery.com>
16548
16549 * target.h (struct target_ops): Fix indent.
16550 * win32-low.c (win32_target_ops): Fix comment.
16551
58dbd541
YQ
165522011-08-14 Andrew Jenner <andrew@codesourcery.com>
16553 Yao Qi <yao@codesourcery.com>
16554
16555 * Makefile.in (clean): Remove tic6x-*.c files.
16556 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16557 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16558 (tic6x-c64xp-linux.c): Likewise.
16559 * configure.srv: Add support for tic6x-*-uclinux.
16560 * linux-tic6x-low.c: New.
16561 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16562
78d85199
YQ
165632011-08-14 Andrew Stubbs <ams@codesourcery.com>
16564 Yao Qi <yao@codesourcery.com>
16565
16566 * target.h (struct target_ops): Add read_loadmap.
16567 * linux-low.c (struct target_loadseg): New type.
16568 (struct target_loadmap): New type.
16569 (linux_read_loadmap): New function.
16570 (linux_target_ops): Add linux_read_loadmap.
16571 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16572 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16573 to NULL.
78d85199 16574
a959a88d
EZ
165752011-08-05 Eli Zaretskii <eliz@gnu.org>
16576
16577 * win32-low.c: Include <stdint.h>.
16578
1ced966e
PA
165792011-07-22 Pedro Alves <pedro@codesourcery.com>
16580
16581 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16582 to the inferior here.
16583 (i386_remove_aligned_watchpoint): Ditto.
16584 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16585 fit part of the watchpoint in the debug registers.
16586 (i386_update_inferior_debug_regs): New.
16587 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16588 registers, and only update the inferior on success.
16589 (i386_low_remove_watchpoint): Ditto.
16590
d26e3629
KY
165912011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16592
16593 * linux-low.c (compare_ints, unique, list_threads, show_process,
16594 linux_core_of_thread): Delete.
16595 (linux_target_ops): Change linux_core_of_thread to
16596 linux_common_core_of_thread.
16597 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16598 * utils.c (malloc_failure): Change type of argument.
16599 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16600 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16601 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16602 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16603 (IPA_OBJS): Add common-utils-ipa.o.
16604 (ptid_h, linux_osdata_h): New macros.
16605 (server_h): Add common/common-utils.h, common/xml-utils.h,
16606 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16607 common/ptid.h.
16608 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16609 ptid.o, buffer.o): New rules.
16610 (linux-low.o): Add common/linux-osdata.h as a dependency.
16611 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16612 * configure.ac: Add AC_HEADER_DIRENT check.
16613 * config.in: Regenerate.
16614 * configure: Regenerate.
16615 * remote-utils.c (xml_escape_text): Delete.
16616 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16617 buffer_xml_printf): Move to common/buffer.c.
16618 * server.c (main): Remove call to initialize_inferiors.
16619 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16620 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16621 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16622 internal_error, gdb_assert, gdb_assert_fail): Delete.
16623 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16624 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16625 common/buffer.h.
16626 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16627 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16628 initialize_inferiors): Delete.
16629
2275a1a7
PA
166302011-07-20 Pedro Alves <pedro@codesourcery.com>
16631
16632 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16633 symbol error.
16634
0a5b1e09
PA
166352011-05-31 Pedro Alves <pedro@codesourcery.com>
16636
16637 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16638 assertion.
16639 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16640
6938fd34
YQ
166412011-05-26 Yao Qi <yao@codesourcery.com>
16642
16643 * Makefile.in (thread-db.o): Track dependence to
16644 common/gdb_thread_db.h.
16645 * thread-db.c: include gdb_thread_db.h from right place.
16646
b481f9e0
TT
166472011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16648
16649 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16650 __FILE__ and __LINE__ to internal_error.
16651
98a5dd13
DE
166522011-05-13 Doug Evans <dje@google.com>
16653
16654 * thread-db.c (try_thread_db_load_from_sdir): New function.
16655 (try_thread_db_load_from_dir): New function.
16656 (thread_db_load_search): Handle $sdir, ignore $pdir.
16657 Remove trying of system directories if search of
16658 libthread-db-search-path fails, that is now done via $sdir.
16659
d248b706
KY
166602011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16661
16662 * server.c (handle_query): Add EnableDisableTracepoints to the list
16663 of supported features.
43aaf8b6 16664 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16665 tracepoints.
43aaf8b6
PA
16666 (cmd_qtenable_disable): New.
16667 (cmd_qtstart): Install tracepoints even if disabled.
16668 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16669 receiving a QTEnable or QTDisable packet.
16670 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16671 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16672 tracepoints.
16673 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16674
84e578fb
DE
166752011-05-10 Doug Evans <dje@google.com>
16676
16677 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16678
71f55dd8
DE
166792011-05-04 Doug Evans <dje@google.com>
16680
16681 * linux-low.c (linux_join): Skip process lookup.
16682 * spu-low.c (spu_join): Ditto.
16683 * server.c (join_inferiors_callback): Delete.
16684 (process_serial_event): For 'D' packet (detach) call join_inferior
16685 directly.
16686
4d393d60
JM
166872011-05-04 Joseph Myers <joseph@codesourcery.com>
16688
16689 * README: Don't mention xscale*-*-linux*.
16690 * configure.srv (xscale*-*-linux*): Don't handle target.
16691
b00ad6ff
NF
166922011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16693
16694 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16695 casting pointers.
16696 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16697 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16698 (i386_emit_void_call_2): Likewise.
16699
af96c192
YQ
167002011-04-26 Yao Qi <yao@codesourcery.com>
16701
43aaf8b6
PA
16702 * linux-low.c: Move common macros to linux-ptrace.h.
16703 Include linux-ptrace.h.
af96c192
YQ
16704 * Makefile.in (linux_ptrace_h): New.
16705 (linux-low.o): Depends on linux-ptrace.h.
16706
03f2bd59
JK
167072011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16708
16709 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16710 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16711 (remote_prepare): New function with most of the TCP code from ...
16712 (remote_open): ... here. Detect PORT here unconditionally. Move also
16713 setting transport_is_reliable.
16714 * server.c (run_once): New variable.
16715 (gdbserver_usage): Document it.
16716 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16717 the first run if RUN_ONCE.
16718 * server.h (run_once, remote_prepare): New declarations.
16719
7a9dd1b2
TT
167202011-04-19 Tom Tromey <tromey@redhat.com>
16721
16722 * win32-low.c (handle_load_dll): Remove duplicate "the".
16723
81239425
PM
167242011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16725
16726 Remove support for old Cygwin 1.5 versions.
16727 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16728 function to avoid warning.
16729 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16730 warning.
16731
9e0627f1
PM
167322011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16733
16734 * gdbserver/server.h (Macro _): Define it if not available.
16735
588eebee
MS
167362011-03-14 Michael Snyder <msnyder@vmware.com>
16737
348af9f7 16738 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16739
43f70d4c
JB
167402011-03-10 Joel Brobecker <brobecker@adacore.com>
16741
16742 * Makefile.in (maintainer-clean realclean distclean): Remove
16743 "make ... subdir_do" command.
16744
348af9f7
MS
167452011-03-10 Michael Snyder <msnyder@vmware.com>
16746
16747 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16748
16749 * server.c (handle_v_run): Free alloced buffer on early return.
16750
e637a4f5
YQ
167512011-03-09 Yao Qi <yao@codesourcery.com>
16752
16753 Revert:
16754 2011-03-04 Yao Qi <yao@codesourcery.com>
16755
16756 * Makefile.in: Remove GNU make feature --directory.
16757
16758 2011-03-05 Yao Qi <yao@codesourcery.com>
16759
16760 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16761 (subdir_do): New make target. Copied from gdb/Makefile.
16762 (maintainer-clean, realclean, distclean, clean): Call corresponding
16763 make targets in common/Makefile.
16764
16765 2011-02-11 Yao Qi <yao@codesourcery.com>
16766
16767 * configure.ac: Call AC_PROG_RANLIB.
16768 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16769 * configure: Regenerate.
16770
e6edda56
JK
167712011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16772
16773 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16774
e5141119
JB
167752011-03-06 Yao Qi <yao@codesourcery.com>
16776
16777 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16778
64794aa4
JB
167792011-03-05 Yao Qi <yao@codesourcery.com>
16780
16781 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16782 (subdir_do): New make target. Copied from gdb/Makefile.
16783 (maintainer-clean, realclean, distclean, clean): Call corresponding
16784 make targets in common/Makefile.
16785
7a762829
YQ
167862011-03-04 Yao Qi <yao@codesourcery.com>
16787
16788 * Makefile.in: Remove GNU make feature --directory.
16789
348af9f7
MS
167902011-03-04 Michael Snyder <msnyder@vmware.com>
16791
16792 * server.c (queue_stop_reply): Call xmalloc not malloc.
16793
167942011-03-02 Michael Snyder <msnyder@vmware.com>
16795
16796 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16797
9f72fee2
MS
167982011-02-28 Michael Snyder <msnyder@vmware.com>
16799
588eebee
MS
16800 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16801 (cmd_qtframe): Ditto.
16802 (cmd_qtbuffer): Ditto.
16803 (cmd_bigqtbuffer): Ditto.
16804
9f72fee2
MS
16805 * utils.c (decimal2str): Initialize 'width' to nine, then
16806 don't mess with it.
16807
8040bd49
UW
168082011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16809
16810 * hostio.c (require_data): Free *data, not data.
16811
7e52cbd0
JK
168122011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16813
16814 * hostio.c (require_data): Use free, not xfree.
16815
9130f83e
MS
168162011-02-27 Michael Snyder <msnyder@vmware.com>
16817
4b812f4e
MS
16818 * server.c (handle_query): Discard unused value.
16819
9130f83e
MS
16820 * hostio.c (require_data): Free malloc memory before returning
16821 error.
16822
69d37113
MS
168232011-02-26 Michael Snyder <msnyder@vmware.com>
16824
16825 * linux-low.c (list_threads): Call closedir for dirent.
16826
35f5825a
MS
168272011-02-27 Michael Snyder <msnyder@vmware.com>
16828
2a589cef
MS
16829 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16830 a case statement falls through.
16831
0adea5f7
MS
16832 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16833
35f5825a
MS
16834 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16835 in comparison.
16836
238f1c74
MS
168372011-02-26 Michael Snyder <msnyder@vmware.com>
16838
16839 * utils.c (decimal2str): Eliminate dead code and dead param.
16840 (pulongest): Drop dead param from call to decimal2str.
16841 (plongest): Ditto.
16842
633ff500
JB
168432011-02-24 Joel Brobecker <brobecker@adacore.com>
16844
16845 Revert the following patch (not approved yet):
16846 2011-02-21 Hui Zhu <teawater@gmail.com>
16847 * tracepoint.c (tp_printf): New function.
16848 (eval_agent_expr): Handle gdb_agent_op_printf.
16849
f9c6ff72
HZ
168502011-02-21 Hui Zhu <teawater@gmail.com>
16851
16852 * tracepoint.c (tp_printf): New function.
16853 (eval_agent_expr): Handle gdb_agent_op_printf.
16854
94d5e490
TT
168552011-02-18 Tom Tromey <tromey@redhat.com>
16856
16857 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16858 (tracepoint.o): Likewise.
16859 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16860 (gdb_agent_op_names): Likewise.
16861
c7f96d2b
TT
168622011-02-18 Tom Tromey <tromey@redhat.com>
16863
16864 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16865 gdb_agent_op_rot>: New constants.
16866 (gdb_agent_op_names): Add pick and roll.
16867 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16868 cases.
16869
0feedb2c
JK
168702011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16871
16872 * aclocal.m4: Regenerated with aclocal-1.11.1.
16873
b3b9301e
PA
168742011-02-14 Pedro Alves <pedro@codesourcery.com>
16875
16876 * server.c (handle_qxfer_traceframe_info): New.
16877 (qxfer_packets): Register "traceframe-info".
16878 (handle_query): Report support for qXfer:traceframe-info:read+.
16879 * tracepoint.c (match_blocktype): New.
16880 (traceframe_find_block_type): Rename to ...
16881 (traceframe_walk_blocks): ... this. Add callback filter argument,
16882 and use it.
16883 (traceframe_find_block_type): New, reimplemented on top of
16884 traceframe_walk_blocks.
16885 (build_traceframe_info_xml): New.
16886 (traceframe_read_info): New.
16887 * server.h (traceframe_read_info): Declare.
16888
4f3e6fb7
YQ
168892011-02-11 Yao Qi <yao@codesourcery.com>
16890
16891 * configure.ac: Call AC_PROG_RANLIB.
16892 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16893 * configure: Regenerate.
16894
764880b7
PA
168952011-02-07 Pedro Alves <pedro@codesourcery.com>
16896
16897 * server.c (gdb_read_memory): Change return semantics to allow
16898 partial transfers.
16899 (handle_search_memory_1): Adjust.
16900 (process_serial_event) <'m' packet>: Handle partial transfers.
16901 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16902
1c79eb8a
PA
169032011-01-28 Pedro Alves <pedro@codesourcery.com>
16904
16905 * regcache.c (init_register_cache): Initialize
16906 regcache->register_status.
16907 (free_register_cache): Release regcache->register_status.
16908 (regcache_cpy): Copy register_status.
16909 (registers_to_string): Print 'x's for unavailable registers.
16910 (supply_register): Mark the register's status valid or
16911 unavailable, depending on whether a buffer was passed in or not.
16912 (supply_register_zeroed): New.
16913 (supply_regblock): Mark the registers' status valid or
16914 unavailable, depending on whether a buffer was passed in or not.
16915 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16916 (struct regcache): New `register_status' field.
16917 (supply_register_zeroed): Declare.
16918 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16919 supply_register_zeroed, rather than passing a NULL buffer to
16920 supply_register.
16921 * tracepoint.c (fetch_traceframe_registers): Update comment.
16922
85724a0e
PA
169232011-01-28 Pedro Alves <pedro@codesourcery.com>
16924
16925 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16926 buffer explicit.
16927
d08aafef
PA
169282011-01-25 Pedro Alves <pedro@codesourcery.com>
16929
16930 * server.h (decode_xfer_write): Change prototype.
16931 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16932 and don't extract the annex here.
16933 * server.c (decode_xfer_read): Remove `annex' parameter,
16934 and don't extract the annex here.
16935 (decode_xfer): New.
16936 (struct qxfer): New.
16937 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16938 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16939 (handle_qxfer_statictrace): New functions, abstracted out from
16940 handle_query, and made to use the struct qxfer interface.
16941 (handle_threads_qxfer_proper): Rename to ...
16942 (handle_qxfer_threads_proper): ... this.
16943 (handle_threads_qxfer): Rename to ...
16944 (handle_qxfer_threads): ... this. Adjust.
16945 (qxfer_packets): New array.
16946 (handle_qxfer): New function.
16947 (handle_query): Use handle_qxfer.
16948
493e2a69
MS
169492011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16950
16951 * gdbreplay.c: Shorten lines of >= 80 columns.
16952 * linux-low.c: Ditto.
16953 * linux-ppc-low.c: Ditto.
16954 * linux-s390-low.c: Ditto.
16955 * linux-sparc-low.c: Ditto.
16956 * linux-x86-low.c: Ditto.
16957 * linux-xtensa-low.c: Ditto.
16958 * mem-break.c: Ditto.
16959 * nto-low.c: Ditto.
16960 * regcache.h: Ditto.
16961 * remote-utils.c: Ditto.
16962 * server.c: Ditto.
16963 * server.h: Ditto.
16964 * thread-db.c: Ditto.
16965 * tracepoint.c: Ditto.
16966 * utils.c: Ditto.
16967 * win32-low.h: Ditto.
16968
44944448
JB
169692011-01-05 Joel Brobecker <brobecker@adacore.com>
16970
16971 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16972 update.
16973
71ce852c
JB
169742011-01-01 Joel Brobecker <brobecker@adacore.com>
16975
16976 * server.c (gdbserver_version): Update copyright year in version
16977 output.
16978 * gdbreplay.c (gdbreplay_version): Ditto.
16979
eb826dc6
MF
169802010-12-29 Jie Zhang <jie.zhang@analog.com>
16981
16982 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16983 * linux-bfin-low.c: New file.
16984 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16985 PT_DATA_ADDR for BFIN targets.
16986 * Makefile.in (SFILES): Add linux-bfin-low.c.
16987 (clean): Remove reg-bfin.c.
16988 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16989 * README: Mention supported Blackfin targets.
16990
39ab222a
MF
169912010-12-23 Mike Frysinger <vapier@gentoo.org>
16992
16993 * .gitignore: New file.
16994
a1f2ce7d
MF
169952010-11-16 Mike Frysinger <vapier@gentoo.org>
16996
16997 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16998
f474844c
JZ
169992010-10-22 Jie Zhang <jie@codesourcery.com>
17000
17001 * Makefile.in: Add FLAGS_TO_PASS variable.
17002 (install): Remove dependency of install-only and recursively
17003 invoke make for install-only.
17004
f1048712
DE
170052010-10-04 Doug Evans <dje@google.com>
17006
17007 * Makefile.in (uninstall): Use $(DESTDIR).
17008
b53a1623
PA
170092010-09-24 Pedro Alves <pedro@codesourcery.com>
17010
e6ee044d
PA
17011 PR gdb/11842
17012
b53a1623
PA
17013 * linux-x86-low.c (compat_siginfo_from_siginfo)
17014 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17015 si_code is < 0. Check for si_code == SI_TIMER before checking for
17016 si_code < 0.
17017
fa1bd1e4
JB
170182010-09-13 Joel Brobecker <brobecker@adacore.com>
17019
17020 * lynx-i386-low.c: New file.
17021 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17022
47fac8f8
JB
170232010-09-13 Joel Brobecker <brobecker@adacore.com>
17024
17025 * lynx-low.c (ptrace_request_to_str): Remove handling for
17026 request values that have been removed in LynxOS 5.x.
17027
1adfc54d
JB
170282010-09-13 Joel Brobecker <brobecker@adacore.com>
17029
17030 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17031 <ptrace.h>
17032
c2a66c29
NS
170332010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17034
17035 * configure.ac: Add --enable-inprocess-agent option.
17036 * configure: Rebuilt.
17037
32fcada3
YQ
170382010-09-06 Yao Qi <yao@codesourcery.com>
17039
17040 * linux-low.c (linux_kill): Remove unused variable.
17041 (linux_stabilize_threads): Likewise.
17042 * server.c (start_inferior): Likewise.
17043 (queue_stop_reply_callback): Likewise.
17044 * tracepoint.c (do_action_at_tracepoint): Likewise.
17045
0cccb683
YQ
170462010-09-06 Yao Qi <yao@codesourcery.com>
17047
17048 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17049 on return.
17050
423ec54c
JK
170512010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17052
17053 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17054
12ac6819
PA
170552010-09-06 Pedro Alves <pedro@codesourcery.com>
17056
17057 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17058 "$(IPA_DEPFILES)".
17059
8ed54b31
JB
170602010-09-01 Joel Brobecker <brobecker@adacore.com>
17061
17062 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17063 gdbserver/lynx-ppc-low.c: New files.
17064 * Makefile.in (lynx_low_h): New variable.
17065 (lynx-low.o, lynx-ppc-low.o): New rules.
17066 * configure.ac: On LynxOS, link with -lnetinet.
17067 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17068 * configure: regenerate.
17069
bb0116a4
JB
170702010-09-01 Joel Brobecker <brobecker@adacore.com>
17071
17072 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17073 * configure.ac: Add check for vasprintf and vsnprintf.
17074 * configure, config.in: Regenerate.
17075 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17076
a778ab81 170772010-09-01 Joel Brobecker <brobecker@adacore.com>
17078
17079 * gdbreplay.c: Move include of alloca.h up, next to include of
17080 malloc.h.
17081 * server.h: Add include of malloc.h.
17082 * mem-break.c: Remove include of malloc.h.
17083 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17084
8b034a19 170852010-09-01 Joel Brobecker <brobecker@adacore.com>
17086
17087 * Makefile.in (memmem.o): Build with -Wno-error.
17088
170892010-09-01 Joel Brobecker <brobecker@adacore.com>
17090
17091 * utils.c (xsnprintf): Make non-static.
17092 * server.h: Add xsnprintf declaration.
17093 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17094 replace calls to snprintf by calls to xsnprintf throughout.
17095
170962010-09-01 Joel Brobecker <brobecker@adacore.com>
17097
17098 * configure.ac: Add configure check for alloca.
17099 * configure, config.in: Regenerate.
17100 * server.h: Include alloca.h if it exists.
17101 * gdbreplay.c: Include alloca.h if it exists.
17102
1a981360
PA
171032010-08-28 Pedro Alves <pedro@codesourcery.com>
17104
17105 * linux-low.c (__SIGRTMIN): Define if not already defined.
17106 (linux_create_inferior): Check for __ANDROID__ rather than
17107 __SIGRTMIN.
17108 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17109 are already deferred.
17110 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17111 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17112 stopped and already has a pending signal to report.
17113 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17114 a pending signal to report or is moving out of a jump pad.
17115 (linux_init_signals): Check for __ANDROID__ rather than
17116 __SIGRTMIN.
17117
b4d51a55
PA
171182010-08-28 Pedro Alves <pedro@codesourcery.com>
17119
17120 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17121 debug_threads check. Avoid a linear search when not doing debug
17122 output.
17123
ec48365d
PA
171242010-08-27 Pedro Alves <pedro@codesourcery.com>
17125
17126 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17127 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17128 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17129 (process_event): Change local fd's type to gdb_fildes_t.
17130 (create_file_handler): Adjust prototype.
17131 (delete_file_handler): Adjust prototype.
17132 (handle_file_event): Adjust prototype. Use pfildes.
17133 (create_file_event): Adjsut prototype.
17134 * remote-utils.c (remote_desc, listen_desc): Change type to
17135 gdb_fildes_t.
17136 * server.h: New gdb_fildes_t typedef.
17137 [USE_WIN32API]: Include winsock2.h.
17138 (delete_file_handler, add_file_handler): Adjust prototypes.
17139 (pfildes): Declare.
17140 * utils.c (pfildes): New.
17141
854d88f0
PA
171422010-08-27 Pedro Alves <pedro@codesourcery.com>
17143
17144 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17145 * configure: Regenerate.
17146
0146f85b
PA
171472010-08-27 Pedro Alves <pedro@codesourcery.com>
17148
17149 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17150 (linux_done_accessing_memory): ... this.
17151 (linux_target_ops): Adjust.
17152 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17153 * nto-low.c (nto_target_ops): Adjust comment.
17154 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17155 * spu-low.c (spu_target_ops): Adjust comment.
17156 * target.h (target_ops): Rename unprepare_to_access_memory field
17157 to done_accessing_memory.
17158 (unprepare_to_access_memory): Rename to ...
17159 (done_accessing_memory): ... this.
17160
90d74c30
PA
171612010-08-26 Pedro Alves <pedro@codesourcery.com>
17162
17163 * linux-low.c (linux_prepare_to_access_memory): New.
17164 (linux_unprepare_to_access_memory): New.
17165 (linux_target_ops): Install them.
17166 * server.c (read_memory): Rename to ...
17167 (gdb_read_memory): ... this. Use
17168 prepare_to_access_memory/prepare_to_access_memory.
17169 (write_memory): Rename to ...
17170 (gdb_write_memory): ... this. Use
17171 prepare_to_access_memory/prepare_to_access_memory.
17172 (handle_search_memory_1): Adjust.
17173 (process_serial_event): Adjust.
17174 * target.h (struct target_ops): New fields
17175 prepare_to_access_memory and unprepare_to_access_memory.
17176 (prepare_to_access_memory, unprepare_to_access_memory): New.
17177 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17178 prepare_to_access_memory/prepare_to_access_memory.
17179 * nto-low.c (nto_target_ops): Adjust.
17180 * spu-low.c (spu_target_ops): Adjust.
17181 * win32-low.c (win32_target_ops): Adjust.
17182
fd467969
PA
171832010-08-26 Pedro Alves <pedro@codesourcery.com>
17184
17185 * Makefile.in (WARN_CFLAGS): Get it from configure.
17186 (WERROR_CFLAGS): New.
17187 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17188 * configure.ac: Introduce --enable-werror, which adds -Werror to
17189 the compiler command line. Enabled by default. Disable with
17190 --disable-werror. Add -Wdeclaration-after-statement
17191 Wpointer-arith and -Wformat-nonliteral to warning flags.
17192 * configure: Regenerate.
17193
331e2f5f
PA
171942010-08-26 Pedro Alves <pedro@codesourcery.com>
17195
17196 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17197
e581f2b4
PA
171982010-08-26 Pedro Alves <pedro@codesourcery.com>
17199
17200 * gdbreplay.c (remote_error): New.
17201 (gdbchar): New.
17202 (expect): Use gdbchar. Check for error reading from GDB.
17203 Clarify sync error output.
17204 (play): Check for errors writing to GDB.
17205 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17206 * remote-utils.c (getpkt): Check for errors writing to the remote
17207 descriptor.
17208
3c11dd79
PA
172092010-08-25 Pedro Alves <pedro@codesourcery.com>
17210
17211 * linux-low.c (linux_wait_1): Move non-debugging code out of
17212 `debug_threads' control.
17213
d20a8ad9
PA
172142010-08-25 Pedro Alves <pedro@codesourcery.com>
17215
17216 * linux-low.c (linux_wait_1): Don't set last_status here.
17217 * server.c (push_event, queue_stop_reply_callback): Assert we're
17218 not pushing a TARGET_WAITKIND_IGNORE event.
17219 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17220 (myresume, handle_target_event): Set the thread's last_resume_kind
17221 and last_status from the target returned status.
17222
964e4306
PA
172232010-08-25 Pedro Alves <pedro@codesourcery.com>
17224
17225 PR threads/10729
17226
17227 * linux-x86-low.c (update_debug_registers_callback): New.
17228 (i386_dr_low_set_addr): Use it.
17229 (i386_dr_low_get_addr): New.
17230 (i386_dr_low_set_control): Use update_debug_registers_callback.
17231 (i386_dr_low_get_control): New.
17232 (i386_dr_low_get_status): Adjust.
17233 * linux-low.c (linux_stop_lwp): New.
17234 * linux-low.h (linux_stop_lwp): Declare.
17235
17236 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17237 argument instead of a i386_debug_reg_state.
17238 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17239 a i386_debug_reg_state.
17240 (i386_insert_aligned_watchpoint): Adjust.
17241 (i386_remove_aligned_watchpoint): Adjust.
17242 (i386_low_stopped_data_address): Read the debug registers from the
17243 inferior instead of from the mirrors.
17244 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17245 (i386_dr_low_get_addr): Declare.
17246 (i386_dr_low_get_control): Declare.
17247 (i386_dr_low_get_status): Change prototype.
17248
17249 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17250 (i386_dr_low_get_addr): New.
17251 (i386_dr_low_get_control): New.
17252 (i386_dr_low_get_status): Adjust prototype. Return
17253 dr_status_mirror.
17254 (i386_initial_stuff): Clear dr_status_mirror and
17255 dr_control_mirror.
17256 (i386_get_thread_context): Adjust.
17257 (i386_set_thread_context): Adjust.
17258 (i386_thread_added): Adjust.
17259
5f21a75b
PA
172602010-08-24 Pedro Alves <pedro@codesourcery.com>
17261
17262 * linux-low.h (linux_thread_area): Delete declaration.
17263
3e4c1235
TS
172642010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17265
17266 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17267 after its termination.
17268
1971b033
PA
172692010-08-09 Pedro Alves <pedro@codesourcery.com>
17270
17271 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17272 (gdb_wants_all_stopped): Delete.
17273 (linux_wait_1): Don't call them.
17274 * server.c (handle_v_cont): Tag all threads as want-stopped.
17275 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17276 stopped as "client-wants-stopped".
17277
310444ac
PA
172782010-07-31 Pedro Alves <pedro@codesourcery.com>
17279
17280 * Makefile.in (signals_h): New.
17281 (server_h): Depend on it.
17282 (server.o): Don't depend on $(signals_def).
17283 (signals.o): Depend on $(signals_def).
17284
a19cae16
JK
172852010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17286
17287 * Makefile.in (signals_def): New.
17288 (server_h): Append include/gdb/signals.h and signals_def.
17289 (server.o): Append signals_def.
17290
30d50328
JK
172912010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17292
17293 * server.c (handle_target_event): Use target_signal_to_host for
17294 resume_info.sig initialization.
17295 * target.h (struct thread_resume) <sig>: New comment.
17296
5c3216e2
OS
172972010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17298
c6f46ca0
OS
17299 * server.c (handle_query): strcpy() the returned string from paddress()
17300 instead of sprintf().
5c3216e2
OS
17301 * utils.c (paddress): Return phex_nz().
17302
6bd31874
JB
173032010-07-07 Joel Brobecker <brobecker@adacore.com>
17304
17305 * server.c (handle_v_cont): Call mourn_inferior if process
17306 just exited.
17307 (myresume): Likewise.
17308
0fb4aa4b
PA
173092010-07-01 Pedro Alves <pedro@codesourcery.com>
17310
17311 Static tracepoints, and integration with UST.
17312
17313 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17314 * mem-break.c (uninsert_all_breakpoints)
17315 (reinsert_all_breakpoints): New.
17316 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17317 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17318 (gdb_agent_ust_loaded, helper_thread_id)
17319 (gdb_agent_helper_thread_id): New macros.
17320 (struct ipa_sym_addresses): Add addr_ust_loaded,
17321 addr_helper_thread_id, addr_cmd_buf.
17322 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17323 (in_process_agent_loaded_ust): New.
17324 (write_e_ust_not_loaded): New.
17325 (maybe_write_ipa_ust_not_loaded): New.
17326 (struct collect_static_trace_data_action): New.
17327 (enum tracepoint_type) <static_tracepoint>: New.
17328 (struct tracepoint) <handle>: Mention static tracepoints.
17329 (struct static_tracepoint_ctx): New.
17330 (CMD_BUF_SIZE): New.
17331 (add_tracepoint_action): Handle static tracepoint actions.
17332 (unprobe_marker_at): New.
17333 (clear_installed_tracepoints): Handle static tracepoints.
17334 (cmd_qtdp): Handle static tracepoints.
17335 (probe_marker_at): New.
17336 (cmd_qtstart): Handle static tracepoints.
17337 (response_tracepoint): Handle static tracepoints.
17338 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17339 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17340 (get_context_regcache): Handle static tracepoints.
17341 (do_action_at_tracepoint): Handle static tracepoint actions.
17342 (traceframe_find_block_type): Handle static trace data blocks.
17343 (traceframe_read_sdata): New.
17344 (download_tracepoints): Download static tracepoint actions.
17345 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17346 (GDB_PROBE_NAME): New.
17347 (ust_ops): New.
17348 (GET_UST_SYM): New.
17349 (USTF): New.
17350 (dlsym_ust): New.
17351 (ust_marker_to_static_tracepoint): New.
17352 (gdb_probe): New.
17353 (collect_ust_data_at_tracepoint): New.
17354 (gdb_ust_probe): New.
17355 (UNIX_PATH_MAX, SOCK_DIR): New.
17356 (gdb_ust_connect_sync_socket): New.
17357 (resume_thread, stop_thread): New.
17358 (run_inferior_command): New.
17359 (init_named_socket): New.
17360 (gdb_ust_socket_init): New.
17361 (cstr_to_hexstr): New.
17362 (next_st): New.
17363 (first_marker, next_marker): New.
17364 (response_ust_marker): New.
17365 (cmd_qtfstm, cmd_qtsstm): New.
17366 (unprobe_marker_at, probe_marker_at): New.
17367 (cmd_qtstmat, gdb_ust_thread): New.
17368 (gdb_ust_init): New.
17369 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17370 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17371 (ST_REGENTRY): New.
17372 (x86_64_st_collect_regmap): New.
17373 (X86_64_NUM_ST_COLLECT_GREGS): New.
17374 (AMD64_RIP_REGNUM): New.
17375 (supply_static_tracepoint_registers): New.
17376 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17377 (ST_REGENTRY): New.
17378 (i386_st_collect_regmap): New.
17379 (i386_NUM_ST_COLLECT_GREGS): New.
17380 (supply_static_tracepoint_registers): New.
17381 * server.c (handle_query): Handle qXfer:statictrace:read.
17382 <qSupported>: Report support for StaticTracepoints, and
17383 qXfer:statictrace:read features.
17384 * server.h (traceframe_read_sdata)
17385 (supply_static_tracepoint_registers): Declare.
17386 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17387 (unpack_varlen_hex): Include in IPA build.
17388 * Makefile.in (ustlibs, ustinc): New.
17389 (IPA_OBJS): Add remote-utils-ipa.o.
17390 ($(IPA_LIB)): Link -ldl and -lpthread.
17391 (UST_CFLAGS): New.
17392 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17393 * config.in, configure: Regenerate.
17394
9e4344e5
PA
173952010-06-20 Ian Lance Taylor <iant@google.com>
17396 Pedro Alves <pedro@codesourcery.com>
17397
17398 * linux-x86-low.c (always_true): Delete.
17399 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17400 trying to fool the compiler with always_true.
17401
c6beb2cb
PA
174022010-06-20 Pedro Alves <pedro@codesourcery.com>
17403
17404 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17405 conditions in gdbserver.
17406
d2ed6730
UW
174072010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17408
17409 * spu-low.c (spu_read_memory): Wrap around local store limit.
17410 (spu_write_memory): Likewise.
17411
4e29fb54
PA
174122010-06-15 Pedro Alves <pedro@codesourcery.com>
17413
17414 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17415 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17416 LONGEST uses.
17417 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17418 uses.
17419 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17420 uses with LONGEST uses.
17421
6a271cae
PA
174222010-06-14 Stan Shebs <stan@codesourcery.com>
17423 Pedro Alves <pedro@codesourcery.com>
17424
17425 Bytecode compiler.
17426
17427 * linux-x86-low.c: Include limits.h.
17428 (add_insns): New.
17429 (always_true): New.
17430 (EMIT_ASM): New.
17431 (EMIT_ASM32): New.
17432 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17433 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17434 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17435 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17436 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17437 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17438 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17439 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17440 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17441 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17442 (amd64_emit_void_call_2): New.
17443 (amd64_emit_ops): New.
17444 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17445 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17446 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17447 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17448 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17449 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17450 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17451 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17452 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17453 (i386_emit_stack_adjust, i386_emit_int_call_1)
17454 (i386_emit_void_call_2): New.
17455 (i386_emit_ops): New.
17456 (x86_emit_ops): New.
17457 (the_low_target): Install x86_emit_ops.
17458 * server.h (struct emit_ops): New.
17459 (get_raw_reg_func_addr): Declare.
17460 (current_insn_ptr, emit_error): Declare.
17461 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17462 (set_trace_state_variable_value): New defines.
17463 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17464 addr_get_trace_state_variable_value and
17465 addr_set_trace_state_variable_value.
17466 (symbol_list): New fields for get_raw_reg,
17467 get_trace_state_variable_value and set_trace_state_variable_value.
17468 (condfn): New typedef.
17469 (struct tracepoint): New field `compiled_cond'.
17470 (do_action_at_tracepoint): Clear compiled_cond.
17471 (get_trace_state_variable_value, set_trace_state_variable_value):
17472 Export in the IPA.
17473 (condition_true_at_tracepoint): If there's a compiled condition,
17474 run that.
17475 (current_insn_ptr, emit_error): New globals.
17476 (struct bytecode_address): New.
17477 (get_raw_reg_func_addr): New.
17478 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17479 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17480 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17481 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17482 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17483 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17484 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17485 (compile_tracepoint_condition, compile_bytecodes): New.
17486 * target.h (emit_ops): Forward declare.
17487 (struct target_ops): New field emit_ops.
17488 (target_emit_ops): New.
17489 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17490 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17491 * linux-low.c (linux_emit_ops): New.
17492 (linux_target_ops): Install it.
17493 * linux-low.h (struct linux_target_ops): New field emit_ops.
17494
92b72907
UW
174952010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17496
17497 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17498 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17499
fa593d66
PA
175002010-06-01 Pedro Alves <pedro@codesourcery.com>
17501 Stan Shebs <stan@codesourcery.com>
17502
17503 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17504 (all): Depend on $(extra_libraries).
17505 (install-only): Install the IPA.
17506 (IPA_OBJS, IPA_LIB): New.
17507 (clean): Remove the IPA lib.
17508 (IPAGENT_CFLAGS): New.
17509 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17510 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17511 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17512 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17513 * configure.ac: Check for atomic builtins support in the compiler.
17514 (IPA_DEPFILES, extra_libraries): Define.
17515 * configure.srv (ipa_obj): Add description.
17516 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17517 (i[34567]86-*-linux*): Set ipa_obj.
17518 (x86_64-*-linux*): Set ipa_obj.
17519 * linux-low.c (stabilizing_threads): New.
17520 (supports_fast_tracepoints): New.
17521 (linux_detach): Stabilize threads before detaching.
17522 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17523 the lwp is either not stabilizing, or is moving out of a jump pad.
17524 (linux_fast_tracepoint_collecting): New.
17525 (maybe_move_out_of_jump_pad): New.
17526 (enqueue_one_deferred_signal): New.
17527 (dequeue_one_deferred_signal): New.
17528 (linux_wait_for_event_1): If moving out of a jump pad, defer
17529 pending signals to later.
17530 (linux_stabilize_threads): New.
17531 (linux_wait_1): Check if threads need moving out of jump pads, and
17532 do it if so.
17533 (stuck_in_jump_pad_callback): New.
17534 (move_out_of_jump_pad_callback): New.
17535 (lwp_running): New.
17536 (linux_resume_one_lwp): Handle moving out of jump pads.
17537 (linux_set_resume_request): Dequeue deferred signals.
17538 (need_step_over_p): Also step over fast tracepoint jumps.
17539 (start_step_over): Also uninsert fast tracepoint jumps.
17540 (finish_step_over): Also reinsert fast tracepoint jumps.
17541 (linux_install_fast_tracepoint_jump): New.
17542 (linux_target_ops): Install linux_stabilize_threads and
17543 linux_install_fast_tracepoint_jump_pad.
17544 * linux-low.h (linux_target_ops) <get_thread_area,
17545 install_fast_tracepoint_jump_pad>: New fields.
17546 (struct lwp_info) <collecting_fast_tracepoint,
17547 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17548 (linux_get_thread_area): Declare.
17549 * linux-x86-low.c (jump_insn): New.
17550 (x86_get_thread_area): New.
17551 (append_insns): New.
17552 (push_opcode): New.
17553 (amd64_install_fast_tracepoint_jump_pad): New.
17554 (i386_install_fast_tracepoint_jump_pad): New.
17555 (x86_install_fast_tracepoint_jump_pad): New.
17556 (the_low_target): Install x86_get_thread_area and
17557 x86_install_fast_tracepoint_jump_pad.
17558 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17559 (struct fast_tracepoint_jump): New.
17560 (fast_tracepoint_jump_insn): New.
17561 (fast_tracepoint_jump_shadow): New.
17562 (find_fast_tracepoint_jump_at): New.
17563 (fast_tracepoint_jump_here): New.
17564 (delete_fast_tracepoint_jump): New.
17565 (set_fast_tracepoint_jump): New.
17566 (uninsert_fast_tracepoint_jumps_at): New.
17567 (reinsert_fast_tracepoint_jumps_at): New.
17568 (set_breakpoint_at): Use write_inferior_memory.
17569 (uninsert_raw_breakpoint): Use write_inferior_memory.
17570 (check_mem_read): Mask out fast tracepoint jumps.
17571 (check_mem_write): Mask out fast tracepoint jumps.
17572 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17573 (set_fast_tracepoint_jump): Declare.
17574 (delete_fast_tracepoint_jump)
17575 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17576 (reinsert_fast_tracepoint_jumps_at): Declare.
17577 * regcache.c: Don't compile many functions when building the
17578 in-process agent library.
17579 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17580 the register buffer in the heap.
17581 (free_register_cache): If the register buffer isn't owned by the
17582 regcache, don't free it.
17583 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17584 pre-existing register caches.
17585 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17586 type.
17587 (convert_ascii_to_int): : Constify `from' parameter type.
17588 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17589 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17590 the needed buffer in-place.
17591 (relocate_instruction): New.
17592 * server.c (handle_query) <qSymbols>: If the target supports
17593 tracepoints, give it a chance of looking up symbols. Report
17594 support for fast tracepoints.
17595 (handle_status): Stabilize threads.
17596 (process_serial_event): Adjust.
17597 * server.h (struct fast_tracepoint_jump): Forward declare.
17598 (struct process_info) <fast_tracepoint_jumps>: New field.
17599 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17600 (decode_X_packet, decode_M_packet): Adjust.
17601 (relocate_instruction): Declare.
17602 (in_process_agent_loaded): Declare.
17603 (tracepoint_look_up_symbols): Declare.
17604 (struct fast_tpoint_collect_status): Declare.
17605 (fast_tracepoint_collecting): Declare.
17606 (force_unlock_trace_buffer): Declare.
17607 (handle_tracepoint_bkpts): Declare.
17608 (initialize_low_tracepoint)
17609 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17610 * target.h (struct target_ops) <stabilize_threads,
17611 install_fast_tracepoint_jump_pad>: New fields.
17612 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17613 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17614 [HAVE_STDINT_H]: Include stdint.h.
17615 (trace_debug_1): Rename to ...
17616 (trace_vdebug): ... this.
17617 (trace_debug): Rename to ...
17618 (trace_debug_1): ... this. Add `level' parameter.
17619 (trace_debug): New.
17620 (ATTR_USED, ATTR_NOINLINE): New.
17621 (IP_AGENT_EXPORT): New.
17622 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17623 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17624 (about_to_request_buffer_space, trace_buffer_is_full)
17625 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17626 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17627 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17628 (traceframe_write_count, traceframes_created)
17629 (trace_state_variables)
17630 New renaming defines.
17631 (struct ipa_sym_addresses): New.
17632 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17633 (symbol_list): New.
17634 (ipa_sym_addrs): New.
17635 (all_tracepoint_symbols_looked_up): New.
17636 (in_process_agent_loaded): New.
17637 (write_e_ipa_not_loaded): New.
17638 (maybe_write_ipa_not_loaded): New.
17639 (tracepoint_look_up_symbols): New.
17640 (debug_threads) [IN_PROCESS_AGENT]: New.
17641 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17642 (UNKNOWN_SIDE_EFFECTS): New.
17643 (stop_tracing): New.
17644 (flush_trace_buffer): New.
17645 (stop_tracing_bkpt): New.
17646 (flush_trace_buffer_bkpt): New.
17647 (read_inferior_integer): New.
17648 (read_inferior_uinteger): New.
17649 (read_inferior_data_pointer): New.
17650 (write_inferior_data_pointer): New.
17651 (write_inferior_integer): New.
17652 (write_inferior_uinteger): New.
17653 (struct collect_static_trace_data_action): Delete.
17654 (enum tracepoint_type): New.
17655 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17656 <actions_str, step_actions, step_actions_str>: Only include in
17657 GDBserver.
fa593d66
PA
17658 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17659 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17660 (tracepoints): Use IP_AGENT_EXPORT.
17661 (last_tracepoint): Don't include in the IPA.
17662 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17663 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17664 (alloced_trace_state_variables): New.
17665 (trace_state_variables): Use IP_AGENT_EXPORT.
17666 (traceframe_t): Delete unused variable.
17667 (circular_trace_buffer): Don't include in the IPA.
17668 (trace_buffer_start): Delete.
17669 (struct trace_buffer_control): New.
17670 (trace_buffer_free): Delete.
17671 (struct ipa_trace_buffer_control): New.
17672 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17673 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17674 New.
17675 (trace_buffer_ctrl): New.
17676 (TRACE_BUFFER_CTRL_CURR): New.
17677 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17678 Reimplement as macros.
17679 (trace_buffer_wrap): Delete.
17680 (traceframe_write_count, traceframe_read_count)
17681 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17682 (struct tracepoint_hit_ctx) <type>: New field.
17683 (struct fast_tracepoint_ctx): New.
17684 (memory_barrier): New.
17685 (cmpxchg): New.
17686 (record_tracepoint_error): Update atomically in the IPA.
17687 (clear_inferior_trace_buffer): New.
17688 (about_to_request_buffer_space): New.
17689 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17690 updating the same buffer.
17691 (add_tracepoint): Default the tracepoint's type to trap
17692 tracepoint, and orig_size to -1.
17693 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17694 internal variables.
17695 (create_trace_state_variable): New parameter `gdb'. Handle it.
17696 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17697 (cmd_qtdp): Handle fast tracepoints.
17698 (cmd_qtdv): Adjust.
17699 (max_jump_pad_size): New.
17700 (gdb_jump_pad_head): New.
17701 (get_jump_space_head): New.
17702 (claim_jump_space): New.
17703 (sort_tracepoints): New.
17704 (MAX_JUMP_SIZE): New.
17705 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17706 IPA.
17707 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17708 support. Upload fast traceframes, and delete internal IPA
17709 breakpoints.
17710 (stop_tracing_handler): New.
17711 (flush_trace_buffer_handler): New.
17712 (cmd_qtstop): Upload fast tracepoints.
17713 (response_tracepoint): Handle fast tracepoints.
17714 (tracepoint_finished_step): Upload fast traceframes. Set the
17715 tracepoint hit context's tracepoint type.
17716 (handle_tracepoint_bkpts): New.
17717 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17718 type. Add comment about fast tracepoints.
17719 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17720 non-existing action_str field.
17721 (get_context_regcache): Handle fast tracepoints.
17722 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17723 to the regcache.
17724 (fast_tracepoint_from_jump_pad_address): New.
17725 (fast_tracepoint_from_ipa_tpoint_address): New.
17726 (collecting_t): New.
17727 (force_unlock_trace_buffer): New.
17728 (fast_tracepoint_collecting): New.
17729 (collecting): New.
17730 (gdb_collect): New.
17731 (write_inferior_data_ptr): New.
17732 (target_tp_heap): New.
17733 (target_malloc): New.
17734 (download_agent_expr): New.
17735 (UALIGN): New.
17736 (download_tracepoints): New.
17737 (download_trace_state_variables): New.
17738 (upload_fast_traceframes): New.
17739 (IPA_FIRST_TRACEFRAME): New.
17740 (IPA_NEXT_TRACEFRAME_1): New.
17741 (IPA_NEXT_TRACEFRAME): New.
17742 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17743 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17744 (gdb_jump_pad_buffer_end): New.
17745 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17746 (initialize_tracepoint): Adjust.
17747 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17748 buffer. Initialize the low module.
17749 * utils.c (PREFIX, TOOLNAME): New.
17750 (malloc_failure): Use PREFIX.
17751 (error): In the IPA, an error causes an exit.
17752 (fatal, warning): Use PREFIX.
17753 (internal_error): Use TOOLNAME.
17754 (NUMCELLS): Increase to 10.
17755 * configure, config.in: Regenerate.
17756
d149dd1d
PA
177572010-06-01 Pedro Alves <pedro@codesourcery.com>
17758
17759 * server.c (handle_query) <qSupported>: Do two passes over the
17760 qSupported string to avoid nesting strtok.
17761
f6528abd
JK
177622010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17763
17764 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17765 (CDEPS): New.
17766 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17767 -Wl,--dynamic-list.
17768 * configure: Regenerate.
17769 * proc-service.list: New.
17770
ca2a87a0
JK
177712010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17772
17773 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17774 New comment.
17775
363a6e9f
OS
177762010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17777
17778 * gdbreplay.c (remote_open): Check error return from socket() call by
17779 its equality to -1 not by it being negative.
17780 * remote-utils.c (remote_open): Likewise.
17781
d23b6cb1
PA
177822010-05-23 Pedro Alves <pedro@codesourcery.com>
17783
17784 * config.h: Regenerate.
17785
28d3cf85
MK
177862010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17787
17788 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17789 doesn't provide PTRACE_GET_THREAD_AREA.
17790
fea36a59
MK
177912010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17792
17793 * linux-m68k-low.c: Include <asm/ptrace.h>
17794 (ps_get_thread_area): Implement.
17795
24b066ba
DE
177962010-05-03 Doug Evans <dje@google.com>
17797
17798 * event-loop.c (struct callback_event): New struct.
17799 (callback_list): New global.
17800 (append_callback_event, delete_callback_event): New functions.
17801 (process_callback): New function.
17802 (start_event_loop): Call it.
17803 * remote-utils.c (NOT_SCHEDULED): Define.
17804 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17805 moved out of readchar.
17806 (readchar): Rewrite. Call reschedule before returning.
17807 (reset_readchar): New function.
17808 (remote_close): Call it.
17809 (process_remaining, reschedule): New functions.
17810 * server.h (callback_handler_func): New typedef.
17811 (append_callback_event, delete_callback_event): Declare.
17812
9836d6ea
PA
178132010-05-03 Pedro Alves <pedro@codesourcery.com>
17814
17815 * proc-service.c (ps_pglobal_lookup): Use
17816 thread_db_look_up_one_symbol.
17817 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17818 parameter. Use it instead of all_symbols_looked_up.
17819 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17820 field.
17821 (all_symbols_looked_up): Don't declare.
17822 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17823 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17824 field.
17825 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17826 Set all_symbols_looked_up here.
17827 (thread_db_look_up_one_symbol): New.
17828 (thread_db_get_tls_address): Adjust.
17829 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17830 thread_db object on the heap, and tentatively set it in the
17831 process structure.
17832 (thread_db_init): Don't set all_symbols_looked_up here.
17833 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17834
7984d532
PA
178352010-05-03 Pedro Alves <pedro@codesourcery.com>
17836
17837 * linux-low.c (linux_kill, linux_detach): Adjust.
17838 (status_pending_p_callback): Remove redundant statement. Check
17839 for !TARGET_WAITIKIND_IGNORE, instead of
17840 TARGET_WAITKIND_STOPPED.
17841 (handle_tracepoints): Make sure LWP is locked. Adjust.
17842 (linux_wait_for_event_1): Adjust.
17843 (linux_cancel_breakpoints): New.
17844 (unsuspend_one_lwp): New.
17845 (unsuspend_all_lwps): New.
17846 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17847 (send_sigstop_callback): Change return type to int, add new
17848 `except' parameter and handle it.
17849 (suspend_and_send_sigstop_callback): New.
17850 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17851 pass them down. If SUSPEND, also increment the lwp's suspend
17852 count.
17853 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17854 (need_step_over_p): Don't consider suspended LWPs.
17855 (start_step_over): Adjust.
17856 (proceed_one_lwp): Change return type to int, add new `except'
17857 parameter and handle it.
17858 (unsuspend_and_proceed_one_lwp): New.
17859 (proceed_all_lwps): Use find_inferior instead of
17860 for_each_inferior.
17861 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17862 also decrement the suspend count of LWPs. Pass `except' down,
17863 instead of hacking its suspend count.
17864 (linux_pause_all): Add `freeze' parameter. Adjust.
17865 (linux_unpause_all): New.
17866 (linux_target_ops): Install linux_unpause_all.
17867 * server.c (handle_status): Adjust.
17868 * target.h (struct target_ops): New fields `unpause_all' and
17869 `cancel_breakpoints'. Add new parameter to `pause_all'.
17870 (pause_all): Add new `freeze' parameter.
17871 (unpause_all): New.
17872 (cancel_breakpoints): New.
17873 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17874 cancel breakpoints.
17875 (cmd_qtstart): Pause threads.
17876 (stop_tracing): Pause threads, and cancel breakpoints.
17877 * win32-low.c (win32_target_ops): Adjust.
17878
e471f25b
PA
178792010-05-03 Pedro Alves <pedro@codesourcery.com>
17880
17881 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17882 the inferior right away from here...
17883 (linux_wait_1): ... to here, and adjust to check the thread's
17884 last_resume_kind instead of the lwp's step or stop_expected flags.
17885
1915ef4f
PA
178862010-05-02 Pedro Alves <pedro@codesourcery.com>
17887
17888 * README: Use consistent `GDB' and `GDBserver' spellings.
17889
f9e39928
PA
178902010-05-02 Pedro Alves <pedro@codesourcery.com>
17891
17892 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17893 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17894 (linux_detach_one_lwp): Assume the lwp is stopped.
17895 (any_thread_of): Delete.
17896 (linux_detach): Stop all lwps here. Don't blindly delete all
17897 breakpoints.
17898 (delete_lwp_callback): New.
17899 (linux_mourn): Delete all lwps of the process that is gone.
17900 (linux_wait_1): Don't delete the last lwp of the process here.
17901 * mem-break.h (mark_breakpoints_out): Declare.
17902 * mem-break.c (mark_breakpoints_out): New.
17903 (free_all_breakpoints): Use it.
17904 * server.c (handle_target_event): If the process is gone, mark
17905 breakpoints out.
17906 * thread-db.c (struct thread_db) <create_bp>: New field.
17907 (thread_db_enable_reporting): Fix prototype. Store a thread event
17908 breakpoint reference in the thread_db struct.
17909 (thread_db_load_search): Clear the thread_db object.
17910 (try_thread_db_load_1): Ditto.
17911 (switch_to_process): New.
17912 (disable_thread_event_reporting): Use it.
17913 (remove_thread_event_breakpoints): New.
17914 (thread_db_detach, thread_db_mourn): Use it.
17915
1e7fc18c
PA
179162010-05-01 Pedro Alves <pedro@codesourcery.com>
17917
17918 * linux-low.c (linux_enable_event_reporting): New.
17919 (linux_wait_for_event_1, handle_extended_wait): Use it.
17920
02fc4de7
PA
179212010-04-30 Pedro Alves <pedro@codesourcery.com>
17922
17923 * linux-low.c (linux_kill_one_lwp, linux_kill)
17924 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17925 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17926 SIGSTOP even if the LWP is stopped.
17927 (send_sigstop_callback): New.
17928 (stop_all_lwps): Use send_sigstop_callback instead.
17929 (linux_resume_one_thread): Adjust.
17930 (proceed_one_lwp): Still proceed an LWP that the client has
17931 requested to stop, if we haven't reported it as stopped yet. Make
17932 sure that LWPs the client want stopped, have a pending SIGSTOP.
17933
bc3b5632
DE
179342010-04-26 Doug Evans <dje@google.com>
17935
ae1ada35
DE
17936 * server.c (handle_general_set): Make static.
17937
bc3b5632
DE
17938 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17939 Print received char after testing for error/eof instead of before.
17940 (input_interrupt): Tweak comment.
17941
65730243
DE
179422010-04-23 Doug Evans <dje@google.com>
17943
17944 * server.c (start_inferior): Print inferior argv if --debug.
17945
a8ae7dc0
AR
179462010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17947
17948 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17949 * nto-x86-low.c: Include server.h
17950
1c07cc19
PM
179512010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17952
17953 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17954 be consistent with other sources of this directory.
17955 (init_registers_amd64): Correct name of source file of this function
17956 in the comment.
17957
e0a61e09
PM
179582010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17959
17960 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17961 64-bit executables.
17962
54709339
PM
179632010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17964
17965 * win32-i386-low.c: Add 64-bit support.
17966 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17967 (init_registers_amd64): Declare.
17968 (mappings): Add 64-bit version of array.
17969 (init_windows_x86): New function.
17970 (the_low_target): Change init_arch field to init_windows_x86.
17971
e8f0053d
PM
179722010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17973
17974 * win32-low.c: Adapt to support also 64-bit architecture.
17975 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17976 (get_image_name): Use SIZE_T type for local variable `done'.
17977 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17978 (toolhelp_get_dll_name): Idem.
17979 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17980 Use uintptr_t typecast to avoid warning.
17981 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17982 (handle_exception): Use phex_nz to avoid warning.
17983 (win32_wait): Remove unused local variable `process'.
17984
c481e77e
PM
179852010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17986
17987 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17988 `amd64-avx.o'.
17989
12ea4b69
PM
179902010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17991
17992 * configure.ac: Use `ws2_32' library for srv_mingw.
17993 * configure: Regenerate.
17994 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17995 * remote-utils.c: Likewise.
17996
f6d1620c
L
179972010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17998
17999 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18000 if __x86_64__ is defined.
18001
8e642873
PM
180022010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18003
18004 * configure: Regenerate.
18005
711e434b
PM
180062010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18007
18008 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18009 * target.h (target_ops): New get_tib_address field.
18010 * win32-low.h (win32_thread_info): Add thread_local_base field.
18011 * win32-low.c (child_add_thread): Add tlb argument.
18012 Set thread_local_base field to TLB.
18013 (get_child_debug_event): Adapt to child_add_thread change.
18014 (win32_get_tib_address): New function.
18015 (win32_target_ops): Set get_tib_address field to
18016 win32_get_tib_address.
18017 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18018
505106cd
PA
180192010-04-12 Pedro Alves <pedro@codesourcery.com>
18020
505106cd
PA
18021 * linux-low.c (linux_mourn): Also remove the process.
18022 * server.c (handle_target_event): Don't remove the process here.
18023 * nto-low.c (nto_mourn): New.
18024 (nto_target_ops): Install it.
18025 * spu-low.c (spu_mourn): New.
18026 (spu_target_ops): Install it.
18027 * win32-low.c (win32_mourn): New.
18028 (win32_target_ops): Install it.
18029
e8470a06
PA
180302010-04-12 Pedro Alves <pedro@codesourcery.com>
18031
18032 * server.h (buffer_xml_printf): Remove redundant `;'.
18033
45ba0d02
PA
180342010-04-12 Pedro Alves <pedro@codesourcery.com>
18035
18036 * regcache.c (set_register_cache): Invalidate regcaches before
18037 changing the register cache layout.
18038 (regcache_invalidate_one): Allow a NULL regcache.
18039 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18040 regcaches before changing the register cache layout or the target
18041 regsets.
18042
59e04013
L
180432010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18044
18045 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18046 variable warning on Linux/x86-64.
18047
8336d594
PA
180482010-04-11 Pedro Alves <pedro@codesourcery.com>
18049
18050 GDBserver disconnected tracing support.
18051
18052 * linux-low.c (linux_remove_process): Delete.
18053 (add_lwp): Don't set last_resume_kind here.
18054 (linux_kill): Use `mourn'.
18055 (linux_detach): Use `thread_db_detach', and `mourn'.
18056 (linux_mourn): New.
18057 (linux_attach_lwp_1): Adjust comment.
18058 (linux_attach): last_resume_kind moved the thread_info; adjust.
18059 (status_pending_p_callback): Adjust.
18060 (linux_wait_for_event_1): Adjust.
18061 (count_events_callback, select_singlestep_lwp_callback)
18062 (select_event_lwp_callback, cancel_breakpoints_callback)
18063 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18064 (proceed_one_lwp): Adjust.
18065 (linux_async): Add debug output.
18066 (linux_thread_stopped): New.
18067 (linux_pause_all): New.
18068 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18069 linux_pause_all.
18070 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18071 (thread_db_free): Delete declaration.
18072 (thread_db_detach, thread_db_mourn): Declare.
18073 * thread-db.c (thread_db_init): Use thread_db_mourn.
18074 (thread_db_free): Delete, split in two.
18075 (disable_thread_event_reporting): New.
18076 (thread_db_detach): New.
18077 (thread_db_mourn): New.
18078
18079 * server.h (struct thread_info) <last_resume_kind>: New field.
18080 <attached>: Add comment.
18081 <gdb_detached>: New field.
18082 (handler_func): Change return type to int.
18083 (handle_serial_event, handle_target_event): Ditto.
18084 (gdb_connected): Declare.
18085 (tracing): Delete.
18086 (disconnected_tracing): Declare.
18087 (stop_tracing): Declare.
18088
18089 * server.c (handle_query) <qSupported>: Report support for
18090 disconnected tracing.
18091 (queue_stop_reply_callback): Account for running threads.
18092 (gdb_wants_thread_stopped): New.
18093 (gdb_wants_all_threads_stopped): New.
18094 (gdb_reattached_process): New.
18095 (handle_status): Clear the `gdb_detached' flag of all processes.
18096 In all-stop, stop all threads.
18097 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18098 (process_serial_event): If the remote connection breaks, or if an
18099 exit was forced with "monitor exit", force an event loop exit.
18100 Handle disconnected tracing on detach.
18101 (handle_serial_event): Adjust.
18102 (handle_target_event): If GDB isn't connected, forward events back
18103 to the inferior, unless the last process exited, in which case,
18104 exit gdbserver. Adjust interface.
18105
18106 * remote-utils.c (remote_open): Don't block in accept. Instead
18107 register an event loop source on the listen socket file
18108 descriptor. Refactor bits into ...
18109 (listen_desc): ... this new global.
18110 (gdb_connected): ... this new function.
18111 (enable_async_notification): ... this new function.
18112 (handle_accept_event): ... this new function.
18113 (remote_close): Clear remote_desc.
18114
18115 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18116
18117 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18118 New fields.
18119 (mourn_inferior): Define.
18120 (target_process_qsupported): Avoid the dangling else problem.
18121 (thread_stopped): Define.
18122 (pause_all): Define.
18123 (target_waitstatus_to_string): Declare.
18124 * target.c (target_waitstatus_to_string): New.
18125
18126 * tracepoint.c (tracing): Make extern.
18127 (disconnected_tracing): New.
18128 (stop_tracing): Make extern. Handle tracing stops due to GDB
18129 disconnecting.
18130 (cmd_qtdisconnected): New.
18131 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18132 (handle_tracepoint_general_set): Handle QTDisconnected.
18133
18134 * event-loop.c (event_handler_func): Change return type to int.
18135 (process_event): Bail out if the event handler wants the event
18136 loop to stop.
18137 (handle_file_event): Ditto.
18138 (start_event_loop): Bail out if the event handler wants the event
18139 loop to stop.
18140
18141 * nto-low.c (nto_target_ops): Adjust.
18142 * spu-low.c (spu_wait): Don't remove the process here.
18143 (spu_target_ops): Adjust.
18144 * win32-low.c (win32_wait): Don't remove the process here.
18145 (win32_target_ops): Adjust.
18146
5d267c4c
PA
181472010-04-11 Pedro Alves <pedro@codesourcery.com>
18148
18149 * regcache.c (realloc_register_cache): Invalidate inferior's
18150 regcache before recreating it.
18151
623ccd72
PA
181522010-04-09 Pedro Alves <pedro@codesourcery.com>
18153
18154 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18155
219f2f23
PA
181562010-04-09 Stan Shebs <stan@codesourcery.com>
18157 Pedro Alves <pedro@codesourcery.com>
18158
18159 * server.h (LONGEST): New.
18160 (struct thread_info) <while_stepping>: New field.
18161 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18162 Declare.
18163 (initialize_tracepoint, handle_tracepoint_general_set)
18164 (handle_tracepoint_query, tracepoint_finished_step)
18165 (tracepoint_was_hit, release_while_stepping_state_list):
18166 (current_traceframe): Declare.
18167 * server.c (handle_general_set): Handle tracepoint packets.
18168 (read_memory): New.
18169 (write_memory): New.
18170 (handle_search_memory_1): Use read_memory.
18171 (handle_query): Report support for conditional tracepoints, trace
18172 state variables, and tracepoint sources. Handle tracepoint
18173 queries.
18174 (main): Initialize the tracepoints module.
18175 (process_serial_event): Handle traceframe reads/writes.
18176
18177 * linux-low.c (handle_tracepoints): New.
18178 (linux_wait_1): Call it.
18179 (linux_resume_one_lwp): Handle while-stepping.
18180 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18181 (linux_target_ops): Install them.
18182 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18183 New field.
18184 * linux-x86-low.c (x86_supports_tracepoints): New.
18185 (the_low_target). Install it.
18186
18187 * mem-break.h (delete_breakpoint): Declare.
18188 * mem-break.c (delete_breakpoint): Make external.
18189
18190 * target.h (struct target_ops): Add `supports_tracepoints',
18191 `read_pc', and `write_pc' fields.
18192 (target_supports_tracepoints): Define.
18193 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18194 (phex_nz): New.
18195
18196 * regcache.h (struct regcache) <registers_owned>: New field.
18197 (init_register_cache, regcache_cpy): Declare.
18198 (regcache_read_pc, regcache_write_pc): Declare.
18199 (register_cache_size): Declare.
18200 (supply_regblock): Declare.
18201 * regcache.c (init_register_cache): New.
18202 (new_register_cache): Use it.
18203 (regcache_cpy): New.
18204 (register_cache_size): New.
18205 (supply_regblock): New.
18206 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18207
219f2f23
PA
18208 * tracepoint.c: New.
18209
18210 * Makefile.in (OBS): Add tracepoint.o.
18211 (tracepoint.o): New rule.
18212
3a13a53b
L
182132010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18214
18215 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18216 (i386-mmx.o): New.
18217 (i386-mmx.c): Likewise.
18218 (i386-mmx-linux.o): Likewise.
18219 (i386-mmx-linux.c): Likewise.
18220
18221 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18222 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18223 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18224 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18225
18226 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18227 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18228 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18229
1570b33e
L
182302010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18231
18232 * Makefile.in (clean): Updated.
18233 (i386-avx.o): New.
18234 (i386-avx.c): Likewise.
18235 (i386-avx-linux.o): Likewise.
18236 (i386-avx-linux.c): Likewise.
18237 (amd64-avx.o): Likewise.
18238 (amd64-avx.c): Likewise.
18239 (amd64-avx-linux.o): Likewise.
18240 (amd64-avx-linux.c): Likewise.
18241
18242 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18243 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18244 (srv_amd64_regobj): Add amd64-avx.o.
18245 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18246 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18247 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18248 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18249 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18250 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18251 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18252
18253 * i387-fp.c: Include "i386-xstate.h".
18254 (i387_xsave): New.
18255 (i387_cache_to_xsave): Likewise.
18256 (i387_xsave_to_cache): Likewise.
18257 (x86_xcr0): Likewise.
18258
18259 * i387-fp.h (i387_cache_to_xsave): Likewise.
18260 (i387_xsave_to_cache): Likewise.
18261 (x86_xcr0): Likewise.
18262
18263 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18264 * linux-crisv32-low.c (target_regsets): Likewise.
18265 * linux-m68k-low.c (target_regsets): Likewise.
18266 * linux-mips-low.c (target_regsets): Likewise.
18267 * linux-ppc-low.c (target_regsets): Likewise.
18268 * linux-s390-low.c (target_regsets): Likewise.
18269 * linux-sh-low.c (target_regsets): Likewise.
18270 * linux-sparc-low.c (target_regsets): Likewise.
18271 * linux-xtensa-low.c (target_regsets): Likewise.
18272
18273 * linux-low.c: Include <sys/uio.h>.
18274 (regsets_fetch_inferior_registers): Support nt_type.
18275 (regsets_store_inferior_registers): Likewise.
18276 (linux_process_qsupported): New.
18277 (linux_target_ops): Add linux_process_qsupported.
18278
18279 * linux-low.h (regset_info): Add nt_type.
18280 (linux_target_ops): Add process_qsupported.
18281
18282 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18283 and <sys/uio.h>.
18284 (init_registers_i386_avx_linux): New.
18285 (init_registers_amd64_avx_linux): Likewise.
18286 (xmltarget_i386_linux_no_xml): Likewise.
18287 (xmltarget_amd64_linux_no_xml): Likewise.
18288 (PTRACE_GETREGSET): Likewise.
18289 (PTRACE_SETREGSET): Likewise.
18290 (x86_fill_xstateregset): Likewise.
18291 (x86_store_xstateregset): Likewise.
18292 (use_xml): Likewise.
18293 (x86_linux_update_xmltarget): Likewise.
18294 (x86_linux_process_qsupported): Likewise.
18295 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18296 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18297 init_registers_i386_linux here. Call
18298 x86_linux_update_xmltarget.
18299 (the_low_target): Add x86_linux_process_qsupported.
18300
18301 * server.c (handle_query): Call target_process_qsupported.
18302
18303 * target.h (target_ops): Add process_qsupported.
18304 (target_process_qsupported): New.
18305
fc7238bb
PA
183062010-04-03 Pedro Alves <pedro@codesourcery.com>
18307
18308 * inferiors.c (add_thread): Set last_status kind to
18309 TARGET_WAITKIND_IGNORE.
18310 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18311 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18312 (linux_wait_1): Move `thread' local definition to block that uses
18313 it. Don't NULL initialize `event_child'.
18314 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18315 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18316 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18317
bdabb078
PA
183182010-04-01 Pedro Alves <pedro@codesourcery.com>
18319
18320 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18321 an extended waitstatus, or by a watchpoint.
18322 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18323 thread was stepping or has been stopped by a watchpoint.
18324
d3bbe7a0
PA
183252010-04-01 Pedro Alves <pedro@codesourcery.com>
18326
18327 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18328 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18329 of another, then delete the previous, and validate all
18330 breakpoints.
18331 (validate_inserted_breakpoint): New.
18332 (delete_disabled_breakpoints): New.
18333 (validate_breakpoints): New.
18334 (check_mem_read): Validate breakpoints before trusting their
18335 shadow. Delete disabled breakpoints.
18336 (check_mem_write): Validate breakpoints before trusting they
18337 should be inserted. Delete disabled breakpoints.
18338 * mem-break.h (validate_breakpoints):
18339 * server.c (handle_query): Validate breakpoints when we see a
18340 qSymbol query.
18341
8b07ae33
PA
183422010-04-01 Pedro Alves <pedro@codesourcery.com>
18343
18344 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18345 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18346 if we could tell there's a GDB breakpoint at stop_pc.
18347 (need_step_over_p): Don't do a step over if we find a GDB
18348 breakpoint at the resume PC.
18349
18350 * mem-break.c (struct raw_breakpoint): New.
18351 (enum bkpt_type): New type `gdb_breakpoint'.
18352 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18353 fields. New field `raw'.
18354 (find_raw_breakpoint_at): New.
18355 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18356 breakpoint instead.
18357 (set_breakpoint_at): Adjust.
18358 (delete_raw_breakpoint): New.
18359 (release_breakpoint): New.
18360 (delete_breakpoint): Rename to...
18361 (delete_breakpoint_1): ... this. Add proc parameter. Use
18362 release_breakpoint. Return ENOENT.
18363 (delete_breakpoint): Reimplement.
18364 (find_breakpoint_at): Delete.
18365 (find_gdb_breakpoint_at): New.
18366 (delete_breakpoint_at): Delete.
18367 (set_gdb_breakpoint_at): New.
18368 (delete_gdb_breakpoint_at): New.
18369 (gdb_breakpoint_here): New.
18370 (set_reinsert_breakpoint): Use release_breakpoint.
18371 (uninsert_breakpoint): Rename to ...
18372 (uninsert_raw_breakpoint): ... this.
18373 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18374 (reinsert_raw_breakpoint): Change parameter type to
18375 raw_breakpoint.
18376 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18377 instead.
18378 (check_breakpoints): Adjust. Use release_breakpoint.
18379 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18380 (breakpoint_inserted_here): Ditto.
18381 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18382 Don't trust the breakpoint's shadow if it is not inserted.
18383 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18384 (delete_all_breakpoints): Adjust.
18385 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18386 use delete_breakpoint_1.
18387
18388 * mem-break.h (breakpoints_supported): Delete declaration.
18389 (set_gdb_breakpoint_at): Declare.
18390 (gdb_breakpoint_here): Declare.
18391 (delete_breakpoint_at): Delete.
18392 (delete_gdb_breakpoint_at): Declare.
18393
18394 * server.h (struct raw_breakpoint): Forward declare.
18395 (struct process_info): New field `raw_breakpoints'.
18396
18397 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18398 breakpoints.
18399
6bf5e0ba
PA
184002010-03-24 Pedro Alves <pedro@codesourcery.com>
18401
18402 * linux-low.c (status_pending_p_callback): Fix comment.
18403 (linux_wait_for_event_1): Move most of the internal breakpoint
18404 handling from here...
18405 (linux_wait_1): ... to here.
18406 (count_events_callback): New.
18407 (select_singlestep_lwp_callback): New.
18408 (select_event_lwp_callback): New.
18409 (cancel_breakpoints_callback): New.
18410 (select_event_lwp): New.
18411 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18412 priority to all LWPs that have had events that should be reported
18413 to the client. Cancel breakpoints when about to reporting the
18414 event to the client, not while stopping lwps. No longer cancel
18415 finished single-steps here.
18416 (cancel_finished_single_step): Delete.
18417 (cancel_finished_single_steps): Delete.
18418
414a389f
PA
184192010-03-24 Pedro Alves <pedro@codesourcery.com>
18420
18421 * mem-break.c (enum bkpt_type): New.
18422 (struct breakpoint): New field `type'.
18423 (set_breakpoint_at): Change return type to struct breakpoint
18424 pointer. Set type to `other_breakpoint' by default.
18425 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18426 in the breakpoint list.
18427 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18428 (reinsert_breakpoint): Rename to ...
18429 (reinsert_raw_breakpoint): ... this.
18430 (reinsert_breakpoints_at): Adjust.
18431 * mem-break.h (struct breakpoint): Declare.
18432 (set_breakpoint_at): Change return type to struct breakpoint
18433 pointer.
18434
2280c721
PA
184352010-03-24 Pedro Alves <pedro@codesourcery.com>
18436
18437 * server.c (handle_query): Assign, not compare.
18438
d50171e4
PA
184392010-03-24 Pedro Alves <pedro@codesourcery.com>
18440
18441 Teach linux gdbserver to step-over-breakpoints.
18442
18443 * linux-low.c (can_hardware_single_step): New.
18444 (supports_breakpoints): New.
18445 (handle_extended_wait): If stopping threads, read the stop pc of
18446 the new cloned LWP.
18447 (get_pc): New.
18448 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18449 low target doesn't support retrieving the PC.
18450 (add_lwp): Set last_resume_kind to resume_continue.
18451 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18452 (linux_attach): Don't clear stop_expected. Set the lwp's
18453 last_resume_kind to resume_stop.
18454 (linux_detach_one_lwp): Don't check for removed breakpoints.
18455 (check_removed_breakpoint): Delete.
18456 (status_pending_p): Rename to ...
18457 (status_pending_p_callback): ... this. Don't check for removed
18458 breakpoints. Don't consider threads that are stopped from GDB's
18459 perspective.
18460 (linux_wait_for_lwp): Always read the stop_pc here.
18461 (cancel_breakpoint): New.
18462 (step_over_bkpt): New global.
18463 (linux_wait_for_event_1): Implement stepping over breakpoints.
18464 (gdb_wants_lwp_stopped): New.
18465 (gdb_wants_all_stopped): New.
18466 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18467 single-step traps here. Store the thread's last reported target
18468 wait status.
18469 (send_sigstop): Don't clear stop_expected. Always set it,
18470 instead.
18471 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18472 (cancel_finished_single_step): New.
18473 (cancel_finished_single_steps): New.
18474 (wait_for_sigstop): Don't cancel finished single-step traps here.
18475 (linux_resume_one_lwp): Don't check for removed breakpoints.
18476 Don't set `step' on non-hardware step archs.
18477 (linux_set_resume_request): Ignore resume_stop requests if already
18478 stopping or stopped. Set the lwp's last_resume_kind.
18479 (resume_status_pending_p): Don't check for removed breakpoints.
18480 (need_step_over_p): New.
18481 (start_step_over): New.
18482 (finish_step_over): New.
18483 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18484 requests. Clear the thread's last reported target waitstatus.
18485 Don't use the `suspended' flag. Don't consider pending breakpoints.
18486 (linux_resume): Start a step-over if necessary.
18487 (proceed_one_lwp): New.
18488 (proceed_all_lwps): New.
18489 (unstop_all_lwps): New.
18490 * linux-low.h (struct lwp_info): Rewrite comment for the
18491 `suspended' flag. Add the `stop_pc' field. Delete the
18492 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18493 Add `'last_resume_kind' and `need_step_over' fields.
18494 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18495 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18496 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18497 (set_raw_breakpoint_at): New.
18498 (set_breakpoint_at): Rewrite to use it.
18499 (reinsert_breakpoint_handler): Delete.
18500 (set_reinsert_breakpoint): New.
18501 (reinsert_breakpoint_by_bp): Delete.
18502 (delete_reinsert_breakpoints): New.
18503 (uninsert_breakpoint): Rewrite.
18504 (uninsert_breakpoints_at): New.
18505 (reinsert_breakpoint): Rewrite.
18506 (reinsert_breakpoints_at): New.
18507 (check_breakpoints): Rewrite.
18508 (breakpoint_here): New.
18509 (breakpoint_inserted_here): New.
18510 (check_mem_read): Adjust.
18511 * mem-break.h (breakpoints_supported, breakpoint_here)
18512 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18513 (reinsert_breakpoint_by_bp): Delete declaration.
18514 (delete_reinsert_breakpoints): Declare.
18515 (reinsert_breakpoint): Delete declaration.
18516 (reinsert_breakpoints_at): Declare.
18517 (uninsert_breakpoint): Delete declaration.
18518 (uninsert_breakpoints_at): Declare.
18519 (check_breakpoints): Adjust prototype.
18520 * server.h: Adjust include order.
18521 (struct thread_info): Declare here. Add a `last_status' field.
18522
30ba68cb
MS
185232010-03-23 Michael Snyder <msnyder@vmware.com>
18524
18525 * server.c (crc32): New function.
18526 (handle_query): Add handling for 'qCRC:' request.
18527
b9a881c2
PA
185282010-03-23 Pedro Alves <pedro@codesourcery.com>
18529
18530 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18531 lwp had been stopped by a watchpoint.
18532
e92d13d5
PA
185332010-03-16 Pedro Alves <pedro@codesourcery.com>
18534
18535 * server.h (internal_error): Declare.
18536 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18537 * utils.c (internal_error): New function.
18538
64daa791
AS
185392010-03-15 Andreas Schwab <schwab@redhat.com>
18540
18541 * configure.srv: Fix typo setting srv_regobj.
18542
f52cd8cd
PA
185432010-03-15 Pedro Alves <pedro@codesourcery.com>
18544
18545 * linux-low.c (fetch_register): Avoid passing a non string literal
18546 format to `error'.
18547 (usr_store_inferior_registers): Ditto.
18548
93ae6fdc
PA
185492010-03-14 Pedro Alves <pedro@codesourcery.com>
18550
18551 * linux-low.c (linux_write_memory): Bail out early if peeking
18552 memory failed.
18553
c3adc08c
PA
185542010-03-14 Pedro Alves <pedro@codesourcery.com>
18555
18556 * linux-low.h (struct lwp_info): New fields
18557 `stopped_by_watchpoint' and `stopped_data_address'.
18558 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18559 here, and cache them in the lwp object.
18560 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18561 directly.
18562 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18563 field.
18564 (linux_stopped_by_watchpoint): Rewrite.
18565 (linux_stopped_data_address): Rewrite.
18566
bce522a2
PA
185672010-03-06 Simo Melenius <simo.melenius@iki.fi>
18568
18569 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18570 switching the current inferior, not before.
18571
90884b2b
L
185722010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18573
18574 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18575 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18576 i386-linux.c and amd64-linux.c.
18577 (reg-i386.o): Removed.
18578 (reg-i386.c): Likewise.
18579 (reg-i386-linux.o): Likewise.
18580 (reg-i386-linux.c): Likewise.
18581 (reg-x86-64.o): Likewise.
18582 (reg-x86-64.c): Likewise.
18583 (reg-x86-64-linux.o): Likewise.
18584 (reg-x86-64-linux.c): Likewise.
18585 (i386.o): New.
18586 (i386.c): Likewise.
18587 (i386-linux.o): Likewise.
18588 (i386-linux.c): Likewise.
18589 (amd64.o): Likewise.
18590 (amd64.c): Likewise.
18591 (amd64-linux.o): Likewise.
18592 (amd64-linux.c): Likewise.
18593
18594 * configure.srv (srv_i386_regobj): New.
18595 (srv_i386_linux_regobj): Likewise.
18596 (srv_amd64_regobj): Likewise.
18597 (srv_amd64_linux_regobj): Likewise.
18598 (srv_i386_32bit_xmlfiles): Likewise.
18599 (srv_i386_64bit_xmlfiles): Likewise.
18600 (srv_i386_xmlfiles): Likewise.
18601 (srv_amd64_xmlfiles): Likewise.
18602 (srv_i386_linux_xmlfiles): Likewise.
18603 (srv_amd64_linux_xmlfiles): Likewise.
18604 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18605 srv_xmlfiles to $srv_i386_xmlfiles.
18606 (i[34567]86-*-mingw32ce*): Likewise.
18607 (i[34567]86-*-mingw*): Likewise.
18608 (i[34567]86-*-nto*): Likewise.
18609 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18610 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18611 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18612 (x86_64-*-linux*): Likewise.
18613
18614 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18615 (init_registers_amd64_linux): New.
18616 (x86_arch_setup): Replace init_registers_x86_64_linux with
18617 init_registers_amd64_linux.
18618
193f13e6
MK
186192010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18620
18621 * configure.ac: Check for libdl. If it is not available link against
18622 static libthread_db.
18623 * configure: Regenerate.
18624
85d721b8
PA
186252010-02-22 Pedro Alves <pedro@codesourcery.com>
18626
18627 PR9605
18628
18629 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18630 handing a read watchpoint.
18631 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18632
6076632b
DE
186332010-02-12 Doug Evans <dje@google.com>
18634
18635 * linux-low.c (linux_supports_tracefork_flag): Document.
18636 (linux_look_up_symbols): Add comment.
18637
3327ccf7
L
186382010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18639
18640 * regcache.c (supply_register): Clear regcache if buf is NULL.
18641
0718675c 186422010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18643 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18644
18645 * inferiors.c (find_inferior): Add function documentation.
18646 (unloaded_dll): Handle the case where the unloaded dll has not
18647 been previously registered in the dll list.
18648
177321bd
DJ
186492010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18650
18651 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18652 (thumb2_breakpoint): New.
18653 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18654
2b009048
DJ
186552010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18656
18657 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18658 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18659 breakpoints.
18660
3be029c7
PA
186612010-01-21 Pedro Alves <pedro@codesourcery.com>
18662
18663 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18664
18f5de3b
JK
186652010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18666
18667 * linux-s390-low.c (s390_collect_ptrace_register)
18668 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18669
3743bb4f
DE
186702010-01-21 Doug Evans <dje@google.com>
18671
14ce3065
DE
18672 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18673 (PTRACE_ARG4_TYPE): New macro.
18674 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18675 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18676 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18677 (usr_store_inferior_registers): Ditto.
18678 (linux_read_memory, linux_write_memory): Ditto.
18679 (linux_test_for_tracefork): Ditto.
18680
3743bb4f
DE
18681 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18682 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18683
8b315be5
PA
186842010-01-21 Pedro Alves <pedro@codesourcery.com>
18685
18686 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18687 target.
18688
85492558
PA
186892010-01-21 Pedro Alves <pedro@codesourcery.com>
18690
18691 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18692 prototype to take a regcache. Adjust.
18693
442ea881
PA
186942010-01-20 Pedro Alves <pedro@codesourcery.com>
18695
18696 * regcache.h (struct thread_info): Forward declare.
18697 (struct regcache): New.
18698 (new_register_cache): Adjust prototype.
18699 (get_thread_regcache): Declare.
18700 (free_register_cache): Adjust prototype.
18701 (registers_to_string, registers_from_string): Ditto.
18702 (supply_register, supply_register_by_name, collect_register)
18703 (collect_register_as_string, collect_register_by_name): Ditto.
18704 * regcache.c (struct inferior_regcache_data): Delete.
18705 (get_regcache): Rename to ...
18706 (get_thread_regcache): ... this. Adjust. Switch inferior before
18707 fetching registers.
18708 (regcache_invalidate_one): Adjust.
18709 (regcache_invalidate): Fix prototype.
18710 (new_register_cache): Return the new register cache.
18711 (free_register_cache): Change prototype.
18712 (realloc_register_cache): Adjust.
18713 (registers_to_string): Change prototype to take a regcache. Adjust.
18714 (registers_from_string): Ditto.
18715 (register_data): Ditto.
18716 (supply_register): Ditto.
18717 (supply_register_by_name): Ditto.
18718 (collect_register): Ditto.
18719 (collect_register_as_string): Ditto.
18720 (collect_register_by_name): Ditto.
18721 * server.c (process_serial_event): Adjust.
18722 * linux-low.h (regset_fill_func, regset_store_func): Change
18723 prototype.
18724 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18725 Change prototype.
18726 * linux-low.c (get_stop_pc): Adjust.
18727 (check_removed_breakpoint): Adjust.
18728 (linux_wait_for_event): Adjust.
18729 (linux_resume_one_lwp): Adjust.
18730 (fetch_register): Add regcache parameter. Adjust.
18731 (usr_store_inferior_registers): Ditto.
18732 (regsets_fetch_inferior_registers): Ditto.
18733 (regsets_store_inferior_registers): Ditto.
18734 (linux_fetch_registers, linux_store_registers): Ditto.
18735 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18736 regcache. Adjust.
43aaf8b6
PA
18737 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18738 Ditto.
442ea881
PA
18739 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18740 prototype to take a regcache.
18741 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18742 * remote-utils.c (convert_ascii_to_int, outreg)
18743 (prepare_resume_reply): Change prototype to take a regcache.
18744 Adjust.
18745 * target.h (struct target_ops) <fetch_registers, store_registers>:
18746 Change prototype to take a regcache.
18747 (fetch_inferior_registers, store_inferior_registers): Change
18748 prototype to take a regcache. Adjust.
18749 * proc-service.c (ps_lgetregs): Adjust.
18750 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18751 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18752 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18753 take a regcache. Adjust.
18754 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18755 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18756 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18757 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18758 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18759 (cris_cannot_fetch_register):
18760 (cris_breakpoint_at): Change prototype to take a regcache.
18761 Adjust.
18762 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18763 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18764 to take a regcache. Adjust.
18765 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18766 Adjust.
18767 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18768 take a regcache. Adjust.
18769 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18770 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18771 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18772 * linux-mips-low.c (mips_get_pc):
18773 (mips_set_pc): Change prototype to take a regcache. Adjust.
18774 (mips_reinsert_addr): Adjust.
18775 (mips_collect_register): Change prototype to take a regcache.
18776 Adjust.
18777 (mips_supply_register):
18778 (mips_collect_register_32bit, mips_supply_register_32bit)
18779 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18780 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18781 * linux-ppc-low.c (ppc_supply_ptrace_register)
18782 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18783 (parse_spufs_run): Adjust.
18784 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18785 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18786 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18787 take a regcache. Adjust.
18788 * linux-s390-low.c (s390_collect_ptrace_register)
18789 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18790 (s390_set_pc): Change prototype to take a regcache. Adjust.
18791 (s390_arch_setup): Adjust.
18792 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18793 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18794 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18795 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18796 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18797 regcache. Adjust.
18798 (sparc_breakpoint_at): Adjust.
18799 * linux-xtensa-low.c (xtensa_fill_gregset):
18800 (xtensa_store_gregset):
18801 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18802 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18803 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18804 prototype to take a regcache. Adjust.
18805 * win32-arm-low.c (arm_fetch_inferior_register)
18806 (arm_store_inferior_register): Change prototype to take a
18807 regcache. Adjust.
18808 * win32-i386-low.c (i386_fetch_inferior_register)
18809 (i386_store_inferior_register): Change prototype to take a
18810 regcache. Adjust.
18811 * win32-low.c (child_fetch_inferior_registers)
18812 (child_store_inferior_registers): Change prototype to take a
18813 regcache. Adjust.
18814 (win32_wait): Adjust.
18815 (win32_fetch_inferior_registers): Change prototype to take a
18816 regcache. Adjust.
18817 (win32_store_inferior_registers): Adjust.
18818 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18819 store_inferior_register>: Change prototype to take a regcache.
18820
60c3d7b0
DE
188212010-01-20 Doug Evans <dje@google.com>
18822
18823 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18824 #ifdef.
18825 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18826 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18827
dc146f7c
VP
188282010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18829
18830 * linux-low.c (linux_core_of_thread): New.
18831 (compare_ints, show_process, list_threads): New.
18832 (linux_qxfer_osdata): Report threads and cores.
18833 (linux_target_op): Register linux_core_of_thread.
18834 * remote-utils.c (prepare_resume_reply): Report the core.
18835 (buffer_xml_printf): Support %d specifier.
18836 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18837 New.
18838 (handle_query): Handle qXfer:threads. Announce availability
18839 thereof.
18840 * target.h (struct target_ops): New field core_of_thread.
18841
7803799a
UW
188422010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18843
18844 * Makefile.in (clean): Remove new generated files.
18845 (reg-s390.o, reg-s390.c): Remove rules.
18846 (reg-s390x.o, reg-s390x.c): Likewise.
18847 (s390-linux32.o, s390-linux32.c): Add rules.
18848 (s390-linux64.o, s390-linux64.c): Likewise.
18849 (s390x-linux64.o, s390x-linux64.c): Likewise.
18850 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18851 * linux-s390-low.c: Include <elf.h>.
18852 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18853 (init_registers_s390): Remove prototype.
18854 (init_registers_s390x): Likewise.
18855 (init_registers_s390_linux32): Add prototype.
18856 (init_registers_s390_linux64): Likewise.
18857 (init_registers_s390x_linux64): Likewise.
18858 (s390_num_regs_3264): New define.
18859 (s390_regmap_3264): New global variable.
18860 (s390_cannot_fetch_register): Remove obsolete check.
18861 (s390_cannot_store_register): Likewise.
18862 (s390_collect_ptrace_register): Handle upper/lower register halves.
18863 (s390_supply_ptrace_register): Likewise.
18864 (s390_fill_gregset): Update to register number changes.
18865 (s390_get_hwcap): New routine.
18866 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18867 Install appropriate regmap and register set.
18868
6e7ffa39
JB
188692010-01-01 Joel Brobecker <brobecker@adacore.com>
18870
18871 * server.c (gdbserver_version): Update copyright year to 2010.
18872 * gdbreplay.c (gdbreplay_version): Likewise.
18873
957f3f49
DE
188742009-12-28 Doug Evans <dje@google.com>
18875
18876 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18877 elf/external.h. Include <elf.h> instead but only if necessary.
18878
ca5c370d
PA
188792009-12-28 Pedro Alves <pedro@codesourcery.com>
18880
18881 * linux-low.c (linux_remove_process): Remove `detaching'
18882 parameter. Don't release/detach from thread_db here.
18883 (linux_kill): Release/detach from thread_db here, ...
18884 (linux_detach): ... and here, before actually detaching.
18885 (linux_wait_1): ... and here, when a process exits.
18886 * thread-db.c (any_thread_of): New.
18887 (thread_db_free): Switch the current inferior to a thread of the
18888 passed in process.
18889
4ee62156
DE
188902009-12-21 Doug Evans <dje@google.com>
18891
d90e6a88
DE
18892 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18893
c5f62d5f
DE
18894 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18895 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18896 warning ifndef __NR_tkill. Move setting of errno there too.
18897 Delete unnecessary resetting of errno after syscall.
18898 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18899
10e86dd7
DE
18900 * configure.ac: Check for dladdr.
18901 * config.in: Regenerate.
18902 * configure: Regenerate.
18903 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18904 (try_thread_db_load): Update.
18905
4ee62156
DE
18906 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18907
00f515da
DE
189082009-12-18 Doug Evans <dje@google.com>
18909
e9464885
DE
18910 * event-loop.c: Include unistd.h if it exists.
18911
07d4f67e
DE
18912 * linux-low.c (my_waitpid): Move definition away from being in
18913 between linux_tracefork_child/linux_test_for_tracefork.
18914
00f515da
DE
18915 * gdb_proc_service.h (psaddr_t): Fix type.
18916 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18917 signature to match glibc.
18918
1de1badb
DE
189192009-12-16 Doug Evans <dje@google.com>
18920
18921 * linux-low.c (linux_read_memory): Fix argument to read.
18922
aeeb81d1
PA
189232009-11-26 Pedro Alves <pedro@codesourcery.com>
18924
18925 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18926 events, don't leave current_inferior pointing at null.
18927
10357975
PA
189282009-11-26 Pedro Alves <pedro@codesourcery.com>
18929
18930 * win32-low.c (LOG): Delete.
18931 (OUTMSG): Output to stderr.
18932 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18933 on compile time LOG macro.
18934 (win32_wait): Fix debug output.
18935
cf6e3471
PA
189362009-11-26 Pedro Alves <pedro@codesourcery.com>
18937
18938 * win32-low.c (win32_add_one_solib): If the dll name is
18939 "ntdll.dll", prepend the system directory to the dll path.
18940
0c85e18e
MK
189412009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18942
18943 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18944
9ac544ce 189452009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18946 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18947
18948 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18949 * configure.ac: Check for __mcoldfire__ and set
18950 gdb_cv_m68k_is_coldfire.
18951 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18952 reg-cf.o and reg-m68k.o.
18953 * configure: Regenerated.
18954
fd7dd3e6
PA
189552009-11-16 Pedro Alves <pedro@codesourcery.com>
18956
18957 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18958 Pass it to thread_db_free.
18959 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18960 proper `detaching' argument to linux_remove_process.
18961 * linux-low.h (thread_db_free): Add `detaching' parameter.
18962 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18963 to thread_db_free.
18964 (thread_db_free): Add `detaching' parameter. Only
18965 call td_ta_clear_event if detaching from process.
18966
75aa492e
MK
189672009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18968
18969 * thread-db.c (thread_db_free): Fix typo.
18970
21e1bee4
PP
189712009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18972
18973 PR gdb/10838
18974 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18975
8838b45e
NS
189762009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18977
18978 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18979 with an i686 compiler.
18980 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18981 needed.
18982 * configure: Rebuilt.
18983
8a35fb51
SL
189842009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18985
18986 PR gdb/10783
18987
18988 * server.c (handle_search_memory_1): Correct read_addr initialization
18989 in loop for searching subsequent chunks.
18990
96f15937
PP
189912009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18992
18993 * configure.ac: New --with-libthread-db option.
18994 * thread-db.c: Allow direct dependence on libthread_db.
18995 (thread_db_free): Adjust.
18996 * config.in: Regenerate.
18997 * configure: Likewise.
889bf7c5 18998
5f7d1694
PP
189992009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19000
19001 PR gdb/10757
19002 * thread-db.c (attach_thread): New function.
19003 (maybe_attach_thread): Return success/failure.
19004 (find_new_threads_callback): Adjust.
889bf7c5
PA
19005 (thread_db_find_new_threads): Loop until no new threads.
19006
88e3b899
PA
190072009-10-13 Pedro Alves <pedro@codesourcery.com>
19008
19009 * proc-service.c (ps_lgetregs): Formatting.
19010
cdbfd419
PP
190112009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19012
19013 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19014 * configure.ac: Adjust.
19015 * linux-low.h (struct process_info_private): Move members to struct
19016 thread_db.
19017 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19018 * linux-low.c (linux_remove_process): Adjust.
19019 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19020 * server.c (handle_query): Move code ...
19021 (handle_monitor_command): ... here. New function.
19022 * target.h (struct target_ops): New member.
19023 * thread-db.c (struct thread_db): New.
19024 (libthread_db_search_path): New variable.
19025 (thread_db_create_event, thread_db_enable_reporting)
19026 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19027 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19028 (try_thread_db_load_1, dladdr_to_soname): New functions.
19029 (try_thread_db_load, thread_db_load_search): New functions.
19030 (thread_db_init): Search for libthread_db.
19031 (thread_db_free): New function.
19032 (thread_db_handle_monitor_command): Likewise.
19033 * config.in: Regenerate.
19034 * configure: Regenerate.
889bf7c5 19035
4168d2d6
UW
190362009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19037
19038 * spu-low.c (spu_kill): Wait for inferior to terminate.
19039 Call clear_inferiors.
19040 (spu_detach): Call clear_inferiors.
19041
81ecdfbb
RW
190422009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19043
19044 * aclocal.m4: Regenerate.
19045 * config.in: Likewise.
19046 * configure: Likewise.
19047
0b9ff2c0
UW
190482009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19049
19050 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19051 (parse_spufs_run): New function.
19052 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19053 (ppc_breakpoint_at): Handle SPU breakpoints.
19054
efcbbd14
UW
190552009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19056
19057 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19058 (SPUFS_MAGIC): Define.
19059 (spu_enumerate_spu_ids): New function.
19060 (linux_qxfer_spu): New function.
19061 (linux_target_ops): Install linux_qxfer_spu.
19062
f4d9bade
UW
190632009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19064
19065 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19066 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19067 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19068 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19069 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19070 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19071 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19072 (init_registers_powerpc_cell32l): Add prototype.
19073 (init_registers_powerpc_cell64l): Likewise.
19074 (ppc_arch_setup): Detect Cell/B.E. architecture.
19075
96e946ca
RW
190762009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19077
19078 * Makefile.in (datarootdir): New variable.
19079
58d6951d
DJ
190802009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19081
19082 * linux-low.c (linux_write_memory): Update debugging output.
19083 * Makefile.in (clean): Add new descriptions.
19084 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19085 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19086 * configure.srv: Add new files for arm*-*-linux*.
19087 * linux-arm-low.c: Add new declarations.
19088 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19089 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19090 (HWCAP_VFPv3D16): New.
19091 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19092 instead of __IWMMXT__.
19093 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19094 (arm_arch_setup): New.
19095 (target_regsets): Remove #ifdef. Add VFP regset.
19096 (the_low_target): Use arm_arch_setup.
19097
12b42a12
DJ
190982009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19099
19100 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19101 the main thread again.
19102
ac8c974e
AR
191032009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19104
19105 Adding Neutrino gdbserver.
19106 * configure: Regenerated.
19107 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19108 * configure.srv (i[34567]86-*-nto*): New target.
19109 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19110 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19111 (nto_comctrl) [__QNX__]: New function.
19112 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19113
4424e0c3 191142009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19115
19116 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19117 srv_tgtobj.
19118
912cf4ba
PA
191192009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19120 Pedro Alves <pedro@codesourcery.com>
19121
19122 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19123 don't support CONTEXT_EXTENDED_REGISTERS.
19124 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19125 (the_low_target): Install them.
19126 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19127 failing with ERROR_PIPE_NOT_CONNECTED.
19128
aa5ca48f
DE
191292009-06-30 Doug Evans <dje@google.com>
19130 Pierre Muller <muller@ics.u-strasbg.fr>
19131
19132 Add h/w watchpoint support to x86-linux, win32-i386.
19133 * Makefile.in (SFILES): Add i386-low.c
19134 (i386_low_h): Define.
19135 (i386-low.o): Add dependencies.
19136 (linux-x86-low.o): Add i386-low.h dependency.
19137 (win32-i386-low.o): Ditto.
19138 * i386-low.c: New file.
19139 * i386-low.h: New file.
19140 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19141 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19142 * linux-low.c (linux_add_process): Initialize arch_private.
19143 (linux_remove_process): Free arch_private.
19144 (add_lwp): Initialize arch_private.
19145 (delete_lwp): Free arch_private.
19146 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19147 provided.
19148 * linux-low.h (process_info_private): New member arch_private.
19149 (lwp_info): New member arch_private.
19150 (linux_target_ops): New members new_process, new_thread,
19151 prepare_to_resume.
19152 (ptid_of): New macro.
19153 * linux-x86-low.c: Include stddef.h, i386-low.h.
19154 (arch_process_info): New struct.
19155 (arch_lwp_info): New struct.
19156 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19157 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19158 (i386_dr_low_get_status): New function.
19159 (x86_insert_point, x86_remove_point): New functions.
19160 (x86_stopped_by_watchpoint): New function.
19161 (x86_stopped_data_address): New function.
19162 (x86_linux_new_process, x86_linux_new_thread): New functions.
19163 (x86_linux_prepare_to_resume): New function.
19164 (the_low_target): Add entries for insert_point, remove_point,
19165 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19166 prepare_to_resume.
19167 * server.c (debug_hw_points): New global.
19168 (monitor_show_help): Document set debug-hw-points.
19169 (handle_query): Process "set debug-hw-points".
19170 * server.h (debug_hw_points): Declare.
19171 (paddress): Declare.
19172 * utils.c (NUMCELLS, CELLSIZE): New macros.
19173 (get_sell, xsnprintf, paddress): New functions.
19174 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19175 remove_point, stopped_by_watchpoint, stopped_data_address.
19176 * win32-i386-low.c: Include i386-low.h.
19177 (debug_reg_state): Replaces dr.
19178 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19179 (i386_dr_low_get_status): New function.
19180 (i386_insert_point, i386_remove_point): New functions.
19181 (i386_stopped_by_watchpoint): New function.
19182 (i386_stopped_data_address): New function.
19183 (i386_initial_stuff): Update.
19184 (get_thread_context,set_thread_context,i386_thread_added): Update.
19185 (the_low_target): Add entries for insert_point,
19186 remove_point, stopped_by_watchpoint, stopped_data_address.
19187 * win32-low.c (win32_insert_watchpoint): New function.
19188 (win32_remove_watchpoint): New function.
19189 (win32_stopped_by_watchpoint): New function.
19190 (win32_stopped_data_address): New function.
19191 (win32_target_ops): Add entries for insert_watchpoint,
19192 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19193 * win32-low.h (win32_target_ops): New members insert_point,
19194 remove_point, stopped_by_watchpoint, stopped_data_address.
19195
d993e290
PA
191962009-06-25 Pedro Alves <pedro@codesourcery.com>
19197
19198 * server.c (process_serial_event): Re-return unsupported, not
19199 error, if the type isn't recognized. Re-allow supporting only
19200 insert or remove packets. Also call require_running for
19201 breakpoints. Add missing break statement to default case. Tidy.
19202 * target.h (struct target_ops): Rename insert_watchpoint to
19203 insert_point, and remove_watchpoint to remove_point.
19204
19205 * linux-low.h (struct linux_target_ops): Likewise.
19206 * linux-low.c (linux_insert_watchpoint): Rename to ...
19207 (linux_insert_point): ... this. Adjust.
19208 (linux_remove_watchpoint): Rename to ...
19209 (linux_remove_point): ... this. Adjust.
19210 (linux_target_ops): Adjust.
19211 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19212 (cris_insert_point): ... this.
19213 (cris_remove_watchpoint): Rename to ...
19214 (cris_remove_point): ... this.
19215 (the_low_target): Adjust.
19216
0f54c268
PM
192172009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19218
19219 * server.c (handle_v_kill): Pass signal_pid to
19220 kill_inferior if multi_process is zero.
19221
c6314022
AR
192222009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19223
19224 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19225 * target.h (target_ops): Comment for *_watchpoint to make it clear
19226 the functions can get types '0' and '1'.
19227
4463ce24
AR
192282009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19229
19230 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19231 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19232 * regcache.c (get_regcache): Likewise.
19233 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19234 * win32-low.c (child_fetch_inferior_registers): Remove check for
19235 regno 0.
19236
cf8fd78b
PA
192372009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19238 Pedro Alves <pedro@codesourcery.com>
19239
19240 * target.h (struct target_ops) <supports_multi_process>: New
19241 callback.
19242 (target_supports_multi_process): New.
19243 * server.c (handle_query): Even if GDB reports support, only
19244 enable multi-process if the target also supports it. Report
19245 multi-process support only if the target backend supports it.
19246 * linux-low.c (linux_supports_multi_process): New function.
19247 (linux_target_ops): Install it as target_supports_multi_process
19248 callback.
19249
47c0c975
DE
192502009-05-24 Doug Evans <dje@google.com>
19251
e09875d4
DE
19252 Global renaming of find_thread_pid to find_thread_ptid.
19253 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19254 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19255 All callers updated.
19256
e27d73f6
DE
19257 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19258 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19259 directly.
19260
47c0c975
DE
19261 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19262 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19263 (linux_resume_one_lwp): Ditto.
19264
2acc282a
DE
192652009-05-23 Doug Evans <dje@google.com>
19266
19267 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19268 from struct inferior_list_entry * to struct lwp_info *.
19269 All callers updated.
19270
9f1036c1
DE
192712009-05-13 Doug Evans <dje@google.com>
19272
19273 * linux-x86-low.c: Don't include assert.h.
19274 (x86_siginfo_fixup): Use fatal, not assert.
19275 (x86_arch_setup): Fix comment.
19276
d0722149
DE
192772009-05-12 Doug Evans <dje@google.com>
19278
19279 Biarch support for i386/amd64 gdbserver.
19280 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19281 Add linux-x86-low.c.
19282 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19283 (linux-x86-low.o): Add.
19284 * linux-x86-64-low.c: Delete.
19285 * linux-i386-low.c: Delete.
19286 * linux-x86-low.c: New file.
19287 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19288 linux-x86-low.o.
19289 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19290 linux-x86-low.o.
19291 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19292 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19293 (linux_child_pid_to_exec_file): New function.
19294 (elf_64_header_p, elf_64_file_p): New functions.
19295 (siginfo_fixup): New function.
19296 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19297 give target a chance to convert layout.
19298 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19299 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19300
fdeb2a12
DE
193012009-05-07 Doug Evans <dje@google.com>
19302
19303 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19304 (regsets_store_inferior_registers): Ditto.
19305
a6dbe5df
PA
193062009-05-06 Pedro Alves <pedro@codesourcery.com>
19307
19308 PR server/10048
19309
19310 * linux-low.c (must_set_ptrace_flags): Delete.
19311 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19312 of the global.
19313 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19314 `lwp->must_set_ptrace_flags' instead.
ba42693b 19315 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19316 (linux_wait_1): ... not here.
19317
5091eb23
DE
193182009-04-30 Doug Evans <dje@google.com>
19319
9f767825
DE
19320 * inferiors.c (started_inferior_callback): New function.
19321 (attached_inferior_callback): New function.
19322 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19323 * server.c (print_started_pid, print_attached_pid): New functions.
19324 (detach_or_kill_for_exit): New function.
19325 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19326 * server.h (have_started_inferiors_p): Declare.
19327 (have_attached_inferiors_p): Declare.
19328
5091eb23
DE
19329 * inferiors.c (remove_process): Fix memory leak, free process.
19330 * linux-low.c (linux_remove_process): New function.
19331 (linux_kill): Call it instead of remove_process.
19332 (linux_detach, linux_wait_1): Ditto.
19333
155c8968
PA
193342009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19335
19336 * configure.srv: Add x86 Windows CE target.
19337
7fe519cb
UW
193382009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19339
19340 * inferiors.c (get_thread_process): Make global.
19341 * server.h (get_thread_process): Add prototype.
19342 * thread-db.c (find_one_thread): Use get_thread_process
19343 instead of current_process.
19344 (thread_db_get_tls_address): Do not crash if called when
19345 thread layer is not yet initialized.
19346
5472f405
UW
193472009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19348
19349 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19350 * spu-low.c (current_tid): Rename to ...
19351 (current_ptid): ... this.
19352 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19353 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19354 ptid_get_lwp (current_ptid) instead of current_tid.
19355 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19356 instead of current_tid. Use find_process_pid to verify pid
19357 argument is valid. Pass proper argument to remove_process.
19358 (spu_thread_alive): Compare current_ptid instead of current_tid.
19359 (spu_resume): Likewise.
19360
55ac2b99
PA
193612009-04-02 Pedro Alves <pedro@codesourcery.com>
19362
19363 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19364 variable.
19365
95954743
PA
193662009-04-01 Pedro Alves <pedro@codesourcery.com>
19367
19368 Implement the multiprocess extensions, and add linux multiprocess
19369 support.
19370
19371 * server.h (ULONGEST): Declare.
19372 (struct ptid, ptid_t): New.
19373 (minus_one_ptid, null_ptid): Declare.
19374 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19375 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19376 (struct inferior_list_entry): Change `id' type from unsigned from
19377 to ptid_t.
19378 (struct sym_cache, struct breakpoint, struct
19379 process_info_private): Forward declare.
19380 (struct process_info): Declare.
19381 (current_process): Declare.
19382 (all_processes): Declare.
19383 (initialize_inferiors): Declare.
19384 (add_thread): Adjust to use ptid_t.
19385 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19386 (add_process, remove_process, find_thread_pid): Declare.
19387 (find_inferior_id): Adjust to use ptid_t.
19388 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19389 (multi_process): Declare.
19390 (push_event): Adjust to use ptid_t.
19391 (read_ptid, write_ptid): Declare.
19392 (prepare_resume_reply): Adjust to use ptid_t.
19393 (clear_symbol_cache): Declare.
19394 * inferiors.c (all_processes): New.
19395 (null_ptid, minus_one_ptid): New.
19396 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19397 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19398 (add_thread): Change unsigned long to ptid. Remove gdb_id
19399 parameter. Adjust.
19400 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19401 (gdb_id_to_thread): Rename to ...
19402 (find_thread_pid): ... this. Change unsigned long to ptid.
19403 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19404 (loaded_dll, pull_pid_from_list): Adjust.
19405 (add_process, remove_process, find_process_pid)
19406 (get_thread_process, current_process, initialize_inferiors): New.
19407 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19408 (struct target_waitstatus) <related_pid>: Ditto.
19409 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19410 return type to int.
19411 (struct target_ops) <join>: Add `pid' argument.
19412 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19413 (struct target_ops) <wait>: Add `ptid' field. Change return type
19414 to ptid.
19415 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19416 (mywait): Add `ptid' argument. Change return type to ptid_t.
19417 (target_pid_to_str): Declare.
19418 * target.c (set_desired_inferior): Adjust to use ptids.
19419 (mywait): Add new `ptid' argument. Adjust.
19420 (target_pid_to_str): New.
19421 * mem-break.h (free_all_breakpoints): Declare.
19422 * mem-break.c (breakpoints): Delelete.
19423 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19424 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19425 to use per-process breakpoint list.
19426 (free_all_breakpoints): New.
19427 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19428 (symbol_cache, all_symbols_looked_up): Delete.
19429 (hexchars): New.
19430 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19431 read_ptid): New.
19432 (prepare_resume_reply): Change ptid argument's type from unsigned
19433 long to ptid_t. Adjust. Implement W;process and X;process.
19434 (free_sym_cache, clear_symbol_cache): New.
19435 (look_up_one_symbol): Adjust to per-process symbol cache. *
19436 * server.c (cont_thread, general_thread, step_thread): Change type
19437 to ptid_t.
19438 (attached): Delete.
19439 (multi_process): New.
19440 (last_ptid): Change type to ptid_t.
19441 (struct vstop_notif) <ptid>: Change type to ptid_t.
19442 (queue_stop_reply, push_event): Change `ptid' argument's type to
19443 ptid_t.
19444 (discard_queued_stop_replies): Add `pid' argument.
19445 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19446 changes. Don't reference the `attached' global.
19447 (attach_inferior): Adjust to mywait interface changes.
19448 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19449 features. Handle and report "multiprocess+". Handle
19450 "qAttached:PID".
19451 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19452 changes.
19453 (handle_v_kill): New.
19454 (handle_v_stopped): Adjust to use target_pid_to_str.
19455 (handle_v_requests): Allow multiple attaches and runs when
19456 multiprocess extensions are in effect. Handle "vKill".
19457 (myresume): Adjust to use ptids.
19458 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19459 (handle_status): Adjust to discard_queued_stop_replies interface
19460 change.
19461 (first_thread_of, kill_inferior_callback)
19462 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19463 (main): Call initialize_inferiors. Adjust to use ptids, killing
19464 and detaching from all inferiors. Handle multiprocess packet
19465 variants.
19466 * linux-low.h: Include gdb_proc_service.h.
19467 (struct process_info_private): New.
19468 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19469 <lwpid_of>: Use ptid_get_lwp.
19470 (get_lwp_thread): Adjust.
19471 (struct lwp_info): Add `dead' member.
19472 (find_lwp_pid): Declare.
19473 * linux-low.c (thread_db_active): Delete.
19474 (new_inferior): Adjust comment.
19475 (inferior_pid): Delete.
19476 (linux_add_process): New.
19477 (handle_extended_wait): Adjust.
19478 (add_lwp): Change unsigned long to ptid.
19479 (linux_create_inferior): Add process to processes table. Adjust
19480 to use ptids. Don't set new_inferior here.
19481 (linux_attach_lwp): Rename to ...
19482 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19483 it. Adjust to use ptids.
19484 (linux_attach_lwp): New.
19485 (linux_attach): Add process to processes table. Don't set
19486 new_inferior here.
19487 (struct counter): New.
19488 (second_thread_of_pid_p, last_thread_of_process_p): New.
19489 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19490 multiple processes.
19491 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19492 processes. Remove process from process table.
19493 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19494 to multiple processes.
19495 (any_thread_of): New.
19496 (linux_detach): Add `pid' argument, and handle it. Remove process
19497 from processes table.
19498 (linux_join): Add `pid' argument. Handle it.
19499 (linux_thread_alive): Change unsighed long argument to ptid_t.
19500 Consider dead lwps as not being alive.
19501 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19502 threads we're not interested in.
19503 (same_lwp, find_lwp_pid): New.
19504 (linux_wait_for_lwp): Change `pid' argument's type from int to
19505 ptid_t. Adjust.
19506 (linux_wait_for_event): Rename to ...
19507 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19508 from int to ptid_t. Adjust.
19509 (linux_wait_for_event): New.
19510 (linux_wait_1): Add `ptid' argument. Change return type to
19511 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19512 that exit from the process table.
19513 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19514 Adjust.
19515 (mark_lwp_dead): New.
19516 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19517 stopping all threads, mark its main lwp as dead.
19518 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19519 ptids.
19520 (fetch_register, usr_store_inferior_registers)
19521 (regsets_fetch_inferior_registers)
19522 (regsets_store_inferior_registers, linux_read_memory)
19523 (linux_write_memory): Inline `inferior_pid'.
19524 (linux_look_up_symbols): Adjust to use per-process
19525 `thread_db_active'.
19526 (linux_request_interrupt): Adjust to use ptids.
19527 (linux_read_auxv): Inline `inferior_pid'.
19528 (initialize_low): Don't reference thread_db_active.
19529 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19530 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19531 (ps_getpid): Return the pid of the current inferior.
19532 * thread-db.c (proc_handle, thread_agent): Delete.
19533 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19534 per-process data.
19535 (find_one_thread): Change argument type to ptid_t. Adjust to
19536 per-process data.
19537 (maybe_attach_thread): Adjust to per-process data and ptids.
19538 (thread_db_find_new_threads): Ditto.
19539 (thread_db_init): Ditto.
19540 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19541 processes table. Adjust to use ptids.
19542 (spu_kill, spu_detach): Adjust interface. Remove process from
19543 processes table.
19544 (spu_join, spu_thread_alive): Adjust interface.
19545 (spu_wait): Adjust interface. Remove process from processes
19546 table. Adjust to use ptids.
19547 * win32-low.c (current_inferior_tid): Delete.
19548 (current_inferior_ptid): New.
19549 (debug_event_ptid): New.
19550 (thread_rec): Take a ptid. Adjust.
19551 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19552 (child_delete_thread): Ditto.
19553 (do_initial_child_stuff): Add `attached' argument. Add process to
19554 processes table.
19555 (child_fetch_inferior_registers, child_store_inferior_registers):
19556 Adjust.
19557 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19558 (win32_attach): Pass 1 to do_initial_child_stuff.
19559 (win32_kill): Adjust interface. Remove process from processes
19560 table.
19561 (win32_detach): Ditto.
19562 (win32_join): Adjust interface.
19563 (win32_thread_alive): Take a ptid.
19564 (win32_resume): Adjust to use ptids.
19565 (get_child_debug_event): Ditto.
19566 (win32_wait): Adjust interface. Remove exiting process from
19567 processes table.
19568
bd99dc85
PA
195692009-04-01 Pedro Alves <pedro@codesourcery.com>
19570
19571 Non-stop mode support.
19572
19573 * server.h (non_stop): Declare.
19574 (gdb_client_data, handler_func): Declare.
19575 (delete_file_handler, add_file_handler, start_event_loop):
19576 Declare.
19577 (handle_serial_event, handle_target_event, push_event)
19578 (putpkt_notif): Declare.
19579 * target.h (enum resume_kind): New.
19580 (struct thread_resume): Replace `step' field by `kind' field.
19581 (TARGET_WNOHANG): Define.
19582 (struct target_ops) <wait>: Add `options' argument.
19583 <supports_non_stop, async, start_non_stop>: New fields.
19584 (target_supports_non_stop, target_async): New.
19585 (start_non_stop): Declare.
19586 (mywait): Add `options' argument.
19587 * target.c (mywait): Add `options' argument. Print child exit
19588 notifications here.
19589 (start_non_stop): New.
19590 * server.c (non_stop, own_buf, mem_buf): New globals.
19591 (struct vstop_notif): New.
19592 (notif_queue): New global.
19593 (queue_stop_reply, push_event, discard_queued_stop_replies)
19594 (send_next_stop_reply): New.
19595 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19596 interface changes.
19597 (attach_inferior): In non-stop mode, don't wait for the target
19598 here.
19599 (handle_general_set): Handle QNonStop.
19600 (handle_query): When handling qC, return the current general
19601 thread, instead of the first thread of the list.
19602 (handle_query): If the backend supports non-stop mode, include
19603 QNonStop+ in the qSupported query response.
19604 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19605 and non-stop mode.
19606 (handle_v_attach, handle_v_run): Handle non-stop mode.
19607 (handle_v_stopped): New.
19608 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19609 (myresume): Adjust to use resume_kind. Handle non-stop.
19610 (queue_stop_reply_callback): New.
19611 (handle_status): Handle non-stop mode.
19612 (main): Clear non_stop flag on reconnection. Use the event-loop.
19613 Refactor serial protocol handling from here ...
19614 (process_serial_event): ... to this new function. When GDB
19615 selects any thread, select one here. In non-stop mode, wait until
19616 GDB acks all pending events before exiting.
19617 (handle_serial_event, handle_target_event): New.
19618 * remote-utils.c (remote_open): Install remote_desc in the event
19619 loop.
19620 (remote_close): Remove remote_desc from the event loop.
19621 (putpkt_binary): Rename to...
19622 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19623 (putpkt_binary): New as wrapper around putpkt_binary_1.
19624 (putpkt_notif): New.
19625 (prepare_resume_reply): In non-stop mode, don't change the
19626 general_thread.
19627 * event-loop.c: New.
19628 * Makefile.in (OBJ): Add event-loop.o.
19629 (event-loop.o): New rule.
19630
19631 * linux-low.h (pid_of): Moved here.
19632 (lwpid_of): New.
19633 (get_lwp_thread): Use lwpid_of.
19634 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19635 * linux-low.c (pid_of): Delete.
19636 (inferior_pid): Use lwpid_of.
19637 (linux_event_pipe): New.
19638 (target_is_async_p): New.
19639 (delete_lwp): New.
19640 (handle_extended_wait): Use lwpid_of.
19641 (add_lwp): Don't set lwpid field.
19642 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19643 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19644 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19645 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19646 first. Adjust to linux_wait_for_event interface changes. Use
19647 lwpid_of.
19648 (linux_detach): Don't delete the main lwp here.
19649 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19650 (status_pending_p): Don't consider explicitly suspended lwps.
19651 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19652 pointer. Add OPTIONS argument. Change return type to int. Use
19653 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19654 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19655 pointer. Add status pointer argument. Return a pid instead of a
19656 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19657 changes. In non-stop mode, don't switch to a random thread.
19658 (linux_wait): Rename to...
19659 (linux_wait_1): ... this. Add target_options argument, and handle
19660 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19661 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19662 clean exit and signal exit code. Don't stop all threads in
19663 non-stop mode. In all-stop mode, only stop all threads when
19664 reporting a stop to GDB. Handle explicit thread stop requests.
19665 (async_file_flush, async_file_mark): New.
19666 (linux_wait): New.
19667 (send_sigstop): Use lwpid_of.
19668 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19669 interface changes. In non-stop mode, don't switch to a random
19670 thread.
19671 (linux_resume_one_lwp): Use lwpid_of.
19672 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19673 (linux_resume_one_thread): ... this. Handle resume_stop. In
19674 non-stop mode, don't look for pending flag in all threads.
19675 (resume_status_pending_p): Don't consider explicitly suspended
19676 threads.
19677 (my_waitpid): Reimplement. Emulate __WALL.
19678 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19679 Use lwpid_of.
19680 (sigchld_handler, linux_supports_non_stop, linux_async)
19681 (linux_start_non_stop): New.
19682 (linux_target_ops): Register linux_supports_non_stop, linux_async
19683 and linux_start_non_stop.
19684 (initialize_low): Install SIGCHLD handler.
19685 * thread-db.c (thread_db_create_event, find_one_thread)
19686 (thread_db_get_tls_address): Use lwpid_of.
19687 * win32-low.c (win32_detach): Adjust to use resume_kind.
19688 (win32_wait): Add `options' argument.
19689 * spu-low.c (spu_resume): Adjust to use resume_kind.
19690 (spu_wait): Add `options' argument.
19691
5b1c542e
PA
196922009-04-01 Pedro Alves <pedro@codesourcery.com>
19693
19694 Decouple target code from remote protocol.
19695
19696 * target.h (enum target_waitkind): New.
19697 (struct target_waitstatus): New.
19698 (struct target_ops) <wait>: Return an unsigned long. Take a
19699 target_waitstatus pointer instead of a char pointer.
19700 (mywait): Likewise.
19701 * target.c (mywait): Change prototype to return an unsigned long.
19702 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19703 * server.h (thread_from_wait, old_thread_from_wait): Delete
19704 declarations.
19705 (prepare_resume_reply): Change prototype to take a
19706 target_waitstatus.
19707 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19708 (last_status, last_ptid): New.
19709 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19710 pid instead of a signal.
19711 (attach_inferior): Remove "status" and "signal" parameters.
19712 Adjust.
19713 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19714 not as an address.
19715 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19716 (handle_v_requests, myresume): Remove "status" and "signal"
19717 parameters. Adjust.
19718 (handle_status): New.
19719 (main): Delete local `status'. Adjust.
19720 * remote-utils.c: Include target.h.
19721 (prepare_resume_reply): Change prototype to take a
19722 target_waitstatus. Adjust.
19723
19724 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19725 interface.
19726 * spu-low.c (spu_wait): Adjust.
19727 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19728 Delete.
19729 (win32_wait): Adjust.
19730
2bd7c093
PA
197312009-04-01 Pedro Alves <pedro@codesourcery.com>
19732
19733 * target.h (struct thread_resume): Delete leave_stopped member.
19734 (struct target_ops): Add a `n' argument to the `resume' callback.
19735 * server.c (start_inferior): Adjust.
19736 (handle_v_cont, myresume): Adjust.
19737 * linux-low.c (check_removed_breakpoint): Adjust to resume
19738 interface change, and to removed leave_stopped field.
19739 (resume_ptr): Delete.
19740 (struct thread_resume_array): New.
19741 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19742 resume interface change.
19743 (linux_continue_one_thread, linux_queue_one_thread)
19744 (resume_status_pending_p): Check if the resume field is NULL
19745 instead of checking the leave_stopped member.
19746 (linux_resume): Adjust to the target resume interface change.
19747 * spu-low.c (spu_resume): Adjust to the target resume interface
19748 change.
19749 * win32-low.c (win32_detach, win32_resume): Ditto.
19750
c35fafde
PA
197512009-04-01 Pedro Alves <pedro@codesourcery.com>
19752
19753 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19754 flag.
19755 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19756 pending.
19757 (linux_continue_one_thread): Only preserve the stepping flag if
19758 there's a pending breakpoint.
19759
0a59d50b
PA
197602009-03-31 Pedro Alves <pedro@codesourcery.com>
19761
19762 * server.c (main): After the inferior having exited, call
19763 remote_close before exiting gdbserver.
19764
f04c6d38
TJB
197652009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19766
19767 Fix size of FPSCR in Power 7 processors.
19768 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19769 (PPC_FEATURE_HAS_DFP): New #define.
19770 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19771 size of the FPSCR.
19772
78e5cee6
PA
197732009-03-23 Pedro Alves <pedro@codesourcery.com>
19774
19775 * server.c (handle_query) Whitespace and formatting.
19776
1b3f6016
PA
197772009-03-22 Pedro Alves <pedro@codesourcery.com>
19778
19779 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19780 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19781 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19782 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19783 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19784 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19785 Makefile.in, configure.ac: Fix whitespace throughout.
19786 * configure: Regenerate.
19787
a07b2135
PA
197882009-03-22 Pedro Alves <pedro@codesourcery.com>
19789
19790 * inferiors.c (find_inferior): Make it safe for the callback
19791 function to delete the currently iterated inferior.
19792
67cc2626
PA
197932009-03-22 Pedro Alves <pedro@codesourcery.com>
19794
19795 * Makefile.in (linuw_low_h): Move higher.
19796 (thread-db.o): Depend on $(linux_low_h).
19797
54a0b537
PA
197982009-03-17 Pedro Alves <pedro@codesourcery.com>
19799
19800 Rename "process" to "lwp" throughout.
19801
19802 * linux-low.c (all_processes): Rename to...
19803 (all_lwps): ... this.
19804 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19805 (add_process): Rename to ...
19806 (add_lwp): ... this. Adjust.
19807 (linux_create_inferior): Adjust.
19808 (linux_attach_lwp): Adjust.
19809 (linux_attach): Adjust.
19810 (linux_kill_one_process): Rename to ...
19811 (linux_kill_one_lwp): ... this. Adjust.
19812 (linux_kill): Adjust.
19813 (linux_detach_one_process): Rename to ...
19814 (linux_detach_one_lwp): ... this. Adjust.
19815 (linux_detach): Adjust.
19816 (check_removed_breakpoint): Adjust.
19817 (status_pending_p): Adjust.
19818 (linux_wait_for_process): Rename to ...
19819 (linux_wait_for_lwp): ... this. Adjust.
19820 (linux_wait_for_event): Adjust.
19821 (send_sigstop): Adjust.
19822 (wait_for_sigstop): Adjust.
19823 (stop_all_processes): Rename to ...
19824 (stop_all_lwps): ... this.
19825 (linux_resume_one_process): Rename to ...
19826 (linux_resume_one_lwp): ... this. Adjust.
19827 (linux_set_resume_request, linux_continue_one_thread)
19828 (linux_queue_one_thread, resume_status_pending_p)
19829 (usr_store_inferior_registers, regsets_store_inferior_registers)
19830 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19831 Adjust.
19832 * linux-low.h (get_process): Rename to ...
19833 (get_lwp): ... this. Adjust.
19834 (get_thread_process): Rename to ...
19835 (get_thread_lwp): ... this. Adjust.
19836 (get_process_thread): Rename to ...
19837 (get_lwp_thread): ... this. Adjust.
19838 (struct process_info): Rename to ...
19839 (struct lwp_info): ... this.
19840 (all_processes): Rename to ...
19841 (all_lwps): ... this.
19842 * proc-service.c (ps_lgetregs): Adjust.
19843 * thread-db.c (thread_db_create_event, find_one_thread)
19844 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19845
0b16c5cf
PA
198462009-03-14 Pedro Alves <pedro@codesourcery.com>
19847
19848 * server.c (handle_query): Handle "qAttached".
19849
32de4b9d
NS
198502009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19851
19852 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19853 GPLv3, update license URL.
19854
2aecd87f
DE
198552009-03-01 Doug Evans <dje@google.com>
19856
93efd302 19857 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19858 (server_h): Add gdb_signals.h.
19859 (signals.o): Update.
19860 * server.h (target_signal_from_host,target_signal_to_host_p)
19861 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19862
86b1f9c5
PM
198632009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19864
19865 * remote-utils.c (getpkt): Also generate remote-debug
19866 information if noack_mode is set.
19867
4aa995e1
PA
198682009-02-06 Pedro Alves <pedro@codesourcery.com>
19869
19870 * server.c (handle_query): Report qXfer:siginfo:read and
19871 qXfer:siginfo:write as supported and handle them.
19872 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19873 * linux-low.c (linux_xfer_siginfo): New.
19874 (linux_target_ops): Set it.
19875
62709adf
PA
198762009-01-26 Pedro Alves <pedro@codesourcery.com>
19877
19878 * server.c (gdbserver_usage): Mention --remote-debug.
19879 (main): Accept '--remote-debug' switch.
19880
aef93bd7
DE
198812009-01-18 Doug Evans <dje@google.com>
19882
19883 * regcache.c (new_register_cache): No need to check result of xcalloc.
19884 * server.c (handle_search_memory): Back out calls to xmalloc,
19885 result is checked and error is returned to user upon failure.
19886 (handle_query): Ditto. Add more checks for result of malloc.
19887 (handle_v_cont): Check result of malloc, report error back to
19888 user upon failure.
19889 (handle_v_run): Ditto. Call freeargv.
19890 * server.h (freeargv): Declare.
19891 * utils.c (freeargv): New fn.
19892
54363045
DE
198932009-01-15 Doug Evans <dje@google.com>
19894
f626972c
DE
19895 * gdbreplay.c (perror_with_name): Make arg const char *.
19896 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19897 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19898 * utils.c (perror_with_name): Make arg const char *.
54363045 19899
18aae699
PA
199002009-01-14 Pedro Alves <pedro@codesourcery.com>
19901
19902 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19903 when handling a EXIT_PROCESS_DEBUG_EVENT.
19904
ff703abe
JB
199052009-01-06 Joel Brobecker <brobecker@adacore.com>
19906
19907 * gdbreplay.c (gdbreplay_version): Update copyright year.
19908 * server.c (gdbserver_version): Likewise.
19909
f21cc1a2 199102009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19911
19912 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19913 (handle_extended_wait): Improve comment.
0e21c1ec 19914
bca929d3
DE
199152008-12-13 Doug Evans <dje@google.com>
19916
19917 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19918 * server.h (ATTR_MALLOC): New macro.
19919 (xmalloc,xcalloc,xstrdup): Declare.
19920 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19921 * inferiors.c: Ditto.
19922 * linux-low.c: Ditto.
19923 * mem-break.c: Ditto.
19924 * regcache.c: Ditto.
19925 * remote-utils.c: Ditto.
19926 * server.c: Ditto.
19927 * target.c: Ditto.
19928 * win32-low.c: Ditto.
19929
97438e3f
DE
199302008-12-12 Doug Evans <dje@google.com>
19931
896c7fbb
DE
19932 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19933 in debugging printf.
19934
97438e3f
DE
19935 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19936
e3b886f8
DE
199372008-12-09 Doug Evans <dje@google.com>
19938
19939 * linux-low.h (struct process_info): Delete member tid, unused.
19940 * thread-db.c (find_one_thread): Update.
19941 (maybe_attach_thread): Update.
19942
07e059b5
VP
199432008-12-02 Pedro Alves <pedro@codesourcery.com>
19944
889bf7c5
PA
19945 * target.h (struct target_ops): Add qxfer_osdata member.
19946 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19947 and dirent.h.
19948 (linux_qxfer_osdata): New functions.
19949 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19950 callback.
19951 * server.c (handle_query): Handle "qXfer:osdata:read:".
19952 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19953 (buffer_xml_printf): New functions.
19954 * server.h (struct buffer): New.
19955 (buffer_grow_str, buffer_grow_str0): New macros.
19956 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19957 (buffer_xml_printf): Declare.
07e059b5 19958
4cab47ab
DE
199592008-11-24 Doug Evans <dje@google.com>
19960
19961 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19962
f142445f
DJ
199632008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19964
19965 * server.c (handle_v_run): Always use the supplied argument list.
19966
d0107bb6 199672008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19968
d0107bb6
BW
19969 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19970 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19971
2c4ad781
TJB
199722008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19973
19974 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19975 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19976 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19977 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19978 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19979 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19980 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19981 XML target descriptions.
19982 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19983 when inferior is running on an ISA 2.05 or later processor. Add
19984 special case to return offset for full 64-bit slot of FPSCR when
19985 in 32-bits.
19986
dfb64f85
DJ
199872008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19988
19989 * Makefile.in (SFILES, clean): Added sparc64 files.
19990 (reg-sparc64.o, reg-sparc64.c): New.
19991 * configure.srv (sparc*-*-linux*): New configuration.
19992 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19993 syscall arguments for SPARC.
19994 (regsets_store_inferior_registers): Likewise.
19995 * linux-sparc-low.c: New file.
19996
66b6e1dd
DE
199972008-10-21 Doug Evans <dje@google.com>
19998
19999 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20000 (READLINE_DIR,READLINE_DEP): Delete.
20001 (INTERNAL_CFLAGS): Update.
20002 (LINTFLAGS): Update.
20003
9b710a42
PA
200042008-10-10 Pedro Alves <pedro@codesourcery.com>
20005
20006 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20007 whole argv from the last run, not just argv[0].
20008
5822d809
PA
200092008-09-08 Pedro Alves <pedro@codesourcery.com>
20010
20011 * regcache.c (new_register_cache): Return NULL if the register
20012 cache size isn't known yet.
20013 (free_register_cache): Avoid dereferencing a NULL regcache.
20014
74aac56f
DJ
200152008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20016
20017 * configure.srv: Merge MIPS and MIPS64.
20018
400b20f5
MR
200192008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20020
20021 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20022
677c5bb1
LM
200232008-08-18 Luis Machado <luisgpm@br.ibm.com>
20024
20025 * Makefile.in: Add required vsx dependencies.
20026
20027 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20028 Declare init_registers_powerpc_vsx32l.
20029 Declare init_registers_powerpc_vsx64l.
20030 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20031 (ppc_arch_setup): Check for VSX in hwcap.
20032 (ppc_fill_vsxregset): New function.
20033 (ppc_store_vsxregset): New function.
20034 Add new VSX entry in regset_info target_regsets.
20035
20036 * configure.srv: Add new VSX dependencies.
20037
a6f3e723
SL
200382008-08-12 Pedro Alves <pedro@codesourcery.com>
20039
20040 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20041 (remote_open): Set or clear transport_is_reliable.
20042 (putpkt_binary): Don't expect acks in noack mode.
20043 (getpkt): Don't send ack/nac in noack mode.
20044 * server.c (handle_general_set): Handle QStartNoAckMode.
20045 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20046 qSupported.
20047 (main): Reset noack_mode on every connection.
20048 * server.h (noack_mode): Declare.
20049
a417dc56
RW
200502008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20051
20052 * Makefile.in (GDBREPLAY_OBS): New variable.
20053 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20054
3221518c
UW
200552008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20056 Daniel Jacobowitz <dan@codesourcery.com>
20057
20058 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20059 (usr_store_inferior_registers): Likewise.
20060 (regsets_store_inferior_registers): Likewise.
20061
ec56be1b
PA
200622008-07-31 Rolf Jansen <rj@surtec.com>
20063 Pedro Alves <pedro@codesourcery.com>
20064
20065 * configure.ac: Check for memmem declaration.
20066 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20067 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20068 (disable_packet_qfThreadInfo): Unconditionally compile.
20069 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20070 * configure, config.in: Regenerate.
20071
2fe5e3ff
DE
200722008-07-28 Doug Kwan <dougkwan@google.com>
20073
20074 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20075 (linux_write_memory): Remove declaration of errno.
20076
836acd6d
UW
200772008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20078
20079 * linux-low.c (handle_extended_wait): Do not use "status"
20080 variable uninitialized.
20081
aeba519e
PA
200822008-07-07 Pedro Alves <pedro@codesourcery.com>
20083
20084 * server.c (handle_v_attach): Inhibit reporting dll changes.
20085
db42f210
PA
200862008-06-27 Pedro Alves <pedro@codesourcery.com>
20087
20088 * remote-utils.c (prepare_resume_reply): If requested, don't
20089 output "thread:TID" in the T stop reply.
20090
20091 * server.c (disable_packet_vCont, disable_packet_Tthread)
20092 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20093 (handle_query): If requested, disable support for qC, qfThreadInfo
20094 and qsThreadInfo.
20095 (handle_v_requests): If requested, disable support for vCont.
20096 (gdbserver_show_disableable): New.
20097 (main): Handle --disable-packet and --disable-packet=LIST.
20098
20099 * server.h (disable_packet_vCont, disable_packet_Tthread)
20100 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20101
8e4c5421
CD
201022008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20103
20104 * server.c (gdbserver_usage): Mention --version.
20105
6e23a804
DJ
201062008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20107
20108 * Makefile.in (gdbreplay.o): New rule.
20109
90aa6a40
JM
201102008-06-06 Joseph Myers <joseph@codesourcery.com>
20111
20112 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20113 message, not gdbserver.
20114
c16158bc 201152008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20116 Nathan Sidwell <nathan@codesourcery.com>
20117 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20118
20119 * acinclude.m4: Include ../../config/acx.m4.
20120 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20121 * configure, config.in: Regenerate.
20122 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20123 * server.c (gdbserver_version): Print PKGVERSION.
20124 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20125 (main): Adjust gdbserver_usage calls.
20126 * gdbreplay.c (version, host_name): Add declarations.
20127 (gdbreplay_version, gdbreplay_usage): New.
20128 (main): Accept --version and --help options.
20129
aeb75bf5
DJ
201302008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20131
20132 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20133 (arm_breakpoint_at): Handle Thumb.
20134 (the_low_target): Add comment.
20135
76b233dd
UW
201362008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20137
20138 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20139
08388c79
DE
201402008-05-09 Doug Evans <dje@google.com>
20141
a3c83fae
DE
20142 * server.h (decode_search_memory_packet): Declare.
20143 * remote-utils.c (decode_search_memory_packet): New fn.
20144 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20145 (handle_search_memory): New fn.
20146 (handle_query): Process qSearch:memory packets.
20147
bb9c3d36
UW
201482008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20149
20150 * regcache.c (registers_length): Remove.
20151 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20152 full register packet.
20153 * regcache.h (registers_length): Remove prototype.
20154 * server.h (PBUFSIZ): Define to 16384.
20155
7284e1be
UW
201562008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20157
20158 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20159 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20160 powerpc-64l.o, and powerpc-altivec64l.o.
20161 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20162 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20163 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20164 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20165 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20166 to srv_xmlfiles.
20167
20168 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20169 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20170 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20171 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20172 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20173 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20174 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20175 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20176 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20177 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20178 (clean): Update.
20179
20180 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20181 (init_registers_powerpc_32l): ... this new prototype.
20182 (init_registers_powerpc_32): Remove, replace by ...
20183 (init_registers_powerpc_altivec32l): ... this new prototype.
20184 (init_registers_powerpc_e500): Remove, replace by ...
20185 (init_registers_powerpc_e500l): ... this new prototype.
20186 (init_registers_ppc64): Remove, replace by ...
20187 (init_registers_powerpc_64l): ... this new prototype.
20188 (init_registers_powerpc_64): Remove, replace by ...
20189 (init_registers_powerpc_altivec64l): ... this new prototype.
20190 (ppc_num_regs): Set to 73.
20191 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20192 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20193 (ppc_cannot_store_register): Handle orig_r3 and trap.
20194 (ppc_arch_setup): Update init_registers_... calls.
20195 (ppc_fill_gregset): Handle orig_r3 and trap.
20196
20197 * inferiors.c (clear_inferiors): Reset current_inferior.
20198
fdc59709
PB
201992008-04-23 Paolo Bonzini <bonzini@gnu.org>
20200
889bf7c5
PA
20201 * acinclude.m4: Add override.m4.
20202 * configure: Regenerate.
fdc59709 20203
c9b2f845
UW
202042008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20205
20206 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20207 initial call to init_register_ppc64.
20208
550512b8
UW
202092008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20210
43aaf8b6
PA
20211 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20212 single powerpc*-*-linux* case.
550512b8
UW
20213 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20214
b6430ec3
UW
202152008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20216
20217 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20218 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20219 from reg_xmlfiles.
20220 * linux-ppc-low.c: Include <elf.h>.
20221 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20222 (ppc_hwcap): New global variable.
20223 (ppc_regmap): Remove __SPE__ #ifdef sections.
20224 (ppc_regmap_e500): New global variable.
20225 (ppc_cannot_store_register): Update __SPE__ special case.
20226 (ppc_get_hwcap): New function.
20227 (ppc_arch_setup): Use it to determine whether inferior supports
20228 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20229 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20230 Do not access registers if target does not support AltiVec.
20231 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20232 Do not access registers if target does not support SPE.
20233 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20234
52fa2412
UW
202352008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20236
20237 * linux-low.c (disabled_regsets, num_regsets): New.
20238 (use_regsets_p): Delete.
20239 (linux_wait_for_process): Clear disabled_regsets.
20240 (regsets_fetch_inferior_registers): Check and set it.
20241 (regsets_store_inferior_registers): Likewise.
20242 (linux_fetch_registers, linux_store_registers): Do not use
20243 use_regsets_p.
20244 (initialize_low): Allocate disabled_regsets.
20245
e28b3332
DJ
202462008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20247
20248 * Makefile.in (LIBOBJS): New.
20249 (OBS): Use LIBOBJS.
20250 (memmem.o): New rule.
20251 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20252 * configure: Regenerated.
20253
4536995d
UW
202542008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20255
20256 * server.c (handle_query): Never return "unsupported" for
20257 qXfer:features:read queries.
20258
221c031f
UW
202592008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20260
20261 * server.c (get_features_xml): Fix inverted condition.
20262 (handle_query): Always support qXfer:feature:read.
20263
ccd213ac
DJ
202642008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20265
20266 * server.c (wrapper_argv): New.
20267 (start_inferior): Handle wrapper_argv. If set, expect an extra
20268 trap.
20269 (gdbserver_usage): Document --wrapper.
20270 (main): Parse --wrapper.
20271
6fe305f7
UW
202722008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20273
20274 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20275 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20276 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20277 (ppc_set_pc): Likewise.
20278 (ppc_arch_setup): New function.
20279 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20280 of collect_register.
889bf7c5 20281 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20282
5b0a002e
UW
202832008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20284
20285 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20286 instead of linux-ppc64-low.o.
20287 * linux-ppc64-low.c: Remove file.
20288 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20289 (linux-ppc64-low.o): Remove rule.
20290
20291 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20292 (init_registers_powerpc_64): Likewise.
20293 (ppc_regmap): Conditionally define depending on __powerpc64__.
20294 (ppc_cannot_store_register): Do not special-case "fpscr" when
20295 compiled on __powerpc64__.
20296 (ppc_collect_ptrace_register): New function.
20297 (ppc_supply_ptrace_register): New function.
20298 (ppc_breakpoint): Change type to "unsigned int".
20299 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20300 (the_low_target): Conditionally provide initializers for the
889bf7c5 20301 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20302 collect_ptrace_register and supply_ptrace_register members.
20303
9b4b61c8
UW
203042008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20305
20306 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20307 * server.c (gdbserver_xmltarget): Define.
20308 (get_features_xml): Use it to replace "target.xml" and arch_string.
20309
20310 * configure.srv: Remove srv_xmltarget. Add XML files that were
20311 mentioned there to srv_xmlfiles instead. Remove conditional tests
20312 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20313 srv_xmlfiles and srv_regobj to include all possible choices.
20314 * configure.ac (srv_xmltarget): Remove.
20315 (srv_xmlfiles): Do not add "target.xml".
20316 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20317 checks for supplementary target information.
20318 * configure: Regenerate.
20319 * Makefile.in (XML_TARGET): Remove.
20320 (target.xml): Remove rule.
20321 (clean): Do not clean up target.xml.
20322 (.PRECIOUS): Do not mention target.xml.
20323
20324 * target.h (struct target_ops): Remove arch_string member.
20325 * linux-low.c (linux_arch_string): Remove.
20326 (linux_target_ops): Remove arch_string initializer.
20327 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20328 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20329 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20330 * spu-low.c (spu_arch_string): Remove.
20331 (spu_target_ops): Remove arch_string initializer.
20332 * win32-low.c (win32_arch_string): Remove.
20333 (win32_target_ops): Remove arch_string initializer.
20334 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20335 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20336 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20337
ee1a7ae4
UW
203382008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20339
20340 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20341 by collect_ptrace_register and supply_ptrace_register hooks.
20342 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20343 instead of checking for the_low_target.left_pad_xfer.
20344 (usr_store_inferior_registers): Use collect_ptrace_register callback
20345 instead of checking for the_low_target.left_pad_xfer.
20346
20347 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20348 (s390_supply_ptrace_register): Likewise.
20349 (s390_fill_gregset): Call s390_collect_ptrace_register.
20350 (the_low_target): Update.
20351
20352 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20353 (ppc_supply_ptrace_register): Likewise.
20354 (the_low_target): Update.
20355
20356 * linux-i386-low.c (the_low_target): Update.
20357 * linux-x86-64-low.c (the_low_target): Update.
20358
d61ddec4
UW
203592008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20360
20361 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20362 reg-s390.o and reg-s390x.o.
20363
20364 * linux-low.c (new_inferior): New global variable.
20365 (linux_create_inferior, linux_attach): Set it.
20366 (linux_wait_for_process): Call the_low_target.arch_setup after the
20367 target has stopped for the first time.
20368 (initialize_low): Do not call the_low_target.arch_setup.
20369
20370 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20371 (s390_set_pc): Likewise.
20372 (s390_arch_setup): New function.
20373 (the_low_target): Use s390_arch_setup as arch_setup routine.
20374
20375 * regcache.c (realloc_register_cache): New function.
20376 (set_register_cache): Call it for each existing regcache.
20377
d05b4ac3
UW
203782008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20379
20380 * server.h (init_registers): Remove prototype.
20381
20382 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20383 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20384 instead of init_registers ().
20385 * linux-arm-low.c (init_registers_arm): Add prototype.
20386 (init_registers_arm_with_iwmmxt): Likewise.
20387 (the_low_target): Add initializer for arch_setup field.
20388 * linux-cris-low.c (init_registers_cris): Add prototype.
20389 (the_low_target): Add initializer for arch_setup field.
20390 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20391 (the_low_target): Add initializer for arch_setup field.
20392 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20393 (the_low_target): Add initializer for arch_setup field.
20394 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20395 (the_low_target): Add initializer for arch_setup field.
20396 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20397 (the_low_target): Add initializer for arch_setup field.
20398 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20399 (the_low_target): Add initializer for arch_setup field.
20400 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20401 (init_registers_mips64_linux): Likewise.
20402 (the_low_target): Add initializer for arch_setup field.
20403 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20404 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20405 (the_low_target): Add initializer for arch_setup field.
20406 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20407 (init_registers_powerpc_64): Likewise.
20408 (the_low_target): Add initializer for arch_setup field.
20409 * linux-s390-low.c (init_registers_s390): Add prototype.
20410 (init_registers_s390x): Likewise.
20411 (the_low_target): Add initializer for arch_setup field.
20412 * linux-sh-low.c (init_registers_sh): Add prototype.
20413 (the_low_target): Add initializer for arch_setup field.
20414 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20415 (the_low_target): Add initializer for arch_setup field.
20416 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20417 (the_low_target): Add initializer for arch_setup field.
20418
20419 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20420 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20421 instead of init_registers ().
20422 * win32-arm-low.c (init_registers_arm): Add prototype.
20423 (the_low_target): Add initializer for arch_setup field.
20424 * win32-i386-low.c (init_registers_i386): Add prototype.
20425 (the_low_target): Add initializer for arch_setup field.
20426
20427 * spu-low.c (init_registers_spu): Add prototype.
20428 (initialize_low): Call initialie_registers_spu () instead of
20429 initialize_registers ().
20430
fd96d250
PA
204312008-02-19 Pedro Alves <pedro@codesourcery.com>
20432
20433 * server.c (handle_v_requests): When handling the vRun and vAttach
20434 packets, if already debugging a process, don't kill it. Return an
20435 error instead.
20436
d41b6bb4
DJ
204372008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20438
20439 * server.c (handle_query): Correct length check.
20440
5ac588cf
PA
204412008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20442
20443 * win32-low.c (do_initial_child_stuff): Add process handle
20444 parameter. Set current_process_handle and current_process_id from the
20445 parameters. Clear globals.
20446 (win32_create_inferior): Don't set current_process_handle and
20447 current_process_id here. Instead pass them on the call to
20448 do_initial_child_stuff.
20449 (win32_attach): Likewise.
20450 (win32_clear_inferiors): New.
20451 (win32_kill): Don't close the current process handle or the
20452 current thread handle here. Instead call win32_clear_inferiors.
20453 (win32_detach): Don't open a new handle to the process. Call
20454 win32_clear_inferiors.
20455 (win32_join): Don't rely on current_process_handle; open a new
20456 handle using the process id.
20457 (win32_wait): Call win32_clear_inferiors when the inferior process
20458 has exited.
20459
ecd7ecbc
DJ
204602008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20461
20462 * server.c (monitor_show_help): Add "exit".
20463
1525d545
MG
204642008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20465
ecd7ecbc 20466 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20467 (clean): Add reg-xtensa.c.
20468 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20469 * configure.srv (xtensa*-*-linux*) New target.
20470 * linux-xtensa-low.c: New.
20471 * xtensa-xtregs.c: New.
1525d545 20472
59a016f0
PA
204732008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20474
20475 * hostio.c: Don't include errno.h.
20476 (errno_to_fileio_errno): Move to hostio-errno.
20477 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20478 error number outputting to the target->hostio_last_error callback.
20479 (hostio_packet_error): Use FILEIO_EINVAL directly.
20480 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20481 calls to hostio_error.
20482 * hostio-errno.c: New.
20483 * server.h (hostio_last_error_from_errno): Declare.
20484 * target.h (target_ops): Add hostio_last_error member.
20485 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20486 as hostio_last_error handler.
889bf7c5 20487 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20488 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20489 (wince_hostio_last_error): New functions.
20490 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20491 as hostio_last_error handler.
20492 (win32_target_ops) [!_WIN32_WCE]: Register
20493 hostio_last_error_from_errno as hostio_last_error handler.
20494 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20495 (hostio-errno.o): New rule.
20496 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20497 * configure.srv (srv_hostio_err_objs): New variable. Default to
20498 hostio-errno.o.
20499 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20500 * configure: Regenerate.
20501
2d717e4f
DJ
205022008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20503
20504 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20505 (linux_kill, linux_detach): Clean up the process list.
20506 * remote-utils.c (remote_open): Improve port number parsing.
20507 (putpkt_binary, input_interrupt): Only send interrupts if the target
20508 is running.
20509 * server.c (extended_protocol): Make static.
20510 (attached): Define earlier.
20511 (exit_requested, response_needed, program_argv): New variables.
20512 (target_running): New.
20513 (start_inferior): Clear attached here.
20514 (attach_inferior): Set attached here.
20515 (require_running): Define.
20516 (handle_query): Use require_running and target_running. Implement
20517 "monitor exit".
20518 (handle_v_attach, handle_v_run): New.
20519 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20520 (gdbserver_usage): Update.
20521 (main): Redo argument parsing. Handle --debug and --multi. Handle
20522 --attach along with other options or after the port. Save
20523 program_argv. Support no initial program. Resynchronize
20524 communication with GDB after an error. Handle "monitor exit".
20525 Use require_running and target_running. Always allow the extended
20526 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20527 restart in extended mode.
20528 * README: Refer to the GDB manual. Update --attach usage.
20529
7407e2de
AS
205302007-12-20 Andreas Schwab <schwab@suse.de>
20531
20532 * linux-low.c (STACK_SIZE): Define.
20533 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20534 (linux_test_for_tracefork): Likewise.
20535
b65d95c5
DJ
205362007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20537
20538 * linux-low.c (linux_wait_for_event): Update messages. Do not
20539 reinsert auto-delete breakpoints.
20540 * mem-break.c (struct breakpoint): Change return type of handler to
20541 int.
20542 (set_breakpoint_at): Update handler type.
20543 (reinsert_breakpoint_handler): Return 1 instead of calling
20544 delete_breakpoint.
20545 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20546 setting a new one.
20547 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20548 * mem-break.h (set_breakpoint_at): Update handler type.
20549 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20550 * win32-low.c (auto_delete_breakpoint): New.
20551 (get_child_debug_event): Use it.
20552
4e799345
DJ
205532007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20554
20555 * configure.ac: Check for pread and pwrite.
20556 * hostio.c (handle_pread): Fall back to lseek and read.
20557 (handle_pwrite): Fall back to lseek and write.
20558 * config.in, configure: Regenerated.
20559
27524b67
DJ
205602007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20561
20562 * server.c (myresume): Add own_buf argument.
20563 (main): Update calls.
20564
a20d5e98
DJ
205652007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20566
20567 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20568 * remote-utils.c (remote_open): Do not call disable_async_io.
20569 (block_async_io): Delete.
20570 (unblock_async_io): Make static.
20571 (initialize_async_io): New.
20572 * server.c (handle_v_cont): Handle async I/O here.
20573 (myresume): Likewise. Move other common resume tasks here...
20574 (main): ... from here. Call initialize_async_io. Disable async
20575 I/O before the main loop.
20576 * server.h (initialize_async_io): Declare.
20577 (block_async_io, unblock_async_io): Delete prototypes.
20578 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20579
b79d787e
DJ
205802007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20581
20582 * remote-utils.c (readchar): Allow binary data in received messages.
20583
d97903b2
PA
205842007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20585
20586 * win32-low.c (attaching): New global.
20587 (win32_create_inferior): Clear the `attaching' global.
20588 (win32_attach): Set the `attaching' global.
20589 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20590 attaching. Only set a breakpoint at the entry point if not
20591 attaching.
20592
311de423
PA
205932007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20594
20595 * server.c (main): Don't report dll events on the initial
20596 connection on attaches.
20597
6c2d16d2
PA
205982007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20599
20600 * server.c (main): Relax numerical bases supported for the pid of
20601 the --attach command line argument.
20602
5ca906e6
PA
206032007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20604
20605 * win32-low.c (win32_attach): Call OpenProcess before
20606 DebugActiveProcess, not after. Add last error output to error
20607 call.
20608
9c6c8194
PA
206092007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20610
20611 * win32-low.c (win32_get_thread_context)
20612 (win32_set_thread_context): New functions.
20613 (thread_rec): Use win32_get_thread_context.
20614 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20615 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20616 field.
20617
4d5d1aaa
PA
206182007-12-03 Leo Zayas
20619 Pedro Alves <pedro_alves@portugalmail.pt>
20620
20621 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20622 global variables.
20623 (child_add_thread): Minor cleanup.
20624 (child_continue): Resume artificially suspended threads before
20625 calling ContinueDebugEvent.
20626 (suspend_one_thread): New.
20627 (fake_breakpoint_event): New.
20628 (get_child_debug_event): Change return type to int. Check here if
20629 gdb sent an interrupt request. If a soft interrupt was requested,
20630 fake a breakpoint event. Return 0 if there is no event to handle,
20631 and 1 otherwise.
20632 (win32_wait): Don't check here if gdb sent an interrupt request.
20633 Ensure there is a valid event to handle.
20634 (win32_request_interrupt): Add soft interruption method as last
20635 resort.
20636
c436e841
PA
206372007-12-03 Leo Zayas
20638 Pedro Alves <pedro_alves@portugalmail.pt>
20639
20640 * win32-low.h (win32_thread_info): Add descriptions to the
20641 structure members. Replace `suspend_count' counter by a
20642 `suspended' flag.
20643 * win32-low.c (thread_rec): Update condition of when to get the
20644 context from the inferior. Rely on ContextFlags being set if it
20645 has already been retrieved. Only suspend the inferior thread if
20646 we haven't already. Warn if that fails.
20647 (continue_one_thread): s/suspend_count/suspended/. Only call
20648 ResumeThread once. Warn if that fails.
20649
e7b5fa67
PA
206502007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20651
20652 * win32-low.c (win32_wait): Don't read from the inferior when it
20653 has already exited.
20654
a385171d
PA
206552007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20656
20657 * Makefile.in (win32_low_h): New variable.
20658 (win32-low.o): Add dependency on $(win32_low_h).
20659 (win32-arm-low.o, win32-i386-low.o): New rules.
20660
f80c84b3
DJ
206612007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20662
20663 * hostio.c: Correct copyright year.
20664
a6b151f1
DJ
206652007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20666
20667 * Makefile.in (OBS): Add hostio.o.
20668 (hostio.o): New rule.
20669 * server.h (handle_vFile): Declare.
20670 * hostio.c: New file.
20671 * server.c (handle_v_requests): Take packet_len and new_packet_len
20672 for binary packets. Call handle_vFile.
20673 (main): Update call to handle_v_requests.
20674
f9387fc3
DJ
206752007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20676
20677 * linux-low.c: Include <sched.h>.
20678
51c2684e
DJ
206792007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20680
20681 * linux-low.c (linux_tracefork_grandchild): New.
20682 (linux_tracefork_child): Use clone.
20683 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20684
75f83163
JB
206852007-10-31 Joel Brobecker <brobecker@adacore.com>
20686
20687 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20688
da5898ce
DJ
206892007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20690
20691 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20692
24a09b5f
DJ
206932007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20694
20695 * inferiors.c (change_inferior_id): Delete.
20696 (add_pid_to_list, pull_pid_from_list): New.
20697 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20698 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20699 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20700 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20701 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20702 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20703 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20704 (using_threads): Always set to 1.
20705 (handle_extended_wait): New.
20706 (add_process): Do not set TID.
20707 (linux_create_inferior): Set must_set_ptrace_flags.
20708 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20709 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20710 (linux_thread_alive): Rename TID argument to LWPID.
20711 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20712 (linux_wait_for_event): Do not use TID or check using_threads. Update
20713 call to dead_thread_notify. Call handle_extended_wait.
20714 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20715 (send_sigstop): Delete sigstop_sent.
20716 (wait_for_sigstop): Avoid TID.
20717 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20718 (linux_test_for_tracefork): New.
20719 (linux_lookup_signals): Use thread_db_active and
20720 linux_supports_tracefork_flag.
20721 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20722 * linux-low.h (get_process_thread): Avoid TID.
20723 (struct process_ifo): Move thread_known and tid to the end. Remove
20724 sigstop_sent.
20725 (linux_attach_lwp, thread_db_init): Update prototypes.
20726 * server.h (change_inferior_id): Delete prototype.
20727 (add_pid_to_list, pull_pid_from_list): New prototypes.
20728 * thread-db.c (thread_db_use_events): New.
20729 (find_first_thread): Rename to...
20730 (find_one_thread): ...this. Update callers and messages. Do not
20731 call fatal. Check thread_db_use_events. Do not call
20732 change_inferior_id or new_thread_notify.
20733 (maybe_attach_thread): Update. Do not call new_thread_notify.
20734 (thread_db_init): Set thread_db_use_events. Check use_events.
20735 * utils.c (fatal, warning): Correct message prefix.
20736
30ed0a8f
DJ
207372007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20738
20739 * Makefile.in (clean): Remove new files.
20740 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20741 (powerpc-64.o, powerpc-64.c): New rules.
20742 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20743 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20744 with SPE.
20745 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20746 SPE targets.
20747 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20748 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20749 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20750 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20751 (target_regsets): Add AltiVec and SPE register sets.
20752 * configure.ac: Check for AltiVec and SPE.
20753 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20754 (ppc_fill_vrregset, ppc_store_vrregset): New.
20755 (target_regsets): Add AltiVec register set.
20756 * configure: Regenerated.
20757
fd462a61
DJ
207582007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20759
20760 * linux-low.c (O_LARGEFILE): Define.
20761 (linux_read_memory): Use /proc/PID/mem.
20762 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20763 * configure, config.in: Regenerated.
20764
69f223ed
DJ
207652007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20766
20767 * linux-low.c (linux_wait_for_event): Do not pass signals while
20768 single-stepping.
20769
aec18585
PA
207702007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20771
20772 * win32-low.c (create_process): New.
20773 (win32_create_inferior): Use create_process instead of
20774 CreateProcess. If create_process failed retry appending an ".exe"
20775 suffix. Store the GetLastError result immediatelly after
20776 create_process calls and use it on the call to error.
20777
34d86ddd
PA
207782007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20779
20780 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20781
5a0e3bd0
JB
207822007-08-23 Joel Brobecker <brobecker@adacore.com>
20783
20784 * configure.ac: Switch license to GPLv3.
20785
f88c79e6
MS
207862007-08-01 Michael Snyder <msnyder@access-company.com>
20787
20788 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20789
6b3d9b83
PA
207902007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20791
20792 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20793 typedef.
20794 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20795 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20796 CloseToolhelp32Snapshot.
20797 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20798 CloseToolhelp32Snapshot.
20799
c588c53c
MS
208002007-07-27 Michael Snyder <michael.snyder@access-company.com>
20801
20802 * server.c (main): Check for inferior exit before main loop.
20803
aa0403d9
PA
208042007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20805
20806 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20807 instead of on tmp_desc.
20808
255e7678
DJ
208092007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20810 Daniel Jacobowitz <dan@codesourcery.com>
20811
20812 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20813 (add_thread): Minor cleanups.
20814 (clear_inferiors): Move lower in the file. Clear the DLL
20815 list.
20816 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20817 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20818 (xml_escape_text): New.
20819 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20820 for qSupported.
20821 (handle_v_cont): Report errors.
20822 (gdbserver_version): Update.
20823 (main): Correct size of own_buf. Do not report initial DLL events.
20824 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20825 (unloaded_dll, xml_escape_text): New.
20826 * win32-low.c (enum target_waitkind): Update comments.
20827 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20828 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20829 (win32_EnumProcessModules, win32_GetModuleInformation)
20830 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20831 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20832 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20833 (win32_Module32First, win32_Module32Next, load_toolhelp)
20834 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20835 (get_child_debug_event): Handle DLL events.
20836 (win32_wait): Likewise.
20837
0d37add9
DJ
208382007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20839
20840 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20841 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20842
45e2715e
PA
208432007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20844
20845 * win32-low.c (handle_output_debug_string): Ignore event if not
20846 waiting.
20847
c5674cf1
PA
208482007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20849
20850 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20851
2bbe3cc1
DJ
208522007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20853
20854 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20855
ae13219e
DJ
208562007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20857
20858 * inferiors.c (change_inferior_id): Add comment.
20859 * linux-low.c (check_removed_breakpoint): Add an early
20860 prototype. Improve debug output.
20861 (linux_attach): Doc update.
20862 (linux_detach_one_process, linux_detach): Clean up before releasing
20863 each process.
20864 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20865 * linux-low.h (struct process_info): Doc improvement.
20866 * mem-break.c (delete_all_breakpoints): New.
20867 * mem-break.h (delete_all_breakpoints): New prototype.
20868 * thread-db.c (find_first_thread): New.
20869 (thread_db_create_event): Call it instead of
20870 thread_db_find_new_threads. Clean up unused variables.
20871 (maybe_attach_thread): Remove first thread handling.
20872 (thread_db_find_new_threads): Use find_first_thread.
20873 (thread_db_get_tls_address): Likewise.
20874
4105de34
DJ
208752007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20876
20877 * thread-db.c (thread_db_find_new_threads): Add prototype.
20878 (thread_db_create_event): Check for the main thread before adding
20879 a new thread.
20880 (maybe_attach_thread): Only enable event reporting if TID == 0.
20881 (thread_db_get_tls_address): Check for new threads.
20882
2b876972
DJ
208832007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20884
20885 * linux-low.c (linux_create_inferior): Try execv before execvp.
20886 * spu-low.c (spu_create_inferior): Likewise.
20887
7a245884
DJ
208882007-06-13 Mike Frysinger <vapier@gentoo.org>
20889
20890 * linux-low.c (linux_create_inferior): Change execv to execvp.
20891 * spu-low.c (spu_create_inferior): Likewies.
20892
117ce543
DJ
208932007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20894
20895 * Makefile.in (clean): Clean new files instead of deleted ones.
20896 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20897 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20898 rules.
20899 * configure.srv: Specify XML files and new regformats for MIPS and
20900 MIPS64 GNU/Linux.
20901 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20902 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20903 an entry for the restart register.
20904 (mips_cannot_fetch_register, mips_cannot_store_register)
20905 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20906 register names to match the XML descriptions.
20907 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20908 restart register instead of $0.
20909
0e7f50da
UW
209102007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20911 Markus Deuling <deuling@de.ibm.com>
20912
20913 * remote-utils.c (decode_xfer_write): New function.
20914 * server.h (decode_xfer_write): Add prototype.
20915 * server.c (handle_query): Add PACKET_LEN argument. Support
20916 qXfer:spu:read and qXfer:spu:write packets.
20917 (main): Pass packet_len to handle_query.
20918 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20919 * target.h (target_ops): Add qxfer_spu.
20920
374c1d38
UW
209212007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20922
20923 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20924 accessing non-seekable spufs files.
20925
bb63802a
UW
209262007-05-16 Markus Deuling <deuling@de.ibm.com>
20927
889bf7c5 20928 * server.c (handle_query): Add reply for qC packet.
bb63802a 20929
7390519e
PA
209302007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20931 Leo Zayas <lerele@champenstudios@com>
20932
20933 * server.h (check_remote_input_interrupt_request): New function.
20934 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20935 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20936 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20937 (check_remote_input_interrupt_request): New function.
20938 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20939 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20940 winapi_GenerateConsoleCtrlEvent): New typedefs.
20941 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20942 to 250 ms.
20943 (win32_wait): Check for remote interrupt request
20944 with check_remote_input_interrupt_request.
20945 (win32_request_interrupt): New function.
20946 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20947
34b34921
PA
209482007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20949
20950 * win32-low.c (debug_registers_changed,
20951 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20952 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20953 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20954 (thread_rec): Get context using the low target.
20955 (child_add_thread): Call thread_added on the low target,
20956 which does the same thing.
20957 (regptr): Delete.
20958 (do_initial_child_stuff): Remove debug registers references.
20959 Set context using the low target. Resume threads after
20960 setting the contexts.
20961 (child_continue): Remove dead variable. Remove debug
20962 registers references.
20963 (child_fetch_inferior_registers): Go through the low target.
20964 (do_child_store_inferior_registers): Remove.
20965 (child_store_inferior_registers): Go through the low target.
20966 (win32_resume): Remove debug registers references.
20967 Set context using the low target.
20968 (handle_exception): Change return type to void. Don't record
20969 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20970 first chance exception.
889bf7c5 20971 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20972 goto loop. Always return after waiting for debug event.
20973 (win32_wait): Convert to switch statement. Handle spurious
20974 events.
20975
20976 * win32-i386-low.c (debug_registers_changed,
20977 debug_registers_used): New.
20978 (initial_stuff): Rename to ...
20979 (i386_initial_stuff): ... this. Clear debug registers
20980 state variables.
20981 (store_debug_registers): Delete.
20982 (i386_get_thread_context): New.
20983 (load_debug_registers): Delete.
20984 (i386_set_thread_context): New.
20985 (i386_thread_added): New.
20986 (single_step): Rename to ...
20987 (i386_single_step): ... this.
20988 (do_fetch_inferior_registers): Rename to ...
20989 (i386_fetch_inferior_register): ... this.
20990 (i386_store_inferior_register): New.
20991 (the_low_target): Adapt to new interface.
20992
20993 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20994 (arm_get_thread_context): New.
20995 (arm_set_thread_context): New.
20996 (regptr): New.
20997 (do_fetch_inferior_registers): Rename to ...
20998 (arm_fetch_inferior_register): ... this.
20999 (arm_store_inferior_register): New.
21000 (arm_wince_breakpoint): Reimplement as unsigned long.
21001 (arm_wince_breakpoint_len): Define.
21002 (the_low_target): Adapt to new interface.
21003
21004 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21005 load_debug_registers. Add get_thread_context, set_thread_context,
21006 thread_added and store_inferior_register. Rename
21007 fetch_inferior_registers to fetch_inferior_register.
21008 (regptr): Remove declaration.
21009
dd6953e1
PA
210102007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21011
21012 * linux-low.c (linux_detach): Change return type to int. Return 0.
21013 * spu-low.c (spu_detach): Likewise.
21014
444d6139
PA
210152007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21016
21017 * target.h (target_ops): Change return type of detach to int.
21018 Add join.
21019 (join_inferior): New.
21020 * server.c (main): Don't skip detach support on mingw32.
21021 If the inferior doesn't support detaching return error.
21022 Call join_inferior instead of using waitpid.
21023 * linux-low.c (linux_join): New.
21024 (linux_target_op): Add linux_join.
21025 * spu-low.c (spu_join): New.
21026 (spu_target_ops): Add spu_join.
21027 * win32-low.c (win32_detach): Adapt to new interface.
21028 Reopen current_process_handle before detaching. Issue a child
21029 resume before detaching.
21030 (win32_join): New.
21031 (win32_target_op): Add win32_join.
21032
1d5315fe
PA
210332007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21034
21035 * win32-low.c (win32-attach): Fix return value.
21036 * target.h (target_ops): Describe ATTACH return values.
21037
bf914831
PA
210382007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21039
21040 * win32-low.c (GETPROCADDRESS): Define.
21041 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21042 (winapi_DebugSetProcessKillOnExit): Likewise.
21043 (win32_create_inferior): Force usage of ansi CreateProcessA.
21044 (win32_attach): Use GETPROCADDRESS.
21045 (win32_detach): Likewise.
21046
f72f3e60
PA
210472007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21048
21049 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21050
ed50f18f
PA
210512007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21052
21053 * win32-low.c: Commit leftover changes from 2007-03-29.
21054
0c2ead7e
DJ
210552007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21056
21057 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21058 fields short instead of int. Add explicit padding.
21059 (i387_cache_to_fsave): Remove unnecessary casts.
21060 (i387_fsave_to_cache): Doc fix.
21061 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21062
73725ff3
DJ
210632007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21064
21065 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21066 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21067
d99f33d8
PA
210682007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21069
21070 * configure.srv (arm*-*-mingw32ce*): Move near the other
21071 arm targets.
21072
68070c10
PA
210732007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21074
2482afc6 21075 * configure.ac: Add errno checking.
68070c10
PA
21076 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21077 sys/file.h and malloc.h.
21078 (AC_CHECK_DECLS): Add perror.
21079 (srv_mingwce): Handle.
2482afc6 21080 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21081 win32-i386-low.o to srv_tgtobj.
21082 (i[34567]86-*-mingw*): Likewise.
21083 (arm*-*-mingw32ce*): Add case.
21084 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21085 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21086 [__MINGW32CE__] (strerror): New function.
21087 [__MINGW32CE__] (errno): Define to GetLastError.
21088 [__MINGW32CE__] (COUNTOF): New macro.
21089 (remote_open): Remove extra close call.
21090 * mem-break.c (delete_breakpoint_at): New function.
21091 * mem-break.h (delete_breakpoint_at): Declare.
21092 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21093 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21094 [USE_WIN32API] (read, write): Add char* casts.
21095 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21096 * server.h: Include wincecompat.h on Windows CE.
21097 [HAVE_ERRNO_H]: Check.
21098 (perror): Declare if not declared.
21099 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21100 (perror_with_name): Remove errno declaration.
21101 * wincecompat.h: New.
21102 * wincecompat.c: New.
21103 * win32-low.h: New.
21104 * win32-arm-low.c: New.
21105 * win32-i386-low.c: New.
21106 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21107 (OUTMSG2): Make it safe.
21108 (_T): New macro.
21109 (COUNTOF): New macro.
21110 (NUM_REGS): Get it from the low target.
21111 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21112 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21113 (thread_rec): Let low target handle debug registers.
21114 (child_add_thread): Likewise.
21115 (child_init_thread_list): Likewise.
21116 (continue_one_thread): Likewise.
21117 (regptr): New.
21118 (do_child_fetch_inferior_registers): Move to ...
21119 * win32-i386-low.c: ... here, and rename to ...
21120 (do_fetch_inferior_registers): ... this.
889bf7c5 21121 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21122 Go through the low target.
21123 (do_child_store_inferior_registers): Use regptr.
21124 (strwinerror): New function.
21125 (win32_create_inferior): Handle Windows CE.
21126 Use strwinerror instead of strerror on Windows error
21127 codes. Add program to the error output.
21128 Don't close the main thread handle on Windows CE.
21129 (win32_attach): Use coredll.dll on Windows CE.
21130 (win32_kill): Close current process and current
21131 thread handles.
21132 (win32_detach): Use coredll.dll on Windows CE.
21133 (win32_resume): Let low target handle debug registers, and
21134 step request.
21135 (handle_exception): Add/Remove initial breakpoint. Avoid
21136 non-existant WSTOPSIG on Windows CE.
21137 (win32_read_inferior_memory): Cast to remove warning.
21138 (win32_arch_string): Go through the low target.
21139 (initialize_low): Call set_breakpoint_data with the low
21140 target's breakpoint.
21141 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21142 FOP_REGNUM, mappings): Move to ...
21143 * win32-i386-low.c: ... here.
21144 * win32-low.c (win32_thread_info): Move to ...
21145 * win32-low.h: ... here.
21146 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21147 win32-arm-low.c and wincecompat.c.
21148 (all:): Add $EXEEXT.
21149 (install-only:): Likewise.
21150 (gdbserver:): Likewise.
21151 (gdbreplay:): Likewise.
21152 * config.in: Regenerate.
21153 * configure: Regenerate.
21154
41093d81
PA
211552007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21156
21157 * win32-low.c: Rename typedef thread_info to
21158 win32_thread_info throughout.
21159
544afa54
PA
211602007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21161
21162 * win32-i386-low.c: Rename to ...
21163 * win32-low.c: ... this.
21164 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21165 * Makefile.in: Likewise.
21166
bce7165d
PA
211672007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21168
21169 * remote-utils.c (monitor_output): Constify msg parameter.
21170 * server.h (monitor_output): Likewise.
21171 * win32-i386-low.c (handle_output_debug_string): New.
21172 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21173 handle_output_debug_string.
21174 (get_child_debug_event): Likewise.
21175
506c7aa0
DJ
211762007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21177
21178 * server.c (main): Correct strtoul check.
21179
42c81e2a
DJ
211802007-03-27 Jon Ringle <jon@ringle.org>
21181
21182 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21183
9453113a
DJ
211842007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21185
21186 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21187
64a69107
DJ
211882007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21189
21190 * terminal.h: Check HAVE_SGTTY_H.
21191
211922007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21193
21194 * remote-utils.c (remote_open): Print out the assigned port number.
21195
c74d0ad8
DJ
211962007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21197
21198 * remote-utils.c (monitor_output): New function.
21199 * server.c (debug_threads): Define here.
21200 (monitor_show_help): New function.
21201 (handle_query): Handle qRcmd.
21202 (main): Do not handle 'd' packet.
21203 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21204 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21205 of debug_threads.
21206
de7c3b4a
PA
212072007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21208
21209 * Makefile.in (EXEEXT): New.
21210 (clean): Use $(EXEEXT).
21211
ef57601b
PA
212122007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21213
21214 * target.h (target_ops): Rename send_signal to request_interrupt,
21215 and remove enum target_signal parameter.
21216 * linux-low.c (linux_request_interrupt): Rename from
21217 linux_send_signal, and always send SIGINT.
21218 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21219 and always send SIGINT.
21220 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21221 of send_signal.
21222 (input_interrupt): Likewise.
21223
820f2bda
PA
212242007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21225
21226 * server.c (get_features_xml): Check if target implemented
21227 arch_string.
21228 * win32-i386-low.c (win32_arch_string): New.
21229 (win32_target_ops): Add win32_arch_string as arch_string member.
21230
ab39bf24
UW
212312007-02-22 Markus Deuling <deuling@de.ibm.com>
21232
21233 * spu-low.c (spu_arch_string): New.
21234 (spu_target_ops): Add spu_arch_string.
21235
61ff6e04
DJ
212362007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21237
21238 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21239 * configure.ac: Do not check for terminal.h.
21240 * configure, config.in: Regenerated.
21241
fb1e4ffc
DJ
212422007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21243
21244 * Makefile.in (OBS): Add $(XML_BUILTIN).
21245 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21246 (clean): Update.
21247 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21248 (arm-with-iwmmxt.c): New.
21249 * config.in, configure: Regenerate.
21250 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21251 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21252 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21253 (arm*-*-linux*): Add iWMMXt and regset support.
21254 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21255 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21256 (arm_store_wmmxregset, target_regsets): New.
21257 * server.c (get_features_xml): Take annex argument. Check builtin
21258 XML documents.
21259 (handle_query): Handle multiple annexes.
21260
0f48aa01
DJ
212612007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21262
21263 * remote-utils.c [USE_WIN32API] (read, write): Define.
21264 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21265 write.
21266
23181151
DJ
212672007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21268
21269 * linux-i386-low.c (the_low_target): Set arch_string.
21270 * linux-x86-64-low.c (the_low_target): Likewise.
21271 * linux-low.c (linux_arch_string): New.
21272 (linux_target_ops): Add it.
21273 * linux-low.h (struct linux_target_ops): Add arch_string.
21274 * server.c (write_qxfer_response): Use const void * for DATA.
21275 (get_features_xml): New.
21276 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21277 * target.h (struct target_ops): Add arch_string method.
21278
9d606399
DJ
212792007-01-03 Denis Pilat <denis.pilat@st.com>
21280 Daniel Jacobowitz <dan@codesourcery.com>
21281
21282 * linux-low.c (linux_kill): Handle being called with no threads.
21283 * win32-i386-low.c (win32_kill): Likewise.
21284 (get_child_debug_event): Clear current_process_handle.
21285
212862006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21287 Daniel Jacobowitz <dan@codesourcery.com>
21288
21289 * remote-utils.c (remote_open): Check the type of specified
21290 serial port devices before opening them.
21291 * server.c (main): Kill the inferior if an error occurs during
21292 the first remote_open.
21293
a5e13d24
DJ
212942006-12-05 Markus Deuling <deuling@de.ibm.com>
21295
21296 * README: Update supported targets.
21297
186947f7
DJ
212982006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21299
21300 * Makefile.in (clean): Remove reg-mips64.c.
21301 (reg-mips64.c, reg-mips64.o): New rules.
21302 * configure.srv: Handle mips64. Include regset support for mips.
21303 * linux-mips-low.c (union mips_register): New.
21304 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21305 (mips_breakpoint, mips_breakpoint_at): Use int.
21306 (mips_collect_register, mips_supply_register)
21307 (mips_collect_register_32bit, mips_supply_register_32bit)
21308 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21309 (mips_store_fpregset, target_regsets): New.
21310 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21311
a13e2c95
UW
213122006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21313
21314 * configure.srv: Add target "spu*-*-*".
21315 * Makefile.in (clean): Remove reg-spu.c.
21316 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21317 * spu-low.c: New file.
21318
cb7283db
DJ
213192006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21320
21321 * configure.ac: Correct td_thr_tls_get_addr test.
21322 * configure: Regenerated.
21323
89be2091
DJ
213242006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21325
21326 * linux-low.c (linux_wait_for_event): Reformat. Use the
21327 pass_signals array.
21328 * remote-utils.c (decode_address_to_semicolon): New.
21329 * server.c (pass_signals, handle_general_set): New.
21330 (handle_query): Mention QPassSignals for qSupported.
21331 (main): Call handle_general_set.
21332 * server.h (pass_signals, decode_address_to_semicolon): New.
21333
000ef4f0
DJ
213342006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21335
21336 * server.c (handle_query): Correct error handling for read_auxv.
21337
b7149293
UW
213382005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21339
21340 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21341 and srv_linux_thread_db to yes.
21342 * linux-s390-low.c (s390_fill_gregset): New function.
21343 (target_regsets): Define data structure.
21344
dae5f5cf
DJ
213452006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21346
21347 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21348 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21349 * config.in, configure: Regenerated.
21350 * inferiors.c (gdb_id_to_thread): New function.
21351 (gdb_id_to_thread_id): Use it.
21352 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21353 * linux-low.h (struct process_info): Add th member.
21354 (thread_db_get_tls_address): New prototype.
21355 * remote-utils.c (decode_address): Make non-static.
21356 * server.c (handle_query): Handle qGetTLSAddr.
21357 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21358 * target.h (struct target_ops): Add get_tls_address.
21359 * thread-db.c (maybe_attach_thread): Save the thread handle.
21360 (thread_db_get_tls_address): New.
21361
32ca6d61
DJ
213622006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21363
21364 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21365 (linux_resume_one_process): Take a siginfo_t *. Update all
21366 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21367 (struct pending_signals): Add a siginfo_t.
21368 (linux_wait_for_process): Always set last_status.
21369 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21370 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21371 * linux-low.h (struct process_info): Add last_status.
21372
5ffff7c1
DJ
213732006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21374
21375 * remote-utils.c (try_rle): New function.
21376 (putpkt_binary): Use it.
21377
8695c747
DJ
213782006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21379
21380 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21381 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21382 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21383 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21384 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21385 point registers.
21386
290fadea
RS
213872006-08-08 Richard Sandiford <richard@codesourcery.com>
21388
21389 * server.c (terminal_fd): New variable.
21390 (old_foreground_pgrp): Likewise.
21391 (restore_old_foreground_pgrp): New function.
21392 (start_inferior): Record the terminal file descriptor in terminal_fd
21393 and its original foreground group in old_foreground_pgrp. Register
21394 restore_old_foreground_pgrp with atexit().
21395
9f2e1e63
DJ
213962006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21397
21398 * server.c (handle_query): Correct qPart to qXfer.
21399
b80864fb
DJ
214002006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21401
21402 * configure.ac: Check for more headers which are missing on
21403 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21404 * configure.srv: Add Cygwin and mingw32.
21405 * remote-utils.c: Don't include headers unconditionally which
21406 are missing on mingw32. Include <winsock.h> for mingw32.
21407 (remote_open): Adjust for mingw32 support. Flush
21408 standard error after writing to it.
21409 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21410 (unblock_async_io, enable_async_io, disable_async_io)
21411 (readchar, getpkt): Update for Winsock support.
21412 (prepare_resume_reply): Expect a protocol signal number.
21413 * server.c: Disable <sys/wait.h> on mingw32.
21414 (start_inferior): Adjust for mingw32 support. Flush
21415 standard error after writing to it.
21416 (attach_inferior): Likewise. Use protocol signal
21417 numbers.
21418 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21419 and names.
21420 * win32-i386-low.c: New file.
21421 * Makefile.in (XM_CLIBS): Set.
21422 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21423 (win32-i386-low.o): New dependency rule.
21424 * linux-low.c (linux_wait): Use target signal numbers.
21425 * target.h (struct target_ops): Doc fix.
21426 * server.h (target_signal_to_name): New prototype.
21427 * gdbreplay.c: Don't include headers unconditionally which
21428 are missing on mingw32. Include <winsock.h> for mingw32.
21429 (remote_close, remote_open): Adjust for Winsock support.
21430 * configure, config.in: Regenerated.
21431
0876f84a
DJ
214322006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21433
21434 * server.c (decode_xfer_read, write_qxfer_response): New.
21435 (handle_query): Take a packet length argument. Handle
21436 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21437 the qSupported response.
21438 (main): Update call to handle_query.
21439
01f9e8fa
DJ
214402006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21441
21442 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21443 (putpkt_binary): Renamed from putpkt and adjusted for binary
21444 data.
21445 (putpkt): New wrapper for putpkt_binary.
21446 (readchar): Don't mask off the high bit.
21447 (decode_X_packet): New function.
21448 * server.c (main): Call putpkt_binary if a handler sets the packet
21449 length. Save the length of the incoming packet. Handle 'X'.
21450 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21451
be2a5f71
DJ
214522006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21453
21454 * server.c (handle_query): Handle qSupported.
21455
ea025f5f
DJ
214562006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21457
21458 * remote-utils.c (all_symbols_looked_up): New variable.
21459 (look_up_one_symbol): Check it.
21460 * server.h (look_up_one_symbol): New declaration.
21461 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21462
9308fc88
DJ
214632006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21464
21465 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21466 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21467 (PTRACE_GET_THREAD_AREA): Define.
21468 (ps_get_thread_area): New function.
21469
52fb6437
NS
214702006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21471
21472 * configure.srv (m68k*-*-uclinux*): New target.
21473 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21474 (linux_resume_one_process): Remove extraneous cast.
21475 (linux_read_offsets): New.
21476 (linux_target_op): Add linux_read_offsets on mmuless systems.
21477 * server.c (handle_query): Add qOffsets logic.
21478 * target.h (struct target_ops): Add read_offsets.
21479
21b0f40c
DJ
214802006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21481
21482 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21483 (PTRACE_GET_THREAD_AREA): Define.
21484 (ps_get_thread_area): New function.
21485 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21486 (linux-x86-64-low.o): Update.
21487
0050a760
DJ
214882006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21489
21490 * configure.ac: Remove checks for prfpregset_t.
21491 * gdb_proc_service.h: New file.
21492 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21493 new "gdb_proc_service.h".
21494 * proc-service.c: Likewise.
21495 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21496 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21497 * Makefile.in (gdb_proc_service_h): Updated.
21498 * configure, config.in: Regenerated.
21499
b92a518e
DJ
215002006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21501
21502 * remote-utils.c (prepare_resume_reply): Move declaration
21503 of gdb_id_from_wait to the top of the block.
21504
545587ee
DJ
215052006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21506
21507 * linux-low.c (regsets_store_inferior_registers): Read the regset
21508 from the target before filling it.
21509
9db87ebd
DJ
215102006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21511
21512 * server.c (attach_inferior): Return SIGTRAP for a successful
21513 attach.
21514
dd24457d
DJ
215152006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21516
21517 * Makefile.in (OBS): Add version.o.
21518 (STAGESTUFF): Delete.
21519 (version.o): Add dependencies.
21520 (version.c): Replace rule.
21521 (clean): Remove version.c.
21522 * server.c (gdbserver_version): New.
21523 (gdbserver_usage): Use printf.
21524 (main): Handle --version and --help.
21525 * server.h (version, host_name): Add declarations.
21526
6f0f660e
EZ
215272005-12-23 Eli Zaretskii <eliz@gnu.org>
21528
889bf7c5
PA
21529 * linux-arm-low.c:
21530 * linux-arm-low.c:
21531 * inferiors.c:
21532 * i387-fp.h:
21533 * i387-fp.c:
21534 * gdbreplay.c:
21535 * regcache.c:
21536 * proc-service.c:
21537 * mem-break.h:
21538 * mem-break.c:
21539 * linux-x86-64-low.c:
21540 * linux-sh-low.c:
21541 * linux-s390-low.c:
21542 * linux-ppc64-low.c:
21543 * linux-ppc-low.c:
21544 * linux-mips-low.c:
21545 * linux-m68k-low.c:
21546 * linux-m32r-low.c:
21547 * linux-low.h:
21548 * linux-low.c:
21549 * linux-ia64-low.c:
21550 * linux-i386-low.c:
21551 * linux-crisv32-low.c:
21552 * thread-db.c:
21553 * terminal.h:
21554 * target.h:
21555 * target.c:
21556 * server.h:
21557 * server.c:
21558 * remote-utils.c:
21559 * regcache.h:
21560 * utils.c:
21561 * Makefile.in:
21562 * configure.ac:
6f0f660e
EZ
21563 * gdbserver.1: Add (C) after Copyright. Update the FSF
21564 address.
21565
9d1fb177
DJ
215662005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21567
21568 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21569 (arm_breakpoint_at): Recognize both breakpoints.
21570 (the_low_target): Use the correct breakpoint instruction.
21571
011a70c2
DJ
215722005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21573
21574 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21575 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21576 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21577 (the_low_target): Update.
21578
7fb85e41
AS
215792005-10-25 Andreas Schwab <schwab@suse.de>
21580
21581 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21582
21583 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21584 (ia64_num_regs): Reduce to 462.
21585
3db0444b
DJ
215862005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21587
21588 * acinclude.m4: Correct quoting.
21589 * aclocal.m4: Regenerated.
21590
21591 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21592 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21593 (thread_db_init): Call thread_db_err_str.
21594 * configure.ac: Check for TD_VERSION.
21595 * config.in, configure: Regenerated.
21596
bee0189a
DJ
215972005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21598
21599 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21600
e9d25b98
DJ
216012005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21602
21603 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21604 is not available. Define HAVE_PTRACE_GETREGS if it is.
21605 * config.in, configure: Regenerated.
21606 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21607 * linux-i386-low.c, linux-m68k-low.c: Update to use
21608 HAVE_PTRACE_GETREGS.
21609 * linux-low.c (regsets_fetch_inferior_registers)
21610 (regsets_store_inferior_registers): Only return 0 if we processed
21611 GENERAL_REGS.
21612 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21613 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21614
a06660f7
DJ
216152005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21616
21617 * inferiors.c (struct thread_info): Add gdb_id.
21618 (add_thread): Add gdb_id argument.
21619 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21620 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21621 calls to add_thread.
21622 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21623 * server.c (handle_query): Use thread_to_gdb_id.
21624 (handle_v_cont, main): Use gdb_id_to_thread_id.
21625 * server.h (add_thread): Update prototype.
21626 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21627 prototypes.
21628
5a1f5858
DJ
216292005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21630
21631 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21632 left-padded registers.
21633 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21634 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21635
e122f1f5
SE
216362005-07-01 Steve Ellcey <sje@cup.hp.com>
21637
21638 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21639 * configure: Regenerate.
21640 * config.in: Regenerate.
21641 * server.h (NEED_DECLARATION_STRERROR):
21642 Replace with !HAVE_DECL_STRERROR.
21643
d592fa2f
DJ
216442005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21645
21646 * linux-low.c (linux_wait, linux_send_signal): Don't test
21647 an unsigned long variable for > 0 if it could be MAX_ULONG.
21648 * server.c (myresume): Likewise.
21649 * target.c (set_desired_inferior): Likewise.
21650
ccbd4912
MK
216512005-06-13 Mark Kettenis <kettenis@gnu.org>
21652
21653 * configure.ac: Simplify and improve check for socklen_t.
21654 * configure, config.in: Regenerate.
21655
f450004a
DJ
216562005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21657
21658 * acconfig.h: Remove.
21659 * configure.ac: Add a test for socklen_t. Use three-argument
21660 AC_DEFINE throughout.
21661 * config.in: Regenerated using autoheader 2.59.
21662 * configure: Regenerated.
21663
21664 * gdbreplay.c (socklen_t): Provide a default.
21665 (remote_open): Use socklen_t.
21666 * remote-utils.c (socklen_t): Provide a default.
21667 (remote_open): Use socklen_t.
21668 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21669 unsigned char.
21670
21671 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21672 char for buffers.
21673 * linux-low.c (linux_read_memory, linux_write_memory)
21674 (linux_read_auxv): Likewise.
21675 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21676 (check_mem_write): Likewise.
21677 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21678 Likewise.
21679 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21680 (registers_from_string, register_data): Likewise.
21681 * server.c (handle_query, main): Likewise.
21682 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21683 (decode_M_packet): Likewise.
21684 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21685 * target.h (struct target_ops): Update read_memory, write_memory,
21686 and read_auxv.
21687 (read_inferior_memory, write_inferior_memory): Update.
21688 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21689 to unsigned char *.
21690 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21691 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21692 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21693 linux-s390-low.c, linux-sh-low.c: Update for changes in
21694 read_inferior_memory and the_low_target->breakpoint.
21695
eee84df1
DJ
216962005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21697
21698 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21699 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21700 * configure.srv: Add powerpc64-*-linux*.
21701 * linux-ppc64-low.c: New file.
21702
45b134e5
OF
217032005-05-23 Orjan Friberg <orjanf@axis.com>
21704
21705 * linux-cris-low.c: New file with support for CRIS.
21706 * linux-crisv32-low.c: Ditto for CRISv32.
21707 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21708 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21709 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21710 reg-crisv32.o, and reg-crisv32.c to make rules.
21711 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21712 recognized targets.
21713
48d93c75
UW
217142005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21715
21716 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21717 of sizeof (PTRACE_XFER_TYPE).
21718 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21719
e013ee27
OF
217202005-05-12 Orjan Friberg <orjanf@axis.com>
21721
889bf7c5 21722 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21723 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21724 pointers for hardware watchpoint support.
21725 * linux-low.h (struct linux_target_ops): Ditto.
21726 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21727 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21728 to linux_target_ops.
21729 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21730 reply packet.
21731 * server.c (main): Recognize 'Z' and 'z' packets.
21732
b0ded00b
UW
217332005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21734
21735 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21736 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21737 (the_low_target): Add new members.
21738
8643e2ad
DJ
217392005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21740
21741 * proc-service.c (ps_lgetregs): Search all_processes instead of
21742 all_threads.
21743
fc620387
DJ
217442005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21745
21746 * server.c (start_inferior): Change return type to int.
21747 (attach_inferior): Change sigptr to int *.
21748 (handle_v_cont, handle_v_requests): Change signal to int *.
21749 (main): Change signal to int.
21750
217512005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21752
21753 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21754 * configure.srv: Add m32r*-*-linux*.
21755 * linux-m32r-low.c: New file.
21756
e0e76420
DJ
217572005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21758
21759 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21760
a1928bad
DJ
217612005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21762
21763 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21764 Take unsigned long arguments for PIDs.
21765 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21766 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21767 (wait_for_sigstop, linux_resume_one_process)
21768 (regsets_fetch_inferior_registers, linux_send_signal)
21769 (linux_read_auxv): Likewise. Update the types of variables holding
21770 PIDs. Update format string specifiers.
21771 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21772 * remote-utils.c (prepare_resume_reply): Likewise.
21773 * server.c (cont_thread, general_thread, step_thread)
21774 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21775 unsigned long.
21776 (handle_query): Update format specifiers.
21777 (handle_v_cont, main): Use strtoul for thread IDs.
21778 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21779 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21780 (general_thread, step_thread, thread_from_wait)
21781 (old_thread_from_wait): Update.
21782 * target.h (struct thread_resume): Use unsigned long for THREAD.
21783 (struct target_ops): Use unsigned long for arguments to attach and
21784 thread_alive.
21785
dcdb98d2
DJ
217862005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21787
21788 * acinclude.m4: Include bfd/bfd.m4 directly.
21789 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21790 <agriffis@toolchain.org>.
21791 * aclocal.m4, configure: Regenerated.
21792
bec39cab
AC
217932005-01-07 Andrew Cagney <cagney@gnu.org>
21794
21795 * configure.ac: Rename configure.in, require autoconf 2.59.
21796 * configure: Re-generate.
21797
434c4c77
DJ
217982004-12-08 Daniel Jacobowitz <dan@debian.org>
21799
21800 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21801 LIBS when finished.
21802 * aclocal.m4: Regenerated.
21803 * configure: Regenerated.
21804
db1d3e1b
AS
218052004-11-21 Andreas Schwab <schwab@suse.de>
21806
21807 * linux-m68k-low.c (m68k_num_gregs): Define.
21808 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21809 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21810 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21811 (m68k_breakpoint_at): New. Add to the_low_target.
21812
21813 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21814 srv_linux_thread_db to yes.
21815
43360365
JB
218162004-10-20 Joel Brobecker <brobecker@gnat.com>
21817
21818 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21819 (ARCH_SET_FS): Likewise.
21820 (ARCH_GET_FS): Likewise.
21821 (ARCH_GET_GS): Likewise.
21822
fd500816
DJ
218232004-10-16 Daniel Jacobowitz <dan@debian.org>
21824
21825 * linux-i386-low.c (ps_get_thread_area): New.
21826 * linux-x86-64-low.c (ps_get_thread_area): New.
21827 * linux-low.c: Include <sys/syscall.h>.
21828 (linux_kill_one_process): Don't kill the first thread here.
21829 (linux_kill): Kill the first thread here.
21830 (kill_lwp): New function.
21831 (send_sigstop, linux_send_signal): Use it.
21832 * proc-service.c: Clean up #ifdefs.
21833 (fpregset_info): Delete.
21834 (ps_lgetregs): Update and enable implementation.
21835 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21836 implementations.
21837 * remote-utils.c (struct sym_cache, symbol_cache): New.
21838 (input_interrupt): Print a clearer message.
21839 (async_io_enabled): New variable.
21840 (enable_async_io, disable_async_io): Use it. Update comments.
21841 (look_up_one_symbol): Use the symbol cache.
21842 * thread-db.c (thread_db_look_up_symbols): New function.
21843 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21844
f6de3c42
DJ
218452004-10-16 Daniel Jacobowitz <dan@debian.org>
21846
21847 * configure.in: Test for -rdynamic.
21848 * configure: Regenerated.
21849 * Makefile (INTERNAL_LDFLAGS): New.
21850 (gdbserver, gdbreplay): Use it.
21851
2c0fc042
AC
218522004-09-02 Andrew Cagney <cagney@gnu.org>
21853
21854 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21855
075b3282
DJ
218562004-03-23 Daniel Jacobowitz <drow@mvista.com>
21857
21858 * linux-low.c (linux_wait): Clear all_processes list also.
21859
fa6a77dc
DJ
218602004-03-12 Daniel Jacobowitz <drow@mvista.com>
21861
21862 * linux-low.c: Include <errno.h>. Remove extern declaration of
21863 errno.
21864
6d782a97
DJ
218652004-03-12 Daniel Jacobowitz <drow@mvista.com>
21866
21867 * gdbreplay.c, server.h, utils.c: Update copyright years.
21868
3a7fb99b
DJ
218692004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21870
21871 * server.c (main): Print child status or termination signal from
21872 variable 'signal', not 'sig'.
21873
c3e735a6
DJ
218742004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21875
21876 * linux-low.c (linux_read_memory): Change return type to
21877 int. Check for and return error from ptrace().
21878 * target.c (read_inferior_memory): Change return type to int. Pass
21879 back return status from the_target->read_memory().
21880 * target.h (struct target_ops): Adapt *read_memory() prototype.
21881 Update comment.
21882 (read_inferior_memory): Adapt prototype.
21883 * server.c (main): Return an error packet if
21884 read_inferior_memory() returns an error.
21885
a59d1c82
DJ
218862004-03-04 Daniel Jacobowitz <drow@mvista.com>
21887
21888 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21889 Unify with other clean targets.
21890
dc3f8883
DJ
218912004-02-29 Daniel Jacobowitz <drow@mvista.com>
21892
21893 * server.c (handle_v_cont): Call set_desired_inferior.
21894
89a208da
DJ
218952004-02-29 Daniel Jacobowitz <drow@mvista.com>
21896
21897 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21898
62ea82f5
DJ
218992004-02-29 Daniel Jacobowitz <drow@mvista.com>
21900
21901 * linux-low.c (linux_wait): Unblock async I/O.
21902 (linux_resume): Block and enable async I/O.
21903 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21904 * server.h (block_async_io, unblock_async_io): Add prototypes.
21905
6910d122
DJ
219062004-02-29 Daniel Jacobowitz <drow@mvista.com>
21907
21908 * remote-utils.c (remote_open): Print a status notice after
21909 opening a TCP port.
21910 * server.c (attach_inferior): Print a status notice after
21911 attaching.
21912
219132004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21914
21915 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21916
c89dc5d4
DJ
219172004-02-26 Daniel Jacobowitz <drow@mvista.com>
21918
21919 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21920 error packet.
21921 * server.c, target.h: Update copyright years.
21922
4b8dad4a
RM
219232004-02-25 Roland McGrath <roland@redhat.com>
21924
21925 * target.h (struct target_ops): New member `read_auxv'.
21926 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21927 * linux-low.c (linux_read_auxv): New function.
21928 (linux_target_ops): Initialize `read_auxv' member to that.
21929
d7446758
JB
219302004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21931
21932 Committed by Jim Blandy <jimb@redhat.com>.
21933
21934 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21935 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21936 instead of GPR_SIZE to distiguish s390 and s390x targets.
21937
5544ad89
DJ
219382004-01-31 Daniel Jacobowitz <drow@mvista.com>
21939
21940 * linux-low.c: Update copyright year.
21941 (check_removed_breakpoint): Clear pending_is_breakpoint.
21942 (linux_set_resume_request, linux_queue_one_thread)
21943 (resume_status_pending_p): New functions.
21944 (linux_continue_one_thread): Use process->resume.
21945 (linux_resume): Only resume threads if there are no pending events.
21946 * linux-low.h (struct process_info): Add resume request
21947 pointer.
21948
2a68b70e
DJ
219492004-01-30 Daniel Jacobowitz <drow@mvista.com>
21950
21951 * regcache.c (new_register_cache): Clear the allocated register
21952 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21953
64386c31
DJ
219542003-10-13 Daniel Jacobowitz <drow@mvista.com>
21955
21956 * linux-low.c (linux_resume): Take a struct thread_resume *
21957 argument.
21958 (linux_wait): Update call.
21959 (resume_ptr): New static variable.
21960 (linux_continue_one_thread): Renamed from
21961 linux_continue_one_process. Use resume_ptr.
21962 (linux_resume): Use linux_continue_one_thread.
21963 * server.c (handle_v_cont, handle_v_requests): New functions.
21964 (myresume): New function.
21965 (main): Handle 'v' case.
21966 * target.h (struct thread_resume): New type.
21967 (struct target_ops): Change argument of "resume" to struct
21968 thread_resume *.
21969 (myresume): Delete macro.
21970
c938e9b0
L
219712003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21972
21973 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21974 (uninstall): Support DESTDIR.
21975
7f313d07
BC
21976Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21977
21978 * configure.srv: Add xscale*linux copy of arm*linux entry.
21979
3b2fc2ea
DJ
219802003-07-24 Daniel Jacobowitz <drow@mvista.com>
21981
21982 * linux-arm-low.c (arm_reinsert_addr): New function.
21983 (the_low_target): Add arm_reinsert_addr.
21984
1c0a559e
MK
219852003-07-08 Mark Kettenis <kettenis@gnu.org>
21986
21987 * mem-break.c: Remove whitespace at end of file.
21988
43d5792c
DJ
219892003-06-28 Daniel Jacobowitz <drow@mvista.com>
21990
21991 * configure.in: Check whether we need to prototype strerror.
21992 * server.h: Optionally prototype strerror.
21993 * gdbreplay.c (perror_with_name): Use strerror.
21994 * linux-low.c (linux_attach_lwp): Use strerror.
21995 * utils.c (perror_with_name): Use strerror.
21996 * config.in, configure: Regenerated.
21997
c8a86edf
DJ
219982003-06-28 Daniel Jacobowitz <drow@mvista.com>
21999
22000 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22001 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22002
73d37363
DJ
220032003-06-20 Daniel Jacobowitz <drow@mvista.com>
22004
22005 * Makefile.in (SFILES): Update.
22006 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22007 low-sun3.c: Remove files.
22008
6ad8ae5c
DJ
220092003-06-17 Daniel Jacobowitz <drow@mvista.com>
22010
22011 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22012 (linux_detach_one_process, linux_detach): New functions.
22013 (linux_target_ops): Add linux_detach.
22014 * server.c (main): Handle 'D' packet.
22015 * target.h (struct target_ops): Add "detach" member.
22016 (detach_inferior): Define.
22017
1581182a
MK
220182003-06-13 Mark Kettenis <kettenis@gnu.org>
22019
22020 From Kelley Cook <kelleycook@wideopenwest.com>:
22021 * configure.srv: Accept i[34567]86 variants.
22022
e5379b03
DJ
220232003-06-05 Daniel Jacobowitz <drow@mvista.com>
22024
22025 * linux-low.c (linux_wait_for_event): Correct comment typos.
22026 (linux_resume_one_process): Call check_removed_breakpoint.
22027 (linux_send_signal): New function.
22028 (linux_target_ops): Add linux_send_signal.
22029 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22030 of kill.
22031 * target.h (struct target_ops): Add send_signal.
22032
2ff29de4
JB
220332003-05-29 Jim Blandy <jimb@redhat.com>
22034
22035 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22036 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22037 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22038 away part of the register's value.
22039
254787d4
DJ
220402003-03-26 Daniel Jacobowitz <drow@mvista.com>
22041
22042 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22043 (linux_wait_for_event, linux_init_signals): Likewise.
22044
94e10508
DJ
220452003-03-17 Daniel Jacobowitz <drow@mvista.com>
22046
22047 * configure.in: Check for stdlib.h.
22048 * configure: Regenerated.
22049 * config.in: Regenerated.
22050
4c0711e0
DJ
220512003-01-04 Andreas Schwab <schwab@suse.de>
22052
22053 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22054
ef66e766
AC
220552003-01-02 Andrew Cagney <ac131313@redhat.com>
22056
22057 * Makefile.in: Remove obsolete code.
22058
a1358604
DJ
220592002-11-20 Daniel Jacobowitz <drow@mvista.com>
22060
22061 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22062 defined(PT_FPR0_HI).
22063
23ce3b1c
DJ
220642002-11-17 Stuart Hughes <seh@zee2.com>
22065
22066 * linux-arm-low.c (arm_num_regs): Increase.
22067 (arm_regmap): Include status register.
22068
220692002-11-17 Daniel Jacobowitz <drow@mvista.com>
22070
22071 * linux-low.c (register_addr): Remove incorrect -1 check.
22072
a9fa9f7d
DJ
220732002-08-29 Daniel Jacobowitz <drow@mvista.com>
22074
22075 * linux-low.c (linux_create_inferior): Call setpgid. Return
22076 the new PID.
22077 (unstopped_p, linux_signal_pid): Remove.
22078 (linux_target_ops): Remove linux_signal_pid.
22079 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22080 global instead of target method.
22081 * target.h (struct target_ops): Remove signal_pid. Update comment
22082 for create_inferior.
22083 * server.c (signal_pid): New variable.
22084 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22085 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22086 (attach_inferior): Set signal_pid.
22087
17574093
DJ
220882002-08-23 Daniel Jacobowitz <drow@mvista.com>
22089
22090 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22091
220922002-08-20 Jim Blandy <jimb@redhat.com>
22093
22094 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22095 default for this.
22096
220972002-08-01 Andrew Cagney <cagney@redhat.com>
22098
22099 * Makefile.in: Make chill references obsolete.
22100
221012002-07-24 Kevin Buettner <kevinb@redhat.com>
22102
22103 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22104 * configure: Regenerate.
22105 * config.in: Regenerate.
22106
221072002-07-09 David O'Brien <obrien@FreeBSD.org>
22108
22109 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22110 (perror_with_name, remote_close, remote_open, expect, play): Static.
22111
221122002-07-04 Michal Ludvig <mludvig@suse.cz>
22113
4b8dad4a 22114 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22115 byte offsets instead of an array of indexes.
22116 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22117
221182002-06-13 Daniel Jacobowitz <drow@mvista.com>
22119
22120 * regcache.c: Add comment.
22121
221222002-06-11 Daniel Jacobowitz <drow@mvista.com>
22123
22124 * thread-db.c: New file.
22125 * proc-service.c: New file.
22126 * acinclude.m4: New file.
22127 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22128 proc-service.o, and thread-db.o.
22129 (linux-low.o): Add USE_THREAD_DB.
22130 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22131 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22132 * aclocal.m4: Regenerated.
22133 * config.in: Regenerated.
22134 * configure: Regenerated.
22135 * configure.in: Check for proc_service.h, sys/procfs.h,
22136 thread_db.h, and linux/elf.h headrs.
22137 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22138 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22139 Check for -lthread_db and thread support.
22140 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22141 PowerPC, and SuperH.
22142 * i387-fp.c: Constify arguments.
22143 * i387-fp.h: Likewise.
22144 * inferiors.c: (struct thread_info): Renamed from
22145 `struct inferior_info'. Remove PID member. Use generic inferior
22146 list header. All uses updated.
22147 (inferiors, signal_pid): Removed.
22148 (all_threads): New variable.
22149 (get_thread): Define.
22150 (add_inferior_to_list): New function.
22151 (for_each_inferior): New function.
22152 (change_inferior_id): New function.
22153 (add_inferior): Removed.
22154 (remove_inferior): New function.
22155 (add_thread): New function.
22156 (free_one_thread): New function.
22157 (remove_thread): New function.
22158 (clear_inferiors): Use for_each_inferior and free_one_thread.
22159 (find_inferior): New function.
22160 (find_inferior_id): New function.
22161 (inferior_target_data): Update argument type.
22162 (set_inferior_target_data): Likewise.
22163 (inferior_regcache_data): Likewise.
22164 (set_inferior_regcache_data): Likewise.
22165 * linux-low.c (linux_bp_reinsert): Remove.
22166 (all_processes, stopping_threads, using_thrads)
22167 (struct pending_signals, debug_threads, pid_of): New.
22168 (inferior_pid): Replace with macro.
22169 (struct inferior_linux_data): Remove.
22170 (get_stop_pc, add_process): New functions.
22171 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22172 Use add_process and add_thread.
22173 (linux_attach_lwp): New function, based on old linux_attach. Use
22174 add_process and add_thread. Set stop_expected for new threads.
22175 (linux_attach): New function.
22176 (linux_kill_one_process): New function.
22177 (linux_kill): Kill all LWPs.
22178 (linux_thread_alive): Use find_inferior_id.
22179 (check_removed_breakpoints, status_pending_p): New functions.
22180 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22181 Update. Use WNOHANG. Wait for cloned processes also. Update process
22182 struct for the found process.
22183 (linux_wait_for_event): New function.
22184 (linux_wait): Use it. Support LWPs.
22185 (send_sigstop, wait_for_sigstop, stop_all_processes)
22186 (linux_resume_one_process, linux_continue_one_process): New functions.
22187 (linux_resume): Support LWPs.
22188 (REGISTER_RAW_SIZE): Remove.
22189 (fetch_register): Use register_size instead. Call supply_register.
22190 (usr_store_inferior_registers): Likewise. Call collect_register.
22191 Fix recursive case.
22192 (regsets_fetch_inferior_registers): Improve error message.
22193 (regsets_store_inferior_registers): Add debugging.
22194 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22195 (unstopped_p, linux_signal_pid): New functions.
22196 (linux_target_ops): Add linux_signal_pid.
22197 (linux_init_signals): New function.
22198 (initialize_low): Call it. Initialize using_threads.
22199 * regcache.c (inferior_regcache_data): Add valid
22200 flag.
22201 (get_regcache): Fetch registers lazily. Add fetch argument
22202 and update all callers.
22203 (regcache_invalidate_one, regcache_invalidate): New
22204 functions.
22205 (new_register_cache): Renamed from create_register_cache.
22206 Return the new regcache.
22207 (free_register_cache): Change argument to a void *.
22208 (registers_to_string, registers_from_string): Call get_regcache
22209 with fetch flag set.
22210 (register_data): Make static. Pass fetch flag to get_regcache.
22211 (supply_register): Call get_regcache with fetch flag clear.
22212 (collect_register): Call get_regcache with fetch flag set.
22213 (collect_register_as_string): New function.
22214 * regcache.h: Update.
22215 * remote-utils.c (putpkt): Flush after debug output and use
22216 stderr.
22217 Handle input interrupts while waiting for an ACK.
22218 (input_interrupt): Use signal_pid method.
22219 (getpkt): Flush after debug output and use stderr.
22220 (outreg): Use collect_register_as_string.
22221 (new_thread_notify, dead_thread_notify): New functions.
22222 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22223 and general_thread.
22224 (look_up_one_symbol): Flush after debug output.
22225 * server.c (step_thread, server_waiting): New variables.
22226 (start_inferior): Don't use signal_pid. Update call to mywait.
22227 (attach_inferior): Update call to mywait.
22228 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22229 (main): Don't fetch/store registers explicitly. Use
22230 set_desired_inferior. Support proposed ``Hs'' packet. Update
22231 calls to mywait.
22232 * server.h: Update.
22233 (struct inferior_list, struct_inferior_list_entry): New.
22234 * target.c (set_desired_inferior): New.
22235 (write_inferior_memory): Constify.
22236 (mywait): New function.
22237 * target.h: Update.
22238 (struct target_ops): New signal_pid method.
22239 (mywait): Removed macro, added prototype.
22240
22241 * linux-low.h (regset_func): Removed.
22242 (regset_fill_func, regset_store_func): New.
22243 (enum regset_type): New.
22244 (struct regset_info): Add type field. Use new operation types.
22245 (struct linux_target_ops): stop_pc renamed to get_pc.
22246 Add decr_pc_after_break and breakpoint_at.
22247 (get_process, get_thread_proess, get_process_thread)
22248 (strut process_info, all_processes, linux_attach_lwp)
22249 (thread_db_init): New.
22250
22251 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22252 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22253 (the_low_target): Add new members.
22254 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22255 (i386_store_fpxregset): Constify.
22256 (target_regsets): Add new kind identifier.
22257 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22258 (i386_set_pc): Add debugging.
22259 (i386_breakpoint_at): New function.
22260 (the_low_target): Add new members.
22261 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22262 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22263 (mips_breakpoint_at): New.
22264 (the_low_target): Add new members.
22265 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22266 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22267 (the_low_target): Add new members.
22268 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22269 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22270 (the_low_target): Add new members.
22271 * linux-x86-64-low.c (target_regsets): Add new kind
22272 identifier.
22273
222742002-05-15 Daniel Jacobowitz <drow@mvista.com>
22275
22276 From Martin Pool <mbp@samba.org>:
22277 * server.c (gdbserver_usage): New function.
22278 (main): Call it.
22279
222802002-05-14 Daniel Jacobowitz <drow@mvista.com>
22281
22282 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22283 stop_at -> stop_pc.
22284
222852002-05-04 Andrew Cagney <ac131313@redhat.com>
22286
22287 * Makefile.in: Remove obsolete code.
22288
222892002-04-24 Michal Ludvig <mludvig@suse.cz>
22290
22291 * linux-low.c (regsets_fetch_inferior_registers),
22292 (regsets_store_inferior_registers): Removed cast to int from
22293 ptrace() calls.
22294 * regcache.h: Added declaration of struct inferior_info.
22295
222962002-04-20 Daniel Jacobowitz <drow@mvista.com>
22297
22298 * inferiors.c (struct inferior_info): Add regcache_data.
22299 (add_inferior): Call create_register_cache.
22300 (clear_inferiors): Call free_register_cache.
22301 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22302 * regcache.c (struct inferior_regcache_data): New.
22303 (registers): Remove.
22304 (get_regcache): New function.
22305 (create_register_cache, free_register_cache): New functions.
22306 (set_register_cache): Don't initialize the register cache here.
22307 (registers_to_string, registers_from_string, register_data): Call
22308 get_regcache.
22309 * regcache.h: Add prototypes.
22310 * server.h: Likewise.
22311
223122002-04-20 Daniel Jacobowitz <drow@mvista.com>
22313
22314 * mem-break.c: New file.
22315 * mem-break.h: New file.
22316 * Makefile.in: Add mem-break.o rule; update server.h
22317 dependencies.
22318 * inferiors.c (struct inferior_info): Add target_data
22319 member.
22320 (clear_inferiors): Free target_data member if set.
22321 (inferior_target_data, set_inferior_target_data): New functions.
22322 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22323 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22324 * linux-low.c (linux_bp_reinsert): New variable.
22325 (struct inferior_linux_data): New.
22326 (linux_create_inferior): Use set_inferior_target_data.
22327 (linux_attach): Likewise. Call add_inferior.
22328 (linux_wait_for_one_inferior): New function.
22329 (linux_wait): Call it.
22330 (linux_write_memory): Add const.
22331 (initialize_low): Call set_breakpoint_data.
22332 * linux-low.h (struct linux_target_ops): Add breakpoint
22333 handling members.
22334 * server.c (attach_inferior): Remove extra add_inferior
22335 call.
22336 * server.h: Include mem-break.h. Update inferior.c
22337 prototypes.
22338 * target.c (read_inferior_memory)
22339 (write_inferior_memory): New functions.
22340 * target.h (read_inferior_memory)
22341 (write_inferior_memory): Change macros to prototypes.
22342 (struct target_ops): Update comments. Add const to write_memory
22343 definition.
22344
223452002-04-11 Daniel Jacobowitz <drow@mvista.com>
22346
22347 * linux-low.c (usr_store_inferior_registers): Support
22348 registers which are allowed to fail to store.
22349 * linux-low.h (linux_target_ops): Likewise.
22350 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22351 (ppc_cannot_store_register): FPSCR may not be storable.
22352
223532002-04-09 Daniel Jacobowitz <drow@mvista.com>
22354
22355 * server.h: Include <string.h> if HAVE_STRING_H.
22356 * ChangeLog: Correct paths in last ChangeLog entry.
22357
223582002-04-09 Daniel Jacobowitz <drow@mvista.com>
22359
22360 * linux-low.h: Remove obsolete prototypes.
22361 (struct linux_target_ops): New.
22362 (extern the_low_target): New.
22363 * linux-low.c (num_regs, regmap): Remove declarations.
22364 (register_addr): Use the_low_target explicitly.
22365 (fetch_register): Likewise.
22366 (usr_fetch_inferior_registers): Likewise.
22367 (usr_store_inferior_registers): Likewise.
22368 * linux-arm-low.c (num_regs): Remove.
22369 (arm_num_regs): Define.
22370 (arm_regmap): Renamed from regmap, made static.
22371 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22372 made static.
22373 (arm_cannot_store_register): Renamed from cannot_store_register,
22374 made static.
22375 (the_low_target): New.
22376 * linux-i386-low.c (num_regs): Remove.
22377 (i386_num_regs): Define.
22378 (i386_regmap): Renamed from regmap, made static.
22379 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22380 made static.
22381 (i386_cannot_store_register): Renamed from cannot_store_register,
22382 made static.
22383 (the_low_target): New.
22384 * linux-ia64-low.c (num_regs): Remove.
22385 (ia64_num_regs): Define.
22386 (ia64_regmap): Renamed from regmap, made static.
22387 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22388 made static.
22389 (ia64_cannot_store_register): Renamed from cannot_store_register,
22390 made static.
22391 (the_low_target): New.
22392 * linux-m68k-low.c (num_regs): Remove.
22393 (m68k_num_regs): Define.
22394 (m68k_regmap): Renamed from regmap, made static.
22395 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22396 made static.
22397 (m68k_cannot_store_register): Renamed from cannot_store_register,
22398 made static.
22399 (the_low_target): New.
22400 * linux-mips-low.c (num_regs): Remove.
22401 (mips_num_regs): Define.
22402 (mips_regmap): Renamed from regmap, made static.
22403 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22404 made static.
22405 (mips_cannot_store_register): Renamed from cannot_store_register,
22406 made static.
22407 (the_low_target): New.
22408 * linux-ppc-low.c (num_regs): Remove.
22409 (ppc_num_regs): Define.
22410 (ppc_regmap): Renamed from regmap, made static.
22411 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22412 made static.
22413 (ppc_cannot_store_register): Renamed from cannot_store_register,
22414 made static.
22415 (the_low_target): New.
22416 * linux-s390-low.c (num_regs): Remove.
22417 (s390_num_regs): Define.
22418 (s390_regmap): Renamed from regmap, made static.
22419 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22420 made static.
22421 (s390_cannot_store_register): Renamed from cannot_store_register,
22422 made static.
22423 (the_low_target): New.
22424 * linux-sh-low.c (num_regs): Remove.
22425 (sh_num_regs): Define.
22426 (sh_regmap): Renamed from regmap, made static.
22427 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22428 made static.
22429 (sh_cannot_store_register): Renamed from cannot_store_register,
22430 made static.
22431 (the_low_target): New.
22432 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22433 (the_low_target): New.
22434
224352002-04-09 Daniel Jacobowitz <drow@mvista.com>
22436
22437 * Makefile.in: Add stamp-h target.
22438 * configure.in: Create stamp-h.
22439 * configure: Regenerated.
22440
224412002-04-09 Daniel Jacobowitz <drow@mvista.com>
22442
22443 * inferiors.c: New file.
22444 * target.c: New file.
22445 * target.h: New file.
22446 * Makefile.in: Add target.o and inferiors.o. Update
22447 dependencies.
22448 * linux-low.c (inferior_pid): New static variable,
22449 moved from server.c.
22450 (linux_create_inferior): Renamed from create_inferior.
22451 Call add_inferior. Return 0 on success instead of a PID.
22452 (linux_attach): Renamed from myattach.
22453 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22454 (linux_thread_alive): Renamed from mythread_alive.
22455 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22456 child dies.
22457 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22458 (regsets_store_inferior_registers): Correct error message.
22459 Add missing ``return 0''.
22460 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22461 (linux_store_registers): Renamed from store_inferior_registers.
22462 (linux_read_memory): Renamed from read_inferior_memory.
22463 (linux_write_memory): Renamed from write_inferior_memory.
22464 (linux_target_ops): New structure.
22465 (initialize_low): Call set_target_ops ().
22466 * remote-utils.c (unhexify): New function.
22467 (hexify): New function.
22468 (input_interrupt): Send signals to ``signal_pid''.
22469 * server.c (inferior_pid): Remove.
22470 (start_inferior): Update create_inferior call.
22471 (attach_inferior): Call add_inferior.
22472 (handle_query): New function.
22473 (main): Call handle_query for `q' packets.
22474 * server.h: Include "target.h". Remove obsolete prototypes.
22475 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22476
224772002-04-09 Daniel Jacobowitz <drow@mvista.com>
22478
22479 * Makefile.in: Add WARN_CFLAGS. Update configury
22480 dependencies.
22481 * configure.in: Check for <string.h>
22482 * configure: Regenerate.
22483 * config.in: Regenerate.
22484 * gdbreplay.c: Include needed system headers.
22485 (remote_open): Remove strchr prototype.
22486 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22487 * regcache.c (supply_register): Change buf argument to const void *.
22488 (supply_register_by_name): Likewise.
22489 (collect_register): Change buf argument to void *.
22490 (collect_register_by_name): Likewise.
22491 * regcache.h: Add missing prototypes.
22492 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22493 * server.c (handle_query): New function.
22494 (attached): New static variable, moved out of main.
22495 (main): Quiet longjmp clobber warnings.
22496 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22497 * utils.c (error): Remove NORETURN.
22498 (fatal): Likewise.
This page took 3.979284 seconds and 4 git commands to generate.