]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
[gdb/threads] Fix lin_thread_get_thread_signals for glibc 2.28
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
c054dcd5
TT
12021-02-12 Tom Tromey <tromey@adacore.com>
2
3 * gdbreplay.cc (remote_open): Constify.
4
9c9d63b1
PM
52021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
6
7 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
8 gnulib free replacement too.
9 * common-defs.h [USE_WIN32API](read, write): Undefine
10 gnulib versions before defining these macros.
11
7e9cf1fe
PA
122021-02-03 Pedro Alves <pedro@palves.net>
13
14 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
15 Discard step SIGTRAP, unless GDB wanted the thread to step.
16
b0083dd7
PA
172021-02-03 Pedro Alves <pedro@palves.net>
18
19 * server.cc (discard_queued_stop_replies): Don't ever discard the
20 notification at the head of the list.
21
6bd434d6
SM
222021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * ax.cc (bytecode_address_table): Make static.
25 * debug.cc (debug_file): Make static.
26 * linux-low.cc (stopping_threads): Make static.
27 (step_over_bkpt): Make static.
28 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
29 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
30 alloced_trace_state_variables, trace_buffer_ctrl,
31 tracing_start_time, tracing_stop_time, tracing_user_name,
32 tracing_notes, tracing_stop_note): Make static.
33
037e8112
TV
342021-01-20 Tom de Vries <tdevries@suse.de>
35
36 * linux-x86-low.cc (collect_register_i386): New function.
37 (x86_fill_gregset): Remove memset. Use collect_register_i386.
38
78e49486
TV
392021-01-07 Tom de Vries <tdevries@suse.de>
40
41 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
42 (LIBIBERTY_FOR_SHLIB): New var.
43 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
44 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
45
3ec3145c
SM
462021-01-04 Simon Marchi <simon.marchi@efficios.com>
47
48 * debug.cc (debug_print_depth): New.
49
2b47c078
JB
502021-01-01 Joel Brobecker <brobecker@adacore.com>
51
52 * server.cc (gdbserver_version): Update copyright year.
53 * gdbreplay.cc (gdbreplay_version): Likewise.
54
19007d95
LM
552020-12-16 Luis Machado <luis.machado@linaro.org>
56
57 * linux-aarch64-low.cc (address_significant): New function.
58 (aarch64_target::low_stopped_data_address): Handle the TBI.
59
96648494
AB
602020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 * Makefile.in (IPA_LIB): Include libiberty library.
63
81fdd7ac
AB
642020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * server.cc (gdbserver_usage): Add missing option to usage text.
67 (gdbserver_show_disableable): Likewise.
68
dda83cd7
SM
692020-11-02 Simon Marchi <simon.marchi@efficios.com>
70
71 * ax.cc: Fix indentation.
72 * dll.cc: Fix indentation.
73 * inferiors.h: Fix indentation.
74 * linux-low.cc: Fix indentation.
75 * linux-nios2-low.cc: Fix indentation.
76 * linux-ppc-ipa.cc: Fix indentation.
77 * linux-ppc-low.cc: Fix indentation.
78 * linux-x86-low.cc: Fix indentation.
79 * linux-xtensa-low.cc: Fix indentation.
80 * regcache.cc: Fix indentation.
81 * server.cc: Fix indentation.
82 * tracepoint.cc: Fix indentation.
83
19dd0ae5
SM
842020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
85
86 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
87 AC_LANG_PROGRAM.
88 * configure: Re-generate.
89
b6fb30ed
SM
902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
91
92 * configure: Re-generate.
864ca435
SM
93
942020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * configure: Re-generate.
b9442ec1
SM
97
982020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
99
100 * configure: Re-generate.
b6fb30ed 101
5164c117
SM
1022020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * configure: Re-generate.
105
7e8c7130
SM
1062020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
107
108 * configure.ac: Modernize.
109 * configure: Re-generate.
110
91e1a0ed
SM
1112020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
114 AC_CANONICAL_SYSTEM.
115 * configure: Re-generate.
116
d744f0f9
PA
1172020-10-26 Pedro Alves <pedro@palves.net>
118
119 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
120 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
121 explicit type.
122
006811bc
SM
1232020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
124
125 * acinclude.m4: Update ptrace.m4 path.
126
92a048fd
SM
1272020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
128
129 * config.in: Re-generate.
130 * configure: Re-generate.
131
4dbe16c8
SM
1322020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * server.cc (handle_general_set): Don't use sprintf with
135 argument overlapping buffer.
136
a9b45cb7
TT
1372020-10-20 Tom Tromey <tromey@adacore.com>
138
139 PR gdb/26742:
140 * inferiors.cc (remove_thread): Clear current_thread before
141 freeing the thread.
142
b07993f6
KR
1432020-10-13 Kamil Rytarowski <n54@gmx.com>x
144
145 * netbsd-low.cc (netbsd_tdesc): Remove.
146 (netbsd_add_process): Likewise.
147 (netbsd_process_target::create_inferior): Update.
148
bbb826f5
AB
1492020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
150
151 * linux-arc-low.cc (arc_linux_read_description): Release the
152 unique_ptr returned from arc_create_target_description.
153
361cb219
AB
1542020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
155
156 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
157 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
158
51a948fd
AB
1592020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
160
161 * linux-low.cc (linux_process_target::handle_extended_wait):
162 Release the unique_ptr returned from allocate_target_description.
163 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
164 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
165 (tdesc_i386_linux_no_xml): Change type.
166 (x86_linux_read_description): Borrow pointer from unique_ptr
167 object.
168 (x86_target::get_ipa_tdesc_idx): Likewise.
169 (initialize_low_arch): Likewise.
170 * tdesc.cc (allocate_target_description): Update return type.
171
60b74662
TT
1722020-10-07 Tom Tromey <tromey@adacore.com>
173
174 * server.cc (handle_search_memory): Remove dead code.
175
55b10d89
TT
1762020-10-07 Tom Tromey <tromey@adacore.com>
177
178 * server.cc (handle_search_memory_1): Remove.
179 (handle_search_memory): Use simple_search_memory.
180
a038ffd8
SM
1812020-10-07 Simon Marchi <simon.marchi@efficios.com>
182
183 * Makefile.in (COMPILE): Add CXXFLAGS.
184 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
185 (gdbserver$(EXEEXT)): Add CXXFLAGS.
186 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
187 ($(IPA_LIB)): Add CXXFLAGS.
188 (IPAGENT_COMPILE): Add CXXFLAGS.
189
bbe90b5d 1902020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
191
192 * configure.srv: Support ARC architecture.
193 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
194 * linux-arc-low.cc: New file.
195
48491055
KR
1962020-10-07 Kamil Rytarowski <n54@gmx.com>
197
198 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
199 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
200 (netbsd_process_target::qxfer_libraries_svr4): Update.
201
2be01f63
KR
2022020-10-07 Kamil Rytarowski <n54@gmx.com>
203
204 * netbsd-low.cc: Fix whitespace formatting.
205 * netbsd-amd64-low.cc: Likewise.
206
91e5e8db
KR
2072020-10-07 Kamil Rytarowski <n54@gmx.com>
208
209 * netbsd-low.cc (netbsd_process_target::read_memory)
210 (netbsd_process_target::write_memory): Update.
211
9529c852
KR
2122020-10-07 Kamil Rytarowski <n54@gmx.com>
213
214 * netbsd-aarch64-low.cc: Add.
215 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
216 * configure.srv: Add aarch64*-*-netbsd*.
217
981b570a
SV
2182020-10-06 Shahab Vahedi <shahab@synopsys.com>
219
220 * regcache.cc (register_data): Remove unused "fetch" argument.
221
6b01403b
SM
2222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
223
224 * server.cc (handle_monitor_command): Handle "set
225 debug-event-loop".
226 (captured_main): Handle "--debug-event-loop".
227 (monitor_show_help): Mention new setting.
228 (gdbserver_usage): Mention new flag.
229
2554f6f5
SM
2302020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
231
232 * linux-low.cc (linux_process_target::async): Pass name to
233 add_file_handler.
234 * remote-utils.cc (handle_accept_event): Likewise.
235 (remote_open): Likewise.
236
8b667fae
KR
2372020-10-01 Kamil Rytarowski <n54@gmx.com>
238
239 * netbsd-i386-low.cc: Add.
240 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
241 * configure.srv: Add i[34567]86-*-netbsd*.
242
15397b0e
KR
2432020-10-01 Kamil Rytarowski <n54@gmx.com>
244
245 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
246 (netbsd_target_regsets): Now const.
247 (the_low_target): Remove.
248 (class netbsd_amd64_target, the_netbsd_amd64_target)
249 (the_netbsd_target): Add.
250 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
251 low_arch_setup ().
252 (netbsd_process_target::fetch_registers)
253 (netbsd_process_target::store_registers, initialize_low): Update.
254 (the_netbsd_target): Remove.
255 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
256 (the_low_target, netbsd_tdesc): Remove.
257 (netbsd_process_target::get_regs_info)
258 (netbsd_process_target::low_arch_setup): Add.
259
99bb393f
HD
2602020-09-23 Hannes Domani <ssbssa@yahoo.de>
261
262 * win32-low.cc: Remove local wow64_process variable.
263 * win32-low.h: Remove local wow64_process variable.
264
b60cea74
TT
2652020-09-18 Tom Tromey <tromey@adacore.com>
266
267 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
268 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
269 (netbsd_process_target::wait): Change type of target_options.
270 * win32-low.h (class win32_process_target) <wait>: Update.
271 * win32-low.cc (win32_process_target::wait): Update.
272 * target.h (class process_stratum_target) <wait>: Update.
273 (mywait): Update.
274 * target.cc (mywait, target_wait): Change type of "options".
275 * linux-low.h (class linux_process_target) <wait, wait_1>:
276 Update.
277 * linux-low.cc (linux_process_target::wait)
278 (linux_process_target::wait_1): Update.
279
db92ac45
TT
2802020-09-15 Tom Tromey <tromey@adacore.com>
281
282 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
283 (xmltarget_amd64_linux_no_xml): Now arrays.
284
27087b7f
TT
2852020-09-14 Tom Tromey <tromey@adacore.com>
286
287 * tracepoint.cc (eval_result_names): Now const.
288 * ax.cc (gdb_agent_op_names): Now const.
289
62ba5048
KR
2902020-09-10 Kamil Rytarowski <n54@gmx.com>
291
292 * netbsd-low.cc: Add.
293 * netbsd-low.h: Likewise.
294 * netbsd-amd64-low.cc: Likewise.
295 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
296 "netbsd-amd64-low.cc".
297 * configure.srv: Add x86_64-*-netbsd*.
298
ece5bc8a
SM
2992020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
300
301 * server.cc (captured_main): Accept multiple `--selftest=`
302 options. Pass all `--selftest=` arguments to run_tests.
303
c8693053
RO
3042020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
305
306 * configure, config.in: Regenerate.
307
05a6b8c2
EZ
3082020-07-26 Eli Zaretskii <eliz@gnu.org>
309
310 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
311 When checking whether socklen_t type is defined, use ws2tcpip.h if
312 it is available and sys/socket.h isn't.
313 * configure: Regenerate.
314 * config.in: Regenerate.
315
028a4603
PA
3162020-07-22 Pedro Alves <pedro@palves.net>
317
318 * inferiors.cc (switch_to_process): New, moved here from
319 thread-db.cc, and made extern.
320 * inferiors.h (switch_to_process): Declare.
321 * server.cc: Include "gdbsupport/scoped_restore.h".
322 (handle_qxfer_threads_proper): Now returns bool. Prepare to
323 access memory around target calls.
324 (handle_qxfer_threads): Handle errors.
325 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
326
05c309a8
SM
3272020-07-21 Simon Marchi <simon.marchi@efficios.com>
328
329 * linux-low.cc (stopped_pids): Make static.
330
0e267416
AB
3312020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
332
333 * tdesc.cc (allocate_target_description): Add header comment.
334 (target_desc_deleter::operator()): New function.
335 * tdesc.h (struct target_desc): Declare as final.
336
b315b67d
SM
3372020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
338
339 * server.cc (handle_query): Use std::vector of
340 std::string for `qsupported` vector. Use separate
341 vector for unknowns.
342 * target.h (class process_stratum_target) <process_qsupported>:
343 Change parameters to array_view of const char *.
344 (target_process_qsupported): Remove `count` parameter.
345 * target.cc (process_stratum_target::process_qsupported): Change
346 parameters to array_view of const char *.
347 * linux-x86-low.cc (class x86_target) <process_qsupported>:
348 Likewise.
349
f638ed73
TV
3502020-06-29 Tom de Vries <tdevries@suse.de>
351
352 * ax.h: Include gdbsupport/debug_agent.h.
353
fbf42f4e
AB
3542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
355
356 * tdesc.cc (struct tdesc_compatible_info): New struct.
357 (tdesc_compatible_info_list): New function.
358 (tdesc_compatible_info_arch_name): New function.
359
013e3554
TBA
3602020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
361
362 Use std::list to stop pending signal instead of manually-created
363 linked list.
364 * linux-low.h: Include <list>.
365 (struct pending_signal): Move here from linux-low.cc.
366 (struct lwp_info) <pending_signals>
367 <pending_signals_to_report>: Update the type.
368 * linux-low.cc (struct pending_signals): Remove.
369 (linux_process_target::delete_lwp)
370 (linux_process_target::add_lwp)
371 (enqueue_one_deferred_signal)
372 (dequeue_one_deferred_signal)
373 (enqueue_pending_signal)
374 (linux_process_target::resume_one_lwp_throw)
375 (linux_process_target::thread_needs_step_over)
376 (linux_process_target::resume_one_thread)
377 (linux_process_target::proceed_one_lwp): Update the use of pending
378 signal list.
379
7d458ea5
SM
3802020-06-17 Simon Marchi <simon.marchi@efficios.com>
381
382 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
383 Remove.
384
84b300de
SM
3852020-06-12 Simon Marchi <simon.marchi@efficios.com>
386
387 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
388 * configure.srv: Remove mingw32ce cases.
389 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
390 * win32-low.h (to_back_slashes): Remove.
391 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
392
96c16e2b
SM
3932020-06-12 Simon Marchi <simon.marchi@efficios.com>
394
395 * Makefile.in (SFILES): linux-tile-low.cc.
396 * configure.srv: Remove tilegx case.
397 * linux-tile-low.cc: Remove.
398
bd1467ae
SM
3992020-06-12 Simon Marchi <simon.marchi@efficios.com>
400
401 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
402 * configure.srv: Remove m32r case.
403 * linux-m32r-low.cc: Remove.
404
7b46bf6f
SM
4052020-06-12 Simon Marchi <simon.marchi@efficios.com>
406
407 * Makefile.in (SFILES): Remove linux-cris-low.c.
408 * configure.srv: Remove cris cases.
409 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
410
1fa29f56
SM
4112020-06-12 Simon Marchi <simon.marchi@efficios.com>
412
413 * Makefile.in (SFILES): Remove linux-bfin-low.c.
414 * configure.srv: Remove bfin case.
415 * linux-bfin-low.cc: Remove.
416 * linux-low.cc: Remove BFIN-conditional code.
417
613f149a
SM
4182020-06-12 Simon Marchi <simon.marchi@efficios.com>
419
420 * configure: Re-generate.
421 * configure.ac: Remove srv_qnx test.
422 * configure.srv: Remove nto case.
423 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
424 * remote-utils.c: Remove __QNX__-guarded code.
425
fdb95bf5
SM
4262020-06-12 Simon Marchi <simon.marchi@efficios.com>
427
428 * configure: Re-generate.
429 * configure.ac: Remove srv_lynxos test.
430 * configure.srv: Remove lynxos cases.
431 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
432 Remove.
433
c00094dc
SM
4342020-06-12 Simon Marchi <simon.marchi@efficios.com>
435
436 * README: Fix a few outdated or incoherent things.
437
6479bf85
HD
4382020-05-27 Hannes Domani <ssbssa@yahoo.de>
439
440 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
441 (win32_clear_inferiors): Use open_process_used.
442 (get_child_debug_event): Likewise.
443
bea571eb
MW
4442020-05-25 Michael Weghorn <m.weghorn@posteo.de>
445
446 PR gdbserver/25893
447 * linux-low.cc (linux_process_target::create_inferior),
448 lynx-low.cc (lynx_process_target::create_inferior),
449 win32-low.cc (win32_process_target::create_inferior): Use
450 construct_inferior_arguments instead of stringify_argv
451 to get string representation which properly escapes
452 special characters.
453 * server.cc (handle_v_run): Just pass empty program arg
454 as such, since any further processing is now handled via
455 construct_inferior_arguments.
456
ace6b919
MW
4572020-05-25 Michael Weghorn <m.weghorn@posteo.de>
458
459 * nto-low.cc (nto_process_target::create_inferior): Pass
460 argv to spawnp function as char **.
461
b69ca137
MW
4622020-05-25 Michael Weghorn <m.weghorn@posteo.de>
463
464 * server.cc (captured_main), (handle_v_run): No longer
465 insert extra NULL element to args vector.
466
51e2cfa2
PA
4672020-05-23 Pedro Alves <palves@redhat.com>
468
469 * gdb-safe-ctype.h: New.
470
8bbf0394
TBA
4712020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
472
473 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
474 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
475 (ia64_target::low_breakpoint_at): Ditto.
476
01370779
HD
4772020-05-15 Hannes Domani <ssbssa@yahoo.de>
478
479 * win32-i386-low.cc (i386_supports_z_point_type): Handle
480 Z_PACKET_HW_BP z_type.
481 (i386_insert_point): Handle raw_bkpt_type type.
482 (i386_remove_point): Likewise.
483
7d186bc0
HD
4842020-04-30 Hannes Domani <ssbssa@yahoo.de>
485
486 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
487 Add arch/i386.o.
488 * win32-arm-low.cc (arm_num_regs): New function.
489 (struct win32_target_ops): Use arm_num_regs.
490 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
491 processes.
492 (i386_get_thread_context): Likewise.
493 (i386_prepare_to_resume): Likewise.
494 (i386_thread_added): Likewise.
495 (i386_single_step): Likewise.
496 (i386_fetch_inferior_register): Likewise.
497 (i386_store_inferior_register): Likewise.
498 (i386_arch_setup): Likewise.
499 (i386_win32_num_regs): New function.
500 (struct win32_target_ops): Use i386_win32_num_regs.
501 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
502 processes.
503 (win32_require_context): Likewise.
504 (child_add_thread): Likewise.
505 (do_initial_child_stuff): Likewise.
506 (continue_one_thread): Likewise.
507 (win32_process_target::resume): Likewise.
508 (load_psapi): Likewise.
509 (win32_add_all_dlls): Likewise.
510 (maybe_adjust_pc): Likewise.
511 (win32_process_target::qxfer_siginfo): Likewise.
512 (initialize_low): Likewise.
513 * win32-low.h (struct win32_target_ops): Change num_regs to
514 callback function.
515
1eb39914
SM
5162020-04-27 Simon Marchi <simon.marchi@efficios.com>
517
518 * configure.ac: Remove check for fs_base/gs_base in
519 user_regs_struct.
520 * configure: Re-generate.
521 * config.in: Re-generate.
522 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
523 x86_store_gregset): Adjust.
524
51ac8e22
HD
5252020-04-22 Hannes Domani <ssbssa@yahoo.de>
526
527 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
528 comparison.
529
a010605f
TT
5302020-04-16 Tom Tromey <tromey@adacore.com>
531
532 * win32-low.cc (windows_nat::handle_access_violation): New
533 function.
534
e2275c6e
SM
5352020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
536
537 * win32-low.cc (get_child_debug_event): Fix format string warning.
538
73944e9f
TT
5392020-04-13 Tom Tromey <tom@tromey.com>
540
541 * server.h (gdb_fildes_t): Remove typedef.
542 * remote-utils.c (remote_desc, list_desc): Now int.
543 (INVALID_DESCRIPTOR): Remove.
544 (gdb_connected, remote_close)
545 (check_remote_input_interrupt_request): Update.
546 * utils.h (pfildes): Don't declare.
547 * utils.c (pfildes): Remove.
548
55d7aec8
TT
5492020-04-13 Tom Tromey <tom@tromey.com>
550
551 * server.h (handle_serial_event, handle_target_event): Update.
552 * server.c: Don't call initialize_event_loop.
553 (keep_processing_events): New global.
554 (handle_serial_event): Return void. Set keep_processing_events.
555 (handle_target_event): Return void.
556 (start_event_loop): Move from event-loop.c. Rewrite.
557 * remote-utils.c (handle_accept_event): Return void.
558 (reset_readchar): Use delete_timer.
559 (process_remaining): Return void.
560 (reschedule): Use create_timer.
561 * event-loop.h: Remove.
562 * event-loop.cc: Remove.
563 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
564
e487f994
TT
5652020-04-13 Tom Tromey <tom@tromey.com>
566
567 * server.c (invoke_async_signal_handlers)
568 (check_async_event_handlers, flush_streams, gdb_select): New
569 functions.
570
8ae8e197
TT
5712020-04-13 Tom Tromey <tom@tromey.com>
572
573 * configure: Rebuild.
574 * config.in: Rebuild.
575
360ad8b3
TT
5762020-04-08 Tom Tromey <tromey@adacore.com>
577
578 PR gdb/22992
579 * win32-low.c (child_continue): Call matching_pending_stop.
580 (get_child_debug_event): Call fetch_pending_stop. Push pending
581 stop when needed.
582
523d4f80
TT
5832020-04-08 Tom Tromey <tromey@adacore.com>
584
585 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
586 (win32_process_target::supports_stopped_by_sw_breakpoint):
587 Declare.
588 * win32-low.c (win32_supports_z_point_type): Always handle
589 Z_PACKET_SW_BP.
590 (win32_insert_point): Call insert_memory_breakpoint when needed.
591 (win32_remove_point): Call remove_memory_breakpoint when needed.
592 (win32_process_target::stopped_by_sw_breakpoint)
593 (win32_process_target::supports_stopped_by_sw_breakpoint): New
594 methods.
595 (win32_target_ops): Update.
596 (maybe_adjust_pc): New function.
597 (win32_wait): Call maybe_adjust_pc.
598
e54e5929
TT
5992020-04-08 Tom Tromey <tromey@adacore.com>
600
601 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
602 field.
603 * win32-i386-low.c (the_low_target): Update.
604 * win32-arm-low.c (the_low_target): Update.
605
d6225aff
TT
6062020-04-08 Tom Tromey <tromey@adacore.com>
607
608 * win32-low.h (win32_process_target::read_pc)
609 (win32_process_target::write_pc): Declare.
610 * win32-low.c (win32_process_target::read_pc)
611 (win32_process_target::write_pc): New methods.
612 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
613 functions.
614 (the_low_target): Update.
615 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
616 functions.
617 (the_low_target): Update.
618
2c1d95e8
TT
6192020-04-08 Tom Tromey <tromey@adacore.com>
620
621 * win32-low.c (win32_kill, get_child_debug_event): Use
622 wait_for_debug_event.
623
e758e19c
TT
6242020-04-08 Tom Tromey <tromey@adacore.com>
625
626 * win32-low.c (child_continue): Call continue_last_debug_event.
627
8d30e395
TT
6282020-04-08 Tom Tromey <tromey@adacore.com>
629
630 * win32-low.c (handle_exception): Remove.
631 (windows_nat::handle_ms_vc_exception): New function.
632 (get_child_debug_event): Add "continue_status" parameter.
633 Update.
634 (win32_wait): Update.
635
a816ba18
TT
6362020-04-08 Tom Tromey <tromey@adacore.com>
637
638 * win32-low.c (windows_nat::handle_load_dll): Rename from
639 handle_load_dll. No longer static.
640 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
641 No longer static.
642
d41b524f
TT
6432020-04-08 Tom Tromey <tromey@adacore.com>
644
645 * win32-low.c (handle_output_debug_string): Add parameter. Change
646 return type.
647 (win32_kill, get_child_debug_event): Update.
648
3c76026d
TT
6492020-04-08 Tom Tromey <tromey@adacore.com>
650
651 * win32-low.c (current_process_handle, current_process_id)
652 (main_thread_id, last_sig, current_event, siginfo_er): Move to
653 nat/windows-nat.c.
654
9d8679cc
TT
6552020-04-08 Tom Tromey <tromey@adacore.com>
656
657 * win32-low.c (get_image_name): Remove.
658 (handle_load_dll): Update.
659
28688adf
TT
6602020-04-08 Tom Tromey <tromey@adacore.com>
661
662 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
663 No longer static. Change parameters.
664 (child_add_thread, child_fetch_inferior_registers)
665 (child_store_inferior_registers, win32_resume)
666 (win32_get_tib_address): Update.
667
4834dad0
TT
6682020-04-08 Tom Tromey <tromey@adacore.com>
669
670 * win32-low.h (struct win32_target_ops): Use qualified names where
671 needed.
672 * win32-i386-low.c: Add "using namespace".
673 * win32-low.c: Add "using namespace".
674 * win32-arm-low.c: Add "using namespace".
675
65bafd5b
TT
6762020-04-08 Tom Tromey <tromey@adacore.com>
677
678 * win32-low.c (delete_thread_info): Don't call CloseHandle.
679
98a03287
TT
6802020-04-08 Tom Tromey <tromey@adacore.com>
681
682 * win32-low.c (win32_require_context, suspend_one_thread): Use
683 windows_thread_info::suspend.
684 (continue_one_thread): Use windows_thread_info::resume.
685 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
686
62fe396b
TT
6872020-04-08 Tom Tromey <tromey@adacore.com>
688
689 * win32-i386-low.c (update_debug_registers)
690 (i386_prepare_to_resume, i386_thread_added): Update.
691
e9534bd2
TT
6922020-04-08 Tom Tromey <tromey@adacore.com>
693
694 * win32-low.c (child_add_thread): Use new.
695 (delete_thread_info): Use delete.
696
ae1f8880
TT
6972020-04-08 Tom Tromey <tromey@adacore.com>
698
699 * win32-low.h (struct windows_thread_info): Remove.
700
e56f8ccb
TT
7012020-04-08 Tom Tromey <tromey@adacore.com>
702
703 * win32-low.h (struct windows_thread_info): Rename from
704 win32_thread_info. Remove typedef.
705 (struct win32_target_ops, win32_require_context): Update.
706 * win32-low.c (win32_get_thread_context)
707 (win32_set_thread_context, win32_prepare_to_resume)
708 (win32_require_context, thread_rec, child_add_thread)
709 (delete_thread_info, continue_one_thread)
710 (child_fetch_inferior_registers, child_store_inferior_registers)
711 (win32_resume, suspend_one_thread, win32_get_tib_address):
712 Update.
713 * win32-i386-low.c (update_debug_registers)
714 (win32_get_current_dr, i386_get_thread_context)
715 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
716 (i386_fetch_inferior_register, i386_store_inferior_register):
717 Update.
718 * win32-arm-low.c (arm_get_thread_context)
719 (arm_fetch_inferior_register, arm_store_inferior_register):
720 Update.
721
0dd7b52e
TBA
7222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
723
724 * linux-low.h (struct linux_target_ops): Remove.
725 (the_low_target): Remove.
726 * linux-x86-low.cc (the_low_target): Remove.
727 * linux-aarch64-low.cc (the_low_target): Ditto.
728 * linux-arm-low.cc (the_low_target): Ditto.
729 * linux-bfin-low.cc (the_low_target): Ditto.
730 * linux-cris-low.cc (the_low_target): Ditto.
731 * linux-crisv32-low.cc (the_low_target): Ditto.
732 * linux-ia64-low.cc (the_low_target): Ditto.
733 * linux-m32r-low.cc (the_low_target): Ditto.
734 * linux-m68k-low.cc (the_low_target): Ditto.
735 * linux-mips-low.cc (the_low_target): Ditto.
736 * linux-nios2-low.cc (the_low_target): Ditto.
737 * linux-ppc-low.cc (the_low_target): Ditto.
738 * linux-riscv-low.cc (the_low_target): Ditto.
739 * linux-s390-low.cc (the_low_target): Ditto.
740 * linux-sh-low.cc (the_low_target): Ditto.
741 * linux-sparc-low.cc (the_low_target): Ditto.
742 * linux-tic6x-low.cc (the_low_target): Ditto.
743 * linux-tile-low.cc (the_low_target): Ditto.
744 * linux-xtensa-low.cc (the_low_target): Ditto.
745
fc5ecdb6
TBA
7462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
747
748 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
749 linux target define the op by overriding the declaration in
750 process_stratum_target.
751
752 * linux-low.h (struct linux_target_ops): Remove the op.
753 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
754 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
755 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
756 (x86_get_ipa_tdesc_idx): Turn into...
757 (x86_target::get_ipa_tdesc_idx): ...this.
758 (the_low_target): Remove the op field.
759 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
760 (ppc_get_ipa_tdesc_idx): Turn into...
761 (ppc_target::get_ipa_tdesc_idx): ...this.
762 (the_low_target): Remove the op field.
763 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
764 (s390_get_ipa_tdesc_idx): Turn into...
765 (s390_target::get_ipa_tdesc_idx): ...this.
766 (the_low_target): Remove the op field.
767
9eedd27d
TBA
7682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
769
770 Turn the 'get_syscall_trapinfo' linux target op into a method
771 of process_stratum_target.
772
773 * linux-low.h (struct linux_target_ops): Remove the op.
774 (class linux_process_target) <get_syscall_trapinfo>
775 <gdb_catch_this_syscall>
776 <low_supports_catch_syscall>
777 <low_get_syscall_trapinfo>: Declare.
778 * linux-low.cc (get_syscall_trapinfo): Turn into...
779 (linux_process_target::get_syscall_trapinfo): ...this.
780 (linux_process_target::low_get_syscall_trapinfo): Define.
781 (gdb_catch_this_syscall_p): Turn into...
782 (linux_process_target::gdb_catch_this_syscall): ...this.
783 (linux_process_target::low_supports_catch_syscall): Define.
784
785 Update the callers below.
786
787 (linux_process_target::wait_1)
788 (linux_process_target::supports_catch_syscall)
789
790 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
791 <low_get_syscall_trapinfo>: Declare.
792 (x86_target::low_supports_catch_syscall): Define.
793 (x86_get_syscall_trapinfo): Turn into...
794 (x86_target::low_get_syscall_trapinfo): ...this.
795 (the_low_target): Remove the op field.
796 * linux-aarch64-low.cc (class aarch64_target)
797 <low_supports_catch_syscall>
798 <low_get_syscall_trapinfo>: Declare.
799 (aarch64_target::low_supports_catch_syscall): Define.
800 (aarch64_get_syscall_trapinfo): Turn into...
801 (aarch64_target::low_get_syscall_trapinfo): ...this.
802 (the_low_target): Remove the op field.
803 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
804 <low_get_syscall_trapinfo>: Declare.
805 (arm_target::low_supports_catch_syscall): Define.
806 (arm_get_syscall_trapinfo): Turn into...
807 (arm_target::low_get_syscall_trapinfo): ...this.
808 (the_low_target): Remove the op field.
809 * linux-ppc-low.cc (the_low_target): Remove the op field.
810 * linux-s390-low.cc (the_low_target): Remove the op field.
811
b31cdfa6
TBA
8122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
813
814 Remove the 'supports_hardware_single_step' linux target op and
815 override the process_stratum_target's op definition in
816 linux_process_target to return true.
817
818 * linux-low.h (struct linux_target_ops): Remove the op.
819 (class linux_process_target) <finish_step_over>
820 <maybe_hw_step>: Declare.
821 * linux-low.cc (can_hardware_single_step): Remove.
822 (maybe_hw_step): Turn into...
823 (linux_process_target::maybe_hw_step): ...this.
824 (finish_step_over): Turn into...
825 (linux_process_target::finish_step_over): ...this.
826 (linux_process_target::supports_hardware_single_step): Update
827 to return true.
828
829 Update the callers below.
830
831 (linux_process_target::single_step)
832 (linux_process_target::resume_one_lwp_throw)
833
834 * linux-arm-low.cc (class arm_target)
835 <supports_hardware_single_step>: Declare.
836 (arm_supports_hardware_single_step): Turn into...
837 (arm_target::supports_hardware_single_step): ...this.
838 (the_low_target): Remove the op field.
839 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
840 (the_low_target): Remove the op field.
841 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
842 Remove.
843 (the_low_target): Remove the op field.
844 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
845 (the_low_target): Remove the op field.
846 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
847 (the_low_target): Remove the op field.
848 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
849 (the_low_target): Remove the op field.
850 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
851 (the_low_target): Remove the op field.
852 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
853 (the_low_target): Remove the op field.
854 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
855 (the_low_target): Remove the op field.
856 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
857 (the_low_target): Remove the op field.
858 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
859 (the_low_target): Remove the op field.
860 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
861 (the_low_target): Remove the op field.
862 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
863 Remove.
864 (the_low_target): Remove the op field.
865
9cfd8715
TBA
8662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
867
868 Turn the 'supports_range_stepping' linux target op into a method
869 of linux_process_target.
870
871 * linux-low.h (struct linux_target_ops): Remove the op.
872 (class linux_process_target) <low_supports_range_stepping>: Declare.
873 * linux-low.cc (linux_process_target::low_supports_range_stepping):
874 Define.
875 (linux_process_target::supports_range_stepping): Update the call
876 site.
877 * linux-x86-low.cc (class x86_target)
878 <low_supports_range_stepping>: Declare.
879 (x86_supports_range_stepping): Turn into...
880 (x86_target::low_supports_range_stepping): ...this.
881 (the_low_target): Remove the op field.
882 * linux-aarch64-low.cc (class aarch64_target)
883 <low_supports_range_stepping>: Declare.
884 (aarch64_supports_range_stepping): Turn into...
885 (aarch64_target::low_supports_range_stepping): ...this.
886 (the_low_target): Remove the op field.
887 * linux-arm-low.cc (the_low_target): Remove the op field.
888 * linux-bfin-low.cc (the_low_target): Ditto.
889 * linux-crisv32-low.cc (the_low_target): Ditto.
890 * linux-m32r-low.cc (the_low_target): Ditto.
891 * linux-m68k-low.cc (the_low_target): Ditto.
892 * linux-ppc-low.cc (the_low_target): Ditto.
893 * linux-s390-low.cc (the_low_target): Ditto.
894 * linux-sh-low.cc (the_low_target): Ditto.
895 * linux-tic6x-low.cc (the_low_target): Ditto.
896 * linux-tile-low.cc (the_low_target): Ditto.
897 * linux-xtensa-low.cc (the_low_target): Ditto.
898
ab64c999
TBA
8992020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
900
901 Remove the 'emit_ops' linux target ops and let the concrete
902 linux target define the op by overriding the declaration of
903 process_stratum_target.
904
905 * linux-low.h (struct linux_target_ops): Remove the op.
906 (class linux_process_target) <emit_ops>: Remove.
907 * linux-low.cc (linux_process_target::emit_ops): Remove.
908 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
909 (x86_emit_ops): Turn into...
910 (x86_target::emit_ops): ...this.
911 (the_low_target): Remove the op field.
912 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
913 (aarch64_emit_ops): Turn into...
914 (aarch64_target::emit_ops): ...this.
915 (the_low_target): Remove the op field.
916 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
917 (ppc_emit_ops): Turn into...
918 (ppc_target::emit_ops): ...this.
919 (the_low_target): Remove the op field.
920 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
921 (s390_emit_ops): Turn into...
922 (s390_target::emit_ops): ...this.
923 (the_low_target): Remove the op field.
924 * linux-arm-low.cc (the_low_target): Remove the op field.
925 * linux-bfin-low.cc (the_low_target): Ditto.
926 * linux-crisv32-low.cc (the_low_target): Ditto.
927 * linux-m32r-low.cc (the_low_target): Ditto.
928 * linux-m68k-low.cc (the_low_target): Ditto.
929 * linux-sh-low.cc (the_low_target): Ditto.
930 * linux-tic6x-low.cc (the_low_target): Ditto.
931 * linux-tile-low.cc (the_low_target): Ditto.
932 * linux-xtensa-low.cc (the_low_target): Ditto.
933
809a0c35
TBA
9342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
935
936 Remove the 'install_fast_tracepoint_jump_pad' and
937 'get_min_fast_tracepoint_insn_len' linux target ops to let the
938 concrete linux target define the ops by overriding the declarations
939 of process_stratum_target.
940
941 * linux-low.h (struct linux_target_ops): Remove the ops.
942 (class linux_process_target) <supports_fast_tracepoints>
943 <install_fast_tracepoint_jump_pad>
944 <get_min_fast_tracepoint_insn_len>: Remove.
945 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
946 (linux_process_target::install_fast_tracepoint_jump_pad)
947 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
948 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
949 <install_fast_tracepoint_jump_pad>
950 <get_min_fast_tracepoint_insn_len>: Declare.
951 (x86_target::supports_fast_tracepoints): Define.
952 (x86_install_fast_tracepoint_jump_pad): Turn into...
953 (x86_target::install_fast_tracepoint_jump_pad): ...this.
954 (x86_get_min_fast_tracepoint_insn_len): Turn into...
955 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
956 (the_low_target): Remove the op fields.
957 * linux-aarch64-low.cc (class aarch64_target)
958 <supports_fast_tracepoints>
959 <install_fast_tracepoint_jump_pad>
960 <get_min_fast_tracepoint_insn_len>: Declare.
961 (aarch64_target::supports_fast_tracepoints): Define.
962 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
963 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
964 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
965 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
966 (the_low_target): Remove the op fields.
967 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
968 <install_fast_tracepoint_jump_pad>
969 <get_min_fast_tracepoint_insn_len>: Declare.
970 (ppc_target::supports_fast_tracepoints): Define.
971 (ppc_install_fast_tracepoint_jump_pad): Turn into...
972 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
973 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
974 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
975 (the_low_target): Remove the op fields.
976 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
977 <install_fast_tracepoint_jump_pad>
978 <get_min_fast_tracepoint_insn_len>: Declare.
979 (s390_target::supports_fast_tracepoints): Define.
980 (s390_install_fast_tracepoint_jump_pad): Turn into...
981 (s390_target::install_fast_tracepoint_jump_pad): ...this.
982 (s390_get_min_fast_tracepoint_insn_len): Turn into...
983 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
984 (the_low_target): Remove the op fields.
985 * linux-arm-low.cc (the_low_target): Remove the op fields.
986 * linux-bfin-low.cc (the_low_target): Ditto.
987 * linux-crisv32-low.cc (the_low_target): Ditto.
988 * linux-m32r-low.cc (the_low_target): Ditto.
989 * linux-m68k-low.cc (the_low_target): Ditto.
990 * linux-sh-low.cc (the_low_target): Ditto.
991 * linux-tic6x-low.cc (the_low_target): Ditto.
992 * linux-tile-low.cc (the_low_target): Ditto.
993 * linux-xtensa-low.cc (the_low_target): Ditto.
994
13e567af
TBA
9952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
996
997 Turn the 'get_thread_area' linux target op into a method of
998 process_stratum_target.
999
1000 * linux-low.h (struct linux_target_ops): Remove the op.
1001 (class linux_process_target) <stuck_in_jump_pad>
1002 <linux_fast_tracepoint_collecting>
1003 <low_get_thread_area>: Declare.
1004 * linux-low.cc (supports_fast_tracepoints): Remove.
1005 (linux_fast_tracepoint_collecting): Turn into...
1006 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1007 (linux_process_target::low_get_thread_area): Define.
1008 (stuck_in_jump_pad_callback): Turn into...
1009 (linux_process_target::stuck_in_jump_pad): ...this.
1010
1011 Update the caller below.
1012
1013 (linux_process_target::stabilize_threads)
1014
1015 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1016 Declare.
1017 (x86_get_thread_area): Turn into...
1018 (x86_target::low_get_thread_area): ...this.
1019 (the_low_target): Remove the op field.
1020 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1021 Declare.
1022 (aarch64_get_thread_area): Turn into...
1023 (aarch64_target::low_get_thread_area): ...this.
1024 (the_low_target): Remove the op field.
1025 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1026 Declare.
1027 (ppc_get_thread_area): Turn into...
1028 (ppc_target::low_get_thread_area): ...this.
1029 (the_low_target): Remove the op field.
1030 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1031 Declare.
1032 (s390_get_thread_area): Turn into...
1033 (s390_target::low_get_thread_area): ...this.
1034 (the_low_target): Remove the op field.
1035 * linux-arm-low.cc (the_low_target): Remove the op field.
1036 * linux-bfin-low.cc (the_low_target): Ditto.
1037 * linux-crisv32-low.cc (the_low_target): Ditto.
1038 * linux-m32r-low.cc (the_low_target): Ditto.
1039 * linux-m68k-low.cc (the_low_target): Ditto.
1040 * linux-sh-low.cc (the_low_target): Ditto.
1041 * linux-tic6x-low.cc (the_low_target): Ditto.
1042 * linux-tile-low.cc (the_low_target): Ditto.
1043 * linux-xtensa-low.cc (the_low_target): Ditto.
1044
47f70aa7
TBA
10452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1046
1047 Remote the 'supports_tracepoints' linux target op and let the
1048 concrete linux target define it by overriding the op declared in
1049 process_stratum_target.
1050
1051 * linux-low.h (struct linux_target_ops): Remove the op.
1052 (class linux_process_target) <supports_tracepoints>: Remove.
1053 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1054 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1055 Declare.
1056 (x86_supports_tracepoints): Turn into...
1057 (x86_target::supports_tracepoints): ...this.
1058 (the_low_target): Remove the op field.
1059 * linux-aarch64-low.cc (class aarch64_target)
1060 <supports_tracepoints>: Declare.
1061 (aarch64_supports_tracepoints): Turn into...
1062 (aarch64_target::supports_tracepoints): ...this.
1063 (the_low_target): Remove the op field.
1064 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1065 Declare.
1066 (ppc_supports_tracepoints): Turn into...
1067 (ppc_target::supports_tracepoints): ...this.
1068 (the_low_target): Remove the op field.
1069 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1070 Declare.
1071 (s390_supports_tracepoints): Turn into...
1072 (s390_target::supports_tracepoints): ...this.
1073 (the_low_target): Remove the op field.
1074 * linux-arm-low.cc (the_low_target): Remove the op field.
1075 * linux-bfin-low.cc (the_low_target): Ditto.
1076 * linux-crisv32-low.cc (the_low_target): Ditto.
1077 * linux-m32r-low.cc (the_low_target): Ditto.
1078 * linux-m68k-low.cc (the_low_target): Ditto.
1079 * linux-sh-low.cc (the_low_target): Ditto.
1080 * linux-tic6x-low.cc (the_low_target): Ditto.
1081 * linux-tile-low.cc (the_low_target): Ditto.
1082 * linux-xtensa-low.cc (the_low_target): Ditto.
1083
a5b5da92
TBA
10842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1085
1086 Remove the 'process_qsupported' linux target op and let a concrete
1087 linux target define the op by overriding the op declaration in
1088 process_stratum_target.
1089
1090 * linux-low.h (struct linux_target_ops): Remove the op.
1091 (class linux_process_target) <process_qsupported>: Remove.
1092 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1093 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1094 (x86_linux_process_qsupported): Turn into...
1095 (x86_target::process_qsupported): ...this.
1096 (the_low_target): Remove the op field.
1097 * linux-aarch64-low.cc (the_low_target): Remove the op
1098 field.
1099 * linux-arm-low.cc (the_low_target): Ditto.
1100 * linux-bfin-low.cc (the_low_target): Ditto.
1101 * linux-crisv32-low.cc (the_low_target): Ditto.
1102 * linux-m32r-low.cc (the_low_target): Ditto.
1103 * linux-m68k-low.cc (the_low_target): Ditto.
1104 * linux-ppc-low.cc (the_low_target): Ditto.
1105 * linux-s390-low.cc (the_low_target): Ditto.
1106 * linux-sh-low.cc (the_low_target): Ditto.
1107 * linux-tic6x-low.cc (the_low_target): Ditto.
1108 * linux-tile-low.cc (the_low_target): Ditto.
1109 * linux-xtensa-low.cc (the_low_target): Ditto.
1110
d7599cc0
TBA
11112020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1112
1113 Turn the 'prepare_to_resume' linux target op into a method of
1114 linux_process_target.
1115
1116 * linux-low.h (struct linux_target_ops): Remove the op.
1117 (class linux_process_target) <low_prepare_to_resume>: Declare.
1118 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1119 Define.
1120
1121 Update the callers below:
1122
1123 (linux_process_target::resume_one_lwp_throw)
1124 (linux_process_target::low_prepare_to_resume)
1125
1126 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1127 Declare.
1128 (x86_target::low_prepare_to_resume): Define.
1129 (the_low_target): Remove the op field.
1130 * linux-aarch64-low.cc (class aarch64_target)
1131 <low_prepare_to_resume>: Declare.
1132 (aarch64_target::low_prepare_to_resume): Define.
1133 (the_low_target): Remove the op field.
1134 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1135 Declare.
1136 (arm_prepare_to_resume): Turn into...
1137 (arm_target::low_prepare_to_resume): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1140 Declare.
1141 (mips_linux_prepare_to_resume): Turn into...
1142 (mips_target::low_prepare_to_resume): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-bfin-low.cc (the_low_target): Remove the op field.
1145 * linux-crisv32-low.cc (the_low_target): Ditto.
1146 * linux-m32r-low.cc (the_low_target): Ditto.
1147 * linux-m68k-low.cc (the_low_target): Ditto.
1148 * linux-ppc-low.cc (the_low_target): Ditto.
1149 * linux-s390-low.cc (the_low_target): Ditto.
1150 * linux-sh-low.cc (the_low_target): Ditto.
1151 * linux-tic6x-low.cc (the_low_target): Ditto.
1152 * linux-tile-low.cc (the_low_target): Ditto.
1153 * linux-xtensa-low.cc (the_low_target): Ditto.
1154
fd000fb3
TBA
11552020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1156
1157 Turn the 'new_process', 'delete_process', 'new_thread',
1158 'delete_thread', and 'new_fork' linux target ops into methods
1159 of linux_process_target.
1160
1161 * linux-low.h (struct linux_target_ops): Remove the ops.
1162 (class linux_process_target) <add_linux_process>
1163 <add_lwp>
1164 <delete_lwp>
1165 <attach_lwp>
1166 <detach_one_lwp>
1167 <check_zombie_leaders>
1168 <filter_exit_event>
1169 <low_new_process>
1170 <low_delete_process>
1171 <low_new_thread>
1172 <low_delete_thread>
1173 <low_new_fork>: Declare.
1174 * linux-low.cc (delete_lwp): Turn into...
1175 (linux_process_target::delete_lwp): ...this.
1176 (linux_process_target::low_delete_thread): Define.
1177 (linux_add_process): Turn into...
1178 (linux_process_target::add_linux_process): ...this.
1179 (linux_process_target::low_new_process): Define.
1180 (linux_process_target::low_delete_process): Define.
1181 (linux_process_target::low_new_fork): Define.
1182 (add_lwp): Turn into...
1183 (linux_process_target::add_lwp): ...this.
1184 (linux_process_target::low_new_thread): Define.
1185 (linux_attach_lwp): Turn into...
1186 (linux_process_target::attach_lwp): ...this.
1187 (linux_detach_one_lwp): Turn into...
1188 (linux_process_target::detach_one_lwp): ...this.
1189 (linux_detach_lwp_callback): Remove and inline...
1190 (linux_process_target::detach): ...here.
1191 (check_zombie_leaders): Turn into...
1192 (linux_process_target::check_zombie_leaders): ...this.
1193 (filter_exit_event): Turn into...
1194 (linux_process_target::filter_exit_event): ...this.
1195
1196 Update the callers below.
1197
1198 (linux_process_target::handle_extended_wait)
1199 (linux_process_target::create_inferior)
1200 (attach_proc_task_lwp_callback)
1201 (linux_process_target::attach)
1202 (linux_process_target::detach)
1203 (linux_process_target::mourn)
1204 * thread-db.cc (attach_thread)
1205
1206 * linux-x86-low.cc (class x86_target) <low_new_process>
1207 <low_delete_process>
1208 <low_new_thread>
1209 <low_delete_thread>
1210 <low_new_fork>: Declare.
1211 (x86_linux_new_process): Turn into...
1212 (x86_target::low_new_process): ...this.
1213 (x86_linux_delete_process): Turn into...
1214 (x86_target::low_delete_process): ...this.
1215 (x86_target::low_new_thread): Define.
1216 (x86_target::low_delete_thread): Define.
1217 (x86_linux_new_fork): Turn into...
1218 (x86_target::low_new_fork): ...this.
1219 (the_low_target): Remove the op fields.
1220 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1221 <low_delete_process>
1222 <low_new_thread>
1223 <low_delete_thread>
1224 <low_new_fork>: Declare.
1225 (aarch64_linux_new_process): Turn into...
1226 (aarch64_target::low_new_process): ...this.
1227 (aarch64_linux_delete_process): Turn into...
1228 (aarch64_target::low_delete_process): ...this.
1229 (aarch64_target::low_new_thread): Define.
1230 (aarch64_target::low_delete_thread): Define.
1231 (aarch64_linux_new_fork): Turn into...
1232 (aarch64_target::low_new_fork): ...this.
1233 (the_low_target): Remove the op fields.
1234 * linux-arm-low.cc (class arm_target) <low_new_process>
1235 <low_delete_process>
1236 <low_new_thread>
1237 <low_delete_thread>
1238 <low_new_fork>: Declare.
1239 (arm_new_process): Turn into...
1240 (arm_target::low_new_process): ...this.
1241 (arm_delete_process): Turn into...
1242 (arm_target::low_delete_process): ...this.
1243 (arm_new_thread): Turn into...
1244 (arm_target::low_new_thread): ...this.
1245 (arm_delete_thread): Turn into...
1246 (arm_target::low_delete_thread): ...this.
1247 (arm_new_fork): Turn into...
1248 (arm_target::low_new_fork): ...this.
1249 (the_low_target): Remove the op fields.
1250 * linux-mips-low.cc (class mips_target) <low_new_process>
1251 <low_delete_process>
1252 <low_new_thread>
1253 <low_delete_thread>
1254 <low_new_fork>: Declare.
1255 (mips_linux_new_process): Turn into...
1256 (mips_target::low_new_process): ...this.
1257 (mips_linux_delete_process): Turn into...
1258 (mips_target::low_delete_process): ...this.
1259 (mips_linux_new_thread): Turn into...
1260 (mips_target::low_new_thread): ...this.
1261 (mips_linux_delete_thread): Turn into...
1262 (mips_target::low_delete_thread): ...this.
1263 (mips_linux_new_fork): Turn into...
1264 (mips_target::low_new_fork): ...this.
1265 (the_low_target): Remove the op fields.
1266 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1267 * linux-crisv32-low.cc (the_low_target): Ditto.
1268 * linux-m32r-low.cc (the_low_target): Ditto.
1269 * linux-m68k-low.cc (the_low_target): Ditto.
1270 * linux-ppc-low.cc (the_low_target): Ditto.
1271 * linux-s390-low.cc (the_low_target): Ditto.
1272 * linux-sh-low.cc (the_low_target): Ditto.
1273 * linux-tic6x-low.cc (the_low_target): Ditto.
1274 * linux-tile-low.cc (the_low_target): Ditto.
1275 * linux-xtensa-low.cc (the_low_target): Ditto.
1276
cb63de7c
TBA
12772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1278
1279 Turn the 'siginfo_fixup' linux target op into a method of
1280 linux_process_target.
1281
1282 * linux-low.h (struct linux_target_ops): Remove the op.
1283 (class linux_process_target) <siginfo_fixup>
1284 <low_siginfo_fixup>: Declare.
1285 * linux-low.cc (siginfo_fixup): Turn into...
1286 (linux_process_target::siginfo_fixup): ...this.
1287 (linux_process_target::low_siginfo_fixup): Define.
1288 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1289 (x86_siginfo_fixup): Turn into...
1290 (x86_target::low_siginfo_fixup): ...this.
1291 (the_low_target): Remove the op field.
1292 * linux-aarch64-low.cc (class aarch64_target):
1293 <low_siginfo_fixup>: Declare.
1294 (aarch64_linux_siginfo_fixup): Turn into...
1295 (aarch64_target::low_siginfo_fixup): ...this.
1296 (the_low_target): Remove the op field.
1297 * linux-arm-low.cc (the_low_target): Remove the op field.
1298 * linux-bfin-low.cc (the_low_target): Ditto.
1299 * linux-crisv32-low.cc (the_low_target): Ditto.
1300 * linux-m32r-low.cc (the_low_target): Ditto.
1301 * linux-m68k-low.cc (the_low_target): Ditto.
1302 * linux-mips-low.cc (the_low_target): Ditto.
1303 * linux-ppc-low.cc (the_low_target): Ditto.
1304 * linux-s390-low.cc (the_low_target): Ditto.
1305 * linux-sh-low.cc (the_low_target): Ditto.
1306 * linux-tic6x-low.cc (the_low_target): Ditto.
1307 * linux-tile-low.cc (the_low_target): Ditto.
1308 * linux-xtensa-low.cc (the_low_target): Ditto.
1309
b35db733
TBA
13102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1311
1312 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1313 linux target ops into methods of linux_process_target.
1314
1315 * linux-low.h (struct linux_target_ops): Remove the ops.
1316 (class linux_process_target) <low_collect_ptrace_register>
1317 <low_store_ptrace_register>: Declare.
1318 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1319 (linux_process_target::low_supply_ptrace_register): Define.
1320
1321 Update the callers below.
1322
1323 (linux_process_target::fetch_register)
1324 (linux_process_target::store_register)
1325
1326 * linux-x86-low.cc (the_low_target): Remove the op fields.
1327 * linux-aarch64-low.cc (the_low_target): Ditto.
1328 * linux-arm-low.cc (the_low_target): Ditto.
1329 * linux-bfin-low.cc (the_low_target): Ditto.
1330 * linux-crisv32-low.cc (the_low_target): Ditto.
1331 * linux-m32r-low.cc (the_low_target): Ditto.
1332 * linux-m68k-low.cc (the_low_target): Ditto.
1333 * linux-sh-low.cc (the_low_target): Ditto.
1334 * linux-sparc-low.cc (the_low_target): Ditto.
1335 * linux-tic6x-low.cc (the_low_target): Ditto.
1336 * linux-tile-low.cc (the_low_target): Ditto.
1337 * linux-xtensa-low.cc (the_low_target): Ditto.
1338 * linux-mips-low.cc (class mips_target)
1339 <low_collect_ptrace_register>
1340 <low_supply_ptrace_register>: Declare.
1341 (mips_collect_ptrace_register): Turn into ...
1342 (mips_target::low_collect_ptrace_register): ...this.
1343 (mips_supply_ptrace_register): Turn into...
1344 (mips_target::low_supply_ptrace_register): ...this.
1345 (the_low_target): Remove the op fields.
1346 * linux-ppc-low.cc (class ppc_target)
1347 <low_collect_ptrace_register>
1348 <low_supply_ptrace_register>: Declare.
1349 (ppc_collect_ptrace_register): Turn into ...
1350 (ppc_target::low_collect_ptrace_register): ...this.
1351 (ppc_supply_ptrace_register): Turn into ...
1352 (ppc_target::low_supply_ptrace_register): ...this.
1353 (ppc_fill_gregset): Update for the calls to
1354 low_collect_ptrace_register.
1355 (the_low_target): Remove the op fields.
1356 * linux-s390-low.cc (class s390_target)
1357 <low_collect_ptrace_register>
1358 <low_supply_ptrace_register>: Declare.
1359 (s390_collect_ptrace_register): Turn into ...
1360 (s390_target::low_collect_ptrace_register): ...this.
1361 (s390_supply_ptrace_register): Turn into ...
1362 (s390_target::low_supply_ptrace_register): ...this.
1363 (s390_fill_gregset): Update for the calls to
1364 low_collect_ptrace_register.
1365 (the_low_target): Remove the op fields.
1366
ac1bbaca
TBA
13672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1368
1369 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1370 target ops into methods of linux_process_target.
1371
1372 * linux-low.h (struct linux_target_ops): Remove the ops.
1373 (class linux_process_target) <check_stopped_by_watchpoint>
1374 <low_stopped_by_watchpoint>
1375 <low_stopped_data_address>: Declare.
1376 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1377 (linux_process_target::check_stopped_by_watchpoint): ...this.
1378 (linux_process_target::low_stopped_by_watchpoint): Define.
1379 (linux_process_target::low_stopped_data_address): Define.
1380 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1381 <low_stopped_data_address>: Declare.
1382 (x86_stopped_by_watchpoint): Turn into...
1383 (x86_target::low_stopped_by_watchpoint): ...this.
1384 (x86_stopped_data_address): Turn into...
1385 (x86_target::low_stopped_data_address): ...this.
1386 (the_low_target): Remove the op fields.
1387 * linux-aarch64-low.cc (class aarch64_target)
1388 <low_stopped_by_watchpoint>
1389 <low_stopped_data_address>: Declare.
1390 (aarch64_stopped_by_watchpoint): Turn into...
1391 (aarch64_target::low_stopped_by_watchpoint): ...this.
1392 (aarch64_stopped_data_address): Turn into...
1393 (aarch64_target::low_stopped_data_address): ...this.
1394 (the_low_target): Remove the op fields.
1395 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1396 <low_stopped_data_address>: Declare.
1397 (arm_stopped_by_watchpoint): Turn into...
1398 (arm_target::low_stopped_by_watchpoint): ...this.
1399 (arm_stopped_data_address): Turn into...
1400 (arm_target::low_stopped_data_address): ...this.
1401 (the_low_target): Remove the op fields.
1402 * linux-crisv32-low.cc (class crisv32_target)
1403 <low_stopped_by_watchpoint>
1404 <low_stopped_data_address>: Declare.
1405 (cris_stopped_by_watchpoint): Turn into...
1406 (crisv32_target::low_stopped_by_watchpoint): ...this.
1407 (cris_stopped_data_address): Turn into...
1408 (crisv32_target::low_stopped_data_address): ...this.
1409 (the_low_target): Remove the op fields.
1410 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1411 <low_stopped_data_address>: Declare.
1412 (mips_stopped_by_watchpoint): Turn into...
1413 (mips_target::low_stopped_by_watchpoint): ...this.
1414 (mips_stopped_data_address): Turn into...
1415 (mips_target::low_stopped_data_address): ...this.
1416 (the_low_target): Remove the op fields.
1417 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1418 * linux-m32r-low.cc (the_low_target): Ditto.
1419 * linux-m68k-low.cc (the_low_target): Ditto.
1420 * linux-ppc-low.cc (the_low_target): Ditto.
1421 * linux-s390-low.cc (the_low_target): Ditto.
1422 * linux-sh-low.cc (the_low_target): Ditto.
1423 * linux-sparc-low.cc (the_low_target): Ditto.
1424 * linux-tic6x-low.cc (the_low_target): Ditto.
1425 * linux-tile-low.cc (the_low_target): Ditto.
1426 * linux-xtensa-low.cc (the_low_target): Ditto.
1427
9db9aa23
TBA
14282020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1429
1430 Turn the 'insert_point' and 'remove_point' linux target ops into
1431 methods of linux_process_target.
1432
1433 * linux-low.h (struct linux_target_ops): Remove the ops.
1434 (class linux_process_target) <low_insert_point>
1435 <low_remove_point>: Declare.
1436 * linux-low.cc (linux_process_target::low_insert_point)
1437 (linux_process_target::low_remove_point): Define.
1438 (linux_process_target::insert_point)
1439 (linux_process_target::remove_point): Update for calls to
1440 low_insert_point and low_remove_point.
1441 * linux-x86-low.cc (class x86_target) <low_insert_point>
1442 <low_remove_point>: Declare.
1443 (x86_insert_point): Turn into...
1444 (x86_target::low_insert_point): ...this.
1445 (x86_remove_point): Turn into...
1446 (x86_target::low_remove_point): ...this.
1447 (the_low_target): Remove the op fields.
1448 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1449 <low_remove_point>: Declare.
1450 (aarch64_insert_point): Turn into...
1451 (aarch64_target::low_insert_point): ...this.
1452 (aarch64_remove_point): Turn into...
1453 (aarch64_target::low_remove_point): ...this.
1454 (the_low_target): Remove the op fields.
1455 * linux-arm-low.cc (class arm_target) <low_insert_point>
1456 <low_remove_point>: Declare.
1457 (arm_insert_point): Turn into...
1458 (arm_target::low_insert_point): ...this.
1459 (arm_remove_point): Turn into...
1460 (arm_target::low_remove_point): ...this.
1461 (the_low_target): Remove the op fields.
1462 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1463 <low_remove_point>: Declare.
1464 (crisv32_insert_point): Turn into...
1465 (crisv32_target::low_insert_point): ...this.
1466 (crisv32_remove_point): Turn into...
1467 (crisv32_target::low_remove_point): ...this.
1468 (the_low_target): Remove the op fields.
1469 * linux-mips-low.cc (class mips_target) <low_insert_point>
1470 <low_remove_point>: Declare.
1471 (mips_insert_point): Turn into...
1472 (mips_target::low_insert_point): ...this.
1473 (mips_remove_point): Turn into...
1474 (mips_target::low_remove_point): ...this.
1475 (the_low_target): Remove the op fields.
1476 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1477 <low_remove_point>: Declare.
1478 (ppc_insert_point): Turn into...
1479 (ppc_target::low_insert_point): ...this.
1480 (ppc_remove_point): Turn into...
1481 (ppc_target::low_remove_point): ...this.
1482 (the_low_target): Remove the op fields.
1483 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1484 * linux-m32r-low.cc (the_low_target): Ditto.
1485 * linux-m68k-low.cc (the_low_target): Ditto.
1486 * linux-s390-low.cc (the_low_target): Ditto.
1487 * linux-sh-low.cc (the_low_target): Ditto.
1488 * linux-sparc-low.cc (the_low_target): Ditto.
1489 * linux-tic6x-low.cc (the_low_target): Ditto.
1490 * linux-tile-low.cc (the_low_target): Ditto.
1491 * linux-xtensa-low.cc (the_low_target): Ditto.
1492
007c9b97
TBA
14932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1494
1495 Remove the 'supports_z_point_type' linux target op and let the
1496 concrete linux target define it by overriding the op declared in
1497 process_stratum_target.
1498
1499 * linux-low.cc (linux_process_target::supports_z_point_type):
1500 Remove.
1501 * linux-low.h (struct linux_target_ops): Remove the op.
1502 (class linux_process_target) <supports_z_point_type>: Remove.
1503 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1504 Declare.
1505 (x86_supports_z_point_type): Turn into...
1506 (x86_target::supports_z_point_type): ...this.
1507 (the_low_target): Remove the op field.
1508 * linux-aarch64-low.cc (class aarch64_target)
1509 <supports_z_point_type>: Declare.
1510 (aarch64_supports_z_point_type): Turn into...
1511 (aarch64_target::supports_z_point_type): ...this.
1512 (the_low_target): Remove the op field.
1513 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1514 Declare.
1515 (arm_supports_z_point_type): Turn into...
1516 (arm_target::supports_z_point_type): ...this.
1517 (the_low_target): Remove the op field.
1518 * linux-crisv32-low.cc (class crisv32_target)
1519 <supports_z_point_type>: Declare.
1520 (cris_supports_z_point_type): Turn into...
1521 (crisv32_target::supports_z_point_type): ...this.
1522 (the_low_target): Remove the op field.
1523 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1524 Declare.
1525 (mips_supports_z_point_type): Turn into...
1526 (mips_target::supports_z_point_type): ...this.
1527 (the_low_target): Remove the op field.
1528 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1529 Declare.
1530 (ppc_supports_z_point_type): Turn into...
1531 (ppc_target::supports_z_point_type): ...this.
1532 (the_low_target): Remove the op field.
1533 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1534 Declare.
1535 (s390_supports_z_point_type): Turn into...
1536 (s390_target::supports_z_point_type): ...this.
1537 (the_low_target): Remove the op field.
1538 * linux-bfin-low.cc (the_low_target): Remove the op field.
1539 * linux-m32r-low.cc (the_low_target): Ditto.
1540 * linux-m68k-low.cc (the_low_target): Ditto.
1541 * linux-sh-low.cc (the_low_target): Ditto.
1542 * linux-sparc-low.cc (the_low_target): Ditto.
1543 * linux-tic6x-low.cc (the_low_target): Ditto.
1544 * linux-tile-low.cc (the_low_target): Ditto.
1545 * linux-xtensa-low.cc (the_low_target): Ditto.
1546
d7146cda
TBA
15472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1548
1549 Turn the 'breakpoint_at' linux target op into a method of
1550 linux_process_target.
1551
1552 * linux-low.h (struct linux_target_ops): Remove the op.
1553 (class linux_process_target) <low_breakpoint_at>: Declare.
1554
1555 Update the callers below:
1556
1557 * linux-low.cc (linux_process_target::save_stop_reason)
1558 (linux_process_target::thread_still_has_status_pending)
1559 (linux_process_target::wait_1)
1560
1561 * linux-x86-low.cc (class x86_target)
1562 <low_breakpoint_at>: Declare.
1563 (x86_breakpoint_at): Turn into...
1564 (x86_target::low_breakpoint_at): ...this.
1565 (the_low_target): Remove the op field.
1566 * linux-aarch64-low.cc (class aarch64_target)
1567 <low_breakpoint_at>: Declare.
1568 (aarch64_breakpoint_at): Turn into...
1569 (aarch64_target::low_breakpoint_at): ...this.
1570 (the_low_target): Remove the op field.
1571 * linux-arm-low.cc (class arm_target)
1572 <low_breakpoint_at>: Declare.
1573 (arm_target::low_breakpoint_at): Define.
1574 (the_low_target): Remove the op field.
1575 * linux-bfin-low.cc (class bfin_target)
1576 <low_breakpoint_at>: Declare.
1577 (bfin_breakpoint_at): Turn into...
1578 (bfin_target::low_breakpoint_at): ...this.
1579 (the_low_target): Remove the op field.
1580 * linux-cris-low.cc (class cris_target)
1581 <low_breakpoint_at>: Declare.
1582 (cris_breakpoint_at): Turn into...
1583 (cris_target::low_breakpoint_at): ...this.
1584 (the_low_target): Remove the op field.
1585 * linux-crisv32-low.cc (class crisv32_target)
1586 <low_breakpoint_at>: Declare.
1587 (crisv32_breakpoint_at): Turn into...
1588 (crisv32_target::low_breakpoint_at): ...this.
1589 (the_low_target): Remove the op field.
1590 * linux-ia64-low.cc (class ia64_target)
1591 <low_breakpoint_at>: Declare.
1592 (ia64_target::low_breakpoint_at): Define.
1593 * linux-m32r-low.cc (class m32r_target)
1594 <low_breakpoint_at>: Declare.
1595 (m32r_breakpoint_at): Turn into...
1596 (m32r_target::low_breakpoint_at): ...this.
1597 (the_low_target): Remove the op field.
1598 * linux-m68k-low.cc (class m68k_target)
1599 <low_breakpoint_at>: Declare.
1600 (m68k_breakpoint_at): Turn into...
1601 (m68k_target::low_breakpoint_at): ...this.
1602 (the_low_target): Remove the op field.
1603 * linux-mips-low.cc (class mips_target)
1604 <low_breakpoint_at>: Declare.
1605 (mips_breakpoint_at): Turn into...
1606 (mips_target::low_breakpoint_at): ...this.
1607 (the_low_target): Remove the op field.
1608 * linux-nios2-low.cc (class nios2_target)
1609 <low_breakpoint_at>: Declare.
1610 (nios2_breakpoint_at): Turn into...
1611 (nios2_target::low_breakpoint_at): ...this.
1612 (the_low_target): Remove the op field.
1613 * linux-ppc-low.cc (class ppc_target)
1614 <low_breakpoint_at>: Declare.
1615 (ppc_breakpoint_at): Turn into...
1616 (ppc_target::low_breakpoint_at): ...this.
1617 (the_low_target): Remove the op field.
1618 * linux-riscv-low.cc (class riscv_target)
1619 <low_breakpoint_at>: Declare.
1620 (riscv_breakpoint_at): Turn into...
1621 (riscv_target::low_breakpoint_at): ...this.
1622 (the_low_target): Remove the op field.
1623 * linux-s390-low.cc (class s390_target)
1624 <low_breakpoint_at>: Declare.
1625 (s390_breakpoint_at): Turn into...
1626 (s390_target::low_breakpoint_at): ...this.
1627 (the_low_target): Remove the op field.
1628 * linux-sh-low.cc (class sh_target)
1629 <low_breakpoint_at>: Declare.
1630 (sh_breakpoint_at): Turn into...
1631 (sh_target::low_breakpoint_at): ...this.
1632 (the_low_target): Remove the op field.
1633 * linux-sparc-low.cc (class sparc_target)
1634 <low_breakpoint_at>: Declare.
1635 (sparc_breakpoint_at): Turn into...
1636 (sparc_target::low_breakpoint_at): ...this.
1637 (the_low_target): Remove the op field.
1638 * linux-tic6x-low.cc (class tic6x_target)
1639 <low_breakpoint_at>: Declare.
1640 (tic6x_breakpoint_at): Turn into...
1641 (tic6x_target::low_breakpoint_at): ...this.
1642 (the_low_target): Remove the op field.
1643 * linux-tile-low.cc (class tile_target)
1644 <low_breakpoint_at>: Declare.
1645 (tile_breakpoint_at): Turn into...
1646 (tile_target::low_breakpoint_at): ...this.
1647 (the_low_target): Remove the op field.
1648 * linux-xtensa-low.cc (class xtensa_target)
1649 <low_breakpoint_at>: Declare.
1650 (xtensa_breakpoint_at): Turn into...
1651 (xtensa_target::low_breakpoint_at): ...this.
1652 (the_low_target): Remove the op field.
1653
d4807ea2
TBA
16542020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1655
1656 Turn the 'decr_pc_after_break' linux_target_ops field into
1657 a method of linux_process_target.
1658
1659 * linux-low.h (struct linux_target_ops)
1660 <decr_pc_after_break>: Remove.
1661 (class linux_process_target) <low_decr_pc_after_break>: New method
1662 declaration.
1663 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1664 New method implementation.
1665
1666 Update the users below.
1667
1668 (linux_process_target::save_stop_reason)
1669 (linux_process_target::wait_1)
1670 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1671 New declaration.
1672 (x86_target::low_decr_pc_after_break): New method implementation.
1673 (the_low_target): Remove the field.
1674 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1675 New declaration.
1676 (bfin_target::low_decr_pc_after_break): New method implementation.
1677 (the_low_target): Remove the field.
1678 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1679 New declaration.
1680 (m68k_target::low_decr_pc_after_break): New method implementation.
1681 (the_low_target): Remove the field.
1682 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1683 New declaration.
1684 (s390_target::low_decr_pc_after_break): New method implementation.
1685 (the_low_target): Remove the field.
1686 * linux-aarch64-low.cc (the_low_target): Remove the field.
1687 * linux-arm-low.cc (the_low_target): Remove the field.
1688 * linux-cris-low.cc (the_low_target): Remove the field.
1689 * linux-crisv32-low.cc (the_low_target): Remove the field.
1690 * linux-m32r-low.cc (the_low_target): Remove the field.
1691 * linux-mips-low.cc (the_low_target): Remove the field.
1692 * linux-nios2-low.cc (the_low_target): Remove the field.
1693 * linux-ppc-low.cc (the_low_target): Remove the field.
1694 * linux-riscv-low.cc (the_low_target): Remove the field.
1695 * linux-sh-low.cc (the_low_target): Remove the field.
1696 * linux-sparc-low.cc (the_low_target): Remove the field.
1697 * linux-tic6x-low.cc (the_low_target): Remove the field.
1698 * linux-tile-low.cc (the_low_target): Remove the field.
1699 * linux-xtensa-low.cc (the_low_target): Remove the field.
1700
7582c77c
TBA
17012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1702
1703 Remove the 'supports_software_single_step' linux target op and let
1704 the concrete linux target define it by overriding the op in
1705 process_stratum_target.
1706 Turn the 'get_next_pcs' linux target op into a method of
1707 linux_process_target.
1708
1709 * linux-low.h (struct linux_target_ops): Remove the ops.
1710 (class linux_process_target) <supports_software_single_step>:
1711 Remove.
1712 <low_get_next_pcs>: Declare.
1713 * linux-low.cc (can_software_single_step): Remove.
1714 (linux_process_target::low_get_next_pcs): Define.
1715 (linux_process_target::supports_software_single_step): Remove.
1716
1717 Update the callers below.
1718
1719 (linux_process_target::handle_extended_wait)
1720 (linux_process_target::wait_1)
1721 (linux_process_target::install_software_single_step_breakpoints)
1722 (linux_process_target::single_step)
1723 (linux_process_target::thread_needs_step_over)
1724 (linux_process_target::proceed_one_lwp)
1725 (linux_process_target::supports_range_stepping)
1726
1727 * linux-x86-low.cc (the_low_target): Remove the op field.
1728 * linux-aarch64-low.cc (the_low_target): Ditto.
1729 * linux-bfin-low.cc (the_low_target): Ditto.
1730 * linux-cris-low.cc (the_low_target): Ditto.
1731 * linux-crisv32-low.cc (the_low_target): Ditto.
1732 * linux-m32r-low.cc (the_low_target): Ditto.
1733 * linux-m68k-low.cc (the_low_target): Ditto.
1734 * linux-mips-low.cc (the_low_target): Ditto.
1735 * linux-nios2-low.cc (the_low_target): Ditto.
1736 * linux-ppc-low.cc (the_low_target): Ditto.
1737 * linux-riscv-low.cc (the_low_target): Ditto.
1738 * linux-s390-low.cc (the_low_target): Ditto.
1739 * linux-sh-low.cc (the_low_target): Ditto.
1740 * linux-sparc-low.cc (the_low_target): Ditto.
1741 * linux-tic6x-low.cc (the_low_target): Ditto.
1742 * linux-tile-low.cc (the_low_target): Ditto.
1743 * linux-xtensa-low.cc (the_low_target): Ditto.
1744 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1745 <supports_software_single_step>: Declare.
1746 (arm_target::supports_software_single_step): Define.
1747 (arm_gdbserver_get_next_pcs): Turn into...
1748 (arm_target::low_get_next_pcs): ...this.
1749 (the_low_target): Remove the op field.
1750
3ca4edb6
TBA
17512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1752
1753 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1754 the concrete linux target define it by overriding the op
1755 in process_stratum_target.
1756
1757 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1758 Remove.
1759 * linux-low.h (struct linux_target_ops): Remove the op.
1760 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1761 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1762 Declare.
1763 (x86_sw_breakpoint_from_kind): Turn into...
1764 (x86_target::sw_breakpoint_from_kind): ...this.
1765 (the_low_target): Remove the op field.
1766 * linux-aarch64-low.cc (class aarch64_target)
1767 <sw_breakpoint_from_kind>: Declare.
1768 (aarch64_sw_breakpoint_from_kind): Turn into...
1769 (aarch64_target::sw_breakpoint_from_kind): ...this.
1770 (the_low_target): Remove the op field.
1771 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1772 Declare.
1773 (arm_target::sw_breakpoint_from_kind): Define.
1774 (the_low_target): Remove the op field.
1775 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1776 Declare.
1777 (bfin_sw_breakpoint_from_kind): Turn into...
1778 (bfin_target::sw_breakpoint_from_kind): ...this.
1779 (the_low_target): Remove the op field.
1780 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1781 Declare.
1782 (cris_sw_breakpoint_from_kind): Turn into...
1783 (cris_target::sw_breakpoint_from_kind): ...this.
1784 (the_low_target): Remove the op field.
1785 * linux-crisv32-low.cc (class crisv32_target)
1786 <sw_breakpoint_from_kind>: Declare.
1787 (cris_sw_breakpoint_from_kind): Turn into...
1788 (crisv32_target::sw_breakpoint_from_kind): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1791 Declare.
1792 (ia64_target::sw_breakpoint_from_kind): Define.
1793 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1794 Declare.
1795 (m32r_sw_breakpoint_from_kind): Turn into...
1796 (m32r_target::sw_breakpoint_from_kind): ...this.
1797 (the_low_target): Remove the op field.
1798 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1799 Declare.
1800 (m68k_sw_breakpoint_from_kind): Turn into...
1801 (m68k_target::sw_breakpoint_from_kind): ...this.
1802 (the_low_target): Remove the op field.
1803 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1804 Declare.
1805 (mips_sw_breakpoint_from_kind): Turn into...
1806 (mips_target::sw_breakpoint_from_kind): ...this.
1807 (the_low_target): Remove the op field.
1808 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1809 Declare.
1810 (nios2_sw_breakpoint_from_kind): Turn into...
1811 (nios2_target::sw_breakpoint_from_kind): ...this.
1812 (the_low_target): Remove the op field.
1813 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1814 Declare.
1815 (ppc_sw_breakpoint_from_kind): Turn into...
1816 (ppc_target::sw_breakpoint_from_kind): ...this.
1817 (the_low_target): Remove the op field.
1818 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1819 Declare.
1820 (riscv_sw_breakpoint_from_kind): Turn into...
1821 (riscv_target::sw_breakpoint_from_kind): ...this.
1822 (the_low_target): Remove the op field.
1823 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1824 Declare.
1825 (s390_sw_breakpoint_from_kind): Turn into...
1826 (s390_target::sw_breakpoint_from_kind): ...this.
1827 (the_low_target): Remove the op field.
1828 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1829 Declare.
1830 (sh_sw_breakpoint_from_kind): Turn into...
1831 (sh_target::sw_breakpoint_from_kind): ...this.
1832 (the_low_target): Remove the op field.
1833 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1834 Declare.
1835 (sparc_sw_breakpoint_from_kind): Turn into...
1836 (sparc_target::sw_breakpoint_from_kind): ...this.
1837 (the_low_target): Remove the op field.
1838 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1839 Declare.
1840 (tic6x_sw_breakpoint_from_kind): Turn into...
1841 (tic6x_target::sw_breakpoint_from_kind): ...this.
1842 (the_low_target): Remove the op field.
1843 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1844 Declare.
1845 (tile_sw_breakpoint_from_kind): Turn into...
1846 (tile_target::sw_breakpoint_from_kind): ...this.
1847 (the_low_target): Remove the op field.
1848 * linux-xtensa-low.cc (class xtensa_target)
1849 <sw_breakpoint_from_kind>: Declare.
1850 (xtensa_sw_breakpoint_from_kind): Turn into...
1851 (xtensa_target::sw_breakpoint_from_kind): ...this.
1852 (the_low_target): Remove the op field.
1853
06250e4e
TBA
18542020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1855
1856 Remove the 'breakpoint_kind_from_pc' and
1857 'breakpoint_kind_from_current_state' linux target ops, and let the
1858 concrete linux target define them by overriding the ops of
1859 process_stratum_target.
1860
1861 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1862 Remove.
1863 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1864 * linux-low.h (struct linux_target_ops): Remove ops.
1865 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1866 <breakpoint_kind_from_current_state>: Remove.
1867 * linux-x86-low.cc (the_low_target): Remove the op fields.
1868 * linux-bfin-low.cc (the_low_target): Ditto.
1869 * linux-cris-low.cc (the_low_target): Ditto.
1870 * linux-crisv32-low.cc (the_low_target): Ditto.
1871 * linux-m32r-low.cc (the_low_target): Ditto.
1872 * linux-m68k-low.cc (the_low_target): Ditto.
1873 * linux-mips-low.cc (the_low_target): Ditto.
1874 * linux-nios2-low.cc (the_low_target): Ditto.
1875 * linux-ppc-low.cc (the_low_target): Ditto.
1876 * linux-s390-low.cc (the_low_target): Ditto.
1877 * linux-sh-low.cc (the_low_target): Ditto.
1878 * linux-sparc-low.cc (the_low_target): Ditto.
1879 * linux-tic6x-low.cc (the_low_target): Ditto.
1880 * linux-tile-low.cc (the_low_target): Ditto.
1881 * linux-xtensa-low.cc (the_low_target): Ditto.
1882 * linux-aarch64-low.cc (class aarch64_target)
1883 <breakpoint_kind_from_pc>
1884 <breakpoint_kind_from_current_state>: Declare.
1885 (aarch64_breakpoint_kind_from_pc): Turn into...
1886 (aarch64_target::breakpoint_kind_from_pc): ...this.
1887 (aarch64_breakpoint_kind_from_current_state): Turn into...
1888 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1889 (the_low_target): Remove the op fields.
1890 * linux-arm-low.cc (class arm_target):
1891 <breakpoint_kind_from_pc>
1892 <breakpoint_kind_from_current_state>: Declare.
1893 (arm_target::breakpoint_kind_from_pc): Define.
1894 (arm_target::breakpoint_kind_from_current_state): Define.
1895 (the_low_target): Remove the op fields.
1896 * linux-riscv-low.cc (class riscv_target):
1897 <breakpoint_kind_from_pc>: Declare.
1898 (riscv_breakpoint_kind_from_pc): Turn into...
1899 (riscv_target::breakpoint_kind_from_pc): ...this.
1900 (the_low_target): Remove the op fields.
1901
bf9ae9d8
TBA
19022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1903
1904 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1905 of linux_process_target.
1906
1907 * linux-low.h (struct linux_target_ops): Remove the ops.
1908 (class linux_process_target) <low_supports_breakpoints>
1909 <low_get_pc>
1910 <low_set_pc>: Declare.
1911 * linux-low.cc (supports_breakpoints): Turn into...
1912 (linux_process_target::low_supports_breakpoints): ...this.
1913 (linux_process_target::low_get_pc): Define.
1914 (linux_process_target::low_set_pc): Define.
1915
1916 Update the callers below.
1917
1918 (linux_process_target::get_pc)
1919 (linux_process_target::save_stop_reason)
1920 (linux_process_target::maybe_move_out_of_jump_pad)
1921 (linux_process_target::wait_1)
1922 (linux_process_target::resume_one_lwp_throw)
1923 (linux_process_target::resume)
1924 (linux_process_target::proceed_all_lwps)
1925 (linux_process_target::read_pc)
1926 (linux_process_target::write_pc)
1927
1928 * linux-x86-low.cc (class linux_process_target)
1929 <low_supports_breakpoints>
1930 <low_get_pc>
1931 <low_set_pc>: Declare.
1932 (x86_target::low_supports_breakpoints): Define.
1933 (x86_get_pc): Turn into...
1934 (x86_target::low_get_pc): ...this.
1935 (x86_set_pc): Turn into...
1936 (x86_target::low_set_pc): ...this.
1937 (the_low_target): Remove the op fields.
1938 * linux-arm-low.cc (class arm_target)
1939 <low_supports_breakpoints>
1940 <low_get_pc>
1941 <low_set_pc>: Declare.
1942 (arm_target::low_supports_breakpoints)
1943 (arm_target::low_get_pc)
1944 (arm_target::low_set_pc): Define.
1945 (the_low_target): Remove the op fields.
1946 * linux-bfin-low.cc (class bfin_target)
1947 <low_supports_breakpoints>
1948 <low_get_pc>
1949 <low_set_pc>: Declare.
1950 (bfin_target::low_supports_breakpoints)
1951 (bfin_target::low_get_pc)
1952 (bfin_target::low_set_pc): Define.
1953 (the_low_target): Remove the op fields.
1954 * linux-cris-low.cc (class cris_target)
1955 <low_supports_breakpoints>
1956 <low_get_pc>
1957 <low_set_pc>: Declare.
1958 (cris_target::low_supports_breakpoints)
1959 (cris_target::low_get_pc)
1960 (cris_target::low_set_pc): Define.
1961 (the_low_target): Remove the op fields.
1962 * linux-crisv32-low.cc (class crisv32_target)
1963 <low_supports_breakpoints>
1964 <low_get_pc>
1965 <low_set_pc>: Declare.
1966 (crisv32_target::low_supports_breakpoints)
1967 (crisv32_target::low_get_pc)
1968 (crisv32_target::low_set_pc): Define.
1969 (the_low_target): Remove the op fields.
1970 * linux-m32r-low.cc (class m32r_target)
1971 <low_supports_breakpoints>
1972 <low_get_pc>
1973 <low_set_pc>: Declare.
1974 (m32r_target::low_supports_breakpoints)
1975 (m32r_target::low_get_pc)
1976 (m32r_target::low_set_pc): Define.
1977 (the_low_target): Remove the op fields.
1978 * linux-m68k-low.cc (class m68k_target)
1979 <low_supports_breakpoints>
1980 <low_get_pc>
1981 <low_set_pc>: Declare.
1982 (m68k_target::low_supports_breakpoints)
1983 (m68k_target::low_get_pc)
1984 (m68k_target::low_set_pc): Define.
1985 (the_low_target): Remove the op fields.
1986 * linux-nios2-low.cc (class nios2_target)
1987 <low_supports_breakpoints>
1988 <low_get_pc>
1989 <low_set_pc>: Declare.
1990 (nios2_target::low_supports_breakpoints)
1991 (nios2_target::low_get_pc)
1992 (nios2_target::low_set_pc): Define.
1993 (the_low_target): Remove the op fields.
1994 * linux-sh-low.cc (class sh_target)
1995 <low_supports_breakpoints>
1996 <low_get_pc>
1997 <low_set_pc>: Declare.
1998 (sh_target::low_supports_breakpoints)
1999 (sh_target::low_get_pc)
2000 (sh_target::low_set_pc): Define.
2001 (the_low_target): Remove the op fields.
2002 * linux-xtensa-low.cc (class xtensa_target)
2003 <low_supports_breakpoints>
2004 <low_get_pc>
2005 <low_set_pc>: Declare.
2006 (xtensa_target::low_supports_breakpoints)
2007 (xtensa_target::low_get_pc)
2008 (xtensa_target::low_set_pc): Define.
2009 (the_low_target): Remove the op fields.
2010 * linux-sparc-low.cc (class sparc_target)
2011 <low_supports_breakpoints>
2012 <low_get_pc>: Declare.
2013 (sparc_target::low_supports_breakpoints)
2014 (sparc_target::low_get_pc): Define.
2015 (the_low_target): Remove the op fields.
2016 * linux-tile-low.cc (class tile_target)
2017 <low_supports_breakpoints>
2018 <low_get_pc>
2019 <low_set_pc>: Declare.
2020 (tile_target::low_supports_breakpoints)
2021 (tile_target::low_get_pc)
2022 (tile_target::low_set_pc): Define.
2023 (the_low_target): Remove the op fields.
2024 * linux-aarch64-low.cc (class aarch64_target)
2025 <low_supports_breakpoints>
2026 <low_get_pc>
2027 <low_set_pc>: Declare.
2028 (aarch64_target::low_supports_breakpoints): Define.
2029 (aarch64_get_pc): Turn into...
2030 (aarch64_target::low_get_pc): ...this.
2031 (aarch64_set_pc): Turn into...
2032 (aarch64_target::low_set_pc): ...this.
2033 (the_low_target): Remove the op fields.
2034 * linux-mips-low.cc (class mips_target)
2035 <low_supports_breakpoints>
2036 <low_get_pc>
2037 <low_set_pc>: Declare.
2038 (mips_target::low_supports_breakpoints): Define.
2039 (mips_get_pc): Turn into...
2040 (mips_target::low_get_pc): ...this.
2041 (mips_set_pc): Turn into...
2042 (mips_target::low_set_pc): ...this.
2043 (the_low_target): Remove the op fields.
2044 * linux-ppc-low.cc (class ppc_target)
2045 <low_supports_breakpoints>
2046 <low_get_pc>
2047 <low_set_pc>: Declare.
2048 (ppc_target::low_supports_breakpoints): Define.
2049 (ppc_get_pc): Turn into...
2050 (ppc_target::low_get_pc): ...this.
2051 (ppc_set_pc): Turn into...
2052 (ppc_target::low_set_pc): ...this.
2053 (the_low_target): Remove the op fields.
2054 * linux-riscv-low.cc (class riscv_target)
2055 <low_supports_breakpoints>
2056 <low_get_pc>
2057 <low_set_pc>: Declare.
2058 (riscv_target::low_supports_breakpoints): Define.
2059 (riscv_get_pc): Turn into...
2060 (riscv_target::low_get_pc): ...this.
2061 (riscv_set_pc): Turn into...
2062 (riscv_target::low_set_pc): ...this.
2063 (the_low_target): Remove the op fields.
2064 * linux-s390-low.cc (class s390_target)
2065 <low_supports_breakpoints>
2066 <low_get_pc>
2067 <low_set_pc>: Declare.
2068 (s390_target::low_supports_breakpoints): Define.
2069 (s390_get_pc): Turn into...
2070 (s390_target::low_get_pc): ...this.
2071 (s390_set_pc): Turn into...
2072 (s390_target::low_set_pc): ...this.
2073 (the_low_target): Remove the op fields.
2074 * linux-tic6x-low.cc (class tic6x_target)
2075 <low_supports_breakpoints>
2076 <low_get_pc>
2077 <low_set_pc>: Declare.
2078 (tic6x_target::low_supports_breakpoints): Define.
2079 (tic6x_get_pc): Turn into...
2080 (tic6x_target::low_get_pc): ...this.
2081 (tic6x_set_pc): Turn into...
2082 (tic6x_target::low_set_pc): ...this.
2083 (the_low_target): Remove the op fields.
2084
df95181f
TBA
20852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2086
2087 Turn some more static methods in linux-low into private methods
2088 of linux_process_target.
2089
2090 * linux-low.cc (get_pc): Turn into...
2091 (linux_process_target::get_pc): ...this.
2092 (save_stop_reason): Turn into...
2093 (linux_process_target::save_stop_reason): ...this.
2094 (thread_still_has_status_pending_p): Turn into...
2095 (linux_process_target::thread_still_has_status_pending): ...this.
2096 (status_pending_p_callback): Turn into...
2097 (linux_process_target::status_pending_p_callback): ...this.
2098 (resume_stopped_resumed_lwps): Turn into...
2099 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2100 (install_software_single_step_breakpoints): Turn into...
2101 (linux_process_target::install_software_single_step_breakpoints):
2102 ...this.
2103 (single_step): Turn into...
2104 (linux_process_target::single_step): ...this.
2105 (linux_resume_one_lwp_throw): Turn into...
2106 (linux_process_target::resume_one_lwp_throw): ...this.
2107 (linux_resume_one_lwp): Turn into...
2108 (linux_process_target::resume_one_lwp): ...this.
2109 (resume_status_pending_p): Turn into...
2110 (linux_process_target::resume_status_pending): ...this.
2111 (need_step_over_p): Turn into...
2112 (linux_process_target::thread_needs_step_over): ...this.
2113 (linux_resume_one_thread): Turn into...
2114 (linux_process_target::resume_one_thread): ...this.
2115 (proceed_one_lwp): Turn into...
2116 (linux_process_target::proceed_one_lwp): ...this.
2117 (unsuspend_and_proceed_one_lwp): Turn into...
2118 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2119
2120 Update the calls/references to the above functions below.
2121
2122 (linux_process_target::handle_extended_wait)
2123 (linux_process_target::filter_event)
2124 (linux_process_target::wait_for_event_filtered)
2125 (linux_process_target::wait_1)
2126 (linux_process_target::move_out_of_jump_pad)
2127 (linux_process_target::start_step_over)
2128 (linux_process_target::resume)
2129 (linux_process_target::proceed_all_lwps)
2130 (regsets_store_inferior_registers)
2131 (linux_process_target::store_register)
2132
2133 * linux-low.h (class linux_process_target)
2134 <get_pc>
2135 <save_stop_reason>
2136 <thread_still_has_status_pending>
2137 <status_pending_p_callback>
2138 <resume_stopped_resumed_lwps>
2139 <install_software_single_step_breakpoints>
2140 <single_step>
2141 <resume_one_lwp_throw>
2142 <resume_one_lwp>
2143 <resume_status_pending>
2144 <thread_needs_step_over>
2145 <resume_one_thread>
2146 <proceed_one_lwp>
2147 <unsuspend_and_proceed_one_lwp>: Declare.
2148
bd70b1f2
TBA
21492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2150
2151 Turn the 'fetch_register' linux target op into a method of
2152 linux_process_target.
2153
2154 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2155 (class linux_process_target) <low_fetch_register>: Declare.
2156 * linux-x86-low.cc (the_low_target)
2157 * linux-aarch64-low.cc (the_low_target)
2158 * linux-arm-low.cc (the_low_target)
2159 * linux-bfin-low.cc (the_low_target)
2160 * linux-cris-low.cc (the_low_target)
2161 * linux-crisv32-low.cc (the_low_target)
2162 * linux-m32r-low.cc (the_low_target)
2163 * linux-m68k-low.cc (the_low_target)
2164 * linux-nios2-low.cc (the_low_target)
2165 * linux-ppc-low.cc (the_low_target)
2166 * linux-s390-low.cc (the_low_target)
2167 * linux-sh-low.cc (the_low_target)
2168 * linux-sparc-low.cc (the_low_target)
2169 * linux-tic6x-low.cc (the_low_target)
2170 * linux-tile-low.cc (the_low_target)
2171 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2172 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2173 Declare.
2174 (ia64_fetch_register): Turn into...
2175 (ia64_target::low_fetch_register): ...this.
2176 (the_low_target): Remove the op field.
2177 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2178 Declare.
2179 (mips_fetch_register): Turn into...
2180 (mips_target::low_fetch_register): ...this.
2181 (the_low_target): Remove the op field.
2182 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2183 Declare.
2184 (riscv_fetch_register): Turn into...
2185 (riscv_target::low_fetch_register): ...this.
2186 (the_low_target): Remove the op field.
2187
2188 Update the callers below.
2189
2190 * linux-low.cc (linux_process_target::fetch_registers)
2191 (linux_process_target::low_fetch_register)
2192
daca57a7
TBA
21932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2194
2195 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2196 linux target ops into methods of linux_process_target.
2197
2198 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2199 (class linux_process_target) <fetch_register>
2200 <store_register>
2201 <usr_fetch_inferior_registers>
2202 <usr_store_inferior_registers>
2203 <low_cannot_fetch_register>
2204 <low_cannot_fetch_register> Declare.
2205 * linux-low.cc (fetch_register): Turn into...
2206 (linux_process_target::fetch_register): ...this.
2207 (store_register): Turn into ...
2208 (linux_process_target::store_register): ...this.
2209 (usr_fetch_inferior_registers): Turn into...
2210 (linux_process_target::usr_fetch_inferior_registers): ...this.
2211 (usr_store_inferior_registers): Turn into...
2212 (linux_process_target::usr_store_inferior_registers): ...this.
2213 * linux-x86-low.cc (class x86_target)
2214 <low_cannot_fetch_register>
2215 <low_cannot_store_register>: Declare.
2216 (x86_cannot_store_register): Turn into...
2217 (x86_target::low_cannot_store_register): ...this.
2218 (x86_cannot_fetch_register): Turn into...
2219 (x86_target::low_cannot_fetch_register): ...this.
2220 (the_low_target): Remove the target op fields.
2221 * linux-aarch64-low.cc (class aarch64_target)
2222 <low_cannot_fetch_register>
2223 <low_cannot_store_register>: Declare.
2224 (aarch64_target::low_cannot_fetch_register)
2225 (aarch64_target::low_cannot_store_register): Define.
2226 (the_low_target): Remove the op fields.
2227 * linux-arm-low.cc (class arm_target)
2228 <low_cannot_fetch_register>
2229 <low_cannot_store_register>: Declare.
2230 (arm_cannot_fetch_register): Turn into...
2231 (arm_target::low_cannot_fetch_register): ...this.
2232 (arm_cannot_store_register): Turn into...
2233 (arm_target::low_cannot_store_register): ...this.
2234 (the_low_target): Remove the op fields.
2235 * linux-bfin-low.cc (class bfin_target)
2236 <low_cannot_fetch_register>
2237 <low_cannot_store_register>: Declare.
2238 (bfin_cannot_fetch_register): Turn into...
2239 (bfin_target::low_cannot_fetch_register): ...this.
2240 (bfin_cannot_store_register): Turn into...
2241 (bfin_target::low_cannot_store_register): ...this.
2242 (the_low_target): Remove the op fields.
2243 * linux-cris-low.cc (class cris_target)
2244 <low_cannot_fetch_register>
2245 <low_cannot_store_register>: Declare.
2246 (cris_cannot_fetch_register): Turn into...
2247 (cris_target::low_cannot_fetch_register): ...this.
2248 (cris_cannot_store_register): Turn into...
2249 (cris_target::low_cannot_store_register): ...this.
2250 (the_low_target): Remove the op fields.
2251 * linux-crisv32-low.cc (class crisv32_target)
2252 <low_cannot_fetch_register>
2253 <low_cannot_store_register>: Declare.
2254 (crisv32_target::low_cannot_fetch_register)
2255 (crisv32_target::low_cannot_store_register): Define.
2256 (the_low_target): Remove the op fields.
2257 * linux-ia64-low.cc (class ia64_target)
2258 <low_cannot_fetch_register>
2259 <low_cannot_store_register>: Declare.
2260 (ia64_cannot_fetch_register): Turn into...
2261 (ia64_target::low_cannot_fetch_register): ...this.
2262 (ia64_cannot_store_register): Turn into...
2263 (ia64_target::low_cannot_store_register): ...this.
2264 (the_low_target): Remove the op fields.
2265 * linux-m32r-low.cc (class m32r_target)
2266 <low_cannot_fetch_register>
2267 <low_cannot_store_register>: Declare.
2268 (m32r_cannot_fetch_register): Turn into...
2269 (m32r_target::low_cannot_fetch_register): ...this.
2270 (m32r_cannot_store_register): Turn into...
2271 (m32r_target::low_cannot_store_register): ...this.
2272 (the_low_target): Remove the op fields.
2273 * linux-m68k-low.cc (class m68k_target)
2274 <low_cannot_fetch_register>
2275 <low_cannot_store_register>: Declare.
2276 (m68k_cannot_fetch_register): Turn into...
2277 (m68k_target::low_cannot_fetch_register): ...this.
2278 (m68k_cannot_store_register): Turn into...
2279 (m68k_target::low_cannot_store_register): ...this.
2280 (the_low_target): Remove the op fields.
2281 * linux-mips-low.cc (class mips_target)
2282 <low_cannot_fetch_register>
2283 <low_cannot_store_register>: Declare.
2284 (mips_cannot_fetch_register): Turn into...
2285 (mips_target::low_cannot_fetch_register): ...this.
2286 (mips_cannot_store_register): Turn into...
2287 (mips_target::low_cannot_store_register): ...this.
2288 (get_usrregs_info): Inline at the call sites in
2289 low_cannot_fetch_register and low_cannot_store_register,
2290 and remove.
2291 (the_low_target): Remove the op fields.
2292 * linux-nios2-low.cc (class nios2_target)
2293 <low_cannot_fetch_register>
2294 <low_cannot_store_register>: Declare.
2295 (nios2_cannot_fetch_register): Turn into...
2296 (nios2_target::low_cannot_fetch_register): ...this.
2297 (nios2_cannot_store_register): Turn into...
2298 (nios2_target::low_cannot_store_register): ...this.
2299 (the_low_target): Remove the op fields.
2300 * linux-ppc-low.cc (class ppc_target)
2301 <low_cannot_fetch_register>
2302 <low_cannot_store_register>: Declare.
2303 (ppc_cannot_fetch_register): Turn into...
2304 (ppc_target::low_cannot_fetch_register): ...this.
2305 (ppc_cannot_store_register): Turn into...
2306 (ppc_target::low_cannot_store_register): ...this.
2307 (the_low_target): Remove the op fields.
2308 * linux-riscv-low.cc (class riscv_target)
2309 <low_cannot_fetch_register>
2310 <low_cannot_store_register>: Declare.
2311 (riscv_target::low_cannot_fetch_register)
2312 (riscv_target::low_cannot_store_register): Define.
2313 (the_low_target): Remove the op fields.
2314 * linux-s390-low.cc (class s390_target)
2315 <low_cannot_fetch_register>
2316 <low_cannot_store_register>: Declare.
2317 (s390_cannot_fetch_register): Turn into...
2318 (s390_target::low_cannot_fetch_register): ...this.
2319 (s390_cannot_store_register): Turn into...
2320 (s390_target::low_cannot_store_register): ...this.
2321 (the_low_target): Remove the op fields.
2322 * linux-sh-low.cc (class sh_target)
2323 <low_cannot_fetch_register>
2324 <low_cannot_store_register>: Declare.
2325 (sh_cannot_fetch_register): Turn into...
2326 (sh_target::low_cannot_fetch_register): ...this.
2327 (sh_cannot_store_register): Turn into...
2328 (sh_target::low_cannot_store_register): ...this.
2329 (the_low_target): Remove the op fields.
2330 * linux-sparc-low.cc (class sparc_target)
2331 <low_cannot_fetch_register>
2332 <low_cannot_store_register>: Declare.
2333 (sparc_cannot_fetch_register): Turn into...
2334 (sparc_target::low_cannot_fetch_register): ...this.
2335 (sparc_cannot_store_register): Turn into...
2336 (sparc_target::low_cannot_store_register): ...this.
2337 (the_low_target): Remove the op fields.
2338 * linux-tic6x-low.cc (class tic6x_target)
2339 <low_cannot_fetch_register>
2340 <low_cannot_store_register>: Declare.
2341 (tic6x_cannot_fetch_register): Turn into...
2342 (tic6x_target::low_cannot_fetch_register): ...this.
2343 (tic6x_cannot_store_register): Turn into...
2344 (tic6x_target::low_cannot_store_register): ...this.
2345 (the_low_target): Remove the op fields.
2346 * linux-tile-low.cc (class tile_target)
2347 <low_cannot_fetch_register>
2348 <low_cannot_store_register>: Declare.
2349 (tile_cannot_fetch_register): Turn into...
2350 (tile_target::low_cannot_fetch_register): ...this.
2351 (tile_cannot_store_register): Turn into...
2352 (tile_target::low_cannot_store_register): ...this.
2353 (the_low_target): Remove the op fields.
2354 * linux-xtensa-low.cc (class xtensa_target)
2355 <low_cannot_fetch_register>
2356 <low_cannot_store_register>: Declare.
2357 (xtensa_target::low_cannot_fetch_register)
2358 (xtensa_target::low_cannot_store_register): Define.
2359 (the_low_target): Remove the op fields.
2360
aa8d21c9
TBA
23612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2362
2363 Turn the 'regs_info' linux target op into a method of
2364 linux_process_target.
2365
2366 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2367 (class linux_process_target) <get_regs_info>: Define.
2368
2369 Update the callers below.
2370
2371 * linux-low.cc (linux_process_target::fetch_registers)
2372 (linux_process_target::store_registers)
2373 * proc-service.cc (gregset_info)
2374
2375 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2376 (x86_linux_regs_info): Turn into ...
2377 (x86_target::get_regs_info): ...this.
2378 (the_low_target): Remove the op field.
2379 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2380 Declare.
2381 (aarch64_regs_info): Turn into ...
2382 (aarch64_target::get_regs_info): ...this.
2383 (the_low_target): Remove the op field.
2384 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2385 (arm_regs_info): Turn into ...
2386 (arm_target::get_regs_info): ...this.
2387 (the_low_target): Remove the op field.
2388 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2389 (bfin_regs_info): Turn into ...
2390 (bfin_target::get_regs_info): ...this.
2391 (the_low_target): Remove the op field.
2392 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2393 (cris_regs_info): Turn into ...
2394 (cris_target::get_regs_info): ...this.
2395 (the_low_target): Remove the op field.
2396 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2397 Declare.
2398 (crisv32_regs_info): Turn into ...
2399 (crisv32_target::get_regs_info): ...this.
2400 (the_low_target): Remove the op field.
2401 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2402 (ia64_regs_info): Turn into ...
2403 (ia64_target::get_regs_info): ...this.
2404 (the_low_target): Remove the op field.
2405 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2406 (m32r_regs_info): Turn into ...
2407 (m32r_target::get_regs_info): ...this.
2408 (the_low_target): Remove the op field.
2409 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2410 (m68k_regs_info): Turn into ...
2411 (m68k_target::get_regs_info): ...this.
2412 (the_low_target): Remove the op field.
2413 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2414 (mips_regs_info): Turn into ...
2415 (mips_target::get_regs_info): ...this.
2416 (the_low_target): Remove the op field.
2417 (get_usrregs_info): Update the call to the op.
2418 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2419 (nios2_regs_info): Turn into ...
2420 (nios2_target::get_regs_info): ...this.
2421 (the_low_target): Remove the op field.
2422 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2423 (ppc_regs_info): Turn into ...
2424 (ppc_target::get_regs_info): ...this.
2425 (the_low_target): Remove the op field.
2426 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2427 (riscv_regs_info): Turn into ...
2428 (riscv_target::get_regs_info): ...this.
2429 (the_low_target): Remove the op field.
2430 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2431 (s390_regs_info): Turn into ...
2432 (s390_target::get_regs_info): ...this.
2433 (the_low_target): Remove the op field.
2434 (s390_collect_ptrace_register)
2435 (s390_supply_ptrace_register)
2436 (s390_fill_gregset): Update the call to the op.
2437 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2438 (sh_regs_info): Turn into ...
2439 (sh_target::get_regs_info): ...this.
2440 (the_low_target): Remove the op field.
2441 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2442 (sparc_regs_info): Turn into ...
2443 (sparc_target::get_regs_info): ...this.
2444 (the_low_target): Remove the op field.
2445 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2446 (tic6x_regs_info): Turn into ...
2447 (tic6x_target::get_regs_info): ...this.
2448 (the_low_target): Remove the op field.
2449 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2450 (tile_regs_info): Turn into ...
2451 (tile_target::get_regs_info): ...this.
2452 (the_low_target): Remove the op field.
2453 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2454 Declare.
2455 (xtensa_regs_info): Turn into ...
2456 (xtensa_target::get_regs_info): ...this.
2457 (the_low_target): Remove the op field.
2458
797bcff5
TBA
24592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2460
2461 Turn the 'arch_setup' linux target op into a method of
2462 linux_process_target.
2463
2464 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2465 (class linux_process_target) <arch_setup_thread>
2466 <low_arch_setup>: New declarations.
2467 * linux-low.cc (linux_arch_setup): Delete.
2468 (linux_arch_setup_thread): Turn into...
2469 (linux_process_target::arch_setup_thread): ... this.
2470
2471 Update the callers below.
2472
2473 (linux_process_target::handle_extended_wait)
2474 (linux_process_target::post_create_inferior)
2475 (linux_process_target::filter_event)
2476
2477 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2478 declaration.
2479 (x86_linux_update_xmltarget): Turn into...
2480 (x86_target::update_xmltarget): ...this.
2481 (x86_linux_process_qsupported): Update the call to
2482 x86_linux_update_xmltarget.
2483 (x86_arch_setup): Turn into ...
2484 (x86_target::low_arch_setup): ...this.
2485 (the_low_target): Remove the op field.
2486 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2487 declaration.
2488 (aarch64_arch_setup): Turn into ...
2489 (aarch64_target::low_arch_setup): ...this.
2490 (the_low_target): Remove the op field.
2491 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2492 declaration.
2493 (arm_arch_setup): Turn into ...
2494 (arm_target::low_arch_setup): ...this.
2495 (the_low_target): Remove the op field.
2496 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2497 declaration.
2498 (bfin_arch_setup): Turn into ...
2499 (bfin_target::low_arch_setup): ...this.
2500 (the_low_target): Remove the op field.
2501 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2502 declaration.
2503 (cris_arch_setup): Turn into ...
2504 (cris_target::low_arch_setup): ...this.
2505 (the_low_target): Remove the op field.
2506 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2507 declaration.
2508 (crisv32_arch_setup): Turn into ...
2509 (crisv32_target::low_arch_setup): ...this.
2510 (the_low_target): Remove the op field.
2511 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2512 declaration.
2513 (ia64_arch_setup): Turn into ...
2514 (ia64_target::low_arch_setup): ...this.
2515 (the_low_target): Remove the op field.
2516 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2517 declaration.
2518 (m32r_arch_setup): Turn into ...
2519 (m32r_target::low_arch_setup): ...this.
2520 (the_low_target): Remove the op field.
2521 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2522 declaration.
2523 (m68k_arch_setup): Turn into ...
2524 (m68k_target::low_arch_setup): ...this.
2525 (the_low_target): Remove the op field.
2526 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2527 declaration.
2528 (mips_arch_setup): Turn into ...
2529 (mips_target::low_arch_setup): ...this.
2530 (the_low_target): Remove the op field.
2531 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2532 declaration.
2533 (nios2_arch_setup): Turn into ...
2534 (nios2_target::low_arch_setup): ...this.
2535 (the_low_target): Remove the op field.
2536 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2537 declaration.
2538 (ppc_arch_setup): Turn into ...
2539 (ppc_target::low_arch_setup): ...this.
2540 (the_low_target): Remove the op field.
2541 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2542 declaration.
2543 (riscv_arch_setup): Turn into ...
2544 (riscv_target::low_arch_setup): ...this.
2545 (the_low_target): Remove the op field.
2546 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2547 declaration.
2548 (s390_arch_setup): Turn into ...
2549 (s390_target::low_arch_setup): ...this.
2550 (the_low_target): Remove the op field.
2551 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2552 declaration.
2553 (sh_arch_setup): Turn into ...
2554 (sh_target::low_arch_setup): ...this.
2555 (the_low_target): Remove the op field.
2556 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2557 declaration.
2558 (sparc_arch_setup): Turn into ...
2559 (sparc_target::low_arch_setup): ...this.
2560 (the_low_target): Remove the op field.
2561 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2562 declaration.
2563 (tic6x_arch_setup): Turn into ...
2564 (tic6x_target::low_arch_setup): ...this.
2565 (the_low_target): Remove the op field.
2566 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2567 declaration.
2568 (tile_arch_setup): Turn into ...
2569 (tile_target::low_arch_setup): ...this.
2570 (the_low_target): Remove the op field.
2571 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2572 declaration.
2573 (xtensa_arch_setup): Turn into ...
2574 (xtensa_target::low_arch_setup): ...this.
2575 (the_low_target): Remove the op field.
2576
ef0478f6
TBA
25772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2578
2579 * linux-low.h (the_linux_target): New extern declaration.
2580 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2581 'the_target'.
2582 (the_linux_target): Remove.
2583 * linux-x86-low.cc (class x86_target): New class.
2584 (the_x86_target): New static object.
2585 (the_linux_target): Define as pointer to the_x86_target.
2586 * linux-aarch64-low.cc (class aarch64_target): New class.
2587 (the_aarch64_target): New static object.
2588 (the_linux_target): Define as pointer to the_aarch64_target.
2589 * linux-arm-low.cc (class arm_target): New class.
2590 (the_arm_target): New static object.
2591 (the_linux_target): Define as pointer to the_arm_target.
2592 * linux-bfin-low.cc (class bfin_target): New class.
2593 (the_bfin_target): New static object.
2594 (the_linux_target): Define as pointer to the_bfin_target.
2595 * linux-cris-low.cc (class cris_target): New class.
2596 (the_cris_target): New static object.
2597 (the_linux_target): Define as pointer to the_cris_target.
2598 * linux-crisv32-low.cc (class crisv32_target): New class.
2599 (the_crisv32_target): New static object.
2600 (the_linux_target): Define as pointer to the_crisv32_target.
2601 * linux-ia64-low.cc (class ia64_target): New class.
2602 (the_ia64_target): New static object.
2603 (the_linux_target): Define as pointer to the_ia64_target.
2604 * linux-m32r-low.cc (class m32r_target): New class.
2605 (the_m32r_target): New static object.
2606 (the_linux_target): Define as pointer to the_m32r_target.
2607 * linux-m68k-low.cc (class m68k_target): New class.
2608 (the_m68k_target): New static object.
2609 (the_linux_target): Define as pointer to the_m68k_target.
2610 * linux-mips-low.cc (class mips_target): New class.
2611 (the_mips_target): New static object.
2612 (the_linux_target): Define as pointer to the_mips_target.
2613 * linux-nios2-low.cc (class nios2_target): New class.
2614 (the_nios2_target): New static object.
2615 (the_linux_target): Define as pointer to the_nios2_target.
2616 * linux-ppc-low.cc (class ppc_target): New class.
2617 (the_ppc_target): New static object.
2618 (the_linux_target): Define as pointer to the_ppc_target.
2619 * linux-riscv-low.cc (class riscv_target): New class.
2620 (the_riscv_target): New static object.
2621 (the_linux_target): Define as pointer to the_riscv_target.
2622 * linux-s390-low.cc (class s390_target): New class.
2623 (the_s390_target): New static object.
2624 (the_linux_target): Define as pointer to the_s390_target.
2625 * linux-sh-low.cc (class sh_target): New class.
2626 (the_sh_target): New static object.
2627 (the_linux_target): Define as pointer to the_sh_target.
2628 * linux-sparc-low.cc (class sparc_target): New class.
2629 (the_sparc_target): New static object.
2630 (the_linux_target): Define as pointer to the_sparc_target.
2631 * linux-tic6x-low.cc (class tic6x_target): New class.
2632 (the_tic6x_target): New static object.
2633 (the_linux_target): Define as pointer to the_tic6x_target.
2634 * linux-tile-low.cc (class tile_target): New class.
2635 (the_tile_target): New static object.
2636 (the_linux_target): Define as pointer to the_tile_target.
2637 * linux-xtensa-low.cc (class xtensa_target): New class.
2638 (the_xtensa_target): New static object.
2639 (the_linux_target): Define as pointer to the_xtensa_target.
2640
d16f3f6c
TBA
26412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2642
2643 Turn some static functions in linux-low.cc into private methods of
2644 linux_process_target.
2645
2646 * linux-low.cc (handle_extended_wait): Turn into ...
2647 (linux_process_target::handle_extended_wait): ...this. Call
2648 'mourn' on 'this' object instead of 'the_target'.
2649 (maybe_move_out_of_jump_pad): Turn into...
2650 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2651 (linux_low_filter_event): Turn into...
2652 (linux_process_target::filter_event): ...this.
2653 (linux_wait_for_event_filtered): Turn into...
2654 (linux_process_target::wait_for_event_filtered): ...this.
2655 (linux_wait_for_event): Turn into...
2656 (linux_process_target::wait_for_event): ...this.
2657 (linux_wait_1): Turn into...
2658 (linux_process_target::wait_1): ...this.
2659 (wait_for_sigstop): Turn into...
2660 (linux_process_target::wait_for_sigstop): ...this.
2661 (move_out_of_jump_pad_callback): Turn into...
2662 (linux_process_target::move_out_of_jump_pad): ...this.
2663 (stop_all_lwps): Turn into...
2664 (linux_process_target::stop_all_lwps): ...this.
2665 (start_step_over): Turn into...
2666 (linux_process_target::start_step_over): ...this.
2667 (complete_ongoing_step_over): Turn into...
2668 (linux_process_target::complete_ongoing_step_over): ...this.
2669 (proceed_all_lwps): Turn into...
2670 (linux_process_target::proceed_all_lwps): ...this.
2671 (unstop_all_lwps): Turn into...
2672 (linux_process_target::unstop_all_lwps): ...this.
2673
2674 * linux-low.h (class linux_process_target)
2675 <handle_extended_wait>
2676 <maybe_move_out_of_jump_pad>
2677 filter_event>
2678 <wait_for_event_filtered>
2679 <wait_for_event>
2680 <wait_1>
2681 <wait_for_sigstop>
2682 <move_out_of_jump_pad>
2683 <stop_all_lwps>
2684 <start_step_over>
2685 <complete_ongoing_step_over>
2686 <proceed_all_lwps>
2687 <unstop_all_lwps>: Declare.
2688
2689 Update the callers below.
2690
2691 * linux-low.cc (linux_process_target::attach): Update.
2692 (linux_process_target::stabilize_threads): Ditto.
2693 (linux_process_target::wait): Ditto.
2694
a5863204
TBA
26952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2696
2697 * linux-low.h (struct linux_target_ops): Update the comment for
2698 'cannot_store_register' to return 0 or 1.
2699 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2700 of 2.
2701
c884cc46
SM
27022020-03-20 Simon Marchi <simon.marchi@efficios.com>
2703
2704 * config.in: Re-generate.
2705 * configure: Re-generate.
2706
5a82b8a1
KR
27072020-03-17 Kamil Rytarowski <n54@gmx.com>
2708
2709 * regcache.cc (find_register_by_number): Update.
2710 * tdesc.cc (init_target_desc): Likewise.
2711 * tdesc.h (target_desc::reg_defs): Likewise.
2712
4635ff97
TT
27132020-03-12 Tom Tromey <tom@tromey.com>
2714
2715 * configure: Rebuild.
2716 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2717 (WIN32APILIBS): New subst.
2718 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2719 gdbsupport files.
2720 (gdbsupport/%.o): Remove target.
2721 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2722 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2723 (WIN32APILIBS): New variable.
2724 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2725 (gdbreplay$(EXEEXT)): Likewise.
2726
9a665d62
TT
27272020-03-12 Tom Tromey <tom@tromey.com>
2728
2729 * config.in, configure: Rebuild.
2730 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2731 * acinclude.m4: Include gettext-sister.m4.
2732 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2733 variables.
2734 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2735 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2736
272cd5a3
SM
27372020-03-12 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * acinclude.m4: Update path to selftest.m4.
2740
db6878ac
SM
27412020-03-12 Simon Marchi <simon.marchi@efficios.com>
2742
2743 * configure.ac: Don't source bfd/development.sh, move
2744 GDB_AC_COMMON higher.
2745 * configure: Re-generate.
2746
4d696a5c
SM
27472020-03-12 Simon Marchi <simon.marchi@efficios.com>
2748
2749 * configure: Re-generate.
2750
a0761e34
SM
27512020-03-11 Simon Marchi <simon.marchi@efficios.com>
2752
2753 * configure: Re-generate.
2754
20ea4a60
AB
27552020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2756
2757 * .dir-locals.el: New file.
2758
842806cb
TBA
27592020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2760
2761 * .gitattributes: New file.
2762
442131c1
AB
27632020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2764
2765 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2766 reply into an S reply.
2767 * server.cc (disable_packet_T): New global.
2768 (captured_main): Set new global when appropriate.
2769 * server.h (disable_packet_T): Declare.
2770
dda42c0b
TT
27712020-02-21 Tom Tromey <tom@tromey.com>
2772
2773 * Makefile.in (mostlyclean): New target.
2774
52405d85
TBA
27752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2776
2777 * target.h (struct process_stratum_target): Remove.
2778 (class process_target): Rename to ...
2779 (class process_stratum_target): ... this.
2780 * linux-low.h (class linux_process_target): Derive from
2781 'process_stratum_target'.
2782 * linux-low.cc (linux_target_ops): Remove.
2783 (initialize_low): Set the_target to the singleton instance of
2784 linux_process_target.
2785 * lynx-low.h (class lynx_process_target): Derive from
2786 'process_stratum_target'.
2787 * lynx-low.cc (lynx_target_ops): Remove.
2788 (initialize_low): Set the_target to the singleton instance of
2789 lynx_process_target.
2790 * nto-low.h (class nto_process_target): Derive from
2791 'process_stratum_target'.
2792 * nto-low.cc (nto_target_ops): Remove.
2793 (initialize_low): Set the_target to the singleton instance of
2794 nto_process_target.
2795 * win32-low.h (class win32_process_target): Derive from
2796 'process_stratum_target'.
2797 * win32-low.cc (win32_target_ops): Remove.
2798 (initialize_low): Set the_target to the singleton instance of
2799 win32_process_target.
2800
2801 Replace 'the_target->pt' with 'the_target' in the uses below.
2802
2803 * hostio.cc (hostio_error)
2804 (handle_setfs)
2805 (handle_open)
2806 (handle_unlink)
2807 (handle_readlink)
2808 * linux-aarch32-low.cc (arm_breakpoint_at)
2809 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2810 * linux-arm-low.cc (arm_sigreturn_next_pc)
2811 (arm_get_hwcap)
2812 (arm_get_syscall_trapinfo)
2813 * linux-cris-low.cc (cris_breakpoint_at)
2814 * linux-crisv32-low.cc (cris_breakpoint_at)
2815 * linux-low.cc (handle_extended_wait)
2816 (linux_wait_1)
2817 (linux_read_memory)
2818 (linux_process_target::breakpoint_kind_from_pc)
2819 (linux_get_auxv)
2820 * linux-m32r-low.cc (m32r_breakpoint_at)
2821 * linux-mips-low.cc (mips_breakpoint_at)
2822 * linux-nios2-low.cc (nios2_breakpoint_at)
2823 * linux-ppc-low.cc (ppc_breakpoint_at)
2824 * linux-s390-low.cc (s390_get_hwcap)
2825 * linux-sh-low.cc (sh_breakpoint_at)
2826 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2827 (sparc_store_gregset_from_stack)
2828 (sparc_breakpoint_at)
2829 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2830 * linux-tile-low.cc (tile_breakpoint_at)
2831 * linux-x86-low.cc (x86_breakpoint_at)
2832 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2833 * mem-break.cc (bp_size)
2834 (bp_opcode)
2835 (insert_memory_breakpoint)
2836 (set_raw_breakpoint_at)
2837 (delete_raw_breakpoint)
2838 (z_type_supported)
2839 (uninsert_raw_breakpoint)
2840 (reinsert_raw_breakpoint)
2841 (validate_inserted_breakpoint)
2842 * regcache.cc (regcache_read_pc)
2843 (regcache_write_pc)
2844 * remote-utils.cc (putpkt_binary_1)
2845 (input_interrupt)
2846 (getpkt)
2847 (prepare_resume_reply)
2848 * server.cc (handle_general_set)
2849 (handle_detach)
2850 (handle_qxfer_auxv)
2851 (handle_qxfer_exec_file)
2852 (handle_qxfer_libraries_svr4)
2853 (handle_qxfer_osdata)
2854 (handle_qxfer_siginfo)
2855 (handle_qxfer_fdpic)
2856 (handle_query)
2857 (resume)
2858 (handle_v_requests)
2859 (queue_stop_reply_callback)
2860 (captured_main)
2861 * target.cc (prepare_to_access_memory)
2862 (done_accessing_memory)
2863 (read_inferior_memory)
2864 (target_write_memory)
2865 (target_stop_and_wait)
2866 (target_wait)
2867 (target_mourn_inferior)
2868 (target_continue_no_signal)
2869 (target_continue)
2870 (target_supports_multi_process)
2871 (kill_inferior)
2872 * target.h
2873 (target_create_inferior)
2874 (target_post_create_inferior)
2875 (myattach)
2876 (target_supports_fork_events)
2877 (target_supports_vfork_events)
2878 (target_supports_exec_events)
2879 (target_handle_new_gdb_connection)
2880 (detach_inferior)
2881 (mythread_alive)
2882 (fetch_inferior_registers)
2883 (store_inferior_registers)
2884 (join_inferior)
2885 (target_supports_non_stop)
2886 (target_async)
2887 (target_process_qsupported)
2888 (target_supports_catch_syscall)
2889 (target_get_ipa_tdesc_idx)
2890 (target_supports_tracepoints)
2891 (target_supports_fast_tracepoints)
2892 (target_get_min_fast_tracepoint_insn_len)
2893 (target_thread_stopped)
2894 (target_pause_all)
2895 (target_unpause_all)
2896 (target_stabilize_threads)
2897 (target_install_fast_tracepoint_jump_pad)
2898 (target_emit_ops)
2899 (target_supports_disable_randomization)
2900 (target_supports_agent)
2901 (target_enable_btrace)
2902 (target_disable_btrace)
2903 (target_read_btrace)
2904 (target_read_btrace_conf)
2905 (target_supports_range_stepping)
2906 (target_supports_stopped_by_sw_breakpoint)
2907 (target_stopped_by_sw_breakpoint)
2908 (target_supports_stopped_by_hw_breakpoint)
2909 (target_supports_hardware_single_step)
2910 (target_stopped_by_hw_breakpoint)
2911 (target_breakpoint_kind_from_pc)
2912 (target_breakpoint_kind_from_current_state)
2913 (target_supports_software_single_step)
2914 (target_core_of_thread)
2915 (target_thread_name)
2916 (target_thread_handle)
2917 * win32-low.cc (do_initial_child_stuff)
2918
2919 Rename target op default definitions listed below.
2920
2921 * target.cc (process_target::post_create_inferior): Rename as ...
2922 (process_stratum_target::post_create_inferior): ... this.
2923 (process_target::prepare_to_access_memory): Rename as ...
2924 (process_stratum_target::prepare_to_access_memory): ... this.
2925 (process_target::done_accessing_memory): Rename as ...
2926 (process_stratum_target::done_accessing_memory): ... this.
2927 (process_target::look_up_symbols): Rename as ...
2928 (process_stratum_target::look_up_symbols): ... this.
2929 (process_target::supports_read_auxv): Rename as ...
2930 (process_stratum_target::supports_read_auxv): ... this.
2931 (process_target::read_auxv): Rename as ...
2932 (process_stratum_target::read_auxv): ... this.
2933 (process_target::supports_z_point_type): Rename as ...
2934 (process_stratum_target::supports_z_point_type): ... this.
2935 (process_target::insert_point): Rename as ...
2936 (process_stratum_target::insert_point): ... this.
2937 (process_target::remove_point): Rename as ...
2938 (process_stratum_target::remove_point): ... this.
2939 (process_target::stopped_by_sw_breakpoint): Rename as ...
2940 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2941 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2942 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2943 (process_target::stopped_by_hw_breakpoint): Rename as ...
2944 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2945 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2946 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2947 (process_target::supports_hardware_single_step): Rename as ...
2948 (process_stratum_target::supports_hardware_single_step): ... this.
2949 (process_target::stopped_by_watchpoint): Rename as ...
2950 (process_stratum_target::stopped_by_watchpoint): ... this.
2951 (process_target::stopped_data_address): Rename as ...
2952 (process_stratum_target::stopped_data_address): ... this.
2953 (process_target::supports_read_offsets): Rename as ...
2954 (process_stratum_target::supports_read_offsets): ... this.
2955 (process_target::read_offsets): Rename as ...
2956 (process_stratum_target::read_offsets): ... this.
2957 (process_target::supports_get_tls_address): Rename as ...
2958 (process_stratum_target::supports_get_tls_address): ... this.
2959 (process_target::get_tls_address): Rename as ...
2960 (process_stratum_target::get_tls_address): ... this.
2961 (process_target::hostio_last_error): Rename as ...
2962 (process_stratum_target::hostio_last_error): ... this.
2963 (process_target::supports_qxfer_osdata): Rename as ...
2964 (process_stratum_target::supports_qxfer_osdata): ... this.
2965 (process_target::qxfer_osdata): Rename as ...
2966 (process_stratum_target::qxfer_osdata): ... this.
2967 (process_target::supports_qxfer_siginfo): Rename as ...
2968 (process_stratum_target::supports_qxfer_siginfo): ... this.
2969 (process_target::qxfer_siginfo): Rename as ...
2970 (process_stratum_target::qxfer_siginfo): ... this.
2971 (process_target::supports_non_stop): Rename as ...
2972 (process_stratum_target::supports_non_stop): ... this.
2973 (process_target::async): Rename as ...
2974 (process_stratum_target::async): ... this.
2975 (process_target::start_non_stop): Rename as ...
2976 (process_stratum_target::start_non_stop): ... this.
2977 (process_target::supports_multi_process): Rename as ...
2978 (process_stratum_target::supports_multi_process): ... this.
2979 (process_target::supports_fork_events): Rename as ...
2980 (process_stratum_target::supports_fork_events): ... this.
2981 (process_target::supports_vfork_events): Rename as ...
2982 (process_stratum_target::supports_vfork_events): ... this.
2983 (process_target::supports_exec_events): Rename as ...
2984 (process_stratum_target::supports_exec_events): ... this.
2985 (process_target::handle_new_gdb_connection): Rename as ...
2986 (process_stratum_target::handle_new_gdb_connection): ... this.
2987 (process_target::handle_monitor_command): Rename as ...
2988 (process_stratum_target::handle_monitor_command): ... this.
2989 (process_target::core_of_thread): Rename as ...
2990 (process_stratum_target::core_of_thread): ... this.
2991 (process_target::supports_read_loadmap): Rename as ...
2992 (process_stratum_target::supports_read_loadmap): ... this.
2993 (process_target::read_loadmap): Rename as ...
2994 (process_stratum_target::read_loadmap): ... this.
2995 (process_target::process_qsupported): Rename as ...
2996 (process_stratum_target::process_qsupported): ... this.
2997 (process_target::supports_tracepoints): Rename as ...
2998 (process_stratum_target::supports_tracepoints): ... this.
2999 (process_target::read_pc): Rename as ...
3000 (process_stratum_target::read_pc): ... this.
3001 (process_target::write_pc): Rename as ...
3002 (process_stratum_target::write_pc): ... this.
3003 (process_target::supports_thread_stopped): Rename as ...
3004 (process_stratum_target::supports_thread_stopped): ... this.
3005 (process_target::thread_stopped): Rename as ...
3006 (process_stratum_target::thread_stopped): ... this.
3007 (process_target::supports_get_tib_address): Rename as ...
3008 (process_stratum_target::supports_get_tib_address): ... this.
3009 (process_target::get_tib_address): Rename as ...
3010 (process_stratum_target::get_tib_address): ... this.
3011 (process_target::pause_all): Rename as ...
3012 (process_stratum_target::pause_all): ... this.
3013 (process_target::unpause_all): Rename as ...
3014 (process_stratum_target::unpause_all): ... this.
3015 (process_target::stabilize_threads): Rename as ...
3016 (process_stratum_target::stabilize_threads): ... this.
3017 (process_target::supports_fast_tracepoints): Rename as ...
3018 (process_stratum_target::supports_fast_tracepoints): ... this.
3019 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3020 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3021 (process_target::emit_ops): Rename as ...
3022 (process_stratum_target::emit_ops): ... this.
3023 (process_target::supports_disable_randomization): Rename as ...
3024 (process_stratum_target::supports_disable_randomization): ... this.
3025 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3026 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3027 (process_target::qxfer_libraries_svr4): Rename as ...
3028 (process_stratum_target::qxfer_libraries_svr4): ... this.
3029 (process_target::supports_agent): Rename as ...
3030 (process_stratum_target::supports_agent): ... this.
3031 (process_target::enable_btrace): Rename as ...
3032 (process_stratum_target::enable_btrace): ... this.
3033 (process_target::disable_btrace): Rename as ...
3034 (process_stratum_target::disable_btrace): ... this.
3035 (process_target::read_btrace): Rename as ...
3036 (process_stratum_target::read_btrace): ... this.
3037 (process_target::read_btrace_conf): Rename as ...
3038 (process_stratum_target::read_btrace_conf): ... this.
3039 (process_target::supports_range_stepping): Rename as ...
3040 (process_stratum_target::supports_range_stepping): ... this.
3041 (process_target::supports_pid_to_exec_file): Rename as ...
3042 (process_stratum_target::supports_pid_to_exec_file): ... this.
3043 (process_target::pid_to_exec_file): Rename as ...
3044 (process_stratum_target::pid_to_exec_file): ... this.
3045 (process_target::supports_multifs): Rename as ...
3046 (process_stratum_target::supports_multifs): ... this.
3047 (process_target::multifs_open): Rename as ...
3048 (process_stratum_target::multifs_open): ... this.
3049 (process_target::multifs_unlink): Rename as ...
3050 (process_stratum_target::multifs_unlink): ... this.
3051 (process_target::multifs_readlink): Rename as ...
3052 (process_stratum_target::multifs_readlink): ... this.
3053 (process_target::breakpoint_kind_from_pc): Rename as ...
3054 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3055 (process_target::breakpoint_kind_from_current_state): Rename as ...
3056 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3057 (process_target::thread_name): Rename as ...
3058 (process_stratum_target::thread_name): ... this.
3059 (process_target::thread_handle): Rename as ...
3060 (process_stratum_target::thread_handle): ... this.
3061 (process_target::supports_software_single_step): Rename as ...
3062 (process_stratum_target::supports_software_single_step): ... this.
3063 (process_target::supports_catch_syscall): Rename as ...
3064 (process_stratum_target::supports_catch_syscall): ... this.
3065 (process_target::get_ipa_tdesc_idx): Rename as ...
3066 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3067
478f9adf
PA
30682020-02-20 Pedro Alves <palves@redhat.com>
3069
3070 * target.cc (set_target_ops): Simply copy the given target pointer
3071 instead of creating a copy of the pointed object.
3072
d633e831
TBA
30732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3074
3075 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3076 of process_target.
3077
3078 * target.h (struct process_stratum_target): Remove the target op.
3079 (class process_target): Add the target op.
3080 (target_get_ipa_tdesc_idx): Update the macro.
3081 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3082
3083 Update the derived classes and callers below.
3084
3085 * linux-low.cc (linux_target_ops): Update.
3086 (linux_get_ipa_tdesc_idx): Turn into ...
3087 (linux_process_target::get_ipa_tdesc_idx): ... this.
3088 * linux-low.h (class linux_process_target): Update.
3089 * lynx-low.cc (lynx_target_ops): Update.
3090 * nto-low.cc (nto_target_ops): Update.
3091 * win32-low.cc (win32_target_ops): Update.
3092
bc8d3ae4
TBA
30932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3094
3095 Turn process_stratum_target's supports_catch_syscall op into a
3096 method of process_target.
3097
3098 * target.h (struct process_stratum_target): Remove the target op.
3099 (class process_target): Add the target op.
3100 (target_supports_catch_syscall): Update the macro.
3101 * target.cc (process_target::supports_catch_syscall): Define.
3102
3103 Update the derived classes and callers below.
3104
3105 * linux-low.cc (linux_target_ops): Update.
3106 (linux_supports_catch_syscall): Turn into ...
3107 (linux_process_target::supports_catch_syscall): ... this.
3108 * linux-low.h (class linux_process_target): Update.
3109 * lynx-low.cc (lynx_target_ops): Update.
3110 * nto-low.cc (nto_target_ops): Update.
3111 * win32-low.cc (win32_target_ops): Update.
3112
5303a34f
TBA
31132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3114
3115 Turn process_stratum_target's supports_software_single_step op
3116 into a method of process_target.
3117
3118 * target.h (struct process_stratum_target): Remove the target op.
3119 (class process_target): Add the target op.
3120 (target_supports_software_single_step): Update the macro.
3121 * target.cc (process_target::supports_software_single_step): Define.
3122
3123 Update the derived classes and callers below.
3124
3125 * linux-low.cc (linux_target_ops): Update.
3126 (linux_supports_software_single_step): Turn into ...
3127 (linux_process_target::supports_software_single_step): ... this.
3128 * linux-low.h (class linux_process_target): Update.
3129 * lynx-low.cc (lynx_target_ops): Update.
3130 * nto-low.cc (nto_target_ops): Update.
3131 * win32-low.cc (win32_target_ops): Update.
3132
7f63b89b
TBA
31332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3134
3135 Turn process_stratum_target's thread_name and thread_handle ops
3136 into methods of process_target.
3137
3138 * target.h (struct process_stratum_target): Remove the target ops.
3139 (class process_target): Add the target ops.
3140 (target_thread_name): Update the macro.
3141 (target_thread_handle): Update the macro.
3142 * target.cc (process_target::thread_name): Define.
3143 (process_target::thread_handle): Define.
3144
3145 Update the derived classes and callers below.
3146
3147 * linux-low.cc (linux_target_ops): Update.
3148 (linux_process_target::thread_name): Define.
3149 (linux_process_target::thread_handle): Define.
3150 * linux-low.h (class linux_process_target): Update.
3151 * lynx-low.cc (lynx_target_ops): Update.
3152 * nto-low.cc (nto_target_ops): Update.
3153 * win32-low.cc (win32_target_ops): Update.
3154
d367006f
TBA
31552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3156
3157 Turn process_stratum_target's breakpoint_kind_from_pc,
3158 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3159 ops into methods of process_target.
3160
3161 * target.h (struct process_stratum_target): Remove the target op.
3162 (class process_target): Add the target op.
3163 (target_breakpoint_kind_from_pc): Update the macro.
3164 (target_breakpoint_kind_from_current_state): Update the macro.
3165 (default_breakpoint_kind_from_pc): Remove declaration.
3166 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3167 (process_target::breakpoint_kind_from_pc): ... this.
3168 (process_target::breakpoint_kind_from_current_state): Define.
3169
3170 Update the derived classes and callers below.
3171
3172 * mem-break.cc (bp_size): Update.
3173 (bp_opcode): Update.
3174 * linux-low.cc (linux_target_ops): Update.
3175 (linux_wait_1): Update.
3176 (linux_breakpoint_kind_from_pc): Turn into ...
3177 (linux_process_target::breakpoint_kind_from_pc): ... this.
3178 (linux_sw_breakpoint_from_kind): Turn into ...
3179 (linux_process_target::sw_breakpoint_from_kind): ... this.
3180 (linux_breakpoint_kind_from_current_state): Turn into ...
3181 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3182 * linux-low.h (class linux_process_target): Update.
3183 * lynx-low.cc (lynx_target_ops): Update.
3184 (lynx_process_target::sw_breakpoint_from_kind): Define.
3185 * lynx-low.h (class lynx_process_target): Update.
3186 * nto-low.cc (nto_target_ops): Update.
3187 (nto_sw_breakpoint_from_kind): Turn into ...
3188 (nto_process_target::sw_breakpoint_from_kind): ... this.
3189 * nto-low.h (class nto_process_target): Update.
3190 * win32-low.cc (win32_target_ops): Update.
3191 (win32_sw_breakpoint_from_kind): Turn into ...
3192 (win32_process_target::sw_breakpoint_from_kind): ... this.
3193 * win32-low.h (class win32_process_target): Update.
3194
c9b7b804
TBA
31952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3196
3197 Turn process_stratum_target's multifs_open, multifs_readlink,
3198 multifs_unlink ops into methods of process_target.
3199
3200 * target.h (struct process_stratum_target): Remove the target ops.
3201 (class process_target): Add the target ops. Also add
3202 'supports_multifs'.
3203 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3204 "sys/stat.h".
3205 (process_target::supports_multifs): Define.
3206 (process_target::multifs_open): Define.
3207 (process_target::multifs_readlink): Define.
3208 (process_target::multifs_unlink): Define.
3209
3210 Update the derived classes and callers below.
3211
3212 * hostio.cc (handle_setfs): Update.
3213 (handle_open): Update.
3214 (handle_unlink): Update.
3215 (handle_readlink): Update.
3216 * linux-low.cc (linux_target_ops): Update.
3217 (linux_process_target::supports_multifs): Define.
3218 (linux_process_target::multifs_open): Define.
3219 (linux_process_target::multifs_readlink): Define.
3220 (linux_process_target::multifs_unlink): Define.
3221 * linux-low.h (class linux_process_target): Update.
3222 * lynx-low.cc (lynx_target_ops): Update.
3223 * nto-low.cc (nto_target_ops): Update.
3224 * win32-low.cc (win32_target_ops): Update.
3225
8247b823
TBA
32262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3227
3228 Turn process_stratum_target's pid_to_exec_file op into a method
3229 of process_target.
3230
3231 * target.h (struct process_stratum_target): Remove the target op.
3232 (class process_target): Add the target op. Also add
3233 'supports_pid_to_exec_file'.
3234 * target.cc (process_target::pid_to_exec_file): Define.
3235 (process_target::supports_pid_to_exec_file): Define.
3236
3237 Update the derived classes and callers below.
3238
3239 * server.cc (handle_qxfer_exec_file): Update.
3240 (handle_query): Update.
3241 * linux-low.cc (linux_target_ops): Update.
3242 (linux_process_target::supports_pid_to_exec_file): Define.
3243 (linux_process_target::pid_to_exec_file): Define.
3244 * linux-low.h (class linux_process_target): Update.
3245 * lynx-low.cc (lynx_target_ops): Update.
3246 * nto-low.cc (nto_target_ops): Update.
3247 * win32-low.cc (win32_target_ops): Update.
3248
2526e0cd
TBA
32492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3250
3251 Turn process_stratum_target's supports_range_stepping op into a
3252 method of process_target.
3253
3254 * target.h (struct process_stratum_target): Remove the target op.
3255 (class process_target): Add the target op.
3256 (target_supports_range_stepping): Update the macro.
3257 * target.cc (process_target::supports_range_stepping): Define.
3258
3259 Update the derived classes and callers below.
3260
3261 * linux-low.cc (linux_target_ops): Update.
3262 (linux_supports_range_stepping): Turn into ...
3263 (linux_process_target::supports_range_stepping): ... this.
3264 * linux-low.h (class linux_process_target): Update.
3265 * lynx-low.cc (lynx_target_ops): Update.
3266 * nto-low.cc (nto_target_ops): Update.
3267 * win32-low.cc (win32_target_ops): Update.
3268
79597bdd
TBA
32692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3270
3271 Turn process_stratum_target's btrace-related ops (enable_btrace,
3272 disable_btrace, read_btrace, read_btrace_conf) into methods of
3273 process_target.
3274
3275 * target.h (struct process_stratum_target): Remove the target ops.
3276 (class process_target): Add the target ops.
3277 (target_enable_btrace): Update.
3278 (target_disable_btrace): Update.
3279 (target_read_btrace): Update.
3280 (target_read_btrace_conf): Update.
3281 * target.cc (process_target::enable_btrace): Define.
3282 (process_target::disable_btrace): Define.
3283 (process_target::read_btrace): Define.
3284 (process_target::read_btrace_conf): Define.
3285
3286 Update the derived classes and callers below.
3287
3288 * linux-low.cc (linux_target_ops): Update.
3289 (linux_process_target:enable_btrace): Define as a wrapper around
3290 linux_enable_btrace.
3291 (linux_low_disable_btrace): Turn into ...
3292 (linux_process_target::disable_btrace): ... this.
3293 (linux_low_read_btrace): Turn into ...
3294 (linux_process_target::read_btrace): ... this.
3295 (linux_low_btrace_conf): Turn into ...
3296 (linux_process_target::read_btrace_conf): ... this.
3297 * linux-low.h (class linux_process_target): Update.
3298 * lynx-low.cc (lynx_target_ops): Update.
3299 * nto-low.cc (nto_target_ops): Update.
3300 * win32-low.cc (win32_target_ops): Update.
3301
c0245cb9
TBA
33022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3303
3304 Turn process_stratum_target's supports_agent op into a method of
3305 process_target.
3306
3307 * target.h (struct process_stratum_target): Remove the target op.
3308 (class process_target): Add the target op.
3309 (target_supports_agent): Update the macro.
3310 * target.cc (process_target::supports_agent): Define.
3311
3312 Update the derived classes and callers below.
3313
3314 * linux-low.cc (linux_target_ops): Update.
3315 (linux_supports_agent): Turn into ...
3316 (linux_process_target::supports_agent): ... this.
3317 * linux-low.h (class linux_process_target): Update.
3318 * lynx-low.cc (lynx_target_ops): Update.
3319 * nto-low.cc (nto_target_ops): Update.
3320 * win32-low.cc (win32_target_ops): Update.
3321
974387bb
TBA
33222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3323
3324 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3325 method of process_target.
3326
3327 * target.h (struct process_stratum_target): Remove the target op.
3328 (class process_target): Add the target op. Also add
3329 'supports_qxfer_libraries_svr4'.
3330 * target.cc (process_target::qxfer_libraries_svr4): Define.
3331 (process_target::supports_qxfer_libraries_svr4): Define.
3332
3333 Update the derived classes and callers below.
3334
3335 * server.cc (handle_qxfer_libraries_svr4): Update.
3336 (handle_query): Update.
3337 * linux-low.cc (linux_target_ops): Update.
3338 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3339 (linux_qxfer_libraries_svr4): Turn into ...
3340 (linux_process_target::qxfer_libraries_svr4): ... this.
3341 * linux-low.h (class linux_process_target): Update.
3342 * lynx-low.cc (lynx_target_ops): Update.
3343 * nto-low.cc (nto_target_ops): Update.
3344 * win32-low.cc (win32_target_ops): Update.
3345
c756403b
TBA
33462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3347
3348 Turn process_stratum_target's supports_disable_randomization op
3349 into a method of process_target.
3350
3351 * target.h (struct process_stratum_target): Remove the target op.
3352 (class process_target): Add the target op.
3353 (target_supports_disable_randomization): Update the macro.
3354 * target.cc (process_target::supports_disable_randomization): Define.
3355
3356 Update the derived classes and callers below.
3357
3358 * linux-low.cc (linux_target_ops): Update.
3359 (linux_supports_disable_randomization): Turn into ...
3360 (linux_process_target::supports_disable_randomization): ... this.
3361 * linux-low.h (class linux_process_target): Update.
3362 * lynx-low.cc (lynx_target_ops): Update.
3363 * nto-low.cc (nto_target_ops): Update.
3364 * win32-low.cc (win32_target_ops): Update.
3365
345dafad
TBA
33662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3367
3368 Turn process_stratum_target's emit_ops op into a method of
3369 process_target.
3370
3371 * target.h (struct process_stratum_target): Remove the target op.
3372 (class process_target): Add the target op.
3373 (target_emit_ops): Update the macro.
3374 * target.cc (process_target::emit_ops): Define.
3375
3376 Update the derived classes and callers below.
3377
3378 * linux-low.cc (linux_target_ops): Update.
3379 (linux_emit_ops): Turn into ...
3380 (linux_process_target::emit_ops): ... this.
3381 * linux-low.h (class linux_process_target): Update.
3382 * lynx-low.cc (lynx_target_ops): Update.
3383 * nto-low.cc (nto_target_ops): Update.
3384 * win32-low.cc (win32_target_ops): Update.
3385
c23c9391
TBA
33862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3387
3388 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3389 and get_min_fast_tracepoint_insn_len ops into methods of
3390 process_target.
3391
3392 * target.h (struct process_stratum_target): Remove the target ops.
3393 (class process_target): Add the target ops. Also add
3394 'supports_fast_tracepoints'.
3395 (target_supports_fast_tracepoints): Update the macro.
3396 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3397 (install_fast_tracepoint_jump_pad): Update and rename the macro
3398 to ...
3399 (target_install_fast_tracepoint_jump_pad): ... this.
3400 * target.cc (process_target::supports_fast_tracepoints): Define.
3401 (process_target::install_fast_tracepoint_jump_pad): Define.
3402 (process_target::get_min_fast_tracepoint_insn_len): Define.
3403
3404 Update the derived classes and callers below.
3405
3406 * tracepoint.cc (install_fast_tracepoint): Update.
3407 * linux-low.cc (linux_target_ops): Update.
3408 (linux_process_target::supports_fast_tracepoints): Define.
3409 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3410 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3411 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3412 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3413 * linux-low.h (class linux_process_target): Update.
3414 * lynx-low.cc (lynx_target_ops): Update.
3415 * nto-low.cc (nto_target_ops): Update.
3416 * win32-low.cc (win32_target_ops): Update.
3417
5c9eb2f2
TBA
34182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3419
3420 Turn process_stratum_target's stabilize_threads op into a
3421 method of process_target.
3422
3423 * target.h (struct process_stratum_target): Remove the target op.
3424 (class process_target): Add the target op.
3425 (target_stabilize_threads): Update the macro.
3426 * target.cc (process_target::stabilize_threads): Define.
3427
3428 Update the derived classes and callers below.
3429
3430 * server.cc (handle_status): Update.
3431 * tracepoint.cc (cmd_qtdp): Update.
3432 (cmd_qtstart): Update.
3433 * linux-low.cc (linux_target_ops): Update.
3434 (linux_stabilize_threads): Turn into ...
3435 (linux_process_target::stabilize_threads): ... this.
3436 (linux_wait_1): Update.
3437 * linux-low.h (class linux_process_target): Update.
3438 * lynx-low.cc (lynx_target_ops): Update.
3439 * nto-low.cc (nto_target_ops): Update.
3440 * win32-low.cc (win32_target_ops): Update.
3441
29e8dc09
TBA
34422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3443
3444 Turn process_stratum_target's pause_all and unpause_all ops
3445 into methods of process_target.
3446
3447 * target.h (struct process_stratum_target): Remove the target ops.
3448 (class process_target): Add the target ops.
3449 (pause_all): Update the macro and rename to...
3450 (target_pause_all): ... this.
3451 (unpause_all): Update the macro and rename to...
3452 (target_unpause_all): ... this.
3453 * target.cc (process_target::pause_all): Define.
3454 (process_target::unpause_all): Define.
3455
3456 Update the derived classes and callers below.
3457
3458 * server.cc (handle_status): Update.
3459 * tracepoint.cc (clear_installed_tracepoints): Update.
3460 (cmd_qtdp): Update.
3461 (cmd_qtstart): Update.
3462 (stop_tracing): Update.
3463 (cmd_qtstatus): Update.
3464 (upload_fast_traceframes): Update.
3465 (run_inferior_command): Update.
3466 * linux-low.cc (linux_target_ops): Update.
3467 (linux_pause_all): Turn into ...
3468 (linux_process_target::pause_all): ... this.
3469 (linux_unpause_all): Turn into ...
3470 (linux_process_target::unpause_all): ... this.
3471 (linux_process_target::prepare_to_access_memory): Update.
3472 (linux_process_target::done_accessing_memory): Update.
3473 * linux-low.h (class linux_process_target): Update.
3474 * lynx-low.cc (lynx_target_ops): Update.
3475 * nto-low.cc (nto_target_ops): Update.
3476 * win32-low.cc (win32_target_ops): Update.
3477
4e2e869c
TBA
34782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3479
3480 Turn process_stratum_target's get_tib_address op into a method of
3481 process_target.
3482
3483 * target.h (struct process_stratum_target): Remove the target op.
3484 (class process_target): Add the target op. Also add
3485 'supports_get_tib_address'.
3486 * target.cc (process_target::get_tib_address): Define.
3487 (process_target::supports_get_tib_address): Define.
3488
3489 Update the derived classes and callers below.
3490
3491 * server.cc (handle_query): Update.
3492 * linux-low.cc (win32_target_ops): Update.
3493 * lynx-low.cc (lynx_target_ops): Update.
3494 * nto-low.cc (nto_target_ops): Update.
3495 * win32-low.cc (win32_target_ops): Update.
3496 (win32_process_target::supports_get_tib_address): Define.
3497 (win32_get_tib_address): Turn into ...
3498 (win32_process_target::get_tib_address): ... this.
3499 * win32-low.h (class win32_process_target): Update.
3500
68119632
TBA
35012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3502
3503 Turn process_stratum_target's thread_stopped op into a method of
3504 process_target.
3505
3506 * target.h (struct process_stratum_target): Remove the target op.
3507 (class process_target): Add the target op. Also add
3508 'supports_thread_stopped'.
3509 (target_thread_stopped): Update the macro.
3510 * target.cc (process_target::thread_stopped): Define.
3511 (process_target::supports_thread_stopped): Define.
3512 (prepare_to_access_memory): Update.
3513
3514 Update the derived classes and callers below.
3515
3516 * server.cc (queue_stop_reply_callback): Update.
3517 * linux-low.cc (linux_target_ops): Update.
3518 (linux_process_target::supports_thread_stopped): Define.
3519 (linux_thread_stopped): Turn into ...
3520 (linux_process_target::thread_stopped): ... this.
3521 * linux-low.h (class linux_process_target): Update.
3522 * lynx-low.cc (lynx_target_ops): Update.
3523 * nto-low.cc (nto_target_ops): Update.
3524 * win32-low.cc (win32_target_ops): Update.
3525
770d8f6a
TBA
35262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3527
3528 Turn process_stratum_target's read_pc and write_pc ops into
3529 methods of process_target.
3530
3531 * target.h (struct process_stratum_target): Remove the target ops.
3532 (class process_target): Add the target ops.
3533 * target.cc (process_target::read_pc): Define.
3534 (process_target::write_pc): Define.
3535
3536 Update the derived classes and callers below.
3537
3538 * regcache.cc (regcache_read_pc): Update.
3539 (regcache_write_pc): Update.
3540 * linux-low.cc (linux_target_ops): Update.
3541 (linux_read_pc): Turn into ...
3542 (linux_process_target::read_pc): ... this.
3543 (linux_write_pc): Turn into ...
3544 (linux_process_target::write_pc): ... this.
3545 * linux-low.h (class linux_process_target): Update.
3546 * lynx-low.cc (lynx_target_ops): Update.
3547 * nto-low.cc (nto_target_ops): Update.
3548 * win32-low.cc (win32_target_ops): Update.
3549
290732bf
TBA
35502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3551
3552 Turn process_stratum_target's supports_tracepoints op into a
3553 method of process_target.
3554
3555 * target.h (struct process_stratum_target): Remove the target op.
3556 (class process_target): Add the target op.
3557 (target_supports_tracepoints): Update the macro.
3558 * target.cc (process_target::supports_tracepoints): Define.
3559
3560 Update the derived classes and callers below.
3561
3562 * linux-low.cc (linux_target_ops): Update.
3563 (linux_supports_tracepoints): Turn into ...
3564 (linux_process_target::supports_tracepoints): ... this.
3565 * linux-low.h (class linux_process_target): Update.
3566 * lynx-low.cc (lynx_target_ops): Update.
3567 * nto-low.cc (nto_target_ops): Update.
3568 * win32-low.cc (win32_target_ops): Update.
3569
0df28b1b
TBA
35702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3571
3572 Turn process_stratum_target's process_qsupported op into a method
3573 of process_target.
3574
3575 * target.h (struct process_stratum_target): Remove the target op.
3576 (class process_target): Add the target op.
3577 (target_process_qsupported): Update the macro.
3578 * target.cc (process_target::process_qsupported): Define.
3579
3580 Update the derived classes and callers below.
3581
3582 * linux-low.cc (linux_target_ops): Update.
3583 (linux_process_qsupported): Turn into ...
3584 (linux_process_target::process_qsupported): ... this.
3585 * linux-low.h (class linux_process_target): Update.
3586 * lynx-low.cc (lynx_target_ops): Update.
3587 * nto-low.cc (nto_target_ops): Update.
3588 * win32-low.cc (win32_target_ops): Update.
3589
9da41fda
TBA
35902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3591
3592 Turn process_stratum_target's read_loadmap op into a method of
3593 process_target.
3594
3595 * target.h (struct process_stratum_target): Remove the target op.
3596 (class process_target): Add the target op. Also add
3597 'supports_read_loadmap'.
3598 * target.cc (process_target::read_loadmap): Define.
3599 (process_target::supports_read_loadmap): Define.
3600
3601 Update the derived classes and callers below.
3602
3603 * server.cc (handle_qxfer_fdpic): Update.
3604 (handle_query): Update.
3605 * linux-low.cc (linux_target_ops): Update.
3606 (linux_process_target::supports_read_loadmap): Define.
3607 (linux_read_loadmap): Turn into ...
3608 (linux_process_target::read_loadmap): ... this.
3609 * linux-low.h (class linux_process_target): Update.
3610 * lynx-low.cc (lynx_target_ops): Update.
3611 * nto-low.cc (nto_target_ops): Update.
3612 * win32-low.cc (win32_target_ops): Update.
3613
95a45fc1
TBA
36142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3615
3616 Turn process_stratum_target's core_of_thread op into a method of
3617 process_target.
3618
3619 * target.h (struct process_stratum_target): Remove the target op.
3620 (class process_target): Add the target op.
3621 (target_core_of_thread): Update the macro.
3622 * target.cc (process_target::core_of_thread): Define.
3623
3624 Update the derived classes and callers below.
3625
3626 * linux-low.cc (linux_target_ops): Update.
3627 (linux_process_target::core_of_thread): Define.
3628 * linux-low.h (class linux_process_target): Update.
3629 * lynx-low.cc (lynx_target_ops): Update.
3630 * nto-low.cc (nto_target_ops): Update.
3631 * win32-low.cc (win32_target_ops): Update.
3632
55cf3021
TBA
36332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3634
3635 Turn process_stratum_target's handle_monitor_command op into a
3636 method of process_target.
3637
3638 * target.h (struct process_stratum_target): Remove the target op.
3639 (class process_target): Add the target op.
3640 (target_handle_monitor_command): Update the macro.
3641 * target.cc (process_target::handle_monitor_command): Define.
3642
3643 Update the derived classes and callers below.
3644
3645 * server.cc (handle_query): Update.
3646 * linux-low.cc (linux_target_ops): Update.
3647 (linux_process_target::handle_monitor_command): Define.
3648 * linux-low.h (class linux_process_target): Update.
3649 * lynx-low.cc (lynx_target_ops): Update.
3650 * nto-low.cc (nto_target_ops): Update.
3651 * win32-low.cc (win32_target_ops): Update.
3652
fb00dfce
TBA
36532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3654
3655 Turn process_stratum_target's handle_new_gdb_connection op into a
3656 method of process_target.
3657
3658 * target.h (struct process_stratum_target): Remove the target op.
3659 (class process_target): Add the target op.
3660 (target_handle_new_gdb_connection): Update the macro.
3661 * target.cc (process_target::handle_new_gdb_connection): Define.
3662
3663 Update the derived classes and callers below.
3664
3665 * linux-low.cc (linux_target_ops): Update.
3666 (linux_handle_new_gdb_connection): Turn into ...
3667 (linux_process_target::handle_new_gdb_connection): ... this.
3668 * linux-low.h (class linux_process_target): Update.
3669 * lynx-low.cc (lynx_target_ops): Update.
3670 * nto-low.cc (nto_target_ops): Update.
3671 * win32-low.cc (win32_target_ops): Update.
3672
9690a72a
TBA
36732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3674
3675 Turn process_stratum_target's supports_fork_events,
3676 supports_vfork_events, and supports_exec_events ops into methods
3677 of process_target.
3678
3679 * target.h (struct process_stratum_target): Remove the target ops.
3680 (class process_target): Add the target ops.
3681 (target_supports_fork_events): Update the macro.
3682 (target_supports_vfork_events): Update the macro.
3683 (target_supports_exec_events): Update the macro.
3684 * target.cc (process_target::supports_fork_events): Define.
3685 (process_target::supports_vfork_events): Define.
3686 (process_target::supports_exec_events): Define.
3687
3688 Update the derived classes and callers below.
3689
3690 * linux-low.cc (linux_target_ops): Update.
3691 (linux_supports_fork_events): Turn into ...
3692 (linux_process_target::supports_fork_events): ... this.
3693 (linux_supports_vfork_events): Turn into ...
3694 (linux_process_target::supports_vfork_events): ... this.
3695 (linux_supports_exec_events): Turn into ...
3696 (linux_process_target::supports_exec_events): ... 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
652aef77
TBA
37022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3703
3704 Turn process_stratum_target's supports_multi_process 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 (process_target::supports_multi_process): Define.
3710 (target_supports_multi_process): Update.
3711
3712 Update the derived classes and callers below.
3713
3714 * linux-low.cc (linux_target_ops): Update.
3715 (linux_supports_multi_process): Turn into ...
3716 (linux_process_target::supports_multi_process): ... this.
3717 * linux-low.h (class linux_process_target): Update.
3718 * lynx-low.cc (lynx_target_ops): Update.
3719 * nto-low.cc (nto_target_ops): Update.
3720 * win32-low.cc (win32_target_ops): Update.
3721
0dc587d4
TBA
37222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3723
3724 Turn process_stratum_target's supports_non_stop, async, and
3725 start_non_stop ops into methods of process_target.
3726
3727 * target.h (struct process_stratum_target): Remove the target ops.
3728 (class process_target): Add the target ops.
3729 (target_supports_non_stop): Update the macro.
3730 (target_async): Update the macro.
3731 (start_non_stop): Remove declaration.
3732 * target.cc (process_target::supports_non_stop): Define.
3733 (process_target::async): Define.
3734 (process_target::start_non_stop): Define.
3735 (start_non_stop): Remove.
3736
3737 Update the derived classes and callers below.
3738
3739 * server.cc (handle_qxfer_siginfo): Update.
3740 (handle_query): Update.
3741 * linux-low.cc (linux_target_ops): Update.
3742 (linux_supports_non_stop): Turn into ...
3743 (linux_process_target::supports_non_stop): ... this.
3744 (linux_async): Turn into ...
3745 (linux_process_target::async): ... this.
3746 (linux_start_non_stop): Turn into ...
3747 (linux_process_target::start_non_stop): ... this.
3748 * linux-low.h (class linux_process_target): Update.
3749 * lynx-low.cc (lynx_target_ops): Update.
3750 * nto-low.cc (nto_target_ops): Update.
3751 (nto_supports_non_stop): Remove; rely on the default behavior
3752 instead.
3753 * win32-low.cc (win32_target_ops): Update.
3754
d7abedf7
TBA
37552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3756
3757 Turn process_stratum_target's qxfer_siginfo op into a method of
3758 process_target.
3759
3760 * target.h (struct process_stratum_target): Remove the target op.
3761 (class process_target): Add the target op. Also add
3762 'supports_qxfer_siginfo'.
3763 * target.cc (process_target::qxfer_siginfo): Define.
3764 (process_target::supports_qxfer_siginfo): Define.
3765
3766 Update the derived classes and callers below.
3767
3768 * server.cc (handle_qxfer_siginfo): Update.
3769 (handle_query): Update.
3770 * linux-low.cc (linux_target_ops): Update.
3771 (linux_process_target::supports_qxfer_siginfo): Define.
3772 (linux_xfer_siginfo): Turn into ...
3773 (linux_process_target::qxfer_siginfo): ... this.
3774 * linux-low.h (class linux_process_target): Update.
3775 * lynx-low.cc (lynx_target_ops): Update.
3776 * nto-low.cc (nto_target_ops): Update.
3777 * win32-low.cc (win32_target_ops): Update.
3778
2d0795ee
TBA
37792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3780
3781 Turn process_stratum_target's qxfer_osdata op into a method of
3782 process_target.
3783
3784 * target.h (struct process_stratum_target): Remove the target op.
3785 (class process_target): Add the target op. Also add
3786 'supports_qxfer_osdata'.
3787 * target.cc (process_target::qxfer_osdata): Define.
3788 (process_target::supports_qxfer_osdata): Define.
3789
3790 Update the derived classes and callers below.
3791
3792 * server.cc (handle_qxfer_osdata): Update.
3793 (handle_query): Update.
3794 * linux-low.cc (linux_target_ops): Update.
3795 (linux_process_target::supports_qxfer_osdata): Define.
3796 (linux_qxfer_osdata): Turn into ...
3797 (linux_process_target::qxfer_osdata): ... this.
3798 * linux-low.h (class linux_process_target): Update.
3799 * lynx-low.cc (lynx_target_ops): Update.
3800 * nto-low.cc (nto_target_ops): Update.
3801 * win32-low.cc (win32_target_ops): Update.
3802
ea06bbaa
TBA
38032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3804
3805 Turn process_stratum_target's hostio_last_error op into a
3806 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.cc: Add "hostio.h" to includes.
3811 (process_target::hostio_last_error): Define.
3812
3813 Update the derived classes and callers below.
3814
3815 * hostio.cc (hostio_error): Update.
3816 * linux-low.cc: Remove "hostio.h" from includes.
3817 (linux_target_ops): Update.
3818 * lynx-low.cc (lynx_target_ops): Update.
3819 * nto-low.cc (nto_target_ops): Update.
3820 * win32-low.h (class win32_process_target): Update.
3821 * win32-low.cc (win32_target_ops): Update.
3822 (wince_hostio_last_error): Turn into ...
3823 (win32_process_target::hostio_last_error): ... this.
3824
6e3fd7e9
TBA
38252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3826
3827 Turn process_stratum_target's get_tls_address op into a method of
3828 process_target.
3829
3830 * target.h (struct process_stratum_target): Remove the target op.
3831 (class process_target): Add the target op. Also add
3832 'supports_get_tls_address'.
3833 * target.cc (process_target::get_tls_address): Define.
3834 (process_target::supports_get_tls_address): Define.
3835
3836 Update the derived classes and callers below.
3837
3838 * server.cc (handle_query): Update.
3839 * linux-low.cc (linux_target_ops): Update.
3840 (linux_process_target::supports_get_tls_address): Define.
3841 (linux_process_target::get_tls_address): Define.
3842 * linux-low.h (class linux_process_target): Update.
3843 * lynx-low.cc (lynx_target_ops): Update.
3844 * nto-low.cc (nto_target_ops): Update.
3845 * win32-low.cc (win32_target_ops): Update.
3846
5203ae1e
TBA
38472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3848
3849 Turn process_stratum_target's read_offsets op into a method of
3850 process_target.
3851
3852 * target.h (struct process_stratum_target): Remove the target op.
3853 (class process_target): Add the target op. Also add
3854 'supports_read_offsets'.
3855 * target.cc (process_target::read_offsets): Define.
3856 (process_target::supports_read_offsets): Define.
3857
3858 Update the derived classes and callers below.
3859
3860 * server.cc (handle_query): Update.
3861 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3862 (linux_target_ops): Update.
3863 (linux_process_target::supports_read_offsets): Define.
3864 (linux_read_offsets): Turn into ...
3865 (linux_process_target::read_offsets): ... this.
3866 * linux-low.h (class linux_process_target): Update.
3867 * lynx-low.cc (lynx_target_ops): Update.
3868 * nto-low.cc (nto_target_ops): Update.
3869 * win32-low.cc (win32_target_ops): Update.
3870
6eeb5c55
TBA
38712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3872
3873 Turn process_stratum_target's stopped_by_watchpoint and
3874 stopped_data_address ops into methods of process_target.
3875
3876 * target.h (struct process_stratum_target): Remove the target ops.
3877 (class process_target): Add the target ops.
3878 * target.cc (process_target::stopped_by_watchpoint): Define.
3879 (process_target::stopped_data_address): Define.
3880
3881 Update the derived classes and callers below.
3882
3883 * remote-utils.cc (prepare_resume_reply): Update.
3884 * linux-low.cc (linux_target_ops): Update.
3885 (linux_stopped_by_watchpoint): Turn into ...
3886 (linux_process_target::stopped_by_watchpoint): ... this.
3887 (linux_stopped_data_address): Turn into ...
3888 (linux_process_target::stopped_data_address): ... this.
3889 * linux-low.h (class linux_process_target): Update.
3890 * lynx-low.cc (lynx_target_ops): Update.
3891 * nto-low.cc (nto_target_ops): Update.
3892 (nto_stopped_by_watchpoint): Turn into ...
3893 (nto_process_target::stopped_by_watchpoint): ... this.
3894 (nto_stopped_data_address): Turn into ...
3895 (nto_process_target::stopped_data_address): ... this.
3896 * nto-low.h (class nto_process_target): Update.
3897 * win32-low.cc (win32_target_ops): Update.
3898 (win32_stopped_by_watchpoint): Turn into ...
3899 (win32_process_target::stopped_by_watchpoint): ... this.
3900 (win32_stopped_data_address): Turn into ...
3901 (win32_process_target::stopped_data_address): ... this.
3902 * win32-low.h (class win32_process_target): Update.
3903
22aa6223
TBA
39042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3905
3906 Turn process_stratum_target's supports_hardware_single_step op into
3907 a method of process_target.
3908
3909 * target.h (struct process_stratum_target): Remove the target op.
3910 (class process_target): Add the target op.
3911 (target_supports_hardware_single_step): Update the macro.
3912 (target_can_do_hardware_single_step): Remove declaration.
3913 * target.cc (process_target::supports_hardware_single_step): Define.
3914 (target_can_do_hardware_single_step): Remove.
3915
3916 Update the derived classes and callers below.
3917
3918 * linux-low.h (class linux_process_target): Update.
3919 * linux-low.cc (linux_target_ops): Update.
3920 (linux_supports_hardware_single_step): Turn into ...
3921 (linux_process_target::supports_hardware_single_step): ... this.
3922 * lynx-low.h (class lynx_process_target): Update.
3923 * lynx-low.cc (lynx_target_ops): Update.
3924 (lynx_process_target::supports_hardware_single_step): Define.
3925 * nto-low.h (class nto_process_target): Update.
3926 * nto-low.cc (nto_target_ops): Update.
3927 (nto_process_target::supports_hardware_single_step): Define.
3928 * win32-low.h (class win32_process_target): Update.
3929 * win32-low.cc (win32_target_ops): Update.
3930 (win32_process_target::supports_hardware_single_step): Define.
3931
93fe88b2
TBA
39322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3933
3934 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3935 ops into methods of process_target.
3936
3937 * target.h (struct process_stratum_target): Remove the target ops.
3938 (class process_target): Add the target ops.
3939 (target_stopped_by_hw_breakpoint): Update the macro.
3940 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3941 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3942 (process_target::supports_stopped_by_hw_breakpoint): Define.
3943
3944 Update the derived classes and callers below.
3945
3946 * linux-low.cc (linux_target_ops): Update.
3947 (linux_stopped_by_hw_breakpoint): Turn into ...
3948 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3949 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3950 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3951 * linux-low.h (class linux_process_target): Update.
3952 * lynx-low.cc (lynx_target_ops): Update.
3953 * nto-low.cc (nto_target_ops): Update.
3954 * win32-low.cc (win32_target_ops): Update.
3955
84320c4e
TBA
39562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3957
3958 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3959 ops into methods of process_target.
3960
3961 * target.h (struct process_stratum_target): Remove the target ops.
3962 (class process_target): Add the target ops.
3963 (target_stopped_by_sw_breakpoint): Update the macro.
3964 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3965 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3966 (process_target::supports_stopped_by_sw_breakpoint): Define.
3967
3968 Update the derived classes and callers below.
3969
3970 * linux-low.cc (linux_target_ops): Update.
3971 (linux_stopped_by_sw_breakpoint): Turn into ...
3972 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3973 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3974 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3975 * linux-low.h (class linux_process_target): Update.
3976 * lynx-low.cc (lynx_target_ops): Update.
3977 * nto-low.cc (nto_target_ops): Update.
3978 * win32-low.cc (win32_target_ops): Update.
3979
7e0bde70
TBA
39802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3981
3982 Turn process_stratum_target's insert_point and remove_point ops
3983 into methods of process_target.
3984
3985 * target.h (struct process_stratum_target): Remove the target ops.
3986 (class process_target): Add the target ops.
3987 * target.cc (process_target::insert_point): Define.
3988 (process_target::remove_point): Define.
3989
3990 Update the derived classes and callers below.
3991
3992 * mem-break.cc (set_raw_breakpoint_at): Update.
3993 (delete_raw_breakpoint): Update.
3994 (uninsert_raw_breakpoint): Update.
3995 (reinsert_raw_breakpoint): Update.
3996 * linux-low.cc (linux_target_ops): Update.
3997 (linux_insert_point): Turn into ...
3998 (linux_process_target::insert_point): ... this.
3999 (linux_remove_point): Turn into ...
4000 (linux_process_target::remove_point): ... this.
4001 * linux-low.h (class linux_process_target): Update.
4002 * lynx-low.cc (lynx_target_ops): Update.
4003 * nto-low.cc (nto_target_ops): Update.
4004 (nto_insert_point): Turn into ...
4005 (nto_process_target::insert_point): ... this.
4006 (nto_remove_point): Turn into ...
4007 (nto_process_target::remove_point): ... this.
4008 * nto-low.h (class nto_process_target): Update.
4009 * win32-low.cc (win32_target_ops): Update.
4010 (win32_insert_point): Turn into ...
4011 (win32_process_target::insert_point): ... this.
4012 (win32_remove_point): Turn into ...
4013 (win32_process_target::remove_point): ... this.
4014 * win32-low.h (class win32_process_target): Update.
4015
a2b2297a
TBA
40162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4017
4018 Turn process_stratum_target's supports_z_point_type op into a
4019 method of process_target.
4020
4021 * target.h (struct process_stratum_target): Remove the target op.
4022 (class process_target): Add the target op.
4023 * target.cc (process_target::supports_z_point_type): Define.
4024
4025 Update the derived classes and callers below.
4026
4027 * mem-break.cc (z_type_supported): Update.
4028 * linux-low.cc (linux_target_ops): Update.
4029 (linux_supports_z_point_type): Turn into ...
4030 (linux_process_target::supports_z_point_type): ... this.
4031 * linux-low.h (class linux_process_target): Update.
4032 * lynx-low.cc (lynx_target_ops): Update.
4033 * nto-low.cc (nto_target_ops): Update.
4034 (nto_supports_z_point_type): Turn into ...
4035 (nto_process_target::supports_z_point_type): ... this.
4036 * nto-low.h (class nto_process_target): Update.
4037 * win32-low.cc (win32_target_ops): Update.
4038 (win32_supports_z_point_type): Turn into ...
4039 (win32_process_target::supports_z_point_type): ... this.
4040 * win32-low.h (class win32_process_target): Update.
4041
eac215cc
TBA
40422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4043
4044 Turn process_stratum_target's read_auxv op into a method of
4045 process_target.
4046
4047 * target.h (class process_stratum_target): Remove the target op.
4048 (struct process_target): Add the target op. Also add
4049 'supports_read_auxv'.
4050 * target.cc (process_target::read_auxv): Define.
4051 (process_target::supports_read_auxv): Define.
4052
4053 Update the derived classes and callers below.
4054
4055 * server.cc (handle_qxfer_auxv): Update.
4056 (handle_query): Update.
4057 * linux-low.cc (linux_target_ops): Update.
4058 (linux_process_target::supports_read_auxv): Define.
4059 (linux_read_auxv): Turn into ...
4060 (linux_process_target::read_auxv): ... this.
4061 * linux-low.h (class linux_process_target): Update.
4062 * lynx-low.cc (lynx_target_ops): Update.
4063 * nto-low.cc (nto_target_ops): Update.
4064 (nto_process_target::supports_read_auxv): Define.
4065 (nto_read_auxv): Turn into ...
4066 (nto_process_target::read_auxv): ... this.
4067 * nto-low.h (class nto_process_target): Update.
4068 * win32-low.cc (win32_target_ops): Update.
4069
eb497a2a
TBA
40702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4071
4072 Turn process_stratum_target's request_interrupt op into a method of
4073 process_target.
4074
4075 * target.h (struct process_stratum_target): Remove the target op.
4076 (class process_target): Add the target op.
4077
4078 Update the derived classes and callers below.
4079
4080 * remote-utils.cc (putpkt_binary_1): Update.
4081 (input_interrupt): Update.
4082 (getpkt): Update.
4083 * server.cc (handle_v_requests): Update.
4084 * linux-low.cc (linux_target_ops): Update.
4085 (linux_request_interrupt): Turn into ...
4086 (linux_process_target::request_interrupt): ... this.
4087 * linux-low.h (class linux_process_target): Update.
4088 * lynx-low.cc (lynx_target_ops): Update.
4089 (lynx_request_interrupt): Turn into ...
4090 (lynx_process_target::request_interrupt): ... this.
4091 * lynx-low.h (class lynx_process_target): Update.
4092 * nto-low.cc (nto_target_ops): Update.
4093 (nto_request_interrupt): Turn into ...
4094 (nto_process_target::request_interrupt): ... this.
4095 * nto-low.h (class nto_process_target): Update.
4096 * win32-low.cc (win32_target_ops): Update.
4097 (win32_request_interrupt): Turn into ...
4098 (win32_process_target::request_interrupt): ... this.
4099 * win32-low.h (class win32_process_target): Update.
4100
2a31c7aa
TBA
41012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4102
4103 Turn process_stratum_target's look_up_symbols op into a method of
4104 process_target.
4105
4106 * target.h (struct process_stratum_target): Remove the target op.
4107 (class process_target): Add the target op.
4108 * target.cc (process_target::look_up_symbols): Define.
4109
4110 Update the derived classes and callers below.
4111
4112 * server.cc (handle_query): Update.
4113 * linux-low.cc (linux_target_ops): Update.
4114 (linux_look_up_symbols): Turn into ...
4115 (linux_process_target::look_up_symbols): ... this.
4116 * linux-low.h (class linux_process_target): Update.
4117 * lynx-low.cc (lynx_target_ops): Update.
4118 * nto-low.cc (nto_target_ops): Update.
4119 * win32-low.cc (win32_target_ops): Update.
4120
e2558df3
TBA
41212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4122
4123 Turn process_stratum_target's read_memory and write_memory
4124 ops into methods of process_target.
4125
4126 * target.h (struct process_stratum_target): Remove the target ops.
4127 (class process_target): Add the target ops.
4128
4129 Update the derived classes and callers below.
4130
4131 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4132 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4133 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4134 (arm_get_syscall_trapinfo): Update.
4135 * linux-cris-low.cc (cris_breakpoint_at): Update.
4136 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4137 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4138 * linux-mips-low.cc (mips_breakpoint_at): Update.
4139 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4140 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4141 * linux-sh-low.cc (sh_breakpoint_at): Update.
4142 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4143 (sparc_store_gregset_from_stack): Update.
4144 (sparc_breakpoint_at): Update.
4145 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4146 * linux-tile-low.cc (tile_breakpoint_at): Update.
4147 * linux-x86-low.cc (x86_breakpoint_at): Update.
4148 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4149 * mem-brea.cc (insert_memory_breakpoint): Update.
4150 (validate_inserted_breakpoint): Update.
4151 * target.cc (read_inferior_memory): Update.
4152 (target_write_memory): Update.
4153 * linux-low.cc (linux_target_ops): Update.
4154 (linux_read_memory): Make a wrapper around the read_memory target
4155 op call.
4156 (linux_process_target::read_memory): Rename from linux_read_memory.
4157 (linux_write_memory): Turn into ...
4158 (linux_process_target::write_memory): ... this.
4159 * linux-low.h (class linux_process_target): Update.
4160 * lynx-low.cc (lynx_target_ops): Update.
4161 (lynx_read_memory): Turn into ...
4162 (lynx_process_target::read_memory): ... this.
4163 (lynx_write_memory): Turn into ...
4164 (lynx_process_target::write_memory): ... this.
4165 * lynx-low.h (class lynx_process_target): Update.
4166 * nto-low.cc (nto_target_ops): Update.
4167 (nto_read_memory): Turn into ...
4168 (nto_process_target::read_memory): ... this.
4169 (nto_write_memory): Turn into ...
4170 (nto_process_target::write_memory): ... this.
4171 * nto-low.h (class nto_process_target): Update.
4172 * win32-low.cc (win32_target_ops): Update.
4173 (win32_read_inferior_memory): Turn into ...
4174 (win32_process_target::read_memory): ... this.
4175 (win32_write_inferior_memory): Turn into ...
4176 (win32_process_target::write_memory): ... this.
4177 * win32-low.h (class win32_process_target): Update.
4178
79b44087
TBA
41792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4180
4181 Turn process_stratum_target's prepare_to_access_memory and
4182 done_accessing_memory ops into methods of process_target.
4183
4184 * target.h (struct process_stratum_target): Remove the target ops.
4185 (class process_target): Add the target ops.
4186 * target.cc (process_target::prepare_to_access_memory): Define.
4187 (process_target::done_accessing_memory): Define.
4188 (prepare_to_access_memory): Update.
4189 (done_accessing_memory): Update.
4190
4191 Update the derived classes and callers below.
4192
4193 * linux-low.cc (linux_target_ops): Update.
4194 (linux_prepare_to_access_memory): Turn into ...
4195 (linux_process_target::prepare_to_access_memory): ... this.
4196 (linux_done_accessing_memory): Turn into ...
4197 (linux_process_target::done_accessing_memory): ... this.
4198 * linux-low.h (class linux_process_target): Update.
4199 * lynx-low.cc (lynx_target_ops): Update.
4200 * nto-low.cc (nto_target_ops): Update.
4201 * win32-low.cc (win32_target_ops): Update.
4202
a5a4d4cd
TBA
42032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4204
4205 Turn process_stratum_target's fetch_registers and store_registers
4206 ops into methods of process_target.
4207
4208 * target.h (struct process_stratum_target): Remove the target ops.
4209 (class process_target): Add the target ops.
4210 (fetch_inferior_registers): Update the macro.
4211 (store_inferior_registers): Update the macro.
4212
4213 Update the derived classes and callers below.
4214
4215 * linux-low.cc (linux_target_ops): Update.
4216 (linux_fetch_registers): Turn into ...
4217 (linux_process_target::fetch_registers): ... this.
4218 (linux_store_registers): Turn into ...
4219 (linux_process_target::store_registers): ... this.
4220 * linux-low.h (class linux_process_target): Update.
4221 * lynx-low.cc (lynx_target_ops): Update.
4222 (lynx_fetch_registers): Turn into ...
4223 (lynx_process_target::fetch_registers): ... this.
4224 (lynx_store_registers): Turn into ...
4225 (lynx_process_target::store_registers): ... this.
4226 * lynx-low.h (class lynx_process_target): Update.
4227 * nto-low.cc (nto_target_ops): Update.
4228 (nto_fetch_registers): Turn into ...
4229 (nto_process_target::fetch_registers): ... this.
4230 (nto_store_registers): Turn into ...
4231 (nto_process_target::store_registers): ... this.
4232 * nto-low.h (class nto_process_target): Update.
4233 * win32-low.cc (win32_target_ops): Update.
4234 (win32_fetch_inferior_registers): Turn into ...
4235 (win32_process_target::fetch_registers): ... this.
4236 (win32_store_inferior_registers): Turn into ...
4237 (win32_process_target::store_registers): ... this.
4238 * win32-low.h (class win32_process_target): Update.
4239
6532e7e3
TBA
42402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4241
4242 Turn process_stratum_target's wait op into a method of
4243 process_target.
4244
4245 * target.h (struct process_stratum_target): Remove the target op.
4246 (class process_target): Add the target op.
4247
4248 Update the derived classes and callers below.
4249
4250 * target.cc (target_wait): Update.
4251 * linux-low.cc (linux_target_ops): Update.
4252 (linux_wait): Turn into ...
4253 (linux_process_target::wait): ... this.
4254 * linux-low.h (class linux_process_target): Update.
4255 * lynx-low.cc (lynx_target_ops): Update.
4256 (lynx_wait): Turn into ...
4257 (lynx_process_target::wait): ... this.
4258 * lynx-low.h (class lynx_process_target): Update.
4259 * nto-low.cc (nto_target_ops): Update.
4260 (nto_wait): Turn into ...
4261 (nto_process_target::wait): ... this.
4262 * nto-low.h (class nto_process_target): Update.
4263 * win32-low.cc (win32_target_ops): Update.
4264 (win32_wait): Turn into ...
4265 (win32_process_target::wait): ... this.
4266 (do_initial_child_stuff): Update.
4267 * win32-low.h (class win32_process_target): Update.
4268
0e4d7e35
TBA
42692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4270
4271 Turn process_stratum_target's resume op into a method of
4272 process_target.
4273
4274 * target.h (struct process_stratum_target): Remove the target op.
4275 (class process_target): Add the target op.
4276
4277 Update the derived classes and callers below.
4278
4279 * server.cc (resume): Update.
4280 * target.cc (target_stop_and_wait): Update.
4281 (target_continue_no_signal): Update.
4282 (target_continue): Update.
4283 * linux-low.cc (linux_target_ops): Update.
4284 (linux_resume): Turn into ...
4285 (linux_process_target::resume): ... this.
4286 * linux-low.h (class linux_process_target): Update.
4287 * lynx-low.cc (lynx_target_ops): Update.
4288 (lynx_resume): Turn into ...
4289 (lynx_process_target::resume): ... this.
4290 * lynx-low.h (class lynx_process_target): Update.
4291 * nto-low.cc (nto_target_ops): Update.
4292 (nto_resume): Turn into ...
4293 (nto_process_target::resume): ... this.
4294 * nto-low.h (class nto_process_target): Update.
4295 * win32-low.cc (win32_target_ops): Update.
4296 (win32_resume): Turn into ...
4297 (win32_process_target::resume): ... this.
4298 (win32_process_target::detach): Update.
4299 (do_initial_child_stuff): Update.
4300 * win32-low.h (class win32_process_target): Update.
4301
13d3d99b
TBA
43022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4303
4304 Turn process_stratum_target's thread_alive op into a method of
4305 process_target.
4306
4307 * target.h (struct process_stratum_target): Remove the target op.
4308 (class process_target): Add the target op.
4309 (mythread_alive): Update the macro.
4310
4311 Update the derived classes and callers below.
4312
4313 * linux-low.cc (linux_target_ops): Update.
4314 (linux_thread_alive): Turn into ...
4315 (linux_process_target::thread_alive): ... this.
4316 (wait_for_sigstop): Update.
4317 * linux-low.h (class linux_process_target): Update.
4318 * lynx-low.cc (lynx_target_ops): Update.
4319 (lynx_thread_alive): Turn into ...
4320 (lynx_process_target::thread_alive): ... this.
4321 * lynx-low.h (class lynx_process_target): Update.
4322 * nto-low.cc (nto_target_ops): Update.
4323 (nto_thread_alive): Turn into ...
4324 (nto_process_target::thread_alive): ... this.
4325 * nto-low.h (class nto_process_target): Update.
4326 * win32-low.cc (win32_target_ops): Update.
4327 (win32_thread_alive): Turn into ...
4328 (win32_process_target::thread_alive): ... this.
4329 * win32-low.h (class win32_process_target): Update.
4330
95a49a39
TBA
43312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4332
4333 Turn process_stratum_target's join op into a method of
4334 process_target.
4335
4336 * target.h (struct process_stratum_target): Remove the target op.
4337 (class process_target): Add the target op.
4338 (join_inferior): Update the macro.
4339
4340 Update the derived classes and callers below.
4341
4342 * linux-low.cc (linux_target_ops): Update.
4343 (linux_join): Turn into ...
4344 (linux_process_target::join): ... this.
4345 * linux-low.h (class linux_process_target): Update.
4346 * lynx-low.cc (lynx_target_ops): Update.
4347 (lynx_join): Turn into ...
4348 (lynx_process_target::join): ... this.
4349 * lynx-low.h (class lynx_process_target): Update.
4350 * nto-low.cc (nto_target_ops): Update.
4351 (nto_process_target::join): Define.
4352 * nto-low.h (class nto_process_target): Update.
4353 * win32-low.cc (win32_target_ops): Update.
4354 (win32_join): Turn into ...
4355 (win32_process_target::join): ... this.
4356 * win32-low.h (class win32_process_target): Update.
4357
8adb37b9
TBA
43582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4359
4360 Turn process_stratum_target's mourn op into a method of
4361 process_target.
4362
4363 * target.h (struct process_stratum_target): Remove the target op.
4364 (class process_target): Add the target op.
4365
4366 Update the derived classes and callers below.
4367
4368 * target.cc (target_mourn_inferior): Update.
4369 * linux-low.cc (linux_target_ops): Update.
4370 (linux_mourn): Turn into ...
4371 (linux_process_target::mourn): ... this.
4372 (handle_extended_wait): Update.
4373 (linux_process_target::kill): Update.
4374 (linux_process_target::detach): Update.
4375 * linux-low.h (class linux_process_target): Update.
4376 * lynx-low.cc (lynx_target_ops): Update.
4377 (lynx_mourn): Turn into ...
4378 (lynx_process_target::mourn): ... this.
4379 * lynx-low.h (class lynx_process_target): Update.
4380 * nto-low.cc (nto_target_ops): Update.
4381 (nto_mourn): Turn into ...
4382 (nto_process_target::mourn): ... this.
4383 * nto-low.h (class nto_process_target): Update.
4384 * win32-low.cc (win32_target_ops): Update.
4385 (win32_mourn): Turn into ...
4386 (win32_process_target::mourn): ... this.
4387 * win32-low.h (class win32_process_target): Update.
4388
9061c9cf
TBA
43892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4390
4391 Turn process_stratum_target's detach op into a method of
4392 process_target.
4393
4394 * target.h (struct process_stratum_target): Remove the target op.
4395 (class process_target): Add the target op.
4396 (detach_inferior): Update the macro.
4397
4398 Update the derived classes and callers below.
4399
4400 * linux-low.cc (linux_target_ops): Update.
4401 (linux_detach): Turn into ...
4402 (linux_process_target::detach): ... this.
4403 * linux-low.h (class linux_process_target): Update.
4404 * lynx-low.cc (lynx_target_ops): Update.
4405 (lynx_detach): Turn into ...
4406 (lynx_process_target::detach): ... this.
4407 * lynx-low.h (class lynx_process_target): Update.
4408 * nto-low.cc (nto_target_ops): Update.
4409 (nto_detach): Turn into ...
4410 (nto_process_target::detach): ... this.
4411 * nto-low.h (class nto_process_target): Update.
4412 * win32-low.cc (win32_target_ops): Update.
4413 (win32_detach): Turn into ...
4414 (win32_process_target::detach): ... this.
4415 * win32-low.h (class win32_process_target): Update.
4416
c6885a57
TBA
44172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4418
4419 Turn process_stratum_target's kill op into a method of
4420 process_target.
4421
4422 * target.h (struct process_stratum_target): Remove the target op.
4423 (class process_target): Add the target op.
4424
4425 Update the derived classes and callers below.
4426
4427 * target.cc (kill_inferior): Update.
4428 * linux-low.cc (linux_target_ops): Update.
4429 (linux_kill): Turn into ...
4430 (linux_process_target::kill): ... this.
4431 * linux-low.h (class linux_process_target): Update.
4432 * lynx-low.cc (lynx_target_ops): Update.
4433 (lynx_kill): Turn into ...
4434 (lynx_process_target::kill): ... this.
4435 * lynx-low.h (class lynx_process_target): Update.
4436 * nto-low.cc (nto_target_ops): Update.
4437 (nto_kill): Turn into ...
4438 (nto_process_target::kill): ... this.
4439 * nto-low.h (class nto_process_target): Update.
4440 * win32-low.cc (win32_target_ops): Update.
4441 (win32_kill): Turn into ...
4442 (win32_process_target::kill): ... this.
4443 * win32-low.h (class win32_process_target): Update.
4444
ef03dad8
TBA
44452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4446
4447 Turn process_stratum_target's attach op into a method of
4448 process_target.
4449
4450 * target.h (struct process_stratum_target): Remove the target op.
4451 (class process_target): Add the target op.
4452 (myattach): Update the macro.
4453
4454 Update the derived classes and callers below.
4455
4456 * linux-low.cc (linux_target_ops): Update.
4457 (linux_attach): Turn into ...
4458 (linux_process_target::attach): ... this.
4459 * linux-low.h (class linux_process_target): Update.
4460 * lynx-low.cc (lynx_target_ops): Update.
4461 (lynx_attach): Turn into ...
4462 (lynx_process_target::attach): ... this.
4463 * lynx-low.h (class lynx_process_target): Update.
4464 * nto-low.cc (nto_target_ops): Update.
4465 (nto_attach): Turn into ...
4466 (nto_process_target::attach): ... this.
4467 * nto-low.h (class nto_process_target): Update.
4468 * win32-low.cc (win32_target_ops): Update.
4469 (win32_attach): Turn into ...
4470 (win32_process_target::attach): ... this.
4471 * win32-low.h (class win32_process_target): Update.
4472
6dee9afb
TBA
44732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4474
4475 Turn process_stratum_target's post_create_inferior op into a method
4476 of process_target.
4477
4478 * target.h (struct process_stratum_target): Remove the target op.
4479 (class process_target): Add the target op.
4480 (target_post_create_inferior): Update the macro.
4481 * target.cc (process_target::post_create_inferior): Define.
4482
4483 Update the derived classes and callers below.
4484
4485 * linux-low.cc (linux_target_ops): Update.
4486 (linux_post_create_inferior): Turn into ...
4487 (linux_process_target::post_create_inferior): ... this.
4488 * linux-low.h (class linux_process_target): Update.
4489 * lynx-low.cc (lynx_target_ops): Update.
4490 * nto-low.cc (nto_target_ops): Update.
4491 * win32-low.cc (win32_target_ops): Update.
4492
15295543
TBA
44932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4494
4495 Turn process_stratum_target's create_inferior op into a method of
4496 process_target.
4497
4498 * target.h (struct process_stratum_target): Remove the target op.
4499 (class process_target): Add the target op.
4500 (create_inferior): Rename the macro to ...
4501 (target_create_inferior): ... this.
4502
4503 Update the derived classes and callers below.
4504
4505 * server.cc (handle_v_run): Update.
4506 (captured_main): Update.
4507 (process_serial_event): Update.
4508 * linux-low.cc (linux_target_ops): Update.
4509 (linux_create_inferior): Turn into ...
4510 (linux_process_target::create_inferior): ... this.
4511 * linux-low.h (class linux_process_target): Update.
4512 * lynx-low.cc (lynx_target_ops): Update.
4513 (lynx_create_inferior): Turn into ...
4514 (lynx_process_target::create_inferior): ... this.
4515 * lynx-low.h (class lynx_process_target): Update.
4516 * nto-low.cc (nto_target_ops): Update.
4517 (nto_create_inferior): Turn into ...
4518 (nto_process_target::create_inferior): ... this.
4519 * nto-low.h (class nto_process_target): Update.
4520 * win32-low.cc (win32_target_ops): Update.
4521 (win32_create_inferior): Turn into ...
4522 (win32_process_target::create_inferior): ... this.
4523 * win32-low.h (class win32_process_target): Update.
4524
5ef9273d
TBA
45252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4526
4527 * target.h (class process_target): New class definition.
4528 (struct process_stratum_target) <pt>: New field with type
4529 'process_target*'.
4530 * linux-low.h (class linux_process_target): Define as a derived
4531 class of 'process_target'.
4532 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4533 as the 'pt' field.
4534 * lynx-low.h (class lynx_process_target): Define as a derived
4535 class of 'process_target'.
4536 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4537 as the 'pt' field.
4538 * nto-low.h (class nto_process_target): Define as a derived
4539 class of 'process_target'.
4540 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4541 as the 'pt' field.
4542 * win32-low.h (class win32_process_target): Define as a derived
4543 class of 'process_target'.
4544 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4545 as the 'pt' field.
4546
9f1528a1
AB
45472020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4548
4549 * configure: Regenerate.
4550
bf84f706
MR
45512020-02-19 Maciej W. Rozycki <macro@wdc.com>
4552 Andrew Burgess <andrew.burgess@embecosm.com>
4553
4554 * linux-riscv-low.cc: New file.
4555 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4556 and nat/riscv-linux-tdesc.c.
4557 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4558 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4559 Define.
4560
1a627e7e
TT
45612020-02-14 Tom Tromey <tom@tromey.com>
4562
4563 * acinclude.m4: Don't include acx_configure_dir.m4.
4564 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4565 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4566 (all, install-only, uninstall, clean-info, clean)
4567 (maintainer-clean): Don't recurse.
4568 (subdir_do, all-lib): Remove.
4569 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4570 (GNULIB_H): Remove.
4571 (generated_files): Update.
4572 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4573 * configure: Rebuild.
4574 * configure.ac: Don't configure gnulib or libiberty.
4575 (GNULIB): Update.
4576
a9b34532
EZ
45772020-02-14 Eli Zaretskii <eliz@gnu.org>
4578
4579 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4580 preparing the command line for CreateProcess.
4581 (win32_create_inferior): Reflect the program name in debugging
4582 output that shows the process and its command line.
4583
feacfcac
SM
45842020-02-13 Simon Marchi <simon.marchi@efficios.com>
4585
4586 * Makefile.in: Rename source files from .c to .cc.
4587 * %.c: Rename to %.cc.
4588 * configure.ac: Rename server.c to server.cc.
4589 * configure: Re-generate.
4590
06b3c5bd
SM
45912020-02-13 Simon Marchi <simon.marchi@efficios.com>
4592
4593 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4594
052793ad
HD
45952020-02-12 Hannes Domani <ssbssa@yahoo.de>
4596
4597 * win32-low.c (win32_create_inferior): Set signal_pid.
4598
f20e3e82
MR
45992020-02-12 Maciej W. Rozycki <macro@wdc.com>
4600 Pedro Alves <palves@redhat.com>
4601
4602 Skip building gdbserver in a cross-configuration.
4603 * configure.srv: Set $gdbserver_host depending on whether $target
4604 is $host. Use $gdbserver_host instead of $host.
4605
8ddd8e0e
SM
46062020-02-11 Simon Marchi <simon.marchi@efficios.com>
4607
4608 * configure: Re-generate.
4609
898e7f60
SM
46102020-02-11 Simon Marchi <simon.marchi@efficios.com>
4611
4612 * configure: Re-generate.
4613
58df732b
SM
46142020-02-11 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * acinclude.m4: Update warning.m4 path.
4617
7928d571
HD
46182020-02-09 Hannes Domani <ssbssa@yahoo.de>
4619
4620 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4621 (handle_exception): Set siginfo_er.
4622 (win32_xfer_siginfo): New function.
4623
919adfe8
TT
46242020-02-07 Tom Tromey <tom@tromey.com>
4625 Pedro Alves <palves@redhat.com>
4626
4627 * README: Update build documentation.
4628 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4629 host, not target.
4630 * configure.ac: Update paths.
4631 * configure: Rebuild.
4632 * acinclude.m4: Update paths.
4633 * Makefile.in: Update include paths.
4634 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4635 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4636 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4637 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4638 (%-generated.c): Update paths.
4639 * Move entire directory from ../gdb/gdbserver.
4640
287c844a
MR
46412020-01-29 Maciej W. Rozycki <macro@wdc.com>
4642
4643 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4644
548a204f
PFC
46452020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4646
4647 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4648 assignment instead of srv_linux_obj.
4649
a2236a08
HD
46502020-01-28 Hannes Domani <ssbssa@yahoo.de>
4651
4652 * server.c (handle_qxfer_libraries): Write segment-address with
4653 paddress.
4654
bdaed379
HD
46552020-01-24 Hannes Domani <ssbssa@yahoo.de>
4656
4657 * Makefile.in (install-strip): New target.
4658 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4659 * aclocal.m4: Regenerate.
4660 * configure: Regenerate.
4661 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4662
42cd72aa
MR
46632020-01-24 Maciej W. Rozycki <macro@wdc.com>
4664
4665 * Makefile.in (SFILES): Adjust paths to point to real files.
4666 (OBS): Move waitstatus.o to target/waitstatus.o.
4667 (TAGS): Transform paths appropriately.
4668 (%.o): Rename to...
4669 (nat/%.o): ... this pattern rule.
4670 (%.o): Rename to...
4671 (target/%.o): ... this pattern rule.
4672 * configure.srv: Adjust paths throughout to include nat/ prefix
4673 with the revant files.
4674 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4675 * configure: Regenerate.
4676
42ba50ec
MR
46772020-01-24 Maciej W. Rozycki <macro@wdc.com>
4678
4679 * Makefile.in (TAGS): Remove config files from the recipe.
4680
05ea2a05
TT
46812020-01-14 Tom Tromey <tom@tromey.com>
4682
4683 * configure: Rebuild.
4684 * configure.ac: Remove any checks that were added to common.m4.
4685 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4686 lib-link.m4.
4687
01027315
TT
46882020-01-14 Tom Tromey <tom@tromey.com>
4689
4690 * server.h: Include config.h.
4691 * gdbreplay.c: Include config.h.
4692 * configure: Rebuild.
4693 * configure.ac: Don't source common.host.
4694 * acinclude.m4: Update path.
4695 * Makefile.in (INCSUPPORT): New variable.
4696 (INCLUDE_CFLAGS): Add INCSUPPORT.
4697 (SFILES): Update paths.
4698 (version-generated.c): Update path to create-version.sh.
4699 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4700
b2ceabe8
TT
47012020-01-14 Tom Tromey <tom@tromey.com>
4702
4703 * configure.ac (LIBS): Use WIN32APILIBS.
4704 (USE_WIN32API): Don't define.
4705 * configure: Rebuild.
4706
25c51f71
TT
47072020-01-14 Tom Tromey <tom@tromey.com>
4708
4709 * configure: Rebuild.
4710
c0bd321d
SM
47112020-01-13 Simon Marchi <simon.marchi@efficios.com>
4712
4713 * Makefile.in (%-generated.c): Remove rule for files from
4714 regformats/i386.
4715
bb564c58
SM
47162020-01-13 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * configure: Re-generate.
4719
6e37c371
SM
47202020-01-13 Simon Marchi <simon.marchi@efficios.com>
4721
4722 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4723 Define to static.
4724 * tracepoint.c (stop_tracing, flush_trace_buffer,
4725 about_to_request_buffer_space, get_trace_state_variable_value,
4726 set_trace_state_variable_value, gdb_collect): Add declaration.
4727
df4a0200
SM
47282020-01-13 Simon Marchi <simon.marchi@efficios.com>
4729
4730 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4731 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4732 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4733 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4734 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4735 static.
4736
89e94ec9
SM
47372020-01-13 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * inferiors.c: Include gdbsupport/common-inferior.h.
4740
2552728a
SM
47412020-01-13 Simon Marchi <simon.marchi@efficios.com>
4742
4743 * hostio-errno.c: Include hostio.h.
4744
4025fa09
SM
47452020-01-13 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4748 prerequisite.
4749
c0b0a142
SM
47502020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4751
4752 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4753 * linux-arm-tdesc.h: Include arch/arm.h.
4754
bb1183e2
SM
47552020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4756
4757 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4758
f5df0b5f
SM
47592020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4760
4761 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4762 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4763
5b6d1e4f
PA
47642020-01-10 Pedro Alves <palves@redhat.com>
4765
4766 * fork-child.c (post_fork_inferior): Pass target down to
4767 startup_inferior.
4768 * inferiors.c (switch_to_thread): Add process_stratum_target
4769 parameter.
4770 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4771 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4772 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4773 * remote-utils.c (prepare_resume_reply): Pass the target to
4774 switch_to_thread.
4775 * target.c (the_target): Now a process_stratum_target.
4776 (done_accessing_memory): Pass the target to switch_to_thread.
4777 (set_target_ops): Ajust to use process_stratum_target.
4778 * target.h (struct target_ops): Rename to ...
4779 (struct process_stratum_target): ... this.
4780 (the_target, set_target_ops): Adjust.
4781 (prepare_to_access_memory): Adjust comment.
4782 * win32-low.c (child_xfer_memory): Adjust to use
4783 process_stratum_target.
4784 (win32_target_ops): Now a process_stratum_target.
4785
559e7e50
EZ
47862020-01-06 Eli Zaretskii <eliz@gnu.org>
4787 Pedro Alves <palves@redhat.com>
4788
4789 * win32-low.c (get_child_debug_event): Extract the fatal exception
4790 from the exit status and convert to the equivalent Posix signal
4791 number.
4792 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4793 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4794
48189bec
HD
47952020-01-01 Hannes Domani <ssbssa@yahoo.de>
4796
4797 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4798
5dd8bf88
JB
47992020-01-01 Joel Brobecker <brobecker@adacore.com>
4800
4801 * server.c (gdbserver_version): Change copyright year to 2020.
4802 * gdbreplay.c (gdbreplay_version): Likewise.
4803
0ad6b8ee
CB
48042019-12-19 Christian Biesinger <cbiesinger@google.com>
4805
4806 * configure: Regenerate.
4807 * configure.ac: Quote variable arguments of test.
4808
1ee7b812
BE
48092019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4810
4811 * Makefile.in: Fix build with GNU Make 3.81
4812
d9fa87f4
TT
48132019-12-16 Tom Tromey <tromey@adacore.com>
4814
4815 * server.c (get_exec_file): Constify result.
4816
ab7d13f0
CB
48172019-12-10 Christian Biesinger <cbiesinger@google.com>
4818
4819 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4820 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4821 * config.in: Regenerate.
4822 * configure: Regenerate.
4823 * configure.ac: Don't check for strerror.
4824 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4825 Call safe_strerror instead of strerror.
4826 * server.h (strerror): Remove this now-unnecessary declaration.
4827 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4828 strerror.
4829 (gdb_agent_helper_thread): Likewise.
4830 * utils.c (perror_with_name): Likewise.
4831
4da8c3a8
TT
48322019-11-26 Tom Tromey <tom@tromey.com>
4833
4834 * configure, config.in: Rebuild.
4835
21987b9c
TT
48362019-11-26 Tom Tromey <tom@tromey.com>
4837
4838 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4839 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4840 gdb_sigmask.
4841 * configure, config.in: Rebuild.
4842
5e030278
TT
48432019-11-26 Tom Tromey <tom@tromey.com>
4844
4845 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4846 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4847 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4848 * acinclude.m4: Include ax_pthread.m4.
4849 * config.in, configure: Rebuild.
4850
6d91ce9a
CB
48512019-11-26 Christian Biesinger <cbiesinger@google.com>
4852
4853 * debug.c (debug_set_output): Call safe_strerror instead of
4854 strerror.
4855 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4856 (linux_kill_one_lwp): Likewise.
4857 (linux_detach_one_lwp): Likewise.
4858 (linux_wait_for_event_filtered): Likewise.
4859 (store_register): Likewise.
4860 * lynx-low.c (lynx_attach): Likewise.
4861 * mem-break.c (insert_memory_breakpoint): Likewise.
4862 (remove_memory_breakpoint): Likewise.
4863 (delete_fast_tracepoint_jump): Likewise.
4864 (set_fast_tracepoint_jump): Likewise.
4865 (uninsert_fast_tracepoint_jumps_at): Likewise.
4866 (reinsert_fast_tracepoint_jumps_at): Likewise.
4867 * nto-low.c (nto_xfer_memory): Likewise.
4868 (nto_resume): Likewise.
4869
6cdd651f
LM
48702019-11-20 Luis Machado <luis.machado@linaro.org>
4871
4872 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4873 instead of register count.
4874 * tdesc.c (tdesc_contains_feature): New function.
4875 * tdesc.h (tdesc_contains_feature): New prototype.
4876
cd850b40
CB
48772019-11-15 Christian Biesinger <cbiesinger@google.com>
4878
4879 * Makefile.in: Add safe-strerror.c.
4880 * configure: Regenerate.
4881 * configure.ac: Don't source common.host.
4882
5abebf3c
CB
48832019-11-15 Christian Biesinger <cbiesinger@google.com>
4884
4885 * config.in: Regenerate.
4886 * configure: Regenerate.
4887
e06f3d6e
AB
48882019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4889
4890 * ax.c (ax_printf): Handle size_t_arg.
4891
ca3a04f6
CB
48922019-11-06 Christian Biesinger <cbiesinger@google.com>
4893
4894 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4895 * mi/mi-main.c (output_cores): Likewise.
4896 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4897 (linux_xfer_osdata_modules): Likewise.
4898 * remote.c (register_remote_support_xml): Likewise.
4899 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4900 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4901
e48f6033
CB
49022019-11-01 Christian Biesinger <cbiesinger@google.com>
4903
4904 * configure: Regenerate.
4905 * configure.ac: Remove check for strerror_r.
4906
e7e97a2e
CB
49072019-10-31 Christian Biesinger <cbiesinger@google.com>
4908
4909 * config.in: Regenerate.
4910 * configure: Regenerate.
4911 * configure.ac: Also check for strerror_r.
4912
75cafaa6
CB
49132019-10-31 Christian Biesinger <cbiesinger@google.com>
4914
4915 * ax.h (debug_agent): Remove duplicate declaration.
4916
30baf67b
TV
49172019-10-26 Tom de Vries <tdevries@suse.de>
4918
4919 * linux-aarch64-low.c: Fix typos in comments.
4920 * linux-arm-low.c: Same.
4921 * linux-low.c: Same.
4922 * linux-ppc-low.c: Same.
4923 * proc-service.c: Same.
4924 * regcache.h: Same.
4925 * server.c: Same.
4926 * tracepoint.c: Same.
4927 * win32-low.c: Same.
4928
52c64cf7
TT
49292019-10-25 Tom Tromey <tromey@adacore.com>
4930
4931 * utils.c (xstrdup): Remove.
4932
c12d372d
TT
49332019-10-23 Tom Tromey <tom@tromey.com>
4934
4935 * configure, config.in: Rebuild.
4936
4d0b984b
TT
49372019-10-23 Tom Tromey <tom@tromey.com>
4938
4939 * configure: Rebuild.
4940 * acinclude.m4: Use m4_include, not sinclude.
4941
c5adaa19
TT
49422019-10-17 Tom Tromey <tromey@adacore.com>
4943
4944 * configure: Rebuild.
4945 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4946 in AC_CONFIG_FILES invocation.
4947 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4948 invocation.
4949
fec4e896
CB
49502019-10-16 Christian Biesinger <cbiesinger@google.com>
4951
4952 * server.c: Include xml-builtin.h.
4953 (get_xml_features): Don't declare xml_builtins here.
4954
00975ff6
AB
49552019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4956
4957 * Makefile.in: Remove references to vec-ipa.o.
4958
0dc32745
AB
49592019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4960
4961 * Makefile.in: Remove references to vec.c.
4962
3e6ec53a
CB
49632019-10-02 Christian Biesinger <cbiesinger@google.com>
4964
4965 * server.c (server_waiting): Change to bool.
4966 (extended_protocol): Likewise.
4967 (response_needed): Likewise.
4968 (exit_requested): Likewise.
4969 (run_once): Likewise.
4970 (report_no_resumed): Likewise.
4971 (non_stop): Likewise.
4972 (disable_packet_vCont): Likewise.
4973 (disable_packet_Tthread): Likewise.
4974 (disable_packet_qC): Likewise.
4975 (disable_packet_qfThreadInfo): Likewise.
4976 (handle_general_set): Update.
4977 (handle_detach): Update.
4978 (handle_monitor_command): Update.
4979 (handle_query): Update.
4980 (captured_main): Update.
4981 (process_serial_event): Update.
4982 * server.h (server_waiting): Change to bool.
4983 (disable_packet_vCont): Likewise.
4984 (disable_packet_Tthread): Likewise.
4985 (disable_packet_qC): Likewise.
4986 (disable_packet_qfThreadInfo): Likewise.
4987 (run_once): Likewise.
4988 (non_stop): Likewise.
4989 * target.c (target_stop_and_wait): Update.
4990
80fd2826
TT
49912019-10-02 Tom Tromey <tromey@adacore.com>
4992
4993 * Makefile.in (SFILES): Add common-inferior.c.
4994 (OBS): Add common-inferior.o.
4995 * server.c (startup_with_shell): Don't define.
4996
46f29a9a
AB
49972019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4998
4999 * linux-low.c (linux_low_read_btrace): Update for change to
5000 std::vector.
5001
f9d949fb
CB
50022019-09-20 Christian Biesinger <cbiesinger@google.com>
5003
5004 * debug.c (debug_threads): Remove comment in favor of the header.
5005 * debug.h (using_threads): Add declaration.
5006 (debug_threads): Add comment.
5007 * linux-aarch64-low.c: Include debug.h and remove declaration of
5008 debug_threads.
5009 * nto-low.c: Likewise.
5010 * remote-utils.c: Likewise.
5011 * thread-db.c: Likewise.
5012
abf516c6
UW
50132019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5014
5015 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5016 and powerpc-cell64l-ipa.o.
5017 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5018 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5019 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5020 (spu*-*-*): Remove.
5021
5022 * spu-low.c: Remove file.
5023
5024 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5025 (parse_spufs_run): Remove.
5026 (ppc_get_pc): Remove Cell/B.E. support.
5027 (ppc_set_pc): Likewise.
5028 (ppc_breakpoint_at): Likewise.
5029 (ppc_arch_setup): Likewise.
5030 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5031 tdesc_powerpc_cell32l.
5032 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5033 or init_registers_powerpc_cell32l.
5034 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5035 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5036 or init_registers_powerpc_cell32l.
5037 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5038 (init_registers_powerpc_cell32l): Remove prototype.
5039 (init_registers_powerpc_cell64l): Likewise.
5040
5041 * target.h (struct target_ops): Remove qxfer_spu member.
5042 * server.c (handle_qxfer_spu): Remove.
5043 (qxfer_packets): Remove entry for "spu".
5044 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5045 * linux-low.c (SPUFS_MAGIC): Remove.
5046 (spu_enumerate_spu_ids): Remove.
5047 (linux_qxfer_spu): Remove.
5048 (linux_target_ops): Remove qxfer_spu member.
5049 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5050 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5051 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5052
2d41fa11
SDJ
50532019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5054
5055 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5056 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5057 * config.in: Regenerate.
5058 * configure: Regenerate.
5059
d59b55f0
TT
50602019-08-15 Tom Tromey <tromey@adacore.com>
5061
5062 * target.c (target_write_memory): Use gdb::byte_vector.
5063
4196ab2a
TT
50642019-08-15 Tom Tromey <tromey@adacore.com>
5065
5066 * tracepoint.c (write_inferior_data_pointer)
5067 (write_inferior_integer, write_inferior_int8)
5068 (write_inferior_uinteger, m_tracepoint_action_download)
5069 (r_tracepoint_action_download, x_tracepoint_action_download)
5070 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5071 (download_agent_expr, download_tracepoint_1)
5072 (download_trace_state_variables, upload_fast_traceframes): Update.
5073 * server.c (gdb_write_memory): Update.
5074 * remote-utils.c (relocate_instruction): Update.
5075 * proc-service.c (ps_pdwrite): Update.
5076 * mem-break.c (remove_memory_breakpoint)
5077 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5078 (uninsert_fast_tracepoint_jumps_at)
5079 (reinsert_fast_tracepoint_jumps_at): Update.
5080 * linux-x86-low.c (append_insns)
5081 (i386_install_fast_tracepoint_jump_pad)
5082 (amd64_write_goto_address, i386_write_goto_address): Update.
5083 * linux-s390-low.c (append_insns, s390_write_goto_address):
5084 Update.
5085 * linux-ppc-low.c (ppc_relocate_instruction)
5086 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5087 (ppc_write_goto_address): Update.
5088 * linux-aarch64-low.c (append_insns): Update.
5089 * target.h (struct target_ops): Update.
5090 (write_inferior_memory): Don't declare.
5091 * target.c (target_write_memory): Rename from
5092 write_inferior_memory. Remove old target_write_memory.
5093
c6778d00
TT
50942019-08-15 Tom Tromey <tromey@adacore.com>
5095
5096 * target.c (write_inferior_memory): Use std::vector.
5097
404f2902
FCE
50982019-08-06 Frank Ch. Eigler <fche@redhat.com>
5099
5100 PR build/24886
5101 * configure.ac: Drop enable-libmcheck support.
5102 * configure, config.in: Rebuild.
5103 * acinclude.m4: Don't include it.
5104
4c5aa8e0
AH
51052019-07-19 Alan Hayward <alan.hayward@arm.com>
5106
5107 * configure.srv: Remove Arm xml files.
5108
7cc17433
AH
51092019-07-19 Alan Hayward <alan.hayward@arm.com>
5110
5111 * configure.srv: Add new files. Remove xml generated files.
5112 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5113 registers.
5114 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5115 * linux-aarch32-tdesc.c: New file.
5116 * linux-aarch32-tdesc.h: New file.
5117 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5118 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5119 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5120 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5121 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5122 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5123 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5124 (arm_read_description): Call arm_linux_read_description.
5125 (initialize_low_arch): Don't init registers.
5126 * linux-arm-tdesc.c: New file.
5127 * linux-arm-tdesc.h: New file.
5128
166a82be
AH
51292019-07-10 Alan Hayward <alan.hayward@arm.com>
5130
5131 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5132 Move counter inside for.
5133 (arm_read_description): Check ptrace earlier.
5134 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5135
268a13a5
TT
51362019-07-09 Tom Tromey <tom@tromey.com>
5137
5138 * configure: Rebuild.
5139 * configure.ac: Change common to gdbsupport.
5140 * acinclude.m4: Change common to gdbsupport.
5141 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5142 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5143 common to gdbsupport.
5144 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5145 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5146 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5147 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5148 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5149 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5150 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5151 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5152 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5153 common to gdbsupport.
5154
350fab54
AH
51552019-07-04 Alan Hayward <alan.hayward@arm.com>
5156
5157 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5158 defines.
5159 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5160
2b40fda7
AH
51612019-07-04 Alan Hayward <alan.hayward@arm.com>
5162
5163 * configure.srv: Remove legacy xml.
5164 * linux-aarch64-low.c (initialize_low_arch): Remove
5165 initialize_low_tdesc call.
5166 * linux-aarch64-tdesc-selftest.c: Remove file.
5167 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5168 * linux-x86-low.c (initialize_low_arch): Remove
5169 initialize_low_tdesc call.
5170 * linux-x86-tdesc-selftest.c: Remove file.
5171 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5172
7d10623d
TV
51732019-06-20 Tom de Vries <tdevries@suse.de>
5174
5175 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5176 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5177
8d6a48df
TV
51782019-06-19 Tom de Vries <tdevries@suse.de>
5179
5180 * debug.h (debug_write): Change return type to ssize_t.
5181 * debug.c (debug_write): Same.
5182
73cc7272
TT
51832019-06-14 Tom Tromey <tom@tromey.com>
5184
5185 * configure.ac: Use new path to gnulib.
5186 * configure: Rebuild.
5187 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5188 to gnulib.
5189
08f10e02
TT
51902019-06-11 Tom Tromey <tom@tromey.com>
5191
5192 * Makefile.in (SFILES): Add alloc.c.
5193 (OBS): Add alloc.o.
5194 (IPA_OBJS): Add alloc-ipa.o.
5195 (alloc-ipa.o): New target.
5196 (%.o: ../%.c): New pattern rule.
5197
422186a9
TT
51982019-06-10 Tom Tromey <tromey@adacore.com>
5199
5200 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5201 end warning with a newline.
5202 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5203 newline.
5204 * thread-db.c (attach_thread): Don't end warning with a newline.
5205 (thread_db_notice_clone): Likewise.
5206 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5207 newline.
5208 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5209 end warning with a newline.
5210
b02f78f9
PA
52112019-06-04 Pedro Alves <palves@redhat.com>
5212
5213 * server.c (captured_main): Use make_unique_xstrdup.
5214
88ed7edb
TT
52152019-06-02 Tom Tromey <tom@tromey.com>
5216
5217 * gdbreplay.c (fromhex): Remove.
5218 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5219
33a6bc35
TT
52202019-05-29 Tom Tromey <tromey@adacore.com>
5221
5222 * configure: Rebuild.
5223
e90a813d
KB
52242019-05-06 Kevin Buettner <kevinb@redhat.com>
5225
5226 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5227 sign extension code on 32-bit builds.
5228
353ea2d1
EZ
52292019-05-03 Eli Zaretskii <eliz@gnu.org>
5230
5231 * remote-utils.c:
5232 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5233
b494cdff
TT
52342019-04-19 Tom Tromey <tom@tromey.com>
5235
5236 * server.c (struct vstop_notif): Derive from notif_event.
5237 <base>: Remove.
5238 (queue_stop_reply): Update.
5239 (remove_all_on_match_ptid): Change type. Rewrite.
5240 (discard_queued_stop_replies): Rewrite.
5241 (in_queued_stop_replies_ptid): Change type.
5242 (in_queued_stop_replies): Rewrite.
5243 (notif_stop): Update.
5244 (queue_stop_reply_callback): Update.
5245 (captured_main): Don't call initialize_notif.
5246 (push_stop_notification): Update.
5247 * notif.c (notif_write_event, handle_notif_ack)
5248 (notif_event_enque, notif_push): Update.
5249 (notif_event_xfree, initialize_notif): Remove.
5250 * notif.h (struct notif_event): Include <list>, not
5251 "common/queue.h".
5252 (struct notif_server) <queue>: Now a std::list.
5253 (notif_event_p): Remove typedef.
5254 (initialize_notif): Don't declare.
5255 (struct notif_event): Add virtual destructor.
5256
a7e559cc
AH
52572019-04-17 Alan Hayward <alan.hayward@arm.com>
5258
5259 * ax.c (ax_vdebug): Call debug_printf.
5260 * debug.c (debug_write): New function.
5261 * debug.h (debug_write): New declaration.
5262 * linux-low.c (sigchld_handler): Call debug_write.
5263
aeb2e706
AH
52642019-04-17 Alan Hayward <alan.hayward@arm.com>
5265
5266 * debug.c (debug_set_output): New function.
5267 (debug_vprintf): Send output to debug_file.
5268 (debug_flush): Likewise.
5269 * debug.h (debug_set_output): New declaration.
5270 * server.c (handle_monitor_command): Add debug-file option.
5271 (captured_main): Likewise.
5272
c1bc0935
AH
52732019-04-17 Alan Hayward <alan.hayward@arm.com>
5274
5275 * debug.c (remote_debug): Add definition.
5276 * debug.h (remote_debug): Add declaration.
5277 * hostio.c (remote_debug): Remove declaration.
5278 * remote-utils.c (struct ui_file): Likewise.
5279 (remote_debug): Likewise.
5280 * remote-utils.h (remote_debug): Likewise,
5281 * server.c (remote_debug): Remove definition.
5282
3f52fdbc
KB
52832019-04-10 Kevin Buettner <kevinb@redhat.com>
5284
5285 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5286 when using a 64-bit gdbserver.
5287
b0319eaa
TT
52882019-04-09 Tom Tromey <tromey@adacore.com>
5289
5290 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5291
eedc3f4f
TT
52922019-04-08 Tom Tromey <tom@tromey.com>
5293
5294 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5295 throw.
5296 (linux_resume_one_lwp): Likewise.
5297
230d2906
TT
52982019-04-08 Tom Tromey <tom@tromey.com>
5299
5300 * gdbreplay.c: Update.
5301 * linux-low.c: Update.
5302 * server.c: Update.
5303
a70b8144
TT
53042019-04-08 Tom Tromey <tom@tromey.com>
5305
5306 * server.c: Use C++ exception handling.
5307 * linux-low.c: Use C++ exception handling.
5308 * gdbreplay.c: Use C++ exception handling.
5309
3d6e9d23
TT
53102019-04-08 Tom Tromey <tom@tromey.com>
5311
5312 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5313 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5314 (captured_main, main): Update.
5315 * gdbreplay.c (main): Update.
5316
0570503d
PFC
53172019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5318
5319 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5320 value in argument pointer, return 1 if the entry is found and 0
5321 otherwise. Move comment.
5322 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5323 * linux-low.h (linux_get_auxv): Declare.
5324 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5325
227a9e65
TT
53262019-04-05 Tom Tromey <tromey@adacore.com>
5327
5328 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5329 variables.
5330
69f4c9cc
AH
53312019-03-28 Alan Hayward <alan.hayward@arm.com>
5332
5333 * linux-low.c (AT_HWCAP2): Add define if not already included.
5334
974c89e0
AH
53352019-03-26 Alan Hayward <alan.hayward@arm.com>
5336
5337 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5338 (aarch64_arch_setup): Call linux_get_hwcap.
5339 * linux-arm-low.c (arm_get_hwcap): Remove function.
5340 (arm_read_description): Call linux_get_hwcap.
5341 * linux-low.c (linux_get_auxv): New function.
5342 (linux_get_hwcap): Likewise.
5343 (linux_get_hwcap2): Likewise.
5344 * linux-low.h (linux_get_hwcap): New declaration.
5345 (linux_get_hwcap2): Likewise.
5346 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5347 (ppc_arch_setup): Call linux_get_hwcap.
5348 * linux-s390-low.c (s390_get_hwcap): Remove function.
5349 (s390_arch_setup): Call linux_get_hwcap.
5350
1ef53e6b
AH
53512019-03-22 Alan Hayward <alan.hayward@arm.com>
5352 Jiong Wang <jiong.wang@arm.com>
5353
5354 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5355 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5356 to fail.
5357 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5358
ee4fbcfa
AH
53592019-03-22 Alan Hayward <alan.hayward@arm.com>
5360 Jiong Wang <jiong.wang@arm.com>
5361
5362 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5363 (aarch64_get_hwcap): New function.
5364 (aarch64_arch_setup): Read APIA hwcap.
5365
6dc0ebde
AH
53662019-03-22 Alan Hayward <alan.hayward@arm.com>
5367 Jiong Wang <jiong.wang@arm.com>
5368
5369 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5370 (initialize_low_tracepoint): Likewise.
5371 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5372 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5373 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5374 (aarch64_linux_read_description): Likewise.
5375 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5376
1163a4b7
JB
53772019-03-12 John Baldwin <jhb@FreeBSD.org>
5378
5379 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5380 i386_create_target_description for 'segments' parameter.
5381 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5382 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5383 * win32-i386-low.c (i386_arch_setup): Likewise.
5384
d3a70e03
TT
53852019-03-12 Tom Tromey <tromey@adacore.com>
5386
5387 * linux-low.c (iterate_over_lwps): Update.
5388
37991b4f
TT
53892019-03-06 Tom Tromey <tom@tromey.com>
5390
5391 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5392 (captured_main): Use SCOPE_EXIT.
5393
45950eb6
SDJ
53942019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5395
5396 * configure.srv: Use '$enable_unittest' instead of '$development'
5397 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5398 case.
5399
43ac54fc
TT
54002019-02-27 Tom Tromey <tromey@adacore.com>
5401
5402 * gdbreplay.c (logchar): Handle \r\n.
5403
df0da8a2
AH
54042019-02-07 Alan Hayward <alan.hayward@arm.com>
5405
5406 * linux-low.c (linux_attach): Add process before lwp.
5407 * server.c (attach_inferior): Check if already attached.
5408
1a5c2598
TT
54092019-02-07 Tom Tromey <tom@tromey.com>
5410
5411 * x86-tdesc.h: Rename include guard.
5412 * x86-low.h: Add include guard.
5413 * wincecompat.h: Rename include guard.
5414 * win32-low.h: Add include guard.
5415 * utils.h: Rename include guard.
5416 * tracepoint.h: Rename include guard.
5417 * tdesc.h: Rename include guard.
5418 * target.h: Rename include guard.
5419 * server.h: Rename include guard.
5420 * remote-utils.h: Rename include guard.
5421 * regcache.h: Rename include guard.
5422 * nto-low.h: Rename include guard.
5423 * notif.h: Add include guard.
5424 * mem-break.h: Rename include guard.
5425 * lynx-low.h: Add include guard.
5426 * linux-x86-tdesc.h: Add include guard.
5427 * linux-s390-tdesc.h: Add include guard.
5428 * linux-ppc-tdesc-init.h: Add include guard.
5429 * linux-low.h: Add include guard.
5430 * linux-aarch64-tdesc.h: Add include guard.
5431 * linux-aarch32-low.h: Add include guard.
5432 * inferiors.h: Rename include guard.
5433 * i387-fp.h: Rename include guard.
5434 * hostio.h: Rename include guard.
5435 * gdbthread.h: Rename include guard.
5436 * gdb_proc_service.h: Rename include guard.
5437 * event-loop.h: Rename include guard.
5438 * dll.h: Rename include guard.
5439 * debug.h: Rename include guard.
5440 * ax.h: Rename include guard.
5441
956cc47c
SN
54422018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5443
5444 PR gdb/23985
5445 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5446 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5447
a0707f3c
TT
54482019-01-25 Tom Tromey <tom@tromey.com>
5449
5450 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5451
0747795c
TT
54522019-01-25 Tom Tromey <tom@tromey.com>
5453
5454 * win32-low.c: Fix common/ includes.
5455 * win32-i386-low.c: Fix common/ includes.
5456 * tracepoint.c: Fix common/ includes.
5457 * thread-db.c: Fix common/ includes.
5458 * target.h: Fix common/ includes.
5459 * symbol.c: Fix common/ includes.
5460 * spu-low.c: Fix common/ includes.
5461 * server.h: Fix common/ includes.
5462 * server.c: Fix common/ includes.
5463 * remote-utils.c: Fix common/ includes.
5464 * regcache.h: Fix common/ includes.
5465 * regcache.c: Fix common/ includes.
5466 * nto-x86-low.c: Fix common/ includes.
5467 * notif.h: Fix common/ includes.
5468 * mem-break.h: Fix common/ includes.
5469 * lynx-low.c: Fix common/ includes.
5470 * lynx-i386-low.c: Fix common/ includes.
5471 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5472 * linux-x86-low.c: Fix common/ includes.
5473 * linux-low.c: Fix common/ includes.
5474 * inferiors.h: Fix common/ includes.
5475 * i387-fp.c: Fix common/ includes.
5476 * hostio.c: Fix common/ includes.
5477 * hostio-errno.c: Fix common/ includes.
5478 * gdbthread.h: Fix common/ includes.
5479 * gdbreplay.c: Fix common/ includes.
5480 * fork-child.c: Fix common/ includes.
5481 * event-loop.c: Fix common/ includes.
5482 * ax.c:
5483 (enum gdb_agent_op): Fix common/ includes.
5484
be6d4f74
TT
54852019-01-21 Tom Tromey <tom@tromey.com>
5486
5487 * tracepoint.c: Fix includes.
5488 * remote-utils.c: Fix includes.
5489 * linux-x86-low.c: Fix includes.
5490
66d91b39
JB
54912019-01-01 Joel Brobecker <brobecker@adacore.com>
5492
5493 * gdbreplay.c (gdbreplay_version): Update copyright year in
5494 version message.
5495 * server.c (gdbserver_version): Likewise.
5496
754e3168
AH
54972018-12-05 Alan Hayward <alan.hayward@arm.com>
5498
5499 * linux-low.c (add_lwp): Switch ordering.
5500
d105de22
TT
55012018-11-29 Tom Tromey <tom@tromey.com>
5502
5503 * win32-low.c (win32_join): Take pid, not process.
5504 * target.h (struct target_ops) <join>: Change argument type.
5505 (join_inferior): Change argument name.
5506 * spu-low.c (spu_join): Take pid, not process.
5507 * server.c (handle_detach): Preserve pid before destroying
5508 process.
5509 * lynx-low.c (lynx_join): Take pid, not process.
5510 * linux-low.c (linux_join): Take pid, not process.
5511
50138245
AH
55122018-11-23 Alan Hayward <alan.hayward@arm.com>
5513
5514 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5515 (aarch64_cannot_fetch_register): Likewise.
5516 (struct linux_target_ops): Update references.
5517
64f57f3d
PFC
55182018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5519
5520 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5521
8d619c01
EBM
55222018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5523
5524 * configure.srv (ipa_ppc_linux_regobj): Add
5525 powerpc-isa207-htm-vsx32l-ipa.o and
5526 powerpc-isa207-htm-vsx64l-ipa.o.
5527 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5528 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5529 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5530 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5531 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5532 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5533 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5534 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5535 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5536 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5537 (init_registers_powerpc_isa207_htm_vsx32l)
5538 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5539 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5540 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5541 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5542 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5543 (ppc_store_tm_ctarregset): New functions.
5544 (ppc_regsets): Add entries for HTM regsets.
5545 (ppc_arch_setup): Set htm in features struct when needed. Set
5546 sizes for the HTM regsets.
5547 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5548 (initialize_low_arch): Call
5549 init_registers_powerpc_isa207_htm_vsx32l and
5550 init_registers_powerpc_isa207_htm_vsx64l.
5551 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5552 PPC_TDESC_ISA207_HTM_VSX.
5553 (initialize_low_tracepoint): Call
5554 init_registers_powerpc_isa207_htm_vsx32l and
5555 init_registers_powerpc_isa207_htm_vsx64l.
5556
232bfb86
EBM
55572018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5558
5559 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5560 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5561 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5562 (ppc_store_pmuregset): New functions.
5563 (ppc_regsets): Add entries for ebb and pmu regsets.
5564 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5565 pmu regsets are available. Set sizes for these regsets.
5566
f2cf6173
EBM
55672018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5568
5569 * configure.srv (ipa_ppc_linux_regobj): Add
5570 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5571 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5572 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5573 rs6000/powerpc-isa207-vsx32l.xml, and
5574 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5575 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5576 <PPC_TDESC_ISA207_VSX>: New enum value.
5577 (init_registers_powerpc_isa207_vsx32l): Declare.
5578 (init_registers_powerpc_isa207_vsx64l): Declare.
5579 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5580 (ppc_store_tarregset): New function.
5581 (ppc_regsets): Add entry for the TAR regset.
5582 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5583 size for the TAR regsets.
5584 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5585 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5586 and init_registers_powerpc_isa207_vsx64l.
5587 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5588 (initialize_low_tracepoint): Call
5589 init_registers_powerpc_isa207_vsx32l and
5590 init_registers_powerpc_isa207_vsx64l.
5591
7ca18ed6
EBM
55922018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5593 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5594
5595 * configure.srv (ipa_ppc_linux_regobj): Add
5596 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5597 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5598 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5599 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5600 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5601 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5602 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5603 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5604 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5605 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5606 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5607 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5608 (ppc_hwcap): Add comment.
5609 (ppc_hwcap2): New global.
5610 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5611 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5612 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5613 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5614 when needed. Set sizes for the the DSCR and PPR regsets.
5615 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5616 (initialize_low_arch): Call
5617 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5618 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5619 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5620 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5621 (initialize_low_tracepoint): Call
5622 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5623 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5624
5c849b22
PFC
56252018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5626
5627 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5628
8ecfd7bd
SDJ
56292018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5630 Simon Marchi <simark@simark.ca>
5631
5632 * acinclude.m4: Include "../selftest.m4".
5633 * configure: Regenerate.
5634 * configure.ac: Use "GDB_AC_SELFTEST".
5635 * configure.srv: Use "$enable_unittests" instead of
5636 "$development" when checking whether unit tests have been
5637 enabled.
5638 * server.c (captured_main): Update message informing that
5639 selftests have been disabled.
5640
96643e35
TT
56412018-10-04 Tom Tromey <tom@tromey.com>
5642
5643 * configure: Rebuild.
5644
da4ae14a
TT
56452018-10-04 Tom Tromey <tom@tromey.com>
5646
5647 * server.c (handle_status): Rename inner "thread".
5648 (process_serial_event): Declare "res" in 'm' case.
5649 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5650 (iterate_over_lwps): Rename inner "thread".
5651 (linux_qxfer_libraries_svr4): Rename inner "len".
5652 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5653
7c619dbd
GB
56542018-10-01 Gary Benson <gbenson@redhat.com>
5655
5656 * gdb_proc_service.h: Moved common code to
5657 common/gdb_proc_service.h.
5658
3795e814
GB
56592018-10-01 Gary Benson <gbenson@redhat.com>
5660
5661 * gdb_proc_service.h: Synchronize comments and whitespace with
5662 GDB's version of this file.
5663
49b036f1
TT
56642018-09-25 Tom Tromey <tom@tromey.com>
5665
5666 * configure: Rebuild.
5667 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5668
8ff03f0b
SM
56692018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5670
5671 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5672 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5673 ($(IPA_LIB)): Sort IPA_OBJS.
5674
a1cd91dc
SM
56752018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5676
5677 * Makefile.in: Remove references to $(ADD_DEPS).
5678
752312ba
TT
56792018-09-16 Tom Tromey <tom@tromey.com>
5680
5681 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5682 variables.
5683 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5684 variables.
5685
f1628857
TT
56862018-09-05 Tom Tromey <tom@tromey.com>
5687
5688 * configure: Rebuild.
5689
ad202fcc
SM
56902018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5691
5692 PR build/23399
5693 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5694
d3d8724a
TT
56952018-08-27 Tom Tromey <tom@tromey.com>
5696
5697 PR build/23087:
5698 * configure: Rebuild.
5699
b4f183d2
TT
57002018-08-27 Tom Tromey <tom@tromey.com>
5701
5702 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5703 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5704 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5705 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5706 (s390x_emit_stack_adjust): Add casts to unsigned char.
5707
4e2aa472
SM
57082018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5709
5710 PR gdb/23374
5711 PR gdb/23375
5712 * server.h (struct client_state) <disable_randomization>:
5713 Initialize to 1.
5714
cf4088a9
SM
57152018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5716
5717 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5718 variable.
5719 (mips_supply_ptrace_register): Likewise.
5720
a0de763e
TT
57212018-07-22 Tom Tromey <tom@tromey.com>
5722
5723 * configure: Rebuild.
5724
b0a7723d
TT
57252018-07-22 Tom Tromey <tom@tromey.com>
5726
5727 * win32-low.c (win32_create_inferior): Remove unused variables.
5728 * gdbreplay.c (remote_open): Remove unused variable.
5729 * remote-utils.c (remote_prepare): Remove unused variable.
5730 * x86-tdesc.h (X86_TDESC_H): Define.
5731 (amd64_expedite_regs): Define conditionally.
5732 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5733 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5734 * remote-utils.c (readchar): Remove unused variable.
5735
a780ef4f
PA
57362018-07-13 Pedro Alves <palves@redhat.com>
5737
5738 * linux-low.c (linux_kill): Change parameter to process_info
5739 pointer instead of pid. Adjust.
5740 * lynx-low.c (lynx_kill): Likewise.
5741 * nto-low.c (nto_kill): Likewise.
5742 * spu-low.c (spu_kill): Likewise.
5743 * win32-low.c (win32_kill): Likewise.
5744 * server.c (handle_v_kill, kill_inferior_callback)
5745 (detach_or_kill_for_exit): Adjust.
5746 * target.c (kill_inferior): Change parameter to process_info
5747 pointer instead of pid. Adjust.
5748 * target.h (struct target_ops) <kill>: Change parameter to
5749 process_info pointer instead of pid. Adjust all implementations
5750 and callers.
5751 (kill_inferior): Likewise.
5752
ef2ddb33
PA
57532018-07-13 Pedro Alves <palves@redhat.com>
5754
5755 * linux-low.c (linux_detach, linux_join): Change parameter to
5756 process_info pointer instead of pid. Adjust.
5757 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5758 * nto-low.c (nto_detach): Likewise.
5759 * spu-low.c (spu_detach, spu_join): Likewise.
5760 * win32-low.c (win32_detach, win32_join): Likewise.
5761 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5762 * target.h (struct target_ops) <detach, join>: Change parameter to
5763 process_info pointer instead of pid. Adjust all implementations
5764 and callers.
5765 (detach_inferior, join_inferior): Rename 'pid' parameter to
5766 'proc'.
5767
c7ab0aef
SDJ
57682018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5769 Jan Kratochvil <jan.kratochvil@redhat.com>
5770 Paul Fertser <fercerpav@gmail.com>
5771 Tsutomu Seki <sekiriki@gmail.com>
5772
5773 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5774 (OBS): Add 'common/netstuff.o'.
5775 (GDBREPLAY_OBS): Likewise.
5776 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5777 (remote_open): Implement support for IPv6
5778 connections.
5779 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5780 and 'wspiapi.h'.
5781 (handle_accept_event): Accept connections from IPv6 sources.
5782 (remote_prepare): Handle IPv6-style hostnames; implement
5783 support for IPv6 connections.
5784 (remote_open): Implement support for printing connections from
5785 IPv6 sources.
5786
31445d10
PA
57872018-07-11 Pedro Alves <palves@redhat.com>
5788
5789 PR gdb/23377
5790 * mem-break.c (any_persistent_commands): Add process_info
5791 parameter and use it instead of relying on the current process.
5792 Change return type to bool.
5793 * mem-break.h (any_persistent_commands): Add process_info
5794 parameter and change return type to bool.
5795 * server.c (handle_detach): Remove require_running_or_return call.
5796 Look up the process_info for the process we're about to detach.
5797 If not found, return back error to GDB. Adjust
5798 any_persistent_commands call to pass down a process pointer.
5799
cb197132
PA
58002018-07-11 Pedro Alves <palves@redhat.com>
5801
5802 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5803 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5804 instead of collect_register_by_name.
5805 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5806 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5807
1b919490
VB
58082018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5809 Pedro Alves <palves@redhat.com>
5810
5811 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5812
d7e15655
TT
58132018-07-03 Tom Tromey <tom@tromey.com>
5814
5815 * linux-low.c: Update.
5816 * lynx-low.c: Update.
5817 * mem-break.c: Update.
5818 * nto-low.c: Update.
5819 * remote-utils.c: Update.
5820 * server.c: Update.
5821 * spu-low.c: Update.
5822 * target.c: Update.
5823 * win32-low.c: Update.
5824
26a57c92
TT
58252018-07-03 Tom Tromey <tom@tromey.com>
5826
5827 * server.c: Update.
5828
0e998d96
TT
58292018-07-03 Tom Tromey <tom@tromey.com>
5830
5831 * linux-low.c: Update.
5832
cc6bcb54
TT
58332018-07-03 Tom Tromey <tom@tromey.com>
5834
5835 * target.c: Update.
5836
e38504b3
TT
58372018-07-03 Tom Tromey <tom@tromey.com>
5838
5839 * linux-low.c: Update.
5840 * linux-mips-low.c: Update.
5841 * lynx-low.c: Update.
5842 * nto-low.c: Update.
5843 * remote-utils.c: Update.
5844 * server.c: Update.
5845 * spu-low.c: Update.
5846 * target.c: Update.
5847 * thread-db.c: Update.
5848
e99b03dc
TT
58492018-07-03 Tom Tromey <tom@tromey.com>
5850
5851 * linux-low.c: Update.
5852 * linux-mips-low.c: Update.
5853 * lynx-low.c: Update.
5854 * mem-break.c: Update.
5855 * nto-low.c: Update.
5856 * remote-utils.c: Update.
5857 * server.c: Update.
5858 * spu-low.c: Update.
5859 * target.c: Update.
5860 * tracepoint.c: Update.
5861
f2907e49
TT
58622018-07-03 Tom Tromey <tom@tromey.com>
5863
5864 * linux-low.c: Update.
5865 * linux-ppc-low.c: Update.
5866 * linux-x86-low.c: Update.
5867 * proc-service.c: Update.
5868 * server.c: Update.
5869 * spu-low.c: Update.
5870 * thread-db.c: Update.
5871 * win32-low.c: Update.
5872
fd79271b
TT
58732018-07-03 Tom Tromey <tom@tromey.com>
5874
5875 * linux-low.c: Update.
5876 * lynx-low.c: Update.
5877 * nto-low.c: Update.
5878 * remote-utils.c: Update.
5879 * spu-low.c: Update.
5880 * thread-db.c: Update.
5881 * win32-low.c: Update.
5882
c0867626
SDJ
58832018-06-29 Joel Brobecker <brobecker@adacore.com>
5884
5885 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5886 parameter in call to 'amd64_create_target_description'.
5887
2512d7ef
JK
58882018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5889
5890 * x86-tdesc.h: Remove executable permission flag.
5891
d0ac1c44
SM
58922018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5893
5894 * configure.ac: Remove AC_PREREQ, add missing quoting.
5895 * configure: Re-generate.
5896 * config.in: Re-generate.
5897 * aclocal.m4: Re-generate.
5898
c4eb05ff
SM
58992018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5900
5901 * tracepoint.h (current_traceframe): Remove declaration.
5902
02895270
AH
59032018-06-18 Alan Hayward <alan.hayward@arm.com>
5904
5905 * linux-aarch64-low.c (is_sve_tdesc): New function.
5906 (aarch64_sve_regs_copy_to_regcache): Likewise.
5907 (aarch64_sve_regs_copy_from_regcache): Likewise.
5908 (aarch64_regs_info): Add SVE checks.
5909 (initialize_low_arch): Initialize SVE.
5910
e9902bfc
AH
59112018-06-18 Alan Hayward <alan.hayward@arm.com>
5912
5913 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5914
fefa175e
AH
59152018-06-11 Alan Hayward <alan.hayward@arm.com>
5916
5917 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5918 (initialize_low_tracepoint): Likewise
5919 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5920 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5921 param.
5922 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5923 checks.
5924 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5925
b91ad3ff
AH
59262018-06-11 Alan Hayward <alan.hayward@arm.com>
5927
5928 * server.h (PBUFSIZ): Increase size
5929
f868386e
AH
59302018-06-11 Alan Hayward <alan.hayward@arm.com>
5931
5932 * regcache.c (regcache::raw_compare): New function.
5933 * regcache.h (regcache::raw_compare): New declaration.
5934
9c861883
AH
59352018-06-11 Alan Hayward <alan.hayward@arm.com>
5936
5937 * regcache.c (new_register_cache): Use new.
5938 (free_register_cache): Use delete.
5939 (register_data): Use const.
5940 (supply_register): Move body inside regcache.
5941 (regcache::raw_supply): New override function.
5942 (collect_register): Move body inside regcache.
5943 (regcache::raw_collect): New override function.
5944 (regcache::get_register_status): New override function.
5945 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5946
40591844
TT
59472018-06-09 Tom Tromey <tom@tromey.com>
5948
5949 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5950 declare queue.
5951 (event_queue): Use std::queue.
5952 (gdb_event_xfree): Remove.
5953 (initialize_event_loop, process_event, wait_for_event): Update.
5954
6341380d
SC
59552018-06-08 Stan Cox <scox@redhat.com>
5956
5957 * win32-low.c (win32_create_inferior): last_ptid and last_status
5958 moved to client_state.
5959
03349c93
PA
59602018-06-08 Pedro Alves <palves@redhat.com>
5961
5962 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5963 common/common-exceptions.o, common/common-utils.o,
5964 common/errors.o, common/print-utils.o and utils.o.
5965 * gdbreplay.c: Include "common-defs.h" instead of the two
5966 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5967 string.h or alloca.h.
5968 (perror_with_name): Delete.
5969 (remote_open): Use xstrdup instead of strdup.
5970 (main): Rename to ...
5971 (captured_main): ... this.
5972 (main): New.
5973
8dcc53b3
TT
59742018-06-08 Tom Tromey <tom@tromey.com>
5975
5976 * linux-low.c (linux_low_read_btrace): Update.
5977
c12a5089
SC
59782018-06-04 Stan Cox <scox@redhat.com>
5979
5980 * server.h (struct client_state): New.
5981 * server.c (cont_thread, general_thread, multi_process)
5982 (report_fork_events, report_vfork_events, report_exec_events)
5983 (report_thread_events, swbreak_feature, hwbreak_feature)
5984 (vCont_supported, disable_randomization, pass_signals)
5985 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5986 Moved to client_state.
5987 * remote-utils.c (remote_debug, noack_mode)
5988 (transport_is_reliable): Moved to client_state.
5989 * tracepoint.c (current_traceframe): Moved to client_state.
5990
5991 Update all callers.
5992 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5993 linux-low.c, remote-utils.h, target.c: Use client_state.
5994
122394f1
AH
59952018-05-31 Alan Hayward <alan.hayward@arm.com>
5996
5997 * configure.srv: Add new c/h file.
5998
95228a0d
AH
59992018-05-31 Alan Hayward <alan.hayward@arm.com>
6000
6001 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6002 null VQ.
6003
d8dab6c3
MR
60042018-05-25 Maciej W. Rozycki <macro@mips.com>
6005
6006 * gdb.arch/mips-fpregset-core.exp: New test.
6007 * gdb.arch/mips-fpregset-core.c: New test source.
6008
81e25b7c
EK
60092018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6010
6011 PR server/23198
6012 * hostio.c (require_int): Do not report overflow for integers
6013 between 0xfffffff and 0x7fffffff.
6014
7e947ad3
MR
60152018-05-22 Maciej W. Rozycki <macro@mips.com>
6016
6017 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6018 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6019 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6020 functions.
6021 (the_low_target): Wire them.
6022
1d75a658
PFC
60232018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6024
6025 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6026 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6027 mode. Call collect_register_by_name with vscr using
6028 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6029 (ppc_store_vrregset): Add and set vscr_offset variable as in
6030 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6031 vscr_offset.
6032
d078308a
PFC
60332018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6034
6035 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6036 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6037 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6038
7273b5fc
PFC
60392018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6040
6041 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6042 (ppc_store_vsxregset): Likewise.
6043 (ppc_fill_vrregset): Likewise.
6044 (ppc_store_vrregset): Likewise.
6045 (ppc_fill_evrregset): Likewise.
6046 (ppc_store_evrregset): Likewise.
6047 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6048 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6049 needed.
6050
2e077f5e
PFC
60512018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6052
6053 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6054 wordsize of the inferior. Call ppc_linux_target_wordsize.
6055
bd64614e
PFC
60562018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6057
6058 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6059 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6060 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6061 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6062 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6063 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6064 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6065 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6066 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6067 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6068 (tdesc_powerpc_e500l): Remove.
6069 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6070 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6071 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6072 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6073 linux-ppc-tdesc.h.
6074 (ppc_arch_setup): Remove target description matching code. Fill a
6075 ppc_linux_features struct and call ppc_linux_match_description
6076 with it.
6077
75d74cca
MR
60782018-05-22 Maciej W. Rozycki <macro@mips.com>
6079
6080 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6081 width of the requested register exceeds the width of the
6082 `ptrace' data type.
6083 (mips_cannot_store_register): Likewise.
6084
e4439e43
MR
60852018-05-21 Maciej W. Rozycki <macro@mips.com>
6086
6087 * linux-mips-low.c (mips_fetch_register): New function. Update
6088 preceding comment.
6089 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6090 (the_low_target): Wire `mips_fetch_register'.
6091
55271bf9
JB
60922018-05-10 Joel Brobecker <brobecker@adacore.com>
6093
6094 * lynx-i386-low.c (LYNXOS_178): New macro.
6095 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6096 the layout on LynxOS-178.
6097 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6098 handle floating point registers that are not supported by
6099 LynxOS-178.
6100
1a34f210
TT
61012018-05-10 Tom Tromey <tom@tromey.com>
6102
6103 * configure: Rebuild.
6104
190852c8
JB
61052018-05-10 Joel Brobecker <brobecker@adacore.com>
6106
6107 PR server/23158:
6108 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6109 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6110 Use it to set the expedite_regs field in the given tdesc.
6111 * x86-tdesc.h: New file.
6112 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6113 Adjust following the addition of the new expedite_regs parameter
6114 to init_target_desc.
6115 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6116 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6117 (i386_linux_read_description, amd64_linux_read_description):
6118 Adjust following the addition of the new expedite_regs parameter
6119 to init_target_desc.
6120 * lynx-i386-low.c: #include "x86-tdesc.h".
6121 (lynx_i386_arch_setup): Adjust following the addition of the new
6122 expedite_regs parameter to init_target_desc.
6123 * nto-x86-low.c: #include "x86-tdesc.h".
6124 (nto_x86_arch_setup): Adjust following the addition of the new
6125 expedite_regs parameter to init_target_desc.
6126 * win32-i386-low.c: #include "x86-tdesc.h".
6127 (i386_arch_setup): Adjust following the addition of the new
6128 expedite_regs parameter to init_target_desc.
6129
7dbac825
JB
61302018-05-10 Joel Brobecker <brobecker@adacore.com>
6131
6132 PR server/23158:
6133 * win32-low.c (win32_create_inferior): Add call to my_wait
6134 setting last_status global.
6135
906994d9
JB
61362018-05-10 Joel Brobecker <brobecker@adacore.com>
6137
6138 PR server/23158:
6139 * win32-low.c (create_process): Only call gdb_tilde_expand if
6140 inferior_cwd is not NULL.
6141
8ee22052
AB
61422018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6143
6144 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6145 registers to the cache if their values have changed.
6146 (i387_xsave_to_cache): Provide default values for x87 control
6147 registers when these features are available, but disabled.
6148 * regcache.c (supply_register_by_name_zeroed): New function.
6149 * regcache.h (supply_register_by_name_zeroed): Declare new
6150 function.
6151
aff689d3
TT
61522018-05-07 Tom Tromey <tom@tromey.com>
6153
6154 * configure: Rebuild.
6155
85e26832
TT
61562018-05-04 Tom Tromey <tom@tromey.com>
6157
6158 * configure: Rebuild.
6159
a3b60e45
JK
61602018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6161 Pedro Alves <palves@redhat.com>
6162
6163 * linux-aarch64-low.c (aarch64_stopped_data_address):
6164 Likewise.
6165
632e107b
TT
61662018-04-27 Tom Tromey <tom@tromey.com>
6167
6168 * configure: Rebuild.
6169
458412c3
TT
61702018-04-23 Tom Tromey <tom@tromey.com>
6171
6172 * configure: Rebuild.
6173
f31c089e
SM
61742018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6175
6176 * Makefile.in (depcomp): Add "..".
6177 (all_deps_files): New and use it.
6178
b319b098
AH
61792018-04-18 Alan Hayward <alan.hayward@arm.com>
6180
6181 * configure.srv (aarch64*-*-linux*): Don't include xml.
6182 (i[34567]86-*-cygwin*): Likewise.
6183 (i[34567]86-*-linux*): Likewise.
6184 (i[34567]86-*-lynxos*): Likewise.
6185 (i[34567]86-*-mingw32ce*): Likewise.
6186 (i[34567]86-*-mingw*): Likewise.
6187 (i[34567]86-*-nto*): Likewise.
6188 (tic6x-*-uclinux): Likewise.
6189 (x86_64-*-linux*): Likewise.
6190 (x86_64-*-mingw*): Likewise.
6191 (x86_64-*-cygwin*): Likewise.
6192
3b74854b
AH
61932018-04-18 Alan Hayward <alan.hayward@arm.com>
6194
6195 * tdesc.c: Remove xml parameter.
6196
e98577a9
AH
61972018-04-18 Alan Hayward <alan.hayward@arm.com>
6198
6199 * server.c (get_features_xml): Remove cast.
6200 * tdesc.c (void target_desc::accept): Fill in function.
6201 (tdesc_get_features_xml): Remove old xml creation.
6202 (print_xml_feature::visit_pre): Add xml vistor.
6203 * tdesc.h (struct target_desc): Make xmltarget mutable.
6204 (tdesc_get_features_xml): Remove declaration.
6205
d278f585
AH
62062018-04-18 Alan Hayward <alan.hayward@arm.com>
6207
6208 * tdesc.c (tdesc_architecture_name): Add new function.
6209 (tdesc_osabi_name): Likewise.
6210 (tdesc_get_features_xml): Use new functions.
6211
eee8a18d
AH
62122018-04-18 Alan Hayward <alan.hayward@arm.com>
6213
6214 * tdesc.c (tdesc_create_flags): Remove.
6215 (tdesc_add_flag): Likewise.
6216 (tdesc_named_type): Likewise.
6217 (tdesc_create_union): Likewise.
6218 (tdesc_create_struct): Likewise.
6219 (tdesc_create_vector): Likewise.
6220 (tdesc_add_bitfield): Likewise.
6221 (tdesc_add_field): Likewise.
6222 (tdesc_set_struct_size): Likewise.
6223
82ec9bc7
AH
62242018-04-18 Alan Hayward <alan.hayward@arm.com>
6225
6226 * tdesc.c (~target_desc): Remove implictly deleted items.
6227 (init_target_desc): Iterate all features.
6228 (tdesc_get_features_xml): Use vector.
6229 (tdesc_create_feature): Create feature.
6230 * tdesc.h (tdesc_feature) Remove
6231 (target_desc): Add features.
6232
ea3e7d71
AH
62332018-04-18 Alan Hayward <alan.hayward@arm.com>
6234
6235 * Makefile.in: Add common/tdesc.c
6236 * tdesc.c (init_target_desc): init all reg_defs from register
6237 vector.
6238 (tdesc_create_reg): Create tdesc_reg.
6239 * tdesc.h (tdesc_feature): Add register vector.
6240
17d08cd4
SM
62412018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6242
6243 * tdesc.h (struct target_desc) <features>: Change type to
6244 std::vector<std::string>.
6245 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6246 changes.
6247 (tdesc_get_features_xml): Likewise.
6248 (tdesc_create_feature): Likewise.
6249
5cd3e386
AH
62502018-03-26 Alan Hayward <alan.hayward@arm.com>
6251
6252 * regcache.c (find_register_by_number): Return a ref.
6253 (find_regno): Use references.
6254 (register_size): Likewise.
6255 (register_data): Likewise.
6256 * tdesc.c (target_desc::~target_desc): Remove free calls.
6257 (target_desc::operator==): Use std::vector compare.
6258 (init_target_desc): Use reference.
6259 (tdesc_create_reg): Use reg constructors.
6260 * tdesc.h (struct target_desc): Replace pointer with object.
6261
dff7492c
AH
62622018-03-23 Alan Hayward <alan.hayward@arm.com>
6263
6264 * regcache.c (find_register_by_number): Make static.
6265 (find_regno): Use find_register_by_number
6266 * regcache.h (struct reg): Remove declaration.
6267
d80e5242
AH
62682018-03-23 Alan Hayward <alan.hayward@arm.com>
6269
6270 * tdesc.c (target_desc::~target_desc): Move to here.
6271 (target_desc::operator==): Likewise.
6272 * tdesc.h (target_desc::~target_desc): Move from here.
6273 (target_desc::operator==): Likewise.
6274
f69c5afb
AA
62752018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6276
6277 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6278
ce29f843
AA
62792018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6280
6281 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6282 S390_TDESC_GS.
6283 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6284 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6285 and init_registers_s390_gs_linux64.
6286
c49bd90b
AA
62872018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6288
6289 * linux-s390-low.c (s390_fill_gs): Remove function.
6290 (s390_fill_gsbc): Remove function.
6291 (s390_regsets): Set fill functions for the guarded storage regsets
6292 to NULL.
6293
7edb9bd3
AA
62942018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6295
6296 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6297 the word size. Add comment.
6298 (s390_get_wordsize): New function.
6299 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6300 pswm with it. Instead, use s390_get_wordsize to determine the
6301 word size first and derive the correct tdesc from that directly.
6302
39be3c7e
SM
63032018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6304
6305 * Makefile.in: Include silent-rules.mk.
6306 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6307 (COMPILE): Add ECHO_CXX.
6308 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6309 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6310 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6311 (version-generated.c): Add ECHO_GEN.
6312 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6313 (IPAGENT_COMPILE): Add ECHO_CXX.
6314 (%-generated.c): Add ECHO_REGDAT.
6315
3ae9ce5d
TT
63162018-03-14 Tom Tromey <tom@tromey.com>
6317
6318 PR cli/14977:
6319 * ax.c (ax_printf): Special case for NULL.
6320
e6a58aa8
SM
63212018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6322
6323 * linux-low.c (linux_qxfer_libraries_svr4): Use
6324 xml_escape_text_append.
6325
f6e8a41e
SM
63262018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6327
6328 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6329
b9671caf
SM
63302018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6331
6332 * server.c (handle_general_set): Remove unnecessary xstrdup.
6333
e80aaf61
SM
63342018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6335
6336 * server.c (parse_debug_format_options): Adjust to
6337 delim_string_to_char_ptr_vec changes.
6338 * thread-db.c (thread_db_load_search): Adjust to
6339 dirnames_to_char_ptr_vec changes.
6340
b1223e78
MM
63412018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6342
6343 * target.h (target_enable_btrace, target_disable_btrace)
6344 (target_read_btrace, target_read_btrace_conf): Turn macro into
6345 inline function. Throw error if target method is not defined.
6346 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6347 check for btrace target method. Be prepared to handle exceptions
6348 from btrace target methods.
6349
81561546
SDJ
63502018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6351
6352 * server.c (captured_main): Change order of error message printed
6353 when the current working directory cannot be found.
6354
25e3c82c
SDJ
63552018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6356
6357 * server.c: Include "filenames.h" and "pathstuff.h".
6358 (program_name): Delete variable.
6359 (program_path): New anonymous class.
6360 (get_exec_wrapper): Use "program_path" instead of
6361 "program_name".
6362 (handle_v_run): Likewise.
6363 (captured_main): Likewise.
6364 (process_serial_event): Likewise.
6365
b4987c95
SDJ
63662018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6367
6368 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6369 (OBJS): Add "pathstuff.o".
6370 * server.c (current_directory): New global variable.
6371 (captured_main): Initialize "current_directory".
6372
f46cd62a
AH
63732018-02-26 Alan Hayward <alan.hayward@arm.com>
6374
6375 * tdesc.c: Use common/tdesc.h.
6376 * tdesc.h: Likewise.
6377
a543c5ca
AH
63782018-02-20 Alan Hayward <alan.hayward@arm.com>
6379 Simon Marchi <simon.marchi@ericsson.com>
6380
6381 * Makefile.in: Switch order of make rules.
6382
b5884fa7
AH
63832018-02-19 Alan Hayward <alan.hayward@arm.com>
6384
6385 * Makefile.in: Add common directory in build.
6386 * configure.ac: Add common reference.
6387 * configure: Regenerate.
6388
de6242d3
MM
63892018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6390
6391 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6392 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6393 * spu-low.c (spu_target_ops): Likewise.
6394 * win32-low.c (win32_target_ops): Likewise.
6395 * server.c (supported_btrace_packets): Report packets unconditionally.
6396 * target.h (target_ops) <supports_btrace>: Remove.
6397 (target_supports_btrace): Remove.
6398
9ee23a85
MM
63992018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6400
6401 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6402 (handle_btrace_disable): Change return type to void. Use exceptions
6403 to report errors.
6404 (handle_btrace_general_set): Catch exception and copy message to
6405 return message.
6406
8ce47547
TT
64072018-02-08 Tom Tromey <tom@tromey.com>
6408
6409 * linux-low.c (install_software_single_step_breakpoints): Use
6410 make_scoped_restore.
6411 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6412 (do_restore_current_thread_cleanup): Remove.
6413 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6414 declare.
6415
45dd3607
TT
64162018-02-08 Tom Tromey <tom@tromey.com>
6417
6418 * mem-break.c (set_raw_breakpoint_at): Use
6419 gdb::unique_xmalloc_ptr.
6420
e671cd59
PA
64212018-01-30 Pedro Alves <palves@redhat.com>
6422
6423 PR gdb/13211
6424 * target.c (target_terminal::terminal_state): Rename to ...
6425 (target_terminal::m_terminal_state): ... this.
6426
a0aad537
JC
64272018-01-19 James Clarke <jrtc27@jrtc27.com>
6428
6429 * linux-low.c (handle_extended_wait): Surround call to
6430 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6431
4d9b86e1
SM
64322018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6433
6434 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6435 linux_ptrace_attach_fail_reason_string now returning an
6436 std::string.
6437 (linux_attach): Likewise.
6438 * thread-db.c (attach_thread): Likewise.
6439
f517c180
EA
64402018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6441
6442 PR gdb/21559
6443 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6444 checking for fs_base/gs_base fields in struct user_regs_struct.
6445 * configure: Regenerate.
6446
9a70f35c
YQ
64472018-01-16 Yao Qi <yao.qi@linaro.org>
6448
6449 PR gdb/18749
6450 * linux-low.c (fetch_register): Call supply_register instead of
6451 error.
6452
605fd3c6
YQ
64532018-01-08 Yao Qi <yao.qi@linaro.org>
6454 Simon Marchi <simon.marchi@ericsson.com>
6455
6456 * Makefile.in (OBS): Remove selftest.o.
6457 * configure.ac: Set srv_selftest_objs if $development is true.
6458 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6459 * configure: Re-generated.
6460 * server.c (captured_main): Wrap variable selftest_filter with
6461 GDB_SELF_TEST.
6462
2cc05030
SM
64632018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6464
6465 * server.c (parse_debug_format_options): Return std::string.
6466 (handle_monitor_command, captured_main): Adjust.
6467
e379cee6
PA
64682018-01-05 Pedro Alves <palves@redhat.com>
6469
6470 PR gdb/18653
6471 * server.c (captured_main): Pass quiet=false to
6472 save_original_signals_state.
6473
82e1e79a
JB
64742018-01-01 Joel Brobecker <brobecker@adacore.com>
6475
6476 * gdbreplay.c (gdbreplay_version): Update copyright year in
6477 version message.
6478 * server.c (gdbserver_version): Likewise.
6479
8e481c3b
TT
64802017-12-08 Tom Tromey <tom@tromey.com>
6481
6482 * ax.c (ax_printf): Update.
6483
a8806230
YQ
64842017-12-07 Yao Qi <yao.qi@linaro.org>
6485
6486 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6487 aarch64_linux_read_description.
6488 * linux-amd64-ipa.c (idx2mask): New array.
6489 (get_ipa_tdesc): Move idx2mask out.
6490 (initialize_low_tracepoint): Initialize target descriptions.
6491 * linux-i386-ipa.c (idx2mask): New array.
6492 (get_ipa_tdesc): Move idx2mask out.
6493 (initialize_low_tracepoint): Initialize target descriptions.
6494
d4a0e8b5
SM
64952017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6496
6497 * tdesc.c (struct tdesc_type): Change return type.
6498 (tdesc_add_flag): Change parameter type.
6499 (tdesc_add_bitfield): Likewise.
6500 (tdesc_add_field): Likewise.
6501 (tdesc_set_struct_size): Likewise.
6502
798a7429
SM
65032017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6504
6505 * regcache.c (registers_to_string): Remove unused variable.
6506
c0e15c9b
SM
65072017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6508
6509 * inferiors.c (for_each_inferior_with_data): Remove.
6510 * inferiors.h (for_each_inferior_with_data): Remove.
6511 * server.c (handle_qxfer_threads_worker): Change parameter type.
6512 (handle_qxfer_threads_proper): Use for_each_thread.
6513
f0045347
SM
65142017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6515
6516 * inferiors.c (for_each_inferior): Remove.
6517 (clear_inferiors): Use for_each_thread.
6518 * inferiors.h (for_each_inferior): Remove.
6519 * linux-low.c (linux_wait_for_event_filtered): Use
6520 for_each_thread.
6521 (linux_stabilize_threads): Likewise.
6522 * regcache.c (regcache_release): Likewise.
6523 * server.c (gdb_wants_all_threads_stopped): Likewise.
6524 (clear_pending_status_callback): Remove.
6525 (handle_status): Use for_each_thread.
6526 (captured_main): Likewise.
6527 * win32-low.c (child_init_thread_list): Likewise.
6528 (win32_clear_inferiors): Likewise.
6529 (fake_breakpoint_event): Likewise.
6530
9521758b
SM
65312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * inferiors.h (find_inferior): Remove.
6534 * inferiors.c (find_inferior): Remove.
6535
8f86d7aa
SM
65362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6537
6538 * linux-low.c (resume_status_pending_p): Update comment.
6539 (need_step_over_p): Update comment.
6540
e2b44075
SM
65412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6542
6543 * linux-low.c (proceed_one_lwp): Return void, change parameter
6544 type.
6545 (unsuspend_and_proceed_one_lwp): Likewise.
6546 (proceed_all_lwps): Use for_each_thread.
6547 (unstop_all_lwps): Likewise.
6548
c80825ff
SM
65492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6550
6551 * linux-low.c (linux_resume_one_thread): Return void, take
6552 parameter directly.
6553 (linux_resume): Use for_each_thread.
6554
df3e4dbe
SM
65552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6556
6557 * linux-low.c (send_sigstop_callback): Return void, change
6558 parameter type. Rename to...
6559 (send_sigstop): ... this.
6560 (suspend_and_send_sigstop_callback): Return void, change parameter
6561 type. Rename to...
6562 (suspend_and_send_sigstop): ... this.
6563 (stop_all_lwps): Use for_each_thread.
6564
5a6b0a41
SM
65652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6566
6567 * linux-low.c (lwp_running): Return bool, remove unused
6568 argument.
6569 (linux_stabilize_threads): Use find_thread.
6570
39a64da5
SM
65712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6572
6573 * linux-low.c (select_singlestep_lwp_callback): Remove.
6574 (count_events_callback): Remove.
6575 (select_event_lwp_callback): Remove.
6576 (select_event_lwp): Use find_thread/for_each_thread.
6577
a1385b7b
SM
65782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6579
6580 * linux-low.c (not_stopped_callback): Return bool, take filter
6581 argument directly.
6582 (linux_wait_for_event_filtered): Use find_thread.
6583 (linux_wait_1): Likewise.
6584
454296a2
SM
65852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6586
6587 * linux-low.c (same_lwp): Remove.
6588 (find_lwp_pid): Use find_thread.
6589
6b2a85da
SM
65902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6591
6592 * linux-low.c (delete_lwp_callback): Remove.
6593 (linux_mourn): Use for_each_thread.
6594
798a38e8
SM
65952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6596
6597 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6598 args parameter, don't check for pid.
6599 (linux_detach): Use for_each_thread.
6600
e4eb0dec
SM
66012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6602
6603 * linux-low.c (struct counter): Remove.
6604 (second_thread_of_pid_p): Remove.
6605 (last_thread_of_process_p): Use find_thread.
6606
83e1b6c1
SM
66072017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6608
6609 * inferiors.c (find_inferior_in_random): Remove.
6610 * inferiors.h (find_inferior_in_random): Remove.
6611 * linux-low.c (status_pending_p_callback): Return bool, accept
6612 parameter ptid directly.
6613 (linux_wait_for_event_filtered): Use find_thread_in_random.
6614 (linux_wait_1): Likewise.
6615
8dc7b443
SM
66162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6617
6618 * inferiors.c (find_inferior_id): Remove.
6619 (find_thread_ptid): Move implemention from find_inferior_id to
6620 here.
6621 * inferiors.h (find_inferior_id): Remove.
6622 * server.c (handle_status): Use find_thread_ptid.
6623 (process_serial_event): Likewise.
6624 * thread-db.c (find_one_thread): Likewise.
6625 (thread_db_thread_handle): Likewise.
6626 * win32-low.c (thread_rec): Likewise.
6627 (child_delete_thread): Likewise.
6628 (win32_thread_alive): Likewise.
6629 (get_child_debug_event): Likewise.
6630
da25033c
SM
66312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6632
6633 * linux-mips-low.c (update_watch_registers_callback): Return
6634 void, remove pid_p parameter, don't check for pid.
6635 (mips_insert_point, mips_remove_point): Use for_each_thread.
6636
c91bb56b
SM
66372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6638
6639 * lynx.low (lynx_delete_thread_callback): Remove.
6640 (lynx_mourn): Use for_each_thread.
6641
634a3254
SM
66422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6643
6644 * regcache.c (regcache_invalidate_one): Remove.
6645 (regcache_invalidate_pid): use for_each_thread.
6646
41272101
TT
66472017-11-26 Tom Tromey <tom@tromey.com>
6648
6649 * linux-low.c (linux_create_inferior): Update.
6650
f5291a6f
UW
66512017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6652
6653 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6654
6654d750
AH
66552017-11-24 Alan Hayward <alan.hayward@arm.com>
6656
6657 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6658 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6659 * linux-aarch64-tdesc-selftest.c: New file.
6660 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6661
66622017-11-24 Alan Hayward <alan.hayward@arm.com>
6663
6664 * configure.srv: Add new file.
6665 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6666 * linux-aarch64-tdesc-selftest.c: New file.
6667 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6668
49bdb7ee
AH
66692017-11-24 Alan Hayward <alan.hayward@arm.com>
6670
6671 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6672 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6673 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6674
d6d7ce56
AH
66752017-11-24 Alan Hayward <alan.hayward@arm.com>
6676
6677 * configure.srv: Add new files.
6678 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6679 aarch64_linux_read_description.
6680 * linux-aarch64-low.c (aarch64_linux_read_description):
6681 Merge with aarch64_arch_setup.
6682 (aarch64_arch_setup): Call aarch64_linux_read_description.
6683 * linux-aarch64-tdesc.c: New file.
6684 * linux-aarch64-tdesc.h: New file.
6685
506fe5f4
YQ
66862017-11-24 Yao Qi <yao.qi@linaro.org>
6687
6688 * configure.srv: Set $srv_regobj for tic6x-linux.
6689 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6690 (tic6x_read_description): Move some code to tic6x_arch_setup.
6691 (tic6x_tdesc_test): New function.
6692 (initialize_low_arch): Call selftests::register_test.
6693
29f9a567
YQ
66942017-11-22 Yao Qi <yao.qi@linaro.org>
6695
6696 * remote-utils.c (prepare_resume_reply): Use memcpy.
6697
578290ec
SM
66982017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6699
6700 * linux-low.c (kill_one_lwp_callback): Return void, take
6701 argument directly, don't filter on pid.
6702 (linux_kill): Use for_each_thread.
6703
eca55aec
SM
67042017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6705
6706 * linux-low.c (need_step_over_p): Return bool, remove dummy
6707 argument.
6708 (linux_resume, proceed_all_lwps): Use find_thread.
6709
25c28b4d
SM
67102017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6711
6712 * linux-low.c (resume_status_pending_p): Return bool, remove
6713 flag_p argument.
6714 (linux_resume): Use find_thread.
6715
5fdda392
SM
67162017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6717
6718 * linux-low.c (struct thread_resume_array): Remove.
6719 (linux_set_resume_request): Return void, take arguments
6720 directly.
6721 (linux_resume): Use for_each_thread.
6722
fcb056a5
SM
67232017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6724
6725 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6726 return bool, remove data argument.
6727 (linux_stabilize_threads): Use find_thread.
6728
139720c5
SM
67292017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6730
6731 * linux-low.c (unsuspend_one_lwp): Remove.
6732 (unsuspend_all_lwps): Use for_each_thread, inline code from
6733 unsuspend_one_lwp.
6734
6d1e5673
SM
67352017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6736
6737 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6738 * linux-low.c (struct iterate_over_lwps_args): Remove.
6739 (iterate_over_lwps_filter): Remove.
6740 (iterate_over_lwps): Use find_thread.
6741
bbf550d5
SM
67422017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6743
6744 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6745 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6746 code from reset_lwp_ptrace_options_callback.
6747
00192f77
SM
67482017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6749
6750 * linux-arm-low.c (struct update_registers_data): Remove.
6751 (update_registers_callback): Return void, take arguments
6752 directly, don't check thread's pid.
6753 (arm_insert_point, arm_remove_point): Use for_each_thread.
6754
2bee2b6c
SM
67552017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6756
6757 * win32-low.c (continue_one_thread): Return void, take argument
6758 directly.
6759 (child_continue): Use for_each_thread.
6760
0b360f19
SM
67612017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6762
6763 * win32-i386-low.c (update_debug_registers_callback): Rename
6764 to ...
6765 (update_debug_registers): ... this, return void, remove pid_p arg.
6766 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6767
f27866ba
SM
67682017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6769
6770 * inferiors.h (struct process_info): Add constructor, initialize
6771 fields..
6772 <syscalls_to_catch>: Change type to std::vector<int>.
6773 * inferiors.c (add_process): Allocate process_info with new.
6774 (remove_process): Free process_info with delete.
6775 * linux-low.c (handle_extended_wait): Adjust.
6776 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6777 * server.c (handle_general_set): Adjust.
6778
e849ea89
PA
67792017-11-16 Pedro Alves <palves@redhat.com>
6780
6781 * remote-utils.c (remote_close): Block SIGIO signals instead of
6782 uninstalling the SIGIO handler.
6783
1d0aa65c
AH
67842017-11-16 Alan Hayward <alan.hayward@arm.com>
6785
6786 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6787
3491a34c
YQ
67882017-11-16 Yao Qi <yao.qi@linaro.org>
6789
6790 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6791 (tic6x_store_gregset): Likewise.
6792 (tic6x_usrregs_info): Move it up.
6793
a602f924
AH
67942017-11-15 Alan Hayward <alan.hayward@arm.com>
6795
6796 * Makefile.in: Update arch rules.
6797 * configure.srv: Explicitly mark arch/ files.
6798
5616b6c3
AS
67992017-11-13 Andreas Schwab <schwab@suse.de>
6800
6801 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6802 function.
6803 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6804
d1928160
PA
68052017-11-06 Pedro Alves <palves@redhat.com>
6806
6807 * config.in, configure: Regenerate.
6808
bac608e7
SM
68092017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6810
6811 * target.c (struct thread_search): Remove.
6812 (thread_search_callback): Remove.
6813 (prepare_to_access_memory): Use for_each_thread instead of
6814 find_inferior. Inline code from thread_search_callback.
6815
eaddb425
SM
68162017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6817
6818 * server.c (struct visit_actioned_threads_data): Remove.
6819 (visit_actioned_threads): Change prototype to take arguments
6820 directly.
6821 (resume): Use find_thread instead of find_inferior.
6822
99078d34
SM
68232017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6824
6825 * server.c (queue_stop_reply_callback): Change prototype, return
6826 void.
6827 (find_status_pending_thread_callback): Remove.
6828 (handle_status): Replace find_inferior with find_thread and
6829 for_each_thread.
6830
cc628f3d
AH
68312017-10-25 Alan Hayward <alan.hayward@arm.com>
6832
6833 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6834 with REGNO.
6835 (aarch64_store_gregset): Likewise.
6836 (aarch64_fill_fpregset): Likewise.
6837 (aarch64_store_fpregset): Likewise.
6838
4d3bb80e
SM
68392017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6840
6841 * gdbthread.h (find_thread, for_each_thread): New functions.
6842 * inferiors.c (thread_of_pid): Remove.
6843 (find_any_thread_of_pid): Use find_thread.
6844 * linux-low.c (num_lwps): Use for_each_thread.
6845
7a7cdfa0
YQ
68462017-10-17 Yao Qi <yao.qi@linaro.org>
6847
6848 * Makefile.in: Remove one rule.
6849 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6850
e675d170
YQ
68512017-10-17 Yao Qi <yao.qi@linaro.org>
6852
6853 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6854 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6855
7eb4e0f9
YQ
68562017-10-17 Yao Qi <yao.qi@linaro.org>
6857
6858 * configure.srv: Rename arm.o with arch/arm.o.
6859
60d6cfc9
YQ
68602017-10-17 Yao Qi <yao.qi@linaro.org>
6861
6862 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6863 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6864 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6865 (arch-i386.o, arch-amd64.o): Remove rules.
6866 (arch/%.o): New rule.
6867 Update POSTCOMPILE and COMPILE.pre.
6868 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6869 * configure: Re-generated.
6870 * configure.srv: Replace arch-i386.o with arch/i386.o.
6871 Replace arch-amd64.o with arch/amd64.o.
6872
5bfda255
YQ
68732017-10-16 Yao Qi <yao.qi@linaro.org>
6874
6875 * configure: Regenerated.
6876
9c80ecd6
SM
68772017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6878
6879 * inferiors.h: (struct inferior_list): Remove.
6880 (struct inferior_list_entry); Remove.
6881 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6882 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6883 get_first_inferior): Remove.
6884 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6885 find_inferior_id, find_inferior_in_random): Change signature.
6886 * inferiors.c (all_threads): Change type to
6887 std::list<thread_info *>.
6888 (get_thread): Remove macro.
6889 (find_inferior, find_inferior_id): Change signature, implement
6890 using find_thread.
6891 (find_inferior_in_random): Change signature, implement using
6892 find_thread_in_random.
6893 (for_each_inferior, for_each_inferior_with_data): Change
6894 signature, implement using for_each_thread.
6895 (add_inferior_to_list, remove_inferior): Remove.
6896 (add_thread, get_first_thread, thread_of_pid,
6897 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6898 (get_first_inferior, one_inferior_p, clear_inferior_list):
6899 Remove.
6900 (clear_inferiors, get_thread_process): Update.
6901 * gdbthread.h: Include <list>.
6902 (struct thread_info) <entry>: Remove field.
6903 <id>: New field.
6904 (all_threads): Change type to std::list<thread_info *>.
6905 (get_first_inferior): Add doc.
6906 (find_thread, for_each_thread, find_thread_in_random): New
6907 functions.
6908 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6909 * linux-arm-low.c (update_registers_callback): Update.
6910 * linux-low.c (second_thread_of_pid_p): Update.
6911 (kill_one_lwp_callback, linux_detach_lwp_callback,
6912 delete_lwp_callback, status_pending_p_callback, same_lwp,
6913 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6914 iterate_over_lwps, not_stopped_callback,
6915 resume_stopped_resumed_lwps, count_events_callback,
6916 select_singlestep_lwp_callback, select_event_lwp_callback,
6917 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6918 suspend_and_send_sigstop_callback, wait_for_sigstop,
6919 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6920 lwp_running, linux_set_resume_request, resume_status_pending_p,
6921 need_step_over_p, start_step_over, linux_resume_one_thread,
6922 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6923 reset_lwp_ptrace_options_callback): Update.
6924 * linux-mips-low.c (update_watch_registers_callback): Update.
6925 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6926 Update.
6927 (free_register_cache_thread_one): Remove.
6928 (regcache_release): Update.
6929 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6930 handle_qxfer_threads_worker): Update.
6931 (handle_query): Update, use list iterator.
6932 (visit_actioned_threads, handle_pending_status,
6933 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6934 clear_pending_status_callback, set_pending_status_callback,
6935 find_status_pending_thread_callback, handle_status,
6936 process_serial_event): Update.
6937 * target.c (thread_search_callback): Update.
6938 * thread-db.c (thread_db_get_tls_address): Update.
6939 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6940 Update.
6941 * win32-i386-low.c (update_debug_registers_callback): Update.
6942 * win32-low.c (delete_thread_info, child_delete_thread,
6943 continue_one_thread, suspend_one_thread,
6944 get_child_debug_event): Adjust.
6945
9179355e
SM
69462017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6947
6948 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6949 * inferiors.h: Include <list>.
6950 (struct process_info) <entry>: Remove field.
6951 <pid>: New field.
6952 (pid_of): Change macro to function.
6953 (ptid_of, lwpid_of): Remove macro.
6954 (all_processes): Change type to std::list<process_info *>.
6955 (ALL_PROCESSES): Remove macro.
6956 (for_each_process, find_process): New function.
6957 * inferiors.c (all_processes): Change type to
6958 std::list<process_info *>.
6959 (find_thread_process): Adjust.
6960 (add_process): Likewise.
6961 (remove_process): Likewise.
6962 (find_process_pid): Likewise.
6963 (get_first_process): Likewise.
6964 (started_inferior_callback): Remove.
6965 (have_started_inferiors_p): Adjust.
6966 (attached_inferior_callback): Remove.
6967 (have_attached_inferiors_p): Adjust.
6968 * linux-low.c (check_zombie_leaders): Likewise.
6969 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6970 (x86_linux_update_xmltarget): Adjust.
6971 * server.c (handle_query): Likewise.
6972 (gdb_reattached_process): Remove.
6973 (handle_status): Adjust.
6974 (kill_inferior_callback): Likewise.
6975 (detach_or_kill_inferior): Remove.
6976 (print_started_pid): Likewise.
6977 (print_attached_pid): Likewise.
6978 (detach_or_kill_for_exit): Update.
6979 (process_serial_event): Likewise.
6980 * linux-arm-low.c (arm_new_fork): Likewise.
6981
c9cb8905
SM
69822017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6983
6984 * dll.h: Include <list>.
6985 (struct dll_info): Add constructor.
6986 <entry>: Remove field.
6987 (all_dlls): Change type to std::list<dll_info>.
6988 * dll.c: Include <algorithm>.
6989 (get_dll): Remove macro.
6990 (all_dlls): Change type to std::list<dll_info *>.
6991 (free_one_dll): Remove.
6992 (match_dll): Likewise.
6993 (loaded_dll): Adjust.
6994 (unloaded_dll): Adjust to all_dlls type change, use
6995 std::find_if. Inline code from match_dll.
6996 (clear_dlls): Adjust to all_dlls type change.
6997 * server.c (emit_dll_description): Remove.
6998 (handle_qxfer_libraries): Adjust to all_dlls type change,
6999 integrate emit_dll_description's functionality.
7000
04ec7890
SM
70012017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7002
7003 * linux-low.h (struct linux_target_ops) <delete_process>: New
7004 field.
7005 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7006 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7007 (struct linux_target_ops): Add delete_process callback.
7008 * linux-arm-low.c (arm_delete_process): New.
7009 (struct linux_target_ops): Add delete_process callback.
7010 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7011 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7012 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7013 * linux-mips-low.c (mips_linux_delete_process): New.
7014 (struct linux_target_ops): Add delete_process callback.
7015 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7016 * linux-s390-low.c (struct linux_target_ops): Likewise.
7017 * linux-sh-low.c (struct linux_target_ops): Likewise.
7018 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7019 * linux-tile-low.c (struct linux_target_ops): Likewise.
7020 * linux-x86-low.c (x86_linux_delete_process): New.
7021 (struct linux_target_ops): Add delete_process callback.
7022 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7023
466eecee
SM
70242017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7025
7026 * linux-aarch64-low.c (the_low_target): Add thread delete
7027 callback.
7028 * linux-arm-low.c (arm_delete_thread): New function.
7029 (the_low_target): Add thread delete callback.
7030 * linux-bfin-low.c (the_low_target): Likewise.
7031 * linux-crisv32-low.c (the_low_target): Likewise.
7032 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7033 set.
7034 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7035 field.
7036 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7037 * linux-mips-low.c (mips_linux_delete_thread): New function.
7038 (the_low_target): Add thread delete callback.
7039 * linux-ppc-low.c (the_low_target): Likewise.
7040 * linux-s390-low.c (the_low_target): Likewise.
7041 * linux-sh-low.c (the_low_target): Likewise.
7042 * linux-tic6x-low.c (the_low_target): Likewise.
7043 * linux-tile-low.c (the_low_target): Likewise.
7044 * linux-x86-low.c (the_low_target): Likewise.
7045 * linux-xtensa-low.c (the_low_target): Likewise.
7046
b79f7801
YZ
70472017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7048
7049 * win32-low.c: Include "common-inferior.h".
7050
bc3b087d
SDJ
70512017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7052
7053 * inferiors.c (set_inferior_cwd): New function.
7054 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7055 (handle_query): Inform that QSetWorkingDir is supported.
7056 * win32-low.c (create_process): Pass the inferior's cwd to
7057 CreateProcess.
7058
d092c5a2
SDJ
70592017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7060
7061 * inferiors.c (current_inferior_cwd): New global variable.
7062 (get_inferior_cwd): New function.
7063 * inferiors.h (struct process_info) <cwd>: New field.
7064
7da0a886
SDJ
70652017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7066
7067 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7068 (OBS): Add gdb_tilde_expand.o.
7069
289a6840
SM
70702017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7071
7072 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7073 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7074
256642e8
PA
70752017-09-29 Pedro Alves <palves@redhat.com>
7076
7077 * ax.c (gdb_parse_agent_expr): Constify.
7078 * ax.h (gdb_parse_agent_expr): Constify.
7079 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7080 Constify.
7081 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7082 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7083 * remote-utils.h (read_ptid): Constify.
7084 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7085 (process_point_options, process_serial_event): Constify.
7086 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7087 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7088 (cmd_qtbuffer): Constify.
7089
5b9ca4d4
PA
70902017-09-29 Pedro Alves <palves@redhat.com>
7091
7092 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7093 fails.
7094
94c207e0
PA
70952017-09-29 Pedro Alves <palves@redhat.com>
7096
7097 * linux-low.c (handle_extended_wait): Pass parent thread instead
7098 of process to thread_db_notice_clone.
7099 * linux-low.h (thread_db_notice_clone): Replace parent process
7100 parameter with parent thread parameter.
7101 * thread-db.c (find_one_thread): Add comment.
7102 (thread_db_notice_clone): Replace parent process parameter with
7103 parent thread parameter. Temporarily switch to the parent thread.
7104
75352e28
SDJ
71052017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7106
7107 * gdbthread.h: Include "common-gdbthread.h".
7108 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7109 "if" when validating the ptid.
7110 * remote-utils.c: Include "gdbthread.h".
7111 (prepare_resume_reply): Use "switch_to_thread".
7112 * target.c (done_accessing_memory): Likewise.
7113
ad339634
AA
71142017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7115
7116 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7117 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7118 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7119 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7120 s390x-gs-linux64-ipa.o to ipa_obj.
7121 * linux-s390-low.c (HWCAP_S390_GS): New define.
7122 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7123 New functions.
7124 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7125 (s390_arch_setup): Check for guarded-storage support and choose
7126 appropriate tdesc.
7127 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7128 init_registers_s390x_gs_linux64.
7129 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7130 enum value.
7131 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7132 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7133
cc4d742f
SM
71342017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7135
7136 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7137
f6327dcb
KB
71382017-09-21 Kevin Buettner <kevinb@redhat.com>
7139
7140 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7141 (thread_db_thread_handle): Declare.
7142 * linux-low.c (linux_target_ops): Initialize thread_handle.
7143 * server.c (handle_qxfer_threads_worker): Add support for
7144 "handle" attribute.
7145 * target.h (struct target_ops): Add new function pointer,
7146 thread_handle.
7147 (target_thread_handle): Define.
7148 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7149 field in lwp.
7150 (thread_db_thread_handle): New function.
7151
86299109
KB
71522017-09-21 Kevin Buettner <kevinb@redhat.com>
7153
7154 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7155 * linux-low.h (thread_db_notice_clone): Declare.
7156 * thread-db.c (thread_db_notice_clone): New function.
7157
f557a88a
PA
71582017-09-21 Pedro Alves <palves@redhat.com>
7159
7160 * server.c (gdb_read_memory, handle_status, process_serial_event)
7161 (handle_serial_event, handle_target_event): Adjust to
7162 set_desired_thread prototype change.
7163 * target.c (set_desired_thread): Remove 'use_general' parameter
7164 and adjust.
7165 * target.h (set_desired_thread): Remove 'use_general' parameter.
7166
223ffa71
TT
71672017-09-20 Tom Tromey <tom@tromey.com>
7168
7169 * target.c (target_terminal::terminal_state): Define.
7170 (target_terminal::init): Rename from target_terminal_init.
7171 (target_terminal::inferior): Rename from
7172 target_terminal_inferior.
7173 (target_terminal::ours): Rename from target_terminal_ours.
7174 (target_terminal::ours_for_output, target_terminal::info): New.
7175
04fd3ba9
SM
71762017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7177
7178 * server.c (accumulate_file_name_length): Remove.
7179 (emit_dll_description): Adjust to std::string change.
7180 (handle_qxfer_libraries): Use std::string to hold document.
7181
5e187554
SM
71822017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7183
7184 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7185 return type of xml_escape_text.
7186 * server.c (emit_dll_description): Likewise.
7187
1526853e
SM
71882017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7189
7190 * server.c (captured_main): Accept argument for --selftest.
7191 Update run_tests call.
7192 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7193 when registering selftests.
7194
c4dfafab
SDJ
71952017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7196
7197 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7198 instead of "VEC" for "target_desc.reg_defs".
7199 (regcache_cpy): Likewise.
7200 (registers_to_string): Likewise.
7201 (registers_from_string): Likewise.
7202 (find_regno): Likewise.
7203 (supply_regblock): Likewise.
7204 (regcache_raw_read_unsigned): Likewise.
7205 * tdesc.c (init_target_desc): Likewise.
7206 (tdesc_create_reg): Likewise.
7207 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7208 (struct target_desc) <reg_defs>: Convert to "std::vector".
7209 (target_desc): Do not initialize "reg_defs".
7210 (~target_desc): Update code to use "std::vector" instead of "VEC"
7211 for "target_desc.reg_defs".
7212 (operator==): Likewise.
7213
124aceb4
SM
72142017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7215
7216 * inferiors.h (thread_to_gdb_id): Remove.
7217 * inferiors.c (thread_to_gdb_id): Remove.
7218 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7219 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7220 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7221 Likewise.
7222 * nto-low.c (nto_fetch_registers, nto_store_registers,
7223 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7224
96cde54f
SM
72252017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7226
7227 * inferiors.h (gdb_id_to_thread_id): Remove.
7228 * inferiors.c (gdb_id_to_thread_id): Remove.
7229 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7230 removal. Move pid declaration closer to where it's used.
7231
e8ca139e
SM
72322017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7233
7234 * server.c (handle_detach): New function.
7235 (process_serial_event): Move code out, call handle_detach.
7236
f8a4e119
SM
72372017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7238
7239 * server.c (require_running): Rename to ...
7240 (require_running_or_return): ... this ...
7241 (require_running_or_break): ... and this.
7242 (handle_query, process_serial_event): Adjust.
7243
0eb0a407
SM
72442017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7245
7246 * linux-low.c (linux_set_resume_request): Remove unused
7247 variables.
7248
785922a5
SM
72492017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7250
7251 * server.c (first_thread_of): Remove.
7252 (process_serial_event): Replace usage of first_thread_of with
7253 find_any_thread_of_pid.
7254 * tracepoint.c (same_process_p): Remove.
7255 (gdb_agent_about_to_close): Replace usage of same_process_p with
7256 find_any_thread_of_pid.
7257 * linux-x86-low.c (same_process_callback): Remove.
7258 (x86_arch_setup_process_callback): Replace usage of
7259 same_process_callback with find_any_thread_of_pid.
7260 * thread-db.c (any_thread_of): Remove.
7261 (switch_to_process): Replace usage of any_thread_of with
7262 find_any_thread_of_pid.
7263 * inferiors.c (thread_pid_matches_callback): Remove.
7264 (find_thread_process): Adjust to use find_any_thread_of_pid.
7265
a059f00c
SDJ
72662017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7267
7268 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7269 with "!VEC_empty".
a059f00c 7270
cc397f3a
SDJ
72712017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7272
7273 * linux-low.c (handle_extended_wait): Use
7274 "allocate_target_description" instead of "XNEW".
7275 * linux-x86-low.c (initialize_low_arch): Likewise.
7276
22916b07
YQ
72772017-09-05 Yao Qi <yao.qi@linaro.org>
7278
7279 * configure.srv (srv_i386_regobj): Remove.
7280 (srv_amd64_regobj): Remove.
7281 (srv_regobj): Set it to "" for x86 non-linux targets.
7282 * linux-x86-tdesc.c (i386_linux_read_description):
7283 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7284 (init_registers_i386): Remove the declaration.
7285 (tdesc_i386): Remove the declaration.
7286 (lynx_i386_arch_setup): Call i386_create_target_description.
7287 * nto-x86-low.c: Likewise.
7288 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7289 [!__x86_64__]: include arch/i386.h.
7290 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7291
38602d55
YQ
72922017-09-05 Yao Qi <yao.qi@linaro.org>
7293
7294 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7295 i386/amd64-XXX-linux from it.
7296
44b886ff
YQ
72972017-09-05 Yao Qi <yao.qi@linaro.org>
7298
7299 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7300 false.
7301 (ipa_amd64_linux_regobj): Remove.
7302 (ipa_x32_linux_regobj): Remove.
7303
b4570e4b
YQ
73042017-09-05 Yao Qi <yao.qi@linaro.org>
7305
7306 * Makefile.in (arch-amd64.o): New rule.
7307 * configure.srv: Append arch-amd64.o.
7308 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7309 (get_ipa_tdesc): Call amd64_linux_read_description.
7310 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7311 and init_registers_amd64_XXX.
7312 * linux-x86-low.c (x86_linux_read_description): Call
7313 amd64_linux_read_description.
7314 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7315 (initialize_low_arch): Don't call init_registers_x32_XXX and
7316 init_registers_amd64_XXX.
7317 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7318 and tdesc_amd64_XXX.
7319 [__x86_64__] (amd64_tdesc_test): New function.
7320 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7321 and init_registers_amd64_XXX.
7322 * linux-x86-tdesc.c: Include arch/amd64.h.
7323 (xcr0_to_tdesc_idx): New function.
7324 (i386_linux_read_description): New function.
7325 (amd64_get_ipa_tdesc_idx): New function.
7326 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7327 (amd64_get_ipa_tdesc): Declare.
7328
d1f28ea2
YQ
73292017-09-05 Yao Qi <yao.qi@linaro.org>
7330
7331 * configure.srv (srv_i386_linux_xmlfiles): Remove
7332 i386/i386-XXX-linux.xml from it.
7333
25a93583
YQ
73342017-09-05 Yao Qi <yao.qi@linaro.org>
7335
7336 * configure.srv: Set srv_i386_linux_regobj empty if $development
7337 is false.
7338 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7339 initialize_low_tdesc.
7340 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7341 with #if initialize_low_tdesc.
7342 * linux-x86-tdesc-selftest.c: New file.
7343 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7344
5f035c07
YQ
73452017-09-05 Yao Qi <yao.qi@linaro.org>
7346
7347 * Makefile.in (arch-i386.o): New rule.
7348 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7349 (x86_64-*-linux*): Likewise.
7350 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7351 include arch/i386.h.
7352 (i386_linux_read_description): Remove code and call
7353 i386_create_target_description.
7354 * tdesc.c (allocate_target_description): New function.
7355 * tdesc.h (set_tdesc_architecture): Remove declaration.
7356 (set_tdesc_osabi): Likewise.
7357
0abe8a89
YQ
73582017-09-05 Yao Qi <yao.qi@linaro.org>
7359
7360 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7361 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7362 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7363 .xmltarget.
7364 * server.c (get_features_xml): Call tdesc_get_features_xml.
7365 * tdesc.c (set_tdesc_architecture): New function.
7366 (set_tdesc_osabi): New function.
7367 (tdesc_get_features_xml): New function.
7368 (tdesc_create_feature): Add an argument.
7369 * tdesc.h (struct target_desc) <features>: New field.
7370 <arch, osabi>: New field.
7371 (~target_desc): xfree features, arch, and osabi.
7372 (target_desc::oerator==): Don't compare .xmltarget.
7373 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7374 (set_tdesc_osabi): Likewise.
7375 (tdesc_get_features_xml): Likewise.
7376
0a188386
YQ
73772017-09-05 Yao Qi <yao.qi@linaro.org>
7378
7379 * linux-x86-tdesc.c: Include selftest.h.
7380 (i386_tdesc_test): New function.
7381 (initialize_low_tdesc): Call selftests::register_test.
7382 * tdesc.h: Include regdef.h.
7383 (target_desc): Override operator == and !=.
7384
f49ff000
YQ
73852017-09-05 Yao Qi <yao.qi@linaro.org>
7386
7387 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7388 (ipa_obj): Likewise.
7389 * linux-i386-ipa.c: Include common/x86-xstate.h
7390 (get_ipa_tdesc): Call i386_linux_read_description.
7391 (initialize_low_tracepoint): Don't call init_registers_XXX
7392 functions, call initialize_low_tdesc instead.
7393 * linux-x86-low.c (x86_linux_read_description): Call
7394 i386_linux_read_description.
7395 (initialize_low_arch): Don't call init_registers_i386_XXX
7396 functions, call initialize_low_tdesc.
7397 * linux-x86-tdesc.c: New file.
7398 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7399 (i386_get_ipa_tdesc_idx): Declare.
7400 (i386_get_ipa_tdesc): Declare.
7401 (initialize_low_tdesc): Declare.
7402
2b68ef2f
YQ
74032017-09-05 Yao Qi <yao.qi@linaro.org>
7404
7405 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7406 instead of 0.
7407
f7000548
YQ
74082017-09-05 Yao Qi <yao.qi@linaro.org>
7409
7410 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7411 * regcache.c (get_thread_regcache): Use VEC_length.
7412 (init_register_cache): Likewise.
7413 (regcache_cpy): Likewise.
7414 (registers_to_string): Iterate reg_defs via VEC_iterate.
7415 (find_regno): Likewise.
7416 (find_register_by_number): Use VEC_index.
7417 (register_size): Call find_register_by_number.
7418 (register_data): Call find_register_by_number.
7419 (supply_regblock): Use VEC_length.
7420 (regcache_raw_read_unsigned): Likewise.
7421 * tdesc.c (init_target_desc): Iterate reg_defs via
7422 VEC_iterate.
7423 (default_description): Update initializer.
7424 (copy_target_description): Don't update field num_registers.
7425 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7426 <num_registers>: Remove.
7427
50a421ac
SM
74282017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7429
7430 * Makefile.in (.SECONDARY): Define target.
7431
23fdd69e
SM
74322017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7433
7434 * linux-low.c (linux_wait_1): Adjust.
7435 * server.c (queue_stop_reply_callback): Adjust.
7436
0a2dde4a
SDJ
74372017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7438
7439 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7440 QEnvironmentUnset and QEnvironmentReset packets.
7441 (handle_query): Inform remote that QEnvironmentHexEncoded,
7442 QEnvironmentUnset and QEnvironmentReset are supported.
7443
6afd337d
SM
74442017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7445
7446 * inferiors.h (inferior_target_data): Rename to ...
7447 (thread_target_data): ... this.
7448 (inferior_regcache_data): Rename to ...
7449 (thread_regcache_data): ... this.
7450 (set_inferior_regcache_data): Rename to ...
7451 (set_thread_regcache_data): ... this.
7452 * inferiors.c (inferior_target_data): Rename to ...
7453 (thread_target_data): ... this.
7454 (inferior_regcache_data): Rename to ...
7455 (thread_regcache_data): ... this.
7456 (set_inferior_regcache_data): Rename to ...
7457 (set_thread_regcache_data): ... this.
7458 (free_one_thread): Update.
7459 * linux-low.h (get_thread_lwp): Update.
7460 * regcache.c (get_thread_regcache): Update.
7461 (regcache_invalidate_thread): Update.
7462 (free_register_cache_thread): Update.
7463 * win32-i386-low.c (update_debug_registers_callback): Update.
7464 (win32_get_current_dr): Update.
7465 * win32-low.c (thread_rec): Update.
7466 (delete_thread_info): Update.
7467 (continue_one_thread): Update.
7468 (suspend_one_thread): Update.
7469
a160cc46
SM
74702017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7471
7472 * inferiors.c (set_inferior_target_data): Remove.
7473 * inferiors.h (set_inferior_target_data): Remove.
7474
6d580b63
YQ
74752017-08-18 Yao Qi <yao.qi@linaro.org>
7476
7477 * Makefile.in (OBS): Add selftest.o.
7478 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7479 * configure, config.in: Re-generated.
7480 * server.c: Include common/sefltest.h.
7481 (captured_main): Handle option --selftest.
7482
f5a29eb0
YQ
74832017-08-09 Yao Qi <yao.qi@linaro.org>
7484
7485 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7486 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7487 i386-avx-mpx.o and i386-mmx.o.
7488 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7489 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7490 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7491 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7492 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7493 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7494 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7495 i386/amd64-avx-mpx.xml.
7496
57757c2f
YQ
74972017-08-09 Yao Qi <yao.qi@linaro.org>
7498
7499 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7500 and x32-avx-avx512.o.
7501 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7502 i386/x32-avx-avx512.xml.
7503
229d26fc
SM
75042017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7505
7506 * tracepoint.h (enum class fast_tpoint_collect_result): New
7507 enumeration.
7508 (fast_tracepoint_collecting): Change return type to
7509 fast_tpoint_collect_result.
7510 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7511 * linux-low.h: Include tracepoint.h.
7512 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7513 fast_tpoint_collect_result.
7514 * linux-low.c (handle_tracepoints): Adjust.
7515 (linux_fast_tracepoint_collecting): Change return type to
7516 fast_tpoint_collect_result.
7517 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7518 linux_wait_1, stuck_in_jump_pad_callback,
7519 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7520 proceed_one_lwp): Adjust to type change.
7521
2e1e43e1
YQ
75222017-07-10 Yao Qi <yao.qi@linaro.org>
7523
7524 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7525
adc764e7
YQ
75262017-06-29 Yao Qi <yao.qi@linaro.org>
7527
7528 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7529 Remove.
7530 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7531
a206891a
SM
75322017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7533
7534 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7535
9a6c7d9c
SDJ
75362017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7537
7538 * linux-low.c (linux_create_inferior): Adjust code to access the
7539 environment information via 'gdb_environ' class.
7540 * lynx-low.c (lynx_create_inferior): Likewise.
7541 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7542 (get_environ): Return a pointer to 'our_environ'.
7543 (captured_main): Initialize 'our_environ'.
7544 * server.h (get_environ): Adjust prototype.
7545 * spu-low.c (spu_create_inferior): Adjust code to access the
7546 environment information via 'gdb_environ' class.
7547
ae3e2ccf
SM
75482017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7549
7550 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7551 usage of "register" keyword.
7552
3e019bdc
SM
75532017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7554
7555 * configure: Re-generate.
7556
8465943a
SM
75572017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7558
7559 * configure: Re-generate.
7560
cf0dd6f0
SM
75612017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7562
7563 * Makefile.in (COMPILE.pre): Add "-x c++".
7564
9845682b
SDJ
75652017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7566
7567 * fork-child.c: Conditionally include <signal.h>.
7568
aefd8b33
SDJ
75692017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7570
7571 * server.c (handle_general_set): Handle new packet
7572 "QStartupWithShell".
7573 (handle_query): Add "QStartupWithShell" to the list of supported
7574 packets.
7575 (gdbserver_usage): Add help text explaining the
7576 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7577 options.
7578 (captured_main): Recognize and act upon the presence of the new
7579 CLI options.
7580
2090129c
SDJ
75812017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7582 Pedro Alves <palves@redhat.com>
7583
7584 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7585 * configure: Regenerate.
7586 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7587 "fork-inferior.o".
7588 (i[34567]86-*-lynxos*): Likewise.
7589 (spu*-*-*): Likewise.
7590 * fork-child.c: New file.
7591 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7592 and "environ.h".
7593 (linux_ptrace_fun): New function.
7594 (linux_create_inferior): Adjust function prototype to reflect
7595 change on "target.h". Adjust function code to use
7596 "fork_inferior".
7597 (linux_request_interrupt): Delete "signal_pid".
7598 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7599 (lynx_ptrace_fun): New function.
7600 (lynx_create_inferior): Adjust function prototype to reflect
7601 change on "target.h". Adjust function code to use
7602 "fork_inferior".
7603 * nto-low.c (nto_create_inferior): Adjust function prototype and
7604 code to reflect change on "target.h". Update comments.
7605 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7606 "common-terminal.h" and "environ.h".
7607 (terminal_fd): Moved to fork-child.c.
7608 (old_foreground_pgrp): Likewise.
7609 (restore_old_foreground_pgrp): Likewise.
7610 (last_status): Make it global.
7611 (last_ptid): Likewise.
7612 (our_environ): New variable.
7613 (startup_with_shell): Likewise.
7614 (program_name): Likewise.
7615 (program_argv): Rename to...
7616 (program_args): ...this.
7617 (wrapper_argv): New variable.
7618 (start_inferior): Delete function.
7619 (get_exec_wrapper): New function.
7620 (get_exec_file): Likewise.
7621 (get_environ): Likewise.
7622 (prefork_hook): Likewise.
7623 (post_fork_inferior): Likewise.
7624 (postfork_hook): Likewise.
7625 (postfork_child_hook): Likewise.
7626 (handle_v_run): Update code to deal with arguments coming from the
7627 remote host. Update calls from "start_inferior" to
7628 "create_inferior".
7629 (captured_main): Likewise. Initialize environment variable. Call
7630 "have_job_control".
7631 * server.h (post_fork_inferior): New prototype.
7632 (get_environ): Likewise.
7633 (last_status): Declare.
7634 (last_ptid): Likewise.
7635 (signal_pid): Likewise.
7636 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7637 (spu_ptrace_fun): New function.
7638 (spu_create_inferior): Adjust function prototype to reflect change
7639 on "target.h". Adjust function code to use "fork_inferior".
7640 * target.c (target_terminal_init): New function.
7641 (target_terminal_inferior): Likewise.
7642 (target_terminal_ours): Likewise.
7643 * target.h: Include <vector>.
7644 (struct target_ops) <create_inferior>: Update prototype.
7645 (create_inferior): Update macro.
7646 * utils.c (gdb_flush_out_err): New function.
7647 * win32-low.c (win32_create_inferior): Adjust function prototype
7648 and code to reflect change on "target.h".
7649
043a4934
SDJ
76502017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7651
7652 * inferiors.c (switch_to_thread): New function.
7653
15652511
SDJ
76542017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7655
7656 * Makefile.in (SFILE): Add "common/job-control.c".
7657 (OBS): Add "job-control.o".
7658
21ea5acd
SDJ
76592017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7660
7661 * Makefile: Remove "@host_makefile_frag@".
7662
e13cb306
PA
76632017-05-05 Pedro Alves <palves@redhat.com>
7664
7665 * configure: Regenerate.
7666
c94fee56
SDJ
76672017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7668
7669 * configure: Regenerate.
7670
a0ff9e1a
SM
76712017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7672
7673 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7674 software_single_step change of return type to
7675 std::vector<CORE_ADDR>.
7676 * linux-low.c (install_software_single_step_breakpoints):
7677 Likewise.
7678 * linux-low.h (install_software_single_step_breakpoints):
7679 Likewise.
7680
be628ab8
SDJ
76812017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7682
7683 * remote-utils.c: Include "gdb_termios.h" instead of
7684 "terminal.h".
7685 * terminal.h: Delete file.
7686
7c5ded6a
SDJ
76872017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7688
7689 * server.c: Include <vector>.
7690 <program_argv, wrapper_argv>: Convert to std::vector.
7691 (start_inferior): Rewrite function to use C++.
7692 (handle_v_run): Likewise. Update code that calculates the argv
7693 based on the vRun packet; use C++.
7694 (captured_main): Likewise.
7695
436252de
SM
76962017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7697
7698 * server.c (handle_v_cont): Initialize thread_resume::thread
7699 with null_ptid.
7700
9bf2a700
PA
77012017-04-05 Pedro Alves <palves@redhat.com>
7702
7703 * configure: Regenerate.
7704
a121b7c1
PA
77052017-04-05 Pedro Alves <palves@redhat.com>
7706
7707 * gdbreplay.c (sync_error): Constify.
7708 * linux-x86-low.c (push_opcode): Constify.
7709
21c8a587
PA
77102017-04-05 Pedro Alves <palves@redhat.com>
7711
7712 * win32-low.c (get_child_debug_event)
7713 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7714 Report TARGET_WAITKIND_SPURIOUS instead.
7715
fb32b4f7
PA
77162017-04-05 Pedro Alves <palves@redhat.com>
7717
e79be6e5
SM
7718 * remote-utils.c (remote_prepare, remote_open): Constify.
7719 * remote-utils.h (remote_prepare, remote_open): Constify.
7720 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7721
65dd1e59
SM
77222017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7723
7724 * Makefile.in (clean): Clear .deps.
7725
8fa5b777
SM
77262017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7727
7728 * .gitignore: Remove generated files, replace with wildcard.
7729 * (clean): Replace removal of generated files with wildcard.
7730 (version.c): Replace with...
7731 (version-generated.c): ...this.
7732 (xml-builtin.c): Replace with...
7733 (xml-builtin-generated.c): ...this.
7734 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7735 (%.c: *regformats*): Replace with...
7736 (%-generated.c: *regformats*): ...this.
7737
a12e714b
MF
77382017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7739
7740 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7741 (xtensa_fill_gregset): Call collect_register_by_name for
7742 threadptr register.
7743 (xtensa_store_gregset): Call supply_register_by_name for
7744 threadptr register.
7745
1a09b50a
MF
77462017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7747
7748 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7749 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7750 (xtensa_store_gregset): Call supply_register for all registers in
7751 a0_regnum..a0_regnum + C0_NREGS range.
7752
1a01e7c6
SM
77532017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7754
7755 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7756 (ax-ipa.o: ax.c): Remove.
7757 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7758 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7759 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7760 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7761 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7762
36bc18a8
SM
77632017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7764
7765 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7766 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7767 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7768 (errors-ipa.o: ../common/errors.c): Remove.
7769 (format-ipa.o: ../common/format.c): Remove.
7770 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7771
a8ebe3d5
SM
77722017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7773
7774 * Makefile.in (%-ipa.o: %.c): New rule.
7775 (tracepoint-ipa.o: tracepoint.c): Remove.
7776 (utils-ipa.o: utils.c): Remove.
7777 (remote-utils-ipa.o: remote-utils.c): Remove.
7778 (regcache-ipa.o: regcache.c): Remove.
7779 (i386-linux-ipa.o: i386-linux.c): Remove.
7780 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7781 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7782 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7783 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7784 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7785 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7786 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7787 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7788 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7789 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7790 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7791 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7792 (aarch64-ipa.o: aarch64.c): Remove.
7793 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7794 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7795 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7796 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7797 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7798 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7799 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7800 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7801 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7802 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7803 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7804 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7805 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7806 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7807 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7808 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7809 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7810 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7811 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7812 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7813 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7814 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7815 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7816 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7817 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7818 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7819 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7820 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7821 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7822 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7823 (tdesc-ipa.o: tdesc.c): Remove.
7824 (x32-linux-ipa.o: x32-linux.c): Remove.
7825 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7826 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7827
50cfacb7
SM
78282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7829
7830 * Makefile.in (%.o: ../arch/%.c): New rule.
7831 (arm.o: ../arch/arm.c): Remove.
7832 (arm-linux.o: ../arch/arm-linux.c): Remove.
7833 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7834 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7835
c5a22423
SM
78362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7837
7838 * Makefile.in (%.o: ../nat/%.c): New rule.
7839 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7840 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7841 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7842 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7843 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7844 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7845 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7846 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7847 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7848 (linux-personality.o: ../nat/linux-personality.c): Remove.
7849 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7850 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7851 (x86-linux.o: ../nat/x86-linux.c): Remove.
7852 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7853 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7854
6bda016b
SM
78552017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7856
7857 * Makefile.in (%.o: ../common/%.c): New rule.
7858 (signals.o: ../common/signals.c): Remove.
7859 (print-utils.o: ../common/print-utils.c): Remove.
7860 (rsp-low.o: ../common/rsp-low.c): Remove.
7861 (common-utils.o: ../common/common-utils.c): Remove.
7862 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7863 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7864 (vec.o: ../common/vec.c): Remove.
7865 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7866 (xml-utils.o: ../common/xml-utils.c): Remove.
7867 (ptid.o: ../common/ptid.c): Remove.
7868 (buffer.o: ../common/buffer.c): Remove.
7869 (format.o: ../common/format.c): Remove.
7870 (filestuff.o: ../common/filestuff.c): Remove.
7871 (agent.o: ../common/agent.c): Remove.
7872 (errors.o: ../common/errors.c): Remove.
7873 (environ.o: ../common/environ.c): Remove.
7874 (common-debug.o: ../common/common-debug.c): Remove.
7875 (cleanups.o: ../common/cleanups.c): Remove.
7876 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7877 (fileio.o: ../common/fileio.c): Remove.
7878 (common-regcache.o: ../common/common-regcache.c): Remove.
7879 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7880 (new-op.o: ../common/new-op.c): Remove.
7881 (btrace-common.o: ../common/btrace-common.c): Remove.
7882
21122961
SM
78832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7884
7885 * Makefile.in (%.o: ../target/%.c): New rule.
7886 (waitstatus.o: ../target/waitstatus.c): Remove.
7887
c362e621
SM
78882017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7889
7890 * Makefile.in
7891 (%.c: ../regformats/%.dat,
7892 (%.c: ../regformats/arm/%.dat,
7893 (%.c: ../regformats/i386/%.dat,
7894 (%.c: ../regformats/rs6000/%.dat): New rules.
7895 (aarch64.c): Remove.
7896 (reg-arm.c): Remove.
7897 (arm-with-iwmmxt.c): Remove.
7898 (arm-with-vfpv2.c): Remove.
7899 (arm-with-vfpv3.c): Remove.
7900 (arm-with-neon.c): Remove.
7901 (reg-bfin.c): Remove.
7902 (reg-cris.c): Remove.
7903 (reg-crisv32.c): Remove.
7904 (i386.c): Remove.
7905 (i386-linux.c): Remove.
7906 (i386-avx.c): Remove.
7907 (i386-avx-linux.c): Remove.
7908 (i386-avx-avx512.c): Remove.
7909 (i386-avx-avx512-linux.c): Remove.
7910 (i386-mpx.c): Remove.
7911 (i386-mpx-linux.c): Remove.
7912 (i386-avx-mpx-avx512-pku.c): Remove.
7913 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7914 (i386-avx-mpx.c): Remove.
7915 (i386-avx-mpx-linux.c): Remove.
7916 (i386-mmx.c): Remove.
7917 (i386-mmx-linux.c): Remove.
7918 (reg-ia64.c): Remove.
7919 (reg-m32r.c): Remove.
7920 (reg-m68k.c): Remove.
7921 (reg-cf.c): Remove.
7922 (mips-linux.c): Remove.
7923 (mips-dsp-linux.c): Remove.
7924 (mips64-linux.c): Remove.
7925 (mips64-dsp-linux.c): Remove.
7926 (nios2-linux.c): Remove.
7927 (powerpc-32.c): Remove.
7928 (powerpc-32l.c): Remove.
7929 (powerpc-altivec32l.c): Remove.
7930 (powerpc-cell32l.c): Remove.
7931 (powerpc-vsx32l.c): Remove.
7932 (powerpc-isa205-32l.c): Remove.
7933 (powerpc-isa205-altivec32l.c): Remove.
7934 (powerpc-isa205-vsx32l.c): Remove.
7935 (powerpc-e500l.c): Remove.
7936 (powerpc-64l.c): Remove.
7937 (powerpc-altivec64l.c): Remove.
7938 (powerpc-cell64l.c): Remove.
7939 (powerpc-vsx64l.c): Remove.
7940 (powerpc-isa205-64l.c): Remove.
7941 (powerpc-isa205-altivec64l.c): Remove.
7942 (powerpc-isa205-vsx64l.c): Remove.
7943 (s390-linux32.c): Remove.
7944 (s390-linux32v1.c): Remove.
7945 (s390-linux32v2.c): Remove.
7946 (s390-linux64.c): Remove.
7947 (s390-linux64v1.c): Remove.
7948 (s390-linux64v2.c): Remove.
7949 (s390-te-linux64.c): Remove.
7950 (s390-vx-linux64.c): Remove.
7951 (s390-tevx-linux64.c): Remove.
7952 (s390x-linux64.c): Remove.
7953 (s390x-linux64v1.c): Remove.
7954 (s390x-linux64v2.c): Remove.
7955 (s390x-te-linux64.c): Remove.
7956 (s390x-vx-linux64.c): Remove.
7957 (s390x-tevx-linux64.c): Remove.
7958 (tic6x-c64xp-linux.c): Remove.
7959 (tic6x-c64x-linux.c): Remove.
7960 (tic6x-c62x-linux.c): Remove.
7961 (reg-sh.c): Remove.
7962 (reg-sparc64.c): Remove.
7963 (reg-spu.c): Remove.
7964 (amd64.c): Remove.
7965 (amd64-linux.c): Remove.
7966 (amd64-avx.c): Remove.
7967 (amd64-avx-linux.c): Remove.
7968 (amd64-avx-avx512.c): Remove.
7969 (amd64-avx-avx512-linux.c): Remove.
7970 (amd64-mpx.c): Remove.
7971 (amd64-mpx-linux.c): Remove.
7972 (amd64-avx-mpx-avx512-pku.c): Remove.
7973 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7974 (amd64-avx-mpx.c): Remove.
7975 (amd64-avx-mpx-linux.c): Remove.
7976 (x32.c): Remove.
7977 (x32-linux.c): Remove.
7978 (x32-avx.c): Remove.
7979 (x32-avx-linux.c): Remove.
7980 (x32-avx-avx512.c): Remove.
7981 (x32-avx-avx512-linux.c): Remove.
7982 (reg-xtensa.c): Remove.
7983 (reg-tilegx.c): Remove.
7984 (reg-tilegx32.c): Remove.
7985
1672e0d9
SDJ
79862017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7987
7988 * Makefile.in (SFILES): Add "common/environ.c".
7989 (OBJS): Add "common/environ.h".
7990
239b6d10
WT
79912017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7992
7993 * configure.ac: Check if the fs_base and gs_base members of
7994 `struct user_regs_struct' exist.
7995 * config.in: Regenerated.
7996 * configure: Likewise.
7997
694b382c
AT
79982017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7999
8000 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8001 target_read_memory.
8002 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8003 (get_next_pcs_syscall_next_pc): Likewise.
8004
7dc53023
LM
80052016-12-23 Luis Machado <lgustavo@codesourcery.com>
8006
8007 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8008 * nto-x86-low.c: Likewise.
8009
ad02e4fe
SM
80102016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8011
8012 * Makefile.in: Include disable-implicit-rules.mk.
8013
dcb07cfa
PA
80142016-11-23 Pedro Alves <palves@redhat.com>
8015
8016 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8017 (debug_vprintf): Use std::chrono::steady_clock instead of
8018 gettimeofday. Use '.' instead of ':'.
8019 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8020 (get_timestamp): Use std::chrono::steady_clock instead of
8021 gettimeofday.
8022
8629c02c
SM
80232016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8024
8025 * Makefile.in: Fix whitespace formatting.
8026
b593ecca
SM
80272016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8028
8029 * Makefile.in (SFILES, OBS): Flatten list and order
8030 alphabetically.
8031
9986ba08
PA
80322016-11-23 Pedro Alves <palves@redhat.com>
8033
8034 * event-loop.c (handle_file_event): Use warning.
8035 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8036 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8037 Use warning.
8038
4eefa7bc
PA
80392016-11-23 Pedro Alves <palves@redhat.com>
8040
8041 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8042 output.
8043 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8044 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8045 debug_printf and debug_flush for debug output.
8046 * server.c (handle_general_set): Likewise.
8047 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8048 output.
8049
5443506e
SM
80502016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8051
8052 * Makefile.in (.c.o): Replace rule with ...
8053 (%.o: %.c): ... this one.
8054
3b165252
SM
80552016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8056
8057 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8058 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8059 make.
8060 * configure.ac: Remove checks for the make program.
8061 * configure: Re-generate.
8062
0bcda685
PA
80632016-10-28 Pedro Alves <palves@redhat.com>
8064
8065 * Makefile.in (CXX_DIALECT): Get from configure.
8066 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8067 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8068 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8069 * config.in: Regenerate.
8070 * configure: Regenerate.
8071
c3805894
YQ
80722016-10-27 Yao Qi <yao.qi@linaro.org>
8073
8074 * linux-low.c (linux_supports_range_stepping): Return true if
8075 can_software_single_step return true.
8076
89342618
YQ
80772016-10-27 Yao Qi <yao.qi@linaro.org>
8078
8079 * inferiors.c (find_inferior_in_random): New function.
8080 * inferiors.h (find_inferior_in_random): Declare.
8081 * linux-low.c (linux_wait_for_event_filtered): Call
8082 find_inferior_in_random instead of find_inferior.
8083
e3652c84
YQ
80842016-10-27 Yao Qi <yao.qi@linaro.org>
8085
8086 * linux-low.c (linux_wait_1): If single-step breakpoints are
8087 inserted, remove them.
8088
5a04c4cf
PA
80892016-10-26 Pedro Alves <palves@redhat.com>
8090
8091 * linux-low.c (handle_extended_wait): Link parent/child fork
8092 threads.
8093 (linux_wait_1): Unlink them.
8094 (linux_set_resume_request): Ignore resume requests for
8095 already-resumed and unhandled fork child threads.
8096 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8097 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8098 New functions.
8099 (handle_v_requests) <vCont>: Don't call require_running.
8100 * server.h (in_queued_stop_replies): New declaration.
8101
cb93dc7f
YQ
81022016-10-24 Yao Qi <yao.qi@linaro.org>
8103
8104 PR server/20733
8105 * linux-aarch64-low.c (append_insns): Cast the return value to
8106 'uint32_t *'.
8107
a1078bea
YQ
81082016-10-10 Yao Qi <yao.qi@linaro.org>
8109
8110 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8111
1fb77080
SDJ
81122016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8113
8114 * target.c (target_supports_multi_process): New function, moved
8115 from...
8116 * target.h (target_supports_multi_process): ... here. Remove
8117 macro.
8118
39b5a3b9
TT
81192016-10-05 Tom Tromey <tom@tromey.com>
8120
8121 PR remote/20655:
8122 * tracepoint.c (handle_tracepoint_bkpts): Check
8123 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8124
c1d0b70a
YQ
81252016-10-05 Yao Qi <yao.qi@linaro.org>
8126
8127 * configure.srv: Update the path of arm-*.xml files.
8128
0a69eedb
YQ
81292016-10-05 Terry Guo <terry.guo@arm.com>
8130 Yao Qi <yao.qi@linaro.org>
8131
8132 * Makefile.in: Adjust the path of rules.
8133 * configure.srv: Update the path of xml files.
8134 * regformats/arm-with-iwmmxt.dat: Regenerated.
8135 * regformats/arm-with-neon.dat: Likewise.
8136 * regformats/arm-with-vfpv2.dat: Likewise.
8137 * regformats/arm-with-vfpv3.dat Likewise.
8138
17e16485
YQ
81392016-09-30 Yao Qi <yao.qi@linaro.org>
8140
8141 PR gdbserver/20627
8142 * target.c (target_stop_and_wait): Don't call
8143 target_continue_no_signal, use resume_stop instead.
8144
edeeb602
YQ
81452016-09-26 Yao Qi <yao.qi@linaro.org>
8146
8147 * linux-low.c (linux_wait_1): Call debug_exit.
8148
503b1c39
PA
81492016-09-23 Pedro Alves <palves@redhat.com>
8150
8151 * Makefile.in (SFILES): Add common/new-op.c.
8152 (OBS): Add common/new-op.o.
8153 (new-op.o): New rule.
8154
74172ecf
SM
81552016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8156
8157 * .gitinore: Ignore more files.
8158
fc6cda2e
YQ
81592016-09-21 Yao Qi <yao.qi@linaro.org>
8160
8161 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8162 23.
8163
bc1e6c81
SDJ
81642016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8165
8166 * server.c (start_inferior): Call target_mourn_inferior instead of
8167 mourn_inferior; pass ptid_t argument to it.
8168 (resume): Likewise.
8169 (handle_target_event): Likewise.
8170 * target.c (target_mourn_inferior): New function.
8171 * target.h (mourn_inferior): Delete macro.
8172
0e00e962
AA
81732016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8174
8175 * linux-low.c (lwp_is_stepping): New function.
8176
1d8cb77d
CL
81772016-09-06 Carl Love <cel@us.ibm.com>
8178
8179 * server.c (start_inferior): Fixed comment, requested comment change
8180 didn't get updated correctly. Removed reference to ptrace () call as
8181 it is only true on Linux systems.
8182
7313bced
CL
81832016-09-06 Carl Love <cel@us.ibm.com>
8184
8185 * server.c (start_inferior): Do not call
8186 function target_post_create_inferior () if the
8187 inferior process has already exited.
8188
cf6de44d
PA
81892016-09-05 Pedro Alves <palves@redhat.com>
8190
8191 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8192 (COMPILE.pre, CC_LD): Use CXX directly.
8193 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8194 * acinclude.m4: Don't include build-with-cxx.m4.
8195 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8196 * configure: Regenerate.
8197
c1da6748
AT
81982016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8199
8200 PR gdb/19495
8201 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8202 call writing data to own_buf.
8203
f2b9e3df
SDJ
82042016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8205
8206 * target.c (mywait): Call target_wait instead of
8207 the_target->wait.
8208 (target_wait): New function.
8209
049a8570
SDJ
82102016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8211
8212 * server.c (start_inferior): New variable 'ptid'. Replace calls
8213 to the_target->resume by target_continue{,_no_signal}, depending
8214 on the case.
8215 * target.c (target_stop_and_wait): Call target_continue_no_signal
8216 instead of the_target->resume.
8217 (target_continue): New function.
8218
3aa5cfa0
AT
82192016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8220
8221 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8222
754653a7
AZ
82232016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8224
8225 PR server/20491
8226 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8227 ps_prochandle.
8228 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8229 * linux-arm-low.c (ps_get_thread_area): Likewise.
8230 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8231 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8232 * linux-mips-low.c (ps_get_thread_area): Likewise.
8233 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8234 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8235 * linux-x86-low.c (ps_get_thread_area): Likewise.
8236 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8237
ed036b40
PA
82382016-08-19 Pedro Alves <palves@redhat.com>
8239
8240 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8241
c8ef42ee
PA
82422016-08-19 Pedro Alves <palves@redhat.com>
8243
8244 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8245 comment. Use memcpy instead of casting through unsigned long.
8246
9c235a72
PA
82472016-08-19 Pedro Alves <palves@redhat.com>
8248
8249 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8250 allocating around 0x80000000.
8251
201506da
PA
82522016-08-19 Pedro Alves <palves@redhat.com>
8253
8254 PR gdb/20415
8255 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8256 (x32-avx512-linux-ipa.o): New rules.
8257 * configure.ac (x86_64-*-linux*): New x32 check.
8258 * configure.srv (ipa_x32_linux_regobj): New.
8259 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8260 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8261 descriptions.
8262 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8263 descriptions.
8264 * configure: Regenerate.
8265
f348d89a
PA
82662016-08-09 Pedro Alves <palves@redhat.com>
8267
8268 PR gdb/18653
8269 * Makefile.in (OBS): Add signals-state-save-restore.o.
8270 (signals-state-save-restore.o): New rule.
8271 * config.in: Regenerate.
8272 * configure: Regenerate.
8273 * linux-low.c: Include "signals-state-save-restore.h".
8274 (linux_create_inferior): Call
8275 restore_original_signals_state.
8276 * server.c: Include "dispositions-save-restore.h".
8277 (captured_main): Call save_original_signals_state.
8278
1baf5149
PA
82792016-08-05 Pedro Alves <palves@redhat.com>
8280
8281 * configure: Regenerate.
8282
fcd4a73d
YQ
82832016-08-04 Yao Qi <yao.qi@linaro.org>
8284
8285 * linux-low.c (regsets_fetch_inferior_registers): Check
8286 errno is ESRCH or not.
8287
979659d0
YQ
82882016-08-02 Yao Qi <yao.qi@linaro.org>
8289
8290 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8291 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8292 (thread_db_load_search): Update.
8293 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8294 td_ta_set_event and td_ta_event_getmsg.
8295
6598661d
PA
82962016-07-26 Pedro Alves <palves@redhat.com>
8297
8298 PR server/20414
8299 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8300 of unsigned long for 64-bit registers and use uint32_t instead of
8301 unsigned int for 32-bit registers.
8302
9cf12d57
PA
83032016-07-26 Pedro Alves <palves@redhat.com>
8304
8305 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8306 to 'ptrace'.
8307
305450ed
TT
83082016-07-21 Tom Tromey <tom@tromey.com>
8309
8310 * configure: Rebuild.
8311
2583da7c
YQ
83122016-07-21 Yao Qi <yao.qi@linaro.org>
8313
8314 * mem-break.c (find_gdb_breakpoint): Cast bp to
8315 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8316
21536b36
YQ
83172016-07-21 Yao Qi <yao.qi@linaro.org>
8318
8319 * server.c (handle_v_requests): Support s and S actions
8320 if target_supports_software_single_step return true.
8321
8901d193
YQ
83222016-07-21 Yao Qi <yao.qi@linaro.org>
8323
8324 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8325 is resume_step, call maybe_hw_step.
8326 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8327 and unstop them.
8328 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8329 breakpoints or not.
8330 (proceed_one_lwp): If resume request is resume_step, install
8331 reinsert breakpoints and call maybe_hw_step.
8332
0e9a339e
YQ
83332016-07-21 Yao Qi <yao.qi@linaro.org>
8334
8335 * linux-low.c (proceed_one_lwp): Declare.
8336 (linux_resume_one_thread): Remove local variable 'step'.
8337 Lift code enqueue signal. Call proceed_one_lwp instead of
8338 linux_resume_one_lwp.
8339
4281b351
YQ
83402016-07-21 Yao Qi <yao.qi@linaro.org>
8341
8342 * linux-low.c (linux_resume_one_thread): Call
8343 enqueue_pending_signal.
8344
984a2c04
YQ
83452016-07-21 Yao Qi <yao.qi@linaro.org>
8346
8347 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8348 * inferiors.c (do_restore_current_thread_cleanup): New function.
8349 (make_cleanup_restore_current_thread): Likewise.
8350 * linux-low.c (install_software_single_step_breakpoints): Call
8351 make_cleanup_restore_current_thread. Switch current_thread to
8352 thread.
8353
bec903c9
YQ
83542016-07-21 Yao Qi <yao.qi@linaro.org>
8355
8356 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8357 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8358 (clone_one_breakpoint): Likewise.
8359 (delete_reinsert_breakpoints): Change parameter to thread.
8360 Callers updated.
8361 (has_reinsert_breakpoints): Likewise.
8362 (uninsert_reinsert_breakpoints): Likewise.
8363 (reinsert_reinsert_breakpoints): Likewise.
8364 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8365 (delete_reinsert_breakpoints): Likewise.
8366 (reinsert_reinsert_breakpoints): Likewise.
8367 (uninsert_reinsert_breakpoints): Likewise.
8368 (has_reinsert_breakpoints): Likewise.
8369
63c40ec7
YQ
83702016-07-21 Yao Qi <yao.qi@linaro.org>
8371
8372 * inferiors.c (get_thread_process): Make parameter const.
8373 * inferiors.h (get_thread_process): Update declaration.
8374 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8375 Add new parameters child_thread and parent_thread. Callers
8376 updated.
8377 * mem-break.h (clone_all_breakpoints): Update declaration.
8378
9aa76cd0
YQ
83792016-07-21 Yao Qi <yao.qi@linaro.org>
8380
8381 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8382 <command_list, handler>: Remove.
8383 (struct gdb_breakpoint): New.
8384 (struct other_breakpoint): New.
8385 (struct reinsert_breakpoint): New.
8386 (is_gdb_breakpoint): New function.
8387 (any_persistent_commands): Update command_list if
8388 is_gdb_breakpoint returns true.
8389 (set_breakpoint): Create breakpoints according to their types.
8390 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8391 (set_gdb_breakpoint_1): Likewise.
8392 (set_gdb_breakpoint): Likewise.
8393 (clear_breakpoint_conditions): Change parameter type to
8394 'struct gdb_breakpoint *'.
8395 (clear_breakpoint_commands): Likewise.
8396 (clear_breakpoint_conditions_and_commands): Likewise.
8397 (add_condition_to_breakpoint): Likewise.
8398 (add_breakpoint_condition): Likewise.
8399 (add_commands_to_breakpoint): Likewise.
8400 (check_breakpoints): Check other_breakpoint.
8401 (clone_one_breakpoint): Clone breakpopint according to its type.
8402 * mem-break.h (struct gdb_breakpoint): Declare.
8403 (set_gdb_breakpoint): Update declaration.
8404 (clear_breakpoint_conditions_and_commands): Likewise.
8405 (add_breakpoint_condition): Likewise.
8406 (add_breakpoint_commands): Likewise.
8407 * server.c (process_point_options): Change parameter type to
8408 'struct gdb_breakpoint *'.
8409
811f8301
YQ
84102016-07-21 Yao Qi <yao.qi@linaro.org>
8411
8412 * mem-break.c (set_breakpoint_at): Rename it to ...
8413 (set_breakpoint_type_at): ... it.
8414 (set_breakpoint_at): Call set_breakpoint_type_at.
8415 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8416 * mem-break.h (set_breakpoint_at): Update comments.
8417
b1c51e36
CLT
84182016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8419
8420 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8421 to buf parameter.
8422 (nios2_store_gregset): Likewise.
8423
ced2dffb
PA
84242016-07-01 Pedro Alves <palves@redhat.com>
8425 Antoine Tremblay <antoine.tremblay@ericsson.com>
8426
8427 * linux-low.c: Change interface to take the target lwp_info
8428 pointer directly and return void. Handle detaching from a zombie
8429 thread.
8430 (linux_detach_lwp_callback): New function.
8431 (linux_detach): Detach from the leader thread after detaching from
8432 the clone threads.
8433
2ac09a5b
YQ
84342016-06-28 Yao Qi <yao.qi@linaro.org>
8435
8436 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8437 for variable new_offset.
8438 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8439 (aarch64_ftrace_insn_reloc_cb): Likewise.
8440 (aarch64_ftrace_insn_reloc_tb): Likewise.
8441 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8442 PRIx64 instead of PRIx32.
8443
79e7fd4f
YQ
84442016-06-28 Yao Qi <yao.qi@linaro.org>
8445
8446 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8447 (the_low_target): Install arm_get_syscall_trapinfo.
8448
061fc021
YQ
84492016-06-28 Yao Qi <yao.qi@linaro.org>
8450
8451 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8452 function.
8453 (the_low_target): Install aarch64_get_syscall_trapinfo.
8454
4cc32bec
YQ
84552016-06-28 Yao Qi <yao.qi@linaro.org>
8456
8457 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8458 Callers updated.
8459 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8460 Remove parameter sysno.
8461 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8462 sysret.
8463
782c1122
AA
84642016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8465
8466 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8467 (s390_emit_ne_goto): Likewise.
8468 (s390_emit_lt_goto): Likewise.
8469 (s390_emit_le_goto): Likewise.
8470 (s390_emit_gt_goto): Likewise.
8471 (s390_emit_ge_goto): Likewise.
8472 (s390x_emit_eq_goto): Likewise.
8473 (s390x_emit_ne_goto): Likewise.
8474 (s390x_emit_lt_goto): Likewise.
8475 (s390x_emit_le_goto): Likewise.
8476 (s390x_emit_gt_goto): Likewise.
8477 (s390x_emit_ge_goto): Likewise.
8478 (s390_emit_ops_impl): Mark variable static.
8479 (s390x_emit_ops): Likewise.
8480
2e7b624b
YQ
84812016-06-17 Yao Qi <yao.qi@linaro.org>
8482
8483 * linux-low.c (handle_extended_wait): Call
8484 uninsert_reinsert_breakpoints for the parent process. Remove
8485 reinsert breakpoints from the child process. Reinsert them to
8486 the parent process when vfork is done.
8487 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8488 (reinsert_reinsert_breakpoints): New function.
8489 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8490 (reinsert_reinsert_breakpoints): Declare.
8491
8a81c5d7
YQ
84922016-06-17 Yao Qi <yao.qi@linaro.org>
8493
8494 * linux-low.c (handle_extended_wait): If the parent is doing
8495 step-over, remove the reinsert breakpoints from the forked child.
8496
f50bf8e5
YQ
84972016-06-17 Yao Qi <yao.qi@linaro.org>
8498
8499 * linux-low.c (unsuspend_all_lwps): Declare.
8500 (linux_low_filter_event): If thread exited, call finish_step_over.
8501 If step-over is finished, unsuspend other threads.
8502
8376a3cb
YQ
85032016-06-17 Yao Qi <yao.qi@linaro.org>
8504
8505 * linux-low.c (linux_resume_one_lwp_throw): Assert
8506 has_reinsert_breakpoints returns false.
8507 * mem-break.c (delete_disabled_breakpoints): Assert
8508 bp type isn't reinsert_breakpoint.
8509
f79b145d
YQ
85102016-06-17 Yao Qi <yao.qi@linaro.org>
8511
8512 * linux-low.c (maybe_hw_step): New function.
8513 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8514 (finish_step_over): Switch current_thread to lwp temporarily,
8515 and assert has_reinsert_breakpoints returns true.
8516 (proceed_one_lwp): Call maybe_hw_step.
8517 * mem-break.c (has_reinsert_breakpoints): New function.
8518 * mem-break.h (has_reinsert_breakpoints): Declare.
8519
0ae534d2
JT
85202016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8521
8522 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8523
fcdad592
YQ
85242016-05-17 Yao Qi <yao.qi@linaro.org>
8525
8526 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8527 instead of find_inferior.
8528
9e784964
YQ
85292016-05-05 Yao Qi <yao.qi@linaro.org>
8530
8531 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8532 Initialize res to zero.
8533
cf2ebb6e
YQ
85342016-05-05 Yao Qi <yao.qi@linaro.org>
8535
8536 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8537 to uint32_t.
8538
c1aebf87
UW
85392016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8540
8541 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8542 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8543 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8544
35fd2deb 85452016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8546 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8547
8548 * tracepoint.c (write_inferior_int8): New function.
8549 (cmd_qtenable_disable): Write enable flag using
8550 write_inferior_int8.
8551
484b3c32
YQ
85522016-04-25 Yao Qi <yao.qi@linaro.org>
8553
8554 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8555 (need_step_over_p): Return zero if the LWP has pending signals
8556 can be delivered on software single step target.
8557
85ba7d86
YQ
85582016-04-25 Yao Qi <yao.qi@linaro.org>
8559
8560 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8561 return instead of error.
8562
3539aa13
YQ
85632016-04-22 Yao Qi <yao.qi@linaro.org>
8564
8565 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8566 to 23.
8567
5b061e98
YQ
85682016-04-22 Yao Qi <yao.qi@linaro.org>
8569
8570 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8571 signal when stepping over breakpoint with software single
8572 step.
8573
3451269c
PA
85742016-04-21 Pedro Alves <palves@redhat.com>
8575
8576 * linux-s390-low.c (s390_collect_ptrace_register)
8577 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8578 add casts.
8579 (s390_check_regset): Use void * instead of gdb_byte *.
8580
a2358508
PA
85812016-04-20 Pedro Alves <palves@redhat.com>
8582
8583 * configure: Renegerate.
8584
6885166d
YQ
85852016-04-20 Yao Qi <yao.qi@linaro.org>
8586
8587 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8588 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8589 number 16.
8590 (arm_store_gregset): Likewise.
8591
2b863f51
WT
85922016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8593
8594 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8595 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8596 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8597 (amd64-avx-mpx-linux.c): New rules.
8598 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8599 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8600 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8601 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8602 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8603 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8604 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8605 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8606 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8607 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8608 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8609 * linux-x86-low.c (x86_linux_read_description): Add case for
8610 X86_XSTATE_AVX_MPX_MASK.
8611 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8612 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8613 init_registers_i386_avx_mpx_linux.
8614 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8615 (initialize_low_tracepoint): Call
8616 init_registers_i386_avx_mpx_linux.
8617 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8618 (initialize_low_tracepoint): Call
8619 init_registers_amd64_avx_mpx_linux.
8620 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8621 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8622 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8623 declarations.
8624
9b30624b
PA
86252016-04-18 Pedro Alves <palves@redhat.com>
8626
8627 * configure: Regenerate.
8628
45e3745e
AT
86292016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8630
8631 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8632 (aarch64_emit_sub): Likewise.
8633
2afc13ff
PA
86342016-04-12 Pedro Alves <palves@redhat.com>
8635
8636 * utils.c (prepare_to_throw_exception): Delete.
8637
6e774b13
SM
86382016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8639
8640 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8641
4dca19f8
MK
86422016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8643
8644 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8645
d0a9981f
MK
86462016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8647
8648 * linux-aarch64-ipa.c: Add <elf.h> include.
8649 * linux-ppc-ipa.c: Add <elf.h> include.
8650 * linux-s390-ipa.c: Add <elf.h> include.
8651
252db07e
MK
86522016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8653
8654 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8655 (get_raw_reg_ptr): Likewise.
8656 (get_trace_state_variable_value_ptr): Likewise.
8657 (set_trace_state_variable_value_ptr): Likewise.
8658 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8659 char *.
8660
14e2b6d9
MK
86612016-03-31 Wei-cheng Wang <cole945@gmail.com>
8662 Marcin Kościelnicki <koriakin@0x04.net>
8663
8664 PR/17221
8665 * linux-ppc-low.c (emit_insns): New function.
8666 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8667 (ppc_emit_prologue): New function.
8668 (ppc_emit_epilogue): New function.
8669 (ppc_emit_add): New function.
8670 (ppc_emit_sub): New function.
8671 (ppc_emit_mul): New function.
8672 (ppc_emit_lsh): New function.
8673 (ppc_emit_rsh_signed): New function.
8674 (ppc_emit_rsh_unsigned): New function.
8675 (ppc_emit_ext): New function.
8676 (ppc_emit_zero_ext): New function.
8677 (ppc_emit_log_not): New function.
8678 (ppc_emit_bit_and): New function.
8679 (ppc_emit_bit_or): New function.
8680 (ppc_emit_bit_xor): New function.
8681 (ppc_emit_bit_not): New function.
8682 (ppc_emit_equal): New function.
8683 (ppc_emit_less_signed): New function.
8684 (ppc_emit_less_unsigned): New function.
8685 (ppc_emit_ref): New function.
8686 (ppc_emit_const): New function.
8687 (ppc_emit_reg): New function.
8688 (ppc_emit_pop): New function.
8689 (ppc_emit_stack_flush): New function.
8690 (ppc_emit_swap): New function.
8691 (ppc_emit_stack_adjust): New function.
8692 (ppc_emit_call): New function.
8693 (ppc_emit_int_call_1): New function.
8694 (ppc_emit_void_call_2): New function.
8695 (ppc_emit_if_goto): New function.
8696 (ppc_emit_goto): New function.
8697 (ppc_emit_eq_goto): New function.
8698 (ppc_emit_ne_goto): New function.
8699 (ppc_emit_lt_goto): New function.
8700 (ppc_emit_le_goto): New function.
8701 (ppc_emit_gt_goto): New function.
8702 (ppc_emit_ge_goto): New function.
8703 (ppc_write_goto_address): New function.
8704 (ppc_emit_ops_impl): New static variable.
8705 (ppc64v1_emit_prologue): New function.
8706 (ppc64v2_emit_prologue): New function.
8707 (ppc64_emit_epilogue): New function.
8708 (ppc64_emit_add): New function.
8709 (ppc64_emit_sub): New function.
8710 (ppc64_emit_mul): New function.
8711 (ppc64_emit_lsh): New function.
8712 (ppc64_emit_rsh_signed): New function.
8713 (ppc64_emit_rsh_unsigned): New function.
8714 (ppc64_emit_ext): New function.
8715 (ppc64_emit_zero_ext): New function.
8716 (ppc64_emit_log_not): New function.
8717 (ppc64_emit_bit_and): New function.
8718 (ppc64_emit_bit_or): New function.
8719 (ppc64_emit_bit_xor): New function.
8720 (ppc64_emit_bit_not): New function.
8721 (ppc64_emit_equal): New function.
8722 (ppc64_emit_less_signed): New function.
8723 (ppc64_emit_less_unsigned): New function.
8724 (ppc64_emit_ref): New function.
8725 (ppc64_emit_const): New function.
8726 (ppc64v1_emit_reg): New function.
8727 (ppc64v2_emit_reg): New function.
8728 (ppc64_emit_pop): New function.
8729 (ppc64_emit_stack_flush): New function.
8730 (ppc64_emit_swap): New function.
8731 (ppc64v1_emit_call): New function.
8732 (ppc64v2_emit_call): New function.
8733 (ppc64v1_emit_int_call_1): New function.
8734 (ppc64v2_emit_int_call_1): New function.
8735 (ppc64v1_emit_void_call_2): New function.
8736 (ppc64v2_emit_void_call_2): New function.
8737 (ppc64_emit_if_goto): New function.
8738 (ppc64_emit_eq_goto): New function.
8739 (ppc64_emit_ne_goto): New function.
8740 (ppc64_emit_lt_goto): New function.
8741 (ppc64_emit_le_goto): New function.
8742 (ppc64_emit_gt_goto): New function.
8743 (ppc64_emit_ge_goto): New function.
8744 (ppc64v1_emit_ops_impl): New static variable.
8745 (ppc64v2_emit_ops_impl): New static variable.
8746 (ppc_emit_ops): New function.
8747 (linux_low_target): Wire in ppc_emit_ops.
8748
a2174ba4
MK
87492016-03-31 Wei-cheng Wang <cole945@gmail.com>
8750 Marcin Kościelnicki <koriakin@0x04.net>
8751
8752 PR/17221
8753 * Makefile.in: Add powerpc-*-ipa.o
8754 * configure.srv: Add ipa_obj for powerpc*-linux.
8755 * linux-ppc-ipa.c: New file.
8756 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8757 includes.
8758 (PPC_FIELD): New macro.
8759 (PPC_SEXT): New macro.
8760 (PPC_OP6): New macro.
8761 (PPC_BO): New macro.
8762 (PPC_LI): New macro.
8763 (PPC_BD): New macro.
8764 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8765 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8766 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8767 (ppc_get_thread_area): New function.
8768 (is_elfv2_inferior): New function.
8769 (gen_ds_form): New function.
8770 (GEN_STD): New macro.
8771 (GEN_STDU): New macro.
8772 (GEN_LD): New macro.
8773 (GEN_LDU): New macro.
8774 (gen_d_form): New function.
8775 (GEN_ADDI): New macro.
8776 (GEN_ADDIS): New macro.
8777 (GEN_LI): New macro.
8778 (GEN_LIS): New macro.
8779 (GEN_ORI): New macro.
8780 (GEN_ORIS): New macro.
8781 (GEN_LWZ): New macro.
8782 (GEN_STW): New macro.
8783 (GEN_STWU): New macro.
8784 (gen_xfx_form): New function.
8785 (GEN_MFSPR): New macro.
8786 (GEN_MTSPR): New macro.
8787 (GEN_MFCR): New macro.
8788 (GEN_MTCR): New macro.
8789 (GEN_SYNC): New macro.
8790 (GEN_LWSYNC): New macro.
8791 (gen_x_form): New function.
8792 (GEN_OR): New macro.
8793 (GEN_MR): New macro.
8794 (GEN_LWARX): New macro.
8795 (GEN_STWCX): New macro.
8796 (GEN_CMPW): New macro.
8797 (gen_md_form): New function.
8798 (GEN_RLDICL): New macro.
8799 (GEN_RLDICR): New macro.
8800 (gen_i_form): New function.
8801 (GEN_B): New macro.
8802 (GEN_BL): New macro.
8803 (gen_b_form): New function.
8804 (GEN_BNE): New macro.
8805 (GEN_LOAD): New macro.
8806 (GEN_STORE): New macro.
8807 (gen_limm): New function.
8808 (gen_atomic_xchg): New function.
8809 (gen_call): New function.
8810 (ppc_relocate_instruction): New function.
8811 (ppc_install_fast_tracepoint_jump_pad): New function.
8812 (ppc_get_min_fast_tracepoint_insn_len): New function.
8813 (ppc_get_ipa_tdesc_idx): New function.
8814 (the_low_target): Wire in the new functions.
8815 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8816 tdescs.
8817 * linux-ppc-tdesc.h: New file.
8818
a13c4696
MK
88192016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8820
8821 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8822 (alloc_jump_pad_buffer): New function.
8823 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8824 (alloc_jump_pad_buffer): New function.
8825 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8826 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8827 (alloc_jump_pad_buffer): New function.
8828 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8829 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8830 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8831 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8832
1cda1512
MK
88332016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8834
8835 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8836 * linux-amd64-ipa.c: Likewise.
8837 * linux-i386-ipa.c: Likewise.
8838 * linux-s390-ipa.c: Likewise.
8839 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8840 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8841 set_trace_state_variable_value_ptr.
8842 (struct ipa_sym_addresses): Likewise.
8843 (symbol_list): Likewise.
8844 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8845 accessing gdb_collect directly.
8846 (gdb_collect_ptr_type): New typedef.
8847 (get_raw_reg_ptr_type): New typedef.
8848 (get_trace_state_variable_value_ptr_type): New typedef.
8849 (set_trace_state_variable_value_ptr_type): New typedef.
8850 (gdb_collect_ptr): New global.
8851 (get_raw_reg_ptr): New global.
8852 (get_trace_state_variable_value_ptr): New global.
8853 (set_trace_state_variable_value_ptr): New global.
8854 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8855 accessing get_raw_reg directly.
8856 (get_get_tsv_func_addr): Likewise for
8857 get_trace_state_variable_value_ptr.
8858 (get_set_tsv_func_addr): Likewise for
8859 set_trace_state_variable_value_ptr.
8860 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8861
72fb5488
SM
88622016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8863
8864 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8865
28170b88
MK
88662016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8867
8868 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8869 packets.
8870 (relocate_instruction): Remove own_buf.
8871 * server.c (own_buf): Make global.
8872 (handle_v_requests): Make global.
8873 * server.h (own_buf): New declaration.
8874 (handle_v_requests): New prototype.
8875
f39e8743
MK
88762016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8877
8878 PR 18377
8879 * linux-s390-low.c (add_insns): New function.
8880 (s390_emit_prologue): New function.
8881 (s390_emit_epilogue): New function.
8882 (s390_emit_add): New function.
8883 (s390_emit_sub): New function.
8884 (s390_emit_mul): New function.
8885 (s390_emit_lsh): New function.
8886 (s390_emit_rsh_signed): New function.
8887 (s390_emit_rsh_unsigned): New function.
8888 (s390_emit_ext): New function.
8889 (s390_emit_log_not): New function.
8890 (s390_emit_bit_and): New function.
8891 (s390_emit_bit_or): New function.
8892 (s390_emit_bit_xor): New function.
8893 (s390_emit_bit_not): New function.
8894 (s390_emit_equal): New function.
8895 (s390_emit_less_signed): New function.
8896 (s390_emit_less_unsigned): New function.
8897 (s390_emit_ref): New function.
8898 (s390_emit_if_goto): New function.
8899 (s390_emit_goto): New function.
8900 (s390_write_goto_address): New function.
8901 (s390_emit_litpool): New function.
8902 (s390_emit_const): New function.
8903 (s390_emit_call): New function.
8904 (s390_emit_reg): New function.
8905 (s390_emit_pop): New function.
8906 (s390_emit_stack_flush): New function.
8907 (s390_emit_zero_ext): New function.
8908 (s390_emit_swap): New function.
8909 (s390_emit_stack_adjust): New function.
8910 (s390_emit_set_r2): New function.
8911 (s390_emit_int_call_1): New function.
8912 (s390_emit_void_call_2): New function.
8913 (s390_emit_eq_goto): New function.
8914 (s390_emit_ne_goto): New function.
8915 (s390_emit_lt_goto): New function.
8916 (s390_emit_le_goto): New function.
8917 (s390_emit_gt_goto): New function.
8918 (s390_emit_ge_goto): New function.
8919 (s390x_emit_prologue): New function.
8920 (s390x_emit_epilogue): New function.
8921 (s390x_emit_add): New function.
8922 (s390x_emit_sub): New function.
8923 (s390x_emit_mul): New function.
8924 (s390x_emit_lsh): New function.
8925 (s390x_emit_rsh_signed): New function.
8926 (s390x_emit_rsh_unsigned): New function.
8927 (s390x_emit_ext): New function.
8928 (s390x_emit_log_not): New function.
8929 (s390x_emit_bit_and): New function.
8930 (s390x_emit_bit_or): New function.
8931 (s390x_emit_bit_xor): New function.
8932 (s390x_emit_bit_not): New function.
8933 (s390x_emit_equal): New function.
8934 (s390x_emit_less_signed): New function.
8935 (s390x_emit_less_unsigned): New function.
8936 (s390x_emit_ref): New function.
8937 (s390x_emit_if_goto): New function.
8938 (s390x_emit_const): New function.
8939 (s390x_emit_call): New function.
8940 (s390x_emit_reg): New function.
8941 (s390x_emit_pop): New function.
8942 (s390x_emit_stack_flush): New function.
8943 (s390x_emit_zero_ext): New function.
8944 (s390x_emit_swap): New function.
8945 (s390x_emit_stack_adjust): New function.
8946 (s390x_emit_int_call_1): New function.
8947 (s390x_emit_void_call_2): New function.
8948 (s390x_emit_eq_goto): New function.
8949 (s390x_emit_ne_goto): New function.
8950 (s390x_emit_lt_goto): New function.
8951 (s390x_emit_le_goto): New function.
8952 (s390x_emit_gt_goto): New function.
8953 (s390x_emit_ge_goto): New function.
8954 (s390_emit_ops): New function.
8955 (struct linux_target_ops): Fill in emit_ops hook.
8956
abd9baf9
MK
89572016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8958
8959 PR 18377
8960 * Makefile.in: Add s390 IPA files.
8961 * configure.srv: Build IPA for s390.
8962 * linux-s390-ipa.c: New file.
8963 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8964 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8965 (tdesc_s390_linux32): Likewise.
8966 (init_registers_s390_linux32v1): Likewise.
8967 (tdesc_s390_linux32v1): Likewise.
8968 (init_registers_s390_linux32v2): Likewise.
8969 (tdesc_s390_linux32v2): Likewise.
8970 (init_registers_s390_linux64): Likewise.
8971 (tdesc_s390_linux64): Likewise.
8972 (init_registers_s390_linux64v1): Likewise.
8973 (tdesc_s390_linux64v1): Likewise.
8974 (init_registers_s390_linux64v2): Likewise.
8975 (tdesc_s390_linux64v2): Likewise.
8976 (init_registers_s390_te_linux64): Likewise.
8977 (tdesc_s390_te_linux64): Likewise.
8978 (init_registers_s390_vx_linux64): Likewise.
8979 (tdesc_s390_vx_linux64): Likewise.
8980 (init_registers_s390_tevx_linux64): Likewise.
8981 (tdesc_s390_tevx_linux64): Likewise.
8982 (init_registers_s390x_linux64): Likewise.
8983 (tdesc_s390x_linux64): Likewise.
8984 (init_registers_s390x_linux64v1): Likewise.
8985 (tdesc_s390x_linux64v1): Likewise.
8986 (init_registers_s390x_linux64v2): Likewise.
8987 (tdesc_s390x_linux64v2): Likewise.
8988 (init_registers_s390x_te_linux64): Likewise.
8989 (tdesc_s390x_te_linux64): Likewise.
8990 (init_registers_s390x_vx_linux64): Likewise.
8991 (tdesc_s390x_vx_linux64): Likewise.
8992 (init_registers_s390x_tevx_linux64): Likewise.
8993 (tdesc_s390x_tevx_linux64): Likewise.
8994 (have_hwcap_s390_vx): New static variable.
8995 (s390_arch_setup): Fill have_hwcap_s390_vx.
8996 (s390_get_thread_area): New function.
8997 (s390_ft_entry_gpr_esa): New const.
8998 (s390_ft_entry_gpr_zarch): New const.
8999 (s390_ft_entry_misc): New const.
9000 (s390_ft_entry_fr): New const.
9001 (s390_ft_entry_vr): New const.
9002 (s390_ft_main_31): New const.
9003 (s390_ft_main_64): New const.
9004 (s390_ft_exit_fr): New const.
9005 (s390_ft_exit_vr): New const.
9006 (s390_ft_exit_misc): New const.
9007 (s390_ft_exit_gpr_esa): New const.
9008 (s390_ft_exit_gpr_zarch): New const.
9009 (append_insns): New function.
9010 (s390_relocate_instruction): New function.
9011 (s390_install_fast_tracepoint_jump_pad): New function.
9012 (s390_get_min_fast_tracepoint_insn_len): New function.
9013 (s390_get_ipa_tdesc_idx): New function.
9014 (struct linux_target_ops): Wire in the above functions.
9015 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9016 * linux-s390-tdesc.h: New file.
9017
a4105d04
MK
90182016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9019
9020 * linux-s390-low.c (s390_supports_tracepoints): New function.
9021 (struct linux_target_ops): Fill supports_tracepoints hook.
9022
35ac8b3e
YQ
90232016-03-18 Yao Qi <yao.qi@linaro.org>
9024
9025 * linux-low.c (lwp_signal_can_be_delivered): New function.
9026 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9027
94610ec4
YQ
90282016-03-18 Yao Qi <yao.qi@linaro.org>
9029
9030 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9031 0 if signal is enqueued. Remove 'signal' from one debugging
9032 message. Move one debugging message to some lines below.
9033 Remove code setting 'signal' to 0.
9034
80aea927
YQ
90352016-03-18 Yao Qi <yao.qi@linaro.org>
9036
9037 * linux-low.c (linux_low_filter_event): Remove redundant
9038 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9039
b04fd3be
MK
90402016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9041
9042 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9043 (struct linux_target_ops): Wire in the above.
9044
c40c8d4b
YQ
90452016-03-03 Yao Qi <yao.qi@linaro.org>
9046
9047 * linux-low.c: Update comments to start_step_over.
9048
0f8288ae
YQ
90492016-03-03 Yao Qi <yao.qi@linaro.org>
9050
9051 PR server/19736
9052 * linux-low.c (handle_extended_wait): Set child suspended
9053 if event_lwp->bp_reinsert isn't zero.
9054
fdbd04a8
YQ
90552016-03-02 Yao Qi <yao.qi@linaro.org>
9056
9057 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9058 enqueue_pending_signal.
9059
6896a8fa
MK
90602016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9061
9062 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9063 is actually loaded.
9064
ab503087
MK
90652016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9066
9067 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9068 (s390_regmap_3264) [!__s390x__]: New global.
9069 (s390_collect_ptrace_register): Skip map entries containing -1.
9070 (s390_supply_ptrace_register): Ditto.
9071 (s390_fill_gprs_high): New function.
9072 (s390_store_gprs_high): New function.
9073 (s390_regsets): Add NT_S390_HIGH_GPRS.
9074 (s390_get_hwcap): Enable on 31-bit.
9075 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9076 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9077 Detect NT_S390_HIGH_GPRS.
9078 (s390_usrregs_info_3264): Enable on 31-bit.
9079 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9080 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9081
ae91f625
MK
90822016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9083
9084 PR gdb/13808
9085 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9086 * configure.srv: Ditto.
9087 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9088 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9089 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9090 (init_registers_amd64_linux): Remove prototype.
9091 (tdesc_amd64_linux): Remove declaration.
9092 (get_ipa_tdesc): New function.
9093 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9094 initialize remaining tdescs.
9095 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9096 (init_registers_i386_linux): Remove prototype.
9097 (tdesc_i386_linux): Remove declaration.
9098 (get_ipa_tdesc): New function.
9099 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9100 initialize remaining tdescs.
9101 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9102 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9103 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9104 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9105 (x86_get_ipa_tdesc_idx): New function.
9106 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9107 * linux-x86-tdesc.h: New file.
9108 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9109 (target_get_ipa_tdesc_idx): New macro.
9110 * tracepoint.c (ipa_tdesc_idx): New macro.
9111 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9112 (symbol_list): Add ipa_tdesc_idx.
9113 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9114 (ipa_tdesc): Remove.
9115 (ipa_tdesc_idx): New variable.
9116 (get_context_regcache): Use get_ipa_tdesc.
9117 (gdb_collect): Ditto.
9118 (gdb_probe): Ditto.
9119 * tracepoint.h (get_ipa_tdesc): New prototype.
9120 (ipa_tdesc): Remove.
9121
e7ad2f14
PA
91222016-02-24 Pedro Alves <palves@redhat.com>
9123
9124 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9125 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9126 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9127 Factor out common code between the USE_SIGTRAP_SIGINFO and
9128 !USE_SIGTRAP_SIGINFO blocks.
9129 (linux_low_filter_event): Call save_stop_reason instead of
9130 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9131 Update comments.
9132 (linux_wait_1): Update comments.
9133
657f9cde
WW
91342016-02-24 Wei-cheng Wang <cole945@gmail.com>
9135
9136 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9137 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9138 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9139 ppc_insert_point, ppc_remove_point.
9140
b00b61e1
MK
91412016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9142
9143 * linux-s390-low.c (s390_supports_z_point_type): New function.
9144 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9145
553cb527
YQ
91462016-02-16 Yao Qi <yao.qi@linaro.org>
9147
9148 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9149 PC. Get pc from regcache_read_pc.
9150
a5652c21
YQ
91512016-02-12 Yao Qi <yao.qi@linaro.org>
9152
9153 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9154 or linux_get_pc_32bit.
9155 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9156
ed443b61
YQ
91572016-02-12 Yao Qi <yao.qi@linaro.org>
9158
9159 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9160 arm_linux_get_next_pcs_fixup.
9161
020ecd38
MK
91622016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9163
9164 * tracepoint.c (x_tracepoint_action_download): Change
9165 write_inferior_data_ptr to write_inferior_data_pointer.
9166 (cmd_qtstart): Likewise.
9167 (write_inferior_data_ptr): Remove.
9168 (download_agent_expr): Change write_inferior_data_ptr to
9169 write_inferior_data_pointer.
9170 (download_tracepoint_1): Likewise.
9171 (download_tracepoint): Likewise.
9172 (download_trace_state_variables): Likewise.
9173
7cae9051
WW
91742016-02-11 Wei-cheng Wang <cole945@gmail.com>
9175 Marcin Kościelnicki <koriakin@0x04.net>
9176
9177 * tracepoint.c (struct tracepoint_action_ops): Remove.
9178 (struct tracepoint_action): Remove ops.
9179 (m_tracepoint_action_download, r_tracepoint_action_download)
9180 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9181 size and offset accordingly.
9182 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9183 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9184 (tracepoint_action_send, tracepoint_action_download): New functions.
9185 Helpers for trace action handlers.
9186 (add_tracepoint_action): Remove setup actions ops.
9187 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9188
9f6a71b4
YQ
91892016-02-10 Yao Qi <yao.qi@linaro.org>
9190
9191 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9192
1e94266c
SM
91932016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9194
9195 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9196 to AC_OUTPUT.
9197 * configure: Regenerate.
9198
8adce034
SM
91992016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9200
9201 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9202 void * to gdb_byte *.
9203 * linux-low.c (siginfo_fixup): Likewise.
9204 (linux_xfer_siginfo): Likewise.
9205 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9206 Likewise.
9207 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9208
93813b37
WT
92092016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9210
9211 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9212 to srv_tgtobj.
9213 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9214 to srv_tgtobj.
9215 * linux-x86-low.c [__x86_64__]: Include
9216 "nat/amd64-linux-siginfo.h".
9217 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9218 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9219 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9220 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9221 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9222 (cpt_si_fd, si_timerid, si_overrun): Move from
9223 nat/amd64-linux-siginfo.c.
9224 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9225
8424cc97
SM
92262016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9227
9228 * server.c (skip_to_semicolon): Remove.
9229 (process_point_options): Use strchrnul instead of
9230 skip_to_semicolon.
9231
4d18591b
YQ
92322016-01-26 Yao Qi <yao.qi@linaro.org>
9233
9234 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9235 * linux-low.c (install_software_single_step_breakpoints): Don't
9236 call regcache_read_pc.
9237 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9238 argument pc.
9239
d8020970
YQ
92402016-01-26 Yao Qi <yao.qi@linaro.org>
9241
9242 * linux-low.c (install_software_single_step_breakpoints): Call
9243 regcache_read_pc instead of get_pc.
9244
8b207339
YQ
92452016-01-26 Yao Qi <yao.qi@linaro.org>
9246
9247 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9248 (unblock_async_io): Rename to ...
9249 (block_unblock_async_io): ... it. New function.
9250 (enable_async_io): Don't install SIGIO handler. Unblock it
9251 instead.
9252 (disable_async_io): Don't ignore SIGIO. Block it instead.
9253 (initialize_async_io): Install SIGIO handler. Don't call
9254 unblock_async_io.
9255
18879fef
YQ
92562016-01-26 Yao Qi <yao.qi@linaro.org>
9257
9258 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9259 first character is '\003', call *the_target->request_interrupt.
9260
a0f8e08a
YQ
92612016-01-25 Yao Qi <yao.qi@linaro.org>
9262
9263 * remote-utils.c (new_thread_notify): Remove.
9264 (dead_thread_notify): Likewise.
9265 * remote-utils.h (new_thread_notify): Remove declaration.
9266 (dead_thread_notify): Likewise.
9267
cc5fd9ab
MK
92682016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9269
9270 * gdb.trace/pending.exp: Fix expected message on continue.
9271
99e8eb11
MK
92722016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9273
9274 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9275 it works properly on big-endian machines where sizeof (CORE_ADDR)
9276 != sizeof (void *).
9277
a994041d
PA
92782016-01-21 Pedro Alves <palves@redhat.com>
9279
9280 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9281 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9282 * configure: Regenerate.
9283
f7a6a40d
YQ
92842016-01-21 Yao Qi <yao.qi@linaro.org>
9285
9286 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9287 is_thumb and set it according to CPSR saved on the stack.
9288 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9289 arm_sigreturn_next_pc.
9290
6f69e520
YQ
92912016-01-18 Yao Qi <yao.qi@linaro.org>
9292
9293 * linux-low.c (linux_set_pc_64bit): New function.
9294 (linux_get_pc_64bit): New function.
9295 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9296 Declare.
9297 * linux-sparc-low.c (debug_threads): Remove declaration.
9298 (sparc_get_pc): Remove.
9299 (the_low_target): Use linux_get_pc_64bit instead of
9300 sparc_get_pc.
9301 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9302 (the_low_target): Use linux_get_pc_64bit and
9303 linux_set_pc_64bit.
9304
276d4552
YQ
93052016-01-18 Yao Qi <yao.qi@linaro.org>
9306
9307 * linux-arm-low.c (debug_threads): Remove declaration.
9308 (arm_get_pc, arm_set_pc): Remove.
9309 (the_low_target): Use linux_get_pc_32bit and
9310 linux_set_pc_32bit.
9311 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9312 (the_low_target): Use linux_get_pc_32bit and
9313 linux_set_pc_32bit.
9314 * linux-cris-low.c (debug_threads): Remove declaration.
9315 (cris_get_pc, cris_set_pc,): Remove.
9316 (the_low_target): Use linux_get_pc_32bit and
9317 linux_set_pc_32bit.
9318 * linux-crisv32-low.c (debug_threads): Remove declaration.
9319 (cris_get_pc, cris_set_pc): Remove.
9320 (the_low_target): Use linux_get_pc_32bit and
9321 linux_set_pc_32bit.
9322 * linux-low.c: Include inttypes.h.
9323 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9324 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9325 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9326 (the_low_target): Use linux_get_pc_32bit and
9327 linux_set_pc_32bit.
9328 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9329 (the_low_target): Use linux_get_pc_32bit and
9330 linux_set_pc_32bit.
9331 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9332 (the_low_target): Use linux_get_pc_32bit and
9333 linux_set_pc_32bit.
9334 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9335 (the_low_target): Use linux_get_pc_32bit and
9336 linux_set_pc_32bit.
9337 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9338 (the_low_target): Use linux_get_pc_32bit and
9339 linux_set_pc_32bit.
9340
eb0edac8
GB
93412016-01-18 Gary Benson <gbenson@redhat.com>
9342
9343 * configure.ac (AC_FUNC_FORK): New check.
9344 * config.in: Regenerate.
9345 * configure: Likewise.
9346
1b451dda
YQ
93472016-01-14 Yao Qi <yao.qi@linaro.org>
9348
9349 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9350 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9351 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9352 arm_get_next_pcs_ctor.
9353
82075af2
JS
93542016-01-12 Josh Stone <jistone@redhat.com>
9355 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9356
9357 * inferiors.h: Include "gdb_vecs.h".
9358 (struct process_info): Add syscalls_to_catch.
9359 * inferiors.c (remove_process): Free syscalls_to_catch.
9360 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9361 syscall_return stops.
9362 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9363 * server.c (handle_general_set): Handle QCatchSyscalls.
9364 (handle_query): Report support for QCatchSyscalls.
9365 * target.h (struct target_ops): Add supports_catch_syscall.
9366 (target_supports_catch_syscall): New macro.
9367 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9368 (struct lwp_info): Add syscall_state.
9369 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9370 Maintain syscall_state and syscalls_to_catch across exec.
9371 (get_syscall_trapinfo): New function, proxy to the_low_target.
9372 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9373 (linux_low_filter_event): Toggle syscall_state entry/return for
9374 syscall traps, and set it ignored for all others.
9375 (gdb_catching_syscalls_p): New function.
9376 (gdb_catch_this_syscall_p): New function.
9377 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9378 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9379 (linux_supports_catch_syscall): New function.
9380 (linux_target_ops): Install it.
9381 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9382 (the_low_target): Install it.
9383
8f13a3ce
MF
93842016-01-12 Mike Frysinger <vapier@gentoo.org>
9385
9386 * acinclude.m4: Include new ../warning.m4 file.
9387 * configure: Regenerated.
9388 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9389
5b3da067
MF
93902016-01-12 Mike Frysinger <vapier@gentoo.org>
9391
9392 * ax.c (is_goto_target): Mark static.
9393 * linux-low.c (register_addr): Likewise.
9394 (linux_fetch_registers, linux_store_registers): Likewise.
9395 * mem-break.c (any_persistent_commands): Fix old prototype.
9396 (add_commands_to_breakpoint): Mark static.
9397 * regcache.c (find_register_by_name): Delete unused func.
9398 * remote-utils.c (hex_or_minus_one): Mark static.
9399 * server.c (monitor_show_help): Mark static.
9400 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9401 handle_v_requests): Likewise.
9402
bc504a31
PA
94032016-01-12 Pedro Alves <palves@redhat.com>
9404
9405 Remove use of the registered trademark symbol throughout.
9406
5a0dd67a
YQ
94072016-01-08 Yao Qi <yao.qi@linaro.org>
9408
9409 * remote-utils.c (getpkt): If c is '\003', call target hook
9410 request_interrupt.
9411
b2ca446f
YQ
94122016-01-06 Yao Qi <yao.qi@linaro.org>
9413
9414 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9415 linux-aarch32-low.c.
9416 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9417 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9418 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9419 (thumb2_breakpoint): Declare.
9420 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9421 linux-aarch32-low.h.
9422 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9423 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9424 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9425
edd88788
JB
94262016-01-01 Joel Brobecker <brobecker@adacore.com>
9427
9428 * gdbreplay.c (gdbreplay_version): Change copyright year in
9429 version message.
9430 * server.c (gdbserver_version): Likewise.
9431
65da7f14
PP
94322015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9433
9434 * server.c (crc32_table): Delete.
9435 (crc32): Use libiberty's xcrc32 function.
9436
4abd5ed2
JB
94372015-12-22 Joel Brobecker <brobecker@adacore.com>
9438
9439 * lynx-low.c (lynx_delete_thread_callback): New function.
9440 (lynx_mourn): Properly delete our process and all of its
9441 threads. Remove call to clear_inferiors.
9442
0e50fe5c
JB
94432015-12-22 Joel Brobecker <brobecker@adacore.com>
9444
9445 * target.c (thread_search_callback): Add check that
9446 the thread_stopped target callback is not NULL before
9447 calling it.
9448
35adc03f
YQ
94492015-12-21 Yao Qi <yao.qi@linaro.org>
9450
9451 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9452 arm breakpoint.
9453
bd2b2909
AT
94542015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9455
9456 * server.c (handle_query): Call target_supports_software_single_step.
9457
7fe5e27e
AT
94582015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9459
9460 * linux-low.c (single_step): New function.
9461 (linux_resume_one_lwp_throw): Call single_step.
9462 (start_step_over): Likewise.
9463
d9311bfa
AT
94642015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9465
9466 * Makefile.in (SFILES): Append arch/arm-linux.c,
9467 arch/arm-get-next-pcs.c.
9468 (arm-linux.o): New rule.
9469 (arm-get-next-pcs.o): New rule.
9470 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9471 arm-linux.o.
9472 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9473 to linux-aarch32-low.c.
9474 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9475 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9476 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9477 (thumb2_breakpoint_len): Likewise.
9478 (arm_is_thumb_mode): Make non-static.
9479 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9480 from linux-aarch32-low.c.
9481 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9482 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9483 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9484 (thumb2_breakpoint_len): Likewise.
9485 (arm_is_thumb_mode): New declaration.
9486 * linux-arm-low.c: Include arch/arm-linux.h
9487 aarch/arm-get-next-pcs.h, sys/syscall.h.
9488 (get_next_pcs_ops): New struct.
9489 (get_next_pcs_addr_bits_remove): New function.
9490 (get_next_pcs_is_thumb): New function.
9491 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9492 (arm_sigreturn_next_pc): Likewise.
9493 (get_next_pcs_syscall_next_pc): Likewise.
9494 (arm_gdbserver_get_next_pcs): Likewise.
9495 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9496 Initialize.
9497 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9498 * server.h: Include gdb_vecs.h.
9499
68ce2059
AT
95002015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9501
9502 * Makefile.in (SFILES): Append common/common-regcache.c.
9503 (OBS): Append common-regcache.o.
9504 (common-regcache.o): New rule.
9505 * regcache.c (init_register_cache): Initialize cache to
9506 REG_UNAVAILABLE.
9507 (regcache_raw_read_unsigned): New function.
9508 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9509 register_status enum.
9510
fa5308bd
AT
95112015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9512
9513 * linux-aarch64-low.c (the_low_targets): Rename
9514 breakpoint_reinsert_addr to get_next_pcs.
9515 * linux-arm-low.c (the_low_targets): Likewise.
9516 * linux-bfin-low.c (the_low_targets): Likewise.
9517 * linux-cris-low.c (the_low_targets): Likewise.
9518 * linux-crisv32-low.c (the_low_targets): Likewise.
9519 * linux-low.c (can_software_single_step): Likewise.
9520 (install_software_single_step_breakpoints): New function.
9521 (start_step_over): Use install_software_single_step_breakpoints.
9522 * linux-low.h: New CORE_ADDR vector.
9523 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9524 get_next_pcs.
9525 * linux-mips-low.c (the_low_targets): Likewise.
9526 * linux-nios2-low.c (the_low_targets): Likewise.
9527 * linux-sparc-low.c (the_low_targets): Likewise.
9528
4a6ed09b
PA
95292015-12-17 Pedro Alves <palves@redhat.com>
9530
9531 * linux-low.c (linux_kill_one_lwp): Remove references to
9532 LinuxThreads.
9533 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9534 to 'kill'.
9535 (linux_init_signals): Delete.
9536 (initialize_low): Adjust.
9537 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9538
7544db95
PA
95392015-12-16 Pedro Alves <palves@redhat.com>
9540
9541 * configure.ac (compiler warning flags): When testing a
9542 -Wno-foo option, check whether -Wfoo works instead.
9543 * configure: Regenerate.
9544
8020350c
DB
95452015-12-11 Don Breazeal <donb@codesourcery.com>
9546
9547 * server.c (process_serial_event): Don't exit from gdbserver
9548 in remote mode if there are still active inferiors.
9549
db91f502
YQ
95502015-12-11 Yao Qi <yao.qi@linaro.org>
9551
9552 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9553 arm_breakpoint_at if the process is 32-bit.
9554
b37a6290
YQ
95552015-12-11 Yao Qi <yao.qi@linaro.org>
9556
9557 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9558 arm breakpoint.
9559
17b1509a
YQ
95602015-12-07 Yao Qi <yao.qi@linaro.org>
9561
9562 * configure.srv: Append arm.o to srv_tgtobj for
9563 aarch64*-*-linux* target.
9564 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9565 from linux-arm-low.c.
9566 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9567 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9568 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9569 (thumb2_breakpoint_len): Likewise.
9570 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9571 (arm_breakpoint_kinds): Likewise.
9572 (arm_breakpoint_kind_from_pc): Likewise.
9573 (arm_sw_breakpoint_from_kind): Likewise.
9574 (arm_breakpoint_kind_from_current_state): Likewise.
9575 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9576 (arm_sw_breakpoint_from_kind): Declare.
9577 (arm_breakpoint_kind_from_current_state): Declare.
9578 (arm_breakpoint_at): Declare.
9579 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9580 arm_sw_breakpoint_from_kind if process is 32-bit.
9581 (aarch64_breakpoint_kind_from_pc): New function.
9582 (aarch64_breakpoint_kind_from_current_state): New function.
9583 (the_low_target): Initialize fields breakpoint_kind_from_pc
9584 and breakpoint_kind_from_current_state.
9585 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9586 linux-aarch32-low.c.
9587 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9588 (arm_breakpoint, arm_breakpoint_len): Likewise.
9589 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9590 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9591 (arm_is_thumb_mode): Likewise.
9592 (arm_breakpoint_at): Likewise.
9593 (arm_breakpoint_kind_from_pc): Likewise.
9594 (arm_sw_breakpoint_from_kind): Likewise.
9595 (arm_breakpoint_kind_from_current_state): Likewise.
9596
9597 Revert:
9598 2015-08-04 Yao Qi <yao.qi@linaro.org>
9599
9600 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9601 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9602 * server.c (extended_protocol): Remove "static".
9603 * server.h (extended_protocol): Declare it.
9604
ece66d65
JS
96052015-12-04 Josh Stone <jistone@redhat.com>
9606
9607 * target.h (struct target_ops) <arch_setup>: Rename to ...
9608 (struct target_ops) <post_create_inferior>: ... this.
9609 (target_arch_setup): Rename to ...
9610 (target_post_create_inferior): ... this, calling post_create_inferior.
9611 * server.c (start_inferior): Update target_arch_setup calls to
9612 target_post_create_inferior.
9613 * linux-low.c (linux_low_ptrace_options): Forward declare.
9614 (linux_arch_setup): Update its comment for general use.
9615 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9616 (struct linux_target_ops): Use linux_post_create_inferior.
9617 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9618 to post_create_inferior.
9619 * nto-low.c (struct nto_target_ops): Likewise.
9620 * spu-low.c (struct spu_target_ops): Likewise.
9621 * win32-low.c (struct win32_target_ops): Likewise.
9622
e58c48b4
AT
96232015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9624
9625 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9626
fbec8956
AT
96272015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9628
9629 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9630 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9631 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9632 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9633 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9634 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9635 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9636 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9637 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9638 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9639 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9640 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9641
9b4c5f87
AT
96422015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9643
9644 * linux-low.c (linux_look_up_symbols): Don't call
9645 linux_supports_traceclone.
9646 * linux-low.h (thread_db_init): Remove use_events argument.
9647 * thread-db.c (thread_db_use_event): Remove global variable.
9648 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9649 (struct thread_db) <td_create_bp>: Remove field.
9650 (thread_db_create_event): Remove function.
9651 (thread_db_enable_reporting): Likewise.
9652 (find_one_thread): Don't check for thread_db_use_events.
9653 (attach_thread): Likewise.
9654 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9655 (try_thread_db_load_1): Don't check for thread_db_use_events.
9656 (thread_db_init): Remove use_events argument and thread events
9657 handling.
9658 (remove_thread_event_breakpoints): Remove function.
9659 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9660
7d00775e
AT
96612015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9662
9663 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9664 New function.
9665 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9666 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9667 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9668 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9669 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9670 Initialize.
9671 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9672 New function.
9673 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9674 * linux-low.c (can_hardware_single_step): Use
9675 supports_hardware_single_step.
9676 (can_software_single_step): New function.
9677 (start_step_over): Call can_software_single_step.
9678 (linux_supports_hardware_single_step): New function.
9679 (struct target_ops) <supports_software_single_step>: Initialize.
9680 * linux-low.h (struct linux_target_ops)
9681 <supports_hardware_single_step>: Initialize.
9682 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9683 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9684 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9685 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9686 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9687 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9688 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9689 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9690 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9691 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9692 Initialize.
9693 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9694 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9695 Initialize.
9696 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9697 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9698 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9699 New function.
9700 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9701 * target.h (struct target_ops): <supports_software_single_step>:
9702 New field.
9703 (target_supports_software_single_step): New macro.
9704
2d97cd35
AT
97052015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9706
9707 * linux-low.c (linux_wait_1): Fix pc advance condition.
9708 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9709 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9710
769ef81f
AT
97112015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9712
9713 * linux-arm-low.c (arm_is_thumb_mode): New function.
9714 (arm_breakpoint_at): Use arm_is_thumb_mode.
9715 (arm_breakpoint_kind_from_current_state): New function.
9716 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9717 Initialize.
9718 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9719 (linux_breakpoint_kind_from_current_state): New function.
9720 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9721 * linux-low.h (struct linux_target_ops)
9722 <breakpoint_kind_from_current_state>: New field.
9723 * target.h (struct target_ops): Likewise.
9724 (target_breakpoint_kind_from_current_state): New macro.
9725
1bebeeca
PA
97262015-11-30 Pedro Alves <palves@redhat.com>
9727
9728 * linux-low.c (linux_resume): Wake up the event loop before
9729 returning.
9730
a67a9fae
PA
97312015-11-30 Pedro Alves <palves@redhat.com>
9732
9733 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9734 check.
9735 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9736 to -1.
9737 * target.c (struct thread_search): New structure.
9738 (thread_search_callback): New function.
9739 (prev_general_thread): New global.
9740 (prepare_to_access_memory, done_accessing_memory): New functions.
9741 * target.h (prepare_to_access_memory, done_accessing_memory):
9742 Replace macros with function declarations.
9743
f2faf941
PA
97442015-11-30 Pedro Alves <palves@redhat.com>
9745
9746 PR 14618
9747 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9748 report TARGET_WAITKIND_NO_RESUMED.
9749 * remote-utils.c (prepare_resume_reply): Handle
9750 TARGET_WAITKIND_NO_RESUMED.
9751 * server.c (report_no_resumed): New global.
9752 (handle_query) <qSupported>: Handle "no-resumed+". Report
9753 "no-resumed+" support.
9754 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9755 return error if the client doesn't support no-resumed events.
9756 (push_stop_notification): New function.
9757 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9758 events if the client supports them.
9759
a681f9c9
PA
97602015-11-30 Pedro Alves <palves@redhat.com>
9761
9762 * linux-low.c (thread_still_has_status_pending_p): Don't check
9763 vCont;t here.
9764 (lwp_resumed): New function.
9765 (status_pending_p_callback): Return early if the LWP is not
9766 supposed to be resumed.
9767
65706a29
PA
97682015-11-30 Pedro Alves <palves@redhat.com>
9769
9770 * linux-low.c (handle_extended_wait): Assert that the LWP's
9771 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9772 thread create events, leave the new child's status pending.
9773 (linux_low_filter_event): If GDB wants to hear about thread exit
9774 events, leave the LWP marked dead and don't delete it.
9775 (linux_wait_for_event_filtered): Don't check for thread exit.
9776 (filter_exit_event): New function.
9777 (linux_wait_1): Use it, when returning an exit event.
9778 (linux_resume_one_lwp_throw): Assert that the LWP's
9779 waitstatus is TARGET_WAITKIND_IGNORE.
9780 * remote-utils.c (prepare_resume_reply): Handle
9781 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9782 * server.c (report_thread_events): New global.
9783 (handle_general_set): Handle QThreadEvents.
9784 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9785 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9786 TARGET_WAITKIND_THREAD_EXITED.
9787 * server.h (report_thread_events): Declare.
9788
56cf4bed
PA
97892015-11-30 Pedro Alves <palves@redhat.com>
9790
9791 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9792 the thread's last_resume_kind was resume_stop.
9793
500c1d85
PA
97942015-11-30 Pedro Alves <palves@redhat.com>
9795
9796 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9797 before returning.
9798
de979965
PA
97992015-11-30 Pedro Alves <palves@redhat.com>
9800
9801 * server.c (handle_v_requests): Handle vCtrlC.
9802
34c65914
PA
98032015-11-30 Pedro Alves <palves@redhat.com>
9804
9805 * gdbthread.h (find_any_thread_of_pid): Declare.
9806 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9807 functions.
9808 * server.c (handle_query): If current_thread is NULL, look for
9809 another thread of the selected process.
9810
79efa585 98112015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9812 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9813
9814 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9815 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9816 name in reply.
9817 * target.h (struct target_ops) <thread_name>: New field.
9818 (target_thread_name): New macro.
9819
80d82c19
JB
98202015-11-23 Joel Brobecker <brobecker@adacore.com>
9821
9822 * regcache.h (regcache_invalidate_pid): Add declaration.
9823 * regcache.c (regcache_invalidate_pid): New function, extracted
9824 from regcache_invalidate.
9825 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9826 Add trivial documentation comment.
9827 * lynx-low.c: Use regcache_invalidate_pid instead of
9828 regcache_invalidate.
9829
64da5dd5
JB
98302015-11-23 Joel Brobecker <brobecker@adacore.com>
9831
9832 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9833 and Elf64_auxv_t if the target is Android.
9834
37ce4055
DE
98352015-11-22 Doug Evans <xdje42@gmail.com>
9836
9837 * target.h: #include <sys/types.h>.
9838
06e03fff
PA
98392015-11-19 Pedro Alves <palves@redhat.com>
9840
9841 * linux-low.c (linux_process_qsupported): Change prototype.
9842 Adjust.
9843 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9844 Change prototype.
9845 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9846 and adjust to loop over all features.
9847 * server.c (handle_query) <qSupported>: Adjust to call
9848 target_process_qsupported once, passing it a vector of unprocessed
9849 features.
9850 * target.h (struct target_ops) <process_qsupported>: Change
9851 prototype.
9852 (target_process_qsupported): Adjust.
9853
9a084706
PA
98542015-11-19 Pedro Alves <palves@redhat.com>
9855
9856 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9857 mode.
9858 * configure: Regenerate.
9859
dad44a1f
PA
98602015-11-19 Pedro Alves <palves@redhat.com>
9861
9862 * configure: Regenerate.
9863
231c0592
YQ
98642015-11-19 Yao Qi <yao.qi@linaro.org>
9865
9866 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9867 type to uint32_t.
9868
6c1c9a8b
YQ
98692015-11-19 Yao Qi <yao.qi@linaro.org>
9870
9871 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9872 (struct aarch64_operand): Move enum out.
9873
9caa3311
YQ
98742015-11-19 Yao Qi <yao.qi@linaro.org>
9875
9876 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9877 struct user_fpsimd_state *.
9878 (aarch64_store_fpregset): Likewise.
9879
6a69a054
YQ
98802015-11-19 Yao Qi <yao.qi@linaro.org>
9881
9882 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9883 struct user_pt_regs *.
9884 (aarch64_store_gregset): Likewise.
9885
1798301e
PA
98862015-11-18 Pedro Alves <palves@redhat.com>
9887
9888 * Makefile.in (all_object_files): Add $IPA_OBJS.
9889
ce7715e2
PA
98902015-11-17 Pedro Alves <palves@redhat.com>
9891
9892 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9893 GDB_SIGNAL_0 and gdb_signal_to_string.
9894
c0879059
PA
98952015-11-17 Pedro Alves <palves@redhat.com>
9896
9897 * win32-low.c (handle_output_debug_string): Remove parameter.
9898 (win32_kill): Remove our_status local and adjust call to
9899 handle_output_debug_string.
9900 (get_child_debug_event): Adjust call to
9901 handle_output_debug_string.
9902
1996e237
SM
99032015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9904
9905 * linux-mips-low.c (mips_fill_gregset): Add cast.
9906 (mips_store_gregset): Likewise.
9907 (mips_fill_fpregset): Likewise.
9908 (mips_store_fpregset): Likewise.
9909
cbec665b
SM
99102015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9911
9912 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9913 priv.
9914
eb3e3c67
SM
99152015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9916
9917 * linux-mips-low.c (mips_linux_new_thread): Change type of
9918 watch_type to enum target_hw_bp_type.
9919
171de4b8
SM
99202015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9921
9922 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9923 Change return type to arm_hwbp_type.
9924
04248ead
SM
99252015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9926
9927 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9928 (arm_store_gregset): Likewise.
9929 * linux-arm-low.c (arm_get_hwcap): Likewise.
9930 (arm_read_description): Likewise.
9931
04b3479c
SM
99322015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9933
9934 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9935
2bc84e8a
SM
99362015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9937
9938 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9939 (ppc_fill_vsxregset): Likewise.
9940 (ppc_store_vsxregset): Likewise.
9941 (ppc_fill_vrregset): Likewise.
9942 (ppc_store_vrregset): Likewise.
9943 (ppc_fill_evrregset): Likewise.
9944 (ppc_store_evrregset): Likewise.
9945
e6c5bb05
SM
99462015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9947
9948 * linux-ppc-low.c (ppc_usrregs_info): Remove
9949 forward-declaration.
9950 (ppc_arch_setup): Move lower in file.
9951
7ea45d72
SM
99522015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9953
9954 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9955 (ps_pdwrite): Likewise.
9956
69291610
HW
99572015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9958
9959 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9960 to after assert checks.
9961
b42945fd
SM
99622015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9963
9964 * proc-service.c (ps_pdread): Add/adjust casts.
9965 (ps_pdwrite): Add/adjust casts.
9966
d6f85c84
SM
99672015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9968
9969 * server.c (handle_search_memory_1): Cast return value of
9970 memmem.
9971
f98cd059
SM
99722015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9973
9974 * server.c (write_qxfer_response): Change type of data to
9975 gdb_byte *.
9976
d2412fa5
PA
99772015-10-29 Pedro Alves <palves@redhat.com>
9978
9979 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9980
c17414a2
PA
99812015-10-29 Pedro Alves <palves@redhat.com>
9982
9983 * tracepoint.c (clear_installed_tracepoints): Add casts.
9984
e053fbc4
PA
99852015-10-29 Pedro Alves <palves@redhat.com>
9986
9987 * server.c (handle_v_cont, process_serial_event): Add enum
9988 gdb_signal casts to signal parsing code.
9989
add67df8
PA
99902015-10-29 Pedro Alves <palves@redhat.com>
9991
9992 * linux-low.h (NULL_REGSET): Define.
9993 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9994 * linux-arm-low.c (arm_regsets): Likewise.
9995 * linux-crisv32-low.c (cris_regsets): Likewise.
9996 * linux-m68k-low.c (m68k_regsets): Likewise.
9997 * linux-mips-low.c (mips_regsets): Likewise.
9998 * linux-nios2-low.c (nios2_regsets): Likewise.
9999 * linux-ppc-low.c (ppc_regsets): Likewise.
10000 * linux-s390-low.c (s390_regsets): Likewise.
10001 * linux-sh-low.c (sh_regsets): Likewise.
10002 * linux-sparc-low.c (sparc_regsets): Likewise.
10003 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10004 * linux-tile-low.c (tile_regsets): Likewise.
10005 * linux-x86-low.c (x86_regsets): Likewise.
10006 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10007
50bc912a
PA
100082015-10-29 Pedro Alves <palves@redhat.com>
10009
10010 * linux-low.h (NULL_REGSET): Define.
10011 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10012 * linux-arm-low.c (arm_regsets): Likewise.
10013 * linux-crisv32-low.c (cris_regsets): Likewise.
10014 * linux-m68k-low.c (m68k_regsets): Likewise.
10015 * linux-mips-low.c (mips_regsets): Likewise.
10016 * linux-nios2-low.c (nios2_regsets): Likewise.
10017 * linux-ppc-low.c (ppc_regsets): Likewise.
10018 * linux-s390-low.c (s390_regsets): Likewise.
10019 * linux-sh-low.c (sh_regsets): Likewise.
10020 * linux-sparc-low.c (sparc_regsets): Likewise.
10021 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10022 * linux-tile-low.c (tile_regsets): Likewise.
10023 * linux-x86-low.c (x86_regsets): Likewise.
10024 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10025
682b2546
DE
100262015-10-26 Doug Evans <dje@google.com>
10027
10028 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10029
963843d4
DE
100302015-10-26 Doug Evans <dje@google.com>
10031
10032 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10033
d41401ac
DE
100342015-10-26 Doug Evans <dje@google.com>
10035
10036 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10037 for debug_printf.
10038 (attach_thread, find_new_threads_callback): Ditto.
10039
3db28855
AT
100402015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10041
10042 * mem-break.h (set_breakpoint_data): Remove.
10043
fb78e89c
AT
100442015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10045
10046 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10047 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10048 (initialize_low): Remove set_breakpoint_data call.
10049 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10050 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10051 (initialize_low): Remove set_breakpoint_data call.
10052 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10053 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10054 (initialize_low): Remove set_breakpoint_data call.
10055
2e6ee069
AT
100562015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10057
10058 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10059 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10060 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10061 * target.h (target_breakpoint_kind_from_pc): New macro.
10062
1652a986
AT
100632015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10064
10065 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10066 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10067 the default breakpoint kind.
10068
abeead09
AT
100692015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10070
10071 * linux-arm-low.c (arm_supports_z_point_type): Add software
10072 breakpoint support.
10073
b0b4b501
AT
100742015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10075
10076 * linux-arm-low.c: Refactor breakpoint definitions.
10077 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10078 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10079
8689682c
AT
100802015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10081
10082 * Makefile.in: Add arm.c/o.
10083 * configure.srv: Likewise.
10084 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10085 (arm_breakpoint_kind_from_pc): New function.
10086 (arm_sw_breakpoint_from_kind): Return proper kind.
10087 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10088
27165294
AT
100892015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10090
10091 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10092 removal.
10093 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10094 (struct raw_breakpoint) <size>: Remove.
10095 (struct raw_breakpoint) <kind>: Add.
10096 (bp_size): New function.
10097 (bp_opcode): Likewise.
10098 (find_raw_breakpoint_at): Adjust for kind.
10099 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10100 (remove_memory_breakpoint): Adjust for kind call bp_size.
10101 (set_raw_breakpoint_at): Adjust for kind.
10102 (set_breakpoint): Likewise.
10103 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10104 (delete_raw_breakpoint): Adjust for kind.
10105 (delete_breakpoint): Likewise.
10106 (find_gdb_breakpoint): Likewise.
10107 (set_gdb_breakpoint_1): Likewise.
10108 (set_gdb_breakpoint): Likewise.
10109 (delete_gdb_breakpoint_1): Likewise.
10110 (delete_gdb_breakpoint): Likewise.
10111 (uninsert_raw_breakpoint): Likewise.
10112 (reinsert_raw_breakpoint): Likewise.
10113 (set_breakpoint_data): Remove.
10114 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10115 (check_mem_read): Adjust for kind call bp_size.
10116 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10117 (clone_one_breakpoint): Adjust for kind.
10118 * mem-break.h (set_gdb_breakpoint): Likewise.
10119 (delete_gdb_breakpoint): Likewise.
10120 * server.c (process_serial_event): Likewise.
10121
dd373349
AT
101222015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10123
10124 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10125 (struct linux_target_ops) <breakpoint>: Remove.
10126 (struct linux_target_ops) <breakpoint_len>: Remove.
10127 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10128 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10129 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10130 (arm_sw_breakpoint_from_kind): New function.
10131 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10132 (struct linux_target_ops) <breakpoint>: Remove.
10133 (struct linux_target_ops) <breakpoint_len>: Remove.
10134 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10135 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10136 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10137 (struct linux_target_ops) <breakpoint>: Remove.
10138 (struct linux_target_ops) <breakpoint_len>: Remove.
10139 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10140 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10141 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10142 (struct linux_target_ops) <breakpoint>: Remove.
10143 (struct linux_target_ops) <breakpoint_len>: Remove.
10144 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10145 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10146 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10147 and sw_breakpoint_from_kind to increment the pc.
10148 (linux_breakpoint_kind_from_pc): New function.
10149 (linux_sw_breakpoint_from_kind): New function.
10150 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10151 (initialize_low): Call breakpoint_kind_from_pc and
10152 sw_breakpoint_from_kind to replace breakpoint_data/len.
10153 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10154 New field.
10155 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10156 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10157 (struct linux_target_ops) <breakpoint>: Remove.
10158 (struct linux_target_ops) <breakpoint_len>: Remove.
10159 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10160 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10161 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10162 (struct linux_target_ops) <breakpoint>: Remove.
10163 (struct linux_target_ops) <breakpoint_len>: Remove.
10164 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10165 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10166 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10167 (struct linux_target_ops) <breakpoint>: Remove.
10168 (struct linux_target_ops) <breakpoint_len>: Remove.
10169 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10170 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10171 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10172 (struct linux_target_ops) <breakpoint>: Remove.
10173 (struct linux_target_ops) <breakpoint_len>: Remove.
10174 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10175 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10176 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10177 (struct linux_target_ops) <breakpoint>: Remove.
10178 (struct linux_target_ops) <breakpoint_len>: Remove.
10179 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10180 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10181 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10182 (struct linux_target_ops) <breakpoint>: Remove.
10183 (struct linux_target_ops) <breakpoint_len>: Remove.
10184 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10185 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10186 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10187 (struct linux_target_ops) <breakpoint>: Remove.
10188 (struct linux_target_ops) <breakpoint_len>: Remove.
10189 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10190 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10191 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10192 (struct linux_target_ops) <breakpoint>: Remove.
10193 (struct linux_target_ops) <breakpoint_len>: Remove.
10194 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10195 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10196 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10197 (struct linux_target_ops) <breakpoint>: Remove.
10198 (struct linux_target_ops) <breakpoint_len>: Remove.
10199 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10200 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10201 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10202 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10203 (struct linux_target_ops) <breakpoint>: Remove.
10204 (struct linux_target_ops) <breakpoint_len>: Remove.
10205 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10206 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10207 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10208 (struct linux_target_ops) <breakpoint>: Remove.
10209 (struct linux_target_ops) <breakpoint_len>: Remove.
10210 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10211 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10212
4cd98a19
AT
102132015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10214
10215 * linux-cris-low.c (cris_get_pc): Remove void arg.
10216
774ee6d2
AR
102172015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10218
10219 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10220 variable name.
10221
833dcd29
AR
102222015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10223
10224 * inferiors.c (thread_pid_matches_callback): New function.
10225 (find_thread_process): New function.
10226 (remove_thread): Reset current_thread.
10227 (remove_process): Assert threads have been removed first.
10228
8d689ee5
YQ
102292015-10-15 Yao Qi <yao.qi@linaro.org>
10230
10231 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10232 if it is 3.
10233 (aarch64_remove_point): Likewise.
10234 * regcache.c (regcache_register_size): New function.
10235
1c2e1515
YQ
102362015-10-12 Yao Qi <yao.qi@linaro.org>
10237
10238 * linux-aarch64-low.c: Update all callers as emit_load_store
10239 is renamed to aarch64_emit_load_store.
10240
e1c587c3
YQ
102412015-10-12 Yao Qi <yao.qi@linaro.org>
10242
10243 * linux-aarch64-low.c: Update all callers of function renaming
10244 from emit_insn to aarch64_emit_insn.
10245
b6542f81
YQ
102462015-10-12 Yao Qi <yao.qi@linaro.org>
10247
10248 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10249 arch/aarch64-insn.h.
10250 (struct aarch64_memory_operand): Likewise.
10251 (ENCODE): Likewise.
10252 (emit_insn): Move to arch/aarch64-insn.c.
10253 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10254 (emit_load_store): Move to arch/aarch64-insn.c.
10255 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10256 (can_encode_int32): Remove.
10257
246994ce
YQ
102582015-10-12 Yao Qi <yao.qi@linaro.org>
10259
10260 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10261 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10262 (aarch64_relocate_instruction): Likewise.
10263 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10264 (struct aarch64_insn_visitor): Likewise.
10265
0badd99f
YQ
102662015-10-12 Yao Qi <yao.qi@linaro.org>
10267
10268 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10269 (struct aarch64_insn_visitor): New.
10270 (struct aarch64_insn_relocation_data): New.
10271 (aarch64_ftrace_insn_reloc_b): New function.
10272 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10273 (aarch64_ftrace_insn_reloc_cb): Likewise.
10274 (aarch64_ftrace_insn_reloc_tb): Likewise.
10275 (aarch64_ftrace_insn_reloc_adr): Likewise.
10276 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10277 (aarch64_ftrace_insn_reloc_others): Likewise.
10278 (visitor): New.
10279 (aarch64_relocate_instruction): Use visitor.
10280
dfaffe9d
YQ
102812015-10-12 Yao Qi <yao.qi@linaro.org>
10282
10283 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10284 int. Add argument buf.
10285 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10286 aarch64_relocate_instruction.
10287
70b439f0
YQ
102882015-10-12 Yao Qi <yao.qi@linaro.org>
10289
10290 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10291 argument insn. Remove local variable insn. Don't call
10292 target_read_uint32.
10293 (aarch64_install_fast_tracepoint_jump_pad): Call
10294 target_read_uint32.
10295
7781c06f
YQ
102962015-09-30 Yao Qi <yao.qi@linaro.org>
10297
10298 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10299 (emit_load_store_pair): Likewise.
10300
9a3c8263
SM
103012015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10302
10303 * dll.c (match_dll): Add cast(s).
10304 (unloaded_dll): Likewise.
10305 * linux-low.c (second_thread_of_pid_p): Likewise.
10306 (delete_lwp_callback): Likewise.
10307 (count_events_callback): Likewise.
10308 (select_event_lwp_callback): Likewise.
10309 (linux_set_resume_request): Likewise.
10310 * server.c (accumulate_file_name_length): Likewise.
10311 (emit_dll_description): Likewise.
10312 (handle_qxfer_threads_worker): Likewise.
10313 (visit_actioned_threads): Likewise.
10314 * thread-db.c (any_thread_of): Likewise.
10315 * tracepoint.c (same_process_p): Likewise.
10316 (match_blocktype): Likewise.
10317 (build_traceframe_info_xml): Likewise.
10318
224c3ddb
SM
103192015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10320
10321 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10322 assignment.
10323 (gdb_unparse_agent_expr): Likewise.
10324 * hostio.c (require_data): Likewise.
10325 (handle_pread): Likewise.
10326 * linux-low.c (disable_regset): Likewise.
10327 (fetch_register): Likewise.
10328 (store_register): Likewise.
10329 (get_dynamic): Likewise.
10330 (linux_qxfer_libraries_svr4): Likewise.
10331 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10332 (set_fast_tracepoint_jump): Likewise.
10333 (uninsert_fast_tracepoint_jumps_at): Likewise.
10334 (reinsert_fast_tracepoint_jumps_at): Likewise.
10335 (validate_inserted_breakpoint): Likewise.
10336 (clone_agent_expr): Likewise.
10337 * regcache.c (init_register_cache): Likewise.
10338 * remote-utils.c (putpkt_binary_1): Likewise.
10339 (decode_M_packet): Likewise.
10340 (decode_X_packet): Likewise.
10341 (look_up_one_symbol): Likewise.
10342 (relocate_instruction): Likewise.
10343 (monitor_output): Likewise.
10344 * server.c (handle_search_memory): Likewise.
10345 (handle_qxfer_exec_file): Likewise.
10346 (handle_qxfer_libraries): Likewise.
10347 (handle_qxfer): Likewise.
10348 (handle_query): Likewise.
10349 (handle_v_cont): Likewise.
10350 (handle_v_run): Likewise.
10351 (captured_main): Likewise.
10352 * target.c (write_inferior_memory): Likewise.
10353 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10354 * tracepoint.c (init_trace_buffer): Likewise.
10355 (add_tracepoint_action): Likewise.
10356 (add_traceframe): Likewise.
10357 (add_traceframe_block): Likewise.
10358 (cmd_qtdpsrc): Likewise.
10359 (cmd_qtdv): Likewise.
10360 (cmd_qtstatus): Likewise.
10361 (response_source): Likewise.
10362 (response_tsv): Likewise.
10363 (cmd_qtnotes): Likewise.
10364 (gdb_collect): Likewise.
10365 (initialize_tracepoint): Likewise.
10366
afbe19f8
PL
103672015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10368
10369 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10370 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10371 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10372 <NOP>: New.
10373 (enum aarch64_condition_codes): New enum.
10374 (w0): New static global.
10375 (fp): Likewise.
10376 (lr): Likewise.
10377 (struct aarch64_memory_operand) <type>: New
10378 MEMORY_OPERAND_POSTINDEX type.
10379 (postindex_memory_operand): New helper function.
10380 (emit_ret): New function.
10381 (emit_load_store_pair): New function, factored out of emit_stp
10382 with support for MEMORY_OPERAND_POSTINDEX.
10383 (emit_stp): Rewrite using emit_load_store_pair.
10384 (emit_ldp): New function.
10385 (emit_load_store): Likewise.
10386 (emit_ldr): Mention post-index instruction in comment.
10387 (emit_ldrh): New function.
10388 (emit_ldrb): New function.
10389 (emit_ldrsw): Mention post-index instruction in comment.
10390 (emit_str): Likewise.
10391 (emit_subs): New function.
10392 (emit_cmp): Likewise.
10393 (emit_and): Likewise.
10394 (emit_orr): Likewise.
10395 (emit_orn): Likewise.
10396 (emit_eor): Likewise.
10397 (emit_mvn): Likewise.
10398 (emit_lslv): Likewise.
10399 (emit_lsrv): Likewise.
10400 (emit_asrv): Likewise.
10401 (emit_mul): Likewise.
10402 (emit_sbfm): Likewise.
10403 (emit_sbfx): Likewise.
10404 (emit_ubfm): Likewise.
10405 (emit_ubfx): Likewise.
10406 (emit_csinc): Likewise.
10407 (emit_cset): Likewise.
10408 (emit_nop): Likewise.
10409 (emit_ops_insns): New helper function.
10410 (emit_pop): Likewise.
10411 (emit_push): Likewise.
10412 (aarch64_emit_prologue): New function.
10413 (aarch64_emit_epilogue): Likewise.
10414 (aarch64_emit_add): Likewise.
10415 (aarch64_emit_sub): Likewise.
10416 (aarch64_emit_mul): Likewise.
10417 (aarch64_emit_lsh): Likewise.
10418 (aarch64_emit_rsh_signed): Likewise.
10419 (aarch64_emit_rsh_unsigned): Likewise.
10420 (aarch64_emit_ext): Likewise.
10421 (aarch64_emit_log_not): Likewise.
10422 (aarch64_emit_bit_and): Likewise.
10423 (aarch64_emit_bit_or): Likewise.
10424 (aarch64_emit_bit_xor): Likewise.
10425 (aarch64_emit_bit_not): Likewise.
10426 (aarch64_emit_equal): Likewise.
10427 (aarch64_emit_less_signed): Likewise.
10428 (aarch64_emit_less_unsigned): Likewise.
10429 (aarch64_emit_ref): Likewise.
10430 (aarch64_emit_if_goto): Likewise.
10431 (aarch64_emit_goto): Likewise.
10432 (aarch64_write_goto_address): Likewise.
10433 (aarch64_emit_const): Likewise.
10434 (aarch64_emit_call): Likewise.
10435 (aarch64_emit_reg): Likewise.
10436 (aarch64_emit_pop): Likewise.
10437 (aarch64_emit_stack_flush): Likewise.
10438 (aarch64_emit_zero_ext): Likewise.
10439 (aarch64_emit_swap): Likewise.
10440 (aarch64_emit_stack_adjust): Likewise.
10441 (aarch64_emit_int_call_1): Likewise.
10442 (aarch64_emit_void_call_2): Likewise.
10443 (aarch64_emit_eq_goto): Likewise.
10444 (aarch64_emit_ne_goto): Likewise.
10445 (aarch64_emit_lt_goto): Likewise.
10446 (aarch64_emit_le_goto): Likewise.
10447 (aarch64_emit_gt_goto): Likewise.
10448 (aarch64_emit_ge_got): Likewise.
10449 (aarch64_emit_ops_impl): New static global variable.
10450 (aarch64_emit_ops): New target function, return
10451 &aarch64_emit_ops_impl.
10452 (struct linux_target_ops): Install it.
10453
bb903df0
PL
104542015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10455
10456 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10457 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10458 aarch64-ipa.o.
10459 * linux-aarch64-ipa.c: New file.
10460 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10461 and endian.h.
10462 (aarch64_get_thread_area): New target method.
10463 (extract_signed_bitfield): New helper function.
10464 (aarch64_decode_ldr_literal): New function.
10465 (enum aarch64_opcodes): New enum.
10466 (struct aarch64_register): New struct.
10467 (struct aarch64_operand): New struct.
10468 (x0): New static global.
10469 (x1): Likewise.
10470 (x2): Likewise.
10471 (x3): Likewise.
10472 (x4): Likewise.
10473 (w2): Likewise.
10474 (ip0): Likewise.
10475 (sp): Likewise.
10476 (xzr): Likewise.
10477 (aarch64_register): New helper function.
10478 (register_operand): Likewise.
10479 (immediate_operand): Likewise.
10480 (struct aarch64_memory_operand): New struct.
10481 (offset_memory_operand): New helper function.
10482 (preindex_memory_operand): Likewise.
10483 (enum aarch64_system_control_registers): New enum.
10484 (ENCODE): New macro.
10485 (emit_insn): New helper function.
10486 (emit_b): New function.
10487 (emit_bcond): Likewise.
10488 (emit_cb): Likewise.
10489 (emit_tb): Likewise.
10490 (emit_blr): Likewise.
10491 (emit_stp): Likewise.
10492 (emit_ldp_q_offset): Likewise.
10493 (emit_stp_q_offset): Likewise.
10494 (emit_load_store): Likewise.
10495 (emit_ldr): Likewise.
10496 (emit_ldrsw): Likewise.
10497 (emit_str): Likewise.
10498 (emit_ldaxr): Likewise.
10499 (emit_stxr): Likewise.
10500 (emit_stlr): Likewise.
10501 (emit_data_processing_reg): Likewise.
10502 (emit_data_processing): Likewise.
10503 (emit_add): Likewise.
10504 (emit_sub): Likewise.
10505 (emit_mov): Likewise.
10506 (emit_movk): Likewise.
10507 (emit_mov_addr): Likewise.
10508 (emit_mrs): Likewise.
10509 (emit_msr): Likewise.
10510 (emit_sevl): Likewise.
10511 (emit_wfe): Likewise.
10512 (append_insns): Likewise.
10513 (can_encode_int32_in): New helper function.
10514 (aarch64_relocate_instruction): New function.
10515 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10516 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10517 (struct linux_target_ops): Install aarch64_get_thread_area,
10518 aarch64_install_fast_tracepoint_jump_pad and
10519 aarch64_get_min_fast_tracepoint_insn_len.
10520
787749ea
PL
105212015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10522
10523 * Makefile.in (aarch64-insn.o): New rule.
10524 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10525
9812b2e6
YQ
105262015-09-21 Yao Qi <yao.qi@linaro.org>
10527
10528 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10529
18fe412b
YQ
105302015-09-21 Yao Qi <yao.qi@linaro.org>
10531
10532 * tracepoint.c (max_jump_pad_size): Remove.
10533
a0cc84cd
YQ
105342015-09-18 Yao Qi <yao.qi@linaro.org>
10535
10536 * linux-aarch64-low.c: Don't include sys/uio.h.
10537 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10538
d78908cf
WW
105392015-09-16 Wei-cheng Wang <cole945@gmail.com>
10540
10541 * tracepoint.c (eval_result_type): Change prototype.
10542 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10543
d57e0d50
PA
105442015-09-15 Pedro Alves <palves@redhat.com>
10545
10546 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10547 Check whether to report exec events instead of checking whether
10548 multiprocess is enabled.
10549
5a676acc
PA
105502015-09-15 Pedro Alves <palves@redhat.com>
10551
10552 PR remote/18965
10553 * remote-utils.c (prepare_resume_reply): Merge
10554 TARGET_WAITKIND_VFORK_DONE switch case with the
10555 TARGET_WAITKIND_FORKED case.
10556
7c5d0fad
YQ
105572015-09-15 Yao Qi <yao.qi@linaro.org>
10558
10559 * server.c (handle_query): Check string comparison using
10560 "else if" instead of "if".
10561
750ce8d1
YQ
105622015-09-15 Yao Qi <yao.qi@linaro.org>
10563
10564 * server.c (vCont_supported): New global variable.
10565 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10566 matches. Append ";vContSupported+" to own_buf.
10567 (handle_v_requests): Append ";s;S" to own_buf if target supports
10568 hardware single step or vCont_supported is false.
10569 (capture_main): Set vCont_supported to zero.
10570
70b90b91
YQ
105712015-09-15 Yao Qi <yao.qi@linaro.org>
10572
10573 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10574 it to ...
10575 (linux_supports_hardware_single_step): ... New function.
10576 (linux_target_ops): Update.
10577 * lynx-low.c (lynx_target_ops): Set field
10578 supports_hardware_single_step to target_can_do_hardware_single_step.
10579 * nto-low.c (nto_target_ops): Likewise.
10580 * spu-low.c (spu_target_ops): Likewise.
10581 * win32-low.c (win32_target_ops): Likewise.
10582 * target.c (target_can_do_hardware_single_step): New function.
10583 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10584 Remove. <supports_hardware_single_step>: New field.
10585 (target_supports_conditional_breakpoints): Remove.
10586 (target_supports_hardware_single_step): New macro.
10587 (target_can_do_hardware_single_step): Declare.
10588 * server.c (handle_query): Use target_supports_hardware_single_step
10589 instead of target_supports_conditional_breakpoints.
10590
ade90bde
YQ
105912015-09-15 Yao Qi <yao.qi@linaro.org>
10592
10593 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10594 function.
10595 (struct linux_target_ops the_low_target): Install
10596 aarch64_linux_siginfo_fixup.
10597
94585166
DB
105982015-09-11 Don Breazeal <donb@codesourcery.com>
10599 Luis Machado <lgustavo@codesourcery.com>
10600
10601 * linux-low.c (linux_mourn): Static declaration.
10602 (linux_arch_setup): Move in front of
10603 handle_extended_wait.
10604 (linux_arch_setup_thread): New function.
10605 (handle_extended_wait): Handle exec events. Call
10606 linux_arch_setup_thread. Make event_lwp argument a
10607 pointer-to-a-pointer.
10608 (check_zombie_leaders): Do not check stopped threads.
10609 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10610 (linux_low_filter_event): Add lwp and thread for exec'ing
10611 non-leader thread if leader thread has been deleted.
10612 Refactor code into linux_arch_setup_thread and call it.
10613 Pass child lwp pointer by reference to handle_extended_wait.
10614 (linux_wait_for_event_filtered): Update comment.
10615 (linux_wait_1): Prevent clobbering exec event status.
10616 (linux_supports_exec_events): New function.
10617 (linux_target_ops) <supports_exec_events>: Initialize new member.
10618 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10619 new member.
10620 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10621 * server.c (report_exec_events): New global variable.
10622 (handle_query): Handle qSupported query for exec-events feature.
10623 (captured_main): Initialize report_exec_events.
10624 * server.h (report_exec_events): Declare new global variable.
10625 * target.h (struct target_ops) <supports_exec_events>: New
10626 member.
10627 (target_supports_exec_events): New macro.
10628 * win32-low.c (win32_target_ops) <supports_exec_events>:
10629 Initialize new member.
10630
0568462b
MM
106312015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10632
10633 * linux-low.c (linux_low_enable_btrace): Remove.
10634 (linux_target_ops): Replace linux_low_enable_btrace with
10635 linux_enable_btrace.
10636
39edd165
YQ
106372015-09-03 Yao Qi <yao.qi@linaro.org>
10638
10639 * linux-aarch64-low.c (aarch64_insert_point): Call
10640 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10641 returns true.
10642
1db33b5a
UW
106432015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10644
10645 * linux-low.c (check_stopped_by_breakpoint): Use
10646 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10647
ab290430
PA
106482015-08-27 Pedro Alves <palves@redhat.com>
10649
10650 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10651
8d749320
SM
106522015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10653
6711b7f8
SM
10654 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10655 the XNEW-family equivalent.
8d749320
SM
10656 (compile_bytecodes): Likewise.
10657 * dll.c (loaded_dll): Likewise.
10658 * event-loop.c (append_callback_event): Likewise.
10659 (create_file_handler): Likewise.
10660 (create_file_event): Likewise.
10661 * hostio.c (handle_open): Likewise.
10662 * inferiors.c (add_thread): Likewise.
10663 (add_process): Likewise.
10664 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10665 * linux-arm-low.c (arm_new_process): Likewise.
10666 (arm_new_thread): Likewise.
10667 * linux-low.c (add_to_pid_list): Likewise.
10668 (linux_add_process): Likewise.
10669 (handle_extended_wait): Likewise.
10670 (add_lwp): Likewise.
10671 (enqueue_one_deferred_signal): Likewise.
10672 (enqueue_pending_signal): Likewise.
10673 (linux_resume_one_lwp_throw): Likewise.
10674 (linux_resume_one_thread): Likewise.
10675 (linux_read_memory): Likewise.
10676 (linux_write_memory): Likewise.
10677 * linux-mips-low.c (mips_linux_new_process): Likewise.
10678 (mips_linux_new_thread): Likewise.
10679 (mips_add_watchpoint): Likewise.
10680 * linux-x86-low.c (initialize_low_arch): Likewise.
10681 * lynx-low.c (lynx_add_process): Likewise.
10682 * mem-break.c (set_raw_breakpoint_at): Likewise.
10683 (set_breakpoint): Likewise.
10684 (add_condition_to_breakpoint): Likewise.
10685 (add_commands_to_breakpoint): Likewise.
10686 (clone_agent_expr): Likewise.
10687 (clone_one_breakpoint): Likewise.
10688 * regcache.c (new_register_cache): Likewise.
10689 * remote-utils.c (look_up_one_symbol): Likewise.
10690 * server.c (queue_stop_reply): Likewise.
10691 (start_inferior): Likewise.
10692 (queue_stop_reply_callback): Likewise.
10693 (handle_target_event): Likewise.
10694 * spu-low.c (fetch_ppc_memory): Likewise.
10695 (store_ppc_memory): Likewise.
10696 * target.c (set_target_ops): Likewise.
10697 * thread-db.c (thread_db_load_search): Likewise.
10698 (try_thread_db_load_1): Likewise.
10699 * tracepoint.c (add_tracepoint): Likewise.
10700 (add_tracepoint_action): Likewise.
10701 (create_trace_state_variable): Likewise.
10702 (cmd_qtdpsrc): Likewise.
10703 (cmd_qtro): Likewise.
10704 (add_while_stepping_state): Likewise.
10705 * win32-low.c (child_add_thread): Likewise.
10706 (get_image_name): Likewise.
10707
ed8b7b42
YQ
107082015-08-25 Yao Qi <yao.qi@linaro.org>
10709
10710 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10711
db3cb7cb
YQ
107122015-08-25 Yao Qi <yao.qi@linaro.org>
10713
10714 * Makefile.in (aarch64-linux.o): New rule.
10715 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10716 srv_tgtobj.
10717 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10718 (aarch64_init_debug_reg_state): Make it extern.
10719 (aarch64_linux_prepare_to_resume): Remove.
10720
f6011a1c
YQ
107212015-08-25 Yao Qi <yao.qi@linaro.org>
10722
10723 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10724 lwp_arch_private_info and ptid_of_lwp.
10725
88e2cf7e
YQ
107262015-08-25 Yao Qi <yao.qi@linaro.org>
10727
10728 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10729 Find proc_info by find_process_pid. All callers updated.
10730
5e35436e
YQ
107312015-08-25 Yao Qi <yao.qi@linaro.org>
10732
10733 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10734 Remove.
10735 (debug_reg_change_callback): Remove.
10736 (aarch64_notify_debug_reg_change): Remove.
10737
4a8a7965
YQ
107382015-08-25 Yao Qi <yao.qi@linaro.org>
10739
10740 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10741 Call current_lwp_ptid.
10742
32a271ee
YQ
107432015-08-25 Yao Qi <yao.qi@linaro.org>
10744
10745 * linux-aarch64-low.c (debug_reg_change_callback): Use
10746 debug_printf.
10747
0d51c8d7
YQ
107482015-08-25 Yao Qi <yao.qi@linaro.org>
10749
10750 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10751
31a43dd5
YQ
107522015-08-25 Yao Qi <yao.qi@linaro.org>
10753
10754 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10755
8ee52567
YQ
107562015-08-25 Yao Qi <yao.qi@linaro.org>
10757
10758 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10759 the code.
10760
ff3f0f45
YQ
107612015-08-25 Yao Qi <yao.qi@linaro.org>
10762
10763 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10764 Remove.
10765 (debug_reg_change_callback): Remove argument entry and add argument
10766 lwp. Remove local variable thread. Don't print thread id in the
10767 debugging output. Don't check whether pid of thread equals to pid.
10768 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10769 iterate_over_lwps instead find_inferior.
10770
3d40fbb5
PA
107712015-08-24 Pedro Alves <palves@redhat.com>
10772
10773 * inferiors.c (get_first_process): New function.
10774 * inferiors.h (get_first_process): New declaration.
10775 * remote-utils.c (read_ptid): Default to the first process in the
10776 list, instead of to the current thread's process.
10777
438e1e42
PA
107782015-08-24 Pedro Alves <palves@redhat.com>
10779
10780 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10781 * event-loop.c: Likewise.
10782 * remote-utils.c: Likewise.
10783 * tracepoint.c: Likewise.
10784
a8c6d4fc
PA
107852015-08-24 Pedro Alves <palves@redhat.com>
10786
10787 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10788 ptid_get_lwp.
10789
99b0bb12
PA
107902015-08-21 Pedro Alves <palves@redhat.com>
10791
10792 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10793 instead of literal 1.
10794
f8904751
PA
107952015-08-21 Pedro Alves <palves@redhat.com>
10796
10797 * tdesc.c (default_description): Explicitly zero-initialize.
10798
465a859e
PA
107992015-08-21 Pedro Alves <palves@redhat.com>
10800
10801 PR gdb/18749
10802 * inferiors.c (remove_thread): Discard any pending stop reply for
10803 this thread.
10804 * server.c (remove_all_on_match_pid): Rename to ...
10805 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10806 instead of a pid.
10807 (discard_queued_stop_replies): Change parameter to a ptid. Now
10808 extern.
10809 (handle_v_kill, kill_inferior_callback, captured_main)
10810 (process_serial_event): Adjust.
10811 * server.h (discard_queued_stop_replies): Declare.
10812
f0db101d
PA
108132015-08-21 Pedro Alves <palves@redhat.com>
10814
10815 * linux-low.c (wait_for_sigstop): Always switch to no thread
10816 selected if the previously current thread dies.
10817 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10818 process instead of the current thread's.
10819 * remote-utils.c (input_interrupt): Don't check if there's no
10820 current thread.
10821 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10822 current thread to the general thread fails, error out.
10823 (handle_qxfer_auxv, handle_qxfer_libraries)
10824 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10825 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10826 (handle_query): Check if there's a thread selected instead of
10827 checking whether there's any thread in the thread list.
10828 (handle_qxfer_threads, handle_qxfer_btrace)
10829 (handle_qxfer_btrace_conf): Don't error out early if there's no
10830 thread in the thread list.
10831 (handle_v_cont, myresume): Don't set the current thread to the
10832 continue thread.
10833 (process_serial_event) <Hg handling>: Also set thread_id if the
10834 previous general thread is still alive.
10835 (process_serial_event) <g/G handling>: If setting the current
10836 thread to the general thread fails, error out.
10837 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10838 thread's lwp instead of the current thread's.
10839 * target.c (set_desired_thread): If the desired thread was not
10840 found, leave the current thread pointing to NULL. Return an int
10841 (boolean) indicating success.
10842 * target.h (set_desired_thread): Change return type to int.
10843
40045d91
MF
108442015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10845
10846 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10847 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10848 #includes.
10849 (ps_get_thread_area): New function.
10850
45face3b
GB
108512015-08-19 Gary Benson <gbenson@redhat.com>
10852
10853 * hostio.c (handle_pread): Do not attempt to read more data
10854 than hostio_reply_with_data can fit in a packet.
10855
16d5f642
JB
108562015-08-18 Joel Brobecker <brobecker@adacore.com>
10857
10858 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10859
a738da3a
MF
108602015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10861
10862 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10863
33ebda9d
PA
108642015-08-06 Pedro Alves <palves@redhat.com>
10865
10866 * tracepoint.c (expr_eval_result): Now an int.
10867
a44892be
PA
108682015-08-06 Pedro Alves <palves@redhat.com>
10869
10870 * gdbthread.h (struct regcache): Forward declare.
10871 (struct thread_info) <regcache_data>: Now a struct regcache
10872 pointer.
10873 * inferiors.c (inferior_regcache_data)
10874 (set_inferior_regcache_data): Now work with struct regcache
10875 pointers.
10876 * inferiors.h (struct regcache): Forward declare.
10877 (inferior_regcache_data, set_inferior_regcache_data): Now work
10878 with struct regcache pointers.
10879 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10880 (free_register_cache_thread): Remove struct regcache pointer
10881 casts.
10882
608a1e46
PA
108832015-08-06 Pedro Alves <palves@redhat.com>
10884
10885 * server.c (captured_main): On error, print the exception message
10886 to stderr, and if run_once is set, throw a quit.
10887
f0ce0d3a
PA
108882015-08-06 Pedro Alves <palves@redhat.com>
10889
10890 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10891 the current thread.
10892
bf47e248
PA
108932015-08-06 Pedro Alves <palves@redhat.com>
10894
10895 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10896 reading beyond the passed in buffer length.
10897
b6b9ffcc
PL
108982015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10899
10900 * tracepoint.c (symbol_list) <required>: Remove.
10901
863d01bd
PA
109022015-08-06 Pedro Alves <palves@redhat.com>
10903
10904 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10905 count if stopping and suspending threads.
10906 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10907 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10908 (linux_detach): Complete an ongoing step-over.
10909 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10910 throughout.
10911 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10912 (linux_wait_1): If passing a signal to the inferior after
10913 finishing a step-over, unsuspend and re-resume all lwps. If we
10914 see a single-step event but the thread should be continuing, don't
10915 pass the trap to gdb.
10916 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10917 internal_error instead of gdb_assert.
10918 (enqueue_pending_signal): New function.
10919 (check_ptrace_stopped_lwp_gone): Add debug output.
10920 (start_step_over): Use internal_error instead of gdb_assert.
10921 (complete_ongoing_step_over): New function.
10922 (linux_resume_one_thread): Don't resume a suspended thread.
10923 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10924 it stepping.
10925
00db26fa
PA
109262015-08-06 Pedro Alves <palves@redhat.com>
10927
10928 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10929 (linux_thread_alive): Use lwp_is_marked_dead.
10930 (extended_event_reported): Delete.
10931 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10932 instead of extended_event_reported.
10933 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10934 as well.
10935 (lwp_is_marked_dead): New function.
10936 (lwp_running): Use lwp_is_marked_dead.
10937 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10938 comment.
10939
ad071a30
PA
109402015-08-06 Pedro Alves <palves@redhat.com>
10941
10942 * linux-low.c (linux_wait_1): Move fork event output out of the
10943 !report_to_gdb check. Pass event_child->waitstatus to
10944 target_waitstatus_to_string instead of ourstatus.
10945
524b57e6
YQ
109462015-08-04 Yao Qi <yao.qi@linaro.org>
10947
10948 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10949 if current_thread is 32 bit.
10950
6085d6f6
YQ
109512015-08-04 Yao Qi <yao.qi@linaro.org>
10952
10953 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10954 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10955 * server.c (extended_protocol): Remove "static".
10956 * server.h (extended_protocol): Declare it.
10957
8a7e4587
YQ
109582015-08-04 Yao Qi <yao.qi@linaro.org>
10959
10960 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10961 both aarch64 and aarch32.
10962 (aarch64_set_pc): Likewise.
10963
3b53ae99
YQ
109642015-08-04 Yao Qi <yao.qi@linaro.org>
10965
10966 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10967 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10968 arm-with-neon.xml to srv_xmlfiles.
10969 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10970 (is_64bit_tdesc): New function.
10971 (aarch64_linux_read_description): New function.
10972 (aarch64_arch_setup): Call aarch64_linux_read_description.
10973 (regs_info): Rename to regs_info_aarch64.
10974 (aarch64_regs_info): Return right regs_info.
10975 (initialize_low_arch): Call initialize_low_arch_aarch32.
10976
bd9e6534
YQ
109772015-08-04 Yao Qi <yao.qi@linaro.org>
10978
10979 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10980 * linux-aarch32-low.c: New file.
10981 * linux-aarch32-low.h: New file.
10982 * linux-arm-low.c (arm_fill_gregset): Move it to
10983 linux-aarch32-low.c.
10984 (arm_store_gregset): Likewise.
10985 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10986 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10987 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10988 (regs_info): Rename to regs_info_arm.
10989 (arm_regs_info): Return regs_info_aarch32 if
10990 have_ptrace_getregset is 1 and target description is
10991 arm_with_neon or arm_with_vfpv3.
10992 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10993 Call initialize_low_arch_aarch32 instead.
10994
ded48a5e
YQ
109952015-08-04 Yao Qi <yao.qi@linaro.org>
10996
10997 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10998 * linux-low.c: ... here.
10999 * linux-low.h (have_ptrace_getregset): Declare it.
11000
96e9210f
PA
110012015-08-04 Pedro Alves <palves@redhat.com>
11002
11003 * thread-db.c (struct thread_db): Use new typedefs.
11004 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11005 CHK calls.
11006 (disable_thread_event_reporting): Cast result of dlsym to
11007 destination function pointer type.
11008 (thread_db_mourn): Use td_ta_delete_ftype.
11009
af60a1ef
SL
110102015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11011
11012 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11013 arch variant.
11014 (CDX_BREAKPOINT): Define for R2.
11015 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11016 (the_low_target): Add comments.
11017
e8b41681
YQ
110182015-07-30 Yao Qi <yao.qi@linaro.org>
11019
11020 * linux-arm-low.c (arm_hwcap): Remove it.
11021 (arm_read_description): New local variable arm_hwcap. Don't
11022 set arm_hwcap to zero.
11023
89abb039
YQ
110242015-07-30 Yao Qi <yao.qi@linaro.org>
11025
11026 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11027 Use regcache->tdesc instead.
11028 (arm_store_wmmxregset): Likewise.
11029 (arm_fill_vfpregset): Likewise.
11030 (arm_store_vfpregset): Likewise.
11031
deca266c
YQ
110322015-07-30 Yao Qi <yao.qi@linaro.org>
11033
11034 * linux-arm-low.c: Include arch/arm.h.
11035 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11036 (arm_store_gregset): Likewise.
11037
aa58a496
SM
110382015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11039
11040 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11041 ptrace's 4th parameter.
11042
50904b25
YQ
110432015-07-27 Yao Qi <yao.qi@linaro.org>
11044
11045 * configure.srv (case aarch64*-*-linux*): Don't set
11046 srv_linux_usrregs.
11047
5826e159
PA
110482015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11049
11050 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11051 sys/ptrace.h.
11052 * linux-arm-low.c: Likewise.
11053 * linux-cris-low.c: Likewise.
11054 * linux-crisv32-low.c: Likewise.
11055 * linux-low.c: Likewise.
11056 * linux-m68k-low.c: Likewise.
11057 * linux-mips-low.c: Likewise.
11058 * linux-nios2-low.c: Likewise.
11059 * linux-s390-low.c: Likewise.
11060 * linux-sparc-low.c: Likewise.
11061 * linux-tic6x-low.c: Likewise.
11062 * linux-tile-low.c: Likewise.
11063 * linux-x86-low.c: Likewise.
11064
54019719
PA
110652015-07-24 Pedro Alves <palves@redhat.com>
11066
11067 * config.in: Regenerate.
11068 * configure: Regenerate.
11069
eb7aa561
PA
110702015-07-24 Pedro Alves <palves@redhat.com>
11071
11072 * acinclude.m4: Include ../ptrace.m4.
11073 * configure.ac: Call GDB_AC_PTRACE.
11074 * config.in, configure: Regenerate.
11075
55d7b841
YQ
110762015-07-24 Yao Qi <yao.qi@linaro.org>
11077
11078 * linux-low.c (linux_create_inferior): Remove setting to
11079 proc->priv->new_inferior.
11080 (linux_attach): Likewise.
11081 (linux_low_filter_event): Likewise.
11082 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11083
c06cbd92
YQ
110842015-07-24 Yao Qi <yao.qi@linaro.org>
11085
11086 * linux-low.c (linux_arch_setup): New function.
11087 (linux_low_filter_event): If proc->tdesc is NULL and
11088 proc->attached is true, call the_low_target.arch_setup.
11089 Otherwise, keep status pending, and return.
11090 (linux_resume_one_lwp_throw): Don't call get_pc if
11091 thread->while_stepping isn't NULL. Don't call
11092 get_thread_regcache if proc->tdesc is NULL.
11093 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11094 (linux_target_ops): Install arch_setup.
11095 * server.c (start_inferior): Call the_target->arch_setup.
11096 * target.h (struct target_ops) <arch_setup>: New field.
11097 (target_arch_setup): New marco.
11098 * lynx-low.c (lynx_target_ops): Update.
11099 * nto-low.c (nto_target_ops): Update.
11100 * spu-low.c (spu_target_ops): Update.
11101 * win32-low.c (win32_target_ops): Update.
11102
5ae3ebba
YQ
111032015-07-24 Yao Qi <yao.qi@linaro.org>
11104
11105 * linux-low.c (linux_add_process): Don't set
11106 proc->priv->new_inferior.
11107 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11108 (linux_attach): Likewise.
11109
eb97750b
YQ
111102015-07-24 Yao Qi <yao.qi@linaro.org>
11111
11112 * server.c (start_inferior): Code refactor.
11113
51aee833
YQ
111142015-07-24 Yao Qi <yao.qi@linaro.org>
11115
11116 * server.c (process_serial_event): Set general_thread.
11117
af1b22f3
YQ
111182015-07-21 Yao Qi <yao.qi@linaro.org>
11119
11120 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11121 aarch64_linux_get_debug_reg_capacity.
11122
554717a3
YQ
111232015-07-17 Yao Qi <yao.qi@linaro.org>
11124
11125 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11126 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11127 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11128 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11129 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11130 (AARCH64_HWP_ALIGNMENT): Likewise.
11131 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11132 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11133 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11134 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11135 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11136 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11137 (struct aarch64_debug_reg_state): Likewise.
11138 (struct arch_lwp_info): Likewise.
11139 (aarch64_align_watchpoint): Likewise.
11140 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11141 (aarch64_watchpoint_length): Likewise.
11142 (aarch64_point_encode_ctrl_reg): Likewise
11143 (aarch64_point_is_aligned): Likewise.
11144 (aarch64_align_watchpoint): Likewise.
11145 (aarch64_linux_set_debug_regs):
11146 (aarch64_dr_state_insert_one_point): Likewise.
11147 (aarch64_dr_state_remove_one_point): Likewise.
11148 (aarch64_handle_breakpoint): Likewise.
11149 (aarch64_handle_aligned_watchpoint): Likewise.
11150 (aarch64_handle_unaligned_watchpoint): Likewise.
11151 (aarch64_handle_watchpoint): Likewise.
11152
c67ca4de
YQ
111532015-07-17 Yao Qi <yao.qi@linaro.org>
11154
11155 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11156 and don't aarch64_get_debug_reg_state. All callers update.
11157 (aarch64_handle_aligned_watchpoint): Likewise.
11158 (aarch64_handle_unaligned_watchpoint): Likewise.
11159 (aarch64_handle_watchpoint): Likewise.
11160 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11161 (aarch64_remove_point): Likewise.
11162
25abf979
YQ
111632015-07-17 Yao Qi <yao.qi@linaro.org>
11164
11165 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11166 debug_printf.
11167 (aarch64_handle_unaligned_watchpoint): Likewise.
11168
db1ff28b
JK
111692015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11170
11171 Revert the previous 3 commits:
11172 Move gdb_regex* to common/
11173 Move linux_find_memory_regions_full & co.
11174 gdbserver build-id attribute generator
11175
700ca40f
JK
111762015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11177 Jan Kratochvil <jan.kratochvil@redhat.com>
11178
11179 gdbserver build-id attribute generator.
11180 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11181 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11182 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11183 (find_phdr): New.
11184 (get_dynamic): Use find_pdhr to traverse program headers.
11185 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11186 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11187 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11188 (get_hex_build_id): New.
11189 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11190 to reply XML document.
11191
9904185c
JK
111922015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11193 Jan Kratochvil <jan.kratochvil@redhat.com>
11194
11195 * target.c: Include target/target-utils.h and fcntl.h.
11196 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11197 (target_fileio_read_stralloc): New functions.
11198
6e5b4429
JK
111992015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11200
11201 * Makefile.in (OBS): Add gdb_regex.o.
11202 (gdb_regex.o): New.
11203 * config.in: Rebuilt.
11204 * configure: Rebuilt.
11205
ddc98fbf
JK
112062015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11207 Jan Kratochvil <jan.kratochvil@redhat.com>
11208
11209 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11210 * Makefile.in (OBS): Add target-utils.o.
11211 (linux-maps.o, target-utils.o): New.
11212 * configure.srv (srv_linux_obj): Add linux-maps.o.
11213
e57bb7a0
PL
112142015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11215
11216 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11217 function, return 1.
11218 (the_low_target): Install it.
11219
586b02a9
PA
112202015-07-14 Pedro Alves <palves@redhat.com>
11221
11222 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11223 Instead, ignore ECHILD, and throw an error for other errnos.
11224
58c1b36c
PA
112252015-07-10 Pedro Alves <palves@redhat.com>
11226
11227 * event-loop.c (struct callback_event) <data>: Change type to
11228 gdb_client_data instance instead of gdb_client_data pointer.
11229 (append_callback_event): Adjust.
11230
421530db
PL
112312015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11232
11233 * linux-aarch64-low.c: Add comments for each linux_target_ops
11234 method. Remove comments already covered in target_ops and
11235 linux_target_ops definitions.
11236 (the_low_target): Add comments for each unimplemented method.
11237
c2d65f38
YQ
112382015-07-09 Yao Qi <yao.qi@linaro.org>
11239
11240 * linux-aarch64-low.c (aarch64_regmap): Remove.
11241 (aarch64_usrregs_info): Remove.
11242 (regs_info): Set field usrregs to NULL.
11243
b20a6524
MM
112442015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11245
11246 * linux-low.c: Include "rsp-low.h"
11247 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11248 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11249 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11250 (handle_btrace_enable_pt): New.
11251 (handle_btrace_general_set): Support "pt".
11252 (handle_btrace_conf_general_set): Support "pt:size".
11253
96c97461
PL
112542015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11255
11256 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11257 Z_PACKET_SW_BP.
11258
37d66942
PL
112592015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11260
11261 * linux-aarch64-low.c: Remove comment about endianness.
11262 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11263 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11264 memcmp.
11265
dc06243f
GB
112662015-06-24 Gary Benson <gbenson@redhat.com>
11267
11268 * linux-i386-ipa.c (stdint.h): Do not include.
11269 * lynx-i386-low.c (stdint.h): Likewise.
11270 * lynx-ppc-low.c (stdint.h): Likewise.
11271 * mem-break.c (stdint.h): Likewise.
11272 * thread-db.c (stdint.h): Likewise.
11273 * tracepoint.c (stdint.h): Likewise.
11274 * win32-low.c (stdint.h): Likewise.
11275
124e13d9
SM
112762015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11277
11278 * server.c (write_qxfer_response): Update call to
11279 remote_escape_output.
11280
909c2cda
JK
112812015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11282 Jan Kratochvil <jan.kratochvil@redhat.com>
11283
11284 Merge multiple hex conversions.
11285 * gdbreplay.c (tohex): Rename to 'fromhex'.
11286 (logchar): Use fromhex.
11287
24c05f46
JK
112882015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11289
11290 * server.c (handle_qxfer_libraries): Set `version' attribute for
11291 <library-list>.
11292
14d2069a
GB
112932015-06-10 Gary Benson <gbenson@redhat.com>
11294
11295 * target.h (struct target_ops) <multifs_open>: New field.
11296 <multifs_unlink>: Likewise.
11297 <multifs_readlink>: Likewise.
11298 * linux-low.c (nat/linux-namespaces.h): New include.
11299 (linux_target_ops): Initialize the_target->multifs_open,
11300 the_target->multifs_unlink and the_target->multifs_readlink.
11301 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11302 * hostio.c (hostio_fs_pid): New static variable.
11303 (hostio_handle_new_gdb_connection): New function.
11304 (handle_setfs): Likewise.
11305 (handle_open): Use the_target->multifs_open as appropriate.
11306 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11307 (handle_readlink): Use the_target->multifs_readlink as
11308 appropriate.
11309 (handle_vFile): Handle vFile:setfs packets.
11310 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11311 after target_handle_new_gdb_connection.
11312
4b8b5e72
GB
113132015-06-10 Gary Benson <gbenson@redhat.com>
11314
11315 * configure.ac (AC_CHECK_FUNCS): Add setns.
11316 * config.in: Regenerate.
11317 * configure: Likewise.
11318 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11319 (linux-namespaces.o): New rule.
11320 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11321
3ac2e371
GB
113222015-06-09 Gary Benson <gbenson@redhat.com>
11323
11324 * hostio.c (handle_open): Process mode argument with
11325 fileio_to_host_mode.
11326
ca9b78ce
YQ
113272015-06-01 Yao Qi <yao.qi@linaro.org>
11328
11329 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11330 * linux-x86-low.c: Likewise.
11331
bfacd19d
DB
113322015-05-28 Don Breazeal <donb@codesourcery.com>
11333
11334 * linux-low.c (handle_extended_wait): Initialize
11335 thread_info.last_resume_kind for new fork children.
11336
452003ef
PA
113372015-05-15 Pedro Alves <palves@redhat.com>
11338
11339 * target.h (target_handle_new_gdb_connection): Rewrite using if
11340 wrapped in do/while.
11341
1041a03c
JB
113422015-05-14 Joel Brobecker <brobecker@adacore.com>
11343
11344 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11345 * configure, config.in: Regenerate.
11346 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11347 Declare typedef.
11348
c269dbdb
DB
113492015-05-12 Don Breazeal <donb@codesourcery.com>
11350
11351 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11352 PTRACE_EVENT_VFORK_DONE.
11353 (linux_low_ptrace_options, extended_event_reported): Add vfork
11354 events.
11355 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11356 and "vforkdone" for RSP 'T' Stop Reply Packet.
11357 * server.h (report_vfork_events): Declare
11358 global variable.
11359
3a8a0396
DB
113602015-05-12 Don Breazeal <donb@codesourcery.com>
11361
11362 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11363 (the_low_target) <new_fork>: Initialize new member.
11364 * linux-arm-low.c (arm_new_fork): New function.
11365 (the_low_target) <new_fork>: Initialize new member.
11366 * linux-low.c (handle_extended_wait): Call new target function
11367 new_fork.
11368 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11369 * linux-mips-low.c (mips_add_watchpoint): New function
11370 extracted from mips_insert_point.
11371 (the_low_target) <new_fork>: Initialize new member.
11372 (mips_linux_new_fork): New function.
11373 (mips_insert_point): Call mips_add_watchpoint.
11374 * linux-x86-low.c (x86_linux_new_fork): New function.
11375 (the_low_target) <new_fork>: Initialize new member.
11376
de0d863e
DB
113772015-05-12 Don Breazeal <donb@codesourcery.com>
11378
11379 * linux-low.c (handle_extended_wait): Implement return value,
11380 rename argument 'event_child' to 'event_lwp', handle
11381 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11382 (linux_low_ptrace_options): New function.
11383 (linux_low_filter_event): Call linux_low_ptrace_options,
11384 use different argument fo linux_enable_event_reporting,
11385 use return value from handle_extended_wait.
11386 (extended_event_reported): New function.
11387 (linux_wait_1): Call extended_event_reported and set
11388 status to report fork events.
11389 (linux_write_memory): Add pid to debug message.
11390 (reset_lwp_ptrace_options_callback): New function.
11391 (linux_handle_new_gdb_connection): New function.
11392 (linux_target_ops): Initialize new structure member.
11393 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11394 * lynx-low.c: Initialize new structure member.
11395 * remote-utils.c (prepare_resume_reply): Implement stop reason
11396 "fork" for "T" stop message.
11397 * server.c (handle_query): Call handle_new_gdb_connection.
11398 * server.h (report_fork_events): Declare global flag.
11399 * target.h (struct target_ops) <handle_new_gdb_connection>:
11400 New member.
11401 (target_handle_new_gdb_connection): New macro.
11402 * win32-low.c: Initialize new structure member.
11403
ddcbc397
DB
114042015-05-12 Don Breazeal <donb@codesourcery.com>
11405
11406 * mem-break.c (APPEND_TO_LIST): Define macro.
11407 (clone_agent_expr): New function.
11408 (clone_one_breakpoint): New function.
11409 (clone_all_breakpoints): New function.
11410 * mem-break.h: Declare new functions.
11411
89245bc0
DB
114122015-05-12 Don Breazeal <donb@codesourcery.com>
11413
11414 * linux-low.c (linux_supports_fork_events): New function.
11415 (linux_supports_vfork_events): New function.
11416 (linux_target_ops): Initialize new structure members.
11417 (initialize_low): Call linux_check_ptrace_features.
11418 * lynx-low.c (lynx_target_ops): Initialize new structure
11419 members.
11420 * server.c (report_fork_events, report_vfork_events):
11421 New global flags.
11422 (handle_query): Add new features to qSupported packet and
11423 response.
11424 (captured_main): Initialize new global variables.
11425 * target.h (struct target_ops) <supports_fork_events>:
11426 New member.
11427 <supports_vfork_events>: New member.
11428 (target_supports_fork_events): New macro.
11429 (target_supports_vfork_events): New macro.
11430 * win32-low.c (win32_target_ops): Initialize new structure
11431 members.
11432
835205d0
GB
114332015-05-12 Gary Benson <gbenson@redhat.com>
11434
11435 * server.c (handle_qxfer_exec_file): Use current process
11436 if annex is empty.
11437
21e94bd9
SL
114382015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11439
11440 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11441 Remove HAVE_PTRACE_GETREGS conditionals.
11442 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11443 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11444
45614f15
YQ
114452015-05-08 Yao Qi <yao.qi@linaro.org>
11446
11447 * linux-low.c (linux_supports_conditional_breakpoints): New
11448 function.
11449 (linux_target_ops): Install new target method.
11450 * lynx-low.c (lynx_target_ops): Install NULL hook for
11451 supports_conditional_breakpoints.
11452 * nto-low.c (nto_target_ops): Likewise.
11453 * spu-low.c (spu_target_ops): Likewise.
11454 * win32-low.c (win32_target_ops): Likewise.
11455 * server.c (handle_query): Check
11456 target_supports_conditional_breakpoints.
11457 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11458 New field.
11459 (target_supports_conditional_breakpoints): New macro.
11460
80ad801e
PA
114612015-05-06 Pedro Alves <palves@redhat.com>
11462
11463 PR server/18081
11464 * server.c (start_inferior): If the process exits, mourn it.
11465
819843c7
GB
114662015-04-21 Gary Benson <gbenson@redhat.com>
11467
11468 * hostio.c (fileio_open_flags_to_host): Factored out to
11469 fileio_to_host_openflags in common/fileio.c. Single use
11470 updated.
11471
a2d5a9d7
MF
114722015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11473
11474 * linux-xtensa-low.c (xtensa_fill_gregset)
11475 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11476 XCHAL_HAVE_LOOP.
11477
deb44829
MF
114782015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11479
11480 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11481 (regs_info): Replace usrregs pointer with NULL.
11482
e57f1de3
GB
114832015-04-17 Gary Benson <gbenson@redhat.com>
11484
11485 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11486 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11487 * server.c (handle_qxfer_exec_file): New function.
11488 (qxfer_packets): Add exec-file entry.
11489 (handle_query): Report qXfer:exec-file:read as supported packet.
11490
62828379
RN
114912015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11492
11493 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11494
b88bb450
GB
114952015-04-09 Gary Benson <gbenson@redhat.com>
11496
11497 * hostio-errno.c (errno_to_fileio_error): Remove function.
11498 Update caller to use remote_fileio_to_fio_error.
11499
c8f4bfdd
YQ
115002015-04-09 Yao Qi <yao.qi@linaro.org>
11501
11502 * linux-low.c (linux_insert_point): Call
11503 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11504 (linux_remove_point): Call remove_memory_breakpoint if type is
11505 raw_bkpt_type_sw.
11506 * linux-x86-low.c (x86_insert_point): Don't call
11507 insert_memory_breakpoint.
11508 (x86_remove_point): Don't call remove_memory_breakpoint.
11509
41f98f02
PA
115102015-04-01 Pedro Alves <palves@redhat.com>
11511 Cleber Rosa <crosa@redhat.com>
11512
11513 * server.c (gdbserver_usage): Reorganize and extend the usage
11514 message.
11515
2bf6fb9d
PA
115162015-03-24 Pedro Alves <palves@redhat.com>
11517
11518 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11519 output. Also dump TRAP_TRACE.
11520 (linux_low_filter_event): In debug output, distinguish a
11521 resume_stop SIGSTOP from a delayed SIGSTOP.
11522
369f6daa
GB
115232015-03-24 Gary Benson <gbenson@redhat.com>
11524
11525 * linux-x86-low.c (x86_linux_new_thread): Moved to
11526 nat/x86-linux.c.
11527 (x86_linux_prepare_to_resume): Likewise.
11528
8e5d4070
GB
115292015-03-24 Gary Benson <gbenson@redhat.com>
11530
11531 * Makefile.in (x86-linux-dregs.o): New rule.
11532 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11533 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11534 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11535 (x86_linux_dr_get): Likewise.
11536 (x86_linux_dr_set): Likewise.
11537 (update_debug_registers_callback): Likewise.
11538 (x86_linux_dr_set_addr): Likewise.
11539 (x86_linux_dr_get_addr): Likewise.
11540 (x86_linux_dr_set_control): Likewise.
11541 (x86_linux_dr_get_control): Likewise.
11542 (x86_linux_dr_get_status): Likewise.
11543 (x86_linux_update_debug_registers): Likewise.
11544
2b95d440
GB
115452015-03-24 Gary Benson <gbenson@redhat.com>
11546
11547 * linux-x86-low.c (x86_linux_update_debug_registers):
11548 New function, factored out from...
11549 (x86_linux_prepare_to_resume): ...this.
11550
14b0bc68
GB
115512015-03-24 Gary Benson <gbenson@redhat.com>
11552
11553 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11554 (x86_linux_dr_set): Likewise.
11555 (update_debug_registers_callback): Likewise.
11556 (x86_linux_dr_set_addr): Likewise.
11557 (x86_linux_dr_get_addr): Likewise.
11558 (x86_linux_dr_set_control): Likewise.
11559 (x86_linux_dr_get_control): Likewise.
11560 (x86_linux_dr_get_status): Likewise.
11561 (x86_linux_prepare_to_resume): Likewise.
11562
5dfe6ca8
GB
115632015-03-24 Gary Benson <gbenson@redhat.com>
11564
11565 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11566 Use perror_with_name. Pass string through gettext.
11567 (x86_linux_dr_set): Likewise.
11568
d33472ad
GB
115692015-03-24 Gary Benson <gbenson@redhat.com>
11570
11571 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11572 (x86_linux_dr_set_addr): ...this.
11573 (x86_dr_low_get_addr): Rename to...
11574 (x86_linux_dr_get_addr): ...this.
11575 (x86_dr_low_set_control): Rename to...
11576 (x86_linux_dr_set_control): ...this.
11577 (x86_dr_low_get_control): Rename to...
11578 (x86_linux_dr_get_control): ...this.
11579 (x86_dr_low_get_status): Rename to...
11580 (x86_linux_dr_get_status): ...this.
11581 (x86_dr_low): Update with new function names.
11582
4b134ca1
GB
115832015-03-24 Gary Benson <gbenson@redhat.com>
11584
11585 * Makefile.in (x86-linux.o): New rule.
11586 * configure.srv: Add x86-linux.o to relevant targets.
11587 * linux-low.c (lwp_set_arch_private_info): New function.
11588 (lwp_arch_private_info): Likewise.
11589 * linux-x86-low.c: Include nat/x86-linux.h.
11590 (arch_lwp_info): Removed structure.
11591 (update_debug_registers_callback):
11592 Use lwp_set_debug_registers_changed.
11593 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11594 and lwp_set_debug_registers_changed.
11595 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11596
34c703da
GB
115972015-03-24 Gary Benson <gbenson@redhat.com>
11598
11599 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11600 * linux-arm-low.c (arm_new_thread): Likewise.
11601 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11602 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11603 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11604 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11605
cff068da
GB
116062015-03-24 Gary Benson <gbenson@redhat.com>
11607
11608 * linux-low.c (ptid_of_lwp): New function.
11609 (lwp_is_stopped): Likewise.
11610 (lwp_stop_reason): Likewise.
11611 * linux-x86-low.c (update_debug_registers_callback):
11612 Use lwp_is_stopped.
11613 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11614 lwp_stop_reason.
11615
b2f7c7e8
GB
116162015-03-24 Gary Benson <gbenson@redhat.com>
11617
11618 * linux-low.h (linux_stop_lwp): Remove declaration.
11619
6d4ee8c6
GB
116202015-03-24 Gary Benson <gbenson@redhat.com>
11621
11622 * linux-low.h: Include nat/linux-nat.h.
11623 * linux-low.c (iterate_over_lwps_args): New structure.
11624 (iterate_over_lwps_filter): New function.
11625 (iterate_over_lwps): Likewise.
11626 * linux-x86-low.c (update_debug_registers_callback):
11627 Update signature to what iterate_over_lwps expects.
11628 Remove PID check that iterate_over_lwps now performs.
11629 (x86_dr_low_set_addr): Use iterate_over_lwps.
11630 (x86_dr_low_set_control): Likewise.
11631
70a0bb6b
GB
116322015-03-24 Gary Benson <gbenson@redhat.com>
11633
11634 * linux-x86-low.c (x86_debug_reg_state): New function.
11635 (x86_linux_prepare_to_resume): Use the above.
11636
7b669087
GB
116372015-03-24 Gary Benson <gbenson@redhat.com>
11638
11639 * linux-low.c (current_lwp_ptid): New function.
11640 * linux-x86-low.c: Include nat/linux-nat.h.
11641 (x86_dr_low_get_addr): Use current_lwp_ptid.
11642 (x86_dr_low_get_control): Likewise.
11643 (x86_dr_low_get_status): Likewise.
11644
eef49a3d
PA
116452015-03-20 Pedro Alves <palves@redhat.com>
11646
11647 * tracepoint.c (cmd_qtstatus): Make "str" const.
11648
b2333d22
PA
116492015-03-20 Pedro Alves <palves@redhat.com>
11650
11651 * server.c (handle_general_set): Make "req_str" const.
11652
23f238d3
PA
116532015-03-19 Pedro Alves <palves@redhat.com>
11654
11655 * linux-low.c (linux_resume_one_lwp): Rename to ...
11656 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11657 instead call perror_with_name.
11658 (check_ptrace_stopped_lwp_gone): New function.
11659 (linux_resume_one_lwp): Reimplement as wrapper around
11660 linux_resume_one_lwp_throw that swallows errors if the LWP is
11661 gone.
11662
91baf43f
PA
116632015-03-19 Pedro Alves <palves@redhat.com>
11664
11665 * linux-low.c (count_events_callback, select_event_lwp_callback):
11666 No longer check whether the thread has resume_stop as last resume
11667 kind.
11668
8bf3b159
PA
116692015-03-19 Pedro Alves <palves@redhat.com>
11670
11671 * linux-low.c (count_events_callback, select_event_lwp_callback):
11672 Use the lwp's status_pending_p field, not the thread's.
11673
b90fc188
PA
116742015-03-19 Pedro Alves <palves@redhat.com>
11675
11676 * linux-low.c (select_event_lwp_callback): Update comments to
11677 no longer mention SIGTRAP.
11678
464b0089
GB
116792015-03-18 Gary Benson <gbenson@redhat.com>
11680
11681 * server.c (handle_query): Do not report vFile:fstat as supported.
11682
aa9e327f
GB
116832015-03-11 Gary Benson <gbenson@redhat.com>
11684
11685 * hostio.c (sys/types.h): New include.
11686 (sys/stat.h): Likewise.
11687 (common-remote-fileio.h): Likewise.
11688 (handle_fstat): New function.
11689 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11690
791c0056
GB
116912015-03-11 Gary Benson <gbenson@redhat.com>
11692
11693 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11694 struct stat.st_blocks and struct stat.st_blksize.
11695 * configure: Regenerate.
11696 * config.in: Likewise.
11697 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11698 (OBS): Add common-remote-fileio.o.
11699 (common-remote-fileio.o): New rule.
11700
9a9df970
PA
117012015-03-09 Pedro Alves <palves@redhat.com>
11702
11703 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11704 'struct sockaddr' pointer in 'accept' call.
11705
9eb1356e
PA
117062015-03-09 Pedro Alves <palves@redhat.com>
11707
11708 Revert:
11709 2015-03-07 Pedro Alves <palves@redhat.com>
11710 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11711 or <winsock2.h> here. Instead include "gdb_socket.h".
11712 (remote_open): Use union gdb_sockaddr_u.
11713 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11714 or <winsock2.h> here. Instead include "gdb_socket.h".
11715 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11716 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11717 or <sys/un.h>.
11718 (init_named_socket, gdb_agent_helper_thread): Use union
11719 gdb_sockaddr_u.
11720
aac331e4
PA
117212015-03-07 Pedro Alves <palves@redhat.com>
11722
11723 * configure.ac (build_warnings): Move
11724 -Wdeclaration-after-statement to the C-specific set.
11725 * configure: Regenerate.
11726
366c75fc
PA
117272015-03-07 Pedro Alves <palves@redhat.com>
11728
11729 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11730 or <winsock2.h> here. Instead include "gdb_socket.h".
11731 (remote_open): Use union gdb_sockaddr_u.
11732 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11733 or <winsock2.h> here. Instead include "gdb_socket.h".
11734 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11735 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11736 or <sys/un.h>.
11737 (init_named_socket, gdb_agent_helper_thread): Use union
11738 gdb_sockaddr_u.
11739
492d29ea
PA
117402015-03-07 Pedro Alves <palves@redhat.com>
11741
11742 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11743 instead.
11744
60a191ed
YQ
117452015-03-06 Yao Qi <yao.qi@linaro.org>
11746
11747 * linux-aarch64-low.c (aarch64_insert_point): Use
11748 show_debug_regs as a boolean.
11749 (aarch64_remove_point): Likewise.
11750
f5771b1d
PA
117512015-03-05 Pedro Alves <palves@redhat.com>
11752
11753 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11754 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11755 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11756 * nto-low.c (nto_target_ops): Likewise.
11757 * spu-low.c (spu_target_ops): Likewise.
11758 * win32-low.c (win32_target_ops): Likewise.
11759
3e572f71
PA
117602015-03-04 Pedro Alves <palves@redhat.com>
11761
72f4393d 11762 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11763 Decide whether a breakpoint triggered based on the SIGTRAP's
11764 siginfo.si_code.
72f4393d
L
11765 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11766 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11767 (linux_low_filter_event): Check for breakpoints before checking
11768 watchpoints.
11769 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11770 siginfo.si_code.
72f4393d
L
11771 (linux_stopped_by_sw_breakpoint)
11772 (linux_supports_stopped_by_sw_breakpoint)
11773 (linux_stopped_by_hw_breakpoint)
11774 (linux_supports_stopped_by_hw_breakpoint): New functions.
11775 (linux_target_ops): Install new target methods.
3e572f71 11776
1ec68e26
PA
117772015-03-04 Pedro Alves <palves@redhat.com>
11778
11779 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11780 * server.c (swbreak_feature, hwbreak_feature): New globals.
11781 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11782 (captured_main): Clear swbreak_feature and hwbreak_feature.
11783 * server.h (swbreak_feature, hwbreak_feature): Declare.
11784 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11785 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11786 supports_stopped_by_hw_breakpoint>: New fields.
11787 (target_supports_stopped_by_sw_breakpoint)
11788 (target_stopped_by_sw_breakpoint)
11789 (target_supports_stopped_by_hw_breakpoint)
11790 (target_stopped_by_hw_breakpoint): Declare.
11791
15c66dd6
PA
117922015-03-04 Pedro Alves <palves@redhat.com>
11793
11794 enum lwp_stop_reason -> enum target_stop_reason
11795 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11796 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11797 (linux_wait_1, stuck_in_jump_pad_callback)
11798 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11799 (linux_stopped_by_watchpoint):
11800 * linux-low.h (enum lwp_stop_reason): Delete.
11801 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11802 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11803
98fc70d6
YQ
118042015-03-04 Yao Qi <yao.qi@linaro.org>
11805
11806 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11807
dd2ac174
GB
118082015-03-03 Gary Benson <gbenson@redhat.com>
11809
11810 * hostio.c (handle_vFile): Fix prefix lengths.
11811
d68e53f4
MM
118122015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11813
11814 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11815 ptr_bits.
11816
bf2d68ab
AA
118172015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11818
11819 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11820 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11821 (clean): Add "rm -f" for above C files.
11822 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11823 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11824 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11825 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11826 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11827 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11828 (init_registers_s390x_vx_linux64)
11829 (init_registers_s390x_tevx_linux64)
11830 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11831 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11832 declarations.
11833 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11834 (s390_store_vxrs_high): New functions.
11835 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11836 NT_S390_VXRS_HIGH.
11837 (s390_arch_setup): Add logic for selecting one of the new target
11838 descriptions. Activate the new vector regsets if applicable.
11839 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11840 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11841 and init_registers_s390x_tevx_linux64.
11842
c966a859
PA
118432015-03-01 Pedro Alves <palves@redhat.com>
11844
11845 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11846 parameter.
11847
4180215b
PA
118482015-02-27 Pedro Alves <palves@redhat.com>
11849
11850 * linux-x86-low.c (u_debugreg_offset): New function.
11851 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11852
749bab01
PA
118532015-02-27 Pedro Alves <palves@redhat.com>
11854
11855 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11856 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11857 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11858 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11859 (ps_lsetfpregs, ps_getpid)
11860 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11861 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11862 (ps_lsetxregs, ps_plog): Declare.
11863
3c14e5a3
PA
118642015-02-27 Pedro Alves <palves@redhat.com>
11865
11866 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11867 IP_AGENT_EXPORT_FUNC.
11868 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11869 IP_AGENT_EXPORT_FUNC.
11870 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11871 (IP_AGENT_EXPORT): Delete.
11872 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11873 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11874 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11875 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11876 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11877 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11878 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11879 (traceframe_read_count, traceframe_write_count)
11880 (traceframes_created, trace_state_variables, get_raw_reg)
11881 (get_trace_state_variable_value, set_trace_state_variable_value)
11882 (ust_loaded, helper_thread_id, cmd_buf): Use
11883 IPA_SYM_EXPORTED_NAME.
11884 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11885 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11886 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11887 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11888 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11889 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11890 EXTERN_C_PUSH/EXTERN_C_POP.
11891 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11892 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11893 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11894 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11895 (traceframe_write_count, traceframe_read_count)
11896 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11897 (about_to_request_buffer_space, get_trace_state_variable_value)
11898 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11899 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11900 EXTERN_C_PUSH/EXTERN_C_POP.
11901 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11902 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11903 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11904 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11905 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11906 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11907 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11908 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11909 Define.
11910 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11911 (IP_AGENT_EXPORT_VAR_DECL): Define.
11912 (tracing): Declare.
11913 (gdb_agent_get_raw_reg): Declare.
11914
fe978cb0
PA
119152015-02-27 Tom Tromey <tromey@redhat.com>
11916 Pedro Alves <palves@redhat.com>
11917
11918 Rename symbols whose names are reserved C++ keywords throughout.
11919
3bc3d82a
PA
119202015-02-27 Pedro Alves <palves@redhat.com>
11921
11922 * Makefile.in (COMPILER): New, get it from autoconf.
11923 (CXX): Get from autoconf instead.
11924 (COMPILE.pre): Use COMPILER.
11925 (CC-LD): Rename to ...
11926 (CC_LD): ... this. Use COMPILER.
11927 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11928 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11929 * acinclude.m4: Include build-with-cxx.m4.
11930 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11931 Disable -Werror by default if building in C++ mode.
11932 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11933 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11934 the C++ compiler. Save/restore CXXFLAGS too.
11935 * configure: Regenerate.
11936
07697489
PA
119372015-02-27 Pedro Alves <palves@redhat.com>
11938
11939 * acinclude.m4: Include libiberty.m4.
11940 * configure.ac: Call libiberty_INIT.
11941 * config.in, configure: Regenerate.
11942
9beb7c4e
PA
119432015-02-26 Pedro Alves <palves@redhat.com>
11944
11945 * linux-low.c (linux_wait_1): When incrementing the PC past a
11946 program breakpoint always use the_low_target.breakpoint_len as
11947 increment, rather than the maximum between that and
11948 the_low_target.decr_pc_after_break.
11949
8090aef2
PA
119502015-02-23 Pedro Alves <palves@redhat.com>
11951
11952 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11953 thread was doing a step-over; always adjust the PC if
11954 we stepped over a permanent breakpoint.
11955 (linux_wait_1): If we stepped over breakpoint that was on top of a
11956 permanent breakpoint, manually advance the PC past it.
11957
bc9540e8
PA
119582015-02-23 Pedro Alves <palves@redhat.com>
11959
11960 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11961 modes.
11962 (x86_fill_gregset, x86_store_gregset): Use it when handling
11963 $orig_eax.
11964
2db9a427
PA
119652015-02-20 Pedro Alves <palves@redhat.com>
11966
11967 * thread-db.c: Include "nat/linux-procfs.h".
11968 (thread_db_init): Skip listing new threads if the kernel supports
11969 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11970
afa8d396
PA
119712015-02-20 Pedro Alves <palves@redhat.com>
11972
11973 * linux-low.c (status_pending_p_callback): Use ptid_match.
11974
c9587f88
AT
119752015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11976
11977 PR breakpoints/16812
11978 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11979 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11980 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11981
b05ec7a5
AT
119822015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11983
11984 PR breakpoints/15956
11985 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11986
d33501a5
MM
119872015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11988
11989 * linux-low.c (linux_low_btrace_conf): Print size.
11990 * server.c (handle_btrace_conf_general_set): New.
11991 (hanle_general_set): Call handle_btrace_conf_general_set.
11992 (handle_query): Report Qbtrace-conf:bts:size as supported.
11993
f4abbc16
MM
119942015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11995
11996 * linux-low.c (linux_low_enable_btrace): Update parameters.
11997 (linux_low_btrace_conf): New.
11998 (linux_target_ops)<to_btrace_conf>: Initialize.
11999 * server.c (current_btrace_conf): New.
12000 (handle_btrace_enable): Rename to ...
12001 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12002 to target_enable_btrace. Update comment. Update users.
12003 (handle_qxfer_btrace_conf): New.
12004 (qxfer_packets): Add btrace-conf entry.
12005 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12006 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12007 (target_ops)<read_btrace_conf>: New.
12008 (target_enable_btrace): Update parameters.
12009 (target_read_btrace_conf): New.
12010
043c3577
MM
120112015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12012
12013 * server.c (handle_btrace_general_set): Remove call to
12014 target_supports_btrace.
12015 (supported_btrace_packets): New.
12016 (handle_query): Call supported_btrace_packets.
12017 * target.h: include btrace-common.h.
12018 (btrace_target_info): Removed.
12019 (supports_btrace, target_supports_btrace): Update parameters.
12020
734b0e4b
MM
120212015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12022
12023 * Makefile.in (SFILES): Add common/btrace-common.c.
12024 (OBS): Add common/btrace-common.o.
12025 (btrace-common.o): Add build rules.
12026 * linux-low: Include btrace-common.h.
12027 (linux_low_read_btrace): Use struct btrace_data. Call
12028 btrace_data_init and btrace_data_fini.
12029
d6c146e9
PA
120302015-02-06 Pedro Alves <palves@redhat.com>
12031
12032 * thread-db.c (find_new_threads_callback): Add debug output.
12033
20ba1ce6
PA
120342015-02-04 Pedro Alves <palves@redhat.com>
12035
12036 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12037 (resume_stopped_resumed_lwps): New function.
12038 (linux_wait_for_event_filtered): Use it.
12039
8cc73a39
SDJ
120402015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12041
12042 * Makefile.in (SFILES): Add linux-personality.c.
12043 (linux-personality.o): New rule.
12044 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12045 list of objects to be built.
12046 * linux-low.c: Include nat/linux-personality.h.
12047 (linux_create_inferior): Remove code to disable address space
12048 randomization (moved to ../nat/linux-personality.c). Create
12049 cleanup to disable address space randomization.
12050
fb23d554
SDJ
120512015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12052
12053 * Makefile.in (posix-strerror.o): New rule.
12054 (mingw-strerror.o): Likewise.
12055 * configure: Regenerated.
12056 * configure.ac: Source file ../common/common.host. Initialize new
12057 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12058
cdf43629
YQ
120592015-01-14 Yao Qi <yao@codesourcery.com>
12060
12061 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12062 (ppc-linux.o): New rule.
12063 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12064 * configure.ac: AC_CHECK_FUNCS(getauxval).
12065 * config.in: Re-generated.
12066 * configure: Re-generated.
12067 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12068 ppc64_64bit_inferior_p
12069
514c5338
YQ
120702015-01-14 Yao Qi <yao@codesourcery.com>
12071
12072 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12073 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12074 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12075 (PT_ORIG_R3, PT_TRAP): Likewise.
12076 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12077 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12078 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12079
3368c1e5
JB
120802015-01-10 Joel Brobecker <brobecker@adacore.com>
12081
12082 * i387-fp.c (i387_cache_to_xsave): In look over
12083 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12084 zmmh_low_space field by use of zmmh_high_space.
12085
582511be
PA
120862015-01-09 Pedro Alves <palves@redhat.com>
12087
12088 * linux-low.c (step_over_bkpt): Move higher up in the file.
12089 (handle_extended_wait): Don't store the stop_pc here.
12090 (get_stop_pc): Adjust comments and rename to ...
12091 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12092 stopped for a software breakpoint or hardware breakpoint.
12093 (thread_still_has_status_pending_p): New function.
12094 (status_pending_p_callback): Use
12095 thread_still_has_status_pending_p. If the event is no longer
12096 interesting, resume the LWP.
12097 (handle_tracepoints): Add assert.
12098 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12099 (wstatus_maybe_breakpoint): New function.
12100 (cancel_breakpoint): Delete function.
12101 (check_stopped_by_watchpoint): New function, factored out from
12102 linux_low_filter_event.
12103 (lp_status_maybe_breakpoint): Delete function.
12104 (linux_low_filter_event): Remove filter_ptid argument.
12105 Leave thread group exits pending here. Store the LWP's stop PC.
12106 Always leave events pending.
12107 (linux_wait_for_event_filtered): Pull all events out of the
12108 kernel, and leave them all pending.
12109 (count_events_callback, select_event_lwp_callback): Consider all
12110 events.
12111 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12112 (select_event_lwp): Only give preference to the stepping LWP in
12113 all-stop mode. Adjust comments.
12114 (ignore_event): New function.
12115 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12116 references to cancel_breakpoints. Adjust to renames. Also give
12117 equal priority to all LWPs that have had events in non-stop mode.
12118 If reporting a software breakpoint event, unadjust the LWP's PC.
12119 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12120 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12121 Adjust.
12122 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12123 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12124 (linux_stopped_by_watchpoint): Adjust.
12125 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12126 * linux-low.h (enum lwp_stop_reason): New.
12127 (struct lwp_info) <stop_pc>: Adjust comment.
12128 <stopped_by_watchpoint>: Delete field.
12129 <stop_reason>: New field.
12130 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12131 * mem-break.c (software_breakpoint_inserted_here)
12132 (hardware_breakpoint_inserted_here): New function.
12133 * mem-break.h (software_breakpoint_inserted_here)
12134 (hardware_breakpoint_inserted_here): Declare.
12135 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12136 (cancel_breakpoints): Delete.
12137 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12138 (upload_fast_traceframes): Remove references to
12139 cancel_breakpoints.
12140
a33e3959
PA
121412015-01-09 Pedro Alves <palves@redhat.com>
12142
12143 * thread-db.c (find_new_threads_callback): Ignore thread if the
12144 kernel thread ID is -1.
12145
8784d563
PA
121462015-01-09 Pedro Alves <palves@redhat.com>
12147
12148 * linux-low.c (linux_attach_fail_reason_string): Move to
12149 nat/linux-ptrace.c, and rename.
12150 (linux_attach_lwp): Update comment.
12151 (attach_proc_task_lwp_callback): New function.
12152 (linux_attach): Adjust to rename and use
12153 linux_proc_attach_tgid_threads.
12154 (linux_attach_fail_reason_string): Delete declaration.
12155
76f2b779
JB
121562015-01-01 Joel Brobecker <brobecker@adacore.com>
12157
12158 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12159 * server.c (gdbserver_version): Likewise.
12160
fafcc06a
SDJ
121612014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12162
12163 * remote-utils.c: Include ctype.h.
12164 (input_interrupt): Explicitly handle the case when the char
12165 received is the NUL byte. Improve the printing of non-ASCII
12166 characters.
12167
beed38b8
JB
121682014-12-16 Joel Brobecker <brobecker@adacore.com>
12169
12170 * linux-low.c (linux_low_filter_event): Update call to
12171 linux_enable_event_reporting following the addition of
12172 a new parameter to that function.
12173
bf330350
CU
121742014-12-16 Catalin Udma <catalin.udma@freescale.com>
12175
12176 PR server/17457
12177 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12178 (AARCH64_FPCR_REGNO): Likewise.
12179 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12180 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12181 (aarch64_store_fpregset): Likewise.
12182
5227d625
JB
121832014-12-15 Joel Brobecker <brobecker@adacore.com>
12184
12185 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12186 Remove FIXME comment about assumption about N.
12187
f93b65a0
JB
121882014-12-13 Joel Brobecker <brobecker@adacore.com>
12189
12190 * configure.ac: If large-file support is disabled in GDBserver,
12191 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12192 * configure: Regenerate.
12193
e5a9158d
AA
121942014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12195
12196 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12197 warning upon ENODATA from ptrace.
12198 * linux-s390-low.c (s390_store_tdb): New.
12199 (s390_regsets): Add regset for NT_S390_TDB.
12200
feea5f36
AA
122012014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12202
12203 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12204 without a fill_function.
12205 * linux-s390-low.c (s390_fill_last_break): Remove.
12206 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12207 (s390_arch_setup): Use regset's size instead of fill_function for
12208 loop end condition.
12209
098dbe61
AA
122102014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12211
12212 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12213 the regset's store function when ptrace returned an error.
12214 * regcache.c (get_thread_regcache): Invalidate register cache
12215 before fetching inferior's registers.
12216
28eef672
AA
122172014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12218
12219 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12220 while-loop as for-loop.
12221 (regsets_store_inferior_registers): Likewise.
12222
bdca27a2
YQ
122232014-11-28 Yao Qi <yao@codesourcery.com>
12224
12225 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12226 * config.in, configure: Re-generate.
12227 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12228 is defined.
12229
9c232dda
YQ
122302014-11-21 Yao Qi <yao@codesourcery.com>
12231
12232 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12233 (AC_CHECK_HEADERS): Remove malloc.h.
12234 * configure: Re-generated.
12235 * config.in: Re-generated.
12236 * server.h: Don't include alloca.h and malloc.h.
12237 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12238 Don't include malloc.h.
12239
43968415
JB
122402014-11-17 Joel Brobecker <brobecker@adacore.com>
12241
12242 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12243 corresponding ERRNO check in same block.
12244
40e91bc7
PA
122452014-11-12 Pedro Alves <palves@redhat.com>
12246
12247 * server.c (cont_thread): Update comment.
12248 (start_inferior, attach_inferior): No longer clear cont_thread.
12249 (handle_v_cont): No longer set cont_thread.
12250 (captured_main): Clear cont_thread each time a GDB connects.
12251
c2c118cf
PA
122522014-11-12 Pedro Alves <palves@redhat.com>
12253
12254 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12255 thread, and don't resume all threads if the Hc thread has exited.
12256
78708b7c
PA
122572014-11-12 Pedro Alves <palves@redhat.com>
12258
12259 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12260 the process group instead of to a specific LWP.
12261
a2abc7de
PA
122622014-10-15 Pedro Alves <palves@redhat.com>
12263
12264 PR server/17487
12265 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12266 parameter.
12267 (arm_set_thread_context): Delete.
12268 (the_low_target): Adjust.
12269 * win32-i386-low.c (debug_registers_changed)
12270 (debug_registers_used): Delete.
12271 (update_debug_registers_callback): New function.
12272 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12273 needing to update their debug registers.
12274 (win32_get_current_dr): New function.
12275 (x86_dr_low_get_addr, x86_dr_low_get_control)
12276 (x86_dr_low_get_status): Fetch the debug register from the thread
12277 record's context.
12278 (i386_initial_stuff): Adjust.
12279 (i386_get_thread_context): Remove current_event parameter. Don't
12280 clear debug_registers_changed nor copy DR values to
12281 debug_reg_state.
12282 (i386_set_thread_context): Delete.
12283 (i386_prepare_to_resume): New function.
12284 (i386_thread_added): Mark the thread as needing to update irs
12285 debug registers.
12286 (the_low_target): Remove i386_set_thread_context and install
12287 i386_prepare_to_resume.
12288 * win32-low.c (win32_get_thread_context): Adjust.
12289 (win32_set_thread_context): Use SetThreadContext
12290 directly.
12291 (win32_prepare_to_resume): New function.
12292 (win32_require_context): New function, factored out from ...
12293 (thread_rec): ... this.
12294 (continue_one_thread): Call win32_prepare_to_resume on each thread
12295 we're about to continue.
12296 (win32_resume): Call win32_prepare_to_resume on the event thread.
12297 * win32-low.h (struct win32_thread_info)
12298 <debug_registers_changed>: New field.
12299 (struct win32_target_ops): Change prototype of set_thread_context,
12300 delete set_thread_context and add prepare_to_resume.
12301 (win32_require_context): New declaration.
12302
a442d071
GB
123032014-10-08 Gary Benson <gbenson@redhat.com>
12304
12305 * server.h: Do not include common-exceptions.h.
12306
6f1947e8
GB
123072014-10-08 Gary Benson <gbenson@redhat.com>
12308
12309 * server.h: Do not include cleanups.h.
12310
63b434a4
JH
123112014-09-30 James Hogan <james.hogan@imgtec.com>
12312
12313 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12314 mips64-dsp-linux.c.
12315
c4d9ceb6
YQ
123162014-09-23 Yao Qi <yao@codesourcery.com>
12317
12318 * linux-low.c (lp_status_maybe_breakpoint): New function.
12319 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12320 (count_events_callback): Likewise.
12321 (select_event_lwp_callback): Likewise.
12322 (cancel_breakpoints_callback): Likewise.
12323
89a5711c
DB
123242014-09-19 Don Breazeal <donb@codesourcery.com>
12325
12326 * linux-low.c (handle_extended_wait): Call
12327 linux_ptrace_get_extended_event.
12328 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12329 linux_is_extended_waitstatus.
12330
bffc0964
JB
123312014-09-16 Joel Brobecker <brobecker@adacore.com>
12332
12333 * Makefile.in (CPPFLAGS): Define.
12334 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12335 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12336
0bfdf32f
GB
123372014-09-16 Gary Benson <gbenson@redhat.com>
12338
12339 * inferiors.h (current_inferior): Renamed as...
12340 (current_thread): New variable. All uses updated.
12341 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12342 (maybe_move_out_of_jump_pad): Likewise.
12343 (cancel_breakpoint): Likewise.
12344 (linux_low_filter_event): Likewise.
12345 (wait_for_sigstop): Likewise.
12346 (linux_resume_one_lwp): Likewise.
12347 (need_step_over_p): Likewise.
12348 (start_step_over): Likewise.
12349 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12350 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12351 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12352 and save_inferior as saved_thread.
12353 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12354 saved_thread.
12355 (regcache_invalidate_thread): Likewise.
12356 * remote-utils.c (prepare_resume_reply): Likewise.
12357 * thread-db.c (thread_db_get_tls_address): Likewise.
12358 (disable_thread_event_reporting): Likewise.
12359 (remove_thread_event_breakpoints): Likewise.
12360 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12361 as saved_thread.
12362 * target.h (set_desired_inferior): Renamed as...
12363 (set_desired_thread): New declaration. All uses updated.
12364 * server.c (myresume): Updated comment to reference thread instead
12365 of inferior.
12366 (handle_serial_event): Likewise.
12367 (handle_target_event): Likewise.
12368
361c8ade
GB
123692014-09-12 Tom Tromey <tromey@redhat.com>
12370 Gary Benson <gbenson@redhat.com>
12371
12372 * regcache.h: Include common-regcache.h.
12373 (regcache_read_pc): Don't declare.
12374 * regcache.c (get_thread_regcache_for_ptid): New function.
12375
bd9269f7
GB
123762014-09-11 Tom Tromey <tromey@redhat.com>
12377 Gary Benson <gbenson@redhat.com>
12378
12379 * symbol.c: New file.
12380 * Makefile.in (SFILES): Add symbol.c.
12381 (OBS): Add symbol.o.
12382
f8c1d06b
GB
123832014-09-11 Gary Benson <gbenson@redhat.com>
12384
12385 * target.c (target_stop_ptid, target_continue_ptid): New
12386 functions.
12387
721ec300
GB
123882014-09-11 Tom Tromey <tromey@redhat.com>
12389 Gary Benson <gbenson@redhat.com>
12390
12391 * target.h: Include target/target.h.
12392 * target.c (target_read_memory, target_read_uint32)
12393 (target_write_memory): New functions.
12394
c5e92cca
GB
123952014-09-11 Gary Benson <gbenson@redhat.com>
12396
12397 * server.h (debug_hw_points): Don't declare.
12398 * server.c (debug_hw_points): Don't define. Replace all uses
12399 with show_debug_regs.
12400 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12401 all uses with show_debug_regs.
12402
2e4bb98a
EBM
124032014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12404
12405 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12406 endianness into account.
12407 (ppc_supply_ptrace_register): Likewise.
12408
ac740bc7
JH
124092014-09-03 James Hogan <james.hogan@imgtec.com>
12410
12411 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12412 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12413
97ea6506
GB
124142014-09-03 Gary Benson <gbenson@redhat.com>
12415
12416 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12417 ALL_DEBUG_ADDRESS_REGISTERS.
12418
df7e5265
GB
124192014-09-02 Gary Benson <gbenson@redhat.com>
12420
12421 * i386-low.h: Renamed as...
12422 * x86-low.h: New file. All type, function and variable name
12423 prefixes changed from "i386_" to "x86_". All references updated.
12424 * i386-low.c: Renamed as...
12425 * x86-low.c: New file. All type, function and variable name
12426 prefixes changed from "i386_" to "x86_". All references updated.
12427
ed859da7
GB
124282014-09-02 Gary Benson <gbenson@redhat.com>
12429
12430 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12431 (x86_linux_new_thread): Likewise.
12432
860789c7
GB
124332014-08-29 Gary Benson <gbenson@redhat.com>
12434
12435 * server.h (setjmp.h): Do not include.
12436 (toplevel): Do not declare.
12437 (common-exceptions.h): Include.
12438 (cleanups.h): Likewise.
12439 * server.c (toplevel): Do not define.
12440 (exit_code): New static global.
12441 (detach_or_kill_for_exit_cleanup): New function.
12442 (main): New function. Original main renamed to...
12443 (captured_main): New function.
12444 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12445
ff55e1b5
GB
124462014-08-29 Gary Benson <gbenson@redhat.com>
12447
12448 * Makefile.in (SFILES): Add common/common-exceptions.c.
12449 (OBS): Add common-exceptions.o.
12450 (common-exceptions.o): New rule.
12451 * utils.c (prepare_to_throw_exception): New function.
12452
e9bcb658
GB
124532014-08-29 Gary Benson <gbenson@redhat.com>
12454
12455 * config.in: Regenerate.
12456 * configure: Likewise.
12457
e3180625
GB
124582014-08-29 Gary Benson <gbenson@redhat.com>
12459
12460 * Makefile.in (SFILES): Add common/cleanups.c.
12461 (OBS): cleanups.o.
12462 (cleanups.o): New rule.
12463
e3d6ba5d
GB
124642014-08-29 Gary Benson <gbenson@redhat.com>
12465
12466 * utils.c (internal_vwarning): New function.
12467
7096e886
GB
124682014-08-28 Gary Benson <gbenson@redhat.com>
12469
12470 * utils.h (fatal): Remove declaration.
12471 * utils.c (fatal): Remove function.
12472
14ce3192
GB
124732014-08-28 Gary Benson <gbenson@redhat.com>
12474
12475 * tracepoint.c (gdb_agent_init): Replace fatal with
12476 perror_with_name.
12477 (initialize_tracepoint): Likewise.
12478
50278d59
GB
124792014-08-28 Gary Benson <gbenson@redhat.com>
12480
12481 * remote-utils.c (remote_prepare): Replace fatal with error.
12482
aa96c426
GB
124832014-08-28 Gary Benson <gbenson@redhat.com>
12484
12485 * linux-low.c (linux_async): Replace fatal with warning.
12486 Tidy up and return.
12487 (linux_start_non_stop): Return -1 if linux_async failed.
12488
f7160e97
GB
124892014-08-28 Gary Benson <gbenson@redhat.com>
12490
12491 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12492 gdb_assert.
12493 (i386_dr_low_get_addr): Remove vague comment.
12494 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12495 gdb_assert.
12496
38e08fca
GB
124972014-08-28 Gary Benson <gbenson@redhat.com>
12498
12499 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12500 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12501 internal_error.
12502 (linux_resume_one_lwp): Likewise.
12503 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12504 gdb_assert.
12505 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12506 with internal_error.
12507 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12508 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12509 (find_register_by_name): Replace fatal with internal_error.
12510 (find_regno): Likewise.
12511 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12512 * thread-db.c (thread_db_create_event): Likewise.
12513 (thread_db_load_search): Likewise.
12514 (try_thread_db_load_1): Likewise.
12515 * tracepoint.c (get_jump_space_head): Replace fatal with
12516 internal_error.
12517 (claim_trampoline_space): Likewise.
12518 (have_fast_tracepoint_trampoline_buffer): Likewise.
12519 (cmd_qtstart): Likewise.
12520 (stop_tracing): Likewise.
12521 (fast_tracepoint_collecting): Likewise.
12522 (target_malloc): Likewise.
12523 (download_tracepoint): Likewise.
12524 (download_trace_state_variables): Replace check with gdb_assert.
12525 (upload_fast_traceframes): Replace fatal with internal_error.
12526
34abf635
GB
125272014-08-19 Tom Tromey <tromey@redhat.com>
12528 Gary Benson <gbenson@redhat.com>
12529
12530 * Makefile.in (SFILES): Add common/common-debug.c.
12531 (OBS): Add common-debug.o.
12532 (common-debug.o): New rule.
12533 * debug.h (debug_printf): Don't declare.
12534 * debug.c (debug_printf): Renamed and rewritten as...
12535 (debug_vprintf): New function.
12536
f6e94d78
GB
125372014-08-19 Gary Benson <gbenson@redhat.com>
12538
12539 * utils.h: Do not include print-utils.h.
12540
9239eeab
GB
125412014-08-19 Tom Tromey <tromey@redhat.com>
12542 Gary Benson <gbenson@redhat.com>
12543
12544 * server.h: Add static assertion.
12545 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12546
ef87c8bb
GB
125472014-08-19 Tom Tromey <tromey@redhat.com>
12548 Gary Benson <gbenson@redhat.com>
12549
12550 * Makefile.in (SFILES): Add common/errors.c.
12551 (OBS): Add errors.o.
12552 (IPA_OBS): Add errors-ipa.o.
12553 (errors.o): New rule.
12554 (errors-ipa.o): Likewise.
12555 * utils.h (perror_with_name, error, warning): Don't declare.
12556 * utils.c (warning): Renamed and rewritten as...
12557 (vwarning): New function.
12558 (error): Renamed and rewritten as...
12559 (verror): New function.
12560 (internal_error): Renamed and rewritten as...
12561 (internal_verror): New function.
12562
bb974a24
GB
125632014-08-07 Gary Benson <gbenson@redhat.com>
12564
12565 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12566 * configure: Regenerate.
12567 * config.in: Likewise.
12568 * server.h: Do not include errno.h.
12569 * event-loop.c: Likewise.
12570 * hostio-errno.c: Likewise.
12571 * linux-low.c: Likewise.
12572 * remote-utils.c: Likewise.
12573 * spu-low.c: Likewise.
12574 * utils.c: Likewise.
12575 * gdbreplay.c: Unconditionally include errno.h.
12576
6d3d12eb
GB
125772014-08-07 Gary Benson <gbenson@redhat.com>
12578
12579 * server.h: Do not include string.h.
12580 * event-loop.c: Likewise.
12581 * linux-low.c: Likewise.
12582 * regcache.c: Likewise.
12583 * remote-utils.c: Likewise.
12584 * spu-low.c: Likewise.
12585 * utils.c: Likewise.
12586
dccbb609
GB
125872014-08-07 Gary Benson <gbenson@redhat.com>
12588
12589 * server.h: Do not include gdb_assert.h.
12590
e76df0d0
GB
125912014-08-07 Gary Benson <gbenson@redhat.com>
12592
12593 * server.h: Do not include common-utils.h.
12594
4cb9c816
GB
125952014-08-07 Gary Benson <gbenson@redhat.com>
12596
12597 * server.h: Do not include ptid.h.
12598 * notif.h: Likewise.
12599
3995eeee
GB
126002014-08-07 Gary Benson <gbenson@redhat.com>
12601
12602 * server.h: Do not include gdb_locale.h.
12603
cb9f1a9b
GB
126042014-08-07 Gary Benson <gbenson@redhat.com>
12605
12606 * server.h: Do not include gdb/signals.h.
12607 * win32-low.c: Likewise.
12608
a5fceff8
GB
126092014-08-07 Gary Benson <gbenson@redhat.com>
12610
12611 * server.h: Do not include pathmax.h.
12612
b9391142
GB
126132014-08-07 Gary Benson <gbenson@redhat.com>
12614
12615 * server.h: Do not include libiberty.h.
12616 * linux-bfin-low.c: Likewise.
12617
0e443c87
GB
126182014-08-07 Gary Benson <gbenson@redhat.com>
12619
12620 * server.h: Do not include ansidecl.h.
12621
8ebb3f56
GB
126222014-08-07 Gary Benson <gbenson@redhat.com>
12623
12624 * linux-x86-low.c: Do not include stddef.h.
12625 * lynx-ppc-low.c: Likewise.
12626 * tracepoint.c: Likewise.
12627
8980bdf6
GB
126282014-08-07 Gary Benson <gbenson@redhat.com>
12629
12630 * server.h: Do not include stdarg.h.
12631 * nto-low.c: Likewise.
12632
d7096f71
GB
126332014-08-07 Gary Benson <gbenson@redhat.com>
12634
12635 * server.h: Do not include stdlib.h.
12636 * inferiors.c: Likewise.
12637 * linux-low.c: Likewise.
12638 * regcache.c: Likewise.
12639 * spu-low.c: Likewise.
12640 * tracepoint.c: Likewise.
12641 * utils.c: Likewise.
12642
d02f550d
GB
126432014-08-07 Gary Benson <gbenson@redhat.com>
12644
12645 * server.h: Do not include stdio.h.
12646 * linux-low.c: Likewise.
12647 * remote-utils.c: Likewise.
12648 * spu-low.c: Likewise.
12649 * utils.c: Likewise.
12650 * wincecompat.c: Likewise.
12651
87f6c4e3
GB
126522014-08-06 Gary Benson <gbenson@redhat.com>
12653
12654 * regcache.c (init_register_cache): Move conditionals inside if.
12655
7089dca4
GB
126562014-08-06 Gary Benson <gbenson@redhat.com>
12657
12658 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12659
462f517e
GB
126602014-07-31 Gary Benson <gbenson@redhat.com>
12661
12662 * ax.h: Do not include server.h.
12663 * gdbthread.h: Likewise.
12664 * lynx-low.h: Likewise.
12665 * notif.h: Likewise.
12666
976411d6
GB
126672014-07-30 Gary Benson <gbenson@redhat.com>
12668
12669 * server.h: Include common-defs.h.
12670 Do not include config.h or build-gnulib-gdbserver/config.h.
12671
d41f6d8e
GB
126722014-07-30 Gary Benson <gbenson@redhat.com>
12673
12674 * hostio-errno.c: Move server.h to top of includes list.
12675 * inferiors.c: Likewise.
12676 * linux-x86-low.c: Likewise.
12677 * notif.c: Include server.h.
12678
314c6a35
TT
126792014-07-24 Tom Tromey <tromey@redhat.com>
12680 Gary Benson <gbenson@redhat.com>
12681
12682 * server.h (CORE_ADDR): Now unsigned.
12683
69ff6be5
PA
126842014-07-16 Pedro Alves <palves@redhat.com>
12685
12686 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12687
ce9e3fe7
PA
126882014-07-15 Pedro Alves <palves@redhat.com>
12689
12690 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12691 copy.
12692
e76126e8
PA
126932014-07-11 Pedro Alves <palves@redhat.com>
12694
12695 * linux-low.c (kill_wait_lwp): New function, based on
12696 kill_one_lwp_callback, but use my_waitpid directly.
12697 (kill_one_lwp_callback, linux_kill): Use it.
12698
8e9db26e
PA
126992014-06-23 Pedro Alves <palves@redhat.com>
12700
12701 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12702 before setting DR0..DR3.
12703
698b3e08
GB
127042014-06-20 Gary Benson <gbenson@redhat.com>
12705
12706 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12707 * configure: Regenerated.
12708 * config.in: Likewise.
12709
125f8a3d
GB
127102014-06-20 Gary Benson <gbenson@redhat.com>
12711
12712 * Makefile.in (SFILES): Update locations for files moved
12713 from common to nat.
12714 (object file files): Reordered.
12715
42995dbd
GB
127162014-06-20 Gary Benson <gbenson@redhat.com>
12717
12718 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12719 (i386_dr_low_set_addr): Likewise.
12720 (i386_dr_low_get_addr): Likewise.
12721 (i386_dr_low_can_set_control): Likewise.
12722 (i386_dr_low_set_control): Likewise.
12723 (i386_dr_low_get_control): Likewise.
12724 (i386_dr_low_get_status): Likewise.
12725 (i386_get_debug_register_length): Likewise.
12726 * linux-x86-low.c (i386_dr_low_set_addr):
12727 Changed signature. Made static.
12728 (i386_dr_low_get_addr): Likewise.
12729 (i386_dr_low_set_control): Likewise.
12730 (i386_dr_low_get_control): Likewise.
12731 (i386_dr_low_get_status): Likewise.
12732 (i386_dr_low): New global variable.
12733 * win32-i386-low.c (i386_dr_low_set_addr):
12734 Changed signature. Made static.
12735 (i386_dr_low_get_addr): Likewise.
12736 (i386_dr_low_set_control): Likewise.
12737 (i386_dr_low_get_control): Likewise.
12738 (i386_dr_low_get_status): Likewise.
12739 (i386_dr_low): New global variable.
12740
e1d2394b
MS
127412014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12742
12743 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12744 * Makefile.in (AR, AR_FLAGS): Define.
12745 * configure: Regenerate.
12746
3a8ee006
GB
127472014-06-19 Gary Benson <gbenson@redhat.com>
12748
12749 * Makefile.in (i386-dregs.o): New rule.
12750 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12751 * i386-low.c (target.h): Remove include.
12752 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12753 (DR_CONTROL_SHIFT): Likewise.
12754 (DR_CONTROL_SIZE): Likewise.
12755 (DR_RW_EXECUTE): Likewise.
12756 (DR_RW_WRITE): Likewise.
12757 (DR_RW_READ): Likewise.
12758 (DR_RW_IORW): Likewise.
12759 (DR_LEN_1): Likewise.
12760 (DR_LEN_2): Likewise.
12761 (DR_LEN_4): Likewise.
12762 (DR_LEN_8): Likewise.
12763 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12764 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12765 (DR_ENABLE_SIZE): Likewise.
12766 (DR_LOCAL_SLOWDOWN): Likewise.
12767 (DR_GLOBAL_SLOWDOWN): Likewise.
12768 (DR_CONTROL_RESERVED): Likewise.
12769 (I386_DR_CONTROL_MASK): Likewise.
12770 (I386_DR_VACANT): Likewise.
12771 (I386_DR_LOCAL_ENABLE): Likewise.
12772 (I386_DR_GLOBAL_ENABLE): Likewise.
12773 (I386_DR_DISABLE): Likewise.
12774 (I386_DR_SET_RW_LEN): Likewise.
12775 (I386_DR_GET_RW_LEN): Likewise.
12776 (I386_DR_WATCH_HIT): Likewise.
12777 (i386_wp_op_t): Likewise.
12778 (i386_show_dr): Likewise.
12779 (i386_length_and_rw_bits): Likewise.
12780 (i386_insert_aligned_watchpoint): Likewise.
12781 (i386_remove_aligned_watchpoint): Likewise.
12782 (i386_handle_nonaligned_watchpoint): Likewise.
12783 i386_update_inferior_debug_regs(): Likewise.
12784 (i386_dr_insert_watchpoint): Likewise.
12785 (i386_dr_remove_watchpoint): Likewise.
12786 (i386_dr_region_ok_for_watchpoint): Likewise.
12787 (i386_dr_stopped_data_address): Likewise.
12788 (i386_dr_stopped_by_watchpoint): Likewise.
12789
8f26655c
GB
127902014-06-19 Gary Benson <gbenson@redhat.com>
12791
12792 * i386-low.c (i386_dr_show): Renamed to
12793 i386_show_dr and made static. All uses updated.
12794 (i386_dr_length_and_rw_bits): Renamed to
12795 i386_length_and_rw_bits and made static.
12796 All uses updated.
12797 (i386_dr_insert_aligned_watchpoint): Renamed to
12798 i386_insert_aligned_watchpoint and made static.
12799 All uses updated.
12800 (i386_dr_remove_aligned_watchpoint): Renamed to
12801 i386_remove_aligned_watchpoint and made static.
12802 All uses updated.
12803 (i386_dr_update_inferior_debug_regs): Renamed to
12804 i386_update_inferior_debug_regs and made static.
12805 All uses updated.
12806
b9228891
GB
128072014-06-18 Gary Benson <gbenson@redhat.com>
12808
5171def3
GB
12809 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12810 (i386_dr_low_can_set_control): Likewise.
12811 (i386_get_debug_register_length): Likewise.
12812 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12813 (i386_dr_low_can_set_control): Likewise.
12814 (i386_get_debug_register_length): Likewise.
12815
128162014-06-17 Gary Benson <gbenson@redhat.com>
12817
b9228891
GB
12818 * i386-low.h (i386-dregs.h): New include.
12819 (DR_FIRSTADDR): Now in i386-dregs.h.
12820 (DR_LASTADDR): Likewise.
12821 (DR_NADDR): Likewise.
12822 (DR_STATUS): Likewise.
12823 (DR_CONTROL): Likewise.
12824 (i386_debug_reg_state): Likewise.
12825 (i386_dr_insert_watchpoint): Likewise.
12826 (i386_dr_remove_watchpoint): Likewise.
12827 (i386_dr_region_ok_for_watchpoint): Likewise.
12828 (i386_dr_stopped_data_address): Likewise.
12829 (i386_dr_stopped_by_watchpoint): Likewise.
12830 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12831
4be83cc2
GB
128322014-06-18 Gary Benson <gbenson@redhat.com>
12833
12834 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12835 i386_dr_insert_watchpoint.
12836 (i386_low_remove_watchpoint): Renamed to
12837 i386_dr_remove_watchpoint.
12838 (i386_low_region_ok_for_watchpoint): Renamed to
12839 i386_dr_region_ok_for_watchpoint.
12840 (i386_low_stopped_data_address): Renamed to
12841 i386_dr_stopped_data_address.
12842 (i386_low_stopped_by_watchpoint): Renamed to
12843 i386_dr_stopped_by_watchpoint.
12844 * i386-low.c (i386_show_dr): Renamed to
12845 i386_dr_show and made nonstatic. All uses updated.
12846 (i386_length_and_rw_bits): Renamed to
12847 i386_dr_length_and_rw_bits and made nonstatic.
12848 All uses updated.
12849 (i386_insert_aligned_watchpoint): Renamed to
12850 i386_dr_insert_aligned_watchpoint and made nonstatic.
12851 All uses updated.
12852 (i386_remove_aligned_watchpoint): Renamed to
12853 i386_dr_remove_aligned_watchpoint and made nonstatic.
12854 All uses updated.
12855 (i386_update_inferior_debug_regs): Renamed to
12856 i386_dr_update_inferior_debug_regs and made nonstatic.
12857 All uses updated.
12858 (i386_low_insert_watchpoint): Renamed to
12859 i386_dr_insert_watchpoint. All uses updated.
12860 (i386_low_remove_watchpoint): Renamed to
12861 i386_dr_remove_watchpoint. All uses updated.
12862 (i386_low_region_ok_for_watchpoint): Renamed to
12863 i386_dr_region_ok_for_watchpoint. All uses updated.
12864 (i386_low_stopped_data_address): Renamed to
12865 i386_dr_stopped_data_address. All uses updated.
12866 (i386_low_stopped_by_watchpoint): Renamed to
12867 i386_dr_stopped_by_watchpoint. All uses updated.
12868
131aa0d4
GB
128692014-06-18 Gary Benson <gbenson@redhat.com>
12870
12871 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12872 (i386_dr_low_can_set_control): Likewise.
12873 (i386_insert_aligned_watchpoint): New check.
12874
d9305f7f
GB
128752014-06-18 Gary Benson <gbenson@redhat.com>
12876
12877 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12878 Renamed to state.
12879
e927c9fc
GB
128802014-06-18 Gary Benson <gbenson@redhat.com>
12881
12882 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12883 instead of fatal and error.
12884 (i386_handle_nonaligned_watchpoint): Likewise.
12885
1b6d4134
GB
128862014-06-18 Gary Benson <gbenson@redhat.com>
12887
12888 * i386-low.c (i386_get_debug_register_length): New macro.
12889 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12890 (i386_show_dr): Use debug_printf instead of fprintf. Use
12891 phex to format values.
12892
6e62758f
GB
128932014-06-18 Gary Benson <gbenson@redhat.com>
12894
12895 * i386-low.h: Comment changes.
12896 * i386-low.c: Likewise.
12897
fc6e2f03
GB
128982014-06-18 Gary Benson <gbenson@redhat.com>
12899
12900 * i386-low.c: Whitespace changes.
12901
f9d1eeed
TT
129022014-06-12 Tom Tromey <tromey@redhat.com>
12903
12904 * utils.c (freeargv): Remove.
12905
0b04e523
TT
129062014-06-12 Tom Tromey <tromey@redhat.com>
12907
12908 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12909 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12910 (parse_debug_format_options): Likewise.
12911 (gdbserver_usage): Likewise.
12912 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12913 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12914 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12915 against libiberty.
12916 ($(LIBGNU)): Depend on libiberty.
12917 (all-lib): Recurse into all subdirs.
12918 (install-only): Invoke "install" target in subdirs.
12919 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12920 targets.
12921 * configure: Rebuild.
12922 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12923 for vasprintf, vsnprintf, or gettimeofday.
12924 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12925 srv_tgtobj.
12926
270c9937
JB
129272014-06-05 Joel Brobecker <brobecker@adacore.com>
12928
12929 * development.sh: Delete.
12930 * Makefile.in (config.status): Adjust dependency on development.sh.
12931 * configure.ac: Adjust development.sh source call.
12932 * configure: Regenerate.
12933
0a261ed8
PA
129342014-06-02 Pedro Alves <palves@redhat.com>
12935
12936 * ax.c (gdb_free_agent_expr): New function.
12937 * ax.h (gdb_free_agent_expr): New declaration.
12938 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12939 list.
12940 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12941 static.
12942 (clear_breakpoint_conditions_and_commands): New function.
12943 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12944 (clear_breakpoint_conditions_and_commands): New declaration.
12945
e9dae05e
RR
129462014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12947
12948 * linux-aarch64-low.c (asm/ptrace.h): Include.
12949
5876f503
JK
129502014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12951
12952 Fix TLS access for -static -pthread.
12953 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12954 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12955 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12956
802e8e6d
PA
129572014-05-20 Pedro Alves <palves@redhat.com>
12958
12959 * linux-aarch64-low.c (aarch64_insert_point)
12960 (aarch64_remove_point): No longer check whether the type is
12961 supported here. Adjust to new interface.
12962 (the_low_target): Install aarch64_supports_z_point_type as
12963 supports_z_point_type method.
12964 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12965 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12966 instead of a Z packet char. Adjust.
12967 (arm_supports_z_point_type): New function.
12968 (arm_insert_point, arm_remove_point): Adjust to new interface.
12969 (the_low_target): Install arm_supports_z_point_type.
12970 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12971 (cris_insert_point, cris_remove_point): Adjust to new interface.
12972 Don't check whether the type is supported here.
12973 (the_low_target): Install cris_supports_z_point_type.
12974 * linux-low.c (linux_supports_z_point_type): New function.
12975 (linux_insert_point, linux_remove_point): Adjust to new interface.
12976 * linux-low.h (struct linux_target_ops) <insert_point,
12977 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12978 raw_breakpoint pointer parameter.
12979 <supports_z_point_type>: New method.
12980 * linux-mips-low.c (mips_supports_z_point_type): New function.
12981 (mips_insert_point, mips_remove_point): Adjust to new interface.
12982 Use mips_supports_z_point_type.
12983 (the_low_target): Install mips_supports_z_point_type.
12984 * linux-ppc-low.c (the_low_target): Install NULL as
12985 supports_z_point_type method.
12986 * linux-s390-low.c (the_low_target): Install NULL as
12987 supports_z_point_type method.
12988 * linux-sparc-low.c (the_low_target): Install NULL as
12989 supports_z_point_type method.
12990 * linux-x86-low.c (x86_supports_z_point_type): New function.
12991 (x86_insert_point): Adjust to new insert_point interface. Use
12992 insert_memory_breakpoint. Adjust to new
12993 i386_low_insert_watchpoint interface.
12994 (x86_remove_point): Adjust to remove_point interface. Use
12995 remove_memory_breakpoint. Adjust to new
12996 i386_low_remove_watchpoint interface.
12997 (the_low_target): Install x86_supports_z_point_type.
12998 * lynx-low.c (lynx_target_ops): Install NULL as
12999 supports_z_point_type callback.
13000 * nto-low.c (nto_supports_z_point_type): New.
13001 (nto_insert_point, nto_remove_point): Adjust to new interface.
13002 (nto_target_ops): Install nto_supports_z_point_type.
13003 * mem-break.c: Adjust intro comment.
13004 (struct raw_breakpoint) <raw_type, size>: New fields.
13005 <inserted>: Update comment.
13006 <shlib_disabled>: Delete field.
13007 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13008 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13009 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13010 (raw_bkpt_type_to_target_hw_bp_type): New function.
13011 (find_enabled_raw_code_breakpoint_at): New function.
13012 (find_raw_breakpoint_at): New type and size parameters. Use them.
13013 (insert_memory_breakpoint): New function, based off
13014 set_raw_breakpoint_at.
13015 (remove_memory_breakpoint): New function.
13016 (set_raw_breakpoint_at): Reimplement.
13017 (set_breakpoint): New, based on set_breakpoint_at.
13018 (set_breakpoint_at): Reimplement.
13019 (delete_raw_breakpoint): Go through the_target->remove_point
13020 instead of assuming memory breakpoints.
13021 (find_gdb_breakpoint_at): Delete.
13022 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13023 (find_gdb_breakpoint): New function.
13024 (set_gdb_breakpoint_at): Delete.
13025 (z_type_supported): New function.
13026 (set_gdb_breakpoint_1): New function, loosely based off
13027 set_gdb_breakpoint_at.
13028 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13029 (delete_gdb_breakpoint_at): Delete.
13030 (delete_gdb_breakpoint_1): New function, loosely based off
13031 delete_gdb_breakpoint_at.
13032 (delete_gdb_breakpoint): New function.
13033 (clear_gdb_breakpoint_conditions): Rename to ...
13034 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13035 breakpoint.
13036 (add_condition_to_breakpoint): Make static.
13037 (add_breakpoint_condition): Take a struct breakpoint pointer
13038 instead of an address. Adjust.
13039 (gdb_condition_true_at_breakpoint): Rename to ...
13040 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13041 z_type parameter.
13042 (gdb_condition_true_at_breakpoint): Reimplement.
13043 (add_breakpoint_commands): Take a struct breakpoint pointer
13044 instead of an address. Adjust.
13045 (gdb_no_commands_at_breakpoint): Rename to ...
13046 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13047 parameter. Return true if no breakpoint was found. Change debug
13048 output.
13049 (gdb_no_commands_at_breakpoint): Reimplement.
13050 (run_breakpoint_commands): Rename to ...
13051 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13052 and change return type to boolean.
13053 (run_breakpoint_commands): New function.
13054 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13055 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13056 breakpoint. Go through the_target->remove_point instead of
13057 assuming memory breakpoint.
13058 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13059 software and hardware breakpoints.
13060 (reinsert_raw_breakpoint): Go through the_target->insert_point
13061 instead of assuming memory breakpoint.
13062 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13063 software and hardware breakpoints.
13064 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13065 Check both software and hardware breakpoints.
13066 (validate_inserted_breakpoint): Assert the breakpoint is a
13067 software breakpoint. Set the inserted flag to -1 instead of
13068 setting shlib_disabled.
13069 (delete_disabled_breakpoints): Adjust.
13070 (validate_breakpoints): Only validate software breakpoints.
13071 Adjust to inserted flag change.
13072 (check_mem_read, check_mem_write): Skip breakpoint types other
13073 than software breakpoints. Adjust to inserted flag change.
13074 * mem-break.h (enum raw_bkpt_type): New enum.
13075 (raw_breakpoint, struct process_info): Forward declare.
13076 (Z_packet_to_target_hw_bp_type): Delete declaration.
13077 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13078 (set_gdb_breakpoint, delete_gdb_breakpoint)
13079 (clear_breakpoint_conditions): New declarations.
13080 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13081 (breakpoint_inserted_here): Update comment.
13082 (add_breakpoint_condition, add_breakpoint_commands): Replace
13083 address parameter with a breakpoint pointer parameter.
13084 (gdb_breakpoint_here): Update comment.
13085 (delete_gdb_breakpoint_at): Delete.
13086 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13087 * server.c (process_point_options): Take a struct breakpoint
13088 pointer instead of an address. Adjust.
13089 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13090 delete_gdb_breakpoint.
13091 * spu-low.c (spu_target_ops): Install NULL as
13092 supports_z_point_type method.
13093 * target.h: Include mem-break.h.
13094 (struct target_ops) <prepare_to_access_memory>: Update comment.
13095 <supports_z_point_type>: New field.
13096 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13097 instead of a char. Also take a raw breakpoint pointer.
13098 * win32-arm-low.c (the_low_target): Install NULL as
13099 supports_z_point_type.
13100 * win32-i386-low.c (i386_supports_z_point_type): New function.
13101 (i386_insert_point, i386_remove_point): Adjust to new interface.
13102 (the_low_target): Install i386_supports_z_point_type.
13103 * win32-low.c (win32_supports_z_point_type): New function.
13104 (win32_insert_point, win32_remove_point): Adjust to new interface.
13105 (win32_target_ops): Install win32_supports_z_point_type.
13106 * win32-low.h (struct win32_target_ops):
13107 <supports_z_point_type>: New method.
13108 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13109 instead of a char. Also take a raw breakpoint pointer.
13110
932539e3
PA
131112014-05-20 Pedro Alves <palves@redhat.com>
13112
13113 * mem-break.h: Include break-common.h.
13114 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13115 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13116 (Z_packet_to_target_hw_bp_type): New declaration.
13117 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13118 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13119 (Z_PACKET_ACCESS_WP): Delete macros.
13120 (Z_packet_to_hw_type): Delete function.
13121 * i386-low.h: Don't include break-common.h here.
13122 (Z_packet_to_hw_type): Delete declaration.
13123 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13124 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13125 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13126 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13127 * linux-aarch64-low.c: Don't include break-common.h here.
13128 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13129 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13130 (Z_packet_to_target_hw_bp_type): Delete function.
13131 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13132 function.
13133 (mips_insert_point, mips_remove_point): Use
13134 Z_packet_to_target_hw_bp_type.
13135
4ff0d3d8
PA
131362014-05-20 Pedro Alves <palves@redhat.com>
13137
13138 * linux-aarch64-low.c: Include break-common.h.
13139 (enum target_point_type): Delete.
13140 (Z_packet_to_point_type): Rename to ...
13141 (Z_packet_to_target_hw_bp_type): ... this, and return a
13142 target_hw_bp_type instead.
13143 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13144 instead of an enum target_point_type.
13145 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13146 breakpoint type.
13147 (aarch64_dr_state_insert_one_point)
13148 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13149 (aarch64_handle_aligned_watchpoint)
13150 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13151 Take an enum target_hw_bp_type instead of an enum
13152 target_point_type.
13153 (aarch64_supports_z_point_type): New function.
13154 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13155 use Z_packet_to_target_hw_bp_type.
13156
786dc519
JB
131572014-05-20 Joel Brobecker <brobecker@adacore.com>
13158
13159 * configure.ac: Only use -Werror by default when DEVELOPMENT
13160 is true.
13161 * configure: Regenerate.
13162
9e0aa64f
JK
131632014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13164
13165 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13166 * linux-x86-low.c (X86_64_USER_REGS): New.
13167 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13168
2b577b92
YQ
131692014-04-28 Yao Qi <yao@codesourcery.com>
13170
13171 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13172 name.
13173
94611da2
PA
131742014-04-25 Pedro Alves <palves@redhat.com>
13175
13176 PR server/16255
13177 * linux-low.c (linux_attach_fail_reason_string): New function.
13178 (linux_attach_lwp): Delete.
13179 (linux_attach_lwp_1): Rename to ...
13180 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13181 argument. Remove "initial" parameter. Return int instead of
13182 void. Don't error or warn here.
13183 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13184 failure to attach to the tgid. Call warning when failing to
13185 attach to an lwp.
13186 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13187 argument. Remove "initial" parameter. Return int instead of
13188 void. Don't error or warn here.
13189 (linux_attach_fail_reason_string): New declaration.
13190 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13191 interface change. Use linux_attach_fail_reason_string.
13192
01f9f808
MS
131932014-04-24 Michael Sturm <michael.sturm@mintel.com>
13194 Walfred Tedeschi <walfred.tedeschi@intel.com>
13195
13196 * Makefile.in: Added rules to handle new files
13197 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13198 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13199 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13200 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13201 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13202 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13203 x32-avx512-linux.o.
13204 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13205 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13206 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13207 i386/x32-avx512.xml.
13208 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13209 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13210 i386/x32-avx512-linux.xml.
13211 * i387-fp.c (num_avx512_k_registers): New constant for number
13212 of K registers.
13213 (num_avx512_zmmh_low_registers): New constant for number of
13214 lower ZMM registers (0-15).
13215 (num_avx512_zmmh_high_registers): New constant for number of
13216 higher ZMM registers (16-31).
13217 (num_avx512_ymmh_registers): New contant for number of higher
13218 YMM registers (ymm16-31 added by avx521 on x86_64).
13219 (num_avx512_xmm_registers): New constant for number of higher
13220 XMM registers (xmm16-31 added by AVX512 on x86_64).
13221 (struct i387_xsave): Add space for AVX512 registers.
13222 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13223 Add code to handle AVX512 registers.
13224 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13225 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13226 prototypei from generated file.
13227 (tdesc_amd64_avx512_linux): Likewise.
13228 (init_registers_x32_avx512_linux): Likewise.
13229 (tdesc_x32_avx512_linux): Likewise.
13230 (init_registers_i386_avx512_linux): Likewise.
13231 (tdesc_i386_avx512_linux): Likewise.
13232 (x86_64_regmap): Add AVX512 registers.
13233 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13234 mask.
13235 (initialize_low_arch): Add code to initialize AVX512 registers.
13236
51aa91f9
PA
132372014-04-23 Pedro Alves <palves@redhat.com>
13238
13239 * mem-break.c (find_gdb_breakpoint_at): Make static.
13240 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13241
a4165e94
PA
132422014-04-23 Pedro Alves <palves@redhat.com>
13243
13244 * i386-low.c: Don't include break-common.h here.
13245 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13246 prototype to take target_hw_bp_type as argument instead of a Z
13247 packet char.
13248 * i386-low.h: Include break-common.h here.
13249 (Z_packet_to_hw_type): Declare.
13250 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13251 prototypes.
13252 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13253 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13254 (x86_remove_point): Convert the packet number to a
13255 target_hw_bp_type before calling i386_low_remove_watchpoint.
13256 * win32-i386-low.c (i386_insert_point): Convert the packet number
13257 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13258 (i386_remove_point): Convert the packet number to a
13259 target_hw_bp_type before calling i386_low_remove_watchpoint.
13260
b8acf843
PA
132612014-04-23 Pedro Alves <palves@redhat.com>
13262
13263 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13264
d708bcd1
PA
132652014-04-10 Pedro Alves <palves@redhat.com>
13266
13267 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13268 Check if the condition or command is NULL before checking if the
13269 breakpoint is known. On success, return true.
13270 * mem-break.h (add_breakpoint_condition): Document return.
13271 (add_breakpoint_commands): Add describing comment.
13272 * server.c (skip_to_semicolon): New function.
13273 (process_point_options): Use it.
13274
2eec7d5b
PA
132752014-04-09 Pedro Alves <palves@redhat.com>
13276
13277 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13278 to lwpid_of.
13279
fa96cb38
PA
132802014-02-27 Pedro Alves <palves@redhat.com>
13281
13282 PR 12702
13283 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13284 macros.
13285 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13286 output.
13287 (last_thread_of_process_p): Take a PID argument instead of a
13288 thread pointer.
13289 (linux_wait_for_lwp): Delete.
13290 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13291 functions.
13292 (linux_low_filter_event): New function, party factored out from
13293 linux_wait_for_event.
13294 (linux_wait_for_event): Rename to ...
13295 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13296 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13297 sigsuspend. Check for zombie leaders.
13298 (linux_wait_for_event): Reimplement as wrapper around
13299 linux_wait_for_event_filtered.
13300 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13301 a normal or signal exit is seen, it's the whole process exiting.
13302 (wait_for_sigstop): No longer a for_each_inferior callback.
13303 Rewrite on top of linux_wait_for_event_filtered.
13304 (stop_all_lwps): Call wait_for_sigstop directly.
13305 * server.c (resume, handle_target_event): Handle
13306 TARGET_WAITKIND_NO_RESUMED.
13307
d763de10
JB
133082014-02-26 Joel Brobecker <brobecker@adacore.com>
13309
13310 * win32-low.c (psapi_get_dll_name,
13311 * win32_CreateToolhelp32Snapshot): Delete.
13312 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13313 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13314 Delete.
13315 (handle_load_dll): Add function description.
13316 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13317
850a0f76
JB
133182014-02-26 Joel Brobecker <brobecker@adacore.com>
13319
13320 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13321 Add comment.
13322 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13323 base address when calling win32_add_one_solib.
13324 (handle_load_dll): Delete local variable load_addr.
13325 Remove 0x1000 offset applied to DLL base address when calling
13326 win32_add_one_solib.
13327 (handle_unload_dll): Add comment.
13328
f25b3fc3
JB
133292014-02-26 Joel Brobecker <brobecker@adacore.com>
13330
13331 * win32-low.c (win32_add_all_dlls): Renames
13332 win32_ensure_ntdll_loaded. Rewrite function documentation.
13333 Adjust implementation to always load all DLLs.
13334 Add 0x1000 offset to DLL base address when calling
13335 win32_add_one_solib.
13336 (child_initialization_done): New static global.
13337 (do_initial_child_stuff): Set child_initialization_done to
13338 zero during child initialization, and 1 after. Replace call
13339 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13340 Add comment.
13341 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13342 (handle_unload_dll): Add function documentation.
13343 (get_child_debug_event): Ignore load and unload DLL events
13344 during child initialization.
13345
d86d4aaf
DE
133462014-02-20 Doug Evans <dje@google.com>
13347
3bc32da3 13348 Remove global all_lwps.
d86d4aaf
DE
13349 * inferiors.h (ptid_of): Move here from linux-low.h.
13350 (pid_of, lwpid_of): Ditto.
13351 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13352 parameter is a struct thread_info * now.
13353 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13354 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13355 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13356 directly.
13357 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13358 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13359 * linux-arm-low.c (update_registers_callback): Update, "entry"
13360 parameter is a struct thread_info * now.
13361 Fetch lwpid from current_inferior directly.
13362 (arm_insert_point): Pass &all_threads to find_inferior instead of
13363 &all_lwps.
13364 (arm_remove_point): Ditto.
13365 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13366 (arm_prepare_to_resume): Fetch pid from thread.
13367 (arm_read_description): Fetch lwpid from current_inferior directly.
13368 * linux-low.c (all_lwps): Delete.
13369 (delete_lwp): Delete call to remove_inferior.
13370 (handle_extended_wait): Fetch lwpid from thread.
13371 (add_lwp): Don't set lwp->entry.id. Remove call to
13372 add_inferior_to_list.
13373 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13374 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13375 (kill_one_lwp_callback): Ditto.
13376 (linux_kill): Don't dereference NULL pointer.
13377 Fetch ptid,lwpid from thread.
13378 (get_detach_signal): Fetch ptid from thread.
13379 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13380 Simplify call to regcache_invalidate_thread.
13381 (delete_lwp_callback): Update, "entry" parameter is a
13382 struct thread_info * now. Fetch pid from thread.
13383 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13384 (status_pending_p_callback): Update, "entry" parameter is a
13385 struct thread_info * now. Fetch ptid from thread.
13386 (find_lwp_pid): Update, "entry" parameter is a
13387 struct thread_info * now.
13388 (linux_wait_for_lwp): Fetch pid from thread.
13389 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13390 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13391 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13392 (dequeue_one_deferred_signal): Ditto.
13393 (cancel_breakpoint): Fetch ptid from current_inferior.
13394 (linux_wait_for_event): Pass &all_threads to find_inferior,
13395 not &all_lwps. Fetch ptid, lwpid from thread.
13396 (count_events_callback): Update, "entry" parameter is a
13397 struct thread_info * now.
13398 (select_singlestep_lwp_callback): Ditto.
13399 (select_event_lwp_callback): Ditto.
13400 (cancel_breakpoints_callback): Ditto.
13401 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13402 not &all_lwps.
13403 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13404 (unsuspend_one_lwp): Update, "entry" parameter is a
13405 struct thread_info * now.
13406 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13407 not &all_lwps.
13408 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13409 Fetch lwpid from thread, not lwp.
13410 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13411 Pass &all_threads to find_inferior, not &all_lwps.
13412 (send_sigstop): Fetch lwpid from thread, not lwp.
13413 (send_sigstop_callback): Update, "entry" parameter is a
13414 struct thread_info * now.
13415 (suspend_and_send_sigstop_callback): Ditto.
13416 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13417 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13418 struct thread_info * now.
13419 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13420 from thread, lwp.
13421 (lwp_running): Update, "entry" parameter is a
13422 struct thread_info * now.
13423 (stop_all_lwps): Fetch ptid from thread.
13424 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13425 (linux_resume_one_lwp): Fetch lwpid from thread.
13426 (linux_set_resume_request): Update, "entry" parameter is a
13427 struct thread_info * now. Fetch pid, lwpid from thread.
13428 (resume_status_pending_p): Update, "entry" parameter is a
13429 struct thread_info * now.
13430 (need_step_over_p): Ditto. Fetch lwpid from thread.
13431 (start_step_over): Fetch lwpid from thread.
13432 (linux_resume_one_thread): Update, "entry" parameter is a
13433 struct thread_info * now. Fetch lwpid from thread.
13434 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13435 (proceed_one_lwp): Update, "entry" parameter is a
13436 struct thread_info * now. Fetch lwpid from thread.
13437 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13438 struct thread_info * now.
13439 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13440 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13441 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13442 directly.
13443 (regsets_store_inferior_registers): Ditto.
13444 (fetch_register, store_register): Ditto.
13445 (linux_read_memory, linux_write_memory): Ditto.
13446 (linux_request_interrupt): Ditto.
13447 (linux_read_auxv): Ditto.
13448 (linux_xfer_siginfo): Ditto.
13449 (linux_qxfer_spu): Ditto.
13450 (linux_qxfer_libraries_svr4): Ditto.
13451 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13452 moved to inferiors.h.
13453 (get_lwp): Delete.
13454 (get_thread_lwp): Update.
13455 (struct lwp_info): Delete member "entry". Simplify comment for
13456 member "thread".
13457 (all_lwps): Delete.
13458 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13459 current_inferior directly.
13460 (update_watch_registers_callback): Update, "entry" parameter is a
13461 struct thread_info * now. Fetch pid from thread.
13462 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13463 (mips_insert_point): Fetch lwpid from current_inferior.
13464 Pass &all_threads to find_inferior, not &all_lwps.
13465 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13466 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13467 directly.
13468 (mips_stopped_data_address): Ditto.
13469 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13470 directly.
13471 * linux-tile-low.c (tile_arch_setup): Ditto.
13472 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13473 (update_debug_registers_callback): Update, "entry" parameter is a
13474 struct thread_info * now. Fetch pid from thread.
13475 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13476 Pass &all_threads to find_inferior, not &all_lwps.
13477 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13478 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13479 Pass &all_threads to find_inferior, not &all_lwps.
13480 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13481 (i386_dr_low_get_status): Ditto.
13482 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13483 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13484 (x86_linux_read_description): Ditto.
13485 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13486
3b8361aa
DE
134872014-02-20 Doug Evans <dje@google.com>
13488
13489 * inferiors.c (get_first_inferior): Fix buglet.
13490
f7667f0d
DE
134912014-02-19 Doug Evans <dje@google.com>
13492
13493 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13494 * inferiors.c (add_thread): Change result type to struct thread_info *.
13495 All callers updated.
13496 (add_lwp): Call add_thread here instead of in callers.
13497 All callers updated.
13498 * linux-low.h (get_lwp_thread): Rewrite.
13499 (struct lwp_info): New member "thread".
13500
b3312d80
DE
135012014-02-19 Doug Evans <dje@google.com>
13502
13503 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13504 All callers updated.
13505
ecc6f45c
DE
135062014-02-19 Doug Evans <dje@google.com>
13507
13508 * inferiors.c (add_thread): Fix whitespace.
13509
649ebbca
DE
135102014-02-19 Doug Evans <dje@google.com>
13511
13512 * dll.c (clear_dlls): Replace accessing list implemention details
13513 with API function.
13514 * gdbthread.h (get_first_thread): Declare.
13515 * inferiors.c (for_each_inferior_with_data): New function.
13516 (get_first_thread): New function.
13517 (find_thread_ptid): Simplify.
13518 (get_first_inferior): New function.
13519 (clear_list): Delete.
13520 (one_inferior_p): New function.
13521 (clear_inferior_list): New function.
13522 (clear_inferiors): Update.
13523 * inferiors.h (for_each_inferior_with_data): Declare.
13524 (clear_inferior_list): Declare.
13525 (one_inferior_p): Declare.
13526 (get_first_inferior): Declare.
13527 * linux-low.c (linux_wait_for_event): Replace accessing list
13528 implemention details with API function.
13529 * server.c (target_running): Ditto.
13530 (accumulate_file_name_length): New function.
13531 (emit_dll_description): New function.
13532 (handle_qxfer_libraries): Replace accessing list implemention
13533 details with API function.
13534 (handle_qxfer_threads_worker): New function.
13535 (handle_qxfer_threads_proper): Replace accessing list implemention
13536 details with API function.
13537 (handle_query): Ditto.
13538 (visit_actioned_threads_callback_ftype): New typedef.
13539 (visit_actioned_threads_data): New struct.
13540 (visit_actioned_threads): Rewrite to be find_inferior callback.
13541 (resume): Call find_inferior.
13542 (handle_status): Replace accessing list implemention
13543 details with API function.
13544 (process_serial_event): Replace accessing list implemention details
13545 with API function.
13546 * target.c (set_desired_inferior): Replace accessing list implemention
13547 details with API function.
13548 * tracepoint.c (same_process_p): New function.
13549 (gdb_agent_about_to_close): Replace accessing list implemention
13550 details with API function.
13551 * win32-low.c (child_delete_thread): Replace accessing list
13552 implemention details with API function.
13553 (match_dll_by_basename): New function.
13554 (dll_is_loaded_by_basename): New function.
13555 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13556 details call to dll_is_loaded_by_basename.
13557
80894984
DE
135582014-02-19 Doug Evans <dje@google.com>
13559
13560 * dll.h (struct dll_info): Add comment.
13561 * gdbthread.h (struct thread_info): Add comment.
13562 (current_ptid): Simplify.
13563 * inferiors.c (add_process): Update.
13564 (remove_process): Update.
13565 * inferiors.h (struct process_info): Rename member "head" to "entry".
13566 * linux-low.c (delete_lwp): Update.
13567 (add_lwp): Update.
13568 (last_thread_of_process_p): Update.
13569 (kill_one_lwp_callback, linux_kill): Update.
13570 (status_pending_p_callback): Update.
13571 (wait_for_sigstop): Update. Simplify read of ptid.
13572 (start_step_over): Update.
13573 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13574 (get_lwp_thread): Update.
13575 (struct lwp_info): Rename member "head" to "entry".
13576 * regcache.h (inferior_list_entry): Delete.
13577 * server.c (kill_inferior_callback): Update.
13578 (detach_or_kill_inferior_callback): Update.
13579 (print_started_pid): Update.
13580 (print_attached_pid): Update.
13581 (process_serial_event): Simplify read of ptid.
13582 * thread-db.c (thread_db_create_event): Update.
13583 (thread_db_get_tls_address): Update.
13584 * win32-low.c (current_inferior_ptid): Simplify.
13585
46917d26
TT
135862014-02-19 Tom Tromey <tromey@redhat.com>
13587
13588 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13589 argument.
13590 (target_supports_btrace): Update.
13591
0759a81e
YQ
135922014-02-14 Yao Qi <yao@codesourcery.com>
13593
13594 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13595 (rsp-low-ipa.o): New target.
13596
a7191e8b
TT
135972014-02-12 Tom Tromey <tromey@redhat.com>
13598
13599 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13600 convert_ascii_to_int.
13601 * regcache.c (registers_to_string): Likewise.
13602 * remote-utils.c (decode_M_packet): Likewise.
13603 * server.c (process_serial_event): Likewise.
13604
ff0e980e
TT
136052014-02-12 Tom Tromey <tromey@redhat.com>
13606
13607 * server.c (handle_query, handle_v_run): Use hex2bin, not
13608 unhexify.
13609 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13610
e9371aff
TT
136112014-02-12 Tom Tromey <tromey@redhat.com>
13612
13613 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13614 convert_int_to_ascii.
13615 * regcache.c (registers_to_string, collect_register_as_string):
13616 Likewise.
13617 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13618 Likewise.
13619 * server.c (process_serial_event): Likewise.
13620 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13621 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13622
971dc0b8
TT
136232014-02-12 Tom Tromey <tromey@redhat.com>
13624
13625 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13626 bin2hex, not hexify.
13627 * tracepoint.c (cmd_qtstatus): Likewise.
13628
0a822afb
TT
136292014-02-12 Tom Tromey <tromey@redhat.com>
13630
13631 * remote-utils.c (monitor_output): Pass explicit length to
13632 hexify.
13633
9c3d6531
TT
136342014-02-12 Tom Tromey <tromey@redhat.com>
13635
13636 * tracepoint.c: Include rsp-low.h.
13637 * server.c: Include rsp-low.h.
13638 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13639 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13640 declare.
13641 * remote-utils.c: Include rsp-low.h.
13642 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13643 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13644 (convert_int_to_ascii, convert_ascii_to_int): Move to
13645 common/rsp-low.c.
13646 * regcache.c: Include rsp-low.h.
13647 * ax.c: Include rsp-low.h.
13648 * Makefile.in (SFILES): Add common/rsp-low.c.
13649 (OBS): Add rsp-low.o.
13650 (rsp-low.o): New target.
13651
01fd3ea5
TT
136522014-02-12 Tom Tromey <tromey@redhat.com>
13653
13654 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13655 Include print-utils.h.
13656 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13657 (plongest, thirty_two, phex_nz): Remove.
13658 * Makefile.in (SFILES): Add common/print-utils.c.
13659 (OBS): Add print-utils.o.
13660 (print-utils-ipa.o): New target.
13661 (print-utils.o): New target.
13662 (IPA_OBJS): Add print-utils-ipa.o.
13663
e99dc820
TT
136642014-02-06 Tom Tromey <tromey@redhat.com>
13665
13666 * Makefile.in (SFILES): Fix indentation.
13667
ee1e2d4f
DE
136682014-02-05 Doug Evans <dje@google.com>
13669
13670 * linux-low.c (linux_wait_for_event): Improve comment.
13671 (linux_wait_1): Keep current_inferior in sync with event_child.
13672
f5a02773
DE
136732014-01-22 Doug Evans <dje@google.com>
13674
13675 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13676
87ce2a04
DE
136772014-01-22 Doug Evans <dje@google.com>
13678
13679 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13680 * configure: Regenerate.
13681 * config.in: Regenerate.
13682 * Makefile.in (SFILES): Add debug.c.
13683 (OBS): Add debug.o.
13684 * debug.c: New file.
13685 * debug.h: New file.
13686 * linux-aarch64-low.c (*): Update all debugging printfs to use
13687 debug_printf instead of fprintf.
13688 * linux-arm-low.c (*): Ditto.
13689 * linux-cris-low.c (*): Ditto.
13690 * linux-crisv32-low.c (*): Ditto.
13691 * linux-m32r-low.c (*): Ditto.
13692 * linux-sparc-low.c (*): Ditto.
13693 * linux-x86.c (*): Ditto.
13694 * linux-low.c (*): Ditto.
13695 (linux_wait_1): Add calls to debug_enter, debug_exit.
13696 (linux_wait): Remove redundant debugging printf.
13697 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13698 (linux_resume, unstop_all_lwps): Ditto.
13699 * mem-break.c (*): Update all debugging printfs to use
13700 debug_printf instead of fprintf.
13701 * remote-utils.c (*): Ditto.
13702 * thread-db.c (*): Ditto.
13703 * server.c #include <ctype.h>, "gdb_vecs.h".
13704 (debug_threads): Moved to debug.c.
13705 (*): Update all debugging printfs to use debug_printf instead of
13706 fprintf.
13707 (start_inferior): Replace call to fflush with call to debug_flush.
13708 (monitor_show_help): Mention set debug-format.
13709 (parse_debug_format_options): New function.
13710 (handle_monitor_command): Handle "monitor set debug-format".
13711 (gdbserver_usage): Mention --debug-format.
13712 (main): Parse --debug-format.
13713 * server.h (debug_threads): Declaration moved to debug.h.
13714 #include "debug.h".
13715 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13716 trace_debug_1 that uses debug_printf.
13717 (tracepoint_look_up_symbols): Update all debugging printfs to use
13718 debug_printf instead of fprintf.
13719
e671835b
BS
137202014-01-20 Baruch Siach <baruch@tkos.co.il>
13721
13722 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13723 sys/ptrace.h.
13724
b5737fa9
PA
137252014-01-17 Pedro Alves <palves@redhat.com>
13726
ea38d2a9 13727 PR build/16445
c7faa97a
PA
13728 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13729 defined after including gdb_proc_service.h.
b5737fa9 13730
40ed484e
DE
137312014-01-16 Doug Evans <dje@google.com>
13732
13733 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13734 (match_dll): Use it.
13735
969c39fb
MM
137362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13737
13738 * target.h (target_ops) <read_btrace>: Change parameters and
13739 return type to allow error reporting.
13740 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13741 trace reading errors on.
13742 * linux-low.c (linux_low_read_btrace): Pass trace reading
13743 errors on.
13744 (linux_low_disable_btrace): New.
13745
ab7f45ba
DE
137462014-01-15 Doug Evans <dje@google.com>
13747
13748 * inferiors.c (thread_id_to_gdb_id): Delete.
13749 * inferiors.h (thread_id_to_gdb_id): Delete.
13750
66af0f44
EZ
137512014-01-13 Eli Zaretskii <eliz@gnu.org>
13752
13753 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13754 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13755 versions.
13756
9939e131
PA
137572014-01-08 Pedro Alves <palves@redhat.com>
13758
13759 * server.c (handle_status): Don't discard previous queued stop
13760 replies or thread's pending status here.
13761 (main) <disconnection>: Do it here instead.
13762
b7ea362b
PA
137632014-01-08 Pedro Alves <palves@redhat.com>
13764
13765 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13766 * server.c (visit_actioned_threads, handle_pending_status): New
13767 function.
13768 (handle_v_cont): Factor out parts to ...
13769 (resume): ... this new function. If in all-stop, and a thread
13770 being resumed has a pending status, report it without actually
13771 resuming.
13772 (myresume): Adjust to use the new 'resume' function.
13773 (clear_pending_status_callback, set_pending_status_callback)
13774 (find_status_pending_thread_callback): New functions.
13775 (handle_status): Handle the case of multiple threads having
13776 interesting statuses to report. Report threads' real last signal
13777 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13778 with an interesting thread to report the status for, instead of
13779 always reporting the status of the first thread.
13780
28498c42
JB
137812014-01-01 Joel Brobecker <brobecker@adacore.com>
13782
13783 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13784 * gdbreplay.c (gdbreplay_version): Likewise.
13785
f45c82da
YZ
137862013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13787
13788 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13789 iov.iov_len with the real length in use.
13790
379a5e2d
JB
137912013-12-13 Joel Brobecker <brobecker@adacore.com>
13792
13793 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13794 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13795 for all targets that use win32-low.c.
13796 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13797 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13798
4210d83e
PA
137992013-12-13 Pedro Alves <palves@redhat.com>
13800
13801 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13802 if equal to TARGET_WAITKIND_LOADED.
13803 * win32-low.c (cached_status): New static global.
13804 (win32_wait): Add declaration.
13805 (do_initial_child_stuff): Flush all initial pending debug events
13806 up to the initial breakpoint.
13807 (win32_wait): If CACHED_STATUS was set, return that instead
13808 of doing a real wait. Remove the code resuming the execution
13809 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13810 during the initial phase. Also remove the code changing
13811 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13812 TARGET_WAITKIND_STOPPED.
13813
e7f0d979
YQ
138142013-12-11 Yao Qi <yao@codesourcery.com>
13815
13816 * notif.c (handle_notif_ack): Return 0 if no notification
13817 matches.
13818
ebcf782c
DE
138192013-11-20 Doug Evans <dje@google.com>
13820
13821 * linux-low.c (linux_set_resume_request): Fix comment.
13822
20ad9378
DE
138232013-11-20 Doug Evans <dje@google.com>
13824
13825 * linux-low.c (resume_status_pending_p): Tweak comment.
13826
a196ebeb
WT
138272013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13828
13829 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13830 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13831 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13832 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13833 (srv_amd64_regobj): Add amd64-mpx.o.
13834 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13835 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13836 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13837 * i387-fp.c (num_pl_bnd_register) Added constant.
13838 (num_pl_bnd_cfg_registers) Added constant.
13839 (struct i387_xsave) Added reserved area and MPX fields.
13840 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13841 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13842 function.
13843 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13844 (init_registers_amd64_mpx_linux): Declare new function.
13845 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13846 (x86_64_regmap): Add MPX registers.
13847 (x86_linux_read_description): Add MPX case.
13848 (initialize_low_arch): Initialize MPX targets.
13849
0080a2f6
TT
138502013-11-18 Tom Tromey <tromey@redhat.com>
13851
13852 * configure: Rebuild.
13853 * configure.ac: Don't check for stdlib.h.
13854 * gdbreplay.c: Unconditionally include stdlib.h.
13855
2978b111
TT
138562013-11-18 Tom Tromey <tromey@redhat.com>
13857
13858 * config.in: Rebuild.
13859 * configure: Rebuild.
13860 * configure.ac: Don't use AC_HEADER_DIRENT.
13861
a3d08894
TT
138622013-11-18 Tom Tromey <tromey@redhat.com>
13863
13864 * server.h: Don't check HAVE_STRING_H.
13865 * gdbreplay.c: Don't check HAVE_STRING_H.
13866 * configure: Rebuild.
13867
0a5dd17d
TT
138682013-11-18 Tom Tromey <tromey@redhat.com>
13869
13870 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13871 LIBGNU.
13872
1bd2f0ba
TT
138732013-11-08 Tom Tromey <tromey@redhat.com>
13874
13875 * configure, config.in: Rebuild.
13876 * configure.ac: Remove unused configury.
13877
3266f10b
TT
138782013-11-08 Tom Tromey <tromey@redhat.com>
13879
13880 * acinclude.m4: Include common.m4, codeset.m4.
13881 * configure, config.in: Rebuild.
13882 * configure.ac: Use GDB_AC_COMMON.
13883
6682d959
AA
138842013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13885
13886 * linux-s390-low.c (HWCAP_S390_TE): New define.
13887 (s390_arch_setup): Consider the TE field in the HWCAP for
13888 determining 'have_regset_tdb'.
13889
fd0a4d76
SDJ
138902013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13891
13892 PR gdb/16014
13893 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13894 call to sizeof.
13895
1a3d890b
PA
138962013-10-02 Pedro Alves <palves@redhat.com>
13897
13898 * server.c (process_serial_event): Don't output "GDBserver
13899 exiting" if GDB is connected through stdio.
13900 * target.c (mywait): Likewise, be silent if GDB is connected
13901 through stdio.
13902
97ad4581
JB
139032013-10-01 Joel Brobecker <brobecker@adacore.com>
13904
13905 * lynx-low.c (lynx_add_threads_after_attach): New function.
13906 (lynx_attach): Remove call to add_thread. Add call to
13907 lynx_add_threads_after_attach instead.
13908
5b4e221c
MF
139092013-09-28 Mike Frysinger <vapier@gentoo.org>
13910
13911 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13912 * config.in, configure: Regenerated.
13913
ee47b2f8
YQ
139142013-09-18 Yao Qi <yao@codesourcery.com>
13915
13916 PR server/15959
13917 * server.c (start_inferior): Clear 'resume_info'.
13918
d6707650 139192013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13920
d6707650
JW
13921 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13922 for each register.
13923
9243dd0e 139242013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13925
9243dd0e
JW
13926 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13927 linux-tile-low.o to srv_tgtobj.
13928
c623a6ef
WN
139292013-09-16 Will Newton <will.newton@linaro.org>
13930
13931 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13932 out regs.
13933
fb71d39e
PA
139342013-09-06 Pedro Alves <palves@redhat.com>
13935
13936 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13937 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13938 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13939 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13940 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13941 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13942
8e7e9910
PA
139432013-09-06 Pedro Alves <palves@redhat.com>
13944
13945 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13946 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13947
7c3a12ca
PA
139482013-09-06 Pedro Alves <palves@redhat.com>
13949
13950 * linux-amd64-ipa.c: Include tracepoint.h.
13951 * linux-i386-ipa.c: Include tracepoint.h.
13952
8eb3d7b6
RW
139532013-09-06 Ricard Wanderlof <ricardw@axis.com>
13954
13955 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13956 (ps_get_thread_area): New function.
13957
eddddb9d
RW
139582013-09-06 Ricard Wanderlof <ricardw@axis.com>
13959
13960 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13961 (initialize_low_arch): Call init_registers_crisv32 rather than
13962 init_register_crisv32.
13963
533b0600
PA
139642013-09-05 Pedro Alves <palves@redhat.com>
13965
13966 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13967 to ...
13968 * hostio.h: ... this new file.
13969 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13970 win32-low.c: Include hostio.h.
13971
0ce3d3b5
PA
139722013-09-05 Pedro Alves <palves@redhat.com>
13973
13974 * server.h (gdb_client_data, handler_func, callback_handler_func)
13975 (delete_file_handler, add_file_handler, append_callback_event)
13976 (delete_callback_event, start_event_loop, initialize_event_loop):
13977 Move to event-loop.h and include it.
13978 * event-loop.h: New file.
13979
799cdc37
PA
139802013-09-05 Pedro Alves <palves@redhat.com>
13981
13982 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13983 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13984 (loaded_dll, unloaded_dll): Move to ...
13985 * dll.h: ... this new file.
13986 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13987
6a6bbd9d
PA
139882013-09-05 Pedro Alves <palves@redhat.com>
13989
13990 * server.h (current_process, get_thread_process, all_processes)
13991 (add_inferior_to_list, for_each_inferior, current_inferior)
13992 (remove_inferior, add_process, remove_process, find_process_pid)
13993 (have_started_inferiors_p, have_attached_inferiors_p)
13994 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13995 (clear_inferiors, find_inferior, find_inferior_id)
13996 (inferior_target_data, set_inferior_target_data)
13997 (inferior_regcache_data, set_inferior_regcache_data): Move to
13998 inferiors.h, and include it.
13999 * inferiors.h: New file.
14000
f699aaba
PA
140012013-09-05 Pedro Alves <palves@redhat.com>
14002
14003 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14004 Move ...
72f4393d 14005 * ax.h: ... here.
f699aaba 14006
c144c7a0
PA
140072013-09-05 Pedro Alves <palves@redhat.com>
14008
14009 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14010 tracepoint.h.
14011 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14012 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14013 (handle_tracepoint_general_set, handle_tracepoint_query)
14014 (tracepoint_finished_step, tracepoint_was_hit)
14015 (release_while_stepping_state_list, current_traceframe)
14016 (in_readonly_region, traceframe_read_mem)
14017 (fetch_traceframe_registers, traceframe_read_sdata)
14018 (traceframe_read_info, struct fast_tpoint_collect_status)
14019 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14020 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14021 (supply_fast_tracepoint_registers)
14022 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14023 (ipa_tdesc, claim_trampoline_space)
14024 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14025 (agent_mem_read, agent_get_trace_state_variable_value)
14026 (agent_set_trace_state_variable_value, agent_tsv_read)
14027 (agent_mem_read_string, get_raw_reg_func_addr)
14028 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14029 * tracepoint.h: ... this new file.
14030
ff42e6ab
PA
140312013-09-05 Pedro Alves <palves@redhat.com>
14032
14033 * server.h (perror_with_name, error, fatal, warning, paddress)
14034 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14035 include it.
14036 * utils.h: New file.
14037
541af0f4
PA
140382013-09-05 Pedro Alves <palves@redhat.com>
14039
14040 * server.h (remote_debug, noack_mode, transport_is_reliable)
14041 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14042 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14043 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14044 (write_enn, initialize_async_io, enable_async_io)
14045 (disable_async_io, check_remote_input_interrupt_request)
14046 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14047 (dead_thread_notify, prepare_resume_reply)
14048 (decode_address_to_semicolon, decode_address, decode_m_packet)
14049 (decode_M_packet, decode_X_packet, decode_xfer_write)
14050 (decode_search_memory_packet, unhexify, hexify)
14051 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14052 (look_up_one_symbol, relocate_instruction)
14053 (monitor_output): Move to remote-utils.h, and include it.
14054 * remote-utils.h: New file.
14055
eebdf26b
PA
140562013-09-05 Pedro Alves <palves@redhat.com>
14057
14058 * server.h (_): Delete.
14059
3aafd2ff
PA
140602013-09-02 Pedro Alves <palves@redhat.com>
14061
14062 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14063 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14064 allocated.
14065 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14066
cee83bcb
PM
140672013-09-02 Pierre Muller <muller@sourceware.org>
14068
14069 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14070 or WriteProcessMemory complete successfully and handle
14071 ERROR_PARTIAL_COPY error.
14072
9a13b2fa
PA
140732013-09-02 Pedro Alves <palves@redhat.com>
14074
14075 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14076 error instead of EIO.
14077
602e3198
JK
140782013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14079
14080 PR server/15604
14081 * linux-low.c: Include filestuff.h.
14082 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14083 * lynx-low.c: Include filestuff.h.
14084 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14085 * server.c: Include filestuff.h.
14086 (main): Call notice_open_fds.
14087 * spu-low.c: Include filestuff.h.
14088 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14089
96d7229d
LM
140902013-08-22 Luis Machado <lgustavo@codesourcery.com>
14091
14092 * Makefile.in: Explain why ../target and ../nat are not
14093 listed as include file search paths.
14094 (linux-waitpid.o): New object file rule.
14095 * configure.srv (srv_native_linux_obj): New variable.
14096 Replace all occurrences of linux native object files with
14097 $srv_native_linux_obj.
14098 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14099 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14100 (linux_enable_event_reporting): Remove declaration.
14101 (my_waitpid): Moved to common/linux-waitpid.c.
14102 (linux_wait_for_event): Pass ptid when calling
14103 linux_enable_event_reporting.
14104 (linux_supports_tracefork_flag): Remove.
14105 (linux_enable_event_reporting): Likewise.
14106 (linux_tracefork_grandchild): Remove.
14107 (STACK_SIZE): Moved to common/linux-ptrace.c.
14108 (linux_tracefork_child): Remove.
14109 (linux_test_for_tracefork): Remove.
14110 (linux_look_up_symbols): Call linux_supports_traceclone.
14111 (initialize_low): Remove call to linux_test_for_tracefork.
14112 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14113 common/linux-ptrace.h.
14114 (PTRACE_TYPE_ARG4): Likewise.
14115 Include linux-ptrace.h.
14116
32940073
PA
141172013-08-21 Pedro Alves <palves@redhat.com>
14118
14119 * config.in: Renegerate.
14120
33b60d58 141212013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14122
33b60d58
LM
14123 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14124 (SFILES): Remove $(srcdir)/common/target-common.c and
14125 add $(srcdir)/target/waitstatus.c.
14126 (OBS): Remove target-common.o and add waitstatus.o.
14127 (server_h): Remove $(srcdir)/../common/target-common.h and
14128 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14129 and $(srcdir)/../target/waitstatus.h.
14130 (target-common.o): Remove.
14131 (waitstatus.o): New target object file.
14132 * target.h: Do not include target-common.h and
14133 include target/resume.h, target/wait.h and
14134 target/waitstatus.h.
14135
b8e1b30e
LM
141362013-08-13 Luis Machado <lgustavo@codesourcery.com>
14137
14138 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14139 to PTRACE_TYPE_ARG3.
14140 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14141 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14142 PTRACE_TYPE_ARG4.
14143 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14144 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14145
7a60ad40
YQ
141462013-07-27 Jie Zhang <jie@codesourcery.com>
14147 Daniel Jacobowitz <dan@codesourcery.com>
14148 Yao Qi <yao@codesourcery.com>
14149
14150 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14151 (mips-linux-watch.o): New rule.
14152 (mips_linux_watch_h): New variable.
14153 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14154 srv_tgtobj.
14155 * linux-mips-low.c: Include mips-linux-watch.h.
14156 (struct arch_process_info, struct arch_lwp_info): New.
14157 (update_watch_registers_callback): New function.
14158 (mips_linux_new_process, mips_linux_new_thread) New functions.
14159 (mips_linux_prepare_to_resume, mips_insert_point): New
14160 functions.
14161 (mips_remove_point, mips_stopped_by_watchpoint): New
14162 functions.
14163 (rsp_bp_type_to_target_hw_bp_type): New function.
14164 (mips_stopped_data_address): New function.
14165 (the_low_target): Add watchpoint support functions.
14166
de6f69ad
YQ
141672013-07-27 Yao Qi <yao@codesourcery.com>
14168
14169 * i386-low.c: Include break-common.h.
14170 (enum target_hw_bp_type): Remove.
14171
3360c0bf
LM
141722013-07-24 Luis Machado <lgustavo@codesourcery.com>
14173
14174 * Makefile.in (SFILES): /common/target-common.c.
14175 (OBS): Add target-common.o.
14176 (server_h): Add $(srcdir)/../common/target-common.h.
14177 (target-common.o): New target.
14178 * server.c (queue_stop_reply_callback): Free
14179 status string after use.
14180 * target.c (target_waitstatus_to_string): Remove.
14181 * target.h: Include target-common.h.
14182 (resume_kind): Likewise.
14183 (target_waitkind): Likewise.
14184 (target_waitstatus): Likewise.
14185 (TARGET_WNOHANG): Likewise.
14186
bd885420
YQ
141872013-07-04 Yao Qi <yao@codesourcery.com>
14188
14189 * Makefile.in (host_alias): Use @host_noncanonical@.
14190 (target_alias): Use @target_noncanonical@.
14191 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14192 ACX_NONCANONICAL_HOST.
14193 * configure: Regenerated.
14194
14195 Revert:
14196 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14197
14198 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14199 * configure: Rebuild.
14200 * Makefile.in (version_host, version_target): Get from configure.
14201 (version.c): Use $(version_host) and $(version_target).
14202
17ef446e
PA
142032013-07-03 Pedro Alves <palves@redhat.com>
14204
14205 * Makefile.in (config.status): Depend on development.sh.
14206 * acinclude.m4: Include libmcheck.m4.
14207 * configure: Regenerate.
14208
7a9a7487
MG
142092013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14210
14211 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14212 attribute inside the parentheses.
14213 (winapi_DebugSetProcessKillOnExit): Ditto.
14214 (winapi_DebugBreakProcess): Ditto.
14215 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14216
49b64de6
MG
142172013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14218
14219 * notif.h (notif_event): Add a dummy member to avoid compiler
14220 errors.
14221
d5749ee7
PA
142222013-07-01 Pedro Alves <palves@redhat.com>
14223
14224 * hostio.c (HOSTIO_PATH_MAX): Define.
14225 (require_filename, handle_open, handle_unlink, handle_readlink):
14226 Use it.
14227
d8d2a3ee
PA
142282013-07-01 Pedro Alves <palves@redhat.com>
14229
14230 * server.h: Include "pathmax.h".
14231 * linux-low.c: Don't include sys/param.h.
14232 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14233 MAXPATHLEN.
14234 * win32-low.c: Don't include sys/param.h.
14235 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14236
bc7dea8d
PA
142372013-07-01 Pedro Alves <palves@redhat.com>
14238
14239 * event-loop.c: Don't check HAVE_UNISTD_H before including
14240 <unistd.h>.
14241 * gdbreplay.c: Likewise.
14242 * remote-utils.c: Likewise.
14243 * server.c: Likewise.
14244 * configure.ac: Don't check for unistd.h.
14245 * configure: Regenerate.
14246
d6c2da54
TT
142472013-06-28 Tom Tromey <tromey@redhat.com>
14248
14249 * Makefile.in (version.c): Use version.in, not
14250 common/version.in.
14251
257b6bec
MG
142522013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14253
14254 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14255 * configure: Rebuild.
14256 * Makefile.in (version_host, version_target): Get from configure.
14257 (version.c): Use $(version_host) and $(version_target).
14258
86ebe149
DK
142592013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14260
14261 Fix trace-status to output user name without trailing colon.
14262 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14263
f30aa5af
DK
142642013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14265
14266 Fix trace-status to output proper start-time and stop-time.
14267 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14268 output start time and stop time in hex as gdb expects.
14269
28a93511
YQ
142702013-06-26 Pedro Alves <pedro@codesourcery.com>
14271
14272 * tracepoint.c (build_traceframe_info_xml): Output trace state
14273 variables present in the trace buffer.
14274
01208463
TT
142752013-06-24 Tom Tromey <tromey@redhat.com>
14276
14277 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14278 create-version.sh.
14279 (version.o): Remove.
14280 * gdbreplay.c: Include version.h.
14281 (version, host_name): Don't declare.
14282 * server.h: Include version.h.
14283 (version, host_name): Don't declare.
14284
760256f9
PA
142852013-06-12 Pedro Alves <palves@redhat.com>
14286
14287 * linux-x86-low.c (linux_is_elf64): Delete global.
14288 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14289 with local linux_pid_exe_is_elf_64_file use.
14290
030031ee
PA
142912013-06-11 Pedro Alves <palves@redhat.com>
14292
14293 * linux-low.c (regset_disabled, disable_regset): New functions.
14294 (regsets_fetch_inferior_registers)
14295 (regsets_store_inferior_registers): Use them.
14296 (initialize_regsets_info); Don't allocate the disabled_regsets
14297 array here.
14298 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14299 comment.
14300
5da6eb0a
PA
143012013-06-11 Pedro Alves <palves@redhat.com>
14302
14303 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14304 xmalloc.
14305
7e5aaa09
PA
143062013-06-11 Pedro Alves <palves@redhat.com>
14307
14308 * linux-x86-low.c (initialize_low_arch): Call
14309 init_registers_x32_avx_linux.
14310
d878444c
JK
143112013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14312
14313 Fix compatibility with Android Bionic.
14314 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14315 it is not empty.
14316
3aee8918
PA
143172013-06-07 Pedro Alves <palves@redhat.com>
14318
5f2b57b5 14319 PR server/14823
3aee8918
PA
14320 * Makefile.in (OBS): Add tdesc.o.
14321 (IPA_OBJS): Add tdesc-ipa.o.
14322 (tdesc-ipa.o): New rule.
14323 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14324 interface.
14325 * linux-low.c (new_inferior): Delete.
14326 (disabled_regsets, num_regsets): Delete.
14327 (linux_add_process): Adjust to set the new per-process
14328 new_inferior flag.
14329 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14330 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14331 was a stop. When calling arch_setup, switch the current inferior
14332 to the thread that got an event.
14333 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14334 (regsets_fetch_inferior_registers)
14335 (regsets_store_inferior_registers): New regsets_info parameter.
14336 Adjust to use it.
14337 (linux_register_in_regsets): New regs_info parameter. Adjust to
14338 use it.
14339 (register_addr, fetch_register, store_register): New usrregs_info
14340 parameter. Adjust to use it.
14341 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14342 parameter regs_info. Adjust to use it.
14343 (linux_fetch_registers): Get the current inferior's regs_info, and
14344 adjust to use it.
14345 (linux_store_registers): Ditto.
14346 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14347 (initialize_low): Don't initialize the target_regsets here. Call
14348 initialize_low_arch.
14349 * linux-low.h (target_regsets): Delete declaration.
14350 (struct regsets_info): New.
14351 (struct usrregs_info): New.
14352 (struct regs_info): New.
14353 (struct process_info_private) <new_inferior>: New field.
14354 (struct linux_target_ops): Delete the num_regs, regmap, and
14355 regset_bitmap fields. New field regs_info.
14356 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14357 * i387-fp.c (num_xmm_registers): Delete.
14358 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14359 calls to new interface.
14360 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14361 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14362 Infer the number of xmm registers from the regcache's target
14363 description.
14364 * i387-fp.h (num_xmm_registers): Delete.
14365 * inferiors.c (add_thread): Don't install the thread's regcache
14366 here.
14367 * proc-service.c (gregset_info): Fetch the current inferior's
14368 regs_info. Adjust to use it.
14369 * regcache.c: Include tdesc.h.
14370 (register_bytes, reg_defs, num_registers)
14371 (gdbserver_expedite_regs): Delete.
14372 (get_thread_regcache): If the thread doesn't have a regcache yet,
14373 create one, instead of aborting gdbserver.
14374 (regcache_invalidate_one): Rename to ...
14375 (regcache_invalidate_thread): ... this.
14376 (regcache_invalidate_one): New.
14377 (regcache_invalidate): Only invalidate registers of the current
14378 process.
14379 (init_register_cache): Add target_desc parameter, and use it.
14380 (new_register_cache): Ditto. Assert the target description has a
14381 non zero registers_size.
14382 (regcache_cpy): Add assertions. Adjust.
14383 (realloc_register_cache, set_register_cache): Delete.
14384 (registers_to_string, registers_from_string): Adjust.
14385 (find_register_by_name, find_regno, find_register_by_number)
14386 (register_cache_size): Add target_desc parameter, and use it.
14387 (free_register_cache_thread, free_register_cache_thread_one)
14388 (regcache_release, register_cache_size): New.
14389 (register_size): Add target_desc parameter, and use it.
14390 (register_data, supply_register, supply_register_zeroed)
14391 (supply_regblock, supply_register_by_name, collect_register)
14392 (collect_register_as_string, collect_register_by_name): Adjust.
14393 * regcache.h (struct target_desc): Forward declare.
14394 (struct regcache) <tdesc>: New field.
14395 (init_register_cache, new_register_cache): Add target_desc
14396 parameter.
14397 (regcache_invalidate_thread): Declare.
14398 (regcache_invalidate_one): Delete declaration.
14399 (regcache_release): Declare.
14400 (find_register_by_number, register_cache_size, register_size)
14401 (find_regno): Add target_desc parameter.
14402 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14403 declarations.
14404 * remote-utils.c: Include tdesc.h.
14405 (outreg, prepare_resume_reply): Adjust.
14406 * server.c: Include tdesc.h.
14407 (gdbserver_xmltarget): Delete declaration.
14408 (get_features_xml, process_serial_event): Adjust.
14409 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14410 declare.
14411 (struct process_info) <tdesc>: New field.
14412 (ipa_tdesc): Declare.
14413 * tdesc.c: New file.
14414 * tdesc.h: New file.
14415 * tracepoint.c: Include tdesc.h.
14416 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14417 (get_context_regcache): Adjust to pass ipa_tdesc down.
14418 (do_action_at_tracepoint): Adjust to get the register cache size
14419 from the context regcache's description.
14420 (traceframe_walk_blocks): Adjust to get the register cache size
14421 from the current trace frame's description.
14422 (traceframe_get_pc): Adjust to get current trace frame's
14423 description and pass it down.
14424 (gdb_collect): Adjust to get the register cache size from the
14425 IPA's description.
14426 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14427 (gdbserver_xmltarget): Delete.
14428 (initialize_low_tracepoint): Set the ipa's target description.
14429 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14430 (initialize_low_tracepoint): Set the ipa's target description.
14431 * linux-x86-low.c: Include tdesc.h.
14432 [__x86_64__] (is_64bit_tdesc): New.
14433 (ps_get_thread_area, x86_get_thread_area): Use it.
14434 (i386_cannot_store_register): Rename to ...
14435 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14436 (i386_cannot_fetch_register): Rename to ...
14437 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14438 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14439 to new interface.
14440 (target_regsets): Rename to ...
14441 (x86_regsets): ... this.
14442 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14443 interface.
14444 (x86_siginfo_fixup): Use is_64bit_tdesc.
14445 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14446 (tdesc_x32_avx_linux, tdesc_x32_linux)
14447 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14448 Declare.
14449 (x86_linux_update_xmltarget): Delete.
14450 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14451 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14452 (AMD64_LINUX_USER64_CS): New.
14453 (x86_linux_read_description): New, based on
14454 x86_linux_update_xmltarget.
14455 (same_process_callback): New.
14456 (x86_arch_setup_process_callback): New.
14457 (x86_linux_update_xmltarget): New.
14458 (x86_regsets_info): New.
14459 (amd64_linux_regs_info): New.
14460 (i386_linux_usrregs_info): New.
14461 (i386_linux_regs_info): New.
14462 (x86_linux_regs_info): New.
14463 (x86_arch_setup): Reimplement.
14464 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14465 (x86_emit_ops): Ditto.
14466 (the_low_target): Adjust. Install x86_linux_regs_info,
14467 x86_cannot_fetch_register, and x86_cannot_store_register.
14468 (initialize_low_arch): New.
14469 * linux-ia64-low.c (tdesc_ia64): Declare.
14470 (ia64_fetch_register): Adjust.
14471 (ia64_usrregs_info, regs_info): New globals.
14472 (ia64_regs_info): New function.
14473 (the_low_target): Adjust.
14474 (initialize_low_arch): New function.
14475 * linux-sparc-low.c (tdesc_sparc64): Declare.
14476 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14477 Adjust.
14478 (sparc_arch_setup): New function.
14479 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14480 (the_low_target): Adjust.
14481 (initialize_low_arch): New function.
14482 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14483 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14484 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14485 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14486 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14487 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14488 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14489 (tdesc_powerpc_isa205_vsx64l): Declare.
14490 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14491 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14492 (ppc_set_pc, ppc_get_hwcap): Adjust.
14493 (ppc_usrregs_info): Forward declare.
14494 (!__powerpc64__) ppc_regmap_adjusted: New global.
14495 (ppc_arch_setup): Adjust to the current process'es target
14496 description.
14497 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14498 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14499 (ppc_store_evrregset): Adjust.
14500 (target_regsets): Rename to ...
14501 (ppc_regsets): ... this, and make static.
14502 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14503 (ppc_regs_info): New function.
14504 (the_low_target): Adjust.
14505 (initialize_low_arch): New function.
14506 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14507 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14508 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14509 (tdesc_s390x_linux64v2): Declare.
14510 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14511 (s390_fill_gregset, s390_store_last_break): Adjust.
14512 (target_regsets): Rename to ...
14513 (s390_regsets): ... this, and make static.
14514 (s390_get_pc, s390_set_pc): Adjust.
14515 (s390_get_hwcap): New target_desc parameter, and use it.
14516 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14517 (s390_arch_setup): Adjust to set the current process'es target
14518 description. Don't adjust the regmap.
14519 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14520 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14521 (regs_info_3264): New globals.
14522 (s390_regs_info): New function.
14523 (the_low_target): Adjust.
14524 (initialize_low_arch): New function.
14525 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14526 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14527 [__mips64] (init_registers_mips_linux)
14528 (init_registers_mips_dsp_linux): Delete defines.
14529 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14530 (have_dsp): New global.
14531 (mips_read_description): New, based on mips_arch_setup.
14532 (mips_arch_setup): Reimplement.
14533 (get_usrregs_info): New function.
14534 (mips_cannot_fetch_register, mips_cannot_store_register)
14535 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14536 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14537 (target_regsets): Rename to ...
14538 (mips_regsets): ... this, and make static.
14539 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14540 (dsp_regs_info, regs_info): New globals.
14541 (mips_regs_info): New function.
14542 (the_low_target): Adjust.
14543 (initialize_low_arch): New function.
14544 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14545 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14546 Declare.
14547 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14548 (arm_read_description): New, with bits factored from
14549 arm_arch_setup.
14550 (arm_arch_setup): Reimplement.
14551 (target_regsets): Rename to ...
14552 (arm_regsets): ... this, and make static.
14553 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14554 (arm_regs_info): New function.
14555 (the_low_target): Adjust.
14556 (initialize_low_arch): New function.
14557 * linux-m68k-low.c (tdesc_m68k): Declare.
14558 (target_regsets): Rename to ...
14559 (m68k_regsets): ... this, and make static.
14560 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14561 (m68k_regs_info): New function.
14562 (m68k_arch_setup): New function.
14563 (the_low_target): Adjust.
14564 (initialize_low_arch): New function.
14565 * linux-sh-low.c (tdesc_sharch): Declare.
14566 (target_regsets): Rename to ...
14567 (sh_regsets): ... this, and make static.
14568 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14569 (sh_regs_info, sh_arch_setup): New functions.
14570 (the_low_target): Adjust.
14571 (initialize_low_arch): New function.
14572 * linux-bfin-low.c (tdesc_bfin): Declare.
14573 (bfin_arch_setup): New function.
14574 (bfin_usrregs_info, regs_info): New globals.
14575 (bfin_regs_info): New function.
14576 (the_low_target): Adjust.
14577 (initialize_low_arch): New function.
14578 * linux-cris-low.c (tdesc_cris): Declare.
14579 (cris_arch_setup): New function.
14580 (cris_usrregs_info, regs_info): New globals.
14581 (cris_regs_info): New function.
14582 (the_low_target): Adjust.
14583 (initialize_low_arch): New function.
14584 * linux-cris-low.c (tdesc_crisv32): Declare.
14585 (cris_arch_setup): New function.
14586 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14587 (cris_regs_info): New function.
14588 (the_low_target): Adjust.
14589 (initialize_low_arch): New function.
14590 * linux-m32r-low.c (tdesc_m32r): Declare.
14591 (m32r_arch_setup): New function.
14592 (m32r_usrregs_info, regs_info): New globals.
14593 (m32r_regs_info): Adjust.
14594 (initialize_low_arch): New function.
14595 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14596 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14597 (tic6x_usrregs_info): Forward declare.
14598 (tic6x_read_description): New function, based on ...
14599 (tic6x_arch_setup): ... this. Reimplement.
14600 (target_regsets): Rename to ...
14601 (tic6x_regsets): ... this, and make static.
14602 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14603 (tic6x_regs_info): New function.
14604 (the_low_target): Adjust.
14605 (initialize_low_arch): New function.
14606 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14607 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14608 (target_regsets): Rename to ...
14609 (xtensa_regsets): ... this, and make static.
14610 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14611 globals.
14612 (xtensa_arch_setup, xtensa_regs_info): New functions.
14613 (the_low_target): Adjust.
14614 (initialize_low_arch): New function.
14615 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14616 (nios2_arch_setup): Set the current process'es tdesc.
14617 (target_regsets): Rename to ...
14618 (nios2_regsets): ... this.
14619 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14620 (nios2_regs_info): New function.
14621 (the_low_target): Adjust.
14622 (initialize_low_arch): New function.
a261b8f5
PA
14623 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14624 (aarch64_arch_setup): Set the current process'es tdesc.
14625 (target_regsets): Rename to ...
14626 (aarch64_regsets): ... this.
14627 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14628 (aarch64_regs_info): New function.
14629 (the_low_target): Adjust.
14630 (initialize_low_arch): New function.
3aee8918
PA
14631 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14632 globals.
14633 (target_regsets): Rename to ...
14634 (tile_regsets): ... this.
14635 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14636 (tile_regs_info): New function.
14637 (tile_arch_setup): Set the current process'es tdesc.
14638 (the_low_target): Adjust.
14639 (initialize_low_arch): New function.
14640 * spu-low.c (tdesc_spu): Declare.
14641 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14642 * win32-arm-low.c (tdesc_arm): Declare.
14643 (arm_arch_setup): New function.
14644 (the_low_target): Install arm_arch_setup instead of
14645 init_registers_arm.
14646 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14647 (init_windows_x86): Rename to ...
14648 (i386_arch_setup): ... this. Set `win32_tdesc'.
14649 (the_low_target): Adjust.
14650 * win32-low.c (win32_tdesc): New global.
14651 (child_add_thread): Don't create the thread cache here.
14652 (do_initial_child_stuff): Set the new process'es tdesc.
14653 * win32-low.h (struct target_desc): Forward declare.
14654 (win32_tdesc): Declare.
14655 * lynx-i386-low.c (tdesc_i386): Declare global.
14656 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14657 * lynx-low.c (lynx_tdesc): New global.
14658 (lynx_add_process): Set the new process'es tdesc.
14659 * lynx-low.h (struct target_desc): Forward declare.
14660 (lynx_tdesc): Declare global.
14661 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14662 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14663 * nto-low.c (nto_tdesc): New global.
14664 (do_attach): Set the new process'es tdesc.
14665 * nto-low.h (struct target_desc): Forward declare.
14666 (nto_tdesc): Declare.
14667 * nto-x86-low.c (tdesc_i386): Declare.
14668 (nto_x86_arch_setup): Set `nto_tdesc'.
14669
b1fbec62
GB
146702013-06-04 Gary Benson <gbenson@redhat.com>
14671
14672 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14673 to qSupported response when appropriate.
14674 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14675 with nonzero-length annex.
14676 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14677 arguments supplied in annex.
14678
d1ec4ce7
DE
146792013-05-31 Doug Evans <dje@google.com>
14680
ac44adcb 14681 PR server/15594
d1ec4ce7
DE
14682 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14683 64 bits in 64-cross-32 environment.
14684
9b25f2d3
PA
146852013-05-28 Pedro Alves <palves@redhat.com>
14686
14687 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14688 (aarch64-without-fpu.c): Delete rule.
14689 * configure.srv (aarch64*-*-linux*): Remove references to
14690 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14691 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14692 declaration.
14693
6740dc9c
PA
146942013-05-24 Pedro Alves <palves@redhat.com>
14695
14696 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14697 instead of strchr/decode_address. Error if the range isn't split
14698 with a ','. Don't assume there's be a ':' in the action.
14699
c2d6af84
PA
147002013-05-23 Yao Qi <yao@codesourcery.com>
14701 Pedro Alves <palves@redhat.com>
14702
14703 * linux-low.c (lwp_in_step_range): New function.
14704 (linux_wait_1): If the thread was range stepping and stopped
14705 outside the stepping range, report the stop to GDB. Otherwise,
14706 continue stepping. Add range stepping debug output.
14707 (linux_set_resume_request): Copy the step range from the resume
14708 request to the lwp.
14709 (linux_supports_range_stepping): New.
14710 (linux_target_ops) <supports_range_stepping>: Set to
14711 linux_supports_range_stepping.
14712 * linux-low.h (struct linux_target_ops)
14713 <supports_range_stepping>: New field.
14714 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14715 * linux-x86-low.c (x86_supports_range_stepping): New.
14716 (the_low_target) <supports_range_stepping>: Set to
14717 x86_supports_range_stepping.
14718 * server.c (handle_v_cont): Handle 'r' action.
14719 (handle_v_requests): Append ";r" if the target supports range
14720 stepping.
14721 * target.h (struct thread_resume) <step_range_start,
14722 step_range_end>: New fields.
14723 (struct target_ops) <supports_range_stepping>:
14724 New field.
14725 (target_supports_range_stepping): New macro.
14726
58794e1a
JB
147272013-05-17 Joel Brobecker <brobecker@adacore.com>
14728
14729 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14730 confusion in comment.
14731
d631c5a7
JB
147322013-05-17 Joel Brobecker <brobecker@adacore.com>
14733
14734 * lynx-low.c (struct process_info_private): New type.
14735 (lynx_add_process): New function.
14736 (lynx_create_inferior, lynx_attach): Replace calls to
14737 add_process by calls to lynx_add_process.
14738 (lynx_resume): If PTID is null, then try using
14739 current_process()->private->last_wait_event_ptid.
14740 Add comments.
14741 (lynx_clear_inferiors): Delete. The contents of that function
14742 has been inlined in lynx_mourn;
14743 (lynx_wait_1): Save the ptid in the process's private data.
14744 (lynx_mourn): Free the process' private data. Replace call
14745 to lynx_clear_inferiors by call to clear_inferiors.
14746
96f7a20f
YQ
147472013-05-17 Yao Qi <yao@codesourcery.com>
14748
14749 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14750 the right place.
14751
db0dfaa0
LM
147522013-05-16 Luis Machado <lgustavo@codesourcery.com>
14753
14754 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14755 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14756 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14757 PT_TEXT_END_ADDR guards. Update comments.
14758 (linux_target_op) <read_offsets>: Conditionally define to
14759 linux_read_offsets if the target is UCLIBC and if it defines
14760 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14761
68f5f838
SL
147622013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14763 Andrew Jenner <andrew@codesourcery.com>
14764
14765 * Makefile.in (SFILES): Add linux-nios2-low.c.
14766 (clean): Add action to delete nios2-linux.c.
14767 (nios2-linux.c): New rule.
14768 * configure.srv: Add nios2*-*-linux*.
14769 * linux-nios2-low.c: New.
14770
1ebff1fd
HAQ
147712013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14772
14773 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14774
f6150862
HZ
147752013-04-25 Hui Zhu <hui@codesourcery.com>
14776
14777 PR gdb/15186
f6150862
HZ
14778 * ax.c (ax_printf): Add fflush.
14779
614c279d
TT
147802013-04-22 Tom Tromey <tromey@redhat.com>
14781
14782 * Makefile.in (SFILES): Add filestuff.c.
14783 (OBS): Add filestuff.o.
14784 (filestuff.o): New target.
14785 * config.in, configure: Rebuild.
14786 * configure.ac: Check for fdwalk, pipe2.
14787
7d4e5717
PA
147882013-04-17 Pedro Alves <palves@redhat.com>
14789
14790 * configure.ac (USE_THREAD_DB): Delete variable.
14791 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14792 Don't AC_SUBST USE_THREAD_DB.
14793 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14794 * config.in, configure: Regenerate.
14795
d5c93e41
PA
147962013-04-16 Pedro Alves <palves@redhat.com>
14797
14798 * linux-low.h (struct lwp_info) <thread_known>: Move under
14799 the USE_THREAD_DB #ifdef.
14800
04f5fe89
PA
148012013-04-16 Pedro Alves <palves@redhat.com>
14802
14803 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14804 (linux-low.o): Delete rule.
14805 * linux-low.h: Always include "gdb_thread_db.h" instead of
14806 conditionally including thread_db.h.
14807 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14808 HAVE_THREAD_DB_H.
14809
480b27bf
JK
148102013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14811
14812 * Makefile.in (install-only): Fix make install regression.
14813
43662968
JK
148142013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14815
14816 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14817 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14818 installation.
14819 * gdbserver.1: Remove.
14820
3e74e146
PA
148212013-03-22 Pedro Alves <palves@redhat.com>
14822
14823 * linux-low.c (handle_extended_wait): Don't call
14824 linux_enable_event_reporting.
14825
a8347a2a
TT
148262013-03-15 Tony Theodore <tonyt@logyst.com>
14827
14828 PR build/9098:
14829 * Makefile.in (SHELL): Use @SHELL@.
14830
eeb56fa7
SDJ
148312013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14832
14833 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14834 compiler warning.
14835
4fa7e2ff
JB
148362013-03-13 Joel Brobecker <brobecker@adacore.com>
14837
14838 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14839 Remove extraneous NULL element.
14840
8ddb1965
YQ
148412013-03-13 Yao Qi <yao@codesourcery.com>
14842
14843 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14844 'V' block in trace frame.
14845
9accd112
MM
148462013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14847
14848 * target.h (struct target_ops): Add btrace ops.
14849 (target_supports_btrace): New macro.
14850 (target_enable_btrace): New macro.
14851 (target_disable_btrace): New macro.
14852 (target_read_btrace): New macro.
14853 * gdbthread.h (struct thread_info): Add btrace field.
14854 * server.c: Include btrace-common.h.
14855 (handle_btrace_general_set): New function.
14856 (handle_btrace_enable): New function.
14857 (handle_btrace_disable): New function.
14858 (handle_general_set): Call handle_btrace_general_set.
14859 (handle_qxfer_btrace): New function.
14860 (struct qxfer qxfer_packets[]): Add btrace entry.
14861 * inferiors.c (remove_thread): Disable btrace.
14862 * linux-low: Include linux-btrace.h.
14863 (linux_low_enable_btrace): New function.
14864 (linux_low_read_btrace): New function.
14865 (linux_target_ops): Add btrace ops.
14866 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14867 Add srv_linux_btrace=yes.
14868 (x86_64-*-linux*): Add linux-btrace.o.
14869 Add srv_linux_btrace=yes.
14870 * configure.ac: Define HAVE_LINUX_BTRACE.
14871 * config.in: Regenerated.
14872 * configure: Regenerated.
14873
5cc22e4c
MM
148742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14875
14876 * server.c (handle_qxfer): Preserve error message if -3 is
14877 returned.
14878 (qxfer): Document the -3 return value.
14879
7c97f91e
MM
148802013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14881
14882 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14883 (linux_btrace_h): New variable.
14884 (linux-btrace.o): New rule.
14885
be9a119c 148862013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14887 Hafiz Abid Qadeer <abidh@codesourcery.com>
14888
14889 * tracepoint.c (trace_buffer_size): New global.
14890 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14891 (init_trace_buffer): Change to one-argument function. Allocate
14892 trace buffer memory.
14893 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14894 handle QTBuffer:size packet.
14895 (cmd_bigqtbuffer_size): New function.
14896 (initialize_tracepoint): Call init_trace_buffer with
14897 DEFAULT_TRACE_BUFFER_SIZE.
14898 * server.c (handle_query): Add QTBuffer:size in the
14899 supported packets.
14900
e64f7499
YQ
149012013-03-07 Yao Qi <yao@codesourcery.com>
14902
14903 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14904 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14905 of -1.
14906 (cmd_qtsp): Adjust condition. Do post increment.
14907 Set cur_action and cur_step_action back to 0.
14908
f0ae6fc3
PA
149092013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14910
14911 PR server/15236
14912 * linux-low.c (linux_write_memory): Return early success if LEN is
14913 zero.
14914
b5b0b0af
CV
149152013-03-05 Corinna Vinschen <vinschen@redhat.de>
14916
334ad4a8 14917 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14918
589bc927
TT
149192013-02-28 Tom Tromey <tromey@redhat.com>
14920
14921 * configure.ac: Invoke AC_SYS_LARGEFILE.
14922 * configure, config.in: Rebuild.
14923
dfe07582
CV
149242013-02-28 Corinna Vinschen <vinschen@redhat.com>
14925
14926 * win32-low.c: Throughout, fix format strings and casts of
14927 printf-like functions to avoid type related warnings on all
14928 platforms.
14929 (get_child_debug_event): Print dwDebugEventCode as hex since
14930 that's how it's usually documented.
14931
736cd585
YQ
149322013-02-28 Yao Qi <yao@codesourcery.com>
14933
14934 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14935 pulongest.
14936
e1f58301
JW
149372013-02-27 Jiong Wang <jiwang@tilera.com>
14938
14939 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14940 (reg-tilegx32.c): New rule.
14941 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14942 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14943 different register info initializer according to elf class.
14944 (init_registers_tilgx32): New function. The tilegx32 register info
14945 initializer.
14946 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14947 (tile_store_gregset): Likewise.
14948
d171ca78
YQ
149492013-02-27 Yao Qi <yao@codesourcery.com>
14950
14951 * server.c (process_point_options): Print debug message when
14952 debug_threads is true.
14953
282bbdf3
YQ
149542013-02-26 Yao Qi <yao@codesourcery.com>
14955
14956 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14957
aca22551
PA
149582013-02-19 Pedro Alves <palves@redhat.com>
14959 Kai Tietz <ktietz@redhat.com>
14960
14961 PR gdb/15161
14962
14963 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14964 instead of strtoul to extract address from packet.
14965 (process_serial_event) <'z'>: Likewise.
14966
4f3cee1c
YQ
149672013-02-18 Yao Qi <yao@codesourcery.com>
14968
14969 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14970
8e1d55a3
PA
149712013-02-14 Pedro Alves <palves@redhat.com>
14972
14973 Plug memory leak.
14974
14975 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14976 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14977
458820da
PA
149782013-02-14 Pedro Alves <palves@redhat.com>
14979
14980 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14981
baea0dae
PA
149822013-02-14 Pedro Alves <palves@redhat.com>
14983
14984 * tracepoint.c (save_string): Delete.
14985 (add_tracepoint_action): Use savestring instead of save_string.
14986
0b1afbb3
PA
149872013-02-12 Pedro Alves <palves@redhat.com>
14988
14989 * linux-xtensa-low.c: Ditto.
14990 * xtensa-xtregs.c: Ditto.
14991
8a4ac37e
PA
149922013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14993
14994 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14995 thread_db.
14996
148de6bb
MS
149972013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14998
14999 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15000 aarch64_num_wp_regs and aarch64_num_bp_regs to
15001 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15002
55fac6e0
MS
150032013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15004
15005 * linux-aarch64-low.c (ps_get_thread_area): Replace
15006 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15007
176eb98c
MS
150082013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15009 Marcus Shawcroft <marcus.shawcroft@arm.com>
15010 Nigel Stephens <nigel.stephens@arm.com>
15011 Yufeng Zhang <yufeng.zhang@arm.com>
15012
15013 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15014 (aarch64.c, aarch64-without-fpu.c): New targets.
15015 * configure.srv (aarch64*-*-linux*): New.
15016 * linux-aarch64-low.c: New file.
15017
56f7af9c
MS
150182013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15019
43aaf8b6 15020 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
15021 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15022 (dequeue_one_deferred_signal, linux_resume_one_thread)
15023 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15024 (linux_tracefork_grandchild, linux_test_for_tracefork)
15025 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15026 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15027 where the argument is 0.
15028
60f662b0
YQ
150292013-01-25 Yao Qi <yao@codesourcery.com>
15030
15031 * event-loop.c: Include "queue.h".
15032 (gdb_event_p): New typedef.
15033 (struct gdb_event) <next_event>: Remove.
15034 (event_queue): Change to QUEUE(gdb_event_p).
15035 (async_queue_event): Remove.
15036 (gdb_event_xfree): New.
15037 (initialize_event_loop): New.
15038 (process_event): Use API from QUEUE.
15039 (wait_for_event): Likewise.
15040 * server.c (main): Call initialize_event_loop.
15041 * server.h (initialize_event_loop): Declare.
15042
5ae4861a
YQ
150432013-01-18 Yao Qi <yao@codesourcery.com>
15044
15045 * ax.h (struct eval_agent_expr_context): New.
15046 (gdb_eval_agent_expr): Update declaration.
15047 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15048 TFRAME. Add new argument CTX.
15049 * server.h (struct eval_agent_expr_context): Declare.
15050 (agent_mem_read, agent_tsv_read): Update declaration.
15051 (agent_mem_read_string): Likewise.
15052 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15053 (add_traceframe_block): Add new argument TPOINT.
15054 Increase TPOINT->traceframe_usage.
15055 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15056 eval_tracepoint_agent_expr.
15057 (condition_true_at_tracepoint): Likewise.
15058 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15059 (agent_mem_read_string, agent_tsv_read): Likewise.
15060
85e00e85
YQ
150612013-01-16 Yao Qi <yao@codesourcery.com>
15062
15063 * linux-low.c (linux_resume_one_lwp): Don't check
15064 'lwp->bp_reinsert != 0'.
15065
4039cf45
JB
150662013-01-07 Joel Brobecker <brobecker@adacore.com>
15067 Pedro Alves <palves@redhat.com>
15068
15069 * lynx-low.c (ptrace_request_to_str): Define a temporary
15070 macro and use it to simplify this function's implementation.
15071
9044dee2
JB
150722013-01-07 Joel Brobecker <brobecker@adacore.com>
15073
15074 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15075 sets errno.
15076
e6352c8f
JB
150772013-01-07 Joel Brobecker <brobecker@adacore.com>
15078
15079 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15080
50681a27
JB
150812013-01-07 Joel Brobecker <brobecker@adacore.com>
15082
15083 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15084
3f6e77ef
JB
150852013-01-07 Joel Brobecker <brobecker@adacore.com>
15086
15087 * lynx-low.c (lynx_resume): Use the resume_info parameter
15088 to determine the ptid for the lynx_ptrace call, unless
15089 it is equal to minus_one_ptid, in which case we use the
15090 ptid of the current_inferior.
15091 (lynx_wait_1): After having received a thread create/exit
15092 event, resume the inferior's execution using the signaling
15093 thread's ptid, rather than the old ptid.
15094
7fda33ae
JB
150952013-01-07 Joel Brobecker <brobecker@adacore.com>
15096
15097 * lynx-low.c (lynx_resume): Delete variable ret.
15098
b9786c74
JB
150992013-01-01 Joel Brobecker <brobecker@adacore.com>
15100
15101 * gdbreplay.c (gdbreplay_version): Update copyright year.
15102 * server.c (gdbserver_version): Likewise.
15103
8b93d60f
JB
151042012-12-17 Joel Brobecker <brobecker@adacore.com>
15105
15106 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15107 new thread.
15108
037335a7
JB
151092012-12-17 Joel Brobecker <brobecker@adacore.com>
15110
15111 * lynx-low.c (ptrace_request_to_str): Add handling for
15112 PTRACE_GETTRACESIG.
15113
52d4cbd8
JB
151142012-12-17 Joel Brobecker <brobecker@adacore.com>
15115
15116 * lynx-low.c (lynx_attach): Delete variable new_process.
15117
ab8f6ca9
JB
151182012-12-17 Joel Brobecker <brobecker@adacore.com>
15119
15120 * lynx-low.c (lynx_create_inferior): Delete variable
15121 new_process.
15122
78cbc024
JB
151232012-12-17 Joel Brobecker <brobecker@adacore.com>
15124
15125 * lynx-low.c (ptrace_request_to_str): Do not handle
15126 PTRACE_GETTHREADLIST if this macro does not exist.
15127
14a00470
YQ
151282012-12-15 Yao Qi <yao@codesourcery.com>
15129
15130 * Makefile.in (OBS): Add notif.o.
15131 * notif.c, notif.h: New.
15132 * server.c: Include "notif.h".
15133 (struct vstop_notif) <next>: Remove.
15134 <base>: New field.
15135 (queue_stop_reply): Update.
15136 (push_event, send_next_stop_reply): Remove.
15137 (discard_queued_stop_replies): Update.
15138 (notif_stop): New variable.
15139 (handle_v_stopped): Remove.
15140 (handle_v_requests): Don't call handle_v_stopped. Call
15141 handle_ack_notif instead.
15142 (queue_stop_reply_callback): Call notif_event_enque instead
15143 of queue_stop_reply.
15144 (handle_status): Don't call send_next_stop_reply, call
15145 notif_write_event instead.
15146 (kill_inferior_callback): Likewise.
15147 (detach_or_kill_inferior_callback): Likewise.
15148 (main): Call initialize_notif.
15149 (process_serial_event): Call QUEUE_is_empty.
15150 (handle_target_event): Call notif_push instead of push event.
15151 * server.h (push_event): Remove declaration.
15152
61c125b9
TT
151532012-12-10 Tom Tromey <tromey@redhat.com>
15154
15155 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15156 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15157 macros.
15158 (.c.o): Rewrite.
15159 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15160 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15161 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15162 (amd64-linux-ipa.o, ax.o): Rewrite.
15163 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15164 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15165 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15166 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15167 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15168 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15169 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15170 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15171 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15172 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15173 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15174 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15175 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15176 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15177 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15178 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15179 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15180 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15181 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15182 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15183 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15184 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15185 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15186 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15187 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15188 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15189 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15190 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15191 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15192 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15193 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15194 (reg-tilegx.o): Remove.
15195 (all_object_files): New macro.
15196 Include .deps files.
15197 * aclocal.m4, configure: Rebuild.
15198 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15199 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15200 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15201
e90e9ad9
TT
152022012-12-05 Tom Tromey <tromey@redhat.com>
15203
15204 PR gdb/14917:
15205 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15206
02d403bf 152072012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15208
15209 * configure.ac: Check for linux/perf_event.h.
15210 * config.in: Regenerated.
15211 * configure: Regenerated.
15212
0270a750
PA
152132012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15214
15215 * hostio.c (handle_readlink): Decrease buffer size
15216 parameter passed to readlink by one byte.
15217
8c29b58e
YQ
152182012-11-26 Yao Qi <yao@codesourcery.com>
15219
15220 * configure.ac (build_warnings): Append '-Wempty-body'.
15221 * configure: Regenerated.
15222 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15223 body.
15224
8bdce1ff
PM
152252012-11-15 Pierre Muller <muller@sourceware.org>
15226
15227 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15228 * config.in: Regenerate.
15229 * configure: Regenerate.
15230 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15231 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15232 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15233 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15234 header.
15235 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15236 instead of <sys/wait.h> header.
15237 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15238
02d403bf 152392012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15240
15241 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15242 (various make rules): Remove -DGDBSERVER
15243
fbd5db48
YQ
152442012-11-09 Yao Qi <yao@codesourcery.com>
15245
15246 * spu-low.c (current_ptid): Move it to ..
15247 * gdbthread.h: ... here. New.
15248 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15249 * server.c (myresume, process_serial_event): Likewise.
15250 * thread-db.c (thread_db_find_new_threads): Likewise.
15251 * tracepoint.c (run_inferior_command): Likewise.
15252
b3dc46ff
AB
152532012-10-01 Andrew Burgess <aburgess@broadcom.com>
15254
15255 * server.c (handle_search_memory_1): Include access length in
15256 warning message.
15257
07c04788
HPN
152582012-09-05 Michael Brandt <michael.brandt@axis.com>
15259
15260 * linux-crisv32-low.c: Fix compile errors.
15261
918d227b
YQ
152622012-09-04 Yao Qi <yao@codesourcery.com>
15263
15264 * tracepoint.c (cmd_qtsv): Adjust debug message.
15265 Don't check CUR_TPOINT.
15266
18c1b81a
YQ
152672012-08-28 Yao Qi <yao@codesourcery.com>
15268
15269 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15270 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15271 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15272 Remove declarations of xmalloc, xreallloc, xstrdup and
15273 freeargv.
15274 * Makefile.in (libiberty_h): New.
15275 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15276 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15277
dc82f37b
YQ
152782012-08-23 Yao Qi <yao@codesourcery.com>
15279
15280 * server.h: Remove declaration of 'xsnprintf'.
15281
406b1477
KS
152822012-08-22 Keith Seitz <keiths@redhat.com>
15283
15284 * server.h: Include build-gnulib-gbserver/config.h.
15285 * gdbreplay.c: Likewise.
15286
e6712ff1
DE
152872012-08-08 Doug Evans <dje@google.com>
15288
15289 * Makefile.in (SFILES): Add gdb_vecs.c.
15290 (OBS): Add gdb_vecs.o.
15291 (gdb_vecs_h, host_defs_h): New variables.
15292 (thread-db.o): Add $(gdb_vecs_h) dependency.
15293 (gdb_vecs.o): New rule.
15294 * thread-db.c: #include "gdb_vecs.h".
15295 (thread_db_load_search): Use a vector to iterate over path elements.
15296 Handle text appearing after "$pdir".
15297
15298 * configure.ac: Add check for strstr.
15299 * config.in: Regenerate.
15300 * configure: Regenerate.
15301
7c3270ae
UW
153022012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15303
15304 * hostio.c (handle_pread): If pread fails, fall back to attempting
15305 lseek/read.
15306 (handle_pwrite): Likewise for pwrite.
15307
b62e2b27
UW
153082012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15309
15310 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15311 between unsupported TYPE and unimplementable ADDR/LEN combination.
15312 (arm_insert_point): Act on new return value.
15313
78a99e91
PA
153142012-07-31 Pedro Alves <palves@redhat.com>
15315
15316 * server.c (process_point_options): Only skip tokens if we find
15317 one that is unrecognized. Don't treat 'X' specially while
15318 skipping unrecognized tokens.
15319
fcf303ab
UW
153202012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15321
15322 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15323 to 4-byte-align HW breakpoint addresses for Thumb.
15324
7255706c
YQ
153252012-07-27 Yao Qi <yao@codesourcery.com>
15326
15327 PR remote/14161.
15328
15329 * server.h: Declare gdb_agent_about_to_close.
15330 * target.c (kill_inferior): Include "agent.h".
15331 New. Send command 'kill'.
15332 * target.h (kill_inferior): Removed macro.
15333 * tracepoint.c (gdb_agent_about_to_close): New.
15334 (gdb_agent_helper_thread): Handle command 'close'.
15335 Wait endlessly until the inferior stops.
15336 Install gdb_agent_remove_socket to atexit hook.
15337 (agent_socket_name): New static variable.
15338 (gdb_agent_socket_init): Replace local variable 'name' with
15339 'agent_socket_name'.
15340 (gdb_agent_remove_socket): New.
15341
5a3f286f
YQ
153422012-07-27 Yao Qi <yao@codesourcery.com>
15343
15344 * server.c (process_point_options): Stop at 'X' when parsing.
15345
961bd387
ME
153462012-07-19 Michael Eager <eager@eagercon.com>
15347
a261b8f5 15348 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15349 to hw_execute.
15350 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15351 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15352 hardware breakpoint.
15353
aa7c7447
JK
153542012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15355
15356 * gdbserver/linux-low.c (initialize_low): Call
15357 linux_ptrace_init_warnings.
15358
7f216e7c
DE
153592012-07-02 Doug Evans <dje@google.com>
15360
15361 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15362 pointer to int.
15363
d3ce09f5
SS
153642012-07-02 Stan Shebs <stan@codesourcery.com>
15365
15366 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15367 (ax.o): Add it to build rule.
15368 (ax-ipa.o): Ditto.
15369 (OBS): Add format.o.
15370 (IPA_OBS): Add format.o.
15371 * server.c (handle_query): Claim support for breakpoint commands.
15372 (process_point_options): Add command case.
15373 (process_serial_event): Leave running if there are printfs in
15374 effect.
15375 * mem-break.h (any_persistent_commands): Declare.
15376 (add_breakpoint_commands): Declare.
15377 (gdb_no_commands_at_breakpoint): Declare.
15378 (run_breakpoint_commands): Declare.
15379 * mem-break.c (struct point_command_list): New struct.
15380 (struct breakpoint): New field command_list.
15381 (any_persistent_commands): New function.
15382 (add_commands_to_breakpoint): New function.
15383 (add_breakpoint_commands): New function.
15384 (gdb_no_commands_at_breakpoint): New function.
15385 (run_breakpoint_commands): New function.
15386 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15387 locally.
15388 * ax.c: Include format.h.
15389 (ax_printf): New function.
15390 (gdb_eval_agent_expr): Add printf opcode.
15391
2f8f6aed
YQ
153922012-06-13 Yao Qi <yao@codesourcery.com>
15393
15394 * server.c (start_inferior): Remove duplicated writes to fields
15395 'last_resume_kind' and 'last_status' of 'current_inferior'.
15396
0c9070b3
YQ
153972012-06-12 Yao Qi <yao@codesourcery.com>
15398 Pedro Alves <palves@redhat.com>
15399
15400 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15401 comment.
15402 * server.c (handle_v_cont): Extend comment.
15403
c52daf70
YQ
154042012-06-11 Yao Qi <yao@codesourcery.com>
15405
15406 * linux-low.c (linux_attach): Add 'static'.
15407
d38bbb0a
YQ
154082012-06-06 Yao Qi <yao@codesourcery.com>
15409
15410 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15411
89dc0afd
JK
154122012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15413
15414 Fix gcc -flto compilation warning.
15415 * server.c (main): Make variable multi_mode and attach volatile.
15416
75f62ce7
TJB
154172012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15418
15419 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15420 if the platform doesn't know about it.
15421
65f479b6
PA
154222012-05-30 Jeff Kenton <jkenton@tilera.com>
15423
15424 * Makefile.in (SFILES): Add linux-tile-low.c.
15425 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15426 * configure.srv: Handle tilegx-*-linux*.
15427 * linux-tile-low.c: New file.
15428
0c5bf5a9
JK
154292012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15430
15431 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15432
a493e3e2
PA
154332012-05-24 Pedro Alves <palves@redhat.com>
15434
15435 PR gdb/7205
15436
43aaf8b6 15437 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15438
2ea28649
PA
154392012-05-24 Pedro Alves <palves@redhat.com>
15440
15441 PR gdb/7205
15442
15443 Replace target_signal with gdb_signal throughout.
15444
8d409d16
MR
154452012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15446
15447 * linux-low.c (linux_store_registers): Avoid the copying sequence
15448 when no data has been retrieved by ptrace.
15449
23512c01
MGD
154502012-05-22 Will Deacon <will.deacon@arm.com>
15451
15452 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15453 Include asm/ptrace.h.
15454 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15455 already defined.
15456
4934b29e
MR
154572012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15458
15459 * linux-low.c (linux_store_registers): Don't re-retrieve data
15460 with ptrace that has already been obtained from /proc. Always
15461 copy any data retrieved with ptrace to the buffer supplied.
15462
bde24c0a
PA
154632012-05-11 Yao Qi <yao@codesourcery.com>
15464 Pedro Alves <palves@redhat.com>
15465
15466 * linux-low.c (enum stopping_threads_kind): New.
15467 (stopping_threads): Change type to `enum stopping_threads_kind'.
15468 (handle_extended_wait): If stopping and suspending threads, leave
15469 the new_lwp suspended too.
15470 (linux_wait_for_event): Adjust.
15471 (stop_all_lwps): Set `stopping_threads' to
15472 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15473 whether we're suspending threads or just stopping them. Assert no
15474 recursion happens.
15475
623b6bdf
YQ
154762012-04-29 Yao Qi <yao@codesourcery.com>
15477
15478 * server.h: Move some code to ...
15479 * gdbthread.h: ... here. New.
15480 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15481 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15482 (nto-low.o, win32-low.o): Likewise.
15483 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15484 * regcache.c, remote-utils.c, server.c: Likewise.
15485 * target.c, tracepoint.c, win32-low.c: Likewise.
15486
f15f9948
TJB
154872012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15488
15489 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15490 (PTRACE_ARG4_TYPE): Likewise.
15491 (PTRACE_XFER_TYPE): Likewise.
15492 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15493 ptrace to PTRACE_ARG3_TYPE.
15494 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15495 (PTRACE_ARG4_TYPE): Likewise.
15496 (PTRACE_XFER_TYPE): Likewise.
15497 (linux_detach_one_lwp): Cast fourth argument of
15498 ptrace to long then PTRACE_ARG4_TYPE.
15499 (regsets_fetch_inferior_registers): Cast third argument of
15500 ptrace to long then PTRACE_ARG3_TYPE.
15501 (regsets_store_inferior_registers): Likewise.
15502
38ea300a
PA
155032012-04-20 Pedro Alves <palves@redhat.com>
15504
15505 * configure: Regenerate.
15506
c971b7fa
PA
155072012-04-19 Pedro Alves <palves@redhat.com>
15508
43aaf8b6 15509 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15510 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15511 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15512 (all, install-only, uninstall, clean-info, all-lib, clean): No
15513 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15514 (maintainer-clean realclean distclean): Use subdir_do.
15515 (subdir_do): New.
15516 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15517 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15518 * acinclude.m4: Include acx_configure_dir.m4.
15519 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15520 calls. Call AC_PROG_RANLIB. Configure gnulib using
15521 ACX_CONFIGURE_DIR.
15522 (GNULIB): New.
15523 (GNULIB_STDINT_H): Adjust.
15524 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15525 * gdbreplay.c: Include build-gnulib/config.h.
15526 * server.h: Likewise.
15527 * aclocal.m4: Regenerate.
15528 * config.in: Regenerate.
15529 * configure: Regenerate.
c971b7fa 15530
809277f8
PA
155312012-04-19 Pedro Alves <palves@redhat.com>
15532
15533 * Makefile.in (LIBGNU, INCGNU): Adjust.
15534 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15535 (all, install-only, uninstall, clean-info, all-lib, clean)
15536 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15537 * configure.ac: Adjust AC_OUTPUT output.
15538 * aclocal.m4: Regenerate.
15539 * configure: Regenerate.
15540
fd9bb8b8
PA
155412012-04-19 Pedro Alves <palves@redhat.com>
15542
15543 * Makefile.in (generated_files): New.
15544 (server_h): Remove the explicit dependency on config.h, and depend
15545 on $generated_files.
15546
1c298c66
PA
155472012-04-19 Pedro Alves <palves@redhat.com>
15548
15549 * Makefile.in (INCGNU): Add -Ignulib.
15550
57c4b50b
PA
155512012-04-19 Pedro Alves <palves@redhat.com>
15552
15553 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15554 (INCGNU): ... this, and spell out -I here.
15555 (GNULIB_LIB): Rename to ...
15556 (LIBGNU): ... this.
15557 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15558
1030e047
PA
155592012-04-19 Pedro Alves <palves@redhat.com>
15560
15561 * config.in: Regenerate.
15562
447d4319
PA
155632012-04-19 Pedro Alves <palves@redhat.com>
15564
15565 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15566 * server.h (memmem): Remove declaration.
15567 * config.in: Regenerate.
15568 * configure: Regenerate.
15569
aad9eab9
YQ
155702012-04-19 Yao Qi <yao@codesourcery.com>
15571
15572 * Makefile.in (SFILES): Add common/vec.c.
15573 (OBS): Add vec.o.
15574 (vec.o): New rule.
15575
3e10640f
YQ
155762012-04-19 Yao Qi <yao@codesourcery.com>
15577
15578 * remote-utils.c (prepare_resume_reply): Replace with macro
15579 target_core_of_thread.
15580 * server.c (handle_qxfer_threads_proper): Likewise.
15581 * target.h (traget_core_of_thread): New macro.
15582
71622373
PA
155832012-04-18 Pedro Alves <palves@redhat.com>
15584
15585 * aclocal.m4: Regenerate.
15586 * configure: Regenerate.
15587
80d26939
YQ
155882012-04-16 Yao Qi <yao@codesourcery.com>
15589
15590 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15591 duplicated on address.
15592
42476b70
YQ
155932012-04-16 Yao Qi <yao@codesourcery.com>
15594
15595 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15596 (struct tracepoint_action_ops) <send>: New field.
15597 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15598 (agent_expr_send, x_tracepoint_action_send): New.
15599 (l_tracepoint_action_send): New.
15600 (cmd_qtdp): Download and install tracepoint
15601 according to `use_agent'.
15602 (run_inferior_command): Add one more parameter `len'.
15603 Update callers.
15604 (tracepoint_send_agent): New.
15605 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15606
7bc83639
YQ
156072012-04-16 Yao Qi <yao@codesourcery.com>
15608
15609 * tracepoint.c (download_tracepoints): Moved to ...
15610 (cmd_qtstart): ... here.
15611
5f18041e
YQ
156122012-04-14 Yao Qi <yao@codesourcery.com>
15613
15614 * tracepoint.c: Include inttypes.h.
15615 (struct collect_memory_action): Use sized types.
15616 (struct tracepoint): Likewise.
15617 (cmd_qtdp, stop_tracing): Update print specifiers.
15618 (cmd_qtp, response_tracepoint): Likewise.
15619 (collect_data_at_tracepoint): Likewise.
15620 (collect_data_at_step): Likewise.
15621
55a8c076
YQ
156222012-04-14 Yao Qi <yao@codesourcery.com>
15623
15624 Import gnulib module inttypes.
15625 * aclocal.m4, config.in, configure: Regenerated.
15626
dc750257
YQ
156272012-04-14 Yao Qi <yao@codesourcery.com>
15628
15629 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15630 Makefile and config.status at last.
15631
0ab5faf9
YQ
156322012-04-13 Yao Qi <yao@codesourcery.com>
15633
15634 * tracepoint.c: Include stdint.h unconditionally.
15635
18f5fd81
TJB
156362012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15637
15638 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15639 on BFD_HAVE_SYS_PROCFS_TYPE.
15640 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15641 * configure: Regenerate.
15642 * config.in: Likewise.
15643
4d47af5c
L
156442012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15645
15646 * Makefile.in (clean): Also remove x32.c x32-linux.c
15647 x32-avx.c x32-avx-linux.c.
15648 (x32.o): New target.
15649 (x32.c): Likewise.
15650 (x32-linux.o): Likewise.
15651 (x32-linux.c): Likewise.
15652 (x32-avx.o): Likewise.
15653 (x32-avx.c): Likewise.
15654 (x32-avx-linux.o): Likewise.
15655 (x32-avx-linux.c): Likewise.
15656
15657 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15658 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15659 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15660 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15661 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15662 i386/x32-avx-linux.xml.
15663
15664 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15665 (init_registers_x32_avx_linux): Likwise.
15666 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15667 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15668
ecedbe58
PA
156692012-04-13 Pedro Alves <palves@redhat.com>
15670
15671 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15672 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15673 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15674 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15675 the sub-make.
15676
c92b5177
L
156772012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15678
15679 * linux-x86-low.c (compat_x32_clock_t): New.
15680 (compat_x32_siginfo_t): Likewise.
15681 (compat_x32_siginfo_from_siginfo): Likewise.
15682 (siginfo_from_compat_x32_siginfo): Likewise.
15683 (linux_is_elf64): Likewise.
15684 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15685 and siginfo_from_compat_x32_siginfo for x32.
15686 (x86_arch_setup): Set linux_is_elf64.
15687
214d508e
L
156882012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15689
15690 PR gdb/13969
15691 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15692 e_machine field.
15693 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15694 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15695 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15696 compatible with process.
15697
c9a1864a
YQ
156982012-04-12 Yao Qi <yao@codesourcery.com>
15699
15700 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15701 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15702 (install-only, install-info, clean): Handle sub dir gnulib.
15703 (all-lib, am--refresh): New targets.
15704 (memmem.o): Remove target.
15705 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15706 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15707 (AC_REPLACE_FUNCS): Remove memmem.
15708 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15709 (AC_OUTPUT): Generate Makefile in gnulib/.
15710 * aclocal.m4, config.in, configure: Regenerated.
15711
367ba2c2
MR
157122012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15713
15714 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15715
9d236627
PA
157162012-04-05 Pedro Alves <palves@redhat.com>
15717
15718 -Werror=strict-aliasing
15719
15720 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15721 pointer.
15722
111217b3
PA
157232012-04-04 Pedro Alves <palves@redhat.com>
15724
15725 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15726 (sparc_store_gregset_from_stack, sparc_store_gregset)
15727 (sparc_breakpoint_at): Fix formatting.
15728
8365dcf5
TJB
157292012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15730
15731 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15732 are available.
15733 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15734 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15735 * config.in: Regenerate.
15736 * configure: Likewise.
15737
689cc2ae
PA
157382012-03-29 Pedro Alves <palves@redhat.com>
15739
15740 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15741 Correct ptrace arguments.
15742
c14dfd32
PA
157432012-03-28 Pedro Alves <palves@redhat.com>
15744
15745 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15746 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15747 (IA64_FR1_REGNUM): New defines.
15748 (ia64_fetch_register): New.
15749 (the_low_target): Install it.
15750 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15751 field.
15752 * linux-low.c (linux_fetch_registers): Try the
15753 the_low_target.fetch_register hook first.
15754
15755 * linux-arm-low.c (the_low_target): Adjust.
15756 * linux-bfin-low.c (the_low_target): Adjust.
15757 * linux-cris-low.c (the_low_target): Adjust.
15758 * linux-crisv32-low.c (the_low_target): Adjust.
15759 * linux-m32r-low.c (the_low_target): Adjust.
15760 * linux-m68k-low.c (the_low_target): Adjust.
15761 * linux-mips-low.c (the_low_target): Adjust.
15762 * linux-ppc-low.c (the_low_target): Adjust.
15763 * linux-s390-low.c (the_low_target): Adjust.
15764 * linux-sh-low.c (the_low_target): Adjust.
15765 * linux-sparc-low.c (the_low_target): Adjust.
15766 * linux-tic6x-low.c (the_low_target): Adjust.
15767 * linux-x86-low.c (the_low_target): Adjust.
15768 * linux-xtensa-low.c (the_low_target): Adjust.
15769
63c88e13
PA
157702012-03-26 Pedro Alves <palves@redhat.com>
15771
15772 * server.c (handle_qxfer_libraries): Don't bail early if
15773 the_target->qxfer_libraries_svr4 is not NULL.
15774
fb723180
PA
157752012-03-26 Pedro Alves <palves@redhat.com>
15776
15777 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15778
0afae3cf
PA
157792012-03-23 Pedro Alves <palves@redhat.com>
15780
15781 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15782 "library-list-svr4" element's start tag when the the DSO list is
15783 empty.
15784
485f1ee4
PA
157852012-03-23 Pedro Alves <palves@redhat.com>
15786
15787 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15788 a variable whose type size is the same as the inferior's pointer
15789 size.
15790
a5362b9a
TS
157912012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15792
15793 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15794 struct siginfo.
15795 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15796 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15797 * linux-low.h: Include <signal.h>.
15798 (struct siginfo): Remove forward declaration.
15799 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15800 struct siginfo.
15801
d226c142
MF
158022012-03-21 Mike Frysinger <vapier@gentoo.org>
15803
15804 * .gitignore: Ignore more files.
15805
122f36ef
PA
158062012-03-19 Pedro Alves <palves@redhat.com>
15807 Jan Kratochvil <jan.kratochvil@redhat.com>
15808
15809 * server.c (cont_thread, general_thread): Add describing comments.
15810 (start_inferior): Clear `cont_thread'.
15811 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15812 of a process.
15813
fc3e5175
YQ
158142012-03-15 Yao Qi <yao@codesourcery.com>
15815
15816 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15817 handling to ...
15818 (cmd_qtdp): ... here.
15819
8d0d92cd
YQ
158202012-03-15 Yao Qi <yao@codesourcery.com>
15821
15822 * tracepoint.c (struct tracepoint_action_ops): New.
15823 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15824 (m_tracepoint_action_download): New.
15825 (r_tracepoint_action_download): New.
15826 (x_tracepoint_action_download): New.
15827 (l_tracepoint_action_download): New.
15828 (add_tracepoint_action): Install `action->ops' according type.
15829 (download_tracepoint_1): Move code `download' function pointer
15830 of various tracepoint_action_ops.
15831
87b0bb13
JK
158322012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15833
15834 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15835 linux_ptrace_attach_warnings.
15836
5f572dec
JK
158372012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15838
15839 * Makefile.in (linux-ptrace.o): New.
15840 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15841 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15842 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15843 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15844 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15845 of these targets.
15846 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15847
f4647387
YQ
158482012-03-08 Yao Qi <yao@codesourcery.com>
15849 Pedro Alves <palves@redhat.com>
15850
15851 Fix PR server/13392.
15852 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15853 offset of JMP insn.
15854 * tracepoint.c (remove_tracepoint): New.
15855 (cmd_qtdp): Call remove_tracepoint when failed to install.
15856
9b224c5e
PA
158572012-03-07 Pedro Alves <palves@redhat.com>
15858
15859 * linux-low.c (get_detach_signal): New.
15860 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15861 Pass on pending signals to PTRACE_DETACH. Check the result of the
15862 ptrace call.
15863 * server.c (program_signals, program_signals_p): New.
15864 (handle_general_set): Handle QProgramSignals.
15865 * server.h (program_signals, program_signals_p): Declare.
15866
e237a7e2
JK
158672012-03-05 Pedro Alves <palves@redhat.com>
15868 Jan Kratochvil <jan.kratochvil@redhat.com>
15869
15870 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15871 New comment why.
15872
5808517f
YQ
158732012-03-03 Yao Qi <yao@codesourcery.com>
15874
15875 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15876 agent_look_up_symbols.
15877
58b4daa5
YQ
158782012-03-03 Yao Qi <yao@codesourcery.com>
15879
15880 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15881 (linux-x86-low.o): Likewise.
15882 * server.h: Remove in_process_agent_loaded.
15883 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15884 common/agent.c.
15885 Update callers.
15886
8ffcbaaf
YQ
158872012-03-03 Yao Qi <yao@codesourcery.com>
15888
15889 * tracepoint.c (gdb_agent_capability): New global.
15890 (in_process_agent_loaded_ust): Renamed to
15891 `in_process_agent_supports_ust'.
15892 Update callers.
15893 (in_process_agent_supports_ust): Call agent_capability_check.
15894 (clear_installed_tracepoints): Assert that agent supports
15895 agent.
15896
d1feda86
YQ
158972012-03-03 Yao Qi <yao@codesourcery.com>
15898
15899 * linux-low.c (linux_supports_agent): New.
15900 (linux_target_ops): Initialize field `supports_agent' with
15901 linux_supports_agent.
15902 * target.h (struct target_ops) <supports_agent>: New.
15903 (target_supports_agent): New macro.
15904 * server.c (handle_general_set): Handle packet 'QAgent'.
15905 (handle_query): Send `QAgent+'.
15906 * Makefile.in (server.o): Depends on agent.h.
15907
2fa291ac
YQ
159082012-03-03 Yao Qi <yao@codesourcery.com>
15909
15910 * Makefile.in (OBS): Add agent.o.
15911 Add new rule for agent.o.
15912 Track dependence of tracepoint.c on agent.h.
15913 * tracepoint.c (run_inferior_command_1):
15914 (run_inferior_command): Call agent_run_command.
15915 (gdb_ust_connect_sync_socket): Deleted. Move it to
15916 common/agent.c.
15917 (resume_thread, stop_thread): Likewise.
15918 (gdb_ust_socket_init): Renamed to ...
15919 (gdb_agent_socket_init): ... New.
15920 (gdb_ust_thread): Renamed to ...
15921 (gdb_agent_helper_thread): ... New.
15922 (gdb_ust_init): Move some code to ...
15923 (gdb_agent_init): ... here. New.
15924 [HAVE_UST]: Call gdb_ust_init.
15925 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15926 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15927 * config.in, configure: Regenerated.
15928
05044653
PA
159292012-03-02 Pedro Alves <palves@redhat.com>
15930
15931 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15932 * linux-low.c (struct simple_pid_list): New.
15933 (stopped_pids): New a struct simple_pid_list pointer.
15934 (add_to_pid_list, pull_pid_from_list): New.
15935 (handle_extended_wait): Don't assume the first signal new children
15936 report is SIGSTOP. Adjust call to pull_pid_from_list.
15937 (linux_wait_for_lwp): Adjust.
15938
8d00225b
YQ
159392012-03-02 Yao Qi <yao@codesourcery.com>
15940
15941 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15942 debug log.
15943
19560ba5
YQ
159442012-03-02 Yao Qi <yao@codesourcery.com>
15945
15946 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15947 `stop_pc' and `tpoint'. Update caller.
15948
1faeff08
MR
159492012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15950
15951 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15952 * linux-low.c (use_linux_regsets): New macro.
15953 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15954 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15955 (linux_register_in_regsets): New function.
15956 (usr_fetch_inferior_registers): Skip registers covered by
15957 regsets.
15958 (usr_store_inferior_registers): Likewise.
15959 (usr_fetch_inferior_registers): New macro.
15960 (usr_store_inferior_registers): Likewise.
15961 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15962 (linux_store_registers): Likewise.
15963 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15964 prototype.
15965 (init_registers_mips64_dsp_linux): Likewise.
15966 (init_registers_mips_linux): New macro.
15967 (init_registers_mips_dsp_linux): Likewise.
15968 (mips_dsp_num_regs): Likewise.
15969 (DSP_BASE, DSP_CONTROL): New fallback macros.
15970 (mips_base_regs): New macro.
15971 (mips_regmap): Use it. Fix the size.
15972 (mips_dsp_regmap): New variable.
15973 (mips_dsp_regset_bitmap): Likewise.
15974 (mips_arch_setup): New function.
15975 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15976 than mips_regmap.
15977 (mips_cannot_store_register): Likewise.
15978 (the_low_target): Update .arch_setup, .num_regs and .regmap
15979 initializers. Add .regset_bitmap initializer.
15980 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15981 initializer.
15982 * linux-bfin-low.c (the_low_target): Likewise.
15983 * linux-cris-low.c (the_low_target): Likewise.
15984 * linux-crisv32-low.c (the_low_target): Likewise.
15985 * linux-ia64-low.c (the_low_target): Likewise.
15986 * linux-m32r-low.c (the_low_target): Likewise.
15987 * linux-m68k-low.c (the_low_target): Likewise.
15988 * linux-ppc-low.c (the_low_target): Likewise.
15989 * linux-s390-low.c (the_low_target): Likewise.
15990 * linux-sh-low.c (the_low_target): Likewise.
15991 * linux-sparc-low.c (the_low_target): Likewise.
15992 * linux-tic6x-low.c (the_low_target): Likewise.
15993 * linux-x86-low.c (the_low_target): Likewise.
15994 * linux-xtensa-low.c (the_low_target): Likewise.
15995 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15996 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15997 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15998 srv_xmlfiles.
15999 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16000 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16001
c03e6ccc
YQ
160022012-02-29 Yao Qi <yao@codesourcery.com>
16003 Pedro Alves <palves@redhat.com>
16004
16005 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16006 `step_over_finished' is true.
16007
644cebc9
PA
160082012-02-27 Pedro Alves <palves@redhat.com>
16009
16010 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16011 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16012
c14d7ab2
PA
160132012-02-27 Pedro Alves <palves@redhat.com>
16014
16015 PR server/9684
16016 * linux-low.c (pid_is_stopped): New.
16017 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16018
412c89dd
LM
160192012-02-25 Luis Machado <lgustavo@codesourcery.com>
16020
16021 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16022 of conditions.
16023
b745defe
MR
160242012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16025
16026 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16027
9f3a5c85
LM
160282012-02-24 Luis Machado <lgustavo@codesourcery>
16029
16030 * server.c (handle_query): Advertise support for target-side
16031 breakpoint condition evaluation.
16032 (process_point_options): New function.
16033 (process_serial_event): When inserting a breakpoint, check for
16034 a target-side condition that should be evaluated.
16035
16036 * mem-break.c: Include regcache.h and ax.h.
16037 (point_cond_list_t): New data structure.
16038 (breakpoint) <cond_list>: New field.
16039 (find_gdb_breakpoint_at): Make non-static.
16040 (delete_gdb_breakpoint_at): Clear any target-side
16041 conditions.
16042 (clear_gdb_breakpoint_conditions): New function.
16043 (add_condition_to_breakpoint): Likewise.
16044 (add_breakpoint_condition): Likewise.
16045 (gdb_condition_true_at_breakpoint): Likewise.
16046 (gdb_breakpoint_here): Return result directly instead
16047 of going through a local variable.
16048
16049 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16050 (clear_gdb_breakpoint_conditions): Likewise.
16051 (add_breakpoint_condition): Likewise.
16052 (gdb_condition_true_at_breakpoint): Likewise.
16053
16054 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16055 (need_step_over_p): Take target-side breakpoint condition into
16056 consideration.
16057
5e1dc496
LM
160582012-02-24 Luis Machado <lgustavo@codesourcery>
16059
16060 * server.h: Include tracepoint.h.
16061 (agent_mem_read, agent_get_trace_state_variable_value,
16062 agent_set_trace_state_variable_value,
16063 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16064 get_set_tsv_func_addr): New prototypes.
16065
16066 * ax.h: New include file.
16067 * ax.c: New source file.
16068
16069 * tracepoint.c: Include ax.h.
16070 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16071 agent_expr, eval_result_type): Move to ax.h.
16072 (parse_agent_expr): Rename to ...
16073 (gdb_parse_agent_expr): ... this, make it non-static and move
16074 to ax.h.
16075 (unparse_agent_expr) Rename to ...
16076 (gdb_unparse_agent_expr): ... this, make it non-static and move
16077 to ax.h.
16078 (eval_agent_expr): Rename to ...
16079 (eval_tracepoint_agent_expr): ... this.
16080 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16081 forward declarations.
16082 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16083 (agent_get_trace_state_variable_value): New function.
16084 (agent_set_trace_state_variable_value): New function.
16085 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16086 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16087 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16088 (condition_true_at_tracepoint): Likewise.
16089 (parse_agent_expr): Rename to ...
16090 (gdb_parse_agent_expr): ... this and move to ax.c.
16091 (unparse_agent_expr): Rename to ...
16092 (gdb_unparse_agent_expr): ... this and move to ax.c.
16093 (gdb_agent_op_name): Move to ax.c.
16094 (eval_agent_expr): Rename to ...
16095 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16096 and move to ax.c.
16097 (eval_tracepoint_agent_expr): New function.
16098 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16099 non-static.
5e1dc496
LM
16100 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16101 ax.c.
16102 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16103 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16104 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16105 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16106 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16107 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16108 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16109 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16110 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16111 (compile_bytecodes): Remove forward declaration.
16112 (is_goto_target): Move to ax.c.
16113 (compile_bytecodes): Move to ax.c and call
16114 agent_get_trace_state_variable_value (...) and
16115 agent_set_trace_state_variable_value (...).
16116
16117 * Makefile.in: Update ax.c and IPA dependencies.
16118
277e4e52
PA
161192012-02-24 Pedro Alves <palves@redhat.com>
16120
16121 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16122 (cmd_bigqtbuffer_circular): ... this. Only handle
16123 'QTBuffer:circular:'.
16124 (handle_tracepoint_general_set): Adjust.
16125
bf4c19f7
YQ
161262012-02-16 Yao Qi <yao@codesourcery.com>
16127
16128 * inferiors.c: Move code to ...
16129 * dll.c: .... here. New.
16130 * server.h: Declare clear_dlls.
16131 * Makefile.in (SFILES): Add dll.c.
16132 (OBS): Add dll.o
16133 (dll.o): New rule.
16134
d73f2619
YQ
161352012-02-11 Yao Qi <yao@codesourcery.com>
16136
16137 * server.c: (handle_monitor_command): Add a new parameter
16138 `own_buf'.
16139 (handle_query): Update caller.
16140
f8255c2a
JB
161412012-02-09 Joel Brobecker <brobecker@adacore.com>
16142
16143 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16144 * configure, config.in: Regenerate.
16145 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16146 is not defined.
16147
da84f473
PA
161482012-02-02 Pedro Alves <palves@redhat.com>
16149
16150 Try SIGKILL first, then PTRACE_KILL.
16151 * linux-low.c (linux_kill_one_lwp): New.
16152 (linux_kill_one_lwp): Rename to ...
16153 (kill_one_lwp_callback): ... this. Use the new
16154 linux_kill_one_lwp.
16155
e886a173
PA
161562012-02-02 Pedro Alves <palves@redhat.com>
16157
16158 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16159 inferior.
16160
be07f1a2
PA
161612012-01-27 Pedro Alves <palves@redhat.com>
16162
16163 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16164 (elf_64_file_p): Make static.
16165 (linux_pid_exe_is_elf_64_file): New.
16166 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16167 Delete declarations.
16168 (linux_pid_exe_is_elf_64_file): Declare.
16169 * linux-x86-low.c (x86_arch_setup): Use
16170 linux_pid_exe_is_elf_64_file.
16171
d8301ad1
JK
161722012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16173
16174 * linux-low.c (linux_wait_for_event_1): Rename to ...
16175 (linux_wait_for_event): ... here and merge it with former
16176 linux_wait_for_event - new variable wait_ptid, use it.
16177 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16178
01b17894
PA
161792012-01-23 Pedro Alves <palves@redhat.com>
16180
16181 * server.c (main): Avoid yet another case of infinite loop while
16182 detaching/killing after a longjmp.
16183
e825046f
JK
161842012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16185
16186 Code cleanup.
16187 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16188
b9e7b9c3
UW
161892012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16190
16191 * hostio.c (handle_readlink): New function.
16192 (handle_vFile): Call it to handle "vFile:readlink" packets.
16193
901f9912
UW
161942012-01-20 Pedro Alves <palves@redhat.com>
16195 Ulrich Weigand <ulrich.weigand@linaro.org>
16196
16197 * server.c (handle_v_requests): Only support vAttach and vRun to
16198 start multiple processes when in extended protocol mode.
16199
fc1ab1a0
PA
162002012-01-17 Pedro Alves <palves@redhat.com>
16201
16202 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16203 memalign plus mprotect to allocate the scratch buffer.
16204
7d5d4e98
PA
162052012-01-13 Pedro Alves <palves@redhat.com>
16206
16207 * server.c (attach_inferior): Clear `cont_thread'.
16208
f128d5e9
PA
162092012-01-13 Pedro Alves <palves@redhat.com>
16210
16211 * server.c (main): Avoid infinite loop while detaching/killing
16212 after a longjmp.
16213
06db92f0
DE
162142012-01-09 Doug Evans <dje@google.com>
16215
16216 * server.c (start_inferior): Set last_ptid in --wrapper case.
16217
32d92999
YQ
162182012-01-06 Yao Qi <yao@codesourcery.com>
16219
16220 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16221 defined.
16222 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16223
5e0a92a9
YQ
162242012-01-04 Yao Qi <yao@codesourcery.com>
16225
16226 * tracepoint.c (cmd_qtdp): Print debug message
16227 for static tracepoint.
16228
ae639e8c
YQ
162292012-01-04 Yao Qi <yao@codesourcery.com>
16230
16231 * tracepoint.c (trace_vdebug): Differentiate debug message
16232 between gdbserver and IPA.
16233
f72429c5
YQ
162342012-01-03 Yao Qi <yao@codesourcery.com>
16235
16236 * tracepoint.c (tracepoint_was_hit): Don't collect for
16237 static tracepoint.
16238
12c3e59c
JB
162392012-01-02 Joel Brobecker <brobecker@adacore.com>
16240
16241 * terminal.h: Reformat copyright header.
16242
67827812
JB
162432012-01-02 Joel Brobecker <brobecker@adacore.com>
16244
16245 * server.c (gdbserver_version): Update copyright year.
16246 * gdbreplay.c (gdbreplay_version): Likewise.
16247
3e52c33d
JK
162482011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16249
16250 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16251
16252 Revert:
16253 2011-12-18 Hui Zhu <teawater@gmail.com>
16254 * linux-low.c (linux_create_inferior): Save return value to ret.
16255
66f1260e
HZ
162562011-12-18 Hui Zhu <teawater@gmail.com>
16257
16258 * linux-low.c (linux_create_inferior): Save return value to ret.
16259
e77616d7
DE
162602011-12-16 Doug Evans <dje@google.com>
16261
e7b06c57
DE
16262 * linux-low.c (linux_create_inferior): If stdio connection,
16263 redirect stdin from /dev/null, stdout to stderr.
16264 * remote-utils.c (remote_is_stdio): New static global.
16265 (remote_connection_is_stdio): New function.
16266 (remote_prepare): Handle stdio connection.
16267 (remote_open): Ditto.
16268 (remote_close): Don't close stdin for stdio connections.
16269 (read_prim,write_prim): New functions. Replace all calls to
16270 read/write to these.
16271 * server.c (main): Watch for "-" argument. Move call to
16272 remote_prepare before start_inferior.
16273 * server.h (STDIO_CONNECTION_NAME): New macro.
16274 (remote_connection_is_stdio): Declare.
16275
e77616d7
DE
16276 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16277 in debugging output.
16278
82067193
YQ
162792011-12-15 Yao Qi <yao@codesourcery.com>
16280
16281 * tracepoint.c: Include sys/syscall.h.
16282 (gdb_ust_thread): Remove preprocessor conditional.
16283
82bfbe7e
PA
162842011-12-14 Pedro Alves <pedro@codesourcery.com>
16285
16286 * linux-low.c (linux_detach_one_lwp): Call
16287 the_low_target.prepare_to_resume before detaching.
16288
712c6575
YQ
162892011-12-14 Yao Qi <yao@codesourcery.com>
16290
16291 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16292 of write.
16293
d54d1edf
YQ
162942011-12-14 Yao Qi <yao@codesourcery.com>
16295
16296 * i386-low.c (i386_low_stopped_data_address): Initialize local
16297 variable `control'.
16298
6210a125
PA
162992011-12-13 Pedro Alves <pedro@codesourcery.com>
16300
16301 PR remote/13492
16302
16303 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16304 DR_CONTROL unless necessary. Extend comments.
16305 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16306 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16307
2ece8244
YQ
163082011-12-13 Yao Qi <yao@codesourcery.com>
16309
16310 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16311 macros.
16312 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16313
784867a5
JK
163142011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16315
16316 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16317 Print new debug message for such case.
16318
6bf36717
JK
163192011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16320
16321 Fix overlapping memcpy.
16322 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16323 the read_inferior_memory transfer.
16324 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16325 write_inferior_memory transfer.
16326 (set_fast_tracepoint_jump): New variable buf. Use it for the
16327 read_inferior_memory and write_inferior_memory transfers.
16328 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16329 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16330 Use it for the write_inferior_memory transfer.
16331 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16332 buffers.
16333
50275556
MR
163342011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16335
16336 * linux-low.c (fetch_register, store_register): Make code
16337 consistent, fix formatting.
16338
7325beb4
MR
163392011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16340
16341 * linux-low.c (usr_store_inferior_registers): Factor out code
16342 to handle individual registers into...
16343 (store_register): ... this new function.
16344
c642a434
UW
163452011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16346
16347 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16348 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16349 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16350 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16351 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16352 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16353 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16354 (srv_xmlfiles): Add new XML files.
16355
16356 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16357 and <sys/uio.h>.
16358 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16359 (init_registers_s390_linux32v1): Add prototype.
16360 (init_registers_s390_linux32v2): Likewise.
16361 (init_registers_s390_linux64v1): Likewise.
16362 (init_registers_s390_linux64v2): Likewise.
16363 (init_registers_s390x_linux64v1): Likewise.
16364 (init_registers_s390x_linux64v2): Likewise.
16365 (s390_num_regs): Increment to 52.
16366 (s390_regmap): Add orig_r2 register.
16367 (s390_num_regs_3264): Increment to 68.
16368 (s390_regmap_3264): Add orig_r2 register.
16369 (s390_collect_ptrace_register): Handle orig_r2 register.
16370 (s390_supply_ptrace_register): Likewise.
16371 (s390_fill_last_break): New function.
16372 (s390_store_last_break): Likewise.
16373 (s390_fill_system_call): New function.
16374 (s390_store_system_call): Likewise.
16375 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16376 register sets.
16377 (s390_check_regset): New function.
16378 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16379 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16380 Update target_regsets for available register sets.
16381
2268b414
JK
163822011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16383 Jan Kratochvil <jan.kratochvil@redhat.com>
16384
16385 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16386 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16387 New.
16388 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16389 * linux-low.h (struct process_info_private): New member r_debug.
16390 * server.c (handle_qxfer_libraries): Call
16391 the_target->qxfer_libraries_svr4.
16392 (handle_qxfer_libraries_svr4): New function.
16393 (qxfer_packets): New entry "libraries-svr4".
16394 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16395 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16396 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16397 PACKET_qXfer_libraries_svr4.
16398
d6db1fab
UW
163992011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16400
16401 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16402 PSW address/mask between 8-byte and 16-byte formats.
16403 (s390_supply_ptrace_register): Likewise.
16404 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16405 basic addressing mode bit.
16406
242f5f1c
SS
164072011-11-24 Stan Shebs <stan@codesourcery.com>
16408
16409 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16410
f196051f
SS
164112011-11-17 Stan Shebs <stan@codesourcery.com>
16412
16413 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16414 (tracing_start_time): New global.
16415 (tracing_stop_time): New global.
16416 (tracing_user_name): New global.
16417 (tracing_notes): New global.
16418 (tracing_stop_note): New global.
16419 (cmd_qtstart): Set traceframe_usage, start_time.
16420 (stop_tracing): Set stop_time.
16421 (cmd_qtstatus): Report additional status.
16422 (cmd_qtp): New function.
16423 (handle_tracepoint_query): Call it.
16424 (cmd_qtnotes): New function.
16425 (handle_tracepoint_general_set): Call it.
16426 (get_timestamp): Rename from tsv_get_timestamp.
16427
405f8e94
SS
164282011-11-14 Stan Shebs <stan@codesourcery.com>
16429 Kwok Cheung Yeung <kcy@codesourcery.com>
16430
16431 * linux-x86-low.c (small_jump_insn): New.
16432 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16433 trampoline and error message, build a trampoline and issue a small
16434 jump instruction to it.
16435 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16436 trampoline and error message.
16437 (x86_get_min_fast_tracepoint_insn_len): New.
16438 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16439 * linux-low.h (struct linux_target_ops): Add arguments to
16440 install_fast_tracepoint_jump_pad operation, add new operation.
16441 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16442 arguments.
16443 (linux_get_min_fast_tracepoint_insn_len): New function.
16444 (linux_target_op): Add new operation.
16445 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16446 (gdb_trampoline_buffer_end): Ditto.
16447 (gdb_trampoline_buffer_error): Ditto.
16448 (struct ipa_sym_addresses): Add fields for new IPA variables.
16449 (symbol_list): Add entries for new IPA variables.
16450 (struct tracepoint): Add fields to hold the address range of the
16451 trampoline used by the tracepoint.
16452 (trampoline_buffer_head): New static variable.
16453 (trampoline_buffer_tail): Ditto.
16454 (claim_trampoline_space): New function.
16455 (have_fast_tracepoint_trampoline_buffer): New function.
16456 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16457 structure.
16458 (install_fast_tracepoint): Ditto, also add error buffer argument.
16459 (cmd_qtminftpilen): New function.
16460 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16461 (fast_tracepoint_from_trampoline_address): New function.
16462 (fast_tracepoint_collecting): Handle trampoline as part of jump
16463 pad space.
16464 (set_trampoline_buffer_space): New function.
16465 (initialize_tracepoint): Initialize new IPA variables.
16466 * target.h (struct target_ops): Add arguments to
16467 install_fast_tracepoint_jump_pad operation, add new
16468 get_min_fast_tracepoint_insn_len operation.
16469 (target_get_min_fast_tracepoint_insn_len): New.
16470 (install_fast_tracepoint_jump_pad): Add arguments.
16471 * server.h (IPA_BUFSIZ): Define.
16472 * linux-i386-ipa.c: Include extra header files.
16473 (initialize_fast_tracepoint_trampoline_buffer): New function.
16474 (initialize_low_tracepoint): Call it.
16475 * server.h (set_trampoline_buffer_space): Declare.
16476 (claim_trampoline_space): Ditto.
16477 (have_fast_tracepoint_trampoline_buffer): Ditto.
16478
1e4d1764
YQ
164792011-11-14 Yao Qi <yao@codesourcery.com>
16480
16481 * server.c (handle_query): Handle InstallInTrace for qSupported.
16482 * tracepoint.c (add_tracepoint): Sort list.
16483 (install_tracepoint, download_tracepoint): New.
16484 (cmd_qtdp): Call them to install and download tracepoints.
16485 (sort_tracepoints): Removed.
16486 (cmd_qtstart): Update.
16487
5c73ff4e
YQ
164882011-11-14 Yao Qi <yao@codesourcery.com>
16489
16490 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16491 * mem-break.h: Declare.
16492 * tracepoint.c (cmd_qtstart): Move some code to ...
16493 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16494 New.
16495 (download_tracepoints): Move some code to ...
16496 (download_tracepoint_1): ... here. New.
16497
86a30030
YQ
164982011-11-08 Yao Qi <yao@codesourcery.com>
16499
16500 * remote-utils.c (relocate_instruction): A comment fix.
16501
8d26e50c
JB
165022011-11-07 Joel Brobecker <brobecker@adacore.com>
16503
16504 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16505 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16506 dr_status_mirror and dr_control_mirror from debug_reg_state.
16507 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16508 (i386_initial_stuff): Remove use of deleted globals.
16509 (i386_get_thread_context, i386_set_thread_context,
16510 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16511 from debug_reg_state.
16512
a59306a3
YQ
165132011-11-05 Yao Qi <yao@codesourcery.com>
16514
16515 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16516 address as TPOINT's.
16517
3065dfb6
SS
165182011-11-02 Stan Shebs <stan@codesourcery.com>
16519
16520 * tracepoint.c (agent_mem_read_string): New function.
16521 (eval_agent_expr): Call it for tracenz.
16522 * server.c (handle_query): Report support for tracenz.
16523
fd0d8c7c
YQ
165242011-11-02 Yao Qi <yao@codesourcery.com>
16525
16526 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16527
609086b1
YQ
165282011-11-02 Yao Qi <yao@codesourcery.com>
16529
16530 * target.h: Fix a typo in comment.
16531
b9fd1791
PA
165322011-10-31 Pedro Alves <pedro@codesourcery.com>
16533
16534 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16535 clobber the breakpoints' shadows with fast tracepoint jumps.
16536 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16537 * target.c (write_inferior_memory): Also pass MYADDR down to
16538 check_mem_write.
16539
03583c20
UW
165402011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16541
16542 * configure.ac: Check support for personality routine.
16543 * configure: Regenerate.
16544 * config.in: Likewise.
16545 * linux-low.c: Include <sys/personality.h>.
16546 Define ADDR_NO_RANDOMIZE if necessary.
16547 (linux_create_inferior): Disable address space randomization when
16548 forking inferior, if requested.
16549 (linux_supports_disable_randomization): New function.
16550 (linux_target_ops): Install it.
16551 * server.h (disable_randomization): Declare.
16552 * server.c (disable_randomization): New global variable.
16553 (handle_general_set): Handle QDisableRandomization.
16554 (handle_query): Likewise for qSupported.
16555 (main): Support --disable-randomization and --no-disable-randomization
16556 command line arguments.
16557 * target.h (struct target_ops): Add supports_disable_randomization.
16558 (target_supports_disable_randomization): New macro.
16559
723b724b
MF
165602011-09-29 Mike Frysinger <vapier@gentoo.org>
16561
16562 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16563 ifdef check.
16564 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16565 [!PT_GETDSBT] (target_loadmap): New definition.
16566 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16567 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16568 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16569 and PT_GETDSBT to LINUX_LOADMAP.
16570 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16571 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16572
55329a5c 165732011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16574
16575 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16576 (arm_linux_hwbp_cap): New static variable.
16577 (arm_linux_get_hwbp_cap): Replace by ...
16578 (arm_linux_init_hwbp_cap): ... this new function.
16579 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16580 (arm_linux_get_hw_watchpoint_count): Likewise.
16581 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16582 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16583 (arm_prepare_to_resume): Use perror_with_name instead of error.
16584
55329a5c 165852011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16586
16587 * linux-arm-low.c: Include <signal.h>.
16588 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16589 (struct arm_linux_hwbp_cap): New data type.
16590 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16591 (struct arm_linux_hw_breakpoint): New data type.
16592 (MAX_BPTS, MAX_WPTS): Define.
16593 (struct arch_process_info, struct arch_lwp_info): New data types.
16594 (arm_linux_get_hwbp_cap): New function.
16595 (arm_linux_get_hw_breakpoint_count): Likewise.
16596 (arm_linux_get_hw_watchpoint_count): Likewise.
16597 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16598 (arm_hwbp_control_initialize): Likewise.
16599 (arm_hwbp_control_is_enabled): Likewise.
16600 (arm_hwbp_control_is_initialized): Likewise.
16601 (arm_hwbp_control_disable): Likewise.
16602 (arm_linux_hw_breakpoint_equal): Likewise.
16603 (arm_linux_hw_point_initialize): Likewise.
16604 (struct update_registers_data): New data structure.
16605 (update_registers_callback: New function.
16606 (arm_insert_point): Likewise.
16607 (arm_remove_point): Likewise.
16608 (arm_stopped_by_watchpoint): Likewise.
16609 (arm_stopped_data_address): Likewise.
16610 (arm_new_process): Likewise.
16611 (arm_new_thread): Likewise.
16612 (arm_prepare_to_resume): Likewise.
16613 (the_low_target): Register arm_insert_point, arm_remove_point,
16614 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16615 arm_new_thread, and arm_prepare_to_resume.
16616
6b9801d4
SS
166172011-09-15 Stan Shebs <stan@codesourcery.com>
16618
16619 * server.h (struct emit_ops): Add compare-goto fields.
16620 * tracepoint.c (gdb_agent_op_sizes): New table.
16621 (emit_eq_goto): New function.
16622 (emit_ne_goto): New function.
16623 (emit_lt_goto): New function.
16624 (emit_le_goto): New function.
16625 (emit_gt_goto): New function.
16626 (emit_ge_goto): New function.
16627 (is_goto_target): New function.
16628 (compile_bytecodes): Recognize special cases of compare-goto
16629 combinations and call specialized emitters for them.
16630 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16631 (amd64_emit_ne_goto): New function.
16632 (amd64_emit_lt_goto): New function.
16633 (amd64_emit_le_goto): New function.
16634 (amd64_emit_gt_goto): New function.
16635 (amd64_emit_ge_goto): New function.
16636 (amd64_emit_ops): Add the new functions.
16637 (i386_emit_eq_goto): New function.
16638 (i386_emit_ne_goto): New function.
16639 (i386_emit_lt_goto): New function.
16640 (i386_emit_le_goto): New function.
16641 (i386_emit_gt_goto): New function.
16642 (i386_emit_ge_goto): New function.
16643 (i386_emit_ops): Add the new functions.
16644
bf15cbda
SS
166452011-09-08 Stan Shebs <stan@codesourcery.com>
16646
16647 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16648 (i386_emit_epilogue): Restore %ebx.
16649
943ca1dd
JZ
166502011-08-31 Jie Zhang <jzhang918@gmail.com>
16651
16652 * server.c (step_thread): Remove definition.
16653 (process_serial_event): Don't handle Hs.
16654 * server.h (step_thread): Remove declaration.
16655 * target.c (set_desired_inferior): Remove use of step_thread.
16656
e3deef73
LM
166572011-08-24 Luis Machado <lgustavo@codesourcery.com>
16658
16659 * linux-low.c: Include linux-procfs.h.
16660 (linux_attach_lwp_1): Update comments.
16661 (linux_attach): Scan for existing threads when attaching to a
16662 process that is the tgid.
16663 * Makefile.in: Update dependencies.
16664
13da1c97
LM
166652011-08-24 Luis Machado <lgustavo@codesourcery.com>
16666
16667 * configure.srv: Add linux-procfs.o dependencies.
16668
881127c9
YQ
166692011-08-14 Yao Qi <yao@codesourcery.com>
16670
16671 * target.h (struct target_ops): Fix indent.
16672 * win32-low.c (win32_target_ops): Fix comment.
16673
58dbd541
YQ
166742011-08-14 Andrew Jenner <andrew@codesourcery.com>
16675 Yao Qi <yao@codesourcery.com>
16676
16677 * Makefile.in (clean): Remove tic6x-*.c files.
16678 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16679 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16680 (tic6x-c64xp-linux.c): Likewise.
16681 * configure.srv: Add support for tic6x-*-uclinux.
16682 * linux-tic6x-low.c: New.
16683 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16684
78d85199
YQ
166852011-08-14 Andrew Stubbs <ams@codesourcery.com>
16686 Yao Qi <yao@codesourcery.com>
16687
16688 * target.h (struct target_ops): Add read_loadmap.
16689 * linux-low.c (struct target_loadseg): New type.
16690 (struct target_loadmap): New type.
16691 (linux_read_loadmap): New function.
16692 (linux_target_ops): Add linux_read_loadmap.
16693 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16694 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16695 to NULL.
78d85199 16696
a959a88d
EZ
166972011-08-05 Eli Zaretskii <eliz@gnu.org>
16698
16699 * win32-low.c: Include <stdint.h>.
16700
1ced966e
PA
167012011-07-22 Pedro Alves <pedro@codesourcery.com>
16702
16703 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16704 to the inferior here.
16705 (i386_remove_aligned_watchpoint): Ditto.
16706 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16707 fit part of the watchpoint in the debug registers.
16708 (i386_update_inferior_debug_regs): New.
16709 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16710 registers, and only update the inferior on success.
16711 (i386_low_remove_watchpoint): Ditto.
16712
d26e3629
KY
167132011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16714
16715 * linux-low.c (compare_ints, unique, list_threads, show_process,
16716 linux_core_of_thread): Delete.
16717 (linux_target_ops): Change linux_core_of_thread to
16718 linux_common_core_of_thread.
16719 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16720 * utils.c (malloc_failure): Change type of argument.
16721 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16722 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16723 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16724 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16725 (IPA_OBJS): Add common-utils-ipa.o.
16726 (ptid_h, linux_osdata_h): New macros.
16727 (server_h): Add common/common-utils.h, common/xml-utils.h,
16728 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16729 common/ptid.h.
16730 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16731 ptid.o, buffer.o): New rules.
16732 (linux-low.o): Add common/linux-osdata.h as a dependency.
16733 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16734 * configure.ac: Add AC_HEADER_DIRENT check.
16735 * config.in: Regenerate.
16736 * configure: Regenerate.
16737 * remote-utils.c (xml_escape_text): Delete.
16738 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16739 buffer_xml_printf): Move to common/buffer.c.
16740 * server.c (main): Remove call to initialize_inferiors.
16741 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16742 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16743 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16744 internal_error, gdb_assert, gdb_assert_fail): Delete.
16745 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16746 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16747 common/buffer.h.
16748 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16749 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16750 initialize_inferiors): Delete.
16751
2275a1a7
PA
167522011-07-20 Pedro Alves <pedro@codesourcery.com>
16753
16754 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16755 symbol error.
16756
0a5b1e09
PA
167572011-05-31 Pedro Alves <pedro@codesourcery.com>
16758
16759 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16760 assertion.
16761 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16762
6938fd34
YQ
167632011-05-26 Yao Qi <yao@codesourcery.com>
16764
16765 * Makefile.in (thread-db.o): Track dependence to
16766 common/gdb_thread_db.h.
16767 * thread-db.c: include gdb_thread_db.h from right place.
16768
b481f9e0
TT
167692011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16770
16771 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16772 __FILE__ and __LINE__ to internal_error.
16773
98a5dd13
DE
167742011-05-13 Doug Evans <dje@google.com>
16775
16776 * thread-db.c (try_thread_db_load_from_sdir): New function.
16777 (try_thread_db_load_from_dir): New function.
16778 (thread_db_load_search): Handle $sdir, ignore $pdir.
16779 Remove trying of system directories if search of
16780 libthread-db-search-path fails, that is now done via $sdir.
16781
d248b706
KY
167822011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16783
16784 * server.c (handle_query): Add EnableDisableTracepoints to the list
16785 of supported features.
43aaf8b6 16786 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16787 tracepoints.
43aaf8b6
PA
16788 (cmd_qtenable_disable): New.
16789 (cmd_qtstart): Install tracepoints even if disabled.
16790 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16791 receiving a QTEnable or QTDisable packet.
16792 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16793 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16794 tracepoints.
16795 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16796
84e578fb
DE
167972011-05-10 Doug Evans <dje@google.com>
16798
16799 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16800
71f55dd8
DE
168012011-05-04 Doug Evans <dje@google.com>
16802
16803 * linux-low.c (linux_join): Skip process lookup.
16804 * spu-low.c (spu_join): Ditto.
16805 * server.c (join_inferiors_callback): Delete.
16806 (process_serial_event): For 'D' packet (detach) call join_inferior
16807 directly.
16808
4d393d60
JM
168092011-05-04 Joseph Myers <joseph@codesourcery.com>
16810
16811 * README: Don't mention xscale*-*-linux*.
16812 * configure.srv (xscale*-*-linux*): Don't handle target.
16813
b00ad6ff
NF
168142011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16815
16816 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16817 casting pointers.
16818 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16819 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16820 (i386_emit_void_call_2): Likewise.
16821
af96c192
YQ
168222011-04-26 Yao Qi <yao@codesourcery.com>
16823
43aaf8b6
PA
16824 * linux-low.c: Move common macros to linux-ptrace.h.
16825 Include linux-ptrace.h.
af96c192
YQ
16826 * Makefile.in (linux_ptrace_h): New.
16827 (linux-low.o): Depends on linux-ptrace.h.
16828
03f2bd59
JK
168292011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16830
16831 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16832 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16833 (remote_prepare): New function with most of the TCP code from ...
16834 (remote_open): ... here. Detect PORT here unconditionally. Move also
16835 setting transport_is_reliable.
16836 * server.c (run_once): New variable.
16837 (gdbserver_usage): Document it.
16838 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16839 the first run if RUN_ONCE.
16840 * server.h (run_once, remote_prepare): New declarations.
16841
7a9dd1b2
TT
168422011-04-19 Tom Tromey <tromey@redhat.com>
16843
16844 * win32-low.c (handle_load_dll): Remove duplicate "the".
16845
81239425
PM
168462011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16847
16848 Remove support for old Cygwin 1.5 versions.
16849 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16850 function to avoid warning.
16851 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16852 warning.
16853
9e0627f1
PM
168542011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16855
16856 * gdbserver/server.h (Macro _): Define it if not available.
16857
588eebee
MS
168582011-03-14 Michael Snyder <msnyder@vmware.com>
16859
348af9f7 16860 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16861
43f70d4c
JB
168622011-03-10 Joel Brobecker <brobecker@adacore.com>
16863
16864 * Makefile.in (maintainer-clean realclean distclean): Remove
16865 "make ... subdir_do" command.
16866
348af9f7
MS
168672011-03-10 Michael Snyder <msnyder@vmware.com>
16868
16869 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16870
16871 * server.c (handle_v_run): Free alloced buffer on early return.
16872
e637a4f5
YQ
168732011-03-09 Yao Qi <yao@codesourcery.com>
16874
16875 Revert:
16876 2011-03-04 Yao Qi <yao@codesourcery.com>
16877
16878 * Makefile.in: Remove GNU make feature --directory.
16879
16880 2011-03-05 Yao Qi <yao@codesourcery.com>
16881
16882 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16883 (subdir_do): New make target. Copied from gdb/Makefile.
16884 (maintainer-clean, realclean, distclean, clean): Call corresponding
16885 make targets in common/Makefile.
16886
16887 2011-02-11 Yao Qi <yao@codesourcery.com>
16888
16889 * configure.ac: Call AC_PROG_RANLIB.
16890 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16891 * configure: Regenerate.
16892
e6edda56
JK
168932011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16894
16895 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16896
e5141119
JB
168972011-03-06 Yao Qi <yao@codesourcery.com>
16898
16899 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16900
64794aa4
JB
169012011-03-05 Yao Qi <yao@codesourcery.com>
16902
16903 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16904 (subdir_do): New make target. Copied from gdb/Makefile.
16905 (maintainer-clean, realclean, distclean, clean): Call corresponding
16906 make targets in common/Makefile.
16907
7a762829
YQ
169082011-03-04 Yao Qi <yao@codesourcery.com>
16909
16910 * Makefile.in: Remove GNU make feature --directory.
16911
348af9f7
MS
169122011-03-04 Michael Snyder <msnyder@vmware.com>
16913
16914 * server.c (queue_stop_reply): Call xmalloc not malloc.
16915
169162011-03-02 Michael Snyder <msnyder@vmware.com>
16917
16918 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16919
9f72fee2
MS
169202011-02-28 Michael Snyder <msnyder@vmware.com>
16921
588eebee
MS
16922 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16923 (cmd_qtframe): Ditto.
16924 (cmd_qtbuffer): Ditto.
16925 (cmd_bigqtbuffer): Ditto.
16926
9f72fee2
MS
16927 * utils.c (decimal2str): Initialize 'width' to nine, then
16928 don't mess with it.
16929
8040bd49
UW
169302011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16931
16932 * hostio.c (require_data): Free *data, not data.
16933
7e52cbd0
JK
169342011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16935
16936 * hostio.c (require_data): Use free, not xfree.
16937
9130f83e
MS
169382011-02-27 Michael Snyder <msnyder@vmware.com>
16939
4b812f4e
MS
16940 * server.c (handle_query): Discard unused value.
16941
9130f83e
MS
16942 * hostio.c (require_data): Free malloc memory before returning
16943 error.
16944
69d37113
MS
169452011-02-26 Michael Snyder <msnyder@vmware.com>
16946
16947 * linux-low.c (list_threads): Call closedir for dirent.
16948
35f5825a
MS
169492011-02-27 Michael Snyder <msnyder@vmware.com>
16950
2a589cef
MS
16951 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16952 a case statement falls through.
16953
0adea5f7
MS
16954 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16955
35f5825a
MS
16956 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16957 in comparison.
16958
238f1c74
MS
169592011-02-26 Michael Snyder <msnyder@vmware.com>
16960
16961 * utils.c (decimal2str): Eliminate dead code and dead param.
16962 (pulongest): Drop dead param from call to decimal2str.
16963 (plongest): Ditto.
16964
633ff500
JB
169652011-02-24 Joel Brobecker <brobecker@adacore.com>
16966
16967 Revert the following patch (not approved yet):
16968 2011-02-21 Hui Zhu <teawater@gmail.com>
16969 * tracepoint.c (tp_printf): New function.
16970 (eval_agent_expr): Handle gdb_agent_op_printf.
16971
f9c6ff72
HZ
169722011-02-21 Hui Zhu <teawater@gmail.com>
16973
16974 * tracepoint.c (tp_printf): New function.
16975 (eval_agent_expr): Handle gdb_agent_op_printf.
16976
94d5e490
TT
169772011-02-18 Tom Tromey <tromey@redhat.com>
16978
16979 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16980 (tracepoint.o): Likewise.
16981 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16982 (gdb_agent_op_names): Likewise.
16983
c7f96d2b
TT
169842011-02-18 Tom Tromey <tromey@redhat.com>
16985
16986 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16987 gdb_agent_op_rot>: New constants.
16988 (gdb_agent_op_names): Add pick and roll.
16989 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16990 cases.
16991
0feedb2c
JK
169922011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16993
16994 * aclocal.m4: Regenerated with aclocal-1.11.1.
16995
b3b9301e
PA
169962011-02-14 Pedro Alves <pedro@codesourcery.com>
16997
16998 * server.c (handle_qxfer_traceframe_info): New.
16999 (qxfer_packets): Register "traceframe-info".
17000 (handle_query): Report support for qXfer:traceframe-info:read+.
17001 * tracepoint.c (match_blocktype): New.
17002 (traceframe_find_block_type): Rename to ...
17003 (traceframe_walk_blocks): ... this. Add callback filter argument,
17004 and use it.
17005 (traceframe_find_block_type): New, reimplemented on top of
17006 traceframe_walk_blocks.
17007 (build_traceframe_info_xml): New.
17008 (traceframe_read_info): New.
17009 * server.h (traceframe_read_info): Declare.
17010
4f3e6fb7
YQ
170112011-02-11 Yao Qi <yao@codesourcery.com>
17012
17013 * configure.ac: Call AC_PROG_RANLIB.
17014 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17015 * configure: Regenerate.
17016
764880b7
PA
170172011-02-07 Pedro Alves <pedro@codesourcery.com>
17018
17019 * server.c (gdb_read_memory): Change return semantics to allow
17020 partial transfers.
17021 (handle_search_memory_1): Adjust.
17022 (process_serial_event) <'m' packet>: Handle partial transfers.
17023 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17024
1c79eb8a
PA
170252011-01-28 Pedro Alves <pedro@codesourcery.com>
17026
17027 * regcache.c (init_register_cache): Initialize
17028 regcache->register_status.
17029 (free_register_cache): Release regcache->register_status.
17030 (regcache_cpy): Copy register_status.
17031 (registers_to_string): Print 'x's for unavailable registers.
17032 (supply_register): Mark the register's status valid or
17033 unavailable, depending on whether a buffer was passed in or not.
17034 (supply_register_zeroed): New.
17035 (supply_regblock): Mark the registers' status valid or
17036 unavailable, depending on whether a buffer was passed in or not.
17037 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17038 (struct regcache): New `register_status' field.
17039 (supply_register_zeroed): Declare.
17040 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17041 supply_register_zeroed, rather than passing a NULL buffer to
17042 supply_register.
17043 * tracepoint.c (fetch_traceframe_registers): Update comment.
17044
85724a0e
PA
170452011-01-28 Pedro Alves <pedro@codesourcery.com>
17046
17047 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17048 buffer explicit.
17049
d08aafef
PA
170502011-01-25 Pedro Alves <pedro@codesourcery.com>
17051
17052 * server.h (decode_xfer_write): Change prototype.
17053 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17054 and don't extract the annex here.
17055 * server.c (decode_xfer_read): Remove `annex' parameter,
17056 and don't extract the annex here.
17057 (decode_xfer): New.
17058 (struct qxfer): New.
17059 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17060 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17061 (handle_qxfer_statictrace): New functions, abstracted out from
17062 handle_query, and made to use the struct qxfer interface.
17063 (handle_threads_qxfer_proper): Rename to ...
17064 (handle_qxfer_threads_proper): ... this.
17065 (handle_threads_qxfer): Rename to ...
17066 (handle_qxfer_threads): ... this. Adjust.
17067 (qxfer_packets): New array.
17068 (handle_qxfer): New function.
17069 (handle_query): Use handle_qxfer.
17070
493e2a69
MS
170712011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17072
17073 * gdbreplay.c: Shorten lines of >= 80 columns.
17074 * linux-low.c: Ditto.
17075 * linux-ppc-low.c: Ditto.
17076 * linux-s390-low.c: Ditto.
17077 * linux-sparc-low.c: Ditto.
17078 * linux-x86-low.c: Ditto.
17079 * linux-xtensa-low.c: Ditto.
17080 * mem-break.c: Ditto.
17081 * nto-low.c: Ditto.
17082 * regcache.h: Ditto.
17083 * remote-utils.c: Ditto.
17084 * server.c: Ditto.
17085 * server.h: Ditto.
17086 * thread-db.c: Ditto.
17087 * tracepoint.c: Ditto.
17088 * utils.c: Ditto.
17089 * win32-low.h: Ditto.
17090
44944448
JB
170912011-01-05 Joel Brobecker <brobecker@adacore.com>
17092
17093 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17094 update.
17095
71ce852c
JB
170962011-01-01 Joel Brobecker <brobecker@adacore.com>
17097
17098 * server.c (gdbserver_version): Update copyright year in version
17099 output.
17100 * gdbreplay.c (gdbreplay_version): Ditto.
17101
eb826dc6
MF
171022010-12-29 Jie Zhang <jie.zhang@analog.com>
17103
17104 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17105 * linux-bfin-low.c: New file.
17106 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17107 PT_DATA_ADDR for BFIN targets.
17108 * Makefile.in (SFILES): Add linux-bfin-low.c.
17109 (clean): Remove reg-bfin.c.
17110 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17111 * README: Mention supported Blackfin targets.
17112
39ab222a
MF
171132010-12-23 Mike Frysinger <vapier@gentoo.org>
17114
17115 * .gitignore: New file.
17116
a1f2ce7d
MF
171172010-11-16 Mike Frysinger <vapier@gentoo.org>
17118
17119 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17120
f474844c
JZ
171212010-10-22 Jie Zhang <jie@codesourcery.com>
17122
17123 * Makefile.in: Add FLAGS_TO_PASS variable.
17124 (install): Remove dependency of install-only and recursively
17125 invoke make for install-only.
17126
f1048712
DE
171272010-10-04 Doug Evans <dje@google.com>
17128
17129 * Makefile.in (uninstall): Use $(DESTDIR).
17130
b53a1623
PA
171312010-09-24 Pedro Alves <pedro@codesourcery.com>
17132
e6ee044d
PA
17133 PR gdb/11842
17134
b53a1623
PA
17135 * linux-x86-low.c (compat_siginfo_from_siginfo)
17136 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17137 si_code is < 0. Check for si_code == SI_TIMER before checking for
17138 si_code < 0.
17139
fa1bd1e4
JB
171402010-09-13 Joel Brobecker <brobecker@adacore.com>
17141
17142 * lynx-i386-low.c: New file.
17143 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17144
47fac8f8
JB
171452010-09-13 Joel Brobecker <brobecker@adacore.com>
17146
17147 * lynx-low.c (ptrace_request_to_str): Remove handling for
17148 request values that have been removed in LynxOS 5.x.
17149
1adfc54d
JB
171502010-09-13 Joel Brobecker <brobecker@adacore.com>
17151
17152 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17153 <ptrace.h>
17154
c2a66c29
NS
171552010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17156
17157 * configure.ac: Add --enable-inprocess-agent option.
17158 * configure: Rebuilt.
17159
32fcada3
YQ
171602010-09-06 Yao Qi <yao@codesourcery.com>
17161
17162 * linux-low.c (linux_kill): Remove unused variable.
17163 (linux_stabilize_threads): Likewise.
17164 * server.c (start_inferior): Likewise.
17165 (queue_stop_reply_callback): Likewise.
17166 * tracepoint.c (do_action_at_tracepoint): Likewise.
17167
0cccb683
YQ
171682010-09-06 Yao Qi <yao@codesourcery.com>
17169
17170 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17171 on return.
17172
423ec54c
JK
171732010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17174
17175 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17176
12ac6819
PA
171772010-09-06 Pedro Alves <pedro@codesourcery.com>
17178
17179 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17180 "$(IPA_DEPFILES)".
17181
8ed54b31
JB
171822010-09-01 Joel Brobecker <brobecker@adacore.com>
17183
17184 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17185 gdbserver/lynx-ppc-low.c: New files.
17186 * Makefile.in (lynx_low_h): New variable.
17187 (lynx-low.o, lynx-ppc-low.o): New rules.
17188 * configure.ac: On LynxOS, link with -lnetinet.
17189 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17190 * configure: regenerate.
17191
bb0116a4
JB
171922010-09-01 Joel Brobecker <brobecker@adacore.com>
17193
17194 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17195 * configure.ac: Add check for vasprintf and vsnprintf.
17196 * configure, config.in: Regenerate.
17197 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17198
a778ab81 171992010-09-01 Joel Brobecker <brobecker@adacore.com>
17200
17201 * gdbreplay.c: Move include of alloca.h up, next to include of
17202 malloc.h.
17203 * server.h: Add include of malloc.h.
17204 * mem-break.c: Remove include of malloc.h.
17205 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17206
8b034a19 172072010-09-01 Joel Brobecker <brobecker@adacore.com>
17208
17209 * Makefile.in (memmem.o): Build with -Wno-error.
17210
172112010-09-01 Joel Brobecker <brobecker@adacore.com>
17212
17213 * utils.c (xsnprintf): Make non-static.
17214 * server.h: Add xsnprintf declaration.
17215 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17216 replace calls to snprintf by calls to xsnprintf throughout.
17217
172182010-09-01 Joel Brobecker <brobecker@adacore.com>
17219
17220 * configure.ac: Add configure check for alloca.
17221 * configure, config.in: Regenerate.
17222 * server.h: Include alloca.h if it exists.
17223 * gdbreplay.c: Include alloca.h if it exists.
17224
1a981360
PA
172252010-08-28 Pedro Alves <pedro@codesourcery.com>
17226
17227 * linux-low.c (__SIGRTMIN): Define if not already defined.
17228 (linux_create_inferior): Check for __ANDROID__ rather than
17229 __SIGRTMIN.
17230 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17231 are already deferred.
17232 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17233 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17234 stopped and already has a pending signal to report.
17235 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17236 a pending signal to report or is moving out of a jump pad.
17237 (linux_init_signals): Check for __ANDROID__ rather than
17238 __SIGRTMIN.
17239
b4d51a55
PA
172402010-08-28 Pedro Alves <pedro@codesourcery.com>
17241
17242 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17243 debug_threads check. Avoid a linear search when not doing debug
17244 output.
17245
ec48365d
PA
172462010-08-27 Pedro Alves <pedro@codesourcery.com>
17247
17248 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17249 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17250 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17251 (process_event): Change local fd's type to gdb_fildes_t.
17252 (create_file_handler): Adjust prototype.
17253 (delete_file_handler): Adjust prototype.
17254 (handle_file_event): Adjust prototype. Use pfildes.
17255 (create_file_event): Adjsut prototype.
17256 * remote-utils.c (remote_desc, listen_desc): Change type to
17257 gdb_fildes_t.
17258 * server.h: New gdb_fildes_t typedef.
17259 [USE_WIN32API]: Include winsock2.h.
17260 (delete_file_handler, add_file_handler): Adjust prototypes.
17261 (pfildes): Declare.
17262 * utils.c (pfildes): New.
17263
854d88f0
PA
172642010-08-27 Pedro Alves <pedro@codesourcery.com>
17265
17266 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17267 * configure: Regenerate.
17268
0146f85b
PA
172692010-08-27 Pedro Alves <pedro@codesourcery.com>
17270
17271 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17272 (linux_done_accessing_memory): ... this.
17273 (linux_target_ops): Adjust.
17274 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17275 * nto-low.c (nto_target_ops): Adjust comment.
17276 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17277 * spu-low.c (spu_target_ops): Adjust comment.
17278 * target.h (target_ops): Rename unprepare_to_access_memory field
17279 to done_accessing_memory.
17280 (unprepare_to_access_memory): Rename to ...
17281 (done_accessing_memory): ... this.
17282
90d74c30
PA
172832010-08-26 Pedro Alves <pedro@codesourcery.com>
17284
17285 * linux-low.c (linux_prepare_to_access_memory): New.
17286 (linux_unprepare_to_access_memory): New.
17287 (linux_target_ops): Install them.
17288 * server.c (read_memory): Rename to ...
17289 (gdb_read_memory): ... this. Use
17290 prepare_to_access_memory/prepare_to_access_memory.
17291 (write_memory): Rename to ...
17292 (gdb_write_memory): ... this. Use
17293 prepare_to_access_memory/prepare_to_access_memory.
17294 (handle_search_memory_1): Adjust.
17295 (process_serial_event): Adjust.
17296 * target.h (struct target_ops): New fields
17297 prepare_to_access_memory and unprepare_to_access_memory.
17298 (prepare_to_access_memory, unprepare_to_access_memory): New.
17299 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17300 prepare_to_access_memory/prepare_to_access_memory.
17301 * nto-low.c (nto_target_ops): Adjust.
17302 * spu-low.c (spu_target_ops): Adjust.
17303 * win32-low.c (win32_target_ops): Adjust.
17304
fd467969
PA
173052010-08-26 Pedro Alves <pedro@codesourcery.com>
17306
17307 * Makefile.in (WARN_CFLAGS): Get it from configure.
17308 (WERROR_CFLAGS): New.
17309 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17310 * configure.ac: Introduce --enable-werror, which adds -Werror to
17311 the compiler command line. Enabled by default. Disable with
17312 --disable-werror. Add -Wdeclaration-after-statement
17313 Wpointer-arith and -Wformat-nonliteral to warning flags.
17314 * configure: Regenerate.
17315
331e2f5f
PA
173162010-08-26 Pedro Alves <pedro@codesourcery.com>
17317
17318 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17319
e581f2b4
PA
173202010-08-26 Pedro Alves <pedro@codesourcery.com>
17321
17322 * gdbreplay.c (remote_error): New.
17323 (gdbchar): New.
17324 (expect): Use gdbchar. Check for error reading from GDB.
17325 Clarify sync error output.
17326 (play): Check for errors writing to GDB.
17327 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17328 * remote-utils.c (getpkt): Check for errors writing to the remote
17329 descriptor.
17330
3c11dd79
PA
173312010-08-25 Pedro Alves <pedro@codesourcery.com>
17332
17333 * linux-low.c (linux_wait_1): Move non-debugging code out of
17334 `debug_threads' control.
17335
d20a8ad9
PA
173362010-08-25 Pedro Alves <pedro@codesourcery.com>
17337
17338 * linux-low.c (linux_wait_1): Don't set last_status here.
17339 * server.c (push_event, queue_stop_reply_callback): Assert we're
17340 not pushing a TARGET_WAITKIND_IGNORE event.
17341 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17342 (myresume, handle_target_event): Set the thread's last_resume_kind
17343 and last_status from the target returned status.
17344
964e4306
PA
173452010-08-25 Pedro Alves <pedro@codesourcery.com>
17346
17347 PR threads/10729
17348
17349 * linux-x86-low.c (update_debug_registers_callback): New.
17350 (i386_dr_low_set_addr): Use it.
17351 (i386_dr_low_get_addr): New.
17352 (i386_dr_low_set_control): Use update_debug_registers_callback.
17353 (i386_dr_low_get_control): New.
17354 (i386_dr_low_get_status): Adjust.
17355 * linux-low.c (linux_stop_lwp): New.
17356 * linux-low.h (linux_stop_lwp): Declare.
17357
17358 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17359 argument instead of a i386_debug_reg_state.
17360 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17361 a i386_debug_reg_state.
17362 (i386_insert_aligned_watchpoint): Adjust.
17363 (i386_remove_aligned_watchpoint): Adjust.
17364 (i386_low_stopped_data_address): Read the debug registers from the
17365 inferior instead of from the mirrors.
17366 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17367 (i386_dr_low_get_addr): Declare.
17368 (i386_dr_low_get_control): Declare.
17369 (i386_dr_low_get_status): Change prototype.
17370
17371 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17372 (i386_dr_low_get_addr): New.
17373 (i386_dr_low_get_control): New.
17374 (i386_dr_low_get_status): Adjust prototype. Return
17375 dr_status_mirror.
17376 (i386_initial_stuff): Clear dr_status_mirror and
17377 dr_control_mirror.
17378 (i386_get_thread_context): Adjust.
17379 (i386_set_thread_context): Adjust.
17380 (i386_thread_added): Adjust.
17381
5f21a75b
PA
173822010-08-24 Pedro Alves <pedro@codesourcery.com>
17383
17384 * linux-low.h (linux_thread_area): Delete declaration.
17385
3e4c1235
TS
173862010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17387
17388 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17389 after its termination.
17390
1971b033
PA
173912010-08-09 Pedro Alves <pedro@codesourcery.com>
17392
17393 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17394 (gdb_wants_all_stopped): Delete.
17395 (linux_wait_1): Don't call them.
17396 * server.c (handle_v_cont): Tag all threads as want-stopped.
17397 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17398 stopped as "client-wants-stopped".
17399
310444ac
PA
174002010-07-31 Pedro Alves <pedro@codesourcery.com>
17401
17402 * Makefile.in (signals_h): New.
17403 (server_h): Depend on it.
17404 (server.o): Don't depend on $(signals_def).
17405 (signals.o): Depend on $(signals_def).
17406
a19cae16
JK
174072010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17408
17409 * Makefile.in (signals_def): New.
17410 (server_h): Append include/gdb/signals.h and signals_def.
17411 (server.o): Append signals_def.
17412
30d50328
JK
174132010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17414
17415 * server.c (handle_target_event): Use target_signal_to_host for
17416 resume_info.sig initialization.
17417 * target.h (struct thread_resume) <sig>: New comment.
17418
5c3216e2
OS
174192010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17420
c6f46ca0
OS
17421 * server.c (handle_query): strcpy() the returned string from paddress()
17422 instead of sprintf().
5c3216e2
OS
17423 * utils.c (paddress): Return phex_nz().
17424
6bd31874
JB
174252010-07-07 Joel Brobecker <brobecker@adacore.com>
17426
17427 * server.c (handle_v_cont): Call mourn_inferior if process
17428 just exited.
17429 (myresume): Likewise.
17430
0fb4aa4b
PA
174312010-07-01 Pedro Alves <pedro@codesourcery.com>
17432
17433 Static tracepoints, and integration with UST.
17434
17435 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17436 * mem-break.c (uninsert_all_breakpoints)
17437 (reinsert_all_breakpoints): New.
17438 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17439 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17440 (gdb_agent_ust_loaded, helper_thread_id)
17441 (gdb_agent_helper_thread_id): New macros.
17442 (struct ipa_sym_addresses): Add addr_ust_loaded,
17443 addr_helper_thread_id, addr_cmd_buf.
17444 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17445 (in_process_agent_loaded_ust): New.
17446 (write_e_ust_not_loaded): New.
17447 (maybe_write_ipa_ust_not_loaded): New.
17448 (struct collect_static_trace_data_action): New.
17449 (enum tracepoint_type) <static_tracepoint>: New.
17450 (struct tracepoint) <handle>: Mention static tracepoints.
17451 (struct static_tracepoint_ctx): New.
17452 (CMD_BUF_SIZE): New.
17453 (add_tracepoint_action): Handle static tracepoint actions.
17454 (unprobe_marker_at): New.
17455 (clear_installed_tracepoints): Handle static tracepoints.
17456 (cmd_qtdp): Handle static tracepoints.
17457 (probe_marker_at): New.
17458 (cmd_qtstart): Handle static tracepoints.
17459 (response_tracepoint): Handle static tracepoints.
17460 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17461 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17462 (get_context_regcache): Handle static tracepoints.
17463 (do_action_at_tracepoint): Handle static tracepoint actions.
17464 (traceframe_find_block_type): Handle static trace data blocks.
17465 (traceframe_read_sdata): New.
17466 (download_tracepoints): Download static tracepoint actions.
17467 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17468 (GDB_PROBE_NAME): New.
17469 (ust_ops): New.
17470 (GET_UST_SYM): New.
17471 (USTF): New.
17472 (dlsym_ust): New.
17473 (ust_marker_to_static_tracepoint): New.
17474 (gdb_probe): New.
17475 (collect_ust_data_at_tracepoint): New.
17476 (gdb_ust_probe): New.
17477 (UNIX_PATH_MAX, SOCK_DIR): New.
17478 (gdb_ust_connect_sync_socket): New.
17479 (resume_thread, stop_thread): New.
17480 (run_inferior_command): New.
17481 (init_named_socket): New.
17482 (gdb_ust_socket_init): New.
17483 (cstr_to_hexstr): New.
17484 (next_st): New.
17485 (first_marker, next_marker): New.
17486 (response_ust_marker): New.
17487 (cmd_qtfstm, cmd_qtsstm): New.
17488 (unprobe_marker_at, probe_marker_at): New.
17489 (cmd_qtstmat, gdb_ust_thread): New.
17490 (gdb_ust_init): New.
17491 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17492 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17493 (ST_REGENTRY): New.
17494 (x86_64_st_collect_regmap): New.
17495 (X86_64_NUM_ST_COLLECT_GREGS): New.
17496 (AMD64_RIP_REGNUM): New.
17497 (supply_static_tracepoint_registers): New.
17498 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17499 (ST_REGENTRY): New.
17500 (i386_st_collect_regmap): New.
17501 (i386_NUM_ST_COLLECT_GREGS): New.
17502 (supply_static_tracepoint_registers): New.
17503 * server.c (handle_query): Handle qXfer:statictrace:read.
17504 <qSupported>: Report support for StaticTracepoints, and
17505 qXfer:statictrace:read features.
17506 * server.h (traceframe_read_sdata)
17507 (supply_static_tracepoint_registers): Declare.
17508 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17509 (unpack_varlen_hex): Include in IPA build.
17510 * Makefile.in (ustlibs, ustinc): New.
17511 (IPA_OBJS): Add remote-utils-ipa.o.
17512 ($(IPA_LIB)): Link -ldl and -lpthread.
17513 (UST_CFLAGS): New.
17514 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17515 * config.in, configure: Regenerate.
17516
9e4344e5
PA
175172010-06-20 Ian Lance Taylor <iant@google.com>
17518 Pedro Alves <pedro@codesourcery.com>
17519
17520 * linux-x86-low.c (always_true): Delete.
17521 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17522 trying to fool the compiler with always_true.
17523
c6beb2cb
PA
175242010-06-20 Pedro Alves <pedro@codesourcery.com>
17525
17526 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17527 conditions in gdbserver.
17528
d2ed6730
UW
175292010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17530
17531 * spu-low.c (spu_read_memory): Wrap around local store limit.
17532 (spu_write_memory): Likewise.
17533
4e29fb54
PA
175342010-06-15 Pedro Alves <pedro@codesourcery.com>
17535
17536 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17537 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17538 LONGEST uses.
17539 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17540 uses.
17541 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17542 uses with LONGEST uses.
17543
6a271cae
PA
175442010-06-14 Stan Shebs <stan@codesourcery.com>
17545 Pedro Alves <pedro@codesourcery.com>
17546
17547 Bytecode compiler.
17548
17549 * linux-x86-low.c: Include limits.h.
17550 (add_insns): New.
17551 (always_true): New.
17552 (EMIT_ASM): New.
17553 (EMIT_ASM32): New.
17554 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17555 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17556 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17557 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17558 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17559 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17560 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17561 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17562 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17563 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17564 (amd64_emit_void_call_2): New.
17565 (amd64_emit_ops): New.
17566 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17567 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17568 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17569 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17570 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17571 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17572 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17573 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17574 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17575 (i386_emit_stack_adjust, i386_emit_int_call_1)
17576 (i386_emit_void_call_2): New.
17577 (i386_emit_ops): New.
17578 (x86_emit_ops): New.
17579 (the_low_target): Install x86_emit_ops.
17580 * server.h (struct emit_ops): New.
17581 (get_raw_reg_func_addr): Declare.
17582 (current_insn_ptr, emit_error): Declare.
17583 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17584 (set_trace_state_variable_value): New defines.
17585 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17586 addr_get_trace_state_variable_value and
17587 addr_set_trace_state_variable_value.
17588 (symbol_list): New fields for get_raw_reg,
17589 get_trace_state_variable_value and set_trace_state_variable_value.
17590 (condfn): New typedef.
17591 (struct tracepoint): New field `compiled_cond'.
17592 (do_action_at_tracepoint): Clear compiled_cond.
17593 (get_trace_state_variable_value, set_trace_state_variable_value):
17594 Export in the IPA.
17595 (condition_true_at_tracepoint): If there's a compiled condition,
17596 run that.
17597 (current_insn_ptr, emit_error): New globals.
17598 (struct bytecode_address): New.
17599 (get_raw_reg_func_addr): New.
17600 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17601 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17602 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17603 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17604 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17605 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17606 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17607 (compile_tracepoint_condition, compile_bytecodes): New.
17608 * target.h (emit_ops): Forward declare.
17609 (struct target_ops): New field emit_ops.
17610 (target_emit_ops): New.
17611 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17612 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17613 * linux-low.c (linux_emit_ops): New.
17614 (linux_target_ops): Install it.
17615 * linux-low.h (struct linux_target_ops): New field emit_ops.
17616
92b72907
UW
176172010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17618
17619 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17620 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17621
fa593d66
PA
176222010-06-01 Pedro Alves <pedro@codesourcery.com>
17623 Stan Shebs <stan@codesourcery.com>
17624
17625 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17626 (all): Depend on $(extra_libraries).
17627 (install-only): Install the IPA.
17628 (IPA_OBJS, IPA_LIB): New.
17629 (clean): Remove the IPA lib.
17630 (IPAGENT_CFLAGS): New.
17631 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17632 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17633 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17634 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17635 * configure.ac: Check for atomic builtins support in the compiler.
17636 (IPA_DEPFILES, extra_libraries): Define.
17637 * configure.srv (ipa_obj): Add description.
17638 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17639 (i[34567]86-*-linux*): Set ipa_obj.
17640 (x86_64-*-linux*): Set ipa_obj.
17641 * linux-low.c (stabilizing_threads): New.
17642 (supports_fast_tracepoints): New.
17643 (linux_detach): Stabilize threads before detaching.
17644 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17645 the lwp is either not stabilizing, or is moving out of a jump pad.
17646 (linux_fast_tracepoint_collecting): New.
17647 (maybe_move_out_of_jump_pad): New.
17648 (enqueue_one_deferred_signal): New.
17649 (dequeue_one_deferred_signal): New.
17650 (linux_wait_for_event_1): If moving out of a jump pad, defer
17651 pending signals to later.
17652 (linux_stabilize_threads): New.
17653 (linux_wait_1): Check if threads need moving out of jump pads, and
17654 do it if so.
17655 (stuck_in_jump_pad_callback): New.
17656 (move_out_of_jump_pad_callback): New.
17657 (lwp_running): New.
17658 (linux_resume_one_lwp): Handle moving out of jump pads.
17659 (linux_set_resume_request): Dequeue deferred signals.
17660 (need_step_over_p): Also step over fast tracepoint jumps.
17661 (start_step_over): Also uninsert fast tracepoint jumps.
17662 (finish_step_over): Also reinsert fast tracepoint jumps.
17663 (linux_install_fast_tracepoint_jump): New.
17664 (linux_target_ops): Install linux_stabilize_threads and
17665 linux_install_fast_tracepoint_jump_pad.
17666 * linux-low.h (linux_target_ops) <get_thread_area,
17667 install_fast_tracepoint_jump_pad>: New fields.
17668 (struct lwp_info) <collecting_fast_tracepoint,
17669 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17670 (linux_get_thread_area): Declare.
17671 * linux-x86-low.c (jump_insn): New.
17672 (x86_get_thread_area): New.
17673 (append_insns): New.
17674 (push_opcode): New.
17675 (amd64_install_fast_tracepoint_jump_pad): New.
17676 (i386_install_fast_tracepoint_jump_pad): New.
17677 (x86_install_fast_tracepoint_jump_pad): New.
17678 (the_low_target): Install x86_get_thread_area and
17679 x86_install_fast_tracepoint_jump_pad.
17680 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17681 (struct fast_tracepoint_jump): New.
17682 (fast_tracepoint_jump_insn): New.
17683 (fast_tracepoint_jump_shadow): New.
17684 (find_fast_tracepoint_jump_at): New.
17685 (fast_tracepoint_jump_here): New.
17686 (delete_fast_tracepoint_jump): New.
17687 (set_fast_tracepoint_jump): New.
17688 (uninsert_fast_tracepoint_jumps_at): New.
17689 (reinsert_fast_tracepoint_jumps_at): New.
17690 (set_breakpoint_at): Use write_inferior_memory.
17691 (uninsert_raw_breakpoint): Use write_inferior_memory.
17692 (check_mem_read): Mask out fast tracepoint jumps.
17693 (check_mem_write): Mask out fast tracepoint jumps.
17694 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17695 (set_fast_tracepoint_jump): Declare.
17696 (delete_fast_tracepoint_jump)
17697 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17698 (reinsert_fast_tracepoint_jumps_at): Declare.
17699 * regcache.c: Don't compile many functions when building the
17700 in-process agent library.
17701 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17702 the register buffer in the heap.
17703 (free_register_cache): If the register buffer isn't owned by the
17704 regcache, don't free it.
17705 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17706 pre-existing register caches.
17707 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17708 type.
17709 (convert_ascii_to_int): : Constify `from' parameter type.
17710 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17711 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17712 the needed buffer in-place.
17713 (relocate_instruction): New.
17714 * server.c (handle_query) <qSymbols>: If the target supports
17715 tracepoints, give it a chance of looking up symbols. Report
17716 support for fast tracepoints.
17717 (handle_status): Stabilize threads.
17718 (process_serial_event): Adjust.
17719 * server.h (struct fast_tracepoint_jump): Forward declare.
17720 (struct process_info) <fast_tracepoint_jumps>: New field.
17721 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17722 (decode_X_packet, decode_M_packet): Adjust.
17723 (relocate_instruction): Declare.
17724 (in_process_agent_loaded): Declare.
17725 (tracepoint_look_up_symbols): Declare.
17726 (struct fast_tpoint_collect_status): Declare.
17727 (fast_tracepoint_collecting): Declare.
17728 (force_unlock_trace_buffer): Declare.
17729 (handle_tracepoint_bkpts): Declare.
17730 (initialize_low_tracepoint)
17731 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17732 * target.h (struct target_ops) <stabilize_threads,
17733 install_fast_tracepoint_jump_pad>: New fields.
17734 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17735 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17736 [HAVE_STDINT_H]: Include stdint.h.
17737 (trace_debug_1): Rename to ...
17738 (trace_vdebug): ... this.
17739 (trace_debug): Rename to ...
17740 (trace_debug_1): ... this. Add `level' parameter.
17741 (trace_debug): New.
17742 (ATTR_USED, ATTR_NOINLINE): New.
17743 (IP_AGENT_EXPORT): New.
17744 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17745 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17746 (about_to_request_buffer_space, trace_buffer_is_full)
17747 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17748 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17749 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17750 (traceframe_write_count, traceframes_created)
17751 (trace_state_variables)
17752 New renaming defines.
17753 (struct ipa_sym_addresses): New.
17754 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17755 (symbol_list): New.
17756 (ipa_sym_addrs): New.
17757 (all_tracepoint_symbols_looked_up): New.
17758 (in_process_agent_loaded): New.
17759 (write_e_ipa_not_loaded): New.
17760 (maybe_write_ipa_not_loaded): New.
17761 (tracepoint_look_up_symbols): New.
17762 (debug_threads) [IN_PROCESS_AGENT]: New.
17763 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17764 (UNKNOWN_SIDE_EFFECTS): New.
17765 (stop_tracing): New.
17766 (flush_trace_buffer): New.
17767 (stop_tracing_bkpt): New.
17768 (flush_trace_buffer_bkpt): New.
17769 (read_inferior_integer): New.
17770 (read_inferior_uinteger): New.
17771 (read_inferior_data_pointer): New.
17772 (write_inferior_data_pointer): New.
17773 (write_inferior_integer): New.
17774 (write_inferior_uinteger): New.
17775 (struct collect_static_trace_data_action): Delete.
17776 (enum tracepoint_type): New.
17777 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17778 <actions_str, step_actions, step_actions_str>: Only include in
17779 GDBserver.
fa593d66
PA
17780 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17781 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17782 (tracepoints): Use IP_AGENT_EXPORT.
17783 (last_tracepoint): Don't include in the IPA.
17784 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17785 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17786 (alloced_trace_state_variables): New.
17787 (trace_state_variables): Use IP_AGENT_EXPORT.
17788 (traceframe_t): Delete unused variable.
17789 (circular_trace_buffer): Don't include in the IPA.
17790 (trace_buffer_start): Delete.
17791 (struct trace_buffer_control): New.
17792 (trace_buffer_free): Delete.
17793 (struct ipa_trace_buffer_control): New.
17794 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17795 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17796 New.
17797 (trace_buffer_ctrl): New.
17798 (TRACE_BUFFER_CTRL_CURR): New.
17799 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17800 Reimplement as macros.
17801 (trace_buffer_wrap): Delete.
17802 (traceframe_write_count, traceframe_read_count)
17803 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17804 (struct tracepoint_hit_ctx) <type>: New field.
17805 (struct fast_tracepoint_ctx): New.
17806 (memory_barrier): New.
17807 (cmpxchg): New.
17808 (record_tracepoint_error): Update atomically in the IPA.
17809 (clear_inferior_trace_buffer): New.
17810 (about_to_request_buffer_space): New.
17811 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17812 updating the same buffer.
17813 (add_tracepoint): Default the tracepoint's type to trap
17814 tracepoint, and orig_size to -1.
17815 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17816 internal variables.
17817 (create_trace_state_variable): New parameter `gdb'. Handle it.
17818 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17819 (cmd_qtdp): Handle fast tracepoints.
17820 (cmd_qtdv): Adjust.
17821 (max_jump_pad_size): New.
17822 (gdb_jump_pad_head): New.
17823 (get_jump_space_head): New.
17824 (claim_jump_space): New.
17825 (sort_tracepoints): New.
17826 (MAX_JUMP_SIZE): New.
17827 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17828 IPA.
17829 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17830 support. Upload fast traceframes, and delete internal IPA
17831 breakpoints.
17832 (stop_tracing_handler): New.
17833 (flush_trace_buffer_handler): New.
17834 (cmd_qtstop): Upload fast tracepoints.
17835 (response_tracepoint): Handle fast tracepoints.
17836 (tracepoint_finished_step): Upload fast traceframes. Set the
17837 tracepoint hit context's tracepoint type.
17838 (handle_tracepoint_bkpts): New.
17839 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17840 type. Add comment about fast tracepoints.
17841 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17842 non-existing action_str field.
17843 (get_context_regcache): Handle fast tracepoints.
17844 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17845 to the regcache.
17846 (fast_tracepoint_from_jump_pad_address): New.
17847 (fast_tracepoint_from_ipa_tpoint_address): New.
17848 (collecting_t): New.
17849 (force_unlock_trace_buffer): New.
17850 (fast_tracepoint_collecting): New.
17851 (collecting): New.
17852 (gdb_collect): New.
17853 (write_inferior_data_ptr): New.
17854 (target_tp_heap): New.
17855 (target_malloc): New.
17856 (download_agent_expr): New.
17857 (UALIGN): New.
17858 (download_tracepoints): New.
17859 (download_trace_state_variables): New.
17860 (upload_fast_traceframes): New.
17861 (IPA_FIRST_TRACEFRAME): New.
17862 (IPA_NEXT_TRACEFRAME_1): New.
17863 (IPA_NEXT_TRACEFRAME): New.
17864 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17865 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17866 (gdb_jump_pad_buffer_end): New.
17867 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17868 (initialize_tracepoint): Adjust.
17869 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17870 buffer. Initialize the low module.
17871 * utils.c (PREFIX, TOOLNAME): New.
17872 (malloc_failure): Use PREFIX.
17873 (error): In the IPA, an error causes an exit.
17874 (fatal, warning): Use PREFIX.
17875 (internal_error): Use TOOLNAME.
17876 (NUMCELLS): Increase to 10.
17877 * configure, config.in: Regenerate.
17878
d149dd1d
PA
178792010-06-01 Pedro Alves <pedro@codesourcery.com>
17880
17881 * server.c (handle_query) <qSupported>: Do two passes over the
17882 qSupported string to avoid nesting strtok.
17883
f6528abd
JK
178842010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17885
17886 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17887 (CDEPS): New.
17888 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17889 -Wl,--dynamic-list.
17890 * configure: Regenerate.
17891 * proc-service.list: New.
17892
ca2a87a0
JK
178932010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17894
17895 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17896 New comment.
17897
363a6e9f
OS
178982010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17899
17900 * gdbreplay.c (remote_open): Check error return from socket() call by
17901 its equality to -1 not by it being negative.
17902 * remote-utils.c (remote_open): Likewise.
17903
d23b6cb1
PA
179042010-05-23 Pedro Alves <pedro@codesourcery.com>
17905
17906 * config.h: Regenerate.
17907
28d3cf85
MK
179082010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17909
17910 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17911 doesn't provide PTRACE_GET_THREAD_AREA.
17912
fea36a59
MK
179132010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17914
17915 * linux-m68k-low.c: Include <asm/ptrace.h>
17916 (ps_get_thread_area): Implement.
17917
24b066ba
DE
179182010-05-03 Doug Evans <dje@google.com>
17919
17920 * event-loop.c (struct callback_event): New struct.
17921 (callback_list): New global.
17922 (append_callback_event, delete_callback_event): New functions.
17923 (process_callback): New function.
17924 (start_event_loop): Call it.
17925 * remote-utils.c (NOT_SCHEDULED): Define.
17926 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17927 moved out of readchar.
17928 (readchar): Rewrite. Call reschedule before returning.
17929 (reset_readchar): New function.
17930 (remote_close): Call it.
17931 (process_remaining, reschedule): New functions.
17932 * server.h (callback_handler_func): New typedef.
17933 (append_callback_event, delete_callback_event): Declare.
17934
9836d6ea
PA
179352010-05-03 Pedro Alves <pedro@codesourcery.com>
17936
17937 * proc-service.c (ps_pglobal_lookup): Use
17938 thread_db_look_up_one_symbol.
17939 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17940 parameter. Use it instead of all_symbols_looked_up.
17941 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17942 field.
17943 (all_symbols_looked_up): Don't declare.
17944 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17945 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17946 field.
17947 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17948 Set all_symbols_looked_up here.
17949 (thread_db_look_up_one_symbol): New.
17950 (thread_db_get_tls_address): Adjust.
17951 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17952 thread_db object on the heap, and tentatively set it in the
17953 process structure.
17954 (thread_db_init): Don't set all_symbols_looked_up here.
17955 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17956
7984d532
PA
179572010-05-03 Pedro Alves <pedro@codesourcery.com>
17958
17959 * linux-low.c (linux_kill, linux_detach): Adjust.
17960 (status_pending_p_callback): Remove redundant statement. Check
17961 for !TARGET_WAITIKIND_IGNORE, instead of
17962 TARGET_WAITKIND_STOPPED.
17963 (handle_tracepoints): Make sure LWP is locked. Adjust.
17964 (linux_wait_for_event_1): Adjust.
17965 (linux_cancel_breakpoints): New.
17966 (unsuspend_one_lwp): New.
17967 (unsuspend_all_lwps): New.
17968 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17969 (send_sigstop_callback): Change return type to int, add new
17970 `except' parameter and handle it.
17971 (suspend_and_send_sigstop_callback): New.
17972 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17973 pass them down. If SUSPEND, also increment the lwp's suspend
17974 count.
17975 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17976 (need_step_over_p): Don't consider suspended LWPs.
17977 (start_step_over): Adjust.
17978 (proceed_one_lwp): Change return type to int, add new `except'
17979 parameter and handle it.
17980 (unsuspend_and_proceed_one_lwp): New.
17981 (proceed_all_lwps): Use find_inferior instead of
17982 for_each_inferior.
17983 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17984 also decrement the suspend count of LWPs. Pass `except' down,
17985 instead of hacking its suspend count.
17986 (linux_pause_all): Add `freeze' parameter. Adjust.
17987 (linux_unpause_all): New.
17988 (linux_target_ops): Install linux_unpause_all.
17989 * server.c (handle_status): Adjust.
17990 * target.h (struct target_ops): New fields `unpause_all' and
17991 `cancel_breakpoints'. Add new parameter to `pause_all'.
17992 (pause_all): Add new `freeze' parameter.
17993 (unpause_all): New.
17994 (cancel_breakpoints): New.
17995 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17996 cancel breakpoints.
17997 (cmd_qtstart): Pause threads.
17998 (stop_tracing): Pause threads, and cancel breakpoints.
17999 * win32-low.c (win32_target_ops): Adjust.
18000
e471f25b
PA
180012010-05-03 Pedro Alves <pedro@codesourcery.com>
18002
18003 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18004 the inferior right away from here...
18005 (linux_wait_1): ... to here, and adjust to check the thread's
18006 last_resume_kind instead of the lwp's step or stop_expected flags.
18007
1915ef4f
PA
180082010-05-02 Pedro Alves <pedro@codesourcery.com>
18009
18010 * README: Use consistent `GDB' and `GDBserver' spellings.
18011
f9e39928
PA
180122010-05-02 Pedro Alves <pedro@codesourcery.com>
18013
18014 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18015 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18016 (linux_detach_one_lwp): Assume the lwp is stopped.
18017 (any_thread_of): Delete.
18018 (linux_detach): Stop all lwps here. Don't blindly delete all
18019 breakpoints.
18020 (delete_lwp_callback): New.
18021 (linux_mourn): Delete all lwps of the process that is gone.
18022 (linux_wait_1): Don't delete the last lwp of the process here.
18023 * mem-break.h (mark_breakpoints_out): Declare.
18024 * mem-break.c (mark_breakpoints_out): New.
18025 (free_all_breakpoints): Use it.
18026 * server.c (handle_target_event): If the process is gone, mark
18027 breakpoints out.
18028 * thread-db.c (struct thread_db) <create_bp>: New field.
18029 (thread_db_enable_reporting): Fix prototype. Store a thread event
18030 breakpoint reference in the thread_db struct.
18031 (thread_db_load_search): Clear the thread_db object.
18032 (try_thread_db_load_1): Ditto.
18033 (switch_to_process): New.
18034 (disable_thread_event_reporting): Use it.
18035 (remove_thread_event_breakpoints): New.
18036 (thread_db_detach, thread_db_mourn): Use it.
18037
1e7fc18c
PA
180382010-05-01 Pedro Alves <pedro@codesourcery.com>
18039
18040 * linux-low.c (linux_enable_event_reporting): New.
18041 (linux_wait_for_event_1, handle_extended_wait): Use it.
18042
02fc4de7
PA
180432010-04-30 Pedro Alves <pedro@codesourcery.com>
18044
18045 * linux-low.c (linux_kill_one_lwp, linux_kill)
18046 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18047 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18048 SIGSTOP even if the LWP is stopped.
18049 (send_sigstop_callback): New.
18050 (stop_all_lwps): Use send_sigstop_callback instead.
18051 (linux_resume_one_thread): Adjust.
18052 (proceed_one_lwp): Still proceed an LWP that the client has
18053 requested to stop, if we haven't reported it as stopped yet. Make
18054 sure that LWPs the client want stopped, have a pending SIGSTOP.
18055
bc3b5632
DE
180562010-04-26 Doug Evans <dje@google.com>
18057
ae1ada35
DE
18058 * server.c (handle_general_set): Make static.
18059
bc3b5632
DE
18060 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18061 Print received char after testing for error/eof instead of before.
18062 (input_interrupt): Tweak comment.
18063
65730243
DE
180642010-04-23 Doug Evans <dje@google.com>
18065
18066 * server.c (start_inferior): Print inferior argv if --debug.
18067
a8ae7dc0
AR
180682010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18069
18070 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18071 * nto-x86-low.c: Include server.h
18072
1c07cc19
PM
180732010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18074
18075 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18076 be consistent with other sources of this directory.
18077 (init_registers_amd64): Correct name of source file of this function
18078 in the comment.
18079
e0a61e09
PM
180802010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18081
18082 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18083 64-bit executables.
18084
54709339
PM
180852010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18086
18087 * win32-i386-low.c: Add 64-bit support.
18088 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18089 (init_registers_amd64): Declare.
18090 (mappings): Add 64-bit version of array.
18091 (init_windows_x86): New function.
18092 (the_low_target): Change init_arch field to init_windows_x86.
18093
e8f0053d
PM
180942010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18095
18096 * win32-low.c: Adapt to support also 64-bit architecture.
18097 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18098 (get_image_name): Use SIZE_T type for local variable `done'.
18099 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18100 (toolhelp_get_dll_name): Idem.
18101 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18102 Use uintptr_t typecast to avoid warning.
18103 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18104 (handle_exception): Use phex_nz to avoid warning.
18105 (win32_wait): Remove unused local variable `process'.
18106
c481e77e
PM
181072010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18108
18109 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18110 `amd64-avx.o'.
18111
12ea4b69
PM
181122010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18113
18114 * configure.ac: Use `ws2_32' library for srv_mingw.
18115 * configure: Regenerate.
18116 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18117 * remote-utils.c: Likewise.
18118
f6d1620c
L
181192010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18120
18121 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18122 if __x86_64__ is defined.
18123
8e642873
PM
181242010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18125
18126 * configure: Regenerate.
18127
711e434b
PM
181282010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18129
18130 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18131 * target.h (target_ops): New get_tib_address field.
18132 * win32-low.h (win32_thread_info): Add thread_local_base field.
18133 * win32-low.c (child_add_thread): Add tlb argument.
18134 Set thread_local_base field to TLB.
18135 (get_child_debug_event): Adapt to child_add_thread change.
18136 (win32_get_tib_address): New function.
18137 (win32_target_ops): Set get_tib_address field to
18138 win32_get_tib_address.
18139 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18140
505106cd
PA
181412010-04-12 Pedro Alves <pedro@codesourcery.com>
18142
505106cd
PA
18143 * linux-low.c (linux_mourn): Also remove the process.
18144 * server.c (handle_target_event): Don't remove the process here.
18145 * nto-low.c (nto_mourn): New.
18146 (nto_target_ops): Install it.
18147 * spu-low.c (spu_mourn): New.
18148 (spu_target_ops): Install it.
18149 * win32-low.c (win32_mourn): New.
18150 (win32_target_ops): Install it.
18151
e8470a06
PA
181522010-04-12 Pedro Alves <pedro@codesourcery.com>
18153
18154 * server.h (buffer_xml_printf): Remove redundant `;'.
18155
45ba0d02
PA
181562010-04-12 Pedro Alves <pedro@codesourcery.com>
18157
18158 * regcache.c (set_register_cache): Invalidate regcaches before
18159 changing the register cache layout.
18160 (regcache_invalidate_one): Allow a NULL regcache.
18161 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18162 regcaches before changing the register cache layout or the target
18163 regsets.
18164
59e04013
L
181652010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18166
18167 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18168 variable warning on Linux/x86-64.
18169
8336d594
PA
181702010-04-11 Pedro Alves <pedro@codesourcery.com>
18171
18172 GDBserver disconnected tracing support.
18173
18174 * linux-low.c (linux_remove_process): Delete.
18175 (add_lwp): Don't set last_resume_kind here.
18176 (linux_kill): Use `mourn'.
18177 (linux_detach): Use `thread_db_detach', and `mourn'.
18178 (linux_mourn): New.
18179 (linux_attach_lwp_1): Adjust comment.
18180 (linux_attach): last_resume_kind moved the thread_info; adjust.
18181 (status_pending_p_callback): Adjust.
18182 (linux_wait_for_event_1): Adjust.
18183 (count_events_callback, select_singlestep_lwp_callback)
18184 (select_event_lwp_callback, cancel_breakpoints_callback)
18185 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18186 (proceed_one_lwp): Adjust.
18187 (linux_async): Add debug output.
18188 (linux_thread_stopped): New.
18189 (linux_pause_all): New.
18190 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18191 linux_pause_all.
18192 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18193 (thread_db_free): Delete declaration.
18194 (thread_db_detach, thread_db_mourn): Declare.
18195 * thread-db.c (thread_db_init): Use thread_db_mourn.
18196 (thread_db_free): Delete, split in two.
18197 (disable_thread_event_reporting): New.
18198 (thread_db_detach): New.
18199 (thread_db_mourn): New.
18200
18201 * server.h (struct thread_info) <last_resume_kind>: New field.
18202 <attached>: Add comment.
18203 <gdb_detached>: New field.
18204 (handler_func): Change return type to int.
18205 (handle_serial_event, handle_target_event): Ditto.
18206 (gdb_connected): Declare.
18207 (tracing): Delete.
18208 (disconnected_tracing): Declare.
18209 (stop_tracing): Declare.
18210
18211 * server.c (handle_query) <qSupported>: Report support for
18212 disconnected tracing.
18213 (queue_stop_reply_callback): Account for running threads.
18214 (gdb_wants_thread_stopped): New.
18215 (gdb_wants_all_threads_stopped): New.
18216 (gdb_reattached_process): New.
18217 (handle_status): Clear the `gdb_detached' flag of all processes.
18218 In all-stop, stop all threads.
18219 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18220 (process_serial_event): If the remote connection breaks, or if an
18221 exit was forced with "monitor exit", force an event loop exit.
18222 Handle disconnected tracing on detach.
18223 (handle_serial_event): Adjust.
18224 (handle_target_event): If GDB isn't connected, forward events back
18225 to the inferior, unless the last process exited, in which case,
18226 exit gdbserver. Adjust interface.
18227
18228 * remote-utils.c (remote_open): Don't block in accept. Instead
18229 register an event loop source on the listen socket file
18230 descriptor. Refactor bits into ...
18231 (listen_desc): ... this new global.
18232 (gdb_connected): ... this new function.
18233 (enable_async_notification): ... this new function.
18234 (handle_accept_event): ... this new function.
18235 (remote_close): Clear remote_desc.
18236
18237 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18238
18239 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18240 New fields.
18241 (mourn_inferior): Define.
18242 (target_process_qsupported): Avoid the dangling else problem.
18243 (thread_stopped): Define.
18244 (pause_all): Define.
18245 (target_waitstatus_to_string): Declare.
18246 * target.c (target_waitstatus_to_string): New.
18247
18248 * tracepoint.c (tracing): Make extern.
18249 (disconnected_tracing): New.
18250 (stop_tracing): Make extern. Handle tracing stops due to GDB
18251 disconnecting.
18252 (cmd_qtdisconnected): New.
18253 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18254 (handle_tracepoint_general_set): Handle QTDisconnected.
18255
18256 * event-loop.c (event_handler_func): Change return type to int.
18257 (process_event): Bail out if the event handler wants the event
18258 loop to stop.
18259 (handle_file_event): Ditto.
18260 (start_event_loop): Bail out if the event handler wants the event
18261 loop to stop.
18262
18263 * nto-low.c (nto_target_ops): Adjust.
18264 * spu-low.c (spu_wait): Don't remove the process here.
18265 (spu_target_ops): Adjust.
18266 * win32-low.c (win32_wait): Don't remove the process here.
18267 (win32_target_ops): Adjust.
18268
5d267c4c
PA
182692010-04-11 Pedro Alves <pedro@codesourcery.com>
18270
18271 * regcache.c (realloc_register_cache): Invalidate inferior's
18272 regcache before recreating it.
18273
623ccd72
PA
182742010-04-09 Pedro Alves <pedro@codesourcery.com>
18275
18276 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18277
219f2f23
PA
182782010-04-09 Stan Shebs <stan@codesourcery.com>
18279 Pedro Alves <pedro@codesourcery.com>
18280
18281 * server.h (LONGEST): New.
18282 (struct thread_info) <while_stepping>: New field.
18283 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18284 Declare.
18285 (initialize_tracepoint, handle_tracepoint_general_set)
18286 (handle_tracepoint_query, tracepoint_finished_step)
18287 (tracepoint_was_hit, release_while_stepping_state_list):
18288 (current_traceframe): Declare.
18289 * server.c (handle_general_set): Handle tracepoint packets.
18290 (read_memory): New.
18291 (write_memory): New.
18292 (handle_search_memory_1): Use read_memory.
18293 (handle_query): Report support for conditional tracepoints, trace
18294 state variables, and tracepoint sources. Handle tracepoint
18295 queries.
18296 (main): Initialize the tracepoints module.
18297 (process_serial_event): Handle traceframe reads/writes.
18298
18299 * linux-low.c (handle_tracepoints): New.
18300 (linux_wait_1): Call it.
18301 (linux_resume_one_lwp): Handle while-stepping.
18302 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18303 (linux_target_ops): Install them.
18304 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18305 New field.
18306 * linux-x86-low.c (x86_supports_tracepoints): New.
18307 (the_low_target). Install it.
18308
18309 * mem-break.h (delete_breakpoint): Declare.
18310 * mem-break.c (delete_breakpoint): Make external.
18311
18312 * target.h (struct target_ops): Add `supports_tracepoints',
18313 `read_pc', and `write_pc' fields.
18314 (target_supports_tracepoints): Define.
18315 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18316 (phex_nz): New.
18317
18318 * regcache.h (struct regcache) <registers_owned>: New field.
18319 (init_register_cache, regcache_cpy): Declare.
18320 (regcache_read_pc, regcache_write_pc): Declare.
18321 (register_cache_size): Declare.
18322 (supply_regblock): Declare.
18323 * regcache.c (init_register_cache): New.
18324 (new_register_cache): Use it.
18325 (regcache_cpy): New.
18326 (register_cache_size): New.
18327 (supply_regblock): New.
18328 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18329
219f2f23
PA
18330 * tracepoint.c: New.
18331
18332 * Makefile.in (OBS): Add tracepoint.o.
18333 (tracepoint.o): New rule.
18334
3a13a53b
L
183352010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18336
18337 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18338 (i386-mmx.o): New.
18339 (i386-mmx.c): Likewise.
18340 (i386-mmx-linux.o): Likewise.
18341 (i386-mmx-linux.c): Likewise.
18342
18343 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18344 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18345 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18346 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18347
18348 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18349 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18350 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18351
1570b33e
L
183522010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18353
18354 * Makefile.in (clean): Updated.
18355 (i386-avx.o): New.
18356 (i386-avx.c): Likewise.
18357 (i386-avx-linux.o): Likewise.
18358 (i386-avx-linux.c): Likewise.
18359 (amd64-avx.o): Likewise.
18360 (amd64-avx.c): Likewise.
18361 (amd64-avx-linux.o): Likewise.
18362 (amd64-avx-linux.c): Likewise.
18363
18364 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18365 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18366 (srv_amd64_regobj): Add amd64-avx.o.
18367 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18368 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18369 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18370 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18371 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18372 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18373 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18374
18375 * i387-fp.c: Include "i386-xstate.h".
18376 (i387_xsave): New.
18377 (i387_cache_to_xsave): Likewise.
18378 (i387_xsave_to_cache): Likewise.
18379 (x86_xcr0): Likewise.
18380
18381 * i387-fp.h (i387_cache_to_xsave): Likewise.
18382 (i387_xsave_to_cache): Likewise.
18383 (x86_xcr0): Likewise.
18384
18385 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18386 * linux-crisv32-low.c (target_regsets): Likewise.
18387 * linux-m68k-low.c (target_regsets): Likewise.
18388 * linux-mips-low.c (target_regsets): Likewise.
18389 * linux-ppc-low.c (target_regsets): Likewise.
18390 * linux-s390-low.c (target_regsets): Likewise.
18391 * linux-sh-low.c (target_regsets): Likewise.
18392 * linux-sparc-low.c (target_regsets): Likewise.
18393 * linux-xtensa-low.c (target_regsets): Likewise.
18394
18395 * linux-low.c: Include <sys/uio.h>.
18396 (regsets_fetch_inferior_registers): Support nt_type.
18397 (regsets_store_inferior_registers): Likewise.
18398 (linux_process_qsupported): New.
18399 (linux_target_ops): Add linux_process_qsupported.
18400
18401 * linux-low.h (regset_info): Add nt_type.
18402 (linux_target_ops): Add process_qsupported.
18403
18404 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18405 and <sys/uio.h>.
18406 (init_registers_i386_avx_linux): New.
18407 (init_registers_amd64_avx_linux): Likewise.
18408 (xmltarget_i386_linux_no_xml): Likewise.
18409 (xmltarget_amd64_linux_no_xml): Likewise.
18410 (PTRACE_GETREGSET): Likewise.
18411 (PTRACE_SETREGSET): Likewise.
18412 (x86_fill_xstateregset): Likewise.
18413 (x86_store_xstateregset): Likewise.
18414 (use_xml): Likewise.
18415 (x86_linux_update_xmltarget): Likewise.
18416 (x86_linux_process_qsupported): Likewise.
18417 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18418 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18419 init_registers_i386_linux here. Call
18420 x86_linux_update_xmltarget.
18421 (the_low_target): Add x86_linux_process_qsupported.
18422
18423 * server.c (handle_query): Call target_process_qsupported.
18424
18425 * target.h (target_ops): Add process_qsupported.
18426 (target_process_qsupported): New.
18427
fc7238bb
PA
184282010-04-03 Pedro Alves <pedro@codesourcery.com>
18429
18430 * inferiors.c (add_thread): Set last_status kind to
18431 TARGET_WAITKIND_IGNORE.
18432 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18433 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18434 (linux_wait_1): Move `thread' local definition to block that uses
18435 it. Don't NULL initialize `event_child'.
18436 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18437 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18438 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18439
bdabb078
PA
184402010-04-01 Pedro Alves <pedro@codesourcery.com>
18441
18442 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18443 an extended waitstatus, or by a watchpoint.
18444 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18445 thread was stepping or has been stopped by a watchpoint.
18446
d3bbe7a0
PA
184472010-04-01 Pedro Alves <pedro@codesourcery.com>
18448
18449 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18450 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18451 of another, then delete the previous, and validate all
18452 breakpoints.
18453 (validate_inserted_breakpoint): New.
18454 (delete_disabled_breakpoints): New.
18455 (validate_breakpoints): New.
18456 (check_mem_read): Validate breakpoints before trusting their
18457 shadow. Delete disabled breakpoints.
18458 (check_mem_write): Validate breakpoints before trusting they
18459 should be inserted. Delete disabled breakpoints.
18460 * mem-break.h (validate_breakpoints):
18461 * server.c (handle_query): Validate breakpoints when we see a
18462 qSymbol query.
18463
8b07ae33
PA
184642010-04-01 Pedro Alves <pedro@codesourcery.com>
18465
18466 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18467 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18468 if we could tell there's a GDB breakpoint at stop_pc.
18469 (need_step_over_p): Don't do a step over if we find a GDB
18470 breakpoint at the resume PC.
18471
18472 * mem-break.c (struct raw_breakpoint): New.
18473 (enum bkpt_type): New type `gdb_breakpoint'.
18474 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18475 fields. New field `raw'.
18476 (find_raw_breakpoint_at): New.
18477 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18478 breakpoint instead.
18479 (set_breakpoint_at): Adjust.
18480 (delete_raw_breakpoint): New.
18481 (release_breakpoint): New.
18482 (delete_breakpoint): Rename to...
18483 (delete_breakpoint_1): ... this. Add proc parameter. Use
18484 release_breakpoint. Return ENOENT.
18485 (delete_breakpoint): Reimplement.
18486 (find_breakpoint_at): Delete.
18487 (find_gdb_breakpoint_at): New.
18488 (delete_breakpoint_at): Delete.
18489 (set_gdb_breakpoint_at): New.
18490 (delete_gdb_breakpoint_at): New.
18491 (gdb_breakpoint_here): New.
18492 (set_reinsert_breakpoint): Use release_breakpoint.
18493 (uninsert_breakpoint): Rename to ...
18494 (uninsert_raw_breakpoint): ... this.
18495 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18496 (reinsert_raw_breakpoint): Change parameter type to
18497 raw_breakpoint.
18498 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18499 instead.
18500 (check_breakpoints): Adjust. Use release_breakpoint.
18501 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18502 (breakpoint_inserted_here): Ditto.
18503 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18504 Don't trust the breakpoint's shadow if it is not inserted.
18505 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18506 (delete_all_breakpoints): Adjust.
18507 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18508 use delete_breakpoint_1.
18509
18510 * mem-break.h (breakpoints_supported): Delete declaration.
18511 (set_gdb_breakpoint_at): Declare.
18512 (gdb_breakpoint_here): Declare.
18513 (delete_breakpoint_at): Delete.
18514 (delete_gdb_breakpoint_at): Declare.
18515
18516 * server.h (struct raw_breakpoint): Forward declare.
18517 (struct process_info): New field `raw_breakpoints'.
18518
18519 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18520 breakpoints.
18521
6bf5e0ba
PA
185222010-03-24 Pedro Alves <pedro@codesourcery.com>
18523
18524 * linux-low.c (status_pending_p_callback): Fix comment.
18525 (linux_wait_for_event_1): Move most of the internal breakpoint
18526 handling from here...
18527 (linux_wait_1): ... to here.
18528 (count_events_callback): New.
18529 (select_singlestep_lwp_callback): New.
18530 (select_event_lwp_callback): New.
18531 (cancel_breakpoints_callback): New.
18532 (select_event_lwp): New.
18533 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18534 priority to all LWPs that have had events that should be reported
18535 to the client. Cancel breakpoints when about to reporting the
18536 event to the client, not while stopping lwps. No longer cancel
18537 finished single-steps here.
18538 (cancel_finished_single_step): Delete.
18539 (cancel_finished_single_steps): Delete.
18540
414a389f
PA
185412010-03-24 Pedro Alves <pedro@codesourcery.com>
18542
18543 * mem-break.c (enum bkpt_type): New.
18544 (struct breakpoint): New field `type'.
18545 (set_breakpoint_at): Change return type to struct breakpoint
18546 pointer. Set type to `other_breakpoint' by default.
18547 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18548 in the breakpoint list.
18549 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18550 (reinsert_breakpoint): Rename to ...
18551 (reinsert_raw_breakpoint): ... this.
18552 (reinsert_breakpoints_at): Adjust.
18553 * mem-break.h (struct breakpoint): Declare.
18554 (set_breakpoint_at): Change return type to struct breakpoint
18555 pointer.
18556
2280c721
PA
185572010-03-24 Pedro Alves <pedro@codesourcery.com>
18558
18559 * server.c (handle_query): Assign, not compare.
18560
d50171e4
PA
185612010-03-24 Pedro Alves <pedro@codesourcery.com>
18562
18563 Teach linux gdbserver to step-over-breakpoints.
18564
18565 * linux-low.c (can_hardware_single_step): New.
18566 (supports_breakpoints): New.
18567 (handle_extended_wait): If stopping threads, read the stop pc of
18568 the new cloned LWP.
18569 (get_pc): New.
18570 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18571 low target doesn't support retrieving the PC.
18572 (add_lwp): Set last_resume_kind to resume_continue.
18573 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18574 (linux_attach): Don't clear stop_expected. Set the lwp's
18575 last_resume_kind to resume_stop.
18576 (linux_detach_one_lwp): Don't check for removed breakpoints.
18577 (check_removed_breakpoint): Delete.
18578 (status_pending_p): Rename to ...
18579 (status_pending_p_callback): ... this. Don't check for removed
18580 breakpoints. Don't consider threads that are stopped from GDB's
18581 perspective.
18582 (linux_wait_for_lwp): Always read the stop_pc here.
18583 (cancel_breakpoint): New.
18584 (step_over_bkpt): New global.
18585 (linux_wait_for_event_1): Implement stepping over breakpoints.
18586 (gdb_wants_lwp_stopped): New.
18587 (gdb_wants_all_stopped): New.
18588 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18589 single-step traps here. Store the thread's last reported target
18590 wait status.
18591 (send_sigstop): Don't clear stop_expected. Always set it,
18592 instead.
18593 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18594 (cancel_finished_single_step): New.
18595 (cancel_finished_single_steps): New.
18596 (wait_for_sigstop): Don't cancel finished single-step traps here.
18597 (linux_resume_one_lwp): Don't check for removed breakpoints.
18598 Don't set `step' on non-hardware step archs.
18599 (linux_set_resume_request): Ignore resume_stop requests if already
18600 stopping or stopped. Set the lwp's last_resume_kind.
18601 (resume_status_pending_p): Don't check for removed breakpoints.
18602 (need_step_over_p): New.
18603 (start_step_over): New.
18604 (finish_step_over): New.
18605 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18606 requests. Clear the thread's last reported target waitstatus.
18607 Don't use the `suspended' flag. Don't consider pending breakpoints.
18608 (linux_resume): Start a step-over if necessary.
18609 (proceed_one_lwp): New.
18610 (proceed_all_lwps): New.
18611 (unstop_all_lwps): New.
18612 * linux-low.h (struct lwp_info): Rewrite comment for the
18613 `suspended' flag. Add the `stop_pc' field. Delete the
18614 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18615 Add `'last_resume_kind' and `need_step_over' fields.
18616 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18617 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18618 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18619 (set_raw_breakpoint_at): New.
18620 (set_breakpoint_at): Rewrite to use it.
18621 (reinsert_breakpoint_handler): Delete.
18622 (set_reinsert_breakpoint): New.
18623 (reinsert_breakpoint_by_bp): Delete.
18624 (delete_reinsert_breakpoints): New.
18625 (uninsert_breakpoint): Rewrite.
18626 (uninsert_breakpoints_at): New.
18627 (reinsert_breakpoint): Rewrite.
18628 (reinsert_breakpoints_at): New.
18629 (check_breakpoints): Rewrite.
18630 (breakpoint_here): New.
18631 (breakpoint_inserted_here): New.
18632 (check_mem_read): Adjust.
18633 * mem-break.h (breakpoints_supported, breakpoint_here)
18634 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18635 (reinsert_breakpoint_by_bp): Delete declaration.
18636 (delete_reinsert_breakpoints): Declare.
18637 (reinsert_breakpoint): Delete declaration.
18638 (reinsert_breakpoints_at): Declare.
18639 (uninsert_breakpoint): Delete declaration.
18640 (uninsert_breakpoints_at): Declare.
18641 (check_breakpoints): Adjust prototype.
18642 * server.h: Adjust include order.
18643 (struct thread_info): Declare here. Add a `last_status' field.
18644
30ba68cb
MS
186452010-03-23 Michael Snyder <msnyder@vmware.com>
18646
18647 * server.c (crc32): New function.
18648 (handle_query): Add handling for 'qCRC:' request.
18649
b9a881c2
PA
186502010-03-23 Pedro Alves <pedro@codesourcery.com>
18651
18652 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18653 lwp had been stopped by a watchpoint.
18654
e92d13d5
PA
186552010-03-16 Pedro Alves <pedro@codesourcery.com>
18656
18657 * server.h (internal_error): Declare.
18658 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18659 * utils.c (internal_error): New function.
18660
64daa791
AS
186612010-03-15 Andreas Schwab <schwab@redhat.com>
18662
18663 * configure.srv: Fix typo setting srv_regobj.
18664
f52cd8cd
PA
186652010-03-15 Pedro Alves <pedro@codesourcery.com>
18666
18667 * linux-low.c (fetch_register): Avoid passing a non string literal
18668 format to `error'.
18669 (usr_store_inferior_registers): Ditto.
18670
93ae6fdc
PA
186712010-03-14 Pedro Alves <pedro@codesourcery.com>
18672
18673 * linux-low.c (linux_write_memory): Bail out early if peeking
18674 memory failed.
18675
c3adc08c
PA
186762010-03-14 Pedro Alves <pedro@codesourcery.com>
18677
18678 * linux-low.h (struct lwp_info): New fields
18679 `stopped_by_watchpoint' and `stopped_data_address'.
18680 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18681 here, and cache them in the lwp object.
18682 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18683 directly.
18684 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18685 field.
18686 (linux_stopped_by_watchpoint): Rewrite.
18687 (linux_stopped_data_address): Rewrite.
18688
bce522a2
PA
186892010-03-06 Simo Melenius <simo.melenius@iki.fi>
18690
18691 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18692 switching the current inferior, not before.
18693
90884b2b
L
186942010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18695
18696 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18697 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18698 i386-linux.c and amd64-linux.c.
18699 (reg-i386.o): Removed.
18700 (reg-i386.c): Likewise.
18701 (reg-i386-linux.o): Likewise.
18702 (reg-i386-linux.c): Likewise.
18703 (reg-x86-64.o): Likewise.
18704 (reg-x86-64.c): Likewise.
18705 (reg-x86-64-linux.o): Likewise.
18706 (reg-x86-64-linux.c): Likewise.
18707 (i386.o): New.
18708 (i386.c): Likewise.
18709 (i386-linux.o): Likewise.
18710 (i386-linux.c): Likewise.
18711 (amd64.o): Likewise.
18712 (amd64.c): Likewise.
18713 (amd64-linux.o): Likewise.
18714 (amd64-linux.c): Likewise.
18715
18716 * configure.srv (srv_i386_regobj): New.
18717 (srv_i386_linux_regobj): Likewise.
18718 (srv_amd64_regobj): Likewise.
18719 (srv_amd64_linux_regobj): Likewise.
18720 (srv_i386_32bit_xmlfiles): Likewise.
18721 (srv_i386_64bit_xmlfiles): Likewise.
18722 (srv_i386_xmlfiles): Likewise.
18723 (srv_amd64_xmlfiles): Likewise.
18724 (srv_i386_linux_xmlfiles): Likewise.
18725 (srv_amd64_linux_xmlfiles): Likewise.
18726 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18727 srv_xmlfiles to $srv_i386_xmlfiles.
18728 (i[34567]86-*-mingw32ce*): Likewise.
18729 (i[34567]86-*-mingw*): Likewise.
18730 (i[34567]86-*-nto*): Likewise.
18731 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18732 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18733 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18734 (x86_64-*-linux*): Likewise.
18735
18736 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18737 (init_registers_amd64_linux): New.
18738 (x86_arch_setup): Replace init_registers_x86_64_linux with
18739 init_registers_amd64_linux.
18740
193f13e6
MK
187412010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18742
18743 * configure.ac: Check for libdl. If it is not available link against
18744 static libthread_db.
18745 * configure: Regenerate.
18746
85d721b8
PA
187472010-02-22 Pedro Alves <pedro@codesourcery.com>
18748
18749 PR9605
18750
18751 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18752 handing a read watchpoint.
18753 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18754
6076632b
DE
187552010-02-12 Doug Evans <dje@google.com>
18756
18757 * linux-low.c (linux_supports_tracefork_flag): Document.
18758 (linux_look_up_symbols): Add comment.
18759
3327ccf7
L
187602010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18761
18762 * regcache.c (supply_register): Clear regcache if buf is NULL.
18763
0718675c 187642010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18765 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18766
18767 * inferiors.c (find_inferior): Add function documentation.
18768 (unloaded_dll): Handle the case where the unloaded dll has not
18769 been previously registered in the dll list.
18770
177321bd
DJ
187712010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18772
18773 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18774 (thumb2_breakpoint): New.
18775 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18776
2b009048
DJ
187772010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18778
18779 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18780 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18781 breakpoints.
18782
3be029c7
PA
187832010-01-21 Pedro Alves <pedro@codesourcery.com>
18784
18785 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18786
18f5de3b
JK
187872010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18788
18789 * linux-s390-low.c (s390_collect_ptrace_register)
18790 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18791
3743bb4f
DE
187922010-01-21 Doug Evans <dje@google.com>
18793
14ce3065
DE
18794 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18795 (PTRACE_ARG4_TYPE): New macro.
18796 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18797 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18798 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18799 (usr_store_inferior_registers): Ditto.
18800 (linux_read_memory, linux_write_memory): Ditto.
18801 (linux_test_for_tracefork): Ditto.
18802
3743bb4f
DE
18803 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18804 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18805
8b315be5
PA
188062010-01-21 Pedro Alves <pedro@codesourcery.com>
18807
18808 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18809 target.
18810
85492558
PA
188112010-01-21 Pedro Alves <pedro@codesourcery.com>
18812
18813 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18814 prototype to take a regcache. Adjust.
18815
442ea881
PA
188162010-01-20 Pedro Alves <pedro@codesourcery.com>
18817
18818 * regcache.h (struct thread_info): Forward declare.
18819 (struct regcache): New.
18820 (new_register_cache): Adjust prototype.
18821 (get_thread_regcache): Declare.
18822 (free_register_cache): Adjust prototype.
18823 (registers_to_string, registers_from_string): Ditto.
18824 (supply_register, supply_register_by_name, collect_register)
18825 (collect_register_as_string, collect_register_by_name): Ditto.
18826 * regcache.c (struct inferior_regcache_data): Delete.
18827 (get_regcache): Rename to ...
18828 (get_thread_regcache): ... this. Adjust. Switch inferior before
18829 fetching registers.
18830 (regcache_invalidate_one): Adjust.
18831 (regcache_invalidate): Fix prototype.
18832 (new_register_cache): Return the new register cache.
18833 (free_register_cache): Change prototype.
18834 (realloc_register_cache): Adjust.
18835 (registers_to_string): Change prototype to take a regcache. Adjust.
18836 (registers_from_string): Ditto.
18837 (register_data): Ditto.
18838 (supply_register): Ditto.
18839 (supply_register_by_name): Ditto.
18840 (collect_register): Ditto.
18841 (collect_register_as_string): Ditto.
18842 (collect_register_by_name): Ditto.
18843 * server.c (process_serial_event): Adjust.
18844 * linux-low.h (regset_fill_func, regset_store_func): Change
18845 prototype.
18846 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18847 Change prototype.
18848 * linux-low.c (get_stop_pc): Adjust.
18849 (check_removed_breakpoint): Adjust.
18850 (linux_wait_for_event): Adjust.
18851 (linux_resume_one_lwp): Adjust.
18852 (fetch_register): Add regcache parameter. Adjust.
18853 (usr_store_inferior_registers): Ditto.
18854 (regsets_fetch_inferior_registers): Ditto.
18855 (regsets_store_inferior_registers): Ditto.
18856 (linux_fetch_registers, linux_store_registers): Ditto.
18857 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18858 regcache. Adjust.
43aaf8b6
PA
18859 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18860 Ditto.
442ea881
PA
18861 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18862 prototype to take a regcache.
18863 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18864 * remote-utils.c (convert_ascii_to_int, outreg)
18865 (prepare_resume_reply): Change prototype to take a regcache.
18866 Adjust.
18867 * target.h (struct target_ops) <fetch_registers, store_registers>:
18868 Change prototype to take a regcache.
18869 (fetch_inferior_registers, store_inferior_registers): Change
18870 prototype to take a regcache. Adjust.
18871 * proc-service.c (ps_lgetregs): Adjust.
18872 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18873 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18874 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18875 take a regcache. Adjust.
18876 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18877 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18878 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18879 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18880 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18881 (cris_cannot_fetch_register):
18882 (cris_breakpoint_at): Change prototype to take a regcache.
18883 Adjust.
18884 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18885 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18886 to take a regcache. Adjust.
18887 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18888 Adjust.
18889 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18890 take a regcache. Adjust.
18891 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18892 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18893 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18894 * linux-mips-low.c (mips_get_pc):
18895 (mips_set_pc): Change prototype to take a regcache. Adjust.
18896 (mips_reinsert_addr): Adjust.
18897 (mips_collect_register): Change prototype to take a regcache.
18898 Adjust.
18899 (mips_supply_register):
18900 (mips_collect_register_32bit, mips_supply_register_32bit)
18901 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18902 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18903 * linux-ppc-low.c (ppc_supply_ptrace_register)
18904 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18905 (parse_spufs_run): Adjust.
18906 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18907 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18908 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18909 take a regcache. Adjust.
18910 * linux-s390-low.c (s390_collect_ptrace_register)
18911 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18912 (s390_set_pc): Change prototype to take a regcache. Adjust.
18913 (s390_arch_setup): Adjust.
18914 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18915 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18916 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18917 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18918 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18919 regcache. Adjust.
18920 (sparc_breakpoint_at): Adjust.
18921 * linux-xtensa-low.c (xtensa_fill_gregset):
18922 (xtensa_store_gregset):
18923 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18924 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18925 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18926 prototype to take a regcache. Adjust.
18927 * win32-arm-low.c (arm_fetch_inferior_register)
18928 (arm_store_inferior_register): Change prototype to take a
18929 regcache. Adjust.
18930 * win32-i386-low.c (i386_fetch_inferior_register)
18931 (i386_store_inferior_register): Change prototype to take a
18932 regcache. Adjust.
18933 * win32-low.c (child_fetch_inferior_registers)
18934 (child_store_inferior_registers): Change prototype to take a
18935 regcache. Adjust.
18936 (win32_wait): Adjust.
18937 (win32_fetch_inferior_registers): Change prototype to take a
18938 regcache. Adjust.
18939 (win32_store_inferior_registers): Adjust.
18940 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18941 store_inferior_register>: Change prototype to take a regcache.
18942
60c3d7b0
DE
189432010-01-20 Doug Evans <dje@google.com>
18944
18945 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18946 #ifdef.
18947 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18948 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18949
dc146f7c
VP
189502010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18951
18952 * linux-low.c (linux_core_of_thread): New.
18953 (compare_ints, show_process, list_threads): New.
18954 (linux_qxfer_osdata): Report threads and cores.
18955 (linux_target_op): Register linux_core_of_thread.
18956 * remote-utils.c (prepare_resume_reply): Report the core.
18957 (buffer_xml_printf): Support %d specifier.
18958 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18959 New.
18960 (handle_query): Handle qXfer:threads. Announce availability
18961 thereof.
18962 * target.h (struct target_ops): New field core_of_thread.
18963
7803799a
UW
189642010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18965
18966 * Makefile.in (clean): Remove new generated files.
18967 (reg-s390.o, reg-s390.c): Remove rules.
18968 (reg-s390x.o, reg-s390x.c): Likewise.
18969 (s390-linux32.o, s390-linux32.c): Add rules.
18970 (s390-linux64.o, s390-linux64.c): Likewise.
18971 (s390x-linux64.o, s390x-linux64.c): Likewise.
18972 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18973 * linux-s390-low.c: Include <elf.h>.
18974 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18975 (init_registers_s390): Remove prototype.
18976 (init_registers_s390x): Likewise.
18977 (init_registers_s390_linux32): Add prototype.
18978 (init_registers_s390_linux64): Likewise.
18979 (init_registers_s390x_linux64): Likewise.
18980 (s390_num_regs_3264): New define.
18981 (s390_regmap_3264): New global variable.
18982 (s390_cannot_fetch_register): Remove obsolete check.
18983 (s390_cannot_store_register): Likewise.
18984 (s390_collect_ptrace_register): Handle upper/lower register halves.
18985 (s390_supply_ptrace_register): Likewise.
18986 (s390_fill_gregset): Update to register number changes.
18987 (s390_get_hwcap): New routine.
18988 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18989 Install appropriate regmap and register set.
18990
6e7ffa39
JB
189912010-01-01 Joel Brobecker <brobecker@adacore.com>
18992
18993 * server.c (gdbserver_version): Update copyright year to 2010.
18994 * gdbreplay.c (gdbreplay_version): Likewise.
18995
957f3f49
DE
189962009-12-28 Doug Evans <dje@google.com>
18997
18998 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18999 elf/external.h. Include <elf.h> instead but only if necessary.
19000
ca5c370d
PA
190012009-12-28 Pedro Alves <pedro@codesourcery.com>
19002
19003 * linux-low.c (linux_remove_process): Remove `detaching'
19004 parameter. Don't release/detach from thread_db here.
19005 (linux_kill): Release/detach from thread_db here, ...
19006 (linux_detach): ... and here, before actually detaching.
19007 (linux_wait_1): ... and here, when a process exits.
19008 * thread-db.c (any_thread_of): New.
19009 (thread_db_free): Switch the current inferior to a thread of the
19010 passed in process.
19011
4ee62156
DE
190122009-12-21 Doug Evans <dje@google.com>
19013
d90e6a88
DE
19014 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19015
c5f62d5f
DE
19016 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19017 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19018 warning ifndef __NR_tkill. Move setting of errno there too.
19019 Delete unnecessary resetting of errno after syscall.
19020 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19021
10e86dd7
DE
19022 * configure.ac: Check for dladdr.
19023 * config.in: Regenerate.
19024 * configure: Regenerate.
19025 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19026 (try_thread_db_load): Update.
19027
4ee62156
DE
19028 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19029
00f515da
DE
190302009-12-18 Doug Evans <dje@google.com>
19031
e9464885
DE
19032 * event-loop.c: Include unistd.h if it exists.
19033
07d4f67e
DE
19034 * linux-low.c (my_waitpid): Move definition away from being in
19035 between linux_tracefork_child/linux_test_for_tracefork.
19036
00f515da
DE
19037 * gdb_proc_service.h (psaddr_t): Fix type.
19038 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19039 signature to match glibc.
19040
1de1badb
DE
190412009-12-16 Doug Evans <dje@google.com>
19042
19043 * linux-low.c (linux_read_memory): Fix argument to read.
19044
aeeb81d1
PA
190452009-11-26 Pedro Alves <pedro@codesourcery.com>
19046
19047 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19048 events, don't leave current_inferior pointing at null.
19049
10357975
PA
190502009-11-26 Pedro Alves <pedro@codesourcery.com>
19051
19052 * win32-low.c (LOG): Delete.
19053 (OUTMSG): Output to stderr.
19054 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19055 on compile time LOG macro.
19056 (win32_wait): Fix debug output.
19057
cf6e3471
PA
190582009-11-26 Pedro Alves <pedro@codesourcery.com>
19059
19060 * win32-low.c (win32_add_one_solib): If the dll name is
19061 "ntdll.dll", prepend the system directory to the dll path.
19062
0c85e18e
MK
190632009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19064
19065 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19066
9ac544ce 190672009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 19068 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
19069
19070 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19071 * configure.ac: Check for __mcoldfire__ and set
19072 gdb_cv_m68k_is_coldfire.
19073 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19074 reg-cf.o and reg-m68k.o.
19075 * configure: Regenerated.
19076
fd7dd3e6
PA
190772009-11-16 Pedro Alves <pedro@codesourcery.com>
19078
19079 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19080 Pass it to thread_db_free.
19081 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19082 proper `detaching' argument to linux_remove_process.
19083 * linux-low.h (thread_db_free): Add `detaching' parameter.
19084 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19085 to thread_db_free.
19086 (thread_db_free): Add `detaching' parameter. Only
19087 call td_ta_clear_event if detaching from process.
19088
75aa492e
MK
190892009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19090
19091 * thread-db.c (thread_db_free): Fix typo.
19092
21e1bee4
PP
190932009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19094
19095 PR gdb/10838
19096 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19097
8838b45e
NS
190982009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19099
19100 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19101 with an i686 compiler.
19102 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19103 needed.
19104 * configure: Rebuilt.
19105
8a35fb51
SL
191062009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19107
19108 PR gdb/10783
19109
19110 * server.c (handle_search_memory_1): Correct read_addr initialization
19111 in loop for searching subsequent chunks.
19112
96f15937
PP
191132009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19114
19115 * configure.ac: New --with-libthread-db option.
19116 * thread-db.c: Allow direct dependence on libthread_db.
19117 (thread_db_free): Adjust.
19118 * config.in: Regenerate.
19119 * configure: Likewise.
889bf7c5 19120
5f7d1694
PP
191212009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19122
19123 PR gdb/10757
19124 * thread-db.c (attach_thread): New function.
19125 (maybe_attach_thread): Return success/failure.
19126 (find_new_threads_callback): Adjust.
889bf7c5
PA
19127 (thread_db_find_new_threads): Loop until no new threads.
19128
88e3b899
PA
191292009-10-13 Pedro Alves <pedro@codesourcery.com>
19130
19131 * proc-service.c (ps_lgetregs): Formatting.
19132
cdbfd419
PP
191332009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19134
19135 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19136 * configure.ac: Adjust.
19137 * linux-low.h (struct process_info_private): Move members to struct
19138 thread_db.
19139 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19140 * linux-low.c (linux_remove_process): Adjust.
19141 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19142 * server.c (handle_query): Move code ...
19143 (handle_monitor_command): ... here. New function.
19144 * target.h (struct target_ops): New member.
19145 * thread-db.c (struct thread_db): New.
19146 (libthread_db_search_path): New variable.
19147 (thread_db_create_event, thread_db_enable_reporting)
19148 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19149 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19150 (try_thread_db_load_1, dladdr_to_soname): New functions.
19151 (try_thread_db_load, thread_db_load_search): New functions.
19152 (thread_db_init): Search for libthread_db.
19153 (thread_db_free): New function.
19154 (thread_db_handle_monitor_command): Likewise.
19155 * config.in: Regenerate.
19156 * configure: Regenerate.
889bf7c5 19157
4168d2d6
UW
191582009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19159
19160 * spu-low.c (spu_kill): Wait for inferior to terminate.
19161 Call clear_inferiors.
19162 (spu_detach): Call clear_inferiors.
19163
81ecdfbb
RW
191642009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19165
19166 * aclocal.m4: Regenerate.
19167 * config.in: Likewise.
19168 * configure: Likewise.
19169
0b9ff2c0
UW
191702009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19171
19172 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19173 (parse_spufs_run): New function.
19174 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19175 (ppc_breakpoint_at): Handle SPU breakpoints.
19176
efcbbd14
UW
191772009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19178
19179 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19180 (SPUFS_MAGIC): Define.
19181 (spu_enumerate_spu_ids): New function.
19182 (linux_qxfer_spu): New function.
19183 (linux_target_ops): Install linux_qxfer_spu.
19184
f4d9bade
UW
191852009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19186
19187 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19188 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19189 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19190 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19191 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19192 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19193 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19194 (init_registers_powerpc_cell32l): Add prototype.
19195 (init_registers_powerpc_cell64l): Likewise.
19196 (ppc_arch_setup): Detect Cell/B.E. architecture.
19197
96e946ca
RW
191982009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19199
19200 * Makefile.in (datarootdir): New variable.
19201
58d6951d
DJ
192022009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19203
19204 * linux-low.c (linux_write_memory): Update debugging output.
19205 * Makefile.in (clean): Add new descriptions.
19206 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19207 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19208 * configure.srv: Add new files for arm*-*-linux*.
19209 * linux-arm-low.c: Add new declarations.
19210 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19211 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19212 (HWCAP_VFPv3D16): New.
19213 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19214 instead of __IWMMXT__.
19215 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19216 (arm_arch_setup): New.
19217 (target_regsets): Remove #ifdef. Add VFP regset.
19218 (the_low_target): Use arm_arch_setup.
19219
12b42a12
DJ
192202009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19221
19222 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19223 the main thread again.
19224
ac8c974e
AR
192252009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19226
19227 Adding Neutrino gdbserver.
19228 * configure: Regenerated.
19229 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19230 * configure.srv (i[34567]86-*-nto*): New target.
19231 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19232 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19233 (nto_comctrl) [__QNX__]: New function.
19234 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19235
4424e0c3 192362009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19237
19238 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19239 srv_tgtobj.
19240
912cf4ba
PA
192412009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19242 Pedro Alves <pedro@codesourcery.com>
19243
19244 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19245 don't support CONTEXT_EXTENDED_REGISTERS.
19246 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19247 (the_low_target): Install them.
19248 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19249 failing with ERROR_PIPE_NOT_CONNECTED.
19250
aa5ca48f
DE
192512009-06-30 Doug Evans <dje@google.com>
19252 Pierre Muller <muller@ics.u-strasbg.fr>
19253
19254 Add h/w watchpoint support to x86-linux, win32-i386.
19255 * Makefile.in (SFILES): Add i386-low.c
19256 (i386_low_h): Define.
19257 (i386-low.o): Add dependencies.
19258 (linux-x86-low.o): Add i386-low.h dependency.
19259 (win32-i386-low.o): Ditto.
19260 * i386-low.c: New file.
19261 * i386-low.h: New file.
19262 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19263 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19264 * linux-low.c (linux_add_process): Initialize arch_private.
19265 (linux_remove_process): Free arch_private.
19266 (add_lwp): Initialize arch_private.
19267 (delete_lwp): Free arch_private.
19268 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19269 provided.
19270 * linux-low.h (process_info_private): New member arch_private.
19271 (lwp_info): New member arch_private.
19272 (linux_target_ops): New members new_process, new_thread,
19273 prepare_to_resume.
19274 (ptid_of): New macro.
19275 * linux-x86-low.c: Include stddef.h, i386-low.h.
19276 (arch_process_info): New struct.
19277 (arch_lwp_info): New struct.
19278 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19279 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19280 (i386_dr_low_get_status): New function.
19281 (x86_insert_point, x86_remove_point): New functions.
19282 (x86_stopped_by_watchpoint): New function.
19283 (x86_stopped_data_address): New function.
19284 (x86_linux_new_process, x86_linux_new_thread): New functions.
19285 (x86_linux_prepare_to_resume): New function.
19286 (the_low_target): Add entries for insert_point, remove_point,
19287 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19288 prepare_to_resume.
19289 * server.c (debug_hw_points): New global.
19290 (monitor_show_help): Document set debug-hw-points.
19291 (handle_query): Process "set debug-hw-points".
19292 * server.h (debug_hw_points): Declare.
19293 (paddress): Declare.
19294 * utils.c (NUMCELLS, CELLSIZE): New macros.
19295 (get_sell, xsnprintf, paddress): New functions.
19296 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19297 remove_point, stopped_by_watchpoint, stopped_data_address.
19298 * win32-i386-low.c: Include i386-low.h.
19299 (debug_reg_state): Replaces dr.
19300 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19301 (i386_dr_low_get_status): New function.
19302 (i386_insert_point, i386_remove_point): New functions.
19303 (i386_stopped_by_watchpoint): New function.
19304 (i386_stopped_data_address): New function.
19305 (i386_initial_stuff): Update.
19306 (get_thread_context,set_thread_context,i386_thread_added): Update.
19307 (the_low_target): Add entries for insert_point,
19308 remove_point, stopped_by_watchpoint, stopped_data_address.
19309 * win32-low.c (win32_insert_watchpoint): New function.
19310 (win32_remove_watchpoint): New function.
19311 (win32_stopped_by_watchpoint): New function.
19312 (win32_stopped_data_address): New function.
19313 (win32_target_ops): Add entries for insert_watchpoint,
19314 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19315 * win32-low.h (win32_target_ops): New members insert_point,
19316 remove_point, stopped_by_watchpoint, stopped_data_address.
19317
d993e290
PA
193182009-06-25 Pedro Alves <pedro@codesourcery.com>
19319
19320 * server.c (process_serial_event): Re-return unsupported, not
19321 error, if the type isn't recognized. Re-allow supporting only
19322 insert or remove packets. Also call require_running for
19323 breakpoints. Add missing break statement to default case. Tidy.
19324 * target.h (struct target_ops): Rename insert_watchpoint to
19325 insert_point, and remove_watchpoint to remove_point.
19326
19327 * linux-low.h (struct linux_target_ops): Likewise.
19328 * linux-low.c (linux_insert_watchpoint): Rename to ...
19329 (linux_insert_point): ... this. Adjust.
19330 (linux_remove_watchpoint): Rename to ...
19331 (linux_remove_point): ... this. Adjust.
19332 (linux_target_ops): Adjust.
19333 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19334 (cris_insert_point): ... this.
19335 (cris_remove_watchpoint): Rename to ...
19336 (cris_remove_point): ... this.
19337 (the_low_target): Adjust.
19338
0f54c268
PM
193392009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19340
19341 * server.c (handle_v_kill): Pass signal_pid to
19342 kill_inferior if multi_process is zero.
19343
c6314022
AR
193442009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19345
19346 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19347 * target.h (target_ops): Comment for *_watchpoint to make it clear
19348 the functions can get types '0' and '1'.
19349
4463ce24
AR
193502009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19351
19352 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19353 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19354 * regcache.c (get_regcache): Likewise.
19355 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19356 * win32-low.c (child_fetch_inferior_registers): Remove check for
19357 regno 0.
19358
cf8fd78b
PA
193592009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19360 Pedro Alves <pedro@codesourcery.com>
19361
19362 * target.h (struct target_ops) <supports_multi_process>: New
19363 callback.
19364 (target_supports_multi_process): New.
19365 * server.c (handle_query): Even if GDB reports support, only
19366 enable multi-process if the target also supports it. Report
19367 multi-process support only if the target backend supports it.
19368 * linux-low.c (linux_supports_multi_process): New function.
19369 (linux_target_ops): Install it as target_supports_multi_process
19370 callback.
19371
47c0c975
DE
193722009-05-24 Doug Evans <dje@google.com>
19373
e09875d4
DE
19374 Global renaming of find_thread_pid to find_thread_ptid.
19375 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19376 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19377 All callers updated.
19378
e27d73f6
DE
19379 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19380 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19381 directly.
19382
47c0c975
DE
19383 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19384 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19385 (linux_resume_one_lwp): Ditto.
19386
2acc282a
DE
193872009-05-23 Doug Evans <dje@google.com>
19388
19389 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19390 from struct inferior_list_entry * to struct lwp_info *.
19391 All callers updated.
19392
9f1036c1
DE
193932009-05-13 Doug Evans <dje@google.com>
19394
19395 * linux-x86-low.c: Don't include assert.h.
19396 (x86_siginfo_fixup): Use fatal, not assert.
19397 (x86_arch_setup): Fix comment.
19398
d0722149
DE
193992009-05-12 Doug Evans <dje@google.com>
19400
19401 Biarch support for i386/amd64 gdbserver.
19402 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19403 Add linux-x86-low.c.
19404 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19405 (linux-x86-low.o): Add.
19406 * linux-x86-64-low.c: Delete.
19407 * linux-i386-low.c: Delete.
19408 * linux-x86-low.c: New file.
19409 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19410 linux-x86-low.o.
19411 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19412 linux-x86-low.o.
19413 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19414 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19415 (linux_child_pid_to_exec_file): New function.
19416 (elf_64_header_p, elf_64_file_p): New functions.
19417 (siginfo_fixup): New function.
19418 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19419 give target a chance to convert layout.
19420 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19421 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19422
fdeb2a12
DE
194232009-05-07 Doug Evans <dje@google.com>
19424
19425 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19426 (regsets_store_inferior_registers): Ditto.
19427
a6dbe5df
PA
194282009-05-06 Pedro Alves <pedro@codesourcery.com>
19429
19430 PR server/10048
19431
19432 * linux-low.c (must_set_ptrace_flags): Delete.
19433 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19434 of the global.
19435 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19436 `lwp->must_set_ptrace_flags' instead.
ba42693b 19437 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19438 (linux_wait_1): ... not here.
19439
5091eb23
DE
194402009-04-30 Doug Evans <dje@google.com>
19441
9f767825
DE
19442 * inferiors.c (started_inferior_callback): New function.
19443 (attached_inferior_callback): New function.
19444 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19445 * server.c (print_started_pid, print_attached_pid): New functions.
19446 (detach_or_kill_for_exit): New function.
19447 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19448 * server.h (have_started_inferiors_p): Declare.
19449 (have_attached_inferiors_p): Declare.
19450
5091eb23
DE
19451 * inferiors.c (remove_process): Fix memory leak, free process.
19452 * linux-low.c (linux_remove_process): New function.
19453 (linux_kill): Call it instead of remove_process.
19454 (linux_detach, linux_wait_1): Ditto.
19455
155c8968
PA
194562009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19457
19458 * configure.srv: Add x86 Windows CE target.
19459
7fe519cb
UW
194602009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19461
19462 * inferiors.c (get_thread_process): Make global.
19463 * server.h (get_thread_process): Add prototype.
19464 * thread-db.c (find_one_thread): Use get_thread_process
19465 instead of current_process.
19466 (thread_db_get_tls_address): Do not crash if called when
19467 thread layer is not yet initialized.
19468
5472f405
UW
194692009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19470
19471 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19472 * spu-low.c (current_tid): Rename to ...
19473 (current_ptid): ... this.
19474 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19475 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19476 ptid_get_lwp (current_ptid) instead of current_tid.
19477 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19478 instead of current_tid. Use find_process_pid to verify pid
19479 argument is valid. Pass proper argument to remove_process.
19480 (spu_thread_alive): Compare current_ptid instead of current_tid.
19481 (spu_resume): Likewise.
19482
55ac2b99
PA
194832009-04-02 Pedro Alves <pedro@codesourcery.com>
19484
19485 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19486 variable.
19487
95954743
PA
194882009-04-01 Pedro Alves <pedro@codesourcery.com>
19489
19490 Implement the multiprocess extensions, and add linux multiprocess
19491 support.
19492
19493 * server.h (ULONGEST): Declare.
19494 (struct ptid, ptid_t): New.
19495 (minus_one_ptid, null_ptid): Declare.
19496 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19497 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19498 (struct inferior_list_entry): Change `id' type from unsigned from
19499 to ptid_t.
19500 (struct sym_cache, struct breakpoint, struct
19501 process_info_private): Forward declare.
19502 (struct process_info): Declare.
19503 (current_process): Declare.
19504 (all_processes): Declare.
19505 (initialize_inferiors): Declare.
19506 (add_thread): Adjust to use ptid_t.
19507 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19508 (add_process, remove_process, find_thread_pid): Declare.
19509 (find_inferior_id): Adjust to use ptid_t.
19510 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19511 (multi_process): Declare.
19512 (push_event): Adjust to use ptid_t.
19513 (read_ptid, write_ptid): Declare.
19514 (prepare_resume_reply): Adjust to use ptid_t.
19515 (clear_symbol_cache): Declare.
19516 * inferiors.c (all_processes): New.
19517 (null_ptid, minus_one_ptid): New.
19518 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19519 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19520 (add_thread): Change unsigned long to ptid. Remove gdb_id
19521 parameter. Adjust.
19522 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19523 (gdb_id_to_thread): Rename to ...
19524 (find_thread_pid): ... this. Change unsigned long to ptid.
19525 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19526 (loaded_dll, pull_pid_from_list): Adjust.
19527 (add_process, remove_process, find_process_pid)
19528 (get_thread_process, current_process, initialize_inferiors): New.
19529 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19530 (struct target_waitstatus) <related_pid>: Ditto.
19531 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19532 return type to int.
19533 (struct target_ops) <join>: Add `pid' argument.
19534 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19535 (struct target_ops) <wait>: Add `ptid' field. Change return type
19536 to ptid.
19537 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19538 (mywait): Add `ptid' argument. Change return type to ptid_t.
19539 (target_pid_to_str): Declare.
19540 * target.c (set_desired_inferior): Adjust to use ptids.
19541 (mywait): Add new `ptid' argument. Adjust.
19542 (target_pid_to_str): New.
19543 * mem-break.h (free_all_breakpoints): Declare.
19544 * mem-break.c (breakpoints): Delelete.
19545 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19546 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19547 to use per-process breakpoint list.
19548 (free_all_breakpoints): New.
19549 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19550 (symbol_cache, all_symbols_looked_up): Delete.
19551 (hexchars): New.
19552 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19553 read_ptid): New.
19554 (prepare_resume_reply): Change ptid argument's type from unsigned
19555 long to ptid_t. Adjust. Implement W;process and X;process.
19556 (free_sym_cache, clear_symbol_cache): New.
19557 (look_up_one_symbol): Adjust to per-process symbol cache. *
19558 * server.c (cont_thread, general_thread, step_thread): Change type
19559 to ptid_t.
19560 (attached): Delete.
19561 (multi_process): New.
19562 (last_ptid): Change type to ptid_t.
19563 (struct vstop_notif) <ptid>: Change type to ptid_t.
19564 (queue_stop_reply, push_event): Change `ptid' argument's type to
19565 ptid_t.
19566 (discard_queued_stop_replies): Add `pid' argument.
19567 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19568 changes. Don't reference the `attached' global.
19569 (attach_inferior): Adjust to mywait interface changes.
19570 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19571 features. Handle and report "multiprocess+". Handle
19572 "qAttached:PID".
19573 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19574 changes.
19575 (handle_v_kill): New.
19576 (handle_v_stopped): Adjust to use target_pid_to_str.
19577 (handle_v_requests): Allow multiple attaches and runs when
19578 multiprocess extensions are in effect. Handle "vKill".
19579 (myresume): Adjust to use ptids.
19580 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19581 (handle_status): Adjust to discard_queued_stop_replies interface
19582 change.
19583 (first_thread_of, kill_inferior_callback)
19584 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19585 (main): Call initialize_inferiors. Adjust to use ptids, killing
19586 and detaching from all inferiors. Handle multiprocess packet
19587 variants.
19588 * linux-low.h: Include gdb_proc_service.h.
19589 (struct process_info_private): New.
19590 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19591 <lwpid_of>: Use ptid_get_lwp.
19592 (get_lwp_thread): Adjust.
19593 (struct lwp_info): Add `dead' member.
19594 (find_lwp_pid): Declare.
19595 * linux-low.c (thread_db_active): Delete.
19596 (new_inferior): Adjust comment.
19597 (inferior_pid): Delete.
19598 (linux_add_process): New.
19599 (handle_extended_wait): Adjust.
19600 (add_lwp): Change unsigned long to ptid.
19601 (linux_create_inferior): Add process to processes table. Adjust
19602 to use ptids. Don't set new_inferior here.
19603 (linux_attach_lwp): Rename to ...
19604 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19605 it. Adjust to use ptids.
19606 (linux_attach_lwp): New.
19607 (linux_attach): Add process to processes table. Don't set
19608 new_inferior here.
19609 (struct counter): New.
19610 (second_thread_of_pid_p, last_thread_of_process_p): New.
19611 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19612 multiple processes.
19613 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19614 processes. Remove process from process table.
19615 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19616 to multiple processes.
19617 (any_thread_of): New.
19618 (linux_detach): Add `pid' argument, and handle it. Remove process
19619 from processes table.
19620 (linux_join): Add `pid' argument. Handle it.
19621 (linux_thread_alive): Change unsighed long argument to ptid_t.
19622 Consider dead lwps as not being alive.
19623 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19624 threads we're not interested in.
19625 (same_lwp, find_lwp_pid): New.
19626 (linux_wait_for_lwp): Change `pid' argument's type from int to
19627 ptid_t. Adjust.
19628 (linux_wait_for_event): Rename to ...
19629 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19630 from int to ptid_t. Adjust.
19631 (linux_wait_for_event): New.
19632 (linux_wait_1): Add `ptid' argument. Change return type to
19633 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19634 that exit from the process table.
19635 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19636 Adjust.
19637 (mark_lwp_dead): New.
19638 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19639 stopping all threads, mark its main lwp as dead.
19640 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19641 ptids.
19642 (fetch_register, usr_store_inferior_registers)
19643 (regsets_fetch_inferior_registers)
19644 (regsets_store_inferior_registers, linux_read_memory)
19645 (linux_write_memory): Inline `inferior_pid'.
19646 (linux_look_up_symbols): Adjust to use per-process
19647 `thread_db_active'.
19648 (linux_request_interrupt): Adjust to use ptids.
19649 (linux_read_auxv): Inline `inferior_pid'.
19650 (initialize_low): Don't reference thread_db_active.
19651 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19652 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19653 (ps_getpid): Return the pid of the current inferior.
19654 * thread-db.c (proc_handle, thread_agent): Delete.
19655 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19656 per-process data.
19657 (find_one_thread): Change argument type to ptid_t. Adjust to
19658 per-process data.
19659 (maybe_attach_thread): Adjust to per-process data and ptids.
19660 (thread_db_find_new_threads): Ditto.
19661 (thread_db_init): Ditto.
19662 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19663 processes table. Adjust to use ptids.
19664 (spu_kill, spu_detach): Adjust interface. Remove process from
19665 processes table.
19666 (spu_join, spu_thread_alive): Adjust interface.
19667 (spu_wait): Adjust interface. Remove process from processes
19668 table. Adjust to use ptids.
19669 * win32-low.c (current_inferior_tid): Delete.
19670 (current_inferior_ptid): New.
19671 (debug_event_ptid): New.
19672 (thread_rec): Take a ptid. Adjust.
19673 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19674 (child_delete_thread): Ditto.
19675 (do_initial_child_stuff): Add `attached' argument. Add process to
19676 processes table.
19677 (child_fetch_inferior_registers, child_store_inferior_registers):
19678 Adjust.
19679 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19680 (win32_attach): Pass 1 to do_initial_child_stuff.
19681 (win32_kill): Adjust interface. Remove process from processes
19682 table.
19683 (win32_detach): Ditto.
19684 (win32_join): Adjust interface.
19685 (win32_thread_alive): Take a ptid.
19686 (win32_resume): Adjust to use ptids.
19687 (get_child_debug_event): Ditto.
19688 (win32_wait): Adjust interface. Remove exiting process from
19689 processes table.
19690
bd99dc85
PA
196912009-04-01 Pedro Alves <pedro@codesourcery.com>
19692
19693 Non-stop mode support.
19694
19695 * server.h (non_stop): Declare.
19696 (gdb_client_data, handler_func): Declare.
19697 (delete_file_handler, add_file_handler, start_event_loop):
19698 Declare.
19699 (handle_serial_event, handle_target_event, push_event)
19700 (putpkt_notif): Declare.
19701 * target.h (enum resume_kind): New.
19702 (struct thread_resume): Replace `step' field by `kind' field.
19703 (TARGET_WNOHANG): Define.
19704 (struct target_ops) <wait>: Add `options' argument.
19705 <supports_non_stop, async, start_non_stop>: New fields.
19706 (target_supports_non_stop, target_async): New.
19707 (start_non_stop): Declare.
19708 (mywait): Add `options' argument.
19709 * target.c (mywait): Add `options' argument. Print child exit
19710 notifications here.
19711 (start_non_stop): New.
19712 * server.c (non_stop, own_buf, mem_buf): New globals.
19713 (struct vstop_notif): New.
19714 (notif_queue): New global.
19715 (queue_stop_reply, push_event, discard_queued_stop_replies)
19716 (send_next_stop_reply): New.
19717 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19718 interface changes.
19719 (attach_inferior): In non-stop mode, don't wait for the target
19720 here.
19721 (handle_general_set): Handle QNonStop.
19722 (handle_query): When handling qC, return the current general
19723 thread, instead of the first thread of the list.
19724 (handle_query): If the backend supports non-stop mode, include
19725 QNonStop+ in the qSupported query response.
19726 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19727 and non-stop mode.
19728 (handle_v_attach, handle_v_run): Handle non-stop mode.
19729 (handle_v_stopped): New.
19730 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19731 (myresume): Adjust to use resume_kind. Handle non-stop.
19732 (queue_stop_reply_callback): New.
19733 (handle_status): Handle non-stop mode.
19734 (main): Clear non_stop flag on reconnection. Use the event-loop.
19735 Refactor serial protocol handling from here ...
19736 (process_serial_event): ... to this new function. When GDB
19737 selects any thread, select one here. In non-stop mode, wait until
19738 GDB acks all pending events before exiting.
19739 (handle_serial_event, handle_target_event): New.
19740 * remote-utils.c (remote_open): Install remote_desc in the event
19741 loop.
19742 (remote_close): Remove remote_desc from the event loop.
19743 (putpkt_binary): Rename to...
19744 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19745 (putpkt_binary): New as wrapper around putpkt_binary_1.
19746 (putpkt_notif): New.
19747 (prepare_resume_reply): In non-stop mode, don't change the
19748 general_thread.
19749 * event-loop.c: New.
19750 * Makefile.in (OBJ): Add event-loop.o.
19751 (event-loop.o): New rule.
19752
19753 * linux-low.h (pid_of): Moved here.
19754 (lwpid_of): New.
19755 (get_lwp_thread): Use lwpid_of.
19756 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19757 * linux-low.c (pid_of): Delete.
19758 (inferior_pid): Use lwpid_of.
19759 (linux_event_pipe): New.
19760 (target_is_async_p): New.
19761 (delete_lwp): New.
19762 (handle_extended_wait): Use lwpid_of.
19763 (add_lwp): Don't set lwpid field.
19764 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19765 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19766 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19767 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19768 first. Adjust to linux_wait_for_event interface changes. Use
19769 lwpid_of.
19770 (linux_detach): Don't delete the main lwp here.
19771 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19772 (status_pending_p): Don't consider explicitly suspended lwps.
19773 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19774 pointer. Add OPTIONS argument. Change return type to int. Use
19775 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19776 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19777 pointer. Add status pointer argument. Return a pid instead of a
19778 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19779 changes. In non-stop mode, don't switch to a random thread.
19780 (linux_wait): Rename to...
19781 (linux_wait_1): ... this. Add target_options argument, and handle
19782 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19783 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19784 clean exit and signal exit code. Don't stop all threads in
19785 non-stop mode. In all-stop mode, only stop all threads when
19786 reporting a stop to GDB. Handle explicit thread stop requests.
19787 (async_file_flush, async_file_mark): New.
19788 (linux_wait): New.
19789 (send_sigstop): Use lwpid_of.
19790 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19791 interface changes. In non-stop mode, don't switch to a random
19792 thread.
19793 (linux_resume_one_lwp): Use lwpid_of.
19794 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19795 (linux_resume_one_thread): ... this. Handle resume_stop. In
19796 non-stop mode, don't look for pending flag in all threads.
19797 (resume_status_pending_p): Don't consider explicitly suspended
19798 threads.
19799 (my_waitpid): Reimplement. Emulate __WALL.
19800 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19801 Use lwpid_of.
19802 (sigchld_handler, linux_supports_non_stop, linux_async)
19803 (linux_start_non_stop): New.
19804 (linux_target_ops): Register linux_supports_non_stop, linux_async
19805 and linux_start_non_stop.
19806 (initialize_low): Install SIGCHLD handler.
19807 * thread-db.c (thread_db_create_event, find_one_thread)
19808 (thread_db_get_tls_address): Use lwpid_of.
19809 * win32-low.c (win32_detach): Adjust to use resume_kind.
19810 (win32_wait): Add `options' argument.
19811 * spu-low.c (spu_resume): Adjust to use resume_kind.
19812 (spu_wait): Add `options' argument.
19813
5b1c542e
PA
198142009-04-01 Pedro Alves <pedro@codesourcery.com>
19815
19816 Decouple target code from remote protocol.
19817
19818 * target.h (enum target_waitkind): New.
19819 (struct target_waitstatus): New.
19820 (struct target_ops) <wait>: Return an unsigned long. Take a
19821 target_waitstatus pointer instead of a char pointer.
19822 (mywait): Likewise.
19823 * target.c (mywait): Change prototype to return an unsigned long.
19824 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19825 * server.h (thread_from_wait, old_thread_from_wait): Delete
19826 declarations.
19827 (prepare_resume_reply): Change prototype to take a
19828 target_waitstatus.
19829 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19830 (last_status, last_ptid): New.
19831 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19832 pid instead of a signal.
19833 (attach_inferior): Remove "status" and "signal" parameters.
19834 Adjust.
19835 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19836 not as an address.
19837 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19838 (handle_v_requests, myresume): Remove "status" and "signal"
19839 parameters. Adjust.
19840 (handle_status): New.
19841 (main): Delete local `status'. Adjust.
19842 * remote-utils.c: Include target.h.
19843 (prepare_resume_reply): Change prototype to take a
19844 target_waitstatus. Adjust.
19845
19846 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19847 interface.
19848 * spu-low.c (spu_wait): Adjust.
19849 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19850 Delete.
19851 (win32_wait): Adjust.
19852
2bd7c093
PA
198532009-04-01 Pedro Alves <pedro@codesourcery.com>
19854
19855 * target.h (struct thread_resume): Delete leave_stopped member.
19856 (struct target_ops): Add a `n' argument to the `resume' callback.
19857 * server.c (start_inferior): Adjust.
19858 (handle_v_cont, myresume): Adjust.
19859 * linux-low.c (check_removed_breakpoint): Adjust to resume
19860 interface change, and to removed leave_stopped field.
19861 (resume_ptr): Delete.
19862 (struct thread_resume_array): New.
19863 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19864 resume interface change.
19865 (linux_continue_one_thread, linux_queue_one_thread)
19866 (resume_status_pending_p): Check if the resume field is NULL
19867 instead of checking the leave_stopped member.
19868 (linux_resume): Adjust to the target resume interface change.
19869 * spu-low.c (spu_resume): Adjust to the target resume interface
19870 change.
19871 * win32-low.c (win32_detach, win32_resume): Ditto.
19872
c35fafde
PA
198732009-04-01 Pedro Alves <pedro@codesourcery.com>
19874
19875 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19876 flag.
19877 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19878 pending.
19879 (linux_continue_one_thread): Only preserve the stepping flag if
19880 there's a pending breakpoint.
19881
0a59d50b
PA
198822009-03-31 Pedro Alves <pedro@codesourcery.com>
19883
19884 * server.c (main): After the inferior having exited, call
19885 remote_close before exiting gdbserver.
19886
f04c6d38
TJB
198872009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19888
19889 Fix size of FPSCR in Power 7 processors.
19890 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19891 (PPC_FEATURE_HAS_DFP): New #define.
19892 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19893 size of the FPSCR.
19894
78e5cee6
PA
198952009-03-23 Pedro Alves <pedro@codesourcery.com>
19896
19897 * server.c (handle_query) Whitespace and formatting.
19898
1b3f6016
PA
198992009-03-22 Pedro Alves <pedro@codesourcery.com>
19900
19901 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19902 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19903 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19904 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19905 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19906 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19907 Makefile.in, configure.ac: Fix whitespace throughout.
19908 * configure: Regenerate.
19909
a07b2135
PA
199102009-03-22 Pedro Alves <pedro@codesourcery.com>
19911
19912 * inferiors.c (find_inferior): Make it safe for the callback
19913 function to delete the currently iterated inferior.
19914
67cc2626
PA
199152009-03-22 Pedro Alves <pedro@codesourcery.com>
19916
19917 * Makefile.in (linuw_low_h): Move higher.
19918 (thread-db.o): Depend on $(linux_low_h).
19919
54a0b537
PA
199202009-03-17 Pedro Alves <pedro@codesourcery.com>
19921
19922 Rename "process" to "lwp" throughout.
19923
19924 * linux-low.c (all_processes): Rename to...
19925 (all_lwps): ... this.
19926 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19927 (add_process): Rename to ...
19928 (add_lwp): ... this. Adjust.
19929 (linux_create_inferior): Adjust.
19930 (linux_attach_lwp): Adjust.
19931 (linux_attach): Adjust.
19932 (linux_kill_one_process): Rename to ...
19933 (linux_kill_one_lwp): ... this. Adjust.
19934 (linux_kill): Adjust.
19935 (linux_detach_one_process): Rename to ...
19936 (linux_detach_one_lwp): ... this. Adjust.
19937 (linux_detach): Adjust.
19938 (check_removed_breakpoint): Adjust.
19939 (status_pending_p): Adjust.
19940 (linux_wait_for_process): Rename to ...
19941 (linux_wait_for_lwp): ... this. Adjust.
19942 (linux_wait_for_event): Adjust.
19943 (send_sigstop): Adjust.
19944 (wait_for_sigstop): Adjust.
19945 (stop_all_processes): Rename to ...
19946 (stop_all_lwps): ... this.
19947 (linux_resume_one_process): Rename to ...
19948 (linux_resume_one_lwp): ... this. Adjust.
19949 (linux_set_resume_request, linux_continue_one_thread)
19950 (linux_queue_one_thread, resume_status_pending_p)
19951 (usr_store_inferior_registers, regsets_store_inferior_registers)
19952 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19953 Adjust.
19954 * linux-low.h (get_process): Rename to ...
19955 (get_lwp): ... this. Adjust.
19956 (get_thread_process): Rename to ...
19957 (get_thread_lwp): ... this. Adjust.
19958 (get_process_thread): Rename to ...
19959 (get_lwp_thread): ... this. Adjust.
19960 (struct process_info): Rename to ...
19961 (struct lwp_info): ... this.
19962 (all_processes): Rename to ...
19963 (all_lwps): ... this.
19964 * proc-service.c (ps_lgetregs): Adjust.
19965 * thread-db.c (thread_db_create_event, find_one_thread)
19966 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19967
0b16c5cf
PA
199682009-03-14 Pedro Alves <pedro@codesourcery.com>
19969
19970 * server.c (handle_query): Handle "qAttached".
19971
32de4b9d
NS
199722009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19973
19974 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19975 GPLv3, update license URL.
19976
2aecd87f
DE
199772009-03-01 Doug Evans <dje@google.com>
19978
93efd302 19979 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19980 (server_h): Add gdb_signals.h.
19981 (signals.o): Update.
19982 * server.h (target_signal_from_host,target_signal_to_host_p)
19983 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19984
86b1f9c5
PM
199852009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19986
19987 * remote-utils.c (getpkt): Also generate remote-debug
19988 information if noack_mode is set.
19989
4aa995e1
PA
199902009-02-06 Pedro Alves <pedro@codesourcery.com>
19991
19992 * server.c (handle_query): Report qXfer:siginfo:read and
19993 qXfer:siginfo:write as supported and handle them.
19994 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19995 * linux-low.c (linux_xfer_siginfo): New.
19996 (linux_target_ops): Set it.
19997
62709adf
PA
199982009-01-26 Pedro Alves <pedro@codesourcery.com>
19999
20000 * server.c (gdbserver_usage): Mention --remote-debug.
20001 (main): Accept '--remote-debug' switch.
20002
aef93bd7
DE
200032009-01-18 Doug Evans <dje@google.com>
20004
20005 * regcache.c (new_register_cache): No need to check result of xcalloc.
20006 * server.c (handle_search_memory): Back out calls to xmalloc,
20007 result is checked and error is returned to user upon failure.
20008 (handle_query): Ditto. Add more checks for result of malloc.
20009 (handle_v_cont): Check result of malloc, report error back to
20010 user upon failure.
20011 (handle_v_run): Ditto. Call freeargv.
20012 * server.h (freeargv): Declare.
20013 * utils.c (freeargv): New fn.
20014
54363045
DE
200152009-01-15 Doug Evans <dje@google.com>
20016
f626972c
DE
20017 * gdbreplay.c (perror_with_name): Make arg const char *.
20018 * server.h (target_signal_to_name): Make return type const char *.
0842e787 20019 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 20020 * utils.c (perror_with_name): Make arg const char *.
54363045 20021
18aae699
PA
200222009-01-14 Pedro Alves <pedro@codesourcery.com>
20023
20024 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20025 when handling a EXIT_PROCESS_DEBUG_EVENT.
20026
ff703abe
JB
200272009-01-06 Joel Brobecker <brobecker@adacore.com>
20028
20029 * gdbreplay.c (gdbreplay_version): Update copyright year.
20030 * server.c (gdbserver_version): Likewise.
20031
f21cc1a2 200322009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
20033
20034 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 20035 (handle_extended_wait): Improve comment.
0e21c1ec 20036
bca929d3
DE
200372008-12-13 Doug Evans <dje@google.com>
20038
20039 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20040 * server.h (ATTR_MALLOC): New macro.
20041 (xmalloc,xcalloc,xstrdup): Declare.
20042 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20043 * inferiors.c: Ditto.
20044 * linux-low.c: Ditto.
20045 * mem-break.c: Ditto.
20046 * regcache.c: Ditto.
20047 * remote-utils.c: Ditto.
20048 * server.c: Ditto.
20049 * target.c: Ditto.
20050 * win32-low.c: Ditto.
20051
97438e3f
DE
200522008-12-12 Doug Evans <dje@google.com>
20053
896c7fbb
DE
20054 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20055 in debugging printf.
20056
97438e3f
DE
20057 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20058
e3b886f8
DE
200592008-12-09 Doug Evans <dje@google.com>
20060
20061 * linux-low.h (struct process_info): Delete member tid, unused.
20062 * thread-db.c (find_one_thread): Update.
20063 (maybe_attach_thread): Update.
20064
07e059b5
VP
200652008-12-02 Pedro Alves <pedro@codesourcery.com>
20066
889bf7c5
PA
20067 * target.h (struct target_ops): Add qxfer_osdata member.
20068 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20069 and dirent.h.
20070 (linux_qxfer_osdata): New functions.
20071 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20072 callback.
20073 * server.c (handle_query): Handle "qXfer:osdata:read:".
20074 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20075 (buffer_xml_printf): New functions.
20076 * server.h (struct buffer): New.
20077 (buffer_grow_str, buffer_grow_str0): New macros.
20078 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20079 (buffer_xml_printf): Declare.
07e059b5 20080
4cab47ab
DE
200812008-11-24 Doug Evans <dje@google.com>
20082
20083 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20084
f142445f
DJ
200852008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20086
20087 * server.c (handle_v_run): Always use the supplied argument list.
20088
d0107bb6 200892008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20090
d0107bb6
BW
20091 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20092 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20093
2c4ad781
TJB
200942008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20095
20096 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20097 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20098 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20099 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20100 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20101 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20102 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20103 XML target descriptions.
20104 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20105 when inferior is running on an ISA 2.05 or later processor. Add
20106 special case to return offset for full 64-bit slot of FPSCR when
20107 in 32-bits.
20108
dfb64f85
DJ
201092008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20110
20111 * Makefile.in (SFILES, clean): Added sparc64 files.
20112 (reg-sparc64.o, reg-sparc64.c): New.
20113 * configure.srv (sparc*-*-linux*): New configuration.
20114 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20115 syscall arguments for SPARC.
20116 (regsets_store_inferior_registers): Likewise.
20117 * linux-sparc-low.c: New file.
20118
66b6e1dd
DE
201192008-10-21 Doug Evans <dje@google.com>
20120
20121 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20122 (READLINE_DIR,READLINE_DEP): Delete.
20123 (INTERNAL_CFLAGS): Update.
20124 (LINTFLAGS): Update.
20125
9b710a42
PA
201262008-10-10 Pedro Alves <pedro@codesourcery.com>
20127
20128 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20129 whole argv from the last run, not just argv[0].
20130
5822d809
PA
201312008-09-08 Pedro Alves <pedro@codesourcery.com>
20132
20133 * regcache.c (new_register_cache): Return NULL if the register
20134 cache size isn't known yet.
20135 (free_register_cache): Avoid dereferencing a NULL regcache.
20136
74aac56f
DJ
201372008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20138
20139 * configure.srv: Merge MIPS and MIPS64.
20140
400b20f5
MR
201412008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20142
20143 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20144
677c5bb1
LM
201452008-08-18 Luis Machado <luisgpm@br.ibm.com>
20146
20147 * Makefile.in: Add required vsx dependencies.
20148
20149 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20150 Declare init_registers_powerpc_vsx32l.
20151 Declare init_registers_powerpc_vsx64l.
20152 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20153 (ppc_arch_setup): Check for VSX in hwcap.
20154 (ppc_fill_vsxregset): New function.
20155 (ppc_store_vsxregset): New function.
20156 Add new VSX entry in regset_info target_regsets.
20157
20158 * configure.srv: Add new VSX dependencies.
20159
a6f3e723
SL
201602008-08-12 Pedro Alves <pedro@codesourcery.com>
20161
20162 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20163 (remote_open): Set or clear transport_is_reliable.
20164 (putpkt_binary): Don't expect acks in noack mode.
20165 (getpkt): Don't send ack/nac in noack mode.
20166 * server.c (handle_general_set): Handle QStartNoAckMode.
20167 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20168 qSupported.
20169 (main): Reset noack_mode on every connection.
20170 * server.h (noack_mode): Declare.
20171
a417dc56
RW
201722008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20173
20174 * Makefile.in (GDBREPLAY_OBS): New variable.
20175 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20176
3221518c
UW
201772008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20178 Daniel Jacobowitz <dan@codesourcery.com>
20179
20180 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20181 (usr_store_inferior_registers): Likewise.
20182 (regsets_store_inferior_registers): Likewise.
20183
ec56be1b
PA
201842008-07-31 Rolf Jansen <rj@surtec.com>
20185 Pedro Alves <pedro@codesourcery.com>
20186
20187 * configure.ac: Check for memmem declaration.
20188 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20189 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20190 (disable_packet_qfThreadInfo): Unconditionally compile.
20191 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20192 * configure, config.in: Regenerate.
20193
2fe5e3ff
DE
201942008-07-28 Doug Kwan <dougkwan@google.com>
20195
20196 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20197 (linux_write_memory): Remove declaration of errno.
20198
836acd6d
UW
201992008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20200
20201 * linux-low.c (handle_extended_wait): Do not use "status"
20202 variable uninitialized.
20203
aeba519e
PA
202042008-07-07 Pedro Alves <pedro@codesourcery.com>
20205
20206 * server.c (handle_v_attach): Inhibit reporting dll changes.
20207
db42f210
PA
202082008-06-27 Pedro Alves <pedro@codesourcery.com>
20209
20210 * remote-utils.c (prepare_resume_reply): If requested, don't
20211 output "thread:TID" in the T stop reply.
20212
20213 * server.c (disable_packet_vCont, disable_packet_Tthread)
20214 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20215 (handle_query): If requested, disable support for qC, qfThreadInfo
20216 and qsThreadInfo.
20217 (handle_v_requests): If requested, disable support for vCont.
20218 (gdbserver_show_disableable): New.
20219 (main): Handle --disable-packet and --disable-packet=LIST.
20220
20221 * server.h (disable_packet_vCont, disable_packet_Tthread)
20222 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20223
8e4c5421
CD
202242008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20225
20226 * server.c (gdbserver_usage): Mention --version.
20227
6e23a804
DJ
202282008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20229
20230 * Makefile.in (gdbreplay.o): New rule.
20231
90aa6a40
JM
202322008-06-06 Joseph Myers <joseph@codesourcery.com>
20233
20234 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20235 message, not gdbserver.
20236
c16158bc 202372008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20238 Nathan Sidwell <nathan@codesourcery.com>
20239 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20240
20241 * acinclude.m4: Include ../../config/acx.m4.
20242 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20243 * configure, config.in: Regenerate.
20244 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20245 * server.c (gdbserver_version): Print PKGVERSION.
20246 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20247 (main): Adjust gdbserver_usage calls.
20248 * gdbreplay.c (version, host_name): Add declarations.
20249 (gdbreplay_version, gdbreplay_usage): New.
20250 (main): Accept --version and --help options.
20251
aeb75bf5
DJ
202522008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20253
20254 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20255 (arm_breakpoint_at): Handle Thumb.
20256 (the_low_target): Add comment.
20257
76b233dd
UW
202582008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20259
20260 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20261
08388c79
DE
202622008-05-09 Doug Evans <dje@google.com>
20263
a3c83fae
DE
20264 * server.h (decode_search_memory_packet): Declare.
20265 * remote-utils.c (decode_search_memory_packet): New fn.
20266 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20267 (handle_search_memory): New fn.
20268 (handle_query): Process qSearch:memory packets.
20269
bb9c3d36
UW
202702008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20271
20272 * regcache.c (registers_length): Remove.
20273 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20274 full register packet.
20275 * regcache.h (registers_length): Remove prototype.
20276 * server.h (PBUFSIZ): Define to 16384.
20277
7284e1be
UW
202782008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20279
20280 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20281 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20282 powerpc-64l.o, and powerpc-altivec64l.o.
20283 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20284 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20285 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20286 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20287 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20288 to srv_xmlfiles.
20289
20290 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20291 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20292 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20293 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20294 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20295 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20296 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20297 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20298 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20299 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20300 (clean): Update.
20301
20302 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20303 (init_registers_powerpc_32l): ... this new prototype.
20304 (init_registers_powerpc_32): Remove, replace by ...
20305 (init_registers_powerpc_altivec32l): ... this new prototype.
20306 (init_registers_powerpc_e500): Remove, replace by ...
20307 (init_registers_powerpc_e500l): ... this new prototype.
20308 (init_registers_ppc64): Remove, replace by ...
20309 (init_registers_powerpc_64l): ... this new prototype.
20310 (init_registers_powerpc_64): Remove, replace by ...
20311 (init_registers_powerpc_altivec64l): ... this new prototype.
20312 (ppc_num_regs): Set to 73.
20313 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20314 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20315 (ppc_cannot_store_register): Handle orig_r3 and trap.
20316 (ppc_arch_setup): Update init_registers_... calls.
20317 (ppc_fill_gregset): Handle orig_r3 and trap.
20318
20319 * inferiors.c (clear_inferiors): Reset current_inferior.
20320
fdc59709
PB
203212008-04-23 Paolo Bonzini <bonzini@gnu.org>
20322
889bf7c5
PA
20323 * acinclude.m4: Add override.m4.
20324 * configure: Regenerate.
fdc59709 20325
c9b2f845
UW
203262008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20327
20328 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20329 initial call to init_register_ppc64.
20330
550512b8
UW
203312008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20332
43aaf8b6
PA
20333 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20334 single powerpc*-*-linux* case.
550512b8
UW
20335 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20336
b6430ec3
UW
203372008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20338
20339 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20340 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20341 from reg_xmlfiles.
20342 * linux-ppc-low.c: Include <elf.h>.
20343 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20344 (ppc_hwcap): New global variable.
20345 (ppc_regmap): Remove __SPE__ #ifdef sections.
20346 (ppc_regmap_e500): New global variable.
20347 (ppc_cannot_store_register): Update __SPE__ special case.
20348 (ppc_get_hwcap): New function.
20349 (ppc_arch_setup): Use it to determine whether inferior supports
20350 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20351 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20352 Do not access registers if target does not support AltiVec.
20353 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20354 Do not access registers if target does not support SPE.
20355 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20356
52fa2412
UW
203572008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20358
20359 * linux-low.c (disabled_regsets, num_regsets): New.
20360 (use_regsets_p): Delete.
20361 (linux_wait_for_process): Clear disabled_regsets.
20362 (regsets_fetch_inferior_registers): Check and set it.
20363 (regsets_store_inferior_registers): Likewise.
20364 (linux_fetch_registers, linux_store_registers): Do not use
20365 use_regsets_p.
20366 (initialize_low): Allocate disabled_regsets.
20367
e28b3332
DJ
203682008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20369
20370 * Makefile.in (LIBOBJS): New.
20371 (OBS): Use LIBOBJS.
20372 (memmem.o): New rule.
20373 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20374 * configure: Regenerated.
20375
4536995d
UW
203762008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20377
20378 * server.c (handle_query): Never return "unsupported" for
20379 qXfer:features:read queries.
20380
221c031f
UW
203812008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20382
20383 * server.c (get_features_xml): Fix inverted condition.
20384 (handle_query): Always support qXfer:feature:read.
20385
ccd213ac
DJ
203862008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20387
20388 * server.c (wrapper_argv): New.
20389 (start_inferior): Handle wrapper_argv. If set, expect an extra
20390 trap.
20391 (gdbserver_usage): Document --wrapper.
20392 (main): Parse --wrapper.
20393
6fe305f7
UW
203942008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20395
20396 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20397 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20398 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20399 (ppc_set_pc): Likewise.
20400 (ppc_arch_setup): New function.
20401 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20402 of collect_register.
889bf7c5 20403 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20404
5b0a002e
UW
204052008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20406
20407 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20408 instead of linux-ppc64-low.o.
20409 * linux-ppc64-low.c: Remove file.
20410 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20411 (linux-ppc64-low.o): Remove rule.
20412
20413 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20414 (init_registers_powerpc_64): Likewise.
20415 (ppc_regmap): Conditionally define depending on __powerpc64__.
20416 (ppc_cannot_store_register): Do not special-case "fpscr" when
20417 compiled on __powerpc64__.
20418 (ppc_collect_ptrace_register): New function.
20419 (ppc_supply_ptrace_register): New function.
20420 (ppc_breakpoint): Change type to "unsigned int".
20421 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20422 (the_low_target): Conditionally provide initializers for the
889bf7c5 20423 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20424 collect_ptrace_register and supply_ptrace_register members.
20425
9b4b61c8
UW
204262008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20427
20428 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20429 * server.c (gdbserver_xmltarget): Define.
20430 (get_features_xml): Use it to replace "target.xml" and arch_string.
20431
20432 * configure.srv: Remove srv_xmltarget. Add XML files that were
20433 mentioned there to srv_xmlfiles instead. Remove conditional tests
20434 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20435 srv_xmlfiles and srv_regobj to include all possible choices.
20436 * configure.ac (srv_xmltarget): Remove.
20437 (srv_xmlfiles): Do not add "target.xml".
20438 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20439 checks for supplementary target information.
20440 * configure: Regenerate.
20441 * Makefile.in (XML_TARGET): Remove.
20442 (target.xml): Remove rule.
20443 (clean): Do not clean up target.xml.
20444 (.PRECIOUS): Do not mention target.xml.
20445
20446 * target.h (struct target_ops): Remove arch_string member.
20447 * linux-low.c (linux_arch_string): Remove.
20448 (linux_target_ops): Remove arch_string initializer.
20449 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20450 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20451 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20452 * spu-low.c (spu_arch_string): Remove.
20453 (spu_target_ops): Remove arch_string initializer.
20454 * win32-low.c (win32_arch_string): Remove.
20455 (win32_target_ops): Remove arch_string initializer.
20456 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20457 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20458 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20459
ee1a7ae4
UW
204602008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20461
20462 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20463 by collect_ptrace_register and supply_ptrace_register hooks.
20464 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20465 instead of checking for the_low_target.left_pad_xfer.
20466 (usr_store_inferior_registers): Use collect_ptrace_register callback
20467 instead of checking for the_low_target.left_pad_xfer.
20468
20469 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20470 (s390_supply_ptrace_register): Likewise.
20471 (s390_fill_gregset): Call s390_collect_ptrace_register.
20472 (the_low_target): Update.
20473
20474 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20475 (ppc_supply_ptrace_register): Likewise.
20476 (the_low_target): Update.
20477
20478 * linux-i386-low.c (the_low_target): Update.
20479 * linux-x86-64-low.c (the_low_target): Update.
20480
d61ddec4
UW
204812008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20482
20483 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20484 reg-s390.o and reg-s390x.o.
20485
20486 * linux-low.c (new_inferior): New global variable.
20487 (linux_create_inferior, linux_attach): Set it.
20488 (linux_wait_for_process): Call the_low_target.arch_setup after the
20489 target has stopped for the first time.
20490 (initialize_low): Do not call the_low_target.arch_setup.
20491
20492 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20493 (s390_set_pc): Likewise.
20494 (s390_arch_setup): New function.
20495 (the_low_target): Use s390_arch_setup as arch_setup routine.
20496
20497 * regcache.c (realloc_register_cache): New function.
20498 (set_register_cache): Call it for each existing regcache.
20499
d05b4ac3
UW
205002008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20501
20502 * server.h (init_registers): Remove prototype.
20503
20504 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20505 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20506 instead of init_registers ().
20507 * linux-arm-low.c (init_registers_arm): Add prototype.
20508 (init_registers_arm_with_iwmmxt): Likewise.
20509 (the_low_target): Add initializer for arch_setup field.
20510 * linux-cris-low.c (init_registers_cris): Add prototype.
20511 (the_low_target): Add initializer for arch_setup field.
20512 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20513 (the_low_target): Add initializer for arch_setup field.
20514 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20515 (the_low_target): Add initializer for arch_setup field.
20516 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20517 (the_low_target): Add initializer for arch_setup field.
20518 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20519 (the_low_target): Add initializer for arch_setup field.
20520 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20521 (the_low_target): Add initializer for arch_setup field.
20522 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20523 (init_registers_mips64_linux): Likewise.
20524 (the_low_target): Add initializer for arch_setup field.
20525 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20526 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20527 (the_low_target): Add initializer for arch_setup field.
20528 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20529 (init_registers_powerpc_64): Likewise.
20530 (the_low_target): Add initializer for arch_setup field.
20531 * linux-s390-low.c (init_registers_s390): Add prototype.
20532 (init_registers_s390x): Likewise.
20533 (the_low_target): Add initializer for arch_setup field.
20534 * linux-sh-low.c (init_registers_sh): Add prototype.
20535 (the_low_target): Add initializer for arch_setup field.
20536 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20537 (the_low_target): Add initializer for arch_setup field.
20538 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20539 (the_low_target): Add initializer for arch_setup field.
20540
20541 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20542 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20543 instead of init_registers ().
20544 * win32-arm-low.c (init_registers_arm): Add prototype.
20545 (the_low_target): Add initializer for arch_setup field.
20546 * win32-i386-low.c (init_registers_i386): Add prototype.
20547 (the_low_target): Add initializer for arch_setup field.
20548
20549 * spu-low.c (init_registers_spu): Add prototype.
20550 (initialize_low): Call initialie_registers_spu () instead of
20551 initialize_registers ().
20552
fd96d250
PA
205532008-02-19 Pedro Alves <pedro@codesourcery.com>
20554
20555 * server.c (handle_v_requests): When handling the vRun and vAttach
20556 packets, if already debugging a process, don't kill it. Return an
20557 error instead.
20558
d41b6bb4
DJ
205592008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20560
20561 * server.c (handle_query): Correct length check.
20562
5ac588cf
PA
205632008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20564
20565 * win32-low.c (do_initial_child_stuff): Add process handle
20566 parameter. Set current_process_handle and current_process_id from the
20567 parameters. Clear globals.
20568 (win32_create_inferior): Don't set current_process_handle and
20569 current_process_id here. Instead pass them on the call to
20570 do_initial_child_stuff.
20571 (win32_attach): Likewise.
20572 (win32_clear_inferiors): New.
20573 (win32_kill): Don't close the current process handle or the
20574 current thread handle here. Instead call win32_clear_inferiors.
20575 (win32_detach): Don't open a new handle to the process. Call
20576 win32_clear_inferiors.
20577 (win32_join): Don't rely on current_process_handle; open a new
20578 handle using the process id.
20579 (win32_wait): Call win32_clear_inferiors when the inferior process
20580 has exited.
20581
ecd7ecbc
DJ
205822008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20583
20584 * server.c (monitor_show_help): Add "exit".
20585
1525d545
MG
205862008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20587
ecd7ecbc 20588 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20589 (clean): Add reg-xtensa.c.
20590 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20591 * configure.srv (xtensa*-*-linux*) New target.
20592 * linux-xtensa-low.c: New.
20593 * xtensa-xtregs.c: New.
1525d545 20594
59a016f0
PA
205952008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20596
20597 * hostio.c: Don't include errno.h.
20598 (errno_to_fileio_errno): Move to hostio-errno.
20599 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20600 error number outputting to the target->hostio_last_error callback.
20601 (hostio_packet_error): Use FILEIO_EINVAL directly.
20602 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20603 calls to hostio_error.
20604 * hostio-errno.c: New.
20605 * server.h (hostio_last_error_from_errno): Declare.
20606 * target.h (target_ops): Add hostio_last_error member.
20607 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20608 as hostio_last_error handler.
889bf7c5 20609 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20610 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20611 (wince_hostio_last_error): New functions.
20612 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20613 as hostio_last_error handler.
20614 (win32_target_ops) [!_WIN32_WCE]: Register
20615 hostio_last_error_from_errno as hostio_last_error handler.
20616 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20617 (hostio-errno.o): New rule.
20618 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20619 * configure.srv (srv_hostio_err_objs): New variable. Default to
20620 hostio-errno.o.
20621 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20622 * configure: Regenerate.
20623
2d717e4f
DJ
206242008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20625
20626 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20627 (linux_kill, linux_detach): Clean up the process list.
20628 * remote-utils.c (remote_open): Improve port number parsing.
20629 (putpkt_binary, input_interrupt): Only send interrupts if the target
20630 is running.
20631 * server.c (extended_protocol): Make static.
20632 (attached): Define earlier.
20633 (exit_requested, response_needed, program_argv): New variables.
20634 (target_running): New.
20635 (start_inferior): Clear attached here.
20636 (attach_inferior): Set attached here.
20637 (require_running): Define.
20638 (handle_query): Use require_running and target_running. Implement
20639 "monitor exit".
20640 (handle_v_attach, handle_v_run): New.
20641 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20642 (gdbserver_usage): Update.
20643 (main): Redo argument parsing. Handle --debug and --multi. Handle
20644 --attach along with other options or after the port. Save
20645 program_argv. Support no initial program. Resynchronize
20646 communication with GDB after an error. Handle "monitor exit".
20647 Use require_running and target_running. Always allow the extended
20648 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20649 restart in extended mode.
20650 * README: Refer to the GDB manual. Update --attach usage.
20651
7407e2de
AS
206522007-12-20 Andreas Schwab <schwab@suse.de>
20653
20654 * linux-low.c (STACK_SIZE): Define.
20655 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20656 (linux_test_for_tracefork): Likewise.
20657
b65d95c5
DJ
206582007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20659
20660 * linux-low.c (linux_wait_for_event): Update messages. Do not
20661 reinsert auto-delete breakpoints.
20662 * mem-break.c (struct breakpoint): Change return type of handler to
20663 int.
20664 (set_breakpoint_at): Update handler type.
20665 (reinsert_breakpoint_handler): Return 1 instead of calling
20666 delete_breakpoint.
20667 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20668 setting a new one.
20669 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20670 * mem-break.h (set_breakpoint_at): Update handler type.
20671 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20672 * win32-low.c (auto_delete_breakpoint): New.
20673 (get_child_debug_event): Use it.
20674
4e799345
DJ
206752007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20676
20677 * configure.ac: Check for pread and pwrite.
20678 * hostio.c (handle_pread): Fall back to lseek and read.
20679 (handle_pwrite): Fall back to lseek and write.
20680 * config.in, configure: Regenerated.
20681
27524b67
DJ
206822007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20683
20684 * server.c (myresume): Add own_buf argument.
20685 (main): Update calls.
20686
a20d5e98
DJ
206872007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20688
20689 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20690 * remote-utils.c (remote_open): Do not call disable_async_io.
20691 (block_async_io): Delete.
20692 (unblock_async_io): Make static.
20693 (initialize_async_io): New.
20694 * server.c (handle_v_cont): Handle async I/O here.
20695 (myresume): Likewise. Move other common resume tasks here...
20696 (main): ... from here. Call initialize_async_io. Disable async
20697 I/O before the main loop.
20698 * server.h (initialize_async_io): Declare.
20699 (block_async_io, unblock_async_io): Delete prototypes.
20700 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20701
b79d787e
DJ
207022007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20703
20704 * remote-utils.c (readchar): Allow binary data in received messages.
20705
d97903b2
PA
207062007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20707
20708 * win32-low.c (attaching): New global.
20709 (win32_create_inferior): Clear the `attaching' global.
20710 (win32_attach): Set the `attaching' global.
20711 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20712 attaching. Only set a breakpoint at the entry point if not
20713 attaching.
20714
311de423
PA
207152007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20716
20717 * server.c (main): Don't report dll events on the initial
20718 connection on attaches.
20719
6c2d16d2
PA
207202007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20721
20722 * server.c (main): Relax numerical bases supported for the pid of
20723 the --attach command line argument.
20724
5ca906e6
PA
207252007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20726
20727 * win32-low.c (win32_attach): Call OpenProcess before
20728 DebugActiveProcess, not after. Add last error output to error
20729 call.
20730
9c6c8194
PA
207312007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20732
20733 * win32-low.c (win32_get_thread_context)
20734 (win32_set_thread_context): New functions.
20735 (thread_rec): Use win32_get_thread_context.
20736 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20737 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20738 field.
20739
4d5d1aaa
PA
207402007-12-03 Leo Zayas
20741 Pedro Alves <pedro_alves@portugalmail.pt>
20742
20743 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20744 global variables.
20745 (child_add_thread): Minor cleanup.
20746 (child_continue): Resume artificially suspended threads before
20747 calling ContinueDebugEvent.
20748 (suspend_one_thread): New.
20749 (fake_breakpoint_event): New.
20750 (get_child_debug_event): Change return type to int. Check here if
20751 gdb sent an interrupt request. If a soft interrupt was requested,
20752 fake a breakpoint event. Return 0 if there is no event to handle,
20753 and 1 otherwise.
20754 (win32_wait): Don't check here if gdb sent an interrupt request.
20755 Ensure there is a valid event to handle.
20756 (win32_request_interrupt): Add soft interruption method as last
20757 resort.
20758
c436e841
PA
207592007-12-03 Leo Zayas
20760 Pedro Alves <pedro_alves@portugalmail.pt>
20761
20762 * win32-low.h (win32_thread_info): Add descriptions to the
20763 structure members. Replace `suspend_count' counter by a
20764 `suspended' flag.
20765 * win32-low.c (thread_rec): Update condition of when to get the
20766 context from the inferior. Rely on ContextFlags being set if it
20767 has already been retrieved. Only suspend the inferior thread if
20768 we haven't already. Warn if that fails.
20769 (continue_one_thread): s/suspend_count/suspended/. Only call
20770 ResumeThread once. Warn if that fails.
20771
e7b5fa67
PA
207722007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20773
20774 * win32-low.c (win32_wait): Don't read from the inferior when it
20775 has already exited.
20776
a385171d
PA
207772007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20778
20779 * Makefile.in (win32_low_h): New variable.
20780 (win32-low.o): Add dependency on $(win32_low_h).
20781 (win32-arm-low.o, win32-i386-low.o): New rules.
20782
f80c84b3
DJ
207832007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20784
20785 * hostio.c: Correct copyright year.
20786
a6b151f1
DJ
207872007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20788
20789 * Makefile.in (OBS): Add hostio.o.
20790 (hostio.o): New rule.
20791 * server.h (handle_vFile): Declare.
20792 * hostio.c: New file.
20793 * server.c (handle_v_requests): Take packet_len and new_packet_len
20794 for binary packets. Call handle_vFile.
20795 (main): Update call to handle_v_requests.
20796
f9387fc3
DJ
207972007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20798
20799 * linux-low.c: Include <sched.h>.
20800
51c2684e
DJ
208012007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20802
20803 * linux-low.c (linux_tracefork_grandchild): New.
20804 (linux_tracefork_child): Use clone.
20805 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20806
75f83163
JB
208072007-10-31 Joel Brobecker <brobecker@adacore.com>
20808
20809 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20810
da5898ce
DJ
208112007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20812
20813 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20814
24a09b5f
DJ
208152007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20816
20817 * inferiors.c (change_inferior_id): Delete.
20818 (add_pid_to_list, pull_pid_from_list): New.
20819 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20820 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20821 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20822 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20823 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20824 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20825 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20826 (using_threads): Always set to 1.
20827 (handle_extended_wait): New.
20828 (add_process): Do not set TID.
20829 (linux_create_inferior): Set must_set_ptrace_flags.
20830 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20831 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20832 (linux_thread_alive): Rename TID argument to LWPID.
20833 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20834 (linux_wait_for_event): Do not use TID or check using_threads. Update
20835 call to dead_thread_notify. Call handle_extended_wait.
20836 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20837 (send_sigstop): Delete sigstop_sent.
20838 (wait_for_sigstop): Avoid TID.
20839 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20840 (linux_test_for_tracefork): New.
20841 (linux_lookup_signals): Use thread_db_active and
20842 linux_supports_tracefork_flag.
20843 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20844 * linux-low.h (get_process_thread): Avoid TID.
20845 (struct process_ifo): Move thread_known and tid to the end. Remove
20846 sigstop_sent.
20847 (linux_attach_lwp, thread_db_init): Update prototypes.
20848 * server.h (change_inferior_id): Delete prototype.
20849 (add_pid_to_list, pull_pid_from_list): New prototypes.
20850 * thread-db.c (thread_db_use_events): New.
20851 (find_first_thread): Rename to...
20852 (find_one_thread): ...this. Update callers and messages. Do not
20853 call fatal. Check thread_db_use_events. Do not call
20854 change_inferior_id or new_thread_notify.
20855 (maybe_attach_thread): Update. Do not call new_thread_notify.
20856 (thread_db_init): Set thread_db_use_events. Check use_events.
20857 * utils.c (fatal, warning): Correct message prefix.
20858
30ed0a8f
DJ
208592007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20860
20861 * Makefile.in (clean): Remove new files.
20862 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20863 (powerpc-64.o, powerpc-64.c): New rules.
20864 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20865 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20866 with SPE.
20867 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20868 SPE targets.
20869 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20870 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20871 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20872 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20873 (target_regsets): Add AltiVec and SPE register sets.
20874 * configure.ac: Check for AltiVec and SPE.
20875 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20876 (ppc_fill_vrregset, ppc_store_vrregset): New.
20877 (target_regsets): Add AltiVec register set.
20878 * configure: Regenerated.
20879
fd462a61
DJ
208802007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20881
20882 * linux-low.c (O_LARGEFILE): Define.
20883 (linux_read_memory): Use /proc/PID/mem.
20884 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20885 * configure, config.in: Regenerated.
20886
69f223ed
DJ
208872007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20888
20889 * linux-low.c (linux_wait_for_event): Do not pass signals while
20890 single-stepping.
20891
aec18585
PA
208922007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20893
20894 * win32-low.c (create_process): New.
20895 (win32_create_inferior): Use create_process instead of
20896 CreateProcess. If create_process failed retry appending an ".exe"
20897 suffix. Store the GetLastError result immediatelly after
20898 create_process calls and use it on the call to error.
20899
34d86ddd
PA
209002007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20901
20902 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20903
5a0e3bd0
JB
209042007-08-23 Joel Brobecker <brobecker@adacore.com>
20905
20906 * configure.ac: Switch license to GPLv3.
20907
f88c79e6
MS
209082007-08-01 Michael Snyder <msnyder@access-company.com>
20909
20910 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20911
6b3d9b83
PA
209122007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20913
20914 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20915 typedef.
20916 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20917 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20918 CloseToolhelp32Snapshot.
20919 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20920 CloseToolhelp32Snapshot.
20921
c588c53c
MS
209222007-07-27 Michael Snyder <michael.snyder@access-company.com>
20923
20924 * server.c (main): Check for inferior exit before main loop.
20925
aa0403d9
PA
209262007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20927
20928 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20929 instead of on tmp_desc.
20930
255e7678
DJ
209312007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20932 Daniel Jacobowitz <dan@codesourcery.com>
20933
20934 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20935 (add_thread): Minor cleanups.
20936 (clear_inferiors): Move lower in the file. Clear the DLL
20937 list.
20938 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20939 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20940 (xml_escape_text): New.
20941 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20942 for qSupported.
20943 (handle_v_cont): Report errors.
20944 (gdbserver_version): Update.
20945 (main): Correct size of own_buf. Do not report initial DLL events.
20946 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20947 (unloaded_dll, xml_escape_text): New.
20948 * win32-low.c (enum target_waitkind): Update comments.
20949 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20950 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20951 (win32_EnumProcessModules, win32_GetModuleInformation)
20952 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20953 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20954 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20955 (win32_Module32First, win32_Module32Next, load_toolhelp)
20956 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20957 (get_child_debug_event): Handle DLL events.
20958 (win32_wait): Likewise.
20959
0d37add9
DJ
209602007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20961
20962 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20963 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20964
45e2715e
PA
209652007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20966
20967 * win32-low.c (handle_output_debug_string): Ignore event if not
20968 waiting.
20969
c5674cf1
PA
209702007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20971
20972 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20973
2bbe3cc1
DJ
209742007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20975
20976 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20977
ae13219e
DJ
209782007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20979
20980 * inferiors.c (change_inferior_id): Add comment.
20981 * linux-low.c (check_removed_breakpoint): Add an early
20982 prototype. Improve debug output.
20983 (linux_attach): Doc update.
20984 (linux_detach_one_process, linux_detach): Clean up before releasing
20985 each process.
20986 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20987 * linux-low.h (struct process_info): Doc improvement.
20988 * mem-break.c (delete_all_breakpoints): New.
20989 * mem-break.h (delete_all_breakpoints): New prototype.
20990 * thread-db.c (find_first_thread): New.
20991 (thread_db_create_event): Call it instead of
20992 thread_db_find_new_threads. Clean up unused variables.
20993 (maybe_attach_thread): Remove first thread handling.
20994 (thread_db_find_new_threads): Use find_first_thread.
20995 (thread_db_get_tls_address): Likewise.
20996
4105de34
DJ
209972007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20998
20999 * thread-db.c (thread_db_find_new_threads): Add prototype.
21000 (thread_db_create_event): Check for the main thread before adding
21001 a new thread.
21002 (maybe_attach_thread): Only enable event reporting if TID == 0.
21003 (thread_db_get_tls_address): Check for new threads.
21004
2b876972
DJ
210052007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21006
21007 * linux-low.c (linux_create_inferior): Try execv before execvp.
21008 * spu-low.c (spu_create_inferior): Likewise.
21009
7a245884
DJ
210102007-06-13 Mike Frysinger <vapier@gentoo.org>
21011
21012 * linux-low.c (linux_create_inferior): Change execv to execvp.
21013 * spu-low.c (spu_create_inferior): Likewies.
21014
117ce543
DJ
210152007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21016
21017 * Makefile.in (clean): Clean new files instead of deleted ones.
21018 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21019 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21020 rules.
21021 * configure.srv: Specify XML files and new regformats for MIPS and
21022 MIPS64 GNU/Linux.
21023 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21024 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21025 an entry for the restart register.
21026 (mips_cannot_fetch_register, mips_cannot_store_register)
21027 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21028 register names to match the XML descriptions.
21029 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21030 restart register instead of $0.
21031
0e7f50da
UW
210322007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21033 Markus Deuling <deuling@de.ibm.com>
21034
21035 * remote-utils.c (decode_xfer_write): New function.
21036 * server.h (decode_xfer_write): Add prototype.
21037 * server.c (handle_query): Add PACKET_LEN argument. Support
21038 qXfer:spu:read and qXfer:spu:write packets.
21039 (main): Pass packet_len to handle_query.
21040 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21041 * target.h (target_ops): Add qxfer_spu.
21042
374c1d38
UW
210432007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21044
21045 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21046 accessing non-seekable spufs files.
21047
bb63802a
UW
210482007-05-16 Markus Deuling <deuling@de.ibm.com>
21049
889bf7c5 21050 * server.c (handle_query): Add reply for qC packet.
bb63802a 21051
7390519e
PA
210522007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21053 Leo Zayas <lerele@champenstudios@com>
21054
21055 * server.h (check_remote_input_interrupt_request): New function.
21056 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21057 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21058 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21059 (check_remote_input_interrupt_request): New function.
21060 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 21061 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
21062 winapi_GenerateConsoleCtrlEvent): New typedefs.
21063 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21064 to 250 ms.
21065 (win32_wait): Check for remote interrupt request
21066 with check_remote_input_interrupt_request.
21067 (win32_request_interrupt): New function.
21068 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21069
34b34921
PA
210702007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21071
21072 * win32-low.c (debug_registers_changed,
21073 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21074 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21075 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21076 (thread_rec): Get context using the low target.
21077 (child_add_thread): Call thread_added on the low target,
21078 which does the same thing.
21079 (regptr): Delete.
21080 (do_initial_child_stuff): Remove debug registers references.
21081 Set context using the low target. Resume threads after
21082 setting the contexts.
21083 (child_continue): Remove dead variable. Remove debug
21084 registers references.
21085 (child_fetch_inferior_registers): Go through the low target.
21086 (do_child_store_inferior_registers): Remove.
21087 (child_store_inferior_registers): Go through the low target.
21088 (win32_resume): Remove debug registers references.
21089 Set context using the low target.
21090 (handle_exception): Change return type to void. Don't record
21091 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21092 first chance exception.
889bf7c5 21093 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21094 goto loop. Always return after waiting for debug event.
21095 (win32_wait): Convert to switch statement. Handle spurious
21096 events.
21097
21098 * win32-i386-low.c (debug_registers_changed,
21099 debug_registers_used): New.
21100 (initial_stuff): Rename to ...
21101 (i386_initial_stuff): ... this. Clear debug registers
21102 state variables.
21103 (store_debug_registers): Delete.
21104 (i386_get_thread_context): New.
21105 (load_debug_registers): Delete.
21106 (i386_set_thread_context): New.
21107 (i386_thread_added): New.
21108 (single_step): Rename to ...
21109 (i386_single_step): ... this.
21110 (do_fetch_inferior_registers): Rename to ...
21111 (i386_fetch_inferior_register): ... this.
21112 (i386_store_inferior_register): New.
21113 (the_low_target): Adapt to new interface.
21114
21115 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21116 (arm_get_thread_context): New.
21117 (arm_set_thread_context): New.
21118 (regptr): New.
21119 (do_fetch_inferior_registers): Rename to ...
21120 (arm_fetch_inferior_register): ... this.
21121 (arm_store_inferior_register): New.
21122 (arm_wince_breakpoint): Reimplement as unsigned long.
21123 (arm_wince_breakpoint_len): Define.
21124 (the_low_target): Adapt to new interface.
21125
21126 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21127 load_debug_registers. Add get_thread_context, set_thread_context,
21128 thread_added and store_inferior_register. Rename
21129 fetch_inferior_registers to fetch_inferior_register.
21130 (regptr): Remove declaration.
21131
dd6953e1
PA
211322007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21133
21134 * linux-low.c (linux_detach): Change return type to int. Return 0.
21135 * spu-low.c (spu_detach): Likewise.
21136
444d6139
PA
211372007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21138
21139 * target.h (target_ops): Change return type of detach to int.
21140 Add join.
21141 (join_inferior): New.
21142 * server.c (main): Don't skip detach support on mingw32.
21143 If the inferior doesn't support detaching return error.
21144 Call join_inferior instead of using waitpid.
21145 * linux-low.c (linux_join): New.
21146 (linux_target_op): Add linux_join.
21147 * spu-low.c (spu_join): New.
21148 (spu_target_ops): Add spu_join.
21149 * win32-low.c (win32_detach): Adapt to new interface.
21150 Reopen current_process_handle before detaching. Issue a child
21151 resume before detaching.
21152 (win32_join): New.
21153 (win32_target_op): Add win32_join.
21154
1d5315fe
PA
211552007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21156
21157 * win32-low.c (win32-attach): Fix return value.
21158 * target.h (target_ops): Describe ATTACH return values.
21159
bf914831
PA
211602007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21161
21162 * win32-low.c (GETPROCADDRESS): Define.
21163 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21164 (winapi_DebugSetProcessKillOnExit): Likewise.
21165 (win32_create_inferior): Force usage of ansi CreateProcessA.
21166 (win32_attach): Use GETPROCADDRESS.
21167 (win32_detach): Likewise.
21168
f72f3e60
PA
211692007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21170
21171 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21172
ed50f18f
PA
211732007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21174
21175 * win32-low.c: Commit leftover changes from 2007-03-29.
21176
0c2ead7e
DJ
211772007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21178
21179 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21180 fields short instead of int. Add explicit padding.
21181 (i387_cache_to_fsave): Remove unnecessary casts.
21182 (i387_fsave_to_cache): Doc fix.
21183 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21184
73725ff3
DJ
211852007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21186
21187 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21188 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21189
d99f33d8
PA
211902007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21191
21192 * configure.srv (arm*-*-mingw32ce*): Move near the other
21193 arm targets.
21194
68070c10
PA
211952007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21196
2482afc6 21197 * configure.ac: Add errno checking.
68070c10
PA
21198 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21199 sys/file.h and malloc.h.
21200 (AC_CHECK_DECLS): Add perror.
21201 (srv_mingwce): Handle.
2482afc6 21202 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21203 win32-i386-low.o to srv_tgtobj.
21204 (i[34567]86-*-mingw*): Likewise.
21205 (arm*-*-mingw32ce*): Add case.
21206 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21207 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21208 [__MINGW32CE__] (strerror): New function.
21209 [__MINGW32CE__] (errno): Define to GetLastError.
21210 [__MINGW32CE__] (COUNTOF): New macro.
21211 (remote_open): Remove extra close call.
21212 * mem-break.c (delete_breakpoint_at): New function.
21213 * mem-break.h (delete_breakpoint_at): Declare.
21214 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21215 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21216 [USE_WIN32API] (read, write): Add char* casts.
21217 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21218 * server.h: Include wincecompat.h on Windows CE.
21219 [HAVE_ERRNO_H]: Check.
21220 (perror): Declare if not declared.
21221 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21222 (perror_with_name): Remove errno declaration.
21223 * wincecompat.h: New.
21224 * wincecompat.c: New.
21225 * win32-low.h: New.
21226 * win32-arm-low.c: New.
21227 * win32-i386-low.c: New.
21228 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21229 (OUTMSG2): Make it safe.
21230 (_T): New macro.
21231 (COUNTOF): New macro.
21232 (NUM_REGS): Get it from the low target.
21233 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21234 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21235 (thread_rec): Let low target handle debug registers.
21236 (child_add_thread): Likewise.
21237 (child_init_thread_list): Likewise.
21238 (continue_one_thread): Likewise.
21239 (regptr): New.
21240 (do_child_fetch_inferior_registers): Move to ...
21241 * win32-i386-low.c: ... here, and rename to ...
21242 (do_fetch_inferior_registers): ... this.
889bf7c5 21243 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21244 Go through the low target.
21245 (do_child_store_inferior_registers): Use regptr.
21246 (strwinerror): New function.
21247 (win32_create_inferior): Handle Windows CE.
21248 Use strwinerror instead of strerror on Windows error
21249 codes. Add program to the error output.
21250 Don't close the main thread handle on Windows CE.
21251 (win32_attach): Use coredll.dll on Windows CE.
21252 (win32_kill): Close current process and current
21253 thread handles.
21254 (win32_detach): Use coredll.dll on Windows CE.
21255 (win32_resume): Let low target handle debug registers, and
21256 step request.
21257 (handle_exception): Add/Remove initial breakpoint. Avoid
21258 non-existant WSTOPSIG on Windows CE.
21259 (win32_read_inferior_memory): Cast to remove warning.
21260 (win32_arch_string): Go through the low target.
21261 (initialize_low): Call set_breakpoint_data with the low
21262 target's breakpoint.
21263 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21264 FOP_REGNUM, mappings): Move to ...
21265 * win32-i386-low.c: ... here.
21266 * win32-low.c (win32_thread_info): Move to ...
21267 * win32-low.h: ... here.
21268 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21269 win32-arm-low.c and wincecompat.c.
21270 (all:): Add $EXEEXT.
21271 (install-only:): Likewise.
21272 (gdbserver:): Likewise.
21273 (gdbreplay:): Likewise.
21274 * config.in: Regenerate.
21275 * configure: Regenerate.
21276
41093d81
PA
212772007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21278
21279 * win32-low.c: Rename typedef thread_info to
21280 win32_thread_info throughout.
21281
544afa54
PA
212822007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21283
21284 * win32-i386-low.c: Rename to ...
21285 * win32-low.c: ... this.
21286 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21287 * Makefile.in: Likewise.
21288
bce7165d
PA
212892007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21290
21291 * remote-utils.c (monitor_output): Constify msg parameter.
21292 * server.h (monitor_output): Likewise.
21293 * win32-i386-low.c (handle_output_debug_string): New.
21294 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21295 handle_output_debug_string.
21296 (get_child_debug_event): Likewise.
21297
506c7aa0
DJ
212982007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21299
21300 * server.c (main): Correct strtoul check.
21301
42c81e2a
DJ
213022007-03-27 Jon Ringle <jon@ringle.org>
21303
21304 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21305
9453113a
DJ
213062007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21307
21308 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21309
64a69107
DJ
213102007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21311
21312 * terminal.h: Check HAVE_SGTTY_H.
21313
213142007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21315
21316 * remote-utils.c (remote_open): Print out the assigned port number.
21317
c74d0ad8
DJ
213182007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21319
21320 * remote-utils.c (monitor_output): New function.
21321 * server.c (debug_threads): Define here.
21322 (monitor_show_help): New function.
21323 (handle_query): Handle qRcmd.
21324 (main): Do not handle 'd' packet.
21325 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21326 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21327 of debug_threads.
21328
de7c3b4a
PA
213292007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21330
21331 * Makefile.in (EXEEXT): New.
21332 (clean): Use $(EXEEXT).
21333
ef57601b
PA
213342007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21335
21336 * target.h (target_ops): Rename send_signal to request_interrupt,
21337 and remove enum target_signal parameter.
21338 * linux-low.c (linux_request_interrupt): Rename from
21339 linux_send_signal, and always send SIGINT.
21340 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21341 and always send SIGINT.
21342 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21343 of send_signal.
21344 (input_interrupt): Likewise.
21345
820f2bda
PA
213462007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21347
21348 * server.c (get_features_xml): Check if target implemented
21349 arch_string.
21350 * win32-i386-low.c (win32_arch_string): New.
21351 (win32_target_ops): Add win32_arch_string as arch_string member.
21352
ab39bf24
UW
213532007-02-22 Markus Deuling <deuling@de.ibm.com>
21354
21355 * spu-low.c (spu_arch_string): New.
21356 (spu_target_ops): Add spu_arch_string.
21357
61ff6e04
DJ
213582007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21359
21360 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21361 * configure.ac: Do not check for terminal.h.
21362 * configure, config.in: Regenerated.
21363
fb1e4ffc
DJ
213642007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21365
21366 * Makefile.in (OBS): Add $(XML_BUILTIN).
21367 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21368 (clean): Update.
21369 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21370 (arm-with-iwmmxt.c): New.
21371 * config.in, configure: Regenerate.
21372 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21373 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21374 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21375 (arm*-*-linux*): Add iWMMXt and regset support.
21376 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21377 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21378 (arm_store_wmmxregset, target_regsets): New.
21379 * server.c (get_features_xml): Take annex argument. Check builtin
21380 XML documents.
21381 (handle_query): Handle multiple annexes.
21382
0f48aa01
DJ
213832007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21384
21385 * remote-utils.c [USE_WIN32API] (read, write): Define.
21386 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21387 write.
21388
23181151
DJ
213892007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21390
21391 * linux-i386-low.c (the_low_target): Set arch_string.
21392 * linux-x86-64-low.c (the_low_target): Likewise.
21393 * linux-low.c (linux_arch_string): New.
21394 (linux_target_ops): Add it.
21395 * linux-low.h (struct linux_target_ops): Add arch_string.
21396 * server.c (write_qxfer_response): Use const void * for DATA.
21397 (get_features_xml): New.
21398 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21399 * target.h (struct target_ops): Add arch_string method.
21400
9d606399
DJ
214012007-01-03 Denis Pilat <denis.pilat@st.com>
21402 Daniel Jacobowitz <dan@codesourcery.com>
21403
21404 * linux-low.c (linux_kill): Handle being called with no threads.
21405 * win32-i386-low.c (win32_kill): Likewise.
21406 (get_child_debug_event): Clear current_process_handle.
21407
214082006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21409 Daniel Jacobowitz <dan@codesourcery.com>
21410
21411 * remote-utils.c (remote_open): Check the type of specified
21412 serial port devices before opening them.
21413 * server.c (main): Kill the inferior if an error occurs during
21414 the first remote_open.
21415
a5e13d24
DJ
214162006-12-05 Markus Deuling <deuling@de.ibm.com>
21417
21418 * README: Update supported targets.
21419
186947f7
DJ
214202006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21421
21422 * Makefile.in (clean): Remove reg-mips64.c.
21423 (reg-mips64.c, reg-mips64.o): New rules.
21424 * configure.srv: Handle mips64. Include regset support for mips.
21425 * linux-mips-low.c (union mips_register): New.
21426 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21427 (mips_breakpoint, mips_breakpoint_at): Use int.
21428 (mips_collect_register, mips_supply_register)
21429 (mips_collect_register_32bit, mips_supply_register_32bit)
21430 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21431 (mips_store_fpregset, target_regsets): New.
21432 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21433
a13e2c95
UW
214342006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21435
21436 * configure.srv: Add target "spu*-*-*".
21437 * Makefile.in (clean): Remove reg-spu.c.
21438 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21439 * spu-low.c: New file.
21440
cb7283db
DJ
214412006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21442
21443 * configure.ac: Correct td_thr_tls_get_addr test.
21444 * configure: Regenerated.
21445
89be2091
DJ
214462006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21447
21448 * linux-low.c (linux_wait_for_event): Reformat. Use the
21449 pass_signals array.
21450 * remote-utils.c (decode_address_to_semicolon): New.
21451 * server.c (pass_signals, handle_general_set): New.
21452 (handle_query): Mention QPassSignals for qSupported.
21453 (main): Call handle_general_set.
21454 * server.h (pass_signals, decode_address_to_semicolon): New.
21455
000ef4f0
DJ
214562006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21457
21458 * server.c (handle_query): Correct error handling for read_auxv.
21459
b7149293
UW
214602005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21461
21462 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21463 and srv_linux_thread_db to yes.
21464 * linux-s390-low.c (s390_fill_gregset): New function.
21465 (target_regsets): Define data structure.
21466
dae5f5cf
DJ
214672006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21468
21469 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21470 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21471 * config.in, configure: Regenerated.
21472 * inferiors.c (gdb_id_to_thread): New function.
21473 (gdb_id_to_thread_id): Use it.
21474 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21475 * linux-low.h (struct process_info): Add th member.
21476 (thread_db_get_tls_address): New prototype.
21477 * remote-utils.c (decode_address): Make non-static.
21478 * server.c (handle_query): Handle qGetTLSAddr.
21479 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21480 * target.h (struct target_ops): Add get_tls_address.
21481 * thread-db.c (maybe_attach_thread): Save the thread handle.
21482 (thread_db_get_tls_address): New.
21483
32ca6d61
DJ
214842006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21485
21486 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21487 (linux_resume_one_process): Take a siginfo_t *. Update all
21488 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21489 (struct pending_signals): Add a siginfo_t.
21490 (linux_wait_for_process): Always set last_status.
21491 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21492 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21493 * linux-low.h (struct process_info): Add last_status.
21494
5ffff7c1
DJ
214952006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21496
21497 * remote-utils.c (try_rle): New function.
21498 (putpkt_binary): Use it.
21499
8695c747
DJ
215002006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21501
21502 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21503 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21504 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21505 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21506 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21507 point registers.
21508
290fadea
RS
215092006-08-08 Richard Sandiford <richard@codesourcery.com>
21510
21511 * server.c (terminal_fd): New variable.
21512 (old_foreground_pgrp): Likewise.
21513 (restore_old_foreground_pgrp): New function.
21514 (start_inferior): Record the terminal file descriptor in terminal_fd
21515 and its original foreground group in old_foreground_pgrp. Register
21516 restore_old_foreground_pgrp with atexit().
21517
9f2e1e63
DJ
215182006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21519
21520 * server.c (handle_query): Correct qPart to qXfer.
21521
b80864fb
DJ
215222006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21523
21524 * configure.ac: Check for more headers which are missing on
21525 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21526 * configure.srv: Add Cygwin and mingw32.
21527 * remote-utils.c: Don't include headers unconditionally which
21528 are missing on mingw32. Include <winsock.h> for mingw32.
21529 (remote_open): Adjust for mingw32 support. Flush
21530 standard error after writing to it.
21531 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21532 (unblock_async_io, enable_async_io, disable_async_io)
21533 (readchar, getpkt): Update for Winsock support.
21534 (prepare_resume_reply): Expect a protocol signal number.
21535 * server.c: Disable <sys/wait.h> on mingw32.
21536 (start_inferior): Adjust for mingw32 support. Flush
21537 standard error after writing to it.
21538 (attach_inferior): Likewise. Use protocol signal
21539 numbers.
21540 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21541 and names.
21542 * win32-i386-low.c: New file.
21543 * Makefile.in (XM_CLIBS): Set.
21544 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21545 (win32-i386-low.o): New dependency rule.
21546 * linux-low.c (linux_wait): Use target signal numbers.
21547 * target.h (struct target_ops): Doc fix.
21548 * server.h (target_signal_to_name): New prototype.
21549 * gdbreplay.c: Don't include headers unconditionally which
21550 are missing on mingw32. Include <winsock.h> for mingw32.
21551 (remote_close, remote_open): Adjust for Winsock support.
21552 * configure, config.in: Regenerated.
21553
0876f84a
DJ
215542006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21555
21556 * server.c (decode_xfer_read, write_qxfer_response): New.
21557 (handle_query): Take a packet length argument. Handle
21558 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21559 the qSupported response.
21560 (main): Update call to handle_query.
21561
01f9e8fa
DJ
215622006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21563
21564 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21565 (putpkt_binary): Renamed from putpkt and adjusted for binary
21566 data.
21567 (putpkt): New wrapper for putpkt_binary.
21568 (readchar): Don't mask off the high bit.
21569 (decode_X_packet): New function.
21570 * server.c (main): Call putpkt_binary if a handler sets the packet
21571 length. Save the length of the incoming packet. Handle 'X'.
21572 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21573
be2a5f71
DJ
215742006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21575
21576 * server.c (handle_query): Handle qSupported.
21577
ea025f5f
DJ
215782006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21579
21580 * remote-utils.c (all_symbols_looked_up): New variable.
21581 (look_up_one_symbol): Check it.
21582 * server.h (look_up_one_symbol): New declaration.
21583 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21584
9308fc88
DJ
215852006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21586
21587 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21588 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21589 (PTRACE_GET_THREAD_AREA): Define.
21590 (ps_get_thread_area): New function.
21591
52fb6437
NS
215922006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21593
21594 * configure.srv (m68k*-*-uclinux*): New target.
21595 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21596 (linux_resume_one_process): Remove extraneous cast.
21597 (linux_read_offsets): New.
21598 (linux_target_op): Add linux_read_offsets on mmuless systems.
21599 * server.c (handle_query): Add qOffsets logic.
21600 * target.h (struct target_ops): Add read_offsets.
21601
21b0f40c
DJ
216022006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21603
21604 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21605 (PTRACE_GET_THREAD_AREA): Define.
21606 (ps_get_thread_area): New function.
21607 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21608 (linux-x86-64-low.o): Update.
21609
0050a760
DJ
216102006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21611
21612 * configure.ac: Remove checks for prfpregset_t.
21613 * gdb_proc_service.h: New file.
21614 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21615 new "gdb_proc_service.h".
21616 * proc-service.c: Likewise.
21617 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21618 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21619 * Makefile.in (gdb_proc_service_h): Updated.
21620 * configure, config.in: Regenerated.
21621
b92a518e
DJ
216222006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21623
21624 * remote-utils.c (prepare_resume_reply): Move declaration
21625 of gdb_id_from_wait to the top of the block.
21626
545587ee
DJ
216272006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21628
21629 * linux-low.c (regsets_store_inferior_registers): Read the regset
21630 from the target before filling it.
21631
9db87ebd
DJ
216322006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21633
21634 * server.c (attach_inferior): Return SIGTRAP for a successful
21635 attach.
21636
dd24457d
DJ
216372006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21638
21639 * Makefile.in (OBS): Add version.o.
21640 (STAGESTUFF): Delete.
21641 (version.o): Add dependencies.
21642 (version.c): Replace rule.
21643 (clean): Remove version.c.
21644 * server.c (gdbserver_version): New.
21645 (gdbserver_usage): Use printf.
21646 (main): Handle --version and --help.
21647 * server.h (version, host_name): Add declarations.
21648
6f0f660e
EZ
216492005-12-23 Eli Zaretskii <eliz@gnu.org>
21650
889bf7c5
PA
21651 * linux-arm-low.c:
21652 * linux-arm-low.c:
21653 * inferiors.c:
21654 * i387-fp.h:
21655 * i387-fp.c:
21656 * gdbreplay.c:
21657 * regcache.c:
21658 * proc-service.c:
21659 * mem-break.h:
21660 * mem-break.c:
21661 * linux-x86-64-low.c:
21662 * linux-sh-low.c:
21663 * linux-s390-low.c:
21664 * linux-ppc64-low.c:
21665 * linux-ppc-low.c:
21666 * linux-mips-low.c:
21667 * linux-m68k-low.c:
21668 * linux-m32r-low.c:
21669 * linux-low.h:
21670 * linux-low.c:
21671 * linux-ia64-low.c:
21672 * linux-i386-low.c:
21673 * linux-crisv32-low.c:
21674 * thread-db.c:
21675 * terminal.h:
21676 * target.h:
21677 * target.c:
21678 * server.h:
21679 * server.c:
21680 * remote-utils.c:
21681 * regcache.h:
21682 * utils.c:
21683 * Makefile.in:
21684 * configure.ac:
6f0f660e
EZ
21685 * gdbserver.1: Add (C) after Copyright. Update the FSF
21686 address.
21687
9d1fb177
DJ
216882005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21689
21690 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21691 (arm_breakpoint_at): Recognize both breakpoints.
21692 (the_low_target): Use the correct breakpoint instruction.
21693
011a70c2
DJ
216942005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21695
21696 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21697 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21698 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21699 (the_low_target): Update.
21700
7fb85e41
AS
217012005-10-25 Andreas Schwab <schwab@suse.de>
21702
21703 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21704
21705 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21706 (ia64_num_regs): Reduce to 462.
21707
3db0444b
DJ
217082005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21709
21710 * acinclude.m4: Correct quoting.
21711 * aclocal.m4: Regenerated.
21712
21713 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21714 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21715 (thread_db_init): Call thread_db_err_str.
21716 * configure.ac: Check for TD_VERSION.
21717 * config.in, configure: Regenerated.
21718
bee0189a
DJ
217192005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21720
21721 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21722
e9d25b98
DJ
217232005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21724
21725 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21726 is not available. Define HAVE_PTRACE_GETREGS if it is.
21727 * config.in, configure: Regenerated.
21728 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21729 * linux-i386-low.c, linux-m68k-low.c: Update to use
21730 HAVE_PTRACE_GETREGS.
21731 * linux-low.c (regsets_fetch_inferior_registers)
21732 (regsets_store_inferior_registers): Only return 0 if we processed
21733 GENERAL_REGS.
21734 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21735 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21736
a06660f7
DJ
217372005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21738
21739 * inferiors.c (struct thread_info): Add gdb_id.
21740 (add_thread): Add gdb_id argument.
21741 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21742 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21743 calls to add_thread.
21744 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21745 * server.c (handle_query): Use thread_to_gdb_id.
21746 (handle_v_cont, main): Use gdb_id_to_thread_id.
21747 * server.h (add_thread): Update prototype.
21748 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21749 prototypes.
21750
5a1f5858
DJ
217512005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21752
21753 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21754 left-padded registers.
21755 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21756 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21757
e122f1f5
SE
217582005-07-01 Steve Ellcey <sje@cup.hp.com>
21759
21760 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21761 * configure: Regenerate.
21762 * config.in: Regenerate.
21763 * server.h (NEED_DECLARATION_STRERROR):
21764 Replace with !HAVE_DECL_STRERROR.
21765
d592fa2f
DJ
217662005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21767
21768 * linux-low.c (linux_wait, linux_send_signal): Don't test
21769 an unsigned long variable for > 0 if it could be MAX_ULONG.
21770 * server.c (myresume): Likewise.
21771 * target.c (set_desired_inferior): Likewise.
21772
ccbd4912
MK
217732005-06-13 Mark Kettenis <kettenis@gnu.org>
21774
21775 * configure.ac: Simplify and improve check for socklen_t.
21776 * configure, config.in: Regenerate.
21777
f450004a
DJ
217782005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21779
21780 * acconfig.h: Remove.
21781 * configure.ac: Add a test for socklen_t. Use three-argument
21782 AC_DEFINE throughout.
21783 * config.in: Regenerated using autoheader 2.59.
21784 * configure: Regenerated.
21785
21786 * gdbreplay.c (socklen_t): Provide a default.
21787 (remote_open): Use socklen_t.
21788 * remote-utils.c (socklen_t): Provide a default.
21789 (remote_open): Use socklen_t.
21790 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21791 unsigned char.
21792
21793 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21794 char for buffers.
21795 * linux-low.c (linux_read_memory, linux_write_memory)
21796 (linux_read_auxv): Likewise.
21797 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21798 (check_mem_write): Likewise.
21799 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21800 Likewise.
21801 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21802 (registers_from_string, register_data): Likewise.
21803 * server.c (handle_query, main): Likewise.
21804 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21805 (decode_M_packet): Likewise.
21806 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21807 * target.h (struct target_ops): Update read_memory, write_memory,
21808 and read_auxv.
21809 (read_inferior_memory, write_inferior_memory): Update.
21810 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21811 to unsigned char *.
21812 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21813 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21814 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21815 linux-s390-low.c, linux-sh-low.c: Update for changes in
21816 read_inferior_memory and the_low_target->breakpoint.
21817
eee84df1
DJ
218182005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21819
21820 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21821 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21822 * configure.srv: Add powerpc64-*-linux*.
21823 * linux-ppc64-low.c: New file.
21824
45b134e5
OF
218252005-05-23 Orjan Friberg <orjanf@axis.com>
21826
21827 * linux-cris-low.c: New file with support for CRIS.
21828 * linux-crisv32-low.c: Ditto for CRISv32.
21829 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21830 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21831 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21832 reg-crisv32.o, and reg-crisv32.c to make rules.
21833 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21834 recognized targets.
21835
48d93c75
UW
218362005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21837
21838 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21839 of sizeof (PTRACE_XFER_TYPE).
21840 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21841
e013ee27
OF
218422005-05-12 Orjan Friberg <orjanf@axis.com>
21843
889bf7c5 21844 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21845 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21846 pointers for hardware watchpoint support.
21847 * linux-low.h (struct linux_target_ops): Ditto.
21848 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21849 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21850 to linux_target_ops.
21851 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21852 reply packet.
21853 * server.c (main): Recognize 'Z' and 'z' packets.
21854
b0ded00b
UW
218552005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21856
21857 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21858 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21859 (the_low_target): Add new members.
21860
8643e2ad
DJ
218612005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21862
21863 * proc-service.c (ps_lgetregs): Search all_processes instead of
21864 all_threads.
21865
fc620387
DJ
218662005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21867
21868 * server.c (start_inferior): Change return type to int.
21869 (attach_inferior): Change sigptr to int *.
21870 (handle_v_cont, handle_v_requests): Change signal to int *.
21871 (main): Change signal to int.
21872
218732005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21874
21875 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21876 * configure.srv: Add m32r*-*-linux*.
21877 * linux-m32r-low.c: New file.
21878
e0e76420
DJ
218792005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21880
21881 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21882
a1928bad
DJ
218832005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21884
21885 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21886 Take unsigned long arguments for PIDs.
21887 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21888 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21889 (wait_for_sigstop, linux_resume_one_process)
21890 (regsets_fetch_inferior_registers, linux_send_signal)
21891 (linux_read_auxv): Likewise. Update the types of variables holding
21892 PIDs. Update format string specifiers.
21893 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21894 * remote-utils.c (prepare_resume_reply): Likewise.
21895 * server.c (cont_thread, general_thread, step_thread)
21896 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21897 unsigned long.
21898 (handle_query): Update format specifiers.
21899 (handle_v_cont, main): Use strtoul for thread IDs.
21900 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21901 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21902 (general_thread, step_thread, thread_from_wait)
21903 (old_thread_from_wait): Update.
21904 * target.h (struct thread_resume): Use unsigned long for THREAD.
21905 (struct target_ops): Use unsigned long for arguments to attach and
21906 thread_alive.
21907
dcdb98d2
DJ
219082005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21909
21910 * acinclude.m4: Include bfd/bfd.m4 directly.
21911 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21912 <agriffis@toolchain.org>.
21913 * aclocal.m4, configure: Regenerated.
21914
bec39cab
AC
219152005-01-07 Andrew Cagney <cagney@gnu.org>
21916
21917 * configure.ac: Rename configure.in, require autoconf 2.59.
21918 * configure: Re-generate.
21919
434c4c77
DJ
219202004-12-08 Daniel Jacobowitz <dan@debian.org>
21921
21922 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21923 LIBS when finished.
21924 * aclocal.m4: Regenerated.
21925 * configure: Regenerated.
21926
db1d3e1b
AS
219272004-11-21 Andreas Schwab <schwab@suse.de>
21928
21929 * linux-m68k-low.c (m68k_num_gregs): Define.
21930 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21931 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21932 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21933 (m68k_breakpoint_at): New. Add to the_low_target.
21934
21935 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21936 srv_linux_thread_db to yes.
21937
43360365
JB
219382004-10-20 Joel Brobecker <brobecker@gnat.com>
21939
21940 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21941 (ARCH_SET_FS): Likewise.
21942 (ARCH_GET_FS): Likewise.
21943 (ARCH_GET_GS): Likewise.
21944
fd500816
DJ
219452004-10-16 Daniel Jacobowitz <dan@debian.org>
21946
21947 * linux-i386-low.c (ps_get_thread_area): New.
21948 * linux-x86-64-low.c (ps_get_thread_area): New.
21949 * linux-low.c: Include <sys/syscall.h>.
21950 (linux_kill_one_process): Don't kill the first thread here.
21951 (linux_kill): Kill the first thread here.
21952 (kill_lwp): New function.
21953 (send_sigstop, linux_send_signal): Use it.
21954 * proc-service.c: Clean up #ifdefs.
21955 (fpregset_info): Delete.
21956 (ps_lgetregs): Update and enable implementation.
21957 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21958 implementations.
21959 * remote-utils.c (struct sym_cache, symbol_cache): New.
21960 (input_interrupt): Print a clearer message.
21961 (async_io_enabled): New variable.
21962 (enable_async_io, disable_async_io): Use it. Update comments.
21963 (look_up_one_symbol): Use the symbol cache.
21964 * thread-db.c (thread_db_look_up_symbols): New function.
21965 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21966
f6de3c42
DJ
219672004-10-16 Daniel Jacobowitz <dan@debian.org>
21968
21969 * configure.in: Test for -rdynamic.
21970 * configure: Regenerated.
21971 * Makefile (INTERNAL_LDFLAGS): New.
21972 (gdbserver, gdbreplay): Use it.
21973
2c0fc042
AC
219742004-09-02 Andrew Cagney <cagney@gnu.org>
21975
21976 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21977
075b3282
DJ
219782004-03-23 Daniel Jacobowitz <drow@mvista.com>
21979
21980 * linux-low.c (linux_wait): Clear all_processes list also.
21981
fa6a77dc
DJ
219822004-03-12 Daniel Jacobowitz <drow@mvista.com>
21983
21984 * linux-low.c: Include <errno.h>. Remove extern declaration of
21985 errno.
21986
6d782a97
DJ
219872004-03-12 Daniel Jacobowitz <drow@mvista.com>
21988
21989 * gdbreplay.c, server.h, utils.c: Update copyright years.
21990
3a7fb99b
DJ
219912004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21992
21993 * server.c (main): Print child status or termination signal from
21994 variable 'signal', not 'sig'.
21995
c3e735a6
DJ
219962004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21997
21998 * linux-low.c (linux_read_memory): Change return type to
21999 int. Check for and return error from ptrace().
22000 * target.c (read_inferior_memory): Change return type to int. Pass
22001 back return status from the_target->read_memory().
22002 * target.h (struct target_ops): Adapt *read_memory() prototype.
22003 Update comment.
22004 (read_inferior_memory): Adapt prototype.
22005 * server.c (main): Return an error packet if
22006 read_inferior_memory() returns an error.
22007
a59d1c82
DJ
220082004-03-04 Daniel Jacobowitz <drow@mvista.com>
22009
22010 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22011 Unify with other clean targets.
22012
dc3f8883
DJ
220132004-02-29 Daniel Jacobowitz <drow@mvista.com>
22014
22015 * server.c (handle_v_cont): Call set_desired_inferior.
22016
89a208da
DJ
220172004-02-29 Daniel Jacobowitz <drow@mvista.com>
22018
22019 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22020
62ea82f5
DJ
220212004-02-29 Daniel Jacobowitz <drow@mvista.com>
22022
22023 * linux-low.c (linux_wait): Unblock async I/O.
22024 (linux_resume): Block and enable async I/O.
22025 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22026 * server.h (block_async_io, unblock_async_io): Add prototypes.
22027
6910d122
DJ
220282004-02-29 Daniel Jacobowitz <drow@mvista.com>
22029
22030 * remote-utils.c (remote_open): Print a status notice after
22031 opening a TCP port.
22032 * server.c (attach_inferior): Print a status notice after
22033 attaching.
22034
220352004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
22036
22037 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22038
c89dc5d4
DJ
220392004-02-26 Daniel Jacobowitz <drow@mvista.com>
22040
22041 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22042 error packet.
22043 * server.c, target.h: Update copyright years.
22044
4b8dad4a
RM
220452004-02-25 Roland McGrath <roland@redhat.com>
22046
22047 * target.h (struct target_ops): New member `read_auxv'.
22048 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22049 * linux-low.c (linux_read_auxv): New function.
22050 (linux_target_ops): Initialize `read_auxv' member to that.
22051
d7446758
JB
220522004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22053
22054 Committed by Jim Blandy <jimb@redhat.com>.
22055
22056 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 22057 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
22058 instead of GPR_SIZE to distiguish s390 and s390x targets.
22059
5544ad89
DJ
220602004-01-31 Daniel Jacobowitz <drow@mvista.com>
22061
22062 * linux-low.c: Update copyright year.
22063 (check_removed_breakpoint): Clear pending_is_breakpoint.
22064 (linux_set_resume_request, linux_queue_one_thread)
22065 (resume_status_pending_p): New functions.
22066 (linux_continue_one_thread): Use process->resume.
22067 (linux_resume): Only resume threads if there are no pending events.
22068 * linux-low.h (struct process_info): Add resume request
22069 pointer.
22070
2a68b70e
DJ
220712004-01-30 Daniel Jacobowitz <drow@mvista.com>
22072
22073 * regcache.c (new_register_cache): Clear the allocated register
22074 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22075
64386c31
DJ
220762003-10-13 Daniel Jacobowitz <drow@mvista.com>
22077
22078 * linux-low.c (linux_resume): Take a struct thread_resume *
22079 argument.
22080 (linux_wait): Update call.
22081 (resume_ptr): New static variable.
22082 (linux_continue_one_thread): Renamed from
22083 linux_continue_one_process. Use resume_ptr.
22084 (linux_resume): Use linux_continue_one_thread.
22085 * server.c (handle_v_cont, handle_v_requests): New functions.
22086 (myresume): New function.
22087 (main): Handle 'v' case.
22088 * target.h (struct thread_resume): New type.
22089 (struct target_ops): Change argument of "resume" to struct
22090 thread_resume *.
22091 (myresume): Delete macro.
22092
c938e9b0
L
220932003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22094
22095 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22096 (uninstall): Support DESTDIR.
22097
7f313d07
BC
22098Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22099
22100 * configure.srv: Add xscale*linux copy of arm*linux entry.
22101
3b2fc2ea
DJ
221022003-07-24 Daniel Jacobowitz <drow@mvista.com>
22103
22104 * linux-arm-low.c (arm_reinsert_addr): New function.
22105 (the_low_target): Add arm_reinsert_addr.
22106
1c0a559e
MK
221072003-07-08 Mark Kettenis <kettenis@gnu.org>
22108
22109 * mem-break.c: Remove whitespace at end of file.
22110
43d5792c
DJ
221112003-06-28 Daniel Jacobowitz <drow@mvista.com>
22112
22113 * configure.in: Check whether we need to prototype strerror.
22114 * server.h: Optionally prototype strerror.
22115 * gdbreplay.c (perror_with_name): Use strerror.
22116 * linux-low.c (linux_attach_lwp): Use strerror.
22117 * utils.c (perror_with_name): Use strerror.
22118 * config.in, configure: Regenerated.
22119
c8a86edf
DJ
221202003-06-28 Daniel Jacobowitz <drow@mvista.com>
22121
22122 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22123 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22124
73d37363
DJ
221252003-06-20 Daniel Jacobowitz <drow@mvista.com>
22126
22127 * Makefile.in (SFILES): Update.
22128 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22129 low-sun3.c: Remove files.
22130
6ad8ae5c
DJ
221312003-06-17 Daniel Jacobowitz <drow@mvista.com>
22132
22133 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22134 (linux_detach_one_process, linux_detach): New functions.
22135 (linux_target_ops): Add linux_detach.
22136 * server.c (main): Handle 'D' packet.
22137 * target.h (struct target_ops): Add "detach" member.
22138 (detach_inferior): Define.
22139
1581182a
MK
221402003-06-13 Mark Kettenis <kettenis@gnu.org>
22141
22142 From Kelley Cook <kelleycook@wideopenwest.com>:
22143 * configure.srv: Accept i[34567]86 variants.
22144
e5379b03
DJ
221452003-06-05 Daniel Jacobowitz <drow@mvista.com>
22146
22147 * linux-low.c (linux_wait_for_event): Correct comment typos.
22148 (linux_resume_one_process): Call check_removed_breakpoint.
22149 (linux_send_signal): New function.
22150 (linux_target_ops): Add linux_send_signal.
22151 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22152 of kill.
22153 * target.h (struct target_ops): Add send_signal.
22154
2ff29de4
JB
221552003-05-29 Jim Blandy <jimb@redhat.com>
22156
22157 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22158 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22159 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22160 away part of the register's value.
22161
254787d4
DJ
221622003-03-26 Daniel Jacobowitz <drow@mvista.com>
22163
22164 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22165 (linux_wait_for_event, linux_init_signals): Likewise.
22166
94e10508
DJ
221672003-03-17 Daniel Jacobowitz <drow@mvista.com>
22168
22169 * configure.in: Check for stdlib.h.
22170 * configure: Regenerated.
22171 * config.in: Regenerated.
22172
4c0711e0
DJ
221732003-01-04 Andreas Schwab <schwab@suse.de>
22174
22175 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22176
ef66e766
AC
221772003-01-02 Andrew Cagney <ac131313@redhat.com>
22178
22179 * Makefile.in: Remove obsolete code.
22180
a1358604
DJ
221812002-11-20 Daniel Jacobowitz <drow@mvista.com>
22182
22183 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22184 defined(PT_FPR0_HI).
22185
23ce3b1c
DJ
221862002-11-17 Stuart Hughes <seh@zee2.com>
22187
22188 * linux-arm-low.c (arm_num_regs): Increase.
22189 (arm_regmap): Include status register.
22190
221912002-11-17 Daniel Jacobowitz <drow@mvista.com>
22192
22193 * linux-low.c (register_addr): Remove incorrect -1 check.
22194
a9fa9f7d
DJ
221952002-08-29 Daniel Jacobowitz <drow@mvista.com>
22196
22197 * linux-low.c (linux_create_inferior): Call setpgid. Return
22198 the new PID.
22199 (unstopped_p, linux_signal_pid): Remove.
22200 (linux_target_ops): Remove linux_signal_pid.
22201 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22202 global instead of target method.
22203 * target.h (struct target_ops): Remove signal_pid. Update comment
22204 for create_inferior.
22205 * server.c (signal_pid): New variable.
22206 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22207 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22208 (attach_inferior): Set signal_pid.
22209
17574093
DJ
222102002-08-23 Daniel Jacobowitz <drow@mvista.com>
22211
22212 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22213
222142002-08-20 Jim Blandy <jimb@redhat.com>
22215
22216 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22217 default for this.
22218
222192002-08-01 Andrew Cagney <cagney@redhat.com>
22220
22221 * Makefile.in: Make chill references obsolete.
22222
222232002-07-24 Kevin Buettner <kevinb@redhat.com>
22224
22225 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22226 * configure: Regenerate.
22227 * config.in: Regenerate.
22228
222292002-07-09 David O'Brien <obrien@FreeBSD.org>
22230
22231 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22232 (perror_with_name, remote_close, remote_open, expect, play): Static.
22233
222342002-07-04 Michal Ludvig <mludvig@suse.cz>
22235
4b8dad4a 22236 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22237 byte offsets instead of an array of indexes.
22238 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22239
222402002-06-13 Daniel Jacobowitz <drow@mvista.com>
22241
22242 * regcache.c: Add comment.
22243
222442002-06-11 Daniel Jacobowitz <drow@mvista.com>
22245
22246 * thread-db.c: New file.
22247 * proc-service.c: New file.
22248 * acinclude.m4: New file.
22249 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22250 proc-service.o, and thread-db.o.
22251 (linux-low.o): Add USE_THREAD_DB.
22252 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22253 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22254 * aclocal.m4: Regenerated.
22255 * config.in: Regenerated.
22256 * configure: Regenerated.
22257 * configure.in: Check for proc_service.h, sys/procfs.h,
22258 thread_db.h, and linux/elf.h headrs.
22259 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22260 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22261 Check for -lthread_db and thread support.
22262 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22263 PowerPC, and SuperH.
22264 * i387-fp.c: Constify arguments.
22265 * i387-fp.h: Likewise.
22266 * inferiors.c: (struct thread_info): Renamed from
22267 `struct inferior_info'. Remove PID member. Use generic inferior
22268 list header. All uses updated.
22269 (inferiors, signal_pid): Removed.
22270 (all_threads): New variable.
22271 (get_thread): Define.
22272 (add_inferior_to_list): New function.
22273 (for_each_inferior): New function.
22274 (change_inferior_id): New function.
22275 (add_inferior): Removed.
22276 (remove_inferior): New function.
22277 (add_thread): New function.
22278 (free_one_thread): New function.
22279 (remove_thread): New function.
22280 (clear_inferiors): Use for_each_inferior and free_one_thread.
22281 (find_inferior): New function.
22282 (find_inferior_id): New function.
22283 (inferior_target_data): Update argument type.
22284 (set_inferior_target_data): Likewise.
22285 (inferior_regcache_data): Likewise.
22286 (set_inferior_regcache_data): Likewise.
22287 * linux-low.c (linux_bp_reinsert): Remove.
22288 (all_processes, stopping_threads, using_thrads)
22289 (struct pending_signals, debug_threads, pid_of): New.
22290 (inferior_pid): Replace with macro.
22291 (struct inferior_linux_data): Remove.
22292 (get_stop_pc, add_process): New functions.
22293 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22294 Use add_process and add_thread.
22295 (linux_attach_lwp): New function, based on old linux_attach. Use
22296 add_process and add_thread. Set stop_expected for new threads.
22297 (linux_attach): New function.
22298 (linux_kill_one_process): New function.
22299 (linux_kill): Kill all LWPs.
22300 (linux_thread_alive): Use find_inferior_id.
22301 (check_removed_breakpoints, status_pending_p): New functions.
22302 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22303 Update. Use WNOHANG. Wait for cloned processes also. Update process
22304 struct for the found process.
22305 (linux_wait_for_event): New function.
22306 (linux_wait): Use it. Support LWPs.
22307 (send_sigstop, wait_for_sigstop, stop_all_processes)
22308 (linux_resume_one_process, linux_continue_one_process): New functions.
22309 (linux_resume): Support LWPs.
22310 (REGISTER_RAW_SIZE): Remove.
22311 (fetch_register): Use register_size instead. Call supply_register.
22312 (usr_store_inferior_registers): Likewise. Call collect_register.
22313 Fix recursive case.
22314 (regsets_fetch_inferior_registers): Improve error message.
22315 (regsets_store_inferior_registers): Add debugging.
22316 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22317 (unstopped_p, linux_signal_pid): New functions.
22318 (linux_target_ops): Add linux_signal_pid.
22319 (linux_init_signals): New function.
22320 (initialize_low): Call it. Initialize using_threads.
22321 * regcache.c (inferior_regcache_data): Add valid
22322 flag.
22323 (get_regcache): Fetch registers lazily. Add fetch argument
22324 and update all callers.
22325 (regcache_invalidate_one, regcache_invalidate): New
22326 functions.
22327 (new_register_cache): Renamed from create_register_cache.
22328 Return the new regcache.
22329 (free_register_cache): Change argument to a void *.
22330 (registers_to_string, registers_from_string): Call get_regcache
22331 with fetch flag set.
22332 (register_data): Make static. Pass fetch flag to get_regcache.
22333 (supply_register): Call get_regcache with fetch flag clear.
22334 (collect_register): Call get_regcache with fetch flag set.
22335 (collect_register_as_string): New function.
22336 * regcache.h: Update.
22337 * remote-utils.c (putpkt): Flush after debug output and use
22338 stderr.
22339 Handle input interrupts while waiting for an ACK.
22340 (input_interrupt): Use signal_pid method.
22341 (getpkt): Flush after debug output and use stderr.
22342 (outreg): Use collect_register_as_string.
22343 (new_thread_notify, dead_thread_notify): New functions.
22344 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22345 and general_thread.
22346 (look_up_one_symbol): Flush after debug output.
22347 * server.c (step_thread, server_waiting): New variables.
22348 (start_inferior): Don't use signal_pid. Update call to mywait.
22349 (attach_inferior): Update call to mywait.
22350 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22351 (main): Don't fetch/store registers explicitly. Use
22352 set_desired_inferior. Support proposed ``Hs'' packet. Update
22353 calls to mywait.
22354 * server.h: Update.
22355 (struct inferior_list, struct_inferior_list_entry): New.
22356 * target.c (set_desired_inferior): New.
22357 (write_inferior_memory): Constify.
22358 (mywait): New function.
22359 * target.h: Update.
22360 (struct target_ops): New signal_pid method.
22361 (mywait): Removed macro, added prototype.
22362
22363 * linux-low.h (regset_func): Removed.
22364 (regset_fill_func, regset_store_func): New.
22365 (enum regset_type): New.
22366 (struct regset_info): Add type field. Use new operation types.
22367 (struct linux_target_ops): stop_pc renamed to get_pc.
22368 Add decr_pc_after_break and breakpoint_at.
22369 (get_process, get_thread_proess, get_process_thread)
22370 (strut process_info, all_processes, linux_attach_lwp)
22371 (thread_db_init): New.
22372
22373 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22374 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22375 (the_low_target): Add new members.
22376 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22377 (i386_store_fpxregset): Constify.
22378 (target_regsets): Add new kind identifier.
22379 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22380 (i386_set_pc): Add debugging.
22381 (i386_breakpoint_at): New function.
22382 (the_low_target): Add new members.
22383 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22384 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22385 (mips_breakpoint_at): New.
22386 (the_low_target): Add new members.
22387 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22388 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22389 (the_low_target): Add new members.
22390 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22391 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22392 (the_low_target): Add new members.
22393 * linux-x86-64-low.c (target_regsets): Add new kind
22394 identifier.
22395
223962002-05-15 Daniel Jacobowitz <drow@mvista.com>
22397
22398 From Martin Pool <mbp@samba.org>:
22399 * server.c (gdbserver_usage): New function.
22400 (main): Call it.
22401
224022002-05-14 Daniel Jacobowitz <drow@mvista.com>
22403
22404 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22405 stop_at -> stop_pc.
22406
224072002-05-04 Andrew Cagney <ac131313@redhat.com>
22408
22409 * Makefile.in: Remove obsolete code.
22410
224112002-04-24 Michal Ludvig <mludvig@suse.cz>
22412
22413 * linux-low.c (regsets_fetch_inferior_registers),
22414 (regsets_store_inferior_registers): Removed cast to int from
22415 ptrace() calls.
22416 * regcache.h: Added declaration of struct inferior_info.
22417
224182002-04-20 Daniel Jacobowitz <drow@mvista.com>
22419
22420 * inferiors.c (struct inferior_info): Add regcache_data.
22421 (add_inferior): Call create_register_cache.
22422 (clear_inferiors): Call free_register_cache.
22423 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22424 * regcache.c (struct inferior_regcache_data): New.
22425 (registers): Remove.
22426 (get_regcache): New function.
22427 (create_register_cache, free_register_cache): New functions.
22428 (set_register_cache): Don't initialize the register cache here.
22429 (registers_to_string, registers_from_string, register_data): Call
22430 get_regcache.
22431 * regcache.h: Add prototypes.
22432 * server.h: Likewise.
22433
224342002-04-20 Daniel Jacobowitz <drow@mvista.com>
22435
22436 * mem-break.c: New file.
22437 * mem-break.h: New file.
22438 * Makefile.in: Add mem-break.o rule; update server.h
22439 dependencies.
22440 * inferiors.c (struct inferior_info): Add target_data
22441 member.
22442 (clear_inferiors): Free target_data member if set.
22443 (inferior_target_data, set_inferior_target_data): New functions.
22444 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22445 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22446 * linux-low.c (linux_bp_reinsert): New variable.
22447 (struct inferior_linux_data): New.
22448 (linux_create_inferior): Use set_inferior_target_data.
22449 (linux_attach): Likewise. Call add_inferior.
22450 (linux_wait_for_one_inferior): New function.
22451 (linux_wait): Call it.
22452 (linux_write_memory): Add const.
22453 (initialize_low): Call set_breakpoint_data.
22454 * linux-low.h (struct linux_target_ops): Add breakpoint
22455 handling members.
22456 * server.c (attach_inferior): Remove extra add_inferior
22457 call.
22458 * server.h: Include mem-break.h. Update inferior.c
22459 prototypes.
22460 * target.c (read_inferior_memory)
22461 (write_inferior_memory): New functions.
22462 * target.h (read_inferior_memory)
22463 (write_inferior_memory): Change macros to prototypes.
22464 (struct target_ops): Update comments. Add const to write_memory
22465 definition.
22466
224672002-04-11 Daniel Jacobowitz <drow@mvista.com>
22468
22469 * linux-low.c (usr_store_inferior_registers): Support
22470 registers which are allowed to fail to store.
22471 * linux-low.h (linux_target_ops): Likewise.
22472 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22473 (ppc_cannot_store_register): FPSCR may not be storable.
22474
224752002-04-09 Daniel Jacobowitz <drow@mvista.com>
22476
22477 * server.h: Include <string.h> if HAVE_STRING_H.
22478 * ChangeLog: Correct paths in last ChangeLog entry.
22479
224802002-04-09 Daniel Jacobowitz <drow@mvista.com>
22481
22482 * linux-low.h: Remove obsolete prototypes.
22483 (struct linux_target_ops): New.
22484 (extern the_low_target): New.
22485 * linux-low.c (num_regs, regmap): Remove declarations.
22486 (register_addr): Use the_low_target explicitly.
22487 (fetch_register): Likewise.
22488 (usr_fetch_inferior_registers): Likewise.
22489 (usr_store_inferior_registers): Likewise.
22490 * linux-arm-low.c (num_regs): Remove.
22491 (arm_num_regs): Define.
22492 (arm_regmap): Renamed from regmap, made static.
22493 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22494 made static.
22495 (arm_cannot_store_register): Renamed from cannot_store_register,
22496 made static.
22497 (the_low_target): New.
22498 * linux-i386-low.c (num_regs): Remove.
22499 (i386_num_regs): Define.
22500 (i386_regmap): Renamed from regmap, made static.
22501 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22502 made static.
22503 (i386_cannot_store_register): Renamed from cannot_store_register,
22504 made static.
22505 (the_low_target): New.
22506 * linux-ia64-low.c (num_regs): Remove.
22507 (ia64_num_regs): Define.
22508 (ia64_regmap): Renamed from regmap, made static.
22509 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22510 made static.
22511 (ia64_cannot_store_register): Renamed from cannot_store_register,
22512 made static.
22513 (the_low_target): New.
22514 * linux-m68k-low.c (num_regs): Remove.
22515 (m68k_num_regs): Define.
22516 (m68k_regmap): Renamed from regmap, made static.
22517 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22518 made static.
22519 (m68k_cannot_store_register): Renamed from cannot_store_register,
22520 made static.
22521 (the_low_target): New.
22522 * linux-mips-low.c (num_regs): Remove.
22523 (mips_num_regs): Define.
22524 (mips_regmap): Renamed from regmap, made static.
22525 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22526 made static.
22527 (mips_cannot_store_register): Renamed from cannot_store_register,
22528 made static.
22529 (the_low_target): New.
22530 * linux-ppc-low.c (num_regs): Remove.
22531 (ppc_num_regs): Define.
22532 (ppc_regmap): Renamed from regmap, made static.
22533 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22534 made static.
22535 (ppc_cannot_store_register): Renamed from cannot_store_register,
22536 made static.
22537 (the_low_target): New.
22538 * linux-s390-low.c (num_regs): Remove.
22539 (s390_num_regs): Define.
22540 (s390_regmap): Renamed from regmap, made static.
22541 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22542 made static.
22543 (s390_cannot_store_register): Renamed from cannot_store_register,
22544 made static.
22545 (the_low_target): New.
22546 * linux-sh-low.c (num_regs): Remove.
22547 (sh_num_regs): Define.
22548 (sh_regmap): Renamed from regmap, made static.
22549 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22550 made static.
22551 (sh_cannot_store_register): Renamed from cannot_store_register,
22552 made static.
22553 (the_low_target): New.
22554 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22555 (the_low_target): New.
22556
225572002-04-09 Daniel Jacobowitz <drow@mvista.com>
22558
22559 * Makefile.in: Add stamp-h target.
22560 * configure.in: Create stamp-h.
22561 * configure: Regenerated.
22562
225632002-04-09 Daniel Jacobowitz <drow@mvista.com>
22564
22565 * inferiors.c: New file.
22566 * target.c: New file.
22567 * target.h: New file.
22568 * Makefile.in: Add target.o and inferiors.o. Update
22569 dependencies.
22570 * linux-low.c (inferior_pid): New static variable,
22571 moved from server.c.
22572 (linux_create_inferior): Renamed from create_inferior.
22573 Call add_inferior. Return 0 on success instead of a PID.
22574 (linux_attach): Renamed from myattach.
22575 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22576 (linux_thread_alive): Renamed from mythread_alive.
22577 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22578 child dies.
22579 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22580 (regsets_store_inferior_registers): Correct error message.
22581 Add missing ``return 0''.
22582 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22583 (linux_store_registers): Renamed from store_inferior_registers.
22584 (linux_read_memory): Renamed from read_inferior_memory.
22585 (linux_write_memory): Renamed from write_inferior_memory.
22586 (linux_target_ops): New structure.
22587 (initialize_low): Call set_target_ops ().
22588 * remote-utils.c (unhexify): New function.
22589 (hexify): New function.
22590 (input_interrupt): Send signals to ``signal_pid''.
22591 * server.c (inferior_pid): Remove.
22592 (start_inferior): Update create_inferior call.
22593 (attach_inferior): Call add_inferior.
22594 (handle_query): New function.
22595 (main): Call handle_query for `q' packets.
22596 * server.h: Include "target.h". Remove obsolete prototypes.
22597 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22598
225992002-04-09 Daniel Jacobowitz <drow@mvista.com>
22600
22601 * Makefile.in: Add WARN_CFLAGS. Update configury
22602 dependencies.
22603 * configure.in: Check for <string.h>
22604 * configure: Regenerate.
22605 * config.in: Regenerate.
22606 * gdbreplay.c: Include needed system headers.
22607 (remote_open): Remove strchr prototype.
22608 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22609 * regcache.c (supply_register): Change buf argument to const void *.
22610 (supply_register_by_name): Likewise.
22611 (collect_register): Change buf argument to void *.
22612 (collect_register_by_name): Likewise.
22613 * regcache.h: Add missing prototypes.
22614 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22615 * server.c (handle_query): New function.
22616 (attached): New static variable, moved out of main.
22617 (main): Quiet longjmp clobber warnings.
22618 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22619 * utils.c (error): Remove NORETURN.
22620 (fatal): Likewise.