gdbsupport: re-indent ptrace.m4
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
b6fb30ed
SM
12020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * configure: Re-generate.
4
7e8c7130
SM
52020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * configure.ac: Modernize.
8 * configure: Re-generate.
9
91e1a0ed
SM
102020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
11
12 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
13 AC_CANONICAL_SYSTEM.
14 * configure: Re-generate.
15
d744f0f9
PA
162020-10-26 Pedro Alves <pedro@palves.net>
17
18 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
19 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
20 explicit type.
21
006811bc
SM
222020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * acinclude.m4: Update ptrace.m4 path.
25
92a048fd
SM
262020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * config.in: Re-generate.
29 * configure: Re-generate.
30
4dbe16c8
SM
312020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
32
33 * server.cc (handle_general_set): Don't use sprintf with
34 argument overlapping buffer.
35
a9b45cb7
TT
362020-10-20 Tom Tromey <tromey@adacore.com>
37
38 PR gdb/26742:
39 * inferiors.cc (remove_thread): Clear current_thread before
40 freeing the thread.
41
b07993f6
KR
422020-10-13 Kamil Rytarowski <n54@gmx.com>x
43
44 * netbsd-low.cc (netbsd_tdesc): Remove.
45 (netbsd_add_process): Likewise.
46 (netbsd_process_target::create_inferior): Update.
47
bbb826f5
AB
482020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
49
50 * linux-arc-low.cc (arc_linux_read_description): Release the
51 unique_ptr returned from arc_create_target_description.
52
361cb219
AB
532020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
54
55 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
56 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
57
51a948fd
AB
582020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
59
60 * linux-low.cc (linux_process_target::handle_extended_wait):
61 Release the unique_ptr returned from allocate_target_description.
62 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
63 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
64 (tdesc_i386_linux_no_xml): Change type.
65 (x86_linux_read_description): Borrow pointer from unique_ptr
66 object.
67 (x86_target::get_ipa_tdesc_idx): Likewise.
68 (initialize_low_arch): Likewise.
69 * tdesc.cc (allocate_target_description): Update return type.
70
60b74662
TT
712020-10-07 Tom Tromey <tromey@adacore.com>
72
73 * server.cc (handle_search_memory): Remove dead code.
74
55b10d89
TT
752020-10-07 Tom Tromey <tromey@adacore.com>
76
77 * server.cc (handle_search_memory_1): Remove.
78 (handle_search_memory): Use simple_search_memory.
79
a038ffd8
SM
802020-10-07 Simon Marchi <simon.marchi@efficios.com>
81
82 * Makefile.in (COMPILE): Add CXXFLAGS.
83 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
84 (gdbserver$(EXEEXT)): Add CXXFLAGS.
85 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
86 ($(IPA_LIB)): Add CXXFLAGS.
87 (IPAGENT_COMPILE): Add CXXFLAGS.
88
bbe90b5d 892020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
90
91 * configure.srv: Support ARC architecture.
92 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
93 * linux-arc-low.cc: New file.
94
48491055
KR
952020-10-07 Kamil Rytarowski <n54@gmx.com>
96
97 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
98 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
99 (netbsd_process_target::qxfer_libraries_svr4): Update.
100
2be01f63
KR
1012020-10-07 Kamil Rytarowski <n54@gmx.com>
102
103 * netbsd-low.cc: Fix whitespace formatting.
104 * netbsd-amd64-low.cc: Likewise.
105
91e5e8db
KR
1062020-10-07 Kamil Rytarowski <n54@gmx.com>
107
108 * netbsd-low.cc (netbsd_process_target::read_memory)
109 (netbsd_process_target::write_memory): Update.
110
9529c852
KR
1112020-10-07 Kamil Rytarowski <n54@gmx.com>
112
113 * netbsd-aarch64-low.cc: Add.
114 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
115 * configure.srv: Add aarch64*-*-netbsd*.
116
981b570a
SV
1172020-10-06 Shahab Vahedi <shahab@synopsys.com>
118
119 * regcache.cc (register_data): Remove unused "fetch" argument.
120
6b01403b
SM
1212020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * server.cc (handle_monitor_command): Handle "set
124 debug-event-loop".
125 (captured_main): Handle "--debug-event-loop".
126 (monitor_show_help): Mention new setting.
127 (gdbserver_usage): Mention new flag.
128
2554f6f5
SM
1292020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
130
131 * linux-low.cc (linux_process_target::async): Pass name to
132 add_file_handler.
133 * remote-utils.cc (handle_accept_event): Likewise.
134 (remote_open): Likewise.
135
8b667fae
KR
1362020-10-01 Kamil Rytarowski <n54@gmx.com>
137
138 * netbsd-i386-low.cc: Add.
139 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
140 * configure.srv: Add i[34567]86-*-netbsd*.
141
15397b0e
KR
1422020-10-01 Kamil Rytarowski <n54@gmx.com>
143
144 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
145 (netbsd_target_regsets): Now const.
146 (the_low_target): Remove.
147 (class netbsd_amd64_target, the_netbsd_amd64_target)
148 (the_netbsd_target): Add.
149 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
150 low_arch_setup ().
151 (netbsd_process_target::fetch_registers)
152 (netbsd_process_target::store_registers, initialize_low): Update.
153 (the_netbsd_target): Remove.
154 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
155 (the_low_target, netbsd_tdesc): Remove.
156 (netbsd_process_target::get_regs_info)
157 (netbsd_process_target::low_arch_setup): Add.
158
99bb393f
HD
1592020-09-23 Hannes Domani <ssbssa@yahoo.de>
160
161 * win32-low.cc: Remove local wow64_process variable.
162 * win32-low.h: Remove local wow64_process variable.
163
b60cea74
TT
1642020-09-18 Tom Tromey <tromey@adacore.com>
165
166 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
167 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
168 (netbsd_process_target::wait): Change type of target_options.
169 * win32-low.h (class win32_process_target) <wait>: Update.
170 * win32-low.cc (win32_process_target::wait): Update.
171 * target.h (class process_stratum_target) <wait>: Update.
172 (mywait): Update.
173 * target.cc (mywait, target_wait): Change type of "options".
174 * linux-low.h (class linux_process_target) <wait, wait_1>:
175 Update.
176 * linux-low.cc (linux_process_target::wait)
177 (linux_process_target::wait_1): Update.
178
db92ac45
TT
1792020-09-15 Tom Tromey <tromey@adacore.com>
180
181 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
182 (xmltarget_amd64_linux_no_xml): Now arrays.
183
27087b7f
TT
1842020-09-14 Tom Tromey <tromey@adacore.com>
185
186 * tracepoint.cc (eval_result_names): Now const.
187 * ax.cc (gdb_agent_op_names): Now const.
188
62ba5048
KR
1892020-09-10 Kamil Rytarowski <n54@gmx.com>
190
191 * netbsd-low.cc: Add.
192 * netbsd-low.h: Likewise.
193 * netbsd-amd64-low.cc: Likewise.
194 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
195 "netbsd-amd64-low.cc".
196 * configure.srv: Add x86_64-*-netbsd*.
197
ece5bc8a
SM
1982020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
199
200 * server.cc (captured_main): Accept multiple `--selftest=`
201 options. Pass all `--selftest=` arguments to run_tests.
202
c8693053
RO
2032020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
204
205 * configure, config.in: Regenerate.
206
05a6b8c2
EZ
2072020-07-26 Eli Zaretskii <eliz@gnu.org>
208
209 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
210 When checking whether socklen_t type is defined, use ws2tcpip.h if
211 it is available and sys/socket.h isn't.
212 * configure: Regenerate.
213 * config.in: Regenerate.
214
028a4603
PA
2152020-07-22 Pedro Alves <pedro@palves.net>
216
217 * inferiors.cc (switch_to_process): New, moved here from
218 thread-db.cc, and made extern.
219 * inferiors.h (switch_to_process): Declare.
220 * server.cc: Include "gdbsupport/scoped_restore.h".
221 (handle_qxfer_threads_proper): Now returns bool. Prepare to
222 access memory around target calls.
223 (handle_qxfer_threads): Handle errors.
224 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
225
05c309a8
SM
2262020-07-21 Simon Marchi <simon.marchi@efficios.com>
227
228 * linux-low.cc (stopped_pids): Make static.
229
0e267416
AB
2302020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
231
232 * tdesc.cc (allocate_target_description): Add header comment.
233 (target_desc_deleter::operator()): New function.
234 * tdesc.h (struct target_desc): Declare as final.
235
b315b67d
SM
2362020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * server.cc (handle_query): Use std::vector of
239 std::string for `qsupported` vector. Use separate
240 vector for unknowns.
241 * target.h (class process_stratum_target) <process_qsupported>:
242 Change parameters to array_view of const char *.
243 (target_process_qsupported): Remove `count` parameter.
244 * target.cc (process_stratum_target::process_qsupported): Change
245 parameters to array_view of const char *.
246 * linux-x86-low.cc (class x86_target) <process_qsupported>:
247 Likewise.
248
f638ed73
TV
2492020-06-29 Tom de Vries <tdevries@suse.de>
250
251 * ax.h: Include gdbsupport/debug_agent.h.
252
fbf42f4e
AB
2532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
254
255 * tdesc.cc (struct tdesc_compatible_info): New struct.
256 (tdesc_compatible_info_list): New function.
257 (tdesc_compatible_info_arch_name): New function.
258
013e3554
TBA
2592020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
260
261 Use std::list to stop pending signal instead of manually-created
262 linked list.
263 * linux-low.h: Include <list>.
264 (struct pending_signal): Move here from linux-low.cc.
265 (struct lwp_info) <pending_signals>
266 <pending_signals_to_report>: Update the type.
267 * linux-low.cc (struct pending_signals): Remove.
268 (linux_process_target::delete_lwp)
269 (linux_process_target::add_lwp)
270 (enqueue_one_deferred_signal)
271 (dequeue_one_deferred_signal)
272 (enqueue_pending_signal)
273 (linux_process_target::resume_one_lwp_throw)
274 (linux_process_target::thread_needs_step_over)
275 (linux_process_target::resume_one_thread)
276 (linux_process_target::proceed_one_lwp): Update the use of pending
277 signal list.
278
7d458ea5
SM
2792020-06-17 Simon Marchi <simon.marchi@efficios.com>
280
281 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
282 Remove.
283
84b300de
SM
2842020-06-12 Simon Marchi <simon.marchi@efficios.com>
285
286 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
287 * configure.srv: Remove mingw32ce cases.
288 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
289 * win32-low.h (to_back_slashes): Remove.
290 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
291
96c16e2b
SM
2922020-06-12 Simon Marchi <simon.marchi@efficios.com>
293
294 * Makefile.in (SFILES): linux-tile-low.cc.
295 * configure.srv: Remove tilegx case.
296 * linux-tile-low.cc: Remove.
297
bd1467ae
SM
2982020-06-12 Simon Marchi <simon.marchi@efficios.com>
299
300 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
301 * configure.srv: Remove m32r case.
302 * linux-m32r-low.cc: Remove.
303
7b46bf6f
SM
3042020-06-12 Simon Marchi <simon.marchi@efficios.com>
305
306 * Makefile.in (SFILES): Remove linux-cris-low.c.
307 * configure.srv: Remove cris cases.
308 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
309
1fa29f56
SM
3102020-06-12 Simon Marchi <simon.marchi@efficios.com>
311
312 * Makefile.in (SFILES): Remove linux-bfin-low.c.
313 * configure.srv: Remove bfin case.
314 * linux-bfin-low.cc: Remove.
315 * linux-low.cc: Remove BFIN-conditional code.
316
613f149a
SM
3172020-06-12 Simon Marchi <simon.marchi@efficios.com>
318
319 * configure: Re-generate.
320 * configure.ac: Remove srv_qnx test.
321 * configure.srv: Remove nto case.
322 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
323 * remote-utils.c: Remove __QNX__-guarded code.
324
fdb95bf5
SM
3252020-06-12 Simon Marchi <simon.marchi@efficios.com>
326
327 * configure: Re-generate.
328 * configure.ac: Remove srv_lynxos test.
329 * configure.srv: Remove lynxos cases.
330 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
331 Remove.
332
c00094dc
SM
3332020-06-12 Simon Marchi <simon.marchi@efficios.com>
334
335 * README: Fix a few outdated or incoherent things.
336
6479bf85
HD
3372020-05-27 Hannes Domani <ssbssa@yahoo.de>
338
339 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
340 (win32_clear_inferiors): Use open_process_used.
341 (get_child_debug_event): Likewise.
342
bea571eb
MW
3432020-05-25 Michael Weghorn <m.weghorn@posteo.de>
344
345 PR gdbserver/25893
346 * linux-low.cc (linux_process_target::create_inferior),
347 lynx-low.cc (lynx_process_target::create_inferior),
348 win32-low.cc (win32_process_target::create_inferior): Use
349 construct_inferior_arguments instead of stringify_argv
350 to get string representation which properly escapes
351 special characters.
352 * server.cc (handle_v_run): Just pass empty program arg
353 as such, since any further processing is now handled via
354 construct_inferior_arguments.
355
ace6b919
MW
3562020-05-25 Michael Weghorn <m.weghorn@posteo.de>
357
358 * nto-low.cc (nto_process_target::create_inferior): Pass
359 argv to spawnp function as char **.
360
b69ca137
MW
3612020-05-25 Michael Weghorn <m.weghorn@posteo.de>
362
363 * server.cc (captured_main), (handle_v_run): No longer
364 insert extra NULL element to args vector.
365
51e2cfa2
PA
3662020-05-23 Pedro Alves <palves@redhat.com>
367
368 * gdb-safe-ctype.h: New.
369
8bbf0394
TBA
3702020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
371
372 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
373 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
374 (ia64_target::low_breakpoint_at): Ditto.
375
01370779
HD
3762020-05-15 Hannes Domani <ssbssa@yahoo.de>
377
378 * win32-i386-low.cc (i386_supports_z_point_type): Handle
379 Z_PACKET_HW_BP z_type.
380 (i386_insert_point): Handle raw_bkpt_type type.
381 (i386_remove_point): Likewise.
382
7d186bc0
HD
3832020-04-30 Hannes Domani <ssbssa@yahoo.de>
384
385 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
386 Add arch/i386.o.
387 * win32-arm-low.cc (arm_num_regs): New function.
388 (struct win32_target_ops): Use arm_num_regs.
389 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
390 processes.
391 (i386_get_thread_context): Likewise.
392 (i386_prepare_to_resume): Likewise.
393 (i386_thread_added): Likewise.
394 (i386_single_step): Likewise.
395 (i386_fetch_inferior_register): Likewise.
396 (i386_store_inferior_register): Likewise.
397 (i386_arch_setup): Likewise.
398 (i386_win32_num_regs): New function.
399 (struct win32_target_ops): Use i386_win32_num_regs.
400 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
401 processes.
402 (win32_require_context): Likewise.
403 (child_add_thread): Likewise.
404 (do_initial_child_stuff): Likewise.
405 (continue_one_thread): Likewise.
406 (win32_process_target::resume): Likewise.
407 (load_psapi): Likewise.
408 (win32_add_all_dlls): Likewise.
409 (maybe_adjust_pc): Likewise.
410 (win32_process_target::qxfer_siginfo): Likewise.
411 (initialize_low): Likewise.
412 * win32-low.h (struct win32_target_ops): Change num_regs to
413 callback function.
414
1eb39914
SM
4152020-04-27 Simon Marchi <simon.marchi@efficios.com>
416
417 * configure.ac: Remove check for fs_base/gs_base in
418 user_regs_struct.
419 * configure: Re-generate.
420 * config.in: Re-generate.
421 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
422 x86_store_gregset): Adjust.
423
51ac8e22
HD
4242020-04-22 Hannes Domani <ssbssa@yahoo.de>
425
426 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
427 comparison.
428
a010605f
TT
4292020-04-16 Tom Tromey <tromey@adacore.com>
430
431 * win32-low.cc (windows_nat::handle_access_violation): New
432 function.
433
e2275c6e
SM
4342020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
435
436 * win32-low.cc (get_child_debug_event): Fix format string warning.
437
73944e9f
TT
4382020-04-13 Tom Tromey <tom@tromey.com>
439
440 * server.h (gdb_fildes_t): Remove typedef.
441 * remote-utils.c (remote_desc, list_desc): Now int.
442 (INVALID_DESCRIPTOR): Remove.
443 (gdb_connected, remote_close)
444 (check_remote_input_interrupt_request): Update.
445 * utils.h (pfildes): Don't declare.
446 * utils.c (pfildes): Remove.
447
55d7aec8
TT
4482020-04-13 Tom Tromey <tom@tromey.com>
449
450 * server.h (handle_serial_event, handle_target_event): Update.
451 * server.c: Don't call initialize_event_loop.
452 (keep_processing_events): New global.
453 (handle_serial_event): Return void. Set keep_processing_events.
454 (handle_target_event): Return void.
455 (start_event_loop): Move from event-loop.c. Rewrite.
456 * remote-utils.c (handle_accept_event): Return void.
457 (reset_readchar): Use delete_timer.
458 (process_remaining): Return void.
459 (reschedule): Use create_timer.
460 * event-loop.h: Remove.
461 * event-loop.cc: Remove.
462 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
463
e487f994
TT
4642020-04-13 Tom Tromey <tom@tromey.com>
465
466 * server.c (invoke_async_signal_handlers)
467 (check_async_event_handlers, flush_streams, gdb_select): New
468 functions.
469
8ae8e197
TT
4702020-04-13 Tom Tromey <tom@tromey.com>
471
472 * configure: Rebuild.
473 * config.in: Rebuild.
474
360ad8b3
TT
4752020-04-08 Tom Tromey <tromey@adacore.com>
476
477 PR gdb/22992
478 * win32-low.c (child_continue): Call matching_pending_stop.
479 (get_child_debug_event): Call fetch_pending_stop. Push pending
480 stop when needed.
481
523d4f80
TT
4822020-04-08 Tom Tromey <tromey@adacore.com>
483
484 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
485 (win32_process_target::supports_stopped_by_sw_breakpoint):
486 Declare.
487 * win32-low.c (win32_supports_z_point_type): Always handle
488 Z_PACKET_SW_BP.
489 (win32_insert_point): Call insert_memory_breakpoint when needed.
490 (win32_remove_point): Call remove_memory_breakpoint when needed.
491 (win32_process_target::stopped_by_sw_breakpoint)
492 (win32_process_target::supports_stopped_by_sw_breakpoint): New
493 methods.
494 (win32_target_ops): Update.
495 (maybe_adjust_pc): New function.
496 (win32_wait): Call maybe_adjust_pc.
497
e54e5929
TT
4982020-04-08 Tom Tromey <tromey@adacore.com>
499
500 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
501 field.
502 * win32-i386-low.c (the_low_target): Update.
503 * win32-arm-low.c (the_low_target): Update.
504
d6225aff
TT
5052020-04-08 Tom Tromey <tromey@adacore.com>
506
507 * win32-low.h (win32_process_target::read_pc)
508 (win32_process_target::write_pc): Declare.
509 * win32-low.c (win32_process_target::read_pc)
510 (win32_process_target::write_pc): New methods.
511 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
512 functions.
513 (the_low_target): Update.
514 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
515 functions.
516 (the_low_target): Update.
517
2c1d95e8
TT
5182020-04-08 Tom Tromey <tromey@adacore.com>
519
520 * win32-low.c (win32_kill, get_child_debug_event): Use
521 wait_for_debug_event.
522
e758e19c
TT
5232020-04-08 Tom Tromey <tromey@adacore.com>
524
525 * win32-low.c (child_continue): Call continue_last_debug_event.
526
8d30e395
TT
5272020-04-08 Tom Tromey <tromey@adacore.com>
528
529 * win32-low.c (handle_exception): Remove.
530 (windows_nat::handle_ms_vc_exception): New function.
531 (get_child_debug_event): Add "continue_status" parameter.
532 Update.
533 (win32_wait): Update.
534
a816ba18
TT
5352020-04-08 Tom Tromey <tromey@adacore.com>
536
537 * win32-low.c (windows_nat::handle_load_dll): Rename from
538 handle_load_dll. No longer static.
539 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
540 No longer static.
541
d41b524f
TT
5422020-04-08 Tom Tromey <tromey@adacore.com>
543
544 * win32-low.c (handle_output_debug_string): Add parameter. Change
545 return type.
546 (win32_kill, get_child_debug_event): Update.
547
3c76026d
TT
5482020-04-08 Tom Tromey <tromey@adacore.com>
549
550 * win32-low.c (current_process_handle, current_process_id)
551 (main_thread_id, last_sig, current_event, siginfo_er): Move to
552 nat/windows-nat.c.
553
9d8679cc
TT
5542020-04-08 Tom Tromey <tromey@adacore.com>
555
556 * win32-low.c (get_image_name): Remove.
557 (handle_load_dll): Update.
558
28688adf
TT
5592020-04-08 Tom Tromey <tromey@adacore.com>
560
561 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
562 No longer static. Change parameters.
563 (child_add_thread, child_fetch_inferior_registers)
564 (child_store_inferior_registers, win32_resume)
565 (win32_get_tib_address): Update.
566
4834dad0
TT
5672020-04-08 Tom Tromey <tromey@adacore.com>
568
569 * win32-low.h (struct win32_target_ops): Use qualified names where
570 needed.
571 * win32-i386-low.c: Add "using namespace".
572 * win32-low.c: Add "using namespace".
573 * win32-arm-low.c: Add "using namespace".
574
65bafd5b
TT
5752020-04-08 Tom Tromey <tromey@adacore.com>
576
577 * win32-low.c (delete_thread_info): Don't call CloseHandle.
578
98a03287
TT
5792020-04-08 Tom Tromey <tromey@adacore.com>
580
581 * win32-low.c (win32_require_context, suspend_one_thread): Use
582 windows_thread_info::suspend.
583 (continue_one_thread): Use windows_thread_info::resume.
584 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
585
62fe396b
TT
5862020-04-08 Tom Tromey <tromey@adacore.com>
587
588 * win32-i386-low.c (update_debug_registers)
589 (i386_prepare_to_resume, i386_thread_added): Update.
590
e9534bd2
TT
5912020-04-08 Tom Tromey <tromey@adacore.com>
592
593 * win32-low.c (child_add_thread): Use new.
594 (delete_thread_info): Use delete.
595
ae1f8880
TT
5962020-04-08 Tom Tromey <tromey@adacore.com>
597
598 * win32-low.h (struct windows_thread_info): Remove.
599
e56f8ccb
TT
6002020-04-08 Tom Tromey <tromey@adacore.com>
601
602 * win32-low.h (struct windows_thread_info): Rename from
603 win32_thread_info. Remove typedef.
604 (struct win32_target_ops, win32_require_context): Update.
605 * win32-low.c (win32_get_thread_context)
606 (win32_set_thread_context, win32_prepare_to_resume)
607 (win32_require_context, thread_rec, child_add_thread)
608 (delete_thread_info, continue_one_thread)
609 (child_fetch_inferior_registers, child_store_inferior_registers)
610 (win32_resume, suspend_one_thread, win32_get_tib_address):
611 Update.
612 * win32-i386-low.c (update_debug_registers)
613 (win32_get_current_dr, i386_get_thread_context)
614 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
615 (i386_fetch_inferior_register, i386_store_inferior_register):
616 Update.
617 * win32-arm-low.c (arm_get_thread_context)
618 (arm_fetch_inferior_register, arm_store_inferior_register):
619 Update.
620
0dd7b52e
TBA
6212020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
622
623 * linux-low.h (struct linux_target_ops): Remove.
624 (the_low_target): Remove.
625 * linux-x86-low.cc (the_low_target): Remove.
626 * linux-aarch64-low.cc (the_low_target): Ditto.
627 * linux-arm-low.cc (the_low_target): Ditto.
628 * linux-bfin-low.cc (the_low_target): Ditto.
629 * linux-cris-low.cc (the_low_target): Ditto.
630 * linux-crisv32-low.cc (the_low_target): Ditto.
631 * linux-ia64-low.cc (the_low_target): Ditto.
632 * linux-m32r-low.cc (the_low_target): Ditto.
633 * linux-m68k-low.cc (the_low_target): Ditto.
634 * linux-mips-low.cc (the_low_target): Ditto.
635 * linux-nios2-low.cc (the_low_target): Ditto.
636 * linux-ppc-low.cc (the_low_target): Ditto.
637 * linux-riscv-low.cc (the_low_target): Ditto.
638 * linux-s390-low.cc (the_low_target): Ditto.
639 * linux-sh-low.cc (the_low_target): Ditto.
640 * linux-sparc-low.cc (the_low_target): Ditto.
641 * linux-tic6x-low.cc (the_low_target): Ditto.
642 * linux-tile-low.cc (the_low_target): Ditto.
643 * linux-xtensa-low.cc (the_low_target): Ditto.
644
fc5ecdb6
TBA
6452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
646
647 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
648 linux target define the op by overriding the declaration in
649 process_stratum_target.
650
651 * linux-low.h (struct linux_target_ops): Remove the op.
652 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
653 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
654 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
655 (x86_get_ipa_tdesc_idx): Turn into...
656 (x86_target::get_ipa_tdesc_idx): ...this.
657 (the_low_target): Remove the op field.
658 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
659 (ppc_get_ipa_tdesc_idx): Turn into...
660 (ppc_target::get_ipa_tdesc_idx): ...this.
661 (the_low_target): Remove the op field.
662 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
663 (s390_get_ipa_tdesc_idx): Turn into...
664 (s390_target::get_ipa_tdesc_idx): ...this.
665 (the_low_target): Remove the op field.
666
9eedd27d
TBA
6672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
668
669 Turn the 'get_syscall_trapinfo' linux target op into a method
670 of process_stratum_target.
671
672 * linux-low.h (struct linux_target_ops): Remove the op.
673 (class linux_process_target) <get_syscall_trapinfo>
674 <gdb_catch_this_syscall>
675 <low_supports_catch_syscall>
676 <low_get_syscall_trapinfo>: Declare.
677 * linux-low.cc (get_syscall_trapinfo): Turn into...
678 (linux_process_target::get_syscall_trapinfo): ...this.
679 (linux_process_target::low_get_syscall_trapinfo): Define.
680 (gdb_catch_this_syscall_p): Turn into...
681 (linux_process_target::gdb_catch_this_syscall): ...this.
682 (linux_process_target::low_supports_catch_syscall): Define.
683
684 Update the callers below.
685
686 (linux_process_target::wait_1)
687 (linux_process_target::supports_catch_syscall)
688
689 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
690 <low_get_syscall_trapinfo>: Declare.
691 (x86_target::low_supports_catch_syscall): Define.
692 (x86_get_syscall_trapinfo): Turn into...
693 (x86_target::low_get_syscall_trapinfo): ...this.
694 (the_low_target): Remove the op field.
695 * linux-aarch64-low.cc (class aarch64_target)
696 <low_supports_catch_syscall>
697 <low_get_syscall_trapinfo>: Declare.
698 (aarch64_target::low_supports_catch_syscall): Define.
699 (aarch64_get_syscall_trapinfo): Turn into...
700 (aarch64_target::low_get_syscall_trapinfo): ...this.
701 (the_low_target): Remove the op field.
702 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
703 <low_get_syscall_trapinfo>: Declare.
704 (arm_target::low_supports_catch_syscall): Define.
705 (arm_get_syscall_trapinfo): Turn into...
706 (arm_target::low_get_syscall_trapinfo): ...this.
707 (the_low_target): Remove the op field.
708 * linux-ppc-low.cc (the_low_target): Remove the op field.
709 * linux-s390-low.cc (the_low_target): Remove the op field.
710
b31cdfa6
TBA
7112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
712
713 Remove the 'supports_hardware_single_step' linux target op and
714 override the process_stratum_target's op definition in
715 linux_process_target to return true.
716
717 * linux-low.h (struct linux_target_ops): Remove the op.
718 (class linux_process_target) <finish_step_over>
719 <maybe_hw_step>: Declare.
720 * linux-low.cc (can_hardware_single_step): Remove.
721 (maybe_hw_step): Turn into...
722 (linux_process_target::maybe_hw_step): ...this.
723 (finish_step_over): Turn into...
724 (linux_process_target::finish_step_over): ...this.
725 (linux_process_target::supports_hardware_single_step): Update
726 to return true.
727
728 Update the callers below.
729
730 (linux_process_target::single_step)
731 (linux_process_target::resume_one_lwp_throw)
732
733 * linux-arm-low.cc (class arm_target)
734 <supports_hardware_single_step>: Declare.
735 (arm_supports_hardware_single_step): Turn into...
736 (arm_target::supports_hardware_single_step): ...this.
737 (the_low_target): Remove the op field.
738 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
739 (the_low_target): Remove the op field.
740 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
741 Remove.
742 (the_low_target): Remove the op field.
743 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
744 (the_low_target): Remove the op field.
745 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
746 (the_low_target): Remove the op field.
747 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
748 (the_low_target): Remove the op field.
749 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
750 (the_low_target): Remove the op field.
751 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
752 (the_low_target): Remove the op field.
753 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
754 (the_low_target): Remove the op field.
755 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
756 (the_low_target): Remove the op field.
757 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
758 (the_low_target): Remove the op field.
759 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
760 (the_low_target): Remove the op field.
761 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
762 Remove.
763 (the_low_target): Remove the op field.
764
9cfd8715
TBA
7652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
766
767 Turn the 'supports_range_stepping' linux target op into a method
768 of linux_process_target.
769
770 * linux-low.h (struct linux_target_ops): Remove the op.
771 (class linux_process_target) <low_supports_range_stepping>: Declare.
772 * linux-low.cc (linux_process_target::low_supports_range_stepping):
773 Define.
774 (linux_process_target::supports_range_stepping): Update the call
775 site.
776 * linux-x86-low.cc (class x86_target)
777 <low_supports_range_stepping>: Declare.
778 (x86_supports_range_stepping): Turn into...
779 (x86_target::low_supports_range_stepping): ...this.
780 (the_low_target): Remove the op field.
781 * linux-aarch64-low.cc (class aarch64_target)
782 <low_supports_range_stepping>: Declare.
783 (aarch64_supports_range_stepping): Turn into...
784 (aarch64_target::low_supports_range_stepping): ...this.
785 (the_low_target): Remove the op field.
786 * linux-arm-low.cc (the_low_target): Remove the op field.
787 * linux-bfin-low.cc (the_low_target): Ditto.
788 * linux-crisv32-low.cc (the_low_target): Ditto.
789 * linux-m32r-low.cc (the_low_target): Ditto.
790 * linux-m68k-low.cc (the_low_target): Ditto.
791 * linux-ppc-low.cc (the_low_target): Ditto.
792 * linux-s390-low.cc (the_low_target): Ditto.
793 * linux-sh-low.cc (the_low_target): Ditto.
794 * linux-tic6x-low.cc (the_low_target): Ditto.
795 * linux-tile-low.cc (the_low_target): Ditto.
796 * linux-xtensa-low.cc (the_low_target): Ditto.
797
ab64c999
TBA
7982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
799
800 Remove the 'emit_ops' linux target ops and let the concrete
801 linux target define the op by overriding the declaration of
802 process_stratum_target.
803
804 * linux-low.h (struct linux_target_ops): Remove the op.
805 (class linux_process_target) <emit_ops>: Remove.
806 * linux-low.cc (linux_process_target::emit_ops): Remove.
807 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
808 (x86_emit_ops): Turn into...
809 (x86_target::emit_ops): ...this.
810 (the_low_target): Remove the op field.
811 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
812 (aarch64_emit_ops): Turn into...
813 (aarch64_target::emit_ops): ...this.
814 (the_low_target): Remove the op field.
815 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
816 (ppc_emit_ops): Turn into...
817 (ppc_target::emit_ops): ...this.
818 (the_low_target): Remove the op field.
819 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
820 (s390_emit_ops): Turn into...
821 (s390_target::emit_ops): ...this.
822 (the_low_target): Remove the op field.
823 * linux-arm-low.cc (the_low_target): Remove the op field.
824 * linux-bfin-low.cc (the_low_target): Ditto.
825 * linux-crisv32-low.cc (the_low_target): Ditto.
826 * linux-m32r-low.cc (the_low_target): Ditto.
827 * linux-m68k-low.cc (the_low_target): Ditto.
828 * linux-sh-low.cc (the_low_target): Ditto.
829 * linux-tic6x-low.cc (the_low_target): Ditto.
830 * linux-tile-low.cc (the_low_target): Ditto.
831 * linux-xtensa-low.cc (the_low_target): Ditto.
832
809a0c35
TBA
8332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
834
835 Remove the 'install_fast_tracepoint_jump_pad' and
836 'get_min_fast_tracepoint_insn_len' linux target ops to let the
837 concrete linux target define the ops by overriding the declarations
838 of process_stratum_target.
839
840 * linux-low.h (struct linux_target_ops): Remove the ops.
841 (class linux_process_target) <supports_fast_tracepoints>
842 <install_fast_tracepoint_jump_pad>
843 <get_min_fast_tracepoint_insn_len>: Remove.
844 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
845 (linux_process_target::install_fast_tracepoint_jump_pad)
846 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
847 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
848 <install_fast_tracepoint_jump_pad>
849 <get_min_fast_tracepoint_insn_len>: Declare.
850 (x86_target::supports_fast_tracepoints): Define.
851 (x86_install_fast_tracepoint_jump_pad): Turn into...
852 (x86_target::install_fast_tracepoint_jump_pad): ...this.
853 (x86_get_min_fast_tracepoint_insn_len): Turn into...
854 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
855 (the_low_target): Remove the op fields.
856 * linux-aarch64-low.cc (class aarch64_target)
857 <supports_fast_tracepoints>
858 <install_fast_tracepoint_jump_pad>
859 <get_min_fast_tracepoint_insn_len>: Declare.
860 (aarch64_target::supports_fast_tracepoints): Define.
861 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
862 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
863 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
864 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
865 (the_low_target): Remove the op fields.
866 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
867 <install_fast_tracepoint_jump_pad>
868 <get_min_fast_tracepoint_insn_len>: Declare.
869 (ppc_target::supports_fast_tracepoints): Define.
870 (ppc_install_fast_tracepoint_jump_pad): Turn into...
871 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
872 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
873 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
874 (the_low_target): Remove the op fields.
875 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
876 <install_fast_tracepoint_jump_pad>
877 <get_min_fast_tracepoint_insn_len>: Declare.
878 (s390_target::supports_fast_tracepoints): Define.
879 (s390_install_fast_tracepoint_jump_pad): Turn into...
880 (s390_target::install_fast_tracepoint_jump_pad): ...this.
881 (s390_get_min_fast_tracepoint_insn_len): Turn into...
882 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
883 (the_low_target): Remove the op fields.
884 * linux-arm-low.cc (the_low_target): Remove the op fields.
885 * linux-bfin-low.cc (the_low_target): Ditto.
886 * linux-crisv32-low.cc (the_low_target): Ditto.
887 * linux-m32r-low.cc (the_low_target): Ditto.
888 * linux-m68k-low.cc (the_low_target): Ditto.
889 * linux-sh-low.cc (the_low_target): Ditto.
890 * linux-tic6x-low.cc (the_low_target): Ditto.
891 * linux-tile-low.cc (the_low_target): Ditto.
892 * linux-xtensa-low.cc (the_low_target): Ditto.
893
13e567af
TBA
8942020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
895
896 Turn the 'get_thread_area' linux target op into a method of
897 process_stratum_target.
898
899 * linux-low.h (struct linux_target_ops): Remove the op.
900 (class linux_process_target) <stuck_in_jump_pad>
901 <linux_fast_tracepoint_collecting>
902 <low_get_thread_area>: Declare.
903 * linux-low.cc (supports_fast_tracepoints): Remove.
904 (linux_fast_tracepoint_collecting): Turn into...
905 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
906 (linux_process_target::low_get_thread_area): Define.
907 (stuck_in_jump_pad_callback): Turn into...
908 (linux_process_target::stuck_in_jump_pad): ...this.
909
910 Update the caller below.
911
912 (linux_process_target::stabilize_threads)
913
914 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
915 Declare.
916 (x86_get_thread_area): Turn into...
917 (x86_target::low_get_thread_area): ...this.
918 (the_low_target): Remove the op field.
919 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
920 Declare.
921 (aarch64_get_thread_area): Turn into...
922 (aarch64_target::low_get_thread_area): ...this.
923 (the_low_target): Remove the op field.
924 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
925 Declare.
926 (ppc_get_thread_area): Turn into...
927 (ppc_target::low_get_thread_area): ...this.
928 (the_low_target): Remove the op field.
929 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
930 Declare.
931 (s390_get_thread_area): Turn into...
932 (s390_target::low_get_thread_area): ...this.
933 (the_low_target): Remove the op field.
934 * linux-arm-low.cc (the_low_target): Remove the op field.
935 * linux-bfin-low.cc (the_low_target): Ditto.
936 * linux-crisv32-low.cc (the_low_target): Ditto.
937 * linux-m32r-low.cc (the_low_target): Ditto.
938 * linux-m68k-low.cc (the_low_target): Ditto.
939 * linux-sh-low.cc (the_low_target): Ditto.
940 * linux-tic6x-low.cc (the_low_target): Ditto.
941 * linux-tile-low.cc (the_low_target): Ditto.
942 * linux-xtensa-low.cc (the_low_target): Ditto.
943
47f70aa7
TBA
9442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
945
946 Remote the 'supports_tracepoints' linux target op and let the
947 concrete linux target define it by overriding the op declared in
948 process_stratum_target.
949
950 * linux-low.h (struct linux_target_ops): Remove the op.
951 (class linux_process_target) <supports_tracepoints>: Remove.
952 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
953 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
954 Declare.
955 (x86_supports_tracepoints): Turn into...
956 (x86_target::supports_tracepoints): ...this.
957 (the_low_target): Remove the op field.
958 * linux-aarch64-low.cc (class aarch64_target)
959 <supports_tracepoints>: Declare.
960 (aarch64_supports_tracepoints): Turn into...
961 (aarch64_target::supports_tracepoints): ...this.
962 (the_low_target): Remove the op field.
963 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
964 Declare.
965 (ppc_supports_tracepoints): Turn into...
966 (ppc_target::supports_tracepoints): ...this.
967 (the_low_target): Remove the op field.
968 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
969 Declare.
970 (s390_supports_tracepoints): Turn into...
971 (s390_target::supports_tracepoints): ...this.
972 (the_low_target): Remove the op field.
973 * linux-arm-low.cc (the_low_target): Remove the op field.
974 * linux-bfin-low.cc (the_low_target): Ditto.
975 * linux-crisv32-low.cc (the_low_target): Ditto.
976 * linux-m32r-low.cc (the_low_target): Ditto.
977 * linux-m68k-low.cc (the_low_target): Ditto.
978 * linux-sh-low.cc (the_low_target): Ditto.
979 * linux-tic6x-low.cc (the_low_target): Ditto.
980 * linux-tile-low.cc (the_low_target): Ditto.
981 * linux-xtensa-low.cc (the_low_target): Ditto.
982
a5b5da92
TBA
9832020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
984
985 Remove the 'process_qsupported' linux target op and let a concrete
986 linux target define the op by overriding the op declaration in
987 process_stratum_target.
988
989 * linux-low.h (struct linux_target_ops): Remove the op.
990 (class linux_process_target) <process_qsupported>: Remove.
991 * linux-low.cc (linux_process_target::process_qsupported): Remove.
992 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
993 (x86_linux_process_qsupported): Turn into...
994 (x86_target::process_qsupported): ...this.
995 (the_low_target): Remove the op field.
996 * linux-aarch64-low.cc (the_low_target): Remove the op
997 field.
998 * linux-arm-low.cc (the_low_target): Ditto.
999 * linux-bfin-low.cc (the_low_target): Ditto.
1000 * linux-crisv32-low.cc (the_low_target): Ditto.
1001 * linux-m32r-low.cc (the_low_target): Ditto.
1002 * linux-m68k-low.cc (the_low_target): Ditto.
1003 * linux-ppc-low.cc (the_low_target): Ditto.
1004 * linux-s390-low.cc (the_low_target): Ditto.
1005 * linux-sh-low.cc (the_low_target): Ditto.
1006 * linux-tic6x-low.cc (the_low_target): Ditto.
1007 * linux-tile-low.cc (the_low_target): Ditto.
1008 * linux-xtensa-low.cc (the_low_target): Ditto.
1009
d7599cc0
TBA
10102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1011
1012 Turn the 'prepare_to_resume' linux target op into a method of
1013 linux_process_target.
1014
1015 * linux-low.h (struct linux_target_ops): Remove the op.
1016 (class linux_process_target) <low_prepare_to_resume>: Declare.
1017 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1018 Define.
1019
1020 Update the callers below:
1021
1022 (linux_process_target::resume_one_lwp_throw)
1023 (linux_process_target::low_prepare_to_resume)
1024
1025 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1026 Declare.
1027 (x86_target::low_prepare_to_resume): Define.
1028 (the_low_target): Remove the op field.
1029 * linux-aarch64-low.cc (class aarch64_target)
1030 <low_prepare_to_resume>: Declare.
1031 (aarch64_target::low_prepare_to_resume): Define.
1032 (the_low_target): Remove the op field.
1033 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1034 Declare.
1035 (arm_prepare_to_resume): Turn into...
1036 (arm_target::low_prepare_to_resume): ...this.
1037 (the_low_target): Remove the op field.
1038 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1039 Declare.
1040 (mips_linux_prepare_to_resume): Turn into...
1041 (mips_target::low_prepare_to_resume): ...this.
1042 (the_low_target): Remove the op field.
1043 * linux-bfin-low.cc (the_low_target): Remove the op field.
1044 * linux-crisv32-low.cc (the_low_target): Ditto.
1045 * linux-m32r-low.cc (the_low_target): Ditto.
1046 * linux-m68k-low.cc (the_low_target): Ditto.
1047 * linux-ppc-low.cc (the_low_target): Ditto.
1048 * linux-s390-low.cc (the_low_target): Ditto.
1049 * linux-sh-low.cc (the_low_target): Ditto.
1050 * linux-tic6x-low.cc (the_low_target): Ditto.
1051 * linux-tile-low.cc (the_low_target): Ditto.
1052 * linux-xtensa-low.cc (the_low_target): Ditto.
1053
fd000fb3
TBA
10542020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1055
1056 Turn the 'new_process', 'delete_process', 'new_thread',
1057 'delete_thread', and 'new_fork' linux target ops into methods
1058 of linux_process_target.
1059
1060 * linux-low.h (struct linux_target_ops): Remove the ops.
1061 (class linux_process_target) <add_linux_process>
1062 <add_lwp>
1063 <delete_lwp>
1064 <attach_lwp>
1065 <detach_one_lwp>
1066 <check_zombie_leaders>
1067 <filter_exit_event>
1068 <low_new_process>
1069 <low_delete_process>
1070 <low_new_thread>
1071 <low_delete_thread>
1072 <low_new_fork>: Declare.
1073 * linux-low.cc (delete_lwp): Turn into...
1074 (linux_process_target::delete_lwp): ...this.
1075 (linux_process_target::low_delete_thread): Define.
1076 (linux_add_process): Turn into...
1077 (linux_process_target::add_linux_process): ...this.
1078 (linux_process_target::low_new_process): Define.
1079 (linux_process_target::low_delete_process): Define.
1080 (linux_process_target::low_new_fork): Define.
1081 (add_lwp): Turn into...
1082 (linux_process_target::add_lwp): ...this.
1083 (linux_process_target::low_new_thread): Define.
1084 (linux_attach_lwp): Turn into...
1085 (linux_process_target::attach_lwp): ...this.
1086 (linux_detach_one_lwp): Turn into...
1087 (linux_process_target::detach_one_lwp): ...this.
1088 (linux_detach_lwp_callback): Remove and inline...
1089 (linux_process_target::detach): ...here.
1090 (check_zombie_leaders): Turn into...
1091 (linux_process_target::check_zombie_leaders): ...this.
1092 (filter_exit_event): Turn into...
1093 (linux_process_target::filter_exit_event): ...this.
1094
1095 Update the callers below.
1096
1097 (linux_process_target::handle_extended_wait)
1098 (linux_process_target::create_inferior)
1099 (attach_proc_task_lwp_callback)
1100 (linux_process_target::attach)
1101 (linux_process_target::detach)
1102 (linux_process_target::mourn)
1103 * thread-db.cc (attach_thread)
1104
1105 * linux-x86-low.cc (class x86_target) <low_new_process>
1106 <low_delete_process>
1107 <low_new_thread>
1108 <low_delete_thread>
1109 <low_new_fork>: Declare.
1110 (x86_linux_new_process): Turn into...
1111 (x86_target::low_new_process): ...this.
1112 (x86_linux_delete_process): Turn into...
1113 (x86_target::low_delete_process): ...this.
1114 (x86_target::low_new_thread): Define.
1115 (x86_target::low_delete_thread): Define.
1116 (x86_linux_new_fork): Turn into...
1117 (x86_target::low_new_fork): ...this.
1118 (the_low_target): Remove the op fields.
1119 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1120 <low_delete_process>
1121 <low_new_thread>
1122 <low_delete_thread>
1123 <low_new_fork>: Declare.
1124 (aarch64_linux_new_process): Turn into...
1125 (aarch64_target::low_new_process): ...this.
1126 (aarch64_linux_delete_process): Turn into...
1127 (aarch64_target::low_delete_process): ...this.
1128 (aarch64_target::low_new_thread): Define.
1129 (aarch64_target::low_delete_thread): Define.
1130 (aarch64_linux_new_fork): Turn into...
1131 (aarch64_target::low_new_fork): ...this.
1132 (the_low_target): Remove the op fields.
1133 * linux-arm-low.cc (class arm_target) <low_new_process>
1134 <low_delete_process>
1135 <low_new_thread>
1136 <low_delete_thread>
1137 <low_new_fork>: Declare.
1138 (arm_new_process): Turn into...
1139 (arm_target::low_new_process): ...this.
1140 (arm_delete_process): Turn into...
1141 (arm_target::low_delete_process): ...this.
1142 (arm_new_thread): Turn into...
1143 (arm_target::low_new_thread): ...this.
1144 (arm_delete_thread): Turn into...
1145 (arm_target::low_delete_thread): ...this.
1146 (arm_new_fork): Turn into...
1147 (arm_target::low_new_fork): ...this.
1148 (the_low_target): Remove the op fields.
1149 * linux-mips-low.cc (class mips_target) <low_new_process>
1150 <low_delete_process>
1151 <low_new_thread>
1152 <low_delete_thread>
1153 <low_new_fork>: Declare.
1154 (mips_linux_new_process): Turn into...
1155 (mips_target::low_new_process): ...this.
1156 (mips_linux_delete_process): Turn into...
1157 (mips_target::low_delete_process): ...this.
1158 (mips_linux_new_thread): Turn into...
1159 (mips_target::low_new_thread): ...this.
1160 (mips_linux_delete_thread): Turn into...
1161 (mips_target::low_delete_thread): ...this.
1162 (mips_linux_new_fork): Turn into...
1163 (mips_target::low_new_fork): ...this.
1164 (the_low_target): Remove the op fields.
1165 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1166 * linux-crisv32-low.cc (the_low_target): Ditto.
1167 * linux-m32r-low.cc (the_low_target): Ditto.
1168 * linux-m68k-low.cc (the_low_target): Ditto.
1169 * linux-ppc-low.cc (the_low_target): Ditto.
1170 * linux-s390-low.cc (the_low_target): Ditto.
1171 * linux-sh-low.cc (the_low_target): Ditto.
1172 * linux-tic6x-low.cc (the_low_target): Ditto.
1173 * linux-tile-low.cc (the_low_target): Ditto.
1174 * linux-xtensa-low.cc (the_low_target): Ditto.
1175
cb63de7c
TBA
11762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1177
1178 Turn the 'siginfo_fixup' linux target op into a method of
1179 linux_process_target.
1180
1181 * linux-low.h (struct linux_target_ops): Remove the op.
1182 (class linux_process_target) <siginfo_fixup>
1183 <low_siginfo_fixup>: Declare.
1184 * linux-low.cc (siginfo_fixup): Turn into...
1185 (linux_process_target::siginfo_fixup): ...this.
1186 (linux_process_target::low_siginfo_fixup): Define.
1187 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1188 (x86_siginfo_fixup): Turn into...
1189 (x86_target::low_siginfo_fixup): ...this.
1190 (the_low_target): Remove the op field.
1191 * linux-aarch64-low.cc (class aarch64_target):
1192 <low_siginfo_fixup>: Declare.
1193 (aarch64_linux_siginfo_fixup): Turn into...
1194 (aarch64_target::low_siginfo_fixup): ...this.
1195 (the_low_target): Remove the op field.
1196 * linux-arm-low.cc (the_low_target): Remove the op field.
1197 * linux-bfin-low.cc (the_low_target): Ditto.
1198 * linux-crisv32-low.cc (the_low_target): Ditto.
1199 * linux-m32r-low.cc (the_low_target): Ditto.
1200 * linux-m68k-low.cc (the_low_target): Ditto.
1201 * linux-mips-low.cc (the_low_target): Ditto.
1202 * linux-ppc-low.cc (the_low_target): Ditto.
1203 * linux-s390-low.cc (the_low_target): Ditto.
1204 * linux-sh-low.cc (the_low_target): Ditto.
1205 * linux-tic6x-low.cc (the_low_target): Ditto.
1206 * linux-tile-low.cc (the_low_target): Ditto.
1207 * linux-xtensa-low.cc (the_low_target): Ditto.
1208
b35db733
TBA
12092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1210
1211 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1212 linux target ops into methods of linux_process_target.
1213
1214 * linux-low.h (struct linux_target_ops): Remove the ops.
1215 (class linux_process_target) <low_collect_ptrace_register>
1216 <low_store_ptrace_register>: Declare.
1217 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1218 (linux_process_target::low_supply_ptrace_register): Define.
1219
1220 Update the callers below.
1221
1222 (linux_process_target::fetch_register)
1223 (linux_process_target::store_register)
1224
1225 * linux-x86-low.cc (the_low_target): Remove the op fields.
1226 * linux-aarch64-low.cc (the_low_target): Ditto.
1227 * linux-arm-low.cc (the_low_target): Ditto.
1228 * linux-bfin-low.cc (the_low_target): Ditto.
1229 * linux-crisv32-low.cc (the_low_target): Ditto.
1230 * linux-m32r-low.cc (the_low_target): Ditto.
1231 * linux-m68k-low.cc (the_low_target): Ditto.
1232 * linux-sh-low.cc (the_low_target): Ditto.
1233 * linux-sparc-low.cc (the_low_target): Ditto.
1234 * linux-tic6x-low.cc (the_low_target): Ditto.
1235 * linux-tile-low.cc (the_low_target): Ditto.
1236 * linux-xtensa-low.cc (the_low_target): Ditto.
1237 * linux-mips-low.cc (class mips_target)
1238 <low_collect_ptrace_register>
1239 <low_supply_ptrace_register>: Declare.
1240 (mips_collect_ptrace_register): Turn into ...
1241 (mips_target::low_collect_ptrace_register): ...this.
1242 (mips_supply_ptrace_register): Turn into...
1243 (mips_target::low_supply_ptrace_register): ...this.
1244 (the_low_target): Remove the op fields.
1245 * linux-ppc-low.cc (class ppc_target)
1246 <low_collect_ptrace_register>
1247 <low_supply_ptrace_register>: Declare.
1248 (ppc_collect_ptrace_register): Turn into ...
1249 (ppc_target::low_collect_ptrace_register): ...this.
1250 (ppc_supply_ptrace_register): Turn into ...
1251 (ppc_target::low_supply_ptrace_register): ...this.
1252 (ppc_fill_gregset): Update for the calls to
1253 low_collect_ptrace_register.
1254 (the_low_target): Remove the op fields.
1255 * linux-s390-low.cc (class s390_target)
1256 <low_collect_ptrace_register>
1257 <low_supply_ptrace_register>: Declare.
1258 (s390_collect_ptrace_register): Turn into ...
1259 (s390_target::low_collect_ptrace_register): ...this.
1260 (s390_supply_ptrace_register): Turn into ...
1261 (s390_target::low_supply_ptrace_register): ...this.
1262 (s390_fill_gregset): Update for the calls to
1263 low_collect_ptrace_register.
1264 (the_low_target): Remove the op fields.
1265
ac1bbaca
TBA
12662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1267
1268 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1269 target ops into methods of linux_process_target.
1270
1271 * linux-low.h (struct linux_target_ops): Remove the ops.
1272 (class linux_process_target) <check_stopped_by_watchpoint>
1273 <low_stopped_by_watchpoint>
1274 <low_stopped_data_address>: Declare.
1275 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1276 (linux_process_target::check_stopped_by_watchpoint): ...this.
1277 (linux_process_target::low_stopped_by_watchpoint): Define.
1278 (linux_process_target::low_stopped_data_address): Define.
1279 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1280 <low_stopped_data_address>: Declare.
1281 (x86_stopped_by_watchpoint): Turn into...
1282 (x86_target::low_stopped_by_watchpoint): ...this.
1283 (x86_stopped_data_address): Turn into...
1284 (x86_target::low_stopped_data_address): ...this.
1285 (the_low_target): Remove the op fields.
1286 * linux-aarch64-low.cc (class aarch64_target)
1287 <low_stopped_by_watchpoint>
1288 <low_stopped_data_address>: Declare.
1289 (aarch64_stopped_by_watchpoint): Turn into...
1290 (aarch64_target::low_stopped_by_watchpoint): ...this.
1291 (aarch64_stopped_data_address): Turn into...
1292 (aarch64_target::low_stopped_data_address): ...this.
1293 (the_low_target): Remove the op fields.
1294 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1295 <low_stopped_data_address>: Declare.
1296 (arm_stopped_by_watchpoint): Turn into...
1297 (arm_target::low_stopped_by_watchpoint): ...this.
1298 (arm_stopped_data_address): Turn into...
1299 (arm_target::low_stopped_data_address): ...this.
1300 (the_low_target): Remove the op fields.
1301 * linux-crisv32-low.cc (class crisv32_target)
1302 <low_stopped_by_watchpoint>
1303 <low_stopped_data_address>: Declare.
1304 (cris_stopped_by_watchpoint): Turn into...
1305 (crisv32_target::low_stopped_by_watchpoint): ...this.
1306 (cris_stopped_data_address): Turn into...
1307 (crisv32_target::low_stopped_data_address): ...this.
1308 (the_low_target): Remove the op fields.
1309 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1310 <low_stopped_data_address>: Declare.
1311 (mips_stopped_by_watchpoint): Turn into...
1312 (mips_target::low_stopped_by_watchpoint): ...this.
1313 (mips_stopped_data_address): Turn into...
1314 (mips_target::low_stopped_data_address): ...this.
1315 (the_low_target): Remove the op fields.
1316 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1317 * linux-m32r-low.cc (the_low_target): Ditto.
1318 * linux-m68k-low.cc (the_low_target): Ditto.
1319 * linux-ppc-low.cc (the_low_target): Ditto.
1320 * linux-s390-low.cc (the_low_target): Ditto.
1321 * linux-sh-low.cc (the_low_target): Ditto.
1322 * linux-sparc-low.cc (the_low_target): Ditto.
1323 * linux-tic6x-low.cc (the_low_target): Ditto.
1324 * linux-tile-low.cc (the_low_target): Ditto.
1325 * linux-xtensa-low.cc (the_low_target): Ditto.
1326
9db9aa23
TBA
13272020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1328
1329 Turn the 'insert_point' and 'remove_point' linux target ops into
1330 methods of linux_process_target.
1331
1332 * linux-low.h (struct linux_target_ops): Remove the ops.
1333 (class linux_process_target) <low_insert_point>
1334 <low_remove_point>: Declare.
1335 * linux-low.cc (linux_process_target::low_insert_point)
1336 (linux_process_target::low_remove_point): Define.
1337 (linux_process_target::insert_point)
1338 (linux_process_target::remove_point): Update for calls to
1339 low_insert_point and low_remove_point.
1340 * linux-x86-low.cc (class x86_target) <low_insert_point>
1341 <low_remove_point>: Declare.
1342 (x86_insert_point): Turn into...
1343 (x86_target::low_insert_point): ...this.
1344 (x86_remove_point): Turn into...
1345 (x86_target::low_remove_point): ...this.
1346 (the_low_target): Remove the op fields.
1347 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1348 <low_remove_point>: Declare.
1349 (aarch64_insert_point): Turn into...
1350 (aarch64_target::low_insert_point): ...this.
1351 (aarch64_remove_point): Turn into...
1352 (aarch64_target::low_remove_point): ...this.
1353 (the_low_target): Remove the op fields.
1354 * linux-arm-low.cc (class arm_target) <low_insert_point>
1355 <low_remove_point>: Declare.
1356 (arm_insert_point): Turn into...
1357 (arm_target::low_insert_point): ...this.
1358 (arm_remove_point): Turn into...
1359 (arm_target::low_remove_point): ...this.
1360 (the_low_target): Remove the op fields.
1361 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1362 <low_remove_point>: Declare.
1363 (crisv32_insert_point): Turn into...
1364 (crisv32_target::low_insert_point): ...this.
1365 (crisv32_remove_point): Turn into...
1366 (crisv32_target::low_remove_point): ...this.
1367 (the_low_target): Remove the op fields.
1368 * linux-mips-low.cc (class mips_target) <low_insert_point>
1369 <low_remove_point>: Declare.
1370 (mips_insert_point): Turn into...
1371 (mips_target::low_insert_point): ...this.
1372 (mips_remove_point): Turn into...
1373 (mips_target::low_remove_point): ...this.
1374 (the_low_target): Remove the op fields.
1375 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1376 <low_remove_point>: Declare.
1377 (ppc_insert_point): Turn into...
1378 (ppc_target::low_insert_point): ...this.
1379 (ppc_remove_point): Turn into...
1380 (ppc_target::low_remove_point): ...this.
1381 (the_low_target): Remove the op fields.
1382 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1383 * linux-m32r-low.cc (the_low_target): Ditto.
1384 * linux-m68k-low.cc (the_low_target): Ditto.
1385 * linux-s390-low.cc (the_low_target): Ditto.
1386 * linux-sh-low.cc (the_low_target): Ditto.
1387 * linux-sparc-low.cc (the_low_target): Ditto.
1388 * linux-tic6x-low.cc (the_low_target): Ditto.
1389 * linux-tile-low.cc (the_low_target): Ditto.
1390 * linux-xtensa-low.cc (the_low_target): Ditto.
1391
007c9b97
TBA
13922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1393
1394 Remove the 'supports_z_point_type' linux target op and let the
1395 concrete linux target define it by overriding the op declared in
1396 process_stratum_target.
1397
1398 * linux-low.cc (linux_process_target::supports_z_point_type):
1399 Remove.
1400 * linux-low.h (struct linux_target_ops): Remove the op.
1401 (class linux_process_target) <supports_z_point_type>: Remove.
1402 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1403 Declare.
1404 (x86_supports_z_point_type): Turn into...
1405 (x86_target::supports_z_point_type): ...this.
1406 (the_low_target): Remove the op field.
1407 * linux-aarch64-low.cc (class aarch64_target)
1408 <supports_z_point_type>: Declare.
1409 (aarch64_supports_z_point_type): Turn into...
1410 (aarch64_target::supports_z_point_type): ...this.
1411 (the_low_target): Remove the op field.
1412 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1413 Declare.
1414 (arm_supports_z_point_type): Turn into...
1415 (arm_target::supports_z_point_type): ...this.
1416 (the_low_target): Remove the op field.
1417 * linux-crisv32-low.cc (class crisv32_target)
1418 <supports_z_point_type>: Declare.
1419 (cris_supports_z_point_type): Turn into...
1420 (crisv32_target::supports_z_point_type): ...this.
1421 (the_low_target): Remove the op field.
1422 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1423 Declare.
1424 (mips_supports_z_point_type): Turn into...
1425 (mips_target::supports_z_point_type): ...this.
1426 (the_low_target): Remove the op field.
1427 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1428 Declare.
1429 (ppc_supports_z_point_type): Turn into...
1430 (ppc_target::supports_z_point_type): ...this.
1431 (the_low_target): Remove the op field.
1432 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1433 Declare.
1434 (s390_supports_z_point_type): Turn into...
1435 (s390_target::supports_z_point_type): ...this.
1436 (the_low_target): Remove the op field.
1437 * linux-bfin-low.cc (the_low_target): Remove the op field.
1438 * linux-m32r-low.cc (the_low_target): Ditto.
1439 * linux-m68k-low.cc (the_low_target): Ditto.
1440 * linux-sh-low.cc (the_low_target): Ditto.
1441 * linux-sparc-low.cc (the_low_target): Ditto.
1442 * linux-tic6x-low.cc (the_low_target): Ditto.
1443 * linux-tile-low.cc (the_low_target): Ditto.
1444 * linux-xtensa-low.cc (the_low_target): Ditto.
1445
d7146cda
TBA
14462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1447
1448 Turn the 'breakpoint_at' linux target op into a method of
1449 linux_process_target.
1450
1451 * linux-low.h (struct linux_target_ops): Remove the op.
1452 (class linux_process_target) <low_breakpoint_at>: Declare.
1453
1454 Update the callers below:
1455
1456 * linux-low.cc (linux_process_target::save_stop_reason)
1457 (linux_process_target::thread_still_has_status_pending)
1458 (linux_process_target::wait_1)
1459
1460 * linux-x86-low.cc (class x86_target)
1461 <low_breakpoint_at>: Declare.
1462 (x86_breakpoint_at): Turn into...
1463 (x86_target::low_breakpoint_at): ...this.
1464 (the_low_target): Remove the op field.
1465 * linux-aarch64-low.cc (class aarch64_target)
1466 <low_breakpoint_at>: Declare.
1467 (aarch64_breakpoint_at): Turn into...
1468 (aarch64_target::low_breakpoint_at): ...this.
1469 (the_low_target): Remove the op field.
1470 * linux-arm-low.cc (class arm_target)
1471 <low_breakpoint_at>: Declare.
1472 (arm_target::low_breakpoint_at): Define.
1473 (the_low_target): Remove the op field.
1474 * linux-bfin-low.cc (class bfin_target)
1475 <low_breakpoint_at>: Declare.
1476 (bfin_breakpoint_at): Turn into...
1477 (bfin_target::low_breakpoint_at): ...this.
1478 (the_low_target): Remove the op field.
1479 * linux-cris-low.cc (class cris_target)
1480 <low_breakpoint_at>: Declare.
1481 (cris_breakpoint_at): Turn into...
1482 (cris_target::low_breakpoint_at): ...this.
1483 (the_low_target): Remove the op field.
1484 * linux-crisv32-low.cc (class crisv32_target)
1485 <low_breakpoint_at>: Declare.
1486 (crisv32_breakpoint_at): Turn into...
1487 (crisv32_target::low_breakpoint_at): ...this.
1488 (the_low_target): Remove the op field.
1489 * linux-ia64-low.cc (class ia64_target)
1490 <low_breakpoint_at>: Declare.
1491 (ia64_target::low_breakpoint_at): Define.
1492 * linux-m32r-low.cc (class m32r_target)
1493 <low_breakpoint_at>: Declare.
1494 (m32r_breakpoint_at): Turn into...
1495 (m32r_target::low_breakpoint_at): ...this.
1496 (the_low_target): Remove the op field.
1497 * linux-m68k-low.cc (class m68k_target)
1498 <low_breakpoint_at>: Declare.
1499 (m68k_breakpoint_at): Turn into...
1500 (m68k_target::low_breakpoint_at): ...this.
1501 (the_low_target): Remove the op field.
1502 * linux-mips-low.cc (class mips_target)
1503 <low_breakpoint_at>: Declare.
1504 (mips_breakpoint_at): Turn into...
1505 (mips_target::low_breakpoint_at): ...this.
1506 (the_low_target): Remove the op field.
1507 * linux-nios2-low.cc (class nios2_target)
1508 <low_breakpoint_at>: Declare.
1509 (nios2_breakpoint_at): Turn into...
1510 (nios2_target::low_breakpoint_at): ...this.
1511 (the_low_target): Remove the op field.
1512 * linux-ppc-low.cc (class ppc_target)
1513 <low_breakpoint_at>: Declare.
1514 (ppc_breakpoint_at): Turn into...
1515 (ppc_target::low_breakpoint_at): ...this.
1516 (the_low_target): Remove the op field.
1517 * linux-riscv-low.cc (class riscv_target)
1518 <low_breakpoint_at>: Declare.
1519 (riscv_breakpoint_at): Turn into...
1520 (riscv_target::low_breakpoint_at): ...this.
1521 (the_low_target): Remove the op field.
1522 * linux-s390-low.cc (class s390_target)
1523 <low_breakpoint_at>: Declare.
1524 (s390_breakpoint_at): Turn into...
1525 (s390_target::low_breakpoint_at): ...this.
1526 (the_low_target): Remove the op field.
1527 * linux-sh-low.cc (class sh_target)
1528 <low_breakpoint_at>: Declare.
1529 (sh_breakpoint_at): Turn into...
1530 (sh_target::low_breakpoint_at): ...this.
1531 (the_low_target): Remove the op field.
1532 * linux-sparc-low.cc (class sparc_target)
1533 <low_breakpoint_at>: Declare.
1534 (sparc_breakpoint_at): Turn into...
1535 (sparc_target::low_breakpoint_at): ...this.
1536 (the_low_target): Remove the op field.
1537 * linux-tic6x-low.cc (class tic6x_target)
1538 <low_breakpoint_at>: Declare.
1539 (tic6x_breakpoint_at): Turn into...
1540 (tic6x_target::low_breakpoint_at): ...this.
1541 (the_low_target): Remove the op field.
1542 * linux-tile-low.cc (class tile_target)
1543 <low_breakpoint_at>: Declare.
1544 (tile_breakpoint_at): Turn into...
1545 (tile_target::low_breakpoint_at): ...this.
1546 (the_low_target): Remove the op field.
1547 * linux-xtensa-low.cc (class xtensa_target)
1548 <low_breakpoint_at>: Declare.
1549 (xtensa_breakpoint_at): Turn into...
1550 (xtensa_target::low_breakpoint_at): ...this.
1551 (the_low_target): Remove the op field.
1552
d4807ea2
TBA
15532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1554
1555 Turn the 'decr_pc_after_break' linux_target_ops field into
1556 a method of linux_process_target.
1557
1558 * linux-low.h (struct linux_target_ops)
1559 <decr_pc_after_break>: Remove.
1560 (class linux_process_target) <low_decr_pc_after_break>: New method
1561 declaration.
1562 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1563 New method implementation.
1564
1565 Update the users below.
1566
1567 (linux_process_target::save_stop_reason)
1568 (linux_process_target::wait_1)
1569 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1570 New declaration.
1571 (x86_target::low_decr_pc_after_break): New method implementation.
1572 (the_low_target): Remove the field.
1573 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1574 New declaration.
1575 (bfin_target::low_decr_pc_after_break): New method implementation.
1576 (the_low_target): Remove the field.
1577 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1578 New declaration.
1579 (m68k_target::low_decr_pc_after_break): New method implementation.
1580 (the_low_target): Remove the field.
1581 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1582 New declaration.
1583 (s390_target::low_decr_pc_after_break): New method implementation.
1584 (the_low_target): Remove the field.
1585 * linux-aarch64-low.cc (the_low_target): Remove the field.
1586 * linux-arm-low.cc (the_low_target): Remove the field.
1587 * linux-cris-low.cc (the_low_target): Remove the field.
1588 * linux-crisv32-low.cc (the_low_target): Remove the field.
1589 * linux-m32r-low.cc (the_low_target): Remove the field.
1590 * linux-mips-low.cc (the_low_target): Remove the field.
1591 * linux-nios2-low.cc (the_low_target): Remove the field.
1592 * linux-ppc-low.cc (the_low_target): Remove the field.
1593 * linux-riscv-low.cc (the_low_target): Remove the field.
1594 * linux-sh-low.cc (the_low_target): Remove the field.
1595 * linux-sparc-low.cc (the_low_target): Remove the field.
1596 * linux-tic6x-low.cc (the_low_target): Remove the field.
1597 * linux-tile-low.cc (the_low_target): Remove the field.
1598 * linux-xtensa-low.cc (the_low_target): Remove the field.
1599
7582c77c
TBA
16002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1601
1602 Remove the 'supports_software_single_step' linux target op and let
1603 the concrete linux target define it by overriding the op in
1604 process_stratum_target.
1605 Turn the 'get_next_pcs' linux target op into a method of
1606 linux_process_target.
1607
1608 * linux-low.h (struct linux_target_ops): Remove the ops.
1609 (class linux_process_target) <supports_software_single_step>:
1610 Remove.
1611 <low_get_next_pcs>: Declare.
1612 * linux-low.cc (can_software_single_step): Remove.
1613 (linux_process_target::low_get_next_pcs): Define.
1614 (linux_process_target::supports_software_single_step): Remove.
1615
1616 Update the callers below.
1617
1618 (linux_process_target::handle_extended_wait)
1619 (linux_process_target::wait_1)
1620 (linux_process_target::install_software_single_step_breakpoints)
1621 (linux_process_target::single_step)
1622 (linux_process_target::thread_needs_step_over)
1623 (linux_process_target::proceed_one_lwp)
1624 (linux_process_target::supports_range_stepping)
1625
1626 * linux-x86-low.cc (the_low_target): Remove the op field.
1627 * linux-aarch64-low.cc (the_low_target): Ditto.
1628 * linux-bfin-low.cc (the_low_target): Ditto.
1629 * linux-cris-low.cc (the_low_target): Ditto.
1630 * linux-crisv32-low.cc (the_low_target): Ditto.
1631 * linux-m32r-low.cc (the_low_target): Ditto.
1632 * linux-m68k-low.cc (the_low_target): Ditto.
1633 * linux-mips-low.cc (the_low_target): Ditto.
1634 * linux-nios2-low.cc (the_low_target): Ditto.
1635 * linux-ppc-low.cc (the_low_target): Ditto.
1636 * linux-riscv-low.cc (the_low_target): Ditto.
1637 * linux-s390-low.cc (the_low_target): Ditto.
1638 * linux-sh-low.cc (the_low_target): Ditto.
1639 * linux-sparc-low.cc (the_low_target): Ditto.
1640 * linux-tic6x-low.cc (the_low_target): Ditto.
1641 * linux-tile-low.cc (the_low_target): Ditto.
1642 * linux-xtensa-low.cc (the_low_target): Ditto.
1643 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1644 <supports_software_single_step>: Declare.
1645 (arm_target::supports_software_single_step): Define.
1646 (arm_gdbserver_get_next_pcs): Turn into...
1647 (arm_target::low_get_next_pcs): ...this.
1648 (the_low_target): Remove the op field.
1649
3ca4edb6
TBA
16502020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1651
1652 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1653 the concrete linux target define it by overriding the op
1654 in process_stratum_target.
1655
1656 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1657 Remove.
1658 * linux-low.h (struct linux_target_ops): Remove the op.
1659 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1660 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1661 Declare.
1662 (x86_sw_breakpoint_from_kind): Turn into...
1663 (x86_target::sw_breakpoint_from_kind): ...this.
1664 (the_low_target): Remove the op field.
1665 * linux-aarch64-low.cc (class aarch64_target)
1666 <sw_breakpoint_from_kind>: Declare.
1667 (aarch64_sw_breakpoint_from_kind): Turn into...
1668 (aarch64_target::sw_breakpoint_from_kind): ...this.
1669 (the_low_target): Remove the op field.
1670 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1671 Declare.
1672 (arm_target::sw_breakpoint_from_kind): Define.
1673 (the_low_target): Remove the op field.
1674 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1675 Declare.
1676 (bfin_sw_breakpoint_from_kind): Turn into...
1677 (bfin_target::sw_breakpoint_from_kind): ...this.
1678 (the_low_target): Remove the op field.
1679 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1680 Declare.
1681 (cris_sw_breakpoint_from_kind): Turn into...
1682 (cris_target::sw_breakpoint_from_kind): ...this.
1683 (the_low_target): Remove the op field.
1684 * linux-crisv32-low.cc (class crisv32_target)
1685 <sw_breakpoint_from_kind>: Declare.
1686 (cris_sw_breakpoint_from_kind): Turn into...
1687 (crisv32_target::sw_breakpoint_from_kind): ...this.
1688 (the_low_target): Remove the op field.
1689 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1690 Declare.
1691 (ia64_target::sw_breakpoint_from_kind): Define.
1692 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1693 Declare.
1694 (m32r_sw_breakpoint_from_kind): Turn into...
1695 (m32r_target::sw_breakpoint_from_kind): ...this.
1696 (the_low_target): Remove the op field.
1697 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1698 Declare.
1699 (m68k_sw_breakpoint_from_kind): Turn into...
1700 (m68k_target::sw_breakpoint_from_kind): ...this.
1701 (the_low_target): Remove the op field.
1702 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1703 Declare.
1704 (mips_sw_breakpoint_from_kind): Turn into...
1705 (mips_target::sw_breakpoint_from_kind): ...this.
1706 (the_low_target): Remove the op field.
1707 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1708 Declare.
1709 (nios2_sw_breakpoint_from_kind): Turn into...
1710 (nios2_target::sw_breakpoint_from_kind): ...this.
1711 (the_low_target): Remove the op field.
1712 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1713 Declare.
1714 (ppc_sw_breakpoint_from_kind): Turn into...
1715 (ppc_target::sw_breakpoint_from_kind): ...this.
1716 (the_low_target): Remove the op field.
1717 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1718 Declare.
1719 (riscv_sw_breakpoint_from_kind): Turn into...
1720 (riscv_target::sw_breakpoint_from_kind): ...this.
1721 (the_low_target): Remove the op field.
1722 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1723 Declare.
1724 (s390_sw_breakpoint_from_kind): Turn into...
1725 (s390_target::sw_breakpoint_from_kind): ...this.
1726 (the_low_target): Remove the op field.
1727 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1728 Declare.
1729 (sh_sw_breakpoint_from_kind): Turn into...
1730 (sh_target::sw_breakpoint_from_kind): ...this.
1731 (the_low_target): Remove the op field.
1732 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1733 Declare.
1734 (sparc_sw_breakpoint_from_kind): Turn into...
1735 (sparc_target::sw_breakpoint_from_kind): ...this.
1736 (the_low_target): Remove the op field.
1737 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1738 Declare.
1739 (tic6x_sw_breakpoint_from_kind): Turn into...
1740 (tic6x_target::sw_breakpoint_from_kind): ...this.
1741 (the_low_target): Remove the op field.
1742 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1743 Declare.
1744 (tile_sw_breakpoint_from_kind): Turn into...
1745 (tile_target::sw_breakpoint_from_kind): ...this.
1746 (the_low_target): Remove the op field.
1747 * linux-xtensa-low.cc (class xtensa_target)
1748 <sw_breakpoint_from_kind>: Declare.
1749 (xtensa_sw_breakpoint_from_kind): Turn into...
1750 (xtensa_target::sw_breakpoint_from_kind): ...this.
1751 (the_low_target): Remove the op field.
1752
06250e4e
TBA
17532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1754
1755 Remove the 'breakpoint_kind_from_pc' and
1756 'breakpoint_kind_from_current_state' linux target ops, and let the
1757 concrete linux target define them by overriding the ops of
1758 process_stratum_target.
1759
1760 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1761 Remove.
1762 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1763 * linux-low.h (struct linux_target_ops): Remove ops.
1764 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1765 <breakpoint_kind_from_current_state>: Remove.
1766 * linux-x86-low.cc (the_low_target): Remove the op fields.
1767 * linux-bfin-low.cc (the_low_target): Ditto.
1768 * linux-cris-low.cc (the_low_target): Ditto.
1769 * linux-crisv32-low.cc (the_low_target): Ditto.
1770 * linux-m32r-low.cc (the_low_target): Ditto.
1771 * linux-m68k-low.cc (the_low_target): Ditto.
1772 * linux-mips-low.cc (the_low_target): Ditto.
1773 * linux-nios2-low.cc (the_low_target): Ditto.
1774 * linux-ppc-low.cc (the_low_target): Ditto.
1775 * linux-s390-low.cc (the_low_target): Ditto.
1776 * linux-sh-low.cc (the_low_target): Ditto.
1777 * linux-sparc-low.cc (the_low_target): Ditto.
1778 * linux-tic6x-low.cc (the_low_target): Ditto.
1779 * linux-tile-low.cc (the_low_target): Ditto.
1780 * linux-xtensa-low.cc (the_low_target): Ditto.
1781 * linux-aarch64-low.cc (class aarch64_target)
1782 <breakpoint_kind_from_pc>
1783 <breakpoint_kind_from_current_state>: Declare.
1784 (aarch64_breakpoint_kind_from_pc): Turn into...
1785 (aarch64_target::breakpoint_kind_from_pc): ...this.
1786 (aarch64_breakpoint_kind_from_current_state): Turn into...
1787 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1788 (the_low_target): Remove the op fields.
1789 * linux-arm-low.cc (class arm_target):
1790 <breakpoint_kind_from_pc>
1791 <breakpoint_kind_from_current_state>: Declare.
1792 (arm_target::breakpoint_kind_from_pc): Define.
1793 (arm_target::breakpoint_kind_from_current_state): Define.
1794 (the_low_target): Remove the op fields.
1795 * linux-riscv-low.cc (class riscv_target):
1796 <breakpoint_kind_from_pc>: Declare.
1797 (riscv_breakpoint_kind_from_pc): Turn into...
1798 (riscv_target::breakpoint_kind_from_pc): ...this.
1799 (the_low_target): Remove the op fields.
1800
bf9ae9d8
TBA
18012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1802
1803 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1804 of linux_process_target.
1805
1806 * linux-low.h (struct linux_target_ops): Remove the ops.
1807 (class linux_process_target) <low_supports_breakpoints>
1808 <low_get_pc>
1809 <low_set_pc>: Declare.
1810 * linux-low.cc (supports_breakpoints): Turn into...
1811 (linux_process_target::low_supports_breakpoints): ...this.
1812 (linux_process_target::low_get_pc): Define.
1813 (linux_process_target::low_set_pc): Define.
1814
1815 Update the callers below.
1816
1817 (linux_process_target::get_pc)
1818 (linux_process_target::save_stop_reason)
1819 (linux_process_target::maybe_move_out_of_jump_pad)
1820 (linux_process_target::wait_1)
1821 (linux_process_target::resume_one_lwp_throw)
1822 (linux_process_target::resume)
1823 (linux_process_target::proceed_all_lwps)
1824 (linux_process_target::read_pc)
1825 (linux_process_target::write_pc)
1826
1827 * linux-x86-low.cc (class linux_process_target)
1828 <low_supports_breakpoints>
1829 <low_get_pc>
1830 <low_set_pc>: Declare.
1831 (x86_target::low_supports_breakpoints): Define.
1832 (x86_get_pc): Turn into...
1833 (x86_target::low_get_pc): ...this.
1834 (x86_set_pc): Turn into...
1835 (x86_target::low_set_pc): ...this.
1836 (the_low_target): Remove the op fields.
1837 * linux-arm-low.cc (class arm_target)
1838 <low_supports_breakpoints>
1839 <low_get_pc>
1840 <low_set_pc>: Declare.
1841 (arm_target::low_supports_breakpoints)
1842 (arm_target::low_get_pc)
1843 (arm_target::low_set_pc): Define.
1844 (the_low_target): Remove the op fields.
1845 * linux-bfin-low.cc (class bfin_target)
1846 <low_supports_breakpoints>
1847 <low_get_pc>
1848 <low_set_pc>: Declare.
1849 (bfin_target::low_supports_breakpoints)
1850 (bfin_target::low_get_pc)
1851 (bfin_target::low_set_pc): Define.
1852 (the_low_target): Remove the op fields.
1853 * linux-cris-low.cc (class cris_target)
1854 <low_supports_breakpoints>
1855 <low_get_pc>
1856 <low_set_pc>: Declare.
1857 (cris_target::low_supports_breakpoints)
1858 (cris_target::low_get_pc)
1859 (cris_target::low_set_pc): Define.
1860 (the_low_target): Remove the op fields.
1861 * linux-crisv32-low.cc (class crisv32_target)
1862 <low_supports_breakpoints>
1863 <low_get_pc>
1864 <low_set_pc>: Declare.
1865 (crisv32_target::low_supports_breakpoints)
1866 (crisv32_target::low_get_pc)
1867 (crisv32_target::low_set_pc): Define.
1868 (the_low_target): Remove the op fields.
1869 * linux-m32r-low.cc (class m32r_target)
1870 <low_supports_breakpoints>
1871 <low_get_pc>
1872 <low_set_pc>: Declare.
1873 (m32r_target::low_supports_breakpoints)
1874 (m32r_target::low_get_pc)
1875 (m32r_target::low_set_pc): Define.
1876 (the_low_target): Remove the op fields.
1877 * linux-m68k-low.cc (class m68k_target)
1878 <low_supports_breakpoints>
1879 <low_get_pc>
1880 <low_set_pc>: Declare.
1881 (m68k_target::low_supports_breakpoints)
1882 (m68k_target::low_get_pc)
1883 (m68k_target::low_set_pc): Define.
1884 (the_low_target): Remove the op fields.
1885 * linux-nios2-low.cc (class nios2_target)
1886 <low_supports_breakpoints>
1887 <low_get_pc>
1888 <low_set_pc>: Declare.
1889 (nios2_target::low_supports_breakpoints)
1890 (nios2_target::low_get_pc)
1891 (nios2_target::low_set_pc): Define.
1892 (the_low_target): Remove the op fields.
1893 * linux-sh-low.cc (class sh_target)
1894 <low_supports_breakpoints>
1895 <low_get_pc>
1896 <low_set_pc>: Declare.
1897 (sh_target::low_supports_breakpoints)
1898 (sh_target::low_get_pc)
1899 (sh_target::low_set_pc): Define.
1900 (the_low_target): Remove the op fields.
1901 * linux-xtensa-low.cc (class xtensa_target)
1902 <low_supports_breakpoints>
1903 <low_get_pc>
1904 <low_set_pc>: Declare.
1905 (xtensa_target::low_supports_breakpoints)
1906 (xtensa_target::low_get_pc)
1907 (xtensa_target::low_set_pc): Define.
1908 (the_low_target): Remove the op fields.
1909 * linux-sparc-low.cc (class sparc_target)
1910 <low_supports_breakpoints>
1911 <low_get_pc>: Declare.
1912 (sparc_target::low_supports_breakpoints)
1913 (sparc_target::low_get_pc): Define.
1914 (the_low_target): Remove the op fields.
1915 * linux-tile-low.cc (class tile_target)
1916 <low_supports_breakpoints>
1917 <low_get_pc>
1918 <low_set_pc>: Declare.
1919 (tile_target::low_supports_breakpoints)
1920 (tile_target::low_get_pc)
1921 (tile_target::low_set_pc): Define.
1922 (the_low_target): Remove the op fields.
1923 * linux-aarch64-low.cc (class aarch64_target)
1924 <low_supports_breakpoints>
1925 <low_get_pc>
1926 <low_set_pc>: Declare.
1927 (aarch64_target::low_supports_breakpoints): Define.
1928 (aarch64_get_pc): Turn into...
1929 (aarch64_target::low_get_pc): ...this.
1930 (aarch64_set_pc): Turn into...
1931 (aarch64_target::low_set_pc): ...this.
1932 (the_low_target): Remove the op fields.
1933 * linux-mips-low.cc (class mips_target)
1934 <low_supports_breakpoints>
1935 <low_get_pc>
1936 <low_set_pc>: Declare.
1937 (mips_target::low_supports_breakpoints): Define.
1938 (mips_get_pc): Turn into...
1939 (mips_target::low_get_pc): ...this.
1940 (mips_set_pc): Turn into...
1941 (mips_target::low_set_pc): ...this.
1942 (the_low_target): Remove the op fields.
1943 * linux-ppc-low.cc (class ppc_target)
1944 <low_supports_breakpoints>
1945 <low_get_pc>
1946 <low_set_pc>: Declare.
1947 (ppc_target::low_supports_breakpoints): Define.
1948 (ppc_get_pc): Turn into...
1949 (ppc_target::low_get_pc): ...this.
1950 (ppc_set_pc): Turn into...
1951 (ppc_target::low_set_pc): ...this.
1952 (the_low_target): Remove the op fields.
1953 * linux-riscv-low.cc (class riscv_target)
1954 <low_supports_breakpoints>
1955 <low_get_pc>
1956 <low_set_pc>: Declare.
1957 (riscv_target::low_supports_breakpoints): Define.
1958 (riscv_get_pc): Turn into...
1959 (riscv_target::low_get_pc): ...this.
1960 (riscv_set_pc): Turn into...
1961 (riscv_target::low_set_pc): ...this.
1962 (the_low_target): Remove the op fields.
1963 * linux-s390-low.cc (class s390_target)
1964 <low_supports_breakpoints>
1965 <low_get_pc>
1966 <low_set_pc>: Declare.
1967 (s390_target::low_supports_breakpoints): Define.
1968 (s390_get_pc): Turn into...
1969 (s390_target::low_get_pc): ...this.
1970 (s390_set_pc): Turn into...
1971 (s390_target::low_set_pc): ...this.
1972 (the_low_target): Remove the op fields.
1973 * linux-tic6x-low.cc (class tic6x_target)
1974 <low_supports_breakpoints>
1975 <low_get_pc>
1976 <low_set_pc>: Declare.
1977 (tic6x_target::low_supports_breakpoints): Define.
1978 (tic6x_get_pc): Turn into...
1979 (tic6x_target::low_get_pc): ...this.
1980 (tic6x_set_pc): Turn into...
1981 (tic6x_target::low_set_pc): ...this.
1982 (the_low_target): Remove the op fields.
1983
df95181f
TBA
19842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1985
1986 Turn some more static methods in linux-low into private methods
1987 of linux_process_target.
1988
1989 * linux-low.cc (get_pc): Turn into...
1990 (linux_process_target::get_pc): ...this.
1991 (save_stop_reason): Turn into...
1992 (linux_process_target::save_stop_reason): ...this.
1993 (thread_still_has_status_pending_p): Turn into...
1994 (linux_process_target::thread_still_has_status_pending): ...this.
1995 (status_pending_p_callback): Turn into...
1996 (linux_process_target::status_pending_p_callback): ...this.
1997 (resume_stopped_resumed_lwps): Turn into...
1998 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1999 (install_software_single_step_breakpoints): Turn into...
2000 (linux_process_target::install_software_single_step_breakpoints):
2001 ...this.
2002 (single_step): Turn into...
2003 (linux_process_target::single_step): ...this.
2004 (linux_resume_one_lwp_throw): Turn into...
2005 (linux_process_target::resume_one_lwp_throw): ...this.
2006 (linux_resume_one_lwp): Turn into...
2007 (linux_process_target::resume_one_lwp): ...this.
2008 (resume_status_pending_p): Turn into...
2009 (linux_process_target::resume_status_pending): ...this.
2010 (need_step_over_p): Turn into...
2011 (linux_process_target::thread_needs_step_over): ...this.
2012 (linux_resume_one_thread): Turn into...
2013 (linux_process_target::resume_one_thread): ...this.
2014 (proceed_one_lwp): Turn into...
2015 (linux_process_target::proceed_one_lwp): ...this.
2016 (unsuspend_and_proceed_one_lwp): Turn into...
2017 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2018
2019 Update the calls/references to the above functions below.
2020
2021 (linux_process_target::handle_extended_wait)
2022 (linux_process_target::filter_event)
2023 (linux_process_target::wait_for_event_filtered)
2024 (linux_process_target::wait_1)
2025 (linux_process_target::move_out_of_jump_pad)
2026 (linux_process_target::start_step_over)
2027 (linux_process_target::resume)
2028 (linux_process_target::proceed_all_lwps)
2029 (regsets_store_inferior_registers)
2030 (linux_process_target::store_register)
2031
2032 * linux-low.h (class linux_process_target)
2033 <get_pc>
2034 <save_stop_reason>
2035 <thread_still_has_status_pending>
2036 <status_pending_p_callback>
2037 <resume_stopped_resumed_lwps>
2038 <install_software_single_step_breakpoints>
2039 <single_step>
2040 <resume_one_lwp_throw>
2041 <resume_one_lwp>
2042 <resume_status_pending>
2043 <thread_needs_step_over>
2044 <resume_one_thread>
2045 <proceed_one_lwp>
2046 <unsuspend_and_proceed_one_lwp>: Declare.
2047
bd70b1f2
TBA
20482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2049
2050 Turn the 'fetch_register' linux target op into a method of
2051 linux_process_target.
2052
2053 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2054 (class linux_process_target) <low_fetch_register>: Declare.
2055 * linux-x86-low.cc (the_low_target)
2056 * linux-aarch64-low.cc (the_low_target)
2057 * linux-arm-low.cc (the_low_target)
2058 * linux-bfin-low.cc (the_low_target)
2059 * linux-cris-low.cc (the_low_target)
2060 * linux-crisv32-low.cc (the_low_target)
2061 * linux-m32r-low.cc (the_low_target)
2062 * linux-m68k-low.cc (the_low_target)
2063 * linux-nios2-low.cc (the_low_target)
2064 * linux-ppc-low.cc (the_low_target)
2065 * linux-s390-low.cc (the_low_target)
2066 * linux-sh-low.cc (the_low_target)
2067 * linux-sparc-low.cc (the_low_target)
2068 * linux-tic6x-low.cc (the_low_target)
2069 * linux-tile-low.cc (the_low_target)
2070 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2071 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2072 Declare.
2073 (ia64_fetch_register): Turn into...
2074 (ia64_target::low_fetch_register): ...this.
2075 (the_low_target): Remove the op field.
2076 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2077 Declare.
2078 (mips_fetch_register): Turn into...
2079 (mips_target::low_fetch_register): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2082 Declare.
2083 (riscv_fetch_register): Turn into...
2084 (riscv_target::low_fetch_register): ...this.
2085 (the_low_target): Remove the op field.
2086
2087 Update the callers below.
2088
2089 * linux-low.cc (linux_process_target::fetch_registers)
2090 (linux_process_target::low_fetch_register)
2091
daca57a7
TBA
20922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2093
2094 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2095 linux target ops into methods of linux_process_target.
2096
2097 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2098 (class linux_process_target) <fetch_register>
2099 <store_register>
2100 <usr_fetch_inferior_registers>
2101 <usr_store_inferior_registers>
2102 <low_cannot_fetch_register>
2103 <low_cannot_fetch_register> Declare.
2104 * linux-low.cc (fetch_register): Turn into...
2105 (linux_process_target::fetch_register): ...this.
2106 (store_register): Turn into ...
2107 (linux_process_target::store_register): ...this.
2108 (usr_fetch_inferior_registers): Turn into...
2109 (linux_process_target::usr_fetch_inferior_registers): ...this.
2110 (usr_store_inferior_registers): Turn into...
2111 (linux_process_target::usr_store_inferior_registers): ...this.
2112 * linux-x86-low.cc (class x86_target)
2113 <low_cannot_fetch_register>
2114 <low_cannot_store_register>: Declare.
2115 (x86_cannot_store_register): Turn into...
2116 (x86_target::low_cannot_store_register): ...this.
2117 (x86_cannot_fetch_register): Turn into...
2118 (x86_target::low_cannot_fetch_register): ...this.
2119 (the_low_target): Remove the target op fields.
2120 * linux-aarch64-low.cc (class aarch64_target)
2121 <low_cannot_fetch_register>
2122 <low_cannot_store_register>: Declare.
2123 (aarch64_target::low_cannot_fetch_register)
2124 (aarch64_target::low_cannot_store_register): Define.
2125 (the_low_target): Remove the op fields.
2126 * linux-arm-low.cc (class arm_target)
2127 <low_cannot_fetch_register>
2128 <low_cannot_store_register>: Declare.
2129 (arm_cannot_fetch_register): Turn into...
2130 (arm_target::low_cannot_fetch_register): ...this.
2131 (arm_cannot_store_register): Turn into...
2132 (arm_target::low_cannot_store_register): ...this.
2133 (the_low_target): Remove the op fields.
2134 * linux-bfin-low.cc (class bfin_target)
2135 <low_cannot_fetch_register>
2136 <low_cannot_store_register>: Declare.
2137 (bfin_cannot_fetch_register): Turn into...
2138 (bfin_target::low_cannot_fetch_register): ...this.
2139 (bfin_cannot_store_register): Turn into...
2140 (bfin_target::low_cannot_store_register): ...this.
2141 (the_low_target): Remove the op fields.
2142 * linux-cris-low.cc (class cris_target)
2143 <low_cannot_fetch_register>
2144 <low_cannot_store_register>: Declare.
2145 (cris_cannot_fetch_register): Turn into...
2146 (cris_target::low_cannot_fetch_register): ...this.
2147 (cris_cannot_store_register): Turn into...
2148 (cris_target::low_cannot_store_register): ...this.
2149 (the_low_target): Remove the op fields.
2150 * linux-crisv32-low.cc (class crisv32_target)
2151 <low_cannot_fetch_register>
2152 <low_cannot_store_register>: Declare.
2153 (crisv32_target::low_cannot_fetch_register)
2154 (crisv32_target::low_cannot_store_register): Define.
2155 (the_low_target): Remove the op fields.
2156 * linux-ia64-low.cc (class ia64_target)
2157 <low_cannot_fetch_register>
2158 <low_cannot_store_register>: Declare.
2159 (ia64_cannot_fetch_register): Turn into...
2160 (ia64_target::low_cannot_fetch_register): ...this.
2161 (ia64_cannot_store_register): Turn into...
2162 (ia64_target::low_cannot_store_register): ...this.
2163 (the_low_target): Remove the op fields.
2164 * linux-m32r-low.cc (class m32r_target)
2165 <low_cannot_fetch_register>
2166 <low_cannot_store_register>: Declare.
2167 (m32r_cannot_fetch_register): Turn into...
2168 (m32r_target::low_cannot_fetch_register): ...this.
2169 (m32r_cannot_store_register): Turn into...
2170 (m32r_target::low_cannot_store_register): ...this.
2171 (the_low_target): Remove the op fields.
2172 * linux-m68k-low.cc (class m68k_target)
2173 <low_cannot_fetch_register>
2174 <low_cannot_store_register>: Declare.
2175 (m68k_cannot_fetch_register): Turn into...
2176 (m68k_target::low_cannot_fetch_register): ...this.
2177 (m68k_cannot_store_register): Turn into...
2178 (m68k_target::low_cannot_store_register): ...this.
2179 (the_low_target): Remove the op fields.
2180 * linux-mips-low.cc (class mips_target)
2181 <low_cannot_fetch_register>
2182 <low_cannot_store_register>: Declare.
2183 (mips_cannot_fetch_register): Turn into...
2184 (mips_target::low_cannot_fetch_register): ...this.
2185 (mips_cannot_store_register): Turn into...
2186 (mips_target::low_cannot_store_register): ...this.
2187 (get_usrregs_info): Inline at the call sites in
2188 low_cannot_fetch_register and low_cannot_store_register,
2189 and remove.
2190 (the_low_target): Remove the op fields.
2191 * linux-nios2-low.cc (class nios2_target)
2192 <low_cannot_fetch_register>
2193 <low_cannot_store_register>: Declare.
2194 (nios2_cannot_fetch_register): Turn into...
2195 (nios2_target::low_cannot_fetch_register): ...this.
2196 (nios2_cannot_store_register): Turn into...
2197 (nios2_target::low_cannot_store_register): ...this.
2198 (the_low_target): Remove the op fields.
2199 * linux-ppc-low.cc (class ppc_target)
2200 <low_cannot_fetch_register>
2201 <low_cannot_store_register>: Declare.
2202 (ppc_cannot_fetch_register): Turn into...
2203 (ppc_target::low_cannot_fetch_register): ...this.
2204 (ppc_cannot_store_register): Turn into...
2205 (ppc_target::low_cannot_store_register): ...this.
2206 (the_low_target): Remove the op fields.
2207 * linux-riscv-low.cc (class riscv_target)
2208 <low_cannot_fetch_register>
2209 <low_cannot_store_register>: Declare.
2210 (riscv_target::low_cannot_fetch_register)
2211 (riscv_target::low_cannot_store_register): Define.
2212 (the_low_target): Remove the op fields.
2213 * linux-s390-low.cc (class s390_target)
2214 <low_cannot_fetch_register>
2215 <low_cannot_store_register>: Declare.
2216 (s390_cannot_fetch_register): Turn into...
2217 (s390_target::low_cannot_fetch_register): ...this.
2218 (s390_cannot_store_register): Turn into...
2219 (s390_target::low_cannot_store_register): ...this.
2220 (the_low_target): Remove the op fields.
2221 * linux-sh-low.cc (class sh_target)
2222 <low_cannot_fetch_register>
2223 <low_cannot_store_register>: Declare.
2224 (sh_cannot_fetch_register): Turn into...
2225 (sh_target::low_cannot_fetch_register): ...this.
2226 (sh_cannot_store_register): Turn into...
2227 (sh_target::low_cannot_store_register): ...this.
2228 (the_low_target): Remove the op fields.
2229 * linux-sparc-low.cc (class sparc_target)
2230 <low_cannot_fetch_register>
2231 <low_cannot_store_register>: Declare.
2232 (sparc_cannot_fetch_register): Turn into...
2233 (sparc_target::low_cannot_fetch_register): ...this.
2234 (sparc_cannot_store_register): Turn into...
2235 (sparc_target::low_cannot_store_register): ...this.
2236 (the_low_target): Remove the op fields.
2237 * linux-tic6x-low.cc (class tic6x_target)
2238 <low_cannot_fetch_register>
2239 <low_cannot_store_register>: Declare.
2240 (tic6x_cannot_fetch_register): Turn into...
2241 (tic6x_target::low_cannot_fetch_register): ...this.
2242 (tic6x_cannot_store_register): Turn into...
2243 (tic6x_target::low_cannot_store_register): ...this.
2244 (the_low_target): Remove the op fields.
2245 * linux-tile-low.cc (class tile_target)
2246 <low_cannot_fetch_register>
2247 <low_cannot_store_register>: Declare.
2248 (tile_cannot_fetch_register): Turn into...
2249 (tile_target::low_cannot_fetch_register): ...this.
2250 (tile_cannot_store_register): Turn into...
2251 (tile_target::low_cannot_store_register): ...this.
2252 (the_low_target): Remove the op fields.
2253 * linux-xtensa-low.cc (class xtensa_target)
2254 <low_cannot_fetch_register>
2255 <low_cannot_store_register>: Declare.
2256 (xtensa_target::low_cannot_fetch_register)
2257 (xtensa_target::low_cannot_store_register): Define.
2258 (the_low_target): Remove the op fields.
2259
aa8d21c9
TBA
22602020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2261
2262 Turn the 'regs_info' linux target op into a method of
2263 linux_process_target.
2264
2265 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2266 (class linux_process_target) <get_regs_info>: Define.
2267
2268 Update the callers below.
2269
2270 * linux-low.cc (linux_process_target::fetch_registers)
2271 (linux_process_target::store_registers)
2272 * proc-service.cc (gregset_info)
2273
2274 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2275 (x86_linux_regs_info): Turn into ...
2276 (x86_target::get_regs_info): ...this.
2277 (the_low_target): Remove the op field.
2278 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2279 Declare.
2280 (aarch64_regs_info): Turn into ...
2281 (aarch64_target::get_regs_info): ...this.
2282 (the_low_target): Remove the op field.
2283 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2284 (arm_regs_info): Turn into ...
2285 (arm_target::get_regs_info): ...this.
2286 (the_low_target): Remove the op field.
2287 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2288 (bfin_regs_info): Turn into ...
2289 (bfin_target::get_regs_info): ...this.
2290 (the_low_target): Remove the op field.
2291 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2292 (cris_regs_info): Turn into ...
2293 (cris_target::get_regs_info): ...this.
2294 (the_low_target): Remove the op field.
2295 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2296 Declare.
2297 (crisv32_regs_info): Turn into ...
2298 (crisv32_target::get_regs_info): ...this.
2299 (the_low_target): Remove the op field.
2300 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2301 (ia64_regs_info): Turn into ...
2302 (ia64_target::get_regs_info): ...this.
2303 (the_low_target): Remove the op field.
2304 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2305 (m32r_regs_info): Turn into ...
2306 (m32r_target::get_regs_info): ...this.
2307 (the_low_target): Remove the op field.
2308 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2309 (m68k_regs_info): Turn into ...
2310 (m68k_target::get_regs_info): ...this.
2311 (the_low_target): Remove the op field.
2312 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2313 (mips_regs_info): Turn into ...
2314 (mips_target::get_regs_info): ...this.
2315 (the_low_target): Remove the op field.
2316 (get_usrregs_info): Update the call to the op.
2317 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2318 (nios2_regs_info): Turn into ...
2319 (nios2_target::get_regs_info): ...this.
2320 (the_low_target): Remove the op field.
2321 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2322 (ppc_regs_info): Turn into ...
2323 (ppc_target::get_regs_info): ...this.
2324 (the_low_target): Remove the op field.
2325 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2326 (riscv_regs_info): Turn into ...
2327 (riscv_target::get_regs_info): ...this.
2328 (the_low_target): Remove the op field.
2329 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2330 (s390_regs_info): Turn into ...
2331 (s390_target::get_regs_info): ...this.
2332 (the_low_target): Remove the op field.
2333 (s390_collect_ptrace_register)
2334 (s390_supply_ptrace_register)
2335 (s390_fill_gregset): Update the call to the op.
2336 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2337 (sh_regs_info): Turn into ...
2338 (sh_target::get_regs_info): ...this.
2339 (the_low_target): Remove the op field.
2340 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2341 (sparc_regs_info): Turn into ...
2342 (sparc_target::get_regs_info): ...this.
2343 (the_low_target): Remove the op field.
2344 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2345 (tic6x_regs_info): Turn into ...
2346 (tic6x_target::get_regs_info): ...this.
2347 (the_low_target): Remove the op field.
2348 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2349 (tile_regs_info): Turn into ...
2350 (tile_target::get_regs_info): ...this.
2351 (the_low_target): Remove the op field.
2352 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2353 Declare.
2354 (xtensa_regs_info): Turn into ...
2355 (xtensa_target::get_regs_info): ...this.
2356 (the_low_target): Remove the op field.
2357
797bcff5
TBA
23582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2359
2360 Turn the 'arch_setup' linux target op into a method of
2361 linux_process_target.
2362
2363 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2364 (class linux_process_target) <arch_setup_thread>
2365 <low_arch_setup>: New declarations.
2366 * linux-low.cc (linux_arch_setup): Delete.
2367 (linux_arch_setup_thread): Turn into...
2368 (linux_process_target::arch_setup_thread): ... this.
2369
2370 Update the callers below.
2371
2372 (linux_process_target::handle_extended_wait)
2373 (linux_process_target::post_create_inferior)
2374 (linux_process_target::filter_event)
2375
2376 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2377 declaration.
2378 (x86_linux_update_xmltarget): Turn into...
2379 (x86_target::update_xmltarget): ...this.
2380 (x86_linux_process_qsupported): Update the call to
2381 x86_linux_update_xmltarget.
2382 (x86_arch_setup): Turn into ...
2383 (x86_target::low_arch_setup): ...this.
2384 (the_low_target): Remove the op field.
2385 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2386 declaration.
2387 (aarch64_arch_setup): Turn into ...
2388 (aarch64_target::low_arch_setup): ...this.
2389 (the_low_target): Remove the op field.
2390 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2391 declaration.
2392 (arm_arch_setup): Turn into ...
2393 (arm_target::low_arch_setup): ...this.
2394 (the_low_target): Remove the op field.
2395 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2396 declaration.
2397 (bfin_arch_setup): Turn into ...
2398 (bfin_target::low_arch_setup): ...this.
2399 (the_low_target): Remove the op field.
2400 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2401 declaration.
2402 (cris_arch_setup): Turn into ...
2403 (cris_target::low_arch_setup): ...this.
2404 (the_low_target): Remove the op field.
2405 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2406 declaration.
2407 (crisv32_arch_setup): Turn into ...
2408 (crisv32_target::low_arch_setup): ...this.
2409 (the_low_target): Remove the op field.
2410 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2411 declaration.
2412 (ia64_arch_setup): Turn into ...
2413 (ia64_target::low_arch_setup): ...this.
2414 (the_low_target): Remove the op field.
2415 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2416 declaration.
2417 (m32r_arch_setup): Turn into ...
2418 (m32r_target::low_arch_setup): ...this.
2419 (the_low_target): Remove the op field.
2420 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2421 declaration.
2422 (m68k_arch_setup): Turn into ...
2423 (m68k_target::low_arch_setup): ...this.
2424 (the_low_target): Remove the op field.
2425 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2426 declaration.
2427 (mips_arch_setup): Turn into ...
2428 (mips_target::low_arch_setup): ...this.
2429 (the_low_target): Remove the op field.
2430 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2431 declaration.
2432 (nios2_arch_setup): Turn into ...
2433 (nios2_target::low_arch_setup): ...this.
2434 (the_low_target): Remove the op field.
2435 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2436 declaration.
2437 (ppc_arch_setup): Turn into ...
2438 (ppc_target::low_arch_setup): ...this.
2439 (the_low_target): Remove the op field.
2440 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2441 declaration.
2442 (riscv_arch_setup): Turn into ...
2443 (riscv_target::low_arch_setup): ...this.
2444 (the_low_target): Remove the op field.
2445 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2446 declaration.
2447 (s390_arch_setup): Turn into ...
2448 (s390_target::low_arch_setup): ...this.
2449 (the_low_target): Remove the op field.
2450 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2451 declaration.
2452 (sh_arch_setup): Turn into ...
2453 (sh_target::low_arch_setup): ...this.
2454 (the_low_target): Remove the op field.
2455 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2456 declaration.
2457 (sparc_arch_setup): Turn into ...
2458 (sparc_target::low_arch_setup): ...this.
2459 (the_low_target): Remove the op field.
2460 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2461 declaration.
2462 (tic6x_arch_setup): Turn into ...
2463 (tic6x_target::low_arch_setup): ...this.
2464 (the_low_target): Remove the op field.
2465 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2466 declaration.
2467 (tile_arch_setup): Turn into ...
2468 (tile_target::low_arch_setup): ...this.
2469 (the_low_target): Remove the op field.
2470 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2471 declaration.
2472 (xtensa_arch_setup): Turn into ...
2473 (xtensa_target::low_arch_setup): ...this.
2474 (the_low_target): Remove the op field.
2475
ef0478f6
TBA
24762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2477
2478 * linux-low.h (the_linux_target): New extern declaration.
2479 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2480 'the_target'.
2481 (the_linux_target): Remove.
2482 * linux-x86-low.cc (class x86_target): New class.
2483 (the_x86_target): New static object.
2484 (the_linux_target): Define as pointer to the_x86_target.
2485 * linux-aarch64-low.cc (class aarch64_target): New class.
2486 (the_aarch64_target): New static object.
2487 (the_linux_target): Define as pointer to the_aarch64_target.
2488 * linux-arm-low.cc (class arm_target): New class.
2489 (the_arm_target): New static object.
2490 (the_linux_target): Define as pointer to the_arm_target.
2491 * linux-bfin-low.cc (class bfin_target): New class.
2492 (the_bfin_target): New static object.
2493 (the_linux_target): Define as pointer to the_bfin_target.
2494 * linux-cris-low.cc (class cris_target): New class.
2495 (the_cris_target): New static object.
2496 (the_linux_target): Define as pointer to the_cris_target.
2497 * linux-crisv32-low.cc (class crisv32_target): New class.
2498 (the_crisv32_target): New static object.
2499 (the_linux_target): Define as pointer to the_crisv32_target.
2500 * linux-ia64-low.cc (class ia64_target): New class.
2501 (the_ia64_target): New static object.
2502 (the_linux_target): Define as pointer to the_ia64_target.
2503 * linux-m32r-low.cc (class m32r_target): New class.
2504 (the_m32r_target): New static object.
2505 (the_linux_target): Define as pointer to the_m32r_target.
2506 * linux-m68k-low.cc (class m68k_target): New class.
2507 (the_m68k_target): New static object.
2508 (the_linux_target): Define as pointer to the_m68k_target.
2509 * linux-mips-low.cc (class mips_target): New class.
2510 (the_mips_target): New static object.
2511 (the_linux_target): Define as pointer to the_mips_target.
2512 * linux-nios2-low.cc (class nios2_target): New class.
2513 (the_nios2_target): New static object.
2514 (the_linux_target): Define as pointer to the_nios2_target.
2515 * linux-ppc-low.cc (class ppc_target): New class.
2516 (the_ppc_target): New static object.
2517 (the_linux_target): Define as pointer to the_ppc_target.
2518 * linux-riscv-low.cc (class riscv_target): New class.
2519 (the_riscv_target): New static object.
2520 (the_linux_target): Define as pointer to the_riscv_target.
2521 * linux-s390-low.cc (class s390_target): New class.
2522 (the_s390_target): New static object.
2523 (the_linux_target): Define as pointer to the_s390_target.
2524 * linux-sh-low.cc (class sh_target): New class.
2525 (the_sh_target): New static object.
2526 (the_linux_target): Define as pointer to the_sh_target.
2527 * linux-sparc-low.cc (class sparc_target): New class.
2528 (the_sparc_target): New static object.
2529 (the_linux_target): Define as pointer to the_sparc_target.
2530 * linux-tic6x-low.cc (class tic6x_target): New class.
2531 (the_tic6x_target): New static object.
2532 (the_linux_target): Define as pointer to the_tic6x_target.
2533 * linux-tile-low.cc (class tile_target): New class.
2534 (the_tile_target): New static object.
2535 (the_linux_target): Define as pointer to the_tile_target.
2536 * linux-xtensa-low.cc (class xtensa_target): New class.
2537 (the_xtensa_target): New static object.
2538 (the_linux_target): Define as pointer to the_xtensa_target.
2539
d16f3f6c
TBA
25402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2541
2542 Turn some static functions in linux-low.cc into private methods of
2543 linux_process_target.
2544
2545 * linux-low.cc (handle_extended_wait): Turn into ...
2546 (linux_process_target::handle_extended_wait): ...this. Call
2547 'mourn' on 'this' object instead of 'the_target'.
2548 (maybe_move_out_of_jump_pad): Turn into...
2549 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2550 (linux_low_filter_event): Turn into...
2551 (linux_process_target::filter_event): ...this.
2552 (linux_wait_for_event_filtered): Turn into...
2553 (linux_process_target::wait_for_event_filtered): ...this.
2554 (linux_wait_for_event): Turn into...
2555 (linux_process_target::wait_for_event): ...this.
2556 (linux_wait_1): Turn into...
2557 (linux_process_target::wait_1): ...this.
2558 (wait_for_sigstop): Turn into...
2559 (linux_process_target::wait_for_sigstop): ...this.
2560 (move_out_of_jump_pad_callback): Turn into...
2561 (linux_process_target::move_out_of_jump_pad): ...this.
2562 (stop_all_lwps): Turn into...
2563 (linux_process_target::stop_all_lwps): ...this.
2564 (start_step_over): Turn into...
2565 (linux_process_target::start_step_over): ...this.
2566 (complete_ongoing_step_over): Turn into...
2567 (linux_process_target::complete_ongoing_step_over): ...this.
2568 (proceed_all_lwps): Turn into...
2569 (linux_process_target::proceed_all_lwps): ...this.
2570 (unstop_all_lwps): Turn into...
2571 (linux_process_target::unstop_all_lwps): ...this.
2572
2573 * linux-low.h (class linux_process_target)
2574 <handle_extended_wait>
2575 <maybe_move_out_of_jump_pad>
2576 filter_event>
2577 <wait_for_event_filtered>
2578 <wait_for_event>
2579 <wait_1>
2580 <wait_for_sigstop>
2581 <move_out_of_jump_pad>
2582 <stop_all_lwps>
2583 <start_step_over>
2584 <complete_ongoing_step_over>
2585 <proceed_all_lwps>
2586 <unstop_all_lwps>: Declare.
2587
2588 Update the callers below.
2589
2590 * linux-low.cc (linux_process_target::attach): Update.
2591 (linux_process_target::stabilize_threads): Ditto.
2592 (linux_process_target::wait): Ditto.
2593
a5863204
TBA
25942020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2595
2596 * linux-low.h (struct linux_target_ops): Update the comment for
2597 'cannot_store_register' to return 0 or 1.
2598 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2599 of 2.
2600
c884cc46
SM
26012020-03-20 Simon Marchi <simon.marchi@efficios.com>
2602
2603 * config.in: Re-generate.
2604 * configure: Re-generate.
2605
5a82b8a1
KR
26062020-03-17 Kamil Rytarowski <n54@gmx.com>
2607
2608 * regcache.cc (find_register_by_number): Update.
2609 * tdesc.cc (init_target_desc): Likewise.
2610 * tdesc.h (target_desc::reg_defs): Likewise.
2611
4635ff97
TT
26122020-03-12 Tom Tromey <tom@tromey.com>
2613
2614 * configure: Rebuild.
2615 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2616 (WIN32APILIBS): New subst.
2617 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2618 gdbsupport files.
2619 (gdbsupport/%.o): Remove target.
2620 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2621 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2622 (WIN32APILIBS): New variable.
2623 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2624 (gdbreplay$(EXEEXT)): Likewise.
2625
9a665d62
TT
26262020-03-12 Tom Tromey <tom@tromey.com>
2627
2628 * config.in, configure: Rebuild.
2629 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2630 * acinclude.m4: Include gettext-sister.m4.
2631 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2632 variables.
2633 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2634 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2635
272cd5a3
SM
26362020-03-12 Simon Marchi <simon.marchi@efficios.com>
2637
2638 * acinclude.m4: Update path to selftest.m4.
2639
db6878ac
SM
26402020-03-12 Simon Marchi <simon.marchi@efficios.com>
2641
2642 * configure.ac: Don't source bfd/development.sh, move
2643 GDB_AC_COMMON higher.
2644 * configure: Re-generate.
2645
4d696a5c
SM
26462020-03-12 Simon Marchi <simon.marchi@efficios.com>
2647
2648 * configure: Re-generate.
2649
a0761e34
SM
26502020-03-11 Simon Marchi <simon.marchi@efficios.com>
2651
2652 * configure: Re-generate.
2653
20ea4a60
AB
26542020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2655
2656 * .dir-locals.el: New file.
2657
842806cb
TBA
26582020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2659
2660 * .gitattributes: New file.
2661
442131c1
AB
26622020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2665 reply into an S reply.
2666 * server.cc (disable_packet_T): New global.
2667 (captured_main): Set new global when appropriate.
2668 * server.h (disable_packet_T): Declare.
2669
dda42c0b
TT
26702020-02-21 Tom Tromey <tom@tromey.com>
2671
2672 * Makefile.in (mostlyclean): New target.
2673
52405d85
TBA
26742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2675
2676 * target.h (struct process_stratum_target): Remove.
2677 (class process_target): Rename to ...
2678 (class process_stratum_target): ... this.
2679 * linux-low.h (class linux_process_target): Derive from
2680 'process_stratum_target'.
2681 * linux-low.cc (linux_target_ops): Remove.
2682 (initialize_low): Set the_target to the singleton instance of
2683 linux_process_target.
2684 * lynx-low.h (class lynx_process_target): Derive from
2685 'process_stratum_target'.
2686 * lynx-low.cc (lynx_target_ops): Remove.
2687 (initialize_low): Set the_target to the singleton instance of
2688 lynx_process_target.
2689 * nto-low.h (class nto_process_target): Derive from
2690 'process_stratum_target'.
2691 * nto-low.cc (nto_target_ops): Remove.
2692 (initialize_low): Set the_target to the singleton instance of
2693 nto_process_target.
2694 * win32-low.h (class win32_process_target): Derive from
2695 'process_stratum_target'.
2696 * win32-low.cc (win32_target_ops): Remove.
2697 (initialize_low): Set the_target to the singleton instance of
2698 win32_process_target.
2699
2700 Replace 'the_target->pt' with 'the_target' in the uses below.
2701
2702 * hostio.cc (hostio_error)
2703 (handle_setfs)
2704 (handle_open)
2705 (handle_unlink)
2706 (handle_readlink)
2707 * linux-aarch32-low.cc (arm_breakpoint_at)
2708 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2709 * linux-arm-low.cc (arm_sigreturn_next_pc)
2710 (arm_get_hwcap)
2711 (arm_get_syscall_trapinfo)
2712 * linux-cris-low.cc (cris_breakpoint_at)
2713 * linux-crisv32-low.cc (cris_breakpoint_at)
2714 * linux-low.cc (handle_extended_wait)
2715 (linux_wait_1)
2716 (linux_read_memory)
2717 (linux_process_target::breakpoint_kind_from_pc)
2718 (linux_get_auxv)
2719 * linux-m32r-low.cc (m32r_breakpoint_at)
2720 * linux-mips-low.cc (mips_breakpoint_at)
2721 * linux-nios2-low.cc (nios2_breakpoint_at)
2722 * linux-ppc-low.cc (ppc_breakpoint_at)
2723 * linux-s390-low.cc (s390_get_hwcap)
2724 * linux-sh-low.cc (sh_breakpoint_at)
2725 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2726 (sparc_store_gregset_from_stack)
2727 (sparc_breakpoint_at)
2728 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2729 * linux-tile-low.cc (tile_breakpoint_at)
2730 * linux-x86-low.cc (x86_breakpoint_at)
2731 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2732 * mem-break.cc (bp_size)
2733 (bp_opcode)
2734 (insert_memory_breakpoint)
2735 (set_raw_breakpoint_at)
2736 (delete_raw_breakpoint)
2737 (z_type_supported)
2738 (uninsert_raw_breakpoint)
2739 (reinsert_raw_breakpoint)
2740 (validate_inserted_breakpoint)
2741 * regcache.cc (regcache_read_pc)
2742 (regcache_write_pc)
2743 * remote-utils.cc (putpkt_binary_1)
2744 (input_interrupt)
2745 (getpkt)
2746 (prepare_resume_reply)
2747 * server.cc (handle_general_set)
2748 (handle_detach)
2749 (handle_qxfer_auxv)
2750 (handle_qxfer_exec_file)
2751 (handle_qxfer_libraries_svr4)
2752 (handle_qxfer_osdata)
2753 (handle_qxfer_siginfo)
2754 (handle_qxfer_fdpic)
2755 (handle_query)
2756 (resume)
2757 (handle_v_requests)
2758 (queue_stop_reply_callback)
2759 (captured_main)
2760 * target.cc (prepare_to_access_memory)
2761 (done_accessing_memory)
2762 (read_inferior_memory)
2763 (target_write_memory)
2764 (target_stop_and_wait)
2765 (target_wait)
2766 (target_mourn_inferior)
2767 (target_continue_no_signal)
2768 (target_continue)
2769 (target_supports_multi_process)
2770 (kill_inferior)
2771 * target.h
2772 (target_create_inferior)
2773 (target_post_create_inferior)
2774 (myattach)
2775 (target_supports_fork_events)
2776 (target_supports_vfork_events)
2777 (target_supports_exec_events)
2778 (target_handle_new_gdb_connection)
2779 (detach_inferior)
2780 (mythread_alive)
2781 (fetch_inferior_registers)
2782 (store_inferior_registers)
2783 (join_inferior)
2784 (target_supports_non_stop)
2785 (target_async)
2786 (target_process_qsupported)
2787 (target_supports_catch_syscall)
2788 (target_get_ipa_tdesc_idx)
2789 (target_supports_tracepoints)
2790 (target_supports_fast_tracepoints)
2791 (target_get_min_fast_tracepoint_insn_len)
2792 (target_thread_stopped)
2793 (target_pause_all)
2794 (target_unpause_all)
2795 (target_stabilize_threads)
2796 (target_install_fast_tracepoint_jump_pad)
2797 (target_emit_ops)
2798 (target_supports_disable_randomization)
2799 (target_supports_agent)
2800 (target_enable_btrace)
2801 (target_disable_btrace)
2802 (target_read_btrace)
2803 (target_read_btrace_conf)
2804 (target_supports_range_stepping)
2805 (target_supports_stopped_by_sw_breakpoint)
2806 (target_stopped_by_sw_breakpoint)
2807 (target_supports_stopped_by_hw_breakpoint)
2808 (target_supports_hardware_single_step)
2809 (target_stopped_by_hw_breakpoint)
2810 (target_breakpoint_kind_from_pc)
2811 (target_breakpoint_kind_from_current_state)
2812 (target_supports_software_single_step)
2813 (target_core_of_thread)
2814 (target_thread_name)
2815 (target_thread_handle)
2816 * win32-low.cc (do_initial_child_stuff)
2817
2818 Rename target op default definitions listed below.
2819
2820 * target.cc (process_target::post_create_inferior): Rename as ...
2821 (process_stratum_target::post_create_inferior): ... this.
2822 (process_target::prepare_to_access_memory): Rename as ...
2823 (process_stratum_target::prepare_to_access_memory): ... this.
2824 (process_target::done_accessing_memory): Rename as ...
2825 (process_stratum_target::done_accessing_memory): ... this.
2826 (process_target::look_up_symbols): Rename as ...
2827 (process_stratum_target::look_up_symbols): ... this.
2828 (process_target::supports_read_auxv): Rename as ...
2829 (process_stratum_target::supports_read_auxv): ... this.
2830 (process_target::read_auxv): Rename as ...
2831 (process_stratum_target::read_auxv): ... this.
2832 (process_target::supports_z_point_type): Rename as ...
2833 (process_stratum_target::supports_z_point_type): ... this.
2834 (process_target::insert_point): Rename as ...
2835 (process_stratum_target::insert_point): ... this.
2836 (process_target::remove_point): Rename as ...
2837 (process_stratum_target::remove_point): ... this.
2838 (process_target::stopped_by_sw_breakpoint): Rename as ...
2839 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2840 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2841 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2842 (process_target::stopped_by_hw_breakpoint): Rename as ...
2843 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2844 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2845 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2846 (process_target::supports_hardware_single_step): Rename as ...
2847 (process_stratum_target::supports_hardware_single_step): ... this.
2848 (process_target::stopped_by_watchpoint): Rename as ...
2849 (process_stratum_target::stopped_by_watchpoint): ... this.
2850 (process_target::stopped_data_address): Rename as ...
2851 (process_stratum_target::stopped_data_address): ... this.
2852 (process_target::supports_read_offsets): Rename as ...
2853 (process_stratum_target::supports_read_offsets): ... this.
2854 (process_target::read_offsets): Rename as ...
2855 (process_stratum_target::read_offsets): ... this.
2856 (process_target::supports_get_tls_address): Rename as ...
2857 (process_stratum_target::supports_get_tls_address): ... this.
2858 (process_target::get_tls_address): Rename as ...
2859 (process_stratum_target::get_tls_address): ... this.
2860 (process_target::hostio_last_error): Rename as ...
2861 (process_stratum_target::hostio_last_error): ... this.
2862 (process_target::supports_qxfer_osdata): Rename as ...
2863 (process_stratum_target::supports_qxfer_osdata): ... this.
2864 (process_target::qxfer_osdata): Rename as ...
2865 (process_stratum_target::qxfer_osdata): ... this.
2866 (process_target::supports_qxfer_siginfo): Rename as ...
2867 (process_stratum_target::supports_qxfer_siginfo): ... this.
2868 (process_target::qxfer_siginfo): Rename as ...
2869 (process_stratum_target::qxfer_siginfo): ... this.
2870 (process_target::supports_non_stop): Rename as ...
2871 (process_stratum_target::supports_non_stop): ... this.
2872 (process_target::async): Rename as ...
2873 (process_stratum_target::async): ... this.
2874 (process_target::start_non_stop): Rename as ...
2875 (process_stratum_target::start_non_stop): ... this.
2876 (process_target::supports_multi_process): Rename as ...
2877 (process_stratum_target::supports_multi_process): ... this.
2878 (process_target::supports_fork_events): Rename as ...
2879 (process_stratum_target::supports_fork_events): ... this.
2880 (process_target::supports_vfork_events): Rename as ...
2881 (process_stratum_target::supports_vfork_events): ... this.
2882 (process_target::supports_exec_events): Rename as ...
2883 (process_stratum_target::supports_exec_events): ... this.
2884 (process_target::handle_new_gdb_connection): Rename as ...
2885 (process_stratum_target::handle_new_gdb_connection): ... this.
2886 (process_target::handle_monitor_command): Rename as ...
2887 (process_stratum_target::handle_monitor_command): ... this.
2888 (process_target::core_of_thread): Rename as ...
2889 (process_stratum_target::core_of_thread): ... this.
2890 (process_target::supports_read_loadmap): Rename as ...
2891 (process_stratum_target::supports_read_loadmap): ... this.
2892 (process_target::read_loadmap): Rename as ...
2893 (process_stratum_target::read_loadmap): ... this.
2894 (process_target::process_qsupported): Rename as ...
2895 (process_stratum_target::process_qsupported): ... this.
2896 (process_target::supports_tracepoints): Rename as ...
2897 (process_stratum_target::supports_tracepoints): ... this.
2898 (process_target::read_pc): Rename as ...
2899 (process_stratum_target::read_pc): ... this.
2900 (process_target::write_pc): Rename as ...
2901 (process_stratum_target::write_pc): ... this.
2902 (process_target::supports_thread_stopped): Rename as ...
2903 (process_stratum_target::supports_thread_stopped): ... this.
2904 (process_target::thread_stopped): Rename as ...
2905 (process_stratum_target::thread_stopped): ... this.
2906 (process_target::supports_get_tib_address): Rename as ...
2907 (process_stratum_target::supports_get_tib_address): ... this.
2908 (process_target::get_tib_address): Rename as ...
2909 (process_stratum_target::get_tib_address): ... this.
2910 (process_target::pause_all): Rename as ...
2911 (process_stratum_target::pause_all): ... this.
2912 (process_target::unpause_all): Rename as ...
2913 (process_stratum_target::unpause_all): ... this.
2914 (process_target::stabilize_threads): Rename as ...
2915 (process_stratum_target::stabilize_threads): ... this.
2916 (process_target::supports_fast_tracepoints): Rename as ...
2917 (process_stratum_target::supports_fast_tracepoints): ... this.
2918 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2919 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2920 (process_target::emit_ops): Rename as ...
2921 (process_stratum_target::emit_ops): ... this.
2922 (process_target::supports_disable_randomization): Rename as ...
2923 (process_stratum_target::supports_disable_randomization): ... this.
2924 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2925 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2926 (process_target::qxfer_libraries_svr4): Rename as ...
2927 (process_stratum_target::qxfer_libraries_svr4): ... this.
2928 (process_target::supports_agent): Rename as ...
2929 (process_stratum_target::supports_agent): ... this.
2930 (process_target::enable_btrace): Rename as ...
2931 (process_stratum_target::enable_btrace): ... this.
2932 (process_target::disable_btrace): Rename as ...
2933 (process_stratum_target::disable_btrace): ... this.
2934 (process_target::read_btrace): Rename as ...
2935 (process_stratum_target::read_btrace): ... this.
2936 (process_target::read_btrace_conf): Rename as ...
2937 (process_stratum_target::read_btrace_conf): ... this.
2938 (process_target::supports_range_stepping): Rename as ...
2939 (process_stratum_target::supports_range_stepping): ... this.
2940 (process_target::supports_pid_to_exec_file): Rename as ...
2941 (process_stratum_target::supports_pid_to_exec_file): ... this.
2942 (process_target::pid_to_exec_file): Rename as ...
2943 (process_stratum_target::pid_to_exec_file): ... this.
2944 (process_target::supports_multifs): Rename as ...
2945 (process_stratum_target::supports_multifs): ... this.
2946 (process_target::multifs_open): Rename as ...
2947 (process_stratum_target::multifs_open): ... this.
2948 (process_target::multifs_unlink): Rename as ...
2949 (process_stratum_target::multifs_unlink): ... this.
2950 (process_target::multifs_readlink): Rename as ...
2951 (process_stratum_target::multifs_readlink): ... this.
2952 (process_target::breakpoint_kind_from_pc): Rename as ...
2953 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2954 (process_target::breakpoint_kind_from_current_state): Rename as ...
2955 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2956 (process_target::thread_name): Rename as ...
2957 (process_stratum_target::thread_name): ... this.
2958 (process_target::thread_handle): Rename as ...
2959 (process_stratum_target::thread_handle): ... this.
2960 (process_target::supports_software_single_step): Rename as ...
2961 (process_stratum_target::supports_software_single_step): ... this.
2962 (process_target::supports_catch_syscall): Rename as ...
2963 (process_stratum_target::supports_catch_syscall): ... this.
2964 (process_target::get_ipa_tdesc_idx): Rename as ...
2965 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2966
478f9adf
PA
29672020-02-20 Pedro Alves <palves@redhat.com>
2968
2969 * target.cc (set_target_ops): Simply copy the given target pointer
2970 instead of creating a copy of the pointed object.
2971
d633e831
TBA
29722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2973
2974 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2975 of process_target.
2976
2977 * target.h (struct process_stratum_target): Remove the target op.
2978 (class process_target): Add the target op.
2979 (target_get_ipa_tdesc_idx): Update the macro.
2980 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2981
2982 Update the derived classes and callers below.
2983
2984 * linux-low.cc (linux_target_ops): Update.
2985 (linux_get_ipa_tdesc_idx): Turn into ...
2986 (linux_process_target::get_ipa_tdesc_idx): ... this.
2987 * linux-low.h (class linux_process_target): Update.
2988 * lynx-low.cc (lynx_target_ops): Update.
2989 * nto-low.cc (nto_target_ops): Update.
2990 * win32-low.cc (win32_target_ops): Update.
2991
bc8d3ae4
TBA
29922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2993
2994 Turn process_stratum_target's supports_catch_syscall op into a
2995 method of process_target.
2996
2997 * target.h (struct process_stratum_target): Remove the target op.
2998 (class process_target): Add the target op.
2999 (target_supports_catch_syscall): Update the macro.
3000 * target.cc (process_target::supports_catch_syscall): Define.
3001
3002 Update the derived classes and callers below.
3003
3004 * linux-low.cc (linux_target_ops): Update.
3005 (linux_supports_catch_syscall): Turn into ...
3006 (linux_process_target::supports_catch_syscall): ... this.
3007 * linux-low.h (class linux_process_target): Update.
3008 * lynx-low.cc (lynx_target_ops): Update.
3009 * nto-low.cc (nto_target_ops): Update.
3010 * win32-low.cc (win32_target_ops): Update.
3011
5303a34f
TBA
30122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3013
3014 Turn process_stratum_target's supports_software_single_step op
3015 into a method of process_target.
3016
3017 * target.h (struct process_stratum_target): Remove the target op.
3018 (class process_target): Add the target op.
3019 (target_supports_software_single_step): Update the macro.
3020 * target.cc (process_target::supports_software_single_step): Define.
3021
3022 Update the derived classes and callers below.
3023
3024 * linux-low.cc (linux_target_ops): Update.
3025 (linux_supports_software_single_step): Turn into ...
3026 (linux_process_target::supports_software_single_step): ... this.
3027 * linux-low.h (class linux_process_target): Update.
3028 * lynx-low.cc (lynx_target_ops): Update.
3029 * nto-low.cc (nto_target_ops): Update.
3030 * win32-low.cc (win32_target_ops): Update.
3031
7f63b89b
TBA
30322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3033
3034 Turn process_stratum_target's thread_name and thread_handle ops
3035 into methods of process_target.
3036
3037 * target.h (struct process_stratum_target): Remove the target ops.
3038 (class process_target): Add the target ops.
3039 (target_thread_name): Update the macro.
3040 (target_thread_handle): Update the macro.
3041 * target.cc (process_target::thread_name): Define.
3042 (process_target::thread_handle): Define.
3043
3044 Update the derived classes and callers below.
3045
3046 * linux-low.cc (linux_target_ops): Update.
3047 (linux_process_target::thread_name): Define.
3048 (linux_process_target::thread_handle): Define.
3049 * linux-low.h (class linux_process_target): Update.
3050 * lynx-low.cc (lynx_target_ops): Update.
3051 * nto-low.cc (nto_target_ops): Update.
3052 * win32-low.cc (win32_target_ops): Update.
3053
d367006f
TBA
30542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3055
3056 Turn process_stratum_target's breakpoint_kind_from_pc,
3057 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3058 ops into methods of process_target.
3059
3060 * target.h (struct process_stratum_target): Remove the target op.
3061 (class process_target): Add the target op.
3062 (target_breakpoint_kind_from_pc): Update the macro.
3063 (target_breakpoint_kind_from_current_state): Update the macro.
3064 (default_breakpoint_kind_from_pc): Remove declaration.
3065 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3066 (process_target::breakpoint_kind_from_pc): ... this.
3067 (process_target::breakpoint_kind_from_current_state): Define.
3068
3069 Update the derived classes and callers below.
3070
3071 * mem-break.cc (bp_size): Update.
3072 (bp_opcode): Update.
3073 * linux-low.cc (linux_target_ops): Update.
3074 (linux_wait_1): Update.
3075 (linux_breakpoint_kind_from_pc): Turn into ...
3076 (linux_process_target::breakpoint_kind_from_pc): ... this.
3077 (linux_sw_breakpoint_from_kind): Turn into ...
3078 (linux_process_target::sw_breakpoint_from_kind): ... this.
3079 (linux_breakpoint_kind_from_current_state): Turn into ...
3080 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3081 * linux-low.h (class linux_process_target): Update.
3082 * lynx-low.cc (lynx_target_ops): Update.
3083 (lynx_process_target::sw_breakpoint_from_kind): Define.
3084 * lynx-low.h (class lynx_process_target): Update.
3085 * nto-low.cc (nto_target_ops): Update.
3086 (nto_sw_breakpoint_from_kind): Turn into ...
3087 (nto_process_target::sw_breakpoint_from_kind): ... this.
3088 * nto-low.h (class nto_process_target): Update.
3089 * win32-low.cc (win32_target_ops): Update.
3090 (win32_sw_breakpoint_from_kind): Turn into ...
3091 (win32_process_target::sw_breakpoint_from_kind): ... this.
3092 * win32-low.h (class win32_process_target): Update.
3093
c9b7b804
TBA
30942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3095
3096 Turn process_stratum_target's multifs_open, multifs_readlink,
3097 multifs_unlink ops into methods of process_target.
3098
3099 * target.h (struct process_stratum_target): Remove the target ops.
3100 (class process_target): Add the target ops. Also add
3101 'supports_multifs'.
3102 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3103 "sys/stat.h".
3104 (process_target::supports_multifs): Define.
3105 (process_target::multifs_open): Define.
3106 (process_target::multifs_readlink): Define.
3107 (process_target::multifs_unlink): Define.
3108
3109 Update the derived classes and callers below.
3110
3111 * hostio.cc (handle_setfs): Update.
3112 (handle_open): Update.
3113 (handle_unlink): Update.
3114 (handle_readlink): Update.
3115 * linux-low.cc (linux_target_ops): Update.
3116 (linux_process_target::supports_multifs): Define.
3117 (linux_process_target::multifs_open): Define.
3118 (linux_process_target::multifs_readlink): Define.
3119 (linux_process_target::multifs_unlink): Define.
3120 * linux-low.h (class linux_process_target): Update.
3121 * lynx-low.cc (lynx_target_ops): Update.
3122 * nto-low.cc (nto_target_ops): Update.
3123 * win32-low.cc (win32_target_ops): Update.
3124
8247b823
TBA
31252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3126
3127 Turn process_stratum_target's pid_to_exec_file op into a method
3128 of process_target.
3129
3130 * target.h (struct process_stratum_target): Remove the target op.
3131 (class process_target): Add the target op. Also add
3132 'supports_pid_to_exec_file'.
3133 * target.cc (process_target::pid_to_exec_file): Define.
3134 (process_target::supports_pid_to_exec_file): Define.
3135
3136 Update the derived classes and callers below.
3137
3138 * server.cc (handle_qxfer_exec_file): Update.
3139 (handle_query): Update.
3140 * linux-low.cc (linux_target_ops): Update.
3141 (linux_process_target::supports_pid_to_exec_file): Define.
3142 (linux_process_target::pid_to_exec_file): Define.
3143 * linux-low.h (class linux_process_target): Update.
3144 * lynx-low.cc (lynx_target_ops): Update.
3145 * nto-low.cc (nto_target_ops): Update.
3146 * win32-low.cc (win32_target_ops): Update.
3147
2526e0cd
TBA
31482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3149
3150 Turn process_stratum_target's supports_range_stepping op into a
3151 method of process_target.
3152
3153 * target.h (struct process_stratum_target): Remove the target op.
3154 (class process_target): Add the target op.
3155 (target_supports_range_stepping): Update the macro.
3156 * target.cc (process_target::supports_range_stepping): Define.
3157
3158 Update the derived classes and callers below.
3159
3160 * linux-low.cc (linux_target_ops): Update.
3161 (linux_supports_range_stepping): Turn into ...
3162 (linux_process_target::supports_range_stepping): ... this.
3163 * linux-low.h (class linux_process_target): Update.
3164 * lynx-low.cc (lynx_target_ops): Update.
3165 * nto-low.cc (nto_target_ops): Update.
3166 * win32-low.cc (win32_target_ops): Update.
3167
79597bdd
TBA
31682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3169
3170 Turn process_stratum_target's btrace-related ops (enable_btrace,
3171 disable_btrace, read_btrace, read_btrace_conf) into methods of
3172 process_target.
3173
3174 * target.h (struct process_stratum_target): Remove the target ops.
3175 (class process_target): Add the target ops.
3176 (target_enable_btrace): Update.
3177 (target_disable_btrace): Update.
3178 (target_read_btrace): Update.
3179 (target_read_btrace_conf): Update.
3180 * target.cc (process_target::enable_btrace): Define.
3181 (process_target::disable_btrace): Define.
3182 (process_target::read_btrace): Define.
3183 (process_target::read_btrace_conf): Define.
3184
3185 Update the derived classes and callers below.
3186
3187 * linux-low.cc (linux_target_ops): Update.
3188 (linux_process_target:enable_btrace): Define as a wrapper around
3189 linux_enable_btrace.
3190 (linux_low_disable_btrace): Turn into ...
3191 (linux_process_target::disable_btrace): ... this.
3192 (linux_low_read_btrace): Turn into ...
3193 (linux_process_target::read_btrace): ... this.
3194 (linux_low_btrace_conf): Turn into ...
3195 (linux_process_target::read_btrace_conf): ... this.
3196 * linux-low.h (class linux_process_target): Update.
3197 * lynx-low.cc (lynx_target_ops): Update.
3198 * nto-low.cc (nto_target_ops): Update.
3199 * win32-low.cc (win32_target_ops): Update.
3200
c0245cb9
TBA
32012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3202
3203 Turn process_stratum_target's supports_agent op into a method of
3204 process_target.
3205
3206 * target.h (struct process_stratum_target): Remove the target op.
3207 (class process_target): Add the target op.
3208 (target_supports_agent): Update the macro.
3209 * target.cc (process_target::supports_agent): Define.
3210
3211 Update the derived classes and callers below.
3212
3213 * linux-low.cc (linux_target_ops): Update.
3214 (linux_supports_agent): Turn into ...
3215 (linux_process_target::supports_agent): ... this.
3216 * linux-low.h (class linux_process_target): Update.
3217 * lynx-low.cc (lynx_target_ops): Update.
3218 * nto-low.cc (nto_target_ops): Update.
3219 * win32-low.cc (win32_target_ops): Update.
3220
974387bb
TBA
32212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3222
3223 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3224 method of process_target.
3225
3226 * target.h (struct process_stratum_target): Remove the target op.
3227 (class process_target): Add the target op. Also add
3228 'supports_qxfer_libraries_svr4'.
3229 * target.cc (process_target::qxfer_libraries_svr4): Define.
3230 (process_target::supports_qxfer_libraries_svr4): Define.
3231
3232 Update the derived classes and callers below.
3233
3234 * server.cc (handle_qxfer_libraries_svr4): Update.
3235 (handle_query): Update.
3236 * linux-low.cc (linux_target_ops): Update.
3237 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3238 (linux_qxfer_libraries_svr4): Turn into ...
3239 (linux_process_target::qxfer_libraries_svr4): ... this.
3240 * linux-low.h (class linux_process_target): Update.
3241 * lynx-low.cc (lynx_target_ops): Update.
3242 * nto-low.cc (nto_target_ops): Update.
3243 * win32-low.cc (win32_target_ops): Update.
3244
c756403b
TBA
32452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3246
3247 Turn process_stratum_target's supports_disable_randomization op
3248 into a method of process_target.
3249
3250 * target.h (struct process_stratum_target): Remove the target op.
3251 (class process_target): Add the target op.
3252 (target_supports_disable_randomization): Update the macro.
3253 * target.cc (process_target::supports_disable_randomization): Define.
3254
3255 Update the derived classes and callers below.
3256
3257 * linux-low.cc (linux_target_ops): Update.
3258 (linux_supports_disable_randomization): Turn into ...
3259 (linux_process_target::supports_disable_randomization): ... this.
3260 * linux-low.h (class linux_process_target): Update.
3261 * lynx-low.cc (lynx_target_ops): Update.
3262 * nto-low.cc (nto_target_ops): Update.
3263 * win32-low.cc (win32_target_ops): Update.
3264
345dafad
TBA
32652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3266
3267 Turn process_stratum_target's emit_ops op into a method of
3268 process_target.
3269
3270 * target.h (struct process_stratum_target): Remove the target op.
3271 (class process_target): Add the target op.
3272 (target_emit_ops): Update the macro.
3273 * target.cc (process_target::emit_ops): Define.
3274
3275 Update the derived classes and callers below.
3276
3277 * linux-low.cc (linux_target_ops): Update.
3278 (linux_emit_ops): Turn into ...
3279 (linux_process_target::emit_ops): ... this.
3280 * linux-low.h (class linux_process_target): Update.
3281 * lynx-low.cc (lynx_target_ops): Update.
3282 * nto-low.cc (nto_target_ops): Update.
3283 * win32-low.cc (win32_target_ops): Update.
3284
c23c9391
TBA
32852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3286
3287 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3288 and get_min_fast_tracepoint_insn_len ops into methods of
3289 process_target.
3290
3291 * target.h (struct process_stratum_target): Remove the target ops.
3292 (class process_target): Add the target ops. Also add
3293 'supports_fast_tracepoints'.
3294 (target_supports_fast_tracepoints): Update the macro.
3295 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3296 (install_fast_tracepoint_jump_pad): Update and rename the macro
3297 to ...
3298 (target_install_fast_tracepoint_jump_pad): ... this.
3299 * target.cc (process_target::supports_fast_tracepoints): Define.
3300 (process_target::install_fast_tracepoint_jump_pad): Define.
3301 (process_target::get_min_fast_tracepoint_insn_len): Define.
3302
3303 Update the derived classes and callers below.
3304
3305 * tracepoint.cc (install_fast_tracepoint): Update.
3306 * linux-low.cc (linux_target_ops): Update.
3307 (linux_process_target::supports_fast_tracepoints): Define.
3308 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3309 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3310 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3311 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3312 * linux-low.h (class linux_process_target): Update.
3313 * lynx-low.cc (lynx_target_ops): Update.
3314 * nto-low.cc (nto_target_ops): Update.
3315 * win32-low.cc (win32_target_ops): Update.
3316
5c9eb2f2
TBA
33172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3318
3319 Turn process_stratum_target's stabilize_threads op into a
3320 method of process_target.
3321
3322 * target.h (struct process_stratum_target): Remove the target op.
3323 (class process_target): Add the target op.
3324 (target_stabilize_threads): Update the macro.
3325 * target.cc (process_target::stabilize_threads): Define.
3326
3327 Update the derived classes and callers below.
3328
3329 * server.cc (handle_status): Update.
3330 * tracepoint.cc (cmd_qtdp): Update.
3331 (cmd_qtstart): Update.
3332 * linux-low.cc (linux_target_ops): Update.
3333 (linux_stabilize_threads): Turn into ...
3334 (linux_process_target::stabilize_threads): ... this.
3335 (linux_wait_1): Update.
3336 * linux-low.h (class linux_process_target): Update.
3337 * lynx-low.cc (lynx_target_ops): Update.
3338 * nto-low.cc (nto_target_ops): Update.
3339 * win32-low.cc (win32_target_ops): Update.
3340
29e8dc09
TBA
33412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3342
3343 Turn process_stratum_target's pause_all and unpause_all ops
3344 into methods of process_target.
3345
3346 * target.h (struct process_stratum_target): Remove the target ops.
3347 (class process_target): Add the target ops.
3348 (pause_all): Update the macro and rename to...
3349 (target_pause_all): ... this.
3350 (unpause_all): Update the macro and rename to...
3351 (target_unpause_all): ... this.
3352 * target.cc (process_target::pause_all): Define.
3353 (process_target::unpause_all): Define.
3354
3355 Update the derived classes and callers below.
3356
3357 * server.cc (handle_status): Update.
3358 * tracepoint.cc (clear_installed_tracepoints): Update.
3359 (cmd_qtdp): Update.
3360 (cmd_qtstart): Update.
3361 (stop_tracing): Update.
3362 (cmd_qtstatus): Update.
3363 (upload_fast_traceframes): Update.
3364 (run_inferior_command): Update.
3365 * linux-low.cc (linux_target_ops): Update.
3366 (linux_pause_all): Turn into ...
3367 (linux_process_target::pause_all): ... this.
3368 (linux_unpause_all): Turn into ...
3369 (linux_process_target::unpause_all): ... this.
3370 (linux_process_target::prepare_to_access_memory): Update.
3371 (linux_process_target::done_accessing_memory): Update.
3372 * linux-low.h (class linux_process_target): Update.
3373 * lynx-low.cc (lynx_target_ops): Update.
3374 * nto-low.cc (nto_target_ops): Update.
3375 * win32-low.cc (win32_target_ops): Update.
3376
4e2e869c
TBA
33772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3378
3379 Turn process_stratum_target's get_tib_address op into a method of
3380 process_target.
3381
3382 * target.h (struct process_stratum_target): Remove the target op.
3383 (class process_target): Add the target op. Also add
3384 'supports_get_tib_address'.
3385 * target.cc (process_target::get_tib_address): Define.
3386 (process_target::supports_get_tib_address): Define.
3387
3388 Update the derived classes and callers below.
3389
3390 * server.cc (handle_query): Update.
3391 * linux-low.cc (win32_target_ops): Update.
3392 * lynx-low.cc (lynx_target_ops): Update.
3393 * nto-low.cc (nto_target_ops): Update.
3394 * win32-low.cc (win32_target_ops): Update.
3395 (win32_process_target::supports_get_tib_address): Define.
3396 (win32_get_tib_address): Turn into ...
3397 (win32_process_target::get_tib_address): ... this.
3398 * win32-low.h (class win32_process_target): Update.
3399
68119632
TBA
34002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3401
3402 Turn process_stratum_target's thread_stopped op into a method of
3403 process_target.
3404
3405 * target.h (struct process_stratum_target): Remove the target op.
3406 (class process_target): Add the target op. Also add
3407 'supports_thread_stopped'.
3408 (target_thread_stopped): Update the macro.
3409 * target.cc (process_target::thread_stopped): Define.
3410 (process_target::supports_thread_stopped): Define.
3411 (prepare_to_access_memory): Update.
3412
3413 Update the derived classes and callers below.
3414
3415 * server.cc (queue_stop_reply_callback): Update.
3416 * linux-low.cc (linux_target_ops): Update.
3417 (linux_process_target::supports_thread_stopped): Define.
3418 (linux_thread_stopped): Turn into ...
3419 (linux_process_target::thread_stopped): ... this.
3420 * linux-low.h (class linux_process_target): Update.
3421 * lynx-low.cc (lynx_target_ops): Update.
3422 * nto-low.cc (nto_target_ops): Update.
3423 * win32-low.cc (win32_target_ops): Update.
3424
770d8f6a
TBA
34252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3426
3427 Turn process_stratum_target's read_pc and write_pc ops into
3428 methods of process_target.
3429
3430 * target.h (struct process_stratum_target): Remove the target ops.
3431 (class process_target): Add the target ops.
3432 * target.cc (process_target::read_pc): Define.
3433 (process_target::write_pc): Define.
3434
3435 Update the derived classes and callers below.
3436
3437 * regcache.cc (regcache_read_pc): Update.
3438 (regcache_write_pc): Update.
3439 * linux-low.cc (linux_target_ops): Update.
3440 (linux_read_pc): Turn into ...
3441 (linux_process_target::read_pc): ... this.
3442 (linux_write_pc): Turn into ...
3443 (linux_process_target::write_pc): ... this.
3444 * linux-low.h (class linux_process_target): Update.
3445 * lynx-low.cc (lynx_target_ops): Update.
3446 * nto-low.cc (nto_target_ops): Update.
3447 * win32-low.cc (win32_target_ops): Update.
3448
290732bf
TBA
34492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3450
3451 Turn process_stratum_target's supports_tracepoints op into a
3452 method of process_target.
3453
3454 * target.h (struct process_stratum_target): Remove the target op.
3455 (class process_target): Add the target op.
3456 (target_supports_tracepoints): Update the macro.
3457 * target.cc (process_target::supports_tracepoints): Define.
3458
3459 Update the derived classes and callers below.
3460
3461 * linux-low.cc (linux_target_ops): Update.
3462 (linux_supports_tracepoints): Turn into ...
3463 (linux_process_target::supports_tracepoints): ... this.
3464 * linux-low.h (class linux_process_target): Update.
3465 * lynx-low.cc (lynx_target_ops): Update.
3466 * nto-low.cc (nto_target_ops): Update.
3467 * win32-low.cc (win32_target_ops): Update.
3468
0df28b1b
TBA
34692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3470
3471 Turn process_stratum_target's process_qsupported op into a method
3472 of process_target.
3473
3474 * target.h (struct process_stratum_target): Remove the target op.
3475 (class process_target): Add the target op.
3476 (target_process_qsupported): Update the macro.
3477 * target.cc (process_target::process_qsupported): Define.
3478
3479 Update the derived classes and callers below.
3480
3481 * linux-low.cc (linux_target_ops): Update.
3482 (linux_process_qsupported): Turn into ...
3483 (linux_process_target::process_qsupported): ... this.
3484 * linux-low.h (class linux_process_target): Update.
3485 * lynx-low.cc (lynx_target_ops): Update.
3486 * nto-low.cc (nto_target_ops): Update.
3487 * win32-low.cc (win32_target_ops): Update.
3488
9da41fda
TBA
34892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3490
3491 Turn process_stratum_target's read_loadmap op into a method of
3492 process_target.
3493
3494 * target.h (struct process_stratum_target): Remove the target op.
3495 (class process_target): Add the target op. Also add
3496 'supports_read_loadmap'.
3497 * target.cc (process_target::read_loadmap): Define.
3498 (process_target::supports_read_loadmap): Define.
3499
3500 Update the derived classes and callers below.
3501
3502 * server.cc (handle_qxfer_fdpic): Update.
3503 (handle_query): Update.
3504 * linux-low.cc (linux_target_ops): Update.
3505 (linux_process_target::supports_read_loadmap): Define.
3506 (linux_read_loadmap): Turn into ...
3507 (linux_process_target::read_loadmap): ... this.
3508 * linux-low.h (class linux_process_target): Update.
3509 * lynx-low.cc (lynx_target_ops): Update.
3510 * nto-low.cc (nto_target_ops): Update.
3511 * win32-low.cc (win32_target_ops): Update.
3512
95a45fc1
TBA
35132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3514
3515 Turn process_stratum_target's core_of_thread op into a method of
3516 process_target.
3517
3518 * target.h (struct process_stratum_target): Remove the target op.
3519 (class process_target): Add the target op.
3520 (target_core_of_thread): Update the macro.
3521 * target.cc (process_target::core_of_thread): Define.
3522
3523 Update the derived classes and callers below.
3524
3525 * linux-low.cc (linux_target_ops): Update.
3526 (linux_process_target::core_of_thread): Define.
3527 * linux-low.h (class linux_process_target): Update.
3528 * lynx-low.cc (lynx_target_ops): Update.
3529 * nto-low.cc (nto_target_ops): Update.
3530 * win32-low.cc (win32_target_ops): Update.
3531
55cf3021
TBA
35322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3533
3534 Turn process_stratum_target's handle_monitor_command op into a
3535 method of process_target.
3536
3537 * target.h (struct process_stratum_target): Remove the target op.
3538 (class process_target): Add the target op.
3539 (target_handle_monitor_command): Update the macro.
3540 * target.cc (process_target::handle_monitor_command): Define.
3541
3542 Update the derived classes and callers below.
3543
3544 * server.cc (handle_query): Update.
3545 * linux-low.cc (linux_target_ops): Update.
3546 (linux_process_target::handle_monitor_command): Define.
3547 * linux-low.h (class linux_process_target): Update.
3548 * lynx-low.cc (lynx_target_ops): Update.
3549 * nto-low.cc (nto_target_ops): Update.
3550 * win32-low.cc (win32_target_ops): Update.
3551
fb00dfce
TBA
35522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3553
3554 Turn process_stratum_target's handle_new_gdb_connection op into a
3555 method of process_target.
3556
3557 * target.h (struct process_stratum_target): Remove the target op.
3558 (class process_target): Add the target op.
3559 (target_handle_new_gdb_connection): Update the macro.
3560 * target.cc (process_target::handle_new_gdb_connection): Define.
3561
3562 Update the derived classes and callers below.
3563
3564 * linux-low.cc (linux_target_ops): Update.
3565 (linux_handle_new_gdb_connection): Turn into ...
3566 (linux_process_target::handle_new_gdb_connection): ... this.
3567 * linux-low.h (class linux_process_target): Update.
3568 * lynx-low.cc (lynx_target_ops): Update.
3569 * nto-low.cc (nto_target_ops): Update.
3570 * win32-low.cc (win32_target_ops): Update.
3571
9690a72a
TBA
35722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3573
3574 Turn process_stratum_target's supports_fork_events,
3575 supports_vfork_events, and supports_exec_events ops into methods
3576 of process_target.
3577
3578 * target.h (struct process_stratum_target): Remove the target ops.
3579 (class process_target): Add the target ops.
3580 (target_supports_fork_events): Update the macro.
3581 (target_supports_vfork_events): Update the macro.
3582 (target_supports_exec_events): Update the macro.
3583 * target.cc (process_target::supports_fork_events): Define.
3584 (process_target::supports_vfork_events): Define.
3585 (process_target::supports_exec_events): Define.
3586
3587 Update the derived classes and callers below.
3588
3589 * linux-low.cc (linux_target_ops): Update.
3590 (linux_supports_fork_events): Turn into ...
3591 (linux_process_target::supports_fork_events): ... this.
3592 (linux_supports_vfork_events): Turn into ...
3593 (linux_process_target::supports_vfork_events): ... this.
3594 (linux_supports_exec_events): Turn into ...
3595 (linux_process_target::supports_exec_events): ... this.
3596 * linux-low.h (class linux_process_target): Update.
3597 * lynx-low.cc (lynx_target_ops): Update.
3598 * nto-low.cc (nto_target_ops): Update.
3599 * win32-low.cc (win32_target_ops): Update.
3600
652aef77
TBA
36012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3602
3603 Turn process_stratum_target's supports_multi_process op into a
3604 method of process_target.
3605
3606 * target.h (struct process_stratum_target): Remove the target op.
3607 (class process_target): Add the target op.
3608 * target.cc (process_target::supports_multi_process): Define.
3609 (target_supports_multi_process): Update.
3610
3611 Update the derived classes and callers below.
3612
3613 * linux-low.cc (linux_target_ops): Update.
3614 (linux_supports_multi_process): Turn into ...
3615 (linux_process_target::supports_multi_process): ... this.
3616 * linux-low.h (class linux_process_target): Update.
3617 * lynx-low.cc (lynx_target_ops): Update.
3618 * nto-low.cc (nto_target_ops): Update.
3619 * win32-low.cc (win32_target_ops): Update.
3620
0dc587d4
TBA
36212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3622
3623 Turn process_stratum_target's supports_non_stop, async, and
3624 start_non_stop ops into methods of process_target.
3625
3626 * target.h (struct process_stratum_target): Remove the target ops.
3627 (class process_target): Add the target ops.
3628 (target_supports_non_stop): Update the macro.
3629 (target_async): Update the macro.
3630 (start_non_stop): Remove declaration.
3631 * target.cc (process_target::supports_non_stop): Define.
3632 (process_target::async): Define.
3633 (process_target::start_non_stop): Define.
3634 (start_non_stop): Remove.
3635
3636 Update the derived classes and callers below.
3637
3638 * server.cc (handle_qxfer_siginfo): Update.
3639 (handle_query): Update.
3640 * linux-low.cc (linux_target_ops): Update.
3641 (linux_supports_non_stop): Turn into ...
3642 (linux_process_target::supports_non_stop): ... this.
3643 (linux_async): Turn into ...
3644 (linux_process_target::async): ... this.
3645 (linux_start_non_stop): Turn into ...
3646 (linux_process_target::start_non_stop): ... this.
3647 * linux-low.h (class linux_process_target): Update.
3648 * lynx-low.cc (lynx_target_ops): Update.
3649 * nto-low.cc (nto_target_ops): Update.
3650 (nto_supports_non_stop): Remove; rely on the default behavior
3651 instead.
3652 * win32-low.cc (win32_target_ops): Update.
3653
d7abedf7
TBA
36542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3655
3656 Turn process_stratum_target's qxfer_siginfo op into a method of
3657 process_target.
3658
3659 * target.h (struct process_stratum_target): Remove the target op.
3660 (class process_target): Add the target op. Also add
3661 'supports_qxfer_siginfo'.
3662 * target.cc (process_target::qxfer_siginfo): Define.
3663 (process_target::supports_qxfer_siginfo): Define.
3664
3665 Update the derived classes and callers below.
3666
3667 * server.cc (handle_qxfer_siginfo): Update.
3668 (handle_query): Update.
3669 * linux-low.cc (linux_target_ops): Update.
3670 (linux_process_target::supports_qxfer_siginfo): Define.
3671 (linux_xfer_siginfo): Turn into ...
3672 (linux_process_target::qxfer_siginfo): ... this.
3673 * linux-low.h (class linux_process_target): Update.
3674 * lynx-low.cc (lynx_target_ops): Update.
3675 * nto-low.cc (nto_target_ops): Update.
3676 * win32-low.cc (win32_target_ops): Update.
3677
2d0795ee
TBA
36782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3679
3680 Turn process_stratum_target's qxfer_osdata op into a method of
3681 process_target.
3682
3683 * target.h (struct process_stratum_target): Remove the target op.
3684 (class process_target): Add the target op. Also add
3685 'supports_qxfer_osdata'.
3686 * target.cc (process_target::qxfer_osdata): Define.
3687 (process_target::supports_qxfer_osdata): Define.
3688
3689 Update the derived classes and callers below.
3690
3691 * server.cc (handle_qxfer_osdata): Update.
3692 (handle_query): Update.
3693 * linux-low.cc (linux_target_ops): Update.
3694 (linux_process_target::supports_qxfer_osdata): Define.
3695 (linux_qxfer_osdata): Turn into ...
3696 (linux_process_target::qxfer_osdata): ... this.
3697 * linux-low.h (class linux_process_target): Update.
3698 * lynx-low.cc (lynx_target_ops): Update.
3699 * nto-low.cc (nto_target_ops): Update.
3700 * win32-low.cc (win32_target_ops): Update.
3701
ea06bbaa
TBA
37022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3703
3704 Turn process_stratum_target's hostio_last_error op into a
3705 method of process_target.
3706
3707 * target.h (struct process_stratum_target): Remove the target op.
3708 (class process_target): Add the target op.
3709 * target.cc: Add "hostio.h" to includes.
3710 (process_target::hostio_last_error): Define.
3711
3712 Update the derived classes and callers below.
3713
3714 * hostio.cc (hostio_error): Update.
3715 * linux-low.cc: Remove "hostio.h" from includes.
3716 (linux_target_ops): Update.
3717 * lynx-low.cc (lynx_target_ops): Update.
3718 * nto-low.cc (nto_target_ops): Update.
3719 * win32-low.h (class win32_process_target): Update.
3720 * win32-low.cc (win32_target_ops): Update.
3721 (wince_hostio_last_error): Turn into ...
3722 (win32_process_target::hostio_last_error): ... this.
3723
6e3fd7e9
TBA
37242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3725
3726 Turn process_stratum_target's get_tls_address op into a method of
3727 process_target.
3728
3729 * target.h (struct process_stratum_target): Remove the target op.
3730 (class process_target): Add the target op. Also add
3731 'supports_get_tls_address'.
3732 * target.cc (process_target::get_tls_address): Define.
3733 (process_target::supports_get_tls_address): Define.
3734
3735 Update the derived classes and callers below.
3736
3737 * server.cc (handle_query): Update.
3738 * linux-low.cc (linux_target_ops): Update.
3739 (linux_process_target::supports_get_tls_address): Define.
3740 (linux_process_target::get_tls_address): Define.
3741 * linux-low.h (class linux_process_target): Update.
3742 * lynx-low.cc (lynx_target_ops): Update.
3743 * nto-low.cc (nto_target_ops): Update.
3744 * win32-low.cc (win32_target_ops): Update.
3745
5203ae1e
TBA
37462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3747
3748 Turn process_stratum_target's read_offsets op into a method of
3749 process_target.
3750
3751 * target.h (struct process_stratum_target): Remove the target op.
3752 (class process_target): Add the target op. Also add
3753 'supports_read_offsets'.
3754 * target.cc (process_target::read_offsets): Define.
3755 (process_target::supports_read_offsets): Define.
3756
3757 Update the derived classes and callers below.
3758
3759 * server.cc (handle_query): Update.
3760 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3761 (linux_target_ops): Update.
3762 (linux_process_target::supports_read_offsets): Define.
3763 (linux_read_offsets): Turn into ...
3764 (linux_process_target::read_offsets): ... this.
3765 * linux-low.h (class linux_process_target): Update.
3766 * lynx-low.cc (lynx_target_ops): Update.
3767 * nto-low.cc (nto_target_ops): Update.
3768 * win32-low.cc (win32_target_ops): Update.
3769
6eeb5c55
TBA
37702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3771
3772 Turn process_stratum_target's stopped_by_watchpoint and
3773 stopped_data_address ops into methods of process_target.
3774
3775 * target.h (struct process_stratum_target): Remove the target ops.
3776 (class process_target): Add the target ops.
3777 * target.cc (process_target::stopped_by_watchpoint): Define.
3778 (process_target::stopped_data_address): Define.
3779
3780 Update the derived classes and callers below.
3781
3782 * remote-utils.cc (prepare_resume_reply): Update.
3783 * linux-low.cc (linux_target_ops): Update.
3784 (linux_stopped_by_watchpoint): Turn into ...
3785 (linux_process_target::stopped_by_watchpoint): ... this.
3786 (linux_stopped_data_address): Turn into ...
3787 (linux_process_target::stopped_data_address): ... this.
3788 * linux-low.h (class linux_process_target): Update.
3789 * lynx-low.cc (lynx_target_ops): Update.
3790 * nto-low.cc (nto_target_ops): Update.
3791 (nto_stopped_by_watchpoint): Turn into ...
3792 (nto_process_target::stopped_by_watchpoint): ... this.
3793 (nto_stopped_data_address): Turn into ...
3794 (nto_process_target::stopped_data_address): ... this.
3795 * nto-low.h (class nto_process_target): Update.
3796 * win32-low.cc (win32_target_ops): Update.
3797 (win32_stopped_by_watchpoint): Turn into ...
3798 (win32_process_target::stopped_by_watchpoint): ... this.
3799 (win32_stopped_data_address): Turn into ...
3800 (win32_process_target::stopped_data_address): ... this.
3801 * win32-low.h (class win32_process_target): Update.
3802
22aa6223
TBA
38032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3804
3805 Turn process_stratum_target's supports_hardware_single_step op into
3806 a method of process_target.
3807
3808 * target.h (struct process_stratum_target): Remove the target op.
3809 (class process_target): Add the target op.
3810 (target_supports_hardware_single_step): Update the macro.
3811 (target_can_do_hardware_single_step): Remove declaration.
3812 * target.cc (process_target::supports_hardware_single_step): Define.
3813 (target_can_do_hardware_single_step): Remove.
3814
3815 Update the derived classes and callers below.
3816
3817 * linux-low.h (class linux_process_target): Update.
3818 * linux-low.cc (linux_target_ops): Update.
3819 (linux_supports_hardware_single_step): Turn into ...
3820 (linux_process_target::supports_hardware_single_step): ... this.
3821 * lynx-low.h (class lynx_process_target): Update.
3822 * lynx-low.cc (lynx_target_ops): Update.
3823 (lynx_process_target::supports_hardware_single_step): Define.
3824 * nto-low.h (class nto_process_target): Update.
3825 * nto-low.cc (nto_target_ops): Update.
3826 (nto_process_target::supports_hardware_single_step): Define.
3827 * win32-low.h (class win32_process_target): Update.
3828 * win32-low.cc (win32_target_ops): Update.
3829 (win32_process_target::supports_hardware_single_step): Define.
3830
93fe88b2
TBA
38312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3832
3833 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3834 ops into methods of process_target.
3835
3836 * target.h (struct process_stratum_target): Remove the target ops.
3837 (class process_target): Add the target ops.
3838 (target_stopped_by_hw_breakpoint): Update the macro.
3839 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3840 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3841 (process_target::supports_stopped_by_hw_breakpoint): Define.
3842
3843 Update the derived classes and callers below.
3844
3845 * linux-low.cc (linux_target_ops): Update.
3846 (linux_stopped_by_hw_breakpoint): Turn into ...
3847 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3848 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3849 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3850 * linux-low.h (class linux_process_target): Update.
3851 * lynx-low.cc (lynx_target_ops): Update.
3852 * nto-low.cc (nto_target_ops): Update.
3853 * win32-low.cc (win32_target_ops): Update.
3854
84320c4e
TBA
38552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3856
3857 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3858 ops into methods of process_target.
3859
3860 * target.h (struct process_stratum_target): Remove the target ops.
3861 (class process_target): Add the target ops.
3862 (target_stopped_by_sw_breakpoint): Update the macro.
3863 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3864 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3865 (process_target::supports_stopped_by_sw_breakpoint): Define.
3866
3867 Update the derived classes and callers below.
3868
3869 * linux-low.cc (linux_target_ops): Update.
3870 (linux_stopped_by_sw_breakpoint): Turn into ...
3871 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3872 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3873 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3874 * linux-low.h (class linux_process_target): Update.
3875 * lynx-low.cc (lynx_target_ops): Update.
3876 * nto-low.cc (nto_target_ops): Update.
3877 * win32-low.cc (win32_target_ops): Update.
3878
7e0bde70
TBA
38792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3880
3881 Turn process_stratum_target's insert_point and remove_point ops
3882 into methods of process_target.
3883
3884 * target.h (struct process_stratum_target): Remove the target ops.
3885 (class process_target): Add the target ops.
3886 * target.cc (process_target::insert_point): Define.
3887 (process_target::remove_point): Define.
3888
3889 Update the derived classes and callers below.
3890
3891 * mem-break.cc (set_raw_breakpoint_at): Update.
3892 (delete_raw_breakpoint): Update.
3893 (uninsert_raw_breakpoint): Update.
3894 (reinsert_raw_breakpoint): Update.
3895 * linux-low.cc (linux_target_ops): Update.
3896 (linux_insert_point): Turn into ...
3897 (linux_process_target::insert_point): ... this.
3898 (linux_remove_point): Turn into ...
3899 (linux_process_target::remove_point): ... this.
3900 * linux-low.h (class linux_process_target): Update.
3901 * lynx-low.cc (lynx_target_ops): Update.
3902 * nto-low.cc (nto_target_ops): Update.
3903 (nto_insert_point): Turn into ...
3904 (nto_process_target::insert_point): ... this.
3905 (nto_remove_point): Turn into ...
3906 (nto_process_target::remove_point): ... this.
3907 * nto-low.h (class nto_process_target): Update.
3908 * win32-low.cc (win32_target_ops): Update.
3909 (win32_insert_point): Turn into ...
3910 (win32_process_target::insert_point): ... this.
3911 (win32_remove_point): Turn into ...
3912 (win32_process_target::remove_point): ... this.
3913 * win32-low.h (class win32_process_target): Update.
3914
a2b2297a
TBA
39152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3916
3917 Turn process_stratum_target's supports_z_point_type op into a
3918 method of process_target.
3919
3920 * target.h (struct process_stratum_target): Remove the target op.
3921 (class process_target): Add the target op.
3922 * target.cc (process_target::supports_z_point_type): Define.
3923
3924 Update the derived classes and callers below.
3925
3926 * mem-break.cc (z_type_supported): Update.
3927 * linux-low.cc (linux_target_ops): Update.
3928 (linux_supports_z_point_type): Turn into ...
3929 (linux_process_target::supports_z_point_type): ... this.
3930 * linux-low.h (class linux_process_target): Update.
3931 * lynx-low.cc (lynx_target_ops): Update.
3932 * nto-low.cc (nto_target_ops): Update.
3933 (nto_supports_z_point_type): Turn into ...
3934 (nto_process_target::supports_z_point_type): ... this.
3935 * nto-low.h (class nto_process_target): Update.
3936 * win32-low.cc (win32_target_ops): Update.
3937 (win32_supports_z_point_type): Turn into ...
3938 (win32_process_target::supports_z_point_type): ... this.
3939 * win32-low.h (class win32_process_target): Update.
3940
eac215cc
TBA
39412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3942
3943 Turn process_stratum_target's read_auxv op into a method of
3944 process_target.
3945
3946 * target.h (class process_stratum_target): Remove the target op.
3947 (struct process_target): Add the target op. Also add
3948 'supports_read_auxv'.
3949 * target.cc (process_target::read_auxv): Define.
3950 (process_target::supports_read_auxv): Define.
3951
3952 Update the derived classes and callers below.
3953
3954 * server.cc (handle_qxfer_auxv): Update.
3955 (handle_query): Update.
3956 * linux-low.cc (linux_target_ops): Update.
3957 (linux_process_target::supports_read_auxv): Define.
3958 (linux_read_auxv): Turn into ...
3959 (linux_process_target::read_auxv): ... this.
3960 * linux-low.h (class linux_process_target): Update.
3961 * lynx-low.cc (lynx_target_ops): Update.
3962 * nto-low.cc (nto_target_ops): Update.
3963 (nto_process_target::supports_read_auxv): Define.
3964 (nto_read_auxv): Turn into ...
3965 (nto_process_target::read_auxv): ... this.
3966 * nto-low.h (class nto_process_target): Update.
3967 * win32-low.cc (win32_target_ops): Update.
3968
eb497a2a
TBA
39692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3970
3971 Turn process_stratum_target's request_interrupt op into a method of
3972 process_target.
3973
3974 * target.h (struct process_stratum_target): Remove the target op.
3975 (class process_target): Add the target op.
3976
3977 Update the derived classes and callers below.
3978
3979 * remote-utils.cc (putpkt_binary_1): Update.
3980 (input_interrupt): Update.
3981 (getpkt): Update.
3982 * server.cc (handle_v_requests): Update.
3983 * linux-low.cc (linux_target_ops): Update.
3984 (linux_request_interrupt): Turn into ...
3985 (linux_process_target::request_interrupt): ... this.
3986 * linux-low.h (class linux_process_target): Update.
3987 * lynx-low.cc (lynx_target_ops): Update.
3988 (lynx_request_interrupt): Turn into ...
3989 (lynx_process_target::request_interrupt): ... this.
3990 * lynx-low.h (class lynx_process_target): Update.
3991 * nto-low.cc (nto_target_ops): Update.
3992 (nto_request_interrupt): Turn into ...
3993 (nto_process_target::request_interrupt): ... this.
3994 * nto-low.h (class nto_process_target): Update.
3995 * win32-low.cc (win32_target_ops): Update.
3996 (win32_request_interrupt): Turn into ...
3997 (win32_process_target::request_interrupt): ... this.
3998 * win32-low.h (class win32_process_target): Update.
3999
2a31c7aa
TBA
40002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4001
4002 Turn process_stratum_target's look_up_symbols op into a method of
4003 process_target.
4004
4005 * target.h (struct process_stratum_target): Remove the target op.
4006 (class process_target): Add the target op.
4007 * target.cc (process_target::look_up_symbols): Define.
4008
4009 Update the derived classes and callers below.
4010
4011 * server.cc (handle_query): Update.
4012 * linux-low.cc (linux_target_ops): Update.
4013 (linux_look_up_symbols): Turn into ...
4014 (linux_process_target::look_up_symbols): ... this.
4015 * linux-low.h (class linux_process_target): Update.
4016 * lynx-low.cc (lynx_target_ops): Update.
4017 * nto-low.cc (nto_target_ops): Update.
4018 * win32-low.cc (win32_target_ops): Update.
4019
e2558df3
TBA
40202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4021
4022 Turn process_stratum_target's read_memory and write_memory
4023 ops into methods of process_target.
4024
4025 * target.h (struct process_stratum_target): Remove the target ops.
4026 (class process_target): Add the target ops.
4027
4028 Update the derived classes and callers below.
4029
4030 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4031 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4032 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4033 (arm_get_syscall_trapinfo): Update.
4034 * linux-cris-low.cc (cris_breakpoint_at): Update.
4035 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4036 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4037 * linux-mips-low.cc (mips_breakpoint_at): Update.
4038 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4039 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4040 * linux-sh-low.cc (sh_breakpoint_at): Update.
4041 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4042 (sparc_store_gregset_from_stack): Update.
4043 (sparc_breakpoint_at): Update.
4044 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4045 * linux-tile-low.cc (tile_breakpoint_at): Update.
4046 * linux-x86-low.cc (x86_breakpoint_at): Update.
4047 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4048 * mem-brea.cc (insert_memory_breakpoint): Update.
4049 (validate_inserted_breakpoint): Update.
4050 * target.cc (read_inferior_memory): Update.
4051 (target_write_memory): Update.
4052 * linux-low.cc (linux_target_ops): Update.
4053 (linux_read_memory): Make a wrapper around the read_memory target
4054 op call.
4055 (linux_process_target::read_memory): Rename from linux_read_memory.
4056 (linux_write_memory): Turn into ...
4057 (linux_process_target::write_memory): ... this.
4058 * linux-low.h (class linux_process_target): Update.
4059 * lynx-low.cc (lynx_target_ops): Update.
4060 (lynx_read_memory): Turn into ...
4061 (lynx_process_target::read_memory): ... this.
4062 (lynx_write_memory): Turn into ...
4063 (lynx_process_target::write_memory): ... this.
4064 * lynx-low.h (class lynx_process_target): Update.
4065 * nto-low.cc (nto_target_ops): Update.
4066 (nto_read_memory): Turn into ...
4067 (nto_process_target::read_memory): ... this.
4068 (nto_write_memory): Turn into ...
4069 (nto_process_target::write_memory): ... this.
4070 * nto-low.h (class nto_process_target): Update.
4071 * win32-low.cc (win32_target_ops): Update.
4072 (win32_read_inferior_memory): Turn into ...
4073 (win32_process_target::read_memory): ... this.
4074 (win32_write_inferior_memory): Turn into ...
4075 (win32_process_target::write_memory): ... this.
4076 * win32-low.h (class win32_process_target): Update.
4077
79b44087
TBA
40782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4079
4080 Turn process_stratum_target's prepare_to_access_memory and
4081 done_accessing_memory ops into methods of process_target.
4082
4083 * target.h (struct process_stratum_target): Remove the target ops.
4084 (class process_target): Add the target ops.
4085 * target.cc (process_target::prepare_to_access_memory): Define.
4086 (process_target::done_accessing_memory): Define.
4087 (prepare_to_access_memory): Update.
4088 (done_accessing_memory): Update.
4089
4090 Update the derived classes and callers below.
4091
4092 * linux-low.cc (linux_target_ops): Update.
4093 (linux_prepare_to_access_memory): Turn into ...
4094 (linux_process_target::prepare_to_access_memory): ... this.
4095 (linux_done_accessing_memory): Turn into ...
4096 (linux_process_target::done_accessing_memory): ... this.
4097 * linux-low.h (class linux_process_target): Update.
4098 * lynx-low.cc (lynx_target_ops): Update.
4099 * nto-low.cc (nto_target_ops): Update.
4100 * win32-low.cc (win32_target_ops): Update.
4101
a5a4d4cd
TBA
41022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4103
4104 Turn process_stratum_target's fetch_registers and store_registers
4105 ops into methods of process_target.
4106
4107 * target.h (struct process_stratum_target): Remove the target ops.
4108 (class process_target): Add the target ops.
4109 (fetch_inferior_registers): Update the macro.
4110 (store_inferior_registers): Update the macro.
4111
4112 Update the derived classes and callers below.
4113
4114 * linux-low.cc (linux_target_ops): Update.
4115 (linux_fetch_registers): Turn into ...
4116 (linux_process_target::fetch_registers): ... this.
4117 (linux_store_registers): Turn into ...
4118 (linux_process_target::store_registers): ... this.
4119 * linux-low.h (class linux_process_target): Update.
4120 * lynx-low.cc (lynx_target_ops): Update.
4121 (lynx_fetch_registers): Turn into ...
4122 (lynx_process_target::fetch_registers): ... this.
4123 (lynx_store_registers): Turn into ...
4124 (lynx_process_target::store_registers): ... this.
4125 * lynx-low.h (class lynx_process_target): Update.
4126 * nto-low.cc (nto_target_ops): Update.
4127 (nto_fetch_registers): Turn into ...
4128 (nto_process_target::fetch_registers): ... this.
4129 (nto_store_registers): Turn into ...
4130 (nto_process_target::store_registers): ... this.
4131 * nto-low.h (class nto_process_target): Update.
4132 * win32-low.cc (win32_target_ops): Update.
4133 (win32_fetch_inferior_registers): Turn into ...
4134 (win32_process_target::fetch_registers): ... this.
4135 (win32_store_inferior_registers): Turn into ...
4136 (win32_process_target::store_registers): ... this.
4137 * win32-low.h (class win32_process_target): Update.
4138
6532e7e3
TBA
41392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4140
4141 Turn process_stratum_target's wait op into a method of
4142 process_target.
4143
4144 * target.h (struct process_stratum_target): Remove the target op.
4145 (class process_target): Add the target op.
4146
4147 Update the derived classes and callers below.
4148
4149 * target.cc (target_wait): Update.
4150 * linux-low.cc (linux_target_ops): Update.
4151 (linux_wait): Turn into ...
4152 (linux_process_target::wait): ... this.
4153 * linux-low.h (class linux_process_target): Update.
4154 * lynx-low.cc (lynx_target_ops): Update.
4155 (lynx_wait): Turn into ...
4156 (lynx_process_target::wait): ... this.
4157 * lynx-low.h (class lynx_process_target): Update.
4158 * nto-low.cc (nto_target_ops): Update.
4159 (nto_wait): Turn into ...
4160 (nto_process_target::wait): ... this.
4161 * nto-low.h (class nto_process_target): Update.
4162 * win32-low.cc (win32_target_ops): Update.
4163 (win32_wait): Turn into ...
4164 (win32_process_target::wait): ... this.
4165 (do_initial_child_stuff): Update.
4166 * win32-low.h (class win32_process_target): Update.
4167
0e4d7e35
TBA
41682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4169
4170 Turn process_stratum_target's resume op into a method of
4171 process_target.
4172
4173 * target.h (struct process_stratum_target): Remove the target op.
4174 (class process_target): Add the target op.
4175
4176 Update the derived classes and callers below.
4177
4178 * server.cc (resume): Update.
4179 * target.cc (target_stop_and_wait): Update.
4180 (target_continue_no_signal): Update.
4181 (target_continue): Update.
4182 * linux-low.cc (linux_target_ops): Update.
4183 (linux_resume): Turn into ...
4184 (linux_process_target::resume): ... this.
4185 * linux-low.h (class linux_process_target): Update.
4186 * lynx-low.cc (lynx_target_ops): Update.
4187 (lynx_resume): Turn into ...
4188 (lynx_process_target::resume): ... this.
4189 * lynx-low.h (class lynx_process_target): Update.
4190 * nto-low.cc (nto_target_ops): Update.
4191 (nto_resume): Turn into ...
4192 (nto_process_target::resume): ... this.
4193 * nto-low.h (class nto_process_target): Update.
4194 * win32-low.cc (win32_target_ops): Update.
4195 (win32_resume): Turn into ...
4196 (win32_process_target::resume): ... this.
4197 (win32_process_target::detach): Update.
4198 (do_initial_child_stuff): Update.
4199 * win32-low.h (class win32_process_target): Update.
4200
13d3d99b
TBA
42012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4202
4203 Turn process_stratum_target's thread_alive op into a method of
4204 process_target.
4205
4206 * target.h (struct process_stratum_target): Remove the target op.
4207 (class process_target): Add the target op.
4208 (mythread_alive): Update the macro.
4209
4210 Update the derived classes and callers below.
4211
4212 * linux-low.cc (linux_target_ops): Update.
4213 (linux_thread_alive): Turn into ...
4214 (linux_process_target::thread_alive): ... this.
4215 (wait_for_sigstop): Update.
4216 * linux-low.h (class linux_process_target): Update.
4217 * lynx-low.cc (lynx_target_ops): Update.
4218 (lynx_thread_alive): Turn into ...
4219 (lynx_process_target::thread_alive): ... this.
4220 * lynx-low.h (class lynx_process_target): Update.
4221 * nto-low.cc (nto_target_ops): Update.
4222 (nto_thread_alive): Turn into ...
4223 (nto_process_target::thread_alive): ... this.
4224 * nto-low.h (class nto_process_target): Update.
4225 * win32-low.cc (win32_target_ops): Update.
4226 (win32_thread_alive): Turn into ...
4227 (win32_process_target::thread_alive): ... this.
4228 * win32-low.h (class win32_process_target): Update.
4229
95a49a39
TBA
42302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4231
4232 Turn process_stratum_target's join op into a method of
4233 process_target.
4234
4235 * target.h (struct process_stratum_target): Remove the target op.
4236 (class process_target): Add the target op.
4237 (join_inferior): Update the macro.
4238
4239 Update the derived classes and callers below.
4240
4241 * linux-low.cc (linux_target_ops): Update.
4242 (linux_join): Turn into ...
4243 (linux_process_target::join): ... this.
4244 * linux-low.h (class linux_process_target): Update.
4245 * lynx-low.cc (lynx_target_ops): Update.
4246 (lynx_join): Turn into ...
4247 (lynx_process_target::join): ... this.
4248 * lynx-low.h (class lynx_process_target): Update.
4249 * nto-low.cc (nto_target_ops): Update.
4250 (nto_process_target::join): Define.
4251 * nto-low.h (class nto_process_target): Update.
4252 * win32-low.cc (win32_target_ops): Update.
4253 (win32_join): Turn into ...
4254 (win32_process_target::join): ... this.
4255 * win32-low.h (class win32_process_target): Update.
4256
8adb37b9
TBA
42572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4258
4259 Turn process_stratum_target's mourn op into a method of
4260 process_target.
4261
4262 * target.h (struct process_stratum_target): Remove the target op.
4263 (class process_target): Add the target op.
4264
4265 Update the derived classes and callers below.
4266
4267 * target.cc (target_mourn_inferior): Update.
4268 * linux-low.cc (linux_target_ops): Update.
4269 (linux_mourn): Turn into ...
4270 (linux_process_target::mourn): ... this.
4271 (handle_extended_wait): Update.
4272 (linux_process_target::kill): Update.
4273 (linux_process_target::detach): Update.
4274 * linux-low.h (class linux_process_target): Update.
4275 * lynx-low.cc (lynx_target_ops): Update.
4276 (lynx_mourn): Turn into ...
4277 (lynx_process_target::mourn): ... this.
4278 * lynx-low.h (class lynx_process_target): Update.
4279 * nto-low.cc (nto_target_ops): Update.
4280 (nto_mourn): Turn into ...
4281 (nto_process_target::mourn): ... this.
4282 * nto-low.h (class nto_process_target): Update.
4283 * win32-low.cc (win32_target_ops): Update.
4284 (win32_mourn): Turn into ...
4285 (win32_process_target::mourn): ... this.
4286 * win32-low.h (class win32_process_target): Update.
4287
9061c9cf
TBA
42882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4289
4290 Turn process_stratum_target's detach op into a method of
4291 process_target.
4292
4293 * target.h (struct process_stratum_target): Remove the target op.
4294 (class process_target): Add the target op.
4295 (detach_inferior): Update the macro.
4296
4297 Update the derived classes and callers below.
4298
4299 * linux-low.cc (linux_target_ops): Update.
4300 (linux_detach): Turn into ...
4301 (linux_process_target::detach): ... this.
4302 * linux-low.h (class linux_process_target): Update.
4303 * lynx-low.cc (lynx_target_ops): Update.
4304 (lynx_detach): Turn into ...
4305 (lynx_process_target::detach): ... this.
4306 * lynx-low.h (class lynx_process_target): Update.
4307 * nto-low.cc (nto_target_ops): Update.
4308 (nto_detach): Turn into ...
4309 (nto_process_target::detach): ... this.
4310 * nto-low.h (class nto_process_target): Update.
4311 * win32-low.cc (win32_target_ops): Update.
4312 (win32_detach): Turn into ...
4313 (win32_process_target::detach): ... this.
4314 * win32-low.h (class win32_process_target): Update.
4315
c6885a57
TBA
43162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4317
4318 Turn process_stratum_target's kill op into a method of
4319 process_target.
4320
4321 * target.h (struct process_stratum_target): Remove the target op.
4322 (class process_target): Add the target op.
4323
4324 Update the derived classes and callers below.
4325
4326 * target.cc (kill_inferior): Update.
4327 * linux-low.cc (linux_target_ops): Update.
4328 (linux_kill): Turn into ...
4329 (linux_process_target::kill): ... this.
4330 * linux-low.h (class linux_process_target): Update.
4331 * lynx-low.cc (lynx_target_ops): Update.
4332 (lynx_kill): Turn into ...
4333 (lynx_process_target::kill): ... this.
4334 * lynx-low.h (class lynx_process_target): Update.
4335 * nto-low.cc (nto_target_ops): Update.
4336 (nto_kill): Turn into ...
4337 (nto_process_target::kill): ... this.
4338 * nto-low.h (class nto_process_target): Update.
4339 * win32-low.cc (win32_target_ops): Update.
4340 (win32_kill): Turn into ...
4341 (win32_process_target::kill): ... this.
4342 * win32-low.h (class win32_process_target): Update.
4343
ef03dad8
TBA
43442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4345
4346 Turn process_stratum_target's attach op into a method of
4347 process_target.
4348
4349 * target.h (struct process_stratum_target): Remove the target op.
4350 (class process_target): Add the target op.
4351 (myattach): Update the macro.
4352
4353 Update the derived classes and callers below.
4354
4355 * linux-low.cc (linux_target_ops): Update.
4356 (linux_attach): Turn into ...
4357 (linux_process_target::attach): ... this.
4358 * linux-low.h (class linux_process_target): Update.
4359 * lynx-low.cc (lynx_target_ops): Update.
4360 (lynx_attach): Turn into ...
4361 (lynx_process_target::attach): ... this.
4362 * lynx-low.h (class lynx_process_target): Update.
4363 * nto-low.cc (nto_target_ops): Update.
4364 (nto_attach): Turn into ...
4365 (nto_process_target::attach): ... this.
4366 * nto-low.h (class nto_process_target): Update.
4367 * win32-low.cc (win32_target_ops): Update.
4368 (win32_attach): Turn into ...
4369 (win32_process_target::attach): ... this.
4370 * win32-low.h (class win32_process_target): Update.
4371
6dee9afb
TBA
43722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4373
4374 Turn process_stratum_target's post_create_inferior op into a method
4375 of process_target.
4376
4377 * target.h (struct process_stratum_target): Remove the target op.
4378 (class process_target): Add the target op.
4379 (target_post_create_inferior): Update the macro.
4380 * target.cc (process_target::post_create_inferior): Define.
4381
4382 Update the derived classes and callers below.
4383
4384 * linux-low.cc (linux_target_ops): Update.
4385 (linux_post_create_inferior): Turn into ...
4386 (linux_process_target::post_create_inferior): ... this.
4387 * linux-low.h (class linux_process_target): Update.
4388 * lynx-low.cc (lynx_target_ops): Update.
4389 * nto-low.cc (nto_target_ops): Update.
4390 * win32-low.cc (win32_target_ops): Update.
4391
15295543
TBA
43922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4393
4394 Turn process_stratum_target's create_inferior op into a method of
4395 process_target.
4396
4397 * target.h (struct process_stratum_target): Remove the target op.
4398 (class process_target): Add the target op.
4399 (create_inferior): Rename the macro to ...
4400 (target_create_inferior): ... this.
4401
4402 Update the derived classes and callers below.
4403
4404 * server.cc (handle_v_run): Update.
4405 (captured_main): Update.
4406 (process_serial_event): Update.
4407 * linux-low.cc (linux_target_ops): Update.
4408 (linux_create_inferior): Turn into ...
4409 (linux_process_target::create_inferior): ... this.
4410 * linux-low.h (class linux_process_target): Update.
4411 * lynx-low.cc (lynx_target_ops): Update.
4412 (lynx_create_inferior): Turn into ...
4413 (lynx_process_target::create_inferior): ... this.
4414 * lynx-low.h (class lynx_process_target): Update.
4415 * nto-low.cc (nto_target_ops): Update.
4416 (nto_create_inferior): Turn into ...
4417 (nto_process_target::create_inferior): ... this.
4418 * nto-low.h (class nto_process_target): Update.
4419 * win32-low.cc (win32_target_ops): Update.
4420 (win32_create_inferior): Turn into ...
4421 (win32_process_target::create_inferior): ... this.
4422 * win32-low.h (class win32_process_target): Update.
4423
5ef9273d
TBA
44242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4425
4426 * target.h (class process_target): New class definition.
4427 (struct process_stratum_target) <pt>: New field with type
4428 'process_target*'.
4429 * linux-low.h (class linux_process_target): Define as a derived
4430 class of 'process_target'.
4431 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4432 as the 'pt' field.
4433 * lynx-low.h (class lynx_process_target): Define as a derived
4434 class of 'process_target'.
4435 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4436 as the 'pt' field.
4437 * nto-low.h (class nto_process_target): Define as a derived
4438 class of 'process_target'.
4439 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4440 as the 'pt' field.
4441 * win32-low.h (class win32_process_target): Define as a derived
4442 class of 'process_target'.
4443 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4444 as the 'pt' field.
4445
9f1528a1
AB
44462020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4447
4448 * configure: Regenerate.
4449
bf84f706
MR
44502020-02-19 Maciej W. Rozycki <macro@wdc.com>
4451 Andrew Burgess <andrew.burgess@embecosm.com>
4452
4453 * linux-riscv-low.cc: New file.
4454 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4455 and nat/riscv-linux-tdesc.c.
4456 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4457 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4458 Define.
4459
1a627e7e
TT
44602020-02-14 Tom Tromey <tom@tromey.com>
4461
4462 * acinclude.m4: Don't include acx_configure_dir.m4.
4463 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4464 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4465 (all, install-only, uninstall, clean-info, clean)
4466 (maintainer-clean): Don't recurse.
4467 (subdir_do, all-lib): Remove.
4468 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4469 (GNULIB_H): Remove.
4470 (generated_files): Update.
4471 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4472 * configure: Rebuild.
4473 * configure.ac: Don't configure gnulib or libiberty.
4474 (GNULIB): Update.
4475
a9b34532
EZ
44762020-02-14 Eli Zaretskii <eliz@gnu.org>
4477
4478 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4479 preparing the command line for CreateProcess.
4480 (win32_create_inferior): Reflect the program name in debugging
4481 output that shows the process and its command line.
4482
feacfcac
SM
44832020-02-13 Simon Marchi <simon.marchi@efficios.com>
4484
4485 * Makefile.in: Rename source files from .c to .cc.
4486 * %.c: Rename to %.cc.
4487 * configure.ac: Rename server.c to server.cc.
4488 * configure: Re-generate.
4489
06b3c5bd
SM
44902020-02-13 Simon Marchi <simon.marchi@efficios.com>
4491
4492 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4493
052793ad
HD
44942020-02-12 Hannes Domani <ssbssa@yahoo.de>
4495
4496 * win32-low.c (win32_create_inferior): Set signal_pid.
4497
f20e3e82
MR
44982020-02-12 Maciej W. Rozycki <macro@wdc.com>
4499 Pedro Alves <palves@redhat.com>
4500
4501 Skip building gdbserver in a cross-configuration.
4502 * configure.srv: Set $gdbserver_host depending on whether $target
4503 is $host. Use $gdbserver_host instead of $host.
4504
8ddd8e0e
SM
45052020-02-11 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * configure: Re-generate.
4508
898e7f60
SM
45092020-02-11 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * configure: Re-generate.
4512
58df732b
SM
45132020-02-11 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * acinclude.m4: Update warning.m4 path.
4516
7928d571
HD
45172020-02-09 Hannes Domani <ssbssa@yahoo.de>
4518
4519 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4520 (handle_exception): Set siginfo_er.
4521 (win32_xfer_siginfo): New function.
4522
919adfe8
TT
45232020-02-07 Tom Tromey <tom@tromey.com>
4524 Pedro Alves <palves@redhat.com>
4525
4526 * README: Update build documentation.
4527 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4528 host, not target.
4529 * configure.ac: Update paths.
4530 * configure: Rebuild.
4531 * acinclude.m4: Update paths.
4532 * Makefile.in: Update include paths.
4533 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4534 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4535 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4536 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4537 (%-generated.c): Update paths.
4538 * Move entire directory from ../gdb/gdbserver.
4539
287c844a
MR
45402020-01-29 Maciej W. Rozycki <macro@wdc.com>
4541
4542 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4543
548a204f
PFC
45442020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4545
4546 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4547 assignment instead of srv_linux_obj.
4548
a2236a08
HD
45492020-01-28 Hannes Domani <ssbssa@yahoo.de>
4550
4551 * server.c (handle_qxfer_libraries): Write segment-address with
4552 paddress.
4553
bdaed379
HD
45542020-01-24 Hannes Domani <ssbssa@yahoo.de>
4555
4556 * Makefile.in (install-strip): New target.
4557 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4558 * aclocal.m4: Regenerate.
4559 * configure: Regenerate.
4560 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4561
42cd72aa
MR
45622020-01-24 Maciej W. Rozycki <macro@wdc.com>
4563
4564 * Makefile.in (SFILES): Adjust paths to point to real files.
4565 (OBS): Move waitstatus.o to target/waitstatus.o.
4566 (TAGS): Transform paths appropriately.
4567 (%.o): Rename to...
4568 (nat/%.o): ... this pattern rule.
4569 (%.o): Rename to...
4570 (target/%.o): ... this pattern rule.
4571 * configure.srv: Adjust paths throughout to include nat/ prefix
4572 with the revant files.
4573 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4574 * configure: Regenerate.
4575
42ba50ec
MR
45762020-01-24 Maciej W. Rozycki <macro@wdc.com>
4577
4578 * Makefile.in (TAGS): Remove config files from the recipe.
4579
05ea2a05
TT
45802020-01-14 Tom Tromey <tom@tromey.com>
4581
4582 * configure: Rebuild.
4583 * configure.ac: Remove any checks that were added to common.m4.
4584 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4585 lib-link.m4.
4586
01027315
TT
45872020-01-14 Tom Tromey <tom@tromey.com>
4588
4589 * server.h: Include config.h.
4590 * gdbreplay.c: Include config.h.
4591 * configure: Rebuild.
4592 * configure.ac: Don't source common.host.
4593 * acinclude.m4: Update path.
4594 * Makefile.in (INCSUPPORT): New variable.
4595 (INCLUDE_CFLAGS): Add INCSUPPORT.
4596 (SFILES): Update paths.
4597 (version-generated.c): Update path to create-version.sh.
4598 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4599
b2ceabe8
TT
46002020-01-14 Tom Tromey <tom@tromey.com>
4601
4602 * configure.ac (LIBS): Use WIN32APILIBS.
4603 (USE_WIN32API): Don't define.
4604 * configure: Rebuild.
4605
25c51f71
TT
46062020-01-14 Tom Tromey <tom@tromey.com>
4607
4608 * configure: Rebuild.
4609
c0bd321d
SM
46102020-01-13 Simon Marchi <simon.marchi@efficios.com>
4611
4612 * Makefile.in (%-generated.c): Remove rule for files from
4613 regformats/i386.
4614
bb564c58
SM
46152020-01-13 Simon Marchi <simon.marchi@efficios.com>
4616
4617 * configure: Re-generate.
4618
6e37c371
SM
46192020-01-13 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4622 Define to static.
4623 * tracepoint.c (stop_tracing, flush_trace_buffer,
4624 about_to_request_buffer_space, get_trace_state_variable_value,
4625 set_trace_state_variable_value, gdb_collect): Add declaration.
4626
df4a0200
SM
46272020-01-13 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4630 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4631 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4632 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4633 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4634 static.
4635
89e94ec9
SM
46362020-01-13 Simon Marchi <simon.marchi@efficios.com>
4637
4638 * inferiors.c: Include gdbsupport/common-inferior.h.
4639
2552728a
SM
46402020-01-13 Simon Marchi <simon.marchi@efficios.com>
4641
4642 * hostio-errno.c: Include hostio.h.
4643
4025fa09
SM
46442020-01-13 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4647 prerequisite.
4648
c0b0a142
SM
46492020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4650
4651 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4652 * linux-arm-tdesc.h: Include arch/arm.h.
4653
bb1183e2
SM
46542020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4655
4656 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4657
f5df0b5f
SM
46582020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4659
4660 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4661 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4662
5b6d1e4f
PA
46632020-01-10 Pedro Alves <palves@redhat.com>
4664
4665 * fork-child.c (post_fork_inferior): Pass target down to
4666 startup_inferior.
4667 * inferiors.c (switch_to_thread): Add process_stratum_target
4668 parameter.
4669 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4670 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4671 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4672 * remote-utils.c (prepare_resume_reply): Pass the target to
4673 switch_to_thread.
4674 * target.c (the_target): Now a process_stratum_target.
4675 (done_accessing_memory): Pass the target to switch_to_thread.
4676 (set_target_ops): Ajust to use process_stratum_target.
4677 * target.h (struct target_ops): Rename to ...
4678 (struct process_stratum_target): ... this.
4679 (the_target, set_target_ops): Adjust.
4680 (prepare_to_access_memory): Adjust comment.
4681 * win32-low.c (child_xfer_memory): Adjust to use
4682 process_stratum_target.
4683 (win32_target_ops): Now a process_stratum_target.
4684
559e7e50
EZ
46852020-01-06 Eli Zaretskii <eliz@gnu.org>
4686 Pedro Alves <palves@redhat.com>
4687
4688 * win32-low.c (get_child_debug_event): Extract the fatal exception
4689 from the exit status and convert to the equivalent Posix signal
4690 number.
4691 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4692 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4693
48189bec
HD
46942020-01-01 Hannes Domani <ssbssa@yahoo.de>
4695
4696 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4697
5dd8bf88
JB
46982020-01-01 Joel Brobecker <brobecker@adacore.com>
4699
4700 * server.c (gdbserver_version): Change copyright year to 2020.
4701 * gdbreplay.c (gdbreplay_version): Likewise.
4702
0ad6b8ee
CB
47032019-12-19 Christian Biesinger <cbiesinger@google.com>
4704
4705 * configure: Regenerate.
4706 * configure.ac: Quote variable arguments of test.
4707
1ee7b812
BE
47082019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4709
4710 * Makefile.in: Fix build with GNU Make 3.81
4711
d9fa87f4
TT
47122019-12-16 Tom Tromey <tromey@adacore.com>
4713
4714 * server.c (get_exec_file): Constify result.
4715
ab7d13f0
CB
47162019-12-10 Christian Biesinger <cbiesinger@google.com>
4717
4718 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4719 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4720 * config.in: Regenerate.
4721 * configure: Regenerate.
4722 * configure.ac: Don't check for strerror.
4723 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4724 Call safe_strerror instead of strerror.
4725 * server.h (strerror): Remove this now-unnecessary declaration.
4726 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4727 strerror.
4728 (gdb_agent_helper_thread): Likewise.
4729 * utils.c (perror_with_name): Likewise.
4730
4da8c3a8
TT
47312019-11-26 Tom Tromey <tom@tromey.com>
4732
4733 * configure, config.in: Rebuild.
4734
21987b9c
TT
47352019-11-26 Tom Tromey <tom@tromey.com>
4736
4737 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4738 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4739 gdb_sigmask.
4740 * configure, config.in: Rebuild.
4741
5e030278
TT
47422019-11-26 Tom Tromey <tom@tromey.com>
4743
4744 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4745 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4746 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4747 * acinclude.m4: Include ax_pthread.m4.
4748 * config.in, configure: Rebuild.
4749
6d91ce9a
CB
47502019-11-26 Christian Biesinger <cbiesinger@google.com>
4751
4752 * debug.c (debug_set_output): Call safe_strerror instead of
4753 strerror.
4754 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4755 (linux_kill_one_lwp): Likewise.
4756 (linux_detach_one_lwp): Likewise.
4757 (linux_wait_for_event_filtered): Likewise.
4758 (store_register): Likewise.
4759 * lynx-low.c (lynx_attach): Likewise.
4760 * mem-break.c (insert_memory_breakpoint): Likewise.
4761 (remove_memory_breakpoint): Likewise.
4762 (delete_fast_tracepoint_jump): Likewise.
4763 (set_fast_tracepoint_jump): Likewise.
4764 (uninsert_fast_tracepoint_jumps_at): Likewise.
4765 (reinsert_fast_tracepoint_jumps_at): Likewise.
4766 * nto-low.c (nto_xfer_memory): Likewise.
4767 (nto_resume): Likewise.
4768
6cdd651f
LM
47692019-11-20 Luis Machado <luis.machado@linaro.org>
4770
4771 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4772 instead of register count.
4773 * tdesc.c (tdesc_contains_feature): New function.
4774 * tdesc.h (tdesc_contains_feature): New prototype.
4775
cd850b40
CB
47762019-11-15 Christian Biesinger <cbiesinger@google.com>
4777
4778 * Makefile.in: Add safe-strerror.c.
4779 * configure: Regenerate.
4780 * configure.ac: Don't source common.host.
4781
5abebf3c
CB
47822019-11-15 Christian Biesinger <cbiesinger@google.com>
4783
4784 * config.in: Regenerate.
4785 * configure: Regenerate.
4786
e06f3d6e
AB
47872019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4788
4789 * ax.c (ax_printf): Handle size_t_arg.
4790
ca3a04f6
CB
47912019-11-06 Christian Biesinger <cbiesinger@google.com>
4792
4793 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4794 * mi/mi-main.c (output_cores): Likewise.
4795 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4796 (linux_xfer_osdata_modules): Likewise.
4797 * remote.c (register_remote_support_xml): Likewise.
4798 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4799 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4800
e48f6033
CB
48012019-11-01 Christian Biesinger <cbiesinger@google.com>
4802
4803 * configure: Regenerate.
4804 * configure.ac: Remove check for strerror_r.
4805
e7e97a2e
CB
48062019-10-31 Christian Biesinger <cbiesinger@google.com>
4807
4808 * config.in: Regenerate.
4809 * configure: Regenerate.
4810 * configure.ac: Also check for strerror_r.
4811
75cafaa6
CB
48122019-10-31 Christian Biesinger <cbiesinger@google.com>
4813
4814 * ax.h (debug_agent): Remove duplicate declaration.
4815
30baf67b
TV
48162019-10-26 Tom de Vries <tdevries@suse.de>
4817
4818 * linux-aarch64-low.c: Fix typos in comments.
4819 * linux-arm-low.c: Same.
4820 * linux-low.c: Same.
4821 * linux-ppc-low.c: Same.
4822 * proc-service.c: Same.
4823 * regcache.h: Same.
4824 * server.c: Same.
4825 * tracepoint.c: Same.
4826 * win32-low.c: Same.
4827
52c64cf7
TT
48282019-10-25 Tom Tromey <tromey@adacore.com>
4829
4830 * utils.c (xstrdup): Remove.
4831
c12d372d
TT
48322019-10-23 Tom Tromey <tom@tromey.com>
4833
4834 * configure, config.in: Rebuild.
4835
4d0b984b
TT
48362019-10-23 Tom Tromey <tom@tromey.com>
4837
4838 * configure: Rebuild.
4839 * acinclude.m4: Use m4_include, not sinclude.
4840
c5adaa19
TT
48412019-10-17 Tom Tromey <tromey@adacore.com>
4842
4843 * configure: Rebuild.
4844 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4845 in AC_CONFIG_FILES invocation.
4846 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4847 invocation.
4848
fec4e896
CB
48492019-10-16 Christian Biesinger <cbiesinger@google.com>
4850
4851 * server.c: Include xml-builtin.h.
4852 (get_xml_features): Don't declare xml_builtins here.
4853
00975ff6
AB
48542019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4855
4856 * Makefile.in: Remove references to vec-ipa.o.
4857
0dc32745
AB
48582019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4859
4860 * Makefile.in: Remove references to vec.c.
4861
3e6ec53a
CB
48622019-10-02 Christian Biesinger <cbiesinger@google.com>
4863
4864 * server.c (server_waiting): Change to bool.
4865 (extended_protocol): Likewise.
4866 (response_needed): Likewise.
4867 (exit_requested): Likewise.
4868 (run_once): Likewise.
4869 (report_no_resumed): Likewise.
4870 (non_stop): Likewise.
4871 (disable_packet_vCont): Likewise.
4872 (disable_packet_Tthread): Likewise.
4873 (disable_packet_qC): Likewise.
4874 (disable_packet_qfThreadInfo): Likewise.
4875 (handle_general_set): Update.
4876 (handle_detach): Update.
4877 (handle_monitor_command): Update.
4878 (handle_query): Update.
4879 (captured_main): Update.
4880 (process_serial_event): Update.
4881 * server.h (server_waiting): Change to bool.
4882 (disable_packet_vCont): Likewise.
4883 (disable_packet_Tthread): Likewise.
4884 (disable_packet_qC): Likewise.
4885 (disable_packet_qfThreadInfo): Likewise.
4886 (run_once): Likewise.
4887 (non_stop): Likewise.
4888 * target.c (target_stop_and_wait): Update.
4889
80fd2826
TT
48902019-10-02 Tom Tromey <tromey@adacore.com>
4891
4892 * Makefile.in (SFILES): Add common-inferior.c.
4893 (OBS): Add common-inferior.o.
4894 * server.c (startup_with_shell): Don't define.
4895
46f29a9a
AB
48962019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4897
4898 * linux-low.c (linux_low_read_btrace): Update for change to
4899 std::vector.
4900
f9d949fb
CB
49012019-09-20 Christian Biesinger <cbiesinger@google.com>
4902
4903 * debug.c (debug_threads): Remove comment in favor of the header.
4904 * debug.h (using_threads): Add declaration.
4905 (debug_threads): Add comment.
4906 * linux-aarch64-low.c: Include debug.h and remove declaration of
4907 debug_threads.
4908 * nto-low.c: Likewise.
4909 * remote-utils.c: Likewise.
4910 * thread-db.c: Likewise.
4911
abf516c6
UW
49122019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4913
4914 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4915 and powerpc-cell64l-ipa.o.
4916 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4917 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4918 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4919 (spu*-*-*): Remove.
4920
4921 * spu-low.c: Remove file.
4922
4923 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4924 (parse_spufs_run): Remove.
4925 (ppc_get_pc): Remove Cell/B.E. support.
4926 (ppc_set_pc): Likewise.
4927 (ppc_breakpoint_at): Likewise.
4928 (ppc_arch_setup): Likewise.
4929 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4930 tdesc_powerpc_cell32l.
4931 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4932 or init_registers_powerpc_cell32l.
4933 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4934 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4935 or init_registers_powerpc_cell32l.
4936 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4937 (init_registers_powerpc_cell32l): Remove prototype.
4938 (init_registers_powerpc_cell64l): Likewise.
4939
4940 * target.h (struct target_ops): Remove qxfer_spu member.
4941 * server.c (handle_qxfer_spu): Remove.
4942 (qxfer_packets): Remove entry for "spu".
4943 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4944 * linux-low.c (SPUFS_MAGIC): Remove.
4945 (spu_enumerate_spu_ids): Remove.
4946 (linux_qxfer_spu): Remove.
4947 (linux_target_ops): Remove qxfer_spu member.
4948 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4949 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4950 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4951
2d41fa11
SDJ
49522019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4953
4954 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4955 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4956 * config.in: Regenerate.
4957 * configure: Regenerate.
4958
d59b55f0
TT
49592019-08-15 Tom Tromey <tromey@adacore.com>
4960
4961 * target.c (target_write_memory): Use gdb::byte_vector.
4962
4196ab2a
TT
49632019-08-15 Tom Tromey <tromey@adacore.com>
4964
4965 * tracepoint.c (write_inferior_data_pointer)
4966 (write_inferior_integer, write_inferior_int8)
4967 (write_inferior_uinteger, m_tracepoint_action_download)
4968 (r_tracepoint_action_download, x_tracepoint_action_download)
4969 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4970 (download_agent_expr, download_tracepoint_1)
4971 (download_trace_state_variables, upload_fast_traceframes): Update.
4972 * server.c (gdb_write_memory): Update.
4973 * remote-utils.c (relocate_instruction): Update.
4974 * proc-service.c (ps_pdwrite): Update.
4975 * mem-break.c (remove_memory_breakpoint)
4976 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4977 (uninsert_fast_tracepoint_jumps_at)
4978 (reinsert_fast_tracepoint_jumps_at): Update.
4979 * linux-x86-low.c (append_insns)
4980 (i386_install_fast_tracepoint_jump_pad)
4981 (amd64_write_goto_address, i386_write_goto_address): Update.
4982 * linux-s390-low.c (append_insns, s390_write_goto_address):
4983 Update.
4984 * linux-ppc-low.c (ppc_relocate_instruction)
4985 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4986 (ppc_write_goto_address): Update.
4987 * linux-aarch64-low.c (append_insns): Update.
4988 * target.h (struct target_ops): Update.
4989 (write_inferior_memory): Don't declare.
4990 * target.c (target_write_memory): Rename from
4991 write_inferior_memory. Remove old target_write_memory.
4992
c6778d00
TT
49932019-08-15 Tom Tromey <tromey@adacore.com>
4994
4995 * target.c (write_inferior_memory): Use std::vector.
4996
404f2902
FCE
49972019-08-06 Frank Ch. Eigler <fche@redhat.com>
4998
4999 PR build/24886
5000 * configure.ac: Drop enable-libmcheck support.
5001 * configure, config.in: Rebuild.
5002 * acinclude.m4: Don't include it.
5003
4c5aa8e0
AH
50042019-07-19 Alan Hayward <alan.hayward@arm.com>
5005
5006 * configure.srv: Remove Arm xml files.
5007
7cc17433
AH
50082019-07-19 Alan Hayward <alan.hayward@arm.com>
5009
5010 * configure.srv: Add new files. Remove xml generated files.
5011 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5012 registers.
5013 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5014 * linux-aarch32-tdesc.c: New file.
5015 * linux-aarch32-tdesc.h: New file.
5016 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5017 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5018 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5019 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5020 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5021 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5022 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5023 (arm_read_description): Call arm_linux_read_description.
5024 (initialize_low_arch): Don't init registers.
5025 * linux-arm-tdesc.c: New file.
5026 * linux-arm-tdesc.h: New file.
5027
166a82be
AH
50282019-07-10 Alan Hayward <alan.hayward@arm.com>
5029
5030 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5031 Move counter inside for.
5032 (arm_read_description): Check ptrace earlier.
5033 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5034
268a13a5
TT
50352019-07-09 Tom Tromey <tom@tromey.com>
5036
5037 * configure: Rebuild.
5038 * configure.ac: Change common to gdbsupport.
5039 * acinclude.m4: Change common to gdbsupport.
5040 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5041 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5042 common to gdbsupport.
5043 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5044 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5045 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5046 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5047 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5048 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5049 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5050 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5051 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5052 common to gdbsupport.
5053
350fab54
AH
50542019-07-04 Alan Hayward <alan.hayward@arm.com>
5055
5056 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5057 defines.
5058 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5059
2b40fda7
AH
50602019-07-04 Alan Hayward <alan.hayward@arm.com>
5061
5062 * configure.srv: Remove legacy xml.
5063 * linux-aarch64-low.c (initialize_low_arch): Remove
5064 initialize_low_tdesc call.
5065 * linux-aarch64-tdesc-selftest.c: Remove file.
5066 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5067 * linux-x86-low.c (initialize_low_arch): Remove
5068 initialize_low_tdesc call.
5069 * linux-x86-tdesc-selftest.c: Remove file.
5070 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5071
7d10623d
TV
50722019-06-20 Tom de Vries <tdevries@suse.de>
5073
5074 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5075 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5076
8d6a48df
TV
50772019-06-19 Tom de Vries <tdevries@suse.de>
5078
5079 * debug.h (debug_write): Change return type to ssize_t.
5080 * debug.c (debug_write): Same.
5081
73cc7272
TT
50822019-06-14 Tom Tromey <tom@tromey.com>
5083
5084 * configure.ac: Use new path to gnulib.
5085 * configure: Rebuild.
5086 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5087 to gnulib.
5088
08f10e02
TT
50892019-06-11 Tom Tromey <tom@tromey.com>
5090
5091 * Makefile.in (SFILES): Add alloc.c.
5092 (OBS): Add alloc.o.
5093 (IPA_OBJS): Add alloc-ipa.o.
5094 (alloc-ipa.o): New target.
5095 (%.o: ../%.c): New pattern rule.
5096
422186a9
TT
50972019-06-10 Tom Tromey <tromey@adacore.com>
5098
5099 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5100 end warning with a newline.
5101 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5102 newline.
5103 * thread-db.c (attach_thread): Don't end warning with a newline.
5104 (thread_db_notice_clone): Likewise.
5105 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5106 newline.
5107 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5108 end warning with a newline.
5109
b02f78f9
PA
51102019-06-04 Pedro Alves <palves@redhat.com>
5111
5112 * server.c (captured_main): Use make_unique_xstrdup.
5113
88ed7edb
TT
51142019-06-02 Tom Tromey <tom@tromey.com>
5115
5116 * gdbreplay.c (fromhex): Remove.
5117 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5118
33a6bc35
TT
51192019-05-29 Tom Tromey <tromey@adacore.com>
5120
5121 * configure: Rebuild.
5122
e90a813d
KB
51232019-05-06 Kevin Buettner <kevinb@redhat.com>
5124
5125 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5126 sign extension code on 32-bit builds.
5127
353ea2d1
EZ
51282019-05-03 Eli Zaretskii <eliz@gnu.org>
5129
5130 * remote-utils.c:
5131 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5132
b494cdff
TT
51332019-04-19 Tom Tromey <tom@tromey.com>
5134
5135 * server.c (struct vstop_notif): Derive from notif_event.
5136 <base>: Remove.
5137 (queue_stop_reply): Update.
5138 (remove_all_on_match_ptid): Change type. Rewrite.
5139 (discard_queued_stop_replies): Rewrite.
5140 (in_queued_stop_replies_ptid): Change type.
5141 (in_queued_stop_replies): Rewrite.
5142 (notif_stop): Update.
5143 (queue_stop_reply_callback): Update.
5144 (captured_main): Don't call initialize_notif.
5145 (push_stop_notification): Update.
5146 * notif.c (notif_write_event, handle_notif_ack)
5147 (notif_event_enque, notif_push): Update.
5148 (notif_event_xfree, initialize_notif): Remove.
5149 * notif.h (struct notif_event): Include <list>, not
5150 "common/queue.h".
5151 (struct notif_server) <queue>: Now a std::list.
5152 (notif_event_p): Remove typedef.
5153 (initialize_notif): Don't declare.
5154 (struct notif_event): Add virtual destructor.
5155
a7e559cc
AH
51562019-04-17 Alan Hayward <alan.hayward@arm.com>
5157
5158 * ax.c (ax_vdebug): Call debug_printf.
5159 * debug.c (debug_write): New function.
5160 * debug.h (debug_write): New declaration.
5161 * linux-low.c (sigchld_handler): Call debug_write.
5162
aeb2e706
AH
51632019-04-17 Alan Hayward <alan.hayward@arm.com>
5164
5165 * debug.c (debug_set_output): New function.
5166 (debug_vprintf): Send output to debug_file.
5167 (debug_flush): Likewise.
5168 * debug.h (debug_set_output): New declaration.
5169 * server.c (handle_monitor_command): Add debug-file option.
5170 (captured_main): Likewise.
5171
c1bc0935
AH
51722019-04-17 Alan Hayward <alan.hayward@arm.com>
5173
5174 * debug.c (remote_debug): Add definition.
5175 * debug.h (remote_debug): Add declaration.
5176 * hostio.c (remote_debug): Remove declaration.
5177 * remote-utils.c (struct ui_file): Likewise.
5178 (remote_debug): Likewise.
5179 * remote-utils.h (remote_debug): Likewise,
5180 * server.c (remote_debug): Remove definition.
5181
3f52fdbc
KB
51822019-04-10 Kevin Buettner <kevinb@redhat.com>
5183
5184 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5185 when using a 64-bit gdbserver.
5186
b0319eaa
TT
51872019-04-09 Tom Tromey <tromey@adacore.com>
5188
5189 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5190
eedc3f4f
TT
51912019-04-08 Tom Tromey <tom@tromey.com>
5192
5193 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5194 throw.
5195 (linux_resume_one_lwp): Likewise.
5196
230d2906
TT
51972019-04-08 Tom Tromey <tom@tromey.com>
5198
5199 * gdbreplay.c: Update.
5200 * linux-low.c: Update.
5201 * server.c: Update.
5202
a70b8144
TT
52032019-04-08 Tom Tromey <tom@tromey.com>
5204
5205 * server.c: Use C++ exception handling.
5206 * linux-low.c: Use C++ exception handling.
5207 * gdbreplay.c: Use C++ exception handling.
5208
3d6e9d23
TT
52092019-04-08 Tom Tromey <tom@tromey.com>
5210
5211 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5212 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5213 (captured_main, main): Update.
5214 * gdbreplay.c (main): Update.
5215
0570503d
PFC
52162019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5217
5218 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5219 value in argument pointer, return 1 if the entry is found and 0
5220 otherwise. Move comment.
5221 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5222 * linux-low.h (linux_get_auxv): Declare.
5223 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5224
227a9e65
TT
52252019-04-05 Tom Tromey <tromey@adacore.com>
5226
5227 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5228 variables.
5229
69f4c9cc
AH
52302019-03-28 Alan Hayward <alan.hayward@arm.com>
5231
5232 * linux-low.c (AT_HWCAP2): Add define if not already included.
5233
974c89e0
AH
52342019-03-26 Alan Hayward <alan.hayward@arm.com>
5235
5236 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5237 (aarch64_arch_setup): Call linux_get_hwcap.
5238 * linux-arm-low.c (arm_get_hwcap): Remove function.
5239 (arm_read_description): Call linux_get_hwcap.
5240 * linux-low.c (linux_get_auxv): New function.
5241 (linux_get_hwcap): Likewise.
5242 (linux_get_hwcap2): Likewise.
5243 * linux-low.h (linux_get_hwcap): New declaration.
5244 (linux_get_hwcap2): Likewise.
5245 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5246 (ppc_arch_setup): Call linux_get_hwcap.
5247 * linux-s390-low.c (s390_get_hwcap): Remove function.
5248 (s390_arch_setup): Call linux_get_hwcap.
5249
1ef53e6b
AH
52502019-03-22 Alan Hayward <alan.hayward@arm.com>
5251 Jiong Wang <jiong.wang@arm.com>
5252
5253 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5254 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5255 to fail.
5256 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5257
ee4fbcfa
AH
52582019-03-22 Alan Hayward <alan.hayward@arm.com>
5259 Jiong Wang <jiong.wang@arm.com>
5260
5261 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5262 (aarch64_get_hwcap): New function.
5263 (aarch64_arch_setup): Read APIA hwcap.
5264
6dc0ebde
AH
52652019-03-22 Alan Hayward <alan.hayward@arm.com>
5266 Jiong Wang <jiong.wang@arm.com>
5267
5268 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5269 (initialize_low_tracepoint): Likewise.
5270 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5271 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5272 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5273 (aarch64_linux_read_description): Likewise.
5274 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5275
1163a4b7
JB
52762019-03-12 John Baldwin <jhb@FreeBSD.org>
5277
5278 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5279 i386_create_target_description for 'segments' parameter.
5280 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5281 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5282 * win32-i386-low.c (i386_arch_setup): Likewise.
5283
d3a70e03
TT
52842019-03-12 Tom Tromey <tromey@adacore.com>
5285
5286 * linux-low.c (iterate_over_lwps): Update.
5287
37991b4f
TT
52882019-03-06 Tom Tromey <tom@tromey.com>
5289
5290 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5291 (captured_main): Use SCOPE_EXIT.
5292
45950eb6
SDJ
52932019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5294
5295 * configure.srv: Use '$enable_unittest' instead of '$development'
5296 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5297 case.
5298
43ac54fc
TT
52992019-02-27 Tom Tromey <tromey@adacore.com>
5300
5301 * gdbreplay.c (logchar): Handle \r\n.
5302
df0da8a2
AH
53032019-02-07 Alan Hayward <alan.hayward@arm.com>
5304
5305 * linux-low.c (linux_attach): Add process before lwp.
5306 * server.c (attach_inferior): Check if already attached.
5307
1a5c2598
TT
53082019-02-07 Tom Tromey <tom@tromey.com>
5309
5310 * x86-tdesc.h: Rename include guard.
5311 * x86-low.h: Add include guard.
5312 * wincecompat.h: Rename include guard.
5313 * win32-low.h: Add include guard.
5314 * utils.h: Rename include guard.
5315 * tracepoint.h: Rename include guard.
5316 * tdesc.h: Rename include guard.
5317 * target.h: Rename include guard.
5318 * server.h: Rename include guard.
5319 * remote-utils.h: Rename include guard.
5320 * regcache.h: Rename include guard.
5321 * nto-low.h: Rename include guard.
5322 * notif.h: Add include guard.
5323 * mem-break.h: Rename include guard.
5324 * lynx-low.h: Add include guard.
5325 * linux-x86-tdesc.h: Add include guard.
5326 * linux-s390-tdesc.h: Add include guard.
5327 * linux-ppc-tdesc-init.h: Add include guard.
5328 * linux-low.h: Add include guard.
5329 * linux-aarch64-tdesc.h: Add include guard.
5330 * linux-aarch32-low.h: Add include guard.
5331 * inferiors.h: Rename include guard.
5332 * i387-fp.h: Rename include guard.
5333 * hostio.h: Rename include guard.
5334 * gdbthread.h: Rename include guard.
5335 * gdb_proc_service.h: Rename include guard.
5336 * event-loop.h: Rename include guard.
5337 * dll.h: Rename include guard.
5338 * debug.h: Rename include guard.
5339 * ax.h: Rename include guard.
5340
956cc47c
SN
53412018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5342
5343 PR gdb/23985
5344 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5345 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5346
a0707f3c
TT
53472019-01-25 Tom Tromey <tom@tromey.com>
5348
5349 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5350
0747795c
TT
53512019-01-25 Tom Tromey <tom@tromey.com>
5352
5353 * win32-low.c: Fix common/ includes.
5354 * win32-i386-low.c: Fix common/ includes.
5355 * tracepoint.c: Fix common/ includes.
5356 * thread-db.c: Fix common/ includes.
5357 * target.h: Fix common/ includes.
5358 * symbol.c: Fix common/ includes.
5359 * spu-low.c: Fix common/ includes.
5360 * server.h: Fix common/ includes.
5361 * server.c: Fix common/ includes.
5362 * remote-utils.c: Fix common/ includes.
5363 * regcache.h: Fix common/ includes.
5364 * regcache.c: Fix common/ includes.
5365 * nto-x86-low.c: Fix common/ includes.
5366 * notif.h: Fix common/ includes.
5367 * mem-break.h: Fix common/ includes.
5368 * lynx-low.c: Fix common/ includes.
5369 * lynx-i386-low.c: Fix common/ includes.
5370 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5371 * linux-x86-low.c: Fix common/ includes.
5372 * linux-low.c: Fix common/ includes.
5373 * inferiors.h: Fix common/ includes.
5374 * i387-fp.c: Fix common/ includes.
5375 * hostio.c: Fix common/ includes.
5376 * hostio-errno.c: Fix common/ includes.
5377 * gdbthread.h: Fix common/ includes.
5378 * gdbreplay.c: Fix common/ includes.
5379 * fork-child.c: Fix common/ includes.
5380 * event-loop.c: Fix common/ includes.
5381 * ax.c:
5382 (enum gdb_agent_op): Fix common/ includes.
5383
be6d4f74
TT
53842019-01-21 Tom Tromey <tom@tromey.com>
5385
5386 * tracepoint.c: Fix includes.
5387 * remote-utils.c: Fix includes.
5388 * linux-x86-low.c: Fix includes.
5389
66d91b39
JB
53902019-01-01 Joel Brobecker <brobecker@adacore.com>
5391
5392 * gdbreplay.c (gdbreplay_version): Update copyright year in
5393 version message.
5394 * server.c (gdbserver_version): Likewise.
5395
754e3168
AH
53962018-12-05 Alan Hayward <alan.hayward@arm.com>
5397
5398 * linux-low.c (add_lwp): Switch ordering.
5399
d105de22
TT
54002018-11-29 Tom Tromey <tom@tromey.com>
5401
5402 * win32-low.c (win32_join): Take pid, not process.
5403 * target.h (struct target_ops) <join>: Change argument type.
5404 (join_inferior): Change argument name.
5405 * spu-low.c (spu_join): Take pid, not process.
5406 * server.c (handle_detach): Preserve pid before destroying
5407 process.
5408 * lynx-low.c (lynx_join): Take pid, not process.
5409 * linux-low.c (linux_join): Take pid, not process.
5410
50138245
AH
54112018-11-23 Alan Hayward <alan.hayward@arm.com>
5412
5413 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5414 (aarch64_cannot_fetch_register): Likewise.
5415 (struct linux_target_ops): Update references.
5416
64f57f3d
PFC
54172018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5418
5419 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5420
8d619c01
EBM
54212018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5422
5423 * configure.srv (ipa_ppc_linux_regobj): Add
5424 powerpc-isa207-htm-vsx32l-ipa.o and
5425 powerpc-isa207-htm-vsx64l-ipa.o.
5426 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5427 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5428 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5429 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5430 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5431 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5432 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5433 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5434 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5435 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5436 (init_registers_powerpc_isa207_htm_vsx32l)
5437 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5438 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5439 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5440 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5441 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5442 (ppc_store_tm_ctarregset): New functions.
5443 (ppc_regsets): Add entries for HTM regsets.
5444 (ppc_arch_setup): Set htm in features struct when needed. Set
5445 sizes for the HTM regsets.
5446 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5447 (initialize_low_arch): Call
5448 init_registers_powerpc_isa207_htm_vsx32l and
5449 init_registers_powerpc_isa207_htm_vsx64l.
5450 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5451 PPC_TDESC_ISA207_HTM_VSX.
5452 (initialize_low_tracepoint): Call
5453 init_registers_powerpc_isa207_htm_vsx32l and
5454 init_registers_powerpc_isa207_htm_vsx64l.
5455
232bfb86
EBM
54562018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5457
5458 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5459 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5460 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5461 (ppc_store_pmuregset): New functions.
5462 (ppc_regsets): Add entries for ebb and pmu regsets.
5463 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5464 pmu regsets are available. Set sizes for these regsets.
5465
f2cf6173
EBM
54662018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5467
5468 * configure.srv (ipa_ppc_linux_regobj): Add
5469 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5470 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5471 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5472 rs6000/powerpc-isa207-vsx32l.xml, and
5473 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5474 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5475 <PPC_TDESC_ISA207_VSX>: New enum value.
5476 (init_registers_powerpc_isa207_vsx32l): Declare.
5477 (init_registers_powerpc_isa207_vsx64l): Declare.
5478 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5479 (ppc_store_tarregset): New function.
5480 (ppc_regsets): Add entry for the TAR regset.
5481 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5482 size for the TAR regsets.
5483 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5484 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5485 and init_registers_powerpc_isa207_vsx64l.
5486 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5487 (initialize_low_tracepoint): Call
5488 init_registers_powerpc_isa207_vsx32l and
5489 init_registers_powerpc_isa207_vsx64l.
5490
7ca18ed6
EBM
54912018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5492 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5493
5494 * configure.srv (ipa_ppc_linux_regobj): Add
5495 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5496 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5497 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5498 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5499 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5500 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5501 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5502 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5503 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5504 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5505 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5506 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5507 (ppc_hwcap): Add comment.
5508 (ppc_hwcap2): New global.
5509 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5510 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5511 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5512 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5513 when needed. Set sizes for the the DSCR and PPR regsets.
5514 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5515 (initialize_low_arch): Call
5516 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5517 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5518 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5519 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5520 (initialize_low_tracepoint): Call
5521 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5522 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5523
5c849b22
PFC
55242018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5525
5526 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5527
8ecfd7bd
SDJ
55282018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5529 Simon Marchi <simark@simark.ca>
5530
5531 * acinclude.m4: Include "../selftest.m4".
5532 * configure: Regenerate.
5533 * configure.ac: Use "GDB_AC_SELFTEST".
5534 * configure.srv: Use "$enable_unittests" instead of
5535 "$development" when checking whether unit tests have been
5536 enabled.
5537 * server.c (captured_main): Update message informing that
5538 selftests have been disabled.
5539
96643e35
TT
55402018-10-04 Tom Tromey <tom@tromey.com>
5541
5542 * configure: Rebuild.
5543
da4ae14a
TT
55442018-10-04 Tom Tromey <tom@tromey.com>
5545
5546 * server.c (handle_status): Rename inner "thread".
5547 (process_serial_event): Declare "res" in 'm' case.
5548 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5549 (iterate_over_lwps): Rename inner "thread".
5550 (linux_qxfer_libraries_svr4): Rename inner "len".
5551 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5552
7c619dbd
GB
55532018-10-01 Gary Benson <gbenson@redhat.com>
5554
5555 * gdb_proc_service.h: Moved common code to
5556 common/gdb_proc_service.h.
5557
3795e814
GB
55582018-10-01 Gary Benson <gbenson@redhat.com>
5559
5560 * gdb_proc_service.h: Synchronize comments and whitespace with
5561 GDB's version of this file.
5562
49b036f1
TT
55632018-09-25 Tom Tromey <tom@tromey.com>
5564
5565 * configure: Rebuild.
5566 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5567
8ff03f0b
SM
55682018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5569
5570 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5571 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5572 ($(IPA_LIB)): Sort IPA_OBJS.
5573
a1cd91dc
SM
55742018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5575
5576 * Makefile.in: Remove references to $(ADD_DEPS).
5577
752312ba
TT
55782018-09-16 Tom Tromey <tom@tromey.com>
5579
5580 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5581 variables.
5582 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5583 variables.
5584
f1628857
TT
55852018-09-05 Tom Tromey <tom@tromey.com>
5586
5587 * configure: Rebuild.
5588
ad202fcc
SM
55892018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5590
5591 PR build/23399
5592 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5593
d3d8724a
TT
55942018-08-27 Tom Tromey <tom@tromey.com>
5595
5596 PR build/23087:
5597 * configure: Rebuild.
5598
b4f183d2
TT
55992018-08-27 Tom Tromey <tom@tromey.com>
5600
5601 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5602 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5603 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5604 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5605 (s390x_emit_stack_adjust): Add casts to unsigned char.
5606
4e2aa472
SM
56072018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5608
5609 PR gdb/23374
5610 PR gdb/23375
5611 * server.h (struct client_state) <disable_randomization>:
5612 Initialize to 1.
5613
cf4088a9
SM
56142018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5615
5616 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5617 variable.
5618 (mips_supply_ptrace_register): Likewise.
5619
a0de763e
TT
56202018-07-22 Tom Tromey <tom@tromey.com>
5621
5622 * configure: Rebuild.
5623
b0a7723d
TT
56242018-07-22 Tom Tromey <tom@tromey.com>
5625
5626 * win32-low.c (win32_create_inferior): Remove unused variables.
5627 * gdbreplay.c (remote_open): Remove unused variable.
5628 * remote-utils.c (remote_prepare): Remove unused variable.
5629 * x86-tdesc.h (X86_TDESC_H): Define.
5630 (amd64_expedite_regs): Define conditionally.
5631 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5632 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5633 * remote-utils.c (readchar): Remove unused variable.
5634
a780ef4f
PA
56352018-07-13 Pedro Alves <palves@redhat.com>
5636
5637 * linux-low.c (linux_kill): Change parameter to process_info
5638 pointer instead of pid. Adjust.
5639 * lynx-low.c (lynx_kill): Likewise.
5640 * nto-low.c (nto_kill): Likewise.
5641 * spu-low.c (spu_kill): Likewise.
5642 * win32-low.c (win32_kill): Likewise.
5643 * server.c (handle_v_kill, kill_inferior_callback)
5644 (detach_or_kill_for_exit): Adjust.
5645 * target.c (kill_inferior): Change parameter to process_info
5646 pointer instead of pid. Adjust.
5647 * target.h (struct target_ops) <kill>: Change parameter to
5648 process_info pointer instead of pid. Adjust all implementations
5649 and callers.
5650 (kill_inferior): Likewise.
5651
ef2ddb33
PA
56522018-07-13 Pedro Alves <palves@redhat.com>
5653
5654 * linux-low.c (linux_detach, linux_join): Change parameter to
5655 process_info pointer instead of pid. Adjust.
5656 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5657 * nto-low.c (nto_detach): Likewise.
5658 * spu-low.c (spu_detach, spu_join): Likewise.
5659 * win32-low.c (win32_detach, win32_join): Likewise.
5660 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5661 * target.h (struct target_ops) <detach, join>: Change parameter to
5662 process_info pointer instead of pid. Adjust all implementations
5663 and callers.
5664 (detach_inferior, join_inferior): Rename 'pid' parameter to
5665 'proc'.
5666
c7ab0aef
SDJ
56672018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5668 Jan Kratochvil <jan.kratochvil@redhat.com>
5669 Paul Fertser <fercerpav@gmail.com>
5670 Tsutomu Seki <sekiriki@gmail.com>
5671
5672 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5673 (OBS): Add 'common/netstuff.o'.
5674 (GDBREPLAY_OBS): Likewise.
5675 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5676 (remote_open): Implement support for IPv6
5677 connections.
5678 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5679 and 'wspiapi.h'.
5680 (handle_accept_event): Accept connections from IPv6 sources.
5681 (remote_prepare): Handle IPv6-style hostnames; implement
5682 support for IPv6 connections.
5683 (remote_open): Implement support for printing connections from
5684 IPv6 sources.
5685
31445d10
PA
56862018-07-11 Pedro Alves <palves@redhat.com>
5687
5688 PR gdb/23377
5689 * mem-break.c (any_persistent_commands): Add process_info
5690 parameter and use it instead of relying on the current process.
5691 Change return type to bool.
5692 * mem-break.h (any_persistent_commands): Add process_info
5693 parameter and change return type to bool.
5694 * server.c (handle_detach): Remove require_running_or_return call.
5695 Look up the process_info for the process we're about to detach.
5696 If not found, return back error to GDB. Adjust
5697 any_persistent_commands call to pass down a process pointer.
5698
cb197132
PA
56992018-07-11 Pedro Alves <palves@redhat.com>
5700
5701 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5702 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5703 instead of collect_register_by_name.
5704 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5705 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5706
1b919490
VB
57072018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5708 Pedro Alves <palves@redhat.com>
5709
5710 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5711
d7e15655
TT
57122018-07-03 Tom Tromey <tom@tromey.com>
5713
5714 * linux-low.c: Update.
5715 * lynx-low.c: Update.
5716 * mem-break.c: Update.
5717 * nto-low.c: Update.
5718 * remote-utils.c: Update.
5719 * server.c: Update.
5720 * spu-low.c: Update.
5721 * target.c: Update.
5722 * win32-low.c: Update.
5723
26a57c92
TT
57242018-07-03 Tom Tromey <tom@tromey.com>
5725
5726 * server.c: Update.
5727
0e998d96
TT
57282018-07-03 Tom Tromey <tom@tromey.com>
5729
5730 * linux-low.c: Update.
5731
cc6bcb54
TT
57322018-07-03 Tom Tromey <tom@tromey.com>
5733
5734 * target.c: Update.
5735
e38504b3
TT
57362018-07-03 Tom Tromey <tom@tromey.com>
5737
5738 * linux-low.c: Update.
5739 * linux-mips-low.c: Update.
5740 * lynx-low.c: Update.
5741 * nto-low.c: Update.
5742 * remote-utils.c: Update.
5743 * server.c: Update.
5744 * spu-low.c: Update.
5745 * target.c: Update.
5746 * thread-db.c: Update.
5747
e99b03dc
TT
57482018-07-03 Tom Tromey <tom@tromey.com>
5749
5750 * linux-low.c: Update.
5751 * linux-mips-low.c: Update.
5752 * lynx-low.c: Update.
5753 * mem-break.c: Update.
5754 * nto-low.c: Update.
5755 * remote-utils.c: Update.
5756 * server.c: Update.
5757 * spu-low.c: Update.
5758 * target.c: Update.
5759 * tracepoint.c: Update.
5760
f2907e49
TT
57612018-07-03 Tom Tromey <tom@tromey.com>
5762
5763 * linux-low.c: Update.
5764 * linux-ppc-low.c: Update.
5765 * linux-x86-low.c: Update.
5766 * proc-service.c: Update.
5767 * server.c: Update.
5768 * spu-low.c: Update.
5769 * thread-db.c: Update.
5770 * win32-low.c: Update.
5771
fd79271b
TT
57722018-07-03 Tom Tromey <tom@tromey.com>
5773
5774 * linux-low.c: Update.
5775 * lynx-low.c: Update.
5776 * nto-low.c: Update.
5777 * remote-utils.c: Update.
5778 * spu-low.c: Update.
5779 * thread-db.c: Update.
5780 * win32-low.c: Update.
5781
c0867626
SDJ
57822018-06-29 Joel Brobecker <brobecker@adacore.com>
5783
5784 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5785 parameter in call to 'amd64_create_target_description'.
5786
2512d7ef
JK
57872018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5788
5789 * x86-tdesc.h: Remove executable permission flag.
5790
d0ac1c44
SM
57912018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5792
5793 * configure.ac: Remove AC_PREREQ, add missing quoting.
5794 * configure: Re-generate.
5795 * config.in: Re-generate.
5796 * aclocal.m4: Re-generate.
5797
c4eb05ff
SM
57982018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5799
5800 * tracepoint.h (current_traceframe): Remove declaration.
5801
02895270
AH
58022018-06-18 Alan Hayward <alan.hayward@arm.com>
5803
5804 * linux-aarch64-low.c (is_sve_tdesc): New function.
5805 (aarch64_sve_regs_copy_to_regcache): Likewise.
5806 (aarch64_sve_regs_copy_from_regcache): Likewise.
5807 (aarch64_regs_info): Add SVE checks.
5808 (initialize_low_arch): Initialize SVE.
5809
e9902bfc
AH
58102018-06-18 Alan Hayward <alan.hayward@arm.com>
5811
5812 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5813
fefa175e
AH
58142018-06-11 Alan Hayward <alan.hayward@arm.com>
5815
5816 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5817 (initialize_low_tracepoint): Likewise
5818 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5819 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5820 param.
5821 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5822 checks.
5823 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5824
b91ad3ff
AH
58252018-06-11 Alan Hayward <alan.hayward@arm.com>
5826
5827 * server.h (PBUFSIZ): Increase size
5828
f868386e
AH
58292018-06-11 Alan Hayward <alan.hayward@arm.com>
5830
5831 * regcache.c (regcache::raw_compare): New function.
5832 * regcache.h (regcache::raw_compare): New declaration.
5833
9c861883
AH
58342018-06-11 Alan Hayward <alan.hayward@arm.com>
5835
5836 * regcache.c (new_register_cache): Use new.
5837 (free_register_cache): Use delete.
5838 (register_data): Use const.
5839 (supply_register): Move body inside regcache.
5840 (regcache::raw_supply): New override function.
5841 (collect_register): Move body inside regcache.
5842 (regcache::raw_collect): New override function.
5843 (regcache::get_register_status): New override function.
5844 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5845
40591844
TT
58462018-06-09 Tom Tromey <tom@tromey.com>
5847
5848 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5849 declare queue.
5850 (event_queue): Use std::queue.
5851 (gdb_event_xfree): Remove.
5852 (initialize_event_loop, process_event, wait_for_event): Update.
5853
6341380d
SC
58542018-06-08 Stan Cox <scox@redhat.com>
5855
5856 * win32-low.c (win32_create_inferior): last_ptid and last_status
5857 moved to client_state.
5858
03349c93
PA
58592018-06-08 Pedro Alves <palves@redhat.com>
5860
5861 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5862 common/common-exceptions.o, common/common-utils.o,
5863 common/errors.o, common/print-utils.o and utils.o.
5864 * gdbreplay.c: Include "common-defs.h" instead of the two
5865 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5866 string.h or alloca.h.
5867 (perror_with_name): Delete.
5868 (remote_open): Use xstrdup instead of strdup.
5869 (main): Rename to ...
5870 (captured_main): ... this.
5871 (main): New.
5872
8dcc53b3
TT
58732018-06-08 Tom Tromey <tom@tromey.com>
5874
5875 * linux-low.c (linux_low_read_btrace): Update.
5876
c12a5089
SC
58772018-06-04 Stan Cox <scox@redhat.com>
5878
5879 * server.h (struct client_state): New.
5880 * server.c (cont_thread, general_thread, multi_process)
5881 (report_fork_events, report_vfork_events, report_exec_events)
5882 (report_thread_events, swbreak_feature, hwbreak_feature)
5883 (vCont_supported, disable_randomization, pass_signals)
5884 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5885 Moved to client_state.
5886 * remote-utils.c (remote_debug, noack_mode)
5887 (transport_is_reliable): Moved to client_state.
5888 * tracepoint.c (current_traceframe): Moved to client_state.
5889
5890 Update all callers.
5891 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5892 linux-low.c, remote-utils.h, target.c: Use client_state.
5893
122394f1
AH
58942018-05-31 Alan Hayward <alan.hayward@arm.com>
5895
5896 * configure.srv: Add new c/h file.
5897
95228a0d
AH
58982018-05-31 Alan Hayward <alan.hayward@arm.com>
5899
5900 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5901 null VQ.
5902
d8dab6c3
MR
59032018-05-25 Maciej W. Rozycki <macro@mips.com>
5904
5905 * gdb.arch/mips-fpregset-core.exp: New test.
5906 * gdb.arch/mips-fpregset-core.c: New test source.
5907
81e25b7c
EK
59082018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5909
5910 PR server/23198
5911 * hostio.c (require_int): Do not report overflow for integers
5912 between 0xfffffff and 0x7fffffff.
5913
7e947ad3
MR
59142018-05-22 Maciej W. Rozycki <macro@mips.com>
5915
5916 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5917 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5918 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5919 functions.
5920 (the_low_target): Wire them.
5921
1d75a658
PFC
59222018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5923
5924 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5925 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5926 mode. Call collect_register_by_name with vscr using
5927 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5928 (ppc_store_vrregset): Add and set vscr_offset variable as in
5929 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5930 vscr_offset.
5931
d078308a
PFC
59322018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5933
5934 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5935 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5936 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5937
7273b5fc
PFC
59382018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5939
5940 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5941 (ppc_store_vsxregset): Likewise.
5942 (ppc_fill_vrregset): Likewise.
5943 (ppc_store_vrregset): Likewise.
5944 (ppc_fill_evrregset): Likewise.
5945 (ppc_store_evrregset): Likewise.
5946 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5947 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5948 needed.
5949
2e077f5e
PFC
59502018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5951
5952 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5953 wordsize of the inferior. Call ppc_linux_target_wordsize.
5954
bd64614e
PFC
59552018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5956
5957 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5958 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5959 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5960 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5961 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5962 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5963 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5964 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5965 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5966 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5967 (tdesc_powerpc_e500l): Remove.
5968 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5969 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5970 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5971 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5972 linux-ppc-tdesc.h.
5973 (ppc_arch_setup): Remove target description matching code. Fill a
5974 ppc_linux_features struct and call ppc_linux_match_description
5975 with it.
5976
75d74cca
MR
59772018-05-22 Maciej W. Rozycki <macro@mips.com>
5978
5979 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5980 width of the requested register exceeds the width of the
5981 `ptrace' data type.
5982 (mips_cannot_store_register): Likewise.
5983
e4439e43
MR
59842018-05-21 Maciej W. Rozycki <macro@mips.com>
5985
5986 * linux-mips-low.c (mips_fetch_register): New function. Update
5987 preceding comment.
5988 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5989 (the_low_target): Wire `mips_fetch_register'.
5990
55271bf9
JB
59912018-05-10 Joel Brobecker <brobecker@adacore.com>
5992
5993 * lynx-i386-low.c (LYNXOS_178): New macro.
5994 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5995 the layout on LynxOS-178.
5996 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5997 handle floating point registers that are not supported by
5998 LynxOS-178.
5999
1a34f210
TT
60002018-05-10 Tom Tromey <tom@tromey.com>
6001
6002 * configure: Rebuild.
6003
190852c8
JB
60042018-05-10 Joel Brobecker <brobecker@adacore.com>
6005
6006 PR server/23158:
6007 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6008 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6009 Use it to set the expedite_regs field in the given tdesc.
6010 * x86-tdesc.h: New file.
6011 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6012 Adjust following the addition of the new expedite_regs parameter
6013 to init_target_desc.
6014 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6015 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6016 (i386_linux_read_description, amd64_linux_read_description):
6017 Adjust following the addition of the new expedite_regs parameter
6018 to init_target_desc.
6019 * lynx-i386-low.c: #include "x86-tdesc.h".
6020 (lynx_i386_arch_setup): Adjust following the addition of the new
6021 expedite_regs parameter to init_target_desc.
6022 * nto-x86-low.c: #include "x86-tdesc.h".
6023 (nto_x86_arch_setup): Adjust following the addition of the new
6024 expedite_regs parameter to init_target_desc.
6025 * win32-i386-low.c: #include "x86-tdesc.h".
6026 (i386_arch_setup): Adjust following the addition of the new
6027 expedite_regs parameter to init_target_desc.
6028
7dbac825
JB
60292018-05-10 Joel Brobecker <brobecker@adacore.com>
6030
6031 PR server/23158:
6032 * win32-low.c (win32_create_inferior): Add call to my_wait
6033 setting last_status global.
6034
906994d9
JB
60352018-05-10 Joel Brobecker <brobecker@adacore.com>
6036
6037 PR server/23158:
6038 * win32-low.c (create_process): Only call gdb_tilde_expand if
6039 inferior_cwd is not NULL.
6040
8ee22052
AB
60412018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6042
6043 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6044 registers to the cache if their values have changed.
6045 (i387_xsave_to_cache): Provide default values for x87 control
6046 registers when these features are available, but disabled.
6047 * regcache.c (supply_register_by_name_zeroed): New function.
6048 * regcache.h (supply_register_by_name_zeroed): Declare new
6049 function.
6050
aff689d3
TT
60512018-05-07 Tom Tromey <tom@tromey.com>
6052
6053 * configure: Rebuild.
6054
85e26832
TT
60552018-05-04 Tom Tromey <tom@tromey.com>
6056
6057 * configure: Rebuild.
6058
a3b60e45
JK
60592018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6060 Pedro Alves <palves@redhat.com>
6061
6062 * linux-aarch64-low.c (aarch64_stopped_data_address):
6063 Likewise.
6064
632e107b
TT
60652018-04-27 Tom Tromey <tom@tromey.com>
6066
6067 * configure: Rebuild.
6068
458412c3
TT
60692018-04-23 Tom Tromey <tom@tromey.com>
6070
6071 * configure: Rebuild.
6072
f31c089e
SM
60732018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6074
6075 * Makefile.in (depcomp): Add "..".
6076 (all_deps_files): New and use it.
6077
b319b098
AH
60782018-04-18 Alan Hayward <alan.hayward@arm.com>
6079
6080 * configure.srv (aarch64*-*-linux*): Don't include xml.
6081 (i[34567]86-*-cygwin*): Likewise.
6082 (i[34567]86-*-linux*): Likewise.
6083 (i[34567]86-*-lynxos*): Likewise.
6084 (i[34567]86-*-mingw32ce*): Likewise.
6085 (i[34567]86-*-mingw*): Likewise.
6086 (i[34567]86-*-nto*): Likewise.
6087 (tic6x-*-uclinux): Likewise.
6088 (x86_64-*-linux*): Likewise.
6089 (x86_64-*-mingw*): Likewise.
6090 (x86_64-*-cygwin*): Likewise.
6091
3b74854b
AH
60922018-04-18 Alan Hayward <alan.hayward@arm.com>
6093
6094 * tdesc.c: Remove xml parameter.
6095
e98577a9
AH
60962018-04-18 Alan Hayward <alan.hayward@arm.com>
6097
6098 * server.c (get_features_xml): Remove cast.
6099 * tdesc.c (void target_desc::accept): Fill in function.
6100 (tdesc_get_features_xml): Remove old xml creation.
6101 (print_xml_feature::visit_pre): Add xml vistor.
6102 * tdesc.h (struct target_desc): Make xmltarget mutable.
6103 (tdesc_get_features_xml): Remove declaration.
6104
d278f585
AH
61052018-04-18 Alan Hayward <alan.hayward@arm.com>
6106
6107 * tdesc.c (tdesc_architecture_name): Add new function.
6108 (tdesc_osabi_name): Likewise.
6109 (tdesc_get_features_xml): Use new functions.
6110
eee8a18d
AH
61112018-04-18 Alan Hayward <alan.hayward@arm.com>
6112
6113 * tdesc.c (tdesc_create_flags): Remove.
6114 (tdesc_add_flag): Likewise.
6115 (tdesc_named_type): Likewise.
6116 (tdesc_create_union): Likewise.
6117 (tdesc_create_struct): Likewise.
6118 (tdesc_create_vector): Likewise.
6119 (tdesc_add_bitfield): Likewise.
6120 (tdesc_add_field): Likewise.
6121 (tdesc_set_struct_size): Likewise.
6122
82ec9bc7
AH
61232018-04-18 Alan Hayward <alan.hayward@arm.com>
6124
6125 * tdesc.c (~target_desc): Remove implictly deleted items.
6126 (init_target_desc): Iterate all features.
6127 (tdesc_get_features_xml): Use vector.
6128 (tdesc_create_feature): Create feature.
6129 * tdesc.h (tdesc_feature) Remove
6130 (target_desc): Add features.
6131
ea3e7d71
AH
61322018-04-18 Alan Hayward <alan.hayward@arm.com>
6133
6134 * Makefile.in: Add common/tdesc.c
6135 * tdesc.c (init_target_desc): init all reg_defs from register
6136 vector.
6137 (tdesc_create_reg): Create tdesc_reg.
6138 * tdesc.h (tdesc_feature): Add register vector.
6139
17d08cd4
SM
61402018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6141
6142 * tdesc.h (struct target_desc) <features>: Change type to
6143 std::vector<std::string>.
6144 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6145 changes.
6146 (tdesc_get_features_xml): Likewise.
6147 (tdesc_create_feature): Likewise.
6148
5cd3e386
AH
61492018-03-26 Alan Hayward <alan.hayward@arm.com>
6150
6151 * regcache.c (find_register_by_number): Return a ref.
6152 (find_regno): Use references.
6153 (register_size): Likewise.
6154 (register_data): Likewise.
6155 * tdesc.c (target_desc::~target_desc): Remove free calls.
6156 (target_desc::operator==): Use std::vector compare.
6157 (init_target_desc): Use reference.
6158 (tdesc_create_reg): Use reg constructors.
6159 * tdesc.h (struct target_desc): Replace pointer with object.
6160
dff7492c
AH
61612018-03-23 Alan Hayward <alan.hayward@arm.com>
6162
6163 * regcache.c (find_register_by_number): Make static.
6164 (find_regno): Use find_register_by_number
6165 * regcache.h (struct reg): Remove declaration.
6166
d80e5242
AH
61672018-03-23 Alan Hayward <alan.hayward@arm.com>
6168
6169 * tdesc.c (target_desc::~target_desc): Move to here.
6170 (target_desc::operator==): Likewise.
6171 * tdesc.h (target_desc::~target_desc): Move from here.
6172 (target_desc::operator==): Likewise.
6173
f69c5afb
AA
61742018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6175
6176 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6177
ce29f843
AA
61782018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6179
6180 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6181 S390_TDESC_GS.
6182 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6183 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6184 and init_registers_s390_gs_linux64.
6185
c49bd90b
AA
61862018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6187
6188 * linux-s390-low.c (s390_fill_gs): Remove function.
6189 (s390_fill_gsbc): Remove function.
6190 (s390_regsets): Set fill functions for the guarded storage regsets
6191 to NULL.
6192
7edb9bd3
AA
61932018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6194
6195 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6196 the word size. Add comment.
6197 (s390_get_wordsize): New function.
6198 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6199 pswm with it. Instead, use s390_get_wordsize to determine the
6200 word size first and derive the correct tdesc from that directly.
6201
39be3c7e
SM
62022018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6203
6204 * Makefile.in: Include silent-rules.mk.
6205 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6206 (COMPILE): Add ECHO_CXX.
6207 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6208 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6209 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6210 (version-generated.c): Add ECHO_GEN.
6211 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6212 (IPAGENT_COMPILE): Add ECHO_CXX.
6213 (%-generated.c): Add ECHO_REGDAT.
6214
3ae9ce5d
TT
62152018-03-14 Tom Tromey <tom@tromey.com>
6216
6217 PR cli/14977:
6218 * ax.c (ax_printf): Special case for NULL.
6219
e6a58aa8
SM
62202018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6221
6222 * linux-low.c (linux_qxfer_libraries_svr4): Use
6223 xml_escape_text_append.
6224
f6e8a41e
SM
62252018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6226
6227 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6228
b9671caf
SM
62292018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6230
6231 * server.c (handle_general_set): Remove unnecessary xstrdup.
6232
e80aaf61
SM
62332018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6234
6235 * server.c (parse_debug_format_options): Adjust to
6236 delim_string_to_char_ptr_vec changes.
6237 * thread-db.c (thread_db_load_search): Adjust to
6238 dirnames_to_char_ptr_vec changes.
6239
b1223e78
MM
62402018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6241
6242 * target.h (target_enable_btrace, target_disable_btrace)
6243 (target_read_btrace, target_read_btrace_conf): Turn macro into
6244 inline function. Throw error if target method is not defined.
6245 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6246 check for btrace target method. Be prepared to handle exceptions
6247 from btrace target methods.
6248
81561546
SDJ
62492018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6250
6251 * server.c (captured_main): Change order of error message printed
6252 when the current working directory cannot be found.
6253
25e3c82c
SDJ
62542018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6255
6256 * server.c: Include "filenames.h" and "pathstuff.h".
6257 (program_name): Delete variable.
6258 (program_path): New anonymous class.
6259 (get_exec_wrapper): Use "program_path" instead of
6260 "program_name".
6261 (handle_v_run): Likewise.
6262 (captured_main): Likewise.
6263 (process_serial_event): Likewise.
6264
b4987c95
SDJ
62652018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6266
6267 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6268 (OBJS): Add "pathstuff.o".
6269 * server.c (current_directory): New global variable.
6270 (captured_main): Initialize "current_directory".
6271
f46cd62a
AH
62722018-02-26 Alan Hayward <alan.hayward@arm.com>
6273
6274 * tdesc.c: Use common/tdesc.h.
6275 * tdesc.h: Likewise.
6276
a543c5ca
AH
62772018-02-20 Alan Hayward <alan.hayward@arm.com>
6278 Simon Marchi <simon.marchi@ericsson.com>
6279
6280 * Makefile.in: Switch order of make rules.
6281
b5884fa7
AH
62822018-02-19 Alan Hayward <alan.hayward@arm.com>
6283
6284 * Makefile.in: Add common directory in build.
6285 * configure.ac: Add common reference.
6286 * configure: Regenerate.
6287
de6242d3
MM
62882018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6289
6290 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6291 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6292 * spu-low.c (spu_target_ops): Likewise.
6293 * win32-low.c (win32_target_ops): Likewise.
6294 * server.c (supported_btrace_packets): Report packets unconditionally.
6295 * target.h (target_ops) <supports_btrace>: Remove.
6296 (target_supports_btrace): Remove.
6297
9ee23a85
MM
62982018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6299
6300 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6301 (handle_btrace_disable): Change return type to void. Use exceptions
6302 to report errors.
6303 (handle_btrace_general_set): Catch exception and copy message to
6304 return message.
6305
8ce47547
TT
63062018-02-08 Tom Tromey <tom@tromey.com>
6307
6308 * linux-low.c (install_software_single_step_breakpoints): Use
6309 make_scoped_restore.
6310 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6311 (do_restore_current_thread_cleanup): Remove.
6312 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6313 declare.
6314
45dd3607
TT
63152018-02-08 Tom Tromey <tom@tromey.com>
6316
6317 * mem-break.c (set_raw_breakpoint_at): Use
6318 gdb::unique_xmalloc_ptr.
6319
e671cd59
PA
63202018-01-30 Pedro Alves <palves@redhat.com>
6321
6322 PR gdb/13211
6323 * target.c (target_terminal::terminal_state): Rename to ...
6324 (target_terminal::m_terminal_state): ... this.
6325
a0aad537
JC
63262018-01-19 James Clarke <jrtc27@jrtc27.com>
6327
6328 * linux-low.c (handle_extended_wait): Surround call to
6329 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6330
4d9b86e1
SM
63312018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6332
6333 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6334 linux_ptrace_attach_fail_reason_string now returning an
6335 std::string.
6336 (linux_attach): Likewise.
6337 * thread-db.c (attach_thread): Likewise.
6338
f517c180
EA
63392018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6340
6341 PR gdb/21559
6342 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6343 checking for fs_base/gs_base fields in struct user_regs_struct.
6344 * configure: Regenerate.
6345
9a70f35c
YQ
63462018-01-16 Yao Qi <yao.qi@linaro.org>
6347
6348 PR gdb/18749
6349 * linux-low.c (fetch_register): Call supply_register instead of
6350 error.
6351
605fd3c6
YQ
63522018-01-08 Yao Qi <yao.qi@linaro.org>
6353 Simon Marchi <simon.marchi@ericsson.com>
6354
6355 * Makefile.in (OBS): Remove selftest.o.
6356 * configure.ac: Set srv_selftest_objs if $development is true.
6357 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6358 * configure: Re-generated.
6359 * server.c (captured_main): Wrap variable selftest_filter with
6360 GDB_SELF_TEST.
6361
2cc05030
SM
63622018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6363
6364 * server.c (parse_debug_format_options): Return std::string.
6365 (handle_monitor_command, captured_main): Adjust.
6366
e379cee6
PA
63672018-01-05 Pedro Alves <palves@redhat.com>
6368
6369 PR gdb/18653
6370 * server.c (captured_main): Pass quiet=false to
6371 save_original_signals_state.
6372
82e1e79a
JB
63732018-01-01 Joel Brobecker <brobecker@adacore.com>
6374
6375 * gdbreplay.c (gdbreplay_version): Update copyright year in
6376 version message.
6377 * server.c (gdbserver_version): Likewise.
6378
8e481c3b
TT
63792017-12-08 Tom Tromey <tom@tromey.com>
6380
6381 * ax.c (ax_printf): Update.
6382
a8806230
YQ
63832017-12-07 Yao Qi <yao.qi@linaro.org>
6384
6385 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6386 aarch64_linux_read_description.
6387 * linux-amd64-ipa.c (idx2mask): New array.
6388 (get_ipa_tdesc): Move idx2mask out.
6389 (initialize_low_tracepoint): Initialize target descriptions.
6390 * linux-i386-ipa.c (idx2mask): New array.
6391 (get_ipa_tdesc): Move idx2mask out.
6392 (initialize_low_tracepoint): Initialize target descriptions.
6393
d4a0e8b5
SM
63942017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6395
6396 * tdesc.c (struct tdesc_type): Change return type.
6397 (tdesc_add_flag): Change parameter type.
6398 (tdesc_add_bitfield): Likewise.
6399 (tdesc_add_field): Likewise.
6400 (tdesc_set_struct_size): Likewise.
6401
798a7429
SM
64022017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6403
6404 * regcache.c (registers_to_string): Remove unused variable.
6405
c0e15c9b
SM
64062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6407
6408 * inferiors.c (for_each_inferior_with_data): Remove.
6409 * inferiors.h (for_each_inferior_with_data): Remove.
6410 * server.c (handle_qxfer_threads_worker): Change parameter type.
6411 (handle_qxfer_threads_proper): Use for_each_thread.
6412
f0045347
SM
64132017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6414
6415 * inferiors.c (for_each_inferior): Remove.
6416 (clear_inferiors): Use for_each_thread.
6417 * inferiors.h (for_each_inferior): Remove.
6418 * linux-low.c (linux_wait_for_event_filtered): Use
6419 for_each_thread.
6420 (linux_stabilize_threads): Likewise.
6421 * regcache.c (regcache_release): Likewise.
6422 * server.c (gdb_wants_all_threads_stopped): Likewise.
6423 (clear_pending_status_callback): Remove.
6424 (handle_status): Use for_each_thread.
6425 (captured_main): Likewise.
6426 * win32-low.c (child_init_thread_list): Likewise.
6427 (win32_clear_inferiors): Likewise.
6428 (fake_breakpoint_event): Likewise.
6429
9521758b
SM
64302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6431
6432 * inferiors.h (find_inferior): Remove.
6433 * inferiors.c (find_inferior): Remove.
6434
8f86d7aa
SM
64352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6436
6437 * linux-low.c (resume_status_pending_p): Update comment.
6438 (need_step_over_p): Update comment.
6439
e2b44075
SM
64402017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6441
6442 * linux-low.c (proceed_one_lwp): Return void, change parameter
6443 type.
6444 (unsuspend_and_proceed_one_lwp): Likewise.
6445 (proceed_all_lwps): Use for_each_thread.
6446 (unstop_all_lwps): Likewise.
6447
c80825ff
SM
64482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6449
6450 * linux-low.c (linux_resume_one_thread): Return void, take
6451 parameter directly.
6452 (linux_resume): Use for_each_thread.
6453
df3e4dbe
SM
64542017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6455
6456 * linux-low.c (send_sigstop_callback): Return void, change
6457 parameter type. Rename to...
6458 (send_sigstop): ... this.
6459 (suspend_and_send_sigstop_callback): Return void, change parameter
6460 type. Rename to...
6461 (suspend_and_send_sigstop): ... this.
6462 (stop_all_lwps): Use for_each_thread.
6463
5a6b0a41
SM
64642017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6465
6466 * linux-low.c (lwp_running): Return bool, remove unused
6467 argument.
6468 (linux_stabilize_threads): Use find_thread.
6469
39a64da5
SM
64702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6471
6472 * linux-low.c (select_singlestep_lwp_callback): Remove.
6473 (count_events_callback): Remove.
6474 (select_event_lwp_callback): Remove.
6475 (select_event_lwp): Use find_thread/for_each_thread.
6476
a1385b7b
SM
64772017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6478
6479 * linux-low.c (not_stopped_callback): Return bool, take filter
6480 argument directly.
6481 (linux_wait_for_event_filtered): Use find_thread.
6482 (linux_wait_1): Likewise.
6483
454296a2
SM
64842017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6485
6486 * linux-low.c (same_lwp): Remove.
6487 (find_lwp_pid): Use find_thread.
6488
6b2a85da
SM
64892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6490
6491 * linux-low.c (delete_lwp_callback): Remove.
6492 (linux_mourn): Use for_each_thread.
6493
798a38e8
SM
64942017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6495
6496 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6497 args parameter, don't check for pid.
6498 (linux_detach): Use for_each_thread.
6499
e4eb0dec
SM
65002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6501
6502 * linux-low.c (struct counter): Remove.
6503 (second_thread_of_pid_p): Remove.
6504 (last_thread_of_process_p): Use find_thread.
6505
83e1b6c1
SM
65062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6507
6508 * inferiors.c (find_inferior_in_random): Remove.
6509 * inferiors.h (find_inferior_in_random): Remove.
6510 * linux-low.c (status_pending_p_callback): Return bool, accept
6511 parameter ptid directly.
6512 (linux_wait_for_event_filtered): Use find_thread_in_random.
6513 (linux_wait_1): Likewise.
6514
8dc7b443
SM
65152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6516
6517 * inferiors.c (find_inferior_id): Remove.
6518 (find_thread_ptid): Move implemention from find_inferior_id to
6519 here.
6520 * inferiors.h (find_inferior_id): Remove.
6521 * server.c (handle_status): Use find_thread_ptid.
6522 (process_serial_event): Likewise.
6523 * thread-db.c (find_one_thread): Likewise.
6524 (thread_db_thread_handle): Likewise.
6525 * win32-low.c (thread_rec): Likewise.
6526 (child_delete_thread): Likewise.
6527 (win32_thread_alive): Likewise.
6528 (get_child_debug_event): Likewise.
6529
da25033c
SM
65302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6531
6532 * linux-mips-low.c (update_watch_registers_callback): Return
6533 void, remove pid_p parameter, don't check for pid.
6534 (mips_insert_point, mips_remove_point): Use for_each_thread.
6535
c91bb56b
SM
65362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6537
6538 * lynx.low (lynx_delete_thread_callback): Remove.
6539 (lynx_mourn): Use for_each_thread.
6540
634a3254
SM
65412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6542
6543 * regcache.c (regcache_invalidate_one): Remove.
6544 (regcache_invalidate_pid): use for_each_thread.
6545
41272101
TT
65462017-11-26 Tom Tromey <tom@tromey.com>
6547
6548 * linux-low.c (linux_create_inferior): Update.
6549
f5291a6f
UW
65502017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6551
6552 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6553
6654d750
AH
65542017-11-24 Alan Hayward <alan.hayward@arm.com>
6555
6556 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6557 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6558 * linux-aarch64-tdesc-selftest.c: New file.
6559 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6560
65612017-11-24 Alan Hayward <alan.hayward@arm.com>
6562
6563 * configure.srv: Add new file.
6564 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6565 * linux-aarch64-tdesc-selftest.c: New file.
6566 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6567
49bdb7ee
AH
65682017-11-24 Alan Hayward <alan.hayward@arm.com>
6569
6570 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6571 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6572 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6573
d6d7ce56
AH
65742017-11-24 Alan Hayward <alan.hayward@arm.com>
6575
6576 * configure.srv: Add new files.
6577 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6578 aarch64_linux_read_description.
6579 * linux-aarch64-low.c (aarch64_linux_read_description):
6580 Merge with aarch64_arch_setup.
6581 (aarch64_arch_setup): Call aarch64_linux_read_description.
6582 * linux-aarch64-tdesc.c: New file.
6583 * linux-aarch64-tdesc.h: New file.
6584
506fe5f4
YQ
65852017-11-24 Yao Qi <yao.qi@linaro.org>
6586
6587 * configure.srv: Set $srv_regobj for tic6x-linux.
6588 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6589 (tic6x_read_description): Move some code to tic6x_arch_setup.
6590 (tic6x_tdesc_test): New function.
6591 (initialize_low_arch): Call selftests::register_test.
6592
29f9a567
YQ
65932017-11-22 Yao Qi <yao.qi@linaro.org>
6594
6595 * remote-utils.c (prepare_resume_reply): Use memcpy.
6596
578290ec
SM
65972017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6598
6599 * linux-low.c (kill_one_lwp_callback): Return void, take
6600 argument directly, don't filter on pid.
6601 (linux_kill): Use for_each_thread.
6602
eca55aec
SM
66032017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6604
6605 * linux-low.c (need_step_over_p): Return bool, remove dummy
6606 argument.
6607 (linux_resume, proceed_all_lwps): Use find_thread.
6608
25c28b4d
SM
66092017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6610
6611 * linux-low.c (resume_status_pending_p): Return bool, remove
6612 flag_p argument.
6613 (linux_resume): Use find_thread.
6614
5fdda392
SM
66152017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6616
6617 * linux-low.c (struct thread_resume_array): Remove.
6618 (linux_set_resume_request): Return void, take arguments
6619 directly.
6620 (linux_resume): Use for_each_thread.
6621
fcb056a5
SM
66222017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6623
6624 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6625 return bool, remove data argument.
6626 (linux_stabilize_threads): Use find_thread.
6627
139720c5
SM
66282017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6629
6630 * linux-low.c (unsuspend_one_lwp): Remove.
6631 (unsuspend_all_lwps): Use for_each_thread, inline code from
6632 unsuspend_one_lwp.
6633
6d1e5673
SM
66342017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6635
6636 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6637 * linux-low.c (struct iterate_over_lwps_args): Remove.
6638 (iterate_over_lwps_filter): Remove.
6639 (iterate_over_lwps): Use find_thread.
6640
bbf550d5
SM
66412017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6642
6643 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6644 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6645 code from reset_lwp_ptrace_options_callback.
6646
00192f77
SM
66472017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6648
6649 * linux-arm-low.c (struct update_registers_data): Remove.
6650 (update_registers_callback): Return void, take arguments
6651 directly, don't check thread's pid.
6652 (arm_insert_point, arm_remove_point): Use for_each_thread.
6653
2bee2b6c
SM
66542017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6655
6656 * win32-low.c (continue_one_thread): Return void, take argument
6657 directly.
6658 (child_continue): Use for_each_thread.
6659
0b360f19
SM
66602017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6661
6662 * win32-i386-low.c (update_debug_registers_callback): Rename
6663 to ...
6664 (update_debug_registers): ... this, return void, remove pid_p arg.
6665 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6666
f27866ba
SM
66672017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6668
6669 * inferiors.h (struct process_info): Add constructor, initialize
6670 fields..
6671 <syscalls_to_catch>: Change type to std::vector<int>.
6672 * inferiors.c (add_process): Allocate process_info with new.
6673 (remove_process): Free process_info with delete.
6674 * linux-low.c (handle_extended_wait): Adjust.
6675 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6676 * server.c (handle_general_set): Adjust.
6677
e849ea89
PA
66782017-11-16 Pedro Alves <palves@redhat.com>
6679
6680 * remote-utils.c (remote_close): Block SIGIO signals instead of
6681 uninstalling the SIGIO handler.
6682
1d0aa65c
AH
66832017-11-16 Alan Hayward <alan.hayward@arm.com>
6684
6685 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6686
3491a34c
YQ
66872017-11-16 Yao Qi <yao.qi@linaro.org>
6688
6689 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6690 (tic6x_store_gregset): Likewise.
6691 (tic6x_usrregs_info): Move it up.
6692
a602f924
AH
66932017-11-15 Alan Hayward <alan.hayward@arm.com>
6694
6695 * Makefile.in: Update arch rules.
6696 * configure.srv: Explicitly mark arch/ files.
6697
5616b6c3
AS
66982017-11-13 Andreas Schwab <schwab@suse.de>
6699
6700 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6701 function.
6702 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6703
d1928160
PA
67042017-11-06 Pedro Alves <palves@redhat.com>
6705
6706 * config.in, configure: Regenerate.
6707
bac608e7
SM
67082017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6709
6710 * target.c (struct thread_search): Remove.
6711 (thread_search_callback): Remove.
6712 (prepare_to_access_memory): Use for_each_thread instead of
6713 find_inferior. Inline code from thread_search_callback.
6714
eaddb425
SM
67152017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6716
6717 * server.c (struct visit_actioned_threads_data): Remove.
6718 (visit_actioned_threads): Change prototype to take arguments
6719 directly.
6720 (resume): Use find_thread instead of find_inferior.
6721
99078d34
SM
67222017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6723
6724 * server.c (queue_stop_reply_callback): Change prototype, return
6725 void.
6726 (find_status_pending_thread_callback): Remove.
6727 (handle_status): Replace find_inferior with find_thread and
6728 for_each_thread.
6729
cc628f3d
AH
67302017-10-25 Alan Hayward <alan.hayward@arm.com>
6731
6732 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6733 with REGNO.
6734 (aarch64_store_gregset): Likewise.
6735 (aarch64_fill_fpregset): Likewise.
6736 (aarch64_store_fpregset): Likewise.
6737
4d3bb80e
SM
67382017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6739
6740 * gdbthread.h (find_thread, for_each_thread): New functions.
6741 * inferiors.c (thread_of_pid): Remove.
6742 (find_any_thread_of_pid): Use find_thread.
6743 * linux-low.c (num_lwps): Use for_each_thread.
6744
7a7cdfa0
YQ
67452017-10-17 Yao Qi <yao.qi@linaro.org>
6746
6747 * Makefile.in: Remove one rule.
6748 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6749
e675d170
YQ
67502017-10-17 Yao Qi <yao.qi@linaro.org>
6751
6752 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6753 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6754
7eb4e0f9
YQ
67552017-10-17 Yao Qi <yao.qi@linaro.org>
6756
6757 * configure.srv: Rename arm.o with arch/arm.o.
6758
60d6cfc9
YQ
67592017-10-17 Yao Qi <yao.qi@linaro.org>
6760
6761 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6762 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6763 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6764 (arch-i386.o, arch-amd64.o): Remove rules.
6765 (arch/%.o): New rule.
6766 Update POSTCOMPILE and COMPILE.pre.
6767 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6768 * configure: Re-generated.
6769 * configure.srv: Replace arch-i386.o with arch/i386.o.
6770 Replace arch-amd64.o with arch/amd64.o.
6771
5bfda255
YQ
67722017-10-16 Yao Qi <yao.qi@linaro.org>
6773
6774 * configure: Regenerated.
6775
9c80ecd6
SM
67762017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6777
6778 * inferiors.h: (struct inferior_list): Remove.
6779 (struct inferior_list_entry); Remove.
6780 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6781 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6782 get_first_inferior): Remove.
6783 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6784 find_inferior_id, find_inferior_in_random): Change signature.
6785 * inferiors.c (all_threads): Change type to
6786 std::list<thread_info *>.
6787 (get_thread): Remove macro.
6788 (find_inferior, find_inferior_id): Change signature, implement
6789 using find_thread.
6790 (find_inferior_in_random): Change signature, implement using
6791 find_thread_in_random.
6792 (for_each_inferior, for_each_inferior_with_data): Change
6793 signature, implement using for_each_thread.
6794 (add_inferior_to_list, remove_inferior): Remove.
6795 (add_thread, get_first_thread, thread_of_pid,
6796 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6797 (get_first_inferior, one_inferior_p, clear_inferior_list):
6798 Remove.
6799 (clear_inferiors, get_thread_process): Update.
6800 * gdbthread.h: Include <list>.
6801 (struct thread_info) <entry>: Remove field.
6802 <id>: New field.
6803 (all_threads): Change type to std::list<thread_info *>.
6804 (get_first_inferior): Add doc.
6805 (find_thread, for_each_thread, find_thread_in_random): New
6806 functions.
6807 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6808 * linux-arm-low.c (update_registers_callback): Update.
6809 * linux-low.c (second_thread_of_pid_p): Update.
6810 (kill_one_lwp_callback, linux_detach_lwp_callback,
6811 delete_lwp_callback, status_pending_p_callback, same_lwp,
6812 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6813 iterate_over_lwps, not_stopped_callback,
6814 resume_stopped_resumed_lwps, count_events_callback,
6815 select_singlestep_lwp_callback, select_event_lwp_callback,
6816 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6817 suspend_and_send_sigstop_callback, wait_for_sigstop,
6818 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6819 lwp_running, linux_set_resume_request, resume_status_pending_p,
6820 need_step_over_p, start_step_over, linux_resume_one_thread,
6821 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6822 reset_lwp_ptrace_options_callback): Update.
6823 * linux-mips-low.c (update_watch_registers_callback): Update.
6824 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6825 Update.
6826 (free_register_cache_thread_one): Remove.
6827 (regcache_release): Update.
6828 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6829 handle_qxfer_threads_worker): Update.
6830 (handle_query): Update, use list iterator.
6831 (visit_actioned_threads, handle_pending_status,
6832 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6833 clear_pending_status_callback, set_pending_status_callback,
6834 find_status_pending_thread_callback, handle_status,
6835 process_serial_event): Update.
6836 * target.c (thread_search_callback): Update.
6837 * thread-db.c (thread_db_get_tls_address): Update.
6838 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6839 Update.
6840 * win32-i386-low.c (update_debug_registers_callback): Update.
6841 * win32-low.c (delete_thread_info, child_delete_thread,
6842 continue_one_thread, suspend_one_thread,
6843 get_child_debug_event): Adjust.
6844
9179355e
SM
68452017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6846
6847 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6848 * inferiors.h: Include <list>.
6849 (struct process_info) <entry>: Remove field.
6850 <pid>: New field.
6851 (pid_of): Change macro to function.
6852 (ptid_of, lwpid_of): Remove macro.
6853 (all_processes): Change type to std::list<process_info *>.
6854 (ALL_PROCESSES): Remove macro.
6855 (for_each_process, find_process): New function.
6856 * inferiors.c (all_processes): Change type to
6857 std::list<process_info *>.
6858 (find_thread_process): Adjust.
6859 (add_process): Likewise.
6860 (remove_process): Likewise.
6861 (find_process_pid): Likewise.
6862 (get_first_process): Likewise.
6863 (started_inferior_callback): Remove.
6864 (have_started_inferiors_p): Adjust.
6865 (attached_inferior_callback): Remove.
6866 (have_attached_inferiors_p): Adjust.
6867 * linux-low.c (check_zombie_leaders): Likewise.
6868 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6869 (x86_linux_update_xmltarget): Adjust.
6870 * server.c (handle_query): Likewise.
6871 (gdb_reattached_process): Remove.
6872 (handle_status): Adjust.
6873 (kill_inferior_callback): Likewise.
6874 (detach_or_kill_inferior): Remove.
6875 (print_started_pid): Likewise.
6876 (print_attached_pid): Likewise.
6877 (detach_or_kill_for_exit): Update.
6878 (process_serial_event): Likewise.
6879 * linux-arm-low.c (arm_new_fork): Likewise.
6880
c9cb8905
SM
68812017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6882
6883 * dll.h: Include <list>.
6884 (struct dll_info): Add constructor.
6885 <entry>: Remove field.
6886 (all_dlls): Change type to std::list<dll_info>.
6887 * dll.c: Include <algorithm>.
6888 (get_dll): Remove macro.
6889 (all_dlls): Change type to std::list<dll_info *>.
6890 (free_one_dll): Remove.
6891 (match_dll): Likewise.
6892 (loaded_dll): Adjust.
6893 (unloaded_dll): Adjust to all_dlls type change, use
6894 std::find_if. Inline code from match_dll.
6895 (clear_dlls): Adjust to all_dlls type change.
6896 * server.c (emit_dll_description): Remove.
6897 (handle_qxfer_libraries): Adjust to all_dlls type change,
6898 integrate emit_dll_description's functionality.
6899
04ec7890
SM
69002017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6901
6902 * linux-low.h (struct linux_target_ops) <delete_process>: New
6903 field.
6904 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6905 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6906 (struct linux_target_ops): Add delete_process callback.
6907 * linux-arm-low.c (arm_delete_process): New.
6908 (struct linux_target_ops): Add delete_process callback.
6909 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6910 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6911 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6912 * linux-mips-low.c (mips_linux_delete_process): New.
6913 (struct linux_target_ops): Add delete_process callback.
6914 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6915 * linux-s390-low.c (struct linux_target_ops): Likewise.
6916 * linux-sh-low.c (struct linux_target_ops): Likewise.
6917 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6918 * linux-tile-low.c (struct linux_target_ops): Likewise.
6919 * linux-x86-low.c (x86_linux_delete_process): New.
6920 (struct linux_target_ops): Add delete_process callback.
6921 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6922
466eecee
SM
69232017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6924
6925 * linux-aarch64-low.c (the_low_target): Add thread delete
6926 callback.
6927 * linux-arm-low.c (arm_delete_thread): New function.
6928 (the_low_target): Add thread delete callback.
6929 * linux-bfin-low.c (the_low_target): Likewise.
6930 * linux-crisv32-low.c (the_low_target): Likewise.
6931 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6932 set.
6933 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6934 field.
6935 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6936 * linux-mips-low.c (mips_linux_delete_thread): New function.
6937 (the_low_target): Add thread delete callback.
6938 * linux-ppc-low.c (the_low_target): Likewise.
6939 * linux-s390-low.c (the_low_target): Likewise.
6940 * linux-sh-low.c (the_low_target): Likewise.
6941 * linux-tic6x-low.c (the_low_target): Likewise.
6942 * linux-tile-low.c (the_low_target): Likewise.
6943 * linux-x86-low.c (the_low_target): Likewise.
6944 * linux-xtensa-low.c (the_low_target): Likewise.
6945
b79f7801
YZ
69462017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6947
6948 * win32-low.c: Include "common-inferior.h".
6949
bc3b087d
SDJ
69502017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6951
6952 * inferiors.c (set_inferior_cwd): New function.
6953 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6954 (handle_query): Inform that QSetWorkingDir is supported.
6955 * win32-low.c (create_process): Pass the inferior's cwd to
6956 CreateProcess.
6957
d092c5a2
SDJ
69582017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6959
6960 * inferiors.c (current_inferior_cwd): New global variable.
6961 (get_inferior_cwd): New function.
6962 * inferiors.h (struct process_info) <cwd>: New field.
6963
7da0a886
SDJ
69642017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6965
6966 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6967 (OBS): Add gdb_tilde_expand.o.
6968
289a6840
SM
69692017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6970
6971 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6972 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6973
256642e8
PA
69742017-09-29 Pedro Alves <palves@redhat.com>
6975
6976 * ax.c (gdb_parse_agent_expr): Constify.
6977 * ax.h (gdb_parse_agent_expr): Constify.
6978 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6979 Constify.
6980 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6981 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6982 * remote-utils.h (read_ptid): Constify.
6983 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6984 (process_point_options, process_serial_event): Constify.
6985 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6986 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6987 (cmd_qtbuffer): Constify.
6988
5b9ca4d4
PA
69892017-09-29 Pedro Alves <palves@redhat.com>
6990
6991 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6992 fails.
6993
94c207e0
PA
69942017-09-29 Pedro Alves <palves@redhat.com>
6995
6996 * linux-low.c (handle_extended_wait): Pass parent thread instead
6997 of process to thread_db_notice_clone.
6998 * linux-low.h (thread_db_notice_clone): Replace parent process
6999 parameter with parent thread parameter.
7000 * thread-db.c (find_one_thread): Add comment.
7001 (thread_db_notice_clone): Replace parent process parameter with
7002 parent thread parameter. Temporarily switch to the parent thread.
7003
75352e28
SDJ
70042017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7005
7006 * gdbthread.h: Include "common-gdbthread.h".
7007 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7008 "if" when validating the ptid.
7009 * remote-utils.c: Include "gdbthread.h".
7010 (prepare_resume_reply): Use "switch_to_thread".
7011 * target.c (done_accessing_memory): Likewise.
7012
ad339634
AA
70132017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7014
7015 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7016 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7017 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7018 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7019 s390x-gs-linux64-ipa.o to ipa_obj.
7020 * linux-s390-low.c (HWCAP_S390_GS): New define.
7021 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7022 New functions.
7023 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7024 (s390_arch_setup): Check for guarded-storage support and choose
7025 appropriate tdesc.
7026 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7027 init_registers_s390x_gs_linux64.
7028 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7029 enum value.
7030 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7031 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7032
cc4d742f
SM
70332017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7034
7035 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7036
f6327dcb
KB
70372017-09-21 Kevin Buettner <kevinb@redhat.com>
7038
7039 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7040 (thread_db_thread_handle): Declare.
7041 * linux-low.c (linux_target_ops): Initialize thread_handle.
7042 * server.c (handle_qxfer_threads_worker): Add support for
7043 "handle" attribute.
7044 * target.h (struct target_ops): Add new function pointer,
7045 thread_handle.
7046 (target_thread_handle): Define.
7047 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7048 field in lwp.
7049 (thread_db_thread_handle): New function.
7050
86299109
KB
70512017-09-21 Kevin Buettner <kevinb@redhat.com>
7052
7053 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7054 * linux-low.h (thread_db_notice_clone): Declare.
7055 * thread-db.c (thread_db_notice_clone): New function.
7056
f557a88a
PA
70572017-09-21 Pedro Alves <palves@redhat.com>
7058
7059 * server.c (gdb_read_memory, handle_status, process_serial_event)
7060 (handle_serial_event, handle_target_event): Adjust to
7061 set_desired_thread prototype change.
7062 * target.c (set_desired_thread): Remove 'use_general' parameter
7063 and adjust.
7064 * target.h (set_desired_thread): Remove 'use_general' parameter.
7065
223ffa71
TT
70662017-09-20 Tom Tromey <tom@tromey.com>
7067
7068 * target.c (target_terminal::terminal_state): Define.
7069 (target_terminal::init): Rename from target_terminal_init.
7070 (target_terminal::inferior): Rename from
7071 target_terminal_inferior.
7072 (target_terminal::ours): Rename from target_terminal_ours.
7073 (target_terminal::ours_for_output, target_terminal::info): New.
7074
04fd3ba9
SM
70752017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7076
7077 * server.c (accumulate_file_name_length): Remove.
7078 (emit_dll_description): Adjust to std::string change.
7079 (handle_qxfer_libraries): Use std::string to hold document.
7080
5e187554
SM
70812017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7082
7083 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7084 return type of xml_escape_text.
7085 * server.c (emit_dll_description): Likewise.
7086
1526853e
SM
70872017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7088
7089 * server.c (captured_main): Accept argument for --selftest.
7090 Update run_tests call.
7091 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7092 when registering selftests.
7093
c4dfafab
SDJ
70942017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7095
7096 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7097 instead of "VEC" for "target_desc.reg_defs".
7098 (regcache_cpy): Likewise.
7099 (registers_to_string): Likewise.
7100 (registers_from_string): Likewise.
7101 (find_regno): Likewise.
7102 (supply_regblock): Likewise.
7103 (regcache_raw_read_unsigned): Likewise.
7104 * tdesc.c (init_target_desc): Likewise.
7105 (tdesc_create_reg): Likewise.
7106 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7107 (struct target_desc) <reg_defs>: Convert to "std::vector".
7108 (target_desc): Do not initialize "reg_defs".
7109 (~target_desc): Update code to use "std::vector" instead of "VEC"
7110 for "target_desc.reg_defs".
7111 (operator==): Likewise.
7112
124aceb4
SM
71132017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7114
7115 * inferiors.h (thread_to_gdb_id): Remove.
7116 * inferiors.c (thread_to_gdb_id): Remove.
7117 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7118 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7119 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7120 Likewise.
7121 * nto-low.c (nto_fetch_registers, nto_store_registers,
7122 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7123
96cde54f
SM
71242017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7125
7126 * inferiors.h (gdb_id_to_thread_id): Remove.
7127 * inferiors.c (gdb_id_to_thread_id): Remove.
7128 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7129 removal. Move pid declaration closer to where it's used.
7130
e8ca139e
SM
71312017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7132
7133 * server.c (handle_detach): New function.
7134 (process_serial_event): Move code out, call handle_detach.
7135
f8a4e119
SM
71362017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7137
7138 * server.c (require_running): Rename to ...
7139 (require_running_or_return): ... this ...
7140 (require_running_or_break): ... and this.
7141 (handle_query, process_serial_event): Adjust.
7142
0eb0a407
SM
71432017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7144
7145 * linux-low.c (linux_set_resume_request): Remove unused
7146 variables.
7147
785922a5
SM
71482017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7149
7150 * server.c (first_thread_of): Remove.
7151 (process_serial_event): Replace usage of first_thread_of with
7152 find_any_thread_of_pid.
7153 * tracepoint.c (same_process_p): Remove.
7154 (gdb_agent_about_to_close): Replace usage of same_process_p with
7155 find_any_thread_of_pid.
7156 * linux-x86-low.c (same_process_callback): Remove.
7157 (x86_arch_setup_process_callback): Replace usage of
7158 same_process_callback with find_any_thread_of_pid.
7159 * thread-db.c (any_thread_of): Remove.
7160 (switch_to_process): Replace usage of any_thread_of with
7161 find_any_thread_of_pid.
7162 * inferiors.c (thread_pid_matches_callback): Remove.
7163 (find_thread_process): Adjust to use find_any_thread_of_pid.
7164
a059f00c
SDJ
71652017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7166
7167 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7168 with "!VEC_empty".
a059f00c 7169
cc397f3a
SDJ
71702017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7171
7172 * linux-low.c (handle_extended_wait): Use
7173 "allocate_target_description" instead of "XNEW".
7174 * linux-x86-low.c (initialize_low_arch): Likewise.
7175
22916b07
YQ
71762017-09-05 Yao Qi <yao.qi@linaro.org>
7177
7178 * configure.srv (srv_i386_regobj): Remove.
7179 (srv_amd64_regobj): Remove.
7180 (srv_regobj): Set it to "" for x86 non-linux targets.
7181 * linux-x86-tdesc.c (i386_linux_read_description):
7182 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7183 (init_registers_i386): Remove the declaration.
7184 (tdesc_i386): Remove the declaration.
7185 (lynx_i386_arch_setup): Call i386_create_target_description.
7186 * nto-x86-low.c: Likewise.
7187 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7188 [!__x86_64__]: include arch/i386.h.
7189 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7190
38602d55
YQ
71912017-09-05 Yao Qi <yao.qi@linaro.org>
7192
7193 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7194 i386/amd64-XXX-linux from it.
7195
44b886ff
YQ
71962017-09-05 Yao Qi <yao.qi@linaro.org>
7197
7198 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7199 false.
7200 (ipa_amd64_linux_regobj): Remove.
7201 (ipa_x32_linux_regobj): Remove.
7202
b4570e4b
YQ
72032017-09-05 Yao Qi <yao.qi@linaro.org>
7204
7205 * Makefile.in (arch-amd64.o): New rule.
7206 * configure.srv: Append arch-amd64.o.
7207 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7208 (get_ipa_tdesc): Call amd64_linux_read_description.
7209 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7210 and init_registers_amd64_XXX.
7211 * linux-x86-low.c (x86_linux_read_description): Call
7212 amd64_linux_read_description.
7213 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7214 (initialize_low_arch): Don't call init_registers_x32_XXX and
7215 init_registers_amd64_XXX.
7216 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7217 and tdesc_amd64_XXX.
7218 [__x86_64__] (amd64_tdesc_test): New function.
7219 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7220 and init_registers_amd64_XXX.
7221 * linux-x86-tdesc.c: Include arch/amd64.h.
7222 (xcr0_to_tdesc_idx): New function.
7223 (i386_linux_read_description): New function.
7224 (amd64_get_ipa_tdesc_idx): New function.
7225 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7226 (amd64_get_ipa_tdesc): Declare.
7227
d1f28ea2
YQ
72282017-09-05 Yao Qi <yao.qi@linaro.org>
7229
7230 * configure.srv (srv_i386_linux_xmlfiles): Remove
7231 i386/i386-XXX-linux.xml from it.
7232
25a93583
YQ
72332017-09-05 Yao Qi <yao.qi@linaro.org>
7234
7235 * configure.srv: Set srv_i386_linux_regobj empty if $development
7236 is false.
7237 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7238 initialize_low_tdesc.
7239 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7240 with #if initialize_low_tdesc.
7241 * linux-x86-tdesc-selftest.c: New file.
7242 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7243
5f035c07
YQ
72442017-09-05 Yao Qi <yao.qi@linaro.org>
7245
7246 * Makefile.in (arch-i386.o): New rule.
7247 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7248 (x86_64-*-linux*): Likewise.
7249 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7250 include arch/i386.h.
7251 (i386_linux_read_description): Remove code and call
7252 i386_create_target_description.
7253 * tdesc.c (allocate_target_description): New function.
7254 * tdesc.h (set_tdesc_architecture): Remove declaration.
7255 (set_tdesc_osabi): Likewise.
7256
0abe8a89
YQ
72572017-09-05 Yao Qi <yao.qi@linaro.org>
7258
7259 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7260 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7261 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7262 .xmltarget.
7263 * server.c (get_features_xml): Call tdesc_get_features_xml.
7264 * tdesc.c (set_tdesc_architecture): New function.
7265 (set_tdesc_osabi): New function.
7266 (tdesc_get_features_xml): New function.
7267 (tdesc_create_feature): Add an argument.
7268 * tdesc.h (struct target_desc) <features>: New field.
7269 <arch, osabi>: New field.
7270 (~target_desc): xfree features, arch, and osabi.
7271 (target_desc::oerator==): Don't compare .xmltarget.
7272 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7273 (set_tdesc_osabi): Likewise.
7274 (tdesc_get_features_xml): Likewise.
7275
0a188386
YQ
72762017-09-05 Yao Qi <yao.qi@linaro.org>
7277
7278 * linux-x86-tdesc.c: Include selftest.h.
7279 (i386_tdesc_test): New function.
7280 (initialize_low_tdesc): Call selftests::register_test.
7281 * tdesc.h: Include regdef.h.
7282 (target_desc): Override operator == and !=.
7283
f49ff000
YQ
72842017-09-05 Yao Qi <yao.qi@linaro.org>
7285
7286 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7287 (ipa_obj): Likewise.
7288 * linux-i386-ipa.c: Include common/x86-xstate.h
7289 (get_ipa_tdesc): Call i386_linux_read_description.
7290 (initialize_low_tracepoint): Don't call init_registers_XXX
7291 functions, call initialize_low_tdesc instead.
7292 * linux-x86-low.c (x86_linux_read_description): Call
7293 i386_linux_read_description.
7294 (initialize_low_arch): Don't call init_registers_i386_XXX
7295 functions, call initialize_low_tdesc.
7296 * linux-x86-tdesc.c: New file.
7297 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7298 (i386_get_ipa_tdesc_idx): Declare.
7299 (i386_get_ipa_tdesc): Declare.
7300 (initialize_low_tdesc): Declare.
7301
2b68ef2f
YQ
73022017-09-05 Yao Qi <yao.qi@linaro.org>
7303
7304 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7305 instead of 0.
7306
f7000548
YQ
73072017-09-05 Yao Qi <yao.qi@linaro.org>
7308
7309 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7310 * regcache.c (get_thread_regcache): Use VEC_length.
7311 (init_register_cache): Likewise.
7312 (regcache_cpy): Likewise.
7313 (registers_to_string): Iterate reg_defs via VEC_iterate.
7314 (find_regno): Likewise.
7315 (find_register_by_number): Use VEC_index.
7316 (register_size): Call find_register_by_number.
7317 (register_data): Call find_register_by_number.
7318 (supply_regblock): Use VEC_length.
7319 (regcache_raw_read_unsigned): Likewise.
7320 * tdesc.c (init_target_desc): Iterate reg_defs via
7321 VEC_iterate.
7322 (default_description): Update initializer.
7323 (copy_target_description): Don't update field num_registers.
7324 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7325 <num_registers>: Remove.
7326
50a421ac
SM
73272017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7328
7329 * Makefile.in (.SECONDARY): Define target.
7330
23fdd69e
SM
73312017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7332
7333 * linux-low.c (linux_wait_1): Adjust.
7334 * server.c (queue_stop_reply_callback): Adjust.
7335
0a2dde4a
SDJ
73362017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7337
7338 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7339 QEnvironmentUnset and QEnvironmentReset packets.
7340 (handle_query): Inform remote that QEnvironmentHexEncoded,
7341 QEnvironmentUnset and QEnvironmentReset are supported.
7342
6afd337d
SM
73432017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7344
7345 * inferiors.h (inferior_target_data): Rename to ...
7346 (thread_target_data): ... this.
7347 (inferior_regcache_data): Rename to ...
7348 (thread_regcache_data): ... this.
7349 (set_inferior_regcache_data): Rename to ...
7350 (set_thread_regcache_data): ... this.
7351 * inferiors.c (inferior_target_data): Rename to ...
7352 (thread_target_data): ... this.
7353 (inferior_regcache_data): Rename to ...
7354 (thread_regcache_data): ... this.
7355 (set_inferior_regcache_data): Rename to ...
7356 (set_thread_regcache_data): ... this.
7357 (free_one_thread): Update.
7358 * linux-low.h (get_thread_lwp): Update.
7359 * regcache.c (get_thread_regcache): Update.
7360 (regcache_invalidate_thread): Update.
7361 (free_register_cache_thread): Update.
7362 * win32-i386-low.c (update_debug_registers_callback): Update.
7363 (win32_get_current_dr): Update.
7364 * win32-low.c (thread_rec): Update.
7365 (delete_thread_info): Update.
7366 (continue_one_thread): Update.
7367 (suspend_one_thread): Update.
7368
a160cc46
SM
73692017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7370
7371 * inferiors.c (set_inferior_target_data): Remove.
7372 * inferiors.h (set_inferior_target_data): Remove.
7373
6d580b63
YQ
73742017-08-18 Yao Qi <yao.qi@linaro.org>
7375
7376 * Makefile.in (OBS): Add selftest.o.
7377 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7378 * configure, config.in: Re-generated.
7379 * server.c: Include common/sefltest.h.
7380 (captured_main): Handle option --selftest.
7381
f5a29eb0
YQ
73822017-08-09 Yao Qi <yao.qi@linaro.org>
7383
7384 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7385 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7386 i386-avx-mpx.o and i386-mmx.o.
7387 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7388 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7389 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7390 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7391 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7392 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7393 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7394 i386/amd64-avx-mpx.xml.
7395
57757c2f
YQ
73962017-08-09 Yao Qi <yao.qi@linaro.org>
7397
7398 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7399 and x32-avx-avx512.o.
7400 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7401 i386/x32-avx-avx512.xml.
7402
229d26fc
SM
74032017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7404
7405 * tracepoint.h (enum class fast_tpoint_collect_result): New
7406 enumeration.
7407 (fast_tracepoint_collecting): Change return type to
7408 fast_tpoint_collect_result.
7409 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7410 * linux-low.h: Include tracepoint.h.
7411 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7412 fast_tpoint_collect_result.
7413 * linux-low.c (handle_tracepoints): Adjust.
7414 (linux_fast_tracepoint_collecting): Change return type to
7415 fast_tpoint_collect_result.
7416 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7417 linux_wait_1, stuck_in_jump_pad_callback,
7418 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7419 proceed_one_lwp): Adjust to type change.
7420
2e1e43e1
YQ
74212017-07-10 Yao Qi <yao.qi@linaro.org>
7422
7423 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7424
adc764e7
YQ
74252017-06-29 Yao Qi <yao.qi@linaro.org>
7426
7427 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7428 Remove.
7429 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7430
a206891a
SM
74312017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7432
7433 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7434
9a6c7d9c
SDJ
74352017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7436
7437 * linux-low.c (linux_create_inferior): Adjust code to access the
7438 environment information via 'gdb_environ' class.
7439 * lynx-low.c (lynx_create_inferior): Likewise.
7440 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7441 (get_environ): Return a pointer to 'our_environ'.
7442 (captured_main): Initialize 'our_environ'.
7443 * server.h (get_environ): Adjust prototype.
7444 * spu-low.c (spu_create_inferior): Adjust code to access the
7445 environment information via 'gdb_environ' class.
7446
ae3e2ccf
SM
74472017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7448
7449 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7450 usage of "register" keyword.
7451
3e019bdc
SM
74522017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7453
7454 * configure: Re-generate.
7455
8465943a
SM
74562017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7457
7458 * configure: Re-generate.
7459
cf0dd6f0
SM
74602017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7461
7462 * Makefile.in (COMPILE.pre): Add "-x c++".
7463
9845682b
SDJ
74642017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7465
7466 * fork-child.c: Conditionally include <signal.h>.
7467
aefd8b33
SDJ
74682017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7469
7470 * server.c (handle_general_set): Handle new packet
7471 "QStartupWithShell".
7472 (handle_query): Add "QStartupWithShell" to the list of supported
7473 packets.
7474 (gdbserver_usage): Add help text explaining the
7475 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7476 options.
7477 (captured_main): Recognize and act upon the presence of the new
7478 CLI options.
7479
2090129c
SDJ
74802017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7481 Pedro Alves <palves@redhat.com>
7482
7483 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7484 * configure: Regenerate.
7485 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7486 "fork-inferior.o".
7487 (i[34567]86-*-lynxos*): Likewise.
7488 (spu*-*-*): Likewise.
7489 * fork-child.c: New file.
7490 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7491 and "environ.h".
7492 (linux_ptrace_fun): New function.
7493 (linux_create_inferior): Adjust function prototype to reflect
7494 change on "target.h". Adjust function code to use
7495 "fork_inferior".
7496 (linux_request_interrupt): Delete "signal_pid".
7497 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7498 (lynx_ptrace_fun): New function.
7499 (lynx_create_inferior): Adjust function prototype to reflect
7500 change on "target.h". Adjust function code to use
7501 "fork_inferior".
7502 * nto-low.c (nto_create_inferior): Adjust function prototype and
7503 code to reflect change on "target.h". Update comments.
7504 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7505 "common-terminal.h" and "environ.h".
7506 (terminal_fd): Moved to fork-child.c.
7507 (old_foreground_pgrp): Likewise.
7508 (restore_old_foreground_pgrp): Likewise.
7509 (last_status): Make it global.
7510 (last_ptid): Likewise.
7511 (our_environ): New variable.
7512 (startup_with_shell): Likewise.
7513 (program_name): Likewise.
7514 (program_argv): Rename to...
7515 (program_args): ...this.
7516 (wrapper_argv): New variable.
7517 (start_inferior): Delete function.
7518 (get_exec_wrapper): New function.
7519 (get_exec_file): Likewise.
7520 (get_environ): Likewise.
7521 (prefork_hook): Likewise.
7522 (post_fork_inferior): Likewise.
7523 (postfork_hook): Likewise.
7524 (postfork_child_hook): Likewise.
7525 (handle_v_run): Update code to deal with arguments coming from the
7526 remote host. Update calls from "start_inferior" to
7527 "create_inferior".
7528 (captured_main): Likewise. Initialize environment variable. Call
7529 "have_job_control".
7530 * server.h (post_fork_inferior): New prototype.
7531 (get_environ): Likewise.
7532 (last_status): Declare.
7533 (last_ptid): Likewise.
7534 (signal_pid): Likewise.
7535 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7536 (spu_ptrace_fun): New function.
7537 (spu_create_inferior): Adjust function prototype to reflect change
7538 on "target.h". Adjust function code to use "fork_inferior".
7539 * target.c (target_terminal_init): New function.
7540 (target_terminal_inferior): Likewise.
7541 (target_terminal_ours): Likewise.
7542 * target.h: Include <vector>.
7543 (struct target_ops) <create_inferior>: Update prototype.
7544 (create_inferior): Update macro.
7545 * utils.c (gdb_flush_out_err): New function.
7546 * win32-low.c (win32_create_inferior): Adjust function prototype
7547 and code to reflect change on "target.h".
7548
043a4934
SDJ
75492017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7550
7551 * inferiors.c (switch_to_thread): New function.
7552
15652511
SDJ
75532017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7554
7555 * Makefile.in (SFILE): Add "common/job-control.c".
7556 (OBS): Add "job-control.o".
7557
21ea5acd
SDJ
75582017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7559
7560 * Makefile: Remove "@host_makefile_frag@".
7561
e13cb306
PA
75622017-05-05 Pedro Alves <palves@redhat.com>
7563
7564 * configure: Regenerate.
7565
c94fee56
SDJ
75662017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7567
7568 * configure: Regenerate.
7569
a0ff9e1a
SM
75702017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7571
7572 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7573 software_single_step change of return type to
7574 std::vector<CORE_ADDR>.
7575 * linux-low.c (install_software_single_step_breakpoints):
7576 Likewise.
7577 * linux-low.h (install_software_single_step_breakpoints):
7578 Likewise.
7579
be628ab8
SDJ
75802017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7581
7582 * remote-utils.c: Include "gdb_termios.h" instead of
7583 "terminal.h".
7584 * terminal.h: Delete file.
7585
7c5ded6a
SDJ
75862017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7587
7588 * server.c: Include <vector>.
7589 <program_argv, wrapper_argv>: Convert to std::vector.
7590 (start_inferior): Rewrite function to use C++.
7591 (handle_v_run): Likewise. Update code that calculates the argv
7592 based on the vRun packet; use C++.
7593 (captured_main): Likewise.
7594
436252de
SM
75952017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7596
7597 * server.c (handle_v_cont): Initialize thread_resume::thread
7598 with null_ptid.
7599
9bf2a700
PA
76002017-04-05 Pedro Alves <palves@redhat.com>
7601
7602 * configure: Regenerate.
7603
a121b7c1
PA
76042017-04-05 Pedro Alves <palves@redhat.com>
7605
7606 * gdbreplay.c (sync_error): Constify.
7607 * linux-x86-low.c (push_opcode): Constify.
7608
21c8a587
PA
76092017-04-05 Pedro Alves <palves@redhat.com>
7610
7611 * win32-low.c (get_child_debug_event)
7612 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7613 Report TARGET_WAITKIND_SPURIOUS instead.
7614
fb32b4f7
PA
76152017-04-05 Pedro Alves <palves@redhat.com>
7616
e79be6e5
SM
7617 * remote-utils.c (remote_prepare, remote_open): Constify.
7618 * remote-utils.h (remote_prepare, remote_open): Constify.
7619 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7620
65dd1e59
SM
76212017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7622
7623 * Makefile.in (clean): Clear .deps.
7624
8fa5b777
SM
76252017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7626
7627 * .gitignore: Remove generated files, replace with wildcard.
7628 * (clean): Replace removal of generated files with wildcard.
7629 (version.c): Replace with...
7630 (version-generated.c): ...this.
7631 (xml-builtin.c): Replace with...
7632 (xml-builtin-generated.c): ...this.
7633 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7634 (%.c: *regformats*): Replace with...
7635 (%-generated.c: *regformats*): ...this.
7636
a12e714b
MF
76372017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7638
7639 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7640 (xtensa_fill_gregset): Call collect_register_by_name for
7641 threadptr register.
7642 (xtensa_store_gregset): Call supply_register_by_name for
7643 threadptr register.
7644
1a09b50a
MF
76452017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7646
7647 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7648 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7649 (xtensa_store_gregset): Call supply_register for all registers in
7650 a0_regnum..a0_regnum + C0_NREGS range.
7651
1a01e7c6
SM
76522017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7653
7654 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7655 (ax-ipa.o: ax.c): Remove.
7656 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7657 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7658 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7659 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7660 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7661
36bc18a8
SM
76622017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7663
7664 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7665 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7666 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7667 (errors-ipa.o: ../common/errors.c): Remove.
7668 (format-ipa.o: ../common/format.c): Remove.
7669 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7670
a8ebe3d5
SM
76712017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7672
7673 * Makefile.in (%-ipa.o: %.c): New rule.
7674 (tracepoint-ipa.o: tracepoint.c): Remove.
7675 (utils-ipa.o: utils.c): Remove.
7676 (remote-utils-ipa.o: remote-utils.c): Remove.
7677 (regcache-ipa.o: regcache.c): Remove.
7678 (i386-linux-ipa.o: i386-linux.c): Remove.
7679 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7680 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7681 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7682 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7683 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7684 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7685 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7686 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7687 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7688 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7689 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7690 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7691 (aarch64-ipa.o: aarch64.c): Remove.
7692 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7693 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7694 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7695 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7696 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7697 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7698 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7699 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7700 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7701 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7702 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7703 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7704 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7705 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7706 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7707 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7708 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7709 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7710 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7711 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7712 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7713 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7714 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7715 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7716 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7717 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7718 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7719 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7720 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7721 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7722 (tdesc-ipa.o: tdesc.c): Remove.
7723 (x32-linux-ipa.o: x32-linux.c): Remove.
7724 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7725 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7726
50cfacb7
SM
77272017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7728
7729 * Makefile.in (%.o: ../arch/%.c): New rule.
7730 (arm.o: ../arch/arm.c): Remove.
7731 (arm-linux.o: ../arch/arm-linux.c): Remove.
7732 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7733 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7734
c5a22423
SM
77352017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7736
7737 * Makefile.in (%.o: ../nat/%.c): New rule.
7738 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7739 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7740 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7741 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7742 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7743 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7744 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7745 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7746 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7747 (linux-personality.o: ../nat/linux-personality.c): Remove.
7748 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7749 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7750 (x86-linux.o: ../nat/x86-linux.c): Remove.
7751 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7752 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7753
6bda016b
SM
77542017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7755
7756 * Makefile.in (%.o: ../common/%.c): New rule.
7757 (signals.o: ../common/signals.c): Remove.
7758 (print-utils.o: ../common/print-utils.c): Remove.
7759 (rsp-low.o: ../common/rsp-low.c): Remove.
7760 (common-utils.o: ../common/common-utils.c): Remove.
7761 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7762 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7763 (vec.o: ../common/vec.c): Remove.
7764 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7765 (xml-utils.o: ../common/xml-utils.c): Remove.
7766 (ptid.o: ../common/ptid.c): Remove.
7767 (buffer.o: ../common/buffer.c): Remove.
7768 (format.o: ../common/format.c): Remove.
7769 (filestuff.o: ../common/filestuff.c): Remove.
7770 (agent.o: ../common/agent.c): Remove.
7771 (errors.o: ../common/errors.c): Remove.
7772 (environ.o: ../common/environ.c): Remove.
7773 (common-debug.o: ../common/common-debug.c): Remove.
7774 (cleanups.o: ../common/cleanups.c): Remove.
7775 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7776 (fileio.o: ../common/fileio.c): Remove.
7777 (common-regcache.o: ../common/common-regcache.c): Remove.
7778 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7779 (new-op.o: ../common/new-op.c): Remove.
7780 (btrace-common.o: ../common/btrace-common.c): Remove.
7781
21122961
SM
77822017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7783
7784 * Makefile.in (%.o: ../target/%.c): New rule.
7785 (waitstatus.o: ../target/waitstatus.c): Remove.
7786
c362e621
SM
77872017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7788
7789 * Makefile.in
7790 (%.c: ../regformats/%.dat,
7791 (%.c: ../regformats/arm/%.dat,
7792 (%.c: ../regformats/i386/%.dat,
7793 (%.c: ../regformats/rs6000/%.dat): New rules.
7794 (aarch64.c): Remove.
7795 (reg-arm.c): Remove.
7796 (arm-with-iwmmxt.c): Remove.
7797 (arm-with-vfpv2.c): Remove.
7798 (arm-with-vfpv3.c): Remove.
7799 (arm-with-neon.c): Remove.
7800 (reg-bfin.c): Remove.
7801 (reg-cris.c): Remove.
7802 (reg-crisv32.c): Remove.
7803 (i386.c): Remove.
7804 (i386-linux.c): Remove.
7805 (i386-avx.c): Remove.
7806 (i386-avx-linux.c): Remove.
7807 (i386-avx-avx512.c): Remove.
7808 (i386-avx-avx512-linux.c): Remove.
7809 (i386-mpx.c): Remove.
7810 (i386-mpx-linux.c): Remove.
7811 (i386-avx-mpx-avx512-pku.c): Remove.
7812 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7813 (i386-avx-mpx.c): Remove.
7814 (i386-avx-mpx-linux.c): Remove.
7815 (i386-mmx.c): Remove.
7816 (i386-mmx-linux.c): Remove.
7817 (reg-ia64.c): Remove.
7818 (reg-m32r.c): Remove.
7819 (reg-m68k.c): Remove.
7820 (reg-cf.c): Remove.
7821 (mips-linux.c): Remove.
7822 (mips-dsp-linux.c): Remove.
7823 (mips64-linux.c): Remove.
7824 (mips64-dsp-linux.c): Remove.
7825 (nios2-linux.c): Remove.
7826 (powerpc-32.c): Remove.
7827 (powerpc-32l.c): Remove.
7828 (powerpc-altivec32l.c): Remove.
7829 (powerpc-cell32l.c): Remove.
7830 (powerpc-vsx32l.c): Remove.
7831 (powerpc-isa205-32l.c): Remove.
7832 (powerpc-isa205-altivec32l.c): Remove.
7833 (powerpc-isa205-vsx32l.c): Remove.
7834 (powerpc-e500l.c): Remove.
7835 (powerpc-64l.c): Remove.
7836 (powerpc-altivec64l.c): Remove.
7837 (powerpc-cell64l.c): Remove.
7838 (powerpc-vsx64l.c): Remove.
7839 (powerpc-isa205-64l.c): Remove.
7840 (powerpc-isa205-altivec64l.c): Remove.
7841 (powerpc-isa205-vsx64l.c): Remove.
7842 (s390-linux32.c): Remove.
7843 (s390-linux32v1.c): Remove.
7844 (s390-linux32v2.c): Remove.
7845 (s390-linux64.c): Remove.
7846 (s390-linux64v1.c): Remove.
7847 (s390-linux64v2.c): Remove.
7848 (s390-te-linux64.c): Remove.
7849 (s390-vx-linux64.c): Remove.
7850 (s390-tevx-linux64.c): Remove.
7851 (s390x-linux64.c): Remove.
7852 (s390x-linux64v1.c): Remove.
7853 (s390x-linux64v2.c): Remove.
7854 (s390x-te-linux64.c): Remove.
7855 (s390x-vx-linux64.c): Remove.
7856 (s390x-tevx-linux64.c): Remove.
7857 (tic6x-c64xp-linux.c): Remove.
7858 (tic6x-c64x-linux.c): Remove.
7859 (tic6x-c62x-linux.c): Remove.
7860 (reg-sh.c): Remove.
7861 (reg-sparc64.c): Remove.
7862 (reg-spu.c): Remove.
7863 (amd64.c): Remove.
7864 (amd64-linux.c): Remove.
7865 (amd64-avx.c): Remove.
7866 (amd64-avx-linux.c): Remove.
7867 (amd64-avx-avx512.c): Remove.
7868 (amd64-avx-avx512-linux.c): Remove.
7869 (amd64-mpx.c): Remove.
7870 (amd64-mpx-linux.c): Remove.
7871 (amd64-avx-mpx-avx512-pku.c): Remove.
7872 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7873 (amd64-avx-mpx.c): Remove.
7874 (amd64-avx-mpx-linux.c): Remove.
7875 (x32.c): Remove.
7876 (x32-linux.c): Remove.
7877 (x32-avx.c): Remove.
7878 (x32-avx-linux.c): Remove.
7879 (x32-avx-avx512.c): Remove.
7880 (x32-avx-avx512-linux.c): Remove.
7881 (reg-xtensa.c): Remove.
7882 (reg-tilegx.c): Remove.
7883 (reg-tilegx32.c): Remove.
7884
1672e0d9
SDJ
78852017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7886
7887 * Makefile.in (SFILES): Add "common/environ.c".
7888 (OBJS): Add "common/environ.h".
7889
239b6d10
WT
78902017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7891
7892 * configure.ac: Check if the fs_base and gs_base members of
7893 `struct user_regs_struct' exist.
7894 * config.in: Regenerated.
7895 * configure: Likewise.
7896
694b382c
AT
78972017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7898
7899 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7900 target_read_memory.
7901 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7902 (get_next_pcs_syscall_next_pc): Likewise.
7903
7dc53023
LM
79042016-12-23 Luis Machado <lgustavo@codesourcery.com>
7905
7906 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7907 * nto-x86-low.c: Likewise.
7908
ad02e4fe
SM
79092016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7910
7911 * Makefile.in: Include disable-implicit-rules.mk.
7912
dcb07cfa
PA
79132016-11-23 Pedro Alves <palves@redhat.com>
7914
7915 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7916 (debug_vprintf): Use std::chrono::steady_clock instead of
7917 gettimeofday. Use '.' instead of ':'.
7918 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7919 (get_timestamp): Use std::chrono::steady_clock instead of
7920 gettimeofday.
7921
8629c02c
SM
79222016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7923
7924 * Makefile.in: Fix whitespace formatting.
7925
b593ecca
SM
79262016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7927
7928 * Makefile.in (SFILES, OBS): Flatten list and order
7929 alphabetically.
7930
9986ba08
PA
79312016-11-23 Pedro Alves <palves@redhat.com>
7932
7933 * event-loop.c (handle_file_event): Use warning.
7934 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7935 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7936 Use warning.
7937
4eefa7bc
PA
79382016-11-23 Pedro Alves <palves@redhat.com>
7939
7940 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7941 output.
7942 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7943 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7944 debug_printf and debug_flush for debug output.
7945 * server.c (handle_general_set): Likewise.
7946 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7947 output.
7948
5443506e
SM
79492016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7950
7951 * Makefile.in (.c.o): Replace rule with ...
7952 (%.o: %.c): ... this one.
7953
3b165252
SM
79542016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7955
7956 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7957 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7958 make.
7959 * configure.ac: Remove checks for the make program.
7960 * configure: Re-generate.
7961
0bcda685
PA
79622016-10-28 Pedro Alves <palves@redhat.com>
7963
7964 * Makefile.in (CXX_DIALECT): Get from configure.
7965 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7966 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7967 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7968 * config.in: Regenerate.
7969 * configure: Regenerate.
7970
c3805894
YQ
79712016-10-27 Yao Qi <yao.qi@linaro.org>
7972
7973 * linux-low.c (linux_supports_range_stepping): Return true if
7974 can_software_single_step return true.
7975
89342618
YQ
79762016-10-27 Yao Qi <yao.qi@linaro.org>
7977
7978 * inferiors.c (find_inferior_in_random): New function.
7979 * inferiors.h (find_inferior_in_random): Declare.
7980 * linux-low.c (linux_wait_for_event_filtered): Call
7981 find_inferior_in_random instead of find_inferior.
7982
e3652c84
YQ
79832016-10-27 Yao Qi <yao.qi@linaro.org>
7984
7985 * linux-low.c (linux_wait_1): If single-step breakpoints are
7986 inserted, remove them.
7987
5a04c4cf
PA
79882016-10-26 Pedro Alves <palves@redhat.com>
7989
7990 * linux-low.c (handle_extended_wait): Link parent/child fork
7991 threads.
7992 (linux_wait_1): Unlink them.
7993 (linux_set_resume_request): Ignore resume requests for
7994 already-resumed and unhandled fork child threads.
7995 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7996 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7997 New functions.
7998 (handle_v_requests) <vCont>: Don't call require_running.
7999 * server.h (in_queued_stop_replies): New declaration.
8000
cb93dc7f
YQ
80012016-10-24 Yao Qi <yao.qi@linaro.org>
8002
8003 PR server/20733
8004 * linux-aarch64-low.c (append_insns): Cast the return value to
8005 'uint32_t *'.
8006
a1078bea
YQ
80072016-10-10 Yao Qi <yao.qi@linaro.org>
8008
8009 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8010
1fb77080
SDJ
80112016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8012
8013 * target.c (target_supports_multi_process): New function, moved
8014 from...
8015 * target.h (target_supports_multi_process): ... here. Remove
8016 macro.
8017
39b5a3b9
TT
80182016-10-05 Tom Tromey <tom@tromey.com>
8019
8020 PR remote/20655:
8021 * tracepoint.c (handle_tracepoint_bkpts): Check
8022 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8023
c1d0b70a
YQ
80242016-10-05 Yao Qi <yao.qi@linaro.org>
8025
8026 * configure.srv: Update the path of arm-*.xml files.
8027
0a69eedb
YQ
80282016-10-05 Terry Guo <terry.guo@arm.com>
8029 Yao Qi <yao.qi@linaro.org>
8030
8031 * Makefile.in: Adjust the path of rules.
8032 * configure.srv: Update the path of xml files.
8033 * regformats/arm-with-iwmmxt.dat: Regenerated.
8034 * regformats/arm-with-neon.dat: Likewise.
8035 * regformats/arm-with-vfpv2.dat: Likewise.
8036 * regformats/arm-with-vfpv3.dat Likewise.
8037
17e16485
YQ
80382016-09-30 Yao Qi <yao.qi@linaro.org>
8039
8040 PR gdbserver/20627
8041 * target.c (target_stop_and_wait): Don't call
8042 target_continue_no_signal, use resume_stop instead.
8043
edeeb602
YQ
80442016-09-26 Yao Qi <yao.qi@linaro.org>
8045
8046 * linux-low.c (linux_wait_1): Call debug_exit.
8047
503b1c39
PA
80482016-09-23 Pedro Alves <palves@redhat.com>
8049
8050 * Makefile.in (SFILES): Add common/new-op.c.
8051 (OBS): Add common/new-op.o.
8052 (new-op.o): New rule.
8053
74172ecf
SM
80542016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8055
8056 * .gitinore: Ignore more files.
8057
fc6cda2e
YQ
80582016-09-21 Yao Qi <yao.qi@linaro.org>
8059
8060 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8061 23.
8062
bc1e6c81
SDJ
80632016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8064
8065 * server.c (start_inferior): Call target_mourn_inferior instead of
8066 mourn_inferior; pass ptid_t argument to it.
8067 (resume): Likewise.
8068 (handle_target_event): Likewise.
8069 * target.c (target_mourn_inferior): New function.
8070 * target.h (mourn_inferior): Delete macro.
8071
0e00e962
AA
80722016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8073
8074 * linux-low.c (lwp_is_stepping): New function.
8075
1d8cb77d
CL
80762016-09-06 Carl Love <cel@us.ibm.com>
8077
8078 * server.c (start_inferior): Fixed comment, requested comment change
8079 didn't get updated correctly. Removed reference to ptrace () call as
8080 it is only true on Linux systems.
8081
7313bced
CL
80822016-09-06 Carl Love <cel@us.ibm.com>
8083
8084 * server.c (start_inferior): Do not call
8085 function target_post_create_inferior () if the
8086 inferior process has already exited.
8087
cf6de44d
PA
80882016-09-05 Pedro Alves <palves@redhat.com>
8089
8090 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8091 (COMPILE.pre, CC_LD): Use CXX directly.
8092 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8093 * acinclude.m4: Don't include build-with-cxx.m4.
8094 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8095 * configure: Regenerate.
8096
c1da6748
AT
80972016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8098
8099 PR gdb/19495
8100 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8101 call writing data to own_buf.
8102
f2b9e3df
SDJ
81032016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8104
8105 * target.c (mywait): Call target_wait instead of
8106 the_target->wait.
8107 (target_wait): New function.
8108
049a8570
SDJ
81092016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8110
8111 * server.c (start_inferior): New variable 'ptid'. Replace calls
8112 to the_target->resume by target_continue{,_no_signal}, depending
8113 on the case.
8114 * target.c (target_stop_and_wait): Call target_continue_no_signal
8115 instead of the_target->resume.
8116 (target_continue): New function.
8117
3aa5cfa0
AT
81182016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8119
8120 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8121
754653a7
AZ
81222016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8123
8124 PR server/20491
8125 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8126 ps_prochandle.
8127 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8128 * linux-arm-low.c (ps_get_thread_area): Likewise.
8129 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8130 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8131 * linux-mips-low.c (ps_get_thread_area): Likewise.
8132 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8133 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8134 * linux-x86-low.c (ps_get_thread_area): Likewise.
8135 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8136
ed036b40
PA
81372016-08-19 Pedro Alves <palves@redhat.com>
8138
8139 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8140
c8ef42ee
PA
81412016-08-19 Pedro Alves <palves@redhat.com>
8142
8143 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8144 comment. Use memcpy instead of casting through unsigned long.
8145
9c235a72
PA
81462016-08-19 Pedro Alves <palves@redhat.com>
8147
8148 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8149 allocating around 0x80000000.
8150
201506da
PA
81512016-08-19 Pedro Alves <palves@redhat.com>
8152
8153 PR gdb/20415
8154 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8155 (x32-avx512-linux-ipa.o): New rules.
8156 * configure.ac (x86_64-*-linux*): New x32 check.
8157 * configure.srv (ipa_x32_linux_regobj): New.
8158 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8159 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8160 descriptions.
8161 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8162 descriptions.
8163 * configure: Regenerate.
8164
f348d89a
PA
81652016-08-09 Pedro Alves <palves@redhat.com>
8166
8167 PR gdb/18653
8168 * Makefile.in (OBS): Add signals-state-save-restore.o.
8169 (signals-state-save-restore.o): New rule.
8170 * config.in: Regenerate.
8171 * configure: Regenerate.
8172 * linux-low.c: Include "signals-state-save-restore.h".
8173 (linux_create_inferior): Call
8174 restore_original_signals_state.
8175 * server.c: Include "dispositions-save-restore.h".
8176 (captured_main): Call save_original_signals_state.
8177
1baf5149
PA
81782016-08-05 Pedro Alves <palves@redhat.com>
8179
8180 * configure: Regenerate.
8181
fcd4a73d
YQ
81822016-08-04 Yao Qi <yao.qi@linaro.org>
8183
8184 * linux-low.c (regsets_fetch_inferior_registers): Check
8185 errno is ESRCH or not.
8186
979659d0
YQ
81872016-08-02 Yao Qi <yao.qi@linaro.org>
8188
8189 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8190 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8191 (thread_db_load_search): Update.
8192 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8193 td_ta_set_event and td_ta_event_getmsg.
8194
6598661d
PA
81952016-07-26 Pedro Alves <palves@redhat.com>
8196
8197 PR server/20414
8198 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8199 of unsigned long for 64-bit registers and use uint32_t instead of
8200 unsigned int for 32-bit registers.
8201
9cf12d57
PA
82022016-07-26 Pedro Alves <palves@redhat.com>
8203
8204 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8205 to 'ptrace'.
8206
305450ed
TT
82072016-07-21 Tom Tromey <tom@tromey.com>
8208
8209 * configure: Rebuild.
8210
2583da7c
YQ
82112016-07-21 Yao Qi <yao.qi@linaro.org>
8212
8213 * mem-break.c (find_gdb_breakpoint): Cast bp to
8214 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8215
21536b36
YQ
82162016-07-21 Yao Qi <yao.qi@linaro.org>
8217
8218 * server.c (handle_v_requests): Support s and S actions
8219 if target_supports_software_single_step return true.
8220
8901d193
YQ
82212016-07-21 Yao Qi <yao.qi@linaro.org>
8222
8223 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8224 is resume_step, call maybe_hw_step.
8225 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8226 and unstop them.
8227 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8228 breakpoints or not.
8229 (proceed_one_lwp): If resume request is resume_step, install
8230 reinsert breakpoints and call maybe_hw_step.
8231
0e9a339e
YQ
82322016-07-21 Yao Qi <yao.qi@linaro.org>
8233
8234 * linux-low.c (proceed_one_lwp): Declare.
8235 (linux_resume_one_thread): Remove local variable 'step'.
8236 Lift code enqueue signal. Call proceed_one_lwp instead of
8237 linux_resume_one_lwp.
8238
4281b351
YQ
82392016-07-21 Yao Qi <yao.qi@linaro.org>
8240
8241 * linux-low.c (linux_resume_one_thread): Call
8242 enqueue_pending_signal.
8243
984a2c04
YQ
82442016-07-21 Yao Qi <yao.qi@linaro.org>
8245
8246 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8247 * inferiors.c (do_restore_current_thread_cleanup): New function.
8248 (make_cleanup_restore_current_thread): Likewise.
8249 * linux-low.c (install_software_single_step_breakpoints): Call
8250 make_cleanup_restore_current_thread. Switch current_thread to
8251 thread.
8252
bec903c9
YQ
82532016-07-21 Yao Qi <yao.qi@linaro.org>
8254
8255 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8256 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8257 (clone_one_breakpoint): Likewise.
8258 (delete_reinsert_breakpoints): Change parameter to thread.
8259 Callers updated.
8260 (has_reinsert_breakpoints): Likewise.
8261 (uninsert_reinsert_breakpoints): Likewise.
8262 (reinsert_reinsert_breakpoints): Likewise.
8263 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8264 (delete_reinsert_breakpoints): Likewise.
8265 (reinsert_reinsert_breakpoints): Likewise.
8266 (uninsert_reinsert_breakpoints): Likewise.
8267 (has_reinsert_breakpoints): Likewise.
8268
63c40ec7
YQ
82692016-07-21 Yao Qi <yao.qi@linaro.org>
8270
8271 * inferiors.c (get_thread_process): Make parameter const.
8272 * inferiors.h (get_thread_process): Update declaration.
8273 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8274 Add new parameters child_thread and parent_thread. Callers
8275 updated.
8276 * mem-break.h (clone_all_breakpoints): Update declaration.
8277
9aa76cd0
YQ
82782016-07-21 Yao Qi <yao.qi@linaro.org>
8279
8280 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8281 <command_list, handler>: Remove.
8282 (struct gdb_breakpoint): New.
8283 (struct other_breakpoint): New.
8284 (struct reinsert_breakpoint): New.
8285 (is_gdb_breakpoint): New function.
8286 (any_persistent_commands): Update command_list if
8287 is_gdb_breakpoint returns true.
8288 (set_breakpoint): Create breakpoints according to their types.
8289 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8290 (set_gdb_breakpoint_1): Likewise.
8291 (set_gdb_breakpoint): Likewise.
8292 (clear_breakpoint_conditions): Change parameter type to
8293 'struct gdb_breakpoint *'.
8294 (clear_breakpoint_commands): Likewise.
8295 (clear_breakpoint_conditions_and_commands): Likewise.
8296 (add_condition_to_breakpoint): Likewise.
8297 (add_breakpoint_condition): Likewise.
8298 (add_commands_to_breakpoint): Likewise.
8299 (check_breakpoints): Check other_breakpoint.
8300 (clone_one_breakpoint): Clone breakpopint according to its type.
8301 * mem-break.h (struct gdb_breakpoint): Declare.
8302 (set_gdb_breakpoint): Update declaration.
8303 (clear_breakpoint_conditions_and_commands): Likewise.
8304 (add_breakpoint_condition): Likewise.
8305 (add_breakpoint_commands): Likewise.
8306 * server.c (process_point_options): Change parameter type to
8307 'struct gdb_breakpoint *'.
8308
811f8301
YQ
83092016-07-21 Yao Qi <yao.qi@linaro.org>
8310
8311 * mem-break.c (set_breakpoint_at): Rename it to ...
8312 (set_breakpoint_type_at): ... it.
8313 (set_breakpoint_at): Call set_breakpoint_type_at.
8314 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8315 * mem-break.h (set_breakpoint_at): Update comments.
8316
b1c51e36
CLT
83172016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8318
8319 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8320 to buf parameter.
8321 (nios2_store_gregset): Likewise.
8322
ced2dffb
PA
83232016-07-01 Pedro Alves <palves@redhat.com>
8324 Antoine Tremblay <antoine.tremblay@ericsson.com>
8325
8326 * linux-low.c: Change interface to take the target lwp_info
8327 pointer directly and return void. Handle detaching from a zombie
8328 thread.
8329 (linux_detach_lwp_callback): New function.
8330 (linux_detach): Detach from the leader thread after detaching from
8331 the clone threads.
8332
2ac09a5b
YQ
83332016-06-28 Yao Qi <yao.qi@linaro.org>
8334
8335 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8336 for variable new_offset.
8337 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8338 (aarch64_ftrace_insn_reloc_cb): Likewise.
8339 (aarch64_ftrace_insn_reloc_tb): Likewise.
8340 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8341 PRIx64 instead of PRIx32.
8342
79e7fd4f
YQ
83432016-06-28 Yao Qi <yao.qi@linaro.org>
8344
8345 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8346 (the_low_target): Install arm_get_syscall_trapinfo.
8347
061fc021
YQ
83482016-06-28 Yao Qi <yao.qi@linaro.org>
8349
8350 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8351 function.
8352 (the_low_target): Install aarch64_get_syscall_trapinfo.
8353
4cc32bec
YQ
83542016-06-28 Yao Qi <yao.qi@linaro.org>
8355
8356 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8357 Callers updated.
8358 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8359 Remove parameter sysno.
8360 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8361 sysret.
8362
782c1122
AA
83632016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8364
8365 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8366 (s390_emit_ne_goto): Likewise.
8367 (s390_emit_lt_goto): Likewise.
8368 (s390_emit_le_goto): Likewise.
8369 (s390_emit_gt_goto): Likewise.
8370 (s390_emit_ge_goto): Likewise.
8371 (s390x_emit_eq_goto): Likewise.
8372 (s390x_emit_ne_goto): Likewise.
8373 (s390x_emit_lt_goto): Likewise.
8374 (s390x_emit_le_goto): Likewise.
8375 (s390x_emit_gt_goto): Likewise.
8376 (s390x_emit_ge_goto): Likewise.
8377 (s390_emit_ops_impl): Mark variable static.
8378 (s390x_emit_ops): Likewise.
8379
2e7b624b
YQ
83802016-06-17 Yao Qi <yao.qi@linaro.org>
8381
8382 * linux-low.c (handle_extended_wait): Call
8383 uninsert_reinsert_breakpoints for the parent process. Remove
8384 reinsert breakpoints from the child process. Reinsert them to
8385 the parent process when vfork is done.
8386 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8387 (reinsert_reinsert_breakpoints): New function.
8388 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8389 (reinsert_reinsert_breakpoints): Declare.
8390
8a81c5d7
YQ
83912016-06-17 Yao Qi <yao.qi@linaro.org>
8392
8393 * linux-low.c (handle_extended_wait): If the parent is doing
8394 step-over, remove the reinsert breakpoints from the forked child.
8395
f50bf8e5
YQ
83962016-06-17 Yao Qi <yao.qi@linaro.org>
8397
8398 * linux-low.c (unsuspend_all_lwps): Declare.
8399 (linux_low_filter_event): If thread exited, call finish_step_over.
8400 If step-over is finished, unsuspend other threads.
8401
8376a3cb
YQ
84022016-06-17 Yao Qi <yao.qi@linaro.org>
8403
8404 * linux-low.c (linux_resume_one_lwp_throw): Assert
8405 has_reinsert_breakpoints returns false.
8406 * mem-break.c (delete_disabled_breakpoints): Assert
8407 bp type isn't reinsert_breakpoint.
8408
f79b145d
YQ
84092016-06-17 Yao Qi <yao.qi@linaro.org>
8410
8411 * linux-low.c (maybe_hw_step): New function.
8412 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8413 (finish_step_over): Switch current_thread to lwp temporarily,
8414 and assert has_reinsert_breakpoints returns true.
8415 (proceed_one_lwp): Call maybe_hw_step.
8416 * mem-break.c (has_reinsert_breakpoints): New function.
8417 * mem-break.h (has_reinsert_breakpoints): Declare.
8418
0ae534d2
JT
84192016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8420
8421 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8422
fcdad592
YQ
84232016-05-17 Yao Qi <yao.qi@linaro.org>
8424
8425 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8426 instead of find_inferior.
8427
9e784964
YQ
84282016-05-05 Yao Qi <yao.qi@linaro.org>
8429
8430 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8431 Initialize res to zero.
8432
cf2ebb6e
YQ
84332016-05-05 Yao Qi <yao.qi@linaro.org>
8434
8435 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8436 to uint32_t.
8437
c1aebf87
UW
84382016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8439
8440 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8441 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8442 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8443
35fd2deb 84442016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8445 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8446
8447 * tracepoint.c (write_inferior_int8): New function.
8448 (cmd_qtenable_disable): Write enable flag using
8449 write_inferior_int8.
8450
484b3c32
YQ
84512016-04-25 Yao Qi <yao.qi@linaro.org>
8452
8453 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8454 (need_step_over_p): Return zero if the LWP has pending signals
8455 can be delivered on software single step target.
8456
85ba7d86
YQ
84572016-04-25 Yao Qi <yao.qi@linaro.org>
8458
8459 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8460 return instead of error.
8461
3539aa13
YQ
84622016-04-22 Yao Qi <yao.qi@linaro.org>
8463
8464 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8465 to 23.
8466
5b061e98
YQ
84672016-04-22 Yao Qi <yao.qi@linaro.org>
8468
8469 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8470 signal when stepping over breakpoint with software single
8471 step.
8472
3451269c
PA
84732016-04-21 Pedro Alves <palves@redhat.com>
8474
8475 * linux-s390-low.c (s390_collect_ptrace_register)
8476 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8477 add casts.
8478 (s390_check_regset): Use void * instead of gdb_byte *.
8479
a2358508
PA
84802016-04-20 Pedro Alves <palves@redhat.com>
8481
8482 * configure: Renegerate.
8483
6885166d
YQ
84842016-04-20 Yao Qi <yao.qi@linaro.org>
8485
8486 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8487 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8488 number 16.
8489 (arm_store_gregset): Likewise.
8490
2b863f51
WT
84912016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8492
8493 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8494 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8495 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8496 (amd64-avx-mpx-linux.c): New rules.
8497 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8498 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8499 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8500 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8501 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8502 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8503 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8504 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8505 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8506 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8507 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8508 * linux-x86-low.c (x86_linux_read_description): Add case for
8509 X86_XSTATE_AVX_MPX_MASK.
8510 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8511 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8512 init_registers_i386_avx_mpx_linux.
8513 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8514 (initialize_low_tracepoint): Call
8515 init_registers_i386_avx_mpx_linux.
8516 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8517 (initialize_low_tracepoint): Call
8518 init_registers_amd64_avx_mpx_linux.
8519 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8520 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8521 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8522 declarations.
8523
9b30624b
PA
85242016-04-18 Pedro Alves <palves@redhat.com>
8525
8526 * configure: Regenerate.
8527
45e3745e
AT
85282016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8529
8530 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8531 (aarch64_emit_sub): Likewise.
8532
2afc13ff
PA
85332016-04-12 Pedro Alves <palves@redhat.com>
8534
8535 * utils.c (prepare_to_throw_exception): Delete.
8536
6e774b13
SM
85372016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8538
8539 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8540
4dca19f8
MK
85412016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8542
8543 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8544
d0a9981f
MK
85452016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8546
8547 * linux-aarch64-ipa.c: Add <elf.h> include.
8548 * linux-ppc-ipa.c: Add <elf.h> include.
8549 * linux-s390-ipa.c: Add <elf.h> include.
8550
252db07e
MK
85512016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8552
8553 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8554 (get_raw_reg_ptr): Likewise.
8555 (get_trace_state_variable_value_ptr): Likewise.
8556 (set_trace_state_variable_value_ptr): Likewise.
8557 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8558 char *.
8559
14e2b6d9
MK
85602016-03-31 Wei-cheng Wang <cole945@gmail.com>
8561 Marcin Kościelnicki <koriakin@0x04.net>
8562
8563 PR/17221
8564 * linux-ppc-low.c (emit_insns): New function.
8565 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8566 (ppc_emit_prologue): New function.
8567 (ppc_emit_epilogue): New function.
8568 (ppc_emit_add): New function.
8569 (ppc_emit_sub): New function.
8570 (ppc_emit_mul): New function.
8571 (ppc_emit_lsh): New function.
8572 (ppc_emit_rsh_signed): New function.
8573 (ppc_emit_rsh_unsigned): New function.
8574 (ppc_emit_ext): New function.
8575 (ppc_emit_zero_ext): New function.
8576 (ppc_emit_log_not): New function.
8577 (ppc_emit_bit_and): New function.
8578 (ppc_emit_bit_or): New function.
8579 (ppc_emit_bit_xor): New function.
8580 (ppc_emit_bit_not): New function.
8581 (ppc_emit_equal): New function.
8582 (ppc_emit_less_signed): New function.
8583 (ppc_emit_less_unsigned): New function.
8584 (ppc_emit_ref): New function.
8585 (ppc_emit_const): New function.
8586 (ppc_emit_reg): New function.
8587 (ppc_emit_pop): New function.
8588 (ppc_emit_stack_flush): New function.
8589 (ppc_emit_swap): New function.
8590 (ppc_emit_stack_adjust): New function.
8591 (ppc_emit_call): New function.
8592 (ppc_emit_int_call_1): New function.
8593 (ppc_emit_void_call_2): New function.
8594 (ppc_emit_if_goto): New function.
8595 (ppc_emit_goto): New function.
8596 (ppc_emit_eq_goto): New function.
8597 (ppc_emit_ne_goto): New function.
8598 (ppc_emit_lt_goto): New function.
8599 (ppc_emit_le_goto): New function.
8600 (ppc_emit_gt_goto): New function.
8601 (ppc_emit_ge_goto): New function.
8602 (ppc_write_goto_address): New function.
8603 (ppc_emit_ops_impl): New static variable.
8604 (ppc64v1_emit_prologue): New function.
8605 (ppc64v2_emit_prologue): New function.
8606 (ppc64_emit_epilogue): New function.
8607 (ppc64_emit_add): New function.
8608 (ppc64_emit_sub): New function.
8609 (ppc64_emit_mul): New function.
8610 (ppc64_emit_lsh): New function.
8611 (ppc64_emit_rsh_signed): New function.
8612 (ppc64_emit_rsh_unsigned): New function.
8613 (ppc64_emit_ext): New function.
8614 (ppc64_emit_zero_ext): New function.
8615 (ppc64_emit_log_not): New function.
8616 (ppc64_emit_bit_and): New function.
8617 (ppc64_emit_bit_or): New function.
8618 (ppc64_emit_bit_xor): New function.
8619 (ppc64_emit_bit_not): New function.
8620 (ppc64_emit_equal): New function.
8621 (ppc64_emit_less_signed): New function.
8622 (ppc64_emit_less_unsigned): New function.
8623 (ppc64_emit_ref): New function.
8624 (ppc64_emit_const): New function.
8625 (ppc64v1_emit_reg): New function.
8626 (ppc64v2_emit_reg): New function.
8627 (ppc64_emit_pop): New function.
8628 (ppc64_emit_stack_flush): New function.
8629 (ppc64_emit_swap): New function.
8630 (ppc64v1_emit_call): New function.
8631 (ppc64v2_emit_call): New function.
8632 (ppc64v1_emit_int_call_1): New function.
8633 (ppc64v2_emit_int_call_1): New function.
8634 (ppc64v1_emit_void_call_2): New function.
8635 (ppc64v2_emit_void_call_2): New function.
8636 (ppc64_emit_if_goto): New function.
8637 (ppc64_emit_eq_goto): New function.
8638 (ppc64_emit_ne_goto): New function.
8639 (ppc64_emit_lt_goto): New function.
8640 (ppc64_emit_le_goto): New function.
8641 (ppc64_emit_gt_goto): New function.
8642 (ppc64_emit_ge_goto): New function.
8643 (ppc64v1_emit_ops_impl): New static variable.
8644 (ppc64v2_emit_ops_impl): New static variable.
8645 (ppc_emit_ops): New function.
8646 (linux_low_target): Wire in ppc_emit_ops.
8647
a2174ba4
MK
86482016-03-31 Wei-cheng Wang <cole945@gmail.com>
8649 Marcin Kościelnicki <koriakin@0x04.net>
8650
8651 PR/17221
8652 * Makefile.in: Add powerpc-*-ipa.o
8653 * configure.srv: Add ipa_obj for powerpc*-linux.
8654 * linux-ppc-ipa.c: New file.
8655 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8656 includes.
8657 (PPC_FIELD): New macro.
8658 (PPC_SEXT): New macro.
8659 (PPC_OP6): New macro.
8660 (PPC_BO): New macro.
8661 (PPC_LI): New macro.
8662 (PPC_BD): New macro.
8663 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8664 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8665 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8666 (ppc_get_thread_area): New function.
8667 (is_elfv2_inferior): New function.
8668 (gen_ds_form): New function.
8669 (GEN_STD): New macro.
8670 (GEN_STDU): New macro.
8671 (GEN_LD): New macro.
8672 (GEN_LDU): New macro.
8673 (gen_d_form): New function.
8674 (GEN_ADDI): New macro.
8675 (GEN_ADDIS): New macro.
8676 (GEN_LI): New macro.
8677 (GEN_LIS): New macro.
8678 (GEN_ORI): New macro.
8679 (GEN_ORIS): New macro.
8680 (GEN_LWZ): New macro.
8681 (GEN_STW): New macro.
8682 (GEN_STWU): New macro.
8683 (gen_xfx_form): New function.
8684 (GEN_MFSPR): New macro.
8685 (GEN_MTSPR): New macro.
8686 (GEN_MFCR): New macro.
8687 (GEN_MTCR): New macro.
8688 (GEN_SYNC): New macro.
8689 (GEN_LWSYNC): New macro.
8690 (gen_x_form): New function.
8691 (GEN_OR): New macro.
8692 (GEN_MR): New macro.
8693 (GEN_LWARX): New macro.
8694 (GEN_STWCX): New macro.
8695 (GEN_CMPW): New macro.
8696 (gen_md_form): New function.
8697 (GEN_RLDICL): New macro.
8698 (GEN_RLDICR): New macro.
8699 (gen_i_form): New function.
8700 (GEN_B): New macro.
8701 (GEN_BL): New macro.
8702 (gen_b_form): New function.
8703 (GEN_BNE): New macro.
8704 (GEN_LOAD): New macro.
8705 (GEN_STORE): New macro.
8706 (gen_limm): New function.
8707 (gen_atomic_xchg): New function.
8708 (gen_call): New function.
8709 (ppc_relocate_instruction): New function.
8710 (ppc_install_fast_tracepoint_jump_pad): New function.
8711 (ppc_get_min_fast_tracepoint_insn_len): New function.
8712 (ppc_get_ipa_tdesc_idx): New function.
8713 (the_low_target): Wire in the new functions.
8714 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8715 tdescs.
8716 * linux-ppc-tdesc.h: New file.
8717
a13c4696
MK
87182016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8719
8720 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8721 (alloc_jump_pad_buffer): New function.
8722 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8723 (alloc_jump_pad_buffer): New function.
8724 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8725 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8726 (alloc_jump_pad_buffer): New function.
8727 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8728 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8729 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8730 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8731
1cda1512
MK
87322016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8733
8734 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8735 * linux-amd64-ipa.c: Likewise.
8736 * linux-i386-ipa.c: Likewise.
8737 * linux-s390-ipa.c: Likewise.
8738 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8739 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8740 set_trace_state_variable_value_ptr.
8741 (struct ipa_sym_addresses): Likewise.
8742 (symbol_list): Likewise.
8743 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8744 accessing gdb_collect directly.
8745 (gdb_collect_ptr_type): New typedef.
8746 (get_raw_reg_ptr_type): New typedef.
8747 (get_trace_state_variable_value_ptr_type): New typedef.
8748 (set_trace_state_variable_value_ptr_type): New typedef.
8749 (gdb_collect_ptr): New global.
8750 (get_raw_reg_ptr): New global.
8751 (get_trace_state_variable_value_ptr): New global.
8752 (set_trace_state_variable_value_ptr): New global.
8753 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8754 accessing get_raw_reg directly.
8755 (get_get_tsv_func_addr): Likewise for
8756 get_trace_state_variable_value_ptr.
8757 (get_set_tsv_func_addr): Likewise for
8758 set_trace_state_variable_value_ptr.
8759 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8760
72fb5488
SM
87612016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8762
8763 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8764
28170b88
MK
87652016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8766
8767 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8768 packets.
8769 (relocate_instruction): Remove own_buf.
8770 * server.c (own_buf): Make global.
8771 (handle_v_requests): Make global.
8772 * server.h (own_buf): New declaration.
8773 (handle_v_requests): New prototype.
8774
f39e8743
MK
87752016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8776
8777 PR 18377
8778 * linux-s390-low.c (add_insns): New function.
8779 (s390_emit_prologue): New function.
8780 (s390_emit_epilogue): New function.
8781 (s390_emit_add): New function.
8782 (s390_emit_sub): New function.
8783 (s390_emit_mul): New function.
8784 (s390_emit_lsh): New function.
8785 (s390_emit_rsh_signed): New function.
8786 (s390_emit_rsh_unsigned): New function.
8787 (s390_emit_ext): New function.
8788 (s390_emit_log_not): New function.
8789 (s390_emit_bit_and): New function.
8790 (s390_emit_bit_or): New function.
8791 (s390_emit_bit_xor): New function.
8792 (s390_emit_bit_not): New function.
8793 (s390_emit_equal): New function.
8794 (s390_emit_less_signed): New function.
8795 (s390_emit_less_unsigned): New function.
8796 (s390_emit_ref): New function.
8797 (s390_emit_if_goto): New function.
8798 (s390_emit_goto): New function.
8799 (s390_write_goto_address): New function.
8800 (s390_emit_litpool): New function.
8801 (s390_emit_const): New function.
8802 (s390_emit_call): New function.
8803 (s390_emit_reg): New function.
8804 (s390_emit_pop): New function.
8805 (s390_emit_stack_flush): New function.
8806 (s390_emit_zero_ext): New function.
8807 (s390_emit_swap): New function.
8808 (s390_emit_stack_adjust): New function.
8809 (s390_emit_set_r2): New function.
8810 (s390_emit_int_call_1): New function.
8811 (s390_emit_void_call_2): New function.
8812 (s390_emit_eq_goto): New function.
8813 (s390_emit_ne_goto): New function.
8814 (s390_emit_lt_goto): New function.
8815 (s390_emit_le_goto): New function.
8816 (s390_emit_gt_goto): New function.
8817 (s390_emit_ge_goto): New function.
8818 (s390x_emit_prologue): New function.
8819 (s390x_emit_epilogue): New function.
8820 (s390x_emit_add): New function.
8821 (s390x_emit_sub): New function.
8822 (s390x_emit_mul): New function.
8823 (s390x_emit_lsh): New function.
8824 (s390x_emit_rsh_signed): New function.
8825 (s390x_emit_rsh_unsigned): New function.
8826 (s390x_emit_ext): New function.
8827 (s390x_emit_log_not): New function.
8828 (s390x_emit_bit_and): New function.
8829 (s390x_emit_bit_or): New function.
8830 (s390x_emit_bit_xor): New function.
8831 (s390x_emit_bit_not): New function.
8832 (s390x_emit_equal): New function.
8833 (s390x_emit_less_signed): New function.
8834 (s390x_emit_less_unsigned): New function.
8835 (s390x_emit_ref): New function.
8836 (s390x_emit_if_goto): New function.
8837 (s390x_emit_const): New function.
8838 (s390x_emit_call): New function.
8839 (s390x_emit_reg): New function.
8840 (s390x_emit_pop): New function.
8841 (s390x_emit_stack_flush): New function.
8842 (s390x_emit_zero_ext): New function.
8843 (s390x_emit_swap): New function.
8844 (s390x_emit_stack_adjust): New function.
8845 (s390x_emit_int_call_1): New function.
8846 (s390x_emit_void_call_2): New function.
8847 (s390x_emit_eq_goto): New function.
8848 (s390x_emit_ne_goto): New function.
8849 (s390x_emit_lt_goto): New function.
8850 (s390x_emit_le_goto): New function.
8851 (s390x_emit_gt_goto): New function.
8852 (s390x_emit_ge_goto): New function.
8853 (s390_emit_ops): New function.
8854 (struct linux_target_ops): Fill in emit_ops hook.
8855
abd9baf9
MK
88562016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8857
8858 PR 18377
8859 * Makefile.in: Add s390 IPA files.
8860 * configure.srv: Build IPA for s390.
8861 * linux-s390-ipa.c: New file.
8862 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8863 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8864 (tdesc_s390_linux32): Likewise.
8865 (init_registers_s390_linux32v1): Likewise.
8866 (tdesc_s390_linux32v1): Likewise.
8867 (init_registers_s390_linux32v2): Likewise.
8868 (tdesc_s390_linux32v2): Likewise.
8869 (init_registers_s390_linux64): Likewise.
8870 (tdesc_s390_linux64): Likewise.
8871 (init_registers_s390_linux64v1): Likewise.
8872 (tdesc_s390_linux64v1): Likewise.
8873 (init_registers_s390_linux64v2): Likewise.
8874 (tdesc_s390_linux64v2): Likewise.
8875 (init_registers_s390_te_linux64): Likewise.
8876 (tdesc_s390_te_linux64): Likewise.
8877 (init_registers_s390_vx_linux64): Likewise.
8878 (tdesc_s390_vx_linux64): Likewise.
8879 (init_registers_s390_tevx_linux64): Likewise.
8880 (tdesc_s390_tevx_linux64): Likewise.
8881 (init_registers_s390x_linux64): Likewise.
8882 (tdesc_s390x_linux64): Likewise.
8883 (init_registers_s390x_linux64v1): Likewise.
8884 (tdesc_s390x_linux64v1): Likewise.
8885 (init_registers_s390x_linux64v2): Likewise.
8886 (tdesc_s390x_linux64v2): Likewise.
8887 (init_registers_s390x_te_linux64): Likewise.
8888 (tdesc_s390x_te_linux64): Likewise.
8889 (init_registers_s390x_vx_linux64): Likewise.
8890 (tdesc_s390x_vx_linux64): Likewise.
8891 (init_registers_s390x_tevx_linux64): Likewise.
8892 (tdesc_s390x_tevx_linux64): Likewise.
8893 (have_hwcap_s390_vx): New static variable.
8894 (s390_arch_setup): Fill have_hwcap_s390_vx.
8895 (s390_get_thread_area): New function.
8896 (s390_ft_entry_gpr_esa): New const.
8897 (s390_ft_entry_gpr_zarch): New const.
8898 (s390_ft_entry_misc): New const.
8899 (s390_ft_entry_fr): New const.
8900 (s390_ft_entry_vr): New const.
8901 (s390_ft_main_31): New const.
8902 (s390_ft_main_64): New const.
8903 (s390_ft_exit_fr): New const.
8904 (s390_ft_exit_vr): New const.
8905 (s390_ft_exit_misc): New const.
8906 (s390_ft_exit_gpr_esa): New const.
8907 (s390_ft_exit_gpr_zarch): New const.
8908 (append_insns): New function.
8909 (s390_relocate_instruction): New function.
8910 (s390_install_fast_tracepoint_jump_pad): New function.
8911 (s390_get_min_fast_tracepoint_insn_len): New function.
8912 (s390_get_ipa_tdesc_idx): New function.
8913 (struct linux_target_ops): Wire in the above functions.
8914 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8915 * linux-s390-tdesc.h: New file.
8916
a4105d04
MK
89172016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8918
8919 * linux-s390-low.c (s390_supports_tracepoints): New function.
8920 (struct linux_target_ops): Fill supports_tracepoints hook.
8921
35ac8b3e
YQ
89222016-03-18 Yao Qi <yao.qi@linaro.org>
8923
8924 * linux-low.c (lwp_signal_can_be_delivered): New function.
8925 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8926
94610ec4
YQ
89272016-03-18 Yao Qi <yao.qi@linaro.org>
8928
8929 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8930 0 if signal is enqueued. Remove 'signal' from one debugging
8931 message. Move one debugging message to some lines below.
8932 Remove code setting 'signal' to 0.
8933
80aea927
YQ
89342016-03-18 Yao Qi <yao.qi@linaro.org>
8935
8936 * linux-low.c (linux_low_filter_event): Remove redundant
8937 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8938
b04fd3be
MK
89392016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8940
8941 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8942 (struct linux_target_ops): Wire in the above.
8943
c40c8d4b
YQ
89442016-03-03 Yao Qi <yao.qi@linaro.org>
8945
8946 * linux-low.c: Update comments to start_step_over.
8947
0f8288ae
YQ
89482016-03-03 Yao Qi <yao.qi@linaro.org>
8949
8950 PR server/19736
8951 * linux-low.c (handle_extended_wait): Set child suspended
8952 if event_lwp->bp_reinsert isn't zero.
8953
fdbd04a8
YQ
89542016-03-02 Yao Qi <yao.qi@linaro.org>
8955
8956 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8957 enqueue_pending_signal.
8958
6896a8fa
MK
89592016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8960
8961 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8962 is actually loaded.
8963
ab503087
MK
89642016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8965
8966 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8967 (s390_regmap_3264) [!__s390x__]: New global.
8968 (s390_collect_ptrace_register): Skip map entries containing -1.
8969 (s390_supply_ptrace_register): Ditto.
8970 (s390_fill_gprs_high): New function.
8971 (s390_store_gprs_high): New function.
8972 (s390_regsets): Add NT_S390_HIGH_GPRS.
8973 (s390_get_hwcap): Enable on 31-bit.
8974 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8975 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8976 Detect NT_S390_HIGH_GPRS.
8977 (s390_usrregs_info_3264): Enable on 31-bit.
8978 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8979 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8980
ae91f625
MK
89812016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8982
8983 PR gdb/13808
8984 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8985 * configure.srv: Ditto.
8986 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8987 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8988 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8989 (init_registers_amd64_linux): Remove prototype.
8990 (tdesc_amd64_linux): Remove declaration.
8991 (get_ipa_tdesc): New function.
8992 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8993 initialize remaining tdescs.
8994 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8995 (init_registers_i386_linux): Remove prototype.
8996 (tdesc_i386_linux): Remove declaration.
8997 (get_ipa_tdesc): New function.
8998 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8999 initialize remaining tdescs.
9000 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9001 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9002 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9003 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9004 (x86_get_ipa_tdesc_idx): New function.
9005 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9006 * linux-x86-tdesc.h: New file.
9007 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9008 (target_get_ipa_tdesc_idx): New macro.
9009 * tracepoint.c (ipa_tdesc_idx): New macro.
9010 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9011 (symbol_list): Add ipa_tdesc_idx.
9012 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9013 (ipa_tdesc): Remove.
9014 (ipa_tdesc_idx): New variable.
9015 (get_context_regcache): Use get_ipa_tdesc.
9016 (gdb_collect): Ditto.
9017 (gdb_probe): Ditto.
9018 * tracepoint.h (get_ipa_tdesc): New prototype.
9019 (ipa_tdesc): Remove.
9020
e7ad2f14
PA
90212016-02-24 Pedro Alves <palves@redhat.com>
9022
9023 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9024 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9025 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9026 Factor out common code between the USE_SIGTRAP_SIGINFO and
9027 !USE_SIGTRAP_SIGINFO blocks.
9028 (linux_low_filter_event): Call save_stop_reason instead of
9029 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9030 Update comments.
9031 (linux_wait_1): Update comments.
9032
657f9cde
WW
90332016-02-24 Wei-cheng Wang <cole945@gmail.com>
9034
9035 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9036 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9037 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9038 ppc_insert_point, ppc_remove_point.
9039
b00b61e1
MK
90402016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9041
9042 * linux-s390-low.c (s390_supports_z_point_type): New function.
9043 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9044
553cb527
YQ
90452016-02-16 Yao Qi <yao.qi@linaro.org>
9046
9047 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9048 PC. Get pc from regcache_read_pc.
9049
a5652c21
YQ
90502016-02-12 Yao Qi <yao.qi@linaro.org>
9051
9052 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9053 or linux_get_pc_32bit.
9054 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9055
ed443b61
YQ
90562016-02-12 Yao Qi <yao.qi@linaro.org>
9057
9058 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9059 arm_linux_get_next_pcs_fixup.
9060
020ecd38
MK
90612016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9062
9063 * tracepoint.c (x_tracepoint_action_download): Change
9064 write_inferior_data_ptr to write_inferior_data_pointer.
9065 (cmd_qtstart): Likewise.
9066 (write_inferior_data_ptr): Remove.
9067 (download_agent_expr): Change write_inferior_data_ptr to
9068 write_inferior_data_pointer.
9069 (download_tracepoint_1): Likewise.
9070 (download_tracepoint): Likewise.
9071 (download_trace_state_variables): Likewise.
9072
7cae9051
WW
90732016-02-11 Wei-cheng Wang <cole945@gmail.com>
9074 Marcin Kościelnicki <koriakin@0x04.net>
9075
9076 * tracepoint.c (struct tracepoint_action_ops): Remove.
9077 (struct tracepoint_action): Remove ops.
9078 (m_tracepoint_action_download, r_tracepoint_action_download)
9079 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9080 size and offset accordingly.
9081 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9082 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9083 (tracepoint_action_send, tracepoint_action_download): New functions.
9084 Helpers for trace action handlers.
9085 (add_tracepoint_action): Remove setup actions ops.
9086 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9087
9f6a71b4
YQ
90882016-02-10 Yao Qi <yao.qi@linaro.org>
9089
9090 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9091
1e94266c
SM
90922016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9093
9094 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9095 to AC_OUTPUT.
9096 * configure: Regenerate.
9097
8adce034
SM
90982016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9099
9100 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9101 void * to gdb_byte *.
9102 * linux-low.c (siginfo_fixup): Likewise.
9103 (linux_xfer_siginfo): Likewise.
9104 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9105 Likewise.
9106 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9107
93813b37
WT
91082016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9109
9110 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9111 to srv_tgtobj.
9112 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9113 to srv_tgtobj.
9114 * linux-x86-low.c [__x86_64__]: Include
9115 "nat/amd64-linux-siginfo.h".
9116 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9117 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9118 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9119 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9120 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9121 (cpt_si_fd, si_timerid, si_overrun): Move from
9122 nat/amd64-linux-siginfo.c.
9123 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9124
8424cc97
SM
91252016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9126
9127 * server.c (skip_to_semicolon): Remove.
9128 (process_point_options): Use strchrnul instead of
9129 skip_to_semicolon.
9130
4d18591b
YQ
91312016-01-26 Yao Qi <yao.qi@linaro.org>
9132
9133 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9134 * linux-low.c (install_software_single_step_breakpoints): Don't
9135 call regcache_read_pc.
9136 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9137 argument pc.
9138
d8020970
YQ
91392016-01-26 Yao Qi <yao.qi@linaro.org>
9140
9141 * linux-low.c (install_software_single_step_breakpoints): Call
9142 regcache_read_pc instead of get_pc.
9143
8b207339
YQ
91442016-01-26 Yao Qi <yao.qi@linaro.org>
9145
9146 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9147 (unblock_async_io): Rename to ...
9148 (block_unblock_async_io): ... it. New function.
9149 (enable_async_io): Don't install SIGIO handler. Unblock it
9150 instead.
9151 (disable_async_io): Don't ignore SIGIO. Block it instead.
9152 (initialize_async_io): Install SIGIO handler. Don't call
9153 unblock_async_io.
9154
18879fef
YQ
91552016-01-26 Yao Qi <yao.qi@linaro.org>
9156
9157 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9158 first character is '\003', call *the_target->request_interrupt.
9159
a0f8e08a
YQ
91602016-01-25 Yao Qi <yao.qi@linaro.org>
9161
9162 * remote-utils.c (new_thread_notify): Remove.
9163 (dead_thread_notify): Likewise.
9164 * remote-utils.h (new_thread_notify): Remove declaration.
9165 (dead_thread_notify): Likewise.
9166
cc5fd9ab
MK
91672016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9168
9169 * gdb.trace/pending.exp: Fix expected message on continue.
9170
99e8eb11
MK
91712016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9172
9173 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9174 it works properly on big-endian machines where sizeof (CORE_ADDR)
9175 != sizeof (void *).
9176
a994041d
PA
91772016-01-21 Pedro Alves <palves@redhat.com>
9178
9179 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9180 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9181 * configure: Regenerate.
9182
f7a6a40d
YQ
91832016-01-21 Yao Qi <yao.qi@linaro.org>
9184
9185 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9186 is_thumb and set it according to CPSR saved on the stack.
9187 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9188 arm_sigreturn_next_pc.
9189
6f69e520
YQ
91902016-01-18 Yao Qi <yao.qi@linaro.org>
9191
9192 * linux-low.c (linux_set_pc_64bit): New function.
9193 (linux_get_pc_64bit): New function.
9194 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9195 Declare.
9196 * linux-sparc-low.c (debug_threads): Remove declaration.
9197 (sparc_get_pc): Remove.
9198 (the_low_target): Use linux_get_pc_64bit instead of
9199 sparc_get_pc.
9200 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9201 (the_low_target): Use linux_get_pc_64bit and
9202 linux_set_pc_64bit.
9203
276d4552
YQ
92042016-01-18 Yao Qi <yao.qi@linaro.org>
9205
9206 * linux-arm-low.c (debug_threads): Remove declaration.
9207 (arm_get_pc, arm_set_pc): Remove.
9208 (the_low_target): Use linux_get_pc_32bit and
9209 linux_set_pc_32bit.
9210 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9211 (the_low_target): Use linux_get_pc_32bit and
9212 linux_set_pc_32bit.
9213 * linux-cris-low.c (debug_threads): Remove declaration.
9214 (cris_get_pc, cris_set_pc,): Remove.
9215 (the_low_target): Use linux_get_pc_32bit and
9216 linux_set_pc_32bit.
9217 * linux-crisv32-low.c (debug_threads): Remove declaration.
9218 (cris_get_pc, cris_set_pc): Remove.
9219 (the_low_target): Use linux_get_pc_32bit and
9220 linux_set_pc_32bit.
9221 * linux-low.c: Include inttypes.h.
9222 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9223 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9224 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9225 (the_low_target): Use linux_get_pc_32bit and
9226 linux_set_pc_32bit.
9227 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9228 (the_low_target): Use linux_get_pc_32bit and
9229 linux_set_pc_32bit.
9230 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9231 (the_low_target): Use linux_get_pc_32bit and
9232 linux_set_pc_32bit.
9233 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9234 (the_low_target): Use linux_get_pc_32bit and
9235 linux_set_pc_32bit.
9236 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9237 (the_low_target): Use linux_get_pc_32bit and
9238 linux_set_pc_32bit.
9239
eb0edac8
GB
92402016-01-18 Gary Benson <gbenson@redhat.com>
9241
9242 * configure.ac (AC_FUNC_FORK): New check.
9243 * config.in: Regenerate.
9244 * configure: Likewise.
9245
1b451dda
YQ
92462016-01-14 Yao Qi <yao.qi@linaro.org>
9247
9248 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9249 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9250 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9251 arm_get_next_pcs_ctor.
9252
82075af2
JS
92532016-01-12 Josh Stone <jistone@redhat.com>
9254 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9255
9256 * inferiors.h: Include "gdb_vecs.h".
9257 (struct process_info): Add syscalls_to_catch.
9258 * inferiors.c (remove_process): Free syscalls_to_catch.
9259 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9260 syscall_return stops.
9261 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9262 * server.c (handle_general_set): Handle QCatchSyscalls.
9263 (handle_query): Report support for QCatchSyscalls.
9264 * target.h (struct target_ops): Add supports_catch_syscall.
9265 (target_supports_catch_syscall): New macro.
9266 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9267 (struct lwp_info): Add syscall_state.
9268 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9269 Maintain syscall_state and syscalls_to_catch across exec.
9270 (get_syscall_trapinfo): New function, proxy to the_low_target.
9271 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9272 (linux_low_filter_event): Toggle syscall_state entry/return for
9273 syscall traps, and set it ignored for all others.
9274 (gdb_catching_syscalls_p): New function.
9275 (gdb_catch_this_syscall_p): New function.
9276 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9277 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9278 (linux_supports_catch_syscall): New function.
9279 (linux_target_ops): Install it.
9280 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9281 (the_low_target): Install it.
9282
8f13a3ce
MF
92832016-01-12 Mike Frysinger <vapier@gentoo.org>
9284
9285 * acinclude.m4: Include new ../warning.m4 file.
9286 * configure: Regenerated.
9287 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9288
5b3da067
MF
92892016-01-12 Mike Frysinger <vapier@gentoo.org>
9290
9291 * ax.c (is_goto_target): Mark static.
9292 * linux-low.c (register_addr): Likewise.
9293 (linux_fetch_registers, linux_store_registers): Likewise.
9294 * mem-break.c (any_persistent_commands): Fix old prototype.
9295 (add_commands_to_breakpoint): Mark static.
9296 * regcache.c (find_register_by_name): Delete unused func.
9297 * remote-utils.c (hex_or_minus_one): Mark static.
9298 * server.c (monitor_show_help): Mark static.
9299 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9300 handle_v_requests): Likewise.
9301
bc504a31
PA
93022016-01-12 Pedro Alves <palves@redhat.com>
9303
9304 Remove use of the registered trademark symbol throughout.
9305
5a0dd67a
YQ
93062016-01-08 Yao Qi <yao.qi@linaro.org>
9307
9308 * remote-utils.c (getpkt): If c is '\003', call target hook
9309 request_interrupt.
9310
b2ca446f
YQ
93112016-01-06 Yao Qi <yao.qi@linaro.org>
9312
9313 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9314 linux-aarch32-low.c.
9315 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9316 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9317 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9318 (thumb2_breakpoint): Declare.
9319 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9320 linux-aarch32-low.h.
9321 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9322 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9323 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9324
edd88788
JB
93252016-01-01 Joel Brobecker <brobecker@adacore.com>
9326
9327 * gdbreplay.c (gdbreplay_version): Change copyright year in
9328 version message.
9329 * server.c (gdbserver_version): Likewise.
9330
65da7f14
PP
93312015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9332
9333 * server.c (crc32_table): Delete.
9334 (crc32): Use libiberty's xcrc32 function.
9335
4abd5ed2
JB
93362015-12-22 Joel Brobecker <brobecker@adacore.com>
9337
9338 * lynx-low.c (lynx_delete_thread_callback): New function.
9339 (lynx_mourn): Properly delete our process and all of its
9340 threads. Remove call to clear_inferiors.
9341
0e50fe5c
JB
93422015-12-22 Joel Brobecker <brobecker@adacore.com>
9343
9344 * target.c (thread_search_callback): Add check that
9345 the thread_stopped target callback is not NULL before
9346 calling it.
9347
35adc03f
YQ
93482015-12-21 Yao Qi <yao.qi@linaro.org>
9349
9350 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9351 arm breakpoint.
9352
bd2b2909
AT
93532015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9354
9355 * server.c (handle_query): Call target_supports_software_single_step.
9356
7fe5e27e
AT
93572015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9358
9359 * linux-low.c (single_step): New function.
9360 (linux_resume_one_lwp_throw): Call single_step.
9361 (start_step_over): Likewise.
9362
d9311bfa
AT
93632015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9364
9365 * Makefile.in (SFILES): Append arch/arm-linux.c,
9366 arch/arm-get-next-pcs.c.
9367 (arm-linux.o): New rule.
9368 (arm-get-next-pcs.o): New rule.
9369 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9370 arm-linux.o.
9371 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9372 to linux-aarch32-low.c.
9373 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9374 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9375 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9376 (thumb2_breakpoint_len): Likewise.
9377 (arm_is_thumb_mode): Make non-static.
9378 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9379 from linux-aarch32-low.c.
9380 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9381 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9382 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9383 (thumb2_breakpoint_len): Likewise.
9384 (arm_is_thumb_mode): New declaration.
9385 * linux-arm-low.c: Include arch/arm-linux.h
9386 aarch/arm-get-next-pcs.h, sys/syscall.h.
9387 (get_next_pcs_ops): New struct.
9388 (get_next_pcs_addr_bits_remove): New function.
9389 (get_next_pcs_is_thumb): New function.
9390 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9391 (arm_sigreturn_next_pc): Likewise.
9392 (get_next_pcs_syscall_next_pc): Likewise.
9393 (arm_gdbserver_get_next_pcs): Likewise.
9394 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9395 Initialize.
9396 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9397 * server.h: Include gdb_vecs.h.
9398
68ce2059
AT
93992015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9400
9401 * Makefile.in (SFILES): Append common/common-regcache.c.
9402 (OBS): Append common-regcache.o.
9403 (common-regcache.o): New rule.
9404 * regcache.c (init_register_cache): Initialize cache to
9405 REG_UNAVAILABLE.
9406 (regcache_raw_read_unsigned): New function.
9407 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9408 register_status enum.
9409
fa5308bd
AT
94102015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9411
9412 * linux-aarch64-low.c (the_low_targets): Rename
9413 breakpoint_reinsert_addr to get_next_pcs.
9414 * linux-arm-low.c (the_low_targets): Likewise.
9415 * linux-bfin-low.c (the_low_targets): Likewise.
9416 * linux-cris-low.c (the_low_targets): Likewise.
9417 * linux-crisv32-low.c (the_low_targets): Likewise.
9418 * linux-low.c (can_software_single_step): Likewise.
9419 (install_software_single_step_breakpoints): New function.
9420 (start_step_over): Use install_software_single_step_breakpoints.
9421 * linux-low.h: New CORE_ADDR vector.
9422 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9423 get_next_pcs.
9424 * linux-mips-low.c (the_low_targets): Likewise.
9425 * linux-nios2-low.c (the_low_targets): Likewise.
9426 * linux-sparc-low.c (the_low_targets): Likewise.
9427
4a6ed09b
PA
94282015-12-17 Pedro Alves <palves@redhat.com>
9429
9430 * linux-low.c (linux_kill_one_lwp): Remove references to
9431 LinuxThreads.
9432 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9433 to 'kill'.
9434 (linux_init_signals): Delete.
9435 (initialize_low): Adjust.
9436 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9437
7544db95
PA
94382015-12-16 Pedro Alves <palves@redhat.com>
9439
9440 * configure.ac (compiler warning flags): When testing a
9441 -Wno-foo option, check whether -Wfoo works instead.
9442 * configure: Regenerate.
9443
8020350c
DB
94442015-12-11 Don Breazeal <donb@codesourcery.com>
9445
9446 * server.c (process_serial_event): Don't exit from gdbserver
9447 in remote mode if there are still active inferiors.
9448
db91f502
YQ
94492015-12-11 Yao Qi <yao.qi@linaro.org>
9450
9451 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9452 arm_breakpoint_at if the process is 32-bit.
9453
b37a6290
YQ
94542015-12-11 Yao Qi <yao.qi@linaro.org>
9455
9456 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9457 arm breakpoint.
9458
17b1509a
YQ
94592015-12-07 Yao Qi <yao.qi@linaro.org>
9460
9461 * configure.srv: Append arm.o to srv_tgtobj for
9462 aarch64*-*-linux* target.
9463 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9464 from linux-arm-low.c.
9465 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9466 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9467 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9468 (thumb2_breakpoint_len): Likewise.
9469 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9470 (arm_breakpoint_kinds): Likewise.
9471 (arm_breakpoint_kind_from_pc): Likewise.
9472 (arm_sw_breakpoint_from_kind): Likewise.
9473 (arm_breakpoint_kind_from_current_state): Likewise.
9474 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9475 (arm_sw_breakpoint_from_kind): Declare.
9476 (arm_breakpoint_kind_from_current_state): Declare.
9477 (arm_breakpoint_at): Declare.
9478 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9479 arm_sw_breakpoint_from_kind if process is 32-bit.
9480 (aarch64_breakpoint_kind_from_pc): New function.
9481 (aarch64_breakpoint_kind_from_current_state): New function.
9482 (the_low_target): Initialize fields breakpoint_kind_from_pc
9483 and breakpoint_kind_from_current_state.
9484 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9485 linux-aarch32-low.c.
9486 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9487 (arm_breakpoint, arm_breakpoint_len): Likewise.
9488 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9489 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9490 (arm_is_thumb_mode): Likewise.
9491 (arm_breakpoint_at): Likewise.
9492 (arm_breakpoint_kind_from_pc): Likewise.
9493 (arm_sw_breakpoint_from_kind): Likewise.
9494 (arm_breakpoint_kind_from_current_state): Likewise.
9495
9496 Revert:
9497 2015-08-04 Yao Qi <yao.qi@linaro.org>
9498
9499 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9500 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9501 * server.c (extended_protocol): Remove "static".
9502 * server.h (extended_protocol): Declare it.
9503
ece66d65
JS
95042015-12-04 Josh Stone <jistone@redhat.com>
9505
9506 * target.h (struct target_ops) <arch_setup>: Rename to ...
9507 (struct target_ops) <post_create_inferior>: ... this.
9508 (target_arch_setup): Rename to ...
9509 (target_post_create_inferior): ... this, calling post_create_inferior.
9510 * server.c (start_inferior): Update target_arch_setup calls to
9511 target_post_create_inferior.
9512 * linux-low.c (linux_low_ptrace_options): Forward declare.
9513 (linux_arch_setup): Update its comment for general use.
9514 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9515 (struct linux_target_ops): Use linux_post_create_inferior.
9516 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9517 to post_create_inferior.
9518 * nto-low.c (struct nto_target_ops): Likewise.
9519 * spu-low.c (struct spu_target_ops): Likewise.
9520 * win32-low.c (struct win32_target_ops): Likewise.
9521
e58c48b4
AT
95222015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9523
9524 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9525
fbec8956
AT
95262015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9527
9528 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9529 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9530 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9531 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9532 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9533 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9534 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9535 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9536 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9537 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9538 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9539 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9540
9b4c5f87
AT
95412015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9542
9543 * linux-low.c (linux_look_up_symbols): Don't call
9544 linux_supports_traceclone.
9545 * linux-low.h (thread_db_init): Remove use_events argument.
9546 * thread-db.c (thread_db_use_event): Remove global variable.
9547 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9548 (struct thread_db) <td_create_bp>: Remove field.
9549 (thread_db_create_event): Remove function.
9550 (thread_db_enable_reporting): Likewise.
9551 (find_one_thread): Don't check for thread_db_use_events.
9552 (attach_thread): Likewise.
9553 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9554 (try_thread_db_load_1): Don't check for thread_db_use_events.
9555 (thread_db_init): Remove use_events argument and thread events
9556 handling.
9557 (remove_thread_event_breakpoints): Remove function.
9558 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9559
7d00775e
AT
95602015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9561
9562 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9563 New function.
9564 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9565 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9566 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9567 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9568 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9569 Initialize.
9570 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9571 New function.
9572 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9573 * linux-low.c (can_hardware_single_step): Use
9574 supports_hardware_single_step.
9575 (can_software_single_step): New function.
9576 (start_step_over): Call can_software_single_step.
9577 (linux_supports_hardware_single_step): New function.
9578 (struct target_ops) <supports_software_single_step>: Initialize.
9579 * linux-low.h (struct linux_target_ops)
9580 <supports_hardware_single_step>: Initialize.
9581 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9582 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9583 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9584 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9585 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9586 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9587 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9588 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9589 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9590 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9591 Initialize.
9592 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9593 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9594 Initialize.
9595 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9596 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9597 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9598 New function.
9599 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9600 * target.h (struct target_ops): <supports_software_single_step>:
9601 New field.
9602 (target_supports_software_single_step): New macro.
9603
2d97cd35
AT
96042015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9605
9606 * linux-low.c (linux_wait_1): Fix pc advance condition.
9607 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9608 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9609
769ef81f
AT
96102015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9611
9612 * linux-arm-low.c (arm_is_thumb_mode): New function.
9613 (arm_breakpoint_at): Use arm_is_thumb_mode.
9614 (arm_breakpoint_kind_from_current_state): New function.
9615 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9616 Initialize.
9617 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9618 (linux_breakpoint_kind_from_current_state): New function.
9619 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9620 * linux-low.h (struct linux_target_ops)
9621 <breakpoint_kind_from_current_state>: New field.
9622 * target.h (struct target_ops): Likewise.
9623 (target_breakpoint_kind_from_current_state): New macro.
9624
1bebeeca
PA
96252015-11-30 Pedro Alves <palves@redhat.com>
9626
9627 * linux-low.c (linux_resume): Wake up the event loop before
9628 returning.
9629
a67a9fae
PA
96302015-11-30 Pedro Alves <palves@redhat.com>
9631
9632 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9633 check.
9634 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9635 to -1.
9636 * target.c (struct thread_search): New structure.
9637 (thread_search_callback): New function.
9638 (prev_general_thread): New global.
9639 (prepare_to_access_memory, done_accessing_memory): New functions.
9640 * target.h (prepare_to_access_memory, done_accessing_memory):
9641 Replace macros with function declarations.
9642
f2faf941
PA
96432015-11-30 Pedro Alves <palves@redhat.com>
9644
9645 PR 14618
9646 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9647 report TARGET_WAITKIND_NO_RESUMED.
9648 * remote-utils.c (prepare_resume_reply): Handle
9649 TARGET_WAITKIND_NO_RESUMED.
9650 * server.c (report_no_resumed): New global.
9651 (handle_query) <qSupported>: Handle "no-resumed+". Report
9652 "no-resumed+" support.
9653 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9654 return error if the client doesn't support no-resumed events.
9655 (push_stop_notification): New function.
9656 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9657 events if the client supports them.
9658
a681f9c9
PA
96592015-11-30 Pedro Alves <palves@redhat.com>
9660
9661 * linux-low.c (thread_still_has_status_pending_p): Don't check
9662 vCont;t here.
9663 (lwp_resumed): New function.
9664 (status_pending_p_callback): Return early if the LWP is not
9665 supposed to be resumed.
9666
65706a29
PA
96672015-11-30 Pedro Alves <palves@redhat.com>
9668
9669 * linux-low.c (handle_extended_wait): Assert that the LWP's
9670 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9671 thread create events, leave the new child's status pending.
9672 (linux_low_filter_event): If GDB wants to hear about thread exit
9673 events, leave the LWP marked dead and don't delete it.
9674 (linux_wait_for_event_filtered): Don't check for thread exit.
9675 (filter_exit_event): New function.
9676 (linux_wait_1): Use it, when returning an exit event.
9677 (linux_resume_one_lwp_throw): Assert that the LWP's
9678 waitstatus is TARGET_WAITKIND_IGNORE.
9679 * remote-utils.c (prepare_resume_reply): Handle
9680 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9681 * server.c (report_thread_events): New global.
9682 (handle_general_set): Handle QThreadEvents.
9683 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9684 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9685 TARGET_WAITKIND_THREAD_EXITED.
9686 * server.h (report_thread_events): Declare.
9687
56cf4bed
PA
96882015-11-30 Pedro Alves <palves@redhat.com>
9689
9690 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9691 the thread's last_resume_kind was resume_stop.
9692
500c1d85
PA
96932015-11-30 Pedro Alves <palves@redhat.com>
9694
9695 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9696 before returning.
9697
de979965
PA
96982015-11-30 Pedro Alves <palves@redhat.com>
9699
9700 * server.c (handle_v_requests): Handle vCtrlC.
9701
34c65914
PA
97022015-11-30 Pedro Alves <palves@redhat.com>
9703
9704 * gdbthread.h (find_any_thread_of_pid): Declare.
9705 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9706 functions.
9707 * server.c (handle_query): If current_thread is NULL, look for
9708 another thread of the selected process.
9709
79efa585 97102015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9711 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9712
9713 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9714 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9715 name in reply.
9716 * target.h (struct target_ops) <thread_name>: New field.
9717 (target_thread_name): New macro.
9718
80d82c19
JB
97192015-11-23 Joel Brobecker <brobecker@adacore.com>
9720
9721 * regcache.h (regcache_invalidate_pid): Add declaration.
9722 * regcache.c (regcache_invalidate_pid): New function, extracted
9723 from regcache_invalidate.
9724 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9725 Add trivial documentation comment.
9726 * lynx-low.c: Use regcache_invalidate_pid instead of
9727 regcache_invalidate.
9728
64da5dd5
JB
97292015-11-23 Joel Brobecker <brobecker@adacore.com>
9730
9731 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9732 and Elf64_auxv_t if the target is Android.
9733
37ce4055
DE
97342015-11-22 Doug Evans <xdje42@gmail.com>
9735
9736 * target.h: #include <sys/types.h>.
9737
06e03fff
PA
97382015-11-19 Pedro Alves <palves@redhat.com>
9739
9740 * linux-low.c (linux_process_qsupported): Change prototype.
9741 Adjust.
9742 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9743 Change prototype.
9744 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9745 and adjust to loop over all features.
9746 * server.c (handle_query) <qSupported>: Adjust to call
9747 target_process_qsupported once, passing it a vector of unprocessed
9748 features.
9749 * target.h (struct target_ops) <process_qsupported>: Change
9750 prototype.
9751 (target_process_qsupported): Adjust.
9752
9a084706
PA
97532015-11-19 Pedro Alves <palves@redhat.com>
9754
9755 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9756 mode.
9757 * configure: Regenerate.
9758
dad44a1f
PA
97592015-11-19 Pedro Alves <palves@redhat.com>
9760
9761 * configure: Regenerate.
9762
231c0592
YQ
97632015-11-19 Yao Qi <yao.qi@linaro.org>
9764
9765 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9766 type to uint32_t.
9767
6c1c9a8b
YQ
97682015-11-19 Yao Qi <yao.qi@linaro.org>
9769
9770 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9771 (struct aarch64_operand): Move enum out.
9772
9caa3311
YQ
97732015-11-19 Yao Qi <yao.qi@linaro.org>
9774
9775 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9776 struct user_fpsimd_state *.
9777 (aarch64_store_fpregset): Likewise.
9778
6a69a054
YQ
97792015-11-19 Yao Qi <yao.qi@linaro.org>
9780
9781 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9782 struct user_pt_regs *.
9783 (aarch64_store_gregset): Likewise.
9784
1798301e
PA
97852015-11-18 Pedro Alves <palves@redhat.com>
9786
9787 * Makefile.in (all_object_files): Add $IPA_OBJS.
9788
ce7715e2
PA
97892015-11-17 Pedro Alves <palves@redhat.com>
9790
9791 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9792 GDB_SIGNAL_0 and gdb_signal_to_string.
9793
c0879059
PA
97942015-11-17 Pedro Alves <palves@redhat.com>
9795
9796 * win32-low.c (handle_output_debug_string): Remove parameter.
9797 (win32_kill): Remove our_status local and adjust call to
9798 handle_output_debug_string.
9799 (get_child_debug_event): Adjust call to
9800 handle_output_debug_string.
9801
1996e237
SM
98022015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9803
9804 * linux-mips-low.c (mips_fill_gregset): Add cast.
9805 (mips_store_gregset): Likewise.
9806 (mips_fill_fpregset): Likewise.
9807 (mips_store_fpregset): Likewise.
9808
cbec665b
SM
98092015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9810
9811 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9812 priv.
9813
eb3e3c67
SM
98142015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9815
9816 * linux-mips-low.c (mips_linux_new_thread): Change type of
9817 watch_type to enum target_hw_bp_type.
9818
171de4b8
SM
98192015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9820
9821 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9822 Change return type to arm_hwbp_type.
9823
04248ead
SM
98242015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9825
9826 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9827 (arm_store_gregset): Likewise.
9828 * linux-arm-low.c (arm_get_hwcap): Likewise.
9829 (arm_read_description): Likewise.
9830
04b3479c
SM
98312015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9832
9833 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9834
2bc84e8a
SM
98352015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9836
9837 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9838 (ppc_fill_vsxregset): Likewise.
9839 (ppc_store_vsxregset): Likewise.
9840 (ppc_fill_vrregset): Likewise.
9841 (ppc_store_vrregset): Likewise.
9842 (ppc_fill_evrregset): Likewise.
9843 (ppc_store_evrregset): Likewise.
9844
e6c5bb05
SM
98452015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9846
9847 * linux-ppc-low.c (ppc_usrregs_info): Remove
9848 forward-declaration.
9849 (ppc_arch_setup): Move lower in file.
9850
7ea45d72
SM
98512015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9852
9853 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9854 (ps_pdwrite): Likewise.
9855
69291610
HW
98562015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9857
9858 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9859 to after assert checks.
9860
b42945fd
SM
98612015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9862
9863 * proc-service.c (ps_pdread): Add/adjust casts.
9864 (ps_pdwrite): Add/adjust casts.
9865
d6f85c84
SM
98662015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9867
9868 * server.c (handle_search_memory_1): Cast return value of
9869 memmem.
9870
f98cd059
SM
98712015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9872
9873 * server.c (write_qxfer_response): Change type of data to
9874 gdb_byte *.
9875
d2412fa5
PA
98762015-10-29 Pedro Alves <palves@redhat.com>
9877
9878 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9879
c17414a2
PA
98802015-10-29 Pedro Alves <palves@redhat.com>
9881
9882 * tracepoint.c (clear_installed_tracepoints): Add casts.
9883
e053fbc4
PA
98842015-10-29 Pedro Alves <palves@redhat.com>
9885
9886 * server.c (handle_v_cont, process_serial_event): Add enum
9887 gdb_signal casts to signal parsing code.
9888
add67df8
PA
98892015-10-29 Pedro Alves <palves@redhat.com>
9890
9891 * linux-low.h (NULL_REGSET): Define.
9892 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9893 * linux-arm-low.c (arm_regsets): Likewise.
9894 * linux-crisv32-low.c (cris_regsets): Likewise.
9895 * linux-m68k-low.c (m68k_regsets): Likewise.
9896 * linux-mips-low.c (mips_regsets): Likewise.
9897 * linux-nios2-low.c (nios2_regsets): Likewise.
9898 * linux-ppc-low.c (ppc_regsets): Likewise.
9899 * linux-s390-low.c (s390_regsets): Likewise.
9900 * linux-sh-low.c (sh_regsets): Likewise.
9901 * linux-sparc-low.c (sparc_regsets): Likewise.
9902 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9903 * linux-tile-low.c (tile_regsets): Likewise.
9904 * linux-x86-low.c (x86_regsets): Likewise.
9905 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9906
50bc912a
PA
99072015-10-29 Pedro Alves <palves@redhat.com>
9908
9909 * linux-low.h (NULL_REGSET): Define.
9910 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9911 * linux-arm-low.c (arm_regsets): Likewise.
9912 * linux-crisv32-low.c (cris_regsets): Likewise.
9913 * linux-m68k-low.c (m68k_regsets): Likewise.
9914 * linux-mips-low.c (mips_regsets): Likewise.
9915 * linux-nios2-low.c (nios2_regsets): Likewise.
9916 * linux-ppc-low.c (ppc_regsets): Likewise.
9917 * linux-s390-low.c (s390_regsets): Likewise.
9918 * linux-sh-low.c (sh_regsets): Likewise.
9919 * linux-sparc-low.c (sparc_regsets): Likewise.
9920 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9921 * linux-tile-low.c (tile_regsets): Likewise.
9922 * linux-x86-low.c (x86_regsets): Likewise.
9923 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9924
682b2546
DE
99252015-10-26 Doug Evans <dje@google.com>
9926
9927 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9928
963843d4
DE
99292015-10-26 Doug Evans <dje@google.com>
9930
9931 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9932
d41401ac
DE
99332015-10-26 Doug Evans <dje@google.com>
9934
9935 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9936 for debug_printf.
9937 (attach_thread, find_new_threads_callback): Ditto.
9938
3db28855
AT
99392015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9940
9941 * mem-break.h (set_breakpoint_data): Remove.
9942
fb78e89c
AT
99432015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9944
9945 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9946 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9947 (initialize_low): Remove set_breakpoint_data call.
9948 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9949 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9950 (initialize_low): Remove set_breakpoint_data call.
9951 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9952 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9953 (initialize_low): Remove set_breakpoint_data call.
9954
2e6ee069
AT
99552015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9956
9957 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9958 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9959 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9960 * target.h (target_breakpoint_kind_from_pc): New macro.
9961
1652a986
AT
99622015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9963
9964 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9965 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9966 the default breakpoint kind.
9967
abeead09
AT
99682015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9969
9970 * linux-arm-low.c (arm_supports_z_point_type): Add software
9971 breakpoint support.
9972
b0b4b501
AT
99732015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9974
9975 * linux-arm-low.c: Refactor breakpoint definitions.
9976 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9977 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9978
8689682c
AT
99792015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9980
9981 * Makefile.in: Add arm.c/o.
9982 * configure.srv: Likewise.
9983 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9984 (arm_breakpoint_kind_from_pc): New function.
9985 (arm_sw_breakpoint_from_kind): Return proper kind.
9986 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9987
27165294
AT
99882015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9989
9990 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9991 removal.
9992 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9993 (struct raw_breakpoint) <size>: Remove.
9994 (struct raw_breakpoint) <kind>: Add.
9995 (bp_size): New function.
9996 (bp_opcode): Likewise.
9997 (find_raw_breakpoint_at): Adjust for kind.
9998 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9999 (remove_memory_breakpoint): Adjust for kind call bp_size.
10000 (set_raw_breakpoint_at): Adjust for kind.
10001 (set_breakpoint): Likewise.
10002 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10003 (delete_raw_breakpoint): Adjust for kind.
10004 (delete_breakpoint): Likewise.
10005 (find_gdb_breakpoint): Likewise.
10006 (set_gdb_breakpoint_1): Likewise.
10007 (set_gdb_breakpoint): Likewise.
10008 (delete_gdb_breakpoint_1): Likewise.
10009 (delete_gdb_breakpoint): Likewise.
10010 (uninsert_raw_breakpoint): Likewise.
10011 (reinsert_raw_breakpoint): Likewise.
10012 (set_breakpoint_data): Remove.
10013 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10014 (check_mem_read): Adjust for kind call bp_size.
10015 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10016 (clone_one_breakpoint): Adjust for kind.
10017 * mem-break.h (set_gdb_breakpoint): Likewise.
10018 (delete_gdb_breakpoint): Likewise.
10019 * server.c (process_serial_event): Likewise.
10020
dd373349
AT
100212015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10022
10023 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10024 (struct linux_target_ops) <breakpoint>: Remove.
10025 (struct linux_target_ops) <breakpoint_len>: Remove.
10026 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10027 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10028 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10029 (arm_sw_breakpoint_from_kind): New function.
10030 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10031 (struct linux_target_ops) <breakpoint>: Remove.
10032 (struct linux_target_ops) <breakpoint_len>: Remove.
10033 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10034 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10035 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10036 (struct linux_target_ops) <breakpoint>: Remove.
10037 (struct linux_target_ops) <breakpoint_len>: Remove.
10038 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10039 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10040 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10041 (struct linux_target_ops) <breakpoint>: Remove.
10042 (struct linux_target_ops) <breakpoint_len>: Remove.
10043 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10044 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10045 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10046 and sw_breakpoint_from_kind to increment the pc.
10047 (linux_breakpoint_kind_from_pc): New function.
10048 (linux_sw_breakpoint_from_kind): New function.
10049 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10050 (initialize_low): Call breakpoint_kind_from_pc and
10051 sw_breakpoint_from_kind to replace breakpoint_data/len.
10052 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10053 New field.
10054 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10055 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10056 (struct linux_target_ops) <breakpoint>: Remove.
10057 (struct linux_target_ops) <breakpoint_len>: Remove.
10058 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10059 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10060 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10061 (struct linux_target_ops) <breakpoint>: Remove.
10062 (struct linux_target_ops) <breakpoint_len>: Remove.
10063 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10064 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10065 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10066 (struct linux_target_ops) <breakpoint>: Remove.
10067 (struct linux_target_ops) <breakpoint_len>: Remove.
10068 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10069 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10070 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10071 (struct linux_target_ops) <breakpoint>: Remove.
10072 (struct linux_target_ops) <breakpoint_len>: Remove.
10073 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10074 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10075 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10076 (struct linux_target_ops) <breakpoint>: Remove.
10077 (struct linux_target_ops) <breakpoint_len>: Remove.
10078 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10079 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10080 * linux-s390-low.c (s390_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-sh-low.c (sh_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 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10091 (struct linux_target_ops) <breakpoint>: Remove.
10092 (struct linux_target_ops) <breakpoint_len>: Remove.
10093 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10094 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10095 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10096 (struct linux_target_ops) <breakpoint>: Remove.
10097 (struct linux_target_ops) <breakpoint_len>: Remove.
10098 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10099 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10100 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10101 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10102 (struct linux_target_ops) <breakpoint>: Remove.
10103 (struct linux_target_ops) <breakpoint_len>: Remove.
10104 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10105 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10106 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10107 (struct linux_target_ops) <breakpoint>: Remove.
10108 (struct linux_target_ops) <breakpoint_len>: Remove.
10109 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10110 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10111
4cd98a19
AT
101122015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10113
10114 * linux-cris-low.c (cris_get_pc): Remove void arg.
10115
774ee6d2
AR
101162015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10117
10118 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10119 variable name.
10120
833dcd29
AR
101212015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10122
10123 * inferiors.c (thread_pid_matches_callback): New function.
10124 (find_thread_process): New function.
10125 (remove_thread): Reset current_thread.
10126 (remove_process): Assert threads have been removed first.
10127
8d689ee5
YQ
101282015-10-15 Yao Qi <yao.qi@linaro.org>
10129
10130 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10131 if it is 3.
10132 (aarch64_remove_point): Likewise.
10133 * regcache.c (regcache_register_size): New function.
10134
1c2e1515
YQ
101352015-10-12 Yao Qi <yao.qi@linaro.org>
10136
10137 * linux-aarch64-low.c: Update all callers as emit_load_store
10138 is renamed to aarch64_emit_load_store.
10139
e1c587c3
YQ
101402015-10-12 Yao Qi <yao.qi@linaro.org>
10141
10142 * linux-aarch64-low.c: Update all callers of function renaming
10143 from emit_insn to aarch64_emit_insn.
10144
b6542f81
YQ
101452015-10-12 Yao Qi <yao.qi@linaro.org>
10146
10147 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10148 arch/aarch64-insn.h.
10149 (struct aarch64_memory_operand): Likewise.
10150 (ENCODE): Likewise.
10151 (emit_insn): Move to arch/aarch64-insn.c.
10152 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10153 (emit_load_store): Move to arch/aarch64-insn.c.
10154 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10155 (can_encode_int32): Remove.
10156
246994ce
YQ
101572015-10-12 Yao Qi <yao.qi@linaro.org>
10158
10159 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10160 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10161 (aarch64_relocate_instruction): Likewise.
10162 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10163 (struct aarch64_insn_visitor): Likewise.
10164
0badd99f
YQ
101652015-10-12 Yao Qi <yao.qi@linaro.org>
10166
10167 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10168 (struct aarch64_insn_visitor): New.
10169 (struct aarch64_insn_relocation_data): New.
10170 (aarch64_ftrace_insn_reloc_b): New function.
10171 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10172 (aarch64_ftrace_insn_reloc_cb): Likewise.
10173 (aarch64_ftrace_insn_reloc_tb): Likewise.
10174 (aarch64_ftrace_insn_reloc_adr): Likewise.
10175 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10176 (aarch64_ftrace_insn_reloc_others): Likewise.
10177 (visitor): New.
10178 (aarch64_relocate_instruction): Use visitor.
10179
dfaffe9d
YQ
101802015-10-12 Yao Qi <yao.qi@linaro.org>
10181
10182 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10183 int. Add argument buf.
10184 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10185 aarch64_relocate_instruction.
10186
70b439f0
YQ
101872015-10-12 Yao Qi <yao.qi@linaro.org>
10188
10189 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10190 argument insn. Remove local variable insn. Don't call
10191 target_read_uint32.
10192 (aarch64_install_fast_tracepoint_jump_pad): Call
10193 target_read_uint32.
10194
7781c06f
YQ
101952015-09-30 Yao Qi <yao.qi@linaro.org>
10196
10197 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10198 (emit_load_store_pair): Likewise.
10199
9a3c8263
SM
102002015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10201
10202 * dll.c (match_dll): Add cast(s).
10203 (unloaded_dll): Likewise.
10204 * linux-low.c (second_thread_of_pid_p): Likewise.
10205 (delete_lwp_callback): Likewise.
10206 (count_events_callback): Likewise.
10207 (select_event_lwp_callback): Likewise.
10208 (linux_set_resume_request): Likewise.
10209 * server.c (accumulate_file_name_length): Likewise.
10210 (emit_dll_description): Likewise.
10211 (handle_qxfer_threads_worker): Likewise.
10212 (visit_actioned_threads): Likewise.
10213 * thread-db.c (any_thread_of): Likewise.
10214 * tracepoint.c (same_process_p): Likewise.
10215 (match_blocktype): Likewise.
10216 (build_traceframe_info_xml): Likewise.
10217
224c3ddb
SM
102182015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10219
10220 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10221 assignment.
10222 (gdb_unparse_agent_expr): Likewise.
10223 * hostio.c (require_data): Likewise.
10224 (handle_pread): Likewise.
10225 * linux-low.c (disable_regset): Likewise.
10226 (fetch_register): Likewise.
10227 (store_register): Likewise.
10228 (get_dynamic): Likewise.
10229 (linux_qxfer_libraries_svr4): Likewise.
10230 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10231 (set_fast_tracepoint_jump): Likewise.
10232 (uninsert_fast_tracepoint_jumps_at): Likewise.
10233 (reinsert_fast_tracepoint_jumps_at): Likewise.
10234 (validate_inserted_breakpoint): Likewise.
10235 (clone_agent_expr): Likewise.
10236 * regcache.c (init_register_cache): Likewise.
10237 * remote-utils.c (putpkt_binary_1): Likewise.
10238 (decode_M_packet): Likewise.
10239 (decode_X_packet): Likewise.
10240 (look_up_one_symbol): Likewise.
10241 (relocate_instruction): Likewise.
10242 (monitor_output): Likewise.
10243 * server.c (handle_search_memory): Likewise.
10244 (handle_qxfer_exec_file): Likewise.
10245 (handle_qxfer_libraries): Likewise.
10246 (handle_qxfer): Likewise.
10247 (handle_query): Likewise.
10248 (handle_v_cont): Likewise.
10249 (handle_v_run): Likewise.
10250 (captured_main): Likewise.
10251 * target.c (write_inferior_memory): Likewise.
10252 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10253 * tracepoint.c (init_trace_buffer): Likewise.
10254 (add_tracepoint_action): Likewise.
10255 (add_traceframe): Likewise.
10256 (add_traceframe_block): Likewise.
10257 (cmd_qtdpsrc): Likewise.
10258 (cmd_qtdv): Likewise.
10259 (cmd_qtstatus): Likewise.
10260 (response_source): Likewise.
10261 (response_tsv): Likewise.
10262 (cmd_qtnotes): Likewise.
10263 (gdb_collect): Likewise.
10264 (initialize_tracepoint): Likewise.
10265
afbe19f8
PL
102662015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10267
10268 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10269 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10270 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10271 <NOP>: New.
10272 (enum aarch64_condition_codes): New enum.
10273 (w0): New static global.
10274 (fp): Likewise.
10275 (lr): Likewise.
10276 (struct aarch64_memory_operand) <type>: New
10277 MEMORY_OPERAND_POSTINDEX type.
10278 (postindex_memory_operand): New helper function.
10279 (emit_ret): New function.
10280 (emit_load_store_pair): New function, factored out of emit_stp
10281 with support for MEMORY_OPERAND_POSTINDEX.
10282 (emit_stp): Rewrite using emit_load_store_pair.
10283 (emit_ldp): New function.
10284 (emit_load_store): Likewise.
10285 (emit_ldr): Mention post-index instruction in comment.
10286 (emit_ldrh): New function.
10287 (emit_ldrb): New function.
10288 (emit_ldrsw): Mention post-index instruction in comment.
10289 (emit_str): Likewise.
10290 (emit_subs): New function.
10291 (emit_cmp): Likewise.
10292 (emit_and): Likewise.
10293 (emit_orr): Likewise.
10294 (emit_orn): Likewise.
10295 (emit_eor): Likewise.
10296 (emit_mvn): Likewise.
10297 (emit_lslv): Likewise.
10298 (emit_lsrv): Likewise.
10299 (emit_asrv): Likewise.
10300 (emit_mul): Likewise.
10301 (emit_sbfm): Likewise.
10302 (emit_sbfx): Likewise.
10303 (emit_ubfm): Likewise.
10304 (emit_ubfx): Likewise.
10305 (emit_csinc): Likewise.
10306 (emit_cset): Likewise.
10307 (emit_nop): Likewise.
10308 (emit_ops_insns): New helper function.
10309 (emit_pop): Likewise.
10310 (emit_push): Likewise.
10311 (aarch64_emit_prologue): New function.
10312 (aarch64_emit_epilogue): Likewise.
10313 (aarch64_emit_add): Likewise.
10314 (aarch64_emit_sub): Likewise.
10315 (aarch64_emit_mul): Likewise.
10316 (aarch64_emit_lsh): Likewise.
10317 (aarch64_emit_rsh_signed): Likewise.
10318 (aarch64_emit_rsh_unsigned): Likewise.
10319 (aarch64_emit_ext): Likewise.
10320 (aarch64_emit_log_not): Likewise.
10321 (aarch64_emit_bit_and): Likewise.
10322 (aarch64_emit_bit_or): Likewise.
10323 (aarch64_emit_bit_xor): Likewise.
10324 (aarch64_emit_bit_not): Likewise.
10325 (aarch64_emit_equal): Likewise.
10326 (aarch64_emit_less_signed): Likewise.
10327 (aarch64_emit_less_unsigned): Likewise.
10328 (aarch64_emit_ref): Likewise.
10329 (aarch64_emit_if_goto): Likewise.
10330 (aarch64_emit_goto): Likewise.
10331 (aarch64_write_goto_address): Likewise.
10332 (aarch64_emit_const): Likewise.
10333 (aarch64_emit_call): Likewise.
10334 (aarch64_emit_reg): Likewise.
10335 (aarch64_emit_pop): Likewise.
10336 (aarch64_emit_stack_flush): Likewise.
10337 (aarch64_emit_zero_ext): Likewise.
10338 (aarch64_emit_swap): Likewise.
10339 (aarch64_emit_stack_adjust): Likewise.
10340 (aarch64_emit_int_call_1): Likewise.
10341 (aarch64_emit_void_call_2): Likewise.
10342 (aarch64_emit_eq_goto): Likewise.
10343 (aarch64_emit_ne_goto): Likewise.
10344 (aarch64_emit_lt_goto): Likewise.
10345 (aarch64_emit_le_goto): Likewise.
10346 (aarch64_emit_gt_goto): Likewise.
10347 (aarch64_emit_ge_got): Likewise.
10348 (aarch64_emit_ops_impl): New static global variable.
10349 (aarch64_emit_ops): New target function, return
10350 &aarch64_emit_ops_impl.
10351 (struct linux_target_ops): Install it.
10352
bb903df0
PL
103532015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10354
10355 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10356 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10357 aarch64-ipa.o.
10358 * linux-aarch64-ipa.c: New file.
10359 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10360 and endian.h.
10361 (aarch64_get_thread_area): New target method.
10362 (extract_signed_bitfield): New helper function.
10363 (aarch64_decode_ldr_literal): New function.
10364 (enum aarch64_opcodes): New enum.
10365 (struct aarch64_register): New struct.
10366 (struct aarch64_operand): New struct.
10367 (x0): New static global.
10368 (x1): Likewise.
10369 (x2): Likewise.
10370 (x3): Likewise.
10371 (x4): Likewise.
10372 (w2): Likewise.
10373 (ip0): Likewise.
10374 (sp): Likewise.
10375 (xzr): Likewise.
10376 (aarch64_register): New helper function.
10377 (register_operand): Likewise.
10378 (immediate_operand): Likewise.
10379 (struct aarch64_memory_operand): New struct.
10380 (offset_memory_operand): New helper function.
10381 (preindex_memory_operand): Likewise.
10382 (enum aarch64_system_control_registers): New enum.
10383 (ENCODE): New macro.
10384 (emit_insn): New helper function.
10385 (emit_b): New function.
10386 (emit_bcond): Likewise.
10387 (emit_cb): Likewise.
10388 (emit_tb): Likewise.
10389 (emit_blr): Likewise.
10390 (emit_stp): Likewise.
10391 (emit_ldp_q_offset): Likewise.
10392 (emit_stp_q_offset): Likewise.
10393 (emit_load_store): Likewise.
10394 (emit_ldr): Likewise.
10395 (emit_ldrsw): Likewise.
10396 (emit_str): Likewise.
10397 (emit_ldaxr): Likewise.
10398 (emit_stxr): Likewise.
10399 (emit_stlr): Likewise.
10400 (emit_data_processing_reg): Likewise.
10401 (emit_data_processing): Likewise.
10402 (emit_add): Likewise.
10403 (emit_sub): Likewise.
10404 (emit_mov): Likewise.
10405 (emit_movk): Likewise.
10406 (emit_mov_addr): Likewise.
10407 (emit_mrs): Likewise.
10408 (emit_msr): Likewise.
10409 (emit_sevl): Likewise.
10410 (emit_wfe): Likewise.
10411 (append_insns): Likewise.
10412 (can_encode_int32_in): New helper function.
10413 (aarch64_relocate_instruction): New function.
10414 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10415 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10416 (struct linux_target_ops): Install aarch64_get_thread_area,
10417 aarch64_install_fast_tracepoint_jump_pad and
10418 aarch64_get_min_fast_tracepoint_insn_len.
10419
787749ea
PL
104202015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10421
10422 * Makefile.in (aarch64-insn.o): New rule.
10423 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10424
9812b2e6
YQ
104252015-09-21 Yao Qi <yao.qi@linaro.org>
10426
10427 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10428
18fe412b
YQ
104292015-09-21 Yao Qi <yao.qi@linaro.org>
10430
10431 * tracepoint.c (max_jump_pad_size): Remove.
10432
a0cc84cd
YQ
104332015-09-18 Yao Qi <yao.qi@linaro.org>
10434
10435 * linux-aarch64-low.c: Don't include sys/uio.h.
10436 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10437
d78908cf
WW
104382015-09-16 Wei-cheng Wang <cole945@gmail.com>
10439
10440 * tracepoint.c (eval_result_type): Change prototype.
10441 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10442
d57e0d50
PA
104432015-09-15 Pedro Alves <palves@redhat.com>
10444
10445 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10446 Check whether to report exec events instead of checking whether
10447 multiprocess is enabled.
10448
5a676acc
PA
104492015-09-15 Pedro Alves <palves@redhat.com>
10450
10451 PR remote/18965
10452 * remote-utils.c (prepare_resume_reply): Merge
10453 TARGET_WAITKIND_VFORK_DONE switch case with the
10454 TARGET_WAITKIND_FORKED case.
10455
7c5d0fad
YQ
104562015-09-15 Yao Qi <yao.qi@linaro.org>
10457
10458 * server.c (handle_query): Check string comparison using
10459 "else if" instead of "if".
10460
750ce8d1
YQ
104612015-09-15 Yao Qi <yao.qi@linaro.org>
10462
10463 * server.c (vCont_supported): New global variable.
10464 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10465 matches. Append ";vContSupported+" to own_buf.
10466 (handle_v_requests): Append ";s;S" to own_buf if target supports
10467 hardware single step or vCont_supported is false.
10468 (capture_main): Set vCont_supported to zero.
10469
70b90b91
YQ
104702015-09-15 Yao Qi <yao.qi@linaro.org>
10471
10472 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10473 it to ...
10474 (linux_supports_hardware_single_step): ... New function.
10475 (linux_target_ops): Update.
10476 * lynx-low.c (lynx_target_ops): Set field
10477 supports_hardware_single_step to target_can_do_hardware_single_step.
10478 * nto-low.c (nto_target_ops): Likewise.
10479 * spu-low.c (spu_target_ops): Likewise.
10480 * win32-low.c (win32_target_ops): Likewise.
10481 * target.c (target_can_do_hardware_single_step): New function.
10482 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10483 Remove. <supports_hardware_single_step>: New field.
10484 (target_supports_conditional_breakpoints): Remove.
10485 (target_supports_hardware_single_step): New macro.
10486 (target_can_do_hardware_single_step): Declare.
10487 * server.c (handle_query): Use target_supports_hardware_single_step
10488 instead of target_supports_conditional_breakpoints.
10489
ade90bde
YQ
104902015-09-15 Yao Qi <yao.qi@linaro.org>
10491
10492 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10493 function.
10494 (struct linux_target_ops the_low_target): Install
10495 aarch64_linux_siginfo_fixup.
10496
94585166
DB
104972015-09-11 Don Breazeal <donb@codesourcery.com>
10498 Luis Machado <lgustavo@codesourcery.com>
10499
10500 * linux-low.c (linux_mourn): Static declaration.
10501 (linux_arch_setup): Move in front of
10502 handle_extended_wait.
10503 (linux_arch_setup_thread): New function.
10504 (handle_extended_wait): Handle exec events. Call
10505 linux_arch_setup_thread. Make event_lwp argument a
10506 pointer-to-a-pointer.
10507 (check_zombie_leaders): Do not check stopped threads.
10508 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10509 (linux_low_filter_event): Add lwp and thread for exec'ing
10510 non-leader thread if leader thread has been deleted.
10511 Refactor code into linux_arch_setup_thread and call it.
10512 Pass child lwp pointer by reference to handle_extended_wait.
10513 (linux_wait_for_event_filtered): Update comment.
10514 (linux_wait_1): Prevent clobbering exec event status.
10515 (linux_supports_exec_events): New function.
10516 (linux_target_ops) <supports_exec_events>: Initialize new member.
10517 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10518 new member.
10519 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10520 * server.c (report_exec_events): New global variable.
10521 (handle_query): Handle qSupported query for exec-events feature.
10522 (captured_main): Initialize report_exec_events.
10523 * server.h (report_exec_events): Declare new global variable.
10524 * target.h (struct target_ops) <supports_exec_events>: New
10525 member.
10526 (target_supports_exec_events): New macro.
10527 * win32-low.c (win32_target_ops) <supports_exec_events>:
10528 Initialize new member.
10529
0568462b
MM
105302015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10531
10532 * linux-low.c (linux_low_enable_btrace): Remove.
10533 (linux_target_ops): Replace linux_low_enable_btrace with
10534 linux_enable_btrace.
10535
39edd165
YQ
105362015-09-03 Yao Qi <yao.qi@linaro.org>
10537
10538 * linux-aarch64-low.c (aarch64_insert_point): Call
10539 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10540 returns true.
10541
1db33b5a
UW
105422015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10543
10544 * linux-low.c (check_stopped_by_breakpoint): Use
10545 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10546
ab290430
PA
105472015-08-27 Pedro Alves <palves@redhat.com>
10548
10549 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10550
8d749320
SM
105512015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10552
6711b7f8
SM
10553 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10554 the XNEW-family equivalent.
8d749320
SM
10555 (compile_bytecodes): Likewise.
10556 * dll.c (loaded_dll): Likewise.
10557 * event-loop.c (append_callback_event): Likewise.
10558 (create_file_handler): Likewise.
10559 (create_file_event): Likewise.
10560 * hostio.c (handle_open): Likewise.
10561 * inferiors.c (add_thread): Likewise.
10562 (add_process): Likewise.
10563 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10564 * linux-arm-low.c (arm_new_process): Likewise.
10565 (arm_new_thread): Likewise.
10566 * linux-low.c (add_to_pid_list): Likewise.
10567 (linux_add_process): Likewise.
10568 (handle_extended_wait): Likewise.
10569 (add_lwp): Likewise.
10570 (enqueue_one_deferred_signal): Likewise.
10571 (enqueue_pending_signal): Likewise.
10572 (linux_resume_one_lwp_throw): Likewise.
10573 (linux_resume_one_thread): Likewise.
10574 (linux_read_memory): Likewise.
10575 (linux_write_memory): Likewise.
10576 * linux-mips-low.c (mips_linux_new_process): Likewise.
10577 (mips_linux_new_thread): Likewise.
10578 (mips_add_watchpoint): Likewise.
10579 * linux-x86-low.c (initialize_low_arch): Likewise.
10580 * lynx-low.c (lynx_add_process): Likewise.
10581 * mem-break.c (set_raw_breakpoint_at): Likewise.
10582 (set_breakpoint): Likewise.
10583 (add_condition_to_breakpoint): Likewise.
10584 (add_commands_to_breakpoint): Likewise.
10585 (clone_agent_expr): Likewise.
10586 (clone_one_breakpoint): Likewise.
10587 * regcache.c (new_register_cache): Likewise.
10588 * remote-utils.c (look_up_one_symbol): Likewise.
10589 * server.c (queue_stop_reply): Likewise.
10590 (start_inferior): Likewise.
10591 (queue_stop_reply_callback): Likewise.
10592 (handle_target_event): Likewise.
10593 * spu-low.c (fetch_ppc_memory): Likewise.
10594 (store_ppc_memory): Likewise.
10595 * target.c (set_target_ops): Likewise.
10596 * thread-db.c (thread_db_load_search): Likewise.
10597 (try_thread_db_load_1): Likewise.
10598 * tracepoint.c (add_tracepoint): Likewise.
10599 (add_tracepoint_action): Likewise.
10600 (create_trace_state_variable): Likewise.
10601 (cmd_qtdpsrc): Likewise.
10602 (cmd_qtro): Likewise.
10603 (add_while_stepping_state): Likewise.
10604 * win32-low.c (child_add_thread): Likewise.
10605 (get_image_name): Likewise.
10606
ed8b7b42
YQ
106072015-08-25 Yao Qi <yao.qi@linaro.org>
10608
10609 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10610
db3cb7cb
YQ
106112015-08-25 Yao Qi <yao.qi@linaro.org>
10612
10613 * Makefile.in (aarch64-linux.o): New rule.
10614 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10615 srv_tgtobj.
10616 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10617 (aarch64_init_debug_reg_state): Make it extern.
10618 (aarch64_linux_prepare_to_resume): Remove.
10619
f6011a1c
YQ
106202015-08-25 Yao Qi <yao.qi@linaro.org>
10621
10622 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10623 lwp_arch_private_info and ptid_of_lwp.
10624
88e2cf7e
YQ
106252015-08-25 Yao Qi <yao.qi@linaro.org>
10626
10627 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10628 Find proc_info by find_process_pid. All callers updated.
10629
5e35436e
YQ
106302015-08-25 Yao Qi <yao.qi@linaro.org>
10631
10632 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10633 Remove.
10634 (debug_reg_change_callback): Remove.
10635 (aarch64_notify_debug_reg_change): Remove.
10636
4a8a7965
YQ
106372015-08-25 Yao Qi <yao.qi@linaro.org>
10638
10639 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10640 Call current_lwp_ptid.
10641
32a271ee
YQ
106422015-08-25 Yao Qi <yao.qi@linaro.org>
10643
10644 * linux-aarch64-low.c (debug_reg_change_callback): Use
10645 debug_printf.
10646
0d51c8d7
YQ
106472015-08-25 Yao Qi <yao.qi@linaro.org>
10648
10649 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10650
31a43dd5
YQ
106512015-08-25 Yao Qi <yao.qi@linaro.org>
10652
10653 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10654
8ee52567
YQ
106552015-08-25 Yao Qi <yao.qi@linaro.org>
10656
10657 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10658 the code.
10659
ff3f0f45
YQ
106602015-08-25 Yao Qi <yao.qi@linaro.org>
10661
10662 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10663 Remove.
10664 (debug_reg_change_callback): Remove argument entry and add argument
10665 lwp. Remove local variable thread. Don't print thread id in the
10666 debugging output. Don't check whether pid of thread equals to pid.
10667 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10668 iterate_over_lwps instead find_inferior.
10669
3d40fbb5
PA
106702015-08-24 Pedro Alves <palves@redhat.com>
10671
10672 * inferiors.c (get_first_process): New function.
10673 * inferiors.h (get_first_process): New declaration.
10674 * remote-utils.c (read_ptid): Default to the first process in the
10675 list, instead of to the current thread's process.
10676
438e1e42
PA
106772015-08-24 Pedro Alves <palves@redhat.com>
10678
10679 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10680 * event-loop.c: Likewise.
10681 * remote-utils.c: Likewise.
10682 * tracepoint.c: Likewise.
10683
a8c6d4fc
PA
106842015-08-24 Pedro Alves <palves@redhat.com>
10685
10686 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10687 ptid_get_lwp.
10688
99b0bb12
PA
106892015-08-21 Pedro Alves <palves@redhat.com>
10690
10691 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10692 instead of literal 1.
10693
f8904751
PA
106942015-08-21 Pedro Alves <palves@redhat.com>
10695
10696 * tdesc.c (default_description): Explicitly zero-initialize.
10697
465a859e
PA
106982015-08-21 Pedro Alves <palves@redhat.com>
10699
10700 PR gdb/18749
10701 * inferiors.c (remove_thread): Discard any pending stop reply for
10702 this thread.
10703 * server.c (remove_all_on_match_pid): Rename to ...
10704 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10705 instead of a pid.
10706 (discard_queued_stop_replies): Change parameter to a ptid. Now
10707 extern.
10708 (handle_v_kill, kill_inferior_callback, captured_main)
10709 (process_serial_event): Adjust.
10710 * server.h (discard_queued_stop_replies): Declare.
10711
f0db101d
PA
107122015-08-21 Pedro Alves <palves@redhat.com>
10713
10714 * linux-low.c (wait_for_sigstop): Always switch to no thread
10715 selected if the previously current thread dies.
10716 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10717 process instead of the current thread's.
10718 * remote-utils.c (input_interrupt): Don't check if there's no
10719 current thread.
10720 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10721 current thread to the general thread fails, error out.
10722 (handle_qxfer_auxv, handle_qxfer_libraries)
10723 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10724 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10725 (handle_query): Check if there's a thread selected instead of
10726 checking whether there's any thread in the thread list.
10727 (handle_qxfer_threads, handle_qxfer_btrace)
10728 (handle_qxfer_btrace_conf): Don't error out early if there's no
10729 thread in the thread list.
10730 (handle_v_cont, myresume): Don't set the current thread to the
10731 continue thread.
10732 (process_serial_event) <Hg handling>: Also set thread_id if the
10733 previous general thread is still alive.
10734 (process_serial_event) <g/G handling>: If setting the current
10735 thread to the general thread fails, error out.
10736 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10737 thread's lwp instead of the current thread's.
10738 * target.c (set_desired_thread): If the desired thread was not
10739 found, leave the current thread pointing to NULL. Return an int
10740 (boolean) indicating success.
10741 * target.h (set_desired_thread): Change return type to int.
10742
40045d91
MF
107432015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10744
10745 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10746 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10747 #includes.
10748 (ps_get_thread_area): New function.
10749
45face3b
GB
107502015-08-19 Gary Benson <gbenson@redhat.com>
10751
10752 * hostio.c (handle_pread): Do not attempt to read more data
10753 than hostio_reply_with_data can fit in a packet.
10754
16d5f642
JB
107552015-08-18 Joel Brobecker <brobecker@adacore.com>
10756
10757 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10758
a738da3a
MF
107592015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10760
10761 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10762
33ebda9d
PA
107632015-08-06 Pedro Alves <palves@redhat.com>
10764
10765 * tracepoint.c (expr_eval_result): Now an int.
10766
a44892be
PA
107672015-08-06 Pedro Alves <palves@redhat.com>
10768
10769 * gdbthread.h (struct regcache): Forward declare.
10770 (struct thread_info) <regcache_data>: Now a struct regcache
10771 pointer.
10772 * inferiors.c (inferior_regcache_data)
10773 (set_inferior_regcache_data): Now work with struct regcache
10774 pointers.
10775 * inferiors.h (struct regcache): Forward declare.
10776 (inferior_regcache_data, set_inferior_regcache_data): Now work
10777 with struct regcache pointers.
10778 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10779 (free_register_cache_thread): Remove struct regcache pointer
10780 casts.
10781
608a1e46
PA
107822015-08-06 Pedro Alves <palves@redhat.com>
10783
10784 * server.c (captured_main): On error, print the exception message
10785 to stderr, and if run_once is set, throw a quit.
10786
f0ce0d3a
PA
107872015-08-06 Pedro Alves <palves@redhat.com>
10788
10789 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10790 the current thread.
10791
bf47e248
PA
107922015-08-06 Pedro Alves <palves@redhat.com>
10793
10794 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10795 reading beyond the passed in buffer length.
10796
b6b9ffcc
PL
107972015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10798
10799 * tracepoint.c (symbol_list) <required>: Remove.
10800
863d01bd
PA
108012015-08-06 Pedro Alves <palves@redhat.com>
10802
10803 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10804 count if stopping and suspending threads.
10805 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10806 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10807 (linux_detach): Complete an ongoing step-over.
10808 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10809 throughout.
10810 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10811 (linux_wait_1): If passing a signal to the inferior after
10812 finishing a step-over, unsuspend and re-resume all lwps. If we
10813 see a single-step event but the thread should be continuing, don't
10814 pass the trap to gdb.
10815 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10816 internal_error instead of gdb_assert.
10817 (enqueue_pending_signal): New function.
10818 (check_ptrace_stopped_lwp_gone): Add debug output.
10819 (start_step_over): Use internal_error instead of gdb_assert.
10820 (complete_ongoing_step_over): New function.
10821 (linux_resume_one_thread): Don't resume a suspended thread.
10822 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10823 it stepping.
10824
00db26fa
PA
108252015-08-06 Pedro Alves <palves@redhat.com>
10826
10827 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10828 (linux_thread_alive): Use lwp_is_marked_dead.
10829 (extended_event_reported): Delete.
10830 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10831 instead of extended_event_reported.
10832 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10833 as well.
10834 (lwp_is_marked_dead): New function.
10835 (lwp_running): Use lwp_is_marked_dead.
10836 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10837 comment.
10838
ad071a30
PA
108392015-08-06 Pedro Alves <palves@redhat.com>
10840
10841 * linux-low.c (linux_wait_1): Move fork event output out of the
10842 !report_to_gdb check. Pass event_child->waitstatus to
10843 target_waitstatus_to_string instead of ourstatus.
10844
524b57e6
YQ
108452015-08-04 Yao Qi <yao.qi@linaro.org>
10846
10847 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10848 if current_thread is 32 bit.
10849
6085d6f6
YQ
108502015-08-04 Yao Qi <yao.qi@linaro.org>
10851
10852 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10853 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10854 * server.c (extended_protocol): Remove "static".
10855 * server.h (extended_protocol): Declare it.
10856
8a7e4587
YQ
108572015-08-04 Yao Qi <yao.qi@linaro.org>
10858
10859 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10860 both aarch64 and aarch32.
10861 (aarch64_set_pc): Likewise.
10862
3b53ae99
YQ
108632015-08-04 Yao Qi <yao.qi@linaro.org>
10864
10865 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10866 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10867 arm-with-neon.xml to srv_xmlfiles.
10868 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10869 (is_64bit_tdesc): New function.
10870 (aarch64_linux_read_description): New function.
10871 (aarch64_arch_setup): Call aarch64_linux_read_description.
10872 (regs_info): Rename to regs_info_aarch64.
10873 (aarch64_regs_info): Return right regs_info.
10874 (initialize_low_arch): Call initialize_low_arch_aarch32.
10875
bd9e6534
YQ
108762015-08-04 Yao Qi <yao.qi@linaro.org>
10877
10878 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10879 * linux-aarch32-low.c: New file.
10880 * linux-aarch32-low.h: New file.
10881 * linux-arm-low.c (arm_fill_gregset): Move it to
10882 linux-aarch32-low.c.
10883 (arm_store_gregset): Likewise.
10884 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10885 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10886 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10887 (regs_info): Rename to regs_info_arm.
10888 (arm_regs_info): Return regs_info_aarch32 if
10889 have_ptrace_getregset is 1 and target description is
10890 arm_with_neon or arm_with_vfpv3.
10891 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10892 Call initialize_low_arch_aarch32 instead.
10893
ded48a5e
YQ
108942015-08-04 Yao Qi <yao.qi@linaro.org>
10895
10896 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10897 * linux-low.c: ... here.
10898 * linux-low.h (have_ptrace_getregset): Declare it.
10899
96e9210f
PA
109002015-08-04 Pedro Alves <palves@redhat.com>
10901
10902 * thread-db.c (struct thread_db): Use new typedefs.
10903 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10904 CHK calls.
10905 (disable_thread_event_reporting): Cast result of dlsym to
10906 destination function pointer type.
10907 (thread_db_mourn): Use td_ta_delete_ftype.
10908
af60a1ef
SL
109092015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10910
10911 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10912 arch variant.
10913 (CDX_BREAKPOINT): Define for R2.
10914 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10915 (the_low_target): Add comments.
10916
e8b41681
YQ
109172015-07-30 Yao Qi <yao.qi@linaro.org>
10918
10919 * linux-arm-low.c (arm_hwcap): Remove it.
10920 (arm_read_description): New local variable arm_hwcap. Don't
10921 set arm_hwcap to zero.
10922
89abb039
YQ
109232015-07-30 Yao Qi <yao.qi@linaro.org>
10924
10925 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10926 Use regcache->tdesc instead.
10927 (arm_store_wmmxregset): Likewise.
10928 (arm_fill_vfpregset): Likewise.
10929 (arm_store_vfpregset): Likewise.
10930
deca266c
YQ
109312015-07-30 Yao Qi <yao.qi@linaro.org>
10932
10933 * linux-arm-low.c: Include arch/arm.h.
10934 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10935 (arm_store_gregset): Likewise.
10936
aa58a496
SM
109372015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10938
10939 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10940 ptrace's 4th parameter.
10941
50904b25
YQ
109422015-07-27 Yao Qi <yao.qi@linaro.org>
10943
10944 * configure.srv (case aarch64*-*-linux*): Don't set
10945 srv_linux_usrregs.
10946
5826e159
PA
109472015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10948
10949 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10950 sys/ptrace.h.
10951 * linux-arm-low.c: Likewise.
10952 * linux-cris-low.c: Likewise.
10953 * linux-crisv32-low.c: Likewise.
10954 * linux-low.c: Likewise.
10955 * linux-m68k-low.c: Likewise.
10956 * linux-mips-low.c: Likewise.
10957 * linux-nios2-low.c: Likewise.
10958 * linux-s390-low.c: Likewise.
10959 * linux-sparc-low.c: Likewise.
10960 * linux-tic6x-low.c: Likewise.
10961 * linux-tile-low.c: Likewise.
10962 * linux-x86-low.c: Likewise.
10963
54019719
PA
109642015-07-24 Pedro Alves <palves@redhat.com>
10965
10966 * config.in: Regenerate.
10967 * configure: Regenerate.
10968
eb7aa561
PA
109692015-07-24 Pedro Alves <palves@redhat.com>
10970
10971 * acinclude.m4: Include ../ptrace.m4.
10972 * configure.ac: Call GDB_AC_PTRACE.
10973 * config.in, configure: Regenerate.
10974
55d7b841
YQ
109752015-07-24 Yao Qi <yao.qi@linaro.org>
10976
10977 * linux-low.c (linux_create_inferior): Remove setting to
10978 proc->priv->new_inferior.
10979 (linux_attach): Likewise.
10980 (linux_low_filter_event): Likewise.
10981 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10982
c06cbd92
YQ
109832015-07-24 Yao Qi <yao.qi@linaro.org>
10984
10985 * linux-low.c (linux_arch_setup): New function.
10986 (linux_low_filter_event): If proc->tdesc is NULL and
10987 proc->attached is true, call the_low_target.arch_setup.
10988 Otherwise, keep status pending, and return.
10989 (linux_resume_one_lwp_throw): Don't call get_pc if
10990 thread->while_stepping isn't NULL. Don't call
10991 get_thread_regcache if proc->tdesc is NULL.
10992 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10993 (linux_target_ops): Install arch_setup.
10994 * server.c (start_inferior): Call the_target->arch_setup.
10995 * target.h (struct target_ops) <arch_setup>: New field.
10996 (target_arch_setup): New marco.
10997 * lynx-low.c (lynx_target_ops): Update.
10998 * nto-low.c (nto_target_ops): Update.
10999 * spu-low.c (spu_target_ops): Update.
11000 * win32-low.c (win32_target_ops): Update.
11001
5ae3ebba
YQ
110022015-07-24 Yao Qi <yao.qi@linaro.org>
11003
11004 * linux-low.c (linux_add_process): Don't set
11005 proc->priv->new_inferior.
11006 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11007 (linux_attach): Likewise.
11008
eb97750b
YQ
110092015-07-24 Yao Qi <yao.qi@linaro.org>
11010
11011 * server.c (start_inferior): Code refactor.
11012
51aee833
YQ
110132015-07-24 Yao Qi <yao.qi@linaro.org>
11014
11015 * server.c (process_serial_event): Set general_thread.
11016
af1b22f3
YQ
110172015-07-21 Yao Qi <yao.qi@linaro.org>
11018
11019 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11020 aarch64_linux_get_debug_reg_capacity.
11021
554717a3
YQ
110222015-07-17 Yao Qi <yao.qi@linaro.org>
11023
11024 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11025 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11026 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11027 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11028 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11029 (AARCH64_HWP_ALIGNMENT): Likewise.
11030 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11031 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11032 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11033 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11034 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11035 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11036 (struct aarch64_debug_reg_state): Likewise.
11037 (struct arch_lwp_info): Likewise.
11038 (aarch64_align_watchpoint): Likewise.
11039 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11040 (aarch64_watchpoint_length): Likewise.
11041 (aarch64_point_encode_ctrl_reg): Likewise
11042 (aarch64_point_is_aligned): Likewise.
11043 (aarch64_align_watchpoint): Likewise.
11044 (aarch64_linux_set_debug_regs):
11045 (aarch64_dr_state_insert_one_point): Likewise.
11046 (aarch64_dr_state_remove_one_point): Likewise.
11047 (aarch64_handle_breakpoint): Likewise.
11048 (aarch64_handle_aligned_watchpoint): Likewise.
11049 (aarch64_handle_unaligned_watchpoint): Likewise.
11050 (aarch64_handle_watchpoint): Likewise.
11051
c67ca4de
YQ
110522015-07-17 Yao Qi <yao.qi@linaro.org>
11053
11054 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11055 and don't aarch64_get_debug_reg_state. All callers update.
11056 (aarch64_handle_aligned_watchpoint): Likewise.
11057 (aarch64_handle_unaligned_watchpoint): Likewise.
11058 (aarch64_handle_watchpoint): Likewise.
11059 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11060 (aarch64_remove_point): Likewise.
11061
25abf979
YQ
110622015-07-17 Yao Qi <yao.qi@linaro.org>
11063
11064 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11065 debug_printf.
11066 (aarch64_handle_unaligned_watchpoint): Likewise.
11067
db1ff28b
JK
110682015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11069
11070 Revert the previous 3 commits:
11071 Move gdb_regex* to common/
11072 Move linux_find_memory_regions_full & co.
11073 gdbserver build-id attribute generator
11074
700ca40f
JK
110752015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11076 Jan Kratochvil <jan.kratochvil@redhat.com>
11077
11078 gdbserver build-id attribute generator.
11079 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11080 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11081 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11082 (find_phdr): New.
11083 (get_dynamic): Use find_pdhr to traverse program headers.
11084 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11085 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11086 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11087 (get_hex_build_id): New.
11088 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11089 to reply XML document.
11090
9904185c
JK
110912015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11092 Jan Kratochvil <jan.kratochvil@redhat.com>
11093
11094 * target.c: Include target/target-utils.h and fcntl.h.
11095 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11096 (target_fileio_read_stralloc): New functions.
11097
6e5b4429
JK
110982015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11099
11100 * Makefile.in (OBS): Add gdb_regex.o.
11101 (gdb_regex.o): New.
11102 * config.in: Rebuilt.
11103 * configure: Rebuilt.
11104
ddc98fbf
JK
111052015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11106 Jan Kratochvil <jan.kratochvil@redhat.com>
11107
11108 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11109 * Makefile.in (OBS): Add target-utils.o.
11110 (linux-maps.o, target-utils.o): New.
11111 * configure.srv (srv_linux_obj): Add linux-maps.o.
11112
e57bb7a0
PL
111132015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11114
11115 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11116 function, return 1.
11117 (the_low_target): Install it.
11118
586b02a9
PA
111192015-07-14 Pedro Alves <palves@redhat.com>
11120
11121 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11122 Instead, ignore ECHILD, and throw an error for other errnos.
11123
58c1b36c
PA
111242015-07-10 Pedro Alves <palves@redhat.com>
11125
11126 * event-loop.c (struct callback_event) <data>: Change type to
11127 gdb_client_data instance instead of gdb_client_data pointer.
11128 (append_callback_event): Adjust.
11129
421530db
PL
111302015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11131
11132 * linux-aarch64-low.c: Add comments for each linux_target_ops
11133 method. Remove comments already covered in target_ops and
11134 linux_target_ops definitions.
11135 (the_low_target): Add comments for each unimplemented method.
11136
c2d65f38
YQ
111372015-07-09 Yao Qi <yao.qi@linaro.org>
11138
11139 * linux-aarch64-low.c (aarch64_regmap): Remove.
11140 (aarch64_usrregs_info): Remove.
11141 (regs_info): Set field usrregs to NULL.
11142
b20a6524
MM
111432015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11144
11145 * linux-low.c: Include "rsp-low.h"
11146 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11147 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11148 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11149 (handle_btrace_enable_pt): New.
11150 (handle_btrace_general_set): Support "pt".
11151 (handle_btrace_conf_general_set): Support "pt:size".
11152
96c97461
PL
111532015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11154
11155 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11156 Z_PACKET_SW_BP.
11157
37d66942
PL
111582015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11159
11160 * linux-aarch64-low.c: Remove comment about endianness.
11161 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11162 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11163 memcmp.
11164
dc06243f
GB
111652015-06-24 Gary Benson <gbenson@redhat.com>
11166
11167 * linux-i386-ipa.c (stdint.h): Do not include.
11168 * lynx-i386-low.c (stdint.h): Likewise.
11169 * lynx-ppc-low.c (stdint.h): Likewise.
11170 * mem-break.c (stdint.h): Likewise.
11171 * thread-db.c (stdint.h): Likewise.
11172 * tracepoint.c (stdint.h): Likewise.
11173 * win32-low.c (stdint.h): Likewise.
11174
124e13d9
SM
111752015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11176
11177 * server.c (write_qxfer_response): Update call to
11178 remote_escape_output.
11179
909c2cda
JK
111802015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11181 Jan Kratochvil <jan.kratochvil@redhat.com>
11182
11183 Merge multiple hex conversions.
11184 * gdbreplay.c (tohex): Rename to 'fromhex'.
11185 (logchar): Use fromhex.
11186
24c05f46
JK
111872015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11188
11189 * server.c (handle_qxfer_libraries): Set `version' attribute for
11190 <library-list>.
11191
14d2069a
GB
111922015-06-10 Gary Benson <gbenson@redhat.com>
11193
11194 * target.h (struct target_ops) <multifs_open>: New field.
11195 <multifs_unlink>: Likewise.
11196 <multifs_readlink>: Likewise.
11197 * linux-low.c (nat/linux-namespaces.h): New include.
11198 (linux_target_ops): Initialize the_target->multifs_open,
11199 the_target->multifs_unlink and the_target->multifs_readlink.
11200 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11201 * hostio.c (hostio_fs_pid): New static variable.
11202 (hostio_handle_new_gdb_connection): New function.
11203 (handle_setfs): Likewise.
11204 (handle_open): Use the_target->multifs_open as appropriate.
11205 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11206 (handle_readlink): Use the_target->multifs_readlink as
11207 appropriate.
11208 (handle_vFile): Handle vFile:setfs packets.
11209 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11210 after target_handle_new_gdb_connection.
11211
4b8b5e72
GB
112122015-06-10 Gary Benson <gbenson@redhat.com>
11213
11214 * configure.ac (AC_CHECK_FUNCS): Add setns.
11215 * config.in: Regenerate.
11216 * configure: Likewise.
11217 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11218 (linux-namespaces.o): New rule.
11219 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11220
3ac2e371
GB
112212015-06-09 Gary Benson <gbenson@redhat.com>
11222
11223 * hostio.c (handle_open): Process mode argument with
11224 fileio_to_host_mode.
11225
ca9b78ce
YQ
112262015-06-01 Yao Qi <yao.qi@linaro.org>
11227
11228 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11229 * linux-x86-low.c: Likewise.
11230
bfacd19d
DB
112312015-05-28 Don Breazeal <donb@codesourcery.com>
11232
11233 * linux-low.c (handle_extended_wait): Initialize
11234 thread_info.last_resume_kind for new fork children.
11235
452003ef
PA
112362015-05-15 Pedro Alves <palves@redhat.com>
11237
11238 * target.h (target_handle_new_gdb_connection): Rewrite using if
11239 wrapped in do/while.
11240
1041a03c
JB
112412015-05-14 Joel Brobecker <brobecker@adacore.com>
11242
11243 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11244 * configure, config.in: Regenerate.
11245 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11246 Declare typedef.
11247
c269dbdb
DB
112482015-05-12 Don Breazeal <donb@codesourcery.com>
11249
11250 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11251 PTRACE_EVENT_VFORK_DONE.
11252 (linux_low_ptrace_options, extended_event_reported): Add vfork
11253 events.
11254 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11255 and "vforkdone" for RSP 'T' Stop Reply Packet.
11256 * server.h (report_vfork_events): Declare
11257 global variable.
11258
3a8a0396
DB
112592015-05-12 Don Breazeal <donb@codesourcery.com>
11260
11261 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11262 (the_low_target) <new_fork>: Initialize new member.
11263 * linux-arm-low.c (arm_new_fork): New function.
11264 (the_low_target) <new_fork>: Initialize new member.
11265 * linux-low.c (handle_extended_wait): Call new target function
11266 new_fork.
11267 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11268 * linux-mips-low.c (mips_add_watchpoint): New function
11269 extracted from mips_insert_point.
11270 (the_low_target) <new_fork>: Initialize new member.
11271 (mips_linux_new_fork): New function.
11272 (mips_insert_point): Call mips_add_watchpoint.
11273 * linux-x86-low.c (x86_linux_new_fork): New function.
11274 (the_low_target) <new_fork>: Initialize new member.
11275
de0d863e
DB
112762015-05-12 Don Breazeal <donb@codesourcery.com>
11277
11278 * linux-low.c (handle_extended_wait): Implement return value,
11279 rename argument 'event_child' to 'event_lwp', handle
11280 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11281 (linux_low_ptrace_options): New function.
11282 (linux_low_filter_event): Call linux_low_ptrace_options,
11283 use different argument fo linux_enable_event_reporting,
11284 use return value from handle_extended_wait.
11285 (extended_event_reported): New function.
11286 (linux_wait_1): Call extended_event_reported and set
11287 status to report fork events.
11288 (linux_write_memory): Add pid to debug message.
11289 (reset_lwp_ptrace_options_callback): New function.
11290 (linux_handle_new_gdb_connection): New function.
11291 (linux_target_ops): Initialize new structure member.
11292 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11293 * lynx-low.c: Initialize new structure member.
11294 * remote-utils.c (prepare_resume_reply): Implement stop reason
11295 "fork" for "T" stop message.
11296 * server.c (handle_query): Call handle_new_gdb_connection.
11297 * server.h (report_fork_events): Declare global flag.
11298 * target.h (struct target_ops) <handle_new_gdb_connection>:
11299 New member.
11300 (target_handle_new_gdb_connection): New macro.
11301 * win32-low.c: Initialize new structure member.
11302
ddcbc397
DB
113032015-05-12 Don Breazeal <donb@codesourcery.com>
11304
11305 * mem-break.c (APPEND_TO_LIST): Define macro.
11306 (clone_agent_expr): New function.
11307 (clone_one_breakpoint): New function.
11308 (clone_all_breakpoints): New function.
11309 * mem-break.h: Declare new functions.
11310
89245bc0
DB
113112015-05-12 Don Breazeal <donb@codesourcery.com>
11312
11313 * linux-low.c (linux_supports_fork_events): New function.
11314 (linux_supports_vfork_events): New function.
11315 (linux_target_ops): Initialize new structure members.
11316 (initialize_low): Call linux_check_ptrace_features.
11317 * lynx-low.c (lynx_target_ops): Initialize new structure
11318 members.
11319 * server.c (report_fork_events, report_vfork_events):
11320 New global flags.
11321 (handle_query): Add new features to qSupported packet and
11322 response.
11323 (captured_main): Initialize new global variables.
11324 * target.h (struct target_ops) <supports_fork_events>:
11325 New member.
11326 <supports_vfork_events>: New member.
11327 (target_supports_fork_events): New macro.
11328 (target_supports_vfork_events): New macro.
11329 * win32-low.c (win32_target_ops): Initialize new structure
11330 members.
11331
835205d0
GB
113322015-05-12 Gary Benson <gbenson@redhat.com>
11333
11334 * server.c (handle_qxfer_exec_file): Use current process
11335 if annex is empty.
11336
21e94bd9
SL
113372015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11338
11339 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11340 Remove HAVE_PTRACE_GETREGS conditionals.
11341 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11342 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11343
45614f15
YQ
113442015-05-08 Yao Qi <yao.qi@linaro.org>
11345
11346 * linux-low.c (linux_supports_conditional_breakpoints): New
11347 function.
11348 (linux_target_ops): Install new target method.
11349 * lynx-low.c (lynx_target_ops): Install NULL hook for
11350 supports_conditional_breakpoints.
11351 * nto-low.c (nto_target_ops): Likewise.
11352 * spu-low.c (spu_target_ops): Likewise.
11353 * win32-low.c (win32_target_ops): Likewise.
11354 * server.c (handle_query): Check
11355 target_supports_conditional_breakpoints.
11356 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11357 New field.
11358 (target_supports_conditional_breakpoints): New macro.
11359
80ad801e
PA
113602015-05-06 Pedro Alves <palves@redhat.com>
11361
11362 PR server/18081
11363 * server.c (start_inferior): If the process exits, mourn it.
11364
819843c7
GB
113652015-04-21 Gary Benson <gbenson@redhat.com>
11366
11367 * hostio.c (fileio_open_flags_to_host): Factored out to
11368 fileio_to_host_openflags in common/fileio.c. Single use
11369 updated.
11370
a2d5a9d7
MF
113712015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11372
11373 * linux-xtensa-low.c (xtensa_fill_gregset)
11374 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11375 XCHAL_HAVE_LOOP.
11376
deb44829
MF
113772015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11378
11379 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11380 (regs_info): Replace usrregs pointer with NULL.
11381
e57f1de3
GB
113822015-04-17 Gary Benson <gbenson@redhat.com>
11383
11384 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11385 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11386 * server.c (handle_qxfer_exec_file): New function.
11387 (qxfer_packets): Add exec-file entry.
11388 (handle_query): Report qXfer:exec-file:read as supported packet.
11389
62828379
RN
113902015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11391
11392 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11393
b88bb450
GB
113942015-04-09 Gary Benson <gbenson@redhat.com>
11395
11396 * hostio-errno.c (errno_to_fileio_error): Remove function.
11397 Update caller to use remote_fileio_to_fio_error.
11398
c8f4bfdd
YQ
113992015-04-09 Yao Qi <yao.qi@linaro.org>
11400
11401 * linux-low.c (linux_insert_point): Call
11402 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11403 (linux_remove_point): Call remove_memory_breakpoint if type is
11404 raw_bkpt_type_sw.
11405 * linux-x86-low.c (x86_insert_point): Don't call
11406 insert_memory_breakpoint.
11407 (x86_remove_point): Don't call remove_memory_breakpoint.
11408
41f98f02
PA
114092015-04-01 Pedro Alves <palves@redhat.com>
11410 Cleber Rosa <crosa@redhat.com>
11411
11412 * server.c (gdbserver_usage): Reorganize and extend the usage
11413 message.
11414
2bf6fb9d
PA
114152015-03-24 Pedro Alves <palves@redhat.com>
11416
11417 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11418 output. Also dump TRAP_TRACE.
11419 (linux_low_filter_event): In debug output, distinguish a
11420 resume_stop SIGSTOP from a delayed SIGSTOP.
11421
369f6daa
GB
114222015-03-24 Gary Benson <gbenson@redhat.com>
11423
11424 * linux-x86-low.c (x86_linux_new_thread): Moved to
11425 nat/x86-linux.c.
11426 (x86_linux_prepare_to_resume): Likewise.
11427
8e5d4070
GB
114282015-03-24 Gary Benson <gbenson@redhat.com>
11429
11430 * Makefile.in (x86-linux-dregs.o): New rule.
11431 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11432 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11433 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11434 (x86_linux_dr_get): Likewise.
11435 (x86_linux_dr_set): Likewise.
11436 (update_debug_registers_callback): Likewise.
11437 (x86_linux_dr_set_addr): Likewise.
11438 (x86_linux_dr_get_addr): Likewise.
11439 (x86_linux_dr_set_control): Likewise.
11440 (x86_linux_dr_get_control): Likewise.
11441 (x86_linux_dr_get_status): Likewise.
11442 (x86_linux_update_debug_registers): Likewise.
11443
2b95d440
GB
114442015-03-24 Gary Benson <gbenson@redhat.com>
11445
11446 * linux-x86-low.c (x86_linux_update_debug_registers):
11447 New function, factored out from...
11448 (x86_linux_prepare_to_resume): ...this.
11449
14b0bc68
GB
114502015-03-24 Gary Benson <gbenson@redhat.com>
11451
11452 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11453 (x86_linux_dr_set): Likewise.
11454 (update_debug_registers_callback): Likewise.
11455 (x86_linux_dr_set_addr): Likewise.
11456 (x86_linux_dr_get_addr): Likewise.
11457 (x86_linux_dr_set_control): Likewise.
11458 (x86_linux_dr_get_control): Likewise.
11459 (x86_linux_dr_get_status): Likewise.
11460 (x86_linux_prepare_to_resume): Likewise.
11461
5dfe6ca8
GB
114622015-03-24 Gary Benson <gbenson@redhat.com>
11463
11464 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11465 Use perror_with_name. Pass string through gettext.
11466 (x86_linux_dr_set): Likewise.
11467
d33472ad
GB
114682015-03-24 Gary Benson <gbenson@redhat.com>
11469
11470 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11471 (x86_linux_dr_set_addr): ...this.
11472 (x86_dr_low_get_addr): Rename to...
11473 (x86_linux_dr_get_addr): ...this.
11474 (x86_dr_low_set_control): Rename to...
11475 (x86_linux_dr_set_control): ...this.
11476 (x86_dr_low_get_control): Rename to...
11477 (x86_linux_dr_get_control): ...this.
11478 (x86_dr_low_get_status): Rename to...
11479 (x86_linux_dr_get_status): ...this.
11480 (x86_dr_low): Update with new function names.
11481
4b134ca1
GB
114822015-03-24 Gary Benson <gbenson@redhat.com>
11483
11484 * Makefile.in (x86-linux.o): New rule.
11485 * configure.srv: Add x86-linux.o to relevant targets.
11486 * linux-low.c (lwp_set_arch_private_info): New function.
11487 (lwp_arch_private_info): Likewise.
11488 * linux-x86-low.c: Include nat/x86-linux.h.
11489 (arch_lwp_info): Removed structure.
11490 (update_debug_registers_callback):
11491 Use lwp_set_debug_registers_changed.
11492 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11493 and lwp_set_debug_registers_changed.
11494 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11495
34c703da
GB
114962015-03-24 Gary Benson <gbenson@redhat.com>
11497
11498 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11499 * linux-arm-low.c (arm_new_thread): Likewise.
11500 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11501 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11502 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11503 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11504
cff068da
GB
115052015-03-24 Gary Benson <gbenson@redhat.com>
11506
11507 * linux-low.c (ptid_of_lwp): New function.
11508 (lwp_is_stopped): Likewise.
11509 (lwp_stop_reason): Likewise.
11510 * linux-x86-low.c (update_debug_registers_callback):
11511 Use lwp_is_stopped.
11512 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11513 lwp_stop_reason.
11514
b2f7c7e8
GB
115152015-03-24 Gary Benson <gbenson@redhat.com>
11516
11517 * linux-low.h (linux_stop_lwp): Remove declaration.
11518
6d4ee8c6
GB
115192015-03-24 Gary Benson <gbenson@redhat.com>
11520
11521 * linux-low.h: Include nat/linux-nat.h.
11522 * linux-low.c (iterate_over_lwps_args): New structure.
11523 (iterate_over_lwps_filter): New function.
11524 (iterate_over_lwps): Likewise.
11525 * linux-x86-low.c (update_debug_registers_callback):
11526 Update signature to what iterate_over_lwps expects.
11527 Remove PID check that iterate_over_lwps now performs.
11528 (x86_dr_low_set_addr): Use iterate_over_lwps.
11529 (x86_dr_low_set_control): Likewise.
11530
70a0bb6b
GB
115312015-03-24 Gary Benson <gbenson@redhat.com>
11532
11533 * linux-x86-low.c (x86_debug_reg_state): New function.
11534 (x86_linux_prepare_to_resume): Use the above.
11535
7b669087
GB
115362015-03-24 Gary Benson <gbenson@redhat.com>
11537
11538 * linux-low.c (current_lwp_ptid): New function.
11539 * linux-x86-low.c: Include nat/linux-nat.h.
11540 (x86_dr_low_get_addr): Use current_lwp_ptid.
11541 (x86_dr_low_get_control): Likewise.
11542 (x86_dr_low_get_status): Likewise.
11543
eef49a3d
PA
115442015-03-20 Pedro Alves <palves@redhat.com>
11545
11546 * tracepoint.c (cmd_qtstatus): Make "str" const.
11547
b2333d22
PA
115482015-03-20 Pedro Alves <palves@redhat.com>
11549
11550 * server.c (handle_general_set): Make "req_str" const.
11551
23f238d3
PA
115522015-03-19 Pedro Alves <palves@redhat.com>
11553
11554 * linux-low.c (linux_resume_one_lwp): Rename to ...
11555 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11556 instead call perror_with_name.
11557 (check_ptrace_stopped_lwp_gone): New function.
11558 (linux_resume_one_lwp): Reimplement as wrapper around
11559 linux_resume_one_lwp_throw that swallows errors if the LWP is
11560 gone.
11561
91baf43f
PA
115622015-03-19 Pedro Alves <palves@redhat.com>
11563
11564 * linux-low.c (count_events_callback, select_event_lwp_callback):
11565 No longer check whether the thread has resume_stop as last resume
11566 kind.
11567
8bf3b159
PA
115682015-03-19 Pedro Alves <palves@redhat.com>
11569
11570 * linux-low.c (count_events_callback, select_event_lwp_callback):
11571 Use the lwp's status_pending_p field, not the thread's.
11572
b90fc188
PA
115732015-03-19 Pedro Alves <palves@redhat.com>
11574
11575 * linux-low.c (select_event_lwp_callback): Update comments to
11576 no longer mention SIGTRAP.
11577
464b0089
GB
115782015-03-18 Gary Benson <gbenson@redhat.com>
11579
11580 * server.c (handle_query): Do not report vFile:fstat as supported.
11581
aa9e327f
GB
115822015-03-11 Gary Benson <gbenson@redhat.com>
11583
11584 * hostio.c (sys/types.h): New include.
11585 (sys/stat.h): Likewise.
11586 (common-remote-fileio.h): Likewise.
11587 (handle_fstat): New function.
11588 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11589
791c0056
GB
115902015-03-11 Gary Benson <gbenson@redhat.com>
11591
11592 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11593 struct stat.st_blocks and struct stat.st_blksize.
11594 * configure: Regenerate.
11595 * config.in: Likewise.
11596 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11597 (OBS): Add common-remote-fileio.o.
11598 (common-remote-fileio.o): New rule.
11599
9a9df970
PA
116002015-03-09 Pedro Alves <palves@redhat.com>
11601
11602 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11603 'struct sockaddr' pointer in 'accept' call.
11604
9eb1356e
PA
116052015-03-09 Pedro Alves <palves@redhat.com>
11606
11607 Revert:
11608 2015-03-07 Pedro Alves <palves@redhat.com>
11609 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11610 or <winsock2.h> here. Instead include "gdb_socket.h".
11611 (remote_open): Use union gdb_sockaddr_u.
11612 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11613 or <winsock2.h> here. Instead include "gdb_socket.h".
11614 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11615 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11616 or <sys/un.h>.
11617 (init_named_socket, gdb_agent_helper_thread): Use union
11618 gdb_sockaddr_u.
11619
aac331e4
PA
116202015-03-07 Pedro Alves <palves@redhat.com>
11621
11622 * configure.ac (build_warnings): Move
11623 -Wdeclaration-after-statement to the C-specific set.
11624 * configure: Regenerate.
11625
366c75fc
PA
116262015-03-07 Pedro Alves <palves@redhat.com>
11627
11628 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11629 or <winsock2.h> here. Instead include "gdb_socket.h".
11630 (remote_open): Use union gdb_sockaddr_u.
11631 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11632 or <winsock2.h> here. Instead include "gdb_socket.h".
11633 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11634 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11635 or <sys/un.h>.
11636 (init_named_socket, gdb_agent_helper_thread): Use union
11637 gdb_sockaddr_u.
11638
492d29ea
PA
116392015-03-07 Pedro Alves <palves@redhat.com>
11640
11641 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11642 instead.
11643
60a191ed
YQ
116442015-03-06 Yao Qi <yao.qi@linaro.org>
11645
11646 * linux-aarch64-low.c (aarch64_insert_point): Use
11647 show_debug_regs as a boolean.
11648 (aarch64_remove_point): Likewise.
11649
f5771b1d
PA
116502015-03-05 Pedro Alves <palves@redhat.com>
11651
11652 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11653 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11654 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11655 * nto-low.c (nto_target_ops): Likewise.
11656 * spu-low.c (spu_target_ops): Likewise.
11657 * win32-low.c (win32_target_ops): Likewise.
11658
3e572f71
PA
116592015-03-04 Pedro Alves <palves@redhat.com>
11660
72f4393d 11661 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11662 Decide whether a breakpoint triggered based on the SIGTRAP's
11663 siginfo.si_code.
72f4393d
L
11664 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11665 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11666 (linux_low_filter_event): Check for breakpoints before checking
11667 watchpoints.
11668 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11669 siginfo.si_code.
72f4393d
L
11670 (linux_stopped_by_sw_breakpoint)
11671 (linux_supports_stopped_by_sw_breakpoint)
11672 (linux_stopped_by_hw_breakpoint)
11673 (linux_supports_stopped_by_hw_breakpoint): New functions.
11674 (linux_target_ops): Install new target methods.
3e572f71 11675
1ec68e26
PA
116762015-03-04 Pedro Alves <palves@redhat.com>
11677
11678 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11679 * server.c (swbreak_feature, hwbreak_feature): New globals.
11680 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11681 (captured_main): Clear swbreak_feature and hwbreak_feature.
11682 * server.h (swbreak_feature, hwbreak_feature): Declare.
11683 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11684 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11685 supports_stopped_by_hw_breakpoint>: New fields.
11686 (target_supports_stopped_by_sw_breakpoint)
11687 (target_stopped_by_sw_breakpoint)
11688 (target_supports_stopped_by_hw_breakpoint)
11689 (target_stopped_by_hw_breakpoint): Declare.
11690
15c66dd6
PA
116912015-03-04 Pedro Alves <palves@redhat.com>
11692
11693 enum lwp_stop_reason -> enum target_stop_reason
11694 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11695 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11696 (linux_wait_1, stuck_in_jump_pad_callback)
11697 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11698 (linux_stopped_by_watchpoint):
11699 * linux-low.h (enum lwp_stop_reason): Delete.
11700 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11701 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11702
98fc70d6
YQ
117032015-03-04 Yao Qi <yao.qi@linaro.org>
11704
11705 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11706
dd2ac174
GB
117072015-03-03 Gary Benson <gbenson@redhat.com>
11708
11709 * hostio.c (handle_vFile): Fix prefix lengths.
11710
d68e53f4
MM
117112015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11712
11713 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11714 ptr_bits.
11715
bf2d68ab
AA
117162015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11717
11718 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11719 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11720 (clean): Add "rm -f" for above C files.
11721 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11722 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11723 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11724 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11725 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11726 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11727 (init_registers_s390x_vx_linux64)
11728 (init_registers_s390x_tevx_linux64)
11729 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11730 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11731 declarations.
11732 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11733 (s390_store_vxrs_high): New functions.
11734 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11735 NT_S390_VXRS_HIGH.
11736 (s390_arch_setup): Add logic for selecting one of the new target
11737 descriptions. Activate the new vector regsets if applicable.
11738 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11739 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11740 and init_registers_s390x_tevx_linux64.
11741
c966a859
PA
117422015-03-01 Pedro Alves <palves@redhat.com>
11743
11744 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11745 parameter.
11746
4180215b
PA
117472015-02-27 Pedro Alves <palves@redhat.com>
11748
11749 * linux-x86-low.c (u_debugreg_offset): New function.
11750 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11751
749bab01
PA
117522015-02-27 Pedro Alves <palves@redhat.com>
11753
11754 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11755 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11756 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11757 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11758 (ps_lsetfpregs, ps_getpid)
11759 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11760 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11761 (ps_lsetxregs, ps_plog): Declare.
11762
3c14e5a3
PA
117632015-02-27 Pedro Alves <palves@redhat.com>
11764
11765 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11766 IP_AGENT_EXPORT_FUNC.
11767 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11768 IP_AGENT_EXPORT_FUNC.
11769 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11770 (IP_AGENT_EXPORT): Delete.
11771 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11772 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11773 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11774 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11775 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11776 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11777 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11778 (traceframe_read_count, traceframe_write_count)
11779 (traceframes_created, trace_state_variables, get_raw_reg)
11780 (get_trace_state_variable_value, set_trace_state_variable_value)
11781 (ust_loaded, helper_thread_id, cmd_buf): Use
11782 IPA_SYM_EXPORTED_NAME.
11783 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11784 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11785 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11786 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11787 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11788 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11789 EXTERN_C_PUSH/EXTERN_C_POP.
11790 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11791 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11792 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11793 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11794 (traceframe_write_count, traceframe_read_count)
11795 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11796 (about_to_request_buffer_space, get_trace_state_variable_value)
11797 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11798 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11799 EXTERN_C_PUSH/EXTERN_C_POP.
11800 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11801 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11802 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11803 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11804 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11805 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11806 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11807 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11808 Define.
11809 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11810 (IP_AGENT_EXPORT_VAR_DECL): Define.
11811 (tracing): Declare.
11812 (gdb_agent_get_raw_reg): Declare.
11813
fe978cb0
PA
118142015-02-27 Tom Tromey <tromey@redhat.com>
11815 Pedro Alves <palves@redhat.com>
11816
11817 Rename symbols whose names are reserved C++ keywords throughout.
11818
3bc3d82a
PA
118192015-02-27 Pedro Alves <palves@redhat.com>
11820
11821 * Makefile.in (COMPILER): New, get it from autoconf.
11822 (CXX): Get from autoconf instead.
11823 (COMPILE.pre): Use COMPILER.
11824 (CC-LD): Rename to ...
11825 (CC_LD): ... this. Use COMPILER.
11826 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11827 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11828 * acinclude.m4: Include build-with-cxx.m4.
11829 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11830 Disable -Werror by default if building in C++ mode.
11831 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11832 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11833 the C++ compiler. Save/restore CXXFLAGS too.
11834 * configure: Regenerate.
11835
07697489
PA
118362015-02-27 Pedro Alves <palves@redhat.com>
11837
11838 * acinclude.m4: Include libiberty.m4.
11839 * configure.ac: Call libiberty_INIT.
11840 * config.in, configure: Regenerate.
11841
9beb7c4e
PA
118422015-02-26 Pedro Alves <palves@redhat.com>
11843
11844 * linux-low.c (linux_wait_1): When incrementing the PC past a
11845 program breakpoint always use the_low_target.breakpoint_len as
11846 increment, rather than the maximum between that and
11847 the_low_target.decr_pc_after_break.
11848
8090aef2
PA
118492015-02-23 Pedro Alves <palves@redhat.com>
11850
11851 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11852 thread was doing a step-over; always adjust the PC if
11853 we stepped over a permanent breakpoint.
11854 (linux_wait_1): If we stepped over breakpoint that was on top of a
11855 permanent breakpoint, manually advance the PC past it.
11856
bc9540e8
PA
118572015-02-23 Pedro Alves <palves@redhat.com>
11858
11859 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11860 modes.
11861 (x86_fill_gregset, x86_store_gregset): Use it when handling
11862 $orig_eax.
11863
2db9a427
PA
118642015-02-20 Pedro Alves <palves@redhat.com>
11865
11866 * thread-db.c: Include "nat/linux-procfs.h".
11867 (thread_db_init): Skip listing new threads if the kernel supports
11868 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11869
afa8d396
PA
118702015-02-20 Pedro Alves <palves@redhat.com>
11871
11872 * linux-low.c (status_pending_p_callback): Use ptid_match.
11873
c9587f88
AT
118742015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11875
11876 PR breakpoints/16812
11877 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11878 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11879 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11880
b05ec7a5
AT
118812015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11882
11883 PR breakpoints/15956
11884 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11885
d33501a5
MM
118862015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11887
11888 * linux-low.c (linux_low_btrace_conf): Print size.
11889 * server.c (handle_btrace_conf_general_set): New.
11890 (hanle_general_set): Call handle_btrace_conf_general_set.
11891 (handle_query): Report Qbtrace-conf:bts:size as supported.
11892
f4abbc16
MM
118932015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11894
11895 * linux-low.c (linux_low_enable_btrace): Update parameters.
11896 (linux_low_btrace_conf): New.
11897 (linux_target_ops)<to_btrace_conf>: Initialize.
11898 * server.c (current_btrace_conf): New.
11899 (handle_btrace_enable): Rename to ...
11900 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11901 to target_enable_btrace. Update comment. Update users.
11902 (handle_qxfer_btrace_conf): New.
11903 (qxfer_packets): Add btrace-conf entry.
11904 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11905 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11906 (target_ops)<read_btrace_conf>: New.
11907 (target_enable_btrace): Update parameters.
11908 (target_read_btrace_conf): New.
11909
043c3577
MM
119102015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11911
11912 * server.c (handle_btrace_general_set): Remove call to
11913 target_supports_btrace.
11914 (supported_btrace_packets): New.
11915 (handle_query): Call supported_btrace_packets.
11916 * target.h: include btrace-common.h.
11917 (btrace_target_info): Removed.
11918 (supports_btrace, target_supports_btrace): Update parameters.
11919
734b0e4b
MM
119202015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11921
11922 * Makefile.in (SFILES): Add common/btrace-common.c.
11923 (OBS): Add common/btrace-common.o.
11924 (btrace-common.o): Add build rules.
11925 * linux-low: Include btrace-common.h.
11926 (linux_low_read_btrace): Use struct btrace_data. Call
11927 btrace_data_init and btrace_data_fini.
11928
d6c146e9
PA
119292015-02-06 Pedro Alves <palves@redhat.com>
11930
11931 * thread-db.c (find_new_threads_callback): Add debug output.
11932
20ba1ce6
PA
119332015-02-04 Pedro Alves <palves@redhat.com>
11934
11935 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11936 (resume_stopped_resumed_lwps): New function.
11937 (linux_wait_for_event_filtered): Use it.
11938
8cc73a39
SDJ
119392015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11940
11941 * Makefile.in (SFILES): Add linux-personality.c.
11942 (linux-personality.o): New rule.
11943 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11944 list of objects to be built.
11945 * linux-low.c: Include nat/linux-personality.h.
11946 (linux_create_inferior): Remove code to disable address space
11947 randomization (moved to ../nat/linux-personality.c). Create
11948 cleanup to disable address space randomization.
11949
fb23d554
SDJ
119502015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11951
11952 * Makefile.in (posix-strerror.o): New rule.
11953 (mingw-strerror.o): Likewise.
11954 * configure: Regenerated.
11955 * configure.ac: Source file ../common/common.host. Initialize new
11956 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11957
cdf43629
YQ
119582015-01-14 Yao Qi <yao@codesourcery.com>
11959
11960 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11961 (ppc-linux.o): New rule.
11962 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11963 * configure.ac: AC_CHECK_FUNCS(getauxval).
11964 * config.in: Re-generated.
11965 * configure: Re-generated.
11966 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11967 ppc64_64bit_inferior_p
11968
514c5338
YQ
119692015-01-14 Yao Qi <yao@codesourcery.com>
11970
11971 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11972 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11973 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11974 (PT_ORIG_R3, PT_TRAP): Likewise.
11975 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11976 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11977 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11978
3368c1e5
JB
119792015-01-10 Joel Brobecker <brobecker@adacore.com>
11980
11981 * i387-fp.c (i387_cache_to_xsave): In look over
11982 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11983 zmmh_low_space field by use of zmmh_high_space.
11984
582511be
PA
119852015-01-09 Pedro Alves <palves@redhat.com>
11986
11987 * linux-low.c (step_over_bkpt): Move higher up in the file.
11988 (handle_extended_wait): Don't store the stop_pc here.
11989 (get_stop_pc): Adjust comments and rename to ...
11990 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11991 stopped for a software breakpoint or hardware breakpoint.
11992 (thread_still_has_status_pending_p): New function.
11993 (status_pending_p_callback): Use
11994 thread_still_has_status_pending_p. If the event is no longer
11995 interesting, resume the LWP.
11996 (handle_tracepoints): Add assert.
11997 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11998 (wstatus_maybe_breakpoint): New function.
11999 (cancel_breakpoint): Delete function.
12000 (check_stopped_by_watchpoint): New function, factored out from
12001 linux_low_filter_event.
12002 (lp_status_maybe_breakpoint): Delete function.
12003 (linux_low_filter_event): Remove filter_ptid argument.
12004 Leave thread group exits pending here. Store the LWP's stop PC.
12005 Always leave events pending.
12006 (linux_wait_for_event_filtered): Pull all events out of the
12007 kernel, and leave them all pending.
12008 (count_events_callback, select_event_lwp_callback): Consider all
12009 events.
12010 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12011 (select_event_lwp): Only give preference to the stepping LWP in
12012 all-stop mode. Adjust comments.
12013 (ignore_event): New function.
12014 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12015 references to cancel_breakpoints. Adjust to renames. Also give
12016 equal priority to all LWPs that have had events in non-stop mode.
12017 If reporting a software breakpoint event, unadjust the LWP's PC.
12018 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12019 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12020 Adjust.
12021 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12022 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12023 (linux_stopped_by_watchpoint): Adjust.
12024 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12025 * linux-low.h (enum lwp_stop_reason): New.
12026 (struct lwp_info) <stop_pc>: Adjust comment.
12027 <stopped_by_watchpoint>: Delete field.
12028 <stop_reason>: New field.
12029 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12030 * mem-break.c (software_breakpoint_inserted_here)
12031 (hardware_breakpoint_inserted_here): New function.
12032 * mem-break.h (software_breakpoint_inserted_here)
12033 (hardware_breakpoint_inserted_here): Declare.
12034 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12035 (cancel_breakpoints): Delete.
12036 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12037 (upload_fast_traceframes): Remove references to
12038 cancel_breakpoints.
12039
a33e3959
PA
120402015-01-09 Pedro Alves <palves@redhat.com>
12041
12042 * thread-db.c (find_new_threads_callback): Ignore thread if the
12043 kernel thread ID is -1.
12044
8784d563
PA
120452015-01-09 Pedro Alves <palves@redhat.com>
12046
12047 * linux-low.c (linux_attach_fail_reason_string): Move to
12048 nat/linux-ptrace.c, and rename.
12049 (linux_attach_lwp): Update comment.
12050 (attach_proc_task_lwp_callback): New function.
12051 (linux_attach): Adjust to rename and use
12052 linux_proc_attach_tgid_threads.
12053 (linux_attach_fail_reason_string): Delete declaration.
12054
76f2b779
JB
120552015-01-01 Joel Brobecker <brobecker@adacore.com>
12056
12057 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12058 * server.c (gdbserver_version): Likewise.
12059
fafcc06a
SDJ
120602014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12061
12062 * remote-utils.c: Include ctype.h.
12063 (input_interrupt): Explicitly handle the case when the char
12064 received is the NUL byte. Improve the printing of non-ASCII
12065 characters.
12066
beed38b8
JB
120672014-12-16 Joel Brobecker <brobecker@adacore.com>
12068
12069 * linux-low.c (linux_low_filter_event): Update call to
12070 linux_enable_event_reporting following the addition of
12071 a new parameter to that function.
12072
bf330350
CU
120732014-12-16 Catalin Udma <catalin.udma@freescale.com>
12074
12075 PR server/17457
12076 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12077 (AARCH64_FPCR_REGNO): Likewise.
12078 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12079 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12080 (aarch64_store_fpregset): Likewise.
12081
5227d625
JB
120822014-12-15 Joel Brobecker <brobecker@adacore.com>
12083
12084 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12085 Remove FIXME comment about assumption about N.
12086
f93b65a0
JB
120872014-12-13 Joel Brobecker <brobecker@adacore.com>
12088
12089 * configure.ac: If large-file support is disabled in GDBserver,
12090 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12091 * configure: Regenerate.
12092
e5a9158d
AA
120932014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12094
12095 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12096 warning upon ENODATA from ptrace.
12097 * linux-s390-low.c (s390_store_tdb): New.
12098 (s390_regsets): Add regset for NT_S390_TDB.
12099
feea5f36
AA
121002014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12101
12102 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12103 without a fill_function.
12104 * linux-s390-low.c (s390_fill_last_break): Remove.
12105 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12106 (s390_arch_setup): Use regset's size instead of fill_function for
12107 loop end condition.
12108
098dbe61
AA
121092014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12110
12111 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12112 the regset's store function when ptrace returned an error.
12113 * regcache.c (get_thread_regcache): Invalidate register cache
12114 before fetching inferior's registers.
12115
28eef672
AA
121162014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12117
12118 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12119 while-loop as for-loop.
12120 (regsets_store_inferior_registers): Likewise.
12121
bdca27a2
YQ
121222014-11-28 Yao Qi <yao@codesourcery.com>
12123
12124 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12125 * config.in, configure: Re-generate.
12126 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12127 is defined.
12128
9c232dda
YQ
121292014-11-21 Yao Qi <yao@codesourcery.com>
12130
12131 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12132 (AC_CHECK_HEADERS): Remove malloc.h.
12133 * configure: Re-generated.
12134 * config.in: Re-generated.
12135 * server.h: Don't include alloca.h and malloc.h.
12136 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12137 Don't include malloc.h.
12138
43968415
JB
121392014-11-17 Joel Brobecker <brobecker@adacore.com>
12140
12141 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12142 corresponding ERRNO check in same block.
12143
40e91bc7
PA
121442014-11-12 Pedro Alves <palves@redhat.com>
12145
12146 * server.c (cont_thread): Update comment.
12147 (start_inferior, attach_inferior): No longer clear cont_thread.
12148 (handle_v_cont): No longer set cont_thread.
12149 (captured_main): Clear cont_thread each time a GDB connects.
12150
c2c118cf
PA
121512014-11-12 Pedro Alves <palves@redhat.com>
12152
12153 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12154 thread, and don't resume all threads if the Hc thread has exited.
12155
78708b7c
PA
121562014-11-12 Pedro Alves <palves@redhat.com>
12157
12158 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12159 the process group instead of to a specific LWP.
12160
a2abc7de
PA
121612014-10-15 Pedro Alves <palves@redhat.com>
12162
12163 PR server/17487
12164 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12165 parameter.
12166 (arm_set_thread_context): Delete.
12167 (the_low_target): Adjust.
12168 * win32-i386-low.c (debug_registers_changed)
12169 (debug_registers_used): Delete.
12170 (update_debug_registers_callback): New function.
12171 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12172 needing to update their debug registers.
12173 (win32_get_current_dr): New function.
12174 (x86_dr_low_get_addr, x86_dr_low_get_control)
12175 (x86_dr_low_get_status): Fetch the debug register from the thread
12176 record's context.
12177 (i386_initial_stuff): Adjust.
12178 (i386_get_thread_context): Remove current_event parameter. Don't
12179 clear debug_registers_changed nor copy DR values to
12180 debug_reg_state.
12181 (i386_set_thread_context): Delete.
12182 (i386_prepare_to_resume): New function.
12183 (i386_thread_added): Mark the thread as needing to update irs
12184 debug registers.
12185 (the_low_target): Remove i386_set_thread_context and install
12186 i386_prepare_to_resume.
12187 * win32-low.c (win32_get_thread_context): Adjust.
12188 (win32_set_thread_context): Use SetThreadContext
12189 directly.
12190 (win32_prepare_to_resume): New function.
12191 (win32_require_context): New function, factored out from ...
12192 (thread_rec): ... this.
12193 (continue_one_thread): Call win32_prepare_to_resume on each thread
12194 we're about to continue.
12195 (win32_resume): Call win32_prepare_to_resume on the event thread.
12196 * win32-low.h (struct win32_thread_info)
12197 <debug_registers_changed>: New field.
12198 (struct win32_target_ops): Change prototype of set_thread_context,
12199 delete set_thread_context and add prepare_to_resume.
12200 (win32_require_context): New declaration.
12201
a442d071
GB
122022014-10-08 Gary Benson <gbenson@redhat.com>
12203
12204 * server.h: Do not include common-exceptions.h.
12205
6f1947e8
GB
122062014-10-08 Gary Benson <gbenson@redhat.com>
12207
12208 * server.h: Do not include cleanups.h.
12209
63b434a4
JH
122102014-09-30 James Hogan <james.hogan@imgtec.com>
12211
12212 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12213 mips64-dsp-linux.c.
12214
c4d9ceb6
YQ
122152014-09-23 Yao Qi <yao@codesourcery.com>
12216
12217 * linux-low.c (lp_status_maybe_breakpoint): New function.
12218 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12219 (count_events_callback): Likewise.
12220 (select_event_lwp_callback): Likewise.
12221 (cancel_breakpoints_callback): Likewise.
12222
89a5711c
DB
122232014-09-19 Don Breazeal <donb@codesourcery.com>
12224
12225 * linux-low.c (handle_extended_wait): Call
12226 linux_ptrace_get_extended_event.
12227 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12228 linux_is_extended_waitstatus.
12229
bffc0964
JB
122302014-09-16 Joel Brobecker <brobecker@adacore.com>
12231
12232 * Makefile.in (CPPFLAGS): Define.
12233 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12234 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12235
0bfdf32f
GB
122362014-09-16 Gary Benson <gbenson@redhat.com>
12237
12238 * inferiors.h (current_inferior): Renamed as...
12239 (current_thread): New variable. All uses updated.
12240 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12241 (maybe_move_out_of_jump_pad): Likewise.
12242 (cancel_breakpoint): Likewise.
12243 (linux_low_filter_event): Likewise.
12244 (wait_for_sigstop): Likewise.
12245 (linux_resume_one_lwp): Likewise.
12246 (need_step_over_p): Likewise.
12247 (start_step_over): Likewise.
12248 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12249 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12250 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12251 and save_inferior as saved_thread.
12252 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12253 saved_thread.
12254 (regcache_invalidate_thread): Likewise.
12255 * remote-utils.c (prepare_resume_reply): Likewise.
12256 * thread-db.c (thread_db_get_tls_address): Likewise.
12257 (disable_thread_event_reporting): Likewise.
12258 (remove_thread_event_breakpoints): Likewise.
12259 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12260 as saved_thread.
12261 * target.h (set_desired_inferior): Renamed as...
12262 (set_desired_thread): New declaration. All uses updated.
12263 * server.c (myresume): Updated comment to reference thread instead
12264 of inferior.
12265 (handle_serial_event): Likewise.
12266 (handle_target_event): Likewise.
12267
361c8ade
GB
122682014-09-12 Tom Tromey <tromey@redhat.com>
12269 Gary Benson <gbenson@redhat.com>
12270
12271 * regcache.h: Include common-regcache.h.
12272 (regcache_read_pc): Don't declare.
12273 * regcache.c (get_thread_regcache_for_ptid): New function.
12274
bd9269f7
GB
122752014-09-11 Tom Tromey <tromey@redhat.com>
12276 Gary Benson <gbenson@redhat.com>
12277
12278 * symbol.c: New file.
12279 * Makefile.in (SFILES): Add symbol.c.
12280 (OBS): Add symbol.o.
12281
f8c1d06b
GB
122822014-09-11 Gary Benson <gbenson@redhat.com>
12283
12284 * target.c (target_stop_ptid, target_continue_ptid): New
12285 functions.
12286
721ec300
GB
122872014-09-11 Tom Tromey <tromey@redhat.com>
12288 Gary Benson <gbenson@redhat.com>
12289
12290 * target.h: Include target/target.h.
12291 * target.c (target_read_memory, target_read_uint32)
12292 (target_write_memory): New functions.
12293
c5e92cca
GB
122942014-09-11 Gary Benson <gbenson@redhat.com>
12295
12296 * server.h (debug_hw_points): Don't declare.
12297 * server.c (debug_hw_points): Don't define. Replace all uses
12298 with show_debug_regs.
12299 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12300 all uses with show_debug_regs.
12301
2e4bb98a
EBM
123022014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12303
12304 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12305 endianness into account.
12306 (ppc_supply_ptrace_register): Likewise.
12307
ac740bc7
JH
123082014-09-03 James Hogan <james.hogan@imgtec.com>
12309
12310 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12311 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12312
97ea6506
GB
123132014-09-03 Gary Benson <gbenson@redhat.com>
12314
12315 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12316 ALL_DEBUG_ADDRESS_REGISTERS.
12317
df7e5265
GB
123182014-09-02 Gary Benson <gbenson@redhat.com>
12319
12320 * i386-low.h: Renamed as...
12321 * x86-low.h: New file. All type, function and variable name
12322 prefixes changed from "i386_" to "x86_". All references updated.
12323 * i386-low.c: Renamed as...
12324 * x86-low.c: New file. All type, function and variable name
12325 prefixes changed from "i386_" to "x86_". All references updated.
12326
ed859da7
GB
123272014-09-02 Gary Benson <gbenson@redhat.com>
12328
12329 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12330 (x86_linux_new_thread): Likewise.
12331
860789c7
GB
123322014-08-29 Gary Benson <gbenson@redhat.com>
12333
12334 * server.h (setjmp.h): Do not include.
12335 (toplevel): Do not declare.
12336 (common-exceptions.h): Include.
12337 (cleanups.h): Likewise.
12338 * server.c (toplevel): Do not define.
12339 (exit_code): New static global.
12340 (detach_or_kill_for_exit_cleanup): New function.
12341 (main): New function. Original main renamed to...
12342 (captured_main): New function.
12343 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12344
ff55e1b5
GB
123452014-08-29 Gary Benson <gbenson@redhat.com>
12346
12347 * Makefile.in (SFILES): Add common/common-exceptions.c.
12348 (OBS): Add common-exceptions.o.
12349 (common-exceptions.o): New rule.
12350 * utils.c (prepare_to_throw_exception): New function.
12351
e9bcb658
GB
123522014-08-29 Gary Benson <gbenson@redhat.com>
12353
12354 * config.in: Regenerate.
12355 * configure: Likewise.
12356
e3180625
GB
123572014-08-29 Gary Benson <gbenson@redhat.com>
12358
12359 * Makefile.in (SFILES): Add common/cleanups.c.
12360 (OBS): cleanups.o.
12361 (cleanups.o): New rule.
12362
e3d6ba5d
GB
123632014-08-29 Gary Benson <gbenson@redhat.com>
12364
12365 * utils.c (internal_vwarning): New function.
12366
7096e886
GB
123672014-08-28 Gary Benson <gbenson@redhat.com>
12368
12369 * utils.h (fatal): Remove declaration.
12370 * utils.c (fatal): Remove function.
12371
14ce3192
GB
123722014-08-28 Gary Benson <gbenson@redhat.com>
12373
12374 * tracepoint.c (gdb_agent_init): Replace fatal with
12375 perror_with_name.
12376 (initialize_tracepoint): Likewise.
12377
50278d59
GB
123782014-08-28 Gary Benson <gbenson@redhat.com>
12379
12380 * remote-utils.c (remote_prepare): Replace fatal with error.
12381
aa96c426
GB
123822014-08-28 Gary Benson <gbenson@redhat.com>
12383
12384 * linux-low.c (linux_async): Replace fatal with warning.
12385 Tidy up and return.
12386 (linux_start_non_stop): Return -1 if linux_async failed.
12387
f7160e97
GB
123882014-08-28 Gary Benson <gbenson@redhat.com>
12389
12390 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12391 gdb_assert.
12392 (i386_dr_low_get_addr): Remove vague comment.
12393 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12394 gdb_assert.
12395
38e08fca
GB
123962014-08-28 Gary Benson <gbenson@redhat.com>
12397
12398 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12399 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12400 internal_error.
12401 (linux_resume_one_lwp): Likewise.
12402 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12403 gdb_assert.
12404 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12405 with internal_error.
12406 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12407 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12408 (find_register_by_name): Replace fatal with internal_error.
12409 (find_regno): Likewise.
12410 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12411 * thread-db.c (thread_db_create_event): Likewise.
12412 (thread_db_load_search): Likewise.
12413 (try_thread_db_load_1): Likewise.
12414 * tracepoint.c (get_jump_space_head): Replace fatal with
12415 internal_error.
12416 (claim_trampoline_space): Likewise.
12417 (have_fast_tracepoint_trampoline_buffer): Likewise.
12418 (cmd_qtstart): Likewise.
12419 (stop_tracing): Likewise.
12420 (fast_tracepoint_collecting): Likewise.
12421 (target_malloc): Likewise.
12422 (download_tracepoint): Likewise.
12423 (download_trace_state_variables): Replace check with gdb_assert.
12424 (upload_fast_traceframes): Replace fatal with internal_error.
12425
34abf635
GB
124262014-08-19 Tom Tromey <tromey@redhat.com>
12427 Gary Benson <gbenson@redhat.com>
12428
12429 * Makefile.in (SFILES): Add common/common-debug.c.
12430 (OBS): Add common-debug.o.
12431 (common-debug.o): New rule.
12432 * debug.h (debug_printf): Don't declare.
12433 * debug.c (debug_printf): Renamed and rewritten as...
12434 (debug_vprintf): New function.
12435
f6e94d78
GB
124362014-08-19 Gary Benson <gbenson@redhat.com>
12437
12438 * utils.h: Do not include print-utils.h.
12439
9239eeab
GB
124402014-08-19 Tom Tromey <tromey@redhat.com>
12441 Gary Benson <gbenson@redhat.com>
12442
12443 * server.h: Add static assertion.
12444 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12445
ef87c8bb
GB
124462014-08-19 Tom Tromey <tromey@redhat.com>
12447 Gary Benson <gbenson@redhat.com>
12448
12449 * Makefile.in (SFILES): Add common/errors.c.
12450 (OBS): Add errors.o.
12451 (IPA_OBS): Add errors-ipa.o.
12452 (errors.o): New rule.
12453 (errors-ipa.o): Likewise.
12454 * utils.h (perror_with_name, error, warning): Don't declare.
12455 * utils.c (warning): Renamed and rewritten as...
12456 (vwarning): New function.
12457 (error): Renamed and rewritten as...
12458 (verror): New function.
12459 (internal_error): Renamed and rewritten as...
12460 (internal_verror): New function.
12461
bb974a24
GB
124622014-08-07 Gary Benson <gbenson@redhat.com>
12463
12464 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12465 * configure: Regenerate.
12466 * config.in: Likewise.
12467 * server.h: Do not include errno.h.
12468 * event-loop.c: Likewise.
12469 * hostio-errno.c: Likewise.
12470 * linux-low.c: Likewise.
12471 * remote-utils.c: Likewise.
12472 * spu-low.c: Likewise.
12473 * utils.c: Likewise.
12474 * gdbreplay.c: Unconditionally include errno.h.
12475
6d3d12eb
GB
124762014-08-07 Gary Benson <gbenson@redhat.com>
12477
12478 * server.h: Do not include string.h.
12479 * event-loop.c: Likewise.
12480 * linux-low.c: Likewise.
12481 * regcache.c: Likewise.
12482 * remote-utils.c: Likewise.
12483 * spu-low.c: Likewise.
12484 * utils.c: Likewise.
12485
dccbb609
GB
124862014-08-07 Gary Benson <gbenson@redhat.com>
12487
12488 * server.h: Do not include gdb_assert.h.
12489
e76df0d0
GB
124902014-08-07 Gary Benson <gbenson@redhat.com>
12491
12492 * server.h: Do not include common-utils.h.
12493
4cb9c816
GB
124942014-08-07 Gary Benson <gbenson@redhat.com>
12495
12496 * server.h: Do not include ptid.h.
12497 * notif.h: Likewise.
12498
3995eeee
GB
124992014-08-07 Gary Benson <gbenson@redhat.com>
12500
12501 * server.h: Do not include gdb_locale.h.
12502
cb9f1a9b
GB
125032014-08-07 Gary Benson <gbenson@redhat.com>
12504
12505 * server.h: Do not include gdb/signals.h.
12506 * win32-low.c: Likewise.
12507
a5fceff8
GB
125082014-08-07 Gary Benson <gbenson@redhat.com>
12509
12510 * server.h: Do not include pathmax.h.
12511
b9391142
GB
125122014-08-07 Gary Benson <gbenson@redhat.com>
12513
12514 * server.h: Do not include libiberty.h.
12515 * linux-bfin-low.c: Likewise.
12516
0e443c87
GB
125172014-08-07 Gary Benson <gbenson@redhat.com>
12518
12519 * server.h: Do not include ansidecl.h.
12520
8ebb3f56
GB
125212014-08-07 Gary Benson <gbenson@redhat.com>
12522
12523 * linux-x86-low.c: Do not include stddef.h.
12524 * lynx-ppc-low.c: Likewise.
12525 * tracepoint.c: Likewise.
12526
8980bdf6
GB
125272014-08-07 Gary Benson <gbenson@redhat.com>
12528
12529 * server.h: Do not include stdarg.h.
12530 * nto-low.c: Likewise.
12531
d7096f71
GB
125322014-08-07 Gary Benson <gbenson@redhat.com>
12533
12534 * server.h: Do not include stdlib.h.
12535 * inferiors.c: Likewise.
12536 * linux-low.c: Likewise.
12537 * regcache.c: Likewise.
12538 * spu-low.c: Likewise.
12539 * tracepoint.c: Likewise.
12540 * utils.c: Likewise.
12541
d02f550d
GB
125422014-08-07 Gary Benson <gbenson@redhat.com>
12543
12544 * server.h: Do not include stdio.h.
12545 * linux-low.c: Likewise.
12546 * remote-utils.c: Likewise.
12547 * spu-low.c: Likewise.
12548 * utils.c: Likewise.
12549 * wincecompat.c: Likewise.
12550
87f6c4e3
GB
125512014-08-06 Gary Benson <gbenson@redhat.com>
12552
12553 * regcache.c (init_register_cache): Move conditionals inside if.
12554
7089dca4
GB
125552014-08-06 Gary Benson <gbenson@redhat.com>
12556
12557 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12558
462f517e
GB
125592014-07-31 Gary Benson <gbenson@redhat.com>
12560
12561 * ax.h: Do not include server.h.
12562 * gdbthread.h: Likewise.
12563 * lynx-low.h: Likewise.
12564 * notif.h: Likewise.
12565
976411d6
GB
125662014-07-30 Gary Benson <gbenson@redhat.com>
12567
12568 * server.h: Include common-defs.h.
12569 Do not include config.h or build-gnulib-gdbserver/config.h.
12570
d41f6d8e
GB
125712014-07-30 Gary Benson <gbenson@redhat.com>
12572
12573 * hostio-errno.c: Move server.h to top of includes list.
12574 * inferiors.c: Likewise.
12575 * linux-x86-low.c: Likewise.
12576 * notif.c: Include server.h.
12577
314c6a35
TT
125782014-07-24 Tom Tromey <tromey@redhat.com>
12579 Gary Benson <gbenson@redhat.com>
12580
12581 * server.h (CORE_ADDR): Now unsigned.
12582
69ff6be5
PA
125832014-07-16 Pedro Alves <palves@redhat.com>
12584
12585 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12586
ce9e3fe7
PA
125872014-07-15 Pedro Alves <palves@redhat.com>
12588
12589 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12590 copy.
12591
e76126e8
PA
125922014-07-11 Pedro Alves <palves@redhat.com>
12593
12594 * linux-low.c (kill_wait_lwp): New function, based on
12595 kill_one_lwp_callback, but use my_waitpid directly.
12596 (kill_one_lwp_callback, linux_kill): Use it.
12597
8e9db26e
PA
125982014-06-23 Pedro Alves <palves@redhat.com>
12599
12600 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12601 before setting DR0..DR3.
12602
698b3e08
GB
126032014-06-20 Gary Benson <gbenson@redhat.com>
12604
12605 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12606 * configure: Regenerated.
12607 * config.in: Likewise.
12608
125f8a3d
GB
126092014-06-20 Gary Benson <gbenson@redhat.com>
12610
12611 * Makefile.in (SFILES): Update locations for files moved
12612 from common to nat.
12613 (object file files): Reordered.
12614
42995dbd
GB
126152014-06-20 Gary Benson <gbenson@redhat.com>
12616
12617 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12618 (i386_dr_low_set_addr): Likewise.
12619 (i386_dr_low_get_addr): Likewise.
12620 (i386_dr_low_can_set_control): Likewise.
12621 (i386_dr_low_set_control): Likewise.
12622 (i386_dr_low_get_control): Likewise.
12623 (i386_dr_low_get_status): Likewise.
12624 (i386_get_debug_register_length): Likewise.
12625 * linux-x86-low.c (i386_dr_low_set_addr):
12626 Changed signature. Made static.
12627 (i386_dr_low_get_addr): Likewise.
12628 (i386_dr_low_set_control): Likewise.
12629 (i386_dr_low_get_control): Likewise.
12630 (i386_dr_low_get_status): Likewise.
12631 (i386_dr_low): New global variable.
12632 * win32-i386-low.c (i386_dr_low_set_addr):
12633 Changed signature. Made static.
12634 (i386_dr_low_get_addr): Likewise.
12635 (i386_dr_low_set_control): Likewise.
12636 (i386_dr_low_get_control): Likewise.
12637 (i386_dr_low_get_status): Likewise.
12638 (i386_dr_low): New global variable.
12639
e1d2394b
MS
126402014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12641
12642 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12643 * Makefile.in (AR, AR_FLAGS): Define.
12644 * configure: Regenerate.
12645
3a8ee006
GB
126462014-06-19 Gary Benson <gbenson@redhat.com>
12647
12648 * Makefile.in (i386-dregs.o): New rule.
12649 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12650 * i386-low.c (target.h): Remove include.
12651 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12652 (DR_CONTROL_SHIFT): Likewise.
12653 (DR_CONTROL_SIZE): Likewise.
12654 (DR_RW_EXECUTE): Likewise.
12655 (DR_RW_WRITE): Likewise.
12656 (DR_RW_READ): Likewise.
12657 (DR_RW_IORW): Likewise.
12658 (DR_LEN_1): Likewise.
12659 (DR_LEN_2): Likewise.
12660 (DR_LEN_4): Likewise.
12661 (DR_LEN_8): Likewise.
12662 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12663 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12664 (DR_ENABLE_SIZE): Likewise.
12665 (DR_LOCAL_SLOWDOWN): Likewise.
12666 (DR_GLOBAL_SLOWDOWN): Likewise.
12667 (DR_CONTROL_RESERVED): Likewise.
12668 (I386_DR_CONTROL_MASK): Likewise.
12669 (I386_DR_VACANT): Likewise.
12670 (I386_DR_LOCAL_ENABLE): Likewise.
12671 (I386_DR_GLOBAL_ENABLE): Likewise.
12672 (I386_DR_DISABLE): Likewise.
12673 (I386_DR_SET_RW_LEN): Likewise.
12674 (I386_DR_GET_RW_LEN): Likewise.
12675 (I386_DR_WATCH_HIT): Likewise.
12676 (i386_wp_op_t): Likewise.
12677 (i386_show_dr): Likewise.
12678 (i386_length_and_rw_bits): Likewise.
12679 (i386_insert_aligned_watchpoint): Likewise.
12680 (i386_remove_aligned_watchpoint): Likewise.
12681 (i386_handle_nonaligned_watchpoint): Likewise.
12682 i386_update_inferior_debug_regs(): Likewise.
12683 (i386_dr_insert_watchpoint): Likewise.
12684 (i386_dr_remove_watchpoint): Likewise.
12685 (i386_dr_region_ok_for_watchpoint): Likewise.
12686 (i386_dr_stopped_data_address): Likewise.
12687 (i386_dr_stopped_by_watchpoint): Likewise.
12688
8f26655c
GB
126892014-06-19 Gary Benson <gbenson@redhat.com>
12690
12691 * i386-low.c (i386_dr_show): Renamed to
12692 i386_show_dr and made static. All uses updated.
12693 (i386_dr_length_and_rw_bits): Renamed to
12694 i386_length_and_rw_bits and made static.
12695 All uses updated.
12696 (i386_dr_insert_aligned_watchpoint): Renamed to
12697 i386_insert_aligned_watchpoint and made static.
12698 All uses updated.
12699 (i386_dr_remove_aligned_watchpoint): Renamed to
12700 i386_remove_aligned_watchpoint and made static.
12701 All uses updated.
12702 (i386_dr_update_inferior_debug_regs): Renamed to
12703 i386_update_inferior_debug_regs and made static.
12704 All uses updated.
12705
b9228891
GB
127062014-06-18 Gary Benson <gbenson@redhat.com>
12707
5171def3
GB
12708 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12709 (i386_dr_low_can_set_control): Likewise.
12710 (i386_get_debug_register_length): Likewise.
12711 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12712 (i386_dr_low_can_set_control): Likewise.
12713 (i386_get_debug_register_length): Likewise.
12714
127152014-06-17 Gary Benson <gbenson@redhat.com>
12716
b9228891
GB
12717 * i386-low.h (i386-dregs.h): New include.
12718 (DR_FIRSTADDR): Now in i386-dregs.h.
12719 (DR_LASTADDR): Likewise.
12720 (DR_NADDR): Likewise.
12721 (DR_STATUS): Likewise.
12722 (DR_CONTROL): Likewise.
12723 (i386_debug_reg_state): Likewise.
12724 (i386_dr_insert_watchpoint): Likewise.
12725 (i386_dr_remove_watchpoint): Likewise.
12726 (i386_dr_region_ok_for_watchpoint): Likewise.
12727 (i386_dr_stopped_data_address): Likewise.
12728 (i386_dr_stopped_by_watchpoint): Likewise.
12729 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12730
4be83cc2
GB
127312014-06-18 Gary Benson <gbenson@redhat.com>
12732
12733 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12734 i386_dr_insert_watchpoint.
12735 (i386_low_remove_watchpoint): Renamed to
12736 i386_dr_remove_watchpoint.
12737 (i386_low_region_ok_for_watchpoint): Renamed to
12738 i386_dr_region_ok_for_watchpoint.
12739 (i386_low_stopped_data_address): Renamed to
12740 i386_dr_stopped_data_address.
12741 (i386_low_stopped_by_watchpoint): Renamed to
12742 i386_dr_stopped_by_watchpoint.
12743 * i386-low.c (i386_show_dr): Renamed to
12744 i386_dr_show and made nonstatic. All uses updated.
12745 (i386_length_and_rw_bits): Renamed to
12746 i386_dr_length_and_rw_bits and made nonstatic.
12747 All uses updated.
12748 (i386_insert_aligned_watchpoint): Renamed to
12749 i386_dr_insert_aligned_watchpoint and made nonstatic.
12750 All uses updated.
12751 (i386_remove_aligned_watchpoint): Renamed to
12752 i386_dr_remove_aligned_watchpoint and made nonstatic.
12753 All uses updated.
12754 (i386_update_inferior_debug_regs): Renamed to
12755 i386_dr_update_inferior_debug_regs and made nonstatic.
12756 All uses updated.
12757 (i386_low_insert_watchpoint): Renamed to
12758 i386_dr_insert_watchpoint. All uses updated.
12759 (i386_low_remove_watchpoint): Renamed to
12760 i386_dr_remove_watchpoint. All uses updated.
12761 (i386_low_region_ok_for_watchpoint): Renamed to
12762 i386_dr_region_ok_for_watchpoint. All uses updated.
12763 (i386_low_stopped_data_address): Renamed to
12764 i386_dr_stopped_data_address. All uses updated.
12765 (i386_low_stopped_by_watchpoint): Renamed to
12766 i386_dr_stopped_by_watchpoint. All uses updated.
12767
131aa0d4
GB
127682014-06-18 Gary Benson <gbenson@redhat.com>
12769
12770 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12771 (i386_dr_low_can_set_control): Likewise.
12772 (i386_insert_aligned_watchpoint): New check.
12773
d9305f7f
GB
127742014-06-18 Gary Benson <gbenson@redhat.com>
12775
12776 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12777 Renamed to state.
12778
e927c9fc
GB
127792014-06-18 Gary Benson <gbenson@redhat.com>
12780
12781 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12782 instead of fatal and error.
12783 (i386_handle_nonaligned_watchpoint): Likewise.
12784
1b6d4134
GB
127852014-06-18 Gary Benson <gbenson@redhat.com>
12786
12787 * i386-low.c (i386_get_debug_register_length): New macro.
12788 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12789 (i386_show_dr): Use debug_printf instead of fprintf. Use
12790 phex to format values.
12791
6e62758f
GB
127922014-06-18 Gary Benson <gbenson@redhat.com>
12793
12794 * i386-low.h: Comment changes.
12795 * i386-low.c: Likewise.
12796
fc6e2f03
GB
127972014-06-18 Gary Benson <gbenson@redhat.com>
12798
12799 * i386-low.c: Whitespace changes.
12800
f9d1eeed
TT
128012014-06-12 Tom Tromey <tromey@redhat.com>
12802
12803 * utils.c (freeargv): Remove.
12804
0b04e523
TT
128052014-06-12 Tom Tromey <tromey@redhat.com>
12806
12807 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12808 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12809 (parse_debug_format_options): Likewise.
12810 (gdbserver_usage): Likewise.
12811 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12812 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12813 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12814 against libiberty.
12815 ($(LIBGNU)): Depend on libiberty.
12816 (all-lib): Recurse into all subdirs.
12817 (install-only): Invoke "install" target in subdirs.
12818 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12819 targets.
12820 * configure: Rebuild.
12821 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12822 for vasprintf, vsnprintf, or gettimeofday.
12823 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12824 srv_tgtobj.
12825
270c9937
JB
128262014-06-05 Joel Brobecker <brobecker@adacore.com>
12827
12828 * development.sh: Delete.
12829 * Makefile.in (config.status): Adjust dependency on development.sh.
12830 * configure.ac: Adjust development.sh source call.
12831 * configure: Regenerate.
12832
0a261ed8
PA
128332014-06-02 Pedro Alves <palves@redhat.com>
12834
12835 * ax.c (gdb_free_agent_expr): New function.
12836 * ax.h (gdb_free_agent_expr): New declaration.
12837 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12838 list.
12839 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12840 static.
12841 (clear_breakpoint_conditions_and_commands): New function.
12842 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12843 (clear_breakpoint_conditions_and_commands): New declaration.
12844
e9dae05e
RR
128452014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12846
12847 * linux-aarch64-low.c (asm/ptrace.h): Include.
12848
5876f503
JK
128492014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12850
12851 Fix TLS access for -static -pthread.
12852 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12853 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12854 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12855
802e8e6d
PA
128562014-05-20 Pedro Alves <palves@redhat.com>
12857
12858 * linux-aarch64-low.c (aarch64_insert_point)
12859 (aarch64_remove_point): No longer check whether the type is
12860 supported here. Adjust to new interface.
12861 (the_low_target): Install aarch64_supports_z_point_type as
12862 supports_z_point_type method.
12863 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12864 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12865 instead of a Z packet char. Adjust.
12866 (arm_supports_z_point_type): New function.
12867 (arm_insert_point, arm_remove_point): Adjust to new interface.
12868 (the_low_target): Install arm_supports_z_point_type.
12869 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12870 (cris_insert_point, cris_remove_point): Adjust to new interface.
12871 Don't check whether the type is supported here.
12872 (the_low_target): Install cris_supports_z_point_type.
12873 * linux-low.c (linux_supports_z_point_type): New function.
12874 (linux_insert_point, linux_remove_point): Adjust to new interface.
12875 * linux-low.h (struct linux_target_ops) <insert_point,
12876 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12877 raw_breakpoint pointer parameter.
12878 <supports_z_point_type>: New method.
12879 * linux-mips-low.c (mips_supports_z_point_type): New function.
12880 (mips_insert_point, mips_remove_point): Adjust to new interface.
12881 Use mips_supports_z_point_type.
12882 (the_low_target): Install mips_supports_z_point_type.
12883 * linux-ppc-low.c (the_low_target): Install NULL as
12884 supports_z_point_type method.
12885 * linux-s390-low.c (the_low_target): Install NULL as
12886 supports_z_point_type method.
12887 * linux-sparc-low.c (the_low_target): Install NULL as
12888 supports_z_point_type method.
12889 * linux-x86-low.c (x86_supports_z_point_type): New function.
12890 (x86_insert_point): Adjust to new insert_point interface. Use
12891 insert_memory_breakpoint. Adjust to new
12892 i386_low_insert_watchpoint interface.
12893 (x86_remove_point): Adjust to remove_point interface. Use
12894 remove_memory_breakpoint. Adjust to new
12895 i386_low_remove_watchpoint interface.
12896 (the_low_target): Install x86_supports_z_point_type.
12897 * lynx-low.c (lynx_target_ops): Install NULL as
12898 supports_z_point_type callback.
12899 * nto-low.c (nto_supports_z_point_type): New.
12900 (nto_insert_point, nto_remove_point): Adjust to new interface.
12901 (nto_target_ops): Install nto_supports_z_point_type.
12902 * mem-break.c: Adjust intro comment.
12903 (struct raw_breakpoint) <raw_type, size>: New fields.
12904 <inserted>: Update comment.
12905 <shlib_disabled>: Delete field.
12906 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12907 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12908 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12909 (raw_bkpt_type_to_target_hw_bp_type): New function.
12910 (find_enabled_raw_code_breakpoint_at): New function.
12911 (find_raw_breakpoint_at): New type and size parameters. Use them.
12912 (insert_memory_breakpoint): New function, based off
12913 set_raw_breakpoint_at.
12914 (remove_memory_breakpoint): New function.
12915 (set_raw_breakpoint_at): Reimplement.
12916 (set_breakpoint): New, based on set_breakpoint_at.
12917 (set_breakpoint_at): Reimplement.
12918 (delete_raw_breakpoint): Go through the_target->remove_point
12919 instead of assuming memory breakpoints.
12920 (find_gdb_breakpoint_at): Delete.
12921 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12922 (find_gdb_breakpoint): New function.
12923 (set_gdb_breakpoint_at): Delete.
12924 (z_type_supported): New function.
12925 (set_gdb_breakpoint_1): New function, loosely based off
12926 set_gdb_breakpoint_at.
12927 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12928 (delete_gdb_breakpoint_at): Delete.
12929 (delete_gdb_breakpoint_1): New function, loosely based off
12930 delete_gdb_breakpoint_at.
12931 (delete_gdb_breakpoint): New function.
12932 (clear_gdb_breakpoint_conditions): Rename to ...
12933 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12934 breakpoint.
12935 (add_condition_to_breakpoint): Make static.
12936 (add_breakpoint_condition): Take a struct breakpoint pointer
12937 instead of an address. Adjust.
12938 (gdb_condition_true_at_breakpoint): Rename to ...
12939 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12940 z_type parameter.
12941 (gdb_condition_true_at_breakpoint): Reimplement.
12942 (add_breakpoint_commands): Take a struct breakpoint pointer
12943 instead of an address. Adjust.
12944 (gdb_no_commands_at_breakpoint): Rename to ...
12945 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12946 parameter. Return true if no breakpoint was found. Change debug
12947 output.
12948 (gdb_no_commands_at_breakpoint): Reimplement.
12949 (run_breakpoint_commands): Rename to ...
12950 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12951 and change return type to boolean.
12952 (run_breakpoint_commands): New function.
12953 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12954 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12955 breakpoint. Go through the_target->remove_point instead of
12956 assuming memory breakpoint.
12957 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12958 software and hardware breakpoints.
12959 (reinsert_raw_breakpoint): Go through the_target->insert_point
12960 instead of assuming memory breakpoint.
12961 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12962 software and hardware breakpoints.
12963 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12964 Check both software and hardware breakpoints.
12965 (validate_inserted_breakpoint): Assert the breakpoint is a
12966 software breakpoint. Set the inserted flag to -1 instead of
12967 setting shlib_disabled.
12968 (delete_disabled_breakpoints): Adjust.
12969 (validate_breakpoints): Only validate software breakpoints.
12970 Adjust to inserted flag change.
12971 (check_mem_read, check_mem_write): Skip breakpoint types other
12972 than software breakpoints. Adjust to inserted flag change.
12973 * mem-break.h (enum raw_bkpt_type): New enum.
12974 (raw_breakpoint, struct process_info): Forward declare.
12975 (Z_packet_to_target_hw_bp_type): Delete declaration.
12976 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12977 (set_gdb_breakpoint, delete_gdb_breakpoint)
12978 (clear_breakpoint_conditions): New declarations.
12979 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12980 (breakpoint_inserted_here): Update comment.
12981 (add_breakpoint_condition, add_breakpoint_commands): Replace
12982 address parameter with a breakpoint pointer parameter.
12983 (gdb_breakpoint_here): Update comment.
12984 (delete_gdb_breakpoint_at): Delete.
12985 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12986 * server.c (process_point_options): Take a struct breakpoint
12987 pointer instead of an address. Adjust.
12988 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12989 delete_gdb_breakpoint.
12990 * spu-low.c (spu_target_ops): Install NULL as
12991 supports_z_point_type method.
12992 * target.h: Include mem-break.h.
12993 (struct target_ops) <prepare_to_access_memory>: Update comment.
12994 <supports_z_point_type>: New field.
12995 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12996 instead of a char. Also take a raw breakpoint pointer.
12997 * win32-arm-low.c (the_low_target): Install NULL as
12998 supports_z_point_type.
12999 * win32-i386-low.c (i386_supports_z_point_type): New function.
13000 (i386_insert_point, i386_remove_point): Adjust to new interface.
13001 (the_low_target): Install i386_supports_z_point_type.
13002 * win32-low.c (win32_supports_z_point_type): New function.
13003 (win32_insert_point, win32_remove_point): Adjust to new interface.
13004 (win32_target_ops): Install win32_supports_z_point_type.
13005 * win32-low.h (struct win32_target_ops):
13006 <supports_z_point_type>: New method.
13007 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13008 instead of a char. Also take a raw breakpoint pointer.
13009
932539e3
PA
130102014-05-20 Pedro Alves <palves@redhat.com>
13011
13012 * mem-break.h: Include break-common.h.
13013 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13014 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13015 (Z_packet_to_target_hw_bp_type): New declaration.
13016 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13017 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13018 (Z_PACKET_ACCESS_WP): Delete macros.
13019 (Z_packet_to_hw_type): Delete function.
13020 * i386-low.h: Don't include break-common.h here.
13021 (Z_packet_to_hw_type): Delete declaration.
13022 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13023 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13024 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13025 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13026 * linux-aarch64-low.c: Don't include break-common.h here.
13027 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13028 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13029 (Z_packet_to_target_hw_bp_type): Delete function.
13030 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13031 function.
13032 (mips_insert_point, mips_remove_point): Use
13033 Z_packet_to_target_hw_bp_type.
13034
4ff0d3d8
PA
130352014-05-20 Pedro Alves <palves@redhat.com>
13036
13037 * linux-aarch64-low.c: Include break-common.h.
13038 (enum target_point_type): Delete.
13039 (Z_packet_to_point_type): Rename to ...
13040 (Z_packet_to_target_hw_bp_type): ... this, and return a
13041 target_hw_bp_type instead.
13042 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13043 instead of an enum target_point_type.
13044 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13045 breakpoint type.
13046 (aarch64_dr_state_insert_one_point)
13047 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13048 (aarch64_handle_aligned_watchpoint)
13049 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13050 Take an enum target_hw_bp_type instead of an enum
13051 target_point_type.
13052 (aarch64_supports_z_point_type): New function.
13053 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13054 use Z_packet_to_target_hw_bp_type.
13055
786dc519
JB
130562014-05-20 Joel Brobecker <brobecker@adacore.com>
13057
13058 * configure.ac: Only use -Werror by default when DEVELOPMENT
13059 is true.
13060 * configure: Regenerate.
13061
9e0aa64f
JK
130622014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13063
13064 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13065 * linux-x86-low.c (X86_64_USER_REGS): New.
13066 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13067
2b577b92
YQ
130682014-04-28 Yao Qi <yao@codesourcery.com>
13069
13070 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13071 name.
13072
94611da2
PA
130732014-04-25 Pedro Alves <palves@redhat.com>
13074
13075 PR server/16255
13076 * linux-low.c (linux_attach_fail_reason_string): New function.
13077 (linux_attach_lwp): Delete.
13078 (linux_attach_lwp_1): Rename to ...
13079 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13080 argument. Remove "initial" parameter. Return int instead of
13081 void. Don't error or warn here.
13082 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13083 failure to attach to the tgid. Call warning when failing to
13084 attach to an lwp.
13085 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13086 argument. Remove "initial" parameter. Return int instead of
13087 void. Don't error or warn here.
13088 (linux_attach_fail_reason_string): New declaration.
13089 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13090 interface change. Use linux_attach_fail_reason_string.
13091
01f9f808
MS
130922014-04-24 Michael Sturm <michael.sturm@mintel.com>
13093 Walfred Tedeschi <walfred.tedeschi@intel.com>
13094
13095 * Makefile.in: Added rules to handle new files
13096 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13097 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13098 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13099 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13100 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13101 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13102 x32-avx512-linux.o.
13103 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13104 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13105 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13106 i386/x32-avx512.xml.
13107 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13108 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13109 i386/x32-avx512-linux.xml.
13110 * i387-fp.c (num_avx512_k_registers): New constant for number
13111 of K registers.
13112 (num_avx512_zmmh_low_registers): New constant for number of
13113 lower ZMM registers (0-15).
13114 (num_avx512_zmmh_high_registers): New constant for number of
13115 higher ZMM registers (16-31).
13116 (num_avx512_ymmh_registers): New contant for number of higher
13117 YMM registers (ymm16-31 added by avx521 on x86_64).
13118 (num_avx512_xmm_registers): New constant for number of higher
13119 XMM registers (xmm16-31 added by AVX512 on x86_64).
13120 (struct i387_xsave): Add space for AVX512 registers.
13121 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13122 Add code to handle AVX512 registers.
13123 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13124 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13125 prototypei from generated file.
13126 (tdesc_amd64_avx512_linux): Likewise.
13127 (init_registers_x32_avx512_linux): Likewise.
13128 (tdesc_x32_avx512_linux): Likewise.
13129 (init_registers_i386_avx512_linux): Likewise.
13130 (tdesc_i386_avx512_linux): Likewise.
13131 (x86_64_regmap): Add AVX512 registers.
13132 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13133 mask.
13134 (initialize_low_arch): Add code to initialize AVX512 registers.
13135
51aa91f9
PA
131362014-04-23 Pedro Alves <palves@redhat.com>
13137
13138 * mem-break.c (find_gdb_breakpoint_at): Make static.
13139 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13140
a4165e94
PA
131412014-04-23 Pedro Alves <palves@redhat.com>
13142
13143 * i386-low.c: Don't include break-common.h here.
13144 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13145 prototype to take target_hw_bp_type as argument instead of a Z
13146 packet char.
13147 * i386-low.h: Include break-common.h here.
13148 (Z_packet_to_hw_type): Declare.
13149 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13150 prototypes.
13151 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13152 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13153 (x86_remove_point): Convert the packet number to a
13154 target_hw_bp_type before calling i386_low_remove_watchpoint.
13155 * win32-i386-low.c (i386_insert_point): Convert the packet number
13156 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13157 (i386_remove_point): Convert the packet number to a
13158 target_hw_bp_type before calling i386_low_remove_watchpoint.
13159
b8acf843
PA
131602014-04-23 Pedro Alves <palves@redhat.com>
13161
13162 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13163
d708bcd1
PA
131642014-04-10 Pedro Alves <palves@redhat.com>
13165
13166 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13167 Check if the condition or command is NULL before checking if the
13168 breakpoint is known. On success, return true.
13169 * mem-break.h (add_breakpoint_condition): Document return.
13170 (add_breakpoint_commands): Add describing comment.
13171 * server.c (skip_to_semicolon): New function.
13172 (process_point_options): Use it.
13173
2eec7d5b
PA
131742014-04-09 Pedro Alves <palves@redhat.com>
13175
13176 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13177 to lwpid_of.
13178
fa96cb38
PA
131792014-02-27 Pedro Alves <palves@redhat.com>
13180
13181 PR 12702
13182 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13183 macros.
13184 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13185 output.
13186 (last_thread_of_process_p): Take a PID argument instead of a
13187 thread pointer.
13188 (linux_wait_for_lwp): Delete.
13189 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13190 functions.
13191 (linux_low_filter_event): New function, party factored out from
13192 linux_wait_for_event.
13193 (linux_wait_for_event): Rename to ...
13194 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13195 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13196 sigsuspend. Check for zombie leaders.
13197 (linux_wait_for_event): Reimplement as wrapper around
13198 linux_wait_for_event_filtered.
13199 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13200 a normal or signal exit is seen, it's the whole process exiting.
13201 (wait_for_sigstop): No longer a for_each_inferior callback.
13202 Rewrite on top of linux_wait_for_event_filtered.
13203 (stop_all_lwps): Call wait_for_sigstop directly.
13204 * server.c (resume, handle_target_event): Handle
13205 TARGET_WAITKIND_NO_RESUMED.
13206
d763de10
JB
132072014-02-26 Joel Brobecker <brobecker@adacore.com>
13208
13209 * win32-low.c (psapi_get_dll_name,
13210 * win32_CreateToolhelp32Snapshot): Delete.
13211 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13212 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13213 Delete.
13214 (handle_load_dll): Add function description.
13215 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13216
850a0f76
JB
132172014-02-26 Joel Brobecker <brobecker@adacore.com>
13218
13219 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13220 Add comment.
13221 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13222 base address when calling win32_add_one_solib.
13223 (handle_load_dll): Delete local variable load_addr.
13224 Remove 0x1000 offset applied to DLL base address when calling
13225 win32_add_one_solib.
13226 (handle_unload_dll): Add comment.
13227
f25b3fc3
JB
132282014-02-26 Joel Brobecker <brobecker@adacore.com>
13229
13230 * win32-low.c (win32_add_all_dlls): Renames
13231 win32_ensure_ntdll_loaded. Rewrite function documentation.
13232 Adjust implementation to always load all DLLs.
13233 Add 0x1000 offset to DLL base address when calling
13234 win32_add_one_solib.
13235 (child_initialization_done): New static global.
13236 (do_initial_child_stuff): Set child_initialization_done to
13237 zero during child initialization, and 1 after. Replace call
13238 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13239 Add comment.
13240 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13241 (handle_unload_dll): Add function documentation.
13242 (get_child_debug_event): Ignore load and unload DLL events
13243 during child initialization.
13244
d86d4aaf
DE
132452014-02-20 Doug Evans <dje@google.com>
13246
3bc32da3 13247 Remove global all_lwps.
d86d4aaf
DE
13248 * inferiors.h (ptid_of): Move here from linux-low.h.
13249 (pid_of, lwpid_of): Ditto.
13250 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13251 parameter is a struct thread_info * now.
13252 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13253 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13254 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13255 directly.
13256 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13257 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13258 * linux-arm-low.c (update_registers_callback): Update, "entry"
13259 parameter is a struct thread_info * now.
13260 Fetch lwpid from current_inferior directly.
13261 (arm_insert_point): Pass &all_threads to find_inferior instead of
13262 &all_lwps.
13263 (arm_remove_point): Ditto.
13264 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13265 (arm_prepare_to_resume): Fetch pid from thread.
13266 (arm_read_description): Fetch lwpid from current_inferior directly.
13267 * linux-low.c (all_lwps): Delete.
13268 (delete_lwp): Delete call to remove_inferior.
13269 (handle_extended_wait): Fetch lwpid from thread.
13270 (add_lwp): Don't set lwp->entry.id. Remove call to
13271 add_inferior_to_list.
13272 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13273 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13274 (kill_one_lwp_callback): Ditto.
13275 (linux_kill): Don't dereference NULL pointer.
13276 Fetch ptid,lwpid from thread.
13277 (get_detach_signal): Fetch ptid from thread.
13278 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13279 Simplify call to regcache_invalidate_thread.
13280 (delete_lwp_callback): Update, "entry" parameter is a
13281 struct thread_info * now. Fetch pid from thread.
13282 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13283 (status_pending_p_callback): Update, "entry" parameter is a
13284 struct thread_info * now. Fetch ptid from thread.
13285 (find_lwp_pid): Update, "entry" parameter is a
13286 struct thread_info * now.
13287 (linux_wait_for_lwp): Fetch pid from thread.
13288 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13289 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13290 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13291 (dequeue_one_deferred_signal): Ditto.
13292 (cancel_breakpoint): Fetch ptid from current_inferior.
13293 (linux_wait_for_event): Pass &all_threads to find_inferior,
13294 not &all_lwps. Fetch ptid, lwpid from thread.
13295 (count_events_callback): Update, "entry" parameter is a
13296 struct thread_info * now.
13297 (select_singlestep_lwp_callback): Ditto.
13298 (select_event_lwp_callback): Ditto.
13299 (cancel_breakpoints_callback): Ditto.
13300 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13301 not &all_lwps.
13302 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13303 (unsuspend_one_lwp): Update, "entry" parameter is a
13304 struct thread_info * now.
13305 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13306 not &all_lwps.
13307 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13308 Fetch lwpid from thread, not lwp.
13309 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13310 Pass &all_threads to find_inferior, not &all_lwps.
13311 (send_sigstop): Fetch lwpid from thread, not lwp.
13312 (send_sigstop_callback): Update, "entry" parameter is a
13313 struct thread_info * now.
13314 (suspend_and_send_sigstop_callback): Ditto.
13315 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13316 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13317 struct thread_info * now.
13318 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13319 from thread, lwp.
13320 (lwp_running): Update, "entry" parameter is a
13321 struct thread_info * now.
13322 (stop_all_lwps): Fetch ptid from thread.
13323 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13324 (linux_resume_one_lwp): Fetch lwpid from thread.
13325 (linux_set_resume_request): Update, "entry" parameter is a
13326 struct thread_info * now. Fetch pid, lwpid from thread.
13327 (resume_status_pending_p): Update, "entry" parameter is a
13328 struct thread_info * now.
13329 (need_step_over_p): Ditto. Fetch lwpid from thread.
13330 (start_step_over): Fetch lwpid from thread.
13331 (linux_resume_one_thread): Update, "entry" parameter is a
13332 struct thread_info * now. Fetch lwpid from thread.
13333 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13334 (proceed_one_lwp): Update, "entry" parameter is a
13335 struct thread_info * now. Fetch lwpid from thread.
13336 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13337 struct thread_info * now.
13338 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13339 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13340 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13341 directly.
13342 (regsets_store_inferior_registers): Ditto.
13343 (fetch_register, store_register): Ditto.
13344 (linux_read_memory, linux_write_memory): Ditto.
13345 (linux_request_interrupt): Ditto.
13346 (linux_read_auxv): Ditto.
13347 (linux_xfer_siginfo): Ditto.
13348 (linux_qxfer_spu): Ditto.
13349 (linux_qxfer_libraries_svr4): Ditto.
13350 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13351 moved to inferiors.h.
13352 (get_lwp): Delete.
13353 (get_thread_lwp): Update.
13354 (struct lwp_info): Delete member "entry". Simplify comment for
13355 member "thread".
13356 (all_lwps): Delete.
13357 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13358 current_inferior directly.
13359 (update_watch_registers_callback): Update, "entry" parameter is a
13360 struct thread_info * now. Fetch pid from thread.
13361 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13362 (mips_insert_point): Fetch lwpid from current_inferior.
13363 Pass &all_threads to find_inferior, not &all_lwps.
13364 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13365 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13366 directly.
13367 (mips_stopped_data_address): Ditto.
13368 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13369 directly.
13370 * linux-tile-low.c (tile_arch_setup): Ditto.
13371 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13372 (update_debug_registers_callback): Update, "entry" parameter is a
13373 struct thread_info * now. Fetch pid from thread.
13374 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13375 Pass &all_threads to find_inferior, not &all_lwps.
13376 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13377 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13378 Pass &all_threads to find_inferior, not &all_lwps.
13379 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13380 (i386_dr_low_get_status): Ditto.
13381 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13382 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13383 (x86_linux_read_description): Ditto.
13384 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13385
3b8361aa
DE
133862014-02-20 Doug Evans <dje@google.com>
13387
13388 * inferiors.c (get_first_inferior): Fix buglet.
13389
f7667f0d
DE
133902014-02-19 Doug Evans <dje@google.com>
13391
13392 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13393 * inferiors.c (add_thread): Change result type to struct thread_info *.
13394 All callers updated.
13395 (add_lwp): Call add_thread here instead of in callers.
13396 All callers updated.
13397 * linux-low.h (get_lwp_thread): Rewrite.
13398 (struct lwp_info): New member "thread".
13399
b3312d80
DE
134002014-02-19 Doug Evans <dje@google.com>
13401
13402 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13403 All callers updated.
13404
ecc6f45c
DE
134052014-02-19 Doug Evans <dje@google.com>
13406
13407 * inferiors.c (add_thread): Fix whitespace.
13408
649ebbca
DE
134092014-02-19 Doug Evans <dje@google.com>
13410
13411 * dll.c (clear_dlls): Replace accessing list implemention details
13412 with API function.
13413 * gdbthread.h (get_first_thread): Declare.
13414 * inferiors.c (for_each_inferior_with_data): New function.
13415 (get_first_thread): New function.
13416 (find_thread_ptid): Simplify.
13417 (get_first_inferior): New function.
13418 (clear_list): Delete.
13419 (one_inferior_p): New function.
13420 (clear_inferior_list): New function.
13421 (clear_inferiors): Update.
13422 * inferiors.h (for_each_inferior_with_data): Declare.
13423 (clear_inferior_list): Declare.
13424 (one_inferior_p): Declare.
13425 (get_first_inferior): Declare.
13426 * linux-low.c (linux_wait_for_event): Replace accessing list
13427 implemention details with API function.
13428 * server.c (target_running): Ditto.
13429 (accumulate_file_name_length): New function.
13430 (emit_dll_description): New function.
13431 (handle_qxfer_libraries): Replace accessing list implemention
13432 details with API function.
13433 (handle_qxfer_threads_worker): New function.
13434 (handle_qxfer_threads_proper): Replace accessing list implemention
13435 details with API function.
13436 (handle_query): Ditto.
13437 (visit_actioned_threads_callback_ftype): New typedef.
13438 (visit_actioned_threads_data): New struct.
13439 (visit_actioned_threads): Rewrite to be find_inferior callback.
13440 (resume): Call find_inferior.
13441 (handle_status): Replace accessing list implemention
13442 details with API function.
13443 (process_serial_event): Replace accessing list implemention details
13444 with API function.
13445 * target.c (set_desired_inferior): Replace accessing list implemention
13446 details with API function.
13447 * tracepoint.c (same_process_p): New function.
13448 (gdb_agent_about_to_close): Replace accessing list implemention
13449 details with API function.
13450 * win32-low.c (child_delete_thread): Replace accessing list
13451 implemention details with API function.
13452 (match_dll_by_basename): New function.
13453 (dll_is_loaded_by_basename): New function.
13454 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13455 details call to dll_is_loaded_by_basename.
13456
80894984
DE
134572014-02-19 Doug Evans <dje@google.com>
13458
13459 * dll.h (struct dll_info): Add comment.
13460 * gdbthread.h (struct thread_info): Add comment.
13461 (current_ptid): Simplify.
13462 * inferiors.c (add_process): Update.
13463 (remove_process): Update.
13464 * inferiors.h (struct process_info): Rename member "head" to "entry".
13465 * linux-low.c (delete_lwp): Update.
13466 (add_lwp): Update.
13467 (last_thread_of_process_p): Update.
13468 (kill_one_lwp_callback, linux_kill): Update.
13469 (status_pending_p_callback): Update.
13470 (wait_for_sigstop): Update. Simplify read of ptid.
13471 (start_step_over): Update.
13472 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13473 (get_lwp_thread): Update.
13474 (struct lwp_info): Rename member "head" to "entry".
13475 * regcache.h (inferior_list_entry): Delete.
13476 * server.c (kill_inferior_callback): Update.
13477 (detach_or_kill_inferior_callback): Update.
13478 (print_started_pid): Update.
13479 (print_attached_pid): Update.
13480 (process_serial_event): Simplify read of ptid.
13481 * thread-db.c (thread_db_create_event): Update.
13482 (thread_db_get_tls_address): Update.
13483 * win32-low.c (current_inferior_ptid): Simplify.
13484
46917d26
TT
134852014-02-19 Tom Tromey <tromey@redhat.com>
13486
13487 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13488 argument.
13489 (target_supports_btrace): Update.
13490
0759a81e
YQ
134912014-02-14 Yao Qi <yao@codesourcery.com>
13492
13493 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13494 (rsp-low-ipa.o): New target.
13495
a7191e8b
TT
134962014-02-12 Tom Tromey <tromey@redhat.com>
13497
13498 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13499 convert_ascii_to_int.
13500 * regcache.c (registers_to_string): Likewise.
13501 * remote-utils.c (decode_M_packet): Likewise.
13502 * server.c (process_serial_event): Likewise.
13503
ff0e980e
TT
135042014-02-12 Tom Tromey <tromey@redhat.com>
13505
13506 * server.c (handle_query, handle_v_run): Use hex2bin, not
13507 unhexify.
13508 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13509
e9371aff
TT
135102014-02-12 Tom Tromey <tromey@redhat.com>
13511
13512 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13513 convert_int_to_ascii.
13514 * regcache.c (registers_to_string, collect_register_as_string):
13515 Likewise.
13516 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13517 Likewise.
13518 * server.c (process_serial_event): Likewise.
13519 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13520 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13521
971dc0b8
TT
135222014-02-12 Tom Tromey <tromey@redhat.com>
13523
13524 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13525 bin2hex, not hexify.
13526 * tracepoint.c (cmd_qtstatus): Likewise.
13527
0a822afb
TT
135282014-02-12 Tom Tromey <tromey@redhat.com>
13529
13530 * remote-utils.c (monitor_output): Pass explicit length to
13531 hexify.
13532
9c3d6531
TT
135332014-02-12 Tom Tromey <tromey@redhat.com>
13534
13535 * tracepoint.c: Include rsp-low.h.
13536 * server.c: Include rsp-low.h.
13537 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13538 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13539 declare.
13540 * remote-utils.c: Include rsp-low.h.
13541 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13542 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13543 (convert_int_to_ascii, convert_ascii_to_int): Move to
13544 common/rsp-low.c.
13545 * regcache.c: Include rsp-low.h.
13546 * ax.c: Include rsp-low.h.
13547 * Makefile.in (SFILES): Add common/rsp-low.c.
13548 (OBS): Add rsp-low.o.
13549 (rsp-low.o): New target.
13550
01fd3ea5
TT
135512014-02-12 Tom Tromey <tromey@redhat.com>
13552
13553 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13554 Include print-utils.h.
13555 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13556 (plongest, thirty_two, phex_nz): Remove.
13557 * Makefile.in (SFILES): Add common/print-utils.c.
13558 (OBS): Add print-utils.o.
13559 (print-utils-ipa.o): New target.
13560 (print-utils.o): New target.
13561 (IPA_OBJS): Add print-utils-ipa.o.
13562
e99dc820
TT
135632014-02-06 Tom Tromey <tromey@redhat.com>
13564
13565 * Makefile.in (SFILES): Fix indentation.
13566
ee1e2d4f
DE
135672014-02-05 Doug Evans <dje@google.com>
13568
13569 * linux-low.c (linux_wait_for_event): Improve comment.
13570 (linux_wait_1): Keep current_inferior in sync with event_child.
13571
f5a02773
DE
135722014-01-22 Doug Evans <dje@google.com>
13573
13574 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13575
87ce2a04
DE
135762014-01-22 Doug Evans <dje@google.com>
13577
13578 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13579 * configure: Regenerate.
13580 * config.in: Regenerate.
13581 * Makefile.in (SFILES): Add debug.c.
13582 (OBS): Add debug.o.
13583 * debug.c: New file.
13584 * debug.h: New file.
13585 * linux-aarch64-low.c (*): Update all debugging printfs to use
13586 debug_printf instead of fprintf.
13587 * linux-arm-low.c (*): Ditto.
13588 * linux-cris-low.c (*): Ditto.
13589 * linux-crisv32-low.c (*): Ditto.
13590 * linux-m32r-low.c (*): Ditto.
13591 * linux-sparc-low.c (*): Ditto.
13592 * linux-x86.c (*): Ditto.
13593 * linux-low.c (*): Ditto.
13594 (linux_wait_1): Add calls to debug_enter, debug_exit.
13595 (linux_wait): Remove redundant debugging printf.
13596 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13597 (linux_resume, unstop_all_lwps): Ditto.
13598 * mem-break.c (*): Update all debugging printfs to use
13599 debug_printf instead of fprintf.
13600 * remote-utils.c (*): Ditto.
13601 * thread-db.c (*): Ditto.
13602 * server.c #include <ctype.h>, "gdb_vecs.h".
13603 (debug_threads): Moved to debug.c.
13604 (*): Update all debugging printfs to use debug_printf instead of
13605 fprintf.
13606 (start_inferior): Replace call to fflush with call to debug_flush.
13607 (monitor_show_help): Mention set debug-format.
13608 (parse_debug_format_options): New function.
13609 (handle_monitor_command): Handle "monitor set debug-format".
13610 (gdbserver_usage): Mention --debug-format.
13611 (main): Parse --debug-format.
13612 * server.h (debug_threads): Declaration moved to debug.h.
13613 #include "debug.h".
13614 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13615 trace_debug_1 that uses debug_printf.
13616 (tracepoint_look_up_symbols): Update all debugging printfs to use
13617 debug_printf instead of fprintf.
13618
e671835b
BS
136192014-01-20 Baruch Siach <baruch@tkos.co.il>
13620
13621 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13622 sys/ptrace.h.
13623
b5737fa9
PA
136242014-01-17 Pedro Alves <palves@redhat.com>
13625
ea38d2a9 13626 PR build/16445
c7faa97a
PA
13627 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13628 defined after including gdb_proc_service.h.
b5737fa9 13629
40ed484e
DE
136302014-01-16 Doug Evans <dje@google.com>
13631
13632 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13633 (match_dll): Use it.
13634
969c39fb
MM
136352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13636
13637 * target.h (target_ops) <read_btrace>: Change parameters and
13638 return type to allow error reporting.
13639 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13640 trace reading errors on.
13641 * linux-low.c (linux_low_read_btrace): Pass trace reading
13642 errors on.
13643 (linux_low_disable_btrace): New.
13644
ab7f45ba
DE
136452014-01-15 Doug Evans <dje@google.com>
13646
13647 * inferiors.c (thread_id_to_gdb_id): Delete.
13648 * inferiors.h (thread_id_to_gdb_id): Delete.
13649
66af0f44
EZ
136502014-01-13 Eli Zaretskii <eliz@gnu.org>
13651
13652 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13653 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13654 versions.
13655
9939e131
PA
136562014-01-08 Pedro Alves <palves@redhat.com>
13657
13658 * server.c (handle_status): Don't discard previous queued stop
13659 replies or thread's pending status here.
13660 (main) <disconnection>: Do it here instead.
13661
b7ea362b
PA
136622014-01-08 Pedro Alves <palves@redhat.com>
13663
13664 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13665 * server.c (visit_actioned_threads, handle_pending_status): New
13666 function.
13667 (handle_v_cont): Factor out parts to ...
13668 (resume): ... this new function. If in all-stop, and a thread
13669 being resumed has a pending status, report it without actually
13670 resuming.
13671 (myresume): Adjust to use the new 'resume' function.
13672 (clear_pending_status_callback, set_pending_status_callback)
13673 (find_status_pending_thread_callback): New functions.
13674 (handle_status): Handle the case of multiple threads having
13675 interesting statuses to report. Report threads' real last signal
13676 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13677 with an interesting thread to report the status for, instead of
13678 always reporting the status of the first thread.
13679
28498c42
JB
136802014-01-01 Joel Brobecker <brobecker@adacore.com>
13681
13682 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13683 * gdbreplay.c (gdbreplay_version): Likewise.
13684
f45c82da
YZ
136852013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13686
13687 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13688 iov.iov_len with the real length in use.
13689
379a5e2d
JB
136902013-12-13 Joel Brobecker <brobecker@adacore.com>
13691
13692 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13693 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13694 for all targets that use win32-low.c.
13695 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13696 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13697
4210d83e
PA
136982013-12-13 Pedro Alves <palves@redhat.com>
13699
13700 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13701 if equal to TARGET_WAITKIND_LOADED.
13702 * win32-low.c (cached_status): New static global.
13703 (win32_wait): Add declaration.
13704 (do_initial_child_stuff): Flush all initial pending debug events
13705 up to the initial breakpoint.
13706 (win32_wait): If CACHED_STATUS was set, return that instead
13707 of doing a real wait. Remove the code resuming the execution
13708 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13709 during the initial phase. Also remove the code changing
13710 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13711 TARGET_WAITKIND_STOPPED.
13712
e7f0d979
YQ
137132013-12-11 Yao Qi <yao@codesourcery.com>
13714
13715 * notif.c (handle_notif_ack): Return 0 if no notification
13716 matches.
13717
ebcf782c
DE
137182013-11-20 Doug Evans <dje@google.com>
13719
13720 * linux-low.c (linux_set_resume_request): Fix comment.
13721
20ad9378
DE
137222013-11-20 Doug Evans <dje@google.com>
13723
13724 * linux-low.c (resume_status_pending_p): Tweak comment.
13725
a196ebeb
WT
137262013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13727
13728 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13729 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13730 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13731 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13732 (srv_amd64_regobj): Add amd64-mpx.o.
13733 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13734 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13735 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13736 * i387-fp.c (num_pl_bnd_register) Added constant.
13737 (num_pl_bnd_cfg_registers) Added constant.
13738 (struct i387_xsave) Added reserved area and MPX fields.
13739 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13740 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13741 function.
13742 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13743 (init_registers_amd64_mpx_linux): Declare new function.
13744 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13745 (x86_64_regmap): Add MPX registers.
13746 (x86_linux_read_description): Add MPX case.
13747 (initialize_low_arch): Initialize MPX targets.
13748
0080a2f6
TT
137492013-11-18 Tom Tromey <tromey@redhat.com>
13750
13751 * configure: Rebuild.
13752 * configure.ac: Don't check for stdlib.h.
13753 * gdbreplay.c: Unconditionally include stdlib.h.
13754
2978b111
TT
137552013-11-18 Tom Tromey <tromey@redhat.com>
13756
13757 * config.in: Rebuild.
13758 * configure: Rebuild.
13759 * configure.ac: Don't use AC_HEADER_DIRENT.
13760
a3d08894
TT
137612013-11-18 Tom Tromey <tromey@redhat.com>
13762
13763 * server.h: Don't check HAVE_STRING_H.
13764 * gdbreplay.c: Don't check HAVE_STRING_H.
13765 * configure: Rebuild.
13766
0a5dd17d
TT
137672013-11-18 Tom Tromey <tromey@redhat.com>
13768
13769 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13770 LIBGNU.
13771
1bd2f0ba
TT
137722013-11-08 Tom Tromey <tromey@redhat.com>
13773
13774 * configure, config.in: Rebuild.
13775 * configure.ac: Remove unused configury.
13776
3266f10b
TT
137772013-11-08 Tom Tromey <tromey@redhat.com>
13778
13779 * acinclude.m4: Include common.m4, codeset.m4.
13780 * configure, config.in: Rebuild.
13781 * configure.ac: Use GDB_AC_COMMON.
13782
6682d959
AA
137832013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13784
13785 * linux-s390-low.c (HWCAP_S390_TE): New define.
13786 (s390_arch_setup): Consider the TE field in the HWCAP for
13787 determining 'have_regset_tdb'.
13788
fd0a4d76
SDJ
137892013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13790
13791 PR gdb/16014
13792 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13793 call to sizeof.
13794
1a3d890b
PA
137952013-10-02 Pedro Alves <palves@redhat.com>
13796
13797 * server.c (process_serial_event): Don't output "GDBserver
13798 exiting" if GDB is connected through stdio.
13799 * target.c (mywait): Likewise, be silent if GDB is connected
13800 through stdio.
13801
97ad4581
JB
138022013-10-01 Joel Brobecker <brobecker@adacore.com>
13803
13804 * lynx-low.c (lynx_add_threads_after_attach): New function.
13805 (lynx_attach): Remove call to add_thread. Add call to
13806 lynx_add_threads_after_attach instead.
13807
5b4e221c
MF
138082013-09-28 Mike Frysinger <vapier@gentoo.org>
13809
13810 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13811 * config.in, configure: Regenerated.
13812
ee47b2f8
YQ
138132013-09-18 Yao Qi <yao@codesourcery.com>
13814
13815 PR server/15959
13816 * server.c (start_inferior): Clear 'resume_info'.
13817
d6707650 138182013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13819
d6707650
JW
13820 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13821 for each register.
13822
9243dd0e 138232013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13824
9243dd0e
JW
13825 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13826 linux-tile-low.o to srv_tgtobj.
13827
c623a6ef
WN
138282013-09-16 Will Newton <will.newton@linaro.org>
13829
13830 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13831 out regs.
13832
fb71d39e
PA
138332013-09-06 Pedro Alves <palves@redhat.com>
13834
13835 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13836 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13837 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13838 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13839 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13840 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13841
8e7e9910
PA
138422013-09-06 Pedro Alves <palves@redhat.com>
13843
13844 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13845 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13846
7c3a12ca
PA
138472013-09-06 Pedro Alves <palves@redhat.com>
13848
13849 * linux-amd64-ipa.c: Include tracepoint.h.
13850 * linux-i386-ipa.c: Include tracepoint.h.
13851
8eb3d7b6
RW
138522013-09-06 Ricard Wanderlof <ricardw@axis.com>
13853
13854 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13855 (ps_get_thread_area): New function.
13856
eddddb9d
RW
138572013-09-06 Ricard Wanderlof <ricardw@axis.com>
13858
13859 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13860 (initialize_low_arch): Call init_registers_crisv32 rather than
13861 init_register_crisv32.
13862
533b0600
PA
138632013-09-05 Pedro Alves <palves@redhat.com>
13864
13865 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13866 to ...
13867 * hostio.h: ... this new file.
13868 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13869 win32-low.c: Include hostio.h.
13870
0ce3d3b5
PA
138712013-09-05 Pedro Alves <palves@redhat.com>
13872
13873 * server.h (gdb_client_data, handler_func, callback_handler_func)
13874 (delete_file_handler, add_file_handler, append_callback_event)
13875 (delete_callback_event, start_event_loop, initialize_event_loop):
13876 Move to event-loop.h and include it.
13877 * event-loop.h: New file.
13878
799cdc37
PA
138792013-09-05 Pedro Alves <palves@redhat.com>
13880
13881 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13882 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13883 (loaded_dll, unloaded_dll): Move to ...
13884 * dll.h: ... this new file.
13885 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13886
6a6bbd9d
PA
138872013-09-05 Pedro Alves <palves@redhat.com>
13888
13889 * server.h (current_process, get_thread_process, all_processes)
13890 (add_inferior_to_list, for_each_inferior, current_inferior)
13891 (remove_inferior, add_process, remove_process, find_process_pid)
13892 (have_started_inferiors_p, have_attached_inferiors_p)
13893 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13894 (clear_inferiors, find_inferior, find_inferior_id)
13895 (inferior_target_data, set_inferior_target_data)
13896 (inferior_regcache_data, set_inferior_regcache_data): Move to
13897 inferiors.h, and include it.
13898 * inferiors.h: New file.
13899
f699aaba
PA
139002013-09-05 Pedro Alves <palves@redhat.com>
13901
13902 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13903 Move ...
72f4393d 13904 * ax.h: ... here.
f699aaba 13905
c144c7a0
PA
139062013-09-05 Pedro Alves <palves@redhat.com>
13907
13908 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13909 tracepoint.h.
13910 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13911 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13912 (handle_tracepoint_general_set, handle_tracepoint_query)
13913 (tracepoint_finished_step, tracepoint_was_hit)
13914 (release_while_stepping_state_list, current_traceframe)
13915 (in_readonly_region, traceframe_read_mem)
13916 (fetch_traceframe_registers, traceframe_read_sdata)
13917 (traceframe_read_info, struct fast_tpoint_collect_status)
13918 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13919 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13920 (supply_fast_tracepoint_registers)
13921 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13922 (ipa_tdesc, claim_trampoline_space)
13923 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13924 (agent_mem_read, agent_get_trace_state_variable_value)
13925 (agent_set_trace_state_variable_value, agent_tsv_read)
13926 (agent_mem_read_string, get_raw_reg_func_addr)
13927 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13928 * tracepoint.h: ... this new file.
13929
ff42e6ab
PA
139302013-09-05 Pedro Alves <palves@redhat.com>
13931
13932 * server.h (perror_with_name, error, fatal, warning, paddress)
13933 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13934 include it.
13935 * utils.h: New file.
13936
541af0f4
PA
139372013-09-05 Pedro Alves <palves@redhat.com>
13938
13939 * server.h (remote_debug, noack_mode, transport_is_reliable)
13940 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13941 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13942 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13943 (write_enn, initialize_async_io, enable_async_io)
13944 (disable_async_io, check_remote_input_interrupt_request)
13945 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13946 (dead_thread_notify, prepare_resume_reply)
13947 (decode_address_to_semicolon, decode_address, decode_m_packet)
13948 (decode_M_packet, decode_X_packet, decode_xfer_write)
13949 (decode_search_memory_packet, unhexify, hexify)
13950 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13951 (look_up_one_symbol, relocate_instruction)
13952 (monitor_output): Move to remote-utils.h, and include it.
13953 * remote-utils.h: New file.
13954
eebdf26b
PA
139552013-09-05 Pedro Alves <palves@redhat.com>
13956
13957 * server.h (_): Delete.
13958
3aafd2ff
PA
139592013-09-02 Pedro Alves <palves@redhat.com>
13960
13961 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13962 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13963 allocated.
13964 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13965
cee83bcb
PM
139662013-09-02 Pierre Muller <muller@sourceware.org>
13967
13968 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13969 or WriteProcessMemory complete successfully and handle
13970 ERROR_PARTIAL_COPY error.
13971
9a13b2fa
PA
139722013-09-02 Pedro Alves <palves@redhat.com>
13973
13974 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13975 error instead of EIO.
13976
602e3198
JK
139772013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13978
13979 PR server/15604
13980 * linux-low.c: Include filestuff.h.
13981 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13982 * lynx-low.c: Include filestuff.h.
13983 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13984 * server.c: Include filestuff.h.
13985 (main): Call notice_open_fds.
13986 * spu-low.c: Include filestuff.h.
13987 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13988
96d7229d
LM
139892013-08-22 Luis Machado <lgustavo@codesourcery.com>
13990
13991 * Makefile.in: Explain why ../target and ../nat are not
13992 listed as include file search paths.
13993 (linux-waitpid.o): New object file rule.
13994 * configure.srv (srv_native_linux_obj): New variable.
13995 Replace all occurrences of linux native object files with
13996 $srv_native_linux_obj.
13997 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13998 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13999 (linux_enable_event_reporting): Remove declaration.
14000 (my_waitpid): Moved to common/linux-waitpid.c.
14001 (linux_wait_for_event): Pass ptid when calling
14002 linux_enable_event_reporting.
14003 (linux_supports_tracefork_flag): Remove.
14004 (linux_enable_event_reporting): Likewise.
14005 (linux_tracefork_grandchild): Remove.
14006 (STACK_SIZE): Moved to common/linux-ptrace.c.
14007 (linux_tracefork_child): Remove.
14008 (linux_test_for_tracefork): Remove.
14009 (linux_look_up_symbols): Call linux_supports_traceclone.
14010 (initialize_low): Remove call to linux_test_for_tracefork.
14011 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14012 common/linux-ptrace.h.
14013 (PTRACE_TYPE_ARG4): Likewise.
14014 Include linux-ptrace.h.
14015
32940073
PA
140162013-08-21 Pedro Alves <palves@redhat.com>
14017
14018 * config.in: Renegerate.
14019
33b60d58 140202013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14021
33b60d58
LM
14022 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14023 (SFILES): Remove $(srcdir)/common/target-common.c and
14024 add $(srcdir)/target/waitstatus.c.
14025 (OBS): Remove target-common.o and add waitstatus.o.
14026 (server_h): Remove $(srcdir)/../common/target-common.h and
14027 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14028 and $(srcdir)/../target/waitstatus.h.
14029 (target-common.o): Remove.
14030 (waitstatus.o): New target object file.
14031 * target.h: Do not include target-common.h and
14032 include target/resume.h, target/wait.h and
14033 target/waitstatus.h.
14034
b8e1b30e
LM
140352013-08-13 Luis Machado <lgustavo@codesourcery.com>
14036
14037 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14038 to PTRACE_TYPE_ARG3.
14039 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14040 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14041 PTRACE_TYPE_ARG4.
14042 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14043 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14044
7a60ad40
YQ
140452013-07-27 Jie Zhang <jie@codesourcery.com>
14046 Daniel Jacobowitz <dan@codesourcery.com>
14047 Yao Qi <yao@codesourcery.com>
14048
14049 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14050 (mips-linux-watch.o): New rule.
14051 (mips_linux_watch_h): New variable.
14052 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14053 srv_tgtobj.
14054 * linux-mips-low.c: Include mips-linux-watch.h.
14055 (struct arch_process_info, struct arch_lwp_info): New.
14056 (update_watch_registers_callback): New function.
14057 (mips_linux_new_process, mips_linux_new_thread) New functions.
14058 (mips_linux_prepare_to_resume, mips_insert_point): New
14059 functions.
14060 (mips_remove_point, mips_stopped_by_watchpoint): New
14061 functions.
14062 (rsp_bp_type_to_target_hw_bp_type): New function.
14063 (mips_stopped_data_address): New function.
14064 (the_low_target): Add watchpoint support functions.
14065
de6f69ad
YQ
140662013-07-27 Yao Qi <yao@codesourcery.com>
14067
14068 * i386-low.c: Include break-common.h.
14069 (enum target_hw_bp_type): Remove.
14070
3360c0bf
LM
140712013-07-24 Luis Machado <lgustavo@codesourcery.com>
14072
14073 * Makefile.in (SFILES): /common/target-common.c.
14074 (OBS): Add target-common.o.
14075 (server_h): Add $(srcdir)/../common/target-common.h.
14076 (target-common.o): New target.
14077 * server.c (queue_stop_reply_callback): Free
14078 status string after use.
14079 * target.c (target_waitstatus_to_string): Remove.
14080 * target.h: Include target-common.h.
14081 (resume_kind): Likewise.
14082 (target_waitkind): Likewise.
14083 (target_waitstatus): Likewise.
14084 (TARGET_WNOHANG): Likewise.
14085
bd885420
YQ
140862013-07-04 Yao Qi <yao@codesourcery.com>
14087
14088 * Makefile.in (host_alias): Use @host_noncanonical@.
14089 (target_alias): Use @target_noncanonical@.
14090 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14091 ACX_NONCANONICAL_HOST.
14092 * configure: Regenerated.
14093
14094 Revert:
14095 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14096
14097 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14098 * configure: Rebuild.
14099 * Makefile.in (version_host, version_target): Get from configure.
14100 (version.c): Use $(version_host) and $(version_target).
14101
17ef446e
PA
141022013-07-03 Pedro Alves <palves@redhat.com>
14103
14104 * Makefile.in (config.status): Depend on development.sh.
14105 * acinclude.m4: Include libmcheck.m4.
14106 * configure: Regenerate.
14107
7a9a7487
MG
141082013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14109
14110 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14111 attribute inside the parentheses.
14112 (winapi_DebugSetProcessKillOnExit): Ditto.
14113 (winapi_DebugBreakProcess): Ditto.
14114 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14115
49b64de6
MG
141162013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14117
14118 * notif.h (notif_event): Add a dummy member to avoid compiler
14119 errors.
14120
d5749ee7
PA
141212013-07-01 Pedro Alves <palves@redhat.com>
14122
14123 * hostio.c (HOSTIO_PATH_MAX): Define.
14124 (require_filename, handle_open, handle_unlink, handle_readlink):
14125 Use it.
14126
d8d2a3ee
PA
141272013-07-01 Pedro Alves <palves@redhat.com>
14128
14129 * server.h: Include "pathmax.h".
14130 * linux-low.c: Don't include sys/param.h.
14131 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14132 MAXPATHLEN.
14133 * win32-low.c: Don't include sys/param.h.
14134 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14135
bc7dea8d
PA
141362013-07-01 Pedro Alves <palves@redhat.com>
14137
14138 * event-loop.c: Don't check HAVE_UNISTD_H before including
14139 <unistd.h>.
14140 * gdbreplay.c: Likewise.
14141 * remote-utils.c: Likewise.
14142 * server.c: Likewise.
14143 * configure.ac: Don't check for unistd.h.
14144 * configure: Regenerate.
14145
d6c2da54
TT
141462013-06-28 Tom Tromey <tromey@redhat.com>
14147
14148 * Makefile.in (version.c): Use version.in, not
14149 common/version.in.
14150
257b6bec
MG
141512013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14152
14153 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14154 * configure: Rebuild.
14155 * Makefile.in (version_host, version_target): Get from configure.
14156 (version.c): Use $(version_host) and $(version_target).
14157
86ebe149
DK
141582013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14159
14160 Fix trace-status to output user name without trailing colon.
14161 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14162
f30aa5af
DK
141632013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14164
14165 Fix trace-status to output proper start-time and stop-time.
14166 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14167 output start time and stop time in hex as gdb expects.
14168
28a93511
YQ
141692013-06-26 Pedro Alves <pedro@codesourcery.com>
14170
14171 * tracepoint.c (build_traceframe_info_xml): Output trace state
14172 variables present in the trace buffer.
14173
01208463
TT
141742013-06-24 Tom Tromey <tromey@redhat.com>
14175
14176 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14177 create-version.sh.
14178 (version.o): Remove.
14179 * gdbreplay.c: Include version.h.
14180 (version, host_name): Don't declare.
14181 * server.h: Include version.h.
14182 (version, host_name): Don't declare.
14183
760256f9
PA
141842013-06-12 Pedro Alves <palves@redhat.com>
14185
14186 * linux-x86-low.c (linux_is_elf64): Delete global.
14187 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14188 with local linux_pid_exe_is_elf_64_file use.
14189
030031ee
PA
141902013-06-11 Pedro Alves <palves@redhat.com>
14191
14192 * linux-low.c (regset_disabled, disable_regset): New functions.
14193 (regsets_fetch_inferior_registers)
14194 (regsets_store_inferior_registers): Use them.
14195 (initialize_regsets_info); Don't allocate the disabled_regsets
14196 array here.
14197 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14198 comment.
14199
5da6eb0a
PA
142002013-06-11 Pedro Alves <palves@redhat.com>
14201
14202 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14203 xmalloc.
14204
7e5aaa09
PA
142052013-06-11 Pedro Alves <palves@redhat.com>
14206
14207 * linux-x86-low.c (initialize_low_arch): Call
14208 init_registers_x32_avx_linux.
14209
d878444c
JK
142102013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14211
14212 Fix compatibility with Android Bionic.
14213 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14214 it is not empty.
14215
3aee8918
PA
142162013-06-07 Pedro Alves <palves@redhat.com>
14217
5f2b57b5 14218 PR server/14823
3aee8918
PA
14219 * Makefile.in (OBS): Add tdesc.o.
14220 (IPA_OBJS): Add tdesc-ipa.o.
14221 (tdesc-ipa.o): New rule.
14222 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14223 interface.
14224 * linux-low.c (new_inferior): Delete.
14225 (disabled_regsets, num_regsets): Delete.
14226 (linux_add_process): Adjust to set the new per-process
14227 new_inferior flag.
14228 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14229 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14230 was a stop. When calling arch_setup, switch the current inferior
14231 to the thread that got an event.
14232 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14233 (regsets_fetch_inferior_registers)
14234 (regsets_store_inferior_registers): New regsets_info parameter.
14235 Adjust to use it.
14236 (linux_register_in_regsets): New regs_info parameter. Adjust to
14237 use it.
14238 (register_addr, fetch_register, store_register): New usrregs_info
14239 parameter. Adjust to use it.
14240 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14241 parameter regs_info. Adjust to use it.
14242 (linux_fetch_registers): Get the current inferior's regs_info, and
14243 adjust to use it.
14244 (linux_store_registers): Ditto.
14245 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14246 (initialize_low): Don't initialize the target_regsets here. Call
14247 initialize_low_arch.
14248 * linux-low.h (target_regsets): Delete declaration.
14249 (struct regsets_info): New.
14250 (struct usrregs_info): New.
14251 (struct regs_info): New.
14252 (struct process_info_private) <new_inferior>: New field.
14253 (struct linux_target_ops): Delete the num_regs, regmap, and
14254 regset_bitmap fields. New field regs_info.
14255 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14256 * i387-fp.c (num_xmm_registers): Delete.
14257 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14258 calls to new interface.
14259 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14260 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14261 Infer the number of xmm registers from the regcache's target
14262 description.
14263 * i387-fp.h (num_xmm_registers): Delete.
14264 * inferiors.c (add_thread): Don't install the thread's regcache
14265 here.
14266 * proc-service.c (gregset_info): Fetch the current inferior's
14267 regs_info. Adjust to use it.
14268 * regcache.c: Include tdesc.h.
14269 (register_bytes, reg_defs, num_registers)
14270 (gdbserver_expedite_regs): Delete.
14271 (get_thread_regcache): If the thread doesn't have a regcache yet,
14272 create one, instead of aborting gdbserver.
14273 (regcache_invalidate_one): Rename to ...
14274 (regcache_invalidate_thread): ... this.
14275 (regcache_invalidate_one): New.
14276 (regcache_invalidate): Only invalidate registers of the current
14277 process.
14278 (init_register_cache): Add target_desc parameter, and use it.
14279 (new_register_cache): Ditto. Assert the target description has a
14280 non zero registers_size.
14281 (regcache_cpy): Add assertions. Adjust.
14282 (realloc_register_cache, set_register_cache): Delete.
14283 (registers_to_string, registers_from_string): Adjust.
14284 (find_register_by_name, find_regno, find_register_by_number)
14285 (register_cache_size): Add target_desc parameter, and use it.
14286 (free_register_cache_thread, free_register_cache_thread_one)
14287 (regcache_release, register_cache_size): New.
14288 (register_size): Add target_desc parameter, and use it.
14289 (register_data, supply_register, supply_register_zeroed)
14290 (supply_regblock, supply_register_by_name, collect_register)
14291 (collect_register_as_string, collect_register_by_name): Adjust.
14292 * regcache.h (struct target_desc): Forward declare.
14293 (struct regcache) <tdesc>: New field.
14294 (init_register_cache, new_register_cache): Add target_desc
14295 parameter.
14296 (regcache_invalidate_thread): Declare.
14297 (regcache_invalidate_one): Delete declaration.
14298 (regcache_release): Declare.
14299 (find_register_by_number, register_cache_size, register_size)
14300 (find_regno): Add target_desc parameter.
14301 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14302 declarations.
14303 * remote-utils.c: Include tdesc.h.
14304 (outreg, prepare_resume_reply): Adjust.
14305 * server.c: Include tdesc.h.
14306 (gdbserver_xmltarget): Delete declaration.
14307 (get_features_xml, process_serial_event): Adjust.
14308 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14309 declare.
14310 (struct process_info) <tdesc>: New field.
14311 (ipa_tdesc): Declare.
14312 * tdesc.c: New file.
14313 * tdesc.h: New file.
14314 * tracepoint.c: Include tdesc.h.
14315 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14316 (get_context_regcache): Adjust to pass ipa_tdesc down.
14317 (do_action_at_tracepoint): Adjust to get the register cache size
14318 from the context regcache's description.
14319 (traceframe_walk_blocks): Adjust to get the register cache size
14320 from the current trace frame's description.
14321 (traceframe_get_pc): Adjust to get current trace frame's
14322 description and pass it down.
14323 (gdb_collect): Adjust to get the register cache size from the
14324 IPA's description.
14325 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14326 (gdbserver_xmltarget): Delete.
14327 (initialize_low_tracepoint): Set the ipa's target description.
14328 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14329 (initialize_low_tracepoint): Set the ipa's target description.
14330 * linux-x86-low.c: Include tdesc.h.
14331 [__x86_64__] (is_64bit_tdesc): New.
14332 (ps_get_thread_area, x86_get_thread_area): Use it.
14333 (i386_cannot_store_register): Rename to ...
14334 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14335 (i386_cannot_fetch_register): Rename to ...
14336 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14337 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14338 to new interface.
14339 (target_regsets): Rename to ...
14340 (x86_regsets): ... this.
14341 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14342 interface.
14343 (x86_siginfo_fixup): Use is_64bit_tdesc.
14344 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14345 (tdesc_x32_avx_linux, tdesc_x32_linux)
14346 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14347 Declare.
14348 (x86_linux_update_xmltarget): Delete.
14349 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14350 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14351 (AMD64_LINUX_USER64_CS): New.
14352 (x86_linux_read_description): New, based on
14353 x86_linux_update_xmltarget.
14354 (same_process_callback): New.
14355 (x86_arch_setup_process_callback): New.
14356 (x86_linux_update_xmltarget): New.
14357 (x86_regsets_info): New.
14358 (amd64_linux_regs_info): New.
14359 (i386_linux_usrregs_info): New.
14360 (i386_linux_regs_info): New.
14361 (x86_linux_regs_info): New.
14362 (x86_arch_setup): Reimplement.
14363 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14364 (x86_emit_ops): Ditto.
14365 (the_low_target): Adjust. Install x86_linux_regs_info,
14366 x86_cannot_fetch_register, and x86_cannot_store_register.
14367 (initialize_low_arch): New.
14368 * linux-ia64-low.c (tdesc_ia64): Declare.
14369 (ia64_fetch_register): Adjust.
14370 (ia64_usrregs_info, regs_info): New globals.
14371 (ia64_regs_info): New function.
14372 (the_low_target): Adjust.
14373 (initialize_low_arch): New function.
14374 * linux-sparc-low.c (tdesc_sparc64): Declare.
14375 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14376 Adjust.
14377 (sparc_arch_setup): New function.
14378 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14379 (the_low_target): Adjust.
14380 (initialize_low_arch): New function.
14381 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14382 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14383 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14384 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14385 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14386 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14387 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14388 (tdesc_powerpc_isa205_vsx64l): Declare.
14389 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14390 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14391 (ppc_set_pc, ppc_get_hwcap): Adjust.
14392 (ppc_usrregs_info): Forward declare.
14393 (!__powerpc64__) ppc_regmap_adjusted: New global.
14394 (ppc_arch_setup): Adjust to the current process'es target
14395 description.
14396 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14397 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14398 (ppc_store_evrregset): Adjust.
14399 (target_regsets): Rename to ...
14400 (ppc_regsets): ... this, and make static.
14401 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14402 (ppc_regs_info): New function.
14403 (the_low_target): Adjust.
14404 (initialize_low_arch): New function.
14405 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14406 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14407 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14408 (tdesc_s390x_linux64v2): Declare.
14409 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14410 (s390_fill_gregset, s390_store_last_break): Adjust.
14411 (target_regsets): Rename to ...
14412 (s390_regsets): ... this, and make static.
14413 (s390_get_pc, s390_set_pc): Adjust.
14414 (s390_get_hwcap): New target_desc parameter, and use it.
14415 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14416 (s390_arch_setup): Adjust to set the current process'es target
14417 description. Don't adjust the regmap.
14418 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14419 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14420 (regs_info_3264): New globals.
14421 (s390_regs_info): New function.
14422 (the_low_target): Adjust.
14423 (initialize_low_arch): New function.
14424 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14425 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14426 [__mips64] (init_registers_mips_linux)
14427 (init_registers_mips_dsp_linux): Delete defines.
14428 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14429 (have_dsp): New global.
14430 (mips_read_description): New, based on mips_arch_setup.
14431 (mips_arch_setup): Reimplement.
14432 (get_usrregs_info): New function.
14433 (mips_cannot_fetch_register, mips_cannot_store_register)
14434 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14435 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14436 (target_regsets): Rename to ...
14437 (mips_regsets): ... this, and make static.
14438 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14439 (dsp_regs_info, regs_info): New globals.
14440 (mips_regs_info): New function.
14441 (the_low_target): Adjust.
14442 (initialize_low_arch): New function.
14443 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14444 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14445 Declare.
14446 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14447 (arm_read_description): New, with bits factored from
14448 arm_arch_setup.
14449 (arm_arch_setup): Reimplement.
14450 (target_regsets): Rename to ...
14451 (arm_regsets): ... this, and make static.
14452 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14453 (arm_regs_info): New function.
14454 (the_low_target): Adjust.
14455 (initialize_low_arch): New function.
14456 * linux-m68k-low.c (tdesc_m68k): Declare.
14457 (target_regsets): Rename to ...
14458 (m68k_regsets): ... this, and make static.
14459 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14460 (m68k_regs_info): New function.
14461 (m68k_arch_setup): New function.
14462 (the_low_target): Adjust.
14463 (initialize_low_arch): New function.
14464 * linux-sh-low.c (tdesc_sharch): Declare.
14465 (target_regsets): Rename to ...
14466 (sh_regsets): ... this, and make static.
14467 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14468 (sh_regs_info, sh_arch_setup): New functions.
14469 (the_low_target): Adjust.
14470 (initialize_low_arch): New function.
14471 * linux-bfin-low.c (tdesc_bfin): Declare.
14472 (bfin_arch_setup): New function.
14473 (bfin_usrregs_info, regs_info): New globals.
14474 (bfin_regs_info): New function.
14475 (the_low_target): Adjust.
14476 (initialize_low_arch): New function.
14477 * linux-cris-low.c (tdesc_cris): Declare.
14478 (cris_arch_setup): New function.
14479 (cris_usrregs_info, regs_info): New globals.
14480 (cris_regs_info): New function.
14481 (the_low_target): Adjust.
14482 (initialize_low_arch): New function.
14483 * linux-cris-low.c (tdesc_crisv32): Declare.
14484 (cris_arch_setup): New function.
14485 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14486 (cris_regs_info): New function.
14487 (the_low_target): Adjust.
14488 (initialize_low_arch): New function.
14489 * linux-m32r-low.c (tdesc_m32r): Declare.
14490 (m32r_arch_setup): New function.
14491 (m32r_usrregs_info, regs_info): New globals.
14492 (m32r_regs_info): Adjust.
14493 (initialize_low_arch): New function.
14494 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14495 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14496 (tic6x_usrregs_info): Forward declare.
14497 (tic6x_read_description): New function, based on ...
14498 (tic6x_arch_setup): ... this. Reimplement.
14499 (target_regsets): Rename to ...
14500 (tic6x_regsets): ... this, and make static.
14501 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14502 (tic6x_regs_info): New function.
14503 (the_low_target): Adjust.
14504 (initialize_low_arch): New function.
14505 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14506 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14507 (target_regsets): Rename to ...
14508 (xtensa_regsets): ... this, and make static.
14509 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14510 globals.
14511 (xtensa_arch_setup, xtensa_regs_info): New functions.
14512 (the_low_target): Adjust.
14513 (initialize_low_arch): New function.
14514 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14515 (nios2_arch_setup): Set the current process'es tdesc.
14516 (target_regsets): Rename to ...
14517 (nios2_regsets): ... this.
14518 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14519 (nios2_regs_info): New function.
14520 (the_low_target): Adjust.
14521 (initialize_low_arch): New function.
a261b8f5
PA
14522 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14523 (aarch64_arch_setup): Set the current process'es tdesc.
14524 (target_regsets): Rename to ...
14525 (aarch64_regsets): ... this.
14526 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14527 (aarch64_regs_info): New function.
14528 (the_low_target): Adjust.
14529 (initialize_low_arch): New function.
3aee8918
PA
14530 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14531 globals.
14532 (target_regsets): Rename to ...
14533 (tile_regsets): ... this.
14534 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14535 (tile_regs_info): New function.
14536 (tile_arch_setup): Set the current process'es tdesc.
14537 (the_low_target): Adjust.
14538 (initialize_low_arch): New function.
14539 * spu-low.c (tdesc_spu): Declare.
14540 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14541 * win32-arm-low.c (tdesc_arm): Declare.
14542 (arm_arch_setup): New function.
14543 (the_low_target): Install arm_arch_setup instead of
14544 init_registers_arm.
14545 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14546 (init_windows_x86): Rename to ...
14547 (i386_arch_setup): ... this. Set `win32_tdesc'.
14548 (the_low_target): Adjust.
14549 * win32-low.c (win32_tdesc): New global.
14550 (child_add_thread): Don't create the thread cache here.
14551 (do_initial_child_stuff): Set the new process'es tdesc.
14552 * win32-low.h (struct target_desc): Forward declare.
14553 (win32_tdesc): Declare.
14554 * lynx-i386-low.c (tdesc_i386): Declare global.
14555 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14556 * lynx-low.c (lynx_tdesc): New global.
14557 (lynx_add_process): Set the new process'es tdesc.
14558 * lynx-low.h (struct target_desc): Forward declare.
14559 (lynx_tdesc): Declare global.
14560 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14561 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14562 * nto-low.c (nto_tdesc): New global.
14563 (do_attach): Set the new process'es tdesc.
14564 * nto-low.h (struct target_desc): Forward declare.
14565 (nto_tdesc): Declare.
14566 * nto-x86-low.c (tdesc_i386): Declare.
14567 (nto_x86_arch_setup): Set `nto_tdesc'.
14568
b1fbec62
GB
145692013-06-04 Gary Benson <gbenson@redhat.com>
14570
14571 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14572 to qSupported response when appropriate.
14573 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14574 with nonzero-length annex.
14575 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14576 arguments supplied in annex.
14577
d1ec4ce7
DE
145782013-05-31 Doug Evans <dje@google.com>
14579
ac44adcb 14580 PR server/15594
d1ec4ce7
DE
14581 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14582 64 bits in 64-cross-32 environment.
14583
9b25f2d3
PA
145842013-05-28 Pedro Alves <palves@redhat.com>
14585
14586 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14587 (aarch64-without-fpu.c): Delete rule.
14588 * configure.srv (aarch64*-*-linux*): Remove references to
14589 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14590 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14591 declaration.
14592
6740dc9c
PA
145932013-05-24 Pedro Alves <palves@redhat.com>
14594
14595 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14596 instead of strchr/decode_address. Error if the range isn't split
14597 with a ','. Don't assume there's be a ':' in the action.
14598
c2d6af84
PA
145992013-05-23 Yao Qi <yao@codesourcery.com>
14600 Pedro Alves <palves@redhat.com>
14601
14602 * linux-low.c (lwp_in_step_range): New function.
14603 (linux_wait_1): If the thread was range stepping and stopped
14604 outside the stepping range, report the stop to GDB. Otherwise,
14605 continue stepping. Add range stepping debug output.
14606 (linux_set_resume_request): Copy the step range from the resume
14607 request to the lwp.
14608 (linux_supports_range_stepping): New.
14609 (linux_target_ops) <supports_range_stepping>: Set to
14610 linux_supports_range_stepping.
14611 * linux-low.h (struct linux_target_ops)
14612 <supports_range_stepping>: New field.
14613 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14614 * linux-x86-low.c (x86_supports_range_stepping): New.
14615 (the_low_target) <supports_range_stepping>: Set to
14616 x86_supports_range_stepping.
14617 * server.c (handle_v_cont): Handle 'r' action.
14618 (handle_v_requests): Append ";r" if the target supports range
14619 stepping.
14620 * target.h (struct thread_resume) <step_range_start,
14621 step_range_end>: New fields.
14622 (struct target_ops) <supports_range_stepping>:
14623 New field.
14624 (target_supports_range_stepping): New macro.
14625
58794e1a
JB
146262013-05-17 Joel Brobecker <brobecker@adacore.com>
14627
14628 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14629 confusion in comment.
14630
d631c5a7
JB
146312013-05-17 Joel Brobecker <brobecker@adacore.com>
14632
14633 * lynx-low.c (struct process_info_private): New type.
14634 (lynx_add_process): New function.
14635 (lynx_create_inferior, lynx_attach): Replace calls to
14636 add_process by calls to lynx_add_process.
14637 (lynx_resume): If PTID is null, then try using
14638 current_process()->private->last_wait_event_ptid.
14639 Add comments.
14640 (lynx_clear_inferiors): Delete. The contents of that function
14641 has been inlined in lynx_mourn;
14642 (lynx_wait_1): Save the ptid in the process's private data.
14643 (lynx_mourn): Free the process' private data. Replace call
14644 to lynx_clear_inferiors by call to clear_inferiors.
14645
96f7a20f
YQ
146462013-05-17 Yao Qi <yao@codesourcery.com>
14647
14648 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14649 the right place.
14650
db0dfaa0
LM
146512013-05-16 Luis Machado <lgustavo@codesourcery.com>
14652
14653 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14654 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14655 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14656 PT_TEXT_END_ADDR guards. Update comments.
14657 (linux_target_op) <read_offsets>: Conditionally define to
14658 linux_read_offsets if the target is UCLIBC and if it defines
14659 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14660
68f5f838
SL
146612013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14662 Andrew Jenner <andrew@codesourcery.com>
14663
14664 * Makefile.in (SFILES): Add linux-nios2-low.c.
14665 (clean): Add action to delete nios2-linux.c.
14666 (nios2-linux.c): New rule.
14667 * configure.srv: Add nios2*-*-linux*.
14668 * linux-nios2-low.c: New.
14669
1ebff1fd
HAQ
146702013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14671
14672 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14673
f6150862
HZ
146742013-04-25 Hui Zhu <hui@codesourcery.com>
14675
14676 PR gdb/15186
f6150862
HZ
14677 * ax.c (ax_printf): Add fflush.
14678
614c279d
TT
146792013-04-22 Tom Tromey <tromey@redhat.com>
14680
14681 * Makefile.in (SFILES): Add filestuff.c.
14682 (OBS): Add filestuff.o.
14683 (filestuff.o): New target.
14684 * config.in, configure: Rebuild.
14685 * configure.ac: Check for fdwalk, pipe2.
14686
7d4e5717
PA
146872013-04-17 Pedro Alves <palves@redhat.com>
14688
14689 * configure.ac (USE_THREAD_DB): Delete variable.
14690 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14691 Don't AC_SUBST USE_THREAD_DB.
14692 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14693 * config.in, configure: Regenerate.
14694
d5c93e41
PA
146952013-04-16 Pedro Alves <palves@redhat.com>
14696
14697 * linux-low.h (struct lwp_info) <thread_known>: Move under
14698 the USE_THREAD_DB #ifdef.
14699
04f5fe89
PA
147002013-04-16 Pedro Alves <palves@redhat.com>
14701
14702 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14703 (linux-low.o): Delete rule.
14704 * linux-low.h: Always include "gdb_thread_db.h" instead of
14705 conditionally including thread_db.h.
14706 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14707 HAVE_THREAD_DB_H.
14708
480b27bf
JK
147092013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14710
14711 * Makefile.in (install-only): Fix make install regression.
14712
43662968
JK
147132013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14714
14715 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14716 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14717 installation.
14718 * gdbserver.1: Remove.
14719
3e74e146
PA
147202013-03-22 Pedro Alves <palves@redhat.com>
14721
14722 * linux-low.c (handle_extended_wait): Don't call
14723 linux_enable_event_reporting.
14724
a8347a2a
TT
147252013-03-15 Tony Theodore <tonyt@logyst.com>
14726
14727 PR build/9098:
14728 * Makefile.in (SHELL): Use @SHELL@.
14729
eeb56fa7
SDJ
147302013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14731
14732 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14733 compiler warning.
14734
4fa7e2ff
JB
147352013-03-13 Joel Brobecker <brobecker@adacore.com>
14736
14737 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14738 Remove extraneous NULL element.
14739
8ddb1965
YQ
147402013-03-13 Yao Qi <yao@codesourcery.com>
14741
14742 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14743 'V' block in trace frame.
14744
9accd112
MM
147452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14746
14747 * target.h (struct target_ops): Add btrace ops.
14748 (target_supports_btrace): New macro.
14749 (target_enable_btrace): New macro.
14750 (target_disable_btrace): New macro.
14751 (target_read_btrace): New macro.
14752 * gdbthread.h (struct thread_info): Add btrace field.
14753 * server.c: Include btrace-common.h.
14754 (handle_btrace_general_set): New function.
14755 (handle_btrace_enable): New function.
14756 (handle_btrace_disable): New function.
14757 (handle_general_set): Call handle_btrace_general_set.
14758 (handle_qxfer_btrace): New function.
14759 (struct qxfer qxfer_packets[]): Add btrace entry.
14760 * inferiors.c (remove_thread): Disable btrace.
14761 * linux-low: Include linux-btrace.h.
14762 (linux_low_enable_btrace): New function.
14763 (linux_low_read_btrace): New function.
14764 (linux_target_ops): Add btrace ops.
14765 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14766 Add srv_linux_btrace=yes.
14767 (x86_64-*-linux*): Add linux-btrace.o.
14768 Add srv_linux_btrace=yes.
14769 * configure.ac: Define HAVE_LINUX_BTRACE.
14770 * config.in: Regenerated.
14771 * configure: Regenerated.
14772
5cc22e4c
MM
147732013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14774
14775 * server.c (handle_qxfer): Preserve error message if -3 is
14776 returned.
14777 (qxfer): Document the -3 return value.
14778
7c97f91e
MM
147792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14780
14781 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14782 (linux_btrace_h): New variable.
14783 (linux-btrace.o): New rule.
14784
be9a119c 147852013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14786 Hafiz Abid Qadeer <abidh@codesourcery.com>
14787
14788 * tracepoint.c (trace_buffer_size): New global.
14789 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14790 (init_trace_buffer): Change to one-argument function. Allocate
14791 trace buffer memory.
14792 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14793 handle QTBuffer:size packet.
14794 (cmd_bigqtbuffer_size): New function.
14795 (initialize_tracepoint): Call init_trace_buffer with
14796 DEFAULT_TRACE_BUFFER_SIZE.
14797 * server.c (handle_query): Add QTBuffer:size in the
14798 supported packets.
14799
e64f7499
YQ
148002013-03-07 Yao Qi <yao@codesourcery.com>
14801
14802 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14803 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14804 of -1.
14805 (cmd_qtsp): Adjust condition. Do post increment.
14806 Set cur_action and cur_step_action back to 0.
14807
f0ae6fc3
PA
148082013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14809
14810 PR server/15236
14811 * linux-low.c (linux_write_memory): Return early success if LEN is
14812 zero.
14813
b5b0b0af
CV
148142013-03-05 Corinna Vinschen <vinschen@redhat.de>
14815
334ad4a8 14816 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14817
589bc927
TT
148182013-02-28 Tom Tromey <tromey@redhat.com>
14819
14820 * configure.ac: Invoke AC_SYS_LARGEFILE.
14821 * configure, config.in: Rebuild.
14822
dfe07582
CV
148232013-02-28 Corinna Vinschen <vinschen@redhat.com>
14824
14825 * win32-low.c: Throughout, fix format strings and casts of
14826 printf-like functions to avoid type related warnings on all
14827 platforms.
14828 (get_child_debug_event): Print dwDebugEventCode as hex since
14829 that's how it's usually documented.
14830
736cd585
YQ
148312013-02-28 Yao Qi <yao@codesourcery.com>
14832
14833 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14834 pulongest.
14835
e1f58301
JW
148362013-02-27 Jiong Wang <jiwang@tilera.com>
14837
14838 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14839 (reg-tilegx32.c): New rule.
14840 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14841 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14842 different register info initializer according to elf class.
14843 (init_registers_tilgx32): New function. The tilegx32 register info
14844 initializer.
14845 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14846 (tile_store_gregset): Likewise.
14847
d171ca78
YQ
148482013-02-27 Yao Qi <yao@codesourcery.com>
14849
14850 * server.c (process_point_options): Print debug message when
14851 debug_threads is true.
14852
282bbdf3
YQ
148532013-02-26 Yao Qi <yao@codesourcery.com>
14854
14855 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14856
aca22551
PA
148572013-02-19 Pedro Alves <palves@redhat.com>
14858 Kai Tietz <ktietz@redhat.com>
14859
14860 PR gdb/15161
14861
14862 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14863 instead of strtoul to extract address from packet.
14864 (process_serial_event) <'z'>: Likewise.
14865
4f3cee1c
YQ
148662013-02-18 Yao Qi <yao@codesourcery.com>
14867
14868 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14869
8e1d55a3
PA
148702013-02-14 Pedro Alves <palves@redhat.com>
14871
14872 Plug memory leak.
14873
14874 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14875 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14876
458820da
PA
148772013-02-14 Pedro Alves <palves@redhat.com>
14878
14879 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14880
baea0dae
PA
148812013-02-14 Pedro Alves <palves@redhat.com>
14882
14883 * tracepoint.c (save_string): Delete.
14884 (add_tracepoint_action): Use savestring instead of save_string.
14885
0b1afbb3
PA
148862013-02-12 Pedro Alves <palves@redhat.com>
14887
14888 * linux-xtensa-low.c: Ditto.
14889 * xtensa-xtregs.c: Ditto.
14890
8a4ac37e
PA
148912013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14892
14893 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14894 thread_db.
14895
148de6bb
MS
148962013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14897
14898 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14899 aarch64_num_wp_regs and aarch64_num_bp_regs to
14900 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14901
55fac6e0
MS
149022013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14903
14904 * linux-aarch64-low.c (ps_get_thread_area): Replace
14905 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14906
176eb98c
MS
149072013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14908 Marcus Shawcroft <marcus.shawcroft@arm.com>
14909 Nigel Stephens <nigel.stephens@arm.com>
14910 Yufeng Zhang <yufeng.zhang@arm.com>
14911
14912 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14913 (aarch64.c, aarch64-without-fpu.c): New targets.
14914 * configure.srv (aarch64*-*-linux*): New.
14915 * linux-aarch64-low.c: New file.
14916
56f7af9c
MS
149172013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14918
43aaf8b6 14919 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14920 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14921 (dequeue_one_deferred_signal, linux_resume_one_thread)
14922 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14923 (linux_tracefork_grandchild, linux_test_for_tracefork)
14924 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14925 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14926 where the argument is 0.
14927
60f662b0
YQ
149282013-01-25 Yao Qi <yao@codesourcery.com>
14929
14930 * event-loop.c: Include "queue.h".
14931 (gdb_event_p): New typedef.
14932 (struct gdb_event) <next_event>: Remove.
14933 (event_queue): Change to QUEUE(gdb_event_p).
14934 (async_queue_event): Remove.
14935 (gdb_event_xfree): New.
14936 (initialize_event_loop): New.
14937 (process_event): Use API from QUEUE.
14938 (wait_for_event): Likewise.
14939 * server.c (main): Call initialize_event_loop.
14940 * server.h (initialize_event_loop): Declare.
14941
5ae4861a
YQ
149422013-01-18 Yao Qi <yao@codesourcery.com>
14943
14944 * ax.h (struct eval_agent_expr_context): New.
14945 (gdb_eval_agent_expr): Update declaration.
14946 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14947 TFRAME. Add new argument CTX.
14948 * server.h (struct eval_agent_expr_context): Declare.
14949 (agent_mem_read, agent_tsv_read): Update declaration.
14950 (agent_mem_read_string): Likewise.
14951 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14952 (add_traceframe_block): Add new argument TPOINT.
14953 Increase TPOINT->traceframe_usage.
14954 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14955 eval_tracepoint_agent_expr.
14956 (condition_true_at_tracepoint): Likewise.
14957 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14958 (agent_mem_read_string, agent_tsv_read): Likewise.
14959
85e00e85
YQ
149602013-01-16 Yao Qi <yao@codesourcery.com>
14961
14962 * linux-low.c (linux_resume_one_lwp): Don't check
14963 'lwp->bp_reinsert != 0'.
14964
4039cf45
JB
149652013-01-07 Joel Brobecker <brobecker@adacore.com>
14966 Pedro Alves <palves@redhat.com>
14967
14968 * lynx-low.c (ptrace_request_to_str): Define a temporary
14969 macro and use it to simplify this function's implementation.
14970
9044dee2
JB
149712013-01-07 Joel Brobecker <brobecker@adacore.com>
14972
14973 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14974 sets errno.
14975
e6352c8f
JB
149762013-01-07 Joel Brobecker <brobecker@adacore.com>
14977
14978 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14979
50681a27
JB
149802013-01-07 Joel Brobecker <brobecker@adacore.com>
14981
14982 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14983
3f6e77ef
JB
149842013-01-07 Joel Brobecker <brobecker@adacore.com>
14985
14986 * lynx-low.c (lynx_resume): Use the resume_info parameter
14987 to determine the ptid for the lynx_ptrace call, unless
14988 it is equal to minus_one_ptid, in which case we use the
14989 ptid of the current_inferior.
14990 (lynx_wait_1): After having received a thread create/exit
14991 event, resume the inferior's execution using the signaling
14992 thread's ptid, rather than the old ptid.
14993
7fda33ae
JB
149942013-01-07 Joel Brobecker <brobecker@adacore.com>
14995
14996 * lynx-low.c (lynx_resume): Delete variable ret.
14997
b9786c74
JB
149982013-01-01 Joel Brobecker <brobecker@adacore.com>
14999
15000 * gdbreplay.c (gdbreplay_version): Update copyright year.
15001 * server.c (gdbserver_version): Likewise.
15002
8b93d60f
JB
150032012-12-17 Joel Brobecker <brobecker@adacore.com>
15004
15005 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15006 new thread.
15007
037335a7
JB
150082012-12-17 Joel Brobecker <brobecker@adacore.com>
15009
15010 * lynx-low.c (ptrace_request_to_str): Add handling for
15011 PTRACE_GETTRACESIG.
15012
52d4cbd8
JB
150132012-12-17 Joel Brobecker <brobecker@adacore.com>
15014
15015 * lynx-low.c (lynx_attach): Delete variable new_process.
15016
ab8f6ca9
JB
150172012-12-17 Joel Brobecker <brobecker@adacore.com>
15018
15019 * lynx-low.c (lynx_create_inferior): Delete variable
15020 new_process.
15021
78cbc024
JB
150222012-12-17 Joel Brobecker <brobecker@adacore.com>
15023
15024 * lynx-low.c (ptrace_request_to_str): Do not handle
15025 PTRACE_GETTHREADLIST if this macro does not exist.
15026
14a00470
YQ
150272012-12-15 Yao Qi <yao@codesourcery.com>
15028
15029 * Makefile.in (OBS): Add notif.o.
15030 * notif.c, notif.h: New.
15031 * server.c: Include "notif.h".
15032 (struct vstop_notif) <next>: Remove.
15033 <base>: New field.
15034 (queue_stop_reply): Update.
15035 (push_event, send_next_stop_reply): Remove.
15036 (discard_queued_stop_replies): Update.
15037 (notif_stop): New variable.
15038 (handle_v_stopped): Remove.
15039 (handle_v_requests): Don't call handle_v_stopped. Call
15040 handle_ack_notif instead.
15041 (queue_stop_reply_callback): Call notif_event_enque instead
15042 of queue_stop_reply.
15043 (handle_status): Don't call send_next_stop_reply, call
15044 notif_write_event instead.
15045 (kill_inferior_callback): Likewise.
15046 (detach_or_kill_inferior_callback): Likewise.
15047 (main): Call initialize_notif.
15048 (process_serial_event): Call QUEUE_is_empty.
15049 (handle_target_event): Call notif_push instead of push event.
15050 * server.h (push_event): Remove declaration.
15051
61c125b9
TT
150522012-12-10 Tom Tromey <tromey@redhat.com>
15053
15054 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15055 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15056 macros.
15057 (.c.o): Rewrite.
15058 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15059 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15060 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15061 (amd64-linux-ipa.o, ax.o): Rewrite.
15062 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15063 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15064 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15065 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15066 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15067 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15068 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15069 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15070 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15071 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15072 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15073 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15074 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15075 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15076 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15077 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15078 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15079 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15080 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15081 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15082 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15083 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15084 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15085 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15086 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15087 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15088 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15089 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15090 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15091 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15092 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15093 (reg-tilegx.o): Remove.
15094 (all_object_files): New macro.
15095 Include .deps files.
15096 * aclocal.m4, configure: Rebuild.
15097 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15098 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15099 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15100
e90e9ad9
TT
151012012-12-05 Tom Tromey <tromey@redhat.com>
15102
15103 PR gdb/14917:
15104 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15105
02d403bf 151062012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15107
15108 * configure.ac: Check for linux/perf_event.h.
15109 * config.in: Regenerated.
15110 * configure: Regenerated.
15111
0270a750
PA
151122012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15113
15114 * hostio.c (handle_readlink): Decrease buffer size
15115 parameter passed to readlink by one byte.
15116
8c29b58e
YQ
151172012-11-26 Yao Qi <yao@codesourcery.com>
15118
15119 * configure.ac (build_warnings): Append '-Wempty-body'.
15120 * configure: Regenerated.
15121 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15122 body.
15123
8bdce1ff
PM
151242012-11-15 Pierre Muller <muller@sourceware.org>
15125
15126 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15127 * config.in: Regenerate.
15128 * configure: Regenerate.
15129 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15130 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15131 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15132 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15133 header.
15134 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15135 instead of <sys/wait.h> header.
15136 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15137
02d403bf 151382012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15139
15140 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15141 (various make rules): Remove -DGDBSERVER
15142
fbd5db48
YQ
151432012-11-09 Yao Qi <yao@codesourcery.com>
15144
15145 * spu-low.c (current_ptid): Move it to ..
15146 * gdbthread.h: ... here. New.
15147 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15148 * server.c (myresume, process_serial_event): Likewise.
15149 * thread-db.c (thread_db_find_new_threads): Likewise.
15150 * tracepoint.c (run_inferior_command): Likewise.
15151
b3dc46ff
AB
151522012-10-01 Andrew Burgess <aburgess@broadcom.com>
15153
15154 * server.c (handle_search_memory_1): Include access length in
15155 warning message.
15156
07c04788
HPN
151572012-09-05 Michael Brandt <michael.brandt@axis.com>
15158
15159 * linux-crisv32-low.c: Fix compile errors.
15160
918d227b
YQ
151612012-09-04 Yao Qi <yao@codesourcery.com>
15162
15163 * tracepoint.c (cmd_qtsv): Adjust debug message.
15164 Don't check CUR_TPOINT.
15165
18c1b81a
YQ
151662012-08-28 Yao Qi <yao@codesourcery.com>
15167
15168 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15169 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15170 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15171 Remove declarations of xmalloc, xreallloc, xstrdup and
15172 freeargv.
15173 * Makefile.in (libiberty_h): New.
15174 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15175 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15176
dc82f37b
YQ
151772012-08-23 Yao Qi <yao@codesourcery.com>
15178
15179 * server.h: Remove declaration of 'xsnprintf'.
15180
406b1477
KS
151812012-08-22 Keith Seitz <keiths@redhat.com>
15182
15183 * server.h: Include build-gnulib-gbserver/config.h.
15184 * gdbreplay.c: Likewise.
15185
e6712ff1
DE
151862012-08-08 Doug Evans <dje@google.com>
15187
15188 * Makefile.in (SFILES): Add gdb_vecs.c.
15189 (OBS): Add gdb_vecs.o.
15190 (gdb_vecs_h, host_defs_h): New variables.
15191 (thread-db.o): Add $(gdb_vecs_h) dependency.
15192 (gdb_vecs.o): New rule.
15193 * thread-db.c: #include "gdb_vecs.h".
15194 (thread_db_load_search): Use a vector to iterate over path elements.
15195 Handle text appearing after "$pdir".
15196
15197 * configure.ac: Add check for strstr.
15198 * config.in: Regenerate.
15199 * configure: Regenerate.
15200
7c3270ae
UW
152012012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15202
15203 * hostio.c (handle_pread): If pread fails, fall back to attempting
15204 lseek/read.
15205 (handle_pwrite): Likewise for pwrite.
15206
b62e2b27
UW
152072012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15208
15209 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15210 between unsupported TYPE and unimplementable ADDR/LEN combination.
15211 (arm_insert_point): Act on new return value.
15212
78a99e91
PA
152132012-07-31 Pedro Alves <palves@redhat.com>
15214
15215 * server.c (process_point_options): Only skip tokens if we find
15216 one that is unrecognized. Don't treat 'X' specially while
15217 skipping unrecognized tokens.
15218
fcf303ab
UW
152192012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15220
15221 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15222 to 4-byte-align HW breakpoint addresses for Thumb.
15223
7255706c
YQ
152242012-07-27 Yao Qi <yao@codesourcery.com>
15225
15226 PR remote/14161.
15227
15228 * server.h: Declare gdb_agent_about_to_close.
15229 * target.c (kill_inferior): Include "agent.h".
15230 New. Send command 'kill'.
15231 * target.h (kill_inferior): Removed macro.
15232 * tracepoint.c (gdb_agent_about_to_close): New.
15233 (gdb_agent_helper_thread): Handle command 'close'.
15234 Wait endlessly until the inferior stops.
15235 Install gdb_agent_remove_socket to atexit hook.
15236 (agent_socket_name): New static variable.
15237 (gdb_agent_socket_init): Replace local variable 'name' with
15238 'agent_socket_name'.
15239 (gdb_agent_remove_socket): New.
15240
5a3f286f
YQ
152412012-07-27 Yao Qi <yao@codesourcery.com>
15242
15243 * server.c (process_point_options): Stop at 'X' when parsing.
15244
961bd387
ME
152452012-07-19 Michael Eager <eager@eagercon.com>
15246
a261b8f5 15247 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15248 to hw_execute.
15249 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15250 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15251 hardware breakpoint.
15252
aa7c7447
JK
152532012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15254
15255 * gdbserver/linux-low.c (initialize_low): Call
15256 linux_ptrace_init_warnings.
15257
7f216e7c
DE
152582012-07-02 Doug Evans <dje@google.com>
15259
15260 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15261 pointer to int.
15262
d3ce09f5
SS
152632012-07-02 Stan Shebs <stan@codesourcery.com>
15264
15265 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15266 (ax.o): Add it to build rule.
15267 (ax-ipa.o): Ditto.
15268 (OBS): Add format.o.
15269 (IPA_OBS): Add format.o.
15270 * server.c (handle_query): Claim support for breakpoint commands.
15271 (process_point_options): Add command case.
15272 (process_serial_event): Leave running if there are printfs in
15273 effect.
15274 * mem-break.h (any_persistent_commands): Declare.
15275 (add_breakpoint_commands): Declare.
15276 (gdb_no_commands_at_breakpoint): Declare.
15277 (run_breakpoint_commands): Declare.
15278 * mem-break.c (struct point_command_list): New struct.
15279 (struct breakpoint): New field command_list.
15280 (any_persistent_commands): New function.
15281 (add_commands_to_breakpoint): New function.
15282 (add_breakpoint_commands): New function.
15283 (gdb_no_commands_at_breakpoint): New function.
15284 (run_breakpoint_commands): New function.
15285 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15286 locally.
15287 * ax.c: Include format.h.
15288 (ax_printf): New function.
15289 (gdb_eval_agent_expr): Add printf opcode.
15290
2f8f6aed
YQ
152912012-06-13 Yao Qi <yao@codesourcery.com>
15292
15293 * server.c (start_inferior): Remove duplicated writes to fields
15294 'last_resume_kind' and 'last_status' of 'current_inferior'.
15295
0c9070b3
YQ
152962012-06-12 Yao Qi <yao@codesourcery.com>
15297 Pedro Alves <palves@redhat.com>
15298
15299 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15300 comment.
15301 * server.c (handle_v_cont): Extend comment.
15302
c52daf70
YQ
153032012-06-11 Yao Qi <yao@codesourcery.com>
15304
15305 * linux-low.c (linux_attach): Add 'static'.
15306
d38bbb0a
YQ
153072012-06-06 Yao Qi <yao@codesourcery.com>
15308
15309 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15310
89dc0afd
JK
153112012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15312
15313 Fix gcc -flto compilation warning.
15314 * server.c (main): Make variable multi_mode and attach volatile.
15315
75f62ce7
TJB
153162012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15317
15318 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15319 if the platform doesn't know about it.
15320
65f479b6
PA
153212012-05-30 Jeff Kenton <jkenton@tilera.com>
15322
15323 * Makefile.in (SFILES): Add linux-tile-low.c.
15324 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15325 * configure.srv: Handle tilegx-*-linux*.
15326 * linux-tile-low.c: New file.
15327
0c5bf5a9
JK
153282012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15329
15330 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15331
a493e3e2
PA
153322012-05-24 Pedro Alves <palves@redhat.com>
15333
15334 PR gdb/7205
15335
43aaf8b6 15336 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15337
2ea28649
PA
153382012-05-24 Pedro Alves <palves@redhat.com>
15339
15340 PR gdb/7205
15341
15342 Replace target_signal with gdb_signal throughout.
15343
8d409d16
MR
153442012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15345
15346 * linux-low.c (linux_store_registers): Avoid the copying sequence
15347 when no data has been retrieved by ptrace.
15348
23512c01
MGD
153492012-05-22 Will Deacon <will.deacon@arm.com>
15350
15351 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15352 Include asm/ptrace.h.
15353 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15354 already defined.
15355
4934b29e
MR
153562012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15357
15358 * linux-low.c (linux_store_registers): Don't re-retrieve data
15359 with ptrace that has already been obtained from /proc. Always
15360 copy any data retrieved with ptrace to the buffer supplied.
15361
bde24c0a
PA
153622012-05-11 Yao Qi <yao@codesourcery.com>
15363 Pedro Alves <palves@redhat.com>
15364
15365 * linux-low.c (enum stopping_threads_kind): New.
15366 (stopping_threads): Change type to `enum stopping_threads_kind'.
15367 (handle_extended_wait): If stopping and suspending threads, leave
15368 the new_lwp suspended too.
15369 (linux_wait_for_event): Adjust.
15370 (stop_all_lwps): Set `stopping_threads' to
15371 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15372 whether we're suspending threads or just stopping them. Assert no
15373 recursion happens.
15374
623b6bdf
YQ
153752012-04-29 Yao Qi <yao@codesourcery.com>
15376
15377 * server.h: Move some code to ...
15378 * gdbthread.h: ... here. New.
15379 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15380 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15381 (nto-low.o, win32-low.o): Likewise.
15382 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15383 * regcache.c, remote-utils.c, server.c: Likewise.
15384 * target.c, tracepoint.c, win32-low.c: Likewise.
15385
f15f9948
TJB
153862012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15387
15388 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15389 (PTRACE_ARG4_TYPE): Likewise.
15390 (PTRACE_XFER_TYPE): Likewise.
15391 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15392 ptrace to PTRACE_ARG3_TYPE.
15393 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15394 (PTRACE_ARG4_TYPE): Likewise.
15395 (PTRACE_XFER_TYPE): Likewise.
15396 (linux_detach_one_lwp): Cast fourth argument of
15397 ptrace to long then PTRACE_ARG4_TYPE.
15398 (regsets_fetch_inferior_registers): Cast third argument of
15399 ptrace to long then PTRACE_ARG3_TYPE.
15400 (regsets_store_inferior_registers): Likewise.
15401
38ea300a
PA
154022012-04-20 Pedro Alves <palves@redhat.com>
15403
15404 * configure: Regenerate.
15405
c971b7fa
PA
154062012-04-19 Pedro Alves <palves@redhat.com>
15407
43aaf8b6 15408 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15409 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15410 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15411 (all, install-only, uninstall, clean-info, all-lib, clean): No
15412 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15413 (maintainer-clean realclean distclean): Use subdir_do.
15414 (subdir_do): New.
15415 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15416 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15417 * acinclude.m4: Include acx_configure_dir.m4.
15418 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15419 calls. Call AC_PROG_RANLIB. Configure gnulib using
15420 ACX_CONFIGURE_DIR.
15421 (GNULIB): New.
15422 (GNULIB_STDINT_H): Adjust.
15423 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15424 * gdbreplay.c: Include build-gnulib/config.h.
15425 * server.h: Likewise.
15426 * aclocal.m4: Regenerate.
15427 * config.in: Regenerate.
15428 * configure: Regenerate.
c971b7fa 15429
809277f8
PA
154302012-04-19 Pedro Alves <palves@redhat.com>
15431
15432 * Makefile.in (LIBGNU, INCGNU): Adjust.
15433 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15434 (all, install-only, uninstall, clean-info, all-lib, clean)
15435 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15436 * configure.ac: Adjust AC_OUTPUT output.
15437 * aclocal.m4: Regenerate.
15438 * configure: Regenerate.
15439
fd9bb8b8
PA
154402012-04-19 Pedro Alves <palves@redhat.com>
15441
15442 * Makefile.in (generated_files): New.
15443 (server_h): Remove the explicit dependency on config.h, and depend
15444 on $generated_files.
15445
1c298c66
PA
154462012-04-19 Pedro Alves <palves@redhat.com>
15447
15448 * Makefile.in (INCGNU): Add -Ignulib.
15449
57c4b50b
PA
154502012-04-19 Pedro Alves <palves@redhat.com>
15451
15452 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15453 (INCGNU): ... this, and spell out -I here.
15454 (GNULIB_LIB): Rename to ...
15455 (LIBGNU): ... this.
15456 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15457
1030e047
PA
154582012-04-19 Pedro Alves <palves@redhat.com>
15459
15460 * config.in: Regenerate.
15461
447d4319
PA
154622012-04-19 Pedro Alves <palves@redhat.com>
15463
15464 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15465 * server.h (memmem): Remove declaration.
15466 * config.in: Regenerate.
15467 * configure: Regenerate.
15468
aad9eab9
YQ
154692012-04-19 Yao Qi <yao@codesourcery.com>
15470
15471 * Makefile.in (SFILES): Add common/vec.c.
15472 (OBS): Add vec.o.
15473 (vec.o): New rule.
15474
3e10640f
YQ
154752012-04-19 Yao Qi <yao@codesourcery.com>
15476
15477 * remote-utils.c (prepare_resume_reply): Replace with macro
15478 target_core_of_thread.
15479 * server.c (handle_qxfer_threads_proper): Likewise.
15480 * target.h (traget_core_of_thread): New macro.
15481
71622373
PA
154822012-04-18 Pedro Alves <palves@redhat.com>
15483
15484 * aclocal.m4: Regenerate.
15485 * configure: Regenerate.
15486
80d26939
YQ
154872012-04-16 Yao Qi <yao@codesourcery.com>
15488
15489 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15490 duplicated on address.
15491
42476b70
YQ
154922012-04-16 Yao Qi <yao@codesourcery.com>
15493
15494 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15495 (struct tracepoint_action_ops) <send>: New field.
15496 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15497 (agent_expr_send, x_tracepoint_action_send): New.
15498 (l_tracepoint_action_send): New.
15499 (cmd_qtdp): Download and install tracepoint
15500 according to `use_agent'.
15501 (run_inferior_command): Add one more parameter `len'.
15502 Update callers.
15503 (tracepoint_send_agent): New.
15504 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15505
7bc83639
YQ
155062012-04-16 Yao Qi <yao@codesourcery.com>
15507
15508 * tracepoint.c (download_tracepoints): Moved to ...
15509 (cmd_qtstart): ... here.
15510
5f18041e
YQ
155112012-04-14 Yao Qi <yao@codesourcery.com>
15512
15513 * tracepoint.c: Include inttypes.h.
15514 (struct collect_memory_action): Use sized types.
15515 (struct tracepoint): Likewise.
15516 (cmd_qtdp, stop_tracing): Update print specifiers.
15517 (cmd_qtp, response_tracepoint): Likewise.
15518 (collect_data_at_tracepoint): Likewise.
15519 (collect_data_at_step): Likewise.
15520
55a8c076
YQ
155212012-04-14 Yao Qi <yao@codesourcery.com>
15522
15523 Import gnulib module inttypes.
15524 * aclocal.m4, config.in, configure: Regenerated.
15525
dc750257
YQ
155262012-04-14 Yao Qi <yao@codesourcery.com>
15527
15528 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15529 Makefile and config.status at last.
15530
0ab5faf9
YQ
155312012-04-13 Yao Qi <yao@codesourcery.com>
15532
15533 * tracepoint.c: Include stdint.h unconditionally.
15534
18f5fd81
TJB
155352012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15536
15537 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15538 on BFD_HAVE_SYS_PROCFS_TYPE.
15539 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15540 * configure: Regenerate.
15541 * config.in: Likewise.
15542
4d47af5c
L
155432012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15544
15545 * Makefile.in (clean): Also remove x32.c x32-linux.c
15546 x32-avx.c x32-avx-linux.c.
15547 (x32.o): New target.
15548 (x32.c): Likewise.
15549 (x32-linux.o): Likewise.
15550 (x32-linux.c): Likewise.
15551 (x32-avx.o): Likewise.
15552 (x32-avx.c): Likewise.
15553 (x32-avx-linux.o): Likewise.
15554 (x32-avx-linux.c): Likewise.
15555
15556 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15557 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15558 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15559 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15560 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15561 i386/x32-avx-linux.xml.
15562
15563 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15564 (init_registers_x32_avx_linux): Likwise.
15565 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15566 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15567
ecedbe58
PA
155682012-04-13 Pedro Alves <palves@redhat.com>
15569
15570 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15571 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15572 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15573 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15574 the sub-make.
15575
c92b5177
L
155762012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15577
15578 * linux-x86-low.c (compat_x32_clock_t): New.
15579 (compat_x32_siginfo_t): Likewise.
15580 (compat_x32_siginfo_from_siginfo): Likewise.
15581 (siginfo_from_compat_x32_siginfo): Likewise.
15582 (linux_is_elf64): Likewise.
15583 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15584 and siginfo_from_compat_x32_siginfo for x32.
15585 (x86_arch_setup): Set linux_is_elf64.
15586
214d508e
L
155872012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15588
15589 PR gdb/13969
15590 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15591 e_machine field.
15592 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15593 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15594 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15595 compatible with process.
15596
c9a1864a
YQ
155972012-04-12 Yao Qi <yao@codesourcery.com>
15598
15599 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15600 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15601 (install-only, install-info, clean): Handle sub dir gnulib.
15602 (all-lib, am--refresh): New targets.
15603 (memmem.o): Remove target.
15604 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15605 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15606 (AC_REPLACE_FUNCS): Remove memmem.
15607 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15608 (AC_OUTPUT): Generate Makefile in gnulib/.
15609 * aclocal.m4, config.in, configure: Regenerated.
15610
367ba2c2
MR
156112012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15612
15613 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15614
9d236627
PA
156152012-04-05 Pedro Alves <palves@redhat.com>
15616
15617 -Werror=strict-aliasing
15618
15619 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15620 pointer.
15621
111217b3
PA
156222012-04-04 Pedro Alves <palves@redhat.com>
15623
15624 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15625 (sparc_store_gregset_from_stack, sparc_store_gregset)
15626 (sparc_breakpoint_at): Fix formatting.
15627
8365dcf5
TJB
156282012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15629
15630 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15631 are available.
15632 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15633 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15634 * config.in: Regenerate.
15635 * configure: Likewise.
15636
689cc2ae
PA
156372012-03-29 Pedro Alves <palves@redhat.com>
15638
15639 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15640 Correct ptrace arguments.
15641
c14dfd32
PA
156422012-03-28 Pedro Alves <palves@redhat.com>
15643
15644 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15645 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15646 (IA64_FR1_REGNUM): New defines.
15647 (ia64_fetch_register): New.
15648 (the_low_target): Install it.
15649 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15650 field.
15651 * linux-low.c (linux_fetch_registers): Try the
15652 the_low_target.fetch_register hook first.
15653
15654 * linux-arm-low.c (the_low_target): Adjust.
15655 * linux-bfin-low.c (the_low_target): Adjust.
15656 * linux-cris-low.c (the_low_target): Adjust.
15657 * linux-crisv32-low.c (the_low_target): Adjust.
15658 * linux-m32r-low.c (the_low_target): Adjust.
15659 * linux-m68k-low.c (the_low_target): Adjust.
15660 * linux-mips-low.c (the_low_target): Adjust.
15661 * linux-ppc-low.c (the_low_target): Adjust.
15662 * linux-s390-low.c (the_low_target): Adjust.
15663 * linux-sh-low.c (the_low_target): Adjust.
15664 * linux-sparc-low.c (the_low_target): Adjust.
15665 * linux-tic6x-low.c (the_low_target): Adjust.
15666 * linux-x86-low.c (the_low_target): Adjust.
15667 * linux-xtensa-low.c (the_low_target): Adjust.
15668
63c88e13
PA
156692012-03-26 Pedro Alves <palves@redhat.com>
15670
15671 * server.c (handle_qxfer_libraries): Don't bail early if
15672 the_target->qxfer_libraries_svr4 is not NULL.
15673
fb723180
PA
156742012-03-26 Pedro Alves <palves@redhat.com>
15675
15676 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15677
0afae3cf
PA
156782012-03-23 Pedro Alves <palves@redhat.com>
15679
15680 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15681 "library-list-svr4" element's start tag when the the DSO list is
15682 empty.
15683
485f1ee4
PA
156842012-03-23 Pedro Alves <palves@redhat.com>
15685
15686 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15687 a variable whose type size is the same as the inferior's pointer
15688 size.
15689
a5362b9a
TS
156902012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15691
15692 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15693 struct siginfo.
15694 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15695 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15696 * linux-low.h: Include <signal.h>.
15697 (struct siginfo): Remove forward declaration.
15698 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15699 struct siginfo.
15700
d226c142
MF
157012012-03-21 Mike Frysinger <vapier@gentoo.org>
15702
15703 * .gitignore: Ignore more files.
15704
122f36ef
PA
157052012-03-19 Pedro Alves <palves@redhat.com>
15706 Jan Kratochvil <jan.kratochvil@redhat.com>
15707
15708 * server.c (cont_thread, general_thread): Add describing comments.
15709 (start_inferior): Clear `cont_thread'.
15710 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15711 of a process.
15712
fc3e5175
YQ
157132012-03-15 Yao Qi <yao@codesourcery.com>
15714
15715 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15716 handling to ...
15717 (cmd_qtdp): ... here.
15718
8d0d92cd
YQ
157192012-03-15 Yao Qi <yao@codesourcery.com>
15720
15721 * tracepoint.c (struct tracepoint_action_ops): New.
15722 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15723 (m_tracepoint_action_download): New.
15724 (r_tracepoint_action_download): New.
15725 (x_tracepoint_action_download): New.
15726 (l_tracepoint_action_download): New.
15727 (add_tracepoint_action): Install `action->ops' according type.
15728 (download_tracepoint_1): Move code `download' function pointer
15729 of various tracepoint_action_ops.
15730
87b0bb13
JK
157312012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15732
15733 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15734 linux_ptrace_attach_warnings.
15735
5f572dec
JK
157362012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15737
15738 * Makefile.in (linux-ptrace.o): New.
15739 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15740 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15741 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15742 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15743 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15744 of these targets.
15745 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15746
f4647387
YQ
157472012-03-08 Yao Qi <yao@codesourcery.com>
15748 Pedro Alves <palves@redhat.com>
15749
15750 Fix PR server/13392.
15751 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15752 offset of JMP insn.
15753 * tracepoint.c (remove_tracepoint): New.
15754 (cmd_qtdp): Call remove_tracepoint when failed to install.
15755
9b224c5e
PA
157562012-03-07 Pedro Alves <palves@redhat.com>
15757
15758 * linux-low.c (get_detach_signal): New.
15759 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15760 Pass on pending signals to PTRACE_DETACH. Check the result of the
15761 ptrace call.
15762 * server.c (program_signals, program_signals_p): New.
15763 (handle_general_set): Handle QProgramSignals.
15764 * server.h (program_signals, program_signals_p): Declare.
15765
e237a7e2
JK
157662012-03-05 Pedro Alves <palves@redhat.com>
15767 Jan Kratochvil <jan.kratochvil@redhat.com>
15768
15769 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15770 New comment why.
15771
5808517f
YQ
157722012-03-03 Yao Qi <yao@codesourcery.com>
15773
15774 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15775 agent_look_up_symbols.
15776
58b4daa5
YQ
157772012-03-03 Yao Qi <yao@codesourcery.com>
15778
15779 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15780 (linux-x86-low.o): Likewise.
15781 * server.h: Remove in_process_agent_loaded.
15782 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15783 common/agent.c.
15784 Update callers.
15785
8ffcbaaf
YQ
157862012-03-03 Yao Qi <yao@codesourcery.com>
15787
15788 * tracepoint.c (gdb_agent_capability): New global.
15789 (in_process_agent_loaded_ust): Renamed to
15790 `in_process_agent_supports_ust'.
15791 Update callers.
15792 (in_process_agent_supports_ust): Call agent_capability_check.
15793 (clear_installed_tracepoints): Assert that agent supports
15794 agent.
15795
d1feda86
YQ
157962012-03-03 Yao Qi <yao@codesourcery.com>
15797
15798 * linux-low.c (linux_supports_agent): New.
15799 (linux_target_ops): Initialize field `supports_agent' with
15800 linux_supports_agent.
15801 * target.h (struct target_ops) <supports_agent>: New.
15802 (target_supports_agent): New macro.
15803 * server.c (handle_general_set): Handle packet 'QAgent'.
15804 (handle_query): Send `QAgent+'.
15805 * Makefile.in (server.o): Depends on agent.h.
15806
2fa291ac
YQ
158072012-03-03 Yao Qi <yao@codesourcery.com>
15808
15809 * Makefile.in (OBS): Add agent.o.
15810 Add new rule for agent.o.
15811 Track dependence of tracepoint.c on agent.h.
15812 * tracepoint.c (run_inferior_command_1):
15813 (run_inferior_command): Call agent_run_command.
15814 (gdb_ust_connect_sync_socket): Deleted. Move it to
15815 common/agent.c.
15816 (resume_thread, stop_thread): Likewise.
15817 (gdb_ust_socket_init): Renamed to ...
15818 (gdb_agent_socket_init): ... New.
15819 (gdb_ust_thread): Renamed to ...
15820 (gdb_agent_helper_thread): ... New.
15821 (gdb_ust_init): Move some code to ...
15822 (gdb_agent_init): ... here. New.
15823 [HAVE_UST]: Call gdb_ust_init.
15824 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15825 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15826 * config.in, configure: Regenerated.
15827
05044653
PA
158282012-03-02 Pedro Alves <palves@redhat.com>
15829
15830 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15831 * linux-low.c (struct simple_pid_list): New.
15832 (stopped_pids): New a struct simple_pid_list pointer.
15833 (add_to_pid_list, pull_pid_from_list): New.
15834 (handle_extended_wait): Don't assume the first signal new children
15835 report is SIGSTOP. Adjust call to pull_pid_from_list.
15836 (linux_wait_for_lwp): Adjust.
15837
8d00225b
YQ
158382012-03-02 Yao Qi <yao@codesourcery.com>
15839
15840 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15841 debug log.
15842
19560ba5
YQ
158432012-03-02 Yao Qi <yao@codesourcery.com>
15844
15845 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15846 `stop_pc' and `tpoint'. Update caller.
15847
1faeff08
MR
158482012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15849
15850 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15851 * linux-low.c (use_linux_regsets): New macro.
15852 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15853 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15854 (linux_register_in_regsets): New function.
15855 (usr_fetch_inferior_registers): Skip registers covered by
15856 regsets.
15857 (usr_store_inferior_registers): Likewise.
15858 (usr_fetch_inferior_registers): New macro.
15859 (usr_store_inferior_registers): Likewise.
15860 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15861 (linux_store_registers): Likewise.
15862 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15863 prototype.
15864 (init_registers_mips64_dsp_linux): Likewise.
15865 (init_registers_mips_linux): New macro.
15866 (init_registers_mips_dsp_linux): Likewise.
15867 (mips_dsp_num_regs): Likewise.
15868 (DSP_BASE, DSP_CONTROL): New fallback macros.
15869 (mips_base_regs): New macro.
15870 (mips_regmap): Use it. Fix the size.
15871 (mips_dsp_regmap): New variable.
15872 (mips_dsp_regset_bitmap): Likewise.
15873 (mips_arch_setup): New function.
15874 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15875 than mips_regmap.
15876 (mips_cannot_store_register): Likewise.
15877 (the_low_target): Update .arch_setup, .num_regs and .regmap
15878 initializers. Add .regset_bitmap initializer.
15879 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15880 initializer.
15881 * linux-bfin-low.c (the_low_target): Likewise.
15882 * linux-cris-low.c (the_low_target): Likewise.
15883 * linux-crisv32-low.c (the_low_target): Likewise.
15884 * linux-ia64-low.c (the_low_target): Likewise.
15885 * linux-m32r-low.c (the_low_target): Likewise.
15886 * linux-m68k-low.c (the_low_target): Likewise.
15887 * linux-ppc-low.c (the_low_target): Likewise.
15888 * linux-s390-low.c (the_low_target): Likewise.
15889 * linux-sh-low.c (the_low_target): Likewise.
15890 * linux-sparc-low.c (the_low_target): Likewise.
15891 * linux-tic6x-low.c (the_low_target): Likewise.
15892 * linux-x86-low.c (the_low_target): Likewise.
15893 * linux-xtensa-low.c (the_low_target): Likewise.
15894 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15895 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15896 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15897 srv_xmlfiles.
15898 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15899 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15900
c03e6ccc
YQ
159012012-02-29 Yao Qi <yao@codesourcery.com>
15902 Pedro Alves <palves@redhat.com>
15903
15904 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15905 `step_over_finished' is true.
15906
644cebc9
PA
159072012-02-27 Pedro Alves <palves@redhat.com>
15908
15909 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15910 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15911
c14d7ab2
PA
159122012-02-27 Pedro Alves <palves@redhat.com>
15913
15914 PR server/9684
15915 * linux-low.c (pid_is_stopped): New.
15916 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15917
412c89dd
LM
159182012-02-25 Luis Machado <lgustavo@codesourcery.com>
15919
15920 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15921 of conditions.
15922
b745defe
MR
159232012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15924
15925 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15926
9f3a5c85
LM
159272012-02-24 Luis Machado <lgustavo@codesourcery>
15928
15929 * server.c (handle_query): Advertise support for target-side
15930 breakpoint condition evaluation.
15931 (process_point_options): New function.
15932 (process_serial_event): When inserting a breakpoint, check for
15933 a target-side condition that should be evaluated.
15934
15935 * mem-break.c: Include regcache.h and ax.h.
15936 (point_cond_list_t): New data structure.
15937 (breakpoint) <cond_list>: New field.
15938 (find_gdb_breakpoint_at): Make non-static.
15939 (delete_gdb_breakpoint_at): Clear any target-side
15940 conditions.
15941 (clear_gdb_breakpoint_conditions): New function.
15942 (add_condition_to_breakpoint): Likewise.
15943 (add_breakpoint_condition): Likewise.
15944 (gdb_condition_true_at_breakpoint): Likewise.
15945 (gdb_breakpoint_here): Return result directly instead
15946 of going through a local variable.
15947
15948 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15949 (clear_gdb_breakpoint_conditions): Likewise.
15950 (add_breakpoint_condition): Likewise.
15951 (gdb_condition_true_at_breakpoint): Likewise.
15952
15953 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15954 (need_step_over_p): Take target-side breakpoint condition into
15955 consideration.
15956
5e1dc496
LM
159572012-02-24 Luis Machado <lgustavo@codesourcery>
15958
15959 * server.h: Include tracepoint.h.
15960 (agent_mem_read, agent_get_trace_state_variable_value,
15961 agent_set_trace_state_variable_value,
15962 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15963 get_set_tsv_func_addr): New prototypes.
15964
15965 * ax.h: New include file.
15966 * ax.c: New source file.
15967
15968 * tracepoint.c: Include ax.h.
15969 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15970 agent_expr, eval_result_type): Move to ax.h.
15971 (parse_agent_expr): Rename to ...
15972 (gdb_parse_agent_expr): ... this, make it non-static and move
15973 to ax.h.
15974 (unparse_agent_expr) Rename to ...
15975 (gdb_unparse_agent_expr): ... this, make it non-static and move
15976 to ax.h.
15977 (eval_agent_expr): Rename to ...
15978 (eval_tracepoint_agent_expr): ... this.
15979 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15980 forward declarations.
15981 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15982 (agent_get_trace_state_variable_value): New function.
15983 (agent_set_trace_state_variable_value): New function.
15984 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15985 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15986 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15987 (condition_true_at_tracepoint): Likewise.
15988 (parse_agent_expr): Rename to ...
15989 (gdb_parse_agent_expr): ... this and move to ax.c.
15990 (unparse_agent_expr): Rename to ...
15991 (gdb_unparse_agent_expr): ... this and move to ax.c.
15992 (gdb_agent_op_name): Move to ax.c.
15993 (eval_agent_expr): Rename to ...
15994 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15995 and move to ax.c.
15996 (eval_tracepoint_agent_expr): New function.
15997 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15998 non-static.
5e1dc496
LM
15999 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16000 ax.c.
16001 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16002 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16003 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16004 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16005 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16006 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16007 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16008 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16009 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16010 (compile_bytecodes): Remove forward declaration.
16011 (is_goto_target): Move to ax.c.
16012 (compile_bytecodes): Move to ax.c and call
16013 agent_get_trace_state_variable_value (...) and
16014 agent_set_trace_state_variable_value (...).
16015
16016 * Makefile.in: Update ax.c and IPA dependencies.
16017
277e4e52
PA
160182012-02-24 Pedro Alves <palves@redhat.com>
16019
16020 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16021 (cmd_bigqtbuffer_circular): ... this. Only handle
16022 'QTBuffer:circular:'.
16023 (handle_tracepoint_general_set): Adjust.
16024
bf4c19f7
YQ
160252012-02-16 Yao Qi <yao@codesourcery.com>
16026
16027 * inferiors.c: Move code to ...
16028 * dll.c: .... here. New.
16029 * server.h: Declare clear_dlls.
16030 * Makefile.in (SFILES): Add dll.c.
16031 (OBS): Add dll.o
16032 (dll.o): New rule.
16033
d73f2619
YQ
160342012-02-11 Yao Qi <yao@codesourcery.com>
16035
16036 * server.c: (handle_monitor_command): Add a new parameter
16037 `own_buf'.
16038 (handle_query): Update caller.
16039
f8255c2a
JB
160402012-02-09 Joel Brobecker <brobecker@adacore.com>
16041
16042 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16043 * configure, config.in: Regenerate.
16044 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16045 is not defined.
16046
da84f473
PA
160472012-02-02 Pedro Alves <palves@redhat.com>
16048
16049 Try SIGKILL first, then PTRACE_KILL.
16050 * linux-low.c (linux_kill_one_lwp): New.
16051 (linux_kill_one_lwp): Rename to ...
16052 (kill_one_lwp_callback): ... this. Use the new
16053 linux_kill_one_lwp.
16054
e886a173
PA
160552012-02-02 Pedro Alves <palves@redhat.com>
16056
16057 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16058 inferior.
16059
be07f1a2
PA
160602012-01-27 Pedro Alves <palves@redhat.com>
16061
16062 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16063 (elf_64_file_p): Make static.
16064 (linux_pid_exe_is_elf_64_file): New.
16065 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16066 Delete declarations.
16067 (linux_pid_exe_is_elf_64_file): Declare.
16068 * linux-x86-low.c (x86_arch_setup): Use
16069 linux_pid_exe_is_elf_64_file.
16070
d8301ad1
JK
160712012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16072
16073 * linux-low.c (linux_wait_for_event_1): Rename to ...
16074 (linux_wait_for_event): ... here and merge it with former
16075 linux_wait_for_event - new variable wait_ptid, use it.
16076 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16077
01b17894
PA
160782012-01-23 Pedro Alves <palves@redhat.com>
16079
16080 * server.c (main): Avoid yet another case of infinite loop while
16081 detaching/killing after a longjmp.
16082
e825046f
JK
160832012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16084
16085 Code cleanup.
16086 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16087
b9e7b9c3
UW
160882012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16089
16090 * hostio.c (handle_readlink): New function.
16091 (handle_vFile): Call it to handle "vFile:readlink" packets.
16092
901f9912
UW
160932012-01-20 Pedro Alves <palves@redhat.com>
16094 Ulrich Weigand <ulrich.weigand@linaro.org>
16095
16096 * server.c (handle_v_requests): Only support vAttach and vRun to
16097 start multiple processes when in extended protocol mode.
16098
fc1ab1a0
PA
160992012-01-17 Pedro Alves <palves@redhat.com>
16100
16101 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16102 memalign plus mprotect to allocate the scratch buffer.
16103
7d5d4e98
PA
161042012-01-13 Pedro Alves <palves@redhat.com>
16105
16106 * server.c (attach_inferior): Clear `cont_thread'.
16107
f128d5e9
PA
161082012-01-13 Pedro Alves <palves@redhat.com>
16109
16110 * server.c (main): Avoid infinite loop while detaching/killing
16111 after a longjmp.
16112
06db92f0
DE
161132012-01-09 Doug Evans <dje@google.com>
16114
16115 * server.c (start_inferior): Set last_ptid in --wrapper case.
16116
32d92999
YQ
161172012-01-06 Yao Qi <yao@codesourcery.com>
16118
16119 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16120 defined.
16121 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16122
5e0a92a9
YQ
161232012-01-04 Yao Qi <yao@codesourcery.com>
16124
16125 * tracepoint.c (cmd_qtdp): Print debug message
16126 for static tracepoint.
16127
ae639e8c
YQ
161282012-01-04 Yao Qi <yao@codesourcery.com>
16129
16130 * tracepoint.c (trace_vdebug): Differentiate debug message
16131 between gdbserver and IPA.
16132
f72429c5
YQ
161332012-01-03 Yao Qi <yao@codesourcery.com>
16134
16135 * tracepoint.c (tracepoint_was_hit): Don't collect for
16136 static tracepoint.
16137
12c3e59c
JB
161382012-01-02 Joel Brobecker <brobecker@adacore.com>
16139
16140 * terminal.h: Reformat copyright header.
16141
67827812
JB
161422012-01-02 Joel Brobecker <brobecker@adacore.com>
16143
16144 * server.c (gdbserver_version): Update copyright year.
16145 * gdbreplay.c (gdbreplay_version): Likewise.
16146
3e52c33d
JK
161472011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16148
16149 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16150
16151 Revert:
16152 2011-12-18 Hui Zhu <teawater@gmail.com>
16153 * linux-low.c (linux_create_inferior): Save return value to ret.
16154
66f1260e
HZ
161552011-12-18 Hui Zhu <teawater@gmail.com>
16156
16157 * linux-low.c (linux_create_inferior): Save return value to ret.
16158
e77616d7
DE
161592011-12-16 Doug Evans <dje@google.com>
16160
e7b06c57
DE
16161 * linux-low.c (linux_create_inferior): If stdio connection,
16162 redirect stdin from /dev/null, stdout to stderr.
16163 * remote-utils.c (remote_is_stdio): New static global.
16164 (remote_connection_is_stdio): New function.
16165 (remote_prepare): Handle stdio connection.
16166 (remote_open): Ditto.
16167 (remote_close): Don't close stdin for stdio connections.
16168 (read_prim,write_prim): New functions. Replace all calls to
16169 read/write to these.
16170 * server.c (main): Watch for "-" argument. Move call to
16171 remote_prepare before start_inferior.
16172 * server.h (STDIO_CONNECTION_NAME): New macro.
16173 (remote_connection_is_stdio): Declare.
16174
e77616d7
DE
16175 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16176 in debugging output.
16177
82067193
YQ
161782011-12-15 Yao Qi <yao@codesourcery.com>
16179
16180 * tracepoint.c: Include sys/syscall.h.
16181 (gdb_ust_thread): Remove preprocessor conditional.
16182
82bfbe7e
PA
161832011-12-14 Pedro Alves <pedro@codesourcery.com>
16184
16185 * linux-low.c (linux_detach_one_lwp): Call
16186 the_low_target.prepare_to_resume before detaching.
16187
712c6575
YQ
161882011-12-14 Yao Qi <yao@codesourcery.com>
16189
16190 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16191 of write.
16192
d54d1edf
YQ
161932011-12-14 Yao Qi <yao@codesourcery.com>
16194
16195 * i386-low.c (i386_low_stopped_data_address): Initialize local
16196 variable `control'.
16197
6210a125
PA
161982011-12-13 Pedro Alves <pedro@codesourcery.com>
16199
16200 PR remote/13492
16201
16202 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16203 DR_CONTROL unless necessary. Extend comments.
16204 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16205 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16206
2ece8244
YQ
162072011-12-13 Yao Qi <yao@codesourcery.com>
16208
16209 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16210 macros.
16211 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16212
784867a5
JK
162132011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16214
16215 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16216 Print new debug message for such case.
16217
6bf36717
JK
162182011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16219
16220 Fix overlapping memcpy.
16221 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16222 the read_inferior_memory transfer.
16223 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16224 write_inferior_memory transfer.
16225 (set_fast_tracepoint_jump): New variable buf. Use it for the
16226 read_inferior_memory and write_inferior_memory transfers.
16227 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16228 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16229 Use it for the write_inferior_memory transfer.
16230 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16231 buffers.
16232
50275556
MR
162332011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16234
16235 * linux-low.c (fetch_register, store_register): Make code
16236 consistent, fix formatting.
16237
7325beb4
MR
162382011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16239
16240 * linux-low.c (usr_store_inferior_registers): Factor out code
16241 to handle individual registers into...
16242 (store_register): ... this new function.
16243
c642a434
UW
162442011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16245
16246 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16247 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16248 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16249 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16250 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16251 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16252 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16253 (srv_xmlfiles): Add new XML files.
16254
16255 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16256 and <sys/uio.h>.
16257 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16258 (init_registers_s390_linux32v1): Add prototype.
16259 (init_registers_s390_linux32v2): Likewise.
16260 (init_registers_s390_linux64v1): Likewise.
16261 (init_registers_s390_linux64v2): Likewise.
16262 (init_registers_s390x_linux64v1): Likewise.
16263 (init_registers_s390x_linux64v2): Likewise.
16264 (s390_num_regs): Increment to 52.
16265 (s390_regmap): Add orig_r2 register.
16266 (s390_num_regs_3264): Increment to 68.
16267 (s390_regmap_3264): Add orig_r2 register.
16268 (s390_collect_ptrace_register): Handle orig_r2 register.
16269 (s390_supply_ptrace_register): Likewise.
16270 (s390_fill_last_break): New function.
16271 (s390_store_last_break): Likewise.
16272 (s390_fill_system_call): New function.
16273 (s390_store_system_call): Likewise.
16274 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16275 register sets.
16276 (s390_check_regset): New function.
16277 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16278 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16279 Update target_regsets for available register sets.
16280
2268b414
JK
162812011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16282 Jan Kratochvil <jan.kratochvil@redhat.com>
16283
16284 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16285 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16286 New.
16287 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16288 * linux-low.h (struct process_info_private): New member r_debug.
16289 * server.c (handle_qxfer_libraries): Call
16290 the_target->qxfer_libraries_svr4.
16291 (handle_qxfer_libraries_svr4): New function.
16292 (qxfer_packets): New entry "libraries-svr4".
16293 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16294 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16295 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16296 PACKET_qXfer_libraries_svr4.
16297
d6db1fab
UW
162982011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16299
16300 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16301 PSW address/mask between 8-byte and 16-byte formats.
16302 (s390_supply_ptrace_register): Likewise.
16303 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16304 basic addressing mode bit.
16305
242f5f1c
SS
163062011-11-24 Stan Shebs <stan@codesourcery.com>
16307
16308 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16309
f196051f
SS
163102011-11-17 Stan Shebs <stan@codesourcery.com>
16311
16312 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16313 (tracing_start_time): New global.
16314 (tracing_stop_time): New global.
16315 (tracing_user_name): New global.
16316 (tracing_notes): New global.
16317 (tracing_stop_note): New global.
16318 (cmd_qtstart): Set traceframe_usage, start_time.
16319 (stop_tracing): Set stop_time.
16320 (cmd_qtstatus): Report additional status.
16321 (cmd_qtp): New function.
16322 (handle_tracepoint_query): Call it.
16323 (cmd_qtnotes): New function.
16324 (handle_tracepoint_general_set): Call it.
16325 (get_timestamp): Rename from tsv_get_timestamp.
16326
405f8e94
SS
163272011-11-14 Stan Shebs <stan@codesourcery.com>
16328 Kwok Cheung Yeung <kcy@codesourcery.com>
16329
16330 * linux-x86-low.c (small_jump_insn): New.
16331 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16332 trampoline and error message, build a trampoline and issue a small
16333 jump instruction to it.
16334 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16335 trampoline and error message.
16336 (x86_get_min_fast_tracepoint_insn_len): New.
16337 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16338 * linux-low.h (struct linux_target_ops): Add arguments to
16339 install_fast_tracepoint_jump_pad operation, add new operation.
16340 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16341 arguments.
16342 (linux_get_min_fast_tracepoint_insn_len): New function.
16343 (linux_target_op): Add new operation.
16344 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16345 (gdb_trampoline_buffer_end): Ditto.
16346 (gdb_trampoline_buffer_error): Ditto.
16347 (struct ipa_sym_addresses): Add fields for new IPA variables.
16348 (symbol_list): Add entries for new IPA variables.
16349 (struct tracepoint): Add fields to hold the address range of the
16350 trampoline used by the tracepoint.
16351 (trampoline_buffer_head): New static variable.
16352 (trampoline_buffer_tail): Ditto.
16353 (claim_trampoline_space): New function.
16354 (have_fast_tracepoint_trampoline_buffer): New function.
16355 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16356 structure.
16357 (install_fast_tracepoint): Ditto, also add error buffer argument.
16358 (cmd_qtminftpilen): New function.
16359 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16360 (fast_tracepoint_from_trampoline_address): New function.
16361 (fast_tracepoint_collecting): Handle trampoline as part of jump
16362 pad space.
16363 (set_trampoline_buffer_space): New function.
16364 (initialize_tracepoint): Initialize new IPA variables.
16365 * target.h (struct target_ops): Add arguments to
16366 install_fast_tracepoint_jump_pad operation, add new
16367 get_min_fast_tracepoint_insn_len operation.
16368 (target_get_min_fast_tracepoint_insn_len): New.
16369 (install_fast_tracepoint_jump_pad): Add arguments.
16370 * server.h (IPA_BUFSIZ): Define.
16371 * linux-i386-ipa.c: Include extra header files.
16372 (initialize_fast_tracepoint_trampoline_buffer): New function.
16373 (initialize_low_tracepoint): Call it.
16374 * server.h (set_trampoline_buffer_space): Declare.
16375 (claim_trampoline_space): Ditto.
16376 (have_fast_tracepoint_trampoline_buffer): Ditto.
16377
1e4d1764
YQ
163782011-11-14 Yao Qi <yao@codesourcery.com>
16379
16380 * server.c (handle_query): Handle InstallInTrace for qSupported.
16381 * tracepoint.c (add_tracepoint): Sort list.
16382 (install_tracepoint, download_tracepoint): New.
16383 (cmd_qtdp): Call them to install and download tracepoints.
16384 (sort_tracepoints): Removed.
16385 (cmd_qtstart): Update.
16386
5c73ff4e
YQ
163872011-11-14 Yao Qi <yao@codesourcery.com>
16388
16389 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16390 * mem-break.h: Declare.
16391 * tracepoint.c (cmd_qtstart): Move some code to ...
16392 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16393 New.
16394 (download_tracepoints): Move some code to ...
16395 (download_tracepoint_1): ... here. New.
16396
86a30030
YQ
163972011-11-08 Yao Qi <yao@codesourcery.com>
16398
16399 * remote-utils.c (relocate_instruction): A comment fix.
16400
8d26e50c
JB
164012011-11-07 Joel Brobecker <brobecker@adacore.com>
16402
16403 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16404 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16405 dr_status_mirror and dr_control_mirror from debug_reg_state.
16406 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16407 (i386_initial_stuff): Remove use of deleted globals.
16408 (i386_get_thread_context, i386_set_thread_context,
16409 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16410 from debug_reg_state.
16411
a59306a3
YQ
164122011-11-05 Yao Qi <yao@codesourcery.com>
16413
16414 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16415 address as TPOINT's.
16416
3065dfb6
SS
164172011-11-02 Stan Shebs <stan@codesourcery.com>
16418
16419 * tracepoint.c (agent_mem_read_string): New function.
16420 (eval_agent_expr): Call it for tracenz.
16421 * server.c (handle_query): Report support for tracenz.
16422
fd0d8c7c
YQ
164232011-11-02 Yao Qi <yao@codesourcery.com>
16424
16425 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16426
609086b1
YQ
164272011-11-02 Yao Qi <yao@codesourcery.com>
16428
16429 * target.h: Fix a typo in comment.
16430
b9fd1791
PA
164312011-10-31 Pedro Alves <pedro@codesourcery.com>
16432
16433 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16434 clobber the breakpoints' shadows with fast tracepoint jumps.
16435 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16436 * target.c (write_inferior_memory): Also pass MYADDR down to
16437 check_mem_write.
16438
03583c20
UW
164392011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16440
16441 * configure.ac: Check support for personality routine.
16442 * configure: Regenerate.
16443 * config.in: Likewise.
16444 * linux-low.c: Include <sys/personality.h>.
16445 Define ADDR_NO_RANDOMIZE if necessary.
16446 (linux_create_inferior): Disable address space randomization when
16447 forking inferior, if requested.
16448 (linux_supports_disable_randomization): New function.
16449 (linux_target_ops): Install it.
16450 * server.h (disable_randomization): Declare.
16451 * server.c (disable_randomization): New global variable.
16452 (handle_general_set): Handle QDisableRandomization.
16453 (handle_query): Likewise for qSupported.
16454 (main): Support --disable-randomization and --no-disable-randomization
16455 command line arguments.
16456 * target.h (struct target_ops): Add supports_disable_randomization.
16457 (target_supports_disable_randomization): New macro.
16458
723b724b
MF
164592011-09-29 Mike Frysinger <vapier@gentoo.org>
16460
16461 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16462 ifdef check.
16463 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16464 [!PT_GETDSBT] (target_loadmap): New definition.
16465 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16466 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16467 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16468 and PT_GETDSBT to LINUX_LOADMAP.
16469 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16470 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16471
55329a5c 164722011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16473
16474 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16475 (arm_linux_hwbp_cap): New static variable.
16476 (arm_linux_get_hwbp_cap): Replace by ...
16477 (arm_linux_init_hwbp_cap): ... this new function.
16478 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16479 (arm_linux_get_hw_watchpoint_count): Likewise.
16480 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16481 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16482 (arm_prepare_to_resume): Use perror_with_name instead of error.
16483
55329a5c 164842011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16485
16486 * linux-arm-low.c: Include <signal.h>.
16487 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16488 (struct arm_linux_hwbp_cap): New data type.
16489 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16490 (struct arm_linux_hw_breakpoint): New data type.
16491 (MAX_BPTS, MAX_WPTS): Define.
16492 (struct arch_process_info, struct arch_lwp_info): New data types.
16493 (arm_linux_get_hwbp_cap): New function.
16494 (arm_linux_get_hw_breakpoint_count): Likewise.
16495 (arm_linux_get_hw_watchpoint_count): Likewise.
16496 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16497 (arm_hwbp_control_initialize): Likewise.
16498 (arm_hwbp_control_is_enabled): Likewise.
16499 (arm_hwbp_control_is_initialized): Likewise.
16500 (arm_hwbp_control_disable): Likewise.
16501 (arm_linux_hw_breakpoint_equal): Likewise.
16502 (arm_linux_hw_point_initialize): Likewise.
16503 (struct update_registers_data): New data structure.
16504 (update_registers_callback: New function.
16505 (arm_insert_point): Likewise.
16506 (arm_remove_point): Likewise.
16507 (arm_stopped_by_watchpoint): Likewise.
16508 (arm_stopped_data_address): Likewise.
16509 (arm_new_process): Likewise.
16510 (arm_new_thread): Likewise.
16511 (arm_prepare_to_resume): Likewise.
16512 (the_low_target): Register arm_insert_point, arm_remove_point,
16513 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16514 arm_new_thread, and arm_prepare_to_resume.
16515
6b9801d4
SS
165162011-09-15 Stan Shebs <stan@codesourcery.com>
16517
16518 * server.h (struct emit_ops): Add compare-goto fields.
16519 * tracepoint.c (gdb_agent_op_sizes): New table.
16520 (emit_eq_goto): New function.
16521 (emit_ne_goto): New function.
16522 (emit_lt_goto): New function.
16523 (emit_le_goto): New function.
16524 (emit_gt_goto): New function.
16525 (emit_ge_goto): New function.
16526 (is_goto_target): New function.
16527 (compile_bytecodes): Recognize special cases of compare-goto
16528 combinations and call specialized emitters for them.
16529 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16530 (amd64_emit_ne_goto): New function.
16531 (amd64_emit_lt_goto): New function.
16532 (amd64_emit_le_goto): New function.
16533 (amd64_emit_gt_goto): New function.
16534 (amd64_emit_ge_goto): New function.
16535 (amd64_emit_ops): Add the new functions.
16536 (i386_emit_eq_goto): New function.
16537 (i386_emit_ne_goto): New function.
16538 (i386_emit_lt_goto): New function.
16539 (i386_emit_le_goto): New function.
16540 (i386_emit_gt_goto): New function.
16541 (i386_emit_ge_goto): New function.
16542 (i386_emit_ops): Add the new functions.
16543
bf15cbda
SS
165442011-09-08 Stan Shebs <stan@codesourcery.com>
16545
16546 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16547 (i386_emit_epilogue): Restore %ebx.
16548
943ca1dd
JZ
165492011-08-31 Jie Zhang <jzhang918@gmail.com>
16550
16551 * server.c (step_thread): Remove definition.
16552 (process_serial_event): Don't handle Hs.
16553 * server.h (step_thread): Remove declaration.
16554 * target.c (set_desired_inferior): Remove use of step_thread.
16555
e3deef73
LM
165562011-08-24 Luis Machado <lgustavo@codesourcery.com>
16557
16558 * linux-low.c: Include linux-procfs.h.
16559 (linux_attach_lwp_1): Update comments.
16560 (linux_attach): Scan for existing threads when attaching to a
16561 process that is the tgid.
16562 * Makefile.in: Update dependencies.
16563
13da1c97
LM
165642011-08-24 Luis Machado <lgustavo@codesourcery.com>
16565
16566 * configure.srv: Add linux-procfs.o dependencies.
16567
881127c9
YQ
165682011-08-14 Yao Qi <yao@codesourcery.com>
16569
16570 * target.h (struct target_ops): Fix indent.
16571 * win32-low.c (win32_target_ops): Fix comment.
16572
58dbd541
YQ
165732011-08-14 Andrew Jenner <andrew@codesourcery.com>
16574 Yao Qi <yao@codesourcery.com>
16575
16576 * Makefile.in (clean): Remove tic6x-*.c files.
16577 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16578 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16579 (tic6x-c64xp-linux.c): Likewise.
16580 * configure.srv: Add support for tic6x-*-uclinux.
16581 * linux-tic6x-low.c: New.
16582 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16583
78d85199
YQ
165842011-08-14 Andrew Stubbs <ams@codesourcery.com>
16585 Yao Qi <yao@codesourcery.com>
16586
16587 * target.h (struct target_ops): Add read_loadmap.
16588 * linux-low.c (struct target_loadseg): New type.
16589 (struct target_loadmap): New type.
16590 (linux_read_loadmap): New function.
16591 (linux_target_ops): Add linux_read_loadmap.
16592 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16593 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16594 to NULL.
78d85199 16595
a959a88d
EZ
165962011-08-05 Eli Zaretskii <eliz@gnu.org>
16597
16598 * win32-low.c: Include <stdint.h>.
16599
1ced966e
PA
166002011-07-22 Pedro Alves <pedro@codesourcery.com>
16601
16602 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16603 to the inferior here.
16604 (i386_remove_aligned_watchpoint): Ditto.
16605 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16606 fit part of the watchpoint in the debug registers.
16607 (i386_update_inferior_debug_regs): New.
16608 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16609 registers, and only update the inferior on success.
16610 (i386_low_remove_watchpoint): Ditto.
16611
d26e3629
KY
166122011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16613
16614 * linux-low.c (compare_ints, unique, list_threads, show_process,
16615 linux_core_of_thread): Delete.
16616 (linux_target_ops): Change linux_core_of_thread to
16617 linux_common_core_of_thread.
16618 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16619 * utils.c (malloc_failure): Change type of argument.
16620 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16621 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16622 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16623 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16624 (IPA_OBJS): Add common-utils-ipa.o.
16625 (ptid_h, linux_osdata_h): New macros.
16626 (server_h): Add common/common-utils.h, common/xml-utils.h,
16627 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16628 common/ptid.h.
16629 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16630 ptid.o, buffer.o): New rules.
16631 (linux-low.o): Add common/linux-osdata.h as a dependency.
16632 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16633 * configure.ac: Add AC_HEADER_DIRENT check.
16634 * config.in: Regenerate.
16635 * configure: Regenerate.
16636 * remote-utils.c (xml_escape_text): Delete.
16637 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16638 buffer_xml_printf): Move to common/buffer.c.
16639 * server.c (main): Remove call to initialize_inferiors.
16640 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16641 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16642 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16643 internal_error, gdb_assert, gdb_assert_fail): Delete.
16644 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16645 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16646 common/buffer.h.
16647 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16648 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16649 initialize_inferiors): Delete.
16650
2275a1a7
PA
166512011-07-20 Pedro Alves <pedro@codesourcery.com>
16652
16653 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16654 symbol error.
16655
0a5b1e09
PA
166562011-05-31 Pedro Alves <pedro@codesourcery.com>
16657
16658 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16659 assertion.
16660 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16661
6938fd34
YQ
166622011-05-26 Yao Qi <yao@codesourcery.com>
16663
16664 * Makefile.in (thread-db.o): Track dependence to
16665 common/gdb_thread_db.h.
16666 * thread-db.c: include gdb_thread_db.h from right place.
16667
b481f9e0
TT
166682011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16669
16670 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16671 __FILE__ and __LINE__ to internal_error.
16672
98a5dd13
DE
166732011-05-13 Doug Evans <dje@google.com>
16674
16675 * thread-db.c (try_thread_db_load_from_sdir): New function.
16676 (try_thread_db_load_from_dir): New function.
16677 (thread_db_load_search): Handle $sdir, ignore $pdir.
16678 Remove trying of system directories if search of
16679 libthread-db-search-path fails, that is now done via $sdir.
16680
d248b706
KY
166812011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16682
16683 * server.c (handle_query): Add EnableDisableTracepoints to the list
16684 of supported features.
43aaf8b6 16685 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16686 tracepoints.
43aaf8b6
PA
16687 (cmd_qtenable_disable): New.
16688 (cmd_qtstart): Install tracepoints even if disabled.
16689 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16690 receiving a QTEnable or QTDisable packet.
16691 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16692 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16693 tracepoints.
16694 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16695
84e578fb
DE
166962011-05-10 Doug Evans <dje@google.com>
16697
16698 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16699
71f55dd8
DE
167002011-05-04 Doug Evans <dje@google.com>
16701
16702 * linux-low.c (linux_join): Skip process lookup.
16703 * spu-low.c (spu_join): Ditto.
16704 * server.c (join_inferiors_callback): Delete.
16705 (process_serial_event): For 'D' packet (detach) call join_inferior
16706 directly.
16707
4d393d60
JM
167082011-05-04 Joseph Myers <joseph@codesourcery.com>
16709
16710 * README: Don't mention xscale*-*-linux*.
16711 * configure.srv (xscale*-*-linux*): Don't handle target.
16712
b00ad6ff
NF
167132011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16714
16715 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16716 casting pointers.
16717 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16718 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16719 (i386_emit_void_call_2): Likewise.
16720
af96c192
YQ
167212011-04-26 Yao Qi <yao@codesourcery.com>
16722
43aaf8b6
PA
16723 * linux-low.c: Move common macros to linux-ptrace.h.
16724 Include linux-ptrace.h.
af96c192
YQ
16725 * Makefile.in (linux_ptrace_h): New.
16726 (linux-low.o): Depends on linux-ptrace.h.
16727
03f2bd59
JK
167282011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16729
16730 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16731 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16732 (remote_prepare): New function with most of the TCP code from ...
16733 (remote_open): ... here. Detect PORT here unconditionally. Move also
16734 setting transport_is_reliable.
16735 * server.c (run_once): New variable.
16736 (gdbserver_usage): Document it.
16737 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16738 the first run if RUN_ONCE.
16739 * server.h (run_once, remote_prepare): New declarations.
16740
7a9dd1b2
TT
167412011-04-19 Tom Tromey <tromey@redhat.com>
16742
16743 * win32-low.c (handle_load_dll): Remove duplicate "the".
16744
81239425
PM
167452011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16746
16747 Remove support for old Cygwin 1.5 versions.
16748 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16749 function to avoid warning.
16750 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16751 warning.
16752
9e0627f1
PM
167532011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16754
16755 * gdbserver/server.h (Macro _): Define it if not available.
16756
588eebee
MS
167572011-03-14 Michael Snyder <msnyder@vmware.com>
16758
348af9f7 16759 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16760
43f70d4c
JB
167612011-03-10 Joel Brobecker <brobecker@adacore.com>
16762
16763 * Makefile.in (maintainer-clean realclean distclean): Remove
16764 "make ... subdir_do" command.
16765
348af9f7
MS
167662011-03-10 Michael Snyder <msnyder@vmware.com>
16767
16768 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16769
16770 * server.c (handle_v_run): Free alloced buffer on early return.
16771
e637a4f5
YQ
167722011-03-09 Yao Qi <yao@codesourcery.com>
16773
16774 Revert:
16775 2011-03-04 Yao Qi <yao@codesourcery.com>
16776
16777 * Makefile.in: Remove GNU make feature --directory.
16778
16779 2011-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
16786 2011-02-11 Yao Qi <yao@codesourcery.com>
16787
16788 * configure.ac: Call AC_PROG_RANLIB.
16789 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16790 * configure: Regenerate.
16791
e6edda56
JK
167922011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16793
16794 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16795
e5141119
JB
167962011-03-06 Yao Qi <yao@codesourcery.com>
16797
16798 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16799
64794aa4
JB
168002011-03-05 Yao Qi <yao@codesourcery.com>
16801
16802 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16803 (subdir_do): New make target. Copied from gdb/Makefile.
16804 (maintainer-clean, realclean, distclean, clean): Call corresponding
16805 make targets in common/Makefile.
16806
7a762829
YQ
168072011-03-04 Yao Qi <yao@codesourcery.com>
16808
16809 * Makefile.in: Remove GNU make feature --directory.
16810
348af9f7
MS
168112011-03-04 Michael Snyder <msnyder@vmware.com>
16812
16813 * server.c (queue_stop_reply): Call xmalloc not malloc.
16814
168152011-03-02 Michael Snyder <msnyder@vmware.com>
16816
16817 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16818
9f72fee2
MS
168192011-02-28 Michael Snyder <msnyder@vmware.com>
16820
588eebee
MS
16821 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16822 (cmd_qtframe): Ditto.
16823 (cmd_qtbuffer): Ditto.
16824 (cmd_bigqtbuffer): Ditto.
16825
9f72fee2
MS
16826 * utils.c (decimal2str): Initialize 'width' to nine, then
16827 don't mess with it.
16828
8040bd49
UW
168292011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16830
16831 * hostio.c (require_data): Free *data, not data.
16832
7e52cbd0
JK
168332011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16834
16835 * hostio.c (require_data): Use free, not xfree.
16836
9130f83e
MS
168372011-02-27 Michael Snyder <msnyder@vmware.com>
16838
4b812f4e
MS
16839 * server.c (handle_query): Discard unused value.
16840
9130f83e
MS
16841 * hostio.c (require_data): Free malloc memory before returning
16842 error.
16843
69d37113
MS
168442011-02-26 Michael Snyder <msnyder@vmware.com>
16845
16846 * linux-low.c (list_threads): Call closedir for dirent.
16847
35f5825a
MS
168482011-02-27 Michael Snyder <msnyder@vmware.com>
16849
2a589cef
MS
16850 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16851 a case statement falls through.
16852
0adea5f7
MS
16853 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16854
35f5825a
MS
16855 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16856 in comparison.
16857
238f1c74
MS
168582011-02-26 Michael Snyder <msnyder@vmware.com>
16859
16860 * utils.c (decimal2str): Eliminate dead code and dead param.
16861 (pulongest): Drop dead param from call to decimal2str.
16862 (plongest): Ditto.
16863
633ff500
JB
168642011-02-24 Joel Brobecker <brobecker@adacore.com>
16865
16866 Revert the following patch (not approved yet):
16867 2011-02-21 Hui Zhu <teawater@gmail.com>
16868 * tracepoint.c (tp_printf): New function.
16869 (eval_agent_expr): Handle gdb_agent_op_printf.
16870
f9c6ff72
HZ
168712011-02-21 Hui Zhu <teawater@gmail.com>
16872
16873 * tracepoint.c (tp_printf): New function.
16874 (eval_agent_expr): Handle gdb_agent_op_printf.
16875
94d5e490
TT
168762011-02-18 Tom Tromey <tromey@redhat.com>
16877
16878 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16879 (tracepoint.o): Likewise.
16880 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16881 (gdb_agent_op_names): Likewise.
16882
c7f96d2b
TT
168832011-02-18 Tom Tromey <tromey@redhat.com>
16884
16885 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16886 gdb_agent_op_rot>: New constants.
16887 (gdb_agent_op_names): Add pick and roll.
16888 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16889 cases.
16890
0feedb2c
JK
168912011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16892
16893 * aclocal.m4: Regenerated with aclocal-1.11.1.
16894
b3b9301e
PA
168952011-02-14 Pedro Alves <pedro@codesourcery.com>
16896
16897 * server.c (handle_qxfer_traceframe_info): New.
16898 (qxfer_packets): Register "traceframe-info".
16899 (handle_query): Report support for qXfer:traceframe-info:read+.
16900 * tracepoint.c (match_blocktype): New.
16901 (traceframe_find_block_type): Rename to ...
16902 (traceframe_walk_blocks): ... this. Add callback filter argument,
16903 and use it.
16904 (traceframe_find_block_type): New, reimplemented on top of
16905 traceframe_walk_blocks.
16906 (build_traceframe_info_xml): New.
16907 (traceframe_read_info): New.
16908 * server.h (traceframe_read_info): Declare.
16909
4f3e6fb7
YQ
169102011-02-11 Yao Qi <yao@codesourcery.com>
16911
16912 * configure.ac: Call AC_PROG_RANLIB.
16913 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16914 * configure: Regenerate.
16915
764880b7
PA
169162011-02-07 Pedro Alves <pedro@codesourcery.com>
16917
16918 * server.c (gdb_read_memory): Change return semantics to allow
16919 partial transfers.
16920 (handle_search_memory_1): Adjust.
16921 (process_serial_event) <'m' packet>: Handle partial transfers.
16922 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16923
1c79eb8a
PA
169242011-01-28 Pedro Alves <pedro@codesourcery.com>
16925
16926 * regcache.c (init_register_cache): Initialize
16927 regcache->register_status.
16928 (free_register_cache): Release regcache->register_status.
16929 (regcache_cpy): Copy register_status.
16930 (registers_to_string): Print 'x's for unavailable registers.
16931 (supply_register): Mark the register's status valid or
16932 unavailable, depending on whether a buffer was passed in or not.
16933 (supply_register_zeroed): New.
16934 (supply_regblock): Mark the registers' status valid or
16935 unavailable, depending on whether a buffer was passed in or not.
16936 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16937 (struct regcache): New `register_status' field.
16938 (supply_register_zeroed): Declare.
16939 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16940 supply_register_zeroed, rather than passing a NULL buffer to
16941 supply_register.
16942 * tracepoint.c (fetch_traceframe_registers): Update comment.
16943
85724a0e
PA
169442011-01-28 Pedro Alves <pedro@codesourcery.com>
16945
16946 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16947 buffer explicit.
16948
d08aafef
PA
169492011-01-25 Pedro Alves <pedro@codesourcery.com>
16950
16951 * server.h (decode_xfer_write): Change prototype.
16952 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16953 and don't extract the annex here.
16954 * server.c (decode_xfer_read): Remove `annex' parameter,
16955 and don't extract the annex here.
16956 (decode_xfer): New.
16957 (struct qxfer): New.
16958 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16959 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16960 (handle_qxfer_statictrace): New functions, abstracted out from
16961 handle_query, and made to use the struct qxfer interface.
16962 (handle_threads_qxfer_proper): Rename to ...
16963 (handle_qxfer_threads_proper): ... this.
16964 (handle_threads_qxfer): Rename to ...
16965 (handle_qxfer_threads): ... this. Adjust.
16966 (qxfer_packets): New array.
16967 (handle_qxfer): New function.
16968 (handle_query): Use handle_qxfer.
16969
493e2a69
MS
169702011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16971
16972 * gdbreplay.c: Shorten lines of >= 80 columns.
16973 * linux-low.c: Ditto.
16974 * linux-ppc-low.c: Ditto.
16975 * linux-s390-low.c: Ditto.
16976 * linux-sparc-low.c: Ditto.
16977 * linux-x86-low.c: Ditto.
16978 * linux-xtensa-low.c: Ditto.
16979 * mem-break.c: Ditto.
16980 * nto-low.c: Ditto.
16981 * regcache.h: Ditto.
16982 * remote-utils.c: Ditto.
16983 * server.c: Ditto.
16984 * server.h: Ditto.
16985 * thread-db.c: Ditto.
16986 * tracepoint.c: Ditto.
16987 * utils.c: Ditto.
16988 * win32-low.h: Ditto.
16989
44944448
JB
169902011-01-05 Joel Brobecker <brobecker@adacore.com>
16991
16992 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16993 update.
16994
71ce852c
JB
169952011-01-01 Joel Brobecker <brobecker@adacore.com>
16996
16997 * server.c (gdbserver_version): Update copyright year in version
16998 output.
16999 * gdbreplay.c (gdbreplay_version): Ditto.
17000
eb826dc6
MF
170012010-12-29 Jie Zhang <jie.zhang@analog.com>
17002
17003 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17004 * linux-bfin-low.c: New file.
17005 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17006 PT_DATA_ADDR for BFIN targets.
17007 * Makefile.in (SFILES): Add linux-bfin-low.c.
17008 (clean): Remove reg-bfin.c.
17009 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17010 * README: Mention supported Blackfin targets.
17011
39ab222a
MF
170122010-12-23 Mike Frysinger <vapier@gentoo.org>
17013
17014 * .gitignore: New file.
17015
a1f2ce7d
MF
170162010-11-16 Mike Frysinger <vapier@gentoo.org>
17017
17018 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17019
f474844c
JZ
170202010-10-22 Jie Zhang <jie@codesourcery.com>
17021
17022 * Makefile.in: Add FLAGS_TO_PASS variable.
17023 (install): Remove dependency of install-only and recursively
17024 invoke make for install-only.
17025
f1048712
DE
170262010-10-04 Doug Evans <dje@google.com>
17027
17028 * Makefile.in (uninstall): Use $(DESTDIR).
17029
b53a1623
PA
170302010-09-24 Pedro Alves <pedro@codesourcery.com>
17031
e6ee044d
PA
17032 PR gdb/11842
17033
b53a1623
PA
17034 * linux-x86-low.c (compat_siginfo_from_siginfo)
17035 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17036 si_code is < 0. Check for si_code == SI_TIMER before checking for
17037 si_code < 0.
17038
fa1bd1e4
JB
170392010-09-13 Joel Brobecker <brobecker@adacore.com>
17040
17041 * lynx-i386-low.c: New file.
17042 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17043
47fac8f8
JB
170442010-09-13 Joel Brobecker <brobecker@adacore.com>
17045
17046 * lynx-low.c (ptrace_request_to_str): Remove handling for
17047 request values that have been removed in LynxOS 5.x.
17048
1adfc54d
JB
170492010-09-13 Joel Brobecker <brobecker@adacore.com>
17050
17051 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17052 <ptrace.h>
17053
c2a66c29
NS
170542010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17055
17056 * configure.ac: Add --enable-inprocess-agent option.
17057 * configure: Rebuilt.
17058
32fcada3
YQ
170592010-09-06 Yao Qi <yao@codesourcery.com>
17060
17061 * linux-low.c (linux_kill): Remove unused variable.
17062 (linux_stabilize_threads): Likewise.
17063 * server.c (start_inferior): Likewise.
17064 (queue_stop_reply_callback): Likewise.
17065 * tracepoint.c (do_action_at_tracepoint): Likewise.
17066
0cccb683
YQ
170672010-09-06 Yao Qi <yao@codesourcery.com>
17068
17069 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17070 on return.
17071
423ec54c
JK
170722010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17073
17074 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17075
12ac6819
PA
170762010-09-06 Pedro Alves <pedro@codesourcery.com>
17077
17078 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17079 "$(IPA_DEPFILES)".
17080
8ed54b31
JB
170812010-09-01 Joel Brobecker <brobecker@adacore.com>
17082
17083 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17084 gdbserver/lynx-ppc-low.c: New files.
17085 * Makefile.in (lynx_low_h): New variable.
17086 (lynx-low.o, lynx-ppc-low.o): New rules.
17087 * configure.ac: On LynxOS, link with -lnetinet.
17088 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17089 * configure: regenerate.
17090
bb0116a4
JB
170912010-09-01 Joel Brobecker <brobecker@adacore.com>
17092
17093 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17094 * configure.ac: Add check for vasprintf and vsnprintf.
17095 * configure, config.in: Regenerate.
17096 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17097
a778ab81 170982010-09-01 Joel Brobecker <brobecker@adacore.com>
17099
17100 * gdbreplay.c: Move include of alloca.h up, next to include of
17101 malloc.h.
17102 * server.h: Add include of malloc.h.
17103 * mem-break.c: Remove include of malloc.h.
17104 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17105
8b034a19 171062010-09-01 Joel Brobecker <brobecker@adacore.com>
17107
17108 * Makefile.in (memmem.o): Build with -Wno-error.
17109
171102010-09-01 Joel Brobecker <brobecker@adacore.com>
17111
17112 * utils.c (xsnprintf): Make non-static.
17113 * server.h: Add xsnprintf declaration.
17114 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17115 replace calls to snprintf by calls to xsnprintf throughout.
17116
171172010-09-01 Joel Brobecker <brobecker@adacore.com>
17118
17119 * configure.ac: Add configure check for alloca.
17120 * configure, config.in: Regenerate.
17121 * server.h: Include alloca.h if it exists.
17122 * gdbreplay.c: Include alloca.h if it exists.
17123
1a981360
PA
171242010-08-28 Pedro Alves <pedro@codesourcery.com>
17125
17126 * linux-low.c (__SIGRTMIN): Define if not already defined.
17127 (linux_create_inferior): Check for __ANDROID__ rather than
17128 __SIGRTMIN.
17129 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17130 are already deferred.
17131 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17132 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17133 stopped and already has a pending signal to report.
17134 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17135 a pending signal to report or is moving out of a jump pad.
17136 (linux_init_signals): Check for __ANDROID__ rather than
17137 __SIGRTMIN.
17138
b4d51a55
PA
171392010-08-28 Pedro Alves <pedro@codesourcery.com>
17140
17141 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17142 debug_threads check. Avoid a linear search when not doing debug
17143 output.
17144
ec48365d
PA
171452010-08-27 Pedro Alves <pedro@codesourcery.com>
17146
17147 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17148 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17149 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17150 (process_event): Change local fd's type to gdb_fildes_t.
17151 (create_file_handler): Adjust prototype.
17152 (delete_file_handler): Adjust prototype.
17153 (handle_file_event): Adjust prototype. Use pfildes.
17154 (create_file_event): Adjsut prototype.
17155 * remote-utils.c (remote_desc, listen_desc): Change type to
17156 gdb_fildes_t.
17157 * server.h: New gdb_fildes_t typedef.
17158 [USE_WIN32API]: Include winsock2.h.
17159 (delete_file_handler, add_file_handler): Adjust prototypes.
17160 (pfildes): Declare.
17161 * utils.c (pfildes): New.
17162
854d88f0
PA
171632010-08-27 Pedro Alves <pedro@codesourcery.com>
17164
17165 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17166 * configure: Regenerate.
17167
0146f85b
PA
171682010-08-27 Pedro Alves <pedro@codesourcery.com>
17169
17170 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17171 (linux_done_accessing_memory): ... this.
17172 (linux_target_ops): Adjust.
17173 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17174 * nto-low.c (nto_target_ops): Adjust comment.
17175 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17176 * spu-low.c (spu_target_ops): Adjust comment.
17177 * target.h (target_ops): Rename unprepare_to_access_memory field
17178 to done_accessing_memory.
17179 (unprepare_to_access_memory): Rename to ...
17180 (done_accessing_memory): ... this.
17181
90d74c30
PA
171822010-08-26 Pedro Alves <pedro@codesourcery.com>
17183
17184 * linux-low.c (linux_prepare_to_access_memory): New.
17185 (linux_unprepare_to_access_memory): New.
17186 (linux_target_ops): Install them.
17187 * server.c (read_memory): Rename to ...
17188 (gdb_read_memory): ... this. Use
17189 prepare_to_access_memory/prepare_to_access_memory.
17190 (write_memory): Rename to ...
17191 (gdb_write_memory): ... this. Use
17192 prepare_to_access_memory/prepare_to_access_memory.
17193 (handle_search_memory_1): Adjust.
17194 (process_serial_event): Adjust.
17195 * target.h (struct target_ops): New fields
17196 prepare_to_access_memory and unprepare_to_access_memory.
17197 (prepare_to_access_memory, unprepare_to_access_memory): New.
17198 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17199 prepare_to_access_memory/prepare_to_access_memory.
17200 * nto-low.c (nto_target_ops): Adjust.
17201 * spu-low.c (spu_target_ops): Adjust.
17202 * win32-low.c (win32_target_ops): Adjust.
17203
fd467969
PA
172042010-08-26 Pedro Alves <pedro@codesourcery.com>
17205
17206 * Makefile.in (WARN_CFLAGS): Get it from configure.
17207 (WERROR_CFLAGS): New.
17208 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17209 * configure.ac: Introduce --enable-werror, which adds -Werror to
17210 the compiler command line. Enabled by default. Disable with
17211 --disable-werror. Add -Wdeclaration-after-statement
17212 Wpointer-arith and -Wformat-nonliteral to warning flags.
17213 * configure: Regenerate.
17214
331e2f5f
PA
172152010-08-26 Pedro Alves <pedro@codesourcery.com>
17216
17217 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17218
e581f2b4
PA
172192010-08-26 Pedro Alves <pedro@codesourcery.com>
17220
17221 * gdbreplay.c (remote_error): New.
17222 (gdbchar): New.
17223 (expect): Use gdbchar. Check for error reading from GDB.
17224 Clarify sync error output.
17225 (play): Check for errors writing to GDB.
17226 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17227 * remote-utils.c (getpkt): Check for errors writing to the remote
17228 descriptor.
17229
3c11dd79
PA
172302010-08-25 Pedro Alves <pedro@codesourcery.com>
17231
17232 * linux-low.c (linux_wait_1): Move non-debugging code out of
17233 `debug_threads' control.
17234
d20a8ad9
PA
172352010-08-25 Pedro Alves <pedro@codesourcery.com>
17236
17237 * linux-low.c (linux_wait_1): Don't set last_status here.
17238 * server.c (push_event, queue_stop_reply_callback): Assert we're
17239 not pushing a TARGET_WAITKIND_IGNORE event.
17240 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17241 (myresume, handle_target_event): Set the thread's last_resume_kind
17242 and last_status from the target returned status.
17243
964e4306
PA
172442010-08-25 Pedro Alves <pedro@codesourcery.com>
17245
17246 PR threads/10729
17247
17248 * linux-x86-low.c (update_debug_registers_callback): New.
17249 (i386_dr_low_set_addr): Use it.
17250 (i386_dr_low_get_addr): New.
17251 (i386_dr_low_set_control): Use update_debug_registers_callback.
17252 (i386_dr_low_get_control): New.
17253 (i386_dr_low_get_status): Adjust.
17254 * linux-low.c (linux_stop_lwp): New.
17255 * linux-low.h (linux_stop_lwp): Declare.
17256
17257 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17258 argument instead of a i386_debug_reg_state.
17259 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17260 a i386_debug_reg_state.
17261 (i386_insert_aligned_watchpoint): Adjust.
17262 (i386_remove_aligned_watchpoint): Adjust.
17263 (i386_low_stopped_data_address): Read the debug registers from the
17264 inferior instead of from the mirrors.
17265 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17266 (i386_dr_low_get_addr): Declare.
17267 (i386_dr_low_get_control): Declare.
17268 (i386_dr_low_get_status): Change prototype.
17269
17270 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17271 (i386_dr_low_get_addr): New.
17272 (i386_dr_low_get_control): New.
17273 (i386_dr_low_get_status): Adjust prototype. Return
17274 dr_status_mirror.
17275 (i386_initial_stuff): Clear dr_status_mirror and
17276 dr_control_mirror.
17277 (i386_get_thread_context): Adjust.
17278 (i386_set_thread_context): Adjust.
17279 (i386_thread_added): Adjust.
17280
5f21a75b
PA
172812010-08-24 Pedro Alves <pedro@codesourcery.com>
17282
17283 * linux-low.h (linux_thread_area): Delete declaration.
17284
3e4c1235
TS
172852010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17286
17287 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17288 after its termination.
17289
1971b033
PA
172902010-08-09 Pedro Alves <pedro@codesourcery.com>
17291
17292 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17293 (gdb_wants_all_stopped): Delete.
17294 (linux_wait_1): Don't call them.
17295 * server.c (handle_v_cont): Tag all threads as want-stopped.
17296 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17297 stopped as "client-wants-stopped".
17298
310444ac
PA
172992010-07-31 Pedro Alves <pedro@codesourcery.com>
17300
17301 * Makefile.in (signals_h): New.
17302 (server_h): Depend on it.
17303 (server.o): Don't depend on $(signals_def).
17304 (signals.o): Depend on $(signals_def).
17305
a19cae16
JK
173062010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17307
17308 * Makefile.in (signals_def): New.
17309 (server_h): Append include/gdb/signals.h and signals_def.
17310 (server.o): Append signals_def.
17311
30d50328
JK
173122010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17313
17314 * server.c (handle_target_event): Use target_signal_to_host for
17315 resume_info.sig initialization.
17316 * target.h (struct thread_resume) <sig>: New comment.
17317
5c3216e2
OS
173182010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17319
c6f46ca0
OS
17320 * server.c (handle_query): strcpy() the returned string from paddress()
17321 instead of sprintf().
5c3216e2
OS
17322 * utils.c (paddress): Return phex_nz().
17323
6bd31874
JB
173242010-07-07 Joel Brobecker <brobecker@adacore.com>
17325
17326 * server.c (handle_v_cont): Call mourn_inferior if process
17327 just exited.
17328 (myresume): Likewise.
17329
0fb4aa4b
PA
173302010-07-01 Pedro Alves <pedro@codesourcery.com>
17331
17332 Static tracepoints, and integration with UST.
17333
17334 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17335 * mem-break.c (uninsert_all_breakpoints)
17336 (reinsert_all_breakpoints): New.
17337 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17338 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17339 (gdb_agent_ust_loaded, helper_thread_id)
17340 (gdb_agent_helper_thread_id): New macros.
17341 (struct ipa_sym_addresses): Add addr_ust_loaded,
17342 addr_helper_thread_id, addr_cmd_buf.
17343 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17344 (in_process_agent_loaded_ust): New.
17345 (write_e_ust_not_loaded): New.
17346 (maybe_write_ipa_ust_not_loaded): New.
17347 (struct collect_static_trace_data_action): New.
17348 (enum tracepoint_type) <static_tracepoint>: New.
17349 (struct tracepoint) <handle>: Mention static tracepoints.
17350 (struct static_tracepoint_ctx): New.
17351 (CMD_BUF_SIZE): New.
17352 (add_tracepoint_action): Handle static tracepoint actions.
17353 (unprobe_marker_at): New.
17354 (clear_installed_tracepoints): Handle static tracepoints.
17355 (cmd_qtdp): Handle static tracepoints.
17356 (probe_marker_at): New.
17357 (cmd_qtstart): Handle static tracepoints.
17358 (response_tracepoint): Handle static tracepoints.
17359 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17360 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17361 (get_context_regcache): Handle static tracepoints.
17362 (do_action_at_tracepoint): Handle static tracepoint actions.
17363 (traceframe_find_block_type): Handle static trace data blocks.
17364 (traceframe_read_sdata): New.
17365 (download_tracepoints): Download static tracepoint actions.
17366 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17367 (GDB_PROBE_NAME): New.
17368 (ust_ops): New.
17369 (GET_UST_SYM): New.
17370 (USTF): New.
17371 (dlsym_ust): New.
17372 (ust_marker_to_static_tracepoint): New.
17373 (gdb_probe): New.
17374 (collect_ust_data_at_tracepoint): New.
17375 (gdb_ust_probe): New.
17376 (UNIX_PATH_MAX, SOCK_DIR): New.
17377 (gdb_ust_connect_sync_socket): New.
17378 (resume_thread, stop_thread): New.
17379 (run_inferior_command): New.
17380 (init_named_socket): New.
17381 (gdb_ust_socket_init): New.
17382 (cstr_to_hexstr): New.
17383 (next_st): New.
17384 (first_marker, next_marker): New.
17385 (response_ust_marker): New.
17386 (cmd_qtfstm, cmd_qtsstm): New.
17387 (unprobe_marker_at, probe_marker_at): New.
17388 (cmd_qtstmat, gdb_ust_thread): New.
17389 (gdb_ust_init): New.
17390 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17391 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17392 (ST_REGENTRY): New.
17393 (x86_64_st_collect_regmap): New.
17394 (X86_64_NUM_ST_COLLECT_GREGS): New.
17395 (AMD64_RIP_REGNUM): New.
17396 (supply_static_tracepoint_registers): New.
17397 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17398 (ST_REGENTRY): New.
17399 (i386_st_collect_regmap): New.
17400 (i386_NUM_ST_COLLECT_GREGS): New.
17401 (supply_static_tracepoint_registers): New.
17402 * server.c (handle_query): Handle qXfer:statictrace:read.
17403 <qSupported>: Report support for StaticTracepoints, and
17404 qXfer:statictrace:read features.
17405 * server.h (traceframe_read_sdata)
17406 (supply_static_tracepoint_registers): Declare.
17407 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17408 (unpack_varlen_hex): Include in IPA build.
17409 * Makefile.in (ustlibs, ustinc): New.
17410 (IPA_OBJS): Add remote-utils-ipa.o.
17411 ($(IPA_LIB)): Link -ldl and -lpthread.
17412 (UST_CFLAGS): New.
17413 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17414 * config.in, configure: Regenerate.
17415
9e4344e5
PA
174162010-06-20 Ian Lance Taylor <iant@google.com>
17417 Pedro Alves <pedro@codesourcery.com>
17418
17419 * linux-x86-low.c (always_true): Delete.
17420 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17421 trying to fool the compiler with always_true.
17422
c6beb2cb
PA
174232010-06-20 Pedro Alves <pedro@codesourcery.com>
17424
17425 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17426 conditions in gdbserver.
17427
d2ed6730
UW
174282010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17429
17430 * spu-low.c (spu_read_memory): Wrap around local store limit.
17431 (spu_write_memory): Likewise.
17432
4e29fb54
PA
174332010-06-15 Pedro Alves <pedro@codesourcery.com>
17434
17435 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17436 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17437 LONGEST uses.
17438 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17439 uses.
17440 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17441 uses with LONGEST uses.
17442
6a271cae
PA
174432010-06-14 Stan Shebs <stan@codesourcery.com>
17444 Pedro Alves <pedro@codesourcery.com>
17445
17446 Bytecode compiler.
17447
17448 * linux-x86-low.c: Include limits.h.
17449 (add_insns): New.
17450 (always_true): New.
17451 (EMIT_ASM): New.
17452 (EMIT_ASM32): New.
17453 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17454 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17455 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17456 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17457 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17458 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17459 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17460 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17461 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17462 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17463 (amd64_emit_void_call_2): New.
17464 (amd64_emit_ops): New.
17465 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17466 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17467 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17468 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17469 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17470 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17471 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17472 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17473 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17474 (i386_emit_stack_adjust, i386_emit_int_call_1)
17475 (i386_emit_void_call_2): New.
17476 (i386_emit_ops): New.
17477 (x86_emit_ops): New.
17478 (the_low_target): Install x86_emit_ops.
17479 * server.h (struct emit_ops): New.
17480 (get_raw_reg_func_addr): Declare.
17481 (current_insn_ptr, emit_error): Declare.
17482 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17483 (set_trace_state_variable_value): New defines.
17484 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17485 addr_get_trace_state_variable_value and
17486 addr_set_trace_state_variable_value.
17487 (symbol_list): New fields for get_raw_reg,
17488 get_trace_state_variable_value and set_trace_state_variable_value.
17489 (condfn): New typedef.
17490 (struct tracepoint): New field `compiled_cond'.
17491 (do_action_at_tracepoint): Clear compiled_cond.
17492 (get_trace_state_variable_value, set_trace_state_variable_value):
17493 Export in the IPA.
17494 (condition_true_at_tracepoint): If there's a compiled condition,
17495 run that.
17496 (current_insn_ptr, emit_error): New globals.
17497 (struct bytecode_address): New.
17498 (get_raw_reg_func_addr): New.
17499 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17500 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17501 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17502 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17503 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17504 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17505 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17506 (compile_tracepoint_condition, compile_bytecodes): New.
17507 * target.h (emit_ops): Forward declare.
17508 (struct target_ops): New field emit_ops.
17509 (target_emit_ops): New.
17510 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17511 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17512 * linux-low.c (linux_emit_ops): New.
17513 (linux_target_ops): Install it.
17514 * linux-low.h (struct linux_target_ops): New field emit_ops.
17515
92b72907
UW
175162010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17517
17518 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17519 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17520
fa593d66
PA
175212010-06-01 Pedro Alves <pedro@codesourcery.com>
17522 Stan Shebs <stan@codesourcery.com>
17523
17524 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17525 (all): Depend on $(extra_libraries).
17526 (install-only): Install the IPA.
17527 (IPA_OBJS, IPA_LIB): New.
17528 (clean): Remove the IPA lib.
17529 (IPAGENT_CFLAGS): New.
17530 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17531 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17532 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17533 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17534 * configure.ac: Check for atomic builtins support in the compiler.
17535 (IPA_DEPFILES, extra_libraries): Define.
17536 * configure.srv (ipa_obj): Add description.
17537 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17538 (i[34567]86-*-linux*): Set ipa_obj.
17539 (x86_64-*-linux*): Set ipa_obj.
17540 * linux-low.c (stabilizing_threads): New.
17541 (supports_fast_tracepoints): New.
17542 (linux_detach): Stabilize threads before detaching.
17543 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17544 the lwp is either not stabilizing, or is moving out of a jump pad.
17545 (linux_fast_tracepoint_collecting): New.
17546 (maybe_move_out_of_jump_pad): New.
17547 (enqueue_one_deferred_signal): New.
17548 (dequeue_one_deferred_signal): New.
17549 (linux_wait_for_event_1): If moving out of a jump pad, defer
17550 pending signals to later.
17551 (linux_stabilize_threads): New.
17552 (linux_wait_1): Check if threads need moving out of jump pads, and
17553 do it if so.
17554 (stuck_in_jump_pad_callback): New.
17555 (move_out_of_jump_pad_callback): New.
17556 (lwp_running): New.
17557 (linux_resume_one_lwp): Handle moving out of jump pads.
17558 (linux_set_resume_request): Dequeue deferred signals.
17559 (need_step_over_p): Also step over fast tracepoint jumps.
17560 (start_step_over): Also uninsert fast tracepoint jumps.
17561 (finish_step_over): Also reinsert fast tracepoint jumps.
17562 (linux_install_fast_tracepoint_jump): New.
17563 (linux_target_ops): Install linux_stabilize_threads and
17564 linux_install_fast_tracepoint_jump_pad.
17565 * linux-low.h (linux_target_ops) <get_thread_area,
17566 install_fast_tracepoint_jump_pad>: New fields.
17567 (struct lwp_info) <collecting_fast_tracepoint,
17568 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17569 (linux_get_thread_area): Declare.
17570 * linux-x86-low.c (jump_insn): New.
17571 (x86_get_thread_area): New.
17572 (append_insns): New.
17573 (push_opcode): New.
17574 (amd64_install_fast_tracepoint_jump_pad): New.
17575 (i386_install_fast_tracepoint_jump_pad): New.
17576 (x86_install_fast_tracepoint_jump_pad): New.
17577 (the_low_target): Install x86_get_thread_area and
17578 x86_install_fast_tracepoint_jump_pad.
17579 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17580 (struct fast_tracepoint_jump): New.
17581 (fast_tracepoint_jump_insn): New.
17582 (fast_tracepoint_jump_shadow): New.
17583 (find_fast_tracepoint_jump_at): New.
17584 (fast_tracepoint_jump_here): New.
17585 (delete_fast_tracepoint_jump): New.
17586 (set_fast_tracepoint_jump): New.
17587 (uninsert_fast_tracepoint_jumps_at): New.
17588 (reinsert_fast_tracepoint_jumps_at): New.
17589 (set_breakpoint_at): Use write_inferior_memory.
17590 (uninsert_raw_breakpoint): Use write_inferior_memory.
17591 (check_mem_read): Mask out fast tracepoint jumps.
17592 (check_mem_write): Mask out fast tracepoint jumps.
17593 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17594 (set_fast_tracepoint_jump): Declare.
17595 (delete_fast_tracepoint_jump)
17596 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17597 (reinsert_fast_tracepoint_jumps_at): Declare.
17598 * regcache.c: Don't compile many functions when building the
17599 in-process agent library.
17600 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17601 the register buffer in the heap.
17602 (free_register_cache): If the register buffer isn't owned by the
17603 regcache, don't free it.
17604 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17605 pre-existing register caches.
17606 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17607 type.
17608 (convert_ascii_to_int): : Constify `from' parameter type.
17609 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17610 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17611 the needed buffer in-place.
17612 (relocate_instruction): New.
17613 * server.c (handle_query) <qSymbols>: If the target supports
17614 tracepoints, give it a chance of looking up symbols. Report
17615 support for fast tracepoints.
17616 (handle_status): Stabilize threads.
17617 (process_serial_event): Adjust.
17618 * server.h (struct fast_tracepoint_jump): Forward declare.
17619 (struct process_info) <fast_tracepoint_jumps>: New field.
17620 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17621 (decode_X_packet, decode_M_packet): Adjust.
17622 (relocate_instruction): Declare.
17623 (in_process_agent_loaded): Declare.
17624 (tracepoint_look_up_symbols): Declare.
17625 (struct fast_tpoint_collect_status): Declare.
17626 (fast_tracepoint_collecting): Declare.
17627 (force_unlock_trace_buffer): Declare.
17628 (handle_tracepoint_bkpts): Declare.
17629 (initialize_low_tracepoint)
17630 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17631 * target.h (struct target_ops) <stabilize_threads,
17632 install_fast_tracepoint_jump_pad>: New fields.
17633 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17634 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17635 [HAVE_STDINT_H]: Include stdint.h.
17636 (trace_debug_1): Rename to ...
17637 (trace_vdebug): ... this.
17638 (trace_debug): Rename to ...
17639 (trace_debug_1): ... this. Add `level' parameter.
17640 (trace_debug): New.
17641 (ATTR_USED, ATTR_NOINLINE): New.
17642 (IP_AGENT_EXPORT): New.
17643 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17644 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17645 (about_to_request_buffer_space, trace_buffer_is_full)
17646 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17647 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17648 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17649 (traceframe_write_count, traceframes_created)
17650 (trace_state_variables)
17651 New renaming defines.
17652 (struct ipa_sym_addresses): New.
17653 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17654 (symbol_list): New.
17655 (ipa_sym_addrs): New.
17656 (all_tracepoint_symbols_looked_up): New.
17657 (in_process_agent_loaded): New.
17658 (write_e_ipa_not_loaded): New.
17659 (maybe_write_ipa_not_loaded): New.
17660 (tracepoint_look_up_symbols): New.
17661 (debug_threads) [IN_PROCESS_AGENT]: New.
17662 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17663 (UNKNOWN_SIDE_EFFECTS): New.
17664 (stop_tracing): New.
17665 (flush_trace_buffer): New.
17666 (stop_tracing_bkpt): New.
17667 (flush_trace_buffer_bkpt): New.
17668 (read_inferior_integer): New.
17669 (read_inferior_uinteger): New.
17670 (read_inferior_data_pointer): New.
17671 (write_inferior_data_pointer): New.
17672 (write_inferior_integer): New.
17673 (write_inferior_uinteger): New.
17674 (struct collect_static_trace_data_action): Delete.
17675 (enum tracepoint_type): New.
17676 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17677 <actions_str, step_actions, step_actions_str>: Only include in
17678 GDBserver.
fa593d66
PA
17679 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17680 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17681 (tracepoints): Use IP_AGENT_EXPORT.
17682 (last_tracepoint): Don't include in the IPA.
17683 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17684 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17685 (alloced_trace_state_variables): New.
17686 (trace_state_variables): Use IP_AGENT_EXPORT.
17687 (traceframe_t): Delete unused variable.
17688 (circular_trace_buffer): Don't include in the IPA.
17689 (trace_buffer_start): Delete.
17690 (struct trace_buffer_control): New.
17691 (trace_buffer_free): Delete.
17692 (struct ipa_trace_buffer_control): New.
17693 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17694 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17695 New.
17696 (trace_buffer_ctrl): New.
17697 (TRACE_BUFFER_CTRL_CURR): New.
17698 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17699 Reimplement as macros.
17700 (trace_buffer_wrap): Delete.
17701 (traceframe_write_count, traceframe_read_count)
17702 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17703 (struct tracepoint_hit_ctx) <type>: New field.
17704 (struct fast_tracepoint_ctx): New.
17705 (memory_barrier): New.
17706 (cmpxchg): New.
17707 (record_tracepoint_error): Update atomically in the IPA.
17708 (clear_inferior_trace_buffer): New.
17709 (about_to_request_buffer_space): New.
17710 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17711 updating the same buffer.
17712 (add_tracepoint): Default the tracepoint's type to trap
17713 tracepoint, and orig_size to -1.
17714 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17715 internal variables.
17716 (create_trace_state_variable): New parameter `gdb'. Handle it.
17717 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17718 (cmd_qtdp): Handle fast tracepoints.
17719 (cmd_qtdv): Adjust.
17720 (max_jump_pad_size): New.
17721 (gdb_jump_pad_head): New.
17722 (get_jump_space_head): New.
17723 (claim_jump_space): New.
17724 (sort_tracepoints): New.
17725 (MAX_JUMP_SIZE): New.
17726 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17727 IPA.
17728 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17729 support. Upload fast traceframes, and delete internal IPA
17730 breakpoints.
17731 (stop_tracing_handler): New.
17732 (flush_trace_buffer_handler): New.
17733 (cmd_qtstop): Upload fast tracepoints.
17734 (response_tracepoint): Handle fast tracepoints.
17735 (tracepoint_finished_step): Upload fast traceframes. Set the
17736 tracepoint hit context's tracepoint type.
17737 (handle_tracepoint_bkpts): New.
17738 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17739 type. Add comment about fast tracepoints.
17740 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17741 non-existing action_str field.
17742 (get_context_regcache): Handle fast tracepoints.
17743 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17744 to the regcache.
17745 (fast_tracepoint_from_jump_pad_address): New.
17746 (fast_tracepoint_from_ipa_tpoint_address): New.
17747 (collecting_t): New.
17748 (force_unlock_trace_buffer): New.
17749 (fast_tracepoint_collecting): New.
17750 (collecting): New.
17751 (gdb_collect): New.
17752 (write_inferior_data_ptr): New.
17753 (target_tp_heap): New.
17754 (target_malloc): New.
17755 (download_agent_expr): New.
17756 (UALIGN): New.
17757 (download_tracepoints): New.
17758 (download_trace_state_variables): New.
17759 (upload_fast_traceframes): New.
17760 (IPA_FIRST_TRACEFRAME): New.
17761 (IPA_NEXT_TRACEFRAME_1): New.
17762 (IPA_NEXT_TRACEFRAME): New.
17763 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17764 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17765 (gdb_jump_pad_buffer_end): New.
17766 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17767 (initialize_tracepoint): Adjust.
17768 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17769 buffer. Initialize the low module.
17770 * utils.c (PREFIX, TOOLNAME): New.
17771 (malloc_failure): Use PREFIX.
17772 (error): In the IPA, an error causes an exit.
17773 (fatal, warning): Use PREFIX.
17774 (internal_error): Use TOOLNAME.
17775 (NUMCELLS): Increase to 10.
17776 * configure, config.in: Regenerate.
17777
d149dd1d
PA
177782010-06-01 Pedro Alves <pedro@codesourcery.com>
17779
17780 * server.c (handle_query) <qSupported>: Do two passes over the
17781 qSupported string to avoid nesting strtok.
17782
f6528abd
JK
177832010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17784
17785 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17786 (CDEPS): New.
17787 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17788 -Wl,--dynamic-list.
17789 * configure: Regenerate.
17790 * proc-service.list: New.
17791
ca2a87a0
JK
177922010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17793
17794 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17795 New comment.
17796
363a6e9f
OS
177972010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17798
17799 * gdbreplay.c (remote_open): Check error return from socket() call by
17800 its equality to -1 not by it being negative.
17801 * remote-utils.c (remote_open): Likewise.
17802
d23b6cb1
PA
178032010-05-23 Pedro Alves <pedro@codesourcery.com>
17804
17805 * config.h: Regenerate.
17806
28d3cf85
MK
178072010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17808
17809 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17810 doesn't provide PTRACE_GET_THREAD_AREA.
17811
fea36a59
MK
178122010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17813
17814 * linux-m68k-low.c: Include <asm/ptrace.h>
17815 (ps_get_thread_area): Implement.
17816
24b066ba
DE
178172010-05-03 Doug Evans <dje@google.com>
17818
17819 * event-loop.c (struct callback_event): New struct.
17820 (callback_list): New global.
17821 (append_callback_event, delete_callback_event): New functions.
17822 (process_callback): New function.
17823 (start_event_loop): Call it.
17824 * remote-utils.c (NOT_SCHEDULED): Define.
17825 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17826 moved out of readchar.
17827 (readchar): Rewrite. Call reschedule before returning.
17828 (reset_readchar): New function.
17829 (remote_close): Call it.
17830 (process_remaining, reschedule): New functions.
17831 * server.h (callback_handler_func): New typedef.
17832 (append_callback_event, delete_callback_event): Declare.
17833
9836d6ea
PA
178342010-05-03 Pedro Alves <pedro@codesourcery.com>
17835
17836 * proc-service.c (ps_pglobal_lookup): Use
17837 thread_db_look_up_one_symbol.
17838 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17839 parameter. Use it instead of all_symbols_looked_up.
17840 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17841 field.
17842 (all_symbols_looked_up): Don't declare.
17843 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17844 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17845 field.
17846 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17847 Set all_symbols_looked_up here.
17848 (thread_db_look_up_one_symbol): New.
17849 (thread_db_get_tls_address): Adjust.
17850 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17851 thread_db object on the heap, and tentatively set it in the
17852 process structure.
17853 (thread_db_init): Don't set all_symbols_looked_up here.
17854 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17855
7984d532
PA
178562010-05-03 Pedro Alves <pedro@codesourcery.com>
17857
17858 * linux-low.c (linux_kill, linux_detach): Adjust.
17859 (status_pending_p_callback): Remove redundant statement. Check
17860 for !TARGET_WAITIKIND_IGNORE, instead of
17861 TARGET_WAITKIND_STOPPED.
17862 (handle_tracepoints): Make sure LWP is locked. Adjust.
17863 (linux_wait_for_event_1): Adjust.
17864 (linux_cancel_breakpoints): New.
17865 (unsuspend_one_lwp): New.
17866 (unsuspend_all_lwps): New.
17867 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17868 (send_sigstop_callback): Change return type to int, add new
17869 `except' parameter and handle it.
17870 (suspend_and_send_sigstop_callback): New.
17871 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17872 pass them down. If SUSPEND, also increment the lwp's suspend
17873 count.
17874 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17875 (need_step_over_p): Don't consider suspended LWPs.
17876 (start_step_over): Adjust.
17877 (proceed_one_lwp): Change return type to int, add new `except'
17878 parameter and handle it.
17879 (unsuspend_and_proceed_one_lwp): New.
17880 (proceed_all_lwps): Use find_inferior instead of
17881 for_each_inferior.
17882 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17883 also decrement the suspend count of LWPs. Pass `except' down,
17884 instead of hacking its suspend count.
17885 (linux_pause_all): Add `freeze' parameter. Adjust.
17886 (linux_unpause_all): New.
17887 (linux_target_ops): Install linux_unpause_all.
17888 * server.c (handle_status): Adjust.
17889 * target.h (struct target_ops): New fields `unpause_all' and
17890 `cancel_breakpoints'. Add new parameter to `pause_all'.
17891 (pause_all): Add new `freeze' parameter.
17892 (unpause_all): New.
17893 (cancel_breakpoints): New.
17894 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17895 cancel breakpoints.
17896 (cmd_qtstart): Pause threads.
17897 (stop_tracing): Pause threads, and cancel breakpoints.
17898 * win32-low.c (win32_target_ops): Adjust.
17899
e471f25b
PA
179002010-05-03 Pedro Alves <pedro@codesourcery.com>
17901
17902 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17903 the inferior right away from here...
17904 (linux_wait_1): ... to here, and adjust to check the thread's
17905 last_resume_kind instead of the lwp's step or stop_expected flags.
17906
1915ef4f
PA
179072010-05-02 Pedro Alves <pedro@codesourcery.com>
17908
17909 * README: Use consistent `GDB' and `GDBserver' spellings.
17910
f9e39928
PA
179112010-05-02 Pedro Alves <pedro@codesourcery.com>
17912
17913 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17914 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17915 (linux_detach_one_lwp): Assume the lwp is stopped.
17916 (any_thread_of): Delete.
17917 (linux_detach): Stop all lwps here. Don't blindly delete all
17918 breakpoints.
17919 (delete_lwp_callback): New.
17920 (linux_mourn): Delete all lwps of the process that is gone.
17921 (linux_wait_1): Don't delete the last lwp of the process here.
17922 * mem-break.h (mark_breakpoints_out): Declare.
17923 * mem-break.c (mark_breakpoints_out): New.
17924 (free_all_breakpoints): Use it.
17925 * server.c (handle_target_event): If the process is gone, mark
17926 breakpoints out.
17927 * thread-db.c (struct thread_db) <create_bp>: New field.
17928 (thread_db_enable_reporting): Fix prototype. Store a thread event
17929 breakpoint reference in the thread_db struct.
17930 (thread_db_load_search): Clear the thread_db object.
17931 (try_thread_db_load_1): Ditto.
17932 (switch_to_process): New.
17933 (disable_thread_event_reporting): Use it.
17934 (remove_thread_event_breakpoints): New.
17935 (thread_db_detach, thread_db_mourn): Use it.
17936
1e7fc18c
PA
179372010-05-01 Pedro Alves <pedro@codesourcery.com>
17938
17939 * linux-low.c (linux_enable_event_reporting): New.
17940 (linux_wait_for_event_1, handle_extended_wait): Use it.
17941
02fc4de7
PA
179422010-04-30 Pedro Alves <pedro@codesourcery.com>
17943
17944 * linux-low.c (linux_kill_one_lwp, linux_kill)
17945 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17946 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17947 SIGSTOP even if the LWP is stopped.
17948 (send_sigstop_callback): New.
17949 (stop_all_lwps): Use send_sigstop_callback instead.
17950 (linux_resume_one_thread): Adjust.
17951 (proceed_one_lwp): Still proceed an LWP that the client has
17952 requested to stop, if we haven't reported it as stopped yet. Make
17953 sure that LWPs the client want stopped, have a pending SIGSTOP.
17954
bc3b5632
DE
179552010-04-26 Doug Evans <dje@google.com>
17956
ae1ada35
DE
17957 * server.c (handle_general_set): Make static.
17958
bc3b5632
DE
17959 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17960 Print received char after testing for error/eof instead of before.
17961 (input_interrupt): Tweak comment.
17962
65730243
DE
179632010-04-23 Doug Evans <dje@google.com>
17964
17965 * server.c (start_inferior): Print inferior argv if --debug.
17966
a8ae7dc0
AR
179672010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17968
17969 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17970 * nto-x86-low.c: Include server.h
17971
1c07cc19
PM
179722010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17973
17974 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17975 be consistent with other sources of this directory.
17976 (init_registers_amd64): Correct name of source file of this function
17977 in the comment.
17978
e0a61e09
PM
179792010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17980
17981 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17982 64-bit executables.
17983
54709339
PM
179842010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17985
17986 * win32-i386-low.c: Add 64-bit support.
17987 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17988 (init_registers_amd64): Declare.
17989 (mappings): Add 64-bit version of array.
17990 (init_windows_x86): New function.
17991 (the_low_target): Change init_arch field to init_windows_x86.
17992
e8f0053d
PM
179932010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17994
17995 * win32-low.c: Adapt to support also 64-bit architecture.
17996 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17997 (get_image_name): Use SIZE_T type for local variable `done'.
17998 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17999 (toolhelp_get_dll_name): Idem.
18000 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18001 Use uintptr_t typecast to avoid warning.
18002 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18003 (handle_exception): Use phex_nz to avoid warning.
18004 (win32_wait): Remove unused local variable `process'.
18005
c481e77e
PM
180062010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18007
18008 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18009 `amd64-avx.o'.
18010
12ea4b69
PM
180112010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18012
18013 * configure.ac: Use `ws2_32' library for srv_mingw.
18014 * configure: Regenerate.
18015 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18016 * remote-utils.c: Likewise.
18017
f6d1620c
L
180182010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18019
18020 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18021 if __x86_64__ is defined.
18022
8e642873
PM
180232010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18024
18025 * configure: Regenerate.
18026
711e434b
PM
180272010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18028
18029 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18030 * target.h (target_ops): New get_tib_address field.
18031 * win32-low.h (win32_thread_info): Add thread_local_base field.
18032 * win32-low.c (child_add_thread): Add tlb argument.
18033 Set thread_local_base field to TLB.
18034 (get_child_debug_event): Adapt to child_add_thread change.
18035 (win32_get_tib_address): New function.
18036 (win32_target_ops): Set get_tib_address field to
18037 win32_get_tib_address.
18038 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18039
505106cd
PA
180402010-04-12 Pedro Alves <pedro@codesourcery.com>
18041
505106cd
PA
18042 * linux-low.c (linux_mourn): Also remove the process.
18043 * server.c (handle_target_event): Don't remove the process here.
18044 * nto-low.c (nto_mourn): New.
18045 (nto_target_ops): Install it.
18046 * spu-low.c (spu_mourn): New.
18047 (spu_target_ops): Install it.
18048 * win32-low.c (win32_mourn): New.
18049 (win32_target_ops): Install it.
18050
e8470a06
PA
180512010-04-12 Pedro Alves <pedro@codesourcery.com>
18052
18053 * server.h (buffer_xml_printf): Remove redundant `;'.
18054
45ba0d02
PA
180552010-04-12 Pedro Alves <pedro@codesourcery.com>
18056
18057 * regcache.c (set_register_cache): Invalidate regcaches before
18058 changing the register cache layout.
18059 (regcache_invalidate_one): Allow a NULL regcache.
18060 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18061 regcaches before changing the register cache layout or the target
18062 regsets.
18063
59e04013
L
180642010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18065
18066 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18067 variable warning on Linux/x86-64.
18068
8336d594
PA
180692010-04-11 Pedro Alves <pedro@codesourcery.com>
18070
18071 GDBserver disconnected tracing support.
18072
18073 * linux-low.c (linux_remove_process): Delete.
18074 (add_lwp): Don't set last_resume_kind here.
18075 (linux_kill): Use `mourn'.
18076 (linux_detach): Use `thread_db_detach', and `mourn'.
18077 (linux_mourn): New.
18078 (linux_attach_lwp_1): Adjust comment.
18079 (linux_attach): last_resume_kind moved the thread_info; adjust.
18080 (status_pending_p_callback): Adjust.
18081 (linux_wait_for_event_1): Adjust.
18082 (count_events_callback, select_singlestep_lwp_callback)
18083 (select_event_lwp_callback, cancel_breakpoints_callback)
18084 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18085 (proceed_one_lwp): Adjust.
18086 (linux_async): Add debug output.
18087 (linux_thread_stopped): New.
18088 (linux_pause_all): New.
18089 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18090 linux_pause_all.
18091 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18092 (thread_db_free): Delete declaration.
18093 (thread_db_detach, thread_db_mourn): Declare.
18094 * thread-db.c (thread_db_init): Use thread_db_mourn.
18095 (thread_db_free): Delete, split in two.
18096 (disable_thread_event_reporting): New.
18097 (thread_db_detach): New.
18098 (thread_db_mourn): New.
18099
18100 * server.h (struct thread_info) <last_resume_kind>: New field.
18101 <attached>: Add comment.
18102 <gdb_detached>: New field.
18103 (handler_func): Change return type to int.
18104 (handle_serial_event, handle_target_event): Ditto.
18105 (gdb_connected): Declare.
18106 (tracing): Delete.
18107 (disconnected_tracing): Declare.
18108 (stop_tracing): Declare.
18109
18110 * server.c (handle_query) <qSupported>: Report support for
18111 disconnected tracing.
18112 (queue_stop_reply_callback): Account for running threads.
18113 (gdb_wants_thread_stopped): New.
18114 (gdb_wants_all_threads_stopped): New.
18115 (gdb_reattached_process): New.
18116 (handle_status): Clear the `gdb_detached' flag of all processes.
18117 In all-stop, stop all threads.
18118 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18119 (process_serial_event): If the remote connection breaks, or if an
18120 exit was forced with "monitor exit", force an event loop exit.
18121 Handle disconnected tracing on detach.
18122 (handle_serial_event): Adjust.
18123 (handle_target_event): If GDB isn't connected, forward events back
18124 to the inferior, unless the last process exited, in which case,
18125 exit gdbserver. Adjust interface.
18126
18127 * remote-utils.c (remote_open): Don't block in accept. Instead
18128 register an event loop source on the listen socket file
18129 descriptor. Refactor bits into ...
18130 (listen_desc): ... this new global.
18131 (gdb_connected): ... this new function.
18132 (enable_async_notification): ... this new function.
18133 (handle_accept_event): ... this new function.
18134 (remote_close): Clear remote_desc.
18135
18136 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18137
18138 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18139 New fields.
18140 (mourn_inferior): Define.
18141 (target_process_qsupported): Avoid the dangling else problem.
18142 (thread_stopped): Define.
18143 (pause_all): Define.
18144 (target_waitstatus_to_string): Declare.
18145 * target.c (target_waitstatus_to_string): New.
18146
18147 * tracepoint.c (tracing): Make extern.
18148 (disconnected_tracing): New.
18149 (stop_tracing): Make extern. Handle tracing stops due to GDB
18150 disconnecting.
18151 (cmd_qtdisconnected): New.
18152 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18153 (handle_tracepoint_general_set): Handle QTDisconnected.
18154
18155 * event-loop.c (event_handler_func): Change return type to int.
18156 (process_event): Bail out if the event handler wants the event
18157 loop to stop.
18158 (handle_file_event): Ditto.
18159 (start_event_loop): Bail out if the event handler wants the event
18160 loop to stop.
18161
18162 * nto-low.c (nto_target_ops): Adjust.
18163 * spu-low.c (spu_wait): Don't remove the process here.
18164 (spu_target_ops): Adjust.
18165 * win32-low.c (win32_wait): Don't remove the process here.
18166 (win32_target_ops): Adjust.
18167
5d267c4c
PA
181682010-04-11 Pedro Alves <pedro@codesourcery.com>
18169
18170 * regcache.c (realloc_register_cache): Invalidate inferior's
18171 regcache before recreating it.
18172
623ccd72
PA
181732010-04-09 Pedro Alves <pedro@codesourcery.com>
18174
18175 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18176
219f2f23
PA
181772010-04-09 Stan Shebs <stan@codesourcery.com>
18178 Pedro Alves <pedro@codesourcery.com>
18179
18180 * server.h (LONGEST): New.
18181 (struct thread_info) <while_stepping>: New field.
18182 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18183 Declare.
18184 (initialize_tracepoint, handle_tracepoint_general_set)
18185 (handle_tracepoint_query, tracepoint_finished_step)
18186 (tracepoint_was_hit, release_while_stepping_state_list):
18187 (current_traceframe): Declare.
18188 * server.c (handle_general_set): Handle tracepoint packets.
18189 (read_memory): New.
18190 (write_memory): New.
18191 (handle_search_memory_1): Use read_memory.
18192 (handle_query): Report support for conditional tracepoints, trace
18193 state variables, and tracepoint sources. Handle tracepoint
18194 queries.
18195 (main): Initialize the tracepoints module.
18196 (process_serial_event): Handle traceframe reads/writes.
18197
18198 * linux-low.c (handle_tracepoints): New.
18199 (linux_wait_1): Call it.
18200 (linux_resume_one_lwp): Handle while-stepping.
18201 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18202 (linux_target_ops): Install them.
18203 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18204 New field.
18205 * linux-x86-low.c (x86_supports_tracepoints): New.
18206 (the_low_target). Install it.
18207
18208 * mem-break.h (delete_breakpoint): Declare.
18209 * mem-break.c (delete_breakpoint): Make external.
18210
18211 * target.h (struct target_ops): Add `supports_tracepoints',
18212 `read_pc', and `write_pc' fields.
18213 (target_supports_tracepoints): Define.
18214 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18215 (phex_nz): New.
18216
18217 * regcache.h (struct regcache) <registers_owned>: New field.
18218 (init_register_cache, regcache_cpy): Declare.
18219 (regcache_read_pc, regcache_write_pc): Declare.
18220 (register_cache_size): Declare.
18221 (supply_regblock): Declare.
18222 * regcache.c (init_register_cache): New.
18223 (new_register_cache): Use it.
18224 (regcache_cpy): New.
18225 (register_cache_size): New.
18226 (supply_regblock): New.
18227 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18228
219f2f23
PA
18229 * tracepoint.c: New.
18230
18231 * Makefile.in (OBS): Add tracepoint.o.
18232 (tracepoint.o): New rule.
18233
3a13a53b
L
182342010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18235
18236 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18237 (i386-mmx.o): New.
18238 (i386-mmx.c): Likewise.
18239 (i386-mmx-linux.o): Likewise.
18240 (i386-mmx-linux.c): Likewise.
18241
18242 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18243 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18244 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18245 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18246
18247 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18248 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18249 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18250
1570b33e
L
182512010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18252
18253 * Makefile.in (clean): Updated.
18254 (i386-avx.o): New.
18255 (i386-avx.c): Likewise.
18256 (i386-avx-linux.o): Likewise.
18257 (i386-avx-linux.c): Likewise.
18258 (amd64-avx.o): Likewise.
18259 (amd64-avx.c): Likewise.
18260 (amd64-avx-linux.o): Likewise.
18261 (amd64-avx-linux.c): Likewise.
18262
18263 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18264 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18265 (srv_amd64_regobj): Add amd64-avx.o.
18266 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18267 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18268 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18269 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18270 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18271 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18272 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18273
18274 * i387-fp.c: Include "i386-xstate.h".
18275 (i387_xsave): New.
18276 (i387_cache_to_xsave): Likewise.
18277 (i387_xsave_to_cache): Likewise.
18278 (x86_xcr0): Likewise.
18279
18280 * i387-fp.h (i387_cache_to_xsave): Likewise.
18281 (i387_xsave_to_cache): Likewise.
18282 (x86_xcr0): Likewise.
18283
18284 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18285 * linux-crisv32-low.c (target_regsets): Likewise.
18286 * linux-m68k-low.c (target_regsets): Likewise.
18287 * linux-mips-low.c (target_regsets): Likewise.
18288 * linux-ppc-low.c (target_regsets): Likewise.
18289 * linux-s390-low.c (target_regsets): Likewise.
18290 * linux-sh-low.c (target_regsets): Likewise.
18291 * linux-sparc-low.c (target_regsets): Likewise.
18292 * linux-xtensa-low.c (target_regsets): Likewise.
18293
18294 * linux-low.c: Include <sys/uio.h>.
18295 (regsets_fetch_inferior_registers): Support nt_type.
18296 (regsets_store_inferior_registers): Likewise.
18297 (linux_process_qsupported): New.
18298 (linux_target_ops): Add linux_process_qsupported.
18299
18300 * linux-low.h (regset_info): Add nt_type.
18301 (linux_target_ops): Add process_qsupported.
18302
18303 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18304 and <sys/uio.h>.
18305 (init_registers_i386_avx_linux): New.
18306 (init_registers_amd64_avx_linux): Likewise.
18307 (xmltarget_i386_linux_no_xml): Likewise.
18308 (xmltarget_amd64_linux_no_xml): Likewise.
18309 (PTRACE_GETREGSET): Likewise.
18310 (PTRACE_SETREGSET): Likewise.
18311 (x86_fill_xstateregset): Likewise.
18312 (x86_store_xstateregset): Likewise.
18313 (use_xml): Likewise.
18314 (x86_linux_update_xmltarget): Likewise.
18315 (x86_linux_process_qsupported): Likewise.
18316 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18317 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18318 init_registers_i386_linux here. Call
18319 x86_linux_update_xmltarget.
18320 (the_low_target): Add x86_linux_process_qsupported.
18321
18322 * server.c (handle_query): Call target_process_qsupported.
18323
18324 * target.h (target_ops): Add process_qsupported.
18325 (target_process_qsupported): New.
18326
fc7238bb
PA
183272010-04-03 Pedro Alves <pedro@codesourcery.com>
18328
18329 * inferiors.c (add_thread): Set last_status kind to
18330 TARGET_WAITKIND_IGNORE.
18331 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18332 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18333 (linux_wait_1): Move `thread' local definition to block that uses
18334 it. Don't NULL initialize `event_child'.
18335 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18336 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18337 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18338
bdabb078
PA
183392010-04-01 Pedro Alves <pedro@codesourcery.com>
18340
18341 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18342 an extended waitstatus, or by a watchpoint.
18343 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18344 thread was stepping or has been stopped by a watchpoint.
18345
d3bbe7a0
PA
183462010-04-01 Pedro Alves <pedro@codesourcery.com>
18347
18348 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18349 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18350 of another, then delete the previous, and validate all
18351 breakpoints.
18352 (validate_inserted_breakpoint): New.
18353 (delete_disabled_breakpoints): New.
18354 (validate_breakpoints): New.
18355 (check_mem_read): Validate breakpoints before trusting their
18356 shadow. Delete disabled breakpoints.
18357 (check_mem_write): Validate breakpoints before trusting they
18358 should be inserted. Delete disabled breakpoints.
18359 * mem-break.h (validate_breakpoints):
18360 * server.c (handle_query): Validate breakpoints when we see a
18361 qSymbol query.
18362
8b07ae33
PA
183632010-04-01 Pedro Alves <pedro@codesourcery.com>
18364
18365 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18366 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18367 if we could tell there's a GDB breakpoint at stop_pc.
18368 (need_step_over_p): Don't do a step over if we find a GDB
18369 breakpoint at the resume PC.
18370
18371 * mem-break.c (struct raw_breakpoint): New.
18372 (enum bkpt_type): New type `gdb_breakpoint'.
18373 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18374 fields. New field `raw'.
18375 (find_raw_breakpoint_at): New.
18376 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18377 breakpoint instead.
18378 (set_breakpoint_at): Adjust.
18379 (delete_raw_breakpoint): New.
18380 (release_breakpoint): New.
18381 (delete_breakpoint): Rename to...
18382 (delete_breakpoint_1): ... this. Add proc parameter. Use
18383 release_breakpoint. Return ENOENT.
18384 (delete_breakpoint): Reimplement.
18385 (find_breakpoint_at): Delete.
18386 (find_gdb_breakpoint_at): New.
18387 (delete_breakpoint_at): Delete.
18388 (set_gdb_breakpoint_at): New.
18389 (delete_gdb_breakpoint_at): New.
18390 (gdb_breakpoint_here): New.
18391 (set_reinsert_breakpoint): Use release_breakpoint.
18392 (uninsert_breakpoint): Rename to ...
18393 (uninsert_raw_breakpoint): ... this.
18394 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18395 (reinsert_raw_breakpoint): Change parameter type to
18396 raw_breakpoint.
18397 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18398 instead.
18399 (check_breakpoints): Adjust. Use release_breakpoint.
18400 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18401 (breakpoint_inserted_here): Ditto.
18402 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18403 Don't trust the breakpoint's shadow if it is not inserted.
18404 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18405 (delete_all_breakpoints): Adjust.
18406 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18407 use delete_breakpoint_1.
18408
18409 * mem-break.h (breakpoints_supported): Delete declaration.
18410 (set_gdb_breakpoint_at): Declare.
18411 (gdb_breakpoint_here): Declare.
18412 (delete_breakpoint_at): Delete.
18413 (delete_gdb_breakpoint_at): Declare.
18414
18415 * server.h (struct raw_breakpoint): Forward declare.
18416 (struct process_info): New field `raw_breakpoints'.
18417
18418 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18419 breakpoints.
18420
6bf5e0ba
PA
184212010-03-24 Pedro Alves <pedro@codesourcery.com>
18422
18423 * linux-low.c (status_pending_p_callback): Fix comment.
18424 (linux_wait_for_event_1): Move most of the internal breakpoint
18425 handling from here...
18426 (linux_wait_1): ... to here.
18427 (count_events_callback): New.
18428 (select_singlestep_lwp_callback): New.
18429 (select_event_lwp_callback): New.
18430 (cancel_breakpoints_callback): New.
18431 (select_event_lwp): New.
18432 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18433 priority to all LWPs that have had events that should be reported
18434 to the client. Cancel breakpoints when about to reporting the
18435 event to the client, not while stopping lwps. No longer cancel
18436 finished single-steps here.
18437 (cancel_finished_single_step): Delete.
18438 (cancel_finished_single_steps): Delete.
18439
414a389f
PA
184402010-03-24 Pedro Alves <pedro@codesourcery.com>
18441
18442 * mem-break.c (enum bkpt_type): New.
18443 (struct breakpoint): New field `type'.
18444 (set_breakpoint_at): Change return type to struct breakpoint
18445 pointer. Set type to `other_breakpoint' by default.
18446 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18447 in the breakpoint list.
18448 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18449 (reinsert_breakpoint): Rename to ...
18450 (reinsert_raw_breakpoint): ... this.
18451 (reinsert_breakpoints_at): Adjust.
18452 * mem-break.h (struct breakpoint): Declare.
18453 (set_breakpoint_at): Change return type to struct breakpoint
18454 pointer.
18455
2280c721
PA
184562010-03-24 Pedro Alves <pedro@codesourcery.com>
18457
18458 * server.c (handle_query): Assign, not compare.
18459
d50171e4
PA
184602010-03-24 Pedro Alves <pedro@codesourcery.com>
18461
18462 Teach linux gdbserver to step-over-breakpoints.
18463
18464 * linux-low.c (can_hardware_single_step): New.
18465 (supports_breakpoints): New.
18466 (handle_extended_wait): If stopping threads, read the stop pc of
18467 the new cloned LWP.
18468 (get_pc): New.
18469 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18470 low target doesn't support retrieving the PC.
18471 (add_lwp): Set last_resume_kind to resume_continue.
18472 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18473 (linux_attach): Don't clear stop_expected. Set the lwp's
18474 last_resume_kind to resume_stop.
18475 (linux_detach_one_lwp): Don't check for removed breakpoints.
18476 (check_removed_breakpoint): Delete.
18477 (status_pending_p): Rename to ...
18478 (status_pending_p_callback): ... this. Don't check for removed
18479 breakpoints. Don't consider threads that are stopped from GDB's
18480 perspective.
18481 (linux_wait_for_lwp): Always read the stop_pc here.
18482 (cancel_breakpoint): New.
18483 (step_over_bkpt): New global.
18484 (linux_wait_for_event_1): Implement stepping over breakpoints.
18485 (gdb_wants_lwp_stopped): New.
18486 (gdb_wants_all_stopped): New.
18487 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18488 single-step traps here. Store the thread's last reported target
18489 wait status.
18490 (send_sigstop): Don't clear stop_expected. Always set it,
18491 instead.
18492 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18493 (cancel_finished_single_step): New.
18494 (cancel_finished_single_steps): New.
18495 (wait_for_sigstop): Don't cancel finished single-step traps here.
18496 (linux_resume_one_lwp): Don't check for removed breakpoints.
18497 Don't set `step' on non-hardware step archs.
18498 (linux_set_resume_request): Ignore resume_stop requests if already
18499 stopping or stopped. Set the lwp's last_resume_kind.
18500 (resume_status_pending_p): Don't check for removed breakpoints.
18501 (need_step_over_p): New.
18502 (start_step_over): New.
18503 (finish_step_over): New.
18504 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18505 requests. Clear the thread's last reported target waitstatus.
18506 Don't use the `suspended' flag. Don't consider pending breakpoints.
18507 (linux_resume): Start a step-over if necessary.
18508 (proceed_one_lwp): New.
18509 (proceed_all_lwps): New.
18510 (unstop_all_lwps): New.
18511 * linux-low.h (struct lwp_info): Rewrite comment for the
18512 `suspended' flag. Add the `stop_pc' field. Delete the
18513 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18514 Add `'last_resume_kind' and `need_step_over' fields.
18515 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18516 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18517 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18518 (set_raw_breakpoint_at): New.
18519 (set_breakpoint_at): Rewrite to use it.
18520 (reinsert_breakpoint_handler): Delete.
18521 (set_reinsert_breakpoint): New.
18522 (reinsert_breakpoint_by_bp): Delete.
18523 (delete_reinsert_breakpoints): New.
18524 (uninsert_breakpoint): Rewrite.
18525 (uninsert_breakpoints_at): New.
18526 (reinsert_breakpoint): Rewrite.
18527 (reinsert_breakpoints_at): New.
18528 (check_breakpoints): Rewrite.
18529 (breakpoint_here): New.
18530 (breakpoint_inserted_here): New.
18531 (check_mem_read): Adjust.
18532 * mem-break.h (breakpoints_supported, breakpoint_here)
18533 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18534 (reinsert_breakpoint_by_bp): Delete declaration.
18535 (delete_reinsert_breakpoints): Declare.
18536 (reinsert_breakpoint): Delete declaration.
18537 (reinsert_breakpoints_at): Declare.
18538 (uninsert_breakpoint): Delete declaration.
18539 (uninsert_breakpoints_at): Declare.
18540 (check_breakpoints): Adjust prototype.
18541 * server.h: Adjust include order.
18542 (struct thread_info): Declare here. Add a `last_status' field.
18543
30ba68cb
MS
185442010-03-23 Michael Snyder <msnyder@vmware.com>
18545
18546 * server.c (crc32): New function.
18547 (handle_query): Add handling for 'qCRC:' request.
18548
b9a881c2
PA
185492010-03-23 Pedro Alves <pedro@codesourcery.com>
18550
18551 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18552 lwp had been stopped by a watchpoint.
18553
e92d13d5
PA
185542010-03-16 Pedro Alves <pedro@codesourcery.com>
18555
18556 * server.h (internal_error): Declare.
18557 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18558 * utils.c (internal_error): New function.
18559
64daa791
AS
185602010-03-15 Andreas Schwab <schwab@redhat.com>
18561
18562 * configure.srv: Fix typo setting srv_regobj.
18563
f52cd8cd
PA
185642010-03-15 Pedro Alves <pedro@codesourcery.com>
18565
18566 * linux-low.c (fetch_register): Avoid passing a non string literal
18567 format to `error'.
18568 (usr_store_inferior_registers): Ditto.
18569
93ae6fdc
PA
185702010-03-14 Pedro Alves <pedro@codesourcery.com>
18571
18572 * linux-low.c (linux_write_memory): Bail out early if peeking
18573 memory failed.
18574
c3adc08c
PA
185752010-03-14 Pedro Alves <pedro@codesourcery.com>
18576
18577 * linux-low.h (struct lwp_info): New fields
18578 `stopped_by_watchpoint' and `stopped_data_address'.
18579 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18580 here, and cache them in the lwp object.
18581 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18582 directly.
18583 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18584 field.
18585 (linux_stopped_by_watchpoint): Rewrite.
18586 (linux_stopped_data_address): Rewrite.
18587
bce522a2
PA
185882010-03-06 Simo Melenius <simo.melenius@iki.fi>
18589
18590 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18591 switching the current inferior, not before.
18592
90884b2b
L
185932010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18594
18595 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18596 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18597 i386-linux.c and amd64-linux.c.
18598 (reg-i386.o): Removed.
18599 (reg-i386.c): Likewise.
18600 (reg-i386-linux.o): Likewise.
18601 (reg-i386-linux.c): Likewise.
18602 (reg-x86-64.o): Likewise.
18603 (reg-x86-64.c): Likewise.
18604 (reg-x86-64-linux.o): Likewise.
18605 (reg-x86-64-linux.c): Likewise.
18606 (i386.o): New.
18607 (i386.c): Likewise.
18608 (i386-linux.o): Likewise.
18609 (i386-linux.c): Likewise.
18610 (amd64.o): Likewise.
18611 (amd64.c): Likewise.
18612 (amd64-linux.o): Likewise.
18613 (amd64-linux.c): Likewise.
18614
18615 * configure.srv (srv_i386_regobj): New.
18616 (srv_i386_linux_regobj): Likewise.
18617 (srv_amd64_regobj): Likewise.
18618 (srv_amd64_linux_regobj): Likewise.
18619 (srv_i386_32bit_xmlfiles): Likewise.
18620 (srv_i386_64bit_xmlfiles): Likewise.
18621 (srv_i386_xmlfiles): Likewise.
18622 (srv_amd64_xmlfiles): Likewise.
18623 (srv_i386_linux_xmlfiles): Likewise.
18624 (srv_amd64_linux_xmlfiles): Likewise.
18625 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18626 srv_xmlfiles to $srv_i386_xmlfiles.
18627 (i[34567]86-*-mingw32ce*): Likewise.
18628 (i[34567]86-*-mingw*): Likewise.
18629 (i[34567]86-*-nto*): Likewise.
18630 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18631 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18632 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18633 (x86_64-*-linux*): Likewise.
18634
18635 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18636 (init_registers_amd64_linux): New.
18637 (x86_arch_setup): Replace init_registers_x86_64_linux with
18638 init_registers_amd64_linux.
18639
193f13e6
MK
186402010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18641
18642 * configure.ac: Check for libdl. If it is not available link against
18643 static libthread_db.
18644 * configure: Regenerate.
18645
85d721b8
PA
186462010-02-22 Pedro Alves <pedro@codesourcery.com>
18647
18648 PR9605
18649
18650 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18651 handing a read watchpoint.
18652 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18653
6076632b
DE
186542010-02-12 Doug Evans <dje@google.com>
18655
18656 * linux-low.c (linux_supports_tracefork_flag): Document.
18657 (linux_look_up_symbols): Add comment.
18658
3327ccf7
L
186592010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18660
18661 * regcache.c (supply_register): Clear regcache if buf is NULL.
18662
0718675c 186632010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18664 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18665
18666 * inferiors.c (find_inferior): Add function documentation.
18667 (unloaded_dll): Handle the case where the unloaded dll has not
18668 been previously registered in the dll list.
18669
177321bd
DJ
186702010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18671
18672 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18673 (thumb2_breakpoint): New.
18674 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18675
2b009048
DJ
186762010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18677
18678 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18679 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18680 breakpoints.
18681
3be029c7
PA
186822010-01-21 Pedro Alves <pedro@codesourcery.com>
18683
18684 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18685
18f5de3b
JK
186862010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18687
18688 * linux-s390-low.c (s390_collect_ptrace_register)
18689 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18690
3743bb4f
DE
186912010-01-21 Doug Evans <dje@google.com>
18692
14ce3065
DE
18693 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18694 (PTRACE_ARG4_TYPE): New macro.
18695 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18696 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18697 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18698 (usr_store_inferior_registers): Ditto.
18699 (linux_read_memory, linux_write_memory): Ditto.
18700 (linux_test_for_tracefork): Ditto.
18701
3743bb4f
DE
18702 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18703 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18704
8b315be5
PA
187052010-01-21 Pedro Alves <pedro@codesourcery.com>
18706
18707 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18708 target.
18709
85492558
PA
187102010-01-21 Pedro Alves <pedro@codesourcery.com>
18711
18712 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18713 prototype to take a regcache. Adjust.
18714
442ea881
PA
187152010-01-20 Pedro Alves <pedro@codesourcery.com>
18716
18717 * regcache.h (struct thread_info): Forward declare.
18718 (struct regcache): New.
18719 (new_register_cache): Adjust prototype.
18720 (get_thread_regcache): Declare.
18721 (free_register_cache): Adjust prototype.
18722 (registers_to_string, registers_from_string): Ditto.
18723 (supply_register, supply_register_by_name, collect_register)
18724 (collect_register_as_string, collect_register_by_name): Ditto.
18725 * regcache.c (struct inferior_regcache_data): Delete.
18726 (get_regcache): Rename to ...
18727 (get_thread_regcache): ... this. Adjust. Switch inferior before
18728 fetching registers.
18729 (regcache_invalidate_one): Adjust.
18730 (regcache_invalidate): Fix prototype.
18731 (new_register_cache): Return the new register cache.
18732 (free_register_cache): Change prototype.
18733 (realloc_register_cache): Adjust.
18734 (registers_to_string): Change prototype to take a regcache. Adjust.
18735 (registers_from_string): Ditto.
18736 (register_data): Ditto.
18737 (supply_register): Ditto.
18738 (supply_register_by_name): Ditto.
18739 (collect_register): Ditto.
18740 (collect_register_as_string): Ditto.
18741 (collect_register_by_name): Ditto.
18742 * server.c (process_serial_event): Adjust.
18743 * linux-low.h (regset_fill_func, regset_store_func): Change
18744 prototype.
18745 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18746 Change prototype.
18747 * linux-low.c (get_stop_pc): Adjust.
18748 (check_removed_breakpoint): Adjust.
18749 (linux_wait_for_event): Adjust.
18750 (linux_resume_one_lwp): Adjust.
18751 (fetch_register): Add regcache parameter. Adjust.
18752 (usr_store_inferior_registers): Ditto.
18753 (regsets_fetch_inferior_registers): Ditto.
18754 (regsets_store_inferior_registers): Ditto.
18755 (linux_fetch_registers, linux_store_registers): Ditto.
18756 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18757 regcache. Adjust.
43aaf8b6
PA
18758 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18759 Ditto.
442ea881
PA
18760 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18761 prototype to take a regcache.
18762 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18763 * remote-utils.c (convert_ascii_to_int, outreg)
18764 (prepare_resume_reply): Change prototype to take a regcache.
18765 Adjust.
18766 * target.h (struct target_ops) <fetch_registers, store_registers>:
18767 Change prototype to take a regcache.
18768 (fetch_inferior_registers, store_inferior_registers): Change
18769 prototype to take a regcache. Adjust.
18770 * proc-service.c (ps_lgetregs): Adjust.
18771 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18772 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18773 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18774 take a regcache. Adjust.
18775 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18776 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18777 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18778 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18779 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18780 (cris_cannot_fetch_register):
18781 (cris_breakpoint_at): Change prototype to take a regcache.
18782 Adjust.
18783 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18784 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18785 to take a regcache. Adjust.
18786 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18787 Adjust.
18788 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18789 take a regcache. Adjust.
18790 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18791 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18792 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18793 * linux-mips-low.c (mips_get_pc):
18794 (mips_set_pc): Change prototype to take a regcache. Adjust.
18795 (mips_reinsert_addr): Adjust.
18796 (mips_collect_register): Change prototype to take a regcache.
18797 Adjust.
18798 (mips_supply_register):
18799 (mips_collect_register_32bit, mips_supply_register_32bit)
18800 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18801 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18802 * linux-ppc-low.c (ppc_supply_ptrace_register)
18803 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18804 (parse_spufs_run): Adjust.
18805 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18806 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18807 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18808 take a regcache. Adjust.
18809 * linux-s390-low.c (s390_collect_ptrace_register)
18810 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18811 (s390_set_pc): Change prototype to take a regcache. Adjust.
18812 (s390_arch_setup): Adjust.
18813 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18814 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18815 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18816 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18817 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18818 regcache. Adjust.
18819 (sparc_breakpoint_at): Adjust.
18820 * linux-xtensa-low.c (xtensa_fill_gregset):
18821 (xtensa_store_gregset):
18822 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18823 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18824 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18825 prototype to take a regcache. Adjust.
18826 * win32-arm-low.c (arm_fetch_inferior_register)
18827 (arm_store_inferior_register): Change prototype to take a
18828 regcache. Adjust.
18829 * win32-i386-low.c (i386_fetch_inferior_register)
18830 (i386_store_inferior_register): Change prototype to take a
18831 regcache. Adjust.
18832 * win32-low.c (child_fetch_inferior_registers)
18833 (child_store_inferior_registers): Change prototype to take a
18834 regcache. Adjust.
18835 (win32_wait): Adjust.
18836 (win32_fetch_inferior_registers): Change prototype to take a
18837 regcache. Adjust.
18838 (win32_store_inferior_registers): Adjust.
18839 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18840 store_inferior_register>: Change prototype to take a regcache.
18841
60c3d7b0
DE
188422010-01-20 Doug Evans <dje@google.com>
18843
18844 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18845 #ifdef.
18846 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18847 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18848
dc146f7c
VP
188492010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18850
18851 * linux-low.c (linux_core_of_thread): New.
18852 (compare_ints, show_process, list_threads): New.
18853 (linux_qxfer_osdata): Report threads and cores.
18854 (linux_target_op): Register linux_core_of_thread.
18855 * remote-utils.c (prepare_resume_reply): Report the core.
18856 (buffer_xml_printf): Support %d specifier.
18857 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18858 New.
18859 (handle_query): Handle qXfer:threads. Announce availability
18860 thereof.
18861 * target.h (struct target_ops): New field core_of_thread.
18862
7803799a
UW
188632010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18864
18865 * Makefile.in (clean): Remove new generated files.
18866 (reg-s390.o, reg-s390.c): Remove rules.
18867 (reg-s390x.o, reg-s390x.c): Likewise.
18868 (s390-linux32.o, s390-linux32.c): Add rules.
18869 (s390-linux64.o, s390-linux64.c): Likewise.
18870 (s390x-linux64.o, s390x-linux64.c): Likewise.
18871 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18872 * linux-s390-low.c: Include <elf.h>.
18873 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18874 (init_registers_s390): Remove prototype.
18875 (init_registers_s390x): Likewise.
18876 (init_registers_s390_linux32): Add prototype.
18877 (init_registers_s390_linux64): Likewise.
18878 (init_registers_s390x_linux64): Likewise.
18879 (s390_num_regs_3264): New define.
18880 (s390_regmap_3264): New global variable.
18881 (s390_cannot_fetch_register): Remove obsolete check.
18882 (s390_cannot_store_register): Likewise.
18883 (s390_collect_ptrace_register): Handle upper/lower register halves.
18884 (s390_supply_ptrace_register): Likewise.
18885 (s390_fill_gregset): Update to register number changes.
18886 (s390_get_hwcap): New routine.
18887 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18888 Install appropriate regmap and register set.
18889
6e7ffa39
JB
188902010-01-01 Joel Brobecker <brobecker@adacore.com>
18891
18892 * server.c (gdbserver_version): Update copyright year to 2010.
18893 * gdbreplay.c (gdbreplay_version): Likewise.
18894
957f3f49
DE
188952009-12-28 Doug Evans <dje@google.com>
18896
18897 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18898 elf/external.h. Include <elf.h> instead but only if necessary.
18899
ca5c370d
PA
189002009-12-28 Pedro Alves <pedro@codesourcery.com>
18901
18902 * linux-low.c (linux_remove_process): Remove `detaching'
18903 parameter. Don't release/detach from thread_db here.
18904 (linux_kill): Release/detach from thread_db here, ...
18905 (linux_detach): ... and here, before actually detaching.
18906 (linux_wait_1): ... and here, when a process exits.
18907 * thread-db.c (any_thread_of): New.
18908 (thread_db_free): Switch the current inferior to a thread of the
18909 passed in process.
18910
4ee62156
DE
189112009-12-21 Doug Evans <dje@google.com>
18912
d90e6a88
DE
18913 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18914
c5f62d5f
DE
18915 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18916 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18917 warning ifndef __NR_tkill. Move setting of errno there too.
18918 Delete unnecessary resetting of errno after syscall.
18919 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18920
10e86dd7
DE
18921 * configure.ac: Check for dladdr.
18922 * config.in: Regenerate.
18923 * configure: Regenerate.
18924 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18925 (try_thread_db_load): Update.
18926
4ee62156
DE
18927 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18928
00f515da
DE
189292009-12-18 Doug Evans <dje@google.com>
18930
e9464885
DE
18931 * event-loop.c: Include unistd.h if it exists.
18932
07d4f67e
DE
18933 * linux-low.c (my_waitpid): Move definition away from being in
18934 between linux_tracefork_child/linux_test_for_tracefork.
18935
00f515da
DE
18936 * gdb_proc_service.h (psaddr_t): Fix type.
18937 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18938 signature to match glibc.
18939
1de1badb
DE
189402009-12-16 Doug Evans <dje@google.com>
18941
18942 * linux-low.c (linux_read_memory): Fix argument to read.
18943
aeeb81d1
PA
189442009-11-26 Pedro Alves <pedro@codesourcery.com>
18945
18946 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18947 events, don't leave current_inferior pointing at null.
18948
10357975
PA
189492009-11-26 Pedro Alves <pedro@codesourcery.com>
18950
18951 * win32-low.c (LOG): Delete.
18952 (OUTMSG): Output to stderr.
18953 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18954 on compile time LOG macro.
18955 (win32_wait): Fix debug output.
18956
cf6e3471
PA
189572009-11-26 Pedro Alves <pedro@codesourcery.com>
18958
18959 * win32-low.c (win32_add_one_solib): If the dll name is
18960 "ntdll.dll", prepend the system directory to the dll path.
18961
0c85e18e
MK
189622009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18963
18964 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18965
9ac544ce 189662009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18967 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18968
18969 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18970 * configure.ac: Check for __mcoldfire__ and set
18971 gdb_cv_m68k_is_coldfire.
18972 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18973 reg-cf.o and reg-m68k.o.
18974 * configure: Regenerated.
18975
fd7dd3e6
PA
189762009-11-16 Pedro Alves <pedro@codesourcery.com>
18977
18978 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18979 Pass it to thread_db_free.
18980 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18981 proper `detaching' argument to linux_remove_process.
18982 * linux-low.h (thread_db_free): Add `detaching' parameter.
18983 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18984 to thread_db_free.
18985 (thread_db_free): Add `detaching' parameter. Only
18986 call td_ta_clear_event if detaching from process.
18987
75aa492e
MK
189882009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18989
18990 * thread-db.c (thread_db_free): Fix typo.
18991
21e1bee4
PP
189922009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18993
18994 PR gdb/10838
18995 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18996
8838b45e
NS
189972009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18998
18999 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19000 with an i686 compiler.
19001 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19002 needed.
19003 * configure: Rebuilt.
19004
8a35fb51
SL
190052009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19006
19007 PR gdb/10783
19008
19009 * server.c (handle_search_memory_1): Correct read_addr initialization
19010 in loop for searching subsequent chunks.
19011
96f15937
PP
190122009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19013
19014 * configure.ac: New --with-libthread-db option.
19015 * thread-db.c: Allow direct dependence on libthread_db.
19016 (thread_db_free): Adjust.
19017 * config.in: Regenerate.
19018 * configure: Likewise.
889bf7c5 19019
5f7d1694
PP
190202009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19021
19022 PR gdb/10757
19023 * thread-db.c (attach_thread): New function.
19024 (maybe_attach_thread): Return success/failure.
19025 (find_new_threads_callback): Adjust.
889bf7c5
PA
19026 (thread_db_find_new_threads): Loop until no new threads.
19027
88e3b899
PA
190282009-10-13 Pedro Alves <pedro@codesourcery.com>
19029
19030 * proc-service.c (ps_lgetregs): Formatting.
19031
cdbfd419
PP
190322009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19033
19034 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19035 * configure.ac: Adjust.
19036 * linux-low.h (struct process_info_private): Move members to struct
19037 thread_db.
19038 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19039 * linux-low.c (linux_remove_process): Adjust.
19040 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19041 * server.c (handle_query): Move code ...
19042 (handle_monitor_command): ... here. New function.
19043 * target.h (struct target_ops): New member.
19044 * thread-db.c (struct thread_db): New.
19045 (libthread_db_search_path): New variable.
19046 (thread_db_create_event, thread_db_enable_reporting)
19047 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19048 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19049 (try_thread_db_load_1, dladdr_to_soname): New functions.
19050 (try_thread_db_load, thread_db_load_search): New functions.
19051 (thread_db_init): Search for libthread_db.
19052 (thread_db_free): New function.
19053 (thread_db_handle_monitor_command): Likewise.
19054 * config.in: Regenerate.
19055 * configure: Regenerate.
889bf7c5 19056
4168d2d6
UW
190572009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19058
19059 * spu-low.c (spu_kill): Wait for inferior to terminate.
19060 Call clear_inferiors.
19061 (spu_detach): Call clear_inferiors.
19062
81ecdfbb
RW
190632009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19064
19065 * aclocal.m4: Regenerate.
19066 * config.in: Likewise.
19067 * configure: Likewise.
19068
0b9ff2c0
UW
190692009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19070
19071 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19072 (parse_spufs_run): New function.
19073 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19074 (ppc_breakpoint_at): Handle SPU breakpoints.
19075
efcbbd14
UW
190762009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19077
19078 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19079 (SPUFS_MAGIC): Define.
19080 (spu_enumerate_spu_ids): New function.
19081 (linux_qxfer_spu): New function.
19082 (linux_target_ops): Install linux_qxfer_spu.
19083
f4d9bade
UW
190842009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19085
19086 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19087 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19088 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19089 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19090 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19091 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19092 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19093 (init_registers_powerpc_cell32l): Add prototype.
19094 (init_registers_powerpc_cell64l): Likewise.
19095 (ppc_arch_setup): Detect Cell/B.E. architecture.
19096
96e946ca
RW
190972009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19098
19099 * Makefile.in (datarootdir): New variable.
19100
58d6951d
DJ
191012009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19102
19103 * linux-low.c (linux_write_memory): Update debugging output.
19104 * Makefile.in (clean): Add new descriptions.
19105 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19106 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19107 * configure.srv: Add new files for arm*-*-linux*.
19108 * linux-arm-low.c: Add new declarations.
19109 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19110 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19111 (HWCAP_VFPv3D16): New.
19112 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19113 instead of __IWMMXT__.
19114 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19115 (arm_arch_setup): New.
19116 (target_regsets): Remove #ifdef. Add VFP regset.
19117 (the_low_target): Use arm_arch_setup.
19118
12b42a12
DJ
191192009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19120
19121 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19122 the main thread again.
19123
ac8c974e
AR
191242009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19125
19126 Adding Neutrino gdbserver.
19127 * configure: Regenerated.
19128 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19129 * configure.srv (i[34567]86-*-nto*): New target.
19130 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19131 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19132 (nto_comctrl) [__QNX__]: New function.
19133 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19134
4424e0c3 191352009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19136
19137 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19138 srv_tgtobj.
19139
912cf4ba
PA
191402009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19141 Pedro Alves <pedro@codesourcery.com>
19142
19143 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19144 don't support CONTEXT_EXTENDED_REGISTERS.
19145 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19146 (the_low_target): Install them.
19147 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19148 failing with ERROR_PIPE_NOT_CONNECTED.
19149
aa5ca48f
DE
191502009-06-30 Doug Evans <dje@google.com>
19151 Pierre Muller <muller@ics.u-strasbg.fr>
19152
19153 Add h/w watchpoint support to x86-linux, win32-i386.
19154 * Makefile.in (SFILES): Add i386-low.c
19155 (i386_low_h): Define.
19156 (i386-low.o): Add dependencies.
19157 (linux-x86-low.o): Add i386-low.h dependency.
19158 (win32-i386-low.o): Ditto.
19159 * i386-low.c: New file.
19160 * i386-low.h: New file.
19161 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19162 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19163 * linux-low.c (linux_add_process): Initialize arch_private.
19164 (linux_remove_process): Free arch_private.
19165 (add_lwp): Initialize arch_private.
19166 (delete_lwp): Free arch_private.
19167 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19168 provided.
19169 * linux-low.h (process_info_private): New member arch_private.
19170 (lwp_info): New member arch_private.
19171 (linux_target_ops): New members new_process, new_thread,
19172 prepare_to_resume.
19173 (ptid_of): New macro.
19174 * linux-x86-low.c: Include stddef.h, i386-low.h.
19175 (arch_process_info): New struct.
19176 (arch_lwp_info): New struct.
19177 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19178 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19179 (i386_dr_low_get_status): New function.
19180 (x86_insert_point, x86_remove_point): New functions.
19181 (x86_stopped_by_watchpoint): New function.
19182 (x86_stopped_data_address): New function.
19183 (x86_linux_new_process, x86_linux_new_thread): New functions.
19184 (x86_linux_prepare_to_resume): New function.
19185 (the_low_target): Add entries for insert_point, remove_point,
19186 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19187 prepare_to_resume.
19188 * server.c (debug_hw_points): New global.
19189 (monitor_show_help): Document set debug-hw-points.
19190 (handle_query): Process "set debug-hw-points".
19191 * server.h (debug_hw_points): Declare.
19192 (paddress): Declare.
19193 * utils.c (NUMCELLS, CELLSIZE): New macros.
19194 (get_sell, xsnprintf, paddress): New functions.
19195 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19196 remove_point, stopped_by_watchpoint, stopped_data_address.
19197 * win32-i386-low.c: Include i386-low.h.
19198 (debug_reg_state): Replaces dr.
19199 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19200 (i386_dr_low_get_status): New function.
19201 (i386_insert_point, i386_remove_point): New functions.
19202 (i386_stopped_by_watchpoint): New function.
19203 (i386_stopped_data_address): New function.
19204 (i386_initial_stuff): Update.
19205 (get_thread_context,set_thread_context,i386_thread_added): Update.
19206 (the_low_target): Add entries for insert_point,
19207 remove_point, stopped_by_watchpoint, stopped_data_address.
19208 * win32-low.c (win32_insert_watchpoint): New function.
19209 (win32_remove_watchpoint): New function.
19210 (win32_stopped_by_watchpoint): New function.
19211 (win32_stopped_data_address): New function.
19212 (win32_target_ops): Add entries for insert_watchpoint,
19213 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19214 * win32-low.h (win32_target_ops): New members insert_point,
19215 remove_point, stopped_by_watchpoint, stopped_data_address.
19216
d993e290
PA
192172009-06-25 Pedro Alves <pedro@codesourcery.com>
19218
19219 * server.c (process_serial_event): Re-return unsupported, not
19220 error, if the type isn't recognized. Re-allow supporting only
19221 insert or remove packets. Also call require_running for
19222 breakpoints. Add missing break statement to default case. Tidy.
19223 * target.h (struct target_ops): Rename insert_watchpoint to
19224 insert_point, and remove_watchpoint to remove_point.
19225
19226 * linux-low.h (struct linux_target_ops): Likewise.
19227 * linux-low.c (linux_insert_watchpoint): Rename to ...
19228 (linux_insert_point): ... this. Adjust.
19229 (linux_remove_watchpoint): Rename to ...
19230 (linux_remove_point): ... this. Adjust.
19231 (linux_target_ops): Adjust.
19232 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19233 (cris_insert_point): ... this.
19234 (cris_remove_watchpoint): Rename to ...
19235 (cris_remove_point): ... this.
19236 (the_low_target): Adjust.
19237
0f54c268
PM
192382009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19239
19240 * server.c (handle_v_kill): Pass signal_pid to
19241 kill_inferior if multi_process is zero.
19242
c6314022
AR
192432009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19244
19245 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19246 * target.h (target_ops): Comment for *_watchpoint to make it clear
19247 the functions can get types '0' and '1'.
19248
4463ce24
AR
192492009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19250
19251 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19252 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19253 * regcache.c (get_regcache): Likewise.
19254 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19255 * win32-low.c (child_fetch_inferior_registers): Remove check for
19256 regno 0.
19257
cf8fd78b
PA
192582009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19259 Pedro Alves <pedro@codesourcery.com>
19260
19261 * target.h (struct target_ops) <supports_multi_process>: New
19262 callback.
19263 (target_supports_multi_process): New.
19264 * server.c (handle_query): Even if GDB reports support, only
19265 enable multi-process if the target also supports it. Report
19266 multi-process support only if the target backend supports it.
19267 * linux-low.c (linux_supports_multi_process): New function.
19268 (linux_target_ops): Install it as target_supports_multi_process
19269 callback.
19270
47c0c975
DE
192712009-05-24 Doug Evans <dje@google.com>
19272
e09875d4
DE
19273 Global renaming of find_thread_pid to find_thread_ptid.
19274 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19275 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19276 All callers updated.
19277
e27d73f6
DE
19278 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19279 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19280 directly.
19281
47c0c975
DE
19282 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19283 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19284 (linux_resume_one_lwp): Ditto.
19285
2acc282a
DE
192862009-05-23 Doug Evans <dje@google.com>
19287
19288 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19289 from struct inferior_list_entry * to struct lwp_info *.
19290 All callers updated.
19291
9f1036c1
DE
192922009-05-13 Doug Evans <dje@google.com>
19293
19294 * linux-x86-low.c: Don't include assert.h.
19295 (x86_siginfo_fixup): Use fatal, not assert.
19296 (x86_arch_setup): Fix comment.
19297
d0722149
DE
192982009-05-12 Doug Evans <dje@google.com>
19299
19300 Biarch support for i386/amd64 gdbserver.
19301 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19302 Add linux-x86-low.c.
19303 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19304 (linux-x86-low.o): Add.
19305 * linux-x86-64-low.c: Delete.
19306 * linux-i386-low.c: Delete.
19307 * linux-x86-low.c: New file.
19308 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19309 linux-x86-low.o.
19310 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19311 linux-x86-low.o.
19312 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19313 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19314 (linux_child_pid_to_exec_file): New function.
19315 (elf_64_header_p, elf_64_file_p): New functions.
19316 (siginfo_fixup): New function.
19317 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19318 give target a chance to convert layout.
19319 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19320 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19321
fdeb2a12
DE
193222009-05-07 Doug Evans <dje@google.com>
19323
19324 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19325 (regsets_store_inferior_registers): Ditto.
19326
a6dbe5df
PA
193272009-05-06 Pedro Alves <pedro@codesourcery.com>
19328
19329 PR server/10048
19330
19331 * linux-low.c (must_set_ptrace_flags): Delete.
19332 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19333 of the global.
19334 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19335 `lwp->must_set_ptrace_flags' instead.
ba42693b 19336 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19337 (linux_wait_1): ... not here.
19338
5091eb23
DE
193392009-04-30 Doug Evans <dje@google.com>
19340
9f767825
DE
19341 * inferiors.c (started_inferior_callback): New function.
19342 (attached_inferior_callback): New function.
19343 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19344 * server.c (print_started_pid, print_attached_pid): New functions.
19345 (detach_or_kill_for_exit): New function.
19346 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19347 * server.h (have_started_inferiors_p): Declare.
19348 (have_attached_inferiors_p): Declare.
19349
5091eb23
DE
19350 * inferiors.c (remove_process): Fix memory leak, free process.
19351 * linux-low.c (linux_remove_process): New function.
19352 (linux_kill): Call it instead of remove_process.
19353 (linux_detach, linux_wait_1): Ditto.
19354
155c8968
PA
193552009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19356
19357 * configure.srv: Add x86 Windows CE target.
19358
7fe519cb
UW
193592009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19360
19361 * inferiors.c (get_thread_process): Make global.
19362 * server.h (get_thread_process): Add prototype.
19363 * thread-db.c (find_one_thread): Use get_thread_process
19364 instead of current_process.
19365 (thread_db_get_tls_address): Do not crash if called when
19366 thread layer is not yet initialized.
19367
5472f405
UW
193682009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19369
19370 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19371 * spu-low.c (current_tid): Rename to ...
19372 (current_ptid): ... this.
19373 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19374 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19375 ptid_get_lwp (current_ptid) instead of current_tid.
19376 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19377 instead of current_tid. Use find_process_pid to verify pid
19378 argument is valid. Pass proper argument to remove_process.
19379 (spu_thread_alive): Compare current_ptid instead of current_tid.
19380 (spu_resume): Likewise.
19381
55ac2b99
PA
193822009-04-02 Pedro Alves <pedro@codesourcery.com>
19383
19384 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19385 variable.
19386
95954743
PA
193872009-04-01 Pedro Alves <pedro@codesourcery.com>
19388
19389 Implement the multiprocess extensions, and add linux multiprocess
19390 support.
19391
19392 * server.h (ULONGEST): Declare.
19393 (struct ptid, ptid_t): New.
19394 (minus_one_ptid, null_ptid): Declare.
19395 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19396 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19397 (struct inferior_list_entry): Change `id' type from unsigned from
19398 to ptid_t.
19399 (struct sym_cache, struct breakpoint, struct
19400 process_info_private): Forward declare.
19401 (struct process_info): Declare.
19402 (current_process): Declare.
19403 (all_processes): Declare.
19404 (initialize_inferiors): Declare.
19405 (add_thread): Adjust to use ptid_t.
19406 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19407 (add_process, remove_process, find_thread_pid): Declare.
19408 (find_inferior_id): Adjust to use ptid_t.
19409 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19410 (multi_process): Declare.
19411 (push_event): Adjust to use ptid_t.
19412 (read_ptid, write_ptid): Declare.
19413 (prepare_resume_reply): Adjust to use ptid_t.
19414 (clear_symbol_cache): Declare.
19415 * inferiors.c (all_processes): New.
19416 (null_ptid, minus_one_ptid): New.
19417 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19418 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19419 (add_thread): Change unsigned long to ptid. Remove gdb_id
19420 parameter. Adjust.
19421 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19422 (gdb_id_to_thread): Rename to ...
19423 (find_thread_pid): ... this. Change unsigned long to ptid.
19424 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19425 (loaded_dll, pull_pid_from_list): Adjust.
19426 (add_process, remove_process, find_process_pid)
19427 (get_thread_process, current_process, initialize_inferiors): New.
19428 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19429 (struct target_waitstatus) <related_pid>: Ditto.
19430 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19431 return type to int.
19432 (struct target_ops) <join>: Add `pid' argument.
19433 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19434 (struct target_ops) <wait>: Add `ptid' field. Change return type
19435 to ptid.
19436 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19437 (mywait): Add `ptid' argument. Change return type to ptid_t.
19438 (target_pid_to_str): Declare.
19439 * target.c (set_desired_inferior): Adjust to use ptids.
19440 (mywait): Add new `ptid' argument. Adjust.
19441 (target_pid_to_str): New.
19442 * mem-break.h (free_all_breakpoints): Declare.
19443 * mem-break.c (breakpoints): Delelete.
19444 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19445 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19446 to use per-process breakpoint list.
19447 (free_all_breakpoints): New.
19448 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19449 (symbol_cache, all_symbols_looked_up): Delete.
19450 (hexchars): New.
19451 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19452 read_ptid): New.
19453 (prepare_resume_reply): Change ptid argument's type from unsigned
19454 long to ptid_t. Adjust. Implement W;process and X;process.
19455 (free_sym_cache, clear_symbol_cache): New.
19456 (look_up_one_symbol): Adjust to per-process symbol cache. *
19457 * server.c (cont_thread, general_thread, step_thread): Change type
19458 to ptid_t.
19459 (attached): Delete.
19460 (multi_process): New.
19461 (last_ptid): Change type to ptid_t.
19462 (struct vstop_notif) <ptid>: Change type to ptid_t.
19463 (queue_stop_reply, push_event): Change `ptid' argument's type to
19464 ptid_t.
19465 (discard_queued_stop_replies): Add `pid' argument.
19466 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19467 changes. Don't reference the `attached' global.
19468 (attach_inferior): Adjust to mywait interface changes.
19469 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19470 features. Handle and report "multiprocess+". Handle
19471 "qAttached:PID".
19472 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19473 changes.
19474 (handle_v_kill): New.
19475 (handle_v_stopped): Adjust to use target_pid_to_str.
19476 (handle_v_requests): Allow multiple attaches and runs when
19477 multiprocess extensions are in effect. Handle "vKill".
19478 (myresume): Adjust to use ptids.
19479 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19480 (handle_status): Adjust to discard_queued_stop_replies interface
19481 change.
19482 (first_thread_of, kill_inferior_callback)
19483 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19484 (main): Call initialize_inferiors. Adjust to use ptids, killing
19485 and detaching from all inferiors. Handle multiprocess packet
19486 variants.
19487 * linux-low.h: Include gdb_proc_service.h.
19488 (struct process_info_private): New.
19489 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19490 <lwpid_of>: Use ptid_get_lwp.
19491 (get_lwp_thread): Adjust.
19492 (struct lwp_info): Add `dead' member.
19493 (find_lwp_pid): Declare.
19494 * linux-low.c (thread_db_active): Delete.
19495 (new_inferior): Adjust comment.
19496 (inferior_pid): Delete.
19497 (linux_add_process): New.
19498 (handle_extended_wait): Adjust.
19499 (add_lwp): Change unsigned long to ptid.
19500 (linux_create_inferior): Add process to processes table. Adjust
19501 to use ptids. Don't set new_inferior here.
19502 (linux_attach_lwp): Rename to ...
19503 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19504 it. Adjust to use ptids.
19505 (linux_attach_lwp): New.
19506 (linux_attach): Add process to processes table. Don't set
19507 new_inferior here.
19508 (struct counter): New.
19509 (second_thread_of_pid_p, last_thread_of_process_p): New.
19510 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19511 multiple processes.
19512 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19513 processes. Remove process from process table.
19514 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19515 to multiple processes.
19516 (any_thread_of): New.
19517 (linux_detach): Add `pid' argument, and handle it. Remove process
19518 from processes table.
19519 (linux_join): Add `pid' argument. Handle it.
19520 (linux_thread_alive): Change unsighed long argument to ptid_t.
19521 Consider dead lwps as not being alive.
19522 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19523 threads we're not interested in.
19524 (same_lwp, find_lwp_pid): New.
19525 (linux_wait_for_lwp): Change `pid' argument's type from int to
19526 ptid_t. Adjust.
19527 (linux_wait_for_event): Rename to ...
19528 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19529 from int to ptid_t. Adjust.
19530 (linux_wait_for_event): New.
19531 (linux_wait_1): Add `ptid' argument. Change return type to
19532 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19533 that exit from the process table.
19534 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19535 Adjust.
19536 (mark_lwp_dead): New.
19537 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19538 stopping all threads, mark its main lwp as dead.
19539 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19540 ptids.
19541 (fetch_register, usr_store_inferior_registers)
19542 (regsets_fetch_inferior_registers)
19543 (regsets_store_inferior_registers, linux_read_memory)
19544 (linux_write_memory): Inline `inferior_pid'.
19545 (linux_look_up_symbols): Adjust to use per-process
19546 `thread_db_active'.
19547 (linux_request_interrupt): Adjust to use ptids.
19548 (linux_read_auxv): Inline `inferior_pid'.
19549 (initialize_low): Don't reference thread_db_active.
19550 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19551 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19552 (ps_getpid): Return the pid of the current inferior.
19553 * thread-db.c (proc_handle, thread_agent): Delete.
19554 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19555 per-process data.
19556 (find_one_thread): Change argument type to ptid_t. Adjust to
19557 per-process data.
19558 (maybe_attach_thread): Adjust to per-process data and ptids.
19559 (thread_db_find_new_threads): Ditto.
19560 (thread_db_init): Ditto.
19561 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19562 processes table. Adjust to use ptids.
19563 (spu_kill, spu_detach): Adjust interface. Remove process from
19564 processes table.
19565 (spu_join, spu_thread_alive): Adjust interface.
19566 (spu_wait): Adjust interface. Remove process from processes
19567 table. Adjust to use ptids.
19568 * win32-low.c (current_inferior_tid): Delete.
19569 (current_inferior_ptid): New.
19570 (debug_event_ptid): New.
19571 (thread_rec): Take a ptid. Adjust.
19572 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19573 (child_delete_thread): Ditto.
19574 (do_initial_child_stuff): Add `attached' argument. Add process to
19575 processes table.
19576 (child_fetch_inferior_registers, child_store_inferior_registers):
19577 Adjust.
19578 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19579 (win32_attach): Pass 1 to do_initial_child_stuff.
19580 (win32_kill): Adjust interface. Remove process from processes
19581 table.
19582 (win32_detach): Ditto.
19583 (win32_join): Adjust interface.
19584 (win32_thread_alive): Take a ptid.
19585 (win32_resume): Adjust to use ptids.
19586 (get_child_debug_event): Ditto.
19587 (win32_wait): Adjust interface. Remove exiting process from
19588 processes table.
19589
bd99dc85
PA
195902009-04-01 Pedro Alves <pedro@codesourcery.com>
19591
19592 Non-stop mode support.
19593
19594 * server.h (non_stop): Declare.
19595 (gdb_client_data, handler_func): Declare.
19596 (delete_file_handler, add_file_handler, start_event_loop):
19597 Declare.
19598 (handle_serial_event, handle_target_event, push_event)
19599 (putpkt_notif): Declare.
19600 * target.h (enum resume_kind): New.
19601 (struct thread_resume): Replace `step' field by `kind' field.
19602 (TARGET_WNOHANG): Define.
19603 (struct target_ops) <wait>: Add `options' argument.
19604 <supports_non_stop, async, start_non_stop>: New fields.
19605 (target_supports_non_stop, target_async): New.
19606 (start_non_stop): Declare.
19607 (mywait): Add `options' argument.
19608 * target.c (mywait): Add `options' argument. Print child exit
19609 notifications here.
19610 (start_non_stop): New.
19611 * server.c (non_stop, own_buf, mem_buf): New globals.
19612 (struct vstop_notif): New.
19613 (notif_queue): New global.
19614 (queue_stop_reply, push_event, discard_queued_stop_replies)
19615 (send_next_stop_reply): New.
19616 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19617 interface changes.
19618 (attach_inferior): In non-stop mode, don't wait for the target
19619 here.
19620 (handle_general_set): Handle QNonStop.
19621 (handle_query): When handling qC, return the current general
19622 thread, instead of the first thread of the list.
19623 (handle_query): If the backend supports non-stop mode, include
19624 QNonStop+ in the qSupported query response.
19625 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19626 and non-stop mode.
19627 (handle_v_attach, handle_v_run): Handle non-stop mode.
19628 (handle_v_stopped): New.
19629 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19630 (myresume): Adjust to use resume_kind. Handle non-stop.
19631 (queue_stop_reply_callback): New.
19632 (handle_status): Handle non-stop mode.
19633 (main): Clear non_stop flag on reconnection. Use the event-loop.
19634 Refactor serial protocol handling from here ...
19635 (process_serial_event): ... to this new function. When GDB
19636 selects any thread, select one here. In non-stop mode, wait until
19637 GDB acks all pending events before exiting.
19638 (handle_serial_event, handle_target_event): New.
19639 * remote-utils.c (remote_open): Install remote_desc in the event
19640 loop.
19641 (remote_close): Remove remote_desc from the event loop.
19642 (putpkt_binary): Rename to...
19643 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19644 (putpkt_binary): New as wrapper around putpkt_binary_1.
19645 (putpkt_notif): New.
19646 (prepare_resume_reply): In non-stop mode, don't change the
19647 general_thread.
19648 * event-loop.c: New.
19649 * Makefile.in (OBJ): Add event-loop.o.
19650 (event-loop.o): New rule.
19651
19652 * linux-low.h (pid_of): Moved here.
19653 (lwpid_of): New.
19654 (get_lwp_thread): Use lwpid_of.
19655 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19656 * linux-low.c (pid_of): Delete.
19657 (inferior_pid): Use lwpid_of.
19658 (linux_event_pipe): New.
19659 (target_is_async_p): New.
19660 (delete_lwp): New.
19661 (handle_extended_wait): Use lwpid_of.
19662 (add_lwp): Don't set lwpid field.
19663 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19664 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19665 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19666 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19667 first. Adjust to linux_wait_for_event interface changes. Use
19668 lwpid_of.
19669 (linux_detach): Don't delete the main lwp here.
19670 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19671 (status_pending_p): Don't consider explicitly suspended lwps.
19672 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19673 pointer. Add OPTIONS argument. Change return type to int. Use
19674 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19675 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19676 pointer. Add status pointer argument. Return a pid instead of a
19677 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19678 changes. In non-stop mode, don't switch to a random thread.
19679 (linux_wait): Rename to...
19680 (linux_wait_1): ... this. Add target_options argument, and handle
19681 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19682 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19683 clean exit and signal exit code. Don't stop all threads in
19684 non-stop mode. In all-stop mode, only stop all threads when
19685 reporting a stop to GDB. Handle explicit thread stop requests.
19686 (async_file_flush, async_file_mark): New.
19687 (linux_wait): New.
19688 (send_sigstop): Use lwpid_of.
19689 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19690 interface changes. In non-stop mode, don't switch to a random
19691 thread.
19692 (linux_resume_one_lwp): Use lwpid_of.
19693 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19694 (linux_resume_one_thread): ... this. Handle resume_stop. In
19695 non-stop mode, don't look for pending flag in all threads.
19696 (resume_status_pending_p): Don't consider explicitly suspended
19697 threads.
19698 (my_waitpid): Reimplement. Emulate __WALL.
19699 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19700 Use lwpid_of.
19701 (sigchld_handler, linux_supports_non_stop, linux_async)
19702 (linux_start_non_stop): New.
19703 (linux_target_ops): Register linux_supports_non_stop, linux_async
19704 and linux_start_non_stop.
19705 (initialize_low): Install SIGCHLD handler.
19706 * thread-db.c (thread_db_create_event, find_one_thread)
19707 (thread_db_get_tls_address): Use lwpid_of.
19708 * win32-low.c (win32_detach): Adjust to use resume_kind.
19709 (win32_wait): Add `options' argument.
19710 * spu-low.c (spu_resume): Adjust to use resume_kind.
19711 (spu_wait): Add `options' argument.
19712
5b1c542e
PA
197132009-04-01 Pedro Alves <pedro@codesourcery.com>
19714
19715 Decouple target code from remote protocol.
19716
19717 * target.h (enum target_waitkind): New.
19718 (struct target_waitstatus): New.
19719 (struct target_ops) <wait>: Return an unsigned long. Take a
19720 target_waitstatus pointer instead of a char pointer.
19721 (mywait): Likewise.
19722 * target.c (mywait): Change prototype to return an unsigned long.
19723 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19724 * server.h (thread_from_wait, old_thread_from_wait): Delete
19725 declarations.
19726 (prepare_resume_reply): Change prototype to take a
19727 target_waitstatus.
19728 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19729 (last_status, last_ptid): New.
19730 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19731 pid instead of a signal.
19732 (attach_inferior): Remove "status" and "signal" parameters.
19733 Adjust.
19734 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19735 not as an address.
19736 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19737 (handle_v_requests, myresume): Remove "status" and "signal"
19738 parameters. Adjust.
19739 (handle_status): New.
19740 (main): Delete local `status'. Adjust.
19741 * remote-utils.c: Include target.h.
19742 (prepare_resume_reply): Change prototype to take a
19743 target_waitstatus. Adjust.
19744
19745 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19746 interface.
19747 * spu-low.c (spu_wait): Adjust.
19748 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19749 Delete.
19750 (win32_wait): Adjust.
19751
2bd7c093
PA
197522009-04-01 Pedro Alves <pedro@codesourcery.com>
19753
19754 * target.h (struct thread_resume): Delete leave_stopped member.
19755 (struct target_ops): Add a `n' argument to the `resume' callback.
19756 * server.c (start_inferior): Adjust.
19757 (handle_v_cont, myresume): Adjust.
19758 * linux-low.c (check_removed_breakpoint): Adjust to resume
19759 interface change, and to removed leave_stopped field.
19760 (resume_ptr): Delete.
19761 (struct thread_resume_array): New.
19762 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19763 resume interface change.
19764 (linux_continue_one_thread, linux_queue_one_thread)
19765 (resume_status_pending_p): Check if the resume field is NULL
19766 instead of checking the leave_stopped member.
19767 (linux_resume): Adjust to the target resume interface change.
19768 * spu-low.c (spu_resume): Adjust to the target resume interface
19769 change.
19770 * win32-low.c (win32_detach, win32_resume): Ditto.
19771
c35fafde
PA
197722009-04-01 Pedro Alves <pedro@codesourcery.com>
19773
19774 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19775 flag.
19776 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19777 pending.
19778 (linux_continue_one_thread): Only preserve the stepping flag if
19779 there's a pending breakpoint.
19780
0a59d50b
PA
197812009-03-31 Pedro Alves <pedro@codesourcery.com>
19782
19783 * server.c (main): After the inferior having exited, call
19784 remote_close before exiting gdbserver.
19785
f04c6d38
TJB
197862009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19787
19788 Fix size of FPSCR in Power 7 processors.
19789 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19790 (PPC_FEATURE_HAS_DFP): New #define.
19791 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19792 size of the FPSCR.
19793
78e5cee6
PA
197942009-03-23 Pedro Alves <pedro@codesourcery.com>
19795
19796 * server.c (handle_query) Whitespace and formatting.
19797
1b3f6016
PA
197982009-03-22 Pedro Alves <pedro@codesourcery.com>
19799
19800 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19801 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19802 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19803 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19804 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19805 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19806 Makefile.in, configure.ac: Fix whitespace throughout.
19807 * configure: Regenerate.
19808
a07b2135
PA
198092009-03-22 Pedro Alves <pedro@codesourcery.com>
19810
19811 * inferiors.c (find_inferior): Make it safe for the callback
19812 function to delete the currently iterated inferior.
19813
67cc2626
PA
198142009-03-22 Pedro Alves <pedro@codesourcery.com>
19815
19816 * Makefile.in (linuw_low_h): Move higher.
19817 (thread-db.o): Depend on $(linux_low_h).
19818
54a0b537
PA
198192009-03-17 Pedro Alves <pedro@codesourcery.com>
19820
19821 Rename "process" to "lwp" throughout.
19822
19823 * linux-low.c (all_processes): Rename to...
19824 (all_lwps): ... this.
19825 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19826 (add_process): Rename to ...
19827 (add_lwp): ... this. Adjust.
19828 (linux_create_inferior): Adjust.
19829 (linux_attach_lwp): Adjust.
19830 (linux_attach): Adjust.
19831 (linux_kill_one_process): Rename to ...
19832 (linux_kill_one_lwp): ... this. Adjust.
19833 (linux_kill): Adjust.
19834 (linux_detach_one_process): Rename to ...
19835 (linux_detach_one_lwp): ... this. Adjust.
19836 (linux_detach): Adjust.
19837 (check_removed_breakpoint): Adjust.
19838 (status_pending_p): Adjust.
19839 (linux_wait_for_process): Rename to ...
19840 (linux_wait_for_lwp): ... this. Adjust.
19841 (linux_wait_for_event): Adjust.
19842 (send_sigstop): Adjust.
19843 (wait_for_sigstop): Adjust.
19844 (stop_all_processes): Rename to ...
19845 (stop_all_lwps): ... this.
19846 (linux_resume_one_process): Rename to ...
19847 (linux_resume_one_lwp): ... this. Adjust.
19848 (linux_set_resume_request, linux_continue_one_thread)
19849 (linux_queue_one_thread, resume_status_pending_p)
19850 (usr_store_inferior_registers, regsets_store_inferior_registers)
19851 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19852 Adjust.
19853 * linux-low.h (get_process): Rename to ...
19854 (get_lwp): ... this. Adjust.
19855 (get_thread_process): Rename to ...
19856 (get_thread_lwp): ... this. Adjust.
19857 (get_process_thread): Rename to ...
19858 (get_lwp_thread): ... this. Adjust.
19859 (struct process_info): Rename to ...
19860 (struct lwp_info): ... this.
19861 (all_processes): Rename to ...
19862 (all_lwps): ... this.
19863 * proc-service.c (ps_lgetregs): Adjust.
19864 * thread-db.c (thread_db_create_event, find_one_thread)
19865 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19866
0b16c5cf
PA
198672009-03-14 Pedro Alves <pedro@codesourcery.com>
19868
19869 * server.c (handle_query): Handle "qAttached".
19870
32de4b9d
NS
198712009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19872
19873 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19874 GPLv3, update license URL.
19875
2aecd87f
DE
198762009-03-01 Doug Evans <dje@google.com>
19877
93efd302 19878 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19879 (server_h): Add gdb_signals.h.
19880 (signals.o): Update.
19881 * server.h (target_signal_from_host,target_signal_to_host_p)
19882 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19883
86b1f9c5
PM
198842009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19885
19886 * remote-utils.c (getpkt): Also generate remote-debug
19887 information if noack_mode is set.
19888
4aa995e1
PA
198892009-02-06 Pedro Alves <pedro@codesourcery.com>
19890
19891 * server.c (handle_query): Report qXfer:siginfo:read and
19892 qXfer:siginfo:write as supported and handle them.
19893 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19894 * linux-low.c (linux_xfer_siginfo): New.
19895 (linux_target_ops): Set it.
19896
62709adf
PA
198972009-01-26 Pedro Alves <pedro@codesourcery.com>
19898
19899 * server.c (gdbserver_usage): Mention --remote-debug.
19900 (main): Accept '--remote-debug' switch.
19901
aef93bd7
DE
199022009-01-18 Doug Evans <dje@google.com>
19903
19904 * regcache.c (new_register_cache): No need to check result of xcalloc.
19905 * server.c (handle_search_memory): Back out calls to xmalloc,
19906 result is checked and error is returned to user upon failure.
19907 (handle_query): Ditto. Add more checks for result of malloc.
19908 (handle_v_cont): Check result of malloc, report error back to
19909 user upon failure.
19910 (handle_v_run): Ditto. Call freeargv.
19911 * server.h (freeargv): Declare.
19912 * utils.c (freeargv): New fn.
19913
54363045
DE
199142009-01-15 Doug Evans <dje@google.com>
19915
f626972c
DE
19916 * gdbreplay.c (perror_with_name): Make arg const char *.
19917 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19918 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19919 * utils.c (perror_with_name): Make arg const char *.
54363045 19920
18aae699
PA
199212009-01-14 Pedro Alves <pedro@codesourcery.com>
19922
19923 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19924 when handling a EXIT_PROCESS_DEBUG_EVENT.
19925
ff703abe
JB
199262009-01-06 Joel Brobecker <brobecker@adacore.com>
19927
19928 * gdbreplay.c (gdbreplay_version): Update copyright year.
19929 * server.c (gdbserver_version): Likewise.
19930
f21cc1a2 199312009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19932
19933 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19934 (handle_extended_wait): Improve comment.
0e21c1ec 19935
bca929d3
DE
199362008-12-13 Doug Evans <dje@google.com>
19937
19938 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19939 * server.h (ATTR_MALLOC): New macro.
19940 (xmalloc,xcalloc,xstrdup): Declare.
19941 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19942 * inferiors.c: Ditto.
19943 * linux-low.c: Ditto.
19944 * mem-break.c: Ditto.
19945 * regcache.c: Ditto.
19946 * remote-utils.c: Ditto.
19947 * server.c: Ditto.
19948 * target.c: Ditto.
19949 * win32-low.c: Ditto.
19950
97438e3f
DE
199512008-12-12 Doug Evans <dje@google.com>
19952
896c7fbb
DE
19953 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19954 in debugging printf.
19955
97438e3f
DE
19956 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19957
e3b886f8
DE
199582008-12-09 Doug Evans <dje@google.com>
19959
19960 * linux-low.h (struct process_info): Delete member tid, unused.
19961 * thread-db.c (find_one_thread): Update.
19962 (maybe_attach_thread): Update.
19963
07e059b5
VP
199642008-12-02 Pedro Alves <pedro@codesourcery.com>
19965
889bf7c5
PA
19966 * target.h (struct target_ops): Add qxfer_osdata member.
19967 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19968 and dirent.h.
19969 (linux_qxfer_osdata): New functions.
19970 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19971 callback.
19972 * server.c (handle_query): Handle "qXfer:osdata:read:".
19973 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19974 (buffer_xml_printf): New functions.
19975 * server.h (struct buffer): New.
19976 (buffer_grow_str, buffer_grow_str0): New macros.
19977 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19978 (buffer_xml_printf): Declare.
07e059b5 19979
4cab47ab
DE
199802008-11-24 Doug Evans <dje@google.com>
19981
19982 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19983
f142445f
DJ
199842008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19985
19986 * server.c (handle_v_run): Always use the supplied argument list.
19987
d0107bb6 199882008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19989
d0107bb6
BW
19990 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19991 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19992
2c4ad781
TJB
199932008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19994
19995 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19996 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19997 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19998 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19999 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20000 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20001 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20002 XML target descriptions.
20003 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20004 when inferior is running on an ISA 2.05 or later processor. Add
20005 special case to return offset for full 64-bit slot of FPSCR when
20006 in 32-bits.
20007
dfb64f85
DJ
200082008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20009
20010 * Makefile.in (SFILES, clean): Added sparc64 files.
20011 (reg-sparc64.o, reg-sparc64.c): New.
20012 * configure.srv (sparc*-*-linux*): New configuration.
20013 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20014 syscall arguments for SPARC.
20015 (regsets_store_inferior_registers): Likewise.
20016 * linux-sparc-low.c: New file.
20017
66b6e1dd
DE
200182008-10-21 Doug Evans <dje@google.com>
20019
20020 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20021 (READLINE_DIR,READLINE_DEP): Delete.
20022 (INTERNAL_CFLAGS): Update.
20023 (LINTFLAGS): Update.
20024
9b710a42
PA
200252008-10-10 Pedro Alves <pedro@codesourcery.com>
20026
20027 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20028 whole argv from the last run, not just argv[0].
20029
5822d809
PA
200302008-09-08 Pedro Alves <pedro@codesourcery.com>
20031
20032 * regcache.c (new_register_cache): Return NULL if the register
20033 cache size isn't known yet.
20034 (free_register_cache): Avoid dereferencing a NULL regcache.
20035
74aac56f
DJ
200362008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20037
20038 * configure.srv: Merge MIPS and MIPS64.
20039
400b20f5
MR
200402008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20041
20042 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20043
677c5bb1
LM
200442008-08-18 Luis Machado <luisgpm@br.ibm.com>
20045
20046 * Makefile.in: Add required vsx dependencies.
20047
20048 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20049 Declare init_registers_powerpc_vsx32l.
20050 Declare init_registers_powerpc_vsx64l.
20051 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20052 (ppc_arch_setup): Check for VSX in hwcap.
20053 (ppc_fill_vsxregset): New function.
20054 (ppc_store_vsxregset): New function.
20055 Add new VSX entry in regset_info target_regsets.
20056
20057 * configure.srv: Add new VSX dependencies.
20058
a6f3e723
SL
200592008-08-12 Pedro Alves <pedro@codesourcery.com>
20060
20061 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20062 (remote_open): Set or clear transport_is_reliable.
20063 (putpkt_binary): Don't expect acks in noack mode.
20064 (getpkt): Don't send ack/nac in noack mode.
20065 * server.c (handle_general_set): Handle QStartNoAckMode.
20066 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20067 qSupported.
20068 (main): Reset noack_mode on every connection.
20069 * server.h (noack_mode): Declare.
20070
a417dc56
RW
200712008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20072
20073 * Makefile.in (GDBREPLAY_OBS): New variable.
20074 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20075
3221518c
UW
200762008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20077 Daniel Jacobowitz <dan@codesourcery.com>
20078
20079 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20080 (usr_store_inferior_registers): Likewise.
20081 (regsets_store_inferior_registers): Likewise.
20082
ec56be1b
PA
200832008-07-31 Rolf Jansen <rj@surtec.com>
20084 Pedro Alves <pedro@codesourcery.com>
20085
20086 * configure.ac: Check for memmem declaration.
20087 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20088 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20089 (disable_packet_qfThreadInfo): Unconditionally compile.
20090 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20091 * configure, config.in: Regenerate.
20092
2fe5e3ff
DE
200932008-07-28 Doug Kwan <dougkwan@google.com>
20094
20095 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20096 (linux_write_memory): Remove declaration of errno.
20097
836acd6d
UW
200982008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20099
20100 * linux-low.c (handle_extended_wait): Do not use "status"
20101 variable uninitialized.
20102
aeba519e
PA
201032008-07-07 Pedro Alves <pedro@codesourcery.com>
20104
20105 * server.c (handle_v_attach): Inhibit reporting dll changes.
20106
db42f210
PA
201072008-06-27 Pedro Alves <pedro@codesourcery.com>
20108
20109 * remote-utils.c (prepare_resume_reply): If requested, don't
20110 output "thread:TID" in the T stop reply.
20111
20112 * server.c (disable_packet_vCont, disable_packet_Tthread)
20113 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20114 (handle_query): If requested, disable support for qC, qfThreadInfo
20115 and qsThreadInfo.
20116 (handle_v_requests): If requested, disable support for vCont.
20117 (gdbserver_show_disableable): New.
20118 (main): Handle --disable-packet and --disable-packet=LIST.
20119
20120 * server.h (disable_packet_vCont, disable_packet_Tthread)
20121 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20122
8e4c5421
CD
201232008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20124
20125 * server.c (gdbserver_usage): Mention --version.
20126
6e23a804
DJ
201272008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20128
20129 * Makefile.in (gdbreplay.o): New rule.
20130
90aa6a40
JM
201312008-06-06 Joseph Myers <joseph@codesourcery.com>
20132
20133 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20134 message, not gdbserver.
20135
c16158bc 201362008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20137 Nathan Sidwell <nathan@codesourcery.com>
20138 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20139
20140 * acinclude.m4: Include ../../config/acx.m4.
20141 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20142 * configure, config.in: Regenerate.
20143 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20144 * server.c (gdbserver_version): Print PKGVERSION.
20145 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20146 (main): Adjust gdbserver_usage calls.
20147 * gdbreplay.c (version, host_name): Add declarations.
20148 (gdbreplay_version, gdbreplay_usage): New.
20149 (main): Accept --version and --help options.
20150
aeb75bf5
DJ
201512008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20152
20153 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20154 (arm_breakpoint_at): Handle Thumb.
20155 (the_low_target): Add comment.
20156
76b233dd
UW
201572008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20158
20159 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20160
08388c79
DE
201612008-05-09 Doug Evans <dje@google.com>
20162
a3c83fae
DE
20163 * server.h (decode_search_memory_packet): Declare.
20164 * remote-utils.c (decode_search_memory_packet): New fn.
20165 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20166 (handle_search_memory): New fn.
20167 (handle_query): Process qSearch:memory packets.
20168
bb9c3d36
UW
201692008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20170
20171 * regcache.c (registers_length): Remove.
20172 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20173 full register packet.
20174 * regcache.h (registers_length): Remove prototype.
20175 * server.h (PBUFSIZ): Define to 16384.
20176
7284e1be
UW
201772008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20178
20179 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20180 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20181 powerpc-64l.o, and powerpc-altivec64l.o.
20182 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20183 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20184 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20185 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20186 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20187 to srv_xmlfiles.
20188
20189 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20190 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20191 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20192 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20193 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20194 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20195 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20196 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20197 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20198 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20199 (clean): Update.
20200
20201 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20202 (init_registers_powerpc_32l): ... this new prototype.
20203 (init_registers_powerpc_32): Remove, replace by ...
20204 (init_registers_powerpc_altivec32l): ... this new prototype.
20205 (init_registers_powerpc_e500): Remove, replace by ...
20206 (init_registers_powerpc_e500l): ... this new prototype.
20207 (init_registers_ppc64): Remove, replace by ...
20208 (init_registers_powerpc_64l): ... this new prototype.
20209 (init_registers_powerpc_64): Remove, replace by ...
20210 (init_registers_powerpc_altivec64l): ... this new prototype.
20211 (ppc_num_regs): Set to 73.
20212 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20213 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20214 (ppc_cannot_store_register): Handle orig_r3 and trap.
20215 (ppc_arch_setup): Update init_registers_... calls.
20216 (ppc_fill_gregset): Handle orig_r3 and trap.
20217
20218 * inferiors.c (clear_inferiors): Reset current_inferior.
20219
fdc59709
PB
202202008-04-23 Paolo Bonzini <bonzini@gnu.org>
20221
889bf7c5
PA
20222 * acinclude.m4: Add override.m4.
20223 * configure: Regenerate.
fdc59709 20224
c9b2f845
UW
202252008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20226
20227 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20228 initial call to init_register_ppc64.
20229
550512b8
UW
202302008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20231
43aaf8b6
PA
20232 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20233 single powerpc*-*-linux* case.
550512b8
UW
20234 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20235
b6430ec3
UW
202362008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20237
20238 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20239 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20240 from reg_xmlfiles.
20241 * linux-ppc-low.c: Include <elf.h>.
20242 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20243 (ppc_hwcap): New global variable.
20244 (ppc_regmap): Remove __SPE__ #ifdef sections.
20245 (ppc_regmap_e500): New global variable.
20246 (ppc_cannot_store_register): Update __SPE__ special case.
20247 (ppc_get_hwcap): New function.
20248 (ppc_arch_setup): Use it to determine whether inferior supports
20249 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20250 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20251 Do not access registers if target does not support AltiVec.
20252 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20253 Do not access registers if target does not support SPE.
20254 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20255
52fa2412
UW
202562008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20257
20258 * linux-low.c (disabled_regsets, num_regsets): New.
20259 (use_regsets_p): Delete.
20260 (linux_wait_for_process): Clear disabled_regsets.
20261 (regsets_fetch_inferior_registers): Check and set it.
20262 (regsets_store_inferior_registers): Likewise.
20263 (linux_fetch_registers, linux_store_registers): Do not use
20264 use_regsets_p.
20265 (initialize_low): Allocate disabled_regsets.
20266
e28b3332
DJ
202672008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20268
20269 * Makefile.in (LIBOBJS): New.
20270 (OBS): Use LIBOBJS.
20271 (memmem.o): New rule.
20272 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20273 * configure: Regenerated.
20274
4536995d
UW
202752008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20276
20277 * server.c (handle_query): Never return "unsupported" for
20278 qXfer:features:read queries.
20279
221c031f
UW
202802008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20281
20282 * server.c (get_features_xml): Fix inverted condition.
20283 (handle_query): Always support qXfer:feature:read.
20284
ccd213ac
DJ
202852008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20286
20287 * server.c (wrapper_argv): New.
20288 (start_inferior): Handle wrapper_argv. If set, expect an extra
20289 trap.
20290 (gdbserver_usage): Document --wrapper.
20291 (main): Parse --wrapper.
20292
6fe305f7
UW
202932008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20294
20295 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20296 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20297 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20298 (ppc_set_pc): Likewise.
20299 (ppc_arch_setup): New function.
20300 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20301 of collect_register.
889bf7c5 20302 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20303
5b0a002e
UW
203042008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20305
20306 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20307 instead of linux-ppc64-low.o.
20308 * linux-ppc64-low.c: Remove file.
20309 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20310 (linux-ppc64-low.o): Remove rule.
20311
20312 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20313 (init_registers_powerpc_64): Likewise.
20314 (ppc_regmap): Conditionally define depending on __powerpc64__.
20315 (ppc_cannot_store_register): Do not special-case "fpscr" when
20316 compiled on __powerpc64__.
20317 (ppc_collect_ptrace_register): New function.
20318 (ppc_supply_ptrace_register): New function.
20319 (ppc_breakpoint): Change type to "unsigned int".
20320 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20321 (the_low_target): Conditionally provide initializers for the
889bf7c5 20322 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20323 collect_ptrace_register and supply_ptrace_register members.
20324
9b4b61c8
UW
203252008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20326
20327 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20328 * server.c (gdbserver_xmltarget): Define.
20329 (get_features_xml): Use it to replace "target.xml" and arch_string.
20330
20331 * configure.srv: Remove srv_xmltarget. Add XML files that were
20332 mentioned there to srv_xmlfiles instead. Remove conditional tests
20333 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20334 srv_xmlfiles and srv_regobj to include all possible choices.
20335 * configure.ac (srv_xmltarget): Remove.
20336 (srv_xmlfiles): Do not add "target.xml".
20337 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20338 checks for supplementary target information.
20339 * configure: Regenerate.
20340 * Makefile.in (XML_TARGET): Remove.
20341 (target.xml): Remove rule.
20342 (clean): Do not clean up target.xml.
20343 (.PRECIOUS): Do not mention target.xml.
20344
20345 * target.h (struct target_ops): Remove arch_string member.
20346 * linux-low.c (linux_arch_string): Remove.
20347 (linux_target_ops): Remove arch_string initializer.
20348 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20349 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20350 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20351 * spu-low.c (spu_arch_string): Remove.
20352 (spu_target_ops): Remove arch_string initializer.
20353 * win32-low.c (win32_arch_string): Remove.
20354 (win32_target_ops): Remove arch_string initializer.
20355 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20356 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20357 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20358
ee1a7ae4
UW
203592008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20360
20361 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20362 by collect_ptrace_register and supply_ptrace_register hooks.
20363 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20364 instead of checking for the_low_target.left_pad_xfer.
20365 (usr_store_inferior_registers): Use collect_ptrace_register callback
20366 instead of checking for the_low_target.left_pad_xfer.
20367
20368 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20369 (s390_supply_ptrace_register): Likewise.
20370 (s390_fill_gregset): Call s390_collect_ptrace_register.
20371 (the_low_target): Update.
20372
20373 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20374 (ppc_supply_ptrace_register): Likewise.
20375 (the_low_target): Update.
20376
20377 * linux-i386-low.c (the_low_target): Update.
20378 * linux-x86-64-low.c (the_low_target): Update.
20379
d61ddec4
UW
203802008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20381
20382 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20383 reg-s390.o and reg-s390x.o.
20384
20385 * linux-low.c (new_inferior): New global variable.
20386 (linux_create_inferior, linux_attach): Set it.
20387 (linux_wait_for_process): Call the_low_target.arch_setup after the
20388 target has stopped for the first time.
20389 (initialize_low): Do not call the_low_target.arch_setup.
20390
20391 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20392 (s390_set_pc): Likewise.
20393 (s390_arch_setup): New function.
20394 (the_low_target): Use s390_arch_setup as arch_setup routine.
20395
20396 * regcache.c (realloc_register_cache): New function.
20397 (set_register_cache): Call it for each existing regcache.
20398
d05b4ac3
UW
203992008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20400
20401 * server.h (init_registers): Remove prototype.
20402
20403 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20404 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20405 instead of init_registers ().
20406 * linux-arm-low.c (init_registers_arm): Add prototype.
20407 (init_registers_arm_with_iwmmxt): Likewise.
20408 (the_low_target): Add initializer for arch_setup field.
20409 * linux-cris-low.c (init_registers_cris): Add prototype.
20410 (the_low_target): Add initializer for arch_setup field.
20411 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20412 (the_low_target): Add initializer for arch_setup field.
20413 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20414 (the_low_target): Add initializer for arch_setup field.
20415 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20416 (the_low_target): Add initializer for arch_setup field.
20417 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20418 (the_low_target): Add initializer for arch_setup field.
20419 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20420 (the_low_target): Add initializer for arch_setup field.
20421 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20422 (init_registers_mips64_linux): Likewise.
20423 (the_low_target): Add initializer for arch_setup field.
20424 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20425 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20426 (the_low_target): Add initializer for arch_setup field.
20427 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20428 (init_registers_powerpc_64): Likewise.
20429 (the_low_target): Add initializer for arch_setup field.
20430 * linux-s390-low.c (init_registers_s390): Add prototype.
20431 (init_registers_s390x): Likewise.
20432 (the_low_target): Add initializer for arch_setup field.
20433 * linux-sh-low.c (init_registers_sh): Add prototype.
20434 (the_low_target): Add initializer for arch_setup field.
20435 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20436 (the_low_target): Add initializer for arch_setup field.
20437 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20438 (the_low_target): Add initializer for arch_setup field.
20439
20440 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20441 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20442 instead of init_registers ().
20443 * win32-arm-low.c (init_registers_arm): Add prototype.
20444 (the_low_target): Add initializer for arch_setup field.
20445 * win32-i386-low.c (init_registers_i386): Add prototype.
20446 (the_low_target): Add initializer for arch_setup field.
20447
20448 * spu-low.c (init_registers_spu): Add prototype.
20449 (initialize_low): Call initialie_registers_spu () instead of
20450 initialize_registers ().
20451
fd96d250
PA
204522008-02-19 Pedro Alves <pedro@codesourcery.com>
20453
20454 * server.c (handle_v_requests): When handling the vRun and vAttach
20455 packets, if already debugging a process, don't kill it. Return an
20456 error instead.
20457
d41b6bb4
DJ
204582008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20459
20460 * server.c (handle_query): Correct length check.
20461
5ac588cf
PA
204622008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20463
20464 * win32-low.c (do_initial_child_stuff): Add process handle
20465 parameter. Set current_process_handle and current_process_id from the
20466 parameters. Clear globals.
20467 (win32_create_inferior): Don't set current_process_handle and
20468 current_process_id here. Instead pass them on the call to
20469 do_initial_child_stuff.
20470 (win32_attach): Likewise.
20471 (win32_clear_inferiors): New.
20472 (win32_kill): Don't close the current process handle or the
20473 current thread handle here. Instead call win32_clear_inferiors.
20474 (win32_detach): Don't open a new handle to the process. Call
20475 win32_clear_inferiors.
20476 (win32_join): Don't rely on current_process_handle; open a new
20477 handle using the process id.
20478 (win32_wait): Call win32_clear_inferiors when the inferior process
20479 has exited.
20480
ecd7ecbc
DJ
204812008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20482
20483 * server.c (monitor_show_help): Add "exit".
20484
1525d545
MG
204852008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20486
ecd7ecbc 20487 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20488 (clean): Add reg-xtensa.c.
20489 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20490 * configure.srv (xtensa*-*-linux*) New target.
20491 * linux-xtensa-low.c: New.
20492 * xtensa-xtregs.c: New.
1525d545 20493
59a016f0
PA
204942008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20495
20496 * hostio.c: Don't include errno.h.
20497 (errno_to_fileio_errno): Move to hostio-errno.
20498 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20499 error number outputting to the target->hostio_last_error callback.
20500 (hostio_packet_error): Use FILEIO_EINVAL directly.
20501 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20502 calls to hostio_error.
20503 * hostio-errno.c: New.
20504 * server.h (hostio_last_error_from_errno): Declare.
20505 * target.h (target_ops): Add hostio_last_error member.
20506 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20507 as hostio_last_error handler.
889bf7c5 20508 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20509 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20510 (wince_hostio_last_error): New functions.
20511 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20512 as hostio_last_error handler.
20513 (win32_target_ops) [!_WIN32_WCE]: Register
20514 hostio_last_error_from_errno as hostio_last_error handler.
20515 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20516 (hostio-errno.o): New rule.
20517 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20518 * configure.srv (srv_hostio_err_objs): New variable. Default to
20519 hostio-errno.o.
20520 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20521 * configure: Regenerate.
20522
2d717e4f
DJ
205232008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20524
20525 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20526 (linux_kill, linux_detach): Clean up the process list.
20527 * remote-utils.c (remote_open): Improve port number parsing.
20528 (putpkt_binary, input_interrupt): Only send interrupts if the target
20529 is running.
20530 * server.c (extended_protocol): Make static.
20531 (attached): Define earlier.
20532 (exit_requested, response_needed, program_argv): New variables.
20533 (target_running): New.
20534 (start_inferior): Clear attached here.
20535 (attach_inferior): Set attached here.
20536 (require_running): Define.
20537 (handle_query): Use require_running and target_running. Implement
20538 "monitor exit".
20539 (handle_v_attach, handle_v_run): New.
20540 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20541 (gdbserver_usage): Update.
20542 (main): Redo argument parsing. Handle --debug and --multi. Handle
20543 --attach along with other options or after the port. Save
20544 program_argv. Support no initial program. Resynchronize
20545 communication with GDB after an error. Handle "monitor exit".
20546 Use require_running and target_running. Always allow the extended
20547 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20548 restart in extended mode.
20549 * README: Refer to the GDB manual. Update --attach usage.
20550
7407e2de
AS
205512007-12-20 Andreas Schwab <schwab@suse.de>
20552
20553 * linux-low.c (STACK_SIZE): Define.
20554 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20555 (linux_test_for_tracefork): Likewise.
20556
b65d95c5
DJ
205572007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20558
20559 * linux-low.c (linux_wait_for_event): Update messages. Do not
20560 reinsert auto-delete breakpoints.
20561 * mem-break.c (struct breakpoint): Change return type of handler to
20562 int.
20563 (set_breakpoint_at): Update handler type.
20564 (reinsert_breakpoint_handler): Return 1 instead of calling
20565 delete_breakpoint.
20566 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20567 setting a new one.
20568 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20569 * mem-break.h (set_breakpoint_at): Update handler type.
20570 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20571 * win32-low.c (auto_delete_breakpoint): New.
20572 (get_child_debug_event): Use it.
20573
4e799345
DJ
205742007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20575
20576 * configure.ac: Check for pread and pwrite.
20577 * hostio.c (handle_pread): Fall back to lseek and read.
20578 (handle_pwrite): Fall back to lseek and write.
20579 * config.in, configure: Regenerated.
20580
27524b67
DJ
205812007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20582
20583 * server.c (myresume): Add own_buf argument.
20584 (main): Update calls.
20585
a20d5e98
DJ
205862007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20587
20588 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20589 * remote-utils.c (remote_open): Do not call disable_async_io.
20590 (block_async_io): Delete.
20591 (unblock_async_io): Make static.
20592 (initialize_async_io): New.
20593 * server.c (handle_v_cont): Handle async I/O here.
20594 (myresume): Likewise. Move other common resume tasks here...
20595 (main): ... from here. Call initialize_async_io. Disable async
20596 I/O before the main loop.
20597 * server.h (initialize_async_io): Declare.
20598 (block_async_io, unblock_async_io): Delete prototypes.
20599 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20600
b79d787e
DJ
206012007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20602
20603 * remote-utils.c (readchar): Allow binary data in received messages.
20604
d97903b2
PA
206052007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20606
20607 * win32-low.c (attaching): New global.
20608 (win32_create_inferior): Clear the `attaching' global.
20609 (win32_attach): Set the `attaching' global.
20610 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20611 attaching. Only set a breakpoint at the entry point if not
20612 attaching.
20613
311de423
PA
206142007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20615
20616 * server.c (main): Don't report dll events on the initial
20617 connection on attaches.
20618
6c2d16d2
PA
206192007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20620
20621 * server.c (main): Relax numerical bases supported for the pid of
20622 the --attach command line argument.
20623
5ca906e6
PA
206242007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20625
20626 * win32-low.c (win32_attach): Call OpenProcess before
20627 DebugActiveProcess, not after. Add last error output to error
20628 call.
20629
9c6c8194
PA
206302007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20631
20632 * win32-low.c (win32_get_thread_context)
20633 (win32_set_thread_context): New functions.
20634 (thread_rec): Use win32_get_thread_context.
20635 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20636 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20637 field.
20638
4d5d1aaa
PA
206392007-12-03 Leo Zayas
20640 Pedro Alves <pedro_alves@portugalmail.pt>
20641
20642 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20643 global variables.
20644 (child_add_thread): Minor cleanup.
20645 (child_continue): Resume artificially suspended threads before
20646 calling ContinueDebugEvent.
20647 (suspend_one_thread): New.
20648 (fake_breakpoint_event): New.
20649 (get_child_debug_event): Change return type to int. Check here if
20650 gdb sent an interrupt request. If a soft interrupt was requested,
20651 fake a breakpoint event. Return 0 if there is no event to handle,
20652 and 1 otherwise.
20653 (win32_wait): Don't check here if gdb sent an interrupt request.
20654 Ensure there is a valid event to handle.
20655 (win32_request_interrupt): Add soft interruption method as last
20656 resort.
20657
c436e841
PA
206582007-12-03 Leo Zayas
20659 Pedro Alves <pedro_alves@portugalmail.pt>
20660
20661 * win32-low.h (win32_thread_info): Add descriptions to the
20662 structure members. Replace `suspend_count' counter by a
20663 `suspended' flag.
20664 * win32-low.c (thread_rec): Update condition of when to get the
20665 context from the inferior. Rely on ContextFlags being set if it
20666 has already been retrieved. Only suspend the inferior thread if
20667 we haven't already. Warn if that fails.
20668 (continue_one_thread): s/suspend_count/suspended/. Only call
20669 ResumeThread once. Warn if that fails.
20670
e7b5fa67
PA
206712007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20672
20673 * win32-low.c (win32_wait): Don't read from the inferior when it
20674 has already exited.
20675
a385171d
PA
206762007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20677
20678 * Makefile.in (win32_low_h): New variable.
20679 (win32-low.o): Add dependency on $(win32_low_h).
20680 (win32-arm-low.o, win32-i386-low.o): New rules.
20681
f80c84b3
DJ
206822007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20683
20684 * hostio.c: Correct copyright year.
20685
a6b151f1
DJ
206862007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20687
20688 * Makefile.in (OBS): Add hostio.o.
20689 (hostio.o): New rule.
20690 * server.h (handle_vFile): Declare.
20691 * hostio.c: New file.
20692 * server.c (handle_v_requests): Take packet_len and new_packet_len
20693 for binary packets. Call handle_vFile.
20694 (main): Update call to handle_v_requests.
20695
f9387fc3
DJ
206962007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20697
20698 * linux-low.c: Include <sched.h>.
20699
51c2684e
DJ
207002007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20701
20702 * linux-low.c (linux_tracefork_grandchild): New.
20703 (linux_tracefork_child): Use clone.
20704 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20705
75f83163
JB
207062007-10-31 Joel Brobecker <brobecker@adacore.com>
20707
20708 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20709
da5898ce
DJ
207102007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20711
20712 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20713
24a09b5f
DJ
207142007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20715
20716 * inferiors.c (change_inferior_id): Delete.
20717 (add_pid_to_list, pull_pid_from_list): New.
20718 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20719 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20720 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20721 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20722 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20723 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20724 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20725 (using_threads): Always set to 1.
20726 (handle_extended_wait): New.
20727 (add_process): Do not set TID.
20728 (linux_create_inferior): Set must_set_ptrace_flags.
20729 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20730 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20731 (linux_thread_alive): Rename TID argument to LWPID.
20732 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20733 (linux_wait_for_event): Do not use TID or check using_threads. Update
20734 call to dead_thread_notify. Call handle_extended_wait.
20735 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20736 (send_sigstop): Delete sigstop_sent.
20737 (wait_for_sigstop): Avoid TID.
20738 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20739 (linux_test_for_tracefork): New.
20740 (linux_lookup_signals): Use thread_db_active and
20741 linux_supports_tracefork_flag.
20742 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20743 * linux-low.h (get_process_thread): Avoid TID.
20744 (struct process_ifo): Move thread_known and tid to the end. Remove
20745 sigstop_sent.
20746 (linux_attach_lwp, thread_db_init): Update prototypes.
20747 * server.h (change_inferior_id): Delete prototype.
20748 (add_pid_to_list, pull_pid_from_list): New prototypes.
20749 * thread-db.c (thread_db_use_events): New.
20750 (find_first_thread): Rename to...
20751 (find_one_thread): ...this. Update callers and messages. Do not
20752 call fatal. Check thread_db_use_events. Do not call
20753 change_inferior_id or new_thread_notify.
20754 (maybe_attach_thread): Update. Do not call new_thread_notify.
20755 (thread_db_init): Set thread_db_use_events. Check use_events.
20756 * utils.c (fatal, warning): Correct message prefix.
20757
30ed0a8f
DJ
207582007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20759
20760 * Makefile.in (clean): Remove new files.
20761 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20762 (powerpc-64.o, powerpc-64.c): New rules.
20763 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20764 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20765 with SPE.
20766 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20767 SPE targets.
20768 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20769 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20770 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20771 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20772 (target_regsets): Add AltiVec and SPE register sets.
20773 * configure.ac: Check for AltiVec and SPE.
20774 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20775 (ppc_fill_vrregset, ppc_store_vrregset): New.
20776 (target_regsets): Add AltiVec register set.
20777 * configure: Regenerated.
20778
fd462a61
DJ
207792007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20780
20781 * linux-low.c (O_LARGEFILE): Define.
20782 (linux_read_memory): Use /proc/PID/mem.
20783 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20784 * configure, config.in: Regenerated.
20785
69f223ed
DJ
207862007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20787
20788 * linux-low.c (linux_wait_for_event): Do not pass signals while
20789 single-stepping.
20790
aec18585
PA
207912007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20792
20793 * win32-low.c (create_process): New.
20794 (win32_create_inferior): Use create_process instead of
20795 CreateProcess. If create_process failed retry appending an ".exe"
20796 suffix. Store the GetLastError result immediatelly after
20797 create_process calls and use it on the call to error.
20798
34d86ddd
PA
207992007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20800
20801 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20802
5a0e3bd0
JB
208032007-08-23 Joel Brobecker <brobecker@adacore.com>
20804
20805 * configure.ac: Switch license to GPLv3.
20806
f88c79e6
MS
208072007-08-01 Michael Snyder <msnyder@access-company.com>
20808
20809 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20810
6b3d9b83
PA
208112007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20812
20813 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20814 typedef.
20815 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20816 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20817 CloseToolhelp32Snapshot.
20818 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20819 CloseToolhelp32Snapshot.
20820
c588c53c
MS
208212007-07-27 Michael Snyder <michael.snyder@access-company.com>
20822
20823 * server.c (main): Check for inferior exit before main loop.
20824
aa0403d9
PA
208252007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20826
20827 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20828 instead of on tmp_desc.
20829
255e7678
DJ
208302007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20831 Daniel Jacobowitz <dan@codesourcery.com>
20832
20833 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20834 (add_thread): Minor cleanups.
20835 (clear_inferiors): Move lower in the file. Clear the DLL
20836 list.
20837 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20838 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20839 (xml_escape_text): New.
20840 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20841 for qSupported.
20842 (handle_v_cont): Report errors.
20843 (gdbserver_version): Update.
20844 (main): Correct size of own_buf. Do not report initial DLL events.
20845 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20846 (unloaded_dll, xml_escape_text): New.
20847 * win32-low.c (enum target_waitkind): Update comments.
20848 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20849 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20850 (win32_EnumProcessModules, win32_GetModuleInformation)
20851 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20852 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20853 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20854 (win32_Module32First, win32_Module32Next, load_toolhelp)
20855 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20856 (get_child_debug_event): Handle DLL events.
20857 (win32_wait): Likewise.
20858
0d37add9
DJ
208592007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20860
20861 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20862 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20863
45e2715e
PA
208642007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20865
20866 * win32-low.c (handle_output_debug_string): Ignore event if not
20867 waiting.
20868
c5674cf1
PA
208692007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20870
20871 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20872
2bbe3cc1
DJ
208732007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20874
20875 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20876
ae13219e
DJ
208772007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20878
20879 * inferiors.c (change_inferior_id): Add comment.
20880 * linux-low.c (check_removed_breakpoint): Add an early
20881 prototype. Improve debug output.
20882 (linux_attach): Doc update.
20883 (linux_detach_one_process, linux_detach): Clean up before releasing
20884 each process.
20885 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20886 * linux-low.h (struct process_info): Doc improvement.
20887 * mem-break.c (delete_all_breakpoints): New.
20888 * mem-break.h (delete_all_breakpoints): New prototype.
20889 * thread-db.c (find_first_thread): New.
20890 (thread_db_create_event): Call it instead of
20891 thread_db_find_new_threads. Clean up unused variables.
20892 (maybe_attach_thread): Remove first thread handling.
20893 (thread_db_find_new_threads): Use find_first_thread.
20894 (thread_db_get_tls_address): Likewise.
20895
4105de34
DJ
208962007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20897
20898 * thread-db.c (thread_db_find_new_threads): Add prototype.
20899 (thread_db_create_event): Check for the main thread before adding
20900 a new thread.
20901 (maybe_attach_thread): Only enable event reporting if TID == 0.
20902 (thread_db_get_tls_address): Check for new threads.
20903
2b876972
DJ
209042007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20905
20906 * linux-low.c (linux_create_inferior): Try execv before execvp.
20907 * spu-low.c (spu_create_inferior): Likewise.
20908
7a245884
DJ
209092007-06-13 Mike Frysinger <vapier@gentoo.org>
20910
20911 * linux-low.c (linux_create_inferior): Change execv to execvp.
20912 * spu-low.c (spu_create_inferior): Likewies.
20913
117ce543
DJ
209142007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20915
20916 * Makefile.in (clean): Clean new files instead of deleted ones.
20917 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20918 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20919 rules.
20920 * configure.srv: Specify XML files and new regformats for MIPS and
20921 MIPS64 GNU/Linux.
20922 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20923 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20924 an entry for the restart register.
20925 (mips_cannot_fetch_register, mips_cannot_store_register)
20926 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20927 register names to match the XML descriptions.
20928 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20929 restart register instead of $0.
20930
0e7f50da
UW
209312007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20932 Markus Deuling <deuling@de.ibm.com>
20933
20934 * remote-utils.c (decode_xfer_write): New function.
20935 * server.h (decode_xfer_write): Add prototype.
20936 * server.c (handle_query): Add PACKET_LEN argument. Support
20937 qXfer:spu:read and qXfer:spu:write packets.
20938 (main): Pass packet_len to handle_query.
20939 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20940 * target.h (target_ops): Add qxfer_spu.
20941
374c1d38
UW
209422007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20943
20944 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20945 accessing non-seekable spufs files.
20946
bb63802a
UW
209472007-05-16 Markus Deuling <deuling@de.ibm.com>
20948
889bf7c5 20949 * server.c (handle_query): Add reply for qC packet.
bb63802a 20950
7390519e
PA
209512007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20952 Leo Zayas <lerele@champenstudios@com>
20953
20954 * server.h (check_remote_input_interrupt_request): New function.
20955 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20956 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20957 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20958 (check_remote_input_interrupt_request): New function.
20959 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20960 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20961 winapi_GenerateConsoleCtrlEvent): New typedefs.
20962 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20963 to 250 ms.
20964 (win32_wait): Check for remote interrupt request
20965 with check_remote_input_interrupt_request.
20966 (win32_request_interrupt): New function.
20967 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20968
34b34921
PA
209692007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20970
20971 * win32-low.c (debug_registers_changed,
20972 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20973 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20974 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20975 (thread_rec): Get context using the low target.
20976 (child_add_thread): Call thread_added on the low target,
20977 which does the same thing.
20978 (regptr): Delete.
20979 (do_initial_child_stuff): Remove debug registers references.
20980 Set context using the low target. Resume threads after
20981 setting the contexts.
20982 (child_continue): Remove dead variable. Remove debug
20983 registers references.
20984 (child_fetch_inferior_registers): Go through the low target.
20985 (do_child_store_inferior_registers): Remove.
20986 (child_store_inferior_registers): Go through the low target.
20987 (win32_resume): Remove debug registers references.
20988 Set context using the low target.
20989 (handle_exception): Change return type to void. Don't record
20990 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20991 first chance exception.
889bf7c5 20992 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20993 goto loop. Always return after waiting for debug event.
20994 (win32_wait): Convert to switch statement. Handle spurious
20995 events.
20996
20997 * win32-i386-low.c (debug_registers_changed,
20998 debug_registers_used): New.
20999 (initial_stuff): Rename to ...
21000 (i386_initial_stuff): ... this. Clear debug registers
21001 state variables.
21002 (store_debug_registers): Delete.
21003 (i386_get_thread_context): New.
21004 (load_debug_registers): Delete.
21005 (i386_set_thread_context): New.
21006 (i386_thread_added): New.
21007 (single_step): Rename to ...
21008 (i386_single_step): ... this.
21009 (do_fetch_inferior_registers): Rename to ...
21010 (i386_fetch_inferior_register): ... this.
21011 (i386_store_inferior_register): New.
21012 (the_low_target): Adapt to new interface.
21013
21014 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21015 (arm_get_thread_context): New.
21016 (arm_set_thread_context): New.
21017 (regptr): New.
21018 (do_fetch_inferior_registers): Rename to ...
21019 (arm_fetch_inferior_register): ... this.
21020 (arm_store_inferior_register): New.
21021 (arm_wince_breakpoint): Reimplement as unsigned long.
21022 (arm_wince_breakpoint_len): Define.
21023 (the_low_target): Adapt to new interface.
21024
21025 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21026 load_debug_registers. Add get_thread_context, set_thread_context,
21027 thread_added and store_inferior_register. Rename
21028 fetch_inferior_registers to fetch_inferior_register.
21029 (regptr): Remove declaration.
21030
dd6953e1
PA
210312007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21032
21033 * linux-low.c (linux_detach): Change return type to int. Return 0.
21034 * spu-low.c (spu_detach): Likewise.
21035
444d6139
PA
210362007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21037
21038 * target.h (target_ops): Change return type of detach to int.
21039 Add join.
21040 (join_inferior): New.
21041 * server.c (main): Don't skip detach support on mingw32.
21042 If the inferior doesn't support detaching return error.
21043 Call join_inferior instead of using waitpid.
21044 * linux-low.c (linux_join): New.
21045 (linux_target_op): Add linux_join.
21046 * spu-low.c (spu_join): New.
21047 (spu_target_ops): Add spu_join.
21048 * win32-low.c (win32_detach): Adapt to new interface.
21049 Reopen current_process_handle before detaching. Issue a child
21050 resume before detaching.
21051 (win32_join): New.
21052 (win32_target_op): Add win32_join.
21053
1d5315fe
PA
210542007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21055
21056 * win32-low.c (win32-attach): Fix return value.
21057 * target.h (target_ops): Describe ATTACH return values.
21058
bf914831
PA
210592007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21060
21061 * win32-low.c (GETPROCADDRESS): Define.
21062 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21063 (winapi_DebugSetProcessKillOnExit): Likewise.
21064 (win32_create_inferior): Force usage of ansi CreateProcessA.
21065 (win32_attach): Use GETPROCADDRESS.
21066 (win32_detach): Likewise.
21067
f72f3e60
PA
210682007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21069
21070 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21071
ed50f18f
PA
210722007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21073
21074 * win32-low.c: Commit leftover changes from 2007-03-29.
21075
0c2ead7e
DJ
210762007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21077
21078 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21079 fields short instead of int. Add explicit padding.
21080 (i387_cache_to_fsave): Remove unnecessary casts.
21081 (i387_fsave_to_cache): Doc fix.
21082 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21083
73725ff3
DJ
210842007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21085
21086 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21087 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21088
d99f33d8
PA
210892007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21090
21091 * configure.srv (arm*-*-mingw32ce*): Move near the other
21092 arm targets.
21093
68070c10
PA
210942007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21095
2482afc6 21096 * configure.ac: Add errno checking.
68070c10
PA
21097 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21098 sys/file.h and malloc.h.
21099 (AC_CHECK_DECLS): Add perror.
21100 (srv_mingwce): Handle.
2482afc6 21101 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21102 win32-i386-low.o to srv_tgtobj.
21103 (i[34567]86-*-mingw*): Likewise.
21104 (arm*-*-mingw32ce*): Add case.
21105 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21106 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21107 [__MINGW32CE__] (strerror): New function.
21108 [__MINGW32CE__] (errno): Define to GetLastError.
21109 [__MINGW32CE__] (COUNTOF): New macro.
21110 (remote_open): Remove extra close call.
21111 * mem-break.c (delete_breakpoint_at): New function.
21112 * mem-break.h (delete_breakpoint_at): Declare.
21113 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21114 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21115 [USE_WIN32API] (read, write): Add char* casts.
21116 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21117 * server.h: Include wincecompat.h on Windows CE.
21118 [HAVE_ERRNO_H]: Check.
21119 (perror): Declare if not declared.
21120 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21121 (perror_with_name): Remove errno declaration.
21122 * wincecompat.h: New.
21123 * wincecompat.c: New.
21124 * win32-low.h: New.
21125 * win32-arm-low.c: New.
21126 * win32-i386-low.c: New.
21127 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21128 (OUTMSG2): Make it safe.
21129 (_T): New macro.
21130 (COUNTOF): New macro.
21131 (NUM_REGS): Get it from the low target.
21132 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21133 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21134 (thread_rec): Let low target handle debug registers.
21135 (child_add_thread): Likewise.
21136 (child_init_thread_list): Likewise.
21137 (continue_one_thread): Likewise.
21138 (regptr): New.
21139 (do_child_fetch_inferior_registers): Move to ...
21140 * win32-i386-low.c: ... here, and rename to ...
21141 (do_fetch_inferior_registers): ... this.
889bf7c5 21142 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21143 Go through the low target.
21144 (do_child_store_inferior_registers): Use regptr.
21145 (strwinerror): New function.
21146 (win32_create_inferior): Handle Windows CE.
21147 Use strwinerror instead of strerror on Windows error
21148 codes. Add program to the error output.
21149 Don't close the main thread handle on Windows CE.
21150 (win32_attach): Use coredll.dll on Windows CE.
21151 (win32_kill): Close current process and current
21152 thread handles.
21153 (win32_detach): Use coredll.dll on Windows CE.
21154 (win32_resume): Let low target handle debug registers, and
21155 step request.
21156 (handle_exception): Add/Remove initial breakpoint. Avoid
21157 non-existant WSTOPSIG on Windows CE.
21158 (win32_read_inferior_memory): Cast to remove warning.
21159 (win32_arch_string): Go through the low target.
21160 (initialize_low): Call set_breakpoint_data with the low
21161 target's breakpoint.
21162 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21163 FOP_REGNUM, mappings): Move to ...
21164 * win32-i386-low.c: ... here.
21165 * win32-low.c (win32_thread_info): Move to ...
21166 * win32-low.h: ... here.
21167 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21168 win32-arm-low.c and wincecompat.c.
21169 (all:): Add $EXEEXT.
21170 (install-only:): Likewise.
21171 (gdbserver:): Likewise.
21172 (gdbreplay:): Likewise.
21173 * config.in: Regenerate.
21174 * configure: Regenerate.
21175
41093d81
PA
211762007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21177
21178 * win32-low.c: Rename typedef thread_info to
21179 win32_thread_info throughout.
21180
544afa54
PA
211812007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21182
21183 * win32-i386-low.c: Rename to ...
21184 * win32-low.c: ... this.
21185 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21186 * Makefile.in: Likewise.
21187
bce7165d
PA
211882007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21189
21190 * remote-utils.c (monitor_output): Constify msg parameter.
21191 * server.h (monitor_output): Likewise.
21192 * win32-i386-low.c (handle_output_debug_string): New.
21193 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21194 handle_output_debug_string.
21195 (get_child_debug_event): Likewise.
21196
506c7aa0
DJ
211972007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21198
21199 * server.c (main): Correct strtoul check.
21200
42c81e2a
DJ
212012007-03-27 Jon Ringle <jon@ringle.org>
21202
21203 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21204
9453113a
DJ
212052007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21206
21207 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21208
64a69107
DJ
212092007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21210
21211 * terminal.h: Check HAVE_SGTTY_H.
21212
212132007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21214
21215 * remote-utils.c (remote_open): Print out the assigned port number.
21216
c74d0ad8
DJ
212172007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21218
21219 * remote-utils.c (monitor_output): New function.
21220 * server.c (debug_threads): Define here.
21221 (monitor_show_help): New function.
21222 (handle_query): Handle qRcmd.
21223 (main): Do not handle 'd' packet.
21224 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21225 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21226 of debug_threads.
21227
de7c3b4a
PA
212282007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21229
21230 * Makefile.in (EXEEXT): New.
21231 (clean): Use $(EXEEXT).
21232
ef57601b
PA
212332007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21234
21235 * target.h (target_ops): Rename send_signal to request_interrupt,
21236 and remove enum target_signal parameter.
21237 * linux-low.c (linux_request_interrupt): Rename from
21238 linux_send_signal, and always send SIGINT.
21239 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21240 and always send SIGINT.
21241 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21242 of send_signal.
21243 (input_interrupt): Likewise.
21244
820f2bda
PA
212452007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21246
21247 * server.c (get_features_xml): Check if target implemented
21248 arch_string.
21249 * win32-i386-low.c (win32_arch_string): New.
21250 (win32_target_ops): Add win32_arch_string as arch_string member.
21251
ab39bf24
UW
212522007-02-22 Markus Deuling <deuling@de.ibm.com>
21253
21254 * spu-low.c (spu_arch_string): New.
21255 (spu_target_ops): Add spu_arch_string.
21256
61ff6e04
DJ
212572007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21258
21259 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21260 * configure.ac: Do not check for terminal.h.
21261 * configure, config.in: Regenerated.
21262
fb1e4ffc
DJ
212632007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21264
21265 * Makefile.in (OBS): Add $(XML_BUILTIN).
21266 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21267 (clean): Update.
21268 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21269 (arm-with-iwmmxt.c): New.
21270 * config.in, configure: Regenerate.
21271 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21272 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21273 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21274 (arm*-*-linux*): Add iWMMXt and regset support.
21275 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21276 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21277 (arm_store_wmmxregset, target_regsets): New.
21278 * server.c (get_features_xml): Take annex argument. Check builtin
21279 XML documents.
21280 (handle_query): Handle multiple annexes.
21281
0f48aa01
DJ
212822007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21283
21284 * remote-utils.c [USE_WIN32API] (read, write): Define.
21285 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21286 write.
21287
23181151
DJ
212882007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21289
21290 * linux-i386-low.c (the_low_target): Set arch_string.
21291 * linux-x86-64-low.c (the_low_target): Likewise.
21292 * linux-low.c (linux_arch_string): New.
21293 (linux_target_ops): Add it.
21294 * linux-low.h (struct linux_target_ops): Add arch_string.
21295 * server.c (write_qxfer_response): Use const void * for DATA.
21296 (get_features_xml): New.
21297 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21298 * target.h (struct target_ops): Add arch_string method.
21299
9d606399
DJ
213002007-01-03 Denis Pilat <denis.pilat@st.com>
21301 Daniel Jacobowitz <dan@codesourcery.com>
21302
21303 * linux-low.c (linux_kill): Handle being called with no threads.
21304 * win32-i386-low.c (win32_kill): Likewise.
21305 (get_child_debug_event): Clear current_process_handle.
21306
213072006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21308 Daniel Jacobowitz <dan@codesourcery.com>
21309
21310 * remote-utils.c (remote_open): Check the type of specified
21311 serial port devices before opening them.
21312 * server.c (main): Kill the inferior if an error occurs during
21313 the first remote_open.
21314
a5e13d24
DJ
213152006-12-05 Markus Deuling <deuling@de.ibm.com>
21316
21317 * README: Update supported targets.
21318
186947f7
DJ
213192006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21320
21321 * Makefile.in (clean): Remove reg-mips64.c.
21322 (reg-mips64.c, reg-mips64.o): New rules.
21323 * configure.srv: Handle mips64. Include regset support for mips.
21324 * linux-mips-low.c (union mips_register): New.
21325 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21326 (mips_breakpoint, mips_breakpoint_at): Use int.
21327 (mips_collect_register, mips_supply_register)
21328 (mips_collect_register_32bit, mips_supply_register_32bit)
21329 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21330 (mips_store_fpregset, target_regsets): New.
21331 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21332
a13e2c95
UW
213332006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21334
21335 * configure.srv: Add target "spu*-*-*".
21336 * Makefile.in (clean): Remove reg-spu.c.
21337 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21338 * spu-low.c: New file.
21339
cb7283db
DJ
213402006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21341
21342 * configure.ac: Correct td_thr_tls_get_addr test.
21343 * configure: Regenerated.
21344
89be2091
DJ
213452006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21346
21347 * linux-low.c (linux_wait_for_event): Reformat. Use the
21348 pass_signals array.
21349 * remote-utils.c (decode_address_to_semicolon): New.
21350 * server.c (pass_signals, handle_general_set): New.
21351 (handle_query): Mention QPassSignals for qSupported.
21352 (main): Call handle_general_set.
21353 * server.h (pass_signals, decode_address_to_semicolon): New.
21354
000ef4f0
DJ
213552006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21356
21357 * server.c (handle_query): Correct error handling for read_auxv.
21358
b7149293
UW
213592005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21360
21361 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21362 and srv_linux_thread_db to yes.
21363 * linux-s390-low.c (s390_fill_gregset): New function.
21364 (target_regsets): Define data structure.
21365
dae5f5cf
DJ
213662006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21367
21368 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21369 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21370 * config.in, configure: Regenerated.
21371 * inferiors.c (gdb_id_to_thread): New function.
21372 (gdb_id_to_thread_id): Use it.
21373 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21374 * linux-low.h (struct process_info): Add th member.
21375 (thread_db_get_tls_address): New prototype.
21376 * remote-utils.c (decode_address): Make non-static.
21377 * server.c (handle_query): Handle qGetTLSAddr.
21378 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21379 * target.h (struct target_ops): Add get_tls_address.
21380 * thread-db.c (maybe_attach_thread): Save the thread handle.
21381 (thread_db_get_tls_address): New.
21382
32ca6d61
DJ
213832006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21384
21385 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21386 (linux_resume_one_process): Take a siginfo_t *. Update all
21387 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21388 (struct pending_signals): Add a siginfo_t.
21389 (linux_wait_for_process): Always set last_status.
21390 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21391 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21392 * linux-low.h (struct process_info): Add last_status.
21393
5ffff7c1
DJ
213942006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21395
21396 * remote-utils.c (try_rle): New function.
21397 (putpkt_binary): Use it.
21398
8695c747
DJ
213992006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21400
21401 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21402 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21403 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21404 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21405 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21406 point registers.
21407
290fadea
RS
214082006-08-08 Richard Sandiford <richard@codesourcery.com>
21409
21410 * server.c (terminal_fd): New variable.
21411 (old_foreground_pgrp): Likewise.
21412 (restore_old_foreground_pgrp): New function.
21413 (start_inferior): Record the terminal file descriptor in terminal_fd
21414 and its original foreground group in old_foreground_pgrp. Register
21415 restore_old_foreground_pgrp with atexit().
21416
9f2e1e63
DJ
214172006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21418
21419 * server.c (handle_query): Correct qPart to qXfer.
21420
b80864fb
DJ
214212006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21422
21423 * configure.ac: Check for more headers which are missing on
21424 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21425 * configure.srv: Add Cygwin and mingw32.
21426 * remote-utils.c: Don't include headers unconditionally which
21427 are missing on mingw32. Include <winsock.h> for mingw32.
21428 (remote_open): Adjust for mingw32 support. Flush
21429 standard error after writing to it.
21430 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21431 (unblock_async_io, enable_async_io, disable_async_io)
21432 (readchar, getpkt): Update for Winsock support.
21433 (prepare_resume_reply): Expect a protocol signal number.
21434 * server.c: Disable <sys/wait.h> on mingw32.
21435 (start_inferior): Adjust for mingw32 support. Flush
21436 standard error after writing to it.
21437 (attach_inferior): Likewise. Use protocol signal
21438 numbers.
21439 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21440 and names.
21441 * win32-i386-low.c: New file.
21442 * Makefile.in (XM_CLIBS): Set.
21443 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21444 (win32-i386-low.o): New dependency rule.
21445 * linux-low.c (linux_wait): Use target signal numbers.
21446 * target.h (struct target_ops): Doc fix.
21447 * server.h (target_signal_to_name): New prototype.
21448 * gdbreplay.c: Don't include headers unconditionally which
21449 are missing on mingw32. Include <winsock.h> for mingw32.
21450 (remote_close, remote_open): Adjust for Winsock support.
21451 * configure, config.in: Regenerated.
21452
0876f84a
DJ
214532006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21454
21455 * server.c (decode_xfer_read, write_qxfer_response): New.
21456 (handle_query): Take a packet length argument. Handle
21457 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21458 the qSupported response.
21459 (main): Update call to handle_query.
21460
01f9e8fa
DJ
214612006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21462
21463 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21464 (putpkt_binary): Renamed from putpkt and adjusted for binary
21465 data.
21466 (putpkt): New wrapper for putpkt_binary.
21467 (readchar): Don't mask off the high bit.
21468 (decode_X_packet): New function.
21469 * server.c (main): Call putpkt_binary if a handler sets the packet
21470 length. Save the length of the incoming packet. Handle 'X'.
21471 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21472
be2a5f71
DJ
214732006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21474
21475 * server.c (handle_query): Handle qSupported.
21476
ea025f5f
DJ
214772006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21478
21479 * remote-utils.c (all_symbols_looked_up): New variable.
21480 (look_up_one_symbol): Check it.
21481 * server.h (look_up_one_symbol): New declaration.
21482 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21483
9308fc88
DJ
214842006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21485
21486 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21487 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21488 (PTRACE_GET_THREAD_AREA): Define.
21489 (ps_get_thread_area): New function.
21490
52fb6437
NS
214912006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21492
21493 * configure.srv (m68k*-*-uclinux*): New target.
21494 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21495 (linux_resume_one_process): Remove extraneous cast.
21496 (linux_read_offsets): New.
21497 (linux_target_op): Add linux_read_offsets on mmuless systems.
21498 * server.c (handle_query): Add qOffsets logic.
21499 * target.h (struct target_ops): Add read_offsets.
21500
21b0f40c
DJ
215012006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21502
21503 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21504 (PTRACE_GET_THREAD_AREA): Define.
21505 (ps_get_thread_area): New function.
21506 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21507 (linux-x86-64-low.o): Update.
21508
0050a760
DJ
215092006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21510
21511 * configure.ac: Remove checks for prfpregset_t.
21512 * gdb_proc_service.h: New file.
21513 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21514 new "gdb_proc_service.h".
21515 * proc-service.c: Likewise.
21516 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21517 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21518 * Makefile.in (gdb_proc_service_h): Updated.
21519 * configure, config.in: Regenerated.
21520
b92a518e
DJ
215212006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21522
21523 * remote-utils.c (prepare_resume_reply): Move declaration
21524 of gdb_id_from_wait to the top of the block.
21525
545587ee
DJ
215262006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21527
21528 * linux-low.c (regsets_store_inferior_registers): Read the regset
21529 from the target before filling it.
21530
9db87ebd
DJ
215312006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21532
21533 * server.c (attach_inferior): Return SIGTRAP for a successful
21534 attach.
21535
dd24457d
DJ
215362006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21537
21538 * Makefile.in (OBS): Add version.o.
21539 (STAGESTUFF): Delete.
21540 (version.o): Add dependencies.
21541 (version.c): Replace rule.
21542 (clean): Remove version.c.
21543 * server.c (gdbserver_version): New.
21544 (gdbserver_usage): Use printf.
21545 (main): Handle --version and --help.
21546 * server.h (version, host_name): Add declarations.
21547
6f0f660e
EZ
215482005-12-23 Eli Zaretskii <eliz@gnu.org>
21549
889bf7c5
PA
21550 * linux-arm-low.c:
21551 * linux-arm-low.c:
21552 * inferiors.c:
21553 * i387-fp.h:
21554 * i387-fp.c:
21555 * gdbreplay.c:
21556 * regcache.c:
21557 * proc-service.c:
21558 * mem-break.h:
21559 * mem-break.c:
21560 * linux-x86-64-low.c:
21561 * linux-sh-low.c:
21562 * linux-s390-low.c:
21563 * linux-ppc64-low.c:
21564 * linux-ppc-low.c:
21565 * linux-mips-low.c:
21566 * linux-m68k-low.c:
21567 * linux-m32r-low.c:
21568 * linux-low.h:
21569 * linux-low.c:
21570 * linux-ia64-low.c:
21571 * linux-i386-low.c:
21572 * linux-crisv32-low.c:
21573 * thread-db.c:
21574 * terminal.h:
21575 * target.h:
21576 * target.c:
21577 * server.h:
21578 * server.c:
21579 * remote-utils.c:
21580 * regcache.h:
21581 * utils.c:
21582 * Makefile.in:
21583 * configure.ac:
6f0f660e
EZ
21584 * gdbserver.1: Add (C) after Copyright. Update the FSF
21585 address.
21586
9d1fb177
DJ
215872005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21588
21589 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21590 (arm_breakpoint_at): Recognize both breakpoints.
21591 (the_low_target): Use the correct breakpoint instruction.
21592
011a70c2
DJ
215932005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21594
21595 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21596 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21597 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21598 (the_low_target): Update.
21599
7fb85e41
AS
216002005-10-25 Andreas Schwab <schwab@suse.de>
21601
21602 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21603
21604 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21605 (ia64_num_regs): Reduce to 462.
21606
3db0444b
DJ
216072005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21608
21609 * acinclude.m4: Correct quoting.
21610 * aclocal.m4: Regenerated.
21611
21612 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21613 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21614 (thread_db_init): Call thread_db_err_str.
21615 * configure.ac: Check for TD_VERSION.
21616 * config.in, configure: Regenerated.
21617
bee0189a
DJ
216182005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21619
21620 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21621
e9d25b98
DJ
216222005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21623
21624 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21625 is not available. Define HAVE_PTRACE_GETREGS if it is.
21626 * config.in, configure: Regenerated.
21627 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21628 * linux-i386-low.c, linux-m68k-low.c: Update to use
21629 HAVE_PTRACE_GETREGS.
21630 * linux-low.c (regsets_fetch_inferior_registers)
21631 (regsets_store_inferior_registers): Only return 0 if we processed
21632 GENERAL_REGS.
21633 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21634 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21635
a06660f7
DJ
216362005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21637
21638 * inferiors.c (struct thread_info): Add gdb_id.
21639 (add_thread): Add gdb_id argument.
21640 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21641 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21642 calls to add_thread.
21643 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21644 * server.c (handle_query): Use thread_to_gdb_id.
21645 (handle_v_cont, main): Use gdb_id_to_thread_id.
21646 * server.h (add_thread): Update prototype.
21647 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21648 prototypes.
21649
5a1f5858
DJ
216502005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21651
21652 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21653 left-padded registers.
21654 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21655 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21656
e122f1f5
SE
216572005-07-01 Steve Ellcey <sje@cup.hp.com>
21658
21659 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21660 * configure: Regenerate.
21661 * config.in: Regenerate.
21662 * server.h (NEED_DECLARATION_STRERROR):
21663 Replace with !HAVE_DECL_STRERROR.
21664
d592fa2f
DJ
216652005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21666
21667 * linux-low.c (linux_wait, linux_send_signal): Don't test
21668 an unsigned long variable for > 0 if it could be MAX_ULONG.
21669 * server.c (myresume): Likewise.
21670 * target.c (set_desired_inferior): Likewise.
21671
ccbd4912
MK
216722005-06-13 Mark Kettenis <kettenis@gnu.org>
21673
21674 * configure.ac: Simplify and improve check for socklen_t.
21675 * configure, config.in: Regenerate.
21676
f450004a
DJ
216772005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21678
21679 * acconfig.h: Remove.
21680 * configure.ac: Add a test for socklen_t. Use three-argument
21681 AC_DEFINE throughout.
21682 * config.in: Regenerated using autoheader 2.59.
21683 * configure: Regenerated.
21684
21685 * gdbreplay.c (socklen_t): Provide a default.
21686 (remote_open): Use socklen_t.
21687 * remote-utils.c (socklen_t): Provide a default.
21688 (remote_open): Use socklen_t.
21689 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21690 unsigned char.
21691
21692 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21693 char for buffers.
21694 * linux-low.c (linux_read_memory, linux_write_memory)
21695 (linux_read_auxv): Likewise.
21696 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21697 (check_mem_write): Likewise.
21698 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21699 Likewise.
21700 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21701 (registers_from_string, register_data): Likewise.
21702 * server.c (handle_query, main): Likewise.
21703 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21704 (decode_M_packet): Likewise.
21705 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21706 * target.h (struct target_ops): Update read_memory, write_memory,
21707 and read_auxv.
21708 (read_inferior_memory, write_inferior_memory): Update.
21709 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21710 to unsigned char *.
21711 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21712 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21713 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21714 linux-s390-low.c, linux-sh-low.c: Update for changes in
21715 read_inferior_memory and the_low_target->breakpoint.
21716
eee84df1
DJ
217172005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21718
21719 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21720 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21721 * configure.srv: Add powerpc64-*-linux*.
21722 * linux-ppc64-low.c: New file.
21723
45b134e5
OF
217242005-05-23 Orjan Friberg <orjanf@axis.com>
21725
21726 * linux-cris-low.c: New file with support for CRIS.
21727 * linux-crisv32-low.c: Ditto for CRISv32.
21728 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21729 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21730 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21731 reg-crisv32.o, and reg-crisv32.c to make rules.
21732 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21733 recognized targets.
21734
48d93c75
UW
217352005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21736
21737 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21738 of sizeof (PTRACE_XFER_TYPE).
21739 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21740
e013ee27
OF
217412005-05-12 Orjan Friberg <orjanf@axis.com>
21742
889bf7c5 21743 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21744 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21745 pointers for hardware watchpoint support.
21746 * linux-low.h (struct linux_target_ops): Ditto.
21747 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21748 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21749 to linux_target_ops.
21750 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21751 reply packet.
21752 * server.c (main): Recognize 'Z' and 'z' packets.
21753
b0ded00b
UW
217542005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21755
21756 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21757 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21758 (the_low_target): Add new members.
21759
8643e2ad
DJ
217602005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21761
21762 * proc-service.c (ps_lgetregs): Search all_processes instead of
21763 all_threads.
21764
fc620387
DJ
217652005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21766
21767 * server.c (start_inferior): Change return type to int.
21768 (attach_inferior): Change sigptr to int *.
21769 (handle_v_cont, handle_v_requests): Change signal to int *.
21770 (main): Change signal to int.
21771
217722005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21773
21774 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21775 * configure.srv: Add m32r*-*-linux*.
21776 * linux-m32r-low.c: New file.
21777
e0e76420
DJ
217782005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21779
21780 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21781
a1928bad
DJ
217822005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21783
21784 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21785 Take unsigned long arguments for PIDs.
21786 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21787 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21788 (wait_for_sigstop, linux_resume_one_process)
21789 (regsets_fetch_inferior_registers, linux_send_signal)
21790 (linux_read_auxv): Likewise. Update the types of variables holding
21791 PIDs. Update format string specifiers.
21792 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21793 * remote-utils.c (prepare_resume_reply): Likewise.
21794 * server.c (cont_thread, general_thread, step_thread)
21795 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21796 unsigned long.
21797 (handle_query): Update format specifiers.
21798 (handle_v_cont, main): Use strtoul for thread IDs.
21799 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21800 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21801 (general_thread, step_thread, thread_from_wait)
21802 (old_thread_from_wait): Update.
21803 * target.h (struct thread_resume): Use unsigned long for THREAD.
21804 (struct target_ops): Use unsigned long for arguments to attach and
21805 thread_alive.
21806
dcdb98d2
DJ
218072005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21808
21809 * acinclude.m4: Include bfd/bfd.m4 directly.
21810 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21811 <agriffis@toolchain.org>.
21812 * aclocal.m4, configure: Regenerated.
21813
bec39cab
AC
218142005-01-07 Andrew Cagney <cagney@gnu.org>
21815
21816 * configure.ac: Rename configure.in, require autoconf 2.59.
21817 * configure: Re-generate.
21818
434c4c77
DJ
218192004-12-08 Daniel Jacobowitz <dan@debian.org>
21820
21821 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21822 LIBS when finished.
21823 * aclocal.m4: Regenerated.
21824 * configure: Regenerated.
21825
db1d3e1b
AS
218262004-11-21 Andreas Schwab <schwab@suse.de>
21827
21828 * linux-m68k-low.c (m68k_num_gregs): Define.
21829 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21830 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21831 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21832 (m68k_breakpoint_at): New. Add to the_low_target.
21833
21834 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21835 srv_linux_thread_db to yes.
21836
43360365
JB
218372004-10-20 Joel Brobecker <brobecker@gnat.com>
21838
21839 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21840 (ARCH_SET_FS): Likewise.
21841 (ARCH_GET_FS): Likewise.
21842 (ARCH_GET_GS): Likewise.
21843
fd500816
DJ
218442004-10-16 Daniel Jacobowitz <dan@debian.org>
21845
21846 * linux-i386-low.c (ps_get_thread_area): New.
21847 * linux-x86-64-low.c (ps_get_thread_area): New.
21848 * linux-low.c: Include <sys/syscall.h>.
21849 (linux_kill_one_process): Don't kill the first thread here.
21850 (linux_kill): Kill the first thread here.
21851 (kill_lwp): New function.
21852 (send_sigstop, linux_send_signal): Use it.
21853 * proc-service.c: Clean up #ifdefs.
21854 (fpregset_info): Delete.
21855 (ps_lgetregs): Update and enable implementation.
21856 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21857 implementations.
21858 * remote-utils.c (struct sym_cache, symbol_cache): New.
21859 (input_interrupt): Print a clearer message.
21860 (async_io_enabled): New variable.
21861 (enable_async_io, disable_async_io): Use it. Update comments.
21862 (look_up_one_symbol): Use the symbol cache.
21863 * thread-db.c (thread_db_look_up_symbols): New function.
21864 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21865
f6de3c42
DJ
218662004-10-16 Daniel Jacobowitz <dan@debian.org>
21867
21868 * configure.in: Test for -rdynamic.
21869 * configure: Regenerated.
21870 * Makefile (INTERNAL_LDFLAGS): New.
21871 (gdbserver, gdbreplay): Use it.
21872
2c0fc042
AC
218732004-09-02 Andrew Cagney <cagney@gnu.org>
21874
21875 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21876
075b3282
DJ
218772004-03-23 Daniel Jacobowitz <drow@mvista.com>
21878
21879 * linux-low.c (linux_wait): Clear all_processes list also.
21880
fa6a77dc
DJ
218812004-03-12 Daniel Jacobowitz <drow@mvista.com>
21882
21883 * linux-low.c: Include <errno.h>. Remove extern declaration of
21884 errno.
21885
6d782a97
DJ
218862004-03-12 Daniel Jacobowitz <drow@mvista.com>
21887
21888 * gdbreplay.c, server.h, utils.c: Update copyright years.
21889
3a7fb99b
DJ
218902004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21891
21892 * server.c (main): Print child status or termination signal from
21893 variable 'signal', not 'sig'.
21894
c3e735a6
DJ
218952004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21896
21897 * linux-low.c (linux_read_memory): Change return type to
21898 int. Check for and return error from ptrace().
21899 * target.c (read_inferior_memory): Change return type to int. Pass
21900 back return status from the_target->read_memory().
21901 * target.h (struct target_ops): Adapt *read_memory() prototype.
21902 Update comment.
21903 (read_inferior_memory): Adapt prototype.
21904 * server.c (main): Return an error packet if
21905 read_inferior_memory() returns an error.
21906
a59d1c82
DJ
219072004-03-04 Daniel Jacobowitz <drow@mvista.com>
21908
21909 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21910 Unify with other clean targets.
21911
dc3f8883
DJ
219122004-02-29 Daniel Jacobowitz <drow@mvista.com>
21913
21914 * server.c (handle_v_cont): Call set_desired_inferior.
21915
89a208da
DJ
219162004-02-29 Daniel Jacobowitz <drow@mvista.com>
21917
21918 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21919
62ea82f5
DJ
219202004-02-29 Daniel Jacobowitz <drow@mvista.com>
21921
21922 * linux-low.c (linux_wait): Unblock async I/O.
21923 (linux_resume): Block and enable async I/O.
21924 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21925 * server.h (block_async_io, unblock_async_io): Add prototypes.
21926
6910d122
DJ
219272004-02-29 Daniel Jacobowitz <drow@mvista.com>
21928
21929 * remote-utils.c (remote_open): Print a status notice after
21930 opening a TCP port.
21931 * server.c (attach_inferior): Print a status notice after
21932 attaching.
21933
219342004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21935
21936 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21937
c89dc5d4
DJ
219382004-02-26 Daniel Jacobowitz <drow@mvista.com>
21939
21940 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21941 error packet.
21942 * server.c, target.h: Update copyright years.
21943
4b8dad4a
RM
219442004-02-25 Roland McGrath <roland@redhat.com>
21945
21946 * target.h (struct target_ops): New member `read_auxv'.
21947 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21948 * linux-low.c (linux_read_auxv): New function.
21949 (linux_target_ops): Initialize `read_auxv' member to that.
21950
d7446758
JB
219512004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21952
21953 Committed by Jim Blandy <jimb@redhat.com>.
21954
21955 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21956 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21957 instead of GPR_SIZE to distiguish s390 and s390x targets.
21958
5544ad89
DJ
219592004-01-31 Daniel Jacobowitz <drow@mvista.com>
21960
21961 * linux-low.c: Update copyright year.
21962 (check_removed_breakpoint): Clear pending_is_breakpoint.
21963 (linux_set_resume_request, linux_queue_one_thread)
21964 (resume_status_pending_p): New functions.
21965 (linux_continue_one_thread): Use process->resume.
21966 (linux_resume): Only resume threads if there are no pending events.
21967 * linux-low.h (struct process_info): Add resume request
21968 pointer.
21969
2a68b70e
DJ
219702004-01-30 Daniel Jacobowitz <drow@mvista.com>
21971
21972 * regcache.c (new_register_cache): Clear the allocated register
21973 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21974
64386c31
DJ
219752003-10-13 Daniel Jacobowitz <drow@mvista.com>
21976
21977 * linux-low.c (linux_resume): Take a struct thread_resume *
21978 argument.
21979 (linux_wait): Update call.
21980 (resume_ptr): New static variable.
21981 (linux_continue_one_thread): Renamed from
21982 linux_continue_one_process. Use resume_ptr.
21983 (linux_resume): Use linux_continue_one_thread.
21984 * server.c (handle_v_cont, handle_v_requests): New functions.
21985 (myresume): New function.
21986 (main): Handle 'v' case.
21987 * target.h (struct thread_resume): New type.
21988 (struct target_ops): Change argument of "resume" to struct
21989 thread_resume *.
21990 (myresume): Delete macro.
21991
c938e9b0
L
219922003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21993
21994 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21995 (uninstall): Support DESTDIR.
21996
7f313d07
BC
21997Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21998
21999 * configure.srv: Add xscale*linux copy of arm*linux entry.
22000
3b2fc2ea
DJ
220012003-07-24 Daniel Jacobowitz <drow@mvista.com>
22002
22003 * linux-arm-low.c (arm_reinsert_addr): New function.
22004 (the_low_target): Add arm_reinsert_addr.
22005
1c0a559e
MK
220062003-07-08 Mark Kettenis <kettenis@gnu.org>
22007
22008 * mem-break.c: Remove whitespace at end of file.
22009
43d5792c
DJ
220102003-06-28 Daniel Jacobowitz <drow@mvista.com>
22011
22012 * configure.in: Check whether we need to prototype strerror.
22013 * server.h: Optionally prototype strerror.
22014 * gdbreplay.c (perror_with_name): Use strerror.
22015 * linux-low.c (linux_attach_lwp): Use strerror.
22016 * utils.c (perror_with_name): Use strerror.
22017 * config.in, configure: Regenerated.
22018
c8a86edf
DJ
220192003-06-28 Daniel Jacobowitz <drow@mvista.com>
22020
22021 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22022 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22023
73d37363
DJ
220242003-06-20 Daniel Jacobowitz <drow@mvista.com>
22025
22026 * Makefile.in (SFILES): Update.
22027 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22028 low-sun3.c: Remove files.
22029
6ad8ae5c
DJ
220302003-06-17 Daniel Jacobowitz <drow@mvista.com>
22031
22032 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22033 (linux_detach_one_process, linux_detach): New functions.
22034 (linux_target_ops): Add linux_detach.
22035 * server.c (main): Handle 'D' packet.
22036 * target.h (struct target_ops): Add "detach" member.
22037 (detach_inferior): Define.
22038
1581182a
MK
220392003-06-13 Mark Kettenis <kettenis@gnu.org>
22040
22041 From Kelley Cook <kelleycook@wideopenwest.com>:
22042 * configure.srv: Accept i[34567]86 variants.
22043
e5379b03
DJ
220442003-06-05 Daniel Jacobowitz <drow@mvista.com>
22045
22046 * linux-low.c (linux_wait_for_event): Correct comment typos.
22047 (linux_resume_one_process): Call check_removed_breakpoint.
22048 (linux_send_signal): New function.
22049 (linux_target_ops): Add linux_send_signal.
22050 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22051 of kill.
22052 * target.h (struct target_ops): Add send_signal.
22053
2ff29de4
JB
220542003-05-29 Jim Blandy <jimb@redhat.com>
22055
22056 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22057 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22058 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22059 away part of the register's value.
22060
254787d4
DJ
220612003-03-26 Daniel Jacobowitz <drow@mvista.com>
22062
22063 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22064 (linux_wait_for_event, linux_init_signals): Likewise.
22065
94e10508
DJ
220662003-03-17 Daniel Jacobowitz <drow@mvista.com>
22067
22068 * configure.in: Check for stdlib.h.
22069 * configure: Regenerated.
22070 * config.in: Regenerated.
22071
4c0711e0
DJ
220722003-01-04 Andreas Schwab <schwab@suse.de>
22073
22074 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22075
ef66e766
AC
220762003-01-02 Andrew Cagney <ac131313@redhat.com>
22077
22078 * Makefile.in: Remove obsolete code.
22079
a1358604
DJ
220802002-11-20 Daniel Jacobowitz <drow@mvista.com>
22081
22082 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22083 defined(PT_FPR0_HI).
22084
23ce3b1c
DJ
220852002-11-17 Stuart Hughes <seh@zee2.com>
22086
22087 * linux-arm-low.c (arm_num_regs): Increase.
22088 (arm_regmap): Include status register.
22089
220902002-11-17 Daniel Jacobowitz <drow@mvista.com>
22091
22092 * linux-low.c (register_addr): Remove incorrect -1 check.
22093
a9fa9f7d
DJ
220942002-08-29 Daniel Jacobowitz <drow@mvista.com>
22095
22096 * linux-low.c (linux_create_inferior): Call setpgid. Return
22097 the new PID.
22098 (unstopped_p, linux_signal_pid): Remove.
22099 (linux_target_ops): Remove linux_signal_pid.
22100 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22101 global instead of target method.
22102 * target.h (struct target_ops): Remove signal_pid. Update comment
22103 for create_inferior.
22104 * server.c (signal_pid): New variable.
22105 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22106 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22107 (attach_inferior): Set signal_pid.
22108
17574093
DJ
221092002-08-23 Daniel Jacobowitz <drow@mvista.com>
22110
22111 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22112
221132002-08-20 Jim Blandy <jimb@redhat.com>
22114
22115 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22116 default for this.
22117
221182002-08-01 Andrew Cagney <cagney@redhat.com>
22119
22120 * Makefile.in: Make chill references obsolete.
22121
221222002-07-24 Kevin Buettner <kevinb@redhat.com>
22123
22124 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22125 * configure: Regenerate.
22126 * config.in: Regenerate.
22127
221282002-07-09 David O'Brien <obrien@FreeBSD.org>
22129
22130 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22131 (perror_with_name, remote_close, remote_open, expect, play): Static.
22132
221332002-07-04 Michal Ludvig <mludvig@suse.cz>
22134
4b8dad4a 22135 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22136 byte offsets instead of an array of indexes.
22137 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22138
221392002-06-13 Daniel Jacobowitz <drow@mvista.com>
22140
22141 * regcache.c: Add comment.
22142
221432002-06-11 Daniel Jacobowitz <drow@mvista.com>
22144
22145 * thread-db.c: New file.
22146 * proc-service.c: New file.
22147 * acinclude.m4: New file.
22148 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22149 proc-service.o, and thread-db.o.
22150 (linux-low.o): Add USE_THREAD_DB.
22151 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22152 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22153 * aclocal.m4: Regenerated.
22154 * config.in: Regenerated.
22155 * configure: Regenerated.
22156 * configure.in: Check for proc_service.h, sys/procfs.h,
22157 thread_db.h, and linux/elf.h headrs.
22158 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22159 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22160 Check for -lthread_db and thread support.
22161 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22162 PowerPC, and SuperH.
22163 * i387-fp.c: Constify arguments.
22164 * i387-fp.h: Likewise.
22165 * inferiors.c: (struct thread_info): Renamed from
22166 `struct inferior_info'. Remove PID member. Use generic inferior
22167 list header. All uses updated.
22168 (inferiors, signal_pid): Removed.
22169 (all_threads): New variable.
22170 (get_thread): Define.
22171 (add_inferior_to_list): New function.
22172 (for_each_inferior): New function.
22173 (change_inferior_id): New function.
22174 (add_inferior): Removed.
22175 (remove_inferior): New function.
22176 (add_thread): New function.
22177 (free_one_thread): New function.
22178 (remove_thread): New function.
22179 (clear_inferiors): Use for_each_inferior and free_one_thread.
22180 (find_inferior): New function.
22181 (find_inferior_id): New function.
22182 (inferior_target_data): Update argument type.
22183 (set_inferior_target_data): Likewise.
22184 (inferior_regcache_data): Likewise.
22185 (set_inferior_regcache_data): Likewise.
22186 * linux-low.c (linux_bp_reinsert): Remove.
22187 (all_processes, stopping_threads, using_thrads)
22188 (struct pending_signals, debug_threads, pid_of): New.
22189 (inferior_pid): Replace with macro.
22190 (struct inferior_linux_data): Remove.
22191 (get_stop_pc, add_process): New functions.
22192 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22193 Use add_process and add_thread.
22194 (linux_attach_lwp): New function, based on old linux_attach. Use
22195 add_process and add_thread. Set stop_expected for new threads.
22196 (linux_attach): New function.
22197 (linux_kill_one_process): New function.
22198 (linux_kill): Kill all LWPs.
22199 (linux_thread_alive): Use find_inferior_id.
22200 (check_removed_breakpoints, status_pending_p): New functions.
22201 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22202 Update. Use WNOHANG. Wait for cloned processes also. Update process
22203 struct for the found process.
22204 (linux_wait_for_event): New function.
22205 (linux_wait): Use it. Support LWPs.
22206 (send_sigstop, wait_for_sigstop, stop_all_processes)
22207 (linux_resume_one_process, linux_continue_one_process): New functions.
22208 (linux_resume): Support LWPs.
22209 (REGISTER_RAW_SIZE): Remove.
22210 (fetch_register): Use register_size instead. Call supply_register.
22211 (usr_store_inferior_registers): Likewise. Call collect_register.
22212 Fix recursive case.
22213 (regsets_fetch_inferior_registers): Improve error message.
22214 (regsets_store_inferior_registers): Add debugging.
22215 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22216 (unstopped_p, linux_signal_pid): New functions.
22217 (linux_target_ops): Add linux_signal_pid.
22218 (linux_init_signals): New function.
22219 (initialize_low): Call it. Initialize using_threads.
22220 * regcache.c (inferior_regcache_data): Add valid
22221 flag.
22222 (get_regcache): Fetch registers lazily. Add fetch argument
22223 and update all callers.
22224 (regcache_invalidate_one, regcache_invalidate): New
22225 functions.
22226 (new_register_cache): Renamed from create_register_cache.
22227 Return the new regcache.
22228 (free_register_cache): Change argument to a void *.
22229 (registers_to_string, registers_from_string): Call get_regcache
22230 with fetch flag set.
22231 (register_data): Make static. Pass fetch flag to get_regcache.
22232 (supply_register): Call get_regcache with fetch flag clear.
22233 (collect_register): Call get_regcache with fetch flag set.
22234 (collect_register_as_string): New function.
22235 * regcache.h: Update.
22236 * remote-utils.c (putpkt): Flush after debug output and use
22237 stderr.
22238 Handle input interrupts while waiting for an ACK.
22239 (input_interrupt): Use signal_pid method.
22240 (getpkt): Flush after debug output and use stderr.
22241 (outreg): Use collect_register_as_string.
22242 (new_thread_notify, dead_thread_notify): New functions.
22243 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22244 and general_thread.
22245 (look_up_one_symbol): Flush after debug output.
22246 * server.c (step_thread, server_waiting): New variables.
22247 (start_inferior): Don't use signal_pid. Update call to mywait.
22248 (attach_inferior): Update call to mywait.
22249 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22250 (main): Don't fetch/store registers explicitly. Use
22251 set_desired_inferior. Support proposed ``Hs'' packet. Update
22252 calls to mywait.
22253 * server.h: Update.
22254 (struct inferior_list, struct_inferior_list_entry): New.
22255 * target.c (set_desired_inferior): New.
22256 (write_inferior_memory): Constify.
22257 (mywait): New function.
22258 * target.h: Update.
22259 (struct target_ops): New signal_pid method.
22260 (mywait): Removed macro, added prototype.
22261
22262 * linux-low.h (regset_func): Removed.
22263 (regset_fill_func, regset_store_func): New.
22264 (enum regset_type): New.
22265 (struct regset_info): Add type field. Use new operation types.
22266 (struct linux_target_ops): stop_pc renamed to get_pc.
22267 Add decr_pc_after_break and breakpoint_at.
22268 (get_process, get_thread_proess, get_process_thread)
22269 (strut process_info, all_processes, linux_attach_lwp)
22270 (thread_db_init): New.
22271
22272 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22273 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22274 (the_low_target): Add new members.
22275 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22276 (i386_store_fpxregset): Constify.
22277 (target_regsets): Add new kind identifier.
22278 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22279 (i386_set_pc): Add debugging.
22280 (i386_breakpoint_at): New function.
22281 (the_low_target): Add new members.
22282 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22283 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22284 (mips_breakpoint_at): New.
22285 (the_low_target): Add new members.
22286 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22287 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22288 (the_low_target): Add new members.
22289 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22290 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22291 (the_low_target): Add new members.
22292 * linux-x86-64-low.c (target_regsets): Add new kind
22293 identifier.
22294
222952002-05-15 Daniel Jacobowitz <drow@mvista.com>
22296
22297 From Martin Pool <mbp@samba.org>:
22298 * server.c (gdbserver_usage): New function.
22299 (main): Call it.
22300
223012002-05-14 Daniel Jacobowitz <drow@mvista.com>
22302
22303 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22304 stop_at -> stop_pc.
22305
223062002-05-04 Andrew Cagney <ac131313@redhat.com>
22307
22308 * Makefile.in: Remove obsolete code.
22309
223102002-04-24 Michal Ludvig <mludvig@suse.cz>
22311
22312 * linux-low.c (regsets_fetch_inferior_registers),
22313 (regsets_store_inferior_registers): Removed cast to int from
22314 ptrace() calls.
22315 * regcache.h: Added declaration of struct inferior_info.
22316
223172002-04-20 Daniel Jacobowitz <drow@mvista.com>
22318
22319 * inferiors.c (struct inferior_info): Add regcache_data.
22320 (add_inferior): Call create_register_cache.
22321 (clear_inferiors): Call free_register_cache.
22322 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22323 * regcache.c (struct inferior_regcache_data): New.
22324 (registers): Remove.
22325 (get_regcache): New function.
22326 (create_register_cache, free_register_cache): New functions.
22327 (set_register_cache): Don't initialize the register cache here.
22328 (registers_to_string, registers_from_string, register_data): Call
22329 get_regcache.
22330 * regcache.h: Add prototypes.
22331 * server.h: Likewise.
22332
223332002-04-20 Daniel Jacobowitz <drow@mvista.com>
22334
22335 * mem-break.c: New file.
22336 * mem-break.h: New file.
22337 * Makefile.in: Add mem-break.o rule; update server.h
22338 dependencies.
22339 * inferiors.c (struct inferior_info): Add target_data
22340 member.
22341 (clear_inferiors): Free target_data member if set.
22342 (inferior_target_data, set_inferior_target_data): New functions.
22343 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22344 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22345 * linux-low.c (linux_bp_reinsert): New variable.
22346 (struct inferior_linux_data): New.
22347 (linux_create_inferior): Use set_inferior_target_data.
22348 (linux_attach): Likewise. Call add_inferior.
22349 (linux_wait_for_one_inferior): New function.
22350 (linux_wait): Call it.
22351 (linux_write_memory): Add const.
22352 (initialize_low): Call set_breakpoint_data.
22353 * linux-low.h (struct linux_target_ops): Add breakpoint
22354 handling members.
22355 * server.c (attach_inferior): Remove extra add_inferior
22356 call.
22357 * server.h: Include mem-break.h. Update inferior.c
22358 prototypes.
22359 * target.c (read_inferior_memory)
22360 (write_inferior_memory): New functions.
22361 * target.h (read_inferior_memory)
22362 (write_inferior_memory): Change macros to prototypes.
22363 (struct target_ops): Update comments. Add const to write_memory
22364 definition.
22365
223662002-04-11 Daniel Jacobowitz <drow@mvista.com>
22367
22368 * linux-low.c (usr_store_inferior_registers): Support
22369 registers which are allowed to fail to store.
22370 * linux-low.h (linux_target_ops): Likewise.
22371 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22372 (ppc_cannot_store_register): FPSCR may not be storable.
22373
223742002-04-09 Daniel Jacobowitz <drow@mvista.com>
22375
22376 * server.h: Include <string.h> if HAVE_STRING_H.
22377 * ChangeLog: Correct paths in last ChangeLog entry.
22378
223792002-04-09 Daniel Jacobowitz <drow@mvista.com>
22380
22381 * linux-low.h: Remove obsolete prototypes.
22382 (struct linux_target_ops): New.
22383 (extern the_low_target): New.
22384 * linux-low.c (num_regs, regmap): Remove declarations.
22385 (register_addr): Use the_low_target explicitly.
22386 (fetch_register): Likewise.
22387 (usr_fetch_inferior_registers): Likewise.
22388 (usr_store_inferior_registers): Likewise.
22389 * linux-arm-low.c (num_regs): Remove.
22390 (arm_num_regs): Define.
22391 (arm_regmap): Renamed from regmap, made static.
22392 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22393 made static.
22394 (arm_cannot_store_register): Renamed from cannot_store_register,
22395 made static.
22396 (the_low_target): New.
22397 * linux-i386-low.c (num_regs): Remove.
22398 (i386_num_regs): Define.
22399 (i386_regmap): Renamed from regmap, made static.
22400 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22401 made static.
22402 (i386_cannot_store_register): Renamed from cannot_store_register,
22403 made static.
22404 (the_low_target): New.
22405 * linux-ia64-low.c (num_regs): Remove.
22406 (ia64_num_regs): Define.
22407 (ia64_regmap): Renamed from regmap, made static.
22408 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22409 made static.
22410 (ia64_cannot_store_register): Renamed from cannot_store_register,
22411 made static.
22412 (the_low_target): New.
22413 * linux-m68k-low.c (num_regs): Remove.
22414 (m68k_num_regs): Define.
22415 (m68k_regmap): Renamed from regmap, made static.
22416 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22417 made static.
22418 (m68k_cannot_store_register): Renamed from cannot_store_register,
22419 made static.
22420 (the_low_target): New.
22421 * linux-mips-low.c (num_regs): Remove.
22422 (mips_num_regs): Define.
22423 (mips_regmap): Renamed from regmap, made static.
22424 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22425 made static.
22426 (mips_cannot_store_register): Renamed from cannot_store_register,
22427 made static.
22428 (the_low_target): New.
22429 * linux-ppc-low.c (num_regs): Remove.
22430 (ppc_num_regs): Define.
22431 (ppc_regmap): Renamed from regmap, made static.
22432 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22433 made static.
22434 (ppc_cannot_store_register): Renamed from cannot_store_register,
22435 made static.
22436 (the_low_target): New.
22437 * linux-s390-low.c (num_regs): Remove.
22438 (s390_num_regs): Define.
22439 (s390_regmap): Renamed from regmap, made static.
22440 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22441 made static.
22442 (s390_cannot_store_register): Renamed from cannot_store_register,
22443 made static.
22444 (the_low_target): New.
22445 * linux-sh-low.c (num_regs): Remove.
22446 (sh_num_regs): Define.
22447 (sh_regmap): Renamed from regmap, made static.
22448 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22449 made static.
22450 (sh_cannot_store_register): Renamed from cannot_store_register,
22451 made static.
22452 (the_low_target): New.
22453 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22454 (the_low_target): New.
22455
224562002-04-09 Daniel Jacobowitz <drow@mvista.com>
22457
22458 * Makefile.in: Add stamp-h target.
22459 * configure.in: Create stamp-h.
22460 * configure: Regenerated.
22461
224622002-04-09 Daniel Jacobowitz <drow@mvista.com>
22463
22464 * inferiors.c: New file.
22465 * target.c: New file.
22466 * target.h: New file.
22467 * Makefile.in: Add target.o and inferiors.o. Update
22468 dependencies.
22469 * linux-low.c (inferior_pid): New static variable,
22470 moved from server.c.
22471 (linux_create_inferior): Renamed from create_inferior.
22472 Call add_inferior. Return 0 on success instead of a PID.
22473 (linux_attach): Renamed from myattach.
22474 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22475 (linux_thread_alive): Renamed from mythread_alive.
22476 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22477 child dies.
22478 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22479 (regsets_store_inferior_registers): Correct error message.
22480 Add missing ``return 0''.
22481 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22482 (linux_store_registers): Renamed from store_inferior_registers.
22483 (linux_read_memory): Renamed from read_inferior_memory.
22484 (linux_write_memory): Renamed from write_inferior_memory.
22485 (linux_target_ops): New structure.
22486 (initialize_low): Call set_target_ops ().
22487 * remote-utils.c (unhexify): New function.
22488 (hexify): New function.
22489 (input_interrupt): Send signals to ``signal_pid''.
22490 * server.c (inferior_pid): Remove.
22491 (start_inferior): Update create_inferior call.
22492 (attach_inferior): Call add_inferior.
22493 (handle_query): New function.
22494 (main): Call handle_query for `q' packets.
22495 * server.h: Include "target.h". Remove obsolete prototypes.
22496 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22497
224982002-04-09 Daniel Jacobowitz <drow@mvista.com>
22499
22500 * Makefile.in: Add WARN_CFLAGS. Update configury
22501 dependencies.
22502 * configure.in: Check for <string.h>
22503 * configure: Regenerate.
22504 * config.in: Regenerate.
22505 * gdbreplay.c: Include needed system headers.
22506 (remote_open): Remove strchr prototype.
22507 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22508 * regcache.c (supply_register): Change buf argument to const void *.
22509 (supply_register_by_name): Likewise.
22510 (collect_register): Change buf argument to void *.
22511 (collect_register_by_name): Likewise.
22512 * regcache.h: Add missing prototypes.
22513 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22514 * server.c (handle_query): New function.
22515 (attached): New static variable, moved out of main.
22516 (main): Quiet longjmp clobber warnings.
22517 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22518 * utils.c (error): Remove NORETURN.
22519 (fatal): Likewise.
This page took 2.460553 seconds and 4 git commands to generate.