]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdbserver/ChangeLog
94e489939c1a4754f7e107bdb54097158ce82a4b
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
1 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * server.cc (handle_v_attach)
4 (handle_v_run)
5 (handle_v_kill): Make void.
6
7 2021-05-03 Tom Tromey <tromey@adacore.com>
8
9 PR build/27807:
10 * win32-i386-low.cc (i386_get_thread_context): Call
11 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
12
13 2021-04-30 Tom Tromey <tromey@adacore.com>
14
15 * win32-low.cc (do_initial_child_stuff): Update.
16 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
17 Change parameter type.
18 (win32_add_dll, win32_add_all_dlls)
19 (windows_nat::handle_load_dll): Remove.
20 (get_child_debug_event): Call dll_loaded_event.
21
22 2021-04-30 Tom Tromey <tromey@adacore.com>
23
24 * win32-low.cc (GETPROCADDRESS): Remove.
25 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
26 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
27 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
28 (win32_Wow64SetThreadContext): Remove.
29 (win32_set_thread_context, do_initial_child_stuff)
30 (win32_process_target::attach, win32_process_target::detach):
31 Update.
32 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
33 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
34 Remove.
35 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
36 (win32_GetModuleInformation, win32_GetModuleInformationA):
37 Remove.
38 (load_psapi): Remove.
39 (win32_add_dll, win32_process_target::request_interrupt): Update.
40 (initialize_low): Call initialize_loadable.
41
42 2021-04-14 Tom Tromey <tromey@adacore.com>
43
44 * win32-low.cc (windows_nat::handle_load_dll): Don't check
45 _WIN32_WCE.
46
47 2021-04-13 Pedro Alves <pedro@palves.net>
48
49 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
50
51 2021-04-13 Tom Tromey <tromey@adacore.com>
52
53 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
54 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
55
56 2021-04-13 Pedro Alves <pedro@palves.net>
57
58 * Makefile.in (SFILES): Remove hostio-errno.cc.
59 * configure: Regenerate.
60 * configure.ac (GDBSERVER_DEPFILES): No longer add
61 $srv_hostio_err_objs.
62 * configure.srv (srv_hostio_err_objs): Delete.
63 * hostio-errno.cc: Delete.
64 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
65 here.
66 * hostio.h (hostio_last_error_from_errno): Delete.
67 * target.cc (process_stratum_target::hostio_last_error): Delete.
68 * target.h (class process_stratum_target) <hostio_last_error>:
69 Delete.
70
71 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
74 * win32-low.h: Likewise.
75
76 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
77
78 * target.h (class process_stratum_target) <pid_to_exec_file>:
79 Constify the return type. Update the definition/references below.
80 * target.cc (process_stratum_target::pid_to_exec_file)
81 * linux-low.h (class linux_process_target) <pid_to_exec_file>
82 * linux-low.cc (linux_process_target::pid_to_exec_file)
83 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
84 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
85 * server.cc (handle_qxfer_exec_file)
86
87 2021-04-11 Eli Zaretskii <eliz@gnu.org>
88
89 * win32-low.cc (win32_add_dll): New function, with body almost
90 identical to what win32_add_all_dlls did. Accepts one argument;
91 if that is non-NULL, returns the file name of the DLL that is
92 loaded at the base address equal to that argument, or NULL if not
93 found. If the argument is NULL, add all the DLLs loaded by the
94 inferior to the list of solibs and return NULL.
95 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
96 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
97 failed to glean the file name of the DLL, call win32_add_dll to
98 try harder using the lpBaseOfDll member of the load-DLL event.
99
100 2021-03-30 Luis Machado <luis.machado@linaro.org>
101
102 * server.cc (handle_general_set, handle_query): Update variable
103 to bool and fix verification logic.
104
105 2021-03-24 Luis Machado <luis.machado@linaro.org>
106
107 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
108 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
109 nat/aarch64-mte-linux-ptrace.o.
110 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
111 (class aarch64_target) <supports_memory_tagging>
112 <fetch_memtags, store_memtags>: New method overrides.
113 (aarch64_target::supports_memory_tagging)
114 (aarch64_target::fetch_memtags)
115 (aarch64_target::store_memtags): New methods.
116
117 2021-03-24 Luis Machado <luis.machado@linaro.org>
118
119 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
120 (aarch64_store_mteregset): New function.
121 (aarch64_regsets): Add MTE register set entry.
122 (aarch64_sve_regsets): Add MTE register set entry.
123
124 2021-03-24 Luis Machado <luis.machado@linaro.org>
125
126 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
127 aarch64_linux_read_description.
128 (initialize_low_tracepoint): Likewise.
129 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
130 into account.
131 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
132 for MTE.
133 (aarch64_linux_read_description): Add mte_p parameter and update to
134 use it.
135 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
136 parameter.
137
138 2021-03-24 Luis Machado <luis.machado@linaro.org>
139
140 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
141
142 2021-03-24 Luis Machado <luis.machado@linaro.org>
143
144 * server.cc (test_memory_tagging_functions): New function.
145 (captured_main): Register test_memory_tagging_functions.
146
147 2021-03-24 Luis Machado <luis.machado@linaro.org>
148
149 * remote-utils.cc (decode_m_packet_params): Renamed from ...
150 (decode_m_packet): ... this, which now calls decode_m_packet_params.
151 Make char * param/return const char *.
152 (decode_M_packet): Use decode_m_packet_params and make char * param
153 const char *.
154 * remote-utils.h (decode_m_packet_params): New prototype.
155 (decode_m_packet): Constify char pointers.
156 (decode_M_packet): Likewise.
157 * server.cc (create_fetch_memtags_reply)
158 (parse_store_memtags_request): New
159 functions.
160 (handle_general_set): Handle the QMemTags packet.
161 (parse_fetch_memtags_request): New function.
162 (handle_query): Handle the qMemTags packet and advertise memory
163 tagging support.
164 (captured_main): Initialize memory tagging flag.
165 * server.h (struct client_state): Initialize memory tagging flag.
166 * target.cc (process_stratum_target::supports_memory_tagging)
167 (process_stratum_target::fetch_memtags)
168 (process_stratum_target::store_memtags): New methods.
169 * target.h: Include gdbsupport/byte-vector.h.
170 (class process_stratum_target) <supports_memory_tagging>
171 <fetch_memtags, store_memtags>: New class virtual methods.
172 (target_supports_memory_tagging): Define.
173
174 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
175
176 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
177 fields.
178 * dll.h (loaded_dll)
179 (unloaded_dll): Declare an overloaded version that takes a proc
180 parameter.
181 * dll.cc (loaded_dll)
182 (unloaded_dll): Implement the overloaded versions.
183 (clear_dlls): Clear all process' dll lists.
184 (all_dlls, dlls_changed): Remove the global variables.
185 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
186 list per proc.
187 * server.cc (handle_qxfer_libraries): Ditto.
188 (handle_v_attach): Ditto.
189 (captured_main): Ditto.
190
191 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * linux-low.cc (linux_process_target::filter_event): Return
194 void.
195 * linux-low.h (class linux_process_target) <filter_event>:
196 Return void.
197
198 2021-02-12 Tom Tromey <tromey@adacore.com>
199
200 * gdbreplay.cc (remote_desc): Remove.
201 (remote_desc_in, remote_desc_out): New globals.
202 (remote_close): Update.
203 (remote_open): Handle "-".
204 (remote_open): Update.
205 (logchar): Log to stderr.
206 (expect, play): Update.
207
208 2021-02-12 Tom Tromey <tromey@adacore.com>
209
210 * gdbreplay.cc (remote_open): Constify.
211
212 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
213
214 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
215 gnulib free replacement too.
216 * common-defs.h [USE_WIN32API](read, write): Undefine
217 gnulib versions before defining these macros.
218
219 2021-02-03 Pedro Alves <pedro@palves.net>
220
221 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
222 Discard step SIGTRAP, unless GDB wanted the thread to step.
223
224 2021-02-03 Pedro Alves <pedro@palves.net>
225
226 * server.cc (discard_queued_stop_replies): Don't ever discard the
227 notification at the head of the list.
228
229 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * ax.cc (bytecode_address_table): Make static.
232 * debug.cc (debug_file): Make static.
233 * linux-low.cc (stopping_threads): Make static.
234 (step_over_bkpt): Make static.
235 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
236 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
237 alloced_trace_state_variables, trace_buffer_ctrl,
238 tracing_start_time, tracing_stop_time, tracing_user_name,
239 tracing_notes, tracing_stop_note): Make static.
240
241 2021-01-20 Tom de Vries <tdevries@suse.de>
242
243 * linux-x86-low.cc (collect_register_i386): New function.
244 (x86_fill_gregset): Remove memset. Use collect_register_i386.
245
246 2021-01-07 Tom de Vries <tdevries@suse.de>
247
248 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
249 (LIBIBERTY_FOR_SHLIB): New var.
250 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
251 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
252
253 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
254
255 * debug.cc (debug_print_depth): New.
256
257 2021-01-01 Joel Brobecker <brobecker@adacore.com>
258
259 * server.cc (gdbserver_version): Update copyright year.
260 * gdbreplay.cc (gdbreplay_version): Likewise.
261
262 2020-12-16 Luis Machado <luis.machado@linaro.org>
263
264 * linux-aarch64-low.cc (address_significant): New function.
265 (aarch64_target::low_stopped_data_address): Handle the TBI.
266
267 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * Makefile.in (IPA_LIB): Include libiberty library.
270
271 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * server.cc (gdbserver_usage): Add missing option to usage text.
274 (gdbserver_show_disableable): Likewise.
275
276 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
277
278 * ax.cc: Fix indentation.
279 * dll.cc: Fix indentation.
280 * inferiors.h: Fix indentation.
281 * linux-low.cc: Fix indentation.
282 * linux-nios2-low.cc: Fix indentation.
283 * linux-ppc-ipa.cc: Fix indentation.
284 * linux-ppc-low.cc: Fix indentation.
285 * linux-x86-low.cc: Fix indentation.
286 * linux-xtensa-low.cc: Fix indentation.
287 * regcache.cc: Fix indentation.
288 * server.cc: Fix indentation.
289 * tracepoint.cc: Fix indentation.
290
291 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
292
293 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
294 AC_LANG_PROGRAM.
295 * configure: Re-generate.
296
297 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
298
299 * configure: Re-generate.
300
301 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
302
303 * configure: Re-generate.
304
305 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
306
307 * configure: Re-generate.
308
309 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
310
311 * configure: Re-generate.
312
313 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * configure.ac: Modernize.
316 * configure: Re-generate.
317
318 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
319
320 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
321 AC_CANONICAL_SYSTEM.
322 * configure: Re-generate.
323
324 2020-10-26 Pedro Alves <pedro@palves.net>
325
326 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
327 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
328 explicit type.
329
330 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * acinclude.m4: Update ptrace.m4 path.
333
334 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
335
336 * config.in: Re-generate.
337 * configure: Re-generate.
338
339 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * server.cc (handle_general_set): Don't use sprintf with
342 argument overlapping buffer.
343
344 2020-10-20 Tom Tromey <tromey@adacore.com>
345
346 PR gdb/26742:
347 * inferiors.cc (remove_thread): Clear current_thread before
348 freeing the thread.
349
350 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
351
352 * netbsd-low.cc (netbsd_tdesc): Remove.
353 (netbsd_add_process): Likewise.
354 (netbsd_process_target::create_inferior): Update.
355
356 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * linux-arc-low.cc (arc_linux_read_description): Release the
359 unique_ptr returned from arc_create_target_description.
360
361 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
364 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
365
366 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
367
368 * linux-low.cc (linux_process_target::handle_extended_wait):
369 Release the unique_ptr returned from allocate_target_description.
370 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
371 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
372 (tdesc_i386_linux_no_xml): Change type.
373 (x86_linux_read_description): Borrow pointer from unique_ptr
374 object.
375 (x86_target::get_ipa_tdesc_idx): Likewise.
376 (initialize_low_arch): Likewise.
377 * tdesc.cc (allocate_target_description): Update return type.
378
379 2020-10-07 Tom Tromey <tromey@adacore.com>
380
381 * server.cc (handle_search_memory): Remove dead code.
382
383 2020-10-07 Tom Tromey <tromey@adacore.com>
384
385 * server.cc (handle_search_memory_1): Remove.
386 (handle_search_memory): Use simple_search_memory.
387
388 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
389
390 * Makefile.in (COMPILE): Add CXXFLAGS.
391 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
392 (gdbserver$(EXEEXT)): Add CXXFLAGS.
393 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
394 ($(IPA_LIB)): Add CXXFLAGS.
395 (IPAGENT_COMPILE): Add CXXFLAGS.
396
397 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
398
399 * configure.srv: Support ARC architecture.
400 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
401 * linux-arc-low.cc: New file.
402
403 2020-10-07 Kamil Rytarowski <n54@gmx.com>
404
405 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
406 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
407 (netbsd_process_target::qxfer_libraries_svr4): Update.
408
409 2020-10-07 Kamil Rytarowski <n54@gmx.com>
410
411 * netbsd-low.cc: Fix whitespace formatting.
412 * netbsd-amd64-low.cc: Likewise.
413
414 2020-10-07 Kamil Rytarowski <n54@gmx.com>
415
416 * netbsd-low.cc (netbsd_process_target::read_memory)
417 (netbsd_process_target::write_memory): Update.
418
419 2020-10-07 Kamil Rytarowski <n54@gmx.com>
420
421 * netbsd-aarch64-low.cc: Add.
422 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
423 * configure.srv: Add aarch64*-*-netbsd*.
424
425 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
426
427 * regcache.cc (register_data): Remove unused "fetch" argument.
428
429 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * server.cc (handle_monitor_command): Handle "set
432 debug-event-loop".
433 (captured_main): Handle "--debug-event-loop".
434 (monitor_show_help): Mention new setting.
435 (gdbserver_usage): Mention new flag.
436
437 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
438
439 * linux-low.cc (linux_process_target::async): Pass name to
440 add_file_handler.
441 * remote-utils.cc (handle_accept_event): Likewise.
442 (remote_open): Likewise.
443
444 2020-10-01 Kamil Rytarowski <n54@gmx.com>
445
446 * netbsd-i386-low.cc: Add.
447 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
448 * configure.srv: Add i[34567]86-*-netbsd*.
449
450 2020-10-01 Kamil Rytarowski <n54@gmx.com>
451
452 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
453 (netbsd_target_regsets): Now const.
454 (the_low_target): Remove.
455 (class netbsd_amd64_target, the_netbsd_amd64_target)
456 (the_netbsd_target): Add.
457 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
458 low_arch_setup ().
459 (netbsd_process_target::fetch_registers)
460 (netbsd_process_target::store_registers, initialize_low): Update.
461 (the_netbsd_target): Remove.
462 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
463 (the_low_target, netbsd_tdesc): Remove.
464 (netbsd_process_target::get_regs_info)
465 (netbsd_process_target::low_arch_setup): Add.
466
467 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
468
469 * win32-low.cc: Remove local wow64_process variable.
470 * win32-low.h: Remove local wow64_process variable.
471
472 2020-09-18 Tom Tromey <tromey@adacore.com>
473
474 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
475 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
476 (netbsd_process_target::wait): Change type of target_options.
477 * win32-low.h (class win32_process_target) <wait>: Update.
478 * win32-low.cc (win32_process_target::wait): Update.
479 * target.h (class process_stratum_target) <wait>: Update.
480 (mywait): Update.
481 * target.cc (mywait, target_wait): Change type of "options".
482 * linux-low.h (class linux_process_target) <wait, wait_1>:
483 Update.
484 * linux-low.cc (linux_process_target::wait)
485 (linux_process_target::wait_1): Update.
486
487 2020-09-15 Tom Tromey <tromey@adacore.com>
488
489 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
490 (xmltarget_amd64_linux_no_xml): Now arrays.
491
492 2020-09-14 Tom Tromey <tromey@adacore.com>
493
494 * tracepoint.cc (eval_result_names): Now const.
495 * ax.cc (gdb_agent_op_names): Now const.
496
497 2020-09-10 Kamil Rytarowski <n54@gmx.com>
498
499 * netbsd-low.cc: Add.
500 * netbsd-low.h: Likewise.
501 * netbsd-amd64-low.cc: Likewise.
502 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
503 "netbsd-amd64-low.cc".
504 * configure.srv: Add x86_64-*-netbsd*.
505
506 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * server.cc (captured_main): Accept multiple `--selftest=`
509 options. Pass all `--selftest=` arguments to run_tests.
510
511 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
512
513 * configure, config.in: Regenerate.
514
515 2020-07-26 Eli Zaretskii <eliz@gnu.org>
516
517 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
518 When checking whether socklen_t type is defined, use ws2tcpip.h if
519 it is available and sys/socket.h isn't.
520 * configure: Regenerate.
521 * config.in: Regenerate.
522
523 2020-07-22 Pedro Alves <pedro@palves.net>
524
525 * inferiors.cc (switch_to_process): New, moved here from
526 thread-db.cc, and made extern.
527 * inferiors.h (switch_to_process): Declare.
528 * server.cc: Include "gdbsupport/scoped_restore.h".
529 (handle_qxfer_threads_proper): Now returns bool. Prepare to
530 access memory around target calls.
531 (handle_qxfer_threads): Handle errors.
532 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
533
534 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
535
536 * linux-low.cc (stopped_pids): Make static.
537
538 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * tdesc.cc (allocate_target_description): Add header comment.
541 (target_desc_deleter::operator()): New function.
542 * tdesc.h (struct target_desc): Declare as final.
543
544 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
545
546 * server.cc (handle_query): Use std::vector of
547 std::string for `qsupported` vector. Use separate
548 vector for unknowns.
549 * target.h (class process_stratum_target) <process_qsupported>:
550 Change parameters to array_view of const char *.
551 (target_process_qsupported): Remove `count` parameter.
552 * target.cc (process_stratum_target::process_qsupported): Change
553 parameters to array_view of const char *.
554 * linux-x86-low.cc (class x86_target) <process_qsupported>:
555 Likewise.
556
557 2020-06-29 Tom de Vries <tdevries@suse.de>
558
559 * ax.h: Include gdbsupport/debug_agent.h.
560
561 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * tdesc.cc (struct tdesc_compatible_info): New struct.
564 (tdesc_compatible_info_list): New function.
565 (tdesc_compatible_info_arch_name): New function.
566
567 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
568
569 Use std::list to stop pending signal instead of manually-created
570 linked list.
571 * linux-low.h: Include <list>.
572 (struct pending_signal): Move here from linux-low.cc.
573 (struct lwp_info) <pending_signals>
574 <pending_signals_to_report>: Update the type.
575 * linux-low.cc (struct pending_signals): Remove.
576 (linux_process_target::delete_lwp)
577 (linux_process_target::add_lwp)
578 (enqueue_one_deferred_signal)
579 (dequeue_one_deferred_signal)
580 (enqueue_pending_signal)
581 (linux_process_target::resume_one_lwp_throw)
582 (linux_process_target::thread_needs_step_over)
583 (linux_process_target::resume_one_thread)
584 (linux_process_target::proceed_one_lwp): Update the use of pending
585 signal list.
586
587 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
588
589 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
590 Remove.
591
592 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
593
594 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
595 * configure.srv: Remove mingw32ce cases.
596 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
597 * win32-low.h (to_back_slashes): Remove.
598 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
599
600 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
601
602 * Makefile.in (SFILES): linux-tile-low.cc.
603 * configure.srv: Remove tilegx case.
604 * linux-tile-low.cc: Remove.
605
606 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
607
608 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
609 * configure.srv: Remove m32r case.
610 * linux-m32r-low.cc: Remove.
611
612 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
613
614 * Makefile.in (SFILES): Remove linux-cris-low.c.
615 * configure.srv: Remove cris cases.
616 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
617
618 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
619
620 * Makefile.in (SFILES): Remove linux-bfin-low.c.
621 * configure.srv: Remove bfin case.
622 * linux-bfin-low.cc: Remove.
623 * linux-low.cc: Remove BFIN-conditional code.
624
625 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
626
627 * configure: Re-generate.
628 * configure.ac: Remove srv_qnx test.
629 * configure.srv: Remove nto case.
630 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
631 * remote-utils.c: Remove __QNX__-guarded code.
632
633 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
634
635 * configure: Re-generate.
636 * configure.ac: Remove srv_lynxos test.
637 * configure.srv: Remove lynxos cases.
638 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
639 Remove.
640
641 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
642
643 * README: Fix a few outdated or incoherent things.
644
645 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
646
647 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
648 (win32_clear_inferiors): Use open_process_used.
649 (get_child_debug_event): Likewise.
650
651 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
652
653 PR gdbserver/25893
654 * linux-low.cc (linux_process_target::create_inferior),
655 lynx-low.cc (lynx_process_target::create_inferior),
656 win32-low.cc (win32_process_target::create_inferior): Use
657 construct_inferior_arguments instead of stringify_argv
658 to get string representation which properly escapes
659 special characters.
660 * server.cc (handle_v_run): Just pass empty program arg
661 as such, since any further processing is now handled via
662 construct_inferior_arguments.
663
664 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
665
666 * nto-low.cc (nto_process_target::create_inferior): Pass
667 argv to spawnp function as char **.
668
669 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
670
671 * server.cc (captured_main), (handle_v_run): No longer
672 insert extra NULL element to args vector.
673
674 2020-05-23 Pedro Alves <palves@redhat.com>
675
676 * gdb-safe-ctype.h: New.
677
678 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
679
680 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
681 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
682 (ia64_target::low_breakpoint_at): Ditto.
683
684 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
685
686 * win32-i386-low.cc (i386_supports_z_point_type): Handle
687 Z_PACKET_HW_BP z_type.
688 (i386_insert_point): Handle raw_bkpt_type type.
689 (i386_remove_point): Likewise.
690
691 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
692
693 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
694 Add arch/i386.o.
695 * win32-arm-low.cc (arm_num_regs): New function.
696 (struct win32_target_ops): Use arm_num_regs.
697 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
698 processes.
699 (i386_get_thread_context): Likewise.
700 (i386_prepare_to_resume): Likewise.
701 (i386_thread_added): Likewise.
702 (i386_single_step): Likewise.
703 (i386_fetch_inferior_register): Likewise.
704 (i386_store_inferior_register): Likewise.
705 (i386_arch_setup): Likewise.
706 (i386_win32_num_regs): New function.
707 (struct win32_target_ops): Use i386_win32_num_regs.
708 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
709 processes.
710 (win32_require_context): Likewise.
711 (child_add_thread): Likewise.
712 (do_initial_child_stuff): Likewise.
713 (continue_one_thread): Likewise.
714 (win32_process_target::resume): Likewise.
715 (load_psapi): Likewise.
716 (win32_add_all_dlls): Likewise.
717 (maybe_adjust_pc): Likewise.
718 (win32_process_target::qxfer_siginfo): Likewise.
719 (initialize_low): Likewise.
720 * win32-low.h (struct win32_target_ops): Change num_regs to
721 callback function.
722
723 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
724
725 * configure.ac: Remove check for fs_base/gs_base in
726 user_regs_struct.
727 * configure: Re-generate.
728 * config.in: Re-generate.
729 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
730 x86_store_gregset): Adjust.
731
732 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
733
734 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
735 comparison.
736
737 2020-04-16 Tom Tromey <tromey@adacore.com>
738
739 * win32-low.cc (windows_nat::handle_access_violation): New
740 function.
741
742 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
743
744 * win32-low.cc (get_child_debug_event): Fix format string warning.
745
746 2020-04-13 Tom Tromey <tom@tromey.com>
747
748 * server.h (gdb_fildes_t): Remove typedef.
749 * remote-utils.c (remote_desc, list_desc): Now int.
750 (INVALID_DESCRIPTOR): Remove.
751 (gdb_connected, remote_close)
752 (check_remote_input_interrupt_request): Update.
753 * utils.h (pfildes): Don't declare.
754 * utils.c (pfildes): Remove.
755
756 2020-04-13 Tom Tromey <tom@tromey.com>
757
758 * server.h (handle_serial_event, handle_target_event): Update.
759 * server.c: Don't call initialize_event_loop.
760 (keep_processing_events): New global.
761 (handle_serial_event): Return void. Set keep_processing_events.
762 (handle_target_event): Return void.
763 (start_event_loop): Move from event-loop.c. Rewrite.
764 * remote-utils.c (handle_accept_event): Return void.
765 (reset_readchar): Use delete_timer.
766 (process_remaining): Return void.
767 (reschedule): Use create_timer.
768 * event-loop.h: Remove.
769 * event-loop.cc: Remove.
770 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
771
772 2020-04-13 Tom Tromey <tom@tromey.com>
773
774 * server.c (invoke_async_signal_handlers)
775 (check_async_event_handlers, flush_streams, gdb_select): New
776 functions.
777
778 2020-04-13 Tom Tromey <tom@tromey.com>
779
780 * configure: Rebuild.
781 * config.in: Rebuild.
782
783 2020-04-08 Tom Tromey <tromey@adacore.com>
784
785 PR gdb/22992
786 * win32-low.c (child_continue): Call matching_pending_stop.
787 (get_child_debug_event): Call fetch_pending_stop. Push pending
788 stop when needed.
789
790 2020-04-08 Tom Tromey <tromey@adacore.com>
791
792 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
793 (win32_process_target::supports_stopped_by_sw_breakpoint):
794 Declare.
795 * win32-low.c (win32_supports_z_point_type): Always handle
796 Z_PACKET_SW_BP.
797 (win32_insert_point): Call insert_memory_breakpoint when needed.
798 (win32_remove_point): Call remove_memory_breakpoint when needed.
799 (win32_process_target::stopped_by_sw_breakpoint)
800 (win32_process_target::supports_stopped_by_sw_breakpoint): New
801 methods.
802 (win32_target_ops): Update.
803 (maybe_adjust_pc): New function.
804 (win32_wait): Call maybe_adjust_pc.
805
806 2020-04-08 Tom Tromey <tromey@adacore.com>
807
808 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
809 field.
810 * win32-i386-low.c (the_low_target): Update.
811 * win32-arm-low.c (the_low_target): Update.
812
813 2020-04-08 Tom Tromey <tromey@adacore.com>
814
815 * win32-low.h (win32_process_target::read_pc)
816 (win32_process_target::write_pc): Declare.
817 * win32-low.c (win32_process_target::read_pc)
818 (win32_process_target::write_pc): New methods.
819 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
820 functions.
821 (the_low_target): Update.
822 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
823 functions.
824 (the_low_target): Update.
825
826 2020-04-08 Tom Tromey <tromey@adacore.com>
827
828 * win32-low.c (win32_kill, get_child_debug_event): Use
829 wait_for_debug_event.
830
831 2020-04-08 Tom Tromey <tromey@adacore.com>
832
833 * win32-low.c (child_continue): Call continue_last_debug_event.
834
835 2020-04-08 Tom Tromey <tromey@adacore.com>
836
837 * win32-low.c (handle_exception): Remove.
838 (windows_nat::handle_ms_vc_exception): New function.
839 (get_child_debug_event): Add "continue_status" parameter.
840 Update.
841 (win32_wait): Update.
842
843 2020-04-08 Tom Tromey <tromey@adacore.com>
844
845 * win32-low.c (windows_nat::handle_load_dll): Rename from
846 handle_load_dll. No longer static.
847 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
848 No longer static.
849
850 2020-04-08 Tom Tromey <tromey@adacore.com>
851
852 * win32-low.c (handle_output_debug_string): Add parameter. Change
853 return type.
854 (win32_kill, get_child_debug_event): Update.
855
856 2020-04-08 Tom Tromey <tromey@adacore.com>
857
858 * win32-low.c (current_process_handle, current_process_id)
859 (main_thread_id, last_sig, current_event, siginfo_er): Move to
860 nat/windows-nat.c.
861
862 2020-04-08 Tom Tromey <tromey@adacore.com>
863
864 * win32-low.c (get_image_name): Remove.
865 (handle_load_dll): Update.
866
867 2020-04-08 Tom Tromey <tromey@adacore.com>
868
869 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
870 No longer static. Change parameters.
871 (child_add_thread, child_fetch_inferior_registers)
872 (child_store_inferior_registers, win32_resume)
873 (win32_get_tib_address): Update.
874
875 2020-04-08 Tom Tromey <tromey@adacore.com>
876
877 * win32-low.h (struct win32_target_ops): Use qualified names where
878 needed.
879 * win32-i386-low.c: Add "using namespace".
880 * win32-low.c: Add "using namespace".
881 * win32-arm-low.c: Add "using namespace".
882
883 2020-04-08 Tom Tromey <tromey@adacore.com>
884
885 * win32-low.c (delete_thread_info): Don't call CloseHandle.
886
887 2020-04-08 Tom Tromey <tromey@adacore.com>
888
889 * win32-low.c (win32_require_context, suspend_one_thread): Use
890 windows_thread_info::suspend.
891 (continue_one_thread): Use windows_thread_info::resume.
892 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
893
894 2020-04-08 Tom Tromey <tromey@adacore.com>
895
896 * win32-i386-low.c (update_debug_registers)
897 (i386_prepare_to_resume, i386_thread_added): Update.
898
899 2020-04-08 Tom Tromey <tromey@adacore.com>
900
901 * win32-low.c (child_add_thread): Use new.
902 (delete_thread_info): Use delete.
903
904 2020-04-08 Tom Tromey <tromey@adacore.com>
905
906 * win32-low.h (struct windows_thread_info): Remove.
907
908 2020-04-08 Tom Tromey <tromey@adacore.com>
909
910 * win32-low.h (struct windows_thread_info): Rename from
911 win32_thread_info. Remove typedef.
912 (struct win32_target_ops, win32_require_context): Update.
913 * win32-low.c (win32_get_thread_context)
914 (win32_set_thread_context, win32_prepare_to_resume)
915 (win32_require_context, thread_rec, child_add_thread)
916 (delete_thread_info, continue_one_thread)
917 (child_fetch_inferior_registers, child_store_inferior_registers)
918 (win32_resume, suspend_one_thread, win32_get_tib_address):
919 Update.
920 * win32-i386-low.c (update_debug_registers)
921 (win32_get_current_dr, i386_get_thread_context)
922 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
923 (i386_fetch_inferior_register, i386_store_inferior_register):
924 Update.
925 * win32-arm-low.c (arm_get_thread_context)
926 (arm_fetch_inferior_register, arm_store_inferior_register):
927 Update.
928
929 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
930
931 * linux-low.h (struct linux_target_ops): Remove.
932 (the_low_target): Remove.
933 * linux-x86-low.cc (the_low_target): Remove.
934 * linux-aarch64-low.cc (the_low_target): Ditto.
935 * linux-arm-low.cc (the_low_target): Ditto.
936 * linux-bfin-low.cc (the_low_target): Ditto.
937 * linux-cris-low.cc (the_low_target): Ditto.
938 * linux-crisv32-low.cc (the_low_target): Ditto.
939 * linux-ia64-low.cc (the_low_target): Ditto.
940 * linux-m32r-low.cc (the_low_target): Ditto.
941 * linux-m68k-low.cc (the_low_target): Ditto.
942 * linux-mips-low.cc (the_low_target): Ditto.
943 * linux-nios2-low.cc (the_low_target): Ditto.
944 * linux-ppc-low.cc (the_low_target): Ditto.
945 * linux-riscv-low.cc (the_low_target): Ditto.
946 * linux-s390-low.cc (the_low_target): Ditto.
947 * linux-sh-low.cc (the_low_target): Ditto.
948 * linux-sparc-low.cc (the_low_target): Ditto.
949 * linux-tic6x-low.cc (the_low_target): Ditto.
950 * linux-tile-low.cc (the_low_target): Ditto.
951 * linux-xtensa-low.cc (the_low_target): Ditto.
952
953 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
954
955 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
956 linux target define the op by overriding the declaration in
957 process_stratum_target.
958
959 * linux-low.h (struct linux_target_ops): Remove the op.
960 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
961 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
962 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
963 (x86_get_ipa_tdesc_idx): Turn into...
964 (x86_target::get_ipa_tdesc_idx): ...this.
965 (the_low_target): Remove the op field.
966 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
967 (ppc_get_ipa_tdesc_idx): Turn into...
968 (ppc_target::get_ipa_tdesc_idx): ...this.
969 (the_low_target): Remove the op field.
970 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
971 (s390_get_ipa_tdesc_idx): Turn into...
972 (s390_target::get_ipa_tdesc_idx): ...this.
973 (the_low_target): Remove the op field.
974
975 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
976
977 Turn the 'get_syscall_trapinfo' linux target op into a method
978 of process_stratum_target.
979
980 * linux-low.h (struct linux_target_ops): Remove the op.
981 (class linux_process_target) <get_syscall_trapinfo>
982 <gdb_catch_this_syscall>
983 <low_supports_catch_syscall>
984 <low_get_syscall_trapinfo>: Declare.
985 * linux-low.cc (get_syscall_trapinfo): Turn into...
986 (linux_process_target::get_syscall_trapinfo): ...this.
987 (linux_process_target::low_get_syscall_trapinfo): Define.
988 (gdb_catch_this_syscall_p): Turn into...
989 (linux_process_target::gdb_catch_this_syscall): ...this.
990 (linux_process_target::low_supports_catch_syscall): Define.
991
992 Update the callers below.
993
994 (linux_process_target::wait_1)
995 (linux_process_target::supports_catch_syscall)
996
997 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
998 <low_get_syscall_trapinfo>: Declare.
999 (x86_target::low_supports_catch_syscall): Define.
1000 (x86_get_syscall_trapinfo): Turn into...
1001 (x86_target::low_get_syscall_trapinfo): ...this.
1002 (the_low_target): Remove the op field.
1003 * linux-aarch64-low.cc (class aarch64_target)
1004 <low_supports_catch_syscall>
1005 <low_get_syscall_trapinfo>: Declare.
1006 (aarch64_target::low_supports_catch_syscall): Define.
1007 (aarch64_get_syscall_trapinfo): Turn into...
1008 (aarch64_target::low_get_syscall_trapinfo): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1011 <low_get_syscall_trapinfo>: Declare.
1012 (arm_target::low_supports_catch_syscall): Define.
1013 (arm_get_syscall_trapinfo): Turn into...
1014 (arm_target::low_get_syscall_trapinfo): ...this.
1015 (the_low_target): Remove the op field.
1016 * linux-ppc-low.cc (the_low_target): Remove the op field.
1017 * linux-s390-low.cc (the_low_target): Remove the op field.
1018
1019 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1020
1021 Remove the 'supports_hardware_single_step' linux target op and
1022 override the process_stratum_target's op definition in
1023 linux_process_target to return true.
1024
1025 * linux-low.h (struct linux_target_ops): Remove the op.
1026 (class linux_process_target) <finish_step_over>
1027 <maybe_hw_step>: Declare.
1028 * linux-low.cc (can_hardware_single_step): Remove.
1029 (maybe_hw_step): Turn into...
1030 (linux_process_target::maybe_hw_step): ...this.
1031 (finish_step_over): Turn into...
1032 (linux_process_target::finish_step_over): ...this.
1033 (linux_process_target::supports_hardware_single_step): Update
1034 to return true.
1035
1036 Update the callers below.
1037
1038 (linux_process_target::single_step)
1039 (linux_process_target::resume_one_lwp_throw)
1040
1041 * linux-arm-low.cc (class arm_target)
1042 <supports_hardware_single_step>: Declare.
1043 (arm_supports_hardware_single_step): Turn into...
1044 (arm_target::supports_hardware_single_step): ...this.
1045 (the_low_target): Remove the op field.
1046 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1047 (the_low_target): Remove the op field.
1048 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1049 Remove.
1050 (the_low_target): Remove the op field.
1051 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1052 (the_low_target): Remove the op field.
1053 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1054 (the_low_target): Remove the op field.
1055 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1056 (the_low_target): Remove the op field.
1057 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1058 (the_low_target): Remove the op field.
1059 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1060 (the_low_target): Remove the op field.
1061 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1062 (the_low_target): Remove the op field.
1063 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1064 (the_low_target): Remove the op field.
1065 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1066 (the_low_target): Remove the op field.
1067 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1068 (the_low_target): Remove the op field.
1069 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1070 Remove.
1071 (the_low_target): Remove the op field.
1072
1073 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1074
1075 Turn the 'supports_range_stepping' linux target op into a method
1076 of linux_process_target.
1077
1078 * linux-low.h (struct linux_target_ops): Remove the op.
1079 (class linux_process_target) <low_supports_range_stepping>: Declare.
1080 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1081 Define.
1082 (linux_process_target::supports_range_stepping): Update the call
1083 site.
1084 * linux-x86-low.cc (class x86_target)
1085 <low_supports_range_stepping>: Declare.
1086 (x86_supports_range_stepping): Turn into...
1087 (x86_target::low_supports_range_stepping): ...this.
1088 (the_low_target): Remove the op field.
1089 * linux-aarch64-low.cc (class aarch64_target)
1090 <low_supports_range_stepping>: Declare.
1091 (aarch64_supports_range_stepping): Turn into...
1092 (aarch64_target::low_supports_range_stepping): ...this.
1093 (the_low_target): Remove the op field.
1094 * linux-arm-low.cc (the_low_target): Remove the op field.
1095 * linux-bfin-low.cc (the_low_target): Ditto.
1096 * linux-crisv32-low.cc (the_low_target): Ditto.
1097 * linux-m32r-low.cc (the_low_target): Ditto.
1098 * linux-m68k-low.cc (the_low_target): Ditto.
1099 * linux-ppc-low.cc (the_low_target): Ditto.
1100 * linux-s390-low.cc (the_low_target): Ditto.
1101 * linux-sh-low.cc (the_low_target): Ditto.
1102 * linux-tic6x-low.cc (the_low_target): Ditto.
1103 * linux-tile-low.cc (the_low_target): Ditto.
1104 * linux-xtensa-low.cc (the_low_target): Ditto.
1105
1106 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1107
1108 Remove the 'emit_ops' linux target ops and let the concrete
1109 linux target define the op by overriding the declaration of
1110 process_stratum_target.
1111
1112 * linux-low.h (struct linux_target_ops): Remove the op.
1113 (class linux_process_target) <emit_ops>: Remove.
1114 * linux-low.cc (linux_process_target::emit_ops): Remove.
1115 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1116 (x86_emit_ops): Turn into...
1117 (x86_target::emit_ops): ...this.
1118 (the_low_target): Remove the op field.
1119 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1120 (aarch64_emit_ops): Turn into...
1121 (aarch64_target::emit_ops): ...this.
1122 (the_low_target): Remove the op field.
1123 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1124 (ppc_emit_ops): Turn into...
1125 (ppc_target::emit_ops): ...this.
1126 (the_low_target): Remove the op field.
1127 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1128 (s390_emit_ops): Turn into...
1129 (s390_target::emit_ops): ...this.
1130 (the_low_target): Remove the op field.
1131 * linux-arm-low.cc (the_low_target): Remove the op field.
1132 * linux-bfin-low.cc (the_low_target): Ditto.
1133 * linux-crisv32-low.cc (the_low_target): Ditto.
1134 * linux-m32r-low.cc (the_low_target): Ditto.
1135 * linux-m68k-low.cc (the_low_target): Ditto.
1136 * linux-sh-low.cc (the_low_target): Ditto.
1137 * linux-tic6x-low.cc (the_low_target): Ditto.
1138 * linux-tile-low.cc (the_low_target): Ditto.
1139 * linux-xtensa-low.cc (the_low_target): Ditto.
1140
1141 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1142
1143 Remove the 'install_fast_tracepoint_jump_pad' and
1144 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1145 concrete linux target define the ops by overriding the declarations
1146 of process_stratum_target.
1147
1148 * linux-low.h (struct linux_target_ops): Remove the ops.
1149 (class linux_process_target) <supports_fast_tracepoints>
1150 <install_fast_tracepoint_jump_pad>
1151 <get_min_fast_tracepoint_insn_len>: Remove.
1152 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1153 (linux_process_target::install_fast_tracepoint_jump_pad)
1154 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1155 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1156 <install_fast_tracepoint_jump_pad>
1157 <get_min_fast_tracepoint_insn_len>: Declare.
1158 (x86_target::supports_fast_tracepoints): Define.
1159 (x86_install_fast_tracepoint_jump_pad): Turn into...
1160 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1161 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1162 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1163 (the_low_target): Remove the op fields.
1164 * linux-aarch64-low.cc (class aarch64_target)
1165 <supports_fast_tracepoints>
1166 <install_fast_tracepoint_jump_pad>
1167 <get_min_fast_tracepoint_insn_len>: Declare.
1168 (aarch64_target::supports_fast_tracepoints): Define.
1169 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1170 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1171 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1172 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1173 (the_low_target): Remove the op fields.
1174 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1175 <install_fast_tracepoint_jump_pad>
1176 <get_min_fast_tracepoint_insn_len>: Declare.
1177 (ppc_target::supports_fast_tracepoints): Define.
1178 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1179 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1180 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1181 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1182 (the_low_target): Remove the op fields.
1183 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1184 <install_fast_tracepoint_jump_pad>
1185 <get_min_fast_tracepoint_insn_len>: Declare.
1186 (s390_target::supports_fast_tracepoints): Define.
1187 (s390_install_fast_tracepoint_jump_pad): Turn into...
1188 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1189 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1190 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1191 (the_low_target): Remove the op fields.
1192 * linux-arm-low.cc (the_low_target): Remove the op fields.
1193 * linux-bfin-low.cc (the_low_target): Ditto.
1194 * linux-crisv32-low.cc (the_low_target): Ditto.
1195 * linux-m32r-low.cc (the_low_target): Ditto.
1196 * linux-m68k-low.cc (the_low_target): Ditto.
1197 * linux-sh-low.cc (the_low_target): Ditto.
1198 * linux-tic6x-low.cc (the_low_target): Ditto.
1199 * linux-tile-low.cc (the_low_target): Ditto.
1200 * linux-xtensa-low.cc (the_low_target): Ditto.
1201
1202 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1203
1204 Turn the 'get_thread_area' linux target op into a method of
1205 process_stratum_target.
1206
1207 * linux-low.h (struct linux_target_ops): Remove the op.
1208 (class linux_process_target) <stuck_in_jump_pad>
1209 <linux_fast_tracepoint_collecting>
1210 <low_get_thread_area>: Declare.
1211 * linux-low.cc (supports_fast_tracepoints): Remove.
1212 (linux_fast_tracepoint_collecting): Turn into...
1213 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1214 (linux_process_target::low_get_thread_area): Define.
1215 (stuck_in_jump_pad_callback): Turn into...
1216 (linux_process_target::stuck_in_jump_pad): ...this.
1217
1218 Update the caller below.
1219
1220 (linux_process_target::stabilize_threads)
1221
1222 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1223 Declare.
1224 (x86_get_thread_area): Turn into...
1225 (x86_target::low_get_thread_area): ...this.
1226 (the_low_target): Remove the op field.
1227 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1228 Declare.
1229 (aarch64_get_thread_area): Turn into...
1230 (aarch64_target::low_get_thread_area): ...this.
1231 (the_low_target): Remove the op field.
1232 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1233 Declare.
1234 (ppc_get_thread_area): Turn into...
1235 (ppc_target::low_get_thread_area): ...this.
1236 (the_low_target): Remove the op field.
1237 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1238 Declare.
1239 (s390_get_thread_area): Turn into...
1240 (s390_target::low_get_thread_area): ...this.
1241 (the_low_target): Remove the op field.
1242 * linux-arm-low.cc (the_low_target): Remove the op field.
1243 * linux-bfin-low.cc (the_low_target): Ditto.
1244 * linux-crisv32-low.cc (the_low_target): Ditto.
1245 * linux-m32r-low.cc (the_low_target): Ditto.
1246 * linux-m68k-low.cc (the_low_target): Ditto.
1247 * linux-sh-low.cc (the_low_target): Ditto.
1248 * linux-tic6x-low.cc (the_low_target): Ditto.
1249 * linux-tile-low.cc (the_low_target): Ditto.
1250 * linux-xtensa-low.cc (the_low_target): Ditto.
1251
1252 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1253
1254 Remote the 'supports_tracepoints' linux target op and let the
1255 concrete linux target define it by overriding the op declared in
1256 process_stratum_target.
1257
1258 * linux-low.h (struct linux_target_ops): Remove the op.
1259 (class linux_process_target) <supports_tracepoints>: Remove.
1260 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1261 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1262 Declare.
1263 (x86_supports_tracepoints): Turn into...
1264 (x86_target::supports_tracepoints): ...this.
1265 (the_low_target): Remove the op field.
1266 * linux-aarch64-low.cc (class aarch64_target)
1267 <supports_tracepoints>: Declare.
1268 (aarch64_supports_tracepoints): Turn into...
1269 (aarch64_target::supports_tracepoints): ...this.
1270 (the_low_target): Remove the op field.
1271 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1272 Declare.
1273 (ppc_supports_tracepoints): Turn into...
1274 (ppc_target::supports_tracepoints): ...this.
1275 (the_low_target): Remove the op field.
1276 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1277 Declare.
1278 (s390_supports_tracepoints): Turn into...
1279 (s390_target::supports_tracepoints): ...this.
1280 (the_low_target): Remove the op field.
1281 * linux-arm-low.cc (the_low_target): Remove the op field.
1282 * linux-bfin-low.cc (the_low_target): Ditto.
1283 * linux-crisv32-low.cc (the_low_target): Ditto.
1284 * linux-m32r-low.cc (the_low_target): Ditto.
1285 * linux-m68k-low.cc (the_low_target): Ditto.
1286 * linux-sh-low.cc (the_low_target): Ditto.
1287 * linux-tic6x-low.cc (the_low_target): Ditto.
1288 * linux-tile-low.cc (the_low_target): Ditto.
1289 * linux-xtensa-low.cc (the_low_target): Ditto.
1290
1291 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1292
1293 Remove the 'process_qsupported' linux target op and let a concrete
1294 linux target define the op by overriding the op declaration in
1295 process_stratum_target.
1296
1297 * linux-low.h (struct linux_target_ops): Remove the op.
1298 (class linux_process_target) <process_qsupported>: Remove.
1299 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1300 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1301 (x86_linux_process_qsupported): Turn into...
1302 (x86_target::process_qsupported): ...this.
1303 (the_low_target): Remove the op field.
1304 * linux-aarch64-low.cc (the_low_target): Remove the op
1305 field.
1306 * linux-arm-low.cc (the_low_target): Ditto.
1307 * linux-bfin-low.cc (the_low_target): Ditto.
1308 * linux-crisv32-low.cc (the_low_target): Ditto.
1309 * linux-m32r-low.cc (the_low_target): Ditto.
1310 * linux-m68k-low.cc (the_low_target): Ditto.
1311 * linux-ppc-low.cc (the_low_target): Ditto.
1312 * linux-s390-low.cc (the_low_target): Ditto.
1313 * linux-sh-low.cc (the_low_target): Ditto.
1314 * linux-tic6x-low.cc (the_low_target): Ditto.
1315 * linux-tile-low.cc (the_low_target): Ditto.
1316 * linux-xtensa-low.cc (the_low_target): Ditto.
1317
1318 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1319
1320 Turn the 'prepare_to_resume' linux target op into a method of
1321 linux_process_target.
1322
1323 * linux-low.h (struct linux_target_ops): Remove the op.
1324 (class linux_process_target) <low_prepare_to_resume>: Declare.
1325 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1326 Define.
1327
1328 Update the callers below:
1329
1330 (linux_process_target::resume_one_lwp_throw)
1331 (linux_process_target::low_prepare_to_resume)
1332
1333 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1334 Declare.
1335 (x86_target::low_prepare_to_resume): Define.
1336 (the_low_target): Remove the op field.
1337 * linux-aarch64-low.cc (class aarch64_target)
1338 <low_prepare_to_resume>: Declare.
1339 (aarch64_target::low_prepare_to_resume): Define.
1340 (the_low_target): Remove the op field.
1341 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1342 Declare.
1343 (arm_prepare_to_resume): Turn into...
1344 (arm_target::low_prepare_to_resume): ...this.
1345 (the_low_target): Remove the op field.
1346 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1347 Declare.
1348 (mips_linux_prepare_to_resume): Turn into...
1349 (mips_target::low_prepare_to_resume): ...this.
1350 (the_low_target): Remove the op field.
1351 * linux-bfin-low.cc (the_low_target): Remove the op field.
1352 * linux-crisv32-low.cc (the_low_target): Ditto.
1353 * linux-m32r-low.cc (the_low_target): Ditto.
1354 * linux-m68k-low.cc (the_low_target): Ditto.
1355 * linux-ppc-low.cc (the_low_target): Ditto.
1356 * linux-s390-low.cc (the_low_target): Ditto.
1357 * linux-sh-low.cc (the_low_target): Ditto.
1358 * linux-tic6x-low.cc (the_low_target): Ditto.
1359 * linux-tile-low.cc (the_low_target): Ditto.
1360 * linux-xtensa-low.cc (the_low_target): Ditto.
1361
1362 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1363
1364 Turn the 'new_process', 'delete_process', 'new_thread',
1365 'delete_thread', and 'new_fork' linux target ops into methods
1366 of linux_process_target.
1367
1368 * linux-low.h (struct linux_target_ops): Remove the ops.
1369 (class linux_process_target) <add_linux_process>
1370 <add_lwp>
1371 <delete_lwp>
1372 <attach_lwp>
1373 <detach_one_lwp>
1374 <check_zombie_leaders>
1375 <filter_exit_event>
1376 <low_new_process>
1377 <low_delete_process>
1378 <low_new_thread>
1379 <low_delete_thread>
1380 <low_new_fork>: Declare.
1381 * linux-low.cc (delete_lwp): Turn into...
1382 (linux_process_target::delete_lwp): ...this.
1383 (linux_process_target::low_delete_thread): Define.
1384 (linux_add_process): Turn into...
1385 (linux_process_target::add_linux_process): ...this.
1386 (linux_process_target::low_new_process): Define.
1387 (linux_process_target::low_delete_process): Define.
1388 (linux_process_target::low_new_fork): Define.
1389 (add_lwp): Turn into...
1390 (linux_process_target::add_lwp): ...this.
1391 (linux_process_target::low_new_thread): Define.
1392 (linux_attach_lwp): Turn into...
1393 (linux_process_target::attach_lwp): ...this.
1394 (linux_detach_one_lwp): Turn into...
1395 (linux_process_target::detach_one_lwp): ...this.
1396 (linux_detach_lwp_callback): Remove and inline...
1397 (linux_process_target::detach): ...here.
1398 (check_zombie_leaders): Turn into...
1399 (linux_process_target::check_zombie_leaders): ...this.
1400 (filter_exit_event): Turn into...
1401 (linux_process_target::filter_exit_event): ...this.
1402
1403 Update the callers below.
1404
1405 (linux_process_target::handle_extended_wait)
1406 (linux_process_target::create_inferior)
1407 (attach_proc_task_lwp_callback)
1408 (linux_process_target::attach)
1409 (linux_process_target::detach)
1410 (linux_process_target::mourn)
1411 * thread-db.cc (attach_thread)
1412
1413 * linux-x86-low.cc (class x86_target) <low_new_process>
1414 <low_delete_process>
1415 <low_new_thread>
1416 <low_delete_thread>
1417 <low_new_fork>: Declare.
1418 (x86_linux_new_process): Turn into...
1419 (x86_target::low_new_process): ...this.
1420 (x86_linux_delete_process): Turn into...
1421 (x86_target::low_delete_process): ...this.
1422 (x86_target::low_new_thread): Define.
1423 (x86_target::low_delete_thread): Define.
1424 (x86_linux_new_fork): Turn into...
1425 (x86_target::low_new_fork): ...this.
1426 (the_low_target): Remove the op fields.
1427 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1428 <low_delete_process>
1429 <low_new_thread>
1430 <low_delete_thread>
1431 <low_new_fork>: Declare.
1432 (aarch64_linux_new_process): Turn into...
1433 (aarch64_target::low_new_process): ...this.
1434 (aarch64_linux_delete_process): Turn into...
1435 (aarch64_target::low_delete_process): ...this.
1436 (aarch64_target::low_new_thread): Define.
1437 (aarch64_target::low_delete_thread): Define.
1438 (aarch64_linux_new_fork): Turn into...
1439 (aarch64_target::low_new_fork): ...this.
1440 (the_low_target): Remove the op fields.
1441 * linux-arm-low.cc (class arm_target) <low_new_process>
1442 <low_delete_process>
1443 <low_new_thread>
1444 <low_delete_thread>
1445 <low_new_fork>: Declare.
1446 (arm_new_process): Turn into...
1447 (arm_target::low_new_process): ...this.
1448 (arm_delete_process): Turn into...
1449 (arm_target::low_delete_process): ...this.
1450 (arm_new_thread): Turn into...
1451 (arm_target::low_new_thread): ...this.
1452 (arm_delete_thread): Turn into...
1453 (arm_target::low_delete_thread): ...this.
1454 (arm_new_fork): Turn into...
1455 (arm_target::low_new_fork): ...this.
1456 (the_low_target): Remove the op fields.
1457 * linux-mips-low.cc (class mips_target) <low_new_process>
1458 <low_delete_process>
1459 <low_new_thread>
1460 <low_delete_thread>
1461 <low_new_fork>: Declare.
1462 (mips_linux_new_process): Turn into...
1463 (mips_target::low_new_process): ...this.
1464 (mips_linux_delete_process): Turn into...
1465 (mips_target::low_delete_process): ...this.
1466 (mips_linux_new_thread): Turn into...
1467 (mips_target::low_new_thread): ...this.
1468 (mips_linux_delete_thread): Turn into...
1469 (mips_target::low_delete_thread): ...this.
1470 (mips_linux_new_fork): Turn into...
1471 (mips_target::low_new_fork): ...this.
1472 (the_low_target): Remove the op fields.
1473 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1474 * linux-crisv32-low.cc (the_low_target): Ditto.
1475 * linux-m32r-low.cc (the_low_target): Ditto.
1476 * linux-m68k-low.cc (the_low_target): Ditto.
1477 * linux-ppc-low.cc (the_low_target): Ditto.
1478 * linux-s390-low.cc (the_low_target): Ditto.
1479 * linux-sh-low.cc (the_low_target): Ditto.
1480 * linux-tic6x-low.cc (the_low_target): Ditto.
1481 * linux-tile-low.cc (the_low_target): Ditto.
1482 * linux-xtensa-low.cc (the_low_target): Ditto.
1483
1484 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1485
1486 Turn the 'siginfo_fixup' linux target op into a method of
1487 linux_process_target.
1488
1489 * linux-low.h (struct linux_target_ops): Remove the op.
1490 (class linux_process_target) <siginfo_fixup>
1491 <low_siginfo_fixup>: Declare.
1492 * linux-low.cc (siginfo_fixup): Turn into...
1493 (linux_process_target::siginfo_fixup): ...this.
1494 (linux_process_target::low_siginfo_fixup): Define.
1495 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1496 (x86_siginfo_fixup): Turn into...
1497 (x86_target::low_siginfo_fixup): ...this.
1498 (the_low_target): Remove the op field.
1499 * linux-aarch64-low.cc (class aarch64_target):
1500 <low_siginfo_fixup>: Declare.
1501 (aarch64_linux_siginfo_fixup): Turn into...
1502 (aarch64_target::low_siginfo_fixup): ...this.
1503 (the_low_target): Remove the op field.
1504 * linux-arm-low.cc (the_low_target): Remove the op field.
1505 * linux-bfin-low.cc (the_low_target): Ditto.
1506 * linux-crisv32-low.cc (the_low_target): Ditto.
1507 * linux-m32r-low.cc (the_low_target): Ditto.
1508 * linux-m68k-low.cc (the_low_target): Ditto.
1509 * linux-mips-low.cc (the_low_target): Ditto.
1510 * linux-ppc-low.cc (the_low_target): Ditto.
1511 * linux-s390-low.cc (the_low_target): Ditto.
1512 * linux-sh-low.cc (the_low_target): Ditto.
1513 * linux-tic6x-low.cc (the_low_target): Ditto.
1514 * linux-tile-low.cc (the_low_target): Ditto.
1515 * linux-xtensa-low.cc (the_low_target): Ditto.
1516
1517 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1518
1519 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1520 linux target ops into methods of linux_process_target.
1521
1522 * linux-low.h (struct linux_target_ops): Remove the ops.
1523 (class linux_process_target) <low_collect_ptrace_register>
1524 <low_store_ptrace_register>: Declare.
1525 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1526 (linux_process_target::low_supply_ptrace_register): Define.
1527
1528 Update the callers below.
1529
1530 (linux_process_target::fetch_register)
1531 (linux_process_target::store_register)
1532
1533 * linux-x86-low.cc (the_low_target): Remove the op fields.
1534 * linux-aarch64-low.cc (the_low_target): Ditto.
1535 * linux-arm-low.cc (the_low_target): Ditto.
1536 * linux-bfin-low.cc (the_low_target): Ditto.
1537 * linux-crisv32-low.cc (the_low_target): Ditto.
1538 * linux-m32r-low.cc (the_low_target): Ditto.
1539 * linux-m68k-low.cc (the_low_target): Ditto.
1540 * linux-sh-low.cc (the_low_target): Ditto.
1541 * linux-sparc-low.cc (the_low_target): Ditto.
1542 * linux-tic6x-low.cc (the_low_target): Ditto.
1543 * linux-tile-low.cc (the_low_target): Ditto.
1544 * linux-xtensa-low.cc (the_low_target): Ditto.
1545 * linux-mips-low.cc (class mips_target)
1546 <low_collect_ptrace_register>
1547 <low_supply_ptrace_register>: Declare.
1548 (mips_collect_ptrace_register): Turn into ...
1549 (mips_target::low_collect_ptrace_register): ...this.
1550 (mips_supply_ptrace_register): Turn into...
1551 (mips_target::low_supply_ptrace_register): ...this.
1552 (the_low_target): Remove the op fields.
1553 * linux-ppc-low.cc (class ppc_target)
1554 <low_collect_ptrace_register>
1555 <low_supply_ptrace_register>: Declare.
1556 (ppc_collect_ptrace_register): Turn into ...
1557 (ppc_target::low_collect_ptrace_register): ...this.
1558 (ppc_supply_ptrace_register): Turn into ...
1559 (ppc_target::low_supply_ptrace_register): ...this.
1560 (ppc_fill_gregset): Update for the calls to
1561 low_collect_ptrace_register.
1562 (the_low_target): Remove the op fields.
1563 * linux-s390-low.cc (class s390_target)
1564 <low_collect_ptrace_register>
1565 <low_supply_ptrace_register>: Declare.
1566 (s390_collect_ptrace_register): Turn into ...
1567 (s390_target::low_collect_ptrace_register): ...this.
1568 (s390_supply_ptrace_register): Turn into ...
1569 (s390_target::low_supply_ptrace_register): ...this.
1570 (s390_fill_gregset): Update for the calls to
1571 low_collect_ptrace_register.
1572 (the_low_target): Remove the op fields.
1573
1574 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1575
1576 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1577 target ops into methods of linux_process_target.
1578
1579 * linux-low.h (struct linux_target_ops): Remove the ops.
1580 (class linux_process_target) <check_stopped_by_watchpoint>
1581 <low_stopped_by_watchpoint>
1582 <low_stopped_data_address>: Declare.
1583 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1584 (linux_process_target::check_stopped_by_watchpoint): ...this.
1585 (linux_process_target::low_stopped_by_watchpoint): Define.
1586 (linux_process_target::low_stopped_data_address): Define.
1587 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1588 <low_stopped_data_address>: Declare.
1589 (x86_stopped_by_watchpoint): Turn into...
1590 (x86_target::low_stopped_by_watchpoint): ...this.
1591 (x86_stopped_data_address): Turn into...
1592 (x86_target::low_stopped_data_address): ...this.
1593 (the_low_target): Remove the op fields.
1594 * linux-aarch64-low.cc (class aarch64_target)
1595 <low_stopped_by_watchpoint>
1596 <low_stopped_data_address>: Declare.
1597 (aarch64_stopped_by_watchpoint): Turn into...
1598 (aarch64_target::low_stopped_by_watchpoint): ...this.
1599 (aarch64_stopped_data_address): Turn into...
1600 (aarch64_target::low_stopped_data_address): ...this.
1601 (the_low_target): Remove the op fields.
1602 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1603 <low_stopped_data_address>: Declare.
1604 (arm_stopped_by_watchpoint): Turn into...
1605 (arm_target::low_stopped_by_watchpoint): ...this.
1606 (arm_stopped_data_address): Turn into...
1607 (arm_target::low_stopped_data_address): ...this.
1608 (the_low_target): Remove the op fields.
1609 * linux-crisv32-low.cc (class crisv32_target)
1610 <low_stopped_by_watchpoint>
1611 <low_stopped_data_address>: Declare.
1612 (cris_stopped_by_watchpoint): Turn into...
1613 (crisv32_target::low_stopped_by_watchpoint): ...this.
1614 (cris_stopped_data_address): Turn into...
1615 (crisv32_target::low_stopped_data_address): ...this.
1616 (the_low_target): Remove the op fields.
1617 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1618 <low_stopped_data_address>: Declare.
1619 (mips_stopped_by_watchpoint): Turn into...
1620 (mips_target::low_stopped_by_watchpoint): ...this.
1621 (mips_stopped_data_address): Turn into...
1622 (mips_target::low_stopped_data_address): ...this.
1623 (the_low_target): Remove the op fields.
1624 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1625 * linux-m32r-low.cc (the_low_target): Ditto.
1626 * linux-m68k-low.cc (the_low_target): Ditto.
1627 * linux-ppc-low.cc (the_low_target): Ditto.
1628 * linux-s390-low.cc (the_low_target): Ditto.
1629 * linux-sh-low.cc (the_low_target): Ditto.
1630 * linux-sparc-low.cc (the_low_target): Ditto.
1631 * linux-tic6x-low.cc (the_low_target): Ditto.
1632 * linux-tile-low.cc (the_low_target): Ditto.
1633 * linux-xtensa-low.cc (the_low_target): Ditto.
1634
1635 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1636
1637 Turn the 'insert_point' and 'remove_point' linux target ops into
1638 methods of linux_process_target.
1639
1640 * linux-low.h (struct linux_target_ops): Remove the ops.
1641 (class linux_process_target) <low_insert_point>
1642 <low_remove_point>: Declare.
1643 * linux-low.cc (linux_process_target::low_insert_point)
1644 (linux_process_target::low_remove_point): Define.
1645 (linux_process_target::insert_point)
1646 (linux_process_target::remove_point): Update for calls to
1647 low_insert_point and low_remove_point.
1648 * linux-x86-low.cc (class x86_target) <low_insert_point>
1649 <low_remove_point>: Declare.
1650 (x86_insert_point): Turn into...
1651 (x86_target::low_insert_point): ...this.
1652 (x86_remove_point): Turn into...
1653 (x86_target::low_remove_point): ...this.
1654 (the_low_target): Remove the op fields.
1655 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1656 <low_remove_point>: Declare.
1657 (aarch64_insert_point): Turn into...
1658 (aarch64_target::low_insert_point): ...this.
1659 (aarch64_remove_point): Turn into...
1660 (aarch64_target::low_remove_point): ...this.
1661 (the_low_target): Remove the op fields.
1662 * linux-arm-low.cc (class arm_target) <low_insert_point>
1663 <low_remove_point>: Declare.
1664 (arm_insert_point): Turn into...
1665 (arm_target::low_insert_point): ...this.
1666 (arm_remove_point): Turn into...
1667 (arm_target::low_remove_point): ...this.
1668 (the_low_target): Remove the op fields.
1669 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1670 <low_remove_point>: Declare.
1671 (crisv32_insert_point): Turn into...
1672 (crisv32_target::low_insert_point): ...this.
1673 (crisv32_remove_point): Turn into...
1674 (crisv32_target::low_remove_point): ...this.
1675 (the_low_target): Remove the op fields.
1676 * linux-mips-low.cc (class mips_target) <low_insert_point>
1677 <low_remove_point>: Declare.
1678 (mips_insert_point): Turn into...
1679 (mips_target::low_insert_point): ...this.
1680 (mips_remove_point): Turn into...
1681 (mips_target::low_remove_point): ...this.
1682 (the_low_target): Remove the op fields.
1683 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1684 <low_remove_point>: Declare.
1685 (ppc_insert_point): Turn into...
1686 (ppc_target::low_insert_point): ...this.
1687 (ppc_remove_point): Turn into...
1688 (ppc_target::low_remove_point): ...this.
1689 (the_low_target): Remove the op fields.
1690 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1691 * linux-m32r-low.cc (the_low_target): Ditto.
1692 * linux-m68k-low.cc (the_low_target): Ditto.
1693 * linux-s390-low.cc (the_low_target): Ditto.
1694 * linux-sh-low.cc (the_low_target): Ditto.
1695 * linux-sparc-low.cc (the_low_target): Ditto.
1696 * linux-tic6x-low.cc (the_low_target): Ditto.
1697 * linux-tile-low.cc (the_low_target): Ditto.
1698 * linux-xtensa-low.cc (the_low_target): Ditto.
1699
1700 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1701
1702 Remove the 'supports_z_point_type' linux target op and let the
1703 concrete linux target define it by overriding the op declared in
1704 process_stratum_target.
1705
1706 * linux-low.cc (linux_process_target::supports_z_point_type):
1707 Remove.
1708 * linux-low.h (struct linux_target_ops): Remove the op.
1709 (class linux_process_target) <supports_z_point_type>: Remove.
1710 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1711 Declare.
1712 (x86_supports_z_point_type): Turn into...
1713 (x86_target::supports_z_point_type): ...this.
1714 (the_low_target): Remove the op field.
1715 * linux-aarch64-low.cc (class aarch64_target)
1716 <supports_z_point_type>: Declare.
1717 (aarch64_supports_z_point_type): Turn into...
1718 (aarch64_target::supports_z_point_type): ...this.
1719 (the_low_target): Remove the op field.
1720 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1721 Declare.
1722 (arm_supports_z_point_type): Turn into...
1723 (arm_target::supports_z_point_type): ...this.
1724 (the_low_target): Remove the op field.
1725 * linux-crisv32-low.cc (class crisv32_target)
1726 <supports_z_point_type>: Declare.
1727 (cris_supports_z_point_type): Turn into...
1728 (crisv32_target::supports_z_point_type): ...this.
1729 (the_low_target): Remove the op field.
1730 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1731 Declare.
1732 (mips_supports_z_point_type): Turn into...
1733 (mips_target::supports_z_point_type): ...this.
1734 (the_low_target): Remove the op field.
1735 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1736 Declare.
1737 (ppc_supports_z_point_type): Turn into...
1738 (ppc_target::supports_z_point_type): ...this.
1739 (the_low_target): Remove the op field.
1740 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1741 Declare.
1742 (s390_supports_z_point_type): Turn into...
1743 (s390_target::supports_z_point_type): ...this.
1744 (the_low_target): Remove the op field.
1745 * linux-bfin-low.cc (the_low_target): Remove the op field.
1746 * linux-m32r-low.cc (the_low_target): Ditto.
1747 * linux-m68k-low.cc (the_low_target): Ditto.
1748 * linux-sh-low.cc (the_low_target): Ditto.
1749 * linux-sparc-low.cc (the_low_target): Ditto.
1750 * linux-tic6x-low.cc (the_low_target): Ditto.
1751 * linux-tile-low.cc (the_low_target): Ditto.
1752 * linux-xtensa-low.cc (the_low_target): Ditto.
1753
1754 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1755
1756 Turn the 'breakpoint_at' linux target op into a method of
1757 linux_process_target.
1758
1759 * linux-low.h (struct linux_target_ops): Remove the op.
1760 (class linux_process_target) <low_breakpoint_at>: Declare.
1761
1762 Update the callers below:
1763
1764 * linux-low.cc (linux_process_target::save_stop_reason)
1765 (linux_process_target::thread_still_has_status_pending)
1766 (linux_process_target::wait_1)
1767
1768 * linux-x86-low.cc (class x86_target)
1769 <low_breakpoint_at>: Declare.
1770 (x86_breakpoint_at): Turn into...
1771 (x86_target::low_breakpoint_at): ...this.
1772 (the_low_target): Remove the op field.
1773 * linux-aarch64-low.cc (class aarch64_target)
1774 <low_breakpoint_at>: Declare.
1775 (aarch64_breakpoint_at): Turn into...
1776 (aarch64_target::low_breakpoint_at): ...this.
1777 (the_low_target): Remove the op field.
1778 * linux-arm-low.cc (class arm_target)
1779 <low_breakpoint_at>: Declare.
1780 (arm_target::low_breakpoint_at): Define.
1781 (the_low_target): Remove the op field.
1782 * linux-bfin-low.cc (class bfin_target)
1783 <low_breakpoint_at>: Declare.
1784 (bfin_breakpoint_at): Turn into...
1785 (bfin_target::low_breakpoint_at): ...this.
1786 (the_low_target): Remove the op field.
1787 * linux-cris-low.cc (class cris_target)
1788 <low_breakpoint_at>: Declare.
1789 (cris_breakpoint_at): Turn into...
1790 (cris_target::low_breakpoint_at): ...this.
1791 (the_low_target): Remove the op field.
1792 * linux-crisv32-low.cc (class crisv32_target)
1793 <low_breakpoint_at>: Declare.
1794 (crisv32_breakpoint_at): Turn into...
1795 (crisv32_target::low_breakpoint_at): ...this.
1796 (the_low_target): Remove the op field.
1797 * linux-ia64-low.cc (class ia64_target)
1798 <low_breakpoint_at>: Declare.
1799 (ia64_target::low_breakpoint_at): Define.
1800 * linux-m32r-low.cc (class m32r_target)
1801 <low_breakpoint_at>: Declare.
1802 (m32r_breakpoint_at): Turn into...
1803 (m32r_target::low_breakpoint_at): ...this.
1804 (the_low_target): Remove the op field.
1805 * linux-m68k-low.cc (class m68k_target)
1806 <low_breakpoint_at>: Declare.
1807 (m68k_breakpoint_at): Turn into...
1808 (m68k_target::low_breakpoint_at): ...this.
1809 (the_low_target): Remove the op field.
1810 * linux-mips-low.cc (class mips_target)
1811 <low_breakpoint_at>: Declare.
1812 (mips_breakpoint_at): Turn into...
1813 (mips_target::low_breakpoint_at): ...this.
1814 (the_low_target): Remove the op field.
1815 * linux-nios2-low.cc (class nios2_target)
1816 <low_breakpoint_at>: Declare.
1817 (nios2_breakpoint_at): Turn into...
1818 (nios2_target::low_breakpoint_at): ...this.
1819 (the_low_target): Remove the op field.
1820 * linux-ppc-low.cc (class ppc_target)
1821 <low_breakpoint_at>: Declare.
1822 (ppc_breakpoint_at): Turn into...
1823 (ppc_target::low_breakpoint_at): ...this.
1824 (the_low_target): Remove the op field.
1825 * linux-riscv-low.cc (class riscv_target)
1826 <low_breakpoint_at>: Declare.
1827 (riscv_breakpoint_at): Turn into...
1828 (riscv_target::low_breakpoint_at): ...this.
1829 (the_low_target): Remove the op field.
1830 * linux-s390-low.cc (class s390_target)
1831 <low_breakpoint_at>: Declare.
1832 (s390_breakpoint_at): Turn into...
1833 (s390_target::low_breakpoint_at): ...this.
1834 (the_low_target): Remove the op field.
1835 * linux-sh-low.cc (class sh_target)
1836 <low_breakpoint_at>: Declare.
1837 (sh_breakpoint_at): Turn into...
1838 (sh_target::low_breakpoint_at): ...this.
1839 (the_low_target): Remove the op field.
1840 * linux-sparc-low.cc (class sparc_target)
1841 <low_breakpoint_at>: Declare.
1842 (sparc_breakpoint_at): Turn into...
1843 (sparc_target::low_breakpoint_at): ...this.
1844 (the_low_target): Remove the op field.
1845 * linux-tic6x-low.cc (class tic6x_target)
1846 <low_breakpoint_at>: Declare.
1847 (tic6x_breakpoint_at): Turn into...
1848 (tic6x_target::low_breakpoint_at): ...this.
1849 (the_low_target): Remove the op field.
1850 * linux-tile-low.cc (class tile_target)
1851 <low_breakpoint_at>: Declare.
1852 (tile_breakpoint_at): Turn into...
1853 (tile_target::low_breakpoint_at): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-xtensa-low.cc (class xtensa_target)
1856 <low_breakpoint_at>: Declare.
1857 (xtensa_breakpoint_at): Turn into...
1858 (xtensa_target::low_breakpoint_at): ...this.
1859 (the_low_target): Remove the op field.
1860
1861 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1862
1863 Turn the 'decr_pc_after_break' linux_target_ops field into
1864 a method of linux_process_target.
1865
1866 * linux-low.h (struct linux_target_ops)
1867 <decr_pc_after_break>: Remove.
1868 (class linux_process_target) <low_decr_pc_after_break>: New method
1869 declaration.
1870 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1871 New method implementation.
1872
1873 Update the users below.
1874
1875 (linux_process_target::save_stop_reason)
1876 (linux_process_target::wait_1)
1877 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1878 New declaration.
1879 (x86_target::low_decr_pc_after_break): New method implementation.
1880 (the_low_target): Remove the field.
1881 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1882 New declaration.
1883 (bfin_target::low_decr_pc_after_break): New method implementation.
1884 (the_low_target): Remove the field.
1885 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1886 New declaration.
1887 (m68k_target::low_decr_pc_after_break): New method implementation.
1888 (the_low_target): Remove the field.
1889 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1890 New declaration.
1891 (s390_target::low_decr_pc_after_break): New method implementation.
1892 (the_low_target): Remove the field.
1893 * linux-aarch64-low.cc (the_low_target): Remove the field.
1894 * linux-arm-low.cc (the_low_target): Remove the field.
1895 * linux-cris-low.cc (the_low_target): Remove the field.
1896 * linux-crisv32-low.cc (the_low_target): Remove the field.
1897 * linux-m32r-low.cc (the_low_target): Remove the field.
1898 * linux-mips-low.cc (the_low_target): Remove the field.
1899 * linux-nios2-low.cc (the_low_target): Remove the field.
1900 * linux-ppc-low.cc (the_low_target): Remove the field.
1901 * linux-riscv-low.cc (the_low_target): Remove the field.
1902 * linux-sh-low.cc (the_low_target): Remove the field.
1903 * linux-sparc-low.cc (the_low_target): Remove the field.
1904 * linux-tic6x-low.cc (the_low_target): Remove the field.
1905 * linux-tile-low.cc (the_low_target): Remove the field.
1906 * linux-xtensa-low.cc (the_low_target): Remove the field.
1907
1908 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1909
1910 Remove the 'supports_software_single_step' linux target op and let
1911 the concrete linux target define it by overriding the op in
1912 process_stratum_target.
1913 Turn the 'get_next_pcs' linux target op into a method of
1914 linux_process_target.
1915
1916 * linux-low.h (struct linux_target_ops): Remove the ops.
1917 (class linux_process_target) <supports_software_single_step>:
1918 Remove.
1919 <low_get_next_pcs>: Declare.
1920 * linux-low.cc (can_software_single_step): Remove.
1921 (linux_process_target::low_get_next_pcs): Define.
1922 (linux_process_target::supports_software_single_step): Remove.
1923
1924 Update the callers below.
1925
1926 (linux_process_target::handle_extended_wait)
1927 (linux_process_target::wait_1)
1928 (linux_process_target::install_software_single_step_breakpoints)
1929 (linux_process_target::single_step)
1930 (linux_process_target::thread_needs_step_over)
1931 (linux_process_target::proceed_one_lwp)
1932 (linux_process_target::supports_range_stepping)
1933
1934 * linux-x86-low.cc (the_low_target): Remove the op field.
1935 * linux-aarch64-low.cc (the_low_target): Ditto.
1936 * linux-bfin-low.cc (the_low_target): Ditto.
1937 * linux-cris-low.cc (the_low_target): Ditto.
1938 * linux-crisv32-low.cc (the_low_target): Ditto.
1939 * linux-m32r-low.cc (the_low_target): Ditto.
1940 * linux-m68k-low.cc (the_low_target): Ditto.
1941 * linux-mips-low.cc (the_low_target): Ditto.
1942 * linux-nios2-low.cc (the_low_target): Ditto.
1943 * linux-ppc-low.cc (the_low_target): Ditto.
1944 * linux-riscv-low.cc (the_low_target): Ditto.
1945 * linux-s390-low.cc (the_low_target): Ditto.
1946 * linux-sh-low.cc (the_low_target): Ditto.
1947 * linux-sparc-low.cc (the_low_target): Ditto.
1948 * linux-tic6x-low.cc (the_low_target): Ditto.
1949 * linux-tile-low.cc (the_low_target): Ditto.
1950 * linux-xtensa-low.cc (the_low_target): Ditto.
1951 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1952 <supports_software_single_step>: Declare.
1953 (arm_target::supports_software_single_step): Define.
1954 (arm_gdbserver_get_next_pcs): Turn into...
1955 (arm_target::low_get_next_pcs): ...this.
1956 (the_low_target): Remove the op field.
1957
1958 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1959
1960 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1961 the concrete linux target define it by overriding the op
1962 in process_stratum_target.
1963
1964 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1965 Remove.
1966 * linux-low.h (struct linux_target_ops): Remove the op.
1967 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1968 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1969 Declare.
1970 (x86_sw_breakpoint_from_kind): Turn into...
1971 (x86_target::sw_breakpoint_from_kind): ...this.
1972 (the_low_target): Remove the op field.
1973 * linux-aarch64-low.cc (class aarch64_target)
1974 <sw_breakpoint_from_kind>: Declare.
1975 (aarch64_sw_breakpoint_from_kind): Turn into...
1976 (aarch64_target::sw_breakpoint_from_kind): ...this.
1977 (the_low_target): Remove the op field.
1978 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1979 Declare.
1980 (arm_target::sw_breakpoint_from_kind): Define.
1981 (the_low_target): Remove the op field.
1982 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1983 Declare.
1984 (bfin_sw_breakpoint_from_kind): Turn into...
1985 (bfin_target::sw_breakpoint_from_kind): ...this.
1986 (the_low_target): Remove the op field.
1987 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1988 Declare.
1989 (cris_sw_breakpoint_from_kind): Turn into...
1990 (cris_target::sw_breakpoint_from_kind): ...this.
1991 (the_low_target): Remove the op field.
1992 * linux-crisv32-low.cc (class crisv32_target)
1993 <sw_breakpoint_from_kind>: Declare.
1994 (cris_sw_breakpoint_from_kind): Turn into...
1995 (crisv32_target::sw_breakpoint_from_kind): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1998 Declare.
1999 (ia64_target::sw_breakpoint_from_kind): Define.
2000 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2001 Declare.
2002 (m32r_sw_breakpoint_from_kind): Turn into...
2003 (m32r_target::sw_breakpoint_from_kind): ...this.
2004 (the_low_target): Remove the op field.
2005 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2006 Declare.
2007 (m68k_sw_breakpoint_from_kind): Turn into...
2008 (m68k_target::sw_breakpoint_from_kind): ...this.
2009 (the_low_target): Remove the op field.
2010 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2011 Declare.
2012 (mips_sw_breakpoint_from_kind): Turn into...
2013 (mips_target::sw_breakpoint_from_kind): ...this.
2014 (the_low_target): Remove the op field.
2015 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2016 Declare.
2017 (nios2_sw_breakpoint_from_kind): Turn into...
2018 (nios2_target::sw_breakpoint_from_kind): ...this.
2019 (the_low_target): Remove the op field.
2020 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2021 Declare.
2022 (ppc_sw_breakpoint_from_kind): Turn into...
2023 (ppc_target::sw_breakpoint_from_kind): ...this.
2024 (the_low_target): Remove the op field.
2025 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2026 Declare.
2027 (riscv_sw_breakpoint_from_kind): Turn into...
2028 (riscv_target::sw_breakpoint_from_kind): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2031 Declare.
2032 (s390_sw_breakpoint_from_kind): Turn into...
2033 (s390_target::sw_breakpoint_from_kind): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2036 Declare.
2037 (sh_sw_breakpoint_from_kind): Turn into...
2038 (sh_target::sw_breakpoint_from_kind): ...this.
2039 (the_low_target): Remove the op field.
2040 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2041 Declare.
2042 (sparc_sw_breakpoint_from_kind): Turn into...
2043 (sparc_target::sw_breakpoint_from_kind): ...this.
2044 (the_low_target): Remove the op field.
2045 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2046 Declare.
2047 (tic6x_sw_breakpoint_from_kind): Turn into...
2048 (tic6x_target::sw_breakpoint_from_kind): ...this.
2049 (the_low_target): Remove the op field.
2050 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2051 Declare.
2052 (tile_sw_breakpoint_from_kind): Turn into...
2053 (tile_target::sw_breakpoint_from_kind): ...this.
2054 (the_low_target): Remove the op field.
2055 * linux-xtensa-low.cc (class xtensa_target)
2056 <sw_breakpoint_from_kind>: Declare.
2057 (xtensa_sw_breakpoint_from_kind): Turn into...
2058 (xtensa_target::sw_breakpoint_from_kind): ...this.
2059 (the_low_target): Remove the op field.
2060
2061 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2062
2063 Remove the 'breakpoint_kind_from_pc' and
2064 'breakpoint_kind_from_current_state' linux target ops, and let the
2065 concrete linux target define them by overriding the ops of
2066 process_stratum_target.
2067
2068 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2069 Remove.
2070 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2071 * linux-low.h (struct linux_target_ops): Remove ops.
2072 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2073 <breakpoint_kind_from_current_state>: Remove.
2074 * linux-x86-low.cc (the_low_target): Remove the op fields.
2075 * linux-bfin-low.cc (the_low_target): Ditto.
2076 * linux-cris-low.cc (the_low_target): Ditto.
2077 * linux-crisv32-low.cc (the_low_target): Ditto.
2078 * linux-m32r-low.cc (the_low_target): Ditto.
2079 * linux-m68k-low.cc (the_low_target): Ditto.
2080 * linux-mips-low.cc (the_low_target): Ditto.
2081 * linux-nios2-low.cc (the_low_target): Ditto.
2082 * linux-ppc-low.cc (the_low_target): Ditto.
2083 * linux-s390-low.cc (the_low_target): Ditto.
2084 * linux-sh-low.cc (the_low_target): Ditto.
2085 * linux-sparc-low.cc (the_low_target): Ditto.
2086 * linux-tic6x-low.cc (the_low_target): Ditto.
2087 * linux-tile-low.cc (the_low_target): Ditto.
2088 * linux-xtensa-low.cc (the_low_target): Ditto.
2089 * linux-aarch64-low.cc (class aarch64_target)
2090 <breakpoint_kind_from_pc>
2091 <breakpoint_kind_from_current_state>: Declare.
2092 (aarch64_breakpoint_kind_from_pc): Turn into...
2093 (aarch64_target::breakpoint_kind_from_pc): ...this.
2094 (aarch64_breakpoint_kind_from_current_state): Turn into...
2095 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2096 (the_low_target): Remove the op fields.
2097 * linux-arm-low.cc (class arm_target):
2098 <breakpoint_kind_from_pc>
2099 <breakpoint_kind_from_current_state>: Declare.
2100 (arm_target::breakpoint_kind_from_pc): Define.
2101 (arm_target::breakpoint_kind_from_current_state): Define.
2102 (the_low_target): Remove the op fields.
2103 * linux-riscv-low.cc (class riscv_target):
2104 <breakpoint_kind_from_pc>: Declare.
2105 (riscv_breakpoint_kind_from_pc): Turn into...
2106 (riscv_target::breakpoint_kind_from_pc): ...this.
2107 (the_low_target): Remove the op fields.
2108
2109 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2110
2111 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2112 of linux_process_target.
2113
2114 * linux-low.h (struct linux_target_ops): Remove the ops.
2115 (class linux_process_target) <low_supports_breakpoints>
2116 <low_get_pc>
2117 <low_set_pc>: Declare.
2118 * linux-low.cc (supports_breakpoints): Turn into...
2119 (linux_process_target::low_supports_breakpoints): ...this.
2120 (linux_process_target::low_get_pc): Define.
2121 (linux_process_target::low_set_pc): Define.
2122
2123 Update the callers below.
2124
2125 (linux_process_target::get_pc)
2126 (linux_process_target::save_stop_reason)
2127 (linux_process_target::maybe_move_out_of_jump_pad)
2128 (linux_process_target::wait_1)
2129 (linux_process_target::resume_one_lwp_throw)
2130 (linux_process_target::resume)
2131 (linux_process_target::proceed_all_lwps)
2132 (linux_process_target::read_pc)
2133 (linux_process_target::write_pc)
2134
2135 * linux-x86-low.cc (class linux_process_target)
2136 <low_supports_breakpoints>
2137 <low_get_pc>
2138 <low_set_pc>: Declare.
2139 (x86_target::low_supports_breakpoints): Define.
2140 (x86_get_pc): Turn into...
2141 (x86_target::low_get_pc): ...this.
2142 (x86_set_pc): Turn into...
2143 (x86_target::low_set_pc): ...this.
2144 (the_low_target): Remove the op fields.
2145 * linux-arm-low.cc (class arm_target)
2146 <low_supports_breakpoints>
2147 <low_get_pc>
2148 <low_set_pc>: Declare.
2149 (arm_target::low_supports_breakpoints)
2150 (arm_target::low_get_pc)
2151 (arm_target::low_set_pc): Define.
2152 (the_low_target): Remove the op fields.
2153 * linux-bfin-low.cc (class bfin_target)
2154 <low_supports_breakpoints>
2155 <low_get_pc>
2156 <low_set_pc>: Declare.
2157 (bfin_target::low_supports_breakpoints)
2158 (bfin_target::low_get_pc)
2159 (bfin_target::low_set_pc): Define.
2160 (the_low_target): Remove the op fields.
2161 * linux-cris-low.cc (class cris_target)
2162 <low_supports_breakpoints>
2163 <low_get_pc>
2164 <low_set_pc>: Declare.
2165 (cris_target::low_supports_breakpoints)
2166 (cris_target::low_get_pc)
2167 (cris_target::low_set_pc): Define.
2168 (the_low_target): Remove the op fields.
2169 * linux-crisv32-low.cc (class crisv32_target)
2170 <low_supports_breakpoints>
2171 <low_get_pc>
2172 <low_set_pc>: Declare.
2173 (crisv32_target::low_supports_breakpoints)
2174 (crisv32_target::low_get_pc)
2175 (crisv32_target::low_set_pc): Define.
2176 (the_low_target): Remove the op fields.
2177 * linux-m32r-low.cc (class m32r_target)
2178 <low_supports_breakpoints>
2179 <low_get_pc>
2180 <low_set_pc>: Declare.
2181 (m32r_target::low_supports_breakpoints)
2182 (m32r_target::low_get_pc)
2183 (m32r_target::low_set_pc): Define.
2184 (the_low_target): Remove the op fields.
2185 * linux-m68k-low.cc (class m68k_target)
2186 <low_supports_breakpoints>
2187 <low_get_pc>
2188 <low_set_pc>: Declare.
2189 (m68k_target::low_supports_breakpoints)
2190 (m68k_target::low_get_pc)
2191 (m68k_target::low_set_pc): Define.
2192 (the_low_target): Remove the op fields.
2193 * linux-nios2-low.cc (class nios2_target)
2194 <low_supports_breakpoints>
2195 <low_get_pc>
2196 <low_set_pc>: Declare.
2197 (nios2_target::low_supports_breakpoints)
2198 (nios2_target::low_get_pc)
2199 (nios2_target::low_set_pc): Define.
2200 (the_low_target): Remove the op fields.
2201 * linux-sh-low.cc (class sh_target)
2202 <low_supports_breakpoints>
2203 <low_get_pc>
2204 <low_set_pc>: Declare.
2205 (sh_target::low_supports_breakpoints)
2206 (sh_target::low_get_pc)
2207 (sh_target::low_set_pc): Define.
2208 (the_low_target): Remove the op fields.
2209 * linux-xtensa-low.cc (class xtensa_target)
2210 <low_supports_breakpoints>
2211 <low_get_pc>
2212 <low_set_pc>: Declare.
2213 (xtensa_target::low_supports_breakpoints)
2214 (xtensa_target::low_get_pc)
2215 (xtensa_target::low_set_pc): Define.
2216 (the_low_target): Remove the op fields.
2217 * linux-sparc-low.cc (class sparc_target)
2218 <low_supports_breakpoints>
2219 <low_get_pc>: Declare.
2220 (sparc_target::low_supports_breakpoints)
2221 (sparc_target::low_get_pc): Define.
2222 (the_low_target): Remove the op fields.
2223 * linux-tile-low.cc (class tile_target)
2224 <low_supports_breakpoints>
2225 <low_get_pc>
2226 <low_set_pc>: Declare.
2227 (tile_target::low_supports_breakpoints)
2228 (tile_target::low_get_pc)
2229 (tile_target::low_set_pc): Define.
2230 (the_low_target): Remove the op fields.
2231 * linux-aarch64-low.cc (class aarch64_target)
2232 <low_supports_breakpoints>
2233 <low_get_pc>
2234 <low_set_pc>: Declare.
2235 (aarch64_target::low_supports_breakpoints): Define.
2236 (aarch64_get_pc): Turn into...
2237 (aarch64_target::low_get_pc): ...this.
2238 (aarch64_set_pc): Turn into...
2239 (aarch64_target::low_set_pc): ...this.
2240 (the_low_target): Remove the op fields.
2241 * linux-mips-low.cc (class mips_target)
2242 <low_supports_breakpoints>
2243 <low_get_pc>
2244 <low_set_pc>: Declare.
2245 (mips_target::low_supports_breakpoints): Define.
2246 (mips_get_pc): Turn into...
2247 (mips_target::low_get_pc): ...this.
2248 (mips_set_pc): Turn into...
2249 (mips_target::low_set_pc): ...this.
2250 (the_low_target): Remove the op fields.
2251 * linux-ppc-low.cc (class ppc_target)
2252 <low_supports_breakpoints>
2253 <low_get_pc>
2254 <low_set_pc>: Declare.
2255 (ppc_target::low_supports_breakpoints): Define.
2256 (ppc_get_pc): Turn into...
2257 (ppc_target::low_get_pc): ...this.
2258 (ppc_set_pc): Turn into...
2259 (ppc_target::low_set_pc): ...this.
2260 (the_low_target): Remove the op fields.
2261 * linux-riscv-low.cc (class riscv_target)
2262 <low_supports_breakpoints>
2263 <low_get_pc>
2264 <low_set_pc>: Declare.
2265 (riscv_target::low_supports_breakpoints): Define.
2266 (riscv_get_pc): Turn into...
2267 (riscv_target::low_get_pc): ...this.
2268 (riscv_set_pc): Turn into...
2269 (riscv_target::low_set_pc): ...this.
2270 (the_low_target): Remove the op fields.
2271 * linux-s390-low.cc (class s390_target)
2272 <low_supports_breakpoints>
2273 <low_get_pc>
2274 <low_set_pc>: Declare.
2275 (s390_target::low_supports_breakpoints): Define.
2276 (s390_get_pc): Turn into...
2277 (s390_target::low_get_pc): ...this.
2278 (s390_set_pc): Turn into...
2279 (s390_target::low_set_pc): ...this.
2280 (the_low_target): Remove the op fields.
2281 * linux-tic6x-low.cc (class tic6x_target)
2282 <low_supports_breakpoints>
2283 <low_get_pc>
2284 <low_set_pc>: Declare.
2285 (tic6x_target::low_supports_breakpoints): Define.
2286 (tic6x_get_pc): Turn into...
2287 (tic6x_target::low_get_pc): ...this.
2288 (tic6x_set_pc): Turn into...
2289 (tic6x_target::low_set_pc): ...this.
2290 (the_low_target): Remove the op fields.
2291
2292 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2293
2294 Turn some more static methods in linux-low into private methods
2295 of linux_process_target.
2296
2297 * linux-low.cc (get_pc): Turn into...
2298 (linux_process_target::get_pc): ...this.
2299 (save_stop_reason): Turn into...
2300 (linux_process_target::save_stop_reason): ...this.
2301 (thread_still_has_status_pending_p): Turn into...
2302 (linux_process_target::thread_still_has_status_pending): ...this.
2303 (status_pending_p_callback): Turn into...
2304 (linux_process_target::status_pending_p_callback): ...this.
2305 (resume_stopped_resumed_lwps): Turn into...
2306 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2307 (install_software_single_step_breakpoints): Turn into...
2308 (linux_process_target::install_software_single_step_breakpoints):
2309 ...this.
2310 (single_step): Turn into...
2311 (linux_process_target::single_step): ...this.
2312 (linux_resume_one_lwp_throw): Turn into...
2313 (linux_process_target::resume_one_lwp_throw): ...this.
2314 (linux_resume_one_lwp): Turn into...
2315 (linux_process_target::resume_one_lwp): ...this.
2316 (resume_status_pending_p): Turn into...
2317 (linux_process_target::resume_status_pending): ...this.
2318 (need_step_over_p): Turn into...
2319 (linux_process_target::thread_needs_step_over): ...this.
2320 (linux_resume_one_thread): Turn into...
2321 (linux_process_target::resume_one_thread): ...this.
2322 (proceed_one_lwp): Turn into...
2323 (linux_process_target::proceed_one_lwp): ...this.
2324 (unsuspend_and_proceed_one_lwp): Turn into...
2325 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2326
2327 Update the calls/references to the above functions below.
2328
2329 (linux_process_target::handle_extended_wait)
2330 (linux_process_target::filter_event)
2331 (linux_process_target::wait_for_event_filtered)
2332 (linux_process_target::wait_1)
2333 (linux_process_target::move_out_of_jump_pad)
2334 (linux_process_target::start_step_over)
2335 (linux_process_target::resume)
2336 (linux_process_target::proceed_all_lwps)
2337 (regsets_store_inferior_registers)
2338 (linux_process_target::store_register)
2339
2340 * linux-low.h (class linux_process_target)
2341 <get_pc>
2342 <save_stop_reason>
2343 <thread_still_has_status_pending>
2344 <status_pending_p_callback>
2345 <resume_stopped_resumed_lwps>
2346 <install_software_single_step_breakpoints>
2347 <single_step>
2348 <resume_one_lwp_throw>
2349 <resume_one_lwp>
2350 <resume_status_pending>
2351 <thread_needs_step_over>
2352 <resume_one_thread>
2353 <proceed_one_lwp>
2354 <unsuspend_and_proceed_one_lwp>: Declare.
2355
2356 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2357
2358 Turn the 'fetch_register' linux target op into a method of
2359 linux_process_target.
2360
2361 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2362 (class linux_process_target) <low_fetch_register>: Declare.
2363 * linux-x86-low.cc (the_low_target)
2364 * linux-aarch64-low.cc (the_low_target)
2365 * linux-arm-low.cc (the_low_target)
2366 * linux-bfin-low.cc (the_low_target)
2367 * linux-cris-low.cc (the_low_target)
2368 * linux-crisv32-low.cc (the_low_target)
2369 * linux-m32r-low.cc (the_low_target)
2370 * linux-m68k-low.cc (the_low_target)
2371 * linux-nios2-low.cc (the_low_target)
2372 * linux-ppc-low.cc (the_low_target)
2373 * linux-s390-low.cc (the_low_target)
2374 * linux-sh-low.cc (the_low_target)
2375 * linux-sparc-low.cc (the_low_target)
2376 * linux-tic6x-low.cc (the_low_target)
2377 * linux-tile-low.cc (the_low_target)
2378 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2379 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2380 Declare.
2381 (ia64_fetch_register): Turn into...
2382 (ia64_target::low_fetch_register): ...this.
2383 (the_low_target): Remove the op field.
2384 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2385 Declare.
2386 (mips_fetch_register): Turn into...
2387 (mips_target::low_fetch_register): ...this.
2388 (the_low_target): Remove the op field.
2389 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2390 Declare.
2391 (riscv_fetch_register): Turn into...
2392 (riscv_target::low_fetch_register): ...this.
2393 (the_low_target): Remove the op field.
2394
2395 Update the callers below.
2396
2397 * linux-low.cc (linux_process_target::fetch_registers)
2398 (linux_process_target::low_fetch_register)
2399
2400 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2401
2402 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2403 linux target ops into methods of linux_process_target.
2404
2405 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2406 (class linux_process_target) <fetch_register>
2407 <store_register>
2408 <usr_fetch_inferior_registers>
2409 <usr_store_inferior_registers>
2410 <low_cannot_fetch_register>
2411 <low_cannot_fetch_register> Declare.
2412 * linux-low.cc (fetch_register): Turn into...
2413 (linux_process_target::fetch_register): ...this.
2414 (store_register): Turn into ...
2415 (linux_process_target::store_register): ...this.
2416 (usr_fetch_inferior_registers): Turn into...
2417 (linux_process_target::usr_fetch_inferior_registers): ...this.
2418 (usr_store_inferior_registers): Turn into...
2419 (linux_process_target::usr_store_inferior_registers): ...this.
2420 * linux-x86-low.cc (class x86_target)
2421 <low_cannot_fetch_register>
2422 <low_cannot_store_register>: Declare.
2423 (x86_cannot_store_register): Turn into...
2424 (x86_target::low_cannot_store_register): ...this.
2425 (x86_cannot_fetch_register): Turn into...
2426 (x86_target::low_cannot_fetch_register): ...this.
2427 (the_low_target): Remove the target op fields.
2428 * linux-aarch64-low.cc (class aarch64_target)
2429 <low_cannot_fetch_register>
2430 <low_cannot_store_register>: Declare.
2431 (aarch64_target::low_cannot_fetch_register)
2432 (aarch64_target::low_cannot_store_register): Define.
2433 (the_low_target): Remove the op fields.
2434 * linux-arm-low.cc (class arm_target)
2435 <low_cannot_fetch_register>
2436 <low_cannot_store_register>: Declare.
2437 (arm_cannot_fetch_register): Turn into...
2438 (arm_target::low_cannot_fetch_register): ...this.
2439 (arm_cannot_store_register): Turn into...
2440 (arm_target::low_cannot_store_register): ...this.
2441 (the_low_target): Remove the op fields.
2442 * linux-bfin-low.cc (class bfin_target)
2443 <low_cannot_fetch_register>
2444 <low_cannot_store_register>: Declare.
2445 (bfin_cannot_fetch_register): Turn into...
2446 (bfin_target::low_cannot_fetch_register): ...this.
2447 (bfin_cannot_store_register): Turn into...
2448 (bfin_target::low_cannot_store_register): ...this.
2449 (the_low_target): Remove the op fields.
2450 * linux-cris-low.cc (class cris_target)
2451 <low_cannot_fetch_register>
2452 <low_cannot_store_register>: Declare.
2453 (cris_cannot_fetch_register): Turn into...
2454 (cris_target::low_cannot_fetch_register): ...this.
2455 (cris_cannot_store_register): Turn into...
2456 (cris_target::low_cannot_store_register): ...this.
2457 (the_low_target): Remove the op fields.
2458 * linux-crisv32-low.cc (class crisv32_target)
2459 <low_cannot_fetch_register>
2460 <low_cannot_store_register>: Declare.
2461 (crisv32_target::low_cannot_fetch_register)
2462 (crisv32_target::low_cannot_store_register): Define.
2463 (the_low_target): Remove the op fields.
2464 * linux-ia64-low.cc (class ia64_target)
2465 <low_cannot_fetch_register>
2466 <low_cannot_store_register>: Declare.
2467 (ia64_cannot_fetch_register): Turn into...
2468 (ia64_target::low_cannot_fetch_register): ...this.
2469 (ia64_cannot_store_register): Turn into...
2470 (ia64_target::low_cannot_store_register): ...this.
2471 (the_low_target): Remove the op fields.
2472 * linux-m32r-low.cc (class m32r_target)
2473 <low_cannot_fetch_register>
2474 <low_cannot_store_register>: Declare.
2475 (m32r_cannot_fetch_register): Turn into...
2476 (m32r_target::low_cannot_fetch_register): ...this.
2477 (m32r_cannot_store_register): Turn into...
2478 (m32r_target::low_cannot_store_register): ...this.
2479 (the_low_target): Remove the op fields.
2480 * linux-m68k-low.cc (class m68k_target)
2481 <low_cannot_fetch_register>
2482 <low_cannot_store_register>: Declare.
2483 (m68k_cannot_fetch_register): Turn into...
2484 (m68k_target::low_cannot_fetch_register): ...this.
2485 (m68k_cannot_store_register): Turn into...
2486 (m68k_target::low_cannot_store_register): ...this.
2487 (the_low_target): Remove the op fields.
2488 * linux-mips-low.cc (class mips_target)
2489 <low_cannot_fetch_register>
2490 <low_cannot_store_register>: Declare.
2491 (mips_cannot_fetch_register): Turn into...
2492 (mips_target::low_cannot_fetch_register): ...this.
2493 (mips_cannot_store_register): Turn into...
2494 (mips_target::low_cannot_store_register): ...this.
2495 (get_usrregs_info): Inline at the call sites in
2496 low_cannot_fetch_register and low_cannot_store_register,
2497 and remove.
2498 (the_low_target): Remove the op fields.
2499 * linux-nios2-low.cc (class nios2_target)
2500 <low_cannot_fetch_register>
2501 <low_cannot_store_register>: Declare.
2502 (nios2_cannot_fetch_register): Turn into...
2503 (nios2_target::low_cannot_fetch_register): ...this.
2504 (nios2_cannot_store_register): Turn into...
2505 (nios2_target::low_cannot_store_register): ...this.
2506 (the_low_target): Remove the op fields.
2507 * linux-ppc-low.cc (class ppc_target)
2508 <low_cannot_fetch_register>
2509 <low_cannot_store_register>: Declare.
2510 (ppc_cannot_fetch_register): Turn into...
2511 (ppc_target::low_cannot_fetch_register): ...this.
2512 (ppc_cannot_store_register): Turn into...
2513 (ppc_target::low_cannot_store_register): ...this.
2514 (the_low_target): Remove the op fields.
2515 * linux-riscv-low.cc (class riscv_target)
2516 <low_cannot_fetch_register>
2517 <low_cannot_store_register>: Declare.
2518 (riscv_target::low_cannot_fetch_register)
2519 (riscv_target::low_cannot_store_register): Define.
2520 (the_low_target): Remove the op fields.
2521 * linux-s390-low.cc (class s390_target)
2522 <low_cannot_fetch_register>
2523 <low_cannot_store_register>: Declare.
2524 (s390_cannot_fetch_register): Turn into...
2525 (s390_target::low_cannot_fetch_register): ...this.
2526 (s390_cannot_store_register): Turn into...
2527 (s390_target::low_cannot_store_register): ...this.
2528 (the_low_target): Remove the op fields.
2529 * linux-sh-low.cc (class sh_target)
2530 <low_cannot_fetch_register>
2531 <low_cannot_store_register>: Declare.
2532 (sh_cannot_fetch_register): Turn into...
2533 (sh_target::low_cannot_fetch_register): ...this.
2534 (sh_cannot_store_register): Turn into...
2535 (sh_target::low_cannot_store_register): ...this.
2536 (the_low_target): Remove the op fields.
2537 * linux-sparc-low.cc (class sparc_target)
2538 <low_cannot_fetch_register>
2539 <low_cannot_store_register>: Declare.
2540 (sparc_cannot_fetch_register): Turn into...
2541 (sparc_target::low_cannot_fetch_register): ...this.
2542 (sparc_cannot_store_register): Turn into...
2543 (sparc_target::low_cannot_store_register): ...this.
2544 (the_low_target): Remove the op fields.
2545 * linux-tic6x-low.cc (class tic6x_target)
2546 <low_cannot_fetch_register>
2547 <low_cannot_store_register>: Declare.
2548 (tic6x_cannot_fetch_register): Turn into...
2549 (tic6x_target::low_cannot_fetch_register): ...this.
2550 (tic6x_cannot_store_register): Turn into...
2551 (tic6x_target::low_cannot_store_register): ...this.
2552 (the_low_target): Remove the op fields.
2553 * linux-tile-low.cc (class tile_target)
2554 <low_cannot_fetch_register>
2555 <low_cannot_store_register>: Declare.
2556 (tile_cannot_fetch_register): Turn into...
2557 (tile_target::low_cannot_fetch_register): ...this.
2558 (tile_cannot_store_register): Turn into...
2559 (tile_target::low_cannot_store_register): ...this.
2560 (the_low_target): Remove the op fields.
2561 * linux-xtensa-low.cc (class xtensa_target)
2562 <low_cannot_fetch_register>
2563 <low_cannot_store_register>: Declare.
2564 (xtensa_target::low_cannot_fetch_register)
2565 (xtensa_target::low_cannot_store_register): Define.
2566 (the_low_target): Remove the op fields.
2567
2568 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2569
2570 Turn the 'regs_info' linux target op into a method of
2571 linux_process_target.
2572
2573 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2574 (class linux_process_target) <get_regs_info>: Define.
2575
2576 Update the callers below.
2577
2578 * linux-low.cc (linux_process_target::fetch_registers)
2579 (linux_process_target::store_registers)
2580 * proc-service.cc (gregset_info)
2581
2582 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2583 (x86_linux_regs_info): Turn into ...
2584 (x86_target::get_regs_info): ...this.
2585 (the_low_target): Remove the op field.
2586 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2587 Declare.
2588 (aarch64_regs_info): Turn into ...
2589 (aarch64_target::get_regs_info): ...this.
2590 (the_low_target): Remove the op field.
2591 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2592 (arm_regs_info): Turn into ...
2593 (arm_target::get_regs_info): ...this.
2594 (the_low_target): Remove the op field.
2595 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2596 (bfin_regs_info): Turn into ...
2597 (bfin_target::get_regs_info): ...this.
2598 (the_low_target): Remove the op field.
2599 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2600 (cris_regs_info): Turn into ...
2601 (cris_target::get_regs_info): ...this.
2602 (the_low_target): Remove the op field.
2603 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2604 Declare.
2605 (crisv32_regs_info): Turn into ...
2606 (crisv32_target::get_regs_info): ...this.
2607 (the_low_target): Remove the op field.
2608 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2609 (ia64_regs_info): Turn into ...
2610 (ia64_target::get_regs_info): ...this.
2611 (the_low_target): Remove the op field.
2612 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2613 (m32r_regs_info): Turn into ...
2614 (m32r_target::get_regs_info): ...this.
2615 (the_low_target): Remove the op field.
2616 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2617 (m68k_regs_info): Turn into ...
2618 (m68k_target::get_regs_info): ...this.
2619 (the_low_target): Remove the op field.
2620 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2621 (mips_regs_info): Turn into ...
2622 (mips_target::get_regs_info): ...this.
2623 (the_low_target): Remove the op field.
2624 (get_usrregs_info): Update the call to the op.
2625 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2626 (nios2_regs_info): Turn into ...
2627 (nios2_target::get_regs_info): ...this.
2628 (the_low_target): Remove the op field.
2629 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2630 (ppc_regs_info): Turn into ...
2631 (ppc_target::get_regs_info): ...this.
2632 (the_low_target): Remove the op field.
2633 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2634 (riscv_regs_info): Turn into ...
2635 (riscv_target::get_regs_info): ...this.
2636 (the_low_target): Remove the op field.
2637 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2638 (s390_regs_info): Turn into ...
2639 (s390_target::get_regs_info): ...this.
2640 (the_low_target): Remove the op field.
2641 (s390_collect_ptrace_register)
2642 (s390_supply_ptrace_register)
2643 (s390_fill_gregset): Update the call to the op.
2644 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2645 (sh_regs_info): Turn into ...
2646 (sh_target::get_regs_info): ...this.
2647 (the_low_target): Remove the op field.
2648 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2649 (sparc_regs_info): Turn into ...
2650 (sparc_target::get_regs_info): ...this.
2651 (the_low_target): Remove the op field.
2652 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2653 (tic6x_regs_info): Turn into ...
2654 (tic6x_target::get_regs_info): ...this.
2655 (the_low_target): Remove the op field.
2656 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2657 (tile_regs_info): Turn into ...
2658 (tile_target::get_regs_info): ...this.
2659 (the_low_target): Remove the op field.
2660 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2661 Declare.
2662 (xtensa_regs_info): Turn into ...
2663 (xtensa_target::get_regs_info): ...this.
2664 (the_low_target): Remove the op field.
2665
2666 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2667
2668 Turn the 'arch_setup' linux target op into a method of
2669 linux_process_target.
2670
2671 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2672 (class linux_process_target) <arch_setup_thread>
2673 <low_arch_setup>: New declarations.
2674 * linux-low.cc (linux_arch_setup): Delete.
2675 (linux_arch_setup_thread): Turn into...
2676 (linux_process_target::arch_setup_thread): ... this.
2677
2678 Update the callers below.
2679
2680 (linux_process_target::handle_extended_wait)
2681 (linux_process_target::post_create_inferior)
2682 (linux_process_target::filter_event)
2683
2684 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2685 declaration.
2686 (x86_linux_update_xmltarget): Turn into...
2687 (x86_target::update_xmltarget): ...this.
2688 (x86_linux_process_qsupported): Update the call to
2689 x86_linux_update_xmltarget.
2690 (x86_arch_setup): Turn into ...
2691 (x86_target::low_arch_setup): ...this.
2692 (the_low_target): Remove the op field.
2693 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2694 declaration.
2695 (aarch64_arch_setup): Turn into ...
2696 (aarch64_target::low_arch_setup): ...this.
2697 (the_low_target): Remove the op field.
2698 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2699 declaration.
2700 (arm_arch_setup): Turn into ...
2701 (arm_target::low_arch_setup): ...this.
2702 (the_low_target): Remove the op field.
2703 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2704 declaration.
2705 (bfin_arch_setup): Turn into ...
2706 (bfin_target::low_arch_setup): ...this.
2707 (the_low_target): Remove the op field.
2708 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2709 declaration.
2710 (cris_arch_setup): Turn into ...
2711 (cris_target::low_arch_setup): ...this.
2712 (the_low_target): Remove the op field.
2713 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2714 declaration.
2715 (crisv32_arch_setup): Turn into ...
2716 (crisv32_target::low_arch_setup): ...this.
2717 (the_low_target): Remove the op field.
2718 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2719 declaration.
2720 (ia64_arch_setup): Turn into ...
2721 (ia64_target::low_arch_setup): ...this.
2722 (the_low_target): Remove the op field.
2723 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2724 declaration.
2725 (m32r_arch_setup): Turn into ...
2726 (m32r_target::low_arch_setup): ...this.
2727 (the_low_target): Remove the op field.
2728 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2729 declaration.
2730 (m68k_arch_setup): Turn into ...
2731 (m68k_target::low_arch_setup): ...this.
2732 (the_low_target): Remove the op field.
2733 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2734 declaration.
2735 (mips_arch_setup): Turn into ...
2736 (mips_target::low_arch_setup): ...this.
2737 (the_low_target): Remove the op field.
2738 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2739 declaration.
2740 (nios2_arch_setup): Turn into ...
2741 (nios2_target::low_arch_setup): ...this.
2742 (the_low_target): Remove the op field.
2743 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2744 declaration.
2745 (ppc_arch_setup): Turn into ...
2746 (ppc_target::low_arch_setup): ...this.
2747 (the_low_target): Remove the op field.
2748 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2749 declaration.
2750 (riscv_arch_setup): Turn into ...
2751 (riscv_target::low_arch_setup): ...this.
2752 (the_low_target): Remove the op field.
2753 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2754 declaration.
2755 (s390_arch_setup): Turn into ...
2756 (s390_target::low_arch_setup): ...this.
2757 (the_low_target): Remove the op field.
2758 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2759 declaration.
2760 (sh_arch_setup): Turn into ...
2761 (sh_target::low_arch_setup): ...this.
2762 (the_low_target): Remove the op field.
2763 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2764 declaration.
2765 (sparc_arch_setup): Turn into ...
2766 (sparc_target::low_arch_setup): ...this.
2767 (the_low_target): Remove the op field.
2768 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2769 declaration.
2770 (tic6x_arch_setup): Turn into ...
2771 (tic6x_target::low_arch_setup): ...this.
2772 (the_low_target): Remove the op field.
2773 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2774 declaration.
2775 (tile_arch_setup): Turn into ...
2776 (tile_target::low_arch_setup): ...this.
2777 (the_low_target): Remove the op field.
2778 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2779 declaration.
2780 (xtensa_arch_setup): Turn into ...
2781 (xtensa_target::low_arch_setup): ...this.
2782 (the_low_target): Remove the op field.
2783
2784 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2785
2786 * linux-low.h (the_linux_target): New extern declaration.
2787 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2788 'the_target'.
2789 (the_linux_target): Remove.
2790 * linux-x86-low.cc (class x86_target): New class.
2791 (the_x86_target): New static object.
2792 (the_linux_target): Define as pointer to the_x86_target.
2793 * linux-aarch64-low.cc (class aarch64_target): New class.
2794 (the_aarch64_target): New static object.
2795 (the_linux_target): Define as pointer to the_aarch64_target.
2796 * linux-arm-low.cc (class arm_target): New class.
2797 (the_arm_target): New static object.
2798 (the_linux_target): Define as pointer to the_arm_target.
2799 * linux-bfin-low.cc (class bfin_target): New class.
2800 (the_bfin_target): New static object.
2801 (the_linux_target): Define as pointer to the_bfin_target.
2802 * linux-cris-low.cc (class cris_target): New class.
2803 (the_cris_target): New static object.
2804 (the_linux_target): Define as pointer to the_cris_target.
2805 * linux-crisv32-low.cc (class crisv32_target): New class.
2806 (the_crisv32_target): New static object.
2807 (the_linux_target): Define as pointer to the_crisv32_target.
2808 * linux-ia64-low.cc (class ia64_target): New class.
2809 (the_ia64_target): New static object.
2810 (the_linux_target): Define as pointer to the_ia64_target.
2811 * linux-m32r-low.cc (class m32r_target): New class.
2812 (the_m32r_target): New static object.
2813 (the_linux_target): Define as pointer to the_m32r_target.
2814 * linux-m68k-low.cc (class m68k_target): New class.
2815 (the_m68k_target): New static object.
2816 (the_linux_target): Define as pointer to the_m68k_target.
2817 * linux-mips-low.cc (class mips_target): New class.
2818 (the_mips_target): New static object.
2819 (the_linux_target): Define as pointer to the_mips_target.
2820 * linux-nios2-low.cc (class nios2_target): New class.
2821 (the_nios2_target): New static object.
2822 (the_linux_target): Define as pointer to the_nios2_target.
2823 * linux-ppc-low.cc (class ppc_target): New class.
2824 (the_ppc_target): New static object.
2825 (the_linux_target): Define as pointer to the_ppc_target.
2826 * linux-riscv-low.cc (class riscv_target): New class.
2827 (the_riscv_target): New static object.
2828 (the_linux_target): Define as pointer to the_riscv_target.
2829 * linux-s390-low.cc (class s390_target): New class.
2830 (the_s390_target): New static object.
2831 (the_linux_target): Define as pointer to the_s390_target.
2832 * linux-sh-low.cc (class sh_target): New class.
2833 (the_sh_target): New static object.
2834 (the_linux_target): Define as pointer to the_sh_target.
2835 * linux-sparc-low.cc (class sparc_target): New class.
2836 (the_sparc_target): New static object.
2837 (the_linux_target): Define as pointer to the_sparc_target.
2838 * linux-tic6x-low.cc (class tic6x_target): New class.
2839 (the_tic6x_target): New static object.
2840 (the_linux_target): Define as pointer to the_tic6x_target.
2841 * linux-tile-low.cc (class tile_target): New class.
2842 (the_tile_target): New static object.
2843 (the_linux_target): Define as pointer to the_tile_target.
2844 * linux-xtensa-low.cc (class xtensa_target): New class.
2845 (the_xtensa_target): New static object.
2846 (the_linux_target): Define as pointer to the_xtensa_target.
2847
2848 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2849
2850 Turn some static functions in linux-low.cc into private methods of
2851 linux_process_target.
2852
2853 * linux-low.cc (handle_extended_wait): Turn into ...
2854 (linux_process_target::handle_extended_wait): ...this. Call
2855 'mourn' on 'this' object instead of 'the_target'.
2856 (maybe_move_out_of_jump_pad): Turn into...
2857 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2858 (linux_low_filter_event): Turn into...
2859 (linux_process_target::filter_event): ...this.
2860 (linux_wait_for_event_filtered): Turn into...
2861 (linux_process_target::wait_for_event_filtered): ...this.
2862 (linux_wait_for_event): Turn into...
2863 (linux_process_target::wait_for_event): ...this.
2864 (linux_wait_1): Turn into...
2865 (linux_process_target::wait_1): ...this.
2866 (wait_for_sigstop): Turn into...
2867 (linux_process_target::wait_for_sigstop): ...this.
2868 (move_out_of_jump_pad_callback): Turn into...
2869 (linux_process_target::move_out_of_jump_pad): ...this.
2870 (stop_all_lwps): Turn into...
2871 (linux_process_target::stop_all_lwps): ...this.
2872 (start_step_over): Turn into...
2873 (linux_process_target::start_step_over): ...this.
2874 (complete_ongoing_step_over): Turn into...
2875 (linux_process_target::complete_ongoing_step_over): ...this.
2876 (proceed_all_lwps): Turn into...
2877 (linux_process_target::proceed_all_lwps): ...this.
2878 (unstop_all_lwps): Turn into...
2879 (linux_process_target::unstop_all_lwps): ...this.
2880
2881 * linux-low.h (class linux_process_target)
2882 <handle_extended_wait>
2883 <maybe_move_out_of_jump_pad>
2884 filter_event>
2885 <wait_for_event_filtered>
2886 <wait_for_event>
2887 <wait_1>
2888 <wait_for_sigstop>
2889 <move_out_of_jump_pad>
2890 <stop_all_lwps>
2891 <start_step_over>
2892 <complete_ongoing_step_over>
2893 <proceed_all_lwps>
2894 <unstop_all_lwps>: Declare.
2895
2896 Update the callers below.
2897
2898 * linux-low.cc (linux_process_target::attach): Update.
2899 (linux_process_target::stabilize_threads): Ditto.
2900 (linux_process_target::wait): Ditto.
2901
2902 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2903
2904 * linux-low.h (struct linux_target_ops): Update the comment for
2905 'cannot_store_register' to return 0 or 1.
2906 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2907 of 2.
2908
2909 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2910
2911 * config.in: Re-generate.
2912 * configure: Re-generate.
2913
2914 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2915
2916 * regcache.cc (find_register_by_number): Update.
2917 * tdesc.cc (init_target_desc): Likewise.
2918 * tdesc.h (target_desc::reg_defs): Likewise.
2919
2920 2020-03-12 Tom Tromey <tom@tromey.com>
2921
2922 * configure: Rebuild.
2923 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2924 (WIN32APILIBS): New subst.
2925 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2926 gdbsupport files.
2927 (gdbsupport/%.o): Remove target.
2928 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2929 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2930 (WIN32APILIBS): New variable.
2931 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2932 (gdbreplay$(EXEEXT)): Likewise.
2933
2934 2020-03-12 Tom Tromey <tom@tromey.com>
2935
2936 * config.in, configure: Rebuild.
2937 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2938 * acinclude.m4: Include gettext-sister.m4.
2939 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2940 variables.
2941 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2942 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2943
2944 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2945
2946 * acinclude.m4: Update path to selftest.m4.
2947
2948 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2949
2950 * configure.ac: Don't source bfd/development.sh, move
2951 GDB_AC_COMMON higher.
2952 * configure: Re-generate.
2953
2954 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * configure: Re-generate.
2957
2958 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2959
2960 * configure: Re-generate.
2961
2962 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2963
2964 * .dir-locals.el: New file.
2965
2966 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2967
2968 * .gitattributes: New file.
2969
2970 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2971
2972 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2973 reply into an S reply.
2974 * server.cc (disable_packet_T): New global.
2975 (captured_main): Set new global when appropriate.
2976 * server.h (disable_packet_T): Declare.
2977
2978 2020-02-21 Tom Tromey <tom@tromey.com>
2979
2980 * Makefile.in (mostlyclean): New target.
2981
2982 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2983
2984 * target.h (struct process_stratum_target): Remove.
2985 (class process_target): Rename to ...
2986 (class process_stratum_target): ... this.
2987 * linux-low.h (class linux_process_target): Derive from
2988 'process_stratum_target'.
2989 * linux-low.cc (linux_target_ops): Remove.
2990 (initialize_low): Set the_target to the singleton instance of
2991 linux_process_target.
2992 * lynx-low.h (class lynx_process_target): Derive from
2993 'process_stratum_target'.
2994 * lynx-low.cc (lynx_target_ops): Remove.
2995 (initialize_low): Set the_target to the singleton instance of
2996 lynx_process_target.
2997 * nto-low.h (class nto_process_target): Derive from
2998 'process_stratum_target'.
2999 * nto-low.cc (nto_target_ops): Remove.
3000 (initialize_low): Set the_target to the singleton instance of
3001 nto_process_target.
3002 * win32-low.h (class win32_process_target): Derive from
3003 'process_stratum_target'.
3004 * win32-low.cc (win32_target_ops): Remove.
3005 (initialize_low): Set the_target to the singleton instance of
3006 win32_process_target.
3007
3008 Replace 'the_target->pt' with 'the_target' in the uses below.
3009
3010 * hostio.cc (hostio_error)
3011 (handle_setfs)
3012 (handle_open)
3013 (handle_unlink)
3014 (handle_readlink)
3015 * linux-aarch32-low.cc (arm_breakpoint_at)
3016 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3017 * linux-arm-low.cc (arm_sigreturn_next_pc)
3018 (arm_get_hwcap)
3019 (arm_get_syscall_trapinfo)
3020 * linux-cris-low.cc (cris_breakpoint_at)
3021 * linux-crisv32-low.cc (cris_breakpoint_at)
3022 * linux-low.cc (handle_extended_wait)
3023 (linux_wait_1)
3024 (linux_read_memory)
3025 (linux_process_target::breakpoint_kind_from_pc)
3026 (linux_get_auxv)
3027 * linux-m32r-low.cc (m32r_breakpoint_at)
3028 * linux-mips-low.cc (mips_breakpoint_at)
3029 * linux-nios2-low.cc (nios2_breakpoint_at)
3030 * linux-ppc-low.cc (ppc_breakpoint_at)
3031 * linux-s390-low.cc (s390_get_hwcap)
3032 * linux-sh-low.cc (sh_breakpoint_at)
3033 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3034 (sparc_store_gregset_from_stack)
3035 (sparc_breakpoint_at)
3036 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3037 * linux-tile-low.cc (tile_breakpoint_at)
3038 * linux-x86-low.cc (x86_breakpoint_at)
3039 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3040 * mem-break.cc (bp_size)
3041 (bp_opcode)
3042 (insert_memory_breakpoint)
3043 (set_raw_breakpoint_at)
3044 (delete_raw_breakpoint)
3045 (z_type_supported)
3046 (uninsert_raw_breakpoint)
3047 (reinsert_raw_breakpoint)
3048 (validate_inserted_breakpoint)
3049 * regcache.cc (regcache_read_pc)
3050 (regcache_write_pc)
3051 * remote-utils.cc (putpkt_binary_1)
3052 (input_interrupt)
3053 (getpkt)
3054 (prepare_resume_reply)
3055 * server.cc (handle_general_set)
3056 (handle_detach)
3057 (handle_qxfer_auxv)
3058 (handle_qxfer_exec_file)
3059 (handle_qxfer_libraries_svr4)
3060 (handle_qxfer_osdata)
3061 (handle_qxfer_siginfo)
3062 (handle_qxfer_fdpic)
3063 (handle_query)
3064 (resume)
3065 (handle_v_requests)
3066 (queue_stop_reply_callback)
3067 (captured_main)
3068 * target.cc (prepare_to_access_memory)
3069 (done_accessing_memory)
3070 (read_inferior_memory)
3071 (target_write_memory)
3072 (target_stop_and_wait)
3073 (target_wait)
3074 (target_mourn_inferior)
3075 (target_continue_no_signal)
3076 (target_continue)
3077 (target_supports_multi_process)
3078 (kill_inferior)
3079 * target.h
3080 (target_create_inferior)
3081 (target_post_create_inferior)
3082 (myattach)
3083 (target_supports_fork_events)
3084 (target_supports_vfork_events)
3085 (target_supports_exec_events)
3086 (target_handle_new_gdb_connection)
3087 (detach_inferior)
3088 (mythread_alive)
3089 (fetch_inferior_registers)
3090 (store_inferior_registers)
3091 (join_inferior)
3092 (target_supports_non_stop)
3093 (target_async)
3094 (target_process_qsupported)
3095 (target_supports_catch_syscall)
3096 (target_get_ipa_tdesc_idx)
3097 (target_supports_tracepoints)
3098 (target_supports_fast_tracepoints)
3099 (target_get_min_fast_tracepoint_insn_len)
3100 (target_thread_stopped)
3101 (target_pause_all)
3102 (target_unpause_all)
3103 (target_stabilize_threads)
3104 (target_install_fast_tracepoint_jump_pad)
3105 (target_emit_ops)
3106 (target_supports_disable_randomization)
3107 (target_supports_agent)
3108 (target_enable_btrace)
3109 (target_disable_btrace)
3110 (target_read_btrace)
3111 (target_read_btrace_conf)
3112 (target_supports_range_stepping)
3113 (target_supports_stopped_by_sw_breakpoint)
3114 (target_stopped_by_sw_breakpoint)
3115 (target_supports_stopped_by_hw_breakpoint)
3116 (target_supports_hardware_single_step)
3117 (target_stopped_by_hw_breakpoint)
3118 (target_breakpoint_kind_from_pc)
3119 (target_breakpoint_kind_from_current_state)
3120 (target_supports_software_single_step)
3121 (target_core_of_thread)
3122 (target_thread_name)
3123 (target_thread_handle)
3124 * win32-low.cc (do_initial_child_stuff)
3125
3126 Rename target op default definitions listed below.
3127
3128 * target.cc (process_target::post_create_inferior): Rename as ...
3129 (process_stratum_target::post_create_inferior): ... this.
3130 (process_target::prepare_to_access_memory): Rename as ...
3131 (process_stratum_target::prepare_to_access_memory): ... this.
3132 (process_target::done_accessing_memory): Rename as ...
3133 (process_stratum_target::done_accessing_memory): ... this.
3134 (process_target::look_up_symbols): Rename as ...
3135 (process_stratum_target::look_up_symbols): ... this.
3136 (process_target::supports_read_auxv): Rename as ...
3137 (process_stratum_target::supports_read_auxv): ... this.
3138 (process_target::read_auxv): Rename as ...
3139 (process_stratum_target::read_auxv): ... this.
3140 (process_target::supports_z_point_type): Rename as ...
3141 (process_stratum_target::supports_z_point_type): ... this.
3142 (process_target::insert_point): Rename as ...
3143 (process_stratum_target::insert_point): ... this.
3144 (process_target::remove_point): Rename as ...
3145 (process_stratum_target::remove_point): ... this.
3146 (process_target::stopped_by_sw_breakpoint): Rename as ...
3147 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3148 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3149 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3150 (process_target::stopped_by_hw_breakpoint): Rename as ...
3151 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3152 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3153 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3154 (process_target::supports_hardware_single_step): Rename as ...
3155 (process_stratum_target::supports_hardware_single_step): ... this.
3156 (process_target::stopped_by_watchpoint): Rename as ...
3157 (process_stratum_target::stopped_by_watchpoint): ... this.
3158 (process_target::stopped_data_address): Rename as ...
3159 (process_stratum_target::stopped_data_address): ... this.
3160 (process_target::supports_read_offsets): Rename as ...
3161 (process_stratum_target::supports_read_offsets): ... this.
3162 (process_target::read_offsets): Rename as ...
3163 (process_stratum_target::read_offsets): ... this.
3164 (process_target::supports_get_tls_address): Rename as ...
3165 (process_stratum_target::supports_get_tls_address): ... this.
3166 (process_target::get_tls_address): Rename as ...
3167 (process_stratum_target::get_tls_address): ... this.
3168 (process_target::hostio_last_error): Rename as ...
3169 (process_stratum_target::hostio_last_error): ... this.
3170 (process_target::supports_qxfer_osdata): Rename as ...
3171 (process_stratum_target::supports_qxfer_osdata): ... this.
3172 (process_target::qxfer_osdata): Rename as ...
3173 (process_stratum_target::qxfer_osdata): ... this.
3174 (process_target::supports_qxfer_siginfo): Rename as ...
3175 (process_stratum_target::supports_qxfer_siginfo): ... this.
3176 (process_target::qxfer_siginfo): Rename as ...
3177 (process_stratum_target::qxfer_siginfo): ... this.
3178 (process_target::supports_non_stop): Rename as ...
3179 (process_stratum_target::supports_non_stop): ... this.
3180 (process_target::async): Rename as ...
3181 (process_stratum_target::async): ... this.
3182 (process_target::start_non_stop): Rename as ...
3183 (process_stratum_target::start_non_stop): ... this.
3184 (process_target::supports_multi_process): Rename as ...
3185 (process_stratum_target::supports_multi_process): ... this.
3186 (process_target::supports_fork_events): Rename as ...
3187 (process_stratum_target::supports_fork_events): ... this.
3188 (process_target::supports_vfork_events): Rename as ...
3189 (process_stratum_target::supports_vfork_events): ... this.
3190 (process_target::supports_exec_events): Rename as ...
3191 (process_stratum_target::supports_exec_events): ... this.
3192 (process_target::handle_new_gdb_connection): Rename as ...
3193 (process_stratum_target::handle_new_gdb_connection): ... this.
3194 (process_target::handle_monitor_command): Rename as ...
3195 (process_stratum_target::handle_monitor_command): ... this.
3196 (process_target::core_of_thread): Rename as ...
3197 (process_stratum_target::core_of_thread): ... this.
3198 (process_target::supports_read_loadmap): Rename as ...
3199 (process_stratum_target::supports_read_loadmap): ... this.
3200 (process_target::read_loadmap): Rename as ...
3201 (process_stratum_target::read_loadmap): ... this.
3202 (process_target::process_qsupported): Rename as ...
3203 (process_stratum_target::process_qsupported): ... this.
3204 (process_target::supports_tracepoints): Rename as ...
3205 (process_stratum_target::supports_tracepoints): ... this.
3206 (process_target::read_pc): Rename as ...
3207 (process_stratum_target::read_pc): ... this.
3208 (process_target::write_pc): Rename as ...
3209 (process_stratum_target::write_pc): ... this.
3210 (process_target::supports_thread_stopped): Rename as ...
3211 (process_stratum_target::supports_thread_stopped): ... this.
3212 (process_target::thread_stopped): Rename as ...
3213 (process_stratum_target::thread_stopped): ... this.
3214 (process_target::supports_get_tib_address): Rename as ...
3215 (process_stratum_target::supports_get_tib_address): ... this.
3216 (process_target::get_tib_address): Rename as ...
3217 (process_stratum_target::get_tib_address): ... this.
3218 (process_target::pause_all): Rename as ...
3219 (process_stratum_target::pause_all): ... this.
3220 (process_target::unpause_all): Rename as ...
3221 (process_stratum_target::unpause_all): ... this.
3222 (process_target::stabilize_threads): Rename as ...
3223 (process_stratum_target::stabilize_threads): ... this.
3224 (process_target::supports_fast_tracepoints): Rename as ...
3225 (process_stratum_target::supports_fast_tracepoints): ... this.
3226 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3227 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3228 (process_target::emit_ops): Rename as ...
3229 (process_stratum_target::emit_ops): ... this.
3230 (process_target::supports_disable_randomization): Rename as ...
3231 (process_stratum_target::supports_disable_randomization): ... this.
3232 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3233 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3234 (process_target::qxfer_libraries_svr4): Rename as ...
3235 (process_stratum_target::qxfer_libraries_svr4): ... this.
3236 (process_target::supports_agent): Rename as ...
3237 (process_stratum_target::supports_agent): ... this.
3238 (process_target::enable_btrace): Rename as ...
3239 (process_stratum_target::enable_btrace): ... this.
3240 (process_target::disable_btrace): Rename as ...
3241 (process_stratum_target::disable_btrace): ... this.
3242 (process_target::read_btrace): Rename as ...
3243 (process_stratum_target::read_btrace): ... this.
3244 (process_target::read_btrace_conf): Rename as ...
3245 (process_stratum_target::read_btrace_conf): ... this.
3246 (process_target::supports_range_stepping): Rename as ...
3247 (process_stratum_target::supports_range_stepping): ... this.
3248 (process_target::supports_pid_to_exec_file): Rename as ...
3249 (process_stratum_target::supports_pid_to_exec_file): ... this.
3250 (process_target::pid_to_exec_file): Rename as ...
3251 (process_stratum_target::pid_to_exec_file): ... this.
3252 (process_target::supports_multifs): Rename as ...
3253 (process_stratum_target::supports_multifs): ... this.
3254 (process_target::multifs_open): Rename as ...
3255 (process_stratum_target::multifs_open): ... this.
3256 (process_target::multifs_unlink): Rename as ...
3257 (process_stratum_target::multifs_unlink): ... this.
3258 (process_target::multifs_readlink): Rename as ...
3259 (process_stratum_target::multifs_readlink): ... this.
3260 (process_target::breakpoint_kind_from_pc): Rename as ...
3261 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3262 (process_target::breakpoint_kind_from_current_state): Rename as ...
3263 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3264 (process_target::thread_name): Rename as ...
3265 (process_stratum_target::thread_name): ... this.
3266 (process_target::thread_handle): Rename as ...
3267 (process_stratum_target::thread_handle): ... this.
3268 (process_target::supports_software_single_step): Rename as ...
3269 (process_stratum_target::supports_software_single_step): ... this.
3270 (process_target::supports_catch_syscall): Rename as ...
3271 (process_stratum_target::supports_catch_syscall): ... this.
3272 (process_target::get_ipa_tdesc_idx): Rename as ...
3273 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3274
3275 2020-02-20 Pedro Alves <palves@redhat.com>
3276
3277 * target.cc (set_target_ops): Simply copy the given target pointer
3278 instead of creating a copy of the pointed object.
3279
3280 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3281
3282 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3283 of process_target.
3284
3285 * target.h (struct process_stratum_target): Remove the target op.
3286 (class process_target): Add the target op.
3287 (target_get_ipa_tdesc_idx): Update the macro.
3288 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3289
3290 Update the derived classes and callers below.
3291
3292 * linux-low.cc (linux_target_ops): Update.
3293 (linux_get_ipa_tdesc_idx): Turn into ...
3294 (linux_process_target::get_ipa_tdesc_idx): ... this.
3295 * linux-low.h (class linux_process_target): Update.
3296 * lynx-low.cc (lynx_target_ops): Update.
3297 * nto-low.cc (nto_target_ops): Update.
3298 * win32-low.cc (win32_target_ops): Update.
3299
3300 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3301
3302 Turn process_stratum_target's supports_catch_syscall op into a
3303 method of process_target.
3304
3305 * target.h (struct process_stratum_target): Remove the target op.
3306 (class process_target): Add the target op.
3307 (target_supports_catch_syscall): Update the macro.
3308 * target.cc (process_target::supports_catch_syscall): Define.
3309
3310 Update the derived classes and callers below.
3311
3312 * linux-low.cc (linux_target_ops): Update.
3313 (linux_supports_catch_syscall): Turn into ...
3314 (linux_process_target::supports_catch_syscall): ... this.
3315 * linux-low.h (class linux_process_target): Update.
3316 * lynx-low.cc (lynx_target_ops): Update.
3317 * nto-low.cc (nto_target_ops): Update.
3318 * win32-low.cc (win32_target_ops): Update.
3319
3320 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3321
3322 Turn process_stratum_target's supports_software_single_step op
3323 into a method of process_target.
3324
3325 * target.h (struct process_stratum_target): Remove the target op.
3326 (class process_target): Add the target op.
3327 (target_supports_software_single_step): Update the macro.
3328 * target.cc (process_target::supports_software_single_step): Define.
3329
3330 Update the derived classes and callers below.
3331
3332 * linux-low.cc (linux_target_ops): Update.
3333 (linux_supports_software_single_step): Turn into ...
3334 (linux_process_target::supports_software_single_step): ... this.
3335 * linux-low.h (class linux_process_target): Update.
3336 * lynx-low.cc (lynx_target_ops): Update.
3337 * nto-low.cc (nto_target_ops): Update.
3338 * win32-low.cc (win32_target_ops): Update.
3339
3340 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3341
3342 Turn process_stratum_target's thread_name and thread_handle ops
3343 into methods of process_target.
3344
3345 * target.h (struct process_stratum_target): Remove the target ops.
3346 (class process_target): Add the target ops.
3347 (target_thread_name): Update the macro.
3348 (target_thread_handle): Update the macro.
3349 * target.cc (process_target::thread_name): Define.
3350 (process_target::thread_handle): Define.
3351
3352 Update the derived classes and callers below.
3353
3354 * linux-low.cc (linux_target_ops): Update.
3355 (linux_process_target::thread_name): Define.
3356 (linux_process_target::thread_handle): Define.
3357 * linux-low.h (class linux_process_target): Update.
3358 * lynx-low.cc (lynx_target_ops): Update.
3359 * nto-low.cc (nto_target_ops): Update.
3360 * win32-low.cc (win32_target_ops): Update.
3361
3362 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3363
3364 Turn process_stratum_target's breakpoint_kind_from_pc,
3365 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3366 ops into methods of process_target.
3367
3368 * target.h (struct process_stratum_target): Remove the target op.
3369 (class process_target): Add the target op.
3370 (target_breakpoint_kind_from_pc): Update the macro.
3371 (target_breakpoint_kind_from_current_state): Update the macro.
3372 (default_breakpoint_kind_from_pc): Remove declaration.
3373 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3374 (process_target::breakpoint_kind_from_pc): ... this.
3375 (process_target::breakpoint_kind_from_current_state): Define.
3376
3377 Update the derived classes and callers below.
3378
3379 * mem-break.cc (bp_size): Update.
3380 (bp_opcode): Update.
3381 * linux-low.cc (linux_target_ops): Update.
3382 (linux_wait_1): Update.
3383 (linux_breakpoint_kind_from_pc): Turn into ...
3384 (linux_process_target::breakpoint_kind_from_pc): ... this.
3385 (linux_sw_breakpoint_from_kind): Turn into ...
3386 (linux_process_target::sw_breakpoint_from_kind): ... this.
3387 (linux_breakpoint_kind_from_current_state): Turn into ...
3388 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3389 * linux-low.h (class linux_process_target): Update.
3390 * lynx-low.cc (lynx_target_ops): Update.
3391 (lynx_process_target::sw_breakpoint_from_kind): Define.
3392 * lynx-low.h (class lynx_process_target): Update.
3393 * nto-low.cc (nto_target_ops): Update.
3394 (nto_sw_breakpoint_from_kind): Turn into ...
3395 (nto_process_target::sw_breakpoint_from_kind): ... this.
3396 * nto-low.h (class nto_process_target): Update.
3397 * win32-low.cc (win32_target_ops): Update.
3398 (win32_sw_breakpoint_from_kind): Turn into ...
3399 (win32_process_target::sw_breakpoint_from_kind): ... this.
3400 * win32-low.h (class win32_process_target): Update.
3401
3402 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3403
3404 Turn process_stratum_target's multifs_open, multifs_readlink,
3405 multifs_unlink ops into methods of process_target.
3406
3407 * target.h (struct process_stratum_target): Remove the target ops.
3408 (class process_target): Add the target ops. Also add
3409 'supports_multifs'.
3410 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3411 "sys/stat.h".
3412 (process_target::supports_multifs): Define.
3413 (process_target::multifs_open): Define.
3414 (process_target::multifs_readlink): Define.
3415 (process_target::multifs_unlink): Define.
3416
3417 Update the derived classes and callers below.
3418
3419 * hostio.cc (handle_setfs): Update.
3420 (handle_open): Update.
3421 (handle_unlink): Update.
3422 (handle_readlink): Update.
3423 * linux-low.cc (linux_target_ops): Update.
3424 (linux_process_target::supports_multifs): Define.
3425 (linux_process_target::multifs_open): Define.
3426 (linux_process_target::multifs_readlink): Define.
3427 (linux_process_target::multifs_unlink): Define.
3428 * linux-low.h (class linux_process_target): Update.
3429 * lynx-low.cc (lynx_target_ops): Update.
3430 * nto-low.cc (nto_target_ops): Update.
3431 * win32-low.cc (win32_target_ops): Update.
3432
3433 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3434
3435 Turn process_stratum_target's pid_to_exec_file op into a method
3436 of process_target.
3437
3438 * target.h (struct process_stratum_target): Remove the target op.
3439 (class process_target): Add the target op. Also add
3440 'supports_pid_to_exec_file'.
3441 * target.cc (process_target::pid_to_exec_file): Define.
3442 (process_target::supports_pid_to_exec_file): Define.
3443
3444 Update the derived classes and callers below.
3445
3446 * server.cc (handle_qxfer_exec_file): Update.
3447 (handle_query): Update.
3448 * linux-low.cc (linux_target_ops): Update.
3449 (linux_process_target::supports_pid_to_exec_file): Define.
3450 (linux_process_target::pid_to_exec_file): Define.
3451 * linux-low.h (class linux_process_target): Update.
3452 * lynx-low.cc (lynx_target_ops): Update.
3453 * nto-low.cc (nto_target_ops): Update.
3454 * win32-low.cc (win32_target_ops): Update.
3455
3456 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3457
3458 Turn process_stratum_target's supports_range_stepping op into a
3459 method of process_target.
3460
3461 * target.h (struct process_stratum_target): Remove the target op.
3462 (class process_target): Add the target op.
3463 (target_supports_range_stepping): Update the macro.
3464 * target.cc (process_target::supports_range_stepping): Define.
3465
3466 Update the derived classes and callers below.
3467
3468 * linux-low.cc (linux_target_ops): Update.
3469 (linux_supports_range_stepping): Turn into ...
3470 (linux_process_target::supports_range_stepping): ... this.
3471 * linux-low.h (class linux_process_target): Update.
3472 * lynx-low.cc (lynx_target_ops): Update.
3473 * nto-low.cc (nto_target_ops): Update.
3474 * win32-low.cc (win32_target_ops): Update.
3475
3476 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3477
3478 Turn process_stratum_target's btrace-related ops (enable_btrace,
3479 disable_btrace, read_btrace, read_btrace_conf) into methods of
3480 process_target.
3481
3482 * target.h (struct process_stratum_target): Remove the target ops.
3483 (class process_target): Add the target ops.
3484 (target_enable_btrace): Update.
3485 (target_disable_btrace): Update.
3486 (target_read_btrace): Update.
3487 (target_read_btrace_conf): Update.
3488 * target.cc (process_target::enable_btrace): Define.
3489 (process_target::disable_btrace): Define.
3490 (process_target::read_btrace): Define.
3491 (process_target::read_btrace_conf): Define.
3492
3493 Update the derived classes and callers below.
3494
3495 * linux-low.cc (linux_target_ops): Update.
3496 (linux_process_target:enable_btrace): Define as a wrapper around
3497 linux_enable_btrace.
3498 (linux_low_disable_btrace): Turn into ...
3499 (linux_process_target::disable_btrace): ... this.
3500 (linux_low_read_btrace): Turn into ...
3501 (linux_process_target::read_btrace): ... this.
3502 (linux_low_btrace_conf): Turn into ...
3503 (linux_process_target::read_btrace_conf): ... this.
3504 * linux-low.h (class linux_process_target): Update.
3505 * lynx-low.cc (lynx_target_ops): Update.
3506 * nto-low.cc (nto_target_ops): Update.
3507 * win32-low.cc (win32_target_ops): Update.
3508
3509 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3510
3511 Turn process_stratum_target's supports_agent op into a method of
3512 process_target.
3513
3514 * target.h (struct process_stratum_target): Remove the target op.
3515 (class process_target): Add the target op.
3516 (target_supports_agent): Update the macro.
3517 * target.cc (process_target::supports_agent): Define.
3518
3519 Update the derived classes and callers below.
3520
3521 * linux-low.cc (linux_target_ops): Update.
3522 (linux_supports_agent): Turn into ...
3523 (linux_process_target::supports_agent): ... this.
3524 * linux-low.h (class linux_process_target): Update.
3525 * lynx-low.cc (lynx_target_ops): Update.
3526 * nto-low.cc (nto_target_ops): Update.
3527 * win32-low.cc (win32_target_ops): Update.
3528
3529 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3530
3531 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3532 method of process_target.
3533
3534 * target.h (struct process_stratum_target): Remove the target op.
3535 (class process_target): Add the target op. Also add
3536 'supports_qxfer_libraries_svr4'.
3537 * target.cc (process_target::qxfer_libraries_svr4): Define.
3538 (process_target::supports_qxfer_libraries_svr4): Define.
3539
3540 Update the derived classes and callers below.
3541
3542 * server.cc (handle_qxfer_libraries_svr4): Update.
3543 (handle_query): Update.
3544 * linux-low.cc (linux_target_ops): Update.
3545 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3546 (linux_qxfer_libraries_svr4): Turn into ...
3547 (linux_process_target::qxfer_libraries_svr4): ... this.
3548 * linux-low.h (class linux_process_target): Update.
3549 * lynx-low.cc (lynx_target_ops): Update.
3550 * nto-low.cc (nto_target_ops): Update.
3551 * win32-low.cc (win32_target_ops): Update.
3552
3553 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3554
3555 Turn process_stratum_target's supports_disable_randomization op
3556 into a method of process_target.
3557
3558 * target.h (struct process_stratum_target): Remove the target op.
3559 (class process_target): Add the target op.
3560 (target_supports_disable_randomization): Update the macro.
3561 * target.cc (process_target::supports_disable_randomization): Define.
3562
3563 Update the derived classes and callers below.
3564
3565 * linux-low.cc (linux_target_ops): Update.
3566 (linux_supports_disable_randomization): Turn into ...
3567 (linux_process_target::supports_disable_randomization): ... this.
3568 * linux-low.h (class linux_process_target): Update.
3569 * lynx-low.cc (lynx_target_ops): Update.
3570 * nto-low.cc (nto_target_ops): Update.
3571 * win32-low.cc (win32_target_ops): Update.
3572
3573 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3574
3575 Turn process_stratum_target's emit_ops op into a method of
3576 process_target.
3577
3578 * target.h (struct process_stratum_target): Remove the target op.
3579 (class process_target): Add the target op.
3580 (target_emit_ops): Update the macro.
3581 * target.cc (process_target::emit_ops): Define.
3582
3583 Update the derived classes and callers below.
3584
3585 * linux-low.cc (linux_target_ops): Update.
3586 (linux_emit_ops): Turn into ...
3587 (linux_process_target::emit_ops): ... this.
3588 * linux-low.h (class linux_process_target): Update.
3589 * lynx-low.cc (lynx_target_ops): Update.
3590 * nto-low.cc (nto_target_ops): Update.
3591 * win32-low.cc (win32_target_ops): Update.
3592
3593 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3594
3595 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3596 and get_min_fast_tracepoint_insn_len ops into methods of
3597 process_target.
3598
3599 * target.h (struct process_stratum_target): Remove the target ops.
3600 (class process_target): Add the target ops. Also add
3601 'supports_fast_tracepoints'.
3602 (target_supports_fast_tracepoints): Update the macro.
3603 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3604 (install_fast_tracepoint_jump_pad): Update and rename the macro
3605 to ...
3606 (target_install_fast_tracepoint_jump_pad): ... this.
3607 * target.cc (process_target::supports_fast_tracepoints): Define.
3608 (process_target::install_fast_tracepoint_jump_pad): Define.
3609 (process_target::get_min_fast_tracepoint_insn_len): Define.
3610
3611 Update the derived classes and callers below.
3612
3613 * tracepoint.cc (install_fast_tracepoint): Update.
3614 * linux-low.cc (linux_target_ops): Update.
3615 (linux_process_target::supports_fast_tracepoints): Define.
3616 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3617 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3618 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3619 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3620 * linux-low.h (class linux_process_target): Update.
3621 * lynx-low.cc (lynx_target_ops): Update.
3622 * nto-low.cc (nto_target_ops): Update.
3623 * win32-low.cc (win32_target_ops): Update.
3624
3625 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3626
3627 Turn process_stratum_target's stabilize_threads op into a
3628 method of process_target.
3629
3630 * target.h (struct process_stratum_target): Remove the target op.
3631 (class process_target): Add the target op.
3632 (target_stabilize_threads): Update the macro.
3633 * target.cc (process_target::stabilize_threads): Define.
3634
3635 Update the derived classes and callers below.
3636
3637 * server.cc (handle_status): Update.
3638 * tracepoint.cc (cmd_qtdp): Update.
3639 (cmd_qtstart): Update.
3640 * linux-low.cc (linux_target_ops): Update.
3641 (linux_stabilize_threads): Turn into ...
3642 (linux_process_target::stabilize_threads): ... this.
3643 (linux_wait_1): Update.
3644 * linux-low.h (class linux_process_target): Update.
3645 * lynx-low.cc (lynx_target_ops): Update.
3646 * nto-low.cc (nto_target_ops): Update.
3647 * win32-low.cc (win32_target_ops): Update.
3648
3649 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3650
3651 Turn process_stratum_target's pause_all and unpause_all ops
3652 into methods of process_target.
3653
3654 * target.h (struct process_stratum_target): Remove the target ops.
3655 (class process_target): Add the target ops.
3656 (pause_all): Update the macro and rename to...
3657 (target_pause_all): ... this.
3658 (unpause_all): Update the macro and rename to...
3659 (target_unpause_all): ... this.
3660 * target.cc (process_target::pause_all): Define.
3661 (process_target::unpause_all): Define.
3662
3663 Update the derived classes and callers below.
3664
3665 * server.cc (handle_status): Update.
3666 * tracepoint.cc (clear_installed_tracepoints): Update.
3667 (cmd_qtdp): Update.
3668 (cmd_qtstart): Update.
3669 (stop_tracing): Update.
3670 (cmd_qtstatus): Update.
3671 (upload_fast_traceframes): Update.
3672 (run_inferior_command): Update.
3673 * linux-low.cc (linux_target_ops): Update.
3674 (linux_pause_all): Turn into ...
3675 (linux_process_target::pause_all): ... this.
3676 (linux_unpause_all): Turn into ...
3677 (linux_process_target::unpause_all): ... this.
3678 (linux_process_target::prepare_to_access_memory): Update.
3679 (linux_process_target::done_accessing_memory): Update.
3680 * linux-low.h (class linux_process_target): Update.
3681 * lynx-low.cc (lynx_target_ops): Update.
3682 * nto-low.cc (nto_target_ops): Update.
3683 * win32-low.cc (win32_target_ops): Update.
3684
3685 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3686
3687 Turn process_stratum_target's get_tib_address op into a method of
3688 process_target.
3689
3690 * target.h (struct process_stratum_target): Remove the target op.
3691 (class process_target): Add the target op. Also add
3692 'supports_get_tib_address'.
3693 * target.cc (process_target::get_tib_address): Define.
3694 (process_target::supports_get_tib_address): Define.
3695
3696 Update the derived classes and callers below.
3697
3698 * server.cc (handle_query): Update.
3699 * linux-low.cc (win32_target_ops): Update.
3700 * lynx-low.cc (lynx_target_ops): Update.
3701 * nto-low.cc (nto_target_ops): Update.
3702 * win32-low.cc (win32_target_ops): Update.
3703 (win32_process_target::supports_get_tib_address): Define.
3704 (win32_get_tib_address): Turn into ...
3705 (win32_process_target::get_tib_address): ... this.
3706 * win32-low.h (class win32_process_target): Update.
3707
3708 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3709
3710 Turn process_stratum_target's thread_stopped op into a method of
3711 process_target.
3712
3713 * target.h (struct process_stratum_target): Remove the target op.
3714 (class process_target): Add the target op. Also add
3715 'supports_thread_stopped'.
3716 (target_thread_stopped): Update the macro.
3717 * target.cc (process_target::thread_stopped): Define.
3718 (process_target::supports_thread_stopped): Define.
3719 (prepare_to_access_memory): Update.
3720
3721 Update the derived classes and callers below.
3722
3723 * server.cc (queue_stop_reply_callback): Update.
3724 * linux-low.cc (linux_target_ops): Update.
3725 (linux_process_target::supports_thread_stopped): Define.
3726 (linux_thread_stopped): Turn into ...
3727 (linux_process_target::thread_stopped): ... this.
3728 * linux-low.h (class linux_process_target): Update.
3729 * lynx-low.cc (lynx_target_ops): Update.
3730 * nto-low.cc (nto_target_ops): Update.
3731 * win32-low.cc (win32_target_ops): Update.
3732
3733 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3734
3735 Turn process_stratum_target's read_pc and write_pc ops into
3736 methods of process_target.
3737
3738 * target.h (struct process_stratum_target): Remove the target ops.
3739 (class process_target): Add the target ops.
3740 * target.cc (process_target::read_pc): Define.
3741 (process_target::write_pc): Define.
3742
3743 Update the derived classes and callers below.
3744
3745 * regcache.cc (regcache_read_pc): Update.
3746 (regcache_write_pc): Update.
3747 * linux-low.cc (linux_target_ops): Update.
3748 (linux_read_pc): Turn into ...
3749 (linux_process_target::read_pc): ... this.
3750 (linux_write_pc): Turn into ...
3751 (linux_process_target::write_pc): ... this.
3752 * linux-low.h (class linux_process_target): Update.
3753 * lynx-low.cc (lynx_target_ops): Update.
3754 * nto-low.cc (nto_target_ops): Update.
3755 * win32-low.cc (win32_target_ops): Update.
3756
3757 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3758
3759 Turn process_stratum_target's supports_tracepoints op into a
3760 method of process_target.
3761
3762 * target.h (struct process_stratum_target): Remove the target op.
3763 (class process_target): Add the target op.
3764 (target_supports_tracepoints): Update the macro.
3765 * target.cc (process_target::supports_tracepoints): Define.
3766
3767 Update the derived classes and callers below.
3768
3769 * linux-low.cc (linux_target_ops): Update.
3770 (linux_supports_tracepoints): Turn into ...
3771 (linux_process_target::supports_tracepoints): ... this.
3772 * linux-low.h (class linux_process_target): Update.
3773 * lynx-low.cc (lynx_target_ops): Update.
3774 * nto-low.cc (nto_target_ops): Update.
3775 * win32-low.cc (win32_target_ops): Update.
3776
3777 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3778
3779 Turn process_stratum_target's process_qsupported op into a method
3780 of process_target.
3781
3782 * target.h (struct process_stratum_target): Remove the target op.
3783 (class process_target): Add the target op.
3784 (target_process_qsupported): Update the macro.
3785 * target.cc (process_target::process_qsupported): Define.
3786
3787 Update the derived classes and callers below.
3788
3789 * linux-low.cc (linux_target_ops): Update.
3790 (linux_process_qsupported): Turn into ...
3791 (linux_process_target::process_qsupported): ... this.
3792 * linux-low.h (class linux_process_target): Update.
3793 * lynx-low.cc (lynx_target_ops): Update.
3794 * nto-low.cc (nto_target_ops): Update.
3795 * win32-low.cc (win32_target_ops): Update.
3796
3797 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3798
3799 Turn process_stratum_target's read_loadmap op into a method of
3800 process_target.
3801
3802 * target.h (struct process_stratum_target): Remove the target op.
3803 (class process_target): Add the target op. Also add
3804 'supports_read_loadmap'.
3805 * target.cc (process_target::read_loadmap): Define.
3806 (process_target::supports_read_loadmap): Define.
3807
3808 Update the derived classes and callers below.
3809
3810 * server.cc (handle_qxfer_fdpic): Update.
3811 (handle_query): Update.
3812 * linux-low.cc (linux_target_ops): Update.
3813 (linux_process_target::supports_read_loadmap): Define.
3814 (linux_read_loadmap): Turn into ...
3815 (linux_process_target::read_loadmap): ... this.
3816 * linux-low.h (class linux_process_target): Update.
3817 * lynx-low.cc (lynx_target_ops): Update.
3818 * nto-low.cc (nto_target_ops): Update.
3819 * win32-low.cc (win32_target_ops): Update.
3820
3821 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3822
3823 Turn process_stratum_target's core_of_thread op into a method of
3824 process_target.
3825
3826 * target.h (struct process_stratum_target): Remove the target op.
3827 (class process_target): Add the target op.
3828 (target_core_of_thread): Update the macro.
3829 * target.cc (process_target::core_of_thread): Define.
3830
3831 Update the derived classes and callers below.
3832
3833 * linux-low.cc (linux_target_ops): Update.
3834 (linux_process_target::core_of_thread): Define.
3835 * linux-low.h (class linux_process_target): Update.
3836 * lynx-low.cc (lynx_target_ops): Update.
3837 * nto-low.cc (nto_target_ops): Update.
3838 * win32-low.cc (win32_target_ops): Update.
3839
3840 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3841
3842 Turn process_stratum_target's handle_monitor_command op into a
3843 method of process_target.
3844
3845 * target.h (struct process_stratum_target): Remove the target op.
3846 (class process_target): Add the target op.
3847 (target_handle_monitor_command): Update the macro.
3848 * target.cc (process_target::handle_monitor_command): Define.
3849
3850 Update the derived classes and callers below.
3851
3852 * server.cc (handle_query): Update.
3853 * linux-low.cc (linux_target_ops): Update.
3854 (linux_process_target::handle_monitor_command): Define.
3855 * linux-low.h (class linux_process_target): Update.
3856 * lynx-low.cc (lynx_target_ops): Update.
3857 * nto-low.cc (nto_target_ops): Update.
3858 * win32-low.cc (win32_target_ops): Update.
3859
3860 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3861
3862 Turn process_stratum_target's handle_new_gdb_connection op into a
3863 method of process_target.
3864
3865 * target.h (struct process_stratum_target): Remove the target op.
3866 (class process_target): Add the target op.
3867 (target_handle_new_gdb_connection): Update the macro.
3868 * target.cc (process_target::handle_new_gdb_connection): Define.
3869
3870 Update the derived classes and callers below.
3871
3872 * linux-low.cc (linux_target_ops): Update.
3873 (linux_handle_new_gdb_connection): Turn into ...
3874 (linux_process_target::handle_new_gdb_connection): ... this.
3875 * linux-low.h (class linux_process_target): Update.
3876 * lynx-low.cc (lynx_target_ops): Update.
3877 * nto-low.cc (nto_target_ops): Update.
3878 * win32-low.cc (win32_target_ops): Update.
3879
3880 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3881
3882 Turn process_stratum_target's supports_fork_events,
3883 supports_vfork_events, and supports_exec_events ops into methods
3884 of process_target.
3885
3886 * target.h (struct process_stratum_target): Remove the target ops.
3887 (class process_target): Add the target ops.
3888 (target_supports_fork_events): Update the macro.
3889 (target_supports_vfork_events): Update the macro.
3890 (target_supports_exec_events): Update the macro.
3891 * target.cc (process_target::supports_fork_events): Define.
3892 (process_target::supports_vfork_events): Define.
3893 (process_target::supports_exec_events): Define.
3894
3895 Update the derived classes and callers below.
3896
3897 * linux-low.cc (linux_target_ops): Update.
3898 (linux_supports_fork_events): Turn into ...
3899 (linux_process_target::supports_fork_events): ... this.
3900 (linux_supports_vfork_events): Turn into ...
3901 (linux_process_target::supports_vfork_events): ... this.
3902 (linux_supports_exec_events): Turn into ...
3903 (linux_process_target::supports_exec_events): ... this.
3904 * linux-low.h (class linux_process_target): Update.
3905 * lynx-low.cc (lynx_target_ops): Update.
3906 * nto-low.cc (nto_target_ops): Update.
3907 * win32-low.cc (win32_target_ops): Update.
3908
3909 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3910
3911 Turn process_stratum_target's supports_multi_process op into a
3912 method of process_target.
3913
3914 * target.h (struct process_stratum_target): Remove the target op.
3915 (class process_target): Add the target op.
3916 * target.cc (process_target::supports_multi_process): Define.
3917 (target_supports_multi_process): Update.
3918
3919 Update the derived classes and callers below.
3920
3921 * linux-low.cc (linux_target_ops): Update.
3922 (linux_supports_multi_process): Turn into ...
3923 (linux_process_target::supports_multi_process): ... this.
3924 * linux-low.h (class linux_process_target): Update.
3925 * lynx-low.cc (lynx_target_ops): Update.
3926 * nto-low.cc (nto_target_ops): Update.
3927 * win32-low.cc (win32_target_ops): Update.
3928
3929 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3930
3931 Turn process_stratum_target's supports_non_stop, async, and
3932 start_non_stop ops into methods of process_target.
3933
3934 * target.h (struct process_stratum_target): Remove the target ops.
3935 (class process_target): Add the target ops.
3936 (target_supports_non_stop): Update the macro.
3937 (target_async): Update the macro.
3938 (start_non_stop): Remove declaration.
3939 * target.cc (process_target::supports_non_stop): Define.
3940 (process_target::async): Define.
3941 (process_target::start_non_stop): Define.
3942 (start_non_stop): Remove.
3943
3944 Update the derived classes and callers below.
3945
3946 * server.cc (handle_qxfer_siginfo): Update.
3947 (handle_query): Update.
3948 * linux-low.cc (linux_target_ops): Update.
3949 (linux_supports_non_stop): Turn into ...
3950 (linux_process_target::supports_non_stop): ... this.
3951 (linux_async): Turn into ...
3952 (linux_process_target::async): ... this.
3953 (linux_start_non_stop): Turn into ...
3954 (linux_process_target::start_non_stop): ... this.
3955 * linux-low.h (class linux_process_target): Update.
3956 * lynx-low.cc (lynx_target_ops): Update.
3957 * nto-low.cc (nto_target_ops): Update.
3958 (nto_supports_non_stop): Remove; rely on the default behavior
3959 instead.
3960 * win32-low.cc (win32_target_ops): Update.
3961
3962 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3963
3964 Turn process_stratum_target's qxfer_siginfo op into a method of
3965 process_target.
3966
3967 * target.h (struct process_stratum_target): Remove the target op.
3968 (class process_target): Add the target op. Also add
3969 'supports_qxfer_siginfo'.
3970 * target.cc (process_target::qxfer_siginfo): Define.
3971 (process_target::supports_qxfer_siginfo): Define.
3972
3973 Update the derived classes and callers below.
3974
3975 * server.cc (handle_qxfer_siginfo): Update.
3976 (handle_query): Update.
3977 * linux-low.cc (linux_target_ops): Update.
3978 (linux_process_target::supports_qxfer_siginfo): Define.
3979 (linux_xfer_siginfo): Turn into ...
3980 (linux_process_target::qxfer_siginfo): ... this.
3981 * linux-low.h (class linux_process_target): Update.
3982 * lynx-low.cc (lynx_target_ops): Update.
3983 * nto-low.cc (nto_target_ops): Update.
3984 * win32-low.cc (win32_target_ops): Update.
3985
3986 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3987
3988 Turn process_stratum_target's qxfer_osdata op into a method of
3989 process_target.
3990
3991 * target.h (struct process_stratum_target): Remove the target op.
3992 (class process_target): Add the target op. Also add
3993 'supports_qxfer_osdata'.
3994 * target.cc (process_target::qxfer_osdata): Define.
3995 (process_target::supports_qxfer_osdata): Define.
3996
3997 Update the derived classes and callers below.
3998
3999 * server.cc (handle_qxfer_osdata): Update.
4000 (handle_query): Update.
4001 * linux-low.cc (linux_target_ops): Update.
4002 (linux_process_target::supports_qxfer_osdata): Define.
4003 (linux_qxfer_osdata): Turn into ...
4004 (linux_process_target::qxfer_osdata): ... this.
4005 * linux-low.h (class linux_process_target): Update.
4006 * lynx-low.cc (lynx_target_ops): Update.
4007 * nto-low.cc (nto_target_ops): Update.
4008 * win32-low.cc (win32_target_ops): Update.
4009
4010 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4011
4012 Turn process_stratum_target's hostio_last_error op into a
4013 method of process_target.
4014
4015 * target.h (struct process_stratum_target): Remove the target op.
4016 (class process_target): Add the target op.
4017 * target.cc: Add "hostio.h" to includes.
4018 (process_target::hostio_last_error): Define.
4019
4020 Update the derived classes and callers below.
4021
4022 * hostio.cc (hostio_error): Update.
4023 * linux-low.cc: Remove "hostio.h" from includes.
4024 (linux_target_ops): Update.
4025 * lynx-low.cc (lynx_target_ops): Update.
4026 * nto-low.cc (nto_target_ops): Update.
4027 * win32-low.h (class win32_process_target): Update.
4028 * win32-low.cc (win32_target_ops): Update.
4029 (wince_hostio_last_error): Turn into ...
4030 (win32_process_target::hostio_last_error): ... this.
4031
4032 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4033
4034 Turn process_stratum_target's get_tls_address op into a method of
4035 process_target.
4036
4037 * target.h (struct process_stratum_target): Remove the target op.
4038 (class process_target): Add the target op. Also add
4039 'supports_get_tls_address'.
4040 * target.cc (process_target::get_tls_address): Define.
4041 (process_target::supports_get_tls_address): Define.
4042
4043 Update the derived classes and callers below.
4044
4045 * server.cc (handle_query): Update.
4046 * linux-low.cc (linux_target_ops): Update.
4047 (linux_process_target::supports_get_tls_address): Define.
4048 (linux_process_target::get_tls_address): Define.
4049 * linux-low.h (class linux_process_target): Update.
4050 * lynx-low.cc (lynx_target_ops): Update.
4051 * nto-low.cc (nto_target_ops): Update.
4052 * win32-low.cc (win32_target_ops): Update.
4053
4054 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4055
4056 Turn process_stratum_target's read_offsets op into a method of
4057 process_target.
4058
4059 * target.h (struct process_stratum_target): Remove the target op.
4060 (class process_target): Add the target op. Also add
4061 'supports_read_offsets'.
4062 * target.cc (process_target::read_offsets): Define.
4063 (process_target::supports_read_offsets): Define.
4064
4065 Update the derived classes and callers below.
4066
4067 * server.cc (handle_query): Update.
4068 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4069 (linux_target_ops): Update.
4070 (linux_process_target::supports_read_offsets): Define.
4071 (linux_read_offsets): Turn into ...
4072 (linux_process_target::read_offsets): ... this.
4073 * linux-low.h (class linux_process_target): Update.
4074 * lynx-low.cc (lynx_target_ops): Update.
4075 * nto-low.cc (nto_target_ops): Update.
4076 * win32-low.cc (win32_target_ops): Update.
4077
4078 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4079
4080 Turn process_stratum_target's stopped_by_watchpoint and
4081 stopped_data_address ops into methods of process_target.
4082
4083 * target.h (struct process_stratum_target): Remove the target ops.
4084 (class process_target): Add the target ops.
4085 * target.cc (process_target::stopped_by_watchpoint): Define.
4086 (process_target::stopped_data_address): Define.
4087
4088 Update the derived classes and callers below.
4089
4090 * remote-utils.cc (prepare_resume_reply): Update.
4091 * linux-low.cc (linux_target_ops): Update.
4092 (linux_stopped_by_watchpoint): Turn into ...
4093 (linux_process_target::stopped_by_watchpoint): ... this.
4094 (linux_stopped_data_address): Turn into ...
4095 (linux_process_target::stopped_data_address): ... this.
4096 * linux-low.h (class linux_process_target): Update.
4097 * lynx-low.cc (lynx_target_ops): Update.
4098 * nto-low.cc (nto_target_ops): Update.
4099 (nto_stopped_by_watchpoint): Turn into ...
4100 (nto_process_target::stopped_by_watchpoint): ... this.
4101 (nto_stopped_data_address): Turn into ...
4102 (nto_process_target::stopped_data_address): ... this.
4103 * nto-low.h (class nto_process_target): Update.
4104 * win32-low.cc (win32_target_ops): Update.
4105 (win32_stopped_by_watchpoint): Turn into ...
4106 (win32_process_target::stopped_by_watchpoint): ... this.
4107 (win32_stopped_data_address): Turn into ...
4108 (win32_process_target::stopped_data_address): ... this.
4109 * win32-low.h (class win32_process_target): Update.
4110
4111 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4112
4113 Turn process_stratum_target's supports_hardware_single_step op into
4114 a method of process_target.
4115
4116 * target.h (struct process_stratum_target): Remove the target op.
4117 (class process_target): Add the target op.
4118 (target_supports_hardware_single_step): Update the macro.
4119 (target_can_do_hardware_single_step): Remove declaration.
4120 * target.cc (process_target::supports_hardware_single_step): Define.
4121 (target_can_do_hardware_single_step): Remove.
4122
4123 Update the derived classes and callers below.
4124
4125 * linux-low.h (class linux_process_target): Update.
4126 * linux-low.cc (linux_target_ops): Update.
4127 (linux_supports_hardware_single_step): Turn into ...
4128 (linux_process_target::supports_hardware_single_step): ... this.
4129 * lynx-low.h (class lynx_process_target): Update.
4130 * lynx-low.cc (lynx_target_ops): Update.
4131 (lynx_process_target::supports_hardware_single_step): Define.
4132 * nto-low.h (class nto_process_target): Update.
4133 * nto-low.cc (nto_target_ops): Update.
4134 (nto_process_target::supports_hardware_single_step): Define.
4135 * win32-low.h (class win32_process_target): Update.
4136 * win32-low.cc (win32_target_ops): Update.
4137 (win32_process_target::supports_hardware_single_step): Define.
4138
4139 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4140
4141 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4142 ops into methods of process_target.
4143
4144 * target.h (struct process_stratum_target): Remove the target ops.
4145 (class process_target): Add the target ops.
4146 (target_stopped_by_hw_breakpoint): Update the macro.
4147 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4148 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4149 (process_target::supports_stopped_by_hw_breakpoint): Define.
4150
4151 Update the derived classes and callers below.
4152
4153 * linux-low.cc (linux_target_ops): Update.
4154 (linux_stopped_by_hw_breakpoint): Turn into ...
4155 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4156 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4157 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4158 * linux-low.h (class linux_process_target): Update.
4159 * lynx-low.cc (lynx_target_ops): Update.
4160 * nto-low.cc (nto_target_ops): Update.
4161 * win32-low.cc (win32_target_ops): Update.
4162
4163 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4164
4165 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4166 ops into methods of process_target.
4167
4168 * target.h (struct process_stratum_target): Remove the target ops.
4169 (class process_target): Add the target ops.
4170 (target_stopped_by_sw_breakpoint): Update the macro.
4171 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4172 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4173 (process_target::supports_stopped_by_sw_breakpoint): Define.
4174
4175 Update the derived classes and callers below.
4176
4177 * linux-low.cc (linux_target_ops): Update.
4178 (linux_stopped_by_sw_breakpoint): Turn into ...
4179 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4180 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4181 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4182 * linux-low.h (class linux_process_target): Update.
4183 * lynx-low.cc (lynx_target_ops): Update.
4184 * nto-low.cc (nto_target_ops): Update.
4185 * win32-low.cc (win32_target_ops): Update.
4186
4187 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4188
4189 Turn process_stratum_target's insert_point and remove_point ops
4190 into methods of process_target.
4191
4192 * target.h (struct process_stratum_target): Remove the target ops.
4193 (class process_target): Add the target ops.
4194 * target.cc (process_target::insert_point): Define.
4195 (process_target::remove_point): Define.
4196
4197 Update the derived classes and callers below.
4198
4199 * mem-break.cc (set_raw_breakpoint_at): Update.
4200 (delete_raw_breakpoint): Update.
4201 (uninsert_raw_breakpoint): Update.
4202 (reinsert_raw_breakpoint): Update.
4203 * linux-low.cc (linux_target_ops): Update.
4204 (linux_insert_point): Turn into ...
4205 (linux_process_target::insert_point): ... this.
4206 (linux_remove_point): Turn into ...
4207 (linux_process_target::remove_point): ... this.
4208 * linux-low.h (class linux_process_target): Update.
4209 * lynx-low.cc (lynx_target_ops): Update.
4210 * nto-low.cc (nto_target_ops): Update.
4211 (nto_insert_point): Turn into ...
4212 (nto_process_target::insert_point): ... this.
4213 (nto_remove_point): Turn into ...
4214 (nto_process_target::remove_point): ... this.
4215 * nto-low.h (class nto_process_target): Update.
4216 * win32-low.cc (win32_target_ops): Update.
4217 (win32_insert_point): Turn into ...
4218 (win32_process_target::insert_point): ... this.
4219 (win32_remove_point): Turn into ...
4220 (win32_process_target::remove_point): ... this.
4221 * win32-low.h (class win32_process_target): Update.
4222
4223 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4224
4225 Turn process_stratum_target's supports_z_point_type op into a
4226 method of process_target.
4227
4228 * target.h (struct process_stratum_target): Remove the target op.
4229 (class process_target): Add the target op.
4230 * target.cc (process_target::supports_z_point_type): Define.
4231
4232 Update the derived classes and callers below.
4233
4234 * mem-break.cc (z_type_supported): Update.
4235 * linux-low.cc (linux_target_ops): Update.
4236 (linux_supports_z_point_type): Turn into ...
4237 (linux_process_target::supports_z_point_type): ... this.
4238 * linux-low.h (class linux_process_target): Update.
4239 * lynx-low.cc (lynx_target_ops): Update.
4240 * nto-low.cc (nto_target_ops): Update.
4241 (nto_supports_z_point_type): Turn into ...
4242 (nto_process_target::supports_z_point_type): ... this.
4243 * nto-low.h (class nto_process_target): Update.
4244 * win32-low.cc (win32_target_ops): Update.
4245 (win32_supports_z_point_type): Turn into ...
4246 (win32_process_target::supports_z_point_type): ... this.
4247 * win32-low.h (class win32_process_target): Update.
4248
4249 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4250
4251 Turn process_stratum_target's read_auxv op into a method of
4252 process_target.
4253
4254 * target.h (class process_stratum_target): Remove the target op.
4255 (struct process_target): Add the target op. Also add
4256 'supports_read_auxv'.
4257 * target.cc (process_target::read_auxv): Define.
4258 (process_target::supports_read_auxv): Define.
4259
4260 Update the derived classes and callers below.
4261
4262 * server.cc (handle_qxfer_auxv): Update.
4263 (handle_query): Update.
4264 * linux-low.cc (linux_target_ops): Update.
4265 (linux_process_target::supports_read_auxv): Define.
4266 (linux_read_auxv): Turn into ...
4267 (linux_process_target::read_auxv): ... this.
4268 * linux-low.h (class linux_process_target): Update.
4269 * lynx-low.cc (lynx_target_ops): Update.
4270 * nto-low.cc (nto_target_ops): Update.
4271 (nto_process_target::supports_read_auxv): Define.
4272 (nto_read_auxv): Turn into ...
4273 (nto_process_target::read_auxv): ... this.
4274 * nto-low.h (class nto_process_target): Update.
4275 * win32-low.cc (win32_target_ops): Update.
4276
4277 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4278
4279 Turn process_stratum_target's request_interrupt op into a method of
4280 process_target.
4281
4282 * target.h (struct process_stratum_target): Remove the target op.
4283 (class process_target): Add the target op.
4284
4285 Update the derived classes and callers below.
4286
4287 * remote-utils.cc (putpkt_binary_1): Update.
4288 (input_interrupt): Update.
4289 (getpkt): Update.
4290 * server.cc (handle_v_requests): Update.
4291 * linux-low.cc (linux_target_ops): Update.
4292 (linux_request_interrupt): Turn into ...
4293 (linux_process_target::request_interrupt): ... this.
4294 * linux-low.h (class linux_process_target): Update.
4295 * lynx-low.cc (lynx_target_ops): Update.
4296 (lynx_request_interrupt): Turn into ...
4297 (lynx_process_target::request_interrupt): ... this.
4298 * lynx-low.h (class lynx_process_target): Update.
4299 * nto-low.cc (nto_target_ops): Update.
4300 (nto_request_interrupt): Turn into ...
4301 (nto_process_target::request_interrupt): ... this.
4302 * nto-low.h (class nto_process_target): Update.
4303 * win32-low.cc (win32_target_ops): Update.
4304 (win32_request_interrupt): Turn into ...
4305 (win32_process_target::request_interrupt): ... this.
4306 * win32-low.h (class win32_process_target): Update.
4307
4308 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4309
4310 Turn process_stratum_target's look_up_symbols op into a method of
4311 process_target.
4312
4313 * target.h (struct process_stratum_target): Remove the target op.
4314 (class process_target): Add the target op.
4315 * target.cc (process_target::look_up_symbols): Define.
4316
4317 Update the derived classes and callers below.
4318
4319 * server.cc (handle_query): Update.
4320 * linux-low.cc (linux_target_ops): Update.
4321 (linux_look_up_symbols): Turn into ...
4322 (linux_process_target::look_up_symbols): ... this.
4323 * linux-low.h (class linux_process_target): Update.
4324 * lynx-low.cc (lynx_target_ops): Update.
4325 * nto-low.cc (nto_target_ops): Update.
4326 * win32-low.cc (win32_target_ops): Update.
4327
4328 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4329
4330 Turn process_stratum_target's read_memory and write_memory
4331 ops into methods of process_target.
4332
4333 * target.h (struct process_stratum_target): Remove the target ops.
4334 (class process_target): Add the target ops.
4335
4336 Update the derived classes and callers below.
4337
4338 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4339 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4340 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4341 (arm_get_syscall_trapinfo): Update.
4342 * linux-cris-low.cc (cris_breakpoint_at): Update.
4343 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4344 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4345 * linux-mips-low.cc (mips_breakpoint_at): Update.
4346 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4347 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4348 * linux-sh-low.cc (sh_breakpoint_at): Update.
4349 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4350 (sparc_store_gregset_from_stack): Update.
4351 (sparc_breakpoint_at): Update.
4352 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4353 * linux-tile-low.cc (tile_breakpoint_at): Update.
4354 * linux-x86-low.cc (x86_breakpoint_at): Update.
4355 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4356 * mem-brea.cc (insert_memory_breakpoint): Update.
4357 (validate_inserted_breakpoint): Update.
4358 * target.cc (read_inferior_memory): Update.
4359 (target_write_memory): Update.
4360 * linux-low.cc (linux_target_ops): Update.
4361 (linux_read_memory): Make a wrapper around the read_memory target
4362 op call.
4363 (linux_process_target::read_memory): Rename from linux_read_memory.
4364 (linux_write_memory): Turn into ...
4365 (linux_process_target::write_memory): ... this.
4366 * linux-low.h (class linux_process_target): Update.
4367 * lynx-low.cc (lynx_target_ops): Update.
4368 (lynx_read_memory): Turn into ...
4369 (lynx_process_target::read_memory): ... this.
4370 (lynx_write_memory): Turn into ...
4371 (lynx_process_target::write_memory): ... this.
4372 * lynx-low.h (class lynx_process_target): Update.
4373 * nto-low.cc (nto_target_ops): Update.
4374 (nto_read_memory): Turn into ...
4375 (nto_process_target::read_memory): ... this.
4376 (nto_write_memory): Turn into ...
4377 (nto_process_target::write_memory): ... this.
4378 * nto-low.h (class nto_process_target): Update.
4379 * win32-low.cc (win32_target_ops): Update.
4380 (win32_read_inferior_memory): Turn into ...
4381 (win32_process_target::read_memory): ... this.
4382 (win32_write_inferior_memory): Turn into ...
4383 (win32_process_target::write_memory): ... this.
4384 * win32-low.h (class win32_process_target): Update.
4385
4386 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4387
4388 Turn process_stratum_target's prepare_to_access_memory and
4389 done_accessing_memory ops into methods of process_target.
4390
4391 * target.h (struct process_stratum_target): Remove the target ops.
4392 (class process_target): Add the target ops.
4393 * target.cc (process_target::prepare_to_access_memory): Define.
4394 (process_target::done_accessing_memory): Define.
4395 (prepare_to_access_memory): Update.
4396 (done_accessing_memory): Update.
4397
4398 Update the derived classes and callers below.
4399
4400 * linux-low.cc (linux_target_ops): Update.
4401 (linux_prepare_to_access_memory): Turn into ...
4402 (linux_process_target::prepare_to_access_memory): ... this.
4403 (linux_done_accessing_memory): Turn into ...
4404 (linux_process_target::done_accessing_memory): ... this.
4405 * linux-low.h (class linux_process_target): Update.
4406 * lynx-low.cc (lynx_target_ops): Update.
4407 * nto-low.cc (nto_target_ops): Update.
4408 * win32-low.cc (win32_target_ops): Update.
4409
4410 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4411
4412 Turn process_stratum_target's fetch_registers and store_registers
4413 ops into methods of process_target.
4414
4415 * target.h (struct process_stratum_target): Remove the target ops.
4416 (class process_target): Add the target ops.
4417 (fetch_inferior_registers): Update the macro.
4418 (store_inferior_registers): Update the macro.
4419
4420 Update the derived classes and callers below.
4421
4422 * linux-low.cc (linux_target_ops): Update.
4423 (linux_fetch_registers): Turn into ...
4424 (linux_process_target::fetch_registers): ... this.
4425 (linux_store_registers): Turn into ...
4426 (linux_process_target::store_registers): ... this.
4427 * linux-low.h (class linux_process_target): Update.
4428 * lynx-low.cc (lynx_target_ops): Update.
4429 (lynx_fetch_registers): Turn into ...
4430 (lynx_process_target::fetch_registers): ... this.
4431 (lynx_store_registers): Turn into ...
4432 (lynx_process_target::store_registers): ... this.
4433 * lynx-low.h (class lynx_process_target): Update.
4434 * nto-low.cc (nto_target_ops): Update.
4435 (nto_fetch_registers): Turn into ...
4436 (nto_process_target::fetch_registers): ... this.
4437 (nto_store_registers): Turn into ...
4438 (nto_process_target::store_registers): ... this.
4439 * nto-low.h (class nto_process_target): Update.
4440 * win32-low.cc (win32_target_ops): Update.
4441 (win32_fetch_inferior_registers): Turn into ...
4442 (win32_process_target::fetch_registers): ... this.
4443 (win32_store_inferior_registers): Turn into ...
4444 (win32_process_target::store_registers): ... this.
4445 * win32-low.h (class win32_process_target): Update.
4446
4447 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4448
4449 Turn process_stratum_target's wait op into a method of
4450 process_target.
4451
4452 * target.h (struct process_stratum_target): Remove the target op.
4453 (class process_target): Add the target op.
4454
4455 Update the derived classes and callers below.
4456
4457 * target.cc (target_wait): Update.
4458 * linux-low.cc (linux_target_ops): Update.
4459 (linux_wait): Turn into ...
4460 (linux_process_target::wait): ... this.
4461 * linux-low.h (class linux_process_target): Update.
4462 * lynx-low.cc (lynx_target_ops): Update.
4463 (lynx_wait): Turn into ...
4464 (lynx_process_target::wait): ... this.
4465 * lynx-low.h (class lynx_process_target): Update.
4466 * nto-low.cc (nto_target_ops): Update.
4467 (nto_wait): Turn into ...
4468 (nto_process_target::wait): ... this.
4469 * nto-low.h (class nto_process_target): Update.
4470 * win32-low.cc (win32_target_ops): Update.
4471 (win32_wait): Turn into ...
4472 (win32_process_target::wait): ... this.
4473 (do_initial_child_stuff): Update.
4474 * win32-low.h (class win32_process_target): Update.
4475
4476 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4477
4478 Turn process_stratum_target's resume op into a method of
4479 process_target.
4480
4481 * target.h (struct process_stratum_target): Remove the target op.
4482 (class process_target): Add the target op.
4483
4484 Update the derived classes and callers below.
4485
4486 * server.cc (resume): Update.
4487 * target.cc (target_stop_and_wait): Update.
4488 (target_continue_no_signal): Update.
4489 (target_continue): Update.
4490 * linux-low.cc (linux_target_ops): Update.
4491 (linux_resume): Turn into ...
4492 (linux_process_target::resume): ... this.
4493 * linux-low.h (class linux_process_target): Update.
4494 * lynx-low.cc (lynx_target_ops): Update.
4495 (lynx_resume): Turn into ...
4496 (lynx_process_target::resume): ... this.
4497 * lynx-low.h (class lynx_process_target): Update.
4498 * nto-low.cc (nto_target_ops): Update.
4499 (nto_resume): Turn into ...
4500 (nto_process_target::resume): ... this.
4501 * nto-low.h (class nto_process_target): Update.
4502 * win32-low.cc (win32_target_ops): Update.
4503 (win32_resume): Turn into ...
4504 (win32_process_target::resume): ... this.
4505 (win32_process_target::detach): Update.
4506 (do_initial_child_stuff): Update.
4507 * win32-low.h (class win32_process_target): Update.
4508
4509 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4510
4511 Turn process_stratum_target's thread_alive op into a method of
4512 process_target.
4513
4514 * target.h (struct process_stratum_target): Remove the target op.
4515 (class process_target): Add the target op.
4516 (mythread_alive): Update the macro.
4517
4518 Update the derived classes and callers below.
4519
4520 * linux-low.cc (linux_target_ops): Update.
4521 (linux_thread_alive): Turn into ...
4522 (linux_process_target::thread_alive): ... this.
4523 (wait_for_sigstop): Update.
4524 * linux-low.h (class linux_process_target): Update.
4525 * lynx-low.cc (lynx_target_ops): Update.
4526 (lynx_thread_alive): Turn into ...
4527 (lynx_process_target::thread_alive): ... this.
4528 * lynx-low.h (class lynx_process_target): Update.
4529 * nto-low.cc (nto_target_ops): Update.
4530 (nto_thread_alive): Turn into ...
4531 (nto_process_target::thread_alive): ... this.
4532 * nto-low.h (class nto_process_target): Update.
4533 * win32-low.cc (win32_target_ops): Update.
4534 (win32_thread_alive): Turn into ...
4535 (win32_process_target::thread_alive): ... this.
4536 * win32-low.h (class win32_process_target): Update.
4537
4538 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4539
4540 Turn process_stratum_target's join op into a method of
4541 process_target.
4542
4543 * target.h (struct process_stratum_target): Remove the target op.
4544 (class process_target): Add the target op.
4545 (join_inferior): Update the macro.
4546
4547 Update the derived classes and callers below.
4548
4549 * linux-low.cc (linux_target_ops): Update.
4550 (linux_join): Turn into ...
4551 (linux_process_target::join): ... this.
4552 * linux-low.h (class linux_process_target): Update.
4553 * lynx-low.cc (lynx_target_ops): Update.
4554 (lynx_join): Turn into ...
4555 (lynx_process_target::join): ... this.
4556 * lynx-low.h (class lynx_process_target): Update.
4557 * nto-low.cc (nto_target_ops): Update.
4558 (nto_process_target::join): Define.
4559 * nto-low.h (class nto_process_target): Update.
4560 * win32-low.cc (win32_target_ops): Update.
4561 (win32_join): Turn into ...
4562 (win32_process_target::join): ... this.
4563 * win32-low.h (class win32_process_target): Update.
4564
4565 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4566
4567 Turn process_stratum_target's mourn op into a method of
4568 process_target.
4569
4570 * target.h (struct process_stratum_target): Remove the target op.
4571 (class process_target): Add the target op.
4572
4573 Update the derived classes and callers below.
4574
4575 * target.cc (target_mourn_inferior): Update.
4576 * linux-low.cc (linux_target_ops): Update.
4577 (linux_mourn): Turn into ...
4578 (linux_process_target::mourn): ... this.
4579 (handle_extended_wait): Update.
4580 (linux_process_target::kill): Update.
4581 (linux_process_target::detach): Update.
4582 * linux-low.h (class linux_process_target): Update.
4583 * lynx-low.cc (lynx_target_ops): Update.
4584 (lynx_mourn): Turn into ...
4585 (lynx_process_target::mourn): ... this.
4586 * lynx-low.h (class lynx_process_target): Update.
4587 * nto-low.cc (nto_target_ops): Update.
4588 (nto_mourn): Turn into ...
4589 (nto_process_target::mourn): ... this.
4590 * nto-low.h (class nto_process_target): Update.
4591 * win32-low.cc (win32_target_ops): Update.
4592 (win32_mourn): Turn into ...
4593 (win32_process_target::mourn): ... this.
4594 * win32-low.h (class win32_process_target): Update.
4595
4596 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4597
4598 Turn process_stratum_target's detach op into a method of
4599 process_target.
4600
4601 * target.h (struct process_stratum_target): Remove the target op.
4602 (class process_target): Add the target op.
4603 (detach_inferior): Update the macro.
4604
4605 Update the derived classes and callers below.
4606
4607 * linux-low.cc (linux_target_ops): Update.
4608 (linux_detach): Turn into ...
4609 (linux_process_target::detach): ... this.
4610 * linux-low.h (class linux_process_target): Update.
4611 * lynx-low.cc (lynx_target_ops): Update.
4612 (lynx_detach): Turn into ...
4613 (lynx_process_target::detach): ... this.
4614 * lynx-low.h (class lynx_process_target): Update.
4615 * nto-low.cc (nto_target_ops): Update.
4616 (nto_detach): Turn into ...
4617 (nto_process_target::detach): ... this.
4618 * nto-low.h (class nto_process_target): Update.
4619 * win32-low.cc (win32_target_ops): Update.
4620 (win32_detach): Turn into ...
4621 (win32_process_target::detach): ... this.
4622 * win32-low.h (class win32_process_target): Update.
4623
4624 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4625
4626 Turn process_stratum_target's kill op into a method of
4627 process_target.
4628
4629 * target.h (struct process_stratum_target): Remove the target op.
4630 (class process_target): Add the target op.
4631
4632 Update the derived classes and callers below.
4633
4634 * target.cc (kill_inferior): Update.
4635 * linux-low.cc (linux_target_ops): Update.
4636 (linux_kill): Turn into ...
4637 (linux_process_target::kill): ... this.
4638 * linux-low.h (class linux_process_target): Update.
4639 * lynx-low.cc (lynx_target_ops): Update.
4640 (lynx_kill): Turn into ...
4641 (lynx_process_target::kill): ... this.
4642 * lynx-low.h (class lynx_process_target): Update.
4643 * nto-low.cc (nto_target_ops): Update.
4644 (nto_kill): Turn into ...
4645 (nto_process_target::kill): ... this.
4646 * nto-low.h (class nto_process_target): Update.
4647 * win32-low.cc (win32_target_ops): Update.
4648 (win32_kill): Turn into ...
4649 (win32_process_target::kill): ... this.
4650 * win32-low.h (class win32_process_target): Update.
4651
4652 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4653
4654 Turn process_stratum_target's attach op into a method of
4655 process_target.
4656
4657 * target.h (struct process_stratum_target): Remove the target op.
4658 (class process_target): Add the target op.
4659 (myattach): Update the macro.
4660
4661 Update the derived classes and callers below.
4662
4663 * linux-low.cc (linux_target_ops): Update.
4664 (linux_attach): Turn into ...
4665 (linux_process_target::attach): ... this.
4666 * linux-low.h (class linux_process_target): Update.
4667 * lynx-low.cc (lynx_target_ops): Update.
4668 (lynx_attach): Turn into ...
4669 (lynx_process_target::attach): ... this.
4670 * lynx-low.h (class lynx_process_target): Update.
4671 * nto-low.cc (nto_target_ops): Update.
4672 (nto_attach): Turn into ...
4673 (nto_process_target::attach): ... this.
4674 * nto-low.h (class nto_process_target): Update.
4675 * win32-low.cc (win32_target_ops): Update.
4676 (win32_attach): Turn into ...
4677 (win32_process_target::attach): ... this.
4678 * win32-low.h (class win32_process_target): Update.
4679
4680 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4681
4682 Turn process_stratum_target's post_create_inferior op into a method
4683 of process_target.
4684
4685 * target.h (struct process_stratum_target): Remove the target op.
4686 (class process_target): Add the target op.
4687 (target_post_create_inferior): Update the macro.
4688 * target.cc (process_target::post_create_inferior): Define.
4689
4690 Update the derived classes and callers below.
4691
4692 * linux-low.cc (linux_target_ops): Update.
4693 (linux_post_create_inferior): Turn into ...
4694 (linux_process_target::post_create_inferior): ... this.
4695 * linux-low.h (class linux_process_target): Update.
4696 * lynx-low.cc (lynx_target_ops): Update.
4697 * nto-low.cc (nto_target_ops): Update.
4698 * win32-low.cc (win32_target_ops): Update.
4699
4700 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4701
4702 Turn process_stratum_target's create_inferior op into a method of
4703 process_target.
4704
4705 * target.h (struct process_stratum_target): Remove the target op.
4706 (class process_target): Add the target op.
4707 (create_inferior): Rename the macro to ...
4708 (target_create_inferior): ... this.
4709
4710 Update the derived classes and callers below.
4711
4712 * server.cc (handle_v_run): Update.
4713 (captured_main): Update.
4714 (process_serial_event): Update.
4715 * linux-low.cc (linux_target_ops): Update.
4716 (linux_create_inferior): Turn into ...
4717 (linux_process_target::create_inferior): ... this.
4718 * linux-low.h (class linux_process_target): Update.
4719 * lynx-low.cc (lynx_target_ops): Update.
4720 (lynx_create_inferior): Turn into ...
4721 (lynx_process_target::create_inferior): ... this.
4722 * lynx-low.h (class lynx_process_target): Update.
4723 * nto-low.cc (nto_target_ops): Update.
4724 (nto_create_inferior): Turn into ...
4725 (nto_process_target::create_inferior): ... this.
4726 * nto-low.h (class nto_process_target): Update.
4727 * win32-low.cc (win32_target_ops): Update.
4728 (win32_create_inferior): Turn into ...
4729 (win32_process_target::create_inferior): ... this.
4730 * win32-low.h (class win32_process_target): Update.
4731
4732 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4733
4734 * target.h (class process_target): New class definition.
4735 (struct process_stratum_target) <pt>: New field with type
4736 'process_target*'.
4737 * linux-low.h (class linux_process_target): Define as a derived
4738 class of 'process_target'.
4739 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4740 as the 'pt' field.
4741 * lynx-low.h (class lynx_process_target): Define as a derived
4742 class of 'process_target'.
4743 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4744 as the 'pt' field.
4745 * nto-low.h (class nto_process_target): Define as a derived
4746 class of 'process_target'.
4747 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4748 as the 'pt' field.
4749 * win32-low.h (class win32_process_target): Define as a derived
4750 class of 'process_target'.
4751 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4752 as the 'pt' field.
4753
4754 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4755
4756 * configure: Regenerate.
4757
4758 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4759 Andrew Burgess <andrew.burgess@embecosm.com>
4760
4761 * linux-riscv-low.cc: New file.
4762 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4763 and nat/riscv-linux-tdesc.c.
4764 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4765 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4766 Define.
4767
4768 2020-02-14 Tom Tromey <tom@tromey.com>
4769
4770 * acinclude.m4: Don't include acx_configure_dir.m4.
4771 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4772 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4773 (all, install-only, uninstall, clean-info, clean)
4774 (maintainer-clean): Don't recurse.
4775 (subdir_do, all-lib): Remove.
4776 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4777 (GNULIB_H): Remove.
4778 (generated_files): Update.
4779 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4780 * configure: Rebuild.
4781 * configure.ac: Don't configure gnulib or libiberty.
4782 (GNULIB): Update.
4783
4784 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4785
4786 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4787 preparing the command line for CreateProcess.
4788 (win32_create_inferior): Reflect the program name in debugging
4789 output that shows the process and its command line.
4790
4791 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * Makefile.in: Rename source files from .c to .cc.
4794 * %.c: Rename to %.cc.
4795 * configure.ac: Rename server.c to server.cc.
4796 * configure: Re-generate.
4797
4798 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4799
4800 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4801
4802 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4803
4804 * win32-low.c (win32_create_inferior): Set signal_pid.
4805
4806 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4807 Pedro Alves <palves@redhat.com>
4808
4809 Skip building gdbserver in a cross-configuration.
4810 * configure.srv: Set $gdbserver_host depending on whether $target
4811 is $host. Use $gdbserver_host instead of $host.
4812
4813 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4814
4815 * configure: Re-generate.
4816
4817 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * configure: Re-generate.
4820
4821 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4822
4823 * acinclude.m4: Update warning.m4 path.
4824
4825 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4826
4827 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4828 (handle_exception): Set siginfo_er.
4829 (win32_xfer_siginfo): New function.
4830
4831 2020-02-07 Tom Tromey <tom@tromey.com>
4832 Pedro Alves <palves@redhat.com>
4833
4834 * README: Update build documentation.
4835 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4836 host, not target.
4837 * configure.ac: Update paths.
4838 * configure: Rebuild.
4839 * acinclude.m4: Update paths.
4840 * Makefile.in: Update include paths.
4841 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4842 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4843 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4844 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4845 (%-generated.c): Update paths.
4846 * Move entire directory from ../gdb/gdbserver.
4847
4848 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4849
4850 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4851
4852 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4853
4854 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4855 assignment instead of srv_linux_obj.
4856
4857 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4858
4859 * server.c (handle_qxfer_libraries): Write segment-address with
4860 paddress.
4861
4862 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4863
4864 * Makefile.in (install-strip): New target.
4865 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4866 * aclocal.m4: Regenerate.
4867 * configure: Regenerate.
4868 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4869
4870 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4871
4872 * Makefile.in (SFILES): Adjust paths to point to real files.
4873 (OBS): Move waitstatus.o to target/waitstatus.o.
4874 (TAGS): Transform paths appropriately.
4875 (%.o): Rename to...
4876 (nat/%.o): ... this pattern rule.
4877 (%.o): Rename to...
4878 (target/%.o): ... this pattern rule.
4879 * configure.srv: Adjust paths throughout to include nat/ prefix
4880 with the revant files.
4881 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4882 * configure: Regenerate.
4883
4884 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4885
4886 * Makefile.in (TAGS): Remove config files from the recipe.
4887
4888 2020-01-14 Tom Tromey <tom@tromey.com>
4889
4890 * configure: Rebuild.
4891 * configure.ac: Remove any checks that were added to common.m4.
4892 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4893 lib-link.m4.
4894
4895 2020-01-14 Tom Tromey <tom@tromey.com>
4896
4897 * server.h: Include config.h.
4898 * gdbreplay.c: Include config.h.
4899 * configure: Rebuild.
4900 * configure.ac: Don't source common.host.
4901 * acinclude.m4: Update path.
4902 * Makefile.in (INCSUPPORT): New variable.
4903 (INCLUDE_CFLAGS): Add INCSUPPORT.
4904 (SFILES): Update paths.
4905 (version-generated.c): Update path to create-version.sh.
4906 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4907
4908 2020-01-14 Tom Tromey <tom@tromey.com>
4909
4910 * configure.ac (LIBS): Use WIN32APILIBS.
4911 (USE_WIN32API): Don't define.
4912 * configure: Rebuild.
4913
4914 2020-01-14 Tom Tromey <tom@tromey.com>
4915
4916 * configure: Rebuild.
4917
4918 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4919
4920 * Makefile.in (%-generated.c): Remove rule for files from
4921 regformats/i386.
4922
4923 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * configure: Re-generate.
4926
4927 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4930 Define to static.
4931 * tracepoint.c (stop_tracing, flush_trace_buffer,
4932 about_to_request_buffer_space, get_trace_state_variable_value,
4933 set_trace_state_variable_value, gdb_collect): Add declaration.
4934
4935 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4938 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4939 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4940 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4941 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4942 static.
4943
4944 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * inferiors.c: Include gdbsupport/common-inferior.h.
4947
4948 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * hostio-errno.c: Include hostio.h.
4951
4952 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4953
4954 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4955 prerequisite.
4956
4957 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4958
4959 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4960 * linux-arm-tdesc.h: Include arch/arm.h.
4961
4962 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4963
4964 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4965
4966 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4967
4968 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4969 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4970
4971 2020-01-10 Pedro Alves <palves@redhat.com>
4972
4973 * fork-child.c (post_fork_inferior): Pass target down to
4974 startup_inferior.
4975 * inferiors.c (switch_to_thread): Add process_stratum_target
4976 parameter.
4977 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4978 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4979 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4980 * remote-utils.c (prepare_resume_reply): Pass the target to
4981 switch_to_thread.
4982 * target.c (the_target): Now a process_stratum_target.
4983 (done_accessing_memory): Pass the target to switch_to_thread.
4984 (set_target_ops): Ajust to use process_stratum_target.
4985 * target.h (struct target_ops): Rename to ...
4986 (struct process_stratum_target): ... this.
4987 (the_target, set_target_ops): Adjust.
4988 (prepare_to_access_memory): Adjust comment.
4989 * win32-low.c (child_xfer_memory): Adjust to use
4990 process_stratum_target.
4991 (win32_target_ops): Now a process_stratum_target.
4992
4993 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4994 Pedro Alves <palves@redhat.com>
4995
4996 * win32-low.c (get_child_debug_event): Extract the fatal exception
4997 from the exit status and convert to the equivalent Posix signal
4998 number.
4999 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5000 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5001
5002 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
5003
5004 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5005
5006 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5007
5008 * server.c (gdbserver_version): Change copyright year to 2020.
5009 * gdbreplay.c (gdbreplay_version): Likewise.
5010
5011 2019-12-19 Christian Biesinger <cbiesinger@google.com>
5012
5013 * configure: Regenerate.
5014 * configure.ac: Quote variable arguments of test.
5015
5016 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5017
5018 * Makefile.in: Fix build with GNU Make 3.81
5019
5020 2019-12-16 Tom Tromey <tromey@adacore.com>
5021
5022 * server.c (get_exec_file): Constify result.
5023
5024 2019-12-10 Christian Biesinger <cbiesinger@google.com>
5025
5026 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5027 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5028 * config.in: Regenerate.
5029 * configure: Regenerate.
5030 * configure.ac: Don't check for strerror.
5031 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5032 Call safe_strerror instead of strerror.
5033 * server.h (strerror): Remove this now-unnecessary declaration.
5034 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5035 strerror.
5036 (gdb_agent_helper_thread): Likewise.
5037 * utils.c (perror_with_name): Likewise.
5038
5039 2019-11-26 Tom Tromey <tom@tromey.com>
5040
5041 * configure, config.in: Rebuild.
5042
5043 2019-11-26 Tom Tromey <tom@tromey.com>
5044
5045 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5046 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5047 gdb_sigmask.
5048 * configure, config.in: Rebuild.
5049
5050 2019-11-26 Tom Tromey <tom@tromey.com>
5051
5052 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5053 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5054 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5055 * acinclude.m4: Include ax_pthread.m4.
5056 * config.in, configure: Rebuild.
5057
5058 2019-11-26 Christian Biesinger <cbiesinger@google.com>
5059
5060 * debug.c (debug_set_output): Call safe_strerror instead of
5061 strerror.
5062 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5063 (linux_kill_one_lwp): Likewise.
5064 (linux_detach_one_lwp): Likewise.
5065 (linux_wait_for_event_filtered): Likewise.
5066 (store_register): Likewise.
5067 * lynx-low.c (lynx_attach): Likewise.
5068 * mem-break.c (insert_memory_breakpoint): Likewise.
5069 (remove_memory_breakpoint): Likewise.
5070 (delete_fast_tracepoint_jump): Likewise.
5071 (set_fast_tracepoint_jump): Likewise.
5072 (uninsert_fast_tracepoint_jumps_at): Likewise.
5073 (reinsert_fast_tracepoint_jumps_at): Likewise.
5074 * nto-low.c (nto_xfer_memory): Likewise.
5075 (nto_resume): Likewise.
5076
5077 2019-11-20 Luis Machado <luis.machado@linaro.org>
5078
5079 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5080 instead of register count.
5081 * tdesc.c (tdesc_contains_feature): New function.
5082 * tdesc.h (tdesc_contains_feature): New prototype.
5083
5084 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5085
5086 * Makefile.in: Add safe-strerror.c.
5087 * configure: Regenerate.
5088 * configure.ac: Don't source common.host.
5089
5090 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5091
5092 * config.in: Regenerate.
5093 * configure: Regenerate.
5094
5095 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5096
5097 * ax.c (ax_printf): Handle size_t_arg.
5098
5099 2019-11-06 Christian Biesinger <cbiesinger@google.com>
5100
5101 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5102 * mi/mi-main.c (output_cores): Likewise.
5103 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5104 (linux_xfer_osdata_modules): Likewise.
5105 * remote.c (register_remote_support_xml): Likewise.
5106 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5107 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5108
5109 2019-11-01 Christian Biesinger <cbiesinger@google.com>
5110
5111 * configure: Regenerate.
5112 * configure.ac: Remove check for strerror_r.
5113
5114 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5115
5116 * config.in: Regenerate.
5117 * configure: Regenerate.
5118 * configure.ac: Also check for strerror_r.
5119
5120 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5121
5122 * ax.h (debug_agent): Remove duplicate declaration.
5123
5124 2019-10-26 Tom de Vries <tdevries@suse.de>
5125
5126 * linux-aarch64-low.c: Fix typos in comments.
5127 * linux-arm-low.c: Same.
5128 * linux-low.c: Same.
5129 * linux-ppc-low.c: Same.
5130 * proc-service.c: Same.
5131 * regcache.h: Same.
5132 * server.c: Same.
5133 * tracepoint.c: Same.
5134 * win32-low.c: Same.
5135
5136 2019-10-25 Tom Tromey <tromey@adacore.com>
5137
5138 * utils.c (xstrdup): Remove.
5139
5140 2019-10-23 Tom Tromey <tom@tromey.com>
5141
5142 * configure, config.in: Rebuild.
5143
5144 2019-10-23 Tom Tromey <tom@tromey.com>
5145
5146 * configure: Rebuild.
5147 * acinclude.m4: Use m4_include, not sinclude.
5148
5149 2019-10-17 Tom Tromey <tromey@adacore.com>
5150
5151 * configure: Rebuild.
5152 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5153 in AC_CONFIG_FILES invocation.
5154 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5155 invocation.
5156
5157 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5158
5159 * server.c: Include xml-builtin.h.
5160 (get_xml_features): Don't declare xml_builtins here.
5161
5162 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5163
5164 * Makefile.in: Remove references to vec-ipa.o.
5165
5166 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5167
5168 * Makefile.in: Remove references to vec.c.
5169
5170 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5171
5172 * server.c (server_waiting): Change to bool.
5173 (extended_protocol): Likewise.
5174 (response_needed): Likewise.
5175 (exit_requested): Likewise.
5176 (run_once): Likewise.
5177 (report_no_resumed): Likewise.
5178 (non_stop): Likewise.
5179 (disable_packet_vCont): Likewise.
5180 (disable_packet_Tthread): Likewise.
5181 (disable_packet_qC): Likewise.
5182 (disable_packet_qfThreadInfo): Likewise.
5183 (handle_general_set): Update.
5184 (handle_detach): Update.
5185 (handle_monitor_command): Update.
5186 (handle_query): Update.
5187 (captured_main): Update.
5188 (process_serial_event): Update.
5189 * server.h (server_waiting): Change to bool.
5190 (disable_packet_vCont): Likewise.
5191 (disable_packet_Tthread): Likewise.
5192 (disable_packet_qC): Likewise.
5193 (disable_packet_qfThreadInfo): Likewise.
5194 (run_once): Likewise.
5195 (non_stop): Likewise.
5196 * target.c (target_stop_and_wait): Update.
5197
5198 2019-10-02 Tom Tromey <tromey@adacore.com>
5199
5200 * Makefile.in (SFILES): Add common-inferior.c.
5201 (OBS): Add common-inferior.o.
5202 * server.c (startup_with_shell): Don't define.
5203
5204 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5205
5206 * linux-low.c (linux_low_read_btrace): Update for change to
5207 std::vector.
5208
5209 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5210
5211 * debug.c (debug_threads): Remove comment in favor of the header.
5212 * debug.h (using_threads): Add declaration.
5213 (debug_threads): Add comment.
5214 * linux-aarch64-low.c: Include debug.h and remove declaration of
5215 debug_threads.
5216 * nto-low.c: Likewise.
5217 * remote-utils.c: Likewise.
5218 * thread-db.c: Likewise.
5219
5220 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5221
5222 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5223 and powerpc-cell64l-ipa.o.
5224 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5225 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5226 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5227 (spu*-*-*): Remove.
5228
5229 * spu-low.c: Remove file.
5230
5231 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5232 (parse_spufs_run): Remove.
5233 (ppc_get_pc): Remove Cell/B.E. support.
5234 (ppc_set_pc): Likewise.
5235 (ppc_breakpoint_at): Likewise.
5236 (ppc_arch_setup): Likewise.
5237 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5238 tdesc_powerpc_cell32l.
5239 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5240 or init_registers_powerpc_cell32l.
5241 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5242 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5243 or init_registers_powerpc_cell32l.
5244 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5245 (init_registers_powerpc_cell32l): Remove prototype.
5246 (init_registers_powerpc_cell64l): Likewise.
5247
5248 * target.h (struct target_ops): Remove qxfer_spu member.
5249 * server.c (handle_qxfer_spu): Remove.
5250 (qxfer_packets): Remove entry for "spu".
5251 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5252 * linux-low.c (SPUFS_MAGIC): Remove.
5253 (spu_enumerate_spu_ids): Remove.
5254 (linux_qxfer_spu): Remove.
5255 (linux_target_ops): Remove qxfer_spu member.
5256 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5257 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5258 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5259
5260 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5261
5262 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5263 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5264 * config.in: Regenerate.
5265 * configure: Regenerate.
5266
5267 2019-08-15 Tom Tromey <tromey@adacore.com>
5268
5269 * target.c (target_write_memory): Use gdb::byte_vector.
5270
5271 2019-08-15 Tom Tromey <tromey@adacore.com>
5272
5273 * tracepoint.c (write_inferior_data_pointer)
5274 (write_inferior_integer, write_inferior_int8)
5275 (write_inferior_uinteger, m_tracepoint_action_download)
5276 (r_tracepoint_action_download, x_tracepoint_action_download)
5277 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5278 (download_agent_expr, download_tracepoint_1)
5279 (download_trace_state_variables, upload_fast_traceframes): Update.
5280 * server.c (gdb_write_memory): Update.
5281 * remote-utils.c (relocate_instruction): Update.
5282 * proc-service.c (ps_pdwrite): Update.
5283 * mem-break.c (remove_memory_breakpoint)
5284 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5285 (uninsert_fast_tracepoint_jumps_at)
5286 (reinsert_fast_tracepoint_jumps_at): Update.
5287 * linux-x86-low.c (append_insns)
5288 (i386_install_fast_tracepoint_jump_pad)
5289 (amd64_write_goto_address, i386_write_goto_address): Update.
5290 * linux-s390-low.c (append_insns, s390_write_goto_address):
5291 Update.
5292 * linux-ppc-low.c (ppc_relocate_instruction)
5293 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5294 (ppc_write_goto_address): Update.
5295 * linux-aarch64-low.c (append_insns): Update.
5296 * target.h (struct target_ops): Update.
5297 (write_inferior_memory): Don't declare.
5298 * target.c (target_write_memory): Rename from
5299 write_inferior_memory. Remove old target_write_memory.
5300
5301 2019-08-15 Tom Tromey <tromey@adacore.com>
5302
5303 * target.c (write_inferior_memory): Use std::vector.
5304
5305 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5306
5307 PR build/24886
5308 * configure.ac: Drop enable-libmcheck support.
5309 * configure, config.in: Rebuild.
5310 * acinclude.m4: Don't include it.
5311
5312 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5313
5314 * configure.srv: Remove Arm xml files.
5315
5316 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5317
5318 * configure.srv: Add new files. Remove xml generated files.
5319 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5320 registers.
5321 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5322 * linux-aarch32-tdesc.c: New file.
5323 * linux-aarch32-tdesc.h: New file.
5324 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5325 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5326 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5327 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5328 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5329 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5330 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5331 (arm_read_description): Call arm_linux_read_description.
5332 (initialize_low_arch): Don't init registers.
5333 * linux-arm-tdesc.c: New file.
5334 * linux-arm-tdesc.h: New file.
5335
5336 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5337
5338 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5339 Move counter inside for.
5340 (arm_read_description): Check ptrace earlier.
5341 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5342
5343 2019-07-09 Tom Tromey <tom@tromey.com>
5344
5345 * configure: Rebuild.
5346 * configure.ac: Change common to gdbsupport.
5347 * acinclude.m4: Change common to gdbsupport.
5348 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5349 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5350 common to gdbsupport.
5351 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5352 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5353 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5354 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5355 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5356 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5357 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5358 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5359 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5360 common to gdbsupport.
5361
5362 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5363
5364 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5365 defines.
5366 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5367
5368 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5369
5370 * configure.srv: Remove legacy xml.
5371 * linux-aarch64-low.c (initialize_low_arch): Remove
5372 initialize_low_tdesc call.
5373 * linux-aarch64-tdesc-selftest.c: Remove file.
5374 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5375 * linux-x86-low.c (initialize_low_arch): Remove
5376 initialize_low_tdesc call.
5377 * linux-x86-tdesc-selftest.c: Remove file.
5378 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5379
5380 2019-06-20 Tom de Vries <tdevries@suse.de>
5381
5382 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5383 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5384
5385 2019-06-19 Tom de Vries <tdevries@suse.de>
5386
5387 * debug.h (debug_write): Change return type to ssize_t.
5388 * debug.c (debug_write): Same.
5389
5390 2019-06-14 Tom Tromey <tom@tromey.com>
5391
5392 * configure.ac: Use new path to gnulib.
5393 * configure: Rebuild.
5394 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5395 to gnulib.
5396
5397 2019-06-11 Tom Tromey <tom@tromey.com>
5398
5399 * Makefile.in (SFILES): Add alloc.c.
5400 (OBS): Add alloc.o.
5401 (IPA_OBJS): Add alloc-ipa.o.
5402 (alloc-ipa.o): New target.
5403 (%.o: ../%.c): New pattern rule.
5404
5405 2019-06-10 Tom Tromey <tromey@adacore.com>
5406
5407 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5408 end warning with a newline.
5409 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5410 newline.
5411 * thread-db.c (attach_thread): Don't end warning with a newline.
5412 (thread_db_notice_clone): Likewise.
5413 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5414 newline.
5415 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5416 end warning with a newline.
5417
5418 2019-06-04 Pedro Alves <palves@redhat.com>
5419
5420 * server.c (captured_main): Use make_unique_xstrdup.
5421
5422 2019-06-02 Tom Tromey <tom@tromey.com>
5423
5424 * gdbreplay.c (fromhex): Remove.
5425 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5426
5427 2019-05-29 Tom Tromey <tromey@adacore.com>
5428
5429 * configure: Rebuild.
5430
5431 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5432
5433 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5434 sign extension code on 32-bit builds.
5435
5436 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5437
5438 * remote-utils.c:
5439 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5440
5441 2019-04-19 Tom Tromey <tom@tromey.com>
5442
5443 * server.c (struct vstop_notif): Derive from notif_event.
5444 <base>: Remove.
5445 (queue_stop_reply): Update.
5446 (remove_all_on_match_ptid): Change type. Rewrite.
5447 (discard_queued_stop_replies): Rewrite.
5448 (in_queued_stop_replies_ptid): Change type.
5449 (in_queued_stop_replies): Rewrite.
5450 (notif_stop): Update.
5451 (queue_stop_reply_callback): Update.
5452 (captured_main): Don't call initialize_notif.
5453 (push_stop_notification): Update.
5454 * notif.c (notif_write_event, handle_notif_ack)
5455 (notif_event_enque, notif_push): Update.
5456 (notif_event_xfree, initialize_notif): Remove.
5457 * notif.h (struct notif_event): Include <list>, not
5458 "common/queue.h".
5459 (struct notif_server) <queue>: Now a std::list.
5460 (notif_event_p): Remove typedef.
5461 (initialize_notif): Don't declare.
5462 (struct notif_event): Add virtual destructor.
5463
5464 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5465
5466 * ax.c (ax_vdebug): Call debug_printf.
5467 * debug.c (debug_write): New function.
5468 * debug.h (debug_write): New declaration.
5469 * linux-low.c (sigchld_handler): Call debug_write.
5470
5471 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5472
5473 * debug.c (debug_set_output): New function.
5474 (debug_vprintf): Send output to debug_file.
5475 (debug_flush): Likewise.
5476 * debug.h (debug_set_output): New declaration.
5477 * server.c (handle_monitor_command): Add debug-file option.
5478 (captured_main): Likewise.
5479
5480 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5481
5482 * debug.c (remote_debug): Add definition.
5483 * debug.h (remote_debug): Add declaration.
5484 * hostio.c (remote_debug): Remove declaration.
5485 * remote-utils.c (struct ui_file): Likewise.
5486 (remote_debug): Likewise.
5487 * remote-utils.h (remote_debug): Likewise,
5488 * server.c (remote_debug): Remove definition.
5489
5490 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5491
5492 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5493 when using a 64-bit gdbserver.
5494
5495 2019-04-09 Tom Tromey <tromey@adacore.com>
5496
5497 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5498
5499 2019-04-08 Tom Tromey <tom@tromey.com>
5500
5501 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5502 throw.
5503 (linux_resume_one_lwp): Likewise.
5504
5505 2019-04-08 Tom Tromey <tom@tromey.com>
5506
5507 * gdbreplay.c: Update.
5508 * linux-low.c: Update.
5509 * server.c: Update.
5510
5511 2019-04-08 Tom Tromey <tom@tromey.com>
5512
5513 * server.c: Use C++ exception handling.
5514 * linux-low.c: Use C++ exception handling.
5515 * gdbreplay.c: Use C++ exception handling.
5516
5517 2019-04-08 Tom Tromey <tom@tromey.com>
5518
5519 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5520 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5521 (captured_main, main): Update.
5522 * gdbreplay.c (main): Update.
5523
5524 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5525
5526 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5527 value in argument pointer, return 1 if the entry is found and 0
5528 otherwise. Move comment.
5529 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5530 * linux-low.h (linux_get_auxv): Declare.
5531 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5532
5533 2019-04-05 Tom Tromey <tromey@adacore.com>
5534
5535 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5536 variables.
5537
5538 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5539
5540 * linux-low.c (AT_HWCAP2): Add define if not already included.
5541
5542 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5543
5544 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5545 (aarch64_arch_setup): Call linux_get_hwcap.
5546 * linux-arm-low.c (arm_get_hwcap): Remove function.
5547 (arm_read_description): Call linux_get_hwcap.
5548 * linux-low.c (linux_get_auxv): New function.
5549 (linux_get_hwcap): Likewise.
5550 (linux_get_hwcap2): Likewise.
5551 * linux-low.h (linux_get_hwcap): New declaration.
5552 (linux_get_hwcap2): Likewise.
5553 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5554 (ppc_arch_setup): Call linux_get_hwcap.
5555 * linux-s390-low.c (s390_get_hwcap): Remove function.
5556 (s390_arch_setup): Call linux_get_hwcap.
5557
5558 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5559 Jiong Wang <jiong.wang@arm.com>
5560
5561 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5562 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5563 to fail.
5564 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5565
5566 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5567 Jiong Wang <jiong.wang@arm.com>
5568
5569 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5570 (aarch64_get_hwcap): New function.
5571 (aarch64_arch_setup): Read APIA hwcap.
5572
5573 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5574 Jiong Wang <jiong.wang@arm.com>
5575
5576 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5577 (initialize_low_tracepoint): Likewise.
5578 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5579 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5580 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5581 (aarch64_linux_read_description): Likewise.
5582 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5583
5584 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5585
5586 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5587 i386_create_target_description for 'segments' parameter.
5588 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5589 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5590 * win32-i386-low.c (i386_arch_setup): Likewise.
5591
5592 2019-03-12 Tom Tromey <tromey@adacore.com>
5593
5594 * linux-low.c (iterate_over_lwps): Update.
5595
5596 2019-03-06 Tom Tromey <tom@tromey.com>
5597
5598 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5599 (captured_main): Use SCOPE_EXIT.
5600
5601 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5602
5603 * configure.srv: Use '$enable_unittest' instead of '$development'
5604 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5605 case.
5606
5607 2019-02-27 Tom Tromey <tromey@adacore.com>
5608
5609 * gdbreplay.c (logchar): Handle \r\n.
5610
5611 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5612
5613 * linux-low.c (linux_attach): Add process before lwp.
5614 * server.c (attach_inferior): Check if already attached.
5615
5616 2019-02-07 Tom Tromey <tom@tromey.com>
5617
5618 * x86-tdesc.h: Rename include guard.
5619 * x86-low.h: Add include guard.
5620 * wincecompat.h: Rename include guard.
5621 * win32-low.h: Add include guard.
5622 * utils.h: Rename include guard.
5623 * tracepoint.h: Rename include guard.
5624 * tdesc.h: Rename include guard.
5625 * target.h: Rename include guard.
5626 * server.h: Rename include guard.
5627 * remote-utils.h: Rename include guard.
5628 * regcache.h: Rename include guard.
5629 * nto-low.h: Rename include guard.
5630 * notif.h: Add include guard.
5631 * mem-break.h: Rename include guard.
5632 * lynx-low.h: Add include guard.
5633 * linux-x86-tdesc.h: Add include guard.
5634 * linux-s390-tdesc.h: Add include guard.
5635 * linux-ppc-tdesc-init.h: Add include guard.
5636 * linux-low.h: Add include guard.
5637 * linux-aarch64-tdesc.h: Add include guard.
5638 * linux-aarch32-low.h: Add include guard.
5639 * inferiors.h: Rename include guard.
5640 * i387-fp.h: Rename include guard.
5641 * hostio.h: Rename include guard.
5642 * gdbthread.h: Rename include guard.
5643 * gdb_proc_service.h: Rename include guard.
5644 * event-loop.h: Rename include guard.
5645 * dll.h: Rename include guard.
5646 * debug.h: Rename include guard.
5647 * ax.h: Rename include guard.
5648
5649 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5650
5651 PR gdb/23985
5652 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5653 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5654
5655 2019-01-25 Tom Tromey <tom@tromey.com>
5656
5657 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5658
5659 2019-01-25 Tom Tromey <tom@tromey.com>
5660
5661 * win32-low.c: Fix common/ includes.
5662 * win32-i386-low.c: Fix common/ includes.
5663 * tracepoint.c: Fix common/ includes.
5664 * thread-db.c: Fix common/ includes.
5665 * target.h: Fix common/ includes.
5666 * symbol.c: Fix common/ includes.
5667 * spu-low.c: Fix common/ includes.
5668 * server.h: Fix common/ includes.
5669 * server.c: Fix common/ includes.
5670 * remote-utils.c: Fix common/ includes.
5671 * regcache.h: Fix common/ includes.
5672 * regcache.c: Fix common/ includes.
5673 * nto-x86-low.c: Fix common/ includes.
5674 * notif.h: Fix common/ includes.
5675 * mem-break.h: Fix common/ includes.
5676 * lynx-low.c: Fix common/ includes.
5677 * lynx-i386-low.c: Fix common/ includes.
5678 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5679 * linux-x86-low.c: Fix common/ includes.
5680 * linux-low.c: Fix common/ includes.
5681 * inferiors.h: Fix common/ includes.
5682 * i387-fp.c: Fix common/ includes.
5683 * hostio.c: Fix common/ includes.
5684 * hostio-errno.c: Fix common/ includes.
5685 * gdbthread.h: Fix common/ includes.
5686 * gdbreplay.c: Fix common/ includes.
5687 * fork-child.c: Fix common/ includes.
5688 * event-loop.c: Fix common/ includes.
5689 * ax.c:
5690 (enum gdb_agent_op): Fix common/ includes.
5691
5692 2019-01-21 Tom Tromey <tom@tromey.com>
5693
5694 * tracepoint.c: Fix includes.
5695 * remote-utils.c: Fix includes.
5696 * linux-x86-low.c: Fix includes.
5697
5698 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5699
5700 * gdbreplay.c (gdbreplay_version): Update copyright year in
5701 version message.
5702 * server.c (gdbserver_version): Likewise.
5703
5704 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5705
5706 * linux-low.c (add_lwp): Switch ordering.
5707
5708 2018-11-29 Tom Tromey <tom@tromey.com>
5709
5710 * win32-low.c (win32_join): Take pid, not process.
5711 * target.h (struct target_ops) <join>: Change argument type.
5712 (join_inferior): Change argument name.
5713 * spu-low.c (spu_join): Take pid, not process.
5714 * server.c (handle_detach): Preserve pid before destroying
5715 process.
5716 * lynx-low.c (lynx_join): Take pid, not process.
5717 * linux-low.c (linux_join): Take pid, not process.
5718
5719 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5720
5721 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5722 (aarch64_cannot_fetch_register): Likewise.
5723 (struct linux_target_ops): Update references.
5724
5725 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5726
5727 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5728
5729 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5730
5731 * configure.srv (ipa_ppc_linux_regobj): Add
5732 powerpc-isa207-htm-vsx32l-ipa.o and
5733 powerpc-isa207-htm-vsx64l-ipa.o.
5734 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5735 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5736 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5737 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5738 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5739 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5740 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5741 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5742 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5743 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5744 (init_registers_powerpc_isa207_htm_vsx32l)
5745 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5746 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5747 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5748 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5749 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5750 (ppc_store_tm_ctarregset): New functions.
5751 (ppc_regsets): Add entries for HTM regsets.
5752 (ppc_arch_setup): Set htm in features struct when needed. Set
5753 sizes for the HTM regsets.
5754 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5755 (initialize_low_arch): Call
5756 init_registers_powerpc_isa207_htm_vsx32l and
5757 init_registers_powerpc_isa207_htm_vsx64l.
5758 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5759 PPC_TDESC_ISA207_HTM_VSX.
5760 (initialize_low_tracepoint): Call
5761 init_registers_powerpc_isa207_htm_vsx32l and
5762 init_registers_powerpc_isa207_htm_vsx64l.
5763
5764 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5765
5766 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5767 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5768 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5769 (ppc_store_pmuregset): New functions.
5770 (ppc_regsets): Add entries for ebb and pmu regsets.
5771 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5772 pmu regsets are available. Set sizes for these regsets.
5773
5774 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5775
5776 * configure.srv (ipa_ppc_linux_regobj): Add
5777 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5778 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5779 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5780 rs6000/powerpc-isa207-vsx32l.xml, and
5781 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5782 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5783 <PPC_TDESC_ISA207_VSX>: New enum value.
5784 (init_registers_powerpc_isa207_vsx32l): Declare.
5785 (init_registers_powerpc_isa207_vsx64l): Declare.
5786 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5787 (ppc_store_tarregset): New function.
5788 (ppc_regsets): Add entry for the TAR regset.
5789 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5790 size for the TAR regsets.
5791 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5792 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5793 and init_registers_powerpc_isa207_vsx64l.
5794 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5795 (initialize_low_tracepoint): Call
5796 init_registers_powerpc_isa207_vsx32l and
5797 init_registers_powerpc_isa207_vsx64l.
5798
5799 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5800 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5801
5802 * configure.srv (ipa_ppc_linux_regobj): Add
5803 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5804 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5805 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5806 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5807 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5808 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5809 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5810 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5811 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5812 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5813 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5814 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5815 (ppc_hwcap): Add comment.
5816 (ppc_hwcap2): New global.
5817 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5818 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5819 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5820 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5821 when needed. Set sizes for the the DSCR and PPR regsets.
5822 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5823 (initialize_low_arch): Call
5824 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5825 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5826 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5827 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5828 (initialize_low_tracepoint): Call
5829 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5830 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5831
5832 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5833
5834 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5835
5836 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5837 Simon Marchi <simark@simark.ca>
5838
5839 * acinclude.m4: Include "../selftest.m4".
5840 * configure: Regenerate.
5841 * configure.ac: Use "GDB_AC_SELFTEST".
5842 * configure.srv: Use "$enable_unittests" instead of
5843 "$development" when checking whether unit tests have been
5844 enabled.
5845 * server.c (captured_main): Update message informing that
5846 selftests have been disabled.
5847
5848 2018-10-04 Tom Tromey <tom@tromey.com>
5849
5850 * configure: Rebuild.
5851
5852 2018-10-04 Tom Tromey <tom@tromey.com>
5853
5854 * server.c (handle_status): Rename inner "thread".
5855 (process_serial_event): Declare "res" in 'm' case.
5856 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5857 (iterate_over_lwps): Rename inner "thread".
5858 (linux_qxfer_libraries_svr4): Rename inner "len".
5859 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5860
5861 2018-10-01 Gary Benson <gbenson@redhat.com>
5862
5863 * gdb_proc_service.h: Moved common code to
5864 common/gdb_proc_service.h.
5865
5866 2018-10-01 Gary Benson <gbenson@redhat.com>
5867
5868 * gdb_proc_service.h: Synchronize comments and whitespace with
5869 GDB's version of this file.
5870
5871 2018-09-25 Tom Tromey <tom@tromey.com>
5872
5873 * configure: Rebuild.
5874 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5875
5876 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5877
5878 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5879 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5880 ($(IPA_LIB)): Sort IPA_OBJS.
5881
5882 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5883
5884 * Makefile.in: Remove references to $(ADD_DEPS).
5885
5886 2018-09-16 Tom Tromey <tom@tromey.com>
5887
5888 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5889 variables.
5890 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5891 variables.
5892
5893 2018-09-05 Tom Tromey <tom@tromey.com>
5894
5895 * configure: Rebuild.
5896
5897 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5898
5899 PR build/23399
5900 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5901
5902 2018-08-27 Tom Tromey <tom@tromey.com>
5903
5904 PR build/23087:
5905 * configure: Rebuild.
5906
5907 2018-08-27 Tom Tromey <tom@tromey.com>
5908
5909 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5910 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5911 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5912 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5913 (s390x_emit_stack_adjust): Add casts to unsigned char.
5914
5915 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5916
5917 PR gdb/23374
5918 PR gdb/23375
5919 * server.h (struct client_state) <disable_randomization>:
5920 Initialize to 1.
5921
5922 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5923
5924 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5925 variable.
5926 (mips_supply_ptrace_register): Likewise.
5927
5928 2018-07-22 Tom Tromey <tom@tromey.com>
5929
5930 * configure: Rebuild.
5931
5932 2018-07-22 Tom Tromey <tom@tromey.com>
5933
5934 * win32-low.c (win32_create_inferior): Remove unused variables.
5935 * gdbreplay.c (remote_open): Remove unused variable.
5936 * remote-utils.c (remote_prepare): Remove unused variable.
5937 * x86-tdesc.h (X86_TDESC_H): Define.
5938 (amd64_expedite_regs): Define conditionally.
5939 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5940 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5941 * remote-utils.c (readchar): Remove unused variable.
5942
5943 2018-07-13 Pedro Alves <palves@redhat.com>
5944
5945 * linux-low.c (linux_kill): Change parameter to process_info
5946 pointer instead of pid. Adjust.
5947 * lynx-low.c (lynx_kill): Likewise.
5948 * nto-low.c (nto_kill): Likewise.
5949 * spu-low.c (spu_kill): Likewise.
5950 * win32-low.c (win32_kill): Likewise.
5951 * server.c (handle_v_kill, kill_inferior_callback)
5952 (detach_or_kill_for_exit): Adjust.
5953 * target.c (kill_inferior): Change parameter to process_info
5954 pointer instead of pid. Adjust.
5955 * target.h (struct target_ops) <kill>: Change parameter to
5956 process_info pointer instead of pid. Adjust all implementations
5957 and callers.
5958 (kill_inferior): Likewise.
5959
5960 2018-07-13 Pedro Alves <palves@redhat.com>
5961
5962 * linux-low.c (linux_detach, linux_join): Change parameter to
5963 process_info pointer instead of pid. Adjust.
5964 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5965 * nto-low.c (nto_detach): Likewise.
5966 * spu-low.c (spu_detach, spu_join): Likewise.
5967 * win32-low.c (win32_detach, win32_join): Likewise.
5968 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5969 * target.h (struct target_ops) <detach, join>: Change parameter to
5970 process_info pointer instead of pid. Adjust all implementations
5971 and callers.
5972 (detach_inferior, join_inferior): Rename 'pid' parameter to
5973 'proc'.
5974
5975 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5976 Jan Kratochvil <jan.kratochvil@redhat.com>
5977 Paul Fertser <fercerpav@gmail.com>
5978 Tsutomu Seki <sekiriki@gmail.com>
5979
5980 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5981 (OBS): Add 'common/netstuff.o'.
5982 (GDBREPLAY_OBS): Likewise.
5983 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5984 (remote_open): Implement support for IPv6
5985 connections.
5986 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5987 and 'wspiapi.h'.
5988 (handle_accept_event): Accept connections from IPv6 sources.
5989 (remote_prepare): Handle IPv6-style hostnames; implement
5990 support for IPv6 connections.
5991 (remote_open): Implement support for printing connections from
5992 IPv6 sources.
5993
5994 2018-07-11 Pedro Alves <palves@redhat.com>
5995
5996 PR gdb/23377
5997 * mem-break.c (any_persistent_commands): Add process_info
5998 parameter and use it instead of relying on the current process.
5999 Change return type to bool.
6000 * mem-break.h (any_persistent_commands): Add process_info
6001 parameter and change return type to bool.
6002 * server.c (handle_detach): Remove require_running_or_return call.
6003 Look up the process_info for the process we're about to detach.
6004 If not found, return back error to GDB. Adjust
6005 any_persistent_commands call to pass down a process pointer.
6006
6007 2018-07-11 Pedro Alves <palves@redhat.com>
6008
6009 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6010 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6011 instead of collect_register_by_name.
6012 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6013 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6014
6015 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6016 Pedro Alves <palves@redhat.com>
6017
6018 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6019
6020 2018-07-03 Tom Tromey <tom@tromey.com>
6021
6022 * linux-low.c: Update.
6023 * lynx-low.c: Update.
6024 * mem-break.c: Update.
6025 * nto-low.c: Update.
6026 * remote-utils.c: Update.
6027 * server.c: Update.
6028 * spu-low.c: Update.
6029 * target.c: Update.
6030 * win32-low.c: Update.
6031
6032 2018-07-03 Tom Tromey <tom@tromey.com>
6033
6034 * server.c: Update.
6035
6036 2018-07-03 Tom Tromey <tom@tromey.com>
6037
6038 * linux-low.c: Update.
6039
6040 2018-07-03 Tom Tromey <tom@tromey.com>
6041
6042 * target.c: Update.
6043
6044 2018-07-03 Tom Tromey <tom@tromey.com>
6045
6046 * linux-low.c: Update.
6047 * linux-mips-low.c: Update.
6048 * lynx-low.c: Update.
6049 * nto-low.c: Update.
6050 * remote-utils.c: Update.
6051 * server.c: Update.
6052 * spu-low.c: Update.
6053 * target.c: Update.
6054 * thread-db.c: Update.
6055
6056 2018-07-03 Tom Tromey <tom@tromey.com>
6057
6058 * linux-low.c: Update.
6059 * linux-mips-low.c: Update.
6060 * lynx-low.c: Update.
6061 * mem-break.c: Update.
6062 * nto-low.c: Update.
6063 * remote-utils.c: Update.
6064 * server.c: Update.
6065 * spu-low.c: Update.
6066 * target.c: Update.
6067 * tracepoint.c: Update.
6068
6069 2018-07-03 Tom Tromey <tom@tromey.com>
6070
6071 * linux-low.c: Update.
6072 * linux-ppc-low.c: Update.
6073 * linux-x86-low.c: Update.
6074 * proc-service.c: Update.
6075 * server.c: Update.
6076 * spu-low.c: Update.
6077 * thread-db.c: Update.
6078 * win32-low.c: Update.
6079
6080 2018-07-03 Tom Tromey <tom@tromey.com>
6081
6082 * linux-low.c: Update.
6083 * lynx-low.c: Update.
6084 * nto-low.c: Update.
6085 * remote-utils.c: Update.
6086 * spu-low.c: Update.
6087 * thread-db.c: Update.
6088 * win32-low.c: Update.
6089
6090 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6091
6092 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6093 parameter in call to 'amd64_create_target_description'.
6094
6095 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6096
6097 * x86-tdesc.h: Remove executable permission flag.
6098
6099 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6100
6101 * configure.ac: Remove AC_PREREQ, add missing quoting.
6102 * configure: Re-generate.
6103 * config.in: Re-generate.
6104 * aclocal.m4: Re-generate.
6105
6106 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6107
6108 * tracepoint.h (current_traceframe): Remove declaration.
6109
6110 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6111
6112 * linux-aarch64-low.c (is_sve_tdesc): New function.
6113 (aarch64_sve_regs_copy_to_regcache): Likewise.
6114 (aarch64_sve_regs_copy_from_regcache): Likewise.
6115 (aarch64_regs_info): Add SVE checks.
6116 (initialize_low_arch): Initialize SVE.
6117
6118 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6119
6120 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6121
6122 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6123
6124 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6125 (initialize_low_tracepoint): Likewise
6126 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6127 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6128 param.
6129 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6130 checks.
6131 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6132
6133 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6134
6135 * server.h (PBUFSIZ): Increase size
6136
6137 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6138
6139 * regcache.c (regcache::raw_compare): New function.
6140 * regcache.h (regcache::raw_compare): New declaration.
6141
6142 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6143
6144 * regcache.c (new_register_cache): Use new.
6145 (free_register_cache): Use delete.
6146 (register_data): Use const.
6147 (supply_register): Move body inside regcache.
6148 (regcache::raw_supply): New override function.
6149 (collect_register): Move body inside regcache.
6150 (regcache::raw_collect): New override function.
6151 (regcache::get_register_status): New override function.
6152 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6153
6154 2018-06-09 Tom Tromey <tom@tromey.com>
6155
6156 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6157 declare queue.
6158 (event_queue): Use std::queue.
6159 (gdb_event_xfree): Remove.
6160 (initialize_event_loop, process_event, wait_for_event): Update.
6161
6162 2018-06-08 Stan Cox <scox@redhat.com>
6163
6164 * win32-low.c (win32_create_inferior): last_ptid and last_status
6165 moved to client_state.
6166
6167 2018-06-08 Pedro Alves <palves@redhat.com>
6168
6169 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6170 common/common-exceptions.o, common/common-utils.o,
6171 common/errors.o, common/print-utils.o and utils.o.
6172 * gdbreplay.c: Include "common-defs.h" instead of the two
6173 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6174 string.h or alloca.h.
6175 (perror_with_name): Delete.
6176 (remote_open): Use xstrdup instead of strdup.
6177 (main): Rename to ...
6178 (captured_main): ... this.
6179 (main): New.
6180
6181 2018-06-08 Tom Tromey <tom@tromey.com>
6182
6183 * linux-low.c (linux_low_read_btrace): Update.
6184
6185 2018-06-04 Stan Cox <scox@redhat.com>
6186
6187 * server.h (struct client_state): New.
6188 * server.c (cont_thread, general_thread, multi_process)
6189 (report_fork_events, report_vfork_events, report_exec_events)
6190 (report_thread_events, swbreak_feature, hwbreak_feature)
6191 (vCont_supported, disable_randomization, pass_signals)
6192 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6193 Moved to client_state.
6194 * remote-utils.c (remote_debug, noack_mode)
6195 (transport_is_reliable): Moved to client_state.
6196 * tracepoint.c (current_traceframe): Moved to client_state.
6197
6198 Update all callers.
6199 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6200 linux-low.c, remote-utils.h, target.c: Use client_state.
6201
6202 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6203
6204 * configure.srv: Add new c/h file.
6205
6206 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6207
6208 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6209 null VQ.
6210
6211 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6212
6213 * gdb.arch/mips-fpregset-core.exp: New test.
6214 * gdb.arch/mips-fpregset-core.c: New test source.
6215
6216 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6217
6218 PR server/23198
6219 * hostio.c (require_int): Do not report overflow for integers
6220 between 0xfffffff and 0x7fffffff.
6221
6222 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6223
6224 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6225 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6226 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6227 functions.
6228 (the_low_target): Wire them.
6229
6230 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6231
6232 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6233 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6234 mode. Call collect_register_by_name with vscr using
6235 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6236 (ppc_store_vrregset): Add and set vscr_offset variable as in
6237 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6238 vscr_offset.
6239
6240 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6241
6242 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6243 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6244 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6245
6246 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6247
6248 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6249 (ppc_store_vsxregset): Likewise.
6250 (ppc_fill_vrregset): Likewise.
6251 (ppc_store_vrregset): Likewise.
6252 (ppc_fill_evrregset): Likewise.
6253 (ppc_store_evrregset): Likewise.
6254 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6255 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6256 needed.
6257
6258 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6259
6260 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6261 wordsize of the inferior. Call ppc_linux_target_wordsize.
6262
6263 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6264
6265 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6266 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6267 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6268 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6269 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6270 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6271 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6272 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6273 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6274 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6275 (tdesc_powerpc_e500l): Remove.
6276 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6277 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6278 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6279 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6280 linux-ppc-tdesc.h.
6281 (ppc_arch_setup): Remove target description matching code. Fill a
6282 ppc_linux_features struct and call ppc_linux_match_description
6283 with it.
6284
6285 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6286
6287 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6288 width of the requested register exceeds the width of the
6289 `ptrace' data type.
6290 (mips_cannot_store_register): Likewise.
6291
6292 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6293
6294 * linux-mips-low.c (mips_fetch_register): New function. Update
6295 preceding comment.
6296 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6297 (the_low_target): Wire `mips_fetch_register'.
6298
6299 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6300
6301 * lynx-i386-low.c (LYNXOS_178): New macro.
6302 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6303 the layout on LynxOS-178.
6304 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6305 handle floating point registers that are not supported by
6306 LynxOS-178.
6307
6308 2018-05-10 Tom Tromey <tom@tromey.com>
6309
6310 * configure: Rebuild.
6311
6312 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6313
6314 PR server/23158:
6315 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6316 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6317 Use it to set the expedite_regs field in the given tdesc.
6318 * x86-tdesc.h: New file.
6319 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6320 Adjust following the addition of the new expedite_regs parameter
6321 to init_target_desc.
6322 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6323 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6324 (i386_linux_read_description, amd64_linux_read_description):
6325 Adjust following the addition of the new expedite_regs parameter
6326 to init_target_desc.
6327 * lynx-i386-low.c: #include "x86-tdesc.h".
6328 (lynx_i386_arch_setup): Adjust following the addition of the new
6329 expedite_regs parameter to init_target_desc.
6330 * nto-x86-low.c: #include "x86-tdesc.h".
6331 (nto_x86_arch_setup): Adjust following the addition of the new
6332 expedite_regs parameter to init_target_desc.
6333 * win32-i386-low.c: #include "x86-tdesc.h".
6334 (i386_arch_setup): Adjust following the addition of the new
6335 expedite_regs parameter to init_target_desc.
6336
6337 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6338
6339 PR server/23158:
6340 * win32-low.c (win32_create_inferior): Add call to my_wait
6341 setting last_status global.
6342
6343 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6344
6345 PR server/23158:
6346 * win32-low.c (create_process): Only call gdb_tilde_expand if
6347 inferior_cwd is not NULL.
6348
6349 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6350
6351 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6352 registers to the cache if their values have changed.
6353 (i387_xsave_to_cache): Provide default values for x87 control
6354 registers when these features are available, but disabled.
6355 * regcache.c (supply_register_by_name_zeroed): New function.
6356 * regcache.h (supply_register_by_name_zeroed): Declare new
6357 function.
6358
6359 2018-05-07 Tom Tromey <tom@tromey.com>
6360
6361 * configure: Rebuild.
6362
6363 2018-05-04 Tom Tromey <tom@tromey.com>
6364
6365 * configure: Rebuild.
6366
6367 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6368 Pedro Alves <palves@redhat.com>
6369
6370 * linux-aarch64-low.c (aarch64_stopped_data_address):
6371 Likewise.
6372
6373 2018-04-27 Tom Tromey <tom@tromey.com>
6374
6375 * configure: Rebuild.
6376
6377 2018-04-23 Tom Tromey <tom@tromey.com>
6378
6379 * configure: Rebuild.
6380
6381 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6382
6383 * Makefile.in (depcomp): Add "..".
6384 (all_deps_files): New and use it.
6385
6386 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6387
6388 * configure.srv (aarch64*-*-linux*): Don't include xml.
6389 (i[34567]86-*-cygwin*): Likewise.
6390 (i[34567]86-*-linux*): Likewise.
6391 (i[34567]86-*-lynxos*): Likewise.
6392 (i[34567]86-*-mingw32ce*): Likewise.
6393 (i[34567]86-*-mingw*): Likewise.
6394 (i[34567]86-*-nto*): Likewise.
6395 (tic6x-*-uclinux): Likewise.
6396 (x86_64-*-linux*): Likewise.
6397 (x86_64-*-mingw*): Likewise.
6398 (x86_64-*-cygwin*): Likewise.
6399
6400 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6401
6402 * tdesc.c: Remove xml parameter.
6403
6404 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6405
6406 * server.c (get_features_xml): Remove cast.
6407 * tdesc.c (void target_desc::accept): Fill in function.
6408 (tdesc_get_features_xml): Remove old xml creation.
6409 (print_xml_feature::visit_pre): Add xml vistor.
6410 * tdesc.h (struct target_desc): Make xmltarget mutable.
6411 (tdesc_get_features_xml): Remove declaration.
6412
6413 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6414
6415 * tdesc.c (tdesc_architecture_name): Add new function.
6416 (tdesc_osabi_name): Likewise.
6417 (tdesc_get_features_xml): Use new functions.
6418
6419 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6420
6421 * tdesc.c (tdesc_create_flags): Remove.
6422 (tdesc_add_flag): Likewise.
6423 (tdesc_named_type): Likewise.
6424 (tdesc_create_union): Likewise.
6425 (tdesc_create_struct): Likewise.
6426 (tdesc_create_vector): Likewise.
6427 (tdesc_add_bitfield): Likewise.
6428 (tdesc_add_field): Likewise.
6429 (tdesc_set_struct_size): Likewise.
6430
6431 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6432
6433 * tdesc.c (~target_desc): Remove implictly deleted items.
6434 (init_target_desc): Iterate all features.
6435 (tdesc_get_features_xml): Use vector.
6436 (tdesc_create_feature): Create feature.
6437 * tdesc.h (tdesc_feature) Remove
6438 (target_desc): Add features.
6439
6440 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6441
6442 * Makefile.in: Add common/tdesc.c
6443 * tdesc.c (init_target_desc): init all reg_defs from register
6444 vector.
6445 (tdesc_create_reg): Create tdesc_reg.
6446 * tdesc.h (tdesc_feature): Add register vector.
6447
6448 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6449
6450 * tdesc.h (struct target_desc) <features>: Change type to
6451 std::vector<std::string>.
6452 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6453 changes.
6454 (tdesc_get_features_xml): Likewise.
6455 (tdesc_create_feature): Likewise.
6456
6457 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6458
6459 * regcache.c (find_register_by_number): Return a ref.
6460 (find_regno): Use references.
6461 (register_size): Likewise.
6462 (register_data): Likewise.
6463 * tdesc.c (target_desc::~target_desc): Remove free calls.
6464 (target_desc::operator==): Use std::vector compare.
6465 (init_target_desc): Use reference.
6466 (tdesc_create_reg): Use reg constructors.
6467 * tdesc.h (struct target_desc): Replace pointer with object.
6468
6469 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6470
6471 * regcache.c (find_register_by_number): Make static.
6472 (find_regno): Use find_register_by_number
6473 * regcache.h (struct reg): Remove declaration.
6474
6475 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6476
6477 * tdesc.c (target_desc::~target_desc): Move to here.
6478 (target_desc::operator==): Likewise.
6479 * tdesc.h (target_desc::~target_desc): Move from here.
6480 (target_desc::operator==): Likewise.
6481
6482 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6483
6484 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6485
6486 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6487
6488 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6489 S390_TDESC_GS.
6490 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6491 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6492 and init_registers_s390_gs_linux64.
6493
6494 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6495
6496 * linux-s390-low.c (s390_fill_gs): Remove function.
6497 (s390_fill_gsbc): Remove function.
6498 (s390_regsets): Set fill functions for the guarded storage regsets
6499 to NULL.
6500
6501 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6502
6503 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6504 the word size. Add comment.
6505 (s390_get_wordsize): New function.
6506 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6507 pswm with it. Instead, use s390_get_wordsize to determine the
6508 word size first and derive the correct tdesc from that directly.
6509
6510 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6511
6512 * Makefile.in: Include silent-rules.mk.
6513 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6514 (COMPILE): Add ECHO_CXX.
6515 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6516 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6517 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6518 (version-generated.c): Add ECHO_GEN.
6519 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6520 (IPAGENT_COMPILE): Add ECHO_CXX.
6521 (%-generated.c): Add ECHO_REGDAT.
6522
6523 2018-03-14 Tom Tromey <tom@tromey.com>
6524
6525 PR cli/14977:
6526 * ax.c (ax_printf): Special case for NULL.
6527
6528 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6529
6530 * linux-low.c (linux_qxfer_libraries_svr4): Use
6531 xml_escape_text_append.
6532
6533 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6534
6535 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6536
6537 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6538
6539 * server.c (handle_general_set): Remove unnecessary xstrdup.
6540
6541 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6542
6543 * server.c (parse_debug_format_options): Adjust to
6544 delim_string_to_char_ptr_vec changes.
6545 * thread-db.c (thread_db_load_search): Adjust to
6546 dirnames_to_char_ptr_vec changes.
6547
6548 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6549
6550 * target.h (target_enable_btrace, target_disable_btrace)
6551 (target_read_btrace, target_read_btrace_conf): Turn macro into
6552 inline function. Throw error if target method is not defined.
6553 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6554 check for btrace target method. Be prepared to handle exceptions
6555 from btrace target methods.
6556
6557 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6558
6559 * server.c (captured_main): Change order of error message printed
6560 when the current working directory cannot be found.
6561
6562 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6563
6564 * server.c: Include "filenames.h" and "pathstuff.h".
6565 (program_name): Delete variable.
6566 (program_path): New anonymous class.
6567 (get_exec_wrapper): Use "program_path" instead of
6568 "program_name".
6569 (handle_v_run): Likewise.
6570 (captured_main): Likewise.
6571 (process_serial_event): Likewise.
6572
6573 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6574
6575 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6576 (OBJS): Add "pathstuff.o".
6577 * server.c (current_directory): New global variable.
6578 (captured_main): Initialize "current_directory".
6579
6580 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6581
6582 * tdesc.c: Use common/tdesc.h.
6583 * tdesc.h: Likewise.
6584
6585 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6586 Simon Marchi <simon.marchi@ericsson.com>
6587
6588 * Makefile.in: Switch order of make rules.
6589
6590 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6591
6592 * Makefile.in: Add common directory in build.
6593 * configure.ac: Add common reference.
6594 * configure: Regenerate.
6595
6596 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6597
6598 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6599 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6600 * spu-low.c (spu_target_ops): Likewise.
6601 * win32-low.c (win32_target_ops): Likewise.
6602 * server.c (supported_btrace_packets): Report packets unconditionally.
6603 * target.h (target_ops) <supports_btrace>: Remove.
6604 (target_supports_btrace): Remove.
6605
6606 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6607
6608 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6609 (handle_btrace_disable): Change return type to void. Use exceptions
6610 to report errors.
6611 (handle_btrace_general_set): Catch exception and copy message to
6612 return message.
6613
6614 2018-02-08 Tom Tromey <tom@tromey.com>
6615
6616 * linux-low.c (install_software_single_step_breakpoints): Use
6617 make_scoped_restore.
6618 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6619 (do_restore_current_thread_cleanup): Remove.
6620 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6621 declare.
6622
6623 2018-02-08 Tom Tromey <tom@tromey.com>
6624
6625 * mem-break.c (set_raw_breakpoint_at): Use
6626 gdb::unique_xmalloc_ptr.
6627
6628 2018-01-30 Pedro Alves <palves@redhat.com>
6629
6630 PR gdb/13211
6631 * target.c (target_terminal::terminal_state): Rename to ...
6632 (target_terminal::m_terminal_state): ... this.
6633
6634 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6635
6636 * linux-low.c (handle_extended_wait): Surround call to
6637 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6638
6639 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6640
6641 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6642 linux_ptrace_attach_fail_reason_string now returning an
6643 std::string.
6644 (linux_attach): Likewise.
6645 * thread-db.c (attach_thread): Likewise.
6646
6647 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6648
6649 PR gdb/21559
6650 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6651 checking for fs_base/gs_base fields in struct user_regs_struct.
6652 * configure: Regenerate.
6653
6654 2018-01-16 Yao Qi <yao.qi@linaro.org>
6655
6656 PR gdb/18749
6657 * linux-low.c (fetch_register): Call supply_register instead of
6658 error.
6659
6660 2018-01-08 Yao Qi <yao.qi@linaro.org>
6661 Simon Marchi <simon.marchi@ericsson.com>
6662
6663 * Makefile.in (OBS): Remove selftest.o.
6664 * configure.ac: Set srv_selftest_objs if $development is true.
6665 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6666 * configure: Re-generated.
6667 * server.c (captured_main): Wrap variable selftest_filter with
6668 GDB_SELF_TEST.
6669
6670 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6671
6672 * server.c (parse_debug_format_options): Return std::string.
6673 (handle_monitor_command, captured_main): Adjust.
6674
6675 2018-01-05 Pedro Alves <palves@redhat.com>
6676
6677 PR gdb/18653
6678 * server.c (captured_main): Pass quiet=false to
6679 save_original_signals_state.
6680
6681 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6682
6683 * gdbreplay.c (gdbreplay_version): Update copyright year in
6684 version message.
6685 * server.c (gdbserver_version): Likewise.
6686
6687 2017-12-08 Tom Tromey <tom@tromey.com>
6688
6689 * ax.c (ax_printf): Update.
6690
6691 2017-12-07 Yao Qi <yao.qi@linaro.org>
6692
6693 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6694 aarch64_linux_read_description.
6695 * linux-amd64-ipa.c (idx2mask): New array.
6696 (get_ipa_tdesc): Move idx2mask out.
6697 (initialize_low_tracepoint): Initialize target descriptions.
6698 * linux-i386-ipa.c (idx2mask): New array.
6699 (get_ipa_tdesc): Move idx2mask out.
6700 (initialize_low_tracepoint): Initialize target descriptions.
6701
6702 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6703
6704 * tdesc.c (struct tdesc_type): Change return type.
6705 (tdesc_add_flag): Change parameter type.
6706 (tdesc_add_bitfield): Likewise.
6707 (tdesc_add_field): Likewise.
6708 (tdesc_set_struct_size): Likewise.
6709
6710 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6711
6712 * regcache.c (registers_to_string): Remove unused variable.
6713
6714 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6715
6716 * inferiors.c (for_each_inferior_with_data): Remove.
6717 * inferiors.h (for_each_inferior_with_data): Remove.
6718 * server.c (handle_qxfer_threads_worker): Change parameter type.
6719 (handle_qxfer_threads_proper): Use for_each_thread.
6720
6721 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6722
6723 * inferiors.c (for_each_inferior): Remove.
6724 (clear_inferiors): Use for_each_thread.
6725 * inferiors.h (for_each_inferior): Remove.
6726 * linux-low.c (linux_wait_for_event_filtered): Use
6727 for_each_thread.
6728 (linux_stabilize_threads): Likewise.
6729 * regcache.c (regcache_release): Likewise.
6730 * server.c (gdb_wants_all_threads_stopped): Likewise.
6731 (clear_pending_status_callback): Remove.
6732 (handle_status): Use for_each_thread.
6733 (captured_main): Likewise.
6734 * win32-low.c (child_init_thread_list): Likewise.
6735 (win32_clear_inferiors): Likewise.
6736 (fake_breakpoint_event): Likewise.
6737
6738 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6739
6740 * inferiors.h (find_inferior): Remove.
6741 * inferiors.c (find_inferior): Remove.
6742
6743 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6744
6745 * linux-low.c (resume_status_pending_p): Update comment.
6746 (need_step_over_p): Update comment.
6747
6748 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6749
6750 * linux-low.c (proceed_one_lwp): Return void, change parameter
6751 type.
6752 (unsuspend_and_proceed_one_lwp): Likewise.
6753 (proceed_all_lwps): Use for_each_thread.
6754 (unstop_all_lwps): Likewise.
6755
6756 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6757
6758 * linux-low.c (linux_resume_one_thread): Return void, take
6759 parameter directly.
6760 (linux_resume): Use for_each_thread.
6761
6762 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6763
6764 * linux-low.c (send_sigstop_callback): Return void, change
6765 parameter type. Rename to...
6766 (send_sigstop): ... this.
6767 (suspend_and_send_sigstop_callback): Return void, change parameter
6768 type. Rename to...
6769 (suspend_and_send_sigstop): ... this.
6770 (stop_all_lwps): Use for_each_thread.
6771
6772 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6773
6774 * linux-low.c (lwp_running): Return bool, remove unused
6775 argument.
6776 (linux_stabilize_threads): Use find_thread.
6777
6778 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6779
6780 * linux-low.c (select_singlestep_lwp_callback): Remove.
6781 (count_events_callback): Remove.
6782 (select_event_lwp_callback): Remove.
6783 (select_event_lwp): Use find_thread/for_each_thread.
6784
6785 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6786
6787 * linux-low.c (not_stopped_callback): Return bool, take filter
6788 argument directly.
6789 (linux_wait_for_event_filtered): Use find_thread.
6790 (linux_wait_1): Likewise.
6791
6792 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6793
6794 * linux-low.c (same_lwp): Remove.
6795 (find_lwp_pid): Use find_thread.
6796
6797 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * linux-low.c (delete_lwp_callback): Remove.
6800 (linux_mourn): Use for_each_thread.
6801
6802 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6803
6804 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6805 args parameter, don't check for pid.
6806 (linux_detach): Use for_each_thread.
6807
6808 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6809
6810 * linux-low.c (struct counter): Remove.
6811 (second_thread_of_pid_p): Remove.
6812 (last_thread_of_process_p): Use find_thread.
6813
6814 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6815
6816 * inferiors.c (find_inferior_in_random): Remove.
6817 * inferiors.h (find_inferior_in_random): Remove.
6818 * linux-low.c (status_pending_p_callback): Return bool, accept
6819 parameter ptid directly.
6820 (linux_wait_for_event_filtered): Use find_thread_in_random.
6821 (linux_wait_1): Likewise.
6822
6823 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6824
6825 * inferiors.c (find_inferior_id): Remove.
6826 (find_thread_ptid): Move implemention from find_inferior_id to
6827 here.
6828 * inferiors.h (find_inferior_id): Remove.
6829 * server.c (handle_status): Use find_thread_ptid.
6830 (process_serial_event): Likewise.
6831 * thread-db.c (find_one_thread): Likewise.
6832 (thread_db_thread_handle): Likewise.
6833 * win32-low.c (thread_rec): Likewise.
6834 (child_delete_thread): Likewise.
6835 (win32_thread_alive): Likewise.
6836 (get_child_debug_event): Likewise.
6837
6838 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6839
6840 * linux-mips-low.c (update_watch_registers_callback): Return
6841 void, remove pid_p parameter, don't check for pid.
6842 (mips_insert_point, mips_remove_point): Use for_each_thread.
6843
6844 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6845
6846 * lynx.low (lynx_delete_thread_callback): Remove.
6847 (lynx_mourn): Use for_each_thread.
6848
6849 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6850
6851 * regcache.c (regcache_invalidate_one): Remove.
6852 (regcache_invalidate_pid): use for_each_thread.
6853
6854 2017-11-26 Tom Tromey <tom@tromey.com>
6855
6856 * linux-low.c (linux_create_inferior): Update.
6857
6858 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6859
6860 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6861
6862 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6863
6864 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6865 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6866 * linux-aarch64-tdesc-selftest.c: New file.
6867 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6868
6869 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6870
6871 * configure.srv: Add new file.
6872 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6873 * linux-aarch64-tdesc-selftest.c: New file.
6874 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6875
6876 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6877
6878 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6879 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6880 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6881
6882 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6883
6884 * configure.srv: Add new files.
6885 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6886 aarch64_linux_read_description.
6887 * linux-aarch64-low.c (aarch64_linux_read_description):
6888 Merge with aarch64_arch_setup.
6889 (aarch64_arch_setup): Call aarch64_linux_read_description.
6890 * linux-aarch64-tdesc.c: New file.
6891 * linux-aarch64-tdesc.h: New file.
6892
6893 2017-11-24 Yao Qi <yao.qi@linaro.org>
6894
6895 * configure.srv: Set $srv_regobj for tic6x-linux.
6896 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6897 (tic6x_read_description): Move some code to tic6x_arch_setup.
6898 (tic6x_tdesc_test): New function.
6899 (initialize_low_arch): Call selftests::register_test.
6900
6901 2017-11-22 Yao Qi <yao.qi@linaro.org>
6902
6903 * remote-utils.c (prepare_resume_reply): Use memcpy.
6904
6905 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6906
6907 * linux-low.c (kill_one_lwp_callback): Return void, take
6908 argument directly, don't filter on pid.
6909 (linux_kill): Use for_each_thread.
6910
6911 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6912
6913 * linux-low.c (need_step_over_p): Return bool, remove dummy
6914 argument.
6915 (linux_resume, proceed_all_lwps): Use find_thread.
6916
6917 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6918
6919 * linux-low.c (resume_status_pending_p): Return bool, remove
6920 flag_p argument.
6921 (linux_resume): Use find_thread.
6922
6923 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6924
6925 * linux-low.c (struct thread_resume_array): Remove.
6926 (linux_set_resume_request): Return void, take arguments
6927 directly.
6928 (linux_resume): Use for_each_thread.
6929
6930 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6931
6932 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6933 return bool, remove data argument.
6934 (linux_stabilize_threads): Use find_thread.
6935
6936 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6937
6938 * linux-low.c (unsuspend_one_lwp): Remove.
6939 (unsuspend_all_lwps): Use for_each_thread, inline code from
6940 unsuspend_one_lwp.
6941
6942 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6943
6944 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6945 * linux-low.c (struct iterate_over_lwps_args): Remove.
6946 (iterate_over_lwps_filter): Remove.
6947 (iterate_over_lwps): Use find_thread.
6948
6949 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6950
6951 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6952 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6953 code from reset_lwp_ptrace_options_callback.
6954
6955 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6956
6957 * linux-arm-low.c (struct update_registers_data): Remove.
6958 (update_registers_callback): Return void, take arguments
6959 directly, don't check thread's pid.
6960 (arm_insert_point, arm_remove_point): Use for_each_thread.
6961
6962 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6963
6964 * win32-low.c (continue_one_thread): Return void, take argument
6965 directly.
6966 (child_continue): Use for_each_thread.
6967
6968 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6969
6970 * win32-i386-low.c (update_debug_registers_callback): Rename
6971 to ...
6972 (update_debug_registers): ... this, return void, remove pid_p arg.
6973 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6974
6975 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6976
6977 * inferiors.h (struct process_info): Add constructor, initialize
6978 fields..
6979 <syscalls_to_catch>: Change type to std::vector<int>.
6980 * inferiors.c (add_process): Allocate process_info with new.
6981 (remove_process): Free process_info with delete.
6982 * linux-low.c (handle_extended_wait): Adjust.
6983 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6984 * server.c (handle_general_set): Adjust.
6985
6986 2017-11-16 Pedro Alves <palves@redhat.com>
6987
6988 * remote-utils.c (remote_close): Block SIGIO signals instead of
6989 uninstalling the SIGIO handler.
6990
6991 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6992
6993 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6994
6995 2017-11-16 Yao Qi <yao.qi@linaro.org>
6996
6997 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6998 (tic6x_store_gregset): Likewise.
6999 (tic6x_usrregs_info): Move it up.
7000
7001 2017-11-15 Alan Hayward <alan.hayward@arm.com>
7002
7003 * Makefile.in: Update arch rules.
7004 * configure.srv: Explicitly mark arch/ files.
7005
7006 2017-11-13 Andreas Schwab <schwab@suse.de>
7007
7008 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7009 function.
7010 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7011
7012 2017-11-06 Pedro Alves <palves@redhat.com>
7013
7014 * config.in, configure: Regenerate.
7015
7016 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7017
7018 * target.c (struct thread_search): Remove.
7019 (thread_search_callback): Remove.
7020 (prepare_to_access_memory): Use for_each_thread instead of
7021 find_inferior. Inline code from thread_search_callback.
7022
7023 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7024
7025 * server.c (struct visit_actioned_threads_data): Remove.
7026 (visit_actioned_threads): Change prototype to take arguments
7027 directly.
7028 (resume): Use find_thread instead of find_inferior.
7029
7030 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7031
7032 * server.c (queue_stop_reply_callback): Change prototype, return
7033 void.
7034 (find_status_pending_thread_callback): Remove.
7035 (handle_status): Replace find_inferior with find_thread and
7036 for_each_thread.
7037
7038 2017-10-25 Alan Hayward <alan.hayward@arm.com>
7039
7040 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7041 with REGNO.
7042 (aarch64_store_gregset): Likewise.
7043 (aarch64_fill_fpregset): Likewise.
7044 (aarch64_store_fpregset): Likewise.
7045
7046 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7047
7048 * gdbthread.h (find_thread, for_each_thread): New functions.
7049 * inferiors.c (thread_of_pid): Remove.
7050 (find_any_thread_of_pid): Use find_thread.
7051 * linux-low.c (num_lwps): Use for_each_thread.
7052
7053 2017-10-17 Yao Qi <yao.qi@linaro.org>
7054
7055 * Makefile.in: Remove one rule.
7056 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7057
7058 2017-10-17 Yao Qi <yao.qi@linaro.org>
7059
7060 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7061 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7062
7063 2017-10-17 Yao Qi <yao.qi@linaro.org>
7064
7065 * configure.srv: Rename arm.o with arch/arm.o.
7066
7067 2017-10-17 Yao Qi <yao.qi@linaro.org>
7068
7069 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7070 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7071 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7072 (arch-i386.o, arch-amd64.o): Remove rules.
7073 (arch/%.o): New rule.
7074 Update POSTCOMPILE and COMPILE.pre.
7075 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7076 * configure: Re-generated.
7077 * configure.srv: Replace arch-i386.o with arch/i386.o.
7078 Replace arch-amd64.o with arch/amd64.o.
7079
7080 2017-10-16 Yao Qi <yao.qi@linaro.org>
7081
7082 * configure: Regenerated.
7083
7084 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7085
7086 * inferiors.h: (struct inferior_list): Remove.
7087 (struct inferior_list_entry); Remove.
7088 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7089 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7090 get_first_inferior): Remove.
7091 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7092 find_inferior_id, find_inferior_in_random): Change signature.
7093 * inferiors.c (all_threads): Change type to
7094 std::list<thread_info *>.
7095 (get_thread): Remove macro.
7096 (find_inferior, find_inferior_id): Change signature, implement
7097 using find_thread.
7098 (find_inferior_in_random): Change signature, implement using
7099 find_thread_in_random.
7100 (for_each_inferior, for_each_inferior_with_data): Change
7101 signature, implement using for_each_thread.
7102 (add_inferior_to_list, remove_inferior): Remove.
7103 (add_thread, get_first_thread, thread_of_pid,
7104 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7105 (get_first_inferior, one_inferior_p, clear_inferior_list):
7106 Remove.
7107 (clear_inferiors, get_thread_process): Update.
7108 * gdbthread.h: Include <list>.
7109 (struct thread_info) <entry>: Remove field.
7110 <id>: New field.
7111 (all_threads): Change type to std::list<thread_info *>.
7112 (get_first_inferior): Add doc.
7113 (find_thread, for_each_thread, find_thread_in_random): New
7114 functions.
7115 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7116 * linux-arm-low.c (update_registers_callback): Update.
7117 * linux-low.c (second_thread_of_pid_p): Update.
7118 (kill_one_lwp_callback, linux_detach_lwp_callback,
7119 delete_lwp_callback, status_pending_p_callback, same_lwp,
7120 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7121 iterate_over_lwps, not_stopped_callback,
7122 resume_stopped_resumed_lwps, count_events_callback,
7123 select_singlestep_lwp_callback, select_event_lwp_callback,
7124 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7125 suspend_and_send_sigstop_callback, wait_for_sigstop,
7126 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7127 lwp_running, linux_set_resume_request, resume_status_pending_p,
7128 need_step_over_p, start_step_over, linux_resume_one_thread,
7129 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7130 reset_lwp_ptrace_options_callback): Update.
7131 * linux-mips-low.c (update_watch_registers_callback): Update.
7132 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7133 Update.
7134 (free_register_cache_thread_one): Remove.
7135 (regcache_release): Update.
7136 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7137 handle_qxfer_threads_worker): Update.
7138 (handle_query): Update, use list iterator.
7139 (visit_actioned_threads, handle_pending_status,
7140 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7141 clear_pending_status_callback, set_pending_status_callback,
7142 find_status_pending_thread_callback, handle_status,
7143 process_serial_event): Update.
7144 * target.c (thread_search_callback): Update.
7145 * thread-db.c (thread_db_get_tls_address): Update.
7146 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7147 Update.
7148 * win32-i386-low.c (update_debug_registers_callback): Update.
7149 * win32-low.c (delete_thread_info, child_delete_thread,
7150 continue_one_thread, suspend_one_thread,
7151 get_child_debug_event): Adjust.
7152
7153 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7154
7155 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7156 * inferiors.h: Include <list>.
7157 (struct process_info) <entry>: Remove field.
7158 <pid>: New field.
7159 (pid_of): Change macro to function.
7160 (ptid_of, lwpid_of): Remove macro.
7161 (all_processes): Change type to std::list<process_info *>.
7162 (ALL_PROCESSES): Remove macro.
7163 (for_each_process, find_process): New function.
7164 * inferiors.c (all_processes): Change type to
7165 std::list<process_info *>.
7166 (find_thread_process): Adjust.
7167 (add_process): Likewise.
7168 (remove_process): Likewise.
7169 (find_process_pid): Likewise.
7170 (get_first_process): Likewise.
7171 (started_inferior_callback): Remove.
7172 (have_started_inferiors_p): Adjust.
7173 (attached_inferior_callback): Remove.
7174 (have_attached_inferiors_p): Adjust.
7175 * linux-low.c (check_zombie_leaders): Likewise.
7176 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7177 (x86_linux_update_xmltarget): Adjust.
7178 * server.c (handle_query): Likewise.
7179 (gdb_reattached_process): Remove.
7180 (handle_status): Adjust.
7181 (kill_inferior_callback): Likewise.
7182 (detach_or_kill_inferior): Remove.
7183 (print_started_pid): Likewise.
7184 (print_attached_pid): Likewise.
7185 (detach_or_kill_for_exit): Update.
7186 (process_serial_event): Likewise.
7187 * linux-arm-low.c (arm_new_fork): Likewise.
7188
7189 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7190
7191 * dll.h: Include <list>.
7192 (struct dll_info): Add constructor.
7193 <entry>: Remove field.
7194 (all_dlls): Change type to std::list<dll_info>.
7195 * dll.c: Include <algorithm>.
7196 (get_dll): Remove macro.
7197 (all_dlls): Change type to std::list<dll_info *>.
7198 (free_one_dll): Remove.
7199 (match_dll): Likewise.
7200 (loaded_dll): Adjust.
7201 (unloaded_dll): Adjust to all_dlls type change, use
7202 std::find_if. Inline code from match_dll.
7203 (clear_dlls): Adjust to all_dlls type change.
7204 * server.c (emit_dll_description): Remove.
7205 (handle_qxfer_libraries): Adjust to all_dlls type change,
7206 integrate emit_dll_description's functionality.
7207
7208 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7209
7210 * linux-low.h (struct linux_target_ops) <delete_process>: New
7211 field.
7212 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7213 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7214 (struct linux_target_ops): Add delete_process callback.
7215 * linux-arm-low.c (arm_delete_process): New.
7216 (struct linux_target_ops): Add delete_process callback.
7217 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7218 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7219 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7220 * linux-mips-low.c (mips_linux_delete_process): New.
7221 (struct linux_target_ops): Add delete_process callback.
7222 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7223 * linux-s390-low.c (struct linux_target_ops): Likewise.
7224 * linux-sh-low.c (struct linux_target_ops): Likewise.
7225 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7226 * linux-tile-low.c (struct linux_target_ops): Likewise.
7227 * linux-x86-low.c (x86_linux_delete_process): New.
7228 (struct linux_target_ops): Add delete_process callback.
7229 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7230
7231 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7232
7233 * linux-aarch64-low.c (the_low_target): Add thread delete
7234 callback.
7235 * linux-arm-low.c (arm_delete_thread): New function.
7236 (the_low_target): Add thread delete callback.
7237 * linux-bfin-low.c (the_low_target): Likewise.
7238 * linux-crisv32-low.c (the_low_target): Likewise.
7239 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7240 set.
7241 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7242 field.
7243 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7244 * linux-mips-low.c (mips_linux_delete_thread): New function.
7245 (the_low_target): Add thread delete callback.
7246 * linux-ppc-low.c (the_low_target): Likewise.
7247 * linux-s390-low.c (the_low_target): Likewise.
7248 * linux-sh-low.c (the_low_target): Likewise.
7249 * linux-tic6x-low.c (the_low_target): Likewise.
7250 * linux-tile-low.c (the_low_target): Likewise.
7251 * linux-x86-low.c (the_low_target): Likewise.
7252 * linux-xtensa-low.c (the_low_target): Likewise.
7253
7254 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7255
7256 * win32-low.c: Include "common-inferior.h".
7257
7258 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7259
7260 * inferiors.c (set_inferior_cwd): New function.
7261 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7262 (handle_query): Inform that QSetWorkingDir is supported.
7263 * win32-low.c (create_process): Pass the inferior's cwd to
7264 CreateProcess.
7265
7266 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7267
7268 * inferiors.c (current_inferior_cwd): New global variable.
7269 (get_inferior_cwd): New function.
7270 * inferiors.h (struct process_info) <cwd>: New field.
7271
7272 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7273
7274 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7275 (OBS): Add gdb_tilde_expand.o.
7276
7277 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7278
7279 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7280 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7281
7282 2017-09-29 Pedro Alves <palves@redhat.com>
7283
7284 * ax.c (gdb_parse_agent_expr): Constify.
7285 * ax.h (gdb_parse_agent_expr): Constify.
7286 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7287 Constify.
7288 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7289 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7290 * remote-utils.h (read_ptid): Constify.
7291 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7292 (process_point_options, process_serial_event): Constify.
7293 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7294 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7295 (cmd_qtbuffer): Constify.
7296
7297 2017-09-29 Pedro Alves <palves@redhat.com>
7298
7299 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7300 fails.
7301
7302 2017-09-29 Pedro Alves <palves@redhat.com>
7303
7304 * linux-low.c (handle_extended_wait): Pass parent thread instead
7305 of process to thread_db_notice_clone.
7306 * linux-low.h (thread_db_notice_clone): Replace parent process
7307 parameter with parent thread parameter.
7308 * thread-db.c (find_one_thread): Add comment.
7309 (thread_db_notice_clone): Replace parent process parameter with
7310 parent thread parameter. Temporarily switch to the parent thread.
7311
7312 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7313
7314 * gdbthread.h: Include "common-gdbthread.h".
7315 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7316 "if" when validating the ptid.
7317 * remote-utils.c: Include "gdbthread.h".
7318 (prepare_resume_reply): Use "switch_to_thread".
7319 * target.c (done_accessing_memory): Likewise.
7320
7321 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7322
7323 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7324 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7325 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7326 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7327 s390x-gs-linux64-ipa.o to ipa_obj.
7328 * linux-s390-low.c (HWCAP_S390_GS): New define.
7329 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7330 New functions.
7331 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7332 (s390_arch_setup): Check for guarded-storage support and choose
7333 appropriate tdesc.
7334 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7335 init_registers_s390x_gs_linux64.
7336 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7337 enum value.
7338 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7339 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7340
7341 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7342
7343 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7344
7345 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7346
7347 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7348 (thread_db_thread_handle): Declare.
7349 * linux-low.c (linux_target_ops): Initialize thread_handle.
7350 * server.c (handle_qxfer_threads_worker): Add support for
7351 "handle" attribute.
7352 * target.h (struct target_ops): Add new function pointer,
7353 thread_handle.
7354 (target_thread_handle): Define.
7355 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7356 field in lwp.
7357 (thread_db_thread_handle): New function.
7358
7359 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7360
7361 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7362 * linux-low.h (thread_db_notice_clone): Declare.
7363 * thread-db.c (thread_db_notice_clone): New function.
7364
7365 2017-09-21 Pedro Alves <palves@redhat.com>
7366
7367 * server.c (gdb_read_memory, handle_status, process_serial_event)
7368 (handle_serial_event, handle_target_event): Adjust to
7369 set_desired_thread prototype change.
7370 * target.c (set_desired_thread): Remove 'use_general' parameter
7371 and adjust.
7372 * target.h (set_desired_thread): Remove 'use_general' parameter.
7373
7374 2017-09-20 Tom Tromey <tom@tromey.com>
7375
7376 * target.c (target_terminal::terminal_state): Define.
7377 (target_terminal::init): Rename from target_terminal_init.
7378 (target_terminal::inferior): Rename from
7379 target_terminal_inferior.
7380 (target_terminal::ours): Rename from target_terminal_ours.
7381 (target_terminal::ours_for_output, target_terminal::info): New.
7382
7383 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7384
7385 * server.c (accumulate_file_name_length): Remove.
7386 (emit_dll_description): Adjust to std::string change.
7387 (handle_qxfer_libraries): Use std::string to hold document.
7388
7389 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7390
7391 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7392 return type of xml_escape_text.
7393 * server.c (emit_dll_description): Likewise.
7394
7395 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7396
7397 * server.c (captured_main): Accept argument for --selftest.
7398 Update run_tests call.
7399 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7400 when registering selftests.
7401
7402 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7403
7404 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7405 instead of "VEC" for "target_desc.reg_defs".
7406 (regcache_cpy): Likewise.
7407 (registers_to_string): Likewise.
7408 (registers_from_string): Likewise.
7409 (find_regno): Likewise.
7410 (supply_regblock): Likewise.
7411 (regcache_raw_read_unsigned): Likewise.
7412 * tdesc.c (init_target_desc): Likewise.
7413 (tdesc_create_reg): Likewise.
7414 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7415 (struct target_desc) <reg_defs>: Convert to "std::vector".
7416 (target_desc): Do not initialize "reg_defs".
7417 (~target_desc): Update code to use "std::vector" instead of "VEC"
7418 for "target_desc.reg_defs".
7419 (operator==): Likewise.
7420
7421 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7422
7423 * inferiors.h (thread_to_gdb_id): Remove.
7424 * inferiors.c (thread_to_gdb_id): Remove.
7425 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7426 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7427 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7428 Likewise.
7429 * nto-low.c (nto_fetch_registers, nto_store_registers,
7430 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7431
7432 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7433
7434 * inferiors.h (gdb_id_to_thread_id): Remove.
7435 * inferiors.c (gdb_id_to_thread_id): Remove.
7436 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7437 removal. Move pid declaration closer to where it's used.
7438
7439 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7440
7441 * server.c (handle_detach): New function.
7442 (process_serial_event): Move code out, call handle_detach.
7443
7444 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7445
7446 * server.c (require_running): Rename to ...
7447 (require_running_or_return): ... this ...
7448 (require_running_or_break): ... and this.
7449 (handle_query, process_serial_event): Adjust.
7450
7451 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7452
7453 * linux-low.c (linux_set_resume_request): Remove unused
7454 variables.
7455
7456 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7457
7458 * server.c (first_thread_of): Remove.
7459 (process_serial_event): Replace usage of first_thread_of with
7460 find_any_thread_of_pid.
7461 * tracepoint.c (same_process_p): Remove.
7462 (gdb_agent_about_to_close): Replace usage of same_process_p with
7463 find_any_thread_of_pid.
7464 * linux-x86-low.c (same_process_callback): Remove.
7465 (x86_arch_setup_process_callback): Replace usage of
7466 same_process_callback with find_any_thread_of_pid.
7467 * thread-db.c (any_thread_of): Remove.
7468 (switch_to_process): Replace usage of any_thread_of with
7469 find_any_thread_of_pid.
7470 * inferiors.c (thread_pid_matches_callback): Remove.
7471 (find_thread_process): Adjust to use find_any_thread_of_pid.
7472
7473 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7474
7475 * regcache.c (get_thread_regcache): Guard calls to "memset"
7476 with "!VEC_empty".
7477
7478 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7479
7480 * linux-low.c (handle_extended_wait): Use
7481 "allocate_target_description" instead of "XNEW".
7482 * linux-x86-low.c (initialize_low_arch): Likewise.
7483
7484 2017-09-05 Yao Qi <yao.qi@linaro.org>
7485
7486 * configure.srv (srv_i386_regobj): Remove.
7487 (srv_amd64_regobj): Remove.
7488 (srv_regobj): Set it to "" for x86 non-linux targets.
7489 * linux-x86-tdesc.c (i386_linux_read_description):
7490 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7491 (init_registers_i386): Remove the declaration.
7492 (tdesc_i386): Remove the declaration.
7493 (lynx_i386_arch_setup): Call i386_create_target_description.
7494 * nto-x86-low.c: Likewise.
7495 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7496 [!__x86_64__]: include arch/i386.h.
7497 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7498
7499 2017-09-05 Yao Qi <yao.qi@linaro.org>
7500
7501 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7502 i386/amd64-XXX-linux from it.
7503
7504 2017-09-05 Yao Qi <yao.qi@linaro.org>
7505
7506 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7507 false.
7508 (ipa_amd64_linux_regobj): Remove.
7509 (ipa_x32_linux_regobj): Remove.
7510
7511 2017-09-05 Yao Qi <yao.qi@linaro.org>
7512
7513 * Makefile.in (arch-amd64.o): New rule.
7514 * configure.srv: Append arch-amd64.o.
7515 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7516 (get_ipa_tdesc): Call amd64_linux_read_description.
7517 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7518 and init_registers_amd64_XXX.
7519 * linux-x86-low.c (x86_linux_read_description): Call
7520 amd64_linux_read_description.
7521 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7522 (initialize_low_arch): Don't call init_registers_x32_XXX and
7523 init_registers_amd64_XXX.
7524 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7525 and tdesc_amd64_XXX.
7526 [__x86_64__] (amd64_tdesc_test): New function.
7527 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7528 and init_registers_amd64_XXX.
7529 * linux-x86-tdesc.c: Include arch/amd64.h.
7530 (xcr0_to_tdesc_idx): New function.
7531 (i386_linux_read_description): New function.
7532 (amd64_get_ipa_tdesc_idx): New function.
7533 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7534 (amd64_get_ipa_tdesc): Declare.
7535
7536 2017-09-05 Yao Qi <yao.qi@linaro.org>
7537
7538 * configure.srv (srv_i386_linux_xmlfiles): Remove
7539 i386/i386-XXX-linux.xml from it.
7540
7541 2017-09-05 Yao Qi <yao.qi@linaro.org>
7542
7543 * configure.srv: Set srv_i386_linux_regobj empty if $development
7544 is false.
7545 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7546 initialize_low_tdesc.
7547 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7548 with #if initialize_low_tdesc.
7549 * linux-x86-tdesc-selftest.c: New file.
7550 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7551
7552 2017-09-05 Yao Qi <yao.qi@linaro.org>
7553
7554 * Makefile.in (arch-i386.o): New rule.
7555 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7556 (x86_64-*-linux*): Likewise.
7557 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7558 include arch/i386.h.
7559 (i386_linux_read_description): Remove code and call
7560 i386_create_target_description.
7561 * tdesc.c (allocate_target_description): New function.
7562 * tdesc.h (set_tdesc_architecture): Remove declaration.
7563 (set_tdesc_osabi): Likewise.
7564
7565 2017-09-05 Yao Qi <yao.qi@linaro.org>
7566
7567 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7568 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7569 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7570 .xmltarget.
7571 * server.c (get_features_xml): Call tdesc_get_features_xml.
7572 * tdesc.c (set_tdesc_architecture): New function.
7573 (set_tdesc_osabi): New function.
7574 (tdesc_get_features_xml): New function.
7575 (tdesc_create_feature): Add an argument.
7576 * tdesc.h (struct target_desc) <features>: New field.
7577 <arch, osabi>: New field.
7578 (~target_desc): xfree features, arch, and osabi.
7579 (target_desc::oerator==): Don't compare .xmltarget.
7580 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7581 (set_tdesc_osabi): Likewise.
7582 (tdesc_get_features_xml): Likewise.
7583
7584 2017-09-05 Yao Qi <yao.qi@linaro.org>
7585
7586 * linux-x86-tdesc.c: Include selftest.h.
7587 (i386_tdesc_test): New function.
7588 (initialize_low_tdesc): Call selftests::register_test.
7589 * tdesc.h: Include regdef.h.
7590 (target_desc): Override operator == and !=.
7591
7592 2017-09-05 Yao Qi <yao.qi@linaro.org>
7593
7594 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7595 (ipa_obj): Likewise.
7596 * linux-i386-ipa.c: Include common/x86-xstate.h
7597 (get_ipa_tdesc): Call i386_linux_read_description.
7598 (initialize_low_tracepoint): Don't call init_registers_XXX
7599 functions, call initialize_low_tdesc instead.
7600 * linux-x86-low.c (x86_linux_read_description): Call
7601 i386_linux_read_description.
7602 (initialize_low_arch): Don't call init_registers_i386_XXX
7603 functions, call initialize_low_tdesc.
7604 * linux-x86-tdesc.c: New file.
7605 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7606 (i386_get_ipa_tdesc_idx): Declare.
7607 (i386_get_ipa_tdesc): Declare.
7608 (initialize_low_tdesc): Declare.
7609
7610 2017-09-05 Yao Qi <yao.qi@linaro.org>
7611
7612 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7613 instead of 0.
7614
7615 2017-09-05 Yao Qi <yao.qi@linaro.org>
7616
7617 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7618 * regcache.c (get_thread_regcache): Use VEC_length.
7619 (init_register_cache): Likewise.
7620 (regcache_cpy): Likewise.
7621 (registers_to_string): Iterate reg_defs via VEC_iterate.
7622 (find_regno): Likewise.
7623 (find_register_by_number): Use VEC_index.
7624 (register_size): Call find_register_by_number.
7625 (register_data): Call find_register_by_number.
7626 (supply_regblock): Use VEC_length.
7627 (regcache_raw_read_unsigned): Likewise.
7628 * tdesc.c (init_target_desc): Iterate reg_defs via
7629 VEC_iterate.
7630 (default_description): Update initializer.
7631 (copy_target_description): Don't update field num_registers.
7632 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7633 <num_registers>: Remove.
7634
7635 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7636
7637 * Makefile.in (.SECONDARY): Define target.
7638
7639 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7640
7641 * linux-low.c (linux_wait_1): Adjust.
7642 * server.c (queue_stop_reply_callback): Adjust.
7643
7644 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7645
7646 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7647 QEnvironmentUnset and QEnvironmentReset packets.
7648 (handle_query): Inform remote that QEnvironmentHexEncoded,
7649 QEnvironmentUnset and QEnvironmentReset are supported.
7650
7651 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7652
7653 * inferiors.h (inferior_target_data): Rename to ...
7654 (thread_target_data): ... this.
7655 (inferior_regcache_data): Rename to ...
7656 (thread_regcache_data): ... this.
7657 (set_inferior_regcache_data): Rename to ...
7658 (set_thread_regcache_data): ... this.
7659 * inferiors.c (inferior_target_data): Rename to ...
7660 (thread_target_data): ... this.
7661 (inferior_regcache_data): Rename to ...
7662 (thread_regcache_data): ... this.
7663 (set_inferior_regcache_data): Rename to ...
7664 (set_thread_regcache_data): ... this.
7665 (free_one_thread): Update.
7666 * linux-low.h (get_thread_lwp): Update.
7667 * regcache.c (get_thread_regcache): Update.
7668 (regcache_invalidate_thread): Update.
7669 (free_register_cache_thread): Update.
7670 * win32-i386-low.c (update_debug_registers_callback): Update.
7671 (win32_get_current_dr): Update.
7672 * win32-low.c (thread_rec): Update.
7673 (delete_thread_info): Update.
7674 (continue_one_thread): Update.
7675 (suspend_one_thread): Update.
7676
7677 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7678
7679 * inferiors.c (set_inferior_target_data): Remove.
7680 * inferiors.h (set_inferior_target_data): Remove.
7681
7682 2017-08-18 Yao Qi <yao.qi@linaro.org>
7683
7684 * Makefile.in (OBS): Add selftest.o.
7685 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7686 * configure, config.in: Re-generated.
7687 * server.c: Include common/sefltest.h.
7688 (captured_main): Handle option --selftest.
7689
7690 2017-08-09 Yao Qi <yao.qi@linaro.org>
7691
7692 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7693 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7694 i386-avx-mpx.o and i386-mmx.o.
7695 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7696 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7697 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7698 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7699 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7700 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7701 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7702 i386/amd64-avx-mpx.xml.
7703
7704 2017-08-09 Yao Qi <yao.qi@linaro.org>
7705
7706 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7707 and x32-avx-avx512.o.
7708 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7709 i386/x32-avx-avx512.xml.
7710
7711 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7712
7713 * tracepoint.h (enum class fast_tpoint_collect_result): New
7714 enumeration.
7715 (fast_tracepoint_collecting): Change return type to
7716 fast_tpoint_collect_result.
7717 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7718 * linux-low.h: Include tracepoint.h.
7719 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7720 fast_tpoint_collect_result.
7721 * linux-low.c (handle_tracepoints): Adjust.
7722 (linux_fast_tracepoint_collecting): Change return type to
7723 fast_tpoint_collect_result.
7724 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7725 linux_wait_1, stuck_in_jump_pad_callback,
7726 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7727 proceed_one_lwp): Adjust to type change.
7728
7729 2017-07-10 Yao Qi <yao.qi@linaro.org>
7730
7731 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7732
7733 2017-06-29 Yao Qi <yao.qi@linaro.org>
7734
7735 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7736 Remove.
7737 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7738
7739 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7740
7741 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7742
7743 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7744
7745 * linux-low.c (linux_create_inferior): Adjust code to access the
7746 environment information via 'gdb_environ' class.
7747 * lynx-low.c (lynx_create_inferior): Likewise.
7748 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7749 (get_environ): Return a pointer to 'our_environ'.
7750 (captured_main): Initialize 'our_environ'.
7751 * server.h (get_environ): Adjust prototype.
7752 * spu-low.c (spu_create_inferior): Adjust code to access the
7753 environment information via 'gdb_environ' class.
7754
7755 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7756
7757 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7758 usage of "register" keyword.
7759
7760 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7761
7762 * configure: Re-generate.
7763
7764 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7765
7766 * configure: Re-generate.
7767
7768 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7769
7770 * Makefile.in (COMPILE.pre): Add "-x c++".
7771
7772 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7773
7774 * fork-child.c: Conditionally include <signal.h>.
7775
7776 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7777
7778 * server.c (handle_general_set): Handle new packet
7779 "QStartupWithShell".
7780 (handle_query): Add "QStartupWithShell" to the list of supported
7781 packets.
7782 (gdbserver_usage): Add help text explaining the
7783 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7784 options.
7785 (captured_main): Recognize and act upon the presence of the new
7786 CLI options.
7787
7788 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7789 Pedro Alves <palves@redhat.com>
7790
7791 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7792 * configure: Regenerate.
7793 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7794 "fork-inferior.o".
7795 (i[34567]86-*-lynxos*): Likewise.
7796 (spu*-*-*): Likewise.
7797 * fork-child.c: New file.
7798 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7799 and "environ.h".
7800 (linux_ptrace_fun): New function.
7801 (linux_create_inferior): Adjust function prototype to reflect
7802 change on "target.h". Adjust function code to use
7803 "fork_inferior".
7804 (linux_request_interrupt): Delete "signal_pid".
7805 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7806 (lynx_ptrace_fun): New function.
7807 (lynx_create_inferior): Adjust function prototype to reflect
7808 change on "target.h". Adjust function code to use
7809 "fork_inferior".
7810 * nto-low.c (nto_create_inferior): Adjust function prototype and
7811 code to reflect change on "target.h". Update comments.
7812 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7813 "common-terminal.h" and "environ.h".
7814 (terminal_fd): Moved to fork-child.c.
7815 (old_foreground_pgrp): Likewise.
7816 (restore_old_foreground_pgrp): Likewise.
7817 (last_status): Make it global.
7818 (last_ptid): Likewise.
7819 (our_environ): New variable.
7820 (startup_with_shell): Likewise.
7821 (program_name): Likewise.
7822 (program_argv): Rename to...
7823 (program_args): ...this.
7824 (wrapper_argv): New variable.
7825 (start_inferior): Delete function.
7826 (get_exec_wrapper): New function.
7827 (get_exec_file): Likewise.
7828 (get_environ): Likewise.
7829 (prefork_hook): Likewise.
7830 (post_fork_inferior): Likewise.
7831 (postfork_hook): Likewise.
7832 (postfork_child_hook): Likewise.
7833 (handle_v_run): Update code to deal with arguments coming from the
7834 remote host. Update calls from "start_inferior" to
7835 "create_inferior".
7836 (captured_main): Likewise. Initialize environment variable. Call
7837 "have_job_control".
7838 * server.h (post_fork_inferior): New prototype.
7839 (get_environ): Likewise.
7840 (last_status): Declare.
7841 (last_ptid): Likewise.
7842 (signal_pid): Likewise.
7843 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7844 (spu_ptrace_fun): New function.
7845 (spu_create_inferior): Adjust function prototype to reflect change
7846 on "target.h". Adjust function code to use "fork_inferior".
7847 * target.c (target_terminal_init): New function.
7848 (target_terminal_inferior): Likewise.
7849 (target_terminal_ours): Likewise.
7850 * target.h: Include <vector>.
7851 (struct target_ops) <create_inferior>: Update prototype.
7852 (create_inferior): Update macro.
7853 * utils.c (gdb_flush_out_err): New function.
7854 * win32-low.c (win32_create_inferior): Adjust function prototype
7855 and code to reflect change on "target.h".
7856
7857 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7858
7859 * inferiors.c (switch_to_thread): New function.
7860
7861 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7862
7863 * Makefile.in (SFILE): Add "common/job-control.c".
7864 (OBS): Add "job-control.o".
7865
7866 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7867
7868 * Makefile: Remove "@host_makefile_frag@".
7869
7870 2017-05-05 Pedro Alves <palves@redhat.com>
7871
7872 * configure: Regenerate.
7873
7874 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7875
7876 * configure: Regenerate.
7877
7878 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7879
7880 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7881 software_single_step change of return type to
7882 std::vector<CORE_ADDR>.
7883 * linux-low.c (install_software_single_step_breakpoints):
7884 Likewise.
7885 * linux-low.h (install_software_single_step_breakpoints):
7886 Likewise.
7887
7888 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7889
7890 * remote-utils.c: Include "gdb_termios.h" instead of
7891 "terminal.h".
7892 * terminal.h: Delete file.
7893
7894 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7895
7896 * server.c: Include <vector>.
7897 <program_argv, wrapper_argv>: Convert to std::vector.
7898 (start_inferior): Rewrite function to use C++.
7899 (handle_v_run): Likewise. Update code that calculates the argv
7900 based on the vRun packet; use C++.
7901 (captured_main): Likewise.
7902
7903 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7904
7905 * server.c (handle_v_cont): Initialize thread_resume::thread
7906 with null_ptid.
7907
7908 2017-04-05 Pedro Alves <palves@redhat.com>
7909
7910 * configure: Regenerate.
7911
7912 2017-04-05 Pedro Alves <palves@redhat.com>
7913
7914 * gdbreplay.c (sync_error): Constify.
7915 * linux-x86-low.c (push_opcode): Constify.
7916
7917 2017-04-05 Pedro Alves <palves@redhat.com>
7918
7919 * win32-low.c (get_child_debug_event)
7920 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7921 Report TARGET_WAITKIND_SPURIOUS instead.
7922
7923 2017-04-05 Pedro Alves <palves@redhat.com>
7924
7925 * remote-utils.c (remote_prepare, remote_open): Constify.
7926 * remote-utils.h (remote_prepare, remote_open): Constify.
7927 * server.c (captured_main): Constify 'port' handling.
7928
7929 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7930
7931 * Makefile.in (clean): Clear .deps.
7932
7933 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7934
7935 * .gitignore: Remove generated files, replace with wildcard.
7936 * (clean): Replace removal of generated files with wildcard.
7937 (version.c): Replace with...
7938 (version-generated.c): ...this.
7939 (xml-builtin.c): Replace with...
7940 (xml-builtin-generated.c): ...this.
7941 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7942 (%.c: *regformats*): Replace with...
7943 (%-generated.c: *regformats*): ...this.
7944
7945 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7946
7947 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7948 (xtensa_fill_gregset): Call collect_register_by_name for
7949 threadptr register.
7950 (xtensa_store_gregset): Call supply_register_by_name for
7951 threadptr register.
7952
7953 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7954
7955 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7956 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7957 (xtensa_store_gregset): Call supply_register for all registers in
7958 a0_regnum..a0_regnum + C0_NREGS range.
7959
7960 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7961
7962 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7963 (ax-ipa.o: ax.c): Remove.
7964 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7965 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7966 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7967 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7968 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7969
7970 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7971
7972 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7973 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7974 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7975 (errors-ipa.o: ../common/errors.c): Remove.
7976 (format-ipa.o: ../common/format.c): Remove.
7977 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7978
7979 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7980
7981 * Makefile.in (%-ipa.o: %.c): New rule.
7982 (tracepoint-ipa.o: tracepoint.c): Remove.
7983 (utils-ipa.o: utils.c): Remove.
7984 (remote-utils-ipa.o: remote-utils.c): Remove.
7985 (regcache-ipa.o: regcache.c): Remove.
7986 (i386-linux-ipa.o: i386-linux.c): Remove.
7987 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7988 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7989 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7990 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7991 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7992 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7993 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7994 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7995 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7996 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7997 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7998 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7999 (aarch64-ipa.o: aarch64.c): Remove.
8000 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8001 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8002 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8003 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8004 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8005 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8006 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8007 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8008 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8009 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8010 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8011 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8012 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8013 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8014 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8015 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8016 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8017 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8018 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8019 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8020 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8021 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8022 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8023 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8024 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8025 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8026 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8027 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8028 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8029 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8030 (tdesc-ipa.o: tdesc.c): Remove.
8031 (x32-linux-ipa.o: x32-linux.c): Remove.
8032 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8033 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8034
8035 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8036
8037 * Makefile.in (%.o: ../arch/%.c): New rule.
8038 (arm.o: ../arch/arm.c): Remove.
8039 (arm-linux.o: ../arch/arm-linux.c): Remove.
8040 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8041 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8042
8043 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8044
8045 * Makefile.in (%.o: ../nat/%.c): New rule.
8046 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8047 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8048 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8049 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8050 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8051 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8052 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8053 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8054 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8055 (linux-personality.o: ../nat/linux-personality.c): Remove.
8056 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8057 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8058 (x86-linux.o: ../nat/x86-linux.c): Remove.
8059 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8060 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8061
8062 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8063
8064 * Makefile.in (%.o: ../common/%.c): New rule.
8065 (signals.o: ../common/signals.c): Remove.
8066 (print-utils.o: ../common/print-utils.c): Remove.
8067 (rsp-low.o: ../common/rsp-low.c): Remove.
8068 (common-utils.o: ../common/common-utils.c): Remove.
8069 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8070 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8071 (vec.o: ../common/vec.c): Remove.
8072 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8073 (xml-utils.o: ../common/xml-utils.c): Remove.
8074 (ptid.o: ../common/ptid.c): Remove.
8075 (buffer.o: ../common/buffer.c): Remove.
8076 (format.o: ../common/format.c): Remove.
8077 (filestuff.o: ../common/filestuff.c): Remove.
8078 (agent.o: ../common/agent.c): Remove.
8079 (errors.o: ../common/errors.c): Remove.
8080 (environ.o: ../common/environ.c): Remove.
8081 (common-debug.o: ../common/common-debug.c): Remove.
8082 (cleanups.o: ../common/cleanups.c): Remove.
8083 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8084 (fileio.o: ../common/fileio.c): Remove.
8085 (common-regcache.o: ../common/common-regcache.c): Remove.
8086 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8087 (new-op.o: ../common/new-op.c): Remove.
8088 (btrace-common.o: ../common/btrace-common.c): Remove.
8089
8090 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8091
8092 * Makefile.in (%.o: ../target/%.c): New rule.
8093 (waitstatus.o: ../target/waitstatus.c): Remove.
8094
8095 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8096
8097 * Makefile.in
8098 (%.c: ../regformats/%.dat,
8099 (%.c: ../regformats/arm/%.dat,
8100 (%.c: ../regformats/i386/%.dat,
8101 (%.c: ../regformats/rs6000/%.dat): New rules.
8102 (aarch64.c): Remove.
8103 (reg-arm.c): Remove.
8104 (arm-with-iwmmxt.c): Remove.
8105 (arm-with-vfpv2.c): Remove.
8106 (arm-with-vfpv3.c): Remove.
8107 (arm-with-neon.c): Remove.
8108 (reg-bfin.c): Remove.
8109 (reg-cris.c): Remove.
8110 (reg-crisv32.c): Remove.
8111 (i386.c): Remove.
8112 (i386-linux.c): Remove.
8113 (i386-avx.c): Remove.
8114 (i386-avx-linux.c): Remove.
8115 (i386-avx-avx512.c): Remove.
8116 (i386-avx-avx512-linux.c): Remove.
8117 (i386-mpx.c): Remove.
8118 (i386-mpx-linux.c): Remove.
8119 (i386-avx-mpx-avx512-pku.c): Remove.
8120 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8121 (i386-avx-mpx.c): Remove.
8122 (i386-avx-mpx-linux.c): Remove.
8123 (i386-mmx.c): Remove.
8124 (i386-mmx-linux.c): Remove.
8125 (reg-ia64.c): Remove.
8126 (reg-m32r.c): Remove.
8127 (reg-m68k.c): Remove.
8128 (reg-cf.c): Remove.
8129 (mips-linux.c): Remove.
8130 (mips-dsp-linux.c): Remove.
8131 (mips64-linux.c): Remove.
8132 (mips64-dsp-linux.c): Remove.
8133 (nios2-linux.c): Remove.
8134 (powerpc-32.c): Remove.
8135 (powerpc-32l.c): Remove.
8136 (powerpc-altivec32l.c): Remove.
8137 (powerpc-cell32l.c): Remove.
8138 (powerpc-vsx32l.c): Remove.
8139 (powerpc-isa205-32l.c): Remove.
8140 (powerpc-isa205-altivec32l.c): Remove.
8141 (powerpc-isa205-vsx32l.c): Remove.
8142 (powerpc-e500l.c): Remove.
8143 (powerpc-64l.c): Remove.
8144 (powerpc-altivec64l.c): Remove.
8145 (powerpc-cell64l.c): Remove.
8146 (powerpc-vsx64l.c): Remove.
8147 (powerpc-isa205-64l.c): Remove.
8148 (powerpc-isa205-altivec64l.c): Remove.
8149 (powerpc-isa205-vsx64l.c): Remove.
8150 (s390-linux32.c): Remove.
8151 (s390-linux32v1.c): Remove.
8152 (s390-linux32v2.c): Remove.
8153 (s390-linux64.c): Remove.
8154 (s390-linux64v1.c): Remove.
8155 (s390-linux64v2.c): Remove.
8156 (s390-te-linux64.c): Remove.
8157 (s390-vx-linux64.c): Remove.
8158 (s390-tevx-linux64.c): Remove.
8159 (s390x-linux64.c): Remove.
8160 (s390x-linux64v1.c): Remove.
8161 (s390x-linux64v2.c): Remove.
8162 (s390x-te-linux64.c): Remove.
8163 (s390x-vx-linux64.c): Remove.
8164 (s390x-tevx-linux64.c): Remove.
8165 (tic6x-c64xp-linux.c): Remove.
8166 (tic6x-c64x-linux.c): Remove.
8167 (tic6x-c62x-linux.c): Remove.
8168 (reg-sh.c): Remove.
8169 (reg-sparc64.c): Remove.
8170 (reg-spu.c): Remove.
8171 (amd64.c): Remove.
8172 (amd64-linux.c): Remove.
8173 (amd64-avx.c): Remove.
8174 (amd64-avx-linux.c): Remove.
8175 (amd64-avx-avx512.c): Remove.
8176 (amd64-avx-avx512-linux.c): Remove.
8177 (amd64-mpx.c): Remove.
8178 (amd64-mpx-linux.c): Remove.
8179 (amd64-avx-mpx-avx512-pku.c): Remove.
8180 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8181 (amd64-avx-mpx.c): Remove.
8182 (amd64-avx-mpx-linux.c): Remove.
8183 (x32.c): Remove.
8184 (x32-linux.c): Remove.
8185 (x32-avx.c): Remove.
8186 (x32-avx-linux.c): Remove.
8187 (x32-avx-avx512.c): Remove.
8188 (x32-avx-avx512-linux.c): Remove.
8189 (reg-xtensa.c): Remove.
8190 (reg-tilegx.c): Remove.
8191 (reg-tilegx32.c): Remove.
8192
8193 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8194
8195 * Makefile.in (SFILES): Add "common/environ.c".
8196 (OBJS): Add "common/environ.h".
8197
8198 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8199
8200 * configure.ac: Check if the fs_base and gs_base members of
8201 `struct user_regs_struct' exist.
8202 * config.in: Regenerated.
8203 * configure: Likewise.
8204
8205 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8206
8207 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8208 target_read_memory.
8209 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8210 (get_next_pcs_syscall_next_pc): Likewise.
8211
8212 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8213
8214 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8215 * nto-x86-low.c: Likewise.
8216
8217 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8218
8219 * Makefile.in: Include disable-implicit-rules.mk.
8220
8221 2016-11-23 Pedro Alves <palves@redhat.com>
8222
8223 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8224 (debug_vprintf): Use std::chrono::steady_clock instead of
8225 gettimeofday. Use '.' instead of ':'.
8226 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8227 (get_timestamp): Use std::chrono::steady_clock instead of
8228 gettimeofday.
8229
8230 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8231
8232 * Makefile.in: Fix whitespace formatting.
8233
8234 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8235
8236 * Makefile.in (SFILES, OBS): Flatten list and order
8237 alphabetically.
8238
8239 2016-11-23 Pedro Alves <palves@redhat.com>
8240
8241 * event-loop.c (handle_file_event): Use warning.
8242 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8243 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8244 Use warning.
8245
8246 2016-11-23 Pedro Alves <palves@redhat.com>
8247
8248 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8249 output.
8250 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8251 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8252 debug_printf and debug_flush for debug output.
8253 * server.c (handle_general_set): Likewise.
8254 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8255 output.
8256
8257 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8258
8259 * Makefile.in (.c.o): Replace rule with ...
8260 (%.o: %.c): ... this one.
8261
8262 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8263
8264 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8265 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8266 make.
8267 * configure.ac: Remove checks for the make program.
8268 * configure: Re-generate.
8269
8270 2016-10-28 Pedro Alves <palves@redhat.com>
8271
8272 * Makefile.in (CXX_DIALECT): Get from configure.
8273 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8274 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8275 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8276 * config.in: Regenerate.
8277 * configure: Regenerate.
8278
8279 2016-10-27 Yao Qi <yao.qi@linaro.org>
8280
8281 * linux-low.c (linux_supports_range_stepping): Return true if
8282 can_software_single_step return true.
8283
8284 2016-10-27 Yao Qi <yao.qi@linaro.org>
8285
8286 * inferiors.c (find_inferior_in_random): New function.
8287 * inferiors.h (find_inferior_in_random): Declare.
8288 * linux-low.c (linux_wait_for_event_filtered): Call
8289 find_inferior_in_random instead of find_inferior.
8290
8291 2016-10-27 Yao Qi <yao.qi@linaro.org>
8292
8293 * linux-low.c (linux_wait_1): If single-step breakpoints are
8294 inserted, remove them.
8295
8296 2016-10-26 Pedro Alves <palves@redhat.com>
8297
8298 * linux-low.c (handle_extended_wait): Link parent/child fork
8299 threads.
8300 (linux_wait_1): Unlink them.
8301 (linux_set_resume_request): Ignore resume requests for
8302 already-resumed and unhandled fork child threads.
8303 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8304 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8305 New functions.
8306 (handle_v_requests) <vCont>: Don't call require_running.
8307 * server.h (in_queued_stop_replies): New declaration.
8308
8309 2016-10-24 Yao Qi <yao.qi@linaro.org>
8310
8311 PR server/20733
8312 * linux-aarch64-low.c (append_insns): Cast the return value to
8313 'uint32_t *'.
8314
8315 2016-10-10 Yao Qi <yao.qi@linaro.org>
8316
8317 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8318
8319 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8320
8321 * target.c (target_supports_multi_process): New function, moved
8322 from...
8323 * target.h (target_supports_multi_process): ... here. Remove
8324 macro.
8325
8326 2016-10-05 Tom Tromey <tom@tromey.com>
8327
8328 PR remote/20655:
8329 * tracepoint.c (handle_tracepoint_bkpts): Check
8330 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8331
8332 2016-10-05 Yao Qi <yao.qi@linaro.org>
8333
8334 * configure.srv: Update the path of arm-*.xml files.
8335
8336 2016-10-05 Terry Guo <terry.guo@arm.com>
8337 Yao Qi <yao.qi@linaro.org>
8338
8339 * Makefile.in: Adjust the path of rules.
8340 * configure.srv: Update the path of xml files.
8341 * regformats/arm-with-iwmmxt.dat: Regenerated.
8342 * regformats/arm-with-neon.dat: Likewise.
8343 * regformats/arm-with-vfpv2.dat: Likewise.
8344 * regformats/arm-with-vfpv3.dat Likewise.
8345
8346 2016-09-30 Yao Qi <yao.qi@linaro.org>
8347
8348 PR gdbserver/20627
8349 * target.c (target_stop_and_wait): Don't call
8350 target_continue_no_signal, use resume_stop instead.
8351
8352 2016-09-26 Yao Qi <yao.qi@linaro.org>
8353
8354 * linux-low.c (linux_wait_1): Call debug_exit.
8355
8356 2016-09-23 Pedro Alves <palves@redhat.com>
8357
8358 * Makefile.in (SFILES): Add common/new-op.c.
8359 (OBS): Add common/new-op.o.
8360 (new-op.o): New rule.
8361
8362 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8363
8364 * .gitinore: Ignore more files.
8365
8366 2016-09-21 Yao Qi <yao.qi@linaro.org>
8367
8368 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8369 23.
8370
8371 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8372
8373 * server.c (start_inferior): Call target_mourn_inferior instead of
8374 mourn_inferior; pass ptid_t argument to it.
8375 (resume): Likewise.
8376 (handle_target_event): Likewise.
8377 * target.c (target_mourn_inferior): New function.
8378 * target.h (mourn_inferior): Delete macro.
8379
8380 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8381
8382 * linux-low.c (lwp_is_stepping): New function.
8383
8384 2016-09-06 Carl Love <cel@us.ibm.com>
8385
8386 * server.c (start_inferior): Fixed comment, requested comment change
8387 didn't get updated correctly. Removed reference to ptrace () call as
8388 it is only true on Linux systems.
8389
8390 2016-09-06 Carl Love <cel@us.ibm.com>
8391
8392 * server.c (start_inferior): Do not call
8393 function target_post_create_inferior () if the
8394 inferior process has already exited.
8395
8396 2016-09-05 Pedro Alves <palves@redhat.com>
8397
8398 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8399 (COMPILE.pre, CC_LD): Use CXX directly.
8400 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8401 * acinclude.m4: Don't include build-with-cxx.m4.
8402 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8403 * configure: Regenerate.
8404
8405 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8406
8407 PR gdb/19495
8408 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8409 call writing data to own_buf.
8410
8411 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8412
8413 * target.c (mywait): Call target_wait instead of
8414 the_target->wait.
8415 (target_wait): New function.
8416
8417 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8418
8419 * server.c (start_inferior): New variable 'ptid'. Replace calls
8420 to the_target->resume by target_continue{,_no_signal}, depending
8421 on the case.
8422 * target.c (target_stop_and_wait): Call target_continue_no_signal
8423 instead of the_target->resume.
8424 (target_continue): New function.
8425
8426 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8427
8428 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8429
8430 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8431
8432 PR server/20491
8433 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8434 ps_prochandle.
8435 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8436 * linux-arm-low.c (ps_get_thread_area): Likewise.
8437 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8438 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8439 * linux-mips-low.c (ps_get_thread_area): Likewise.
8440 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8441 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8442 * linux-x86-low.c (ps_get_thread_area): Likewise.
8443 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8444
8445 2016-08-19 Pedro Alves <palves@redhat.com>
8446
8447 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8448
8449 2016-08-19 Pedro Alves <palves@redhat.com>
8450
8451 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8452 comment. Use memcpy instead of casting through unsigned long.
8453
8454 2016-08-19 Pedro Alves <palves@redhat.com>
8455
8456 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8457 allocating around 0x80000000.
8458
8459 2016-08-19 Pedro Alves <palves@redhat.com>
8460
8461 PR gdb/20415
8462 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8463 (x32-avx512-linux-ipa.o): New rules.
8464 * configure.ac (x86_64-*-linux*): New x32 check.
8465 * configure.srv (ipa_x32_linux_regobj): New.
8466 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8467 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8468 descriptions.
8469 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8470 descriptions.
8471 * configure: Regenerate.
8472
8473 2016-08-09 Pedro Alves <palves@redhat.com>
8474
8475 PR gdb/18653
8476 * Makefile.in (OBS): Add signals-state-save-restore.o.
8477 (signals-state-save-restore.o): New rule.
8478 * config.in: Regenerate.
8479 * configure: Regenerate.
8480 * linux-low.c: Include "signals-state-save-restore.h".
8481 (linux_create_inferior): Call
8482 restore_original_signals_state.
8483 * server.c: Include "dispositions-save-restore.h".
8484 (captured_main): Call save_original_signals_state.
8485
8486 2016-08-05 Pedro Alves <palves@redhat.com>
8487
8488 * configure: Regenerate.
8489
8490 2016-08-04 Yao Qi <yao.qi@linaro.org>
8491
8492 * linux-low.c (regsets_fetch_inferior_registers): Check
8493 errno is ESRCH or not.
8494
8495 2016-08-02 Yao Qi <yao.qi@linaro.org>
8496
8497 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8498 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8499 (thread_db_load_search): Update.
8500 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8501 td_ta_set_event and td_ta_event_getmsg.
8502
8503 2016-07-26 Pedro Alves <palves@redhat.com>
8504
8505 PR server/20414
8506 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8507 of unsigned long for 64-bit registers and use uint32_t instead of
8508 unsigned int for 32-bit registers.
8509
8510 2016-07-26 Pedro Alves <palves@redhat.com>
8511
8512 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8513 to 'ptrace'.
8514
8515 2016-07-21 Tom Tromey <tom@tromey.com>
8516
8517 * configure: Rebuild.
8518
8519 2016-07-21 Yao Qi <yao.qi@linaro.org>
8520
8521 * mem-break.c (find_gdb_breakpoint): Cast bp to
8522 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8523
8524 2016-07-21 Yao Qi <yao.qi@linaro.org>
8525
8526 * server.c (handle_v_requests): Support s and S actions
8527 if target_supports_software_single_step return true.
8528
8529 2016-07-21 Yao Qi <yao.qi@linaro.org>
8530
8531 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8532 is resume_step, call maybe_hw_step.
8533 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8534 and unstop them.
8535 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8536 breakpoints or not.
8537 (proceed_one_lwp): If resume request is resume_step, install
8538 reinsert breakpoints and call maybe_hw_step.
8539
8540 2016-07-21 Yao Qi <yao.qi@linaro.org>
8541
8542 * linux-low.c (proceed_one_lwp): Declare.
8543 (linux_resume_one_thread): Remove local variable 'step'.
8544 Lift code enqueue signal. Call proceed_one_lwp instead of
8545 linux_resume_one_lwp.
8546
8547 2016-07-21 Yao Qi <yao.qi@linaro.org>
8548
8549 * linux-low.c (linux_resume_one_thread): Call
8550 enqueue_pending_signal.
8551
8552 2016-07-21 Yao Qi <yao.qi@linaro.org>
8553
8554 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8555 * inferiors.c (do_restore_current_thread_cleanup): New function.
8556 (make_cleanup_restore_current_thread): Likewise.
8557 * linux-low.c (install_software_single_step_breakpoints): Call
8558 make_cleanup_restore_current_thread. Switch current_thread to
8559 thread.
8560
8561 2016-07-21 Yao Qi <yao.qi@linaro.org>
8562
8563 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8564 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8565 (clone_one_breakpoint): Likewise.
8566 (delete_reinsert_breakpoints): Change parameter to thread.
8567 Callers updated.
8568 (has_reinsert_breakpoints): Likewise.
8569 (uninsert_reinsert_breakpoints): Likewise.
8570 (reinsert_reinsert_breakpoints): Likewise.
8571 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8572 (delete_reinsert_breakpoints): Likewise.
8573 (reinsert_reinsert_breakpoints): Likewise.
8574 (uninsert_reinsert_breakpoints): Likewise.
8575 (has_reinsert_breakpoints): Likewise.
8576
8577 2016-07-21 Yao Qi <yao.qi@linaro.org>
8578
8579 * inferiors.c (get_thread_process): Make parameter const.
8580 * inferiors.h (get_thread_process): Update declaration.
8581 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8582 Add new parameters child_thread and parent_thread. Callers
8583 updated.
8584 * mem-break.h (clone_all_breakpoints): Update declaration.
8585
8586 2016-07-21 Yao Qi <yao.qi@linaro.org>
8587
8588 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8589 <command_list, handler>: Remove.
8590 (struct gdb_breakpoint): New.
8591 (struct other_breakpoint): New.
8592 (struct reinsert_breakpoint): New.
8593 (is_gdb_breakpoint): New function.
8594 (any_persistent_commands): Update command_list if
8595 is_gdb_breakpoint returns true.
8596 (set_breakpoint): Create breakpoints according to their types.
8597 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8598 (set_gdb_breakpoint_1): Likewise.
8599 (set_gdb_breakpoint): Likewise.
8600 (clear_breakpoint_conditions): Change parameter type to
8601 'struct gdb_breakpoint *'.
8602 (clear_breakpoint_commands): Likewise.
8603 (clear_breakpoint_conditions_and_commands): Likewise.
8604 (add_condition_to_breakpoint): Likewise.
8605 (add_breakpoint_condition): Likewise.
8606 (add_commands_to_breakpoint): Likewise.
8607 (check_breakpoints): Check other_breakpoint.
8608 (clone_one_breakpoint): Clone breakpopint according to its type.
8609 * mem-break.h (struct gdb_breakpoint): Declare.
8610 (set_gdb_breakpoint): Update declaration.
8611 (clear_breakpoint_conditions_and_commands): Likewise.
8612 (add_breakpoint_condition): Likewise.
8613 (add_breakpoint_commands): Likewise.
8614 * server.c (process_point_options): Change parameter type to
8615 'struct gdb_breakpoint *'.
8616
8617 2016-07-21 Yao Qi <yao.qi@linaro.org>
8618
8619 * mem-break.c (set_breakpoint_at): Rename it to ...
8620 (set_breakpoint_type_at): ... it.
8621 (set_breakpoint_at): Call set_breakpoint_type_at.
8622 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8623 * mem-break.h (set_breakpoint_at): Update comments.
8624
8625 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8626
8627 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8628 to buf parameter.
8629 (nios2_store_gregset): Likewise.
8630
8631 2016-07-01 Pedro Alves <palves@redhat.com>
8632 Antoine Tremblay <antoine.tremblay@ericsson.com>
8633
8634 * linux-low.c: Change interface to take the target lwp_info
8635 pointer directly and return void. Handle detaching from a zombie
8636 thread.
8637 (linux_detach_lwp_callback): New function.
8638 (linux_detach): Detach from the leader thread after detaching from
8639 the clone threads.
8640
8641 2016-06-28 Yao Qi <yao.qi@linaro.org>
8642
8643 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8644 for variable new_offset.
8645 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8646 (aarch64_ftrace_insn_reloc_cb): Likewise.
8647 (aarch64_ftrace_insn_reloc_tb): Likewise.
8648 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8649 PRIx64 instead of PRIx32.
8650
8651 2016-06-28 Yao Qi <yao.qi@linaro.org>
8652
8653 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8654 (the_low_target): Install arm_get_syscall_trapinfo.
8655
8656 2016-06-28 Yao Qi <yao.qi@linaro.org>
8657
8658 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8659 function.
8660 (the_low_target): Install aarch64_get_syscall_trapinfo.
8661
8662 2016-06-28 Yao Qi <yao.qi@linaro.org>
8663
8664 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8665 Callers updated.
8666 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8667 Remove parameter sysno.
8668 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8669 sysret.
8670
8671 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8672
8673 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8674 (s390_emit_ne_goto): Likewise.
8675 (s390_emit_lt_goto): Likewise.
8676 (s390_emit_le_goto): Likewise.
8677 (s390_emit_gt_goto): Likewise.
8678 (s390_emit_ge_goto): Likewise.
8679 (s390x_emit_eq_goto): Likewise.
8680 (s390x_emit_ne_goto): Likewise.
8681 (s390x_emit_lt_goto): Likewise.
8682 (s390x_emit_le_goto): Likewise.
8683 (s390x_emit_gt_goto): Likewise.
8684 (s390x_emit_ge_goto): Likewise.
8685 (s390_emit_ops_impl): Mark variable static.
8686 (s390x_emit_ops): Likewise.
8687
8688 2016-06-17 Yao Qi <yao.qi@linaro.org>
8689
8690 * linux-low.c (handle_extended_wait): Call
8691 uninsert_reinsert_breakpoints for the parent process. Remove
8692 reinsert breakpoints from the child process. Reinsert them to
8693 the parent process when vfork is done.
8694 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8695 (reinsert_reinsert_breakpoints): New function.
8696 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8697 (reinsert_reinsert_breakpoints): Declare.
8698
8699 2016-06-17 Yao Qi <yao.qi@linaro.org>
8700
8701 * linux-low.c (handle_extended_wait): If the parent is doing
8702 step-over, remove the reinsert breakpoints from the forked child.
8703
8704 2016-06-17 Yao Qi <yao.qi@linaro.org>
8705
8706 * linux-low.c (unsuspend_all_lwps): Declare.
8707 (linux_low_filter_event): If thread exited, call finish_step_over.
8708 If step-over is finished, unsuspend other threads.
8709
8710 2016-06-17 Yao Qi <yao.qi@linaro.org>
8711
8712 * linux-low.c (linux_resume_one_lwp_throw): Assert
8713 has_reinsert_breakpoints returns false.
8714 * mem-break.c (delete_disabled_breakpoints): Assert
8715 bp type isn't reinsert_breakpoint.
8716
8717 2016-06-17 Yao Qi <yao.qi@linaro.org>
8718
8719 * linux-low.c (maybe_hw_step): New function.
8720 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8721 (finish_step_over): Switch current_thread to lwp temporarily,
8722 and assert has_reinsert_breakpoints returns true.
8723 (proceed_one_lwp): Call maybe_hw_step.
8724 * mem-break.c (has_reinsert_breakpoints): New function.
8725 * mem-break.h (has_reinsert_breakpoints): Declare.
8726
8727 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8728
8729 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8730
8731 2016-05-17 Yao Qi <yao.qi@linaro.org>
8732
8733 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8734 instead of find_inferior.
8735
8736 2016-05-05 Yao Qi <yao.qi@linaro.org>
8737
8738 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8739 Initialize res to zero.
8740
8741 2016-05-05 Yao Qi <yao.qi@linaro.org>
8742
8743 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8744 to uint32_t.
8745
8746 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8747
8748 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8749 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8750 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8751
8752 2016-04-28 Par Olsson <par.olsson@windriver.com>
8753 Simon Marchi <simon.marchi@ericsson.com>
8754
8755 * tracepoint.c (write_inferior_int8): New function.
8756 (cmd_qtenable_disable): Write enable flag using
8757 write_inferior_int8.
8758
8759 2016-04-25 Yao Qi <yao.qi@linaro.org>
8760
8761 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8762 (need_step_over_p): Return zero if the LWP has pending signals
8763 can be delivered on software single step target.
8764
8765 2016-04-25 Yao Qi <yao.qi@linaro.org>
8766
8767 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8768 return instead of error.
8769
8770 2016-04-22 Yao Qi <yao.qi@linaro.org>
8771
8772 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8773 to 23.
8774
8775 2016-04-22 Yao Qi <yao.qi@linaro.org>
8776
8777 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8778 signal when stepping over breakpoint with software single
8779 step.
8780
8781 2016-04-21 Pedro Alves <palves@redhat.com>
8782
8783 * linux-s390-low.c (s390_collect_ptrace_register)
8784 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8785 add casts.
8786 (s390_check_regset): Use void * instead of gdb_byte *.
8787
8788 2016-04-20 Pedro Alves <palves@redhat.com>
8789
8790 * configure: Renegerate.
8791
8792 2016-04-20 Yao Qi <yao.qi@linaro.org>
8793
8794 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8795 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8796 number 16.
8797 (arm_store_gregset): Likewise.
8798
8799 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8800
8801 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8802 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8803 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8804 (amd64-avx-mpx-linux.c): New rules.
8805 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8806 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8807 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8808 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8809 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8810 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8811 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8812 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8813 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8814 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8815 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8816 * linux-x86-low.c (x86_linux_read_description): Add case for
8817 X86_XSTATE_AVX_MPX_MASK.
8818 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8819 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8820 init_registers_i386_avx_mpx_linux.
8821 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8822 (initialize_low_tracepoint): Call
8823 init_registers_i386_avx_mpx_linux.
8824 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8825 (initialize_low_tracepoint): Call
8826 init_registers_amd64_avx_mpx_linux.
8827 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8828 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8829 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8830 declarations.
8831
8832 2016-04-18 Pedro Alves <palves@redhat.com>
8833
8834 * configure: Regenerate.
8835
8836 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8837
8838 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8839 (aarch64_emit_sub): Likewise.
8840
8841 2016-04-12 Pedro Alves <palves@redhat.com>
8842
8843 * utils.c (prepare_to_throw_exception): Delete.
8844
8845 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8846
8847 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8848
8849 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8850
8851 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8852
8853 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8854
8855 * linux-aarch64-ipa.c: Add <elf.h> include.
8856 * linux-ppc-ipa.c: Add <elf.h> include.
8857 * linux-s390-ipa.c: Add <elf.h> include.
8858
8859 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8860
8861 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8862 (get_raw_reg_ptr): Likewise.
8863 (get_trace_state_variable_value_ptr): Likewise.
8864 (set_trace_state_variable_value_ptr): Likewise.
8865 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8866 char *.
8867
8868 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8869 Marcin Kościelnicki <koriakin@0x04.net>
8870
8871 PR/17221
8872 * linux-ppc-low.c (emit_insns): New function.
8873 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8874 (ppc_emit_prologue): New function.
8875 (ppc_emit_epilogue): New function.
8876 (ppc_emit_add): New function.
8877 (ppc_emit_sub): New function.
8878 (ppc_emit_mul): New function.
8879 (ppc_emit_lsh): New function.
8880 (ppc_emit_rsh_signed): New function.
8881 (ppc_emit_rsh_unsigned): New function.
8882 (ppc_emit_ext): New function.
8883 (ppc_emit_zero_ext): New function.
8884 (ppc_emit_log_not): New function.
8885 (ppc_emit_bit_and): New function.
8886 (ppc_emit_bit_or): New function.
8887 (ppc_emit_bit_xor): New function.
8888 (ppc_emit_bit_not): New function.
8889 (ppc_emit_equal): New function.
8890 (ppc_emit_less_signed): New function.
8891 (ppc_emit_less_unsigned): New function.
8892 (ppc_emit_ref): New function.
8893 (ppc_emit_const): New function.
8894 (ppc_emit_reg): New function.
8895 (ppc_emit_pop): New function.
8896 (ppc_emit_stack_flush): New function.
8897 (ppc_emit_swap): New function.
8898 (ppc_emit_stack_adjust): New function.
8899 (ppc_emit_call): New function.
8900 (ppc_emit_int_call_1): New function.
8901 (ppc_emit_void_call_2): New function.
8902 (ppc_emit_if_goto): New function.
8903 (ppc_emit_goto): New function.
8904 (ppc_emit_eq_goto): New function.
8905 (ppc_emit_ne_goto): New function.
8906 (ppc_emit_lt_goto): New function.
8907 (ppc_emit_le_goto): New function.
8908 (ppc_emit_gt_goto): New function.
8909 (ppc_emit_ge_goto): New function.
8910 (ppc_write_goto_address): New function.
8911 (ppc_emit_ops_impl): New static variable.
8912 (ppc64v1_emit_prologue): New function.
8913 (ppc64v2_emit_prologue): New function.
8914 (ppc64_emit_epilogue): New function.
8915 (ppc64_emit_add): New function.
8916 (ppc64_emit_sub): New function.
8917 (ppc64_emit_mul): New function.
8918 (ppc64_emit_lsh): New function.
8919 (ppc64_emit_rsh_signed): New function.
8920 (ppc64_emit_rsh_unsigned): New function.
8921 (ppc64_emit_ext): New function.
8922 (ppc64_emit_zero_ext): New function.
8923 (ppc64_emit_log_not): New function.
8924 (ppc64_emit_bit_and): New function.
8925 (ppc64_emit_bit_or): New function.
8926 (ppc64_emit_bit_xor): New function.
8927 (ppc64_emit_bit_not): New function.
8928 (ppc64_emit_equal): New function.
8929 (ppc64_emit_less_signed): New function.
8930 (ppc64_emit_less_unsigned): New function.
8931 (ppc64_emit_ref): New function.
8932 (ppc64_emit_const): New function.
8933 (ppc64v1_emit_reg): New function.
8934 (ppc64v2_emit_reg): New function.
8935 (ppc64_emit_pop): New function.
8936 (ppc64_emit_stack_flush): New function.
8937 (ppc64_emit_swap): New function.
8938 (ppc64v1_emit_call): New function.
8939 (ppc64v2_emit_call): New function.
8940 (ppc64v1_emit_int_call_1): New function.
8941 (ppc64v2_emit_int_call_1): New function.
8942 (ppc64v1_emit_void_call_2): New function.
8943 (ppc64v2_emit_void_call_2): New function.
8944 (ppc64_emit_if_goto): New function.
8945 (ppc64_emit_eq_goto): New function.
8946 (ppc64_emit_ne_goto): New function.
8947 (ppc64_emit_lt_goto): New function.
8948 (ppc64_emit_le_goto): New function.
8949 (ppc64_emit_gt_goto): New function.
8950 (ppc64_emit_ge_goto): New function.
8951 (ppc64v1_emit_ops_impl): New static variable.
8952 (ppc64v2_emit_ops_impl): New static variable.
8953 (ppc_emit_ops): New function.
8954 (linux_low_target): Wire in ppc_emit_ops.
8955
8956 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8957 Marcin Kościelnicki <koriakin@0x04.net>
8958
8959 PR/17221
8960 * Makefile.in: Add powerpc-*-ipa.o
8961 * configure.srv: Add ipa_obj for powerpc*-linux.
8962 * linux-ppc-ipa.c: New file.
8963 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8964 includes.
8965 (PPC_FIELD): New macro.
8966 (PPC_SEXT): New macro.
8967 (PPC_OP6): New macro.
8968 (PPC_BO): New macro.
8969 (PPC_LI): New macro.
8970 (PPC_BD): New macro.
8971 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8972 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8973 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8974 (ppc_get_thread_area): New function.
8975 (is_elfv2_inferior): New function.
8976 (gen_ds_form): New function.
8977 (GEN_STD): New macro.
8978 (GEN_STDU): New macro.
8979 (GEN_LD): New macro.
8980 (GEN_LDU): New macro.
8981 (gen_d_form): New function.
8982 (GEN_ADDI): New macro.
8983 (GEN_ADDIS): New macro.
8984 (GEN_LI): New macro.
8985 (GEN_LIS): New macro.
8986 (GEN_ORI): New macro.
8987 (GEN_ORIS): New macro.
8988 (GEN_LWZ): New macro.
8989 (GEN_STW): New macro.
8990 (GEN_STWU): New macro.
8991 (gen_xfx_form): New function.
8992 (GEN_MFSPR): New macro.
8993 (GEN_MTSPR): New macro.
8994 (GEN_MFCR): New macro.
8995 (GEN_MTCR): New macro.
8996 (GEN_SYNC): New macro.
8997 (GEN_LWSYNC): New macro.
8998 (gen_x_form): New function.
8999 (GEN_OR): New macro.
9000 (GEN_MR): New macro.
9001 (GEN_LWARX): New macro.
9002 (GEN_STWCX): New macro.
9003 (GEN_CMPW): New macro.
9004 (gen_md_form): New function.
9005 (GEN_RLDICL): New macro.
9006 (GEN_RLDICR): New macro.
9007 (gen_i_form): New function.
9008 (GEN_B): New macro.
9009 (GEN_BL): New macro.
9010 (gen_b_form): New function.
9011 (GEN_BNE): New macro.
9012 (GEN_LOAD): New macro.
9013 (GEN_STORE): New macro.
9014 (gen_limm): New function.
9015 (gen_atomic_xchg): New function.
9016 (gen_call): New function.
9017 (ppc_relocate_instruction): New function.
9018 (ppc_install_fast_tracepoint_jump_pad): New function.
9019 (ppc_get_min_fast_tracepoint_insn_len): New function.
9020 (ppc_get_ipa_tdesc_idx): New function.
9021 (the_low_target): Wire in the new functions.
9022 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9023 tdescs.
9024 * linux-ppc-tdesc.h: New file.
9025
9026 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9027
9028 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9029 (alloc_jump_pad_buffer): New function.
9030 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9031 (alloc_jump_pad_buffer): New function.
9032 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9033 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9034 (alloc_jump_pad_buffer): New function.
9035 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9036 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9037 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9038 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9039
9040 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9041
9042 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9043 * linux-amd64-ipa.c: Likewise.
9044 * linux-i386-ipa.c: Likewise.
9045 * linux-s390-ipa.c: Likewise.
9046 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9047 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9048 set_trace_state_variable_value_ptr.
9049 (struct ipa_sym_addresses): Likewise.
9050 (symbol_list): Likewise.
9051 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9052 accessing gdb_collect directly.
9053 (gdb_collect_ptr_type): New typedef.
9054 (get_raw_reg_ptr_type): New typedef.
9055 (get_trace_state_variable_value_ptr_type): New typedef.
9056 (set_trace_state_variable_value_ptr_type): New typedef.
9057 (gdb_collect_ptr): New global.
9058 (get_raw_reg_ptr): New global.
9059 (get_trace_state_variable_value_ptr): New global.
9060 (set_trace_state_variable_value_ptr): New global.
9061 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9062 accessing get_raw_reg directly.
9063 (get_get_tsv_func_addr): Likewise for
9064 get_trace_state_variable_value_ptr.
9065 (get_set_tsv_func_addr): Likewise for
9066 set_trace_state_variable_value_ptr.
9067 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9068
9069 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9070
9071 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9072
9073 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9074
9075 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9076 packets.
9077 (relocate_instruction): Remove own_buf.
9078 * server.c (own_buf): Make global.
9079 (handle_v_requests): Make global.
9080 * server.h (own_buf): New declaration.
9081 (handle_v_requests): New prototype.
9082
9083 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9084
9085 PR 18377
9086 * linux-s390-low.c (add_insns): New function.
9087 (s390_emit_prologue): New function.
9088 (s390_emit_epilogue): New function.
9089 (s390_emit_add): New function.
9090 (s390_emit_sub): New function.
9091 (s390_emit_mul): New function.
9092 (s390_emit_lsh): New function.
9093 (s390_emit_rsh_signed): New function.
9094 (s390_emit_rsh_unsigned): New function.
9095 (s390_emit_ext): New function.
9096 (s390_emit_log_not): New function.
9097 (s390_emit_bit_and): New function.
9098 (s390_emit_bit_or): New function.
9099 (s390_emit_bit_xor): New function.
9100 (s390_emit_bit_not): New function.
9101 (s390_emit_equal): New function.
9102 (s390_emit_less_signed): New function.
9103 (s390_emit_less_unsigned): New function.
9104 (s390_emit_ref): New function.
9105 (s390_emit_if_goto): New function.
9106 (s390_emit_goto): New function.
9107 (s390_write_goto_address): New function.
9108 (s390_emit_litpool): New function.
9109 (s390_emit_const): New function.
9110 (s390_emit_call): New function.
9111 (s390_emit_reg): New function.
9112 (s390_emit_pop): New function.
9113 (s390_emit_stack_flush): New function.
9114 (s390_emit_zero_ext): New function.
9115 (s390_emit_swap): New function.
9116 (s390_emit_stack_adjust): New function.
9117 (s390_emit_set_r2): New function.
9118 (s390_emit_int_call_1): New function.
9119 (s390_emit_void_call_2): New function.
9120 (s390_emit_eq_goto): New function.
9121 (s390_emit_ne_goto): New function.
9122 (s390_emit_lt_goto): New function.
9123 (s390_emit_le_goto): New function.
9124 (s390_emit_gt_goto): New function.
9125 (s390_emit_ge_goto): New function.
9126 (s390x_emit_prologue): New function.
9127 (s390x_emit_epilogue): New function.
9128 (s390x_emit_add): New function.
9129 (s390x_emit_sub): New function.
9130 (s390x_emit_mul): New function.
9131 (s390x_emit_lsh): New function.
9132 (s390x_emit_rsh_signed): New function.
9133 (s390x_emit_rsh_unsigned): New function.
9134 (s390x_emit_ext): New function.
9135 (s390x_emit_log_not): New function.
9136 (s390x_emit_bit_and): New function.
9137 (s390x_emit_bit_or): New function.
9138 (s390x_emit_bit_xor): New function.
9139 (s390x_emit_bit_not): New function.
9140 (s390x_emit_equal): New function.
9141 (s390x_emit_less_signed): New function.
9142 (s390x_emit_less_unsigned): New function.
9143 (s390x_emit_ref): New function.
9144 (s390x_emit_if_goto): New function.
9145 (s390x_emit_const): New function.
9146 (s390x_emit_call): New function.
9147 (s390x_emit_reg): New function.
9148 (s390x_emit_pop): New function.
9149 (s390x_emit_stack_flush): New function.
9150 (s390x_emit_zero_ext): New function.
9151 (s390x_emit_swap): New function.
9152 (s390x_emit_stack_adjust): New function.
9153 (s390x_emit_int_call_1): New function.
9154 (s390x_emit_void_call_2): New function.
9155 (s390x_emit_eq_goto): New function.
9156 (s390x_emit_ne_goto): New function.
9157 (s390x_emit_lt_goto): New function.
9158 (s390x_emit_le_goto): New function.
9159 (s390x_emit_gt_goto): New function.
9160 (s390x_emit_ge_goto): New function.
9161 (s390_emit_ops): New function.
9162 (struct linux_target_ops): Fill in emit_ops hook.
9163
9164 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9165
9166 PR 18377
9167 * Makefile.in: Add s390 IPA files.
9168 * configure.srv: Build IPA for s390.
9169 * linux-s390-ipa.c: New file.
9170 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9171 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9172 (tdesc_s390_linux32): Likewise.
9173 (init_registers_s390_linux32v1): Likewise.
9174 (tdesc_s390_linux32v1): Likewise.
9175 (init_registers_s390_linux32v2): Likewise.
9176 (tdesc_s390_linux32v2): Likewise.
9177 (init_registers_s390_linux64): Likewise.
9178 (tdesc_s390_linux64): Likewise.
9179 (init_registers_s390_linux64v1): Likewise.
9180 (tdesc_s390_linux64v1): Likewise.
9181 (init_registers_s390_linux64v2): Likewise.
9182 (tdesc_s390_linux64v2): Likewise.
9183 (init_registers_s390_te_linux64): Likewise.
9184 (tdesc_s390_te_linux64): Likewise.
9185 (init_registers_s390_vx_linux64): Likewise.
9186 (tdesc_s390_vx_linux64): Likewise.
9187 (init_registers_s390_tevx_linux64): Likewise.
9188 (tdesc_s390_tevx_linux64): Likewise.
9189 (init_registers_s390x_linux64): Likewise.
9190 (tdesc_s390x_linux64): Likewise.
9191 (init_registers_s390x_linux64v1): Likewise.
9192 (tdesc_s390x_linux64v1): Likewise.
9193 (init_registers_s390x_linux64v2): Likewise.
9194 (tdesc_s390x_linux64v2): Likewise.
9195 (init_registers_s390x_te_linux64): Likewise.
9196 (tdesc_s390x_te_linux64): Likewise.
9197 (init_registers_s390x_vx_linux64): Likewise.
9198 (tdesc_s390x_vx_linux64): Likewise.
9199 (init_registers_s390x_tevx_linux64): Likewise.
9200 (tdesc_s390x_tevx_linux64): Likewise.
9201 (have_hwcap_s390_vx): New static variable.
9202 (s390_arch_setup): Fill have_hwcap_s390_vx.
9203 (s390_get_thread_area): New function.
9204 (s390_ft_entry_gpr_esa): New const.
9205 (s390_ft_entry_gpr_zarch): New const.
9206 (s390_ft_entry_misc): New const.
9207 (s390_ft_entry_fr): New const.
9208 (s390_ft_entry_vr): New const.
9209 (s390_ft_main_31): New const.
9210 (s390_ft_main_64): New const.
9211 (s390_ft_exit_fr): New const.
9212 (s390_ft_exit_vr): New const.
9213 (s390_ft_exit_misc): New const.
9214 (s390_ft_exit_gpr_esa): New const.
9215 (s390_ft_exit_gpr_zarch): New const.
9216 (append_insns): New function.
9217 (s390_relocate_instruction): New function.
9218 (s390_install_fast_tracepoint_jump_pad): New function.
9219 (s390_get_min_fast_tracepoint_insn_len): New function.
9220 (s390_get_ipa_tdesc_idx): New function.
9221 (struct linux_target_ops): Wire in the above functions.
9222 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9223 * linux-s390-tdesc.h: New file.
9224
9225 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9226
9227 * linux-s390-low.c (s390_supports_tracepoints): New function.
9228 (struct linux_target_ops): Fill supports_tracepoints hook.
9229
9230 2016-03-18 Yao Qi <yao.qi@linaro.org>
9231
9232 * linux-low.c (lwp_signal_can_be_delivered): New function.
9233 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9234
9235 2016-03-18 Yao Qi <yao.qi@linaro.org>
9236
9237 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9238 0 if signal is enqueued. Remove 'signal' from one debugging
9239 message. Move one debugging message to some lines below.
9240 Remove code setting 'signal' to 0.
9241
9242 2016-03-18 Yao Qi <yao.qi@linaro.org>
9243
9244 * linux-low.c (linux_low_filter_event): Remove redundant
9245 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9246
9247 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9248
9249 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9250 (struct linux_target_ops): Wire in the above.
9251
9252 2016-03-03 Yao Qi <yao.qi@linaro.org>
9253
9254 * linux-low.c: Update comments to start_step_over.
9255
9256 2016-03-03 Yao Qi <yao.qi@linaro.org>
9257
9258 PR server/19736
9259 * linux-low.c (handle_extended_wait): Set child suspended
9260 if event_lwp->bp_reinsert isn't zero.
9261
9262 2016-03-02 Yao Qi <yao.qi@linaro.org>
9263
9264 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9265 enqueue_pending_signal.
9266
9267 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9268
9269 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9270 is actually loaded.
9271
9272 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9273
9274 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9275 (s390_regmap_3264) [!__s390x__]: New global.
9276 (s390_collect_ptrace_register): Skip map entries containing -1.
9277 (s390_supply_ptrace_register): Ditto.
9278 (s390_fill_gprs_high): New function.
9279 (s390_store_gprs_high): New function.
9280 (s390_regsets): Add NT_S390_HIGH_GPRS.
9281 (s390_get_hwcap): Enable on 31-bit.
9282 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9283 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9284 Detect NT_S390_HIGH_GPRS.
9285 (s390_usrregs_info_3264): Enable on 31-bit.
9286 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9287 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9288
9289 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9290
9291 PR gdb/13808
9292 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9293 * configure.srv: Ditto.
9294 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9295 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9296 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9297 (init_registers_amd64_linux): Remove prototype.
9298 (tdesc_amd64_linux): Remove declaration.
9299 (get_ipa_tdesc): New function.
9300 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9301 initialize remaining tdescs.
9302 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9303 (init_registers_i386_linux): Remove prototype.
9304 (tdesc_i386_linux): Remove declaration.
9305 (get_ipa_tdesc): New function.
9306 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9307 initialize remaining tdescs.
9308 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9309 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9310 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9311 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9312 (x86_get_ipa_tdesc_idx): New function.
9313 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9314 * linux-x86-tdesc.h: New file.
9315 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9316 (target_get_ipa_tdesc_idx): New macro.
9317 * tracepoint.c (ipa_tdesc_idx): New macro.
9318 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9319 (symbol_list): Add ipa_tdesc_idx.
9320 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9321 (ipa_tdesc): Remove.
9322 (ipa_tdesc_idx): New variable.
9323 (get_context_regcache): Use get_ipa_tdesc.
9324 (gdb_collect): Ditto.
9325 (gdb_probe): Ditto.
9326 * tracepoint.h (get_ipa_tdesc): New prototype.
9327 (ipa_tdesc): Remove.
9328
9329 2016-02-24 Pedro Alves <palves@redhat.com>
9330
9331 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9332 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9333 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9334 Factor out common code between the USE_SIGTRAP_SIGINFO and
9335 !USE_SIGTRAP_SIGINFO blocks.
9336 (linux_low_filter_event): Call save_stop_reason instead of
9337 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9338 Update comments.
9339 (linux_wait_1): Update comments.
9340
9341 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9342
9343 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9344 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9345 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9346 ppc_insert_point, ppc_remove_point.
9347
9348 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9349
9350 * linux-s390-low.c (s390_supports_z_point_type): New function.
9351 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9352
9353 2016-02-16 Yao Qi <yao.qi@linaro.org>
9354
9355 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9356 PC. Get pc from regcache_read_pc.
9357
9358 2016-02-12 Yao Qi <yao.qi@linaro.org>
9359
9360 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9361 or linux_get_pc_32bit.
9362 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9363
9364 2016-02-12 Yao Qi <yao.qi@linaro.org>
9365
9366 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9367 arm_linux_get_next_pcs_fixup.
9368
9369 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9370
9371 * tracepoint.c (x_tracepoint_action_download): Change
9372 write_inferior_data_ptr to write_inferior_data_pointer.
9373 (cmd_qtstart): Likewise.
9374 (write_inferior_data_ptr): Remove.
9375 (download_agent_expr): Change write_inferior_data_ptr to
9376 write_inferior_data_pointer.
9377 (download_tracepoint_1): Likewise.
9378 (download_tracepoint): Likewise.
9379 (download_trace_state_variables): Likewise.
9380
9381 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9382 Marcin Kościelnicki <koriakin@0x04.net>
9383
9384 * tracepoint.c (struct tracepoint_action_ops): Remove.
9385 (struct tracepoint_action): Remove ops.
9386 (m_tracepoint_action_download, r_tracepoint_action_download)
9387 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9388 size and offset accordingly.
9389 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9390 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9391 (tracepoint_action_send, tracepoint_action_download): New functions.
9392 Helpers for trace action handlers.
9393 (add_tracepoint_action): Remove setup actions ops.
9394 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9395
9396 2016-02-10 Yao Qi <yao.qi@linaro.org>
9397
9398 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9399
9400 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9401
9402 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9403 to AC_OUTPUT.
9404 * configure: Regenerate.
9405
9406 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9407
9408 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9409 void * to gdb_byte *.
9410 * linux-low.c (siginfo_fixup): Likewise.
9411 (linux_xfer_siginfo): Likewise.
9412 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9413 Likewise.
9414 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9415
9416 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9417
9418 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9419 to srv_tgtobj.
9420 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9421 to srv_tgtobj.
9422 * linux-x86-low.c [__x86_64__]: Include
9423 "nat/amd64-linux-siginfo.h".
9424 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9425 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9426 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9427 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9428 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9429 (cpt_si_fd, si_timerid, si_overrun): Move from
9430 nat/amd64-linux-siginfo.c.
9431 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9432
9433 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9434
9435 * server.c (skip_to_semicolon): Remove.
9436 (process_point_options): Use strchrnul instead of
9437 skip_to_semicolon.
9438
9439 2016-01-26 Yao Qi <yao.qi@linaro.org>
9440
9441 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9442 * linux-low.c (install_software_single_step_breakpoints): Don't
9443 call regcache_read_pc.
9444 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9445 argument pc.
9446
9447 2016-01-26 Yao Qi <yao.qi@linaro.org>
9448
9449 * linux-low.c (install_software_single_step_breakpoints): Call
9450 regcache_read_pc instead of get_pc.
9451
9452 2016-01-26 Yao Qi <yao.qi@linaro.org>
9453
9454 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9455 (unblock_async_io): Rename to ...
9456 (block_unblock_async_io): ... it. New function.
9457 (enable_async_io): Don't install SIGIO handler. Unblock it
9458 instead.
9459 (disable_async_io): Don't ignore SIGIO. Block it instead.
9460 (initialize_async_io): Install SIGIO handler. Don't call
9461 unblock_async_io.
9462
9463 2016-01-26 Yao Qi <yao.qi@linaro.org>
9464
9465 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9466 first character is '\003', call *the_target->request_interrupt.
9467
9468 2016-01-25 Yao Qi <yao.qi@linaro.org>
9469
9470 * remote-utils.c (new_thread_notify): Remove.
9471 (dead_thread_notify): Likewise.
9472 * remote-utils.h (new_thread_notify): Remove declaration.
9473 (dead_thread_notify): Likewise.
9474
9475 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9476
9477 * gdb.trace/pending.exp: Fix expected message on continue.
9478
9479 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9480
9481 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9482 it works properly on big-endian machines where sizeof (CORE_ADDR)
9483 != sizeof (void *).
9484
9485 2016-01-21 Pedro Alves <palves@redhat.com>
9486
9487 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9488 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9489 * configure: Regenerate.
9490
9491 2016-01-21 Yao Qi <yao.qi@linaro.org>
9492
9493 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9494 is_thumb and set it according to CPSR saved on the stack.
9495 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9496 arm_sigreturn_next_pc.
9497
9498 2016-01-18 Yao Qi <yao.qi@linaro.org>
9499
9500 * linux-low.c (linux_set_pc_64bit): New function.
9501 (linux_get_pc_64bit): New function.
9502 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9503 Declare.
9504 * linux-sparc-low.c (debug_threads): Remove declaration.
9505 (sparc_get_pc): Remove.
9506 (the_low_target): Use linux_get_pc_64bit instead of
9507 sparc_get_pc.
9508 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9509 (the_low_target): Use linux_get_pc_64bit and
9510 linux_set_pc_64bit.
9511
9512 2016-01-18 Yao Qi <yao.qi@linaro.org>
9513
9514 * linux-arm-low.c (debug_threads): Remove declaration.
9515 (arm_get_pc, arm_set_pc): Remove.
9516 (the_low_target): Use linux_get_pc_32bit and
9517 linux_set_pc_32bit.
9518 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9519 (the_low_target): Use linux_get_pc_32bit and
9520 linux_set_pc_32bit.
9521 * linux-cris-low.c (debug_threads): Remove declaration.
9522 (cris_get_pc, cris_set_pc,): Remove.
9523 (the_low_target): Use linux_get_pc_32bit and
9524 linux_set_pc_32bit.
9525 * linux-crisv32-low.c (debug_threads): Remove declaration.
9526 (cris_get_pc, cris_set_pc): Remove.
9527 (the_low_target): Use linux_get_pc_32bit and
9528 linux_set_pc_32bit.
9529 * linux-low.c: Include inttypes.h.
9530 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9531 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9532 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9533 (the_low_target): Use linux_get_pc_32bit and
9534 linux_set_pc_32bit.
9535 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9536 (the_low_target): Use linux_get_pc_32bit and
9537 linux_set_pc_32bit.
9538 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9539 (the_low_target): Use linux_get_pc_32bit and
9540 linux_set_pc_32bit.
9541 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9542 (the_low_target): Use linux_get_pc_32bit and
9543 linux_set_pc_32bit.
9544 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9545 (the_low_target): Use linux_get_pc_32bit and
9546 linux_set_pc_32bit.
9547
9548 2016-01-18 Gary Benson <gbenson@redhat.com>
9549
9550 * configure.ac (AC_FUNC_FORK): New check.
9551 * config.in: Regenerate.
9552 * configure: Likewise.
9553
9554 2016-01-14 Yao Qi <yao.qi@linaro.org>
9555
9556 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9557 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9558 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9559 arm_get_next_pcs_ctor.
9560
9561 2016-01-12 Josh Stone <jistone@redhat.com>
9562 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9563
9564 * inferiors.h: Include "gdb_vecs.h".
9565 (struct process_info): Add syscalls_to_catch.
9566 * inferiors.c (remove_process): Free syscalls_to_catch.
9567 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9568 syscall_return stops.
9569 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9570 * server.c (handle_general_set): Handle QCatchSyscalls.
9571 (handle_query): Report support for QCatchSyscalls.
9572 * target.h (struct target_ops): Add supports_catch_syscall.
9573 (target_supports_catch_syscall): New macro.
9574 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9575 (struct lwp_info): Add syscall_state.
9576 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9577 Maintain syscall_state and syscalls_to_catch across exec.
9578 (get_syscall_trapinfo): New function, proxy to the_low_target.
9579 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9580 (linux_low_filter_event): Toggle syscall_state entry/return for
9581 syscall traps, and set it ignored for all others.
9582 (gdb_catching_syscalls_p): New function.
9583 (gdb_catch_this_syscall_p): New function.
9584 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9585 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9586 (linux_supports_catch_syscall): New function.
9587 (linux_target_ops): Install it.
9588 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9589 (the_low_target): Install it.
9590
9591 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9592
9593 * acinclude.m4: Include new ../warning.m4 file.
9594 * configure: Regenerated.
9595 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9596
9597 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9598
9599 * ax.c (is_goto_target): Mark static.
9600 * linux-low.c (register_addr): Likewise.
9601 (linux_fetch_registers, linux_store_registers): Likewise.
9602 * mem-break.c (any_persistent_commands): Fix old prototype.
9603 (add_commands_to_breakpoint): Mark static.
9604 * regcache.c (find_register_by_name): Delete unused func.
9605 * remote-utils.c (hex_or_minus_one): Mark static.
9606 * server.c (monitor_show_help): Mark static.
9607 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9608 handle_v_requests): Likewise.
9609
9610 2016-01-12 Pedro Alves <palves@redhat.com>
9611
9612 Remove use of the registered trademark symbol throughout.
9613
9614 2016-01-08 Yao Qi <yao.qi@linaro.org>
9615
9616 * remote-utils.c (getpkt): If c is '\003', call target hook
9617 request_interrupt.
9618
9619 2016-01-06 Yao Qi <yao.qi@linaro.org>
9620
9621 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9622 linux-aarch32-low.c.
9623 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9624 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9625 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9626 (thumb2_breakpoint): Declare.
9627 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9628 linux-aarch32-low.h.
9629 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9630 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9631 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9632
9633 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9634
9635 * gdbreplay.c (gdbreplay_version): Change copyright year in
9636 version message.
9637 * server.c (gdbserver_version): Likewise.
9638
9639 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9640
9641 * server.c (crc32_table): Delete.
9642 (crc32): Use libiberty's xcrc32 function.
9643
9644 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9645
9646 * lynx-low.c (lynx_delete_thread_callback): New function.
9647 (lynx_mourn): Properly delete our process and all of its
9648 threads. Remove call to clear_inferiors.
9649
9650 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9651
9652 * target.c (thread_search_callback): Add check that
9653 the thread_stopped target callback is not NULL before
9654 calling it.
9655
9656 2015-12-21 Yao Qi <yao.qi@linaro.org>
9657
9658 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9659 arm breakpoint.
9660
9661 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9662
9663 * server.c (handle_query): Call target_supports_software_single_step.
9664
9665 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9666
9667 * linux-low.c (single_step): New function.
9668 (linux_resume_one_lwp_throw): Call single_step.
9669 (start_step_over): Likewise.
9670
9671 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9672
9673 * Makefile.in (SFILES): Append arch/arm-linux.c,
9674 arch/arm-get-next-pcs.c.
9675 (arm-linux.o): New rule.
9676 (arm-get-next-pcs.o): New rule.
9677 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9678 arm-linux.o.
9679 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9680 to linux-aarch32-low.c.
9681 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9682 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9683 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9684 (thumb2_breakpoint_len): Likewise.
9685 (arm_is_thumb_mode): Make non-static.
9686 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9687 from linux-aarch32-low.c.
9688 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9689 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9690 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9691 (thumb2_breakpoint_len): Likewise.
9692 (arm_is_thumb_mode): New declaration.
9693 * linux-arm-low.c: Include arch/arm-linux.h
9694 aarch/arm-get-next-pcs.h, sys/syscall.h.
9695 (get_next_pcs_ops): New struct.
9696 (get_next_pcs_addr_bits_remove): New function.
9697 (get_next_pcs_is_thumb): New function.
9698 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9699 (arm_sigreturn_next_pc): Likewise.
9700 (get_next_pcs_syscall_next_pc): Likewise.
9701 (arm_gdbserver_get_next_pcs): Likewise.
9702 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9703 Initialize.
9704 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9705 * server.h: Include gdb_vecs.h.
9706
9707 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9708
9709 * Makefile.in (SFILES): Append common/common-regcache.c.
9710 (OBS): Append common-regcache.o.
9711 (common-regcache.o): New rule.
9712 * regcache.c (init_register_cache): Initialize cache to
9713 REG_UNAVAILABLE.
9714 (regcache_raw_read_unsigned): New function.
9715 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9716 register_status enum.
9717
9718 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9719
9720 * linux-aarch64-low.c (the_low_targets): Rename
9721 breakpoint_reinsert_addr to get_next_pcs.
9722 * linux-arm-low.c (the_low_targets): Likewise.
9723 * linux-bfin-low.c (the_low_targets): Likewise.
9724 * linux-cris-low.c (the_low_targets): Likewise.
9725 * linux-crisv32-low.c (the_low_targets): Likewise.
9726 * linux-low.c (can_software_single_step): Likewise.
9727 (install_software_single_step_breakpoints): New function.
9728 (start_step_over): Use install_software_single_step_breakpoints.
9729 * linux-low.h: New CORE_ADDR vector.
9730 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9731 get_next_pcs.
9732 * linux-mips-low.c (the_low_targets): Likewise.
9733 * linux-nios2-low.c (the_low_targets): Likewise.
9734 * linux-sparc-low.c (the_low_targets): Likewise.
9735
9736 2015-12-17 Pedro Alves <palves@redhat.com>
9737
9738 * linux-low.c (linux_kill_one_lwp): Remove references to
9739 LinuxThreads.
9740 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9741 to 'kill'.
9742 (linux_init_signals): Delete.
9743 (initialize_low): Adjust.
9744 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9745
9746 2015-12-16 Pedro Alves <palves@redhat.com>
9747
9748 * configure.ac (compiler warning flags): When testing a
9749 -Wno-foo option, check whether -Wfoo works instead.
9750 * configure: Regenerate.
9751
9752 2015-12-11 Don Breazeal <donb@codesourcery.com>
9753
9754 * server.c (process_serial_event): Don't exit from gdbserver
9755 in remote mode if there are still active inferiors.
9756
9757 2015-12-11 Yao Qi <yao.qi@linaro.org>
9758
9759 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9760 arm_breakpoint_at if the process is 32-bit.
9761
9762 2015-12-11 Yao Qi <yao.qi@linaro.org>
9763
9764 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9765 arm breakpoint.
9766
9767 2015-12-07 Yao Qi <yao.qi@linaro.org>
9768
9769 * configure.srv: Append arm.o to srv_tgtobj for
9770 aarch64*-*-linux* target.
9771 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9772 from linux-arm-low.c.
9773 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9774 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9775 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9776 (thumb2_breakpoint_len): Likewise.
9777 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9778 (arm_breakpoint_kinds): Likewise.
9779 (arm_breakpoint_kind_from_pc): Likewise.
9780 (arm_sw_breakpoint_from_kind): Likewise.
9781 (arm_breakpoint_kind_from_current_state): Likewise.
9782 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9783 (arm_sw_breakpoint_from_kind): Declare.
9784 (arm_breakpoint_kind_from_current_state): Declare.
9785 (arm_breakpoint_at): Declare.
9786 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9787 arm_sw_breakpoint_from_kind if process is 32-bit.
9788 (aarch64_breakpoint_kind_from_pc): New function.
9789 (aarch64_breakpoint_kind_from_current_state): New function.
9790 (the_low_target): Initialize fields breakpoint_kind_from_pc
9791 and breakpoint_kind_from_current_state.
9792 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9793 linux-aarch32-low.c.
9794 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9795 (arm_breakpoint, arm_breakpoint_len): Likewise.
9796 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9797 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9798 (arm_is_thumb_mode): Likewise.
9799 (arm_breakpoint_at): Likewise.
9800 (arm_breakpoint_kind_from_pc): Likewise.
9801 (arm_sw_breakpoint_from_kind): Likewise.
9802 (arm_breakpoint_kind_from_current_state): Likewise.
9803
9804 Revert:
9805 2015-08-04 Yao Qi <yao.qi@linaro.org>
9806
9807 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9808 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9809 * server.c (extended_protocol): Remove "static".
9810 * server.h (extended_protocol): Declare it.
9811
9812 2015-12-04 Josh Stone <jistone@redhat.com>
9813
9814 * target.h (struct target_ops) <arch_setup>: Rename to ...
9815 (struct target_ops) <post_create_inferior>: ... this.
9816 (target_arch_setup): Rename to ...
9817 (target_post_create_inferior): ... this, calling post_create_inferior.
9818 * server.c (start_inferior): Update target_arch_setup calls to
9819 target_post_create_inferior.
9820 * linux-low.c (linux_low_ptrace_options): Forward declare.
9821 (linux_arch_setup): Update its comment for general use.
9822 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9823 (struct linux_target_ops): Use linux_post_create_inferior.
9824 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9825 to post_create_inferior.
9826 * nto-low.c (struct nto_target_ops): Likewise.
9827 * spu-low.c (struct spu_target_ops): Likewise.
9828 * win32-low.c (struct win32_target_ops): Likewise.
9829
9830 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9831
9832 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9833
9834 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9835
9836 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9837 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9838 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9839 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9840 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9841 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9842 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9843 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9844 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9845 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9846 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9847 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9848
9849 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9850
9851 * linux-low.c (linux_look_up_symbols): Don't call
9852 linux_supports_traceclone.
9853 * linux-low.h (thread_db_init): Remove use_events argument.
9854 * thread-db.c (thread_db_use_event): Remove global variable.
9855 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9856 (struct thread_db) <td_create_bp>: Remove field.
9857 (thread_db_create_event): Remove function.
9858 (thread_db_enable_reporting): Likewise.
9859 (find_one_thread): Don't check for thread_db_use_events.
9860 (attach_thread): Likewise.
9861 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9862 (try_thread_db_load_1): Don't check for thread_db_use_events.
9863 (thread_db_init): Remove use_events argument and thread events
9864 handling.
9865 (remove_thread_event_breakpoints): Remove function.
9866 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9867
9868 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9869
9870 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9871 New function.
9872 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9873 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9874 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9875 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9876 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9877 Initialize.
9878 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9879 New function.
9880 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9881 * linux-low.c (can_hardware_single_step): Use
9882 supports_hardware_single_step.
9883 (can_software_single_step): New function.
9884 (start_step_over): Call can_software_single_step.
9885 (linux_supports_hardware_single_step): New function.
9886 (struct target_ops) <supports_software_single_step>: Initialize.
9887 * linux-low.h (struct linux_target_ops)
9888 <supports_hardware_single_step>: Initialize.
9889 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9890 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9891 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9892 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9893 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9894 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9895 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9896 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9897 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9898 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9899 Initialize.
9900 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9901 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9902 Initialize.
9903 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9904 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9905 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9906 New function.
9907 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9908 * target.h (struct target_ops): <supports_software_single_step>:
9909 New field.
9910 (target_supports_software_single_step): New macro.
9911
9912 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9913
9914 * linux-low.c (linux_wait_1): Fix pc advance condition.
9915 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9916 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9917
9918 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9919
9920 * linux-arm-low.c (arm_is_thumb_mode): New function.
9921 (arm_breakpoint_at): Use arm_is_thumb_mode.
9922 (arm_breakpoint_kind_from_current_state): New function.
9923 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9924 Initialize.
9925 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9926 (linux_breakpoint_kind_from_current_state): New function.
9927 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9928 * linux-low.h (struct linux_target_ops)
9929 <breakpoint_kind_from_current_state>: New field.
9930 * target.h (struct target_ops): Likewise.
9931 (target_breakpoint_kind_from_current_state): New macro.
9932
9933 2015-11-30 Pedro Alves <palves@redhat.com>
9934
9935 * linux-low.c (linux_resume): Wake up the event loop before
9936 returning.
9937
9938 2015-11-30 Pedro Alves <palves@redhat.com>
9939
9940 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9941 check.
9942 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9943 to -1.
9944 * target.c (struct thread_search): New structure.
9945 (thread_search_callback): New function.
9946 (prev_general_thread): New global.
9947 (prepare_to_access_memory, done_accessing_memory): New functions.
9948 * target.h (prepare_to_access_memory, done_accessing_memory):
9949 Replace macros with function declarations.
9950
9951 2015-11-30 Pedro Alves <palves@redhat.com>
9952
9953 PR 14618
9954 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9955 report TARGET_WAITKIND_NO_RESUMED.
9956 * remote-utils.c (prepare_resume_reply): Handle
9957 TARGET_WAITKIND_NO_RESUMED.
9958 * server.c (report_no_resumed): New global.
9959 (handle_query) <qSupported>: Handle "no-resumed+". Report
9960 "no-resumed+" support.
9961 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9962 return error if the client doesn't support no-resumed events.
9963 (push_stop_notification): New function.
9964 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9965 events if the client supports them.
9966
9967 2015-11-30 Pedro Alves <palves@redhat.com>
9968
9969 * linux-low.c (thread_still_has_status_pending_p): Don't check
9970 vCont;t here.
9971 (lwp_resumed): New function.
9972 (status_pending_p_callback): Return early if the LWP is not
9973 supposed to be resumed.
9974
9975 2015-11-30 Pedro Alves <palves@redhat.com>
9976
9977 * linux-low.c (handle_extended_wait): Assert that the LWP's
9978 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9979 thread create events, leave the new child's status pending.
9980 (linux_low_filter_event): If GDB wants to hear about thread exit
9981 events, leave the LWP marked dead and don't delete it.
9982 (linux_wait_for_event_filtered): Don't check for thread exit.
9983 (filter_exit_event): New function.
9984 (linux_wait_1): Use it, when returning an exit event.
9985 (linux_resume_one_lwp_throw): Assert that the LWP's
9986 waitstatus is TARGET_WAITKIND_IGNORE.
9987 * remote-utils.c (prepare_resume_reply): Handle
9988 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9989 * server.c (report_thread_events): New global.
9990 (handle_general_set): Handle QThreadEvents.
9991 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9992 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9993 TARGET_WAITKIND_THREAD_EXITED.
9994 * server.h (report_thread_events): Declare.
9995
9996 2015-11-30 Pedro Alves <palves@redhat.com>
9997
9998 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9999 the thread's last_resume_kind was resume_stop.
10000
10001 2015-11-30 Pedro Alves <palves@redhat.com>
10002
10003 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10004 before returning.
10005
10006 2015-11-30 Pedro Alves <palves@redhat.com>
10007
10008 * server.c (handle_v_requests): Handle vCtrlC.
10009
10010 2015-11-30 Pedro Alves <palves@redhat.com>
10011
10012 * gdbthread.h (find_any_thread_of_pid): Declare.
10013 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10014 functions.
10015 * server.c (handle_query): If current_thread is NULL, look for
10016 another thread of the selected process.
10017
10018 2015-11-26 Daniel Colascione <dancol@dancol.org>
10019 Simon Marchi <simon.marchi@ericsson.com>
10020
10021 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10022 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10023 name in reply.
10024 * target.h (struct target_ops) <thread_name>: New field.
10025 (target_thread_name): New macro.
10026
10027 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10028
10029 * regcache.h (regcache_invalidate_pid): Add declaration.
10030 * regcache.c (regcache_invalidate_pid): New function, extracted
10031 from regcache_invalidate.
10032 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10033 Add trivial documentation comment.
10034 * lynx-low.c: Use regcache_invalidate_pid instead of
10035 regcache_invalidate.
10036
10037 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10038
10039 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10040 and Elf64_auxv_t if the target is Android.
10041
10042 2015-11-22 Doug Evans <xdje42@gmail.com>
10043
10044 * target.h: #include <sys/types.h>.
10045
10046 2015-11-19 Pedro Alves <palves@redhat.com>
10047
10048 * linux-low.c (linux_process_qsupported): Change prototype.
10049 Adjust.
10050 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10051 Change prototype.
10052 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10053 and adjust to loop over all features.
10054 * server.c (handle_query) <qSupported>: Adjust to call
10055 target_process_qsupported once, passing it a vector of unprocessed
10056 features.
10057 * target.h (struct target_ops) <process_qsupported>: Change
10058 prototype.
10059 (target_process_qsupported): Adjust.
10060
10061 2015-11-19 Pedro Alves <palves@redhat.com>
10062
10063 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10064 mode.
10065 * configure: Regenerate.
10066
10067 2015-11-19 Pedro Alves <palves@redhat.com>
10068
10069 * configure: Regenerate.
10070
10071 2015-11-19 Yao Qi <yao.qi@linaro.org>
10072
10073 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10074 type to uint32_t.
10075
10076 2015-11-19 Yao Qi <yao.qi@linaro.org>
10077
10078 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10079 (struct aarch64_operand): Move enum out.
10080
10081 2015-11-19 Yao Qi <yao.qi@linaro.org>
10082
10083 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10084 struct user_fpsimd_state *.
10085 (aarch64_store_fpregset): Likewise.
10086
10087 2015-11-19 Yao Qi <yao.qi@linaro.org>
10088
10089 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10090 struct user_pt_regs *.
10091 (aarch64_store_gregset): Likewise.
10092
10093 2015-11-18 Pedro Alves <palves@redhat.com>
10094
10095 * Makefile.in (all_object_files): Add $IPA_OBJS.
10096
10097 2015-11-17 Pedro Alves <palves@redhat.com>
10098
10099 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10100 GDB_SIGNAL_0 and gdb_signal_to_string.
10101
10102 2015-11-17 Pedro Alves <palves@redhat.com>
10103
10104 * win32-low.c (handle_output_debug_string): Remove parameter.
10105 (win32_kill): Remove our_status local and adjust call to
10106 handle_output_debug_string.
10107 (get_child_debug_event): Adjust call to
10108 handle_output_debug_string.
10109
10110 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10111
10112 * linux-mips-low.c (mips_fill_gregset): Add cast.
10113 (mips_store_gregset): Likewise.
10114 (mips_fill_fpregset): Likewise.
10115 (mips_store_fpregset): Likewise.
10116
10117 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10118
10119 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10120 priv.
10121
10122 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10123
10124 * linux-mips-low.c (mips_linux_new_thread): Change type of
10125 watch_type to enum target_hw_bp_type.
10126
10127 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10128
10129 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10130 Change return type to arm_hwbp_type.
10131
10132 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10133
10134 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10135 (arm_store_gregset): Likewise.
10136 * linux-arm-low.c (arm_get_hwcap): Likewise.
10137 (arm_read_description): Likewise.
10138
10139 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10140
10141 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10142
10143 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10144
10145 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10146 (ppc_fill_vsxregset): Likewise.
10147 (ppc_store_vsxregset): Likewise.
10148 (ppc_fill_vrregset): Likewise.
10149 (ppc_store_vrregset): Likewise.
10150 (ppc_fill_evrregset): Likewise.
10151 (ppc_store_evrregset): Likewise.
10152
10153 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10154
10155 * linux-ppc-low.c (ppc_usrregs_info): Remove
10156 forward-declaration.
10157 (ppc_arch_setup): Move lower in file.
10158
10159 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10160
10161 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10162 (ps_pdwrite): Likewise.
10163
10164 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10165
10166 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10167 to after assert checks.
10168
10169 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10170
10171 * proc-service.c (ps_pdread): Add/adjust casts.
10172 (ps_pdwrite): Add/adjust casts.
10173
10174 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10175
10176 * server.c (handle_search_memory_1): Cast return value of
10177 memmem.
10178
10179 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10180
10181 * server.c (write_qxfer_response): Change type of data to
10182 gdb_byte *.
10183
10184 2015-10-29 Pedro Alves <palves@redhat.com>
10185
10186 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10187
10188 2015-10-29 Pedro Alves <palves@redhat.com>
10189
10190 * tracepoint.c (clear_installed_tracepoints): Add casts.
10191
10192 2015-10-29 Pedro Alves <palves@redhat.com>
10193
10194 * server.c (handle_v_cont, process_serial_event): Add enum
10195 gdb_signal casts to signal parsing code.
10196
10197 2015-10-29 Pedro Alves <palves@redhat.com>
10198
10199 * linux-low.h (NULL_REGSET): Define.
10200 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10201 * linux-arm-low.c (arm_regsets): Likewise.
10202 * linux-crisv32-low.c (cris_regsets): Likewise.
10203 * linux-m68k-low.c (m68k_regsets): Likewise.
10204 * linux-mips-low.c (mips_regsets): Likewise.
10205 * linux-nios2-low.c (nios2_regsets): Likewise.
10206 * linux-ppc-low.c (ppc_regsets): Likewise.
10207 * linux-s390-low.c (s390_regsets): Likewise.
10208 * linux-sh-low.c (sh_regsets): Likewise.
10209 * linux-sparc-low.c (sparc_regsets): Likewise.
10210 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10211 * linux-tile-low.c (tile_regsets): Likewise.
10212 * linux-x86-low.c (x86_regsets): Likewise.
10213 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10214
10215 2015-10-29 Pedro Alves <palves@redhat.com>
10216
10217 * linux-low.h (NULL_REGSET): Define.
10218 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10219 * linux-arm-low.c (arm_regsets): Likewise.
10220 * linux-crisv32-low.c (cris_regsets): Likewise.
10221 * linux-m68k-low.c (m68k_regsets): Likewise.
10222 * linux-mips-low.c (mips_regsets): Likewise.
10223 * linux-nios2-low.c (nios2_regsets): Likewise.
10224 * linux-ppc-low.c (ppc_regsets): Likewise.
10225 * linux-s390-low.c (s390_regsets): Likewise.
10226 * linux-sh-low.c (sh_regsets): Likewise.
10227 * linux-sparc-low.c (sparc_regsets): Likewise.
10228 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10229 * linux-tile-low.c (tile_regsets): Likewise.
10230 * linux-x86-low.c (x86_regsets): Likewise.
10231 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10232
10233 2015-10-26 Doug Evans <dje@google.com>
10234
10235 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10236
10237 2015-10-26 Doug Evans <dje@google.com>
10238
10239 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10240
10241 2015-10-26 Doug Evans <dje@google.com>
10242
10243 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10244 for debug_printf.
10245 (attach_thread, find_new_threads_callback): Ditto.
10246
10247 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10248
10249 * mem-break.h (set_breakpoint_data): Remove.
10250
10251 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10252
10253 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10254 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10255 (initialize_low): Remove set_breakpoint_data call.
10256 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10257 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10258 (initialize_low): Remove set_breakpoint_data call.
10259 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10260 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10261 (initialize_low): Remove set_breakpoint_data call.
10262
10263 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10264
10265 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10266 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10267 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10268 * target.h (target_breakpoint_kind_from_pc): New macro.
10269
10270 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10271
10272 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10273 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10274 the default breakpoint kind.
10275
10276 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10277
10278 * linux-arm-low.c (arm_supports_z_point_type): Add software
10279 breakpoint support.
10280
10281 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10282
10283 * linux-arm-low.c: Refactor breakpoint definitions.
10284 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10285 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10286
10287 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10288
10289 * Makefile.in: Add arm.c/o.
10290 * configure.srv: Likewise.
10291 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10292 (arm_breakpoint_kind_from_pc): New function.
10293 (arm_sw_breakpoint_from_kind): Return proper kind.
10294 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10295
10296 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10297
10298 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10299 removal.
10300 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10301 (struct raw_breakpoint) <size>: Remove.
10302 (struct raw_breakpoint) <kind>: Add.
10303 (bp_size): New function.
10304 (bp_opcode): Likewise.
10305 (find_raw_breakpoint_at): Adjust for kind.
10306 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10307 (remove_memory_breakpoint): Adjust for kind call bp_size.
10308 (set_raw_breakpoint_at): Adjust for kind.
10309 (set_breakpoint): Likewise.
10310 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10311 (delete_raw_breakpoint): Adjust for kind.
10312 (delete_breakpoint): Likewise.
10313 (find_gdb_breakpoint): Likewise.
10314 (set_gdb_breakpoint_1): Likewise.
10315 (set_gdb_breakpoint): Likewise.
10316 (delete_gdb_breakpoint_1): Likewise.
10317 (delete_gdb_breakpoint): Likewise.
10318 (uninsert_raw_breakpoint): Likewise.
10319 (reinsert_raw_breakpoint): Likewise.
10320 (set_breakpoint_data): Remove.
10321 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10322 (check_mem_read): Adjust for kind call bp_size.
10323 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10324 (clone_one_breakpoint): Adjust for kind.
10325 * mem-break.h (set_gdb_breakpoint): Likewise.
10326 (delete_gdb_breakpoint): Likewise.
10327 * server.c (process_serial_event): Likewise.
10328
10329 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10330
10331 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10332 (struct linux_target_ops) <breakpoint>: Remove.
10333 (struct linux_target_ops) <breakpoint_len>: Remove.
10334 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10335 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10336 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10337 (arm_sw_breakpoint_from_kind): New function.
10338 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10339 (struct linux_target_ops) <breakpoint>: Remove.
10340 (struct linux_target_ops) <breakpoint_len>: Remove.
10341 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10342 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10343 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10344 (struct linux_target_ops) <breakpoint>: Remove.
10345 (struct linux_target_ops) <breakpoint_len>: Remove.
10346 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10347 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10348 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10349 (struct linux_target_ops) <breakpoint>: Remove.
10350 (struct linux_target_ops) <breakpoint_len>: Remove.
10351 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10352 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10353 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10354 and sw_breakpoint_from_kind to increment the pc.
10355 (linux_breakpoint_kind_from_pc): New function.
10356 (linux_sw_breakpoint_from_kind): New function.
10357 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10358 (initialize_low): Call breakpoint_kind_from_pc and
10359 sw_breakpoint_from_kind to replace breakpoint_data/len.
10360 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10361 New field.
10362 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10363 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10364 (struct linux_target_ops) <breakpoint>: Remove.
10365 (struct linux_target_ops) <breakpoint_len>: Remove.
10366 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10367 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10368 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10369 (struct linux_target_ops) <breakpoint>: Remove.
10370 (struct linux_target_ops) <breakpoint_len>: Remove.
10371 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10372 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10373 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10374 (struct linux_target_ops) <breakpoint>: Remove.
10375 (struct linux_target_ops) <breakpoint_len>: Remove.
10376 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10377 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10378 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10379 (struct linux_target_ops) <breakpoint>: Remove.
10380 (struct linux_target_ops) <breakpoint_len>: Remove.
10381 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10382 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10383 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10384 (struct linux_target_ops) <breakpoint>: Remove.
10385 (struct linux_target_ops) <breakpoint_len>: Remove.
10386 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10387 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10388 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10389 (struct linux_target_ops) <breakpoint>: Remove.
10390 (struct linux_target_ops) <breakpoint_len>: Remove.
10391 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10392 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10393 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10394 (struct linux_target_ops) <breakpoint>: Remove.
10395 (struct linux_target_ops) <breakpoint_len>: Remove.
10396 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10397 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10398 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10399 (struct linux_target_ops) <breakpoint>: Remove.
10400 (struct linux_target_ops) <breakpoint_len>: Remove.
10401 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10402 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10403 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10404 (struct linux_target_ops) <breakpoint>: Remove.
10405 (struct linux_target_ops) <breakpoint_len>: Remove.
10406 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10407 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10408 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10409 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10410 (struct linux_target_ops) <breakpoint>: Remove.
10411 (struct linux_target_ops) <breakpoint_len>: Remove.
10412 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10413 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10414 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10415 (struct linux_target_ops) <breakpoint>: Remove.
10416 (struct linux_target_ops) <breakpoint_len>: Remove.
10417 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10418 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10419
10420 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10421
10422 * linux-cris-low.c (cris_get_pc): Remove void arg.
10423
10424 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10425
10426 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10427 variable name.
10428
10429 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10430
10431 * inferiors.c (thread_pid_matches_callback): New function.
10432 (find_thread_process): New function.
10433 (remove_thread): Reset current_thread.
10434 (remove_process): Assert threads have been removed first.
10435
10436 2015-10-15 Yao Qi <yao.qi@linaro.org>
10437
10438 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10439 if it is 3.
10440 (aarch64_remove_point): Likewise.
10441 * regcache.c (regcache_register_size): New function.
10442
10443 2015-10-12 Yao Qi <yao.qi@linaro.org>
10444
10445 * linux-aarch64-low.c: Update all callers as emit_load_store
10446 is renamed to aarch64_emit_load_store.
10447
10448 2015-10-12 Yao Qi <yao.qi@linaro.org>
10449
10450 * linux-aarch64-low.c: Update all callers of function renaming
10451 from emit_insn to aarch64_emit_insn.
10452
10453 2015-10-12 Yao Qi <yao.qi@linaro.org>
10454
10455 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10456 arch/aarch64-insn.h.
10457 (struct aarch64_memory_operand): Likewise.
10458 (ENCODE): Likewise.
10459 (emit_insn): Move to arch/aarch64-insn.c.
10460 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10461 (emit_load_store): Move to arch/aarch64-insn.c.
10462 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10463 (can_encode_int32): Remove.
10464
10465 2015-10-12 Yao Qi <yao.qi@linaro.org>
10466
10467 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10468 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10469 (aarch64_relocate_instruction): Likewise.
10470 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10471 (struct aarch64_insn_visitor): Likewise.
10472
10473 2015-10-12 Yao Qi <yao.qi@linaro.org>
10474
10475 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10476 (struct aarch64_insn_visitor): New.
10477 (struct aarch64_insn_relocation_data): New.
10478 (aarch64_ftrace_insn_reloc_b): New function.
10479 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10480 (aarch64_ftrace_insn_reloc_cb): Likewise.
10481 (aarch64_ftrace_insn_reloc_tb): Likewise.
10482 (aarch64_ftrace_insn_reloc_adr): Likewise.
10483 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10484 (aarch64_ftrace_insn_reloc_others): Likewise.
10485 (visitor): New.
10486 (aarch64_relocate_instruction): Use visitor.
10487
10488 2015-10-12 Yao Qi <yao.qi@linaro.org>
10489
10490 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10491 int. Add argument buf.
10492 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10493 aarch64_relocate_instruction.
10494
10495 2015-10-12 Yao Qi <yao.qi@linaro.org>
10496
10497 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10498 argument insn. Remove local variable insn. Don't call
10499 target_read_uint32.
10500 (aarch64_install_fast_tracepoint_jump_pad): Call
10501 target_read_uint32.
10502
10503 2015-09-30 Yao Qi <yao.qi@linaro.org>
10504
10505 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10506 (emit_load_store_pair): Likewise.
10507
10508 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10509
10510 * dll.c (match_dll): Add cast(s).
10511 (unloaded_dll): Likewise.
10512 * linux-low.c (second_thread_of_pid_p): Likewise.
10513 (delete_lwp_callback): Likewise.
10514 (count_events_callback): Likewise.
10515 (select_event_lwp_callback): Likewise.
10516 (linux_set_resume_request): Likewise.
10517 * server.c (accumulate_file_name_length): Likewise.
10518 (emit_dll_description): Likewise.
10519 (handle_qxfer_threads_worker): Likewise.
10520 (visit_actioned_threads): Likewise.
10521 * thread-db.c (any_thread_of): Likewise.
10522 * tracepoint.c (same_process_p): Likewise.
10523 (match_blocktype): Likewise.
10524 (build_traceframe_info_xml): Likewise.
10525
10526 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10527
10528 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10529 assignment.
10530 (gdb_unparse_agent_expr): Likewise.
10531 * hostio.c (require_data): Likewise.
10532 (handle_pread): Likewise.
10533 * linux-low.c (disable_regset): Likewise.
10534 (fetch_register): Likewise.
10535 (store_register): Likewise.
10536 (get_dynamic): Likewise.
10537 (linux_qxfer_libraries_svr4): Likewise.
10538 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10539 (set_fast_tracepoint_jump): Likewise.
10540 (uninsert_fast_tracepoint_jumps_at): Likewise.
10541 (reinsert_fast_tracepoint_jumps_at): Likewise.
10542 (validate_inserted_breakpoint): Likewise.
10543 (clone_agent_expr): Likewise.
10544 * regcache.c (init_register_cache): Likewise.
10545 * remote-utils.c (putpkt_binary_1): Likewise.
10546 (decode_M_packet): Likewise.
10547 (decode_X_packet): Likewise.
10548 (look_up_one_symbol): Likewise.
10549 (relocate_instruction): Likewise.
10550 (monitor_output): Likewise.
10551 * server.c (handle_search_memory): Likewise.
10552 (handle_qxfer_exec_file): Likewise.
10553 (handle_qxfer_libraries): Likewise.
10554 (handle_qxfer): Likewise.
10555 (handle_query): Likewise.
10556 (handle_v_cont): Likewise.
10557 (handle_v_run): Likewise.
10558 (captured_main): Likewise.
10559 * target.c (write_inferior_memory): Likewise.
10560 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10561 * tracepoint.c (init_trace_buffer): Likewise.
10562 (add_tracepoint_action): Likewise.
10563 (add_traceframe): Likewise.
10564 (add_traceframe_block): Likewise.
10565 (cmd_qtdpsrc): Likewise.
10566 (cmd_qtdv): Likewise.
10567 (cmd_qtstatus): Likewise.
10568 (response_source): Likewise.
10569 (response_tsv): Likewise.
10570 (cmd_qtnotes): Likewise.
10571 (gdb_collect): Likewise.
10572 (initialize_tracepoint): Likewise.
10573
10574 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10575
10576 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10577 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10578 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10579 <NOP>: New.
10580 (enum aarch64_condition_codes): New enum.
10581 (w0): New static global.
10582 (fp): Likewise.
10583 (lr): Likewise.
10584 (struct aarch64_memory_operand) <type>: New
10585 MEMORY_OPERAND_POSTINDEX type.
10586 (postindex_memory_operand): New helper function.
10587 (emit_ret): New function.
10588 (emit_load_store_pair): New function, factored out of emit_stp
10589 with support for MEMORY_OPERAND_POSTINDEX.
10590 (emit_stp): Rewrite using emit_load_store_pair.
10591 (emit_ldp): New function.
10592 (emit_load_store): Likewise.
10593 (emit_ldr): Mention post-index instruction in comment.
10594 (emit_ldrh): New function.
10595 (emit_ldrb): New function.
10596 (emit_ldrsw): Mention post-index instruction in comment.
10597 (emit_str): Likewise.
10598 (emit_subs): New function.
10599 (emit_cmp): Likewise.
10600 (emit_and): Likewise.
10601 (emit_orr): Likewise.
10602 (emit_orn): Likewise.
10603 (emit_eor): Likewise.
10604 (emit_mvn): Likewise.
10605 (emit_lslv): Likewise.
10606 (emit_lsrv): Likewise.
10607 (emit_asrv): Likewise.
10608 (emit_mul): Likewise.
10609 (emit_sbfm): Likewise.
10610 (emit_sbfx): Likewise.
10611 (emit_ubfm): Likewise.
10612 (emit_ubfx): Likewise.
10613 (emit_csinc): Likewise.
10614 (emit_cset): Likewise.
10615 (emit_nop): Likewise.
10616 (emit_ops_insns): New helper function.
10617 (emit_pop): Likewise.
10618 (emit_push): Likewise.
10619 (aarch64_emit_prologue): New function.
10620 (aarch64_emit_epilogue): Likewise.
10621 (aarch64_emit_add): Likewise.
10622 (aarch64_emit_sub): Likewise.
10623 (aarch64_emit_mul): Likewise.
10624 (aarch64_emit_lsh): Likewise.
10625 (aarch64_emit_rsh_signed): Likewise.
10626 (aarch64_emit_rsh_unsigned): Likewise.
10627 (aarch64_emit_ext): Likewise.
10628 (aarch64_emit_log_not): Likewise.
10629 (aarch64_emit_bit_and): Likewise.
10630 (aarch64_emit_bit_or): Likewise.
10631 (aarch64_emit_bit_xor): Likewise.
10632 (aarch64_emit_bit_not): Likewise.
10633 (aarch64_emit_equal): Likewise.
10634 (aarch64_emit_less_signed): Likewise.
10635 (aarch64_emit_less_unsigned): Likewise.
10636 (aarch64_emit_ref): Likewise.
10637 (aarch64_emit_if_goto): Likewise.
10638 (aarch64_emit_goto): Likewise.
10639 (aarch64_write_goto_address): Likewise.
10640 (aarch64_emit_const): Likewise.
10641 (aarch64_emit_call): Likewise.
10642 (aarch64_emit_reg): Likewise.
10643 (aarch64_emit_pop): Likewise.
10644 (aarch64_emit_stack_flush): Likewise.
10645 (aarch64_emit_zero_ext): Likewise.
10646 (aarch64_emit_swap): Likewise.
10647 (aarch64_emit_stack_adjust): Likewise.
10648 (aarch64_emit_int_call_1): Likewise.
10649 (aarch64_emit_void_call_2): Likewise.
10650 (aarch64_emit_eq_goto): Likewise.
10651 (aarch64_emit_ne_goto): Likewise.
10652 (aarch64_emit_lt_goto): Likewise.
10653 (aarch64_emit_le_goto): Likewise.
10654 (aarch64_emit_gt_goto): Likewise.
10655 (aarch64_emit_ge_got): Likewise.
10656 (aarch64_emit_ops_impl): New static global variable.
10657 (aarch64_emit_ops): New target function, return
10658 &aarch64_emit_ops_impl.
10659 (struct linux_target_ops): Install it.
10660
10661 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10662
10663 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10664 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10665 aarch64-ipa.o.
10666 * linux-aarch64-ipa.c: New file.
10667 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10668 and endian.h.
10669 (aarch64_get_thread_area): New target method.
10670 (extract_signed_bitfield): New helper function.
10671 (aarch64_decode_ldr_literal): New function.
10672 (enum aarch64_opcodes): New enum.
10673 (struct aarch64_register): New struct.
10674 (struct aarch64_operand): New struct.
10675 (x0): New static global.
10676 (x1): Likewise.
10677 (x2): Likewise.
10678 (x3): Likewise.
10679 (x4): Likewise.
10680 (w2): Likewise.
10681 (ip0): Likewise.
10682 (sp): Likewise.
10683 (xzr): Likewise.
10684 (aarch64_register): New helper function.
10685 (register_operand): Likewise.
10686 (immediate_operand): Likewise.
10687 (struct aarch64_memory_operand): New struct.
10688 (offset_memory_operand): New helper function.
10689 (preindex_memory_operand): Likewise.
10690 (enum aarch64_system_control_registers): New enum.
10691 (ENCODE): New macro.
10692 (emit_insn): New helper function.
10693 (emit_b): New function.
10694 (emit_bcond): Likewise.
10695 (emit_cb): Likewise.
10696 (emit_tb): Likewise.
10697 (emit_blr): Likewise.
10698 (emit_stp): Likewise.
10699 (emit_ldp_q_offset): Likewise.
10700 (emit_stp_q_offset): Likewise.
10701 (emit_load_store): Likewise.
10702 (emit_ldr): Likewise.
10703 (emit_ldrsw): Likewise.
10704 (emit_str): Likewise.
10705 (emit_ldaxr): Likewise.
10706 (emit_stxr): Likewise.
10707 (emit_stlr): Likewise.
10708 (emit_data_processing_reg): Likewise.
10709 (emit_data_processing): Likewise.
10710 (emit_add): Likewise.
10711 (emit_sub): Likewise.
10712 (emit_mov): Likewise.
10713 (emit_movk): Likewise.
10714 (emit_mov_addr): Likewise.
10715 (emit_mrs): Likewise.
10716 (emit_msr): Likewise.
10717 (emit_sevl): Likewise.
10718 (emit_wfe): Likewise.
10719 (append_insns): Likewise.
10720 (can_encode_int32_in): New helper function.
10721 (aarch64_relocate_instruction): New function.
10722 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10723 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10724 (struct linux_target_ops): Install aarch64_get_thread_area,
10725 aarch64_install_fast_tracepoint_jump_pad and
10726 aarch64_get_min_fast_tracepoint_insn_len.
10727
10728 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10729
10730 * Makefile.in (aarch64-insn.o): New rule.
10731 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10732
10733 2015-09-21 Yao Qi <yao.qi@linaro.org>
10734
10735 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10736
10737 2015-09-21 Yao Qi <yao.qi@linaro.org>
10738
10739 * tracepoint.c (max_jump_pad_size): Remove.
10740
10741 2015-09-18 Yao Qi <yao.qi@linaro.org>
10742
10743 * linux-aarch64-low.c: Don't include sys/uio.h.
10744 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10745
10746 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10747
10748 * tracepoint.c (eval_result_type): Change prototype.
10749 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10750
10751 2015-09-15 Pedro Alves <palves@redhat.com>
10752
10753 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10754 Check whether to report exec events instead of checking whether
10755 multiprocess is enabled.
10756
10757 2015-09-15 Pedro Alves <palves@redhat.com>
10758
10759 PR remote/18965
10760 * remote-utils.c (prepare_resume_reply): Merge
10761 TARGET_WAITKIND_VFORK_DONE switch case with the
10762 TARGET_WAITKIND_FORKED case.
10763
10764 2015-09-15 Yao Qi <yao.qi@linaro.org>
10765
10766 * server.c (handle_query): Check string comparison using
10767 "else if" instead of "if".
10768
10769 2015-09-15 Yao Qi <yao.qi@linaro.org>
10770
10771 * server.c (vCont_supported): New global variable.
10772 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10773 matches. Append ";vContSupported+" to own_buf.
10774 (handle_v_requests): Append ";s;S" to own_buf if target supports
10775 hardware single step or vCont_supported is false.
10776 (capture_main): Set vCont_supported to zero.
10777
10778 2015-09-15 Yao Qi <yao.qi@linaro.org>
10779
10780 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10781 it to ...
10782 (linux_supports_hardware_single_step): ... New function.
10783 (linux_target_ops): Update.
10784 * lynx-low.c (lynx_target_ops): Set field
10785 supports_hardware_single_step to target_can_do_hardware_single_step.
10786 * nto-low.c (nto_target_ops): Likewise.
10787 * spu-low.c (spu_target_ops): Likewise.
10788 * win32-low.c (win32_target_ops): Likewise.
10789 * target.c (target_can_do_hardware_single_step): New function.
10790 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10791 Remove. <supports_hardware_single_step>: New field.
10792 (target_supports_conditional_breakpoints): Remove.
10793 (target_supports_hardware_single_step): New macro.
10794 (target_can_do_hardware_single_step): Declare.
10795 * server.c (handle_query): Use target_supports_hardware_single_step
10796 instead of target_supports_conditional_breakpoints.
10797
10798 2015-09-15 Yao Qi <yao.qi@linaro.org>
10799
10800 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10801 function.
10802 (struct linux_target_ops the_low_target): Install
10803 aarch64_linux_siginfo_fixup.
10804
10805 2015-09-11 Don Breazeal <donb@codesourcery.com>
10806 Luis Machado <lgustavo@codesourcery.com>
10807
10808 * linux-low.c (linux_mourn): Static declaration.
10809 (linux_arch_setup): Move in front of
10810 handle_extended_wait.
10811 (linux_arch_setup_thread): New function.
10812 (handle_extended_wait): Handle exec events. Call
10813 linux_arch_setup_thread. Make event_lwp argument a
10814 pointer-to-a-pointer.
10815 (check_zombie_leaders): Do not check stopped threads.
10816 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10817 (linux_low_filter_event): Add lwp and thread for exec'ing
10818 non-leader thread if leader thread has been deleted.
10819 Refactor code into linux_arch_setup_thread and call it.
10820 Pass child lwp pointer by reference to handle_extended_wait.
10821 (linux_wait_for_event_filtered): Update comment.
10822 (linux_wait_1): Prevent clobbering exec event status.
10823 (linux_supports_exec_events): New function.
10824 (linux_target_ops) <supports_exec_events>: Initialize new member.
10825 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10826 new member.
10827 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10828 * server.c (report_exec_events): New global variable.
10829 (handle_query): Handle qSupported query for exec-events feature.
10830 (captured_main): Initialize report_exec_events.
10831 * server.h (report_exec_events): Declare new global variable.
10832 * target.h (struct target_ops) <supports_exec_events>: New
10833 member.
10834 (target_supports_exec_events): New macro.
10835 * win32-low.c (win32_target_ops) <supports_exec_events>:
10836 Initialize new member.
10837
10838 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10839
10840 * linux-low.c (linux_low_enable_btrace): Remove.
10841 (linux_target_ops): Replace linux_low_enable_btrace with
10842 linux_enable_btrace.
10843
10844 2015-09-03 Yao Qi <yao.qi@linaro.org>
10845
10846 * linux-aarch64-low.c (aarch64_insert_point): Call
10847 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10848 returns true.
10849
10850 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10851
10852 * linux-low.c (check_stopped_by_breakpoint): Use
10853 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10854
10855 2015-08-27 Pedro Alves <palves@redhat.com>
10856
10857 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10858
10859 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10860
10861 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10862 the XNEW-family equivalent.
10863 (compile_bytecodes): Likewise.
10864 * dll.c (loaded_dll): Likewise.
10865 * event-loop.c (append_callback_event): Likewise.
10866 (create_file_handler): Likewise.
10867 (create_file_event): Likewise.
10868 * hostio.c (handle_open): Likewise.
10869 * inferiors.c (add_thread): Likewise.
10870 (add_process): Likewise.
10871 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10872 * linux-arm-low.c (arm_new_process): Likewise.
10873 (arm_new_thread): Likewise.
10874 * linux-low.c (add_to_pid_list): Likewise.
10875 (linux_add_process): Likewise.
10876 (handle_extended_wait): Likewise.
10877 (add_lwp): Likewise.
10878 (enqueue_one_deferred_signal): Likewise.
10879 (enqueue_pending_signal): Likewise.
10880 (linux_resume_one_lwp_throw): Likewise.
10881 (linux_resume_one_thread): Likewise.
10882 (linux_read_memory): Likewise.
10883 (linux_write_memory): Likewise.
10884 * linux-mips-low.c (mips_linux_new_process): Likewise.
10885 (mips_linux_new_thread): Likewise.
10886 (mips_add_watchpoint): Likewise.
10887 * linux-x86-low.c (initialize_low_arch): Likewise.
10888 * lynx-low.c (lynx_add_process): Likewise.
10889 * mem-break.c (set_raw_breakpoint_at): Likewise.
10890 (set_breakpoint): Likewise.
10891 (add_condition_to_breakpoint): Likewise.
10892 (add_commands_to_breakpoint): Likewise.
10893 (clone_agent_expr): Likewise.
10894 (clone_one_breakpoint): Likewise.
10895 * regcache.c (new_register_cache): Likewise.
10896 * remote-utils.c (look_up_one_symbol): Likewise.
10897 * server.c (queue_stop_reply): Likewise.
10898 (start_inferior): Likewise.
10899 (queue_stop_reply_callback): Likewise.
10900 (handle_target_event): Likewise.
10901 * spu-low.c (fetch_ppc_memory): Likewise.
10902 (store_ppc_memory): Likewise.
10903 * target.c (set_target_ops): Likewise.
10904 * thread-db.c (thread_db_load_search): Likewise.
10905 (try_thread_db_load_1): Likewise.
10906 * tracepoint.c (add_tracepoint): Likewise.
10907 (add_tracepoint_action): Likewise.
10908 (create_trace_state_variable): Likewise.
10909 (cmd_qtdpsrc): Likewise.
10910 (cmd_qtro): Likewise.
10911 (add_while_stepping_state): Likewise.
10912 * win32-low.c (child_add_thread): Likewise.
10913 (get_image_name): Likewise.
10914
10915 2015-08-25 Yao Qi <yao.qi@linaro.org>
10916
10917 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10918
10919 2015-08-25 Yao Qi <yao.qi@linaro.org>
10920
10921 * Makefile.in (aarch64-linux.o): New rule.
10922 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10923 srv_tgtobj.
10924 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10925 (aarch64_init_debug_reg_state): Make it extern.
10926 (aarch64_linux_prepare_to_resume): Remove.
10927
10928 2015-08-25 Yao Qi <yao.qi@linaro.org>
10929
10930 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10931 lwp_arch_private_info and ptid_of_lwp.
10932
10933 2015-08-25 Yao Qi <yao.qi@linaro.org>
10934
10935 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10936 Find proc_info by find_process_pid. All callers updated.
10937
10938 2015-08-25 Yao Qi <yao.qi@linaro.org>
10939
10940 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10941 Remove.
10942 (debug_reg_change_callback): Remove.
10943 (aarch64_notify_debug_reg_change): Remove.
10944
10945 2015-08-25 Yao Qi <yao.qi@linaro.org>
10946
10947 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10948 Call current_lwp_ptid.
10949
10950 2015-08-25 Yao Qi <yao.qi@linaro.org>
10951
10952 * linux-aarch64-low.c (debug_reg_change_callback): Use
10953 debug_printf.
10954
10955 2015-08-25 Yao Qi <yao.qi@linaro.org>
10956
10957 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10958
10959 2015-08-25 Yao Qi <yao.qi@linaro.org>
10960
10961 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10962
10963 2015-08-25 Yao Qi <yao.qi@linaro.org>
10964
10965 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10966 the code.
10967
10968 2015-08-25 Yao Qi <yao.qi@linaro.org>
10969
10970 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10971 Remove.
10972 (debug_reg_change_callback): Remove argument entry and add argument
10973 lwp. Remove local variable thread. Don't print thread id in the
10974 debugging output. Don't check whether pid of thread equals to pid.
10975 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10976 iterate_over_lwps instead find_inferior.
10977
10978 2015-08-24 Pedro Alves <palves@redhat.com>
10979
10980 * inferiors.c (get_first_process): New function.
10981 * inferiors.h (get_first_process): New declaration.
10982 * remote-utils.c (read_ptid): Default to the first process in the
10983 list, instead of to the current thread's process.
10984
10985 2015-08-24 Pedro Alves <palves@redhat.com>
10986
10987 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10988 * event-loop.c: Likewise.
10989 * remote-utils.c: Likewise.
10990 * tracepoint.c: Likewise.
10991
10992 2015-08-24 Pedro Alves <palves@redhat.com>
10993
10994 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10995 ptid_get_lwp.
10996
10997 2015-08-21 Pedro Alves <palves@redhat.com>
10998
10999 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11000 instead of literal 1.
11001
11002 2015-08-21 Pedro Alves <palves@redhat.com>
11003
11004 * tdesc.c (default_description): Explicitly zero-initialize.
11005
11006 2015-08-21 Pedro Alves <palves@redhat.com>
11007
11008 PR gdb/18749
11009 * inferiors.c (remove_thread): Discard any pending stop reply for
11010 this thread.
11011 * server.c (remove_all_on_match_pid): Rename to ...
11012 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11013 instead of a pid.
11014 (discard_queued_stop_replies): Change parameter to a ptid. Now
11015 extern.
11016 (handle_v_kill, kill_inferior_callback, captured_main)
11017 (process_serial_event): Adjust.
11018 * server.h (discard_queued_stop_replies): Declare.
11019
11020 2015-08-21 Pedro Alves <palves@redhat.com>
11021
11022 * linux-low.c (wait_for_sigstop): Always switch to no thread
11023 selected if the previously current thread dies.
11024 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11025 process instead of the current thread's.
11026 * remote-utils.c (input_interrupt): Don't check if there's no
11027 current thread.
11028 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11029 current thread to the general thread fails, error out.
11030 (handle_qxfer_auxv, handle_qxfer_libraries)
11031 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11032 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11033 (handle_query): Check if there's a thread selected instead of
11034 checking whether there's any thread in the thread list.
11035 (handle_qxfer_threads, handle_qxfer_btrace)
11036 (handle_qxfer_btrace_conf): Don't error out early if there's no
11037 thread in the thread list.
11038 (handle_v_cont, myresume): Don't set the current thread to the
11039 continue thread.
11040 (process_serial_event) <Hg handling>: Also set thread_id if the
11041 previous general thread is still alive.
11042 (process_serial_event) <g/G handling>: If setting the current
11043 thread to the general thread fails, error out.
11044 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11045 thread's lwp instead of the current thread's.
11046 * target.c (set_desired_thread): If the desired thread was not
11047 found, leave the current thread pointing to NULL. Return an int
11048 (boolean) indicating success.
11049 * target.h (set_desired_thread): Change return type to int.
11050
11051 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11052
11053 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11054 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11055 #includes.
11056 (ps_get_thread_area): New function.
11057
11058 2015-08-19 Gary Benson <gbenson@redhat.com>
11059
11060 * hostio.c (handle_pread): Do not attempt to read more data
11061 than hostio_reply_with_data can fit in a packet.
11062
11063 2015-08-18 Joel Brobecker <brobecker@adacore.com>
11064
11065 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11066
11067 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11068
11069 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11070
11071 2015-08-06 Pedro Alves <palves@redhat.com>
11072
11073 * tracepoint.c (expr_eval_result): Now an int.
11074
11075 2015-08-06 Pedro Alves <palves@redhat.com>
11076
11077 * gdbthread.h (struct regcache): Forward declare.
11078 (struct thread_info) <regcache_data>: Now a struct regcache
11079 pointer.
11080 * inferiors.c (inferior_regcache_data)
11081 (set_inferior_regcache_data): Now work with struct regcache
11082 pointers.
11083 * inferiors.h (struct regcache): Forward declare.
11084 (inferior_regcache_data, set_inferior_regcache_data): Now work
11085 with struct regcache pointers.
11086 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11087 (free_register_cache_thread): Remove struct regcache pointer
11088 casts.
11089
11090 2015-08-06 Pedro Alves <palves@redhat.com>
11091
11092 * server.c (captured_main): On error, print the exception message
11093 to stderr, and if run_once is set, throw a quit.
11094
11095 2015-08-06 Pedro Alves <palves@redhat.com>
11096
11097 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11098 the current thread.
11099
11100 2015-08-06 Pedro Alves <palves@redhat.com>
11101
11102 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11103 reading beyond the passed in buffer length.
11104
11105 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11106
11107 * tracepoint.c (symbol_list) <required>: Remove.
11108
11109 2015-08-06 Pedro Alves <palves@redhat.com>
11110
11111 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11112 count if stopping and suspending threads.
11113 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11114 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11115 (linux_detach): Complete an ongoing step-over.
11116 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11117 throughout.
11118 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11119 (linux_wait_1): If passing a signal to the inferior after
11120 finishing a step-over, unsuspend and re-resume all lwps. If we
11121 see a single-step event but the thread should be continuing, don't
11122 pass the trap to gdb.
11123 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11124 internal_error instead of gdb_assert.
11125 (enqueue_pending_signal): New function.
11126 (check_ptrace_stopped_lwp_gone): Add debug output.
11127 (start_step_over): Use internal_error instead of gdb_assert.
11128 (complete_ongoing_step_over): New function.
11129 (linux_resume_one_thread): Don't resume a suspended thread.
11130 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11131 it stepping.
11132
11133 2015-08-06 Pedro Alves <palves@redhat.com>
11134
11135 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11136 (linux_thread_alive): Use lwp_is_marked_dead.
11137 (extended_event_reported): Delete.
11138 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11139 instead of extended_event_reported.
11140 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11141 as well.
11142 (lwp_is_marked_dead): New function.
11143 (lwp_running): Use lwp_is_marked_dead.
11144 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11145 comment.
11146
11147 2015-08-06 Pedro Alves <palves@redhat.com>
11148
11149 * linux-low.c (linux_wait_1): Move fork event output out of the
11150 !report_to_gdb check. Pass event_child->waitstatus to
11151 target_waitstatus_to_string instead of ourstatus.
11152
11153 2015-08-04 Yao Qi <yao.qi@linaro.org>
11154
11155 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11156 if current_thread is 32 bit.
11157
11158 2015-08-04 Yao Qi <yao.qi@linaro.org>
11159
11160 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11161 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11162 * server.c (extended_protocol): Remove "static".
11163 * server.h (extended_protocol): Declare it.
11164
11165 2015-08-04 Yao Qi <yao.qi@linaro.org>
11166
11167 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11168 both aarch64 and aarch32.
11169 (aarch64_set_pc): Likewise.
11170
11171 2015-08-04 Yao Qi <yao.qi@linaro.org>
11172
11173 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11174 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11175 arm-with-neon.xml to srv_xmlfiles.
11176 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11177 (is_64bit_tdesc): New function.
11178 (aarch64_linux_read_description): New function.
11179 (aarch64_arch_setup): Call aarch64_linux_read_description.
11180 (regs_info): Rename to regs_info_aarch64.
11181 (aarch64_regs_info): Return right regs_info.
11182 (initialize_low_arch): Call initialize_low_arch_aarch32.
11183
11184 2015-08-04 Yao Qi <yao.qi@linaro.org>
11185
11186 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11187 * linux-aarch32-low.c: New file.
11188 * linux-aarch32-low.h: New file.
11189 * linux-arm-low.c (arm_fill_gregset): Move it to
11190 linux-aarch32-low.c.
11191 (arm_store_gregset): Likewise.
11192 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11193 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11194 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11195 (regs_info): Rename to regs_info_arm.
11196 (arm_regs_info): Return regs_info_aarch32 if
11197 have_ptrace_getregset is 1 and target description is
11198 arm_with_neon or arm_with_vfpv3.
11199 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11200 Call initialize_low_arch_aarch32 instead.
11201
11202 2015-08-04 Yao Qi <yao.qi@linaro.org>
11203
11204 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11205 * linux-low.c: ... here.
11206 * linux-low.h (have_ptrace_getregset): Declare it.
11207
11208 2015-08-04 Pedro Alves <palves@redhat.com>
11209
11210 * thread-db.c (struct thread_db): Use new typedefs.
11211 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11212 CHK calls.
11213 (disable_thread_event_reporting): Cast result of dlsym to
11214 destination function pointer type.
11215 (thread_db_mourn): Use td_ta_delete_ftype.
11216
11217 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11218
11219 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11220 arch variant.
11221 (CDX_BREAKPOINT): Define for R2.
11222 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11223 (the_low_target): Add comments.
11224
11225 2015-07-30 Yao Qi <yao.qi@linaro.org>
11226
11227 * linux-arm-low.c (arm_hwcap): Remove it.
11228 (arm_read_description): New local variable arm_hwcap. Don't
11229 set arm_hwcap to zero.
11230
11231 2015-07-30 Yao Qi <yao.qi@linaro.org>
11232
11233 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11234 Use regcache->tdesc instead.
11235 (arm_store_wmmxregset): Likewise.
11236 (arm_fill_vfpregset): Likewise.
11237 (arm_store_vfpregset): Likewise.
11238
11239 2015-07-30 Yao Qi <yao.qi@linaro.org>
11240
11241 * linux-arm-low.c: Include arch/arm.h.
11242 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11243 (arm_store_gregset): Likewise.
11244
11245 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11246
11247 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11248 ptrace's 4th parameter.
11249
11250 2015-07-27 Yao Qi <yao.qi@linaro.org>
11251
11252 * configure.srv (case aarch64*-*-linux*): Don't set
11253 srv_linux_usrregs.
11254
11255 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11256
11257 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11258 sys/ptrace.h.
11259 * linux-arm-low.c: Likewise.
11260 * linux-cris-low.c: Likewise.
11261 * linux-crisv32-low.c: Likewise.
11262 * linux-low.c: Likewise.
11263 * linux-m68k-low.c: Likewise.
11264 * linux-mips-low.c: Likewise.
11265 * linux-nios2-low.c: Likewise.
11266 * linux-s390-low.c: Likewise.
11267 * linux-sparc-low.c: Likewise.
11268 * linux-tic6x-low.c: Likewise.
11269 * linux-tile-low.c: Likewise.
11270 * linux-x86-low.c: Likewise.
11271
11272 2015-07-24 Pedro Alves <palves@redhat.com>
11273
11274 * config.in: Regenerate.
11275 * configure: Regenerate.
11276
11277 2015-07-24 Pedro Alves <palves@redhat.com>
11278
11279 * acinclude.m4: Include ../ptrace.m4.
11280 * configure.ac: Call GDB_AC_PTRACE.
11281 * config.in, configure: Regenerate.
11282
11283 2015-07-24 Yao Qi <yao.qi@linaro.org>
11284
11285 * linux-low.c (linux_create_inferior): Remove setting to
11286 proc->priv->new_inferior.
11287 (linux_attach): Likewise.
11288 (linux_low_filter_event): Likewise.
11289 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11290
11291 2015-07-24 Yao Qi <yao.qi@linaro.org>
11292
11293 * linux-low.c (linux_arch_setup): New function.
11294 (linux_low_filter_event): If proc->tdesc is NULL and
11295 proc->attached is true, call the_low_target.arch_setup.
11296 Otherwise, keep status pending, and return.
11297 (linux_resume_one_lwp_throw): Don't call get_pc if
11298 thread->while_stepping isn't NULL. Don't call
11299 get_thread_regcache if proc->tdesc is NULL.
11300 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11301 (linux_target_ops): Install arch_setup.
11302 * server.c (start_inferior): Call the_target->arch_setup.
11303 * target.h (struct target_ops) <arch_setup>: New field.
11304 (target_arch_setup): New marco.
11305 * lynx-low.c (lynx_target_ops): Update.
11306 * nto-low.c (nto_target_ops): Update.
11307 * spu-low.c (spu_target_ops): Update.
11308 * win32-low.c (win32_target_ops): Update.
11309
11310 2015-07-24 Yao Qi <yao.qi@linaro.org>
11311
11312 * linux-low.c (linux_add_process): Don't set
11313 proc->priv->new_inferior.
11314 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11315 (linux_attach): Likewise.
11316
11317 2015-07-24 Yao Qi <yao.qi@linaro.org>
11318
11319 * server.c (start_inferior): Code refactor.
11320
11321 2015-07-24 Yao Qi <yao.qi@linaro.org>
11322
11323 * server.c (process_serial_event): Set general_thread.
11324
11325 2015-07-21 Yao Qi <yao.qi@linaro.org>
11326
11327 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11328 aarch64_linux_get_debug_reg_capacity.
11329
11330 2015-07-17 Yao Qi <yao.qi@linaro.org>
11331
11332 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11333 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11334 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11335 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11336 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11337 (AARCH64_HWP_ALIGNMENT): Likewise.
11338 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11339 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11340 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11341 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11342 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11343 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11344 (struct aarch64_debug_reg_state): Likewise.
11345 (struct arch_lwp_info): Likewise.
11346 (aarch64_align_watchpoint): Likewise.
11347 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11348 (aarch64_watchpoint_length): Likewise.
11349 (aarch64_point_encode_ctrl_reg): Likewise
11350 (aarch64_point_is_aligned): Likewise.
11351 (aarch64_align_watchpoint): Likewise.
11352 (aarch64_linux_set_debug_regs):
11353 (aarch64_dr_state_insert_one_point): Likewise.
11354 (aarch64_dr_state_remove_one_point): Likewise.
11355 (aarch64_handle_breakpoint): Likewise.
11356 (aarch64_handle_aligned_watchpoint): Likewise.
11357 (aarch64_handle_unaligned_watchpoint): Likewise.
11358 (aarch64_handle_watchpoint): Likewise.
11359
11360 2015-07-17 Yao Qi <yao.qi@linaro.org>
11361
11362 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11363 and don't aarch64_get_debug_reg_state. All callers update.
11364 (aarch64_handle_aligned_watchpoint): Likewise.
11365 (aarch64_handle_unaligned_watchpoint): Likewise.
11366 (aarch64_handle_watchpoint): Likewise.
11367 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11368 (aarch64_remove_point): Likewise.
11369
11370 2015-07-17 Yao Qi <yao.qi@linaro.org>
11371
11372 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11373 debug_printf.
11374 (aarch64_handle_unaligned_watchpoint): Likewise.
11375
11376 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11377
11378 Revert the previous 3 commits:
11379 Move gdb_regex* to common/
11380 Move linux_find_memory_regions_full & co.
11381 gdbserver build-id attribute generator
11382
11383 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11384 Jan Kratochvil <jan.kratochvil@redhat.com>
11385
11386 gdbserver build-id attribute generator.
11387 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11388 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11389 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11390 (find_phdr): New.
11391 (get_dynamic): Use find_pdhr to traverse program headers.
11392 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11393 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11394 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11395 (get_hex_build_id): New.
11396 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11397 to reply XML document.
11398
11399 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11400 Jan Kratochvil <jan.kratochvil@redhat.com>
11401
11402 * target.c: Include target/target-utils.h and fcntl.h.
11403 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11404 (target_fileio_read_stralloc): New functions.
11405
11406 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11407
11408 * Makefile.in (OBS): Add gdb_regex.o.
11409 (gdb_regex.o): New.
11410 * config.in: Rebuilt.
11411 * configure: Rebuilt.
11412
11413 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11414 Jan Kratochvil <jan.kratochvil@redhat.com>
11415
11416 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11417 * Makefile.in (OBS): Add target-utils.o.
11418 (linux-maps.o, target-utils.o): New.
11419 * configure.srv (srv_linux_obj): Add linux-maps.o.
11420
11421 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11422
11423 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11424 function, return 1.
11425 (the_low_target): Install it.
11426
11427 2015-07-14 Pedro Alves <palves@redhat.com>
11428
11429 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11430 Instead, ignore ECHILD, and throw an error for other errnos.
11431
11432 2015-07-10 Pedro Alves <palves@redhat.com>
11433
11434 * event-loop.c (struct callback_event) <data>: Change type to
11435 gdb_client_data instance instead of gdb_client_data pointer.
11436 (append_callback_event): Adjust.
11437
11438 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11439
11440 * linux-aarch64-low.c: Add comments for each linux_target_ops
11441 method. Remove comments already covered in target_ops and
11442 linux_target_ops definitions.
11443 (the_low_target): Add comments for each unimplemented method.
11444
11445 2015-07-09 Yao Qi <yao.qi@linaro.org>
11446
11447 * linux-aarch64-low.c (aarch64_regmap): Remove.
11448 (aarch64_usrregs_info): Remove.
11449 (regs_info): Set field usrregs to NULL.
11450
11451 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11452
11453 * linux-low.c: Include "rsp-low.h"
11454 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11455 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11456 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11457 (handle_btrace_enable_pt): New.
11458 (handle_btrace_general_set): Support "pt".
11459 (handle_btrace_conf_general_set): Support "pt:size".
11460
11461 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11462
11463 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11464 Z_PACKET_SW_BP.
11465
11466 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11467
11468 * linux-aarch64-low.c: Remove comment about endianness.
11469 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11470 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11471 memcmp.
11472
11473 2015-06-24 Gary Benson <gbenson@redhat.com>
11474
11475 * linux-i386-ipa.c (stdint.h): Do not include.
11476 * lynx-i386-low.c (stdint.h): Likewise.
11477 * lynx-ppc-low.c (stdint.h): Likewise.
11478 * mem-break.c (stdint.h): Likewise.
11479 * thread-db.c (stdint.h): Likewise.
11480 * tracepoint.c (stdint.h): Likewise.
11481 * win32-low.c (stdint.h): Likewise.
11482
11483 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11484
11485 * server.c (write_qxfer_response): Update call to
11486 remote_escape_output.
11487
11488 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11489 Jan Kratochvil <jan.kratochvil@redhat.com>
11490
11491 Merge multiple hex conversions.
11492 * gdbreplay.c (tohex): Rename to 'fromhex'.
11493 (logchar): Use fromhex.
11494
11495 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11496
11497 * server.c (handle_qxfer_libraries): Set `version' attribute for
11498 <library-list>.
11499
11500 2015-06-10 Gary Benson <gbenson@redhat.com>
11501
11502 * target.h (struct target_ops) <multifs_open>: New field.
11503 <multifs_unlink>: Likewise.
11504 <multifs_readlink>: Likewise.
11505 * linux-low.c (nat/linux-namespaces.h): New include.
11506 (linux_target_ops): Initialize the_target->multifs_open,
11507 the_target->multifs_unlink and the_target->multifs_readlink.
11508 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11509 * hostio.c (hostio_fs_pid): New static variable.
11510 (hostio_handle_new_gdb_connection): New function.
11511 (handle_setfs): Likewise.
11512 (handle_open): Use the_target->multifs_open as appropriate.
11513 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11514 (handle_readlink): Use the_target->multifs_readlink as
11515 appropriate.
11516 (handle_vFile): Handle vFile:setfs packets.
11517 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11518 after target_handle_new_gdb_connection.
11519
11520 2015-06-10 Gary Benson <gbenson@redhat.com>
11521
11522 * configure.ac (AC_CHECK_FUNCS): Add setns.
11523 * config.in: Regenerate.
11524 * configure: Likewise.
11525 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11526 (linux-namespaces.o): New rule.
11527 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11528
11529 2015-06-09 Gary Benson <gbenson@redhat.com>
11530
11531 * hostio.c (handle_open): Process mode argument with
11532 fileio_to_host_mode.
11533
11534 2015-06-01 Yao Qi <yao.qi@linaro.org>
11535
11536 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11537 * linux-x86-low.c: Likewise.
11538
11539 2015-05-28 Don Breazeal <donb@codesourcery.com>
11540
11541 * linux-low.c (handle_extended_wait): Initialize
11542 thread_info.last_resume_kind for new fork children.
11543
11544 2015-05-15 Pedro Alves <palves@redhat.com>
11545
11546 * target.h (target_handle_new_gdb_connection): Rewrite using if
11547 wrapped in do/while.
11548
11549 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11550
11551 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11552 * configure, config.in: Regenerate.
11553 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11554 Declare typedef.
11555
11556 2015-05-12 Don Breazeal <donb@codesourcery.com>
11557
11558 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11559 PTRACE_EVENT_VFORK_DONE.
11560 (linux_low_ptrace_options, extended_event_reported): Add vfork
11561 events.
11562 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11563 and "vforkdone" for RSP 'T' Stop Reply Packet.
11564 * server.h (report_vfork_events): Declare
11565 global variable.
11566
11567 2015-05-12 Don Breazeal <donb@codesourcery.com>
11568
11569 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11570 (the_low_target) <new_fork>: Initialize new member.
11571 * linux-arm-low.c (arm_new_fork): New function.
11572 (the_low_target) <new_fork>: Initialize new member.
11573 * linux-low.c (handle_extended_wait): Call new target function
11574 new_fork.
11575 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11576 * linux-mips-low.c (mips_add_watchpoint): New function
11577 extracted from mips_insert_point.
11578 (the_low_target) <new_fork>: Initialize new member.
11579 (mips_linux_new_fork): New function.
11580 (mips_insert_point): Call mips_add_watchpoint.
11581 * linux-x86-low.c (x86_linux_new_fork): New function.
11582 (the_low_target) <new_fork>: Initialize new member.
11583
11584 2015-05-12 Don Breazeal <donb@codesourcery.com>
11585
11586 * linux-low.c (handle_extended_wait): Implement return value,
11587 rename argument 'event_child' to 'event_lwp', handle
11588 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11589 (linux_low_ptrace_options): New function.
11590 (linux_low_filter_event): Call linux_low_ptrace_options,
11591 use different argument fo linux_enable_event_reporting,
11592 use return value from handle_extended_wait.
11593 (extended_event_reported): New function.
11594 (linux_wait_1): Call extended_event_reported and set
11595 status to report fork events.
11596 (linux_write_memory): Add pid to debug message.
11597 (reset_lwp_ptrace_options_callback): New function.
11598 (linux_handle_new_gdb_connection): New function.
11599 (linux_target_ops): Initialize new structure member.
11600 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11601 * lynx-low.c: Initialize new structure member.
11602 * remote-utils.c (prepare_resume_reply): Implement stop reason
11603 "fork" for "T" stop message.
11604 * server.c (handle_query): Call handle_new_gdb_connection.
11605 * server.h (report_fork_events): Declare global flag.
11606 * target.h (struct target_ops) <handle_new_gdb_connection>:
11607 New member.
11608 (target_handle_new_gdb_connection): New macro.
11609 * win32-low.c: Initialize new structure member.
11610
11611 2015-05-12 Don Breazeal <donb@codesourcery.com>
11612
11613 * mem-break.c (APPEND_TO_LIST): Define macro.
11614 (clone_agent_expr): New function.
11615 (clone_one_breakpoint): New function.
11616 (clone_all_breakpoints): New function.
11617 * mem-break.h: Declare new functions.
11618
11619 2015-05-12 Don Breazeal <donb@codesourcery.com>
11620
11621 * linux-low.c (linux_supports_fork_events): New function.
11622 (linux_supports_vfork_events): New function.
11623 (linux_target_ops): Initialize new structure members.
11624 (initialize_low): Call linux_check_ptrace_features.
11625 * lynx-low.c (lynx_target_ops): Initialize new structure
11626 members.
11627 * server.c (report_fork_events, report_vfork_events):
11628 New global flags.
11629 (handle_query): Add new features to qSupported packet and
11630 response.
11631 (captured_main): Initialize new global variables.
11632 * target.h (struct target_ops) <supports_fork_events>:
11633 New member.
11634 <supports_vfork_events>: New member.
11635 (target_supports_fork_events): New macro.
11636 (target_supports_vfork_events): New macro.
11637 * win32-low.c (win32_target_ops): Initialize new structure
11638 members.
11639
11640 2015-05-12 Gary Benson <gbenson@redhat.com>
11641
11642 * server.c (handle_qxfer_exec_file): Use current process
11643 if annex is empty.
11644
11645 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11646
11647 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11648 Remove HAVE_PTRACE_GETREGS conditionals.
11649 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11650 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11651
11652 2015-05-08 Yao Qi <yao.qi@linaro.org>
11653
11654 * linux-low.c (linux_supports_conditional_breakpoints): New
11655 function.
11656 (linux_target_ops): Install new target method.
11657 * lynx-low.c (lynx_target_ops): Install NULL hook for
11658 supports_conditional_breakpoints.
11659 * nto-low.c (nto_target_ops): Likewise.
11660 * spu-low.c (spu_target_ops): Likewise.
11661 * win32-low.c (win32_target_ops): Likewise.
11662 * server.c (handle_query): Check
11663 target_supports_conditional_breakpoints.
11664 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11665 New field.
11666 (target_supports_conditional_breakpoints): New macro.
11667
11668 2015-05-06 Pedro Alves <palves@redhat.com>
11669
11670 PR server/18081
11671 * server.c (start_inferior): If the process exits, mourn it.
11672
11673 2015-04-21 Gary Benson <gbenson@redhat.com>
11674
11675 * hostio.c (fileio_open_flags_to_host): Factored out to
11676 fileio_to_host_openflags in common/fileio.c. Single use
11677 updated.
11678
11679 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11680
11681 * linux-xtensa-low.c (xtensa_fill_gregset)
11682 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11683 XCHAL_HAVE_LOOP.
11684
11685 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11686
11687 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11688 (regs_info): Replace usrregs pointer with NULL.
11689
11690 2015-04-17 Gary Benson <gbenson@redhat.com>
11691
11692 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11693 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11694 * server.c (handle_qxfer_exec_file): New function.
11695 (qxfer_packets): Add exec-file entry.
11696 (handle_query): Report qXfer:exec-file:read as supported packet.
11697
11698 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11699
11700 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11701
11702 2015-04-09 Gary Benson <gbenson@redhat.com>
11703
11704 * hostio-errno.c (errno_to_fileio_error): Remove function.
11705 Update caller to use remote_fileio_to_fio_error.
11706
11707 2015-04-09 Yao Qi <yao.qi@linaro.org>
11708
11709 * linux-low.c (linux_insert_point): Call
11710 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11711 (linux_remove_point): Call remove_memory_breakpoint if type is
11712 raw_bkpt_type_sw.
11713 * linux-x86-low.c (x86_insert_point): Don't call
11714 insert_memory_breakpoint.
11715 (x86_remove_point): Don't call remove_memory_breakpoint.
11716
11717 2015-04-01 Pedro Alves <palves@redhat.com>
11718 Cleber Rosa <crosa@redhat.com>
11719
11720 * server.c (gdbserver_usage): Reorganize and extend the usage
11721 message.
11722
11723 2015-03-24 Pedro Alves <palves@redhat.com>
11724
11725 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11726 output. Also dump TRAP_TRACE.
11727 (linux_low_filter_event): In debug output, distinguish a
11728 resume_stop SIGSTOP from a delayed SIGSTOP.
11729
11730 2015-03-24 Gary Benson <gbenson@redhat.com>
11731
11732 * linux-x86-low.c (x86_linux_new_thread): Moved to
11733 nat/x86-linux.c.
11734 (x86_linux_prepare_to_resume): Likewise.
11735
11736 2015-03-24 Gary Benson <gbenson@redhat.com>
11737
11738 * Makefile.in (x86-linux-dregs.o): New rule.
11739 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11740 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11741 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11742 (x86_linux_dr_get): Likewise.
11743 (x86_linux_dr_set): Likewise.
11744 (update_debug_registers_callback): Likewise.
11745 (x86_linux_dr_set_addr): Likewise.
11746 (x86_linux_dr_get_addr): Likewise.
11747 (x86_linux_dr_set_control): Likewise.
11748 (x86_linux_dr_get_control): Likewise.
11749 (x86_linux_dr_get_status): Likewise.
11750 (x86_linux_update_debug_registers): Likewise.
11751
11752 2015-03-24 Gary Benson <gbenson@redhat.com>
11753
11754 * linux-x86-low.c (x86_linux_update_debug_registers):
11755 New function, factored out from...
11756 (x86_linux_prepare_to_resume): ...this.
11757
11758 2015-03-24 Gary Benson <gbenson@redhat.com>
11759
11760 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11761 (x86_linux_dr_set): Likewise.
11762 (update_debug_registers_callback): Likewise.
11763 (x86_linux_dr_set_addr): Likewise.
11764 (x86_linux_dr_get_addr): Likewise.
11765 (x86_linux_dr_set_control): Likewise.
11766 (x86_linux_dr_get_control): Likewise.
11767 (x86_linux_dr_get_status): Likewise.
11768 (x86_linux_prepare_to_resume): Likewise.
11769
11770 2015-03-24 Gary Benson <gbenson@redhat.com>
11771
11772 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11773 Use perror_with_name. Pass string through gettext.
11774 (x86_linux_dr_set): Likewise.
11775
11776 2015-03-24 Gary Benson <gbenson@redhat.com>
11777
11778 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11779 (x86_linux_dr_set_addr): ...this.
11780 (x86_dr_low_get_addr): Rename to...
11781 (x86_linux_dr_get_addr): ...this.
11782 (x86_dr_low_set_control): Rename to...
11783 (x86_linux_dr_set_control): ...this.
11784 (x86_dr_low_get_control): Rename to...
11785 (x86_linux_dr_get_control): ...this.
11786 (x86_dr_low_get_status): Rename to...
11787 (x86_linux_dr_get_status): ...this.
11788 (x86_dr_low): Update with new function names.
11789
11790 2015-03-24 Gary Benson <gbenson@redhat.com>
11791
11792 * Makefile.in (x86-linux.o): New rule.
11793 * configure.srv: Add x86-linux.o to relevant targets.
11794 * linux-low.c (lwp_set_arch_private_info): New function.
11795 (lwp_arch_private_info): Likewise.
11796 * linux-x86-low.c: Include nat/x86-linux.h.
11797 (arch_lwp_info): Removed structure.
11798 (update_debug_registers_callback):
11799 Use lwp_set_debug_registers_changed.
11800 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11801 and lwp_set_debug_registers_changed.
11802 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11803
11804 2015-03-24 Gary Benson <gbenson@redhat.com>
11805
11806 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11807 * linux-arm-low.c (arm_new_thread): Likewise.
11808 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11809 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11810 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11811 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11812
11813 2015-03-24 Gary Benson <gbenson@redhat.com>
11814
11815 * linux-low.c (ptid_of_lwp): New function.
11816 (lwp_is_stopped): Likewise.
11817 (lwp_stop_reason): Likewise.
11818 * linux-x86-low.c (update_debug_registers_callback):
11819 Use lwp_is_stopped.
11820 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11821 lwp_stop_reason.
11822
11823 2015-03-24 Gary Benson <gbenson@redhat.com>
11824
11825 * linux-low.h (linux_stop_lwp): Remove declaration.
11826
11827 2015-03-24 Gary Benson <gbenson@redhat.com>
11828
11829 * linux-low.h: Include nat/linux-nat.h.
11830 * linux-low.c (iterate_over_lwps_args): New structure.
11831 (iterate_over_lwps_filter): New function.
11832 (iterate_over_lwps): Likewise.
11833 * linux-x86-low.c (update_debug_registers_callback):
11834 Update signature to what iterate_over_lwps expects.
11835 Remove PID check that iterate_over_lwps now performs.
11836 (x86_dr_low_set_addr): Use iterate_over_lwps.
11837 (x86_dr_low_set_control): Likewise.
11838
11839 2015-03-24 Gary Benson <gbenson@redhat.com>
11840
11841 * linux-x86-low.c (x86_debug_reg_state): New function.
11842 (x86_linux_prepare_to_resume): Use the above.
11843
11844 2015-03-24 Gary Benson <gbenson@redhat.com>
11845
11846 * linux-low.c (current_lwp_ptid): New function.
11847 * linux-x86-low.c: Include nat/linux-nat.h.
11848 (x86_dr_low_get_addr): Use current_lwp_ptid.
11849 (x86_dr_low_get_control): Likewise.
11850 (x86_dr_low_get_status): Likewise.
11851
11852 2015-03-20 Pedro Alves <palves@redhat.com>
11853
11854 * tracepoint.c (cmd_qtstatus): Make "str" const.
11855
11856 2015-03-20 Pedro Alves <palves@redhat.com>
11857
11858 * server.c (handle_general_set): Make "req_str" const.
11859
11860 2015-03-19 Pedro Alves <palves@redhat.com>
11861
11862 * linux-low.c (linux_resume_one_lwp): Rename to ...
11863 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11864 instead call perror_with_name.
11865 (check_ptrace_stopped_lwp_gone): New function.
11866 (linux_resume_one_lwp): Reimplement as wrapper around
11867 linux_resume_one_lwp_throw that swallows errors if the LWP is
11868 gone.
11869
11870 2015-03-19 Pedro Alves <palves@redhat.com>
11871
11872 * linux-low.c (count_events_callback, select_event_lwp_callback):
11873 No longer check whether the thread has resume_stop as last resume
11874 kind.
11875
11876 2015-03-19 Pedro Alves <palves@redhat.com>
11877
11878 * linux-low.c (count_events_callback, select_event_lwp_callback):
11879 Use the lwp's status_pending_p field, not the thread's.
11880
11881 2015-03-19 Pedro Alves <palves@redhat.com>
11882
11883 * linux-low.c (select_event_lwp_callback): Update comments to
11884 no longer mention SIGTRAP.
11885
11886 2015-03-18 Gary Benson <gbenson@redhat.com>
11887
11888 * server.c (handle_query): Do not report vFile:fstat as supported.
11889
11890 2015-03-11 Gary Benson <gbenson@redhat.com>
11891
11892 * hostio.c (sys/types.h): New include.
11893 (sys/stat.h): Likewise.
11894 (common-remote-fileio.h): Likewise.
11895 (handle_fstat): New function.
11896 (handle_vFile): Handle vFile:fstat packets.
11897
11898 2015-03-11 Gary Benson <gbenson@redhat.com>
11899
11900 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11901 struct stat.st_blocks and struct stat.st_blksize.
11902 * configure: Regenerate.
11903 * config.in: Likewise.
11904 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11905 (OBS): Add common-remote-fileio.o.
11906 (common-remote-fileio.o): New rule.
11907
11908 2015-03-09 Pedro Alves <palves@redhat.com>
11909
11910 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11911 'struct sockaddr' pointer in 'accept' call.
11912
11913 2015-03-09 Pedro Alves <palves@redhat.com>
11914
11915 Revert:
11916 2015-03-07 Pedro Alves <palves@redhat.com>
11917 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11918 or <winsock2.h> here. Instead include "gdb_socket.h".
11919 (remote_open): Use union gdb_sockaddr_u.
11920 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11921 or <winsock2.h> here. Instead include "gdb_socket.h".
11922 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11923 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11924 or <sys/un.h>.
11925 (init_named_socket, gdb_agent_helper_thread): Use union
11926 gdb_sockaddr_u.
11927
11928 2015-03-07 Pedro Alves <palves@redhat.com>
11929
11930 * configure.ac (build_warnings): Move
11931 -Wdeclaration-after-statement to the C-specific set.
11932 * configure: Regenerate.
11933
11934 2015-03-07 Pedro Alves <palves@redhat.com>
11935
11936 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11937 or <winsock2.h> here. Instead include "gdb_socket.h".
11938 (remote_open): Use union gdb_sockaddr_u.
11939 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11940 or <winsock2.h> here. Instead include "gdb_socket.h".
11941 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11942 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11943 or <sys/un.h>.
11944 (init_named_socket, gdb_agent_helper_thread): Use union
11945 gdb_sockaddr_u.
11946
11947 2015-03-07 Pedro Alves <palves@redhat.com>
11948
11949 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11950 instead.
11951
11952 2015-03-06 Yao Qi <yao.qi@linaro.org>
11953
11954 * linux-aarch64-low.c (aarch64_insert_point): Use
11955 show_debug_regs as a boolean.
11956 (aarch64_remove_point): Likewise.
11957
11958 2015-03-05 Pedro Alves <palves@redhat.com>
11959
11960 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11961 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11962 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11963 * nto-low.c (nto_target_ops): Likewise.
11964 * spu-low.c (spu_target_ops): Likewise.
11965 * win32-low.c (win32_target_ops): Likewise.
11966
11967 2015-03-04 Pedro Alves <palves@redhat.com>
11968
11969 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11970 Decide whether a breakpoint triggered based on the SIGTRAP's
11971 siginfo.si_code.
11972 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11973 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11974 (linux_low_filter_event): Check for breakpoints before checking
11975 watchpoints.
11976 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11977 siginfo.si_code.
11978 (linux_stopped_by_sw_breakpoint)
11979 (linux_supports_stopped_by_sw_breakpoint)
11980 (linux_stopped_by_hw_breakpoint)
11981 (linux_supports_stopped_by_hw_breakpoint): New functions.
11982 (linux_target_ops): Install new target methods.
11983
11984 2015-03-04 Pedro Alves <palves@redhat.com>
11985
11986 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11987 * server.c (swbreak_feature, hwbreak_feature): New globals.
11988 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11989 (captured_main): Clear swbreak_feature and hwbreak_feature.
11990 * server.h (swbreak_feature, hwbreak_feature): Declare.
11991 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11992 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11993 supports_stopped_by_hw_breakpoint>: New fields.
11994 (target_supports_stopped_by_sw_breakpoint)
11995 (target_stopped_by_sw_breakpoint)
11996 (target_supports_stopped_by_hw_breakpoint)
11997 (target_stopped_by_hw_breakpoint): Declare.
11998
11999 2015-03-04 Pedro Alves <palves@redhat.com>
12000
12001 enum lwp_stop_reason -> enum target_stop_reason
12002 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12003 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12004 (linux_wait_1, stuck_in_jump_pad_callback)
12005 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12006 (linux_stopped_by_watchpoint):
12007 * linux-low.h (enum lwp_stop_reason): Delete.
12008 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12009 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12010
12011 2015-03-04 Yao Qi <yao.qi@linaro.org>
12012
12013 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12014
12015 2015-03-03 Gary Benson <gbenson@redhat.com>
12016
12017 * hostio.c (handle_vFile): Fix prefix lengths.
12018
12019 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12020
12021 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12022 ptr_bits.
12023
12024 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12025
12026 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12027 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12028 (clean): Add "rm -f" for above C files.
12029 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12030 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12031 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12032 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12033 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12034 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12035 (init_registers_s390x_vx_linux64)
12036 (init_registers_s390x_tevx_linux64)
12037 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12038 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12039 declarations.
12040 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12041 (s390_store_vxrs_high): New functions.
12042 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12043 NT_S390_VXRS_HIGH.
12044 (s390_arch_setup): Add logic for selecting one of the new target
12045 descriptions. Activate the new vector regsets if applicable.
12046 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12047 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12048 and init_registers_s390x_tevx_linux64.
12049
12050 2015-03-01 Pedro Alves <palves@redhat.com>
12051
12052 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12053 parameter.
12054
12055 2015-02-27 Pedro Alves <palves@redhat.com>
12056
12057 * linux-x86-low.c (u_debugreg_offset): New function.
12058 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12059
12060 2015-02-27 Pedro Alves <palves@redhat.com>
12061
12062 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12063 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12064 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12065 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12066 (ps_lsetfpregs, ps_getpid)
12067 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12068 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12069 (ps_lsetxregs, ps_plog): Declare.
12070
12071 2015-02-27 Pedro Alves <palves@redhat.com>
12072
12073 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12074 IP_AGENT_EXPORT_FUNC.
12075 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12076 IP_AGENT_EXPORT_FUNC.
12077 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12078 (IP_AGENT_EXPORT): Delete.
12079 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12080 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12081 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12082 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12083 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12084 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12085 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12086 (traceframe_read_count, traceframe_write_count)
12087 (traceframes_created, trace_state_variables, get_raw_reg)
12088 (get_trace_state_variable_value, set_trace_state_variable_value)
12089 (ust_loaded, helper_thread_id, cmd_buf): Use
12090 IPA_SYM_EXPORTED_NAME.
12091 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12092 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12093 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12094 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12095 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12096 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12097 EXTERN_C_PUSH/EXTERN_C_POP.
12098 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12099 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12100 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12101 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12102 (traceframe_write_count, traceframe_read_count)
12103 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12104 (about_to_request_buffer_space, get_trace_state_variable_value)
12105 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12106 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12107 EXTERN_C_PUSH/EXTERN_C_POP.
12108 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12109 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12110 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12111 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12112 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12113 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12114 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12115 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12116 Define.
12117 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12118 (IP_AGENT_EXPORT_VAR_DECL): Define.
12119 (tracing): Declare.
12120 (gdb_agent_get_raw_reg): Declare.
12121
12122 2015-02-27 Tom Tromey <tromey@redhat.com>
12123 Pedro Alves <palves@redhat.com>
12124
12125 Rename symbols whose names are reserved C++ keywords throughout.
12126
12127 2015-02-27 Pedro Alves <palves@redhat.com>
12128
12129 * Makefile.in (COMPILER): New, get it from autoconf.
12130 (CXX): Get from autoconf instead.
12131 (COMPILE.pre): Use COMPILER.
12132 (CC-LD): Rename to ...
12133 (CC_LD): ... this. Use COMPILER.
12134 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12135 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12136 * acinclude.m4: Include build-with-cxx.m4.
12137 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12138 Disable -Werror by default if building in C++ mode.
12139 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12140 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12141 the C++ compiler. Save/restore CXXFLAGS too.
12142 * configure: Regenerate.
12143
12144 2015-02-27 Pedro Alves <palves@redhat.com>
12145
12146 * acinclude.m4: Include libiberty.m4.
12147 * configure.ac: Call libiberty_INIT.
12148 * config.in, configure: Regenerate.
12149
12150 2015-02-26 Pedro Alves <palves@redhat.com>
12151
12152 * linux-low.c (linux_wait_1): When incrementing the PC past a
12153 program breakpoint always use the_low_target.breakpoint_len as
12154 increment, rather than the maximum between that and
12155 the_low_target.decr_pc_after_break.
12156
12157 2015-02-23 Pedro Alves <palves@redhat.com>
12158
12159 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12160 thread was doing a step-over; always adjust the PC if
12161 we stepped over a permanent breakpoint.
12162 (linux_wait_1): If we stepped over breakpoint that was on top of a
12163 permanent breakpoint, manually advance the PC past it.
12164
12165 2015-02-23 Pedro Alves <palves@redhat.com>
12166
12167 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12168 modes.
12169 (x86_fill_gregset, x86_store_gregset): Use it when handling
12170 $orig_eax.
12171
12172 2015-02-20 Pedro Alves <palves@redhat.com>
12173
12174 * thread-db.c: Include "nat/linux-procfs.h".
12175 (thread_db_init): Skip listing new threads if the kernel supports
12176 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12177
12178 2015-02-20 Pedro Alves <palves@redhat.com>
12179
12180 * linux-low.c (status_pending_p_callback): Use ptid_match.
12181
12182 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12183
12184 PR breakpoints/16812
12185 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12186 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12187 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12188
12189 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12190
12191 PR breakpoints/15956
12192 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12193
12194 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12195
12196 * linux-low.c (linux_low_btrace_conf): Print size.
12197 * server.c (handle_btrace_conf_general_set): New.
12198 (hanle_general_set): Call handle_btrace_conf_general_set.
12199 (handle_query): Report Qbtrace-conf:bts:size as supported.
12200
12201 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12202
12203 * linux-low.c (linux_low_enable_btrace): Update parameters.
12204 (linux_low_btrace_conf): New.
12205 (linux_target_ops)<to_btrace_conf>: Initialize.
12206 * server.c (current_btrace_conf): New.
12207 (handle_btrace_enable): Rename to ...
12208 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12209 to target_enable_btrace. Update comment. Update users.
12210 (handle_qxfer_btrace_conf): New.
12211 (qxfer_packets): Add btrace-conf entry.
12212 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12213 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12214 (target_ops)<read_btrace_conf>: New.
12215 (target_enable_btrace): Update parameters.
12216 (target_read_btrace_conf): New.
12217
12218 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12219
12220 * server.c (handle_btrace_general_set): Remove call to
12221 target_supports_btrace.
12222 (supported_btrace_packets): New.
12223 (handle_query): Call supported_btrace_packets.
12224 * target.h: include btrace-common.h.
12225 (btrace_target_info): Removed.
12226 (supports_btrace, target_supports_btrace): Update parameters.
12227
12228 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12229
12230 * Makefile.in (SFILES): Add common/btrace-common.c.
12231 (OBS): Add common/btrace-common.o.
12232 (btrace-common.o): Add build rules.
12233 * linux-low: Include btrace-common.h.
12234 (linux_low_read_btrace): Use struct btrace_data. Call
12235 btrace_data_init and btrace_data_fini.
12236
12237 2015-02-06 Pedro Alves <palves@redhat.com>
12238
12239 * thread-db.c (find_new_threads_callback): Add debug output.
12240
12241 2015-02-04 Pedro Alves <palves@redhat.com>
12242
12243 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12244 (resume_stopped_resumed_lwps): New function.
12245 (linux_wait_for_event_filtered): Use it.
12246
12247 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12248
12249 * Makefile.in (SFILES): Add linux-personality.c.
12250 (linux-personality.o): New rule.
12251 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12252 list of objects to be built.
12253 * linux-low.c: Include nat/linux-personality.h.
12254 (linux_create_inferior): Remove code to disable address space
12255 randomization (moved to ../nat/linux-personality.c). Create
12256 cleanup to disable address space randomization.
12257
12258 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12259
12260 * Makefile.in (posix-strerror.o): New rule.
12261 (mingw-strerror.o): Likewise.
12262 * configure: Regenerated.
12263 * configure.ac: Source file ../common/common.host. Initialize new
12264 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12265
12266 2015-01-14 Yao Qi <yao@codesourcery.com>
12267
12268 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12269 (ppc-linux.o): New rule.
12270 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12271 * configure.ac: AC_CHECK_FUNCS(getauxval).
12272 * config.in: Re-generated.
12273 * configure: Re-generated.
12274 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12275 ppc64_64bit_inferior_p
12276
12277 2015-01-14 Yao Qi <yao@codesourcery.com>
12278
12279 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12280 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12281 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12282 (PT_ORIG_R3, PT_TRAP): Likewise.
12283 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12284 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12285 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12286
12287 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12288
12289 * i387-fp.c (i387_cache_to_xsave): In look over
12290 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12291 zmmh_low_space field by use of zmmh_high_space.
12292
12293 2015-01-09 Pedro Alves <palves@redhat.com>
12294
12295 * linux-low.c (step_over_bkpt): Move higher up in the file.
12296 (handle_extended_wait): Don't store the stop_pc here.
12297 (get_stop_pc): Adjust comments and rename to ...
12298 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12299 stopped for a software breakpoint or hardware breakpoint.
12300 (thread_still_has_status_pending_p): New function.
12301 (status_pending_p_callback): Use
12302 thread_still_has_status_pending_p. If the event is no longer
12303 interesting, resume the LWP.
12304 (handle_tracepoints): Add assert.
12305 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12306 (wstatus_maybe_breakpoint): New function.
12307 (cancel_breakpoint): Delete function.
12308 (check_stopped_by_watchpoint): New function, factored out from
12309 linux_low_filter_event.
12310 (lp_status_maybe_breakpoint): Delete function.
12311 (linux_low_filter_event): Remove filter_ptid argument.
12312 Leave thread group exits pending here. Store the LWP's stop PC.
12313 Always leave events pending.
12314 (linux_wait_for_event_filtered): Pull all events out of the
12315 kernel, and leave them all pending.
12316 (count_events_callback, select_event_lwp_callback): Consider all
12317 events.
12318 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12319 (select_event_lwp): Only give preference to the stepping LWP in
12320 all-stop mode. Adjust comments.
12321 (ignore_event): New function.
12322 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12323 references to cancel_breakpoints. Adjust to renames. Also give
12324 equal priority to all LWPs that have had events in non-stop mode.
12325 If reporting a software breakpoint event, unadjust the LWP's PC.
12326 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12327 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12328 Adjust.
12329 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12330 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12331 (linux_stopped_by_watchpoint): Adjust.
12332 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12333 * linux-low.h (enum lwp_stop_reason): New.
12334 (struct lwp_info) <stop_pc>: Adjust comment.
12335 <stopped_by_watchpoint>: Delete field.
12336 <stop_reason>: New field.
12337 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12338 * mem-break.c (software_breakpoint_inserted_here)
12339 (hardware_breakpoint_inserted_here): New function.
12340 * mem-break.h (software_breakpoint_inserted_here)
12341 (hardware_breakpoint_inserted_here): Declare.
12342 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12343 (cancel_breakpoints): Delete.
12344 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12345 (upload_fast_traceframes): Remove references to
12346 cancel_breakpoints.
12347
12348 2015-01-09 Pedro Alves <palves@redhat.com>
12349
12350 * thread-db.c (find_new_threads_callback): Ignore thread if the
12351 kernel thread ID is -1.
12352
12353 2015-01-09 Pedro Alves <palves@redhat.com>
12354
12355 * linux-low.c (linux_attach_fail_reason_string): Move to
12356 nat/linux-ptrace.c, and rename.
12357 (linux_attach_lwp): Update comment.
12358 (attach_proc_task_lwp_callback): New function.
12359 (linux_attach): Adjust to rename and use
12360 linux_proc_attach_tgid_threads.
12361 (linux_attach_fail_reason_string): Delete declaration.
12362
12363 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12364
12365 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12366 * server.c (gdbserver_version): Likewise.
12367
12368 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12369
12370 * remote-utils.c: Include ctype.h.
12371 (input_interrupt): Explicitly handle the case when the char
12372 received is the NUL byte. Improve the printing of non-ASCII
12373 characters.
12374
12375 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12376
12377 * linux-low.c (linux_low_filter_event): Update call to
12378 linux_enable_event_reporting following the addition of
12379 a new parameter to that function.
12380
12381 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12382
12383 PR server/17457
12384 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12385 (AARCH64_FPCR_REGNO): Likewise.
12386 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12387 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12388 (aarch64_store_fpregset): Likewise.
12389
12390 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12391
12392 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12393 Remove FIXME comment about assumption about N.
12394
12395 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12396
12397 * configure.ac: If large-file support is disabled in GDBserver,
12398 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12399 * configure: Regenerate.
12400
12401 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12402
12403 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12404 warning upon ENODATA from ptrace.
12405 * linux-s390-low.c (s390_store_tdb): New.
12406 (s390_regsets): Add regset for NT_S390_TDB.
12407
12408 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12409
12410 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12411 without a fill_function.
12412 * linux-s390-low.c (s390_fill_last_break): Remove.
12413 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12414 (s390_arch_setup): Use regset's size instead of fill_function for
12415 loop end condition.
12416
12417 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12418
12419 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12420 the regset's store function when ptrace returned an error.
12421 * regcache.c (get_thread_regcache): Invalidate register cache
12422 before fetching inferior's registers.
12423
12424 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12425
12426 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12427 while-loop as for-loop.
12428 (regsets_store_inferior_registers): Likewise.
12429
12430 2014-11-28 Yao Qi <yao@codesourcery.com>
12431
12432 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12433 * config.in, configure: Re-generate.
12434 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12435 is defined.
12436
12437 2014-11-21 Yao Qi <yao@codesourcery.com>
12438
12439 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12440 (AC_CHECK_HEADERS): Remove malloc.h.
12441 * configure: Re-generated.
12442 * config.in: Re-generated.
12443 * server.h: Don't include alloca.h and malloc.h.
12444 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12445 Don't include malloc.h.
12446
12447 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12448
12449 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12450 corresponding ERRNO check in same block.
12451
12452 2014-11-12 Pedro Alves <palves@redhat.com>
12453
12454 * server.c (cont_thread): Update comment.
12455 (start_inferior, attach_inferior): No longer clear cont_thread.
12456 (handle_v_cont): No longer set cont_thread.
12457 (captured_main): Clear cont_thread each time a GDB connects.
12458
12459 2014-11-12 Pedro Alves <palves@redhat.com>
12460
12461 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12462 thread, and don't resume all threads if the Hc thread has exited.
12463
12464 2014-11-12 Pedro Alves <palves@redhat.com>
12465
12466 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12467 the process group instead of to a specific LWP.
12468
12469 2014-10-15 Pedro Alves <palves@redhat.com>
12470
12471 PR server/17487
12472 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12473 parameter.
12474 (arm_set_thread_context): Delete.
12475 (the_low_target): Adjust.
12476 * win32-i386-low.c (debug_registers_changed)
12477 (debug_registers_used): Delete.
12478 (update_debug_registers_callback): New function.
12479 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12480 needing to update their debug registers.
12481 (win32_get_current_dr): New function.
12482 (x86_dr_low_get_addr, x86_dr_low_get_control)
12483 (x86_dr_low_get_status): Fetch the debug register from the thread
12484 record's context.
12485 (i386_initial_stuff): Adjust.
12486 (i386_get_thread_context): Remove current_event parameter. Don't
12487 clear debug_registers_changed nor copy DR values to
12488 debug_reg_state.
12489 (i386_set_thread_context): Delete.
12490 (i386_prepare_to_resume): New function.
12491 (i386_thread_added): Mark the thread as needing to update irs
12492 debug registers.
12493 (the_low_target): Remove i386_set_thread_context and install
12494 i386_prepare_to_resume.
12495 * win32-low.c (win32_get_thread_context): Adjust.
12496 (win32_set_thread_context): Use SetThreadContext
12497 directly.
12498 (win32_prepare_to_resume): New function.
12499 (win32_require_context): New function, factored out from ...
12500 (thread_rec): ... this.
12501 (continue_one_thread): Call win32_prepare_to_resume on each thread
12502 we're about to continue.
12503 (win32_resume): Call win32_prepare_to_resume on the event thread.
12504 * win32-low.h (struct win32_thread_info)
12505 <debug_registers_changed>: New field.
12506 (struct win32_target_ops): Change prototype of set_thread_context,
12507 delete set_thread_context and add prepare_to_resume.
12508 (win32_require_context): New declaration.
12509
12510 2014-10-08 Gary Benson <gbenson@redhat.com>
12511
12512 * server.h: Do not include common-exceptions.h.
12513
12514 2014-10-08 Gary Benson <gbenson@redhat.com>
12515
12516 * server.h: Do not include cleanups.h.
12517
12518 2014-09-30 James Hogan <james.hogan@imgtec.com>
12519
12520 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12521 mips64-dsp-linux.c.
12522
12523 2014-09-23 Yao Qi <yao@codesourcery.com>
12524
12525 * linux-low.c (lp_status_maybe_breakpoint): New function.
12526 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12527 (count_events_callback): Likewise.
12528 (select_event_lwp_callback): Likewise.
12529 (cancel_breakpoints_callback): Likewise.
12530
12531 2014-09-19 Don Breazeal <donb@codesourcery.com>
12532
12533 * linux-low.c (handle_extended_wait): Call
12534 linux_ptrace_get_extended_event.
12535 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12536 linux_is_extended_waitstatus.
12537
12538 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12539
12540 * Makefile.in (CPPFLAGS): Define.
12541 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12542 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12543
12544 2014-09-16 Gary Benson <gbenson@redhat.com>
12545
12546 * inferiors.h (current_inferior): Renamed as...
12547 (current_thread): New variable. All uses updated.
12548 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12549 (maybe_move_out_of_jump_pad): Likewise.
12550 (cancel_breakpoint): Likewise.
12551 (linux_low_filter_event): Likewise.
12552 (wait_for_sigstop): Likewise.
12553 (linux_resume_one_lwp): Likewise.
12554 (need_step_over_p): Likewise.
12555 (start_step_over): Likewise.
12556 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12557 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12558 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12559 and save_inferior as saved_thread.
12560 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12561 saved_thread.
12562 (regcache_invalidate_thread): Likewise.
12563 * remote-utils.c (prepare_resume_reply): Likewise.
12564 * thread-db.c (thread_db_get_tls_address): Likewise.
12565 (disable_thread_event_reporting): Likewise.
12566 (remove_thread_event_breakpoints): Likewise.
12567 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12568 as saved_thread.
12569 * target.h (set_desired_inferior): Renamed as...
12570 (set_desired_thread): New declaration. All uses updated.
12571 * server.c (myresume): Updated comment to reference thread instead
12572 of inferior.
12573 (handle_serial_event): Likewise.
12574 (handle_target_event): Likewise.
12575
12576 2014-09-12 Tom Tromey <tromey@redhat.com>
12577 Gary Benson <gbenson@redhat.com>
12578
12579 * regcache.h: Include common-regcache.h.
12580 (regcache_read_pc): Don't declare.
12581 * regcache.c (get_thread_regcache_for_ptid): New function.
12582
12583 2014-09-11 Tom Tromey <tromey@redhat.com>
12584 Gary Benson <gbenson@redhat.com>
12585
12586 * symbol.c: New file.
12587 * Makefile.in (SFILES): Add symbol.c.
12588 (OBS): Add symbol.o.
12589
12590 2014-09-11 Gary Benson <gbenson@redhat.com>
12591
12592 * target.c (target_stop_ptid, target_continue_ptid): New
12593 functions.
12594
12595 2014-09-11 Tom Tromey <tromey@redhat.com>
12596 Gary Benson <gbenson@redhat.com>
12597
12598 * target.h: Include target/target.h.
12599 * target.c (target_read_memory, target_read_uint32)
12600 (target_write_memory): New functions.
12601
12602 2014-09-11 Gary Benson <gbenson@redhat.com>
12603
12604 * server.h (debug_hw_points): Don't declare.
12605 * server.c (debug_hw_points): Don't define. Replace all uses
12606 with show_debug_regs.
12607 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12608 all uses with show_debug_regs.
12609
12610 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12611
12612 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12613 endianness into account.
12614 (ppc_supply_ptrace_register): Likewise.
12615
12616 2014-09-03 James Hogan <james.hogan@imgtec.com>
12617
12618 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12619 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12620
12621 2014-09-03 Gary Benson <gbenson@redhat.com>
12622
12623 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12624 ALL_DEBUG_ADDRESS_REGISTERS.
12625
12626 2014-09-02 Gary Benson <gbenson@redhat.com>
12627
12628 * i386-low.h: Renamed as...
12629 * x86-low.h: New file. All type, function and variable name
12630 prefixes changed from "i386_" to "x86_". All references updated.
12631 * i386-low.c: Renamed as...
12632 * x86-low.c: New file. All type, function and variable name
12633 prefixes changed from "i386_" to "x86_". All references updated.
12634
12635 2014-09-02 Gary Benson <gbenson@redhat.com>
12636
12637 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12638 (x86_linux_new_thread): Likewise.
12639
12640 2014-08-29 Gary Benson <gbenson@redhat.com>
12641
12642 * server.h (setjmp.h): Do not include.
12643 (toplevel): Do not declare.
12644 (common-exceptions.h): Include.
12645 (cleanups.h): Likewise.
12646 * server.c (toplevel): Do not define.
12647 (exit_code): New static global.
12648 (detach_or_kill_for_exit_cleanup): New function.
12649 (main): New function. Original main renamed to...
12650 (captured_main): New function.
12651 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12652
12653 2014-08-29 Gary Benson <gbenson@redhat.com>
12654
12655 * Makefile.in (SFILES): Add common/common-exceptions.c.
12656 (OBS): Add common-exceptions.o.
12657 (common-exceptions.o): New rule.
12658 * utils.c (prepare_to_throw_exception): New function.
12659
12660 2014-08-29 Gary Benson <gbenson@redhat.com>
12661
12662 * config.in: Regenerate.
12663 * configure: Likewise.
12664
12665 2014-08-29 Gary Benson <gbenson@redhat.com>
12666
12667 * Makefile.in (SFILES): Add common/cleanups.c.
12668 (OBS): cleanups.o.
12669 (cleanups.o): New rule.
12670
12671 2014-08-29 Gary Benson <gbenson@redhat.com>
12672
12673 * utils.c (internal_vwarning): New function.
12674
12675 2014-08-28 Gary Benson <gbenson@redhat.com>
12676
12677 * utils.h (fatal): Remove declaration.
12678 * utils.c (fatal): Remove function.
12679
12680 2014-08-28 Gary Benson <gbenson@redhat.com>
12681
12682 * tracepoint.c (gdb_agent_init): Replace fatal with
12683 perror_with_name.
12684 (initialize_tracepoint): Likewise.
12685
12686 2014-08-28 Gary Benson <gbenson@redhat.com>
12687
12688 * remote-utils.c (remote_prepare): Replace fatal with error.
12689
12690 2014-08-28 Gary Benson <gbenson@redhat.com>
12691
12692 * linux-low.c (linux_async): Replace fatal with warning.
12693 Tidy up and return.
12694 (linux_start_non_stop): Return -1 if linux_async failed.
12695
12696 2014-08-28 Gary Benson <gbenson@redhat.com>
12697
12698 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12699 gdb_assert.
12700 (i386_dr_low_get_addr): Remove vague comment.
12701 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12702 gdb_assert.
12703
12704 2014-08-28 Gary Benson <gbenson@redhat.com>
12705
12706 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12707 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12708 internal_error.
12709 (linux_resume_one_lwp): Likewise.
12710 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12711 gdb_assert.
12712 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12713 with internal_error.
12714 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12715 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12716 (find_register_by_name): Replace fatal with internal_error.
12717 (find_regno): Likewise.
12718 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12719 * thread-db.c (thread_db_create_event): Likewise.
12720 (thread_db_load_search): Likewise.
12721 (try_thread_db_load_1): Likewise.
12722 * tracepoint.c (get_jump_space_head): Replace fatal with
12723 internal_error.
12724 (claim_trampoline_space): Likewise.
12725 (have_fast_tracepoint_trampoline_buffer): Likewise.
12726 (cmd_qtstart): Likewise.
12727 (stop_tracing): Likewise.
12728 (fast_tracepoint_collecting): Likewise.
12729 (target_malloc): Likewise.
12730 (download_tracepoint): Likewise.
12731 (download_trace_state_variables): Replace check with gdb_assert.
12732 (upload_fast_traceframes): Replace fatal with internal_error.
12733
12734 2014-08-19 Tom Tromey <tromey@redhat.com>
12735 Gary Benson <gbenson@redhat.com>
12736
12737 * Makefile.in (SFILES): Add common/common-debug.c.
12738 (OBS): Add common-debug.o.
12739 (common-debug.o): New rule.
12740 * debug.h (debug_printf): Don't declare.
12741 * debug.c (debug_printf): Renamed and rewritten as...
12742 (debug_vprintf): New function.
12743
12744 2014-08-19 Gary Benson <gbenson@redhat.com>
12745
12746 * utils.h: Do not include print-utils.h.
12747
12748 2014-08-19 Tom Tromey <tromey@redhat.com>
12749 Gary Benson <gbenson@redhat.com>
12750
12751 * server.h: Add static assertion.
12752 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12753
12754 2014-08-19 Tom Tromey <tromey@redhat.com>
12755 Gary Benson <gbenson@redhat.com>
12756
12757 * Makefile.in (SFILES): Add common/errors.c.
12758 (OBS): Add errors.o.
12759 (IPA_OBS): Add errors-ipa.o.
12760 (errors.o): New rule.
12761 (errors-ipa.o): Likewise.
12762 * utils.h (perror_with_name, error, warning): Don't declare.
12763 * utils.c (warning): Renamed and rewritten as...
12764 (vwarning): New function.
12765 (error): Renamed and rewritten as...
12766 (verror): New function.
12767 (internal_error): Renamed and rewritten as...
12768 (internal_verror): New function.
12769
12770 2014-08-07 Gary Benson <gbenson@redhat.com>
12771
12772 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12773 * configure: Regenerate.
12774 * config.in: Likewise.
12775 * server.h: Do not include errno.h.
12776 * event-loop.c: Likewise.
12777 * hostio-errno.c: Likewise.
12778 * linux-low.c: Likewise.
12779 * remote-utils.c: Likewise.
12780 * spu-low.c: Likewise.
12781 * utils.c: Likewise.
12782 * gdbreplay.c: Unconditionally include errno.h.
12783
12784 2014-08-07 Gary Benson <gbenson@redhat.com>
12785
12786 * server.h: Do not include string.h.
12787 * event-loop.c: Likewise.
12788 * linux-low.c: Likewise.
12789 * regcache.c: Likewise.
12790 * remote-utils.c: Likewise.
12791 * spu-low.c: Likewise.
12792 * utils.c: Likewise.
12793
12794 2014-08-07 Gary Benson <gbenson@redhat.com>
12795
12796 * server.h: Do not include gdb_assert.h.
12797
12798 2014-08-07 Gary Benson <gbenson@redhat.com>
12799
12800 * server.h: Do not include common-utils.h.
12801
12802 2014-08-07 Gary Benson <gbenson@redhat.com>
12803
12804 * server.h: Do not include ptid.h.
12805 * notif.h: Likewise.
12806
12807 2014-08-07 Gary Benson <gbenson@redhat.com>
12808
12809 * server.h: Do not include gdb_locale.h.
12810
12811 2014-08-07 Gary Benson <gbenson@redhat.com>
12812
12813 * server.h: Do not include gdb/signals.h.
12814 * win32-low.c: Likewise.
12815
12816 2014-08-07 Gary Benson <gbenson@redhat.com>
12817
12818 * server.h: Do not include pathmax.h.
12819
12820 2014-08-07 Gary Benson <gbenson@redhat.com>
12821
12822 * server.h: Do not include libiberty.h.
12823 * linux-bfin-low.c: Likewise.
12824
12825 2014-08-07 Gary Benson <gbenson@redhat.com>
12826
12827 * server.h: Do not include ansidecl.h.
12828
12829 2014-08-07 Gary Benson <gbenson@redhat.com>
12830
12831 * linux-x86-low.c: Do not include stddef.h.
12832 * lynx-ppc-low.c: Likewise.
12833 * tracepoint.c: Likewise.
12834
12835 2014-08-07 Gary Benson <gbenson@redhat.com>
12836
12837 * server.h: Do not include stdarg.h.
12838 * nto-low.c: Likewise.
12839
12840 2014-08-07 Gary Benson <gbenson@redhat.com>
12841
12842 * server.h: Do not include stdlib.h.
12843 * inferiors.c: Likewise.
12844 * linux-low.c: Likewise.
12845 * regcache.c: Likewise.
12846 * spu-low.c: Likewise.
12847 * tracepoint.c: Likewise.
12848 * utils.c: Likewise.
12849
12850 2014-08-07 Gary Benson <gbenson@redhat.com>
12851
12852 * server.h: Do not include stdio.h.
12853 * linux-low.c: Likewise.
12854 * remote-utils.c: Likewise.
12855 * spu-low.c: Likewise.
12856 * utils.c: Likewise.
12857 * wincecompat.c: Likewise.
12858
12859 2014-08-06 Gary Benson <gbenson@redhat.com>
12860
12861 * regcache.c (init_register_cache): Move conditionals inside if.
12862
12863 2014-08-06 Gary Benson <gbenson@redhat.com>
12864
12865 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12866
12867 2014-07-31 Gary Benson <gbenson@redhat.com>
12868
12869 * ax.h: Do not include server.h.
12870 * gdbthread.h: Likewise.
12871 * lynx-low.h: Likewise.
12872 * notif.h: Likewise.
12873
12874 2014-07-30 Gary Benson <gbenson@redhat.com>
12875
12876 * server.h: Include common-defs.h.
12877 Do not include config.h or build-gnulib-gdbserver/config.h.
12878
12879 2014-07-30 Gary Benson <gbenson@redhat.com>
12880
12881 * hostio-errno.c: Move server.h to top of includes list.
12882 * inferiors.c: Likewise.
12883 * linux-x86-low.c: Likewise.
12884 * notif.c: Include server.h.
12885
12886 2014-07-24 Tom Tromey <tromey@redhat.com>
12887 Gary Benson <gbenson@redhat.com>
12888
12889 * server.h (CORE_ADDR): Now unsigned.
12890
12891 2014-07-16 Pedro Alves <palves@redhat.com>
12892
12893 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12894
12895 2014-07-15 Pedro Alves <palves@redhat.com>
12896
12897 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12898 copy.
12899
12900 2014-07-11 Pedro Alves <palves@redhat.com>
12901
12902 * linux-low.c (kill_wait_lwp): New function, based on
12903 kill_one_lwp_callback, but use my_waitpid directly.
12904 (kill_one_lwp_callback, linux_kill): Use it.
12905
12906 2014-06-23 Pedro Alves <palves@redhat.com>
12907
12908 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12909 before setting DR0..DR3.
12910
12911 2014-06-20 Gary Benson <gbenson@redhat.com>
12912
12913 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12914 * configure: Regenerated.
12915 * config.in: Likewise.
12916
12917 2014-06-20 Gary Benson <gbenson@redhat.com>
12918
12919 * Makefile.in (SFILES): Update locations for files moved
12920 from common to nat.
12921 (object file files): Reordered.
12922
12923 2014-06-20 Gary Benson <gbenson@redhat.com>
12924
12925 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12926 (i386_dr_low_set_addr): Likewise.
12927 (i386_dr_low_get_addr): Likewise.
12928 (i386_dr_low_can_set_control): Likewise.
12929 (i386_dr_low_set_control): Likewise.
12930 (i386_dr_low_get_control): Likewise.
12931 (i386_dr_low_get_status): Likewise.
12932 (i386_get_debug_register_length): Likewise.
12933 * linux-x86-low.c (i386_dr_low_set_addr):
12934 Changed signature. Made static.
12935 (i386_dr_low_get_addr): Likewise.
12936 (i386_dr_low_set_control): Likewise.
12937 (i386_dr_low_get_control): Likewise.
12938 (i386_dr_low_get_status): Likewise.
12939 (i386_dr_low): New global variable.
12940 * win32-i386-low.c (i386_dr_low_set_addr):
12941 Changed signature. Made static.
12942 (i386_dr_low_get_addr): Likewise.
12943 (i386_dr_low_set_control): Likewise.
12944 (i386_dr_low_get_control): Likewise.
12945 (i386_dr_low_get_status): Likewise.
12946 (i386_dr_low): New global variable.
12947
12948 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12949
12950 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12951 * Makefile.in (AR, AR_FLAGS): Define.
12952 * configure: Regenerate.
12953
12954 2014-06-19 Gary Benson <gbenson@redhat.com>
12955
12956 * Makefile.in (i386-dregs.o): New rule.
12957 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12958 * i386-low.c (target.h): Remove include.
12959 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12960 (DR_CONTROL_SHIFT): Likewise.
12961 (DR_CONTROL_SIZE): Likewise.
12962 (DR_RW_EXECUTE): Likewise.
12963 (DR_RW_WRITE): Likewise.
12964 (DR_RW_READ): Likewise.
12965 (DR_RW_IORW): Likewise.
12966 (DR_LEN_1): Likewise.
12967 (DR_LEN_2): Likewise.
12968 (DR_LEN_4): Likewise.
12969 (DR_LEN_8): Likewise.
12970 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12971 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12972 (DR_ENABLE_SIZE): Likewise.
12973 (DR_LOCAL_SLOWDOWN): Likewise.
12974 (DR_GLOBAL_SLOWDOWN): Likewise.
12975 (DR_CONTROL_RESERVED): Likewise.
12976 (I386_DR_CONTROL_MASK): Likewise.
12977 (I386_DR_VACANT): Likewise.
12978 (I386_DR_LOCAL_ENABLE): Likewise.
12979 (I386_DR_GLOBAL_ENABLE): Likewise.
12980 (I386_DR_DISABLE): Likewise.
12981 (I386_DR_SET_RW_LEN): Likewise.
12982 (I386_DR_GET_RW_LEN): Likewise.
12983 (I386_DR_WATCH_HIT): Likewise.
12984 (i386_wp_op_t): Likewise.
12985 (i386_show_dr): Likewise.
12986 (i386_length_and_rw_bits): Likewise.
12987 (i386_insert_aligned_watchpoint): Likewise.
12988 (i386_remove_aligned_watchpoint): Likewise.
12989 (i386_handle_nonaligned_watchpoint): Likewise.
12990 i386_update_inferior_debug_regs(): Likewise.
12991 (i386_dr_insert_watchpoint): Likewise.
12992 (i386_dr_remove_watchpoint): Likewise.
12993 (i386_dr_region_ok_for_watchpoint): Likewise.
12994 (i386_dr_stopped_data_address): Likewise.
12995 (i386_dr_stopped_by_watchpoint): Likewise.
12996
12997 2014-06-19 Gary Benson <gbenson@redhat.com>
12998
12999 * i386-low.c (i386_dr_show): Renamed to
13000 i386_show_dr and made static. All uses updated.
13001 (i386_dr_length_and_rw_bits): Renamed to
13002 i386_length_and_rw_bits and made static.
13003 All uses updated.
13004 (i386_dr_insert_aligned_watchpoint): Renamed to
13005 i386_insert_aligned_watchpoint and made static.
13006 All uses updated.
13007 (i386_dr_remove_aligned_watchpoint): Renamed to
13008 i386_remove_aligned_watchpoint and made static.
13009 All uses updated.
13010 (i386_dr_update_inferior_debug_regs): Renamed to
13011 i386_update_inferior_debug_regs and made static.
13012 All uses updated.
13013
13014 2014-06-18 Gary Benson <gbenson@redhat.com>
13015
13016 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13017 (i386_dr_low_can_set_control): Likewise.
13018 (i386_get_debug_register_length): Likewise.
13019 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13020 (i386_dr_low_can_set_control): Likewise.
13021 (i386_get_debug_register_length): Likewise.
13022
13023 2014-06-17 Gary Benson <gbenson@redhat.com>
13024
13025 * i386-low.h (i386-dregs.h): New include.
13026 (DR_FIRSTADDR): Now in i386-dregs.h.
13027 (DR_LASTADDR): Likewise.
13028 (DR_NADDR): Likewise.
13029 (DR_STATUS): Likewise.
13030 (DR_CONTROL): Likewise.
13031 (i386_debug_reg_state): Likewise.
13032 (i386_dr_insert_watchpoint): Likewise.
13033 (i386_dr_remove_watchpoint): Likewise.
13034 (i386_dr_region_ok_for_watchpoint): Likewise.
13035 (i386_dr_stopped_data_address): Likewise.
13036 (i386_dr_stopped_by_watchpoint): Likewise.
13037 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13038
13039 2014-06-18 Gary Benson <gbenson@redhat.com>
13040
13041 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13042 i386_dr_insert_watchpoint.
13043 (i386_low_remove_watchpoint): Renamed to
13044 i386_dr_remove_watchpoint.
13045 (i386_low_region_ok_for_watchpoint): Renamed to
13046 i386_dr_region_ok_for_watchpoint.
13047 (i386_low_stopped_data_address): Renamed to
13048 i386_dr_stopped_data_address.
13049 (i386_low_stopped_by_watchpoint): Renamed to
13050 i386_dr_stopped_by_watchpoint.
13051 * i386-low.c (i386_show_dr): Renamed to
13052 i386_dr_show and made nonstatic. All uses updated.
13053 (i386_length_and_rw_bits): Renamed to
13054 i386_dr_length_and_rw_bits and made nonstatic.
13055 All uses updated.
13056 (i386_insert_aligned_watchpoint): Renamed to
13057 i386_dr_insert_aligned_watchpoint and made nonstatic.
13058 All uses updated.
13059 (i386_remove_aligned_watchpoint): Renamed to
13060 i386_dr_remove_aligned_watchpoint and made nonstatic.
13061 All uses updated.
13062 (i386_update_inferior_debug_regs): Renamed to
13063 i386_dr_update_inferior_debug_regs and made nonstatic.
13064 All uses updated.
13065 (i386_low_insert_watchpoint): Renamed to
13066 i386_dr_insert_watchpoint. All uses updated.
13067 (i386_low_remove_watchpoint): Renamed to
13068 i386_dr_remove_watchpoint. All uses updated.
13069 (i386_low_region_ok_for_watchpoint): Renamed to
13070 i386_dr_region_ok_for_watchpoint. All uses updated.
13071 (i386_low_stopped_data_address): Renamed to
13072 i386_dr_stopped_data_address. All uses updated.
13073 (i386_low_stopped_by_watchpoint): Renamed to
13074 i386_dr_stopped_by_watchpoint. All uses updated.
13075
13076 2014-06-18 Gary Benson <gbenson@redhat.com>
13077
13078 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13079 (i386_dr_low_can_set_control): Likewise.
13080 (i386_insert_aligned_watchpoint): New check.
13081
13082 2014-06-18 Gary Benson <gbenson@redhat.com>
13083
13084 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13085 Renamed to state.
13086
13087 2014-06-18 Gary Benson <gbenson@redhat.com>
13088
13089 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13090 instead of fatal and error.
13091 (i386_handle_nonaligned_watchpoint): Likewise.
13092
13093 2014-06-18 Gary Benson <gbenson@redhat.com>
13094
13095 * i386-low.c (i386_get_debug_register_length): New macro.
13096 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13097 (i386_show_dr): Use debug_printf instead of fprintf. Use
13098 phex to format values.
13099
13100 2014-06-18 Gary Benson <gbenson@redhat.com>
13101
13102 * i386-low.h: Comment changes.
13103 * i386-low.c: Likewise.
13104
13105 2014-06-18 Gary Benson <gbenson@redhat.com>
13106
13107 * i386-low.c: Whitespace changes.
13108
13109 2014-06-12 Tom Tromey <tromey@redhat.com>
13110
13111 * utils.c (freeargv): Remove.
13112
13113 2014-06-12 Tom Tromey <tromey@redhat.com>
13114
13115 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13116 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13117 (parse_debug_format_options): Likewise.
13118 (gdbserver_usage): Likewise.
13119 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13120 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13121 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13122 against libiberty.
13123 ($(LIBGNU)): Depend on libiberty.
13124 (all-lib): Recurse into all subdirs.
13125 (install-only): Invoke "install" target in subdirs.
13126 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13127 targets.
13128 * configure: Rebuild.
13129 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13130 for vasprintf, vsnprintf, or gettimeofday.
13131 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13132 srv_tgtobj.
13133
13134 2014-06-05 Joel Brobecker <brobecker@adacore.com>
13135
13136 * development.sh: Delete.
13137 * Makefile.in (config.status): Adjust dependency on development.sh.
13138 * configure.ac: Adjust development.sh source call.
13139 * configure: Regenerate.
13140
13141 2014-06-02 Pedro Alves <palves@redhat.com>
13142
13143 * ax.c (gdb_free_agent_expr): New function.
13144 * ax.h (gdb_free_agent_expr): New declaration.
13145 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13146 list.
13147 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13148 static.
13149 (clear_breakpoint_conditions_and_commands): New function.
13150 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13151 (clear_breakpoint_conditions_and_commands): New declaration.
13152
13153 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13154
13155 * linux-aarch64-low.c (asm/ptrace.h): Include.
13156
13157 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13158
13159 Fix TLS access for -static -pthread.
13160 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13161 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13162 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13163
13164 2014-05-20 Pedro Alves <palves@redhat.com>
13165
13166 * linux-aarch64-low.c (aarch64_insert_point)
13167 (aarch64_remove_point): No longer check whether the type is
13168 supported here. Adjust to new interface.
13169 (the_low_target): Install aarch64_supports_z_point_type as
13170 supports_z_point_type method.
13171 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13172 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13173 instead of a Z packet char. Adjust.
13174 (arm_supports_z_point_type): New function.
13175 (arm_insert_point, arm_remove_point): Adjust to new interface.
13176 (the_low_target): Install arm_supports_z_point_type.
13177 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13178 (cris_insert_point, cris_remove_point): Adjust to new interface.
13179 Don't check whether the type is supported here.
13180 (the_low_target): Install cris_supports_z_point_type.
13181 * linux-low.c (linux_supports_z_point_type): New function.
13182 (linux_insert_point, linux_remove_point): Adjust to new interface.
13183 * linux-low.h (struct linux_target_ops) <insert_point,
13184 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13185 raw_breakpoint pointer parameter.
13186 <supports_z_point_type>: New method.
13187 * linux-mips-low.c (mips_supports_z_point_type): New function.
13188 (mips_insert_point, mips_remove_point): Adjust to new interface.
13189 Use mips_supports_z_point_type.
13190 (the_low_target): Install mips_supports_z_point_type.
13191 * linux-ppc-low.c (the_low_target): Install NULL as
13192 supports_z_point_type method.
13193 * linux-s390-low.c (the_low_target): Install NULL as
13194 supports_z_point_type method.
13195 * linux-sparc-low.c (the_low_target): Install NULL as
13196 supports_z_point_type method.
13197 * linux-x86-low.c (x86_supports_z_point_type): New function.
13198 (x86_insert_point): Adjust to new insert_point interface. Use
13199 insert_memory_breakpoint. Adjust to new
13200 i386_low_insert_watchpoint interface.
13201 (x86_remove_point): Adjust to remove_point interface. Use
13202 remove_memory_breakpoint. Adjust to new
13203 i386_low_remove_watchpoint interface.
13204 (the_low_target): Install x86_supports_z_point_type.
13205 * lynx-low.c (lynx_target_ops): Install NULL as
13206 supports_z_point_type callback.
13207 * nto-low.c (nto_supports_z_point_type): New.
13208 (nto_insert_point, nto_remove_point): Adjust to new interface.
13209 (nto_target_ops): Install nto_supports_z_point_type.
13210 * mem-break.c: Adjust intro comment.
13211 (struct raw_breakpoint) <raw_type, size>: New fields.
13212 <inserted>: Update comment.
13213 <shlib_disabled>: Delete field.
13214 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13215 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13216 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13217 (raw_bkpt_type_to_target_hw_bp_type): New function.
13218 (find_enabled_raw_code_breakpoint_at): New function.
13219 (find_raw_breakpoint_at): New type and size parameters. Use them.
13220 (insert_memory_breakpoint): New function, based off
13221 set_raw_breakpoint_at.
13222 (remove_memory_breakpoint): New function.
13223 (set_raw_breakpoint_at): Reimplement.
13224 (set_breakpoint): New, based on set_breakpoint_at.
13225 (set_breakpoint_at): Reimplement.
13226 (delete_raw_breakpoint): Go through the_target->remove_point
13227 instead of assuming memory breakpoints.
13228 (find_gdb_breakpoint_at): Delete.
13229 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13230 (find_gdb_breakpoint): New function.
13231 (set_gdb_breakpoint_at): Delete.
13232 (z_type_supported): New function.
13233 (set_gdb_breakpoint_1): New function, loosely based off
13234 set_gdb_breakpoint_at.
13235 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13236 (delete_gdb_breakpoint_at): Delete.
13237 (delete_gdb_breakpoint_1): New function, loosely based off
13238 delete_gdb_breakpoint_at.
13239 (delete_gdb_breakpoint): New function.
13240 (clear_gdb_breakpoint_conditions): Rename to ...
13241 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13242 breakpoint.
13243 (add_condition_to_breakpoint): Make static.
13244 (add_breakpoint_condition): Take a struct breakpoint pointer
13245 instead of an address. Adjust.
13246 (gdb_condition_true_at_breakpoint): Rename to ...
13247 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13248 z_type parameter.
13249 (gdb_condition_true_at_breakpoint): Reimplement.
13250 (add_breakpoint_commands): Take a struct breakpoint pointer
13251 instead of an address. Adjust.
13252 (gdb_no_commands_at_breakpoint): Rename to ...
13253 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13254 parameter. Return true if no breakpoint was found. Change debug
13255 output.
13256 (gdb_no_commands_at_breakpoint): Reimplement.
13257 (run_breakpoint_commands): Rename to ...
13258 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13259 and change return type to boolean.
13260 (run_breakpoint_commands): New function.
13261 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13262 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13263 breakpoint. Go through the_target->remove_point instead of
13264 assuming memory breakpoint.
13265 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13266 software and hardware breakpoints.
13267 (reinsert_raw_breakpoint): Go through the_target->insert_point
13268 instead of assuming memory breakpoint.
13269 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13270 software and hardware breakpoints.
13271 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13272 Check both software and hardware breakpoints.
13273 (validate_inserted_breakpoint): Assert the breakpoint is a
13274 software breakpoint. Set the inserted flag to -1 instead of
13275 setting shlib_disabled.
13276 (delete_disabled_breakpoints): Adjust.
13277 (validate_breakpoints): Only validate software breakpoints.
13278 Adjust to inserted flag change.
13279 (check_mem_read, check_mem_write): Skip breakpoint types other
13280 than software breakpoints. Adjust to inserted flag change.
13281 * mem-break.h (enum raw_bkpt_type): New enum.
13282 (raw_breakpoint, struct process_info): Forward declare.
13283 (Z_packet_to_target_hw_bp_type): Delete declaration.
13284 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13285 (set_gdb_breakpoint, delete_gdb_breakpoint)
13286 (clear_breakpoint_conditions): New declarations.
13287 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13288 (breakpoint_inserted_here): Update comment.
13289 (add_breakpoint_condition, add_breakpoint_commands): Replace
13290 address parameter with a breakpoint pointer parameter.
13291 (gdb_breakpoint_here): Update comment.
13292 (delete_gdb_breakpoint_at): Delete.
13293 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13294 * server.c (process_point_options): Take a struct breakpoint
13295 pointer instead of an address. Adjust.
13296 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13297 delete_gdb_breakpoint.
13298 * spu-low.c (spu_target_ops): Install NULL as
13299 supports_z_point_type method.
13300 * target.h: Include mem-break.h.
13301 (struct target_ops) <prepare_to_access_memory>: Update comment.
13302 <supports_z_point_type>: New field.
13303 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13304 instead of a char. Also take a raw breakpoint pointer.
13305 * win32-arm-low.c (the_low_target): Install NULL as
13306 supports_z_point_type.
13307 * win32-i386-low.c (i386_supports_z_point_type): New function.
13308 (i386_insert_point, i386_remove_point): Adjust to new interface.
13309 (the_low_target): Install i386_supports_z_point_type.
13310 * win32-low.c (win32_supports_z_point_type): New function.
13311 (win32_insert_point, win32_remove_point): Adjust to new interface.
13312 (win32_target_ops): Install win32_supports_z_point_type.
13313 * win32-low.h (struct win32_target_ops):
13314 <supports_z_point_type>: New method.
13315 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13316 instead of a char. Also take a raw breakpoint pointer.
13317
13318 2014-05-20 Pedro Alves <palves@redhat.com>
13319
13320 * mem-break.h: Include break-common.h.
13321 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13322 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13323 (Z_packet_to_target_hw_bp_type): New declaration.
13324 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13325 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13326 (Z_PACKET_ACCESS_WP): Delete macros.
13327 (Z_packet_to_hw_type): Delete function.
13328 * i386-low.h: Don't include break-common.h here.
13329 (Z_packet_to_hw_type): Delete declaration.
13330 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13331 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13332 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13333 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13334 * linux-aarch64-low.c: Don't include break-common.h here.
13335 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13336 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13337 (Z_packet_to_target_hw_bp_type): Delete function.
13338 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13339 function.
13340 (mips_insert_point, mips_remove_point): Use
13341 Z_packet_to_target_hw_bp_type.
13342
13343 2014-05-20 Pedro Alves <palves@redhat.com>
13344
13345 * linux-aarch64-low.c: Include break-common.h.
13346 (enum target_point_type): Delete.
13347 (Z_packet_to_point_type): Rename to ...
13348 (Z_packet_to_target_hw_bp_type): ... this, and return a
13349 target_hw_bp_type instead.
13350 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13351 instead of an enum target_point_type.
13352 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13353 breakpoint type.
13354 (aarch64_dr_state_insert_one_point)
13355 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13356 (aarch64_handle_aligned_watchpoint)
13357 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13358 Take an enum target_hw_bp_type instead of an enum
13359 target_point_type.
13360 (aarch64_supports_z_point_type): New function.
13361 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13362 use Z_packet_to_target_hw_bp_type.
13363
13364 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13365
13366 * configure.ac: Only use -Werror by default when DEVELOPMENT
13367 is true.
13368 * configure: Regenerate.
13369
13370 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13371
13372 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13373 * linux-x86-low.c (X86_64_USER_REGS): New.
13374 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13375
13376 2014-04-28 Yao Qi <yao@codesourcery.com>
13377
13378 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13379 name.
13380
13381 2014-04-25 Pedro Alves <palves@redhat.com>
13382
13383 PR server/16255
13384 * linux-low.c (linux_attach_fail_reason_string): New function.
13385 (linux_attach_lwp): Delete.
13386 (linux_attach_lwp_1): Rename to ...
13387 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13388 argument. Remove "initial" parameter. Return int instead of
13389 void. Don't error or warn here.
13390 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13391 failure to attach to the tgid. Call warning when failing to
13392 attach to an lwp.
13393 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13394 argument. Remove "initial" parameter. Return int instead of
13395 void. Don't error or warn here.
13396 (linux_attach_fail_reason_string): New declaration.
13397 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13398 interface change. Use linux_attach_fail_reason_string.
13399
13400 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13401 Walfred Tedeschi <walfred.tedeschi@intel.com>
13402
13403 * Makefile.in: Added rules to handle new files
13404 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13405 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13406 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13407 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13408 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13409 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13410 x32-avx512-linux.o.
13411 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13412 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13413 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13414 i386/x32-avx512.xml.
13415 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13416 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13417 i386/x32-avx512-linux.xml.
13418 * i387-fp.c (num_avx512_k_registers): New constant for number
13419 of K registers.
13420 (num_avx512_zmmh_low_registers): New constant for number of
13421 lower ZMM registers (0-15).
13422 (num_avx512_zmmh_high_registers): New constant for number of
13423 higher ZMM registers (16-31).
13424 (num_avx512_ymmh_registers): New contant for number of higher
13425 YMM registers (ymm16-31 added by avx521 on x86_64).
13426 (num_avx512_xmm_registers): New constant for number of higher
13427 XMM registers (xmm16-31 added by AVX512 on x86_64).
13428 (struct i387_xsave): Add space for AVX512 registers.
13429 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13430 Add code to handle AVX512 registers.
13431 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13432 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13433 prototypei from generated file.
13434 (tdesc_amd64_avx512_linux): Likewise.
13435 (init_registers_x32_avx512_linux): Likewise.
13436 (tdesc_x32_avx512_linux): Likewise.
13437 (init_registers_i386_avx512_linux): Likewise.
13438 (tdesc_i386_avx512_linux): Likewise.
13439 (x86_64_regmap): Add AVX512 registers.
13440 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13441 mask.
13442 (initialize_low_arch): Add code to initialize AVX512 registers.
13443
13444 2014-04-23 Pedro Alves <palves@redhat.com>
13445
13446 * mem-break.c (find_gdb_breakpoint_at): Make static.
13447 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13448
13449 2014-04-23 Pedro Alves <palves@redhat.com>
13450
13451 * i386-low.c: Don't include break-common.h here.
13452 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13453 prototype to take target_hw_bp_type as argument instead of a Z
13454 packet char.
13455 * i386-low.h: Include break-common.h here.
13456 (Z_packet_to_hw_type): Declare.
13457 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13458 prototypes.
13459 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13460 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13461 (x86_remove_point): Convert the packet number to a
13462 target_hw_bp_type before calling i386_low_remove_watchpoint.
13463 * win32-i386-low.c (i386_insert_point): Convert the packet number
13464 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13465 (i386_remove_point): Convert the packet number to a
13466 target_hw_bp_type before calling i386_low_remove_watchpoint.
13467
13468 2014-04-23 Pedro Alves <palves@redhat.com>
13469
13470 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13471
13472 2014-04-10 Pedro Alves <palves@redhat.com>
13473
13474 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13475 Check if the condition or command is NULL before checking if the
13476 breakpoint is known. On success, return true.
13477 * mem-break.h (add_breakpoint_condition): Document return.
13478 (add_breakpoint_commands): Add describing comment.
13479 * server.c (skip_to_semicolon): New function.
13480 (process_point_options): Use it.
13481
13482 2014-04-09 Pedro Alves <palves@redhat.com>
13483
13484 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13485 to lwpid_of.
13486
13487 2014-02-27 Pedro Alves <palves@redhat.com>
13488
13489 PR 12702
13490 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13491 macros.
13492 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13493 output.
13494 (last_thread_of_process_p): Take a PID argument instead of a
13495 thread pointer.
13496 (linux_wait_for_lwp): Delete.
13497 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13498 functions.
13499 (linux_low_filter_event): New function, party factored out from
13500 linux_wait_for_event.
13501 (linux_wait_for_event): Rename to ...
13502 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13503 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13504 sigsuspend. Check for zombie leaders.
13505 (linux_wait_for_event): Reimplement as wrapper around
13506 linux_wait_for_event_filtered.
13507 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13508 a normal or signal exit is seen, it's the whole process exiting.
13509 (wait_for_sigstop): No longer a for_each_inferior callback.
13510 Rewrite on top of linux_wait_for_event_filtered.
13511 (stop_all_lwps): Call wait_for_sigstop directly.
13512 * server.c (resume, handle_target_event): Handle
13513 TARGET_WAITKIND_NO_RESUMED.
13514
13515 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13516
13517 * win32-low.c (psapi_get_dll_name,
13518 * win32_CreateToolhelp32Snapshot): Delete.
13519 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13520 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13521 Delete.
13522 (handle_load_dll): Add function description.
13523 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13524
13525 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13526
13527 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13528 Add comment.
13529 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13530 base address when calling win32_add_one_solib.
13531 (handle_load_dll): Delete local variable load_addr.
13532 Remove 0x1000 offset applied to DLL base address when calling
13533 win32_add_one_solib.
13534 (handle_unload_dll): Add comment.
13535
13536 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13537
13538 * win32-low.c (win32_add_all_dlls): Renames
13539 win32_ensure_ntdll_loaded. Rewrite function documentation.
13540 Adjust implementation to always load all DLLs.
13541 Add 0x1000 offset to DLL base address when calling
13542 win32_add_one_solib.
13543 (child_initialization_done): New static global.
13544 (do_initial_child_stuff): Set child_initialization_done to
13545 zero during child initialization, and 1 after. Replace call
13546 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13547 Add comment.
13548 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13549 (handle_unload_dll): Add function documentation.
13550 (get_child_debug_event): Ignore load and unload DLL events
13551 during child initialization.
13552
13553 2014-02-20 Doug Evans <dje@google.com>
13554
13555 Remove global all_lwps.
13556 * inferiors.h (ptid_of): Move here from linux-low.h.
13557 (pid_of, lwpid_of): Ditto.
13558 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13559 parameter is a struct thread_info * now.
13560 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13561 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13562 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13563 directly.
13564 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13565 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13566 * linux-arm-low.c (update_registers_callback): Update, "entry"
13567 parameter is a struct thread_info * now.
13568 Fetch lwpid from current_inferior directly.
13569 (arm_insert_point): Pass &all_threads to find_inferior instead of
13570 &all_lwps.
13571 (arm_remove_point): Ditto.
13572 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13573 (arm_prepare_to_resume): Fetch pid from thread.
13574 (arm_read_description): Fetch lwpid from current_inferior directly.
13575 * linux-low.c (all_lwps): Delete.
13576 (delete_lwp): Delete call to remove_inferior.
13577 (handle_extended_wait): Fetch lwpid from thread.
13578 (add_lwp): Don't set lwp->entry.id. Remove call to
13579 add_inferior_to_list.
13580 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13581 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13582 (kill_one_lwp_callback): Ditto.
13583 (linux_kill): Don't dereference NULL pointer.
13584 Fetch ptid,lwpid from thread.
13585 (get_detach_signal): Fetch ptid from thread.
13586 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13587 Simplify call to regcache_invalidate_thread.
13588 (delete_lwp_callback): Update, "entry" parameter is a
13589 struct thread_info * now. Fetch pid from thread.
13590 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13591 (status_pending_p_callback): Update, "entry" parameter is a
13592 struct thread_info * now. Fetch ptid from thread.
13593 (find_lwp_pid): Update, "entry" parameter is a
13594 struct thread_info * now.
13595 (linux_wait_for_lwp): Fetch pid from thread.
13596 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13597 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13598 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13599 (dequeue_one_deferred_signal): Ditto.
13600 (cancel_breakpoint): Fetch ptid from current_inferior.
13601 (linux_wait_for_event): Pass &all_threads to find_inferior,
13602 not &all_lwps. Fetch ptid, lwpid from thread.
13603 (count_events_callback): Update, "entry" parameter is a
13604 struct thread_info * now.
13605 (select_singlestep_lwp_callback): Ditto.
13606 (select_event_lwp_callback): Ditto.
13607 (cancel_breakpoints_callback): Ditto.
13608 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13609 not &all_lwps.
13610 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13611 (unsuspend_one_lwp): Update, "entry" parameter is a
13612 struct thread_info * now.
13613 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13614 not &all_lwps.
13615 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13616 Fetch lwpid from thread, not lwp.
13617 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13618 Pass &all_threads to find_inferior, not &all_lwps.
13619 (send_sigstop): Fetch lwpid from thread, not lwp.
13620 (send_sigstop_callback): Update, "entry" parameter is a
13621 struct thread_info * now.
13622 (suspend_and_send_sigstop_callback): Ditto.
13623 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13624 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13625 struct thread_info * now.
13626 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13627 from thread, lwp.
13628 (lwp_running): Update, "entry" parameter is a
13629 struct thread_info * now.
13630 (stop_all_lwps): Fetch ptid from thread.
13631 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13632 (linux_resume_one_lwp): Fetch lwpid from thread.
13633 (linux_set_resume_request): Update, "entry" parameter is a
13634 struct thread_info * now. Fetch pid, lwpid from thread.
13635 (resume_status_pending_p): Update, "entry" parameter is a
13636 struct thread_info * now.
13637 (need_step_over_p): Ditto. Fetch lwpid from thread.
13638 (start_step_over): Fetch lwpid from thread.
13639 (linux_resume_one_thread): Update, "entry" parameter is a
13640 struct thread_info * now. Fetch lwpid from thread.
13641 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13642 (proceed_one_lwp): Update, "entry" parameter is a
13643 struct thread_info * now. Fetch lwpid from thread.
13644 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13645 struct thread_info * now.
13646 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13647 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13648 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13649 directly.
13650 (regsets_store_inferior_registers): Ditto.
13651 (fetch_register, store_register): Ditto.
13652 (linux_read_memory, linux_write_memory): Ditto.
13653 (linux_request_interrupt): Ditto.
13654 (linux_read_auxv): Ditto.
13655 (linux_xfer_siginfo): Ditto.
13656 (linux_qxfer_spu): Ditto.
13657 (linux_qxfer_libraries_svr4): Ditto.
13658 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13659 moved to inferiors.h.
13660 (get_lwp): Delete.
13661 (get_thread_lwp): Update.
13662 (struct lwp_info): Delete member "entry". Simplify comment for
13663 member "thread".
13664 (all_lwps): Delete.
13665 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13666 current_inferior directly.
13667 (update_watch_registers_callback): Update, "entry" parameter is a
13668 struct thread_info * now. Fetch pid from thread.
13669 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13670 (mips_insert_point): Fetch lwpid from current_inferior.
13671 Pass &all_threads to find_inferior, not &all_lwps.
13672 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13673 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13674 directly.
13675 (mips_stopped_data_address): Ditto.
13676 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13677 directly.
13678 * linux-tile-low.c (tile_arch_setup): Ditto.
13679 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13680 (update_debug_registers_callback): Update, "entry" parameter is a
13681 struct thread_info * now. Fetch pid from thread.
13682 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13683 Pass &all_threads to find_inferior, not &all_lwps.
13684 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13685 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13686 Pass &all_threads to find_inferior, not &all_lwps.
13687 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13688 (i386_dr_low_get_status): Ditto.
13689 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13690 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13691 (x86_linux_read_description): Ditto.
13692 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13693
13694 2014-02-20 Doug Evans <dje@google.com>
13695
13696 * inferiors.c (get_first_inferior): Fix buglet.
13697
13698 2014-02-19 Doug Evans <dje@google.com>
13699
13700 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13701 * inferiors.c (add_thread): Change result type to struct thread_info *.
13702 All callers updated.
13703 (add_lwp): Call add_thread here instead of in callers.
13704 All callers updated.
13705 * linux-low.h (get_lwp_thread): Rewrite.
13706 (struct lwp_info): New member "thread".
13707
13708 2014-02-19 Doug Evans <dje@google.com>
13709
13710 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13711 All callers updated.
13712
13713 2014-02-19 Doug Evans <dje@google.com>
13714
13715 * inferiors.c (add_thread): Fix whitespace.
13716
13717 2014-02-19 Doug Evans <dje@google.com>
13718
13719 * dll.c (clear_dlls): Replace accessing list implemention details
13720 with API function.
13721 * gdbthread.h (get_first_thread): Declare.
13722 * inferiors.c (for_each_inferior_with_data): New function.
13723 (get_first_thread): New function.
13724 (find_thread_ptid): Simplify.
13725 (get_first_inferior): New function.
13726 (clear_list): Delete.
13727 (one_inferior_p): New function.
13728 (clear_inferior_list): New function.
13729 (clear_inferiors): Update.
13730 * inferiors.h (for_each_inferior_with_data): Declare.
13731 (clear_inferior_list): Declare.
13732 (one_inferior_p): Declare.
13733 (get_first_inferior): Declare.
13734 * linux-low.c (linux_wait_for_event): Replace accessing list
13735 implemention details with API function.
13736 * server.c (target_running): Ditto.
13737 (accumulate_file_name_length): New function.
13738 (emit_dll_description): New function.
13739 (handle_qxfer_libraries): Replace accessing list implemention
13740 details with API function.
13741 (handle_qxfer_threads_worker): New function.
13742 (handle_qxfer_threads_proper): Replace accessing list implemention
13743 details with API function.
13744 (handle_query): Ditto.
13745 (visit_actioned_threads_callback_ftype): New typedef.
13746 (visit_actioned_threads_data): New struct.
13747 (visit_actioned_threads): Rewrite to be find_inferior callback.
13748 (resume): Call find_inferior.
13749 (handle_status): Replace accessing list implemention
13750 details with API function.
13751 (process_serial_event): Replace accessing list implemention details
13752 with API function.
13753 * target.c (set_desired_inferior): Replace accessing list implemention
13754 details with API function.
13755 * tracepoint.c (same_process_p): New function.
13756 (gdb_agent_about_to_close): Replace accessing list implemention
13757 details with API function.
13758 * win32-low.c (child_delete_thread): Replace accessing list
13759 implemention details with API function.
13760 (match_dll_by_basename): New function.
13761 (dll_is_loaded_by_basename): New function.
13762 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13763 details call to dll_is_loaded_by_basename.
13764
13765 2014-02-19 Doug Evans <dje@google.com>
13766
13767 * dll.h (struct dll_info): Add comment.
13768 * gdbthread.h (struct thread_info): Add comment.
13769 (current_ptid): Simplify.
13770 * inferiors.c (add_process): Update.
13771 (remove_process): Update.
13772 * inferiors.h (struct process_info): Rename member "head" to "entry".
13773 * linux-low.c (delete_lwp): Update.
13774 (add_lwp): Update.
13775 (last_thread_of_process_p): Update.
13776 (kill_one_lwp_callback, linux_kill): Update.
13777 (status_pending_p_callback): Update.
13778 (wait_for_sigstop): Update. Simplify read of ptid.
13779 (start_step_over): Update.
13780 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13781 (get_lwp_thread): Update.
13782 (struct lwp_info): Rename member "head" to "entry".
13783 * regcache.h (inferior_list_entry): Delete.
13784 * server.c (kill_inferior_callback): Update.
13785 (detach_or_kill_inferior_callback): Update.
13786 (print_started_pid): Update.
13787 (print_attached_pid): Update.
13788 (process_serial_event): Simplify read of ptid.
13789 * thread-db.c (thread_db_create_event): Update.
13790 (thread_db_get_tls_address): Update.
13791 * win32-low.c (current_inferior_ptid): Simplify.
13792
13793 2014-02-19 Tom Tromey <tromey@redhat.com>
13794
13795 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13796 argument.
13797 (target_supports_btrace): Update.
13798
13799 2014-02-14 Yao Qi <yao@codesourcery.com>
13800
13801 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13802 (rsp-low-ipa.o): New target.
13803
13804 2014-02-12 Tom Tromey <tromey@redhat.com>
13805
13806 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13807 convert_ascii_to_int.
13808 * regcache.c (registers_to_string): Likewise.
13809 * remote-utils.c (decode_M_packet): Likewise.
13810 * server.c (process_serial_event): Likewise.
13811
13812 2014-02-12 Tom Tromey <tromey@redhat.com>
13813
13814 * server.c (handle_query, handle_v_run): Use hex2bin, not
13815 unhexify.
13816 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13817
13818 2014-02-12 Tom Tromey <tromey@redhat.com>
13819
13820 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13821 convert_int_to_ascii.
13822 * regcache.c (registers_to_string, collect_register_as_string):
13823 Likewise.
13824 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13825 Likewise.
13826 * server.c (process_serial_event): Likewise.
13827 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13828 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13829
13830 2014-02-12 Tom Tromey <tromey@redhat.com>
13831
13832 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13833 bin2hex, not hexify.
13834 * tracepoint.c (cmd_qtstatus): Likewise.
13835
13836 2014-02-12 Tom Tromey <tromey@redhat.com>
13837
13838 * remote-utils.c (monitor_output): Pass explicit length to
13839 hexify.
13840
13841 2014-02-12 Tom Tromey <tromey@redhat.com>
13842
13843 * tracepoint.c: Include rsp-low.h.
13844 * server.c: Include rsp-low.h.
13845 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13846 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13847 declare.
13848 * remote-utils.c: Include rsp-low.h.
13849 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13850 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13851 (convert_int_to_ascii, convert_ascii_to_int): Move to
13852 common/rsp-low.c.
13853 * regcache.c: Include rsp-low.h.
13854 * ax.c: Include rsp-low.h.
13855 * Makefile.in (SFILES): Add common/rsp-low.c.
13856 (OBS): Add rsp-low.o.
13857 (rsp-low.o): New target.
13858
13859 2014-02-12 Tom Tromey <tromey@redhat.com>
13860
13861 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13862 Include print-utils.h.
13863 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13864 (plongest, thirty_two, phex_nz): Remove.
13865 * Makefile.in (SFILES): Add common/print-utils.c.
13866 (OBS): Add print-utils.o.
13867 (print-utils-ipa.o): New target.
13868 (print-utils.o): New target.
13869 (IPA_OBJS): Add print-utils-ipa.o.
13870
13871 2014-02-06 Tom Tromey <tromey@redhat.com>
13872
13873 * Makefile.in (SFILES): Fix indentation.
13874
13875 2014-02-05 Doug Evans <dje@google.com>
13876
13877 * linux-low.c (linux_wait_for_event): Improve comment.
13878 (linux_wait_1): Keep current_inferior in sync with event_child.
13879
13880 2014-01-22 Doug Evans <dje@google.com>
13881
13882 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13883
13884 2014-01-22 Doug Evans <dje@google.com>
13885
13886 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13887 * configure: Regenerate.
13888 * config.in: Regenerate.
13889 * Makefile.in (SFILES): Add debug.c.
13890 (OBS): Add debug.o.
13891 * debug.c: New file.
13892 * debug.h: New file.
13893 * linux-aarch64-low.c (*): Update all debugging printfs to use
13894 debug_printf instead of fprintf.
13895 * linux-arm-low.c (*): Ditto.
13896 * linux-cris-low.c (*): Ditto.
13897 * linux-crisv32-low.c (*): Ditto.
13898 * linux-m32r-low.c (*): Ditto.
13899 * linux-sparc-low.c (*): Ditto.
13900 * linux-x86.c (*): Ditto.
13901 * linux-low.c (*): Ditto.
13902 (linux_wait_1): Add calls to debug_enter, debug_exit.
13903 (linux_wait): Remove redundant debugging printf.
13904 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13905 (linux_resume, unstop_all_lwps): Ditto.
13906 * mem-break.c (*): Update all debugging printfs to use
13907 debug_printf instead of fprintf.
13908 * remote-utils.c (*): Ditto.
13909 * thread-db.c (*): Ditto.
13910 * server.c #include <ctype.h>, "gdb_vecs.h".
13911 (debug_threads): Moved to debug.c.
13912 (*): Update all debugging printfs to use debug_printf instead of
13913 fprintf.
13914 (start_inferior): Replace call to fflush with call to debug_flush.
13915 (monitor_show_help): Mention set debug-format.
13916 (parse_debug_format_options): New function.
13917 (handle_monitor_command): Handle "monitor set debug-format".
13918 (gdbserver_usage): Mention --debug-format.
13919 (main): Parse --debug-format.
13920 * server.h (debug_threads): Declaration moved to debug.h.
13921 #include "debug.h".
13922 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13923 trace_debug_1 that uses debug_printf.
13924 (tracepoint_look_up_symbols): Update all debugging printfs to use
13925 debug_printf instead of fprintf.
13926
13927 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13928
13929 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13930 sys/ptrace.h.
13931
13932 2014-01-17 Pedro Alves <palves@redhat.com>
13933
13934 PR build/16445
13935 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13936 defined after including gdb_proc_service.h.
13937
13938 2014-01-16 Doug Evans <dje@google.com>
13939
13940 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13941 (match_dll): Use it.
13942
13943 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13944
13945 * target.h (target_ops) <read_btrace>: Change parameters and
13946 return type to allow error reporting.
13947 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13948 trace reading errors on.
13949 * linux-low.c (linux_low_read_btrace): Pass trace reading
13950 errors on.
13951 (linux_low_disable_btrace): New.
13952
13953 2014-01-15 Doug Evans <dje@google.com>
13954
13955 * inferiors.c (thread_id_to_gdb_id): Delete.
13956 * inferiors.h (thread_id_to_gdb_id): Delete.
13957
13958 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13959
13960 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13961 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13962 versions.
13963
13964 2014-01-08 Pedro Alves <palves@redhat.com>
13965
13966 * server.c (handle_status): Don't discard previous queued stop
13967 replies or thread's pending status here.
13968 (main) <disconnection>: Do it here instead.
13969
13970 2014-01-08 Pedro Alves <palves@redhat.com>
13971
13972 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13973 * server.c (visit_actioned_threads, handle_pending_status): New
13974 function.
13975 (handle_v_cont): Factor out parts to ...
13976 (resume): ... this new function. If in all-stop, and a thread
13977 being resumed has a pending status, report it without actually
13978 resuming.
13979 (myresume): Adjust to use the new 'resume' function.
13980 (clear_pending_status_callback, set_pending_status_callback)
13981 (find_status_pending_thread_callback): New functions.
13982 (handle_status): Handle the case of multiple threads having
13983 interesting statuses to report. Report threads' real last signal
13984 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13985 with an interesting thread to report the status for, instead of
13986 always reporting the status of the first thread.
13987
13988 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13989
13990 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13991 * gdbreplay.c (gdbreplay_version): Likewise.
13992
13993 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13994
13995 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13996 iov.iov_len with the real length in use.
13997
13998 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13999
14000 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14001 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14002 for all targets that use win32-low.c.
14003 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14004 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14005
14006 2013-12-13 Pedro Alves <palves@redhat.com>
14007
14008 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14009 if equal to TARGET_WAITKIND_LOADED.
14010 * win32-low.c (cached_status): New static global.
14011 (win32_wait): Add declaration.
14012 (do_initial_child_stuff): Flush all initial pending debug events
14013 up to the initial breakpoint.
14014 (win32_wait): If CACHED_STATUS was set, return that instead
14015 of doing a real wait. Remove the code resuming the execution
14016 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14017 during the initial phase. Also remove the code changing
14018 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14019 TARGET_WAITKIND_STOPPED.
14020
14021 2013-12-11 Yao Qi <yao@codesourcery.com>
14022
14023 * notif.c (handle_notif_ack): Return 0 if no notification
14024 matches.
14025
14026 2013-11-20 Doug Evans <dje@google.com>
14027
14028 * linux-low.c (linux_set_resume_request): Fix comment.
14029
14030 2013-11-20 Doug Evans <dje@google.com>
14031
14032 * linux-low.c (resume_status_pending_p): Tweak comment.
14033
14034 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14035
14036 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14037 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14038 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14039 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14040 (srv_amd64_regobj): Add amd64-mpx.o.
14041 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14042 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14043 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14044 * i387-fp.c (num_pl_bnd_register) Added constant.
14045 (num_pl_bnd_cfg_registers) Added constant.
14046 (struct i387_xsave) Added reserved area and MPX fields.
14047 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14048 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14049 function.
14050 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14051 (init_registers_amd64_mpx_linux): Declare new function.
14052 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14053 (x86_64_regmap): Add MPX registers.
14054 (x86_linux_read_description): Add MPX case.
14055 (initialize_low_arch): Initialize MPX targets.
14056
14057 2013-11-18 Tom Tromey <tromey@redhat.com>
14058
14059 * configure: Rebuild.
14060 * configure.ac: Don't check for stdlib.h.
14061 * gdbreplay.c: Unconditionally include stdlib.h.
14062
14063 2013-11-18 Tom Tromey <tromey@redhat.com>
14064
14065 * config.in: Rebuild.
14066 * configure: Rebuild.
14067 * configure.ac: Don't use AC_HEADER_DIRENT.
14068
14069 2013-11-18 Tom Tromey <tromey@redhat.com>
14070
14071 * server.h: Don't check HAVE_STRING_H.
14072 * gdbreplay.c: Don't check HAVE_STRING_H.
14073 * configure: Rebuild.
14074
14075 2013-11-18 Tom Tromey <tromey@redhat.com>
14076
14077 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14078 LIBGNU.
14079
14080 2013-11-08 Tom Tromey <tromey@redhat.com>
14081
14082 * configure, config.in: Rebuild.
14083 * configure.ac: Remove unused configury.
14084
14085 2013-11-08 Tom Tromey <tromey@redhat.com>
14086
14087 * acinclude.m4: Include common.m4, codeset.m4.
14088 * configure, config.in: Rebuild.
14089 * configure.ac: Use GDB_AC_COMMON.
14090
14091 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14092
14093 * linux-s390-low.c (HWCAP_S390_TE): New define.
14094 (s390_arch_setup): Consider the TE field in the HWCAP for
14095 determining 'have_regset_tdb'.
14096
14097 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14098
14099 PR gdb/16014
14100 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14101 call to sizeof.
14102
14103 2013-10-02 Pedro Alves <palves@redhat.com>
14104
14105 * server.c (process_serial_event): Don't output "GDBserver
14106 exiting" if GDB is connected through stdio.
14107 * target.c (mywait): Likewise, be silent if GDB is connected
14108 through stdio.
14109
14110 2013-10-01 Joel Brobecker <brobecker@adacore.com>
14111
14112 * lynx-low.c (lynx_add_threads_after_attach): New function.
14113 (lynx_attach): Remove call to add_thread. Add call to
14114 lynx_add_threads_after_attach instead.
14115
14116 2013-09-28 Mike Frysinger <vapier@gentoo.org>
14117
14118 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14119 * config.in, configure: Regenerated.
14120
14121 2013-09-18 Yao Qi <yao@codesourcery.com>
14122
14123 PR server/15959
14124 * server.c (start_inferior): Clear 'resume_info'.
14125
14126 2013-09-16 Jiong Wang <jiwang@tilera.com>
14127
14128 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14129 for each register.
14130
14131 2013-09-16 Jiong Wang <jiwang@tilera.com>
14132
14133 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14134 linux-tile-low.o to srv_tgtobj.
14135
14136 2013-09-16 Will Newton <will.newton@linaro.org>
14137
14138 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14139 out regs.
14140
14141 2013-09-06 Pedro Alves <palves@redhat.com>
14142
14143 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14144 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14145 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14146 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14147 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14148 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14149
14150 2013-09-06 Pedro Alves <palves@redhat.com>
14151
14152 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14153 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14154
14155 2013-09-06 Pedro Alves <palves@redhat.com>
14156
14157 * linux-amd64-ipa.c: Include tracepoint.h.
14158 * linux-i386-ipa.c: Include tracepoint.h.
14159
14160 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14161
14162 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14163 (ps_get_thread_area): New function.
14164
14165 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14166
14167 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14168 (initialize_low_arch): Call init_registers_crisv32 rather than
14169 init_register_crisv32.
14170
14171 2013-09-05 Pedro Alves <palves@redhat.com>
14172
14173 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14174 to ...
14175 * hostio.h: ... this new file.
14176 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14177 win32-low.c: Include hostio.h.
14178
14179 2013-09-05 Pedro Alves <palves@redhat.com>
14180
14181 * server.h (gdb_client_data, handler_func, callback_handler_func)
14182 (delete_file_handler, add_file_handler, append_callback_event)
14183 (delete_callback_event, start_event_loop, initialize_event_loop):
14184 Move to event-loop.h and include it.
14185 * event-loop.h: New file.
14186
14187 2013-09-05 Pedro Alves <palves@redhat.com>
14188
14189 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14190 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14191 (loaded_dll, unloaded_dll): Move to ...
14192 * dll.h: ... this new file.
14193 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14194
14195 2013-09-05 Pedro Alves <palves@redhat.com>
14196
14197 * server.h (current_process, get_thread_process, all_processes)
14198 (add_inferior_to_list, for_each_inferior, current_inferior)
14199 (remove_inferior, add_process, remove_process, find_process_pid)
14200 (have_started_inferiors_p, have_attached_inferiors_p)
14201 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14202 (clear_inferiors, find_inferior, find_inferior_id)
14203 (inferior_target_data, set_inferior_target_data)
14204 (inferior_regcache_data, set_inferior_regcache_data): Move to
14205 inferiors.h, and include it.
14206 * inferiors.h: New file.
14207
14208 2013-09-05 Pedro Alves <palves@redhat.com>
14209
14210 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14211 Move ...
14212 * ax.h: ... here.
14213
14214 2013-09-05 Pedro Alves <palves@redhat.com>
14215
14216 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14217 tracepoint.h.
14218 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14219 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14220 (handle_tracepoint_general_set, handle_tracepoint_query)
14221 (tracepoint_finished_step, tracepoint_was_hit)
14222 (release_while_stepping_state_list, current_traceframe)
14223 (in_readonly_region, traceframe_read_mem)
14224 (fetch_traceframe_registers, traceframe_read_sdata)
14225 (traceframe_read_info, struct fast_tpoint_collect_status)
14226 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14227 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14228 (supply_fast_tracepoint_registers)
14229 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14230 (ipa_tdesc, claim_trampoline_space)
14231 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14232 (agent_mem_read, agent_get_trace_state_variable_value)
14233 (agent_set_trace_state_variable_value, agent_tsv_read)
14234 (agent_mem_read_string, get_raw_reg_func_addr)
14235 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14236 * tracepoint.h: ... this new file.
14237
14238 2013-09-05 Pedro Alves <palves@redhat.com>
14239
14240 * server.h (perror_with_name, error, fatal, warning, paddress)
14241 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14242 include it.
14243 * utils.h: New file.
14244
14245 2013-09-05 Pedro Alves <palves@redhat.com>
14246
14247 * server.h (remote_debug, noack_mode, transport_is_reliable)
14248 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14249 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14250 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14251 (write_enn, initialize_async_io, enable_async_io)
14252 (disable_async_io, check_remote_input_interrupt_request)
14253 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14254 (dead_thread_notify, prepare_resume_reply)
14255 (decode_address_to_semicolon, decode_address, decode_m_packet)
14256 (decode_M_packet, decode_X_packet, decode_xfer_write)
14257 (decode_search_memory_packet, unhexify, hexify)
14258 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14259 (look_up_one_symbol, relocate_instruction)
14260 (monitor_output): Move to remote-utils.h, and include it.
14261 * remote-utils.h: New file.
14262
14263 2013-09-05 Pedro Alves <palves@redhat.com>
14264
14265 * server.h (_): Delete.
14266
14267 2013-09-02 Pedro Alves <palves@redhat.com>
14268
14269 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14270 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14271 allocated.
14272 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14273
14274 2013-09-02 Pierre Muller <muller@sourceware.org>
14275
14276 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14277 or WriteProcessMemory complete successfully and handle
14278 ERROR_PARTIAL_COPY error.
14279
14280 2013-09-02 Pedro Alves <palves@redhat.com>
14281
14282 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14283 error instead of EIO.
14284
14285 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14286
14287 PR server/15604
14288 * linux-low.c: Include filestuff.h.
14289 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14290 * lynx-low.c: Include filestuff.h.
14291 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14292 * server.c: Include filestuff.h.
14293 (main): Call notice_open_fds.
14294 * spu-low.c: Include filestuff.h.
14295 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14296
14297 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14298
14299 * Makefile.in: Explain why ../target and ../nat are not
14300 listed as include file search paths.
14301 (linux-waitpid.o): New object file rule.
14302 * configure.srv (srv_native_linux_obj): New variable.
14303 Replace all occurrences of linux native object files with
14304 $srv_native_linux_obj.
14305 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14306 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14307 (linux_enable_event_reporting): Remove declaration.
14308 (my_waitpid): Moved to common/linux-waitpid.c.
14309 (linux_wait_for_event): Pass ptid when calling
14310 linux_enable_event_reporting.
14311 (linux_supports_tracefork_flag): Remove.
14312 (linux_enable_event_reporting): Likewise.
14313 (linux_tracefork_grandchild): Remove.
14314 (STACK_SIZE): Moved to common/linux-ptrace.c.
14315 (linux_tracefork_child): Remove.
14316 (linux_test_for_tracefork): Remove.
14317 (linux_look_up_symbols): Call linux_supports_traceclone.
14318 (initialize_low): Remove call to linux_test_for_tracefork.
14319 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14320 common/linux-ptrace.h.
14321 (PTRACE_TYPE_ARG4): Likewise.
14322 Include linux-ptrace.h.
14323
14324 2013-08-21 Pedro Alves <palves@redhat.com>
14325
14326 * config.in: Renegerate.
14327
14328 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14329
14330 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14331 (SFILES): Remove $(srcdir)/common/target-common.c and
14332 add $(srcdir)/target/waitstatus.c.
14333 (OBS): Remove target-common.o and add waitstatus.o.
14334 (server_h): Remove $(srcdir)/../common/target-common.h and
14335 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14336 and $(srcdir)/../target/waitstatus.h.
14337 (target-common.o): Remove.
14338 (waitstatus.o): New target object file.
14339 * target.h: Do not include target-common.h and
14340 include target/resume.h, target/wait.h and
14341 target/waitstatus.h.
14342
14343 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14344
14345 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14346 to PTRACE_TYPE_ARG3.
14347 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14348 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14349 PTRACE_TYPE_ARG4.
14350 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14351 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14352
14353 2013-07-27 Jie Zhang <jie@codesourcery.com>
14354 Daniel Jacobowitz <dan@codesourcery.com>
14355 Yao Qi <yao@codesourcery.com>
14356
14357 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14358 (mips-linux-watch.o): New rule.
14359 (mips_linux_watch_h): New variable.
14360 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14361 srv_tgtobj.
14362 * linux-mips-low.c: Include mips-linux-watch.h.
14363 (struct arch_process_info, struct arch_lwp_info): New.
14364 (update_watch_registers_callback): New function.
14365 (mips_linux_new_process, mips_linux_new_thread) New functions.
14366 (mips_linux_prepare_to_resume, mips_insert_point): New
14367 functions.
14368 (mips_remove_point, mips_stopped_by_watchpoint): New
14369 functions.
14370 (rsp_bp_type_to_target_hw_bp_type): New function.
14371 (mips_stopped_data_address): New function.
14372 (the_low_target): Add watchpoint support functions.
14373
14374 2013-07-27 Yao Qi <yao@codesourcery.com>
14375
14376 * i386-low.c: Include break-common.h.
14377 (enum target_hw_bp_type): Remove.
14378
14379 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14380
14381 * Makefile.in (SFILES): /common/target-common.c.
14382 (OBS): Add target-common.o.
14383 (server_h): Add $(srcdir)/../common/target-common.h.
14384 (target-common.o): New target.
14385 * server.c (queue_stop_reply_callback): Free
14386 status string after use.
14387 * target.c (target_waitstatus_to_string): Remove.
14388 * target.h: Include target-common.h.
14389 (resume_kind): Likewise.
14390 (target_waitkind): Likewise.
14391 (target_waitstatus): Likewise.
14392 (TARGET_WNOHANG): Likewise.
14393
14394 2013-07-04 Yao Qi <yao@codesourcery.com>
14395
14396 * Makefile.in (host_alias): Use @host_noncanonical@.
14397 (target_alias): Use @target_noncanonical@.
14398 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14399 ACX_NONCANONICAL_HOST.
14400 * configure: Regenerated.
14401
14402 Revert:
14403 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14404
14405 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14406 * configure: Rebuild.
14407 * Makefile.in (version_host, version_target): Get from configure.
14408 (version.c): Use $(version_host) and $(version_target).
14409
14410 2013-07-03 Pedro Alves <palves@redhat.com>
14411
14412 * Makefile.in (config.status): Depend on development.sh.
14413 * acinclude.m4: Include libmcheck.m4.
14414 * configure: Regenerate.
14415
14416 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14417
14418 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14419 attribute inside the parentheses.
14420 (winapi_DebugSetProcessKillOnExit): Ditto.
14421 (winapi_DebugBreakProcess): Ditto.
14422 (winapi_GenerateConsoleCtrlEvent): Ditto.
14423
14424 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14425
14426 * notif.h (notif_event): Add a dummy member to avoid compiler
14427 errors.
14428
14429 2013-07-01 Pedro Alves <palves@redhat.com>
14430
14431 * hostio.c (HOSTIO_PATH_MAX): Define.
14432 (require_filename, handle_open, handle_unlink, handle_readlink):
14433 Use it.
14434
14435 2013-07-01 Pedro Alves <palves@redhat.com>
14436
14437 * server.h: Include "pathmax.h".
14438 * linux-low.c: Don't include sys/param.h.
14439 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14440 MAXPATHLEN.
14441 * win32-low.c: Don't include sys/param.h.
14442 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14443
14444 2013-07-01 Pedro Alves <palves@redhat.com>
14445
14446 * event-loop.c: Don't check HAVE_UNISTD_H before including
14447 <unistd.h>.
14448 * gdbreplay.c: Likewise.
14449 * remote-utils.c: Likewise.
14450 * server.c: Likewise.
14451 * configure.ac: Don't check for unistd.h.
14452 * configure: Regenerate.
14453
14454 2013-06-28 Tom Tromey <tromey@redhat.com>
14455
14456 * Makefile.in (version.c): Use version.in, not
14457 common/version.in.
14458
14459 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14460
14461 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14462 * configure: Rebuild.
14463 * Makefile.in (version_host, version_target): Get from configure.
14464 (version.c): Use $(version_host) and $(version_target).
14465
14466 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14467
14468 Fix trace-status to output user name without trailing colon.
14469 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14470
14471 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14472
14473 Fix trace-status to output proper start-time and stop-time.
14474 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14475 output start time and stop time in hex as gdb expects.
14476
14477 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14478
14479 * tracepoint.c (build_traceframe_info_xml): Output trace state
14480 variables present in the trace buffer.
14481
14482 2013-06-24 Tom Tromey <tromey@redhat.com>
14483
14484 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14485 create-version.sh.
14486 (version.o): Remove.
14487 * gdbreplay.c: Include version.h.
14488 (version, host_name): Don't declare.
14489 * server.h: Include version.h.
14490 (version, host_name): Don't declare.
14491
14492 2013-06-12 Pedro Alves <palves@redhat.com>
14493
14494 * linux-x86-low.c (linux_is_elf64): Delete global.
14495 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14496 with local linux_pid_exe_is_elf_64_file use.
14497
14498 2013-06-11 Pedro Alves <palves@redhat.com>
14499
14500 * linux-low.c (regset_disabled, disable_regset): New functions.
14501 (regsets_fetch_inferior_registers)
14502 (regsets_store_inferior_registers): Use them.
14503 (initialize_regsets_info); Don't allocate the disabled_regsets
14504 array here.
14505 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14506 comment.
14507
14508 2013-06-11 Pedro Alves <palves@redhat.com>
14509
14510 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14511 xmalloc.
14512
14513 2013-06-11 Pedro Alves <palves@redhat.com>
14514
14515 * linux-x86-low.c (initialize_low_arch): Call
14516 init_registers_x32_avx_linux.
14517
14518 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14519
14520 Fix compatibility with Android Bionic.
14521 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14522 it is not empty.
14523
14524 2013-06-07 Pedro Alves <palves@redhat.com>
14525
14526 PR server/14823
14527 * Makefile.in (OBS): Add tdesc.o.
14528 (IPA_OBJS): Add tdesc-ipa.o.
14529 (tdesc-ipa.o): New rule.
14530 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14531 interface.
14532 * linux-low.c (new_inferior): Delete.
14533 (disabled_regsets, num_regsets): Delete.
14534 (linux_add_process): Adjust to set the new per-process
14535 new_inferior flag.
14536 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14537 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14538 was a stop. When calling arch_setup, switch the current inferior
14539 to the thread that got an event.
14540 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14541 (regsets_fetch_inferior_registers)
14542 (regsets_store_inferior_registers): New regsets_info parameter.
14543 Adjust to use it.
14544 (linux_register_in_regsets): New regs_info parameter. Adjust to
14545 use it.
14546 (register_addr, fetch_register, store_register): New usrregs_info
14547 parameter. Adjust to use it.
14548 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14549 parameter regs_info. Adjust to use it.
14550 (linux_fetch_registers): Get the current inferior's regs_info, and
14551 adjust to use it.
14552 (linux_store_registers): Ditto.
14553 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14554 (initialize_low): Don't initialize the target_regsets here. Call
14555 initialize_low_arch.
14556 * linux-low.h (target_regsets): Delete declaration.
14557 (struct regsets_info): New.
14558 (struct usrregs_info): New.
14559 (struct regs_info): New.
14560 (struct process_info_private) <new_inferior>: New field.
14561 (struct linux_target_ops): Delete the num_regs, regmap, and
14562 regset_bitmap fields. New field regs_info.
14563 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14564 * i387-fp.c (num_xmm_registers): Delete.
14565 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14566 calls to new interface.
14567 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14568 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14569 Infer the number of xmm registers from the regcache's target
14570 description.
14571 * i387-fp.h (num_xmm_registers): Delete.
14572 * inferiors.c (add_thread): Don't install the thread's regcache
14573 here.
14574 * proc-service.c (gregset_info): Fetch the current inferior's
14575 regs_info. Adjust to use it.
14576 * regcache.c: Include tdesc.h.
14577 (register_bytes, reg_defs, num_registers)
14578 (gdbserver_expedite_regs): Delete.
14579 (get_thread_regcache): If the thread doesn't have a regcache yet,
14580 create one, instead of aborting gdbserver.
14581 (regcache_invalidate_one): Rename to ...
14582 (regcache_invalidate_thread): ... this.
14583 (regcache_invalidate_one): New.
14584 (regcache_invalidate): Only invalidate registers of the current
14585 process.
14586 (init_register_cache): Add target_desc parameter, and use it.
14587 (new_register_cache): Ditto. Assert the target description has a
14588 non zero registers_size.
14589 (regcache_cpy): Add assertions. Adjust.
14590 (realloc_register_cache, set_register_cache): Delete.
14591 (registers_to_string, registers_from_string): Adjust.
14592 (find_register_by_name, find_regno, find_register_by_number)
14593 (register_cache_size): Add target_desc parameter, and use it.
14594 (free_register_cache_thread, free_register_cache_thread_one)
14595 (regcache_release, register_cache_size): New.
14596 (register_size): Add target_desc parameter, and use it.
14597 (register_data, supply_register, supply_register_zeroed)
14598 (supply_regblock, supply_register_by_name, collect_register)
14599 (collect_register_as_string, collect_register_by_name): Adjust.
14600 * regcache.h (struct target_desc): Forward declare.
14601 (struct regcache) <tdesc>: New field.
14602 (init_register_cache, new_register_cache): Add target_desc
14603 parameter.
14604 (regcache_invalidate_thread): Declare.
14605 (regcache_invalidate_one): Delete declaration.
14606 (regcache_release): Declare.
14607 (find_register_by_number, register_cache_size, register_size)
14608 (find_regno): Add target_desc parameter.
14609 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14610 declarations.
14611 * remote-utils.c: Include tdesc.h.
14612 (outreg, prepare_resume_reply): Adjust.
14613 * server.c: Include tdesc.h.
14614 (gdbserver_xmltarget): Delete declaration.
14615 (get_features_xml, process_serial_event): Adjust.
14616 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14617 declare.
14618 (struct process_info) <tdesc>: New field.
14619 (ipa_tdesc): Declare.
14620 * tdesc.c: New file.
14621 * tdesc.h: New file.
14622 * tracepoint.c: Include tdesc.h.
14623 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14624 (get_context_regcache): Adjust to pass ipa_tdesc down.
14625 (do_action_at_tracepoint): Adjust to get the register cache size
14626 from the context regcache's description.
14627 (traceframe_walk_blocks): Adjust to get the register cache size
14628 from the current trace frame's description.
14629 (traceframe_get_pc): Adjust to get current trace frame's
14630 description and pass it down.
14631 (gdb_collect): Adjust to get the register cache size from the
14632 IPA's description.
14633 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14634 (gdbserver_xmltarget): Delete.
14635 (initialize_low_tracepoint): Set the ipa's target description.
14636 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14637 (initialize_low_tracepoint): Set the ipa's target description.
14638 * linux-x86-low.c: Include tdesc.h.
14639 [__x86_64__] (is_64bit_tdesc): New.
14640 (ps_get_thread_area, x86_get_thread_area): Use it.
14641 (i386_cannot_store_register): Rename to ...
14642 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14643 (i386_cannot_fetch_register): Rename to ...
14644 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14645 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14646 to new interface.
14647 (target_regsets): Rename to ...
14648 (x86_regsets): ... this.
14649 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14650 interface.
14651 (x86_siginfo_fixup): Use is_64bit_tdesc.
14652 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14653 (tdesc_x32_avx_linux, tdesc_x32_linux)
14654 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14655 Declare.
14656 (x86_linux_update_xmltarget): Delete.
14657 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14658 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14659 (AMD64_LINUX_USER64_CS): New.
14660 (x86_linux_read_description): New, based on
14661 x86_linux_update_xmltarget.
14662 (same_process_callback): New.
14663 (x86_arch_setup_process_callback): New.
14664 (x86_linux_update_xmltarget): New.
14665 (x86_regsets_info): New.
14666 (amd64_linux_regs_info): New.
14667 (i386_linux_usrregs_info): New.
14668 (i386_linux_regs_info): New.
14669 (x86_linux_regs_info): New.
14670 (x86_arch_setup): Reimplement.
14671 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14672 (x86_emit_ops): Ditto.
14673 (the_low_target): Adjust. Install x86_linux_regs_info,
14674 x86_cannot_fetch_register, and x86_cannot_store_register.
14675 (initialize_low_arch): New.
14676 * linux-ia64-low.c (tdesc_ia64): Declare.
14677 (ia64_fetch_register): Adjust.
14678 (ia64_usrregs_info, regs_info): New globals.
14679 (ia64_regs_info): New function.
14680 (the_low_target): Adjust.
14681 (initialize_low_arch): New function.
14682 * linux-sparc-low.c (tdesc_sparc64): Declare.
14683 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14684 Adjust.
14685 (sparc_arch_setup): New function.
14686 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14687 (the_low_target): Adjust.
14688 (initialize_low_arch): New function.
14689 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14690 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14691 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14692 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14693 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14694 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14695 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14696 (tdesc_powerpc_isa205_vsx64l): Declare.
14697 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14698 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14699 (ppc_set_pc, ppc_get_hwcap): Adjust.
14700 (ppc_usrregs_info): Forward declare.
14701 (!__powerpc64__) ppc_regmap_adjusted: New global.
14702 (ppc_arch_setup): Adjust to the current process'es target
14703 description.
14704 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14705 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14706 (ppc_store_evrregset): Adjust.
14707 (target_regsets): Rename to ...
14708 (ppc_regsets): ... this, and make static.
14709 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14710 (ppc_regs_info): New function.
14711 (the_low_target): Adjust.
14712 (initialize_low_arch): New function.
14713 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14714 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14715 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14716 (tdesc_s390x_linux64v2): Declare.
14717 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14718 (s390_fill_gregset, s390_store_last_break): Adjust.
14719 (target_regsets): Rename to ...
14720 (s390_regsets): ... this, and make static.
14721 (s390_get_pc, s390_set_pc): Adjust.
14722 (s390_get_hwcap): New target_desc parameter, and use it.
14723 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14724 (s390_arch_setup): Adjust to set the current process'es target
14725 description. Don't adjust the regmap.
14726 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14727 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14728 (regs_info_3264): New globals.
14729 (s390_regs_info): New function.
14730 (the_low_target): Adjust.
14731 (initialize_low_arch): New function.
14732 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14733 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14734 [__mips64] (init_registers_mips_linux)
14735 (init_registers_mips_dsp_linux): Delete defines.
14736 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14737 (have_dsp): New global.
14738 (mips_read_description): New, based on mips_arch_setup.
14739 (mips_arch_setup): Reimplement.
14740 (get_usrregs_info): New function.
14741 (mips_cannot_fetch_register, mips_cannot_store_register)
14742 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14743 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14744 (target_regsets): Rename to ...
14745 (mips_regsets): ... this, and make static.
14746 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14747 (dsp_regs_info, regs_info): New globals.
14748 (mips_regs_info): New function.
14749 (the_low_target): Adjust.
14750 (initialize_low_arch): New function.
14751 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14752 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14753 Declare.
14754 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14755 (arm_read_description): New, with bits factored from
14756 arm_arch_setup.
14757 (arm_arch_setup): Reimplement.
14758 (target_regsets): Rename to ...
14759 (arm_regsets): ... this, and make static.
14760 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14761 (arm_regs_info): New function.
14762 (the_low_target): Adjust.
14763 (initialize_low_arch): New function.
14764 * linux-m68k-low.c (tdesc_m68k): Declare.
14765 (target_regsets): Rename to ...
14766 (m68k_regsets): ... this, and make static.
14767 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14768 (m68k_regs_info): New function.
14769 (m68k_arch_setup): New function.
14770 (the_low_target): Adjust.
14771 (initialize_low_arch): New function.
14772 * linux-sh-low.c (tdesc_sharch): Declare.
14773 (target_regsets): Rename to ...
14774 (sh_regsets): ... this, and make static.
14775 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14776 (sh_regs_info, sh_arch_setup): New functions.
14777 (the_low_target): Adjust.
14778 (initialize_low_arch): New function.
14779 * linux-bfin-low.c (tdesc_bfin): Declare.
14780 (bfin_arch_setup): New function.
14781 (bfin_usrregs_info, regs_info): New globals.
14782 (bfin_regs_info): New function.
14783 (the_low_target): Adjust.
14784 (initialize_low_arch): New function.
14785 * linux-cris-low.c (tdesc_cris): Declare.
14786 (cris_arch_setup): New function.
14787 (cris_usrregs_info, regs_info): New globals.
14788 (cris_regs_info): New function.
14789 (the_low_target): Adjust.
14790 (initialize_low_arch): New function.
14791 * linux-cris-low.c (tdesc_crisv32): Declare.
14792 (cris_arch_setup): New function.
14793 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14794 (cris_regs_info): New function.
14795 (the_low_target): Adjust.
14796 (initialize_low_arch): New function.
14797 * linux-m32r-low.c (tdesc_m32r): Declare.
14798 (m32r_arch_setup): New function.
14799 (m32r_usrregs_info, regs_info): New globals.
14800 (m32r_regs_info): Adjust.
14801 (initialize_low_arch): New function.
14802 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14803 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14804 (tic6x_usrregs_info): Forward declare.
14805 (tic6x_read_description): New function, based on ...
14806 (tic6x_arch_setup): ... this. Reimplement.
14807 (target_regsets): Rename to ...
14808 (tic6x_regsets): ... this, and make static.
14809 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14810 (tic6x_regs_info): New function.
14811 (the_low_target): Adjust.
14812 (initialize_low_arch): New function.
14813 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14814 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14815 (target_regsets): Rename to ...
14816 (xtensa_regsets): ... this, and make static.
14817 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14818 globals.
14819 (xtensa_arch_setup, xtensa_regs_info): New functions.
14820 (the_low_target): Adjust.
14821 (initialize_low_arch): New function.
14822 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14823 (nios2_arch_setup): Set the current process'es tdesc.
14824 (target_regsets): Rename to ...
14825 (nios2_regsets): ... this.
14826 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14827 (nios2_regs_info): New function.
14828 (the_low_target): Adjust.
14829 (initialize_low_arch): New function.
14830 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14831 (aarch64_arch_setup): Set the current process'es tdesc.
14832 (target_regsets): Rename to ...
14833 (aarch64_regsets): ... this.
14834 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14835 (aarch64_regs_info): New function.
14836 (the_low_target): Adjust.
14837 (initialize_low_arch): New function.
14838 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14839 globals.
14840 (target_regsets): Rename to ...
14841 (tile_regsets): ... this.
14842 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14843 (tile_regs_info): New function.
14844 (tile_arch_setup): Set the current process'es tdesc.
14845 (the_low_target): Adjust.
14846 (initialize_low_arch): New function.
14847 * spu-low.c (tdesc_spu): Declare.
14848 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14849 * win32-arm-low.c (tdesc_arm): Declare.
14850 (arm_arch_setup): New function.
14851 (the_low_target): Install arm_arch_setup instead of
14852 init_registers_arm.
14853 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14854 (init_windows_x86): Rename to ...
14855 (i386_arch_setup): ... this. Set `win32_tdesc'.
14856 (the_low_target): Adjust.
14857 * win32-low.c (win32_tdesc): New global.
14858 (child_add_thread): Don't create the thread cache here.
14859 (do_initial_child_stuff): Set the new process'es tdesc.
14860 * win32-low.h (struct target_desc): Forward declare.
14861 (win32_tdesc): Declare.
14862 * lynx-i386-low.c (tdesc_i386): Declare global.
14863 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14864 * lynx-low.c (lynx_tdesc): New global.
14865 (lynx_add_process): Set the new process'es tdesc.
14866 * lynx-low.h (struct target_desc): Forward declare.
14867 (lynx_tdesc): Declare global.
14868 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14869 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14870 * nto-low.c (nto_tdesc): New global.
14871 (do_attach): Set the new process'es tdesc.
14872 * nto-low.h (struct target_desc): Forward declare.
14873 (nto_tdesc): Declare.
14874 * nto-x86-low.c (tdesc_i386): Declare.
14875 (nto_x86_arch_setup): Set `nto_tdesc'.
14876
14877 2013-06-04 Gary Benson <gbenson@redhat.com>
14878
14879 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14880 to qSupported response when appropriate.
14881 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14882 with nonzero-length annex.
14883 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14884 arguments supplied in annex.
14885
14886 2013-05-31 Doug Evans <dje@google.com>
14887
14888 PR server/15594
14889 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14890 64 bits in 64-cross-32 environment.
14891
14892 2013-05-28 Pedro Alves <palves@redhat.com>
14893
14894 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14895 (aarch64-without-fpu.c): Delete rule.
14896 * configure.srv (aarch64*-*-linux*): Remove references to
14897 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14898 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14899 declaration.
14900
14901 2013-05-24 Pedro Alves <palves@redhat.com>
14902
14903 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14904 instead of strchr/decode_address. Error if the range isn't split
14905 with a ','. Don't assume there's be a ':' in the action.
14906
14907 2013-05-23 Yao Qi <yao@codesourcery.com>
14908 Pedro Alves <palves@redhat.com>
14909
14910 * linux-low.c (lwp_in_step_range): New function.
14911 (linux_wait_1): If the thread was range stepping and stopped
14912 outside the stepping range, report the stop to GDB. Otherwise,
14913 continue stepping. Add range stepping debug output.
14914 (linux_set_resume_request): Copy the step range from the resume
14915 request to the lwp.
14916 (linux_supports_range_stepping): New.
14917 (linux_target_ops) <supports_range_stepping>: Set to
14918 linux_supports_range_stepping.
14919 * linux-low.h (struct linux_target_ops)
14920 <supports_range_stepping>: New field.
14921 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14922 * linux-x86-low.c (x86_supports_range_stepping): New.
14923 (the_low_target) <supports_range_stepping>: Set to
14924 x86_supports_range_stepping.
14925 * server.c (handle_v_cont): Handle 'r' action.
14926 (handle_v_requests): Append ";r" if the target supports range
14927 stepping.
14928 * target.h (struct thread_resume) <step_range_start,
14929 step_range_end>: New fields.
14930 (struct target_ops) <supports_range_stepping>:
14931 New field.
14932 (target_supports_range_stepping): New macro.
14933
14934 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14935
14936 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14937 confusion in comment.
14938
14939 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14940
14941 * lynx-low.c (struct process_info_private): New type.
14942 (lynx_add_process): New function.
14943 (lynx_create_inferior, lynx_attach): Replace calls to
14944 add_process by calls to lynx_add_process.
14945 (lynx_resume): If PTID is null, then try using
14946 current_process()->private->last_wait_event_ptid.
14947 Add comments.
14948 (lynx_clear_inferiors): Delete. The contents of that function
14949 has been inlined in lynx_mourn;
14950 (lynx_wait_1): Save the ptid in the process's private data.
14951 (lynx_mourn): Free the process' private data. Replace call
14952 to lynx_clear_inferiors by call to clear_inferiors.
14953
14954 2013-05-17 Yao Qi <yao@codesourcery.com>
14955
14956 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14957 the right place.
14958
14959 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14960
14961 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14962 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14963 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14964 PT_TEXT_END_ADDR guards. Update comments.
14965 (linux_target_op) <read_offsets>: Conditionally define to
14966 linux_read_offsets if the target is UCLIBC and if it defines
14967 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14968
14969 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14970 Andrew Jenner <andrew@codesourcery.com>
14971
14972 * Makefile.in (SFILES): Add linux-nios2-low.c.
14973 (clean): Add action to delete nios2-linux.c.
14974 (nios2-linux.c): New rule.
14975 * configure.srv: Add nios2*-*-linux*.
14976 * linux-nios2-low.c: New.
14977
14978 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14979
14980 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14981
14982 2013-04-25 Hui Zhu <hui@codesourcery.com>
14983
14984 PR gdb/15186
14985 * ax.c (ax_printf): Add fflush.
14986
14987 2013-04-22 Tom Tromey <tromey@redhat.com>
14988
14989 * Makefile.in (SFILES): Add filestuff.c.
14990 (OBS): Add filestuff.o.
14991 (filestuff.o): New target.
14992 * config.in, configure: Rebuild.
14993 * configure.ac: Check for fdwalk, pipe2.
14994
14995 2013-04-17 Pedro Alves <palves@redhat.com>
14996
14997 * configure.ac (USE_THREAD_DB): Delete variable.
14998 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14999 Don't AC_SUBST USE_THREAD_DB.
15000 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15001 * config.in, configure: Regenerate.
15002
15003 2013-04-16 Pedro Alves <palves@redhat.com>
15004
15005 * linux-low.h (struct lwp_info) <thread_known>: Move under
15006 the USE_THREAD_DB #ifdef.
15007
15008 2013-04-16 Pedro Alves <palves@redhat.com>
15009
15010 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15011 (linux-low.o): Delete rule.
15012 * linux-low.h: Always include "gdb_thread_db.h" instead of
15013 conditionally including thread_db.h.
15014 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15015 HAVE_THREAD_DB_H.
15016
15017 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15018
15019 * Makefile.in (install-only): Fix make install regression.
15020
15021 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15022
15023 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15024 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15025 installation.
15026 * gdbserver.1: Remove.
15027
15028 2013-03-22 Pedro Alves <palves@redhat.com>
15029
15030 * linux-low.c (handle_extended_wait): Don't call
15031 linux_enable_event_reporting.
15032
15033 2013-03-15 Tony Theodore <tonyt@logyst.com>
15034
15035 PR build/9098:
15036 * Makefile.in (SHELL): Use @SHELL@.
15037
15038 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15039
15040 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15041 compiler warning.
15042
15043 2013-03-13 Joel Brobecker <brobecker@adacore.com>
15044
15045 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15046 Remove extraneous NULL element.
15047
15048 2013-03-13 Yao Qi <yao@codesourcery.com>
15049
15050 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15051 'V' block in trace frame.
15052
15053 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15054
15055 * target.h (struct target_ops): Add btrace ops.
15056 (target_supports_btrace): New macro.
15057 (target_enable_btrace): New macro.
15058 (target_disable_btrace): New macro.
15059 (target_read_btrace): New macro.
15060 * gdbthread.h (struct thread_info): Add btrace field.
15061 * server.c: Include btrace-common.h.
15062 (handle_btrace_general_set): New function.
15063 (handle_btrace_enable): New function.
15064 (handle_btrace_disable): New function.
15065 (handle_general_set): Call handle_btrace_general_set.
15066 (handle_qxfer_btrace): New function.
15067 (struct qxfer qxfer_packets[]): Add btrace entry.
15068 * inferiors.c (remove_thread): Disable btrace.
15069 * linux-low: Include linux-btrace.h.
15070 (linux_low_enable_btrace): New function.
15071 (linux_low_read_btrace): New function.
15072 (linux_target_ops): Add btrace ops.
15073 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15074 Add srv_linux_btrace=yes.
15075 (x86_64-*-linux*): Add linux-btrace.o.
15076 Add srv_linux_btrace=yes.
15077 * configure.ac: Define HAVE_LINUX_BTRACE.
15078 * config.in: Regenerated.
15079 * configure: Regenerated.
15080
15081 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15082
15083 * server.c (handle_qxfer): Preserve error message if -3 is
15084 returned.
15085 (qxfer): Document the -3 return value.
15086
15087 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15088
15089 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15090 (linux_btrace_h): New variable.
15091 (linux-btrace.o): New rule.
15092
15093 2013-03-08 Stan Shebs <stan@codesourcery.com>
15094 Hafiz Abid Qadeer <abidh@codesourcery.com>
15095
15096 * tracepoint.c (trace_buffer_size): New global.
15097 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15098 (init_trace_buffer): Change to one-argument function. Allocate
15099 trace buffer memory.
15100 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15101 handle QTBuffer:size packet.
15102 (cmd_bigqtbuffer_size): New function.
15103 (initialize_tracepoint): Call init_trace_buffer with
15104 DEFAULT_TRACE_BUFFER_SIZE.
15105 * server.c (handle_query): Add QTBuffer:size in the
15106 supported packets.
15107
15108 2013-03-07 Yao Qi <yao@codesourcery.com>
15109
15110 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15111 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15112 of -1.
15113 (cmd_qtsp): Adjust condition. Do post increment.
15114 Set cur_action and cur_step_action back to 0.
15115
15116 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15117
15118 PR server/15236
15119 * linux-low.c (linux_write_memory): Return early success if LEN is
15120 zero.
15121
15122 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
15123
15124 * configure.srv: Add x86_64-*-cygwin* as target.
15125
15126 2013-02-28 Tom Tromey <tromey@redhat.com>
15127
15128 * configure.ac: Invoke AC_SYS_LARGEFILE.
15129 * configure, config.in: Rebuild.
15130
15131 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
15132
15133 * win32-low.c: Throughout, fix format strings and casts of
15134 printf-like functions to avoid type related warnings on all
15135 platforms.
15136 (get_child_debug_event): Print dwDebugEventCode as hex since
15137 that's how it's usually documented.
15138
15139 2013-02-28 Yao Qi <yao@codesourcery.com>
15140
15141 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15142 pulongest.
15143
15144 2013-02-27 Jiong Wang <jiwang@tilera.com>
15145
15146 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15147 (reg-tilegx32.c): New rule.
15148 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15149 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15150 different register info initializer according to elf class.
15151 (init_registers_tilgx32): New function. The tilegx32 register info
15152 initializer.
15153 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15154 (tile_store_gregset): Likewise.
15155
15156 2013-02-27 Yao Qi <yao@codesourcery.com>
15157
15158 * server.c (process_point_options): Print debug message when
15159 debug_threads is true.
15160
15161 2013-02-26 Yao Qi <yao@codesourcery.com>
15162
15163 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15164
15165 2013-02-19 Pedro Alves <palves@redhat.com>
15166 Kai Tietz <ktietz@redhat.com>
15167
15168 PR gdb/15161
15169
15170 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15171 instead of strtoul to extract address from packet.
15172 (process_serial_event) <'z'>: Likewise.
15173
15174 2013-02-18 Yao Qi <yao@codesourcery.com>
15175
15176 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15177
15178 2013-02-14 Pedro Alves <palves@redhat.com>
15179
15180 Plug memory leak.
15181
15182 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15183 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15184
15185 2013-02-14 Pedro Alves <palves@redhat.com>
15186
15187 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15188
15189 2013-02-14 Pedro Alves <palves@redhat.com>
15190
15191 * tracepoint.c (save_string): Delete.
15192 (add_tracepoint_action): Use savestring instead of save_string.
15193
15194 2013-02-12 Pedro Alves <palves@redhat.com>
15195
15196 * linux-xtensa-low.c: Ditto.
15197 * xtensa-xtregs.c: Ditto.
15198
15199 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15200
15201 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15202 thread_db.
15203
15204 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15205
15206 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15207 aarch64_num_wp_regs and aarch64_num_bp_regs to
15208 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15209
15210 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15211
15212 * linux-aarch64-low.c (ps_get_thread_area): Replace
15213 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15214
15215 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15216 Marcus Shawcroft <marcus.shawcroft@arm.com>
15217 Nigel Stephens <nigel.stephens@arm.com>
15218 Yufeng Zhang <yufeng.zhang@arm.com>
15219
15220 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15221 (aarch64.c, aarch64-without-fpu.c): New targets.
15222 * configure.srv (aarch64*-*-linux*): New.
15223 * linux-aarch64-low.c: New file.
15224
15225 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15226
15227 * linux-low.c (handle_extended_wait, linux_create_inferior)
15228 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15229 (dequeue_one_deferred_signal, linux_resume_one_thread)
15230 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15231 (linux_tracefork_grandchild, linux_test_for_tracefork)
15232 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15233 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15234 where the argument is 0.
15235
15236 2013-01-25 Yao Qi <yao@codesourcery.com>
15237
15238 * event-loop.c: Include "queue.h".
15239 (gdb_event_p): New typedef.
15240 (struct gdb_event) <next_event>: Remove.
15241 (event_queue): Change to QUEUE(gdb_event_p).
15242 (async_queue_event): Remove.
15243 (gdb_event_xfree): New.
15244 (initialize_event_loop): New.
15245 (process_event): Use API from QUEUE.
15246 (wait_for_event): Likewise.
15247 * server.c (main): Call initialize_event_loop.
15248 * server.h (initialize_event_loop): Declare.
15249
15250 2013-01-18 Yao Qi <yao@codesourcery.com>
15251
15252 * ax.h (struct eval_agent_expr_context): New.
15253 (gdb_eval_agent_expr): Update declaration.
15254 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15255 TFRAME. Add new argument CTX.
15256 * server.h (struct eval_agent_expr_context): Declare.
15257 (agent_mem_read, agent_tsv_read): Update declaration.
15258 (agent_mem_read_string): Likewise.
15259 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15260 (add_traceframe_block): Add new argument TPOINT.
15261 Increase TPOINT->traceframe_usage.
15262 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15263 eval_tracepoint_agent_expr.
15264 (condition_true_at_tracepoint): Likewise.
15265 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15266 (agent_mem_read_string, agent_tsv_read): Likewise.
15267
15268 2013-01-16 Yao Qi <yao@codesourcery.com>
15269
15270 * linux-low.c (linux_resume_one_lwp): Don't check
15271 'lwp->bp_reinsert != 0'.
15272
15273 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15274 Pedro Alves <palves@redhat.com>
15275
15276 * lynx-low.c (ptrace_request_to_str): Define a temporary
15277 macro and use it to simplify this function's implementation.
15278
15279 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15280
15281 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15282 sets errno.
15283
15284 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15285
15286 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15287
15288 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15289
15290 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15291
15292 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15293
15294 * lynx-low.c (lynx_resume): Use the resume_info parameter
15295 to determine the ptid for the lynx_ptrace call, unless
15296 it is equal to minus_one_ptid, in which case we use the
15297 ptid of the current_inferior.
15298 (lynx_wait_1): After having received a thread create/exit
15299 event, resume the inferior's execution using the signaling
15300 thread's ptid, rather than the old ptid.
15301
15302 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15303
15304 * lynx-low.c (lynx_resume): Delete variable ret.
15305
15306 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15307
15308 * gdbreplay.c (gdbreplay_version): Update copyright year.
15309 * server.c (gdbserver_version): Likewise.
15310
15311 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15312
15313 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15314 new thread.
15315
15316 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15317
15318 * lynx-low.c (ptrace_request_to_str): Add handling for
15319 PTRACE_GETTRACESIG.
15320
15321 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15322
15323 * lynx-low.c (lynx_attach): Delete variable new_process.
15324
15325 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15326
15327 * lynx-low.c (lynx_create_inferior): Delete variable
15328 new_process.
15329
15330 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15331
15332 * lynx-low.c (ptrace_request_to_str): Do not handle
15333 PTRACE_GETTHREADLIST if this macro does not exist.
15334
15335 2012-12-15 Yao Qi <yao@codesourcery.com>
15336
15337 * Makefile.in (OBS): Add notif.o.
15338 * notif.c, notif.h: New.
15339 * server.c: Include "notif.h".
15340 (struct vstop_notif) <next>: Remove.
15341 <base>: New field.
15342 (queue_stop_reply): Update.
15343 (push_event, send_next_stop_reply): Remove.
15344 (discard_queued_stop_replies): Update.
15345 (notif_stop): New variable.
15346 (handle_v_stopped): Remove.
15347 (handle_v_requests): Don't call handle_v_stopped. Call
15348 handle_ack_notif instead.
15349 (queue_stop_reply_callback): Call notif_event_enque instead
15350 of queue_stop_reply.
15351 (handle_status): Don't call send_next_stop_reply, call
15352 notif_write_event instead.
15353 (kill_inferior_callback): Likewise.
15354 (detach_or_kill_inferior_callback): Likewise.
15355 (main): Call initialize_notif.
15356 (process_serial_event): Call QUEUE_is_empty.
15357 (handle_target_event): Call notif_push instead of push event.
15358 * server.h (push_event): Remove declaration.
15359
15360 2012-12-10 Tom Tromey <tromey@redhat.com>
15361
15362 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15363 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15364 macros.
15365 (.c.o): Rewrite.
15366 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15367 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15368 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15369 (amd64-linux-ipa.o, ax.o): Rewrite.
15370 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15371 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15372 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15373 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15374 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15375 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15376 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15377 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15378 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15379 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15380 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15381 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15382 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15383 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15384 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15385 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15386 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15387 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15388 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15389 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15390 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15391 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15392 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15393 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15394 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15395 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15396 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15397 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15398 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15399 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15400 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15401 (reg-tilegx.o): Remove.
15402 (all_object_files): New macro.
15403 Include .deps files.
15404 * aclocal.m4, configure: Rebuild.
15405 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15406 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15407 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15408
15409 2012-12-05 Tom Tromey <tromey@redhat.com>
15410
15411 PR gdb/14917:
15412 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15413
15414 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15415
15416 * configure.ac: Check for linux/perf_event.h.
15417 * config.in: Regenerated.
15418 * configure: Regenerated.
15419
15420 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15421
15422 * hostio.c (handle_readlink): Decrease buffer size
15423 parameter passed to readlink by one byte.
15424
15425 2012-11-26 Yao Qi <yao@codesourcery.com>
15426
15427 * configure.ac (build_warnings): Append '-Wempty-body'.
15428 * configure: Regenerated.
15429 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15430 body.
15431
15432 2012-11-15 Pierre Muller <muller@sourceware.org>
15433
15434 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15435 * config.in: Regenerate.
15436 * configure: Regenerate.
15437 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15438 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15439 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15440 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15441 header.
15442 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15443 instead of <sys/wait.h> header.
15444 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15445
15446 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15447
15448 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15449 (various make rules): Remove -DGDBSERVER
15450
15451 2012-11-09 Yao Qi <yao@codesourcery.com>
15452
15453 * spu-low.c (current_ptid): Move it to ..
15454 * gdbthread.h: ... here. New.
15455 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15456 * server.c (myresume, process_serial_event): Likewise.
15457 * thread-db.c (thread_db_find_new_threads): Likewise.
15458 * tracepoint.c (run_inferior_command): Likewise.
15459
15460 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15461
15462 * server.c (handle_search_memory_1): Include access length in
15463 warning message.
15464
15465 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15466
15467 * linux-crisv32-low.c: Fix compile errors.
15468
15469 2012-09-04 Yao Qi <yao@codesourcery.com>
15470
15471 * tracepoint.c (cmd_qtsv): Adjust debug message.
15472 Don't check CUR_TPOINT.
15473
15474 2012-08-28 Yao Qi <yao@codesourcery.com>
15475
15476 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15477 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15478 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15479 Remove declarations of xmalloc, xreallloc, xstrdup and
15480 freeargv.
15481 * Makefile.in (libiberty_h): New.
15482 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15483 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15484
15485 2012-08-23 Yao Qi <yao@codesourcery.com>
15486
15487 * server.h: Remove declaration of 'xsnprintf'.
15488
15489 2012-08-22 Keith Seitz <keiths@redhat.com>
15490
15491 * server.h: Include build-gnulib-gbserver/config.h.
15492 * gdbreplay.c: Likewise.
15493
15494 2012-08-08 Doug Evans <dje@google.com>
15495
15496 * Makefile.in (SFILES): Add gdb_vecs.c.
15497 (OBS): Add gdb_vecs.o.
15498 (gdb_vecs_h, host_defs_h): New variables.
15499 (thread-db.o): Add $(gdb_vecs_h) dependency.
15500 (gdb_vecs.o): New rule.
15501 * thread-db.c: #include "gdb_vecs.h".
15502 (thread_db_load_search): Use a vector to iterate over path elements.
15503 Handle text appearing after "$pdir".
15504
15505 * configure.ac: Add check for strstr.
15506 * config.in: Regenerate.
15507 * configure: Regenerate.
15508
15509 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15510
15511 * hostio.c (handle_pread): If pread fails, fall back to attempting
15512 lseek/read.
15513 (handle_pwrite): Likewise for pwrite.
15514
15515 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15516
15517 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15518 between unsupported TYPE and unimplementable ADDR/LEN combination.
15519 (arm_insert_point): Act on new return value.
15520
15521 2012-07-31 Pedro Alves <palves@redhat.com>
15522
15523 * server.c (process_point_options): Only skip tokens if we find
15524 one that is unrecognized. Don't treat 'X' specially while
15525 skipping unrecognized tokens.
15526
15527 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15528
15529 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15530 to 4-byte-align HW breakpoint addresses for Thumb.
15531
15532 2012-07-27 Yao Qi <yao@codesourcery.com>
15533
15534 PR remote/14161.
15535
15536 * server.h: Declare gdb_agent_about_to_close.
15537 * target.c (kill_inferior): Include "agent.h".
15538 New. Send command 'kill'.
15539 * target.h (kill_inferior): Removed macro.
15540 * tracepoint.c (gdb_agent_about_to_close): New.
15541 (gdb_agent_helper_thread): Handle command 'close'.
15542 Wait endlessly until the inferior stops.
15543 Install gdb_agent_remove_socket to atexit hook.
15544 (agent_socket_name): New static variable.
15545 (gdb_agent_socket_init): Replace local variable 'name' with
15546 'agent_socket_name'.
15547 (gdb_agent_remove_socket): New.
15548
15549 2012-07-27 Yao Qi <yao@codesourcery.com>
15550
15551 * server.c (process_point_options): Stop at 'X' when parsing.
15552
15553 2012-07-19 Michael Eager <eager@eagercon.com>
15554
15555 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15556 to hw_execute.
15557 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15558 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15559 hardware breakpoint.
15560
15561 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15562
15563 * gdbserver/linux-low.c (initialize_low): Call
15564 linux_ptrace_init_warnings.
15565
15566 2012-07-02 Doug Evans <dje@google.com>
15567
15568 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15569 pointer to int.
15570
15571 2012-07-02 Stan Shebs <stan@codesourcery.com>
15572
15573 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15574 (ax.o): Add it to build rule.
15575 (ax-ipa.o): Ditto.
15576 (OBS): Add format.o.
15577 (IPA_OBS): Add format.o.
15578 * server.c (handle_query): Claim support for breakpoint commands.
15579 (process_point_options): Add command case.
15580 (process_serial_event): Leave running if there are printfs in
15581 effect.
15582 * mem-break.h (any_persistent_commands): Declare.
15583 (add_breakpoint_commands): Declare.
15584 (gdb_no_commands_at_breakpoint): Declare.
15585 (run_breakpoint_commands): Declare.
15586 * mem-break.c (struct point_command_list): New struct.
15587 (struct breakpoint): New field command_list.
15588 (any_persistent_commands): New function.
15589 (add_commands_to_breakpoint): New function.
15590 (add_breakpoint_commands): New function.
15591 (gdb_no_commands_at_breakpoint): New function.
15592 (run_breakpoint_commands): New function.
15593 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15594 locally.
15595 * ax.c: Include format.h.
15596 (ax_printf): New function.
15597 (gdb_eval_agent_expr): Add printf opcode.
15598
15599 2012-06-13 Yao Qi <yao@codesourcery.com>
15600
15601 * server.c (start_inferior): Remove duplicated writes to fields
15602 'last_resume_kind' and 'last_status' of 'current_inferior'.
15603
15604 2012-06-12 Yao Qi <yao@codesourcery.com>
15605 Pedro Alves <palves@redhat.com>
15606
15607 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15608 comment.
15609 * server.c (handle_v_cont): Extend comment.
15610
15611 2012-06-11 Yao Qi <yao@codesourcery.com>
15612
15613 * linux-low.c (linux_attach): Add 'static'.
15614
15615 2012-06-06 Yao Qi <yao@codesourcery.com>
15616
15617 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15618
15619 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15620
15621 Fix gcc -flto compilation warning.
15622 * server.c (main): Make variable multi_mode and attach volatile.
15623
15624 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15625
15626 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15627 if the platform doesn't know about it.
15628
15629 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15630
15631 * Makefile.in (SFILES): Add linux-tile-low.c.
15632 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15633 * configure.srv: Handle tilegx-*-linux*.
15634 * linux-tile-low.c: New file.
15635
15636 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15637
15638 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15639
15640 2012-05-24 Pedro Alves <palves@redhat.com>
15641
15642 PR gdb/7205
15643
15644 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15645
15646 2012-05-24 Pedro Alves <palves@redhat.com>
15647
15648 PR gdb/7205
15649
15650 Replace target_signal with gdb_signal throughout.
15651
15652 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15653
15654 * linux-low.c (linux_store_registers): Avoid the copying sequence
15655 when no data has been retrieved by ptrace.
15656
15657 2012-05-22 Will Deacon <will.deacon@arm.com>
15658
15659 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15660 Include asm/ptrace.h.
15661 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15662 already defined.
15663
15664 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15665
15666 * linux-low.c (linux_store_registers): Don't re-retrieve data
15667 with ptrace that has already been obtained from /proc. Always
15668 copy any data retrieved with ptrace to the buffer supplied.
15669
15670 2012-05-11 Yao Qi <yao@codesourcery.com>
15671 Pedro Alves <palves@redhat.com>
15672
15673 * linux-low.c (enum stopping_threads_kind): New.
15674 (stopping_threads): Change type to `enum stopping_threads_kind'.
15675 (handle_extended_wait): If stopping and suspending threads, leave
15676 the new_lwp suspended too.
15677 (linux_wait_for_event): Adjust.
15678 (stop_all_lwps): Set `stopping_threads' to
15679 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15680 whether we're suspending threads or just stopping them. Assert no
15681 recursion happens.
15682
15683 2012-04-29 Yao Qi <yao@codesourcery.com>
15684
15685 * server.h: Move some code to ...
15686 * gdbthread.h: ... here. New.
15687 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15688 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15689 (nto-low.o, win32-low.o): Likewise.
15690 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15691 * regcache.c, remote-utils.c, server.c: Likewise.
15692 * target.c, tracepoint.c, win32-low.c: Likewise.
15693
15694 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15695
15696 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15697 (PTRACE_ARG4_TYPE): Likewise.
15698 (PTRACE_XFER_TYPE): Likewise.
15699 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15700 ptrace to PTRACE_ARG3_TYPE.
15701 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15702 (PTRACE_ARG4_TYPE): Likewise.
15703 (PTRACE_XFER_TYPE): Likewise.
15704 (linux_detach_one_lwp): Cast fourth argument of
15705 ptrace to long then PTRACE_ARG4_TYPE.
15706 (regsets_fetch_inferior_registers): Cast third argument of
15707 ptrace to long then PTRACE_ARG3_TYPE.
15708 (regsets_store_inferior_registers): Likewise.
15709
15710 2012-04-20 Pedro Alves <palves@redhat.com>
15711
15712 * configure: Regenerate.
15713
15714 2012-04-19 Pedro Alves <palves@redhat.com>
15715
15716 * Makefile.in (GNULIB_BUILDDIR): New.
15717 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15718 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15719 (all, install-only, uninstall, clean-info, all-lib, clean): No
15720 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15721 (maintainer-clean realclean distclean): Use subdir_do.
15722 (subdir_do): New.
15723 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15724 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15725 * acinclude.m4: Include acx_configure_dir.m4.
15726 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15727 calls. Call AC_PROG_RANLIB. Configure gnulib using
15728 ACX_CONFIGURE_DIR.
15729 (GNULIB): New.
15730 (GNULIB_STDINT_H): Adjust.
15731 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15732 * gdbreplay.c: Include build-gnulib/config.h.
15733 * server.h: Likewise.
15734 * aclocal.m4: Regenerate.
15735 * config.in: Regenerate.
15736 * configure: Regenerate.
15737
15738 2012-04-19 Pedro Alves <palves@redhat.com>
15739
15740 * Makefile.in (LIBGNU, INCGNU): Adjust.
15741 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15742 (all, install-only, uninstall, clean-info, all-lib, clean)
15743 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15744 * configure.ac: Adjust AC_OUTPUT output.
15745 * aclocal.m4: Regenerate.
15746 * configure: Regenerate.
15747
15748 2012-04-19 Pedro Alves <palves@redhat.com>
15749
15750 * Makefile.in (generated_files): New.
15751 (server_h): Remove the explicit dependency on config.h, and depend
15752 on $generated_files.
15753
15754 2012-04-19 Pedro Alves <palves@redhat.com>
15755
15756 * Makefile.in (INCGNU): Add -Ignulib.
15757
15758 2012-04-19 Pedro Alves <palves@redhat.com>
15759
15760 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15761 (INCGNU): ... this, and spell out -I here.
15762 (GNULIB_LIB): Rename to ...
15763 (LIBGNU): ... this.
15764 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15765
15766 2012-04-19 Pedro Alves <palves@redhat.com>
15767
15768 * config.in: Regenerate.
15769
15770 2012-04-19 Pedro Alves <palves@redhat.com>
15771
15772 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15773 * server.h (memmem): Remove declaration.
15774 * config.in: Regenerate.
15775 * configure: Regenerate.
15776
15777 2012-04-19 Yao Qi <yao@codesourcery.com>
15778
15779 * Makefile.in (SFILES): Add common/vec.c.
15780 (OBS): Add vec.o.
15781 (vec.o): New rule.
15782
15783 2012-04-19 Yao Qi <yao@codesourcery.com>
15784
15785 * remote-utils.c (prepare_resume_reply): Replace with macro
15786 target_core_of_thread.
15787 * server.c (handle_qxfer_threads_proper): Likewise.
15788 * target.h (traget_core_of_thread): New macro.
15789
15790 2012-04-18 Pedro Alves <palves@redhat.com>
15791
15792 * aclocal.m4: Regenerate.
15793 * configure: Regenerate.
15794
15795 2012-04-16 Yao Qi <yao@codesourcery.com>
15796
15797 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15798 duplicated on address.
15799
15800 2012-04-16 Yao Qi <yao@codesourcery.com>
15801
15802 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15803 (struct tracepoint_action_ops) <send>: New field.
15804 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15805 (agent_expr_send, x_tracepoint_action_send): New.
15806 (l_tracepoint_action_send): New.
15807 (cmd_qtdp): Download and install tracepoint
15808 according to `use_agent'.
15809 (run_inferior_command): Add one more parameter `len'.
15810 Update callers.
15811 (tracepoint_send_agent): New.
15812 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15813
15814 2012-04-16 Yao Qi <yao@codesourcery.com>
15815
15816 * tracepoint.c (download_tracepoints): Moved to ...
15817 (cmd_qtstart): ... here.
15818
15819 2012-04-14 Yao Qi <yao@codesourcery.com>
15820
15821 * tracepoint.c: Include inttypes.h.
15822 (struct collect_memory_action): Use sized types.
15823 (struct tracepoint): Likewise.
15824 (cmd_qtdp, stop_tracing): Update print specifiers.
15825 (cmd_qtp, response_tracepoint): Likewise.
15826 (collect_data_at_tracepoint): Likewise.
15827 (collect_data_at_step): Likewise.
15828
15829 2012-04-14 Yao Qi <yao@codesourcery.com>
15830
15831 Import gnulib module inttypes.
15832 * aclocal.m4, config.in, configure: Regenerated.
15833
15834 2012-04-14 Yao Qi <yao@codesourcery.com>
15835
15836 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15837 Makefile and config.status at last.
15838
15839 2012-04-13 Yao Qi <yao@codesourcery.com>
15840
15841 * tracepoint.c: Include stdint.h unconditionally.
15842
15843 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15844
15845 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15846 on BFD_HAVE_SYS_PROCFS_TYPE.
15847 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15848 * configure: Regenerate.
15849 * config.in: Likewise.
15850
15851 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15852
15853 * Makefile.in (clean): Also remove x32.c x32-linux.c
15854 x32-avx.c x32-avx-linux.c.
15855 (x32.o): New target.
15856 (x32.c): Likewise.
15857 (x32-linux.o): Likewise.
15858 (x32-linux.c): Likewise.
15859 (x32-avx.o): Likewise.
15860 (x32-avx.c): Likewise.
15861 (x32-avx-linux.o): Likewise.
15862 (x32-avx-linux.c): Likewise.
15863
15864 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15865 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15866 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15867 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15868 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15869 i386/x32-avx-linux.xml.
15870
15871 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15872 (init_registers_x32_avx_linux): Likwise.
15873 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15874 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15875
15876 2012-04-13 Pedro Alves <palves@redhat.com>
15877
15878 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15879 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15880 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15881 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15882 the sub-make.
15883
15884 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15885
15886 * linux-x86-low.c (compat_x32_clock_t): New.
15887 (compat_x32_siginfo_t): Likewise.
15888 (compat_x32_siginfo_from_siginfo): Likewise.
15889 (siginfo_from_compat_x32_siginfo): Likewise.
15890 (linux_is_elf64): Likewise.
15891 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15892 and siginfo_from_compat_x32_siginfo for x32.
15893 (x86_arch_setup): Set linux_is_elf64.
15894
15895 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15896
15897 PR gdb/13969
15898 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15899 e_machine field.
15900 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15901 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15902 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15903 compatible with process.
15904
15905 2012-04-12 Yao Qi <yao@codesourcery.com>
15906
15907 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15908 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15909 (install-only, install-info, clean): Handle sub dir gnulib.
15910 (all-lib, am--refresh): New targets.
15911 (memmem.o): Remove target.
15912 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15913 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15914 (AC_REPLACE_FUNCS): Remove memmem.
15915 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15916 (AC_OUTPUT): Generate Makefile in gnulib/.
15917 * aclocal.m4, config.in, configure: Regenerated.
15918
15919 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15920
15921 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15922
15923 2012-04-05 Pedro Alves <palves@redhat.com>
15924
15925 -Werror=strict-aliasing
15926
15927 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15928 pointer.
15929
15930 2012-04-04 Pedro Alves <palves@redhat.com>
15931
15932 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15933 (sparc_store_gregset_from_stack, sparc_store_gregset)
15934 (sparc_breakpoint_at): Fix formatting.
15935
15936 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15937
15938 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15939 are available.
15940 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15941 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15942 * config.in: Regenerate.
15943 * configure: Likewise.
15944
15945 2012-03-29 Pedro Alves <palves@redhat.com>
15946
15947 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15948 Correct ptrace arguments.
15949
15950 2012-03-28 Pedro Alves <palves@redhat.com>
15951
15952 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15953 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15954 (IA64_FR1_REGNUM): New defines.
15955 (ia64_fetch_register): New.
15956 (the_low_target): Install it.
15957 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15958 field.
15959 * linux-low.c (linux_fetch_registers): Try the
15960 the_low_target.fetch_register hook first.
15961
15962 * linux-arm-low.c (the_low_target): Adjust.
15963 * linux-bfin-low.c (the_low_target): Adjust.
15964 * linux-cris-low.c (the_low_target): Adjust.
15965 * linux-crisv32-low.c (the_low_target): Adjust.
15966 * linux-m32r-low.c (the_low_target): Adjust.
15967 * linux-m68k-low.c (the_low_target): Adjust.
15968 * linux-mips-low.c (the_low_target): Adjust.
15969 * linux-ppc-low.c (the_low_target): Adjust.
15970 * linux-s390-low.c (the_low_target): Adjust.
15971 * linux-sh-low.c (the_low_target): Adjust.
15972 * linux-sparc-low.c (the_low_target): Adjust.
15973 * linux-tic6x-low.c (the_low_target): Adjust.
15974 * linux-x86-low.c (the_low_target): Adjust.
15975 * linux-xtensa-low.c (the_low_target): Adjust.
15976
15977 2012-03-26 Pedro Alves <palves@redhat.com>
15978
15979 * server.c (handle_qxfer_libraries): Don't bail early if
15980 the_target->qxfer_libraries_svr4 is not NULL.
15981
15982 2012-03-26 Pedro Alves <palves@redhat.com>
15983
15984 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15985
15986 2012-03-23 Pedro Alves <palves@redhat.com>
15987
15988 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15989 "library-list-svr4" element's start tag when the the DSO list is
15990 empty.
15991
15992 2012-03-23 Pedro Alves <palves@redhat.com>
15993
15994 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15995 a variable whose type size is the same as the inferior's pointer
15996 size.
15997
15998 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15999
16000 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16001 struct siginfo.
16002 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16003 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16004 * linux-low.h: Include <signal.h>.
16005 (struct siginfo): Remove forward declaration.
16006 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16007 struct siginfo.
16008
16009 2012-03-21 Mike Frysinger <vapier@gentoo.org>
16010
16011 * .gitignore: Ignore more files.
16012
16013 2012-03-19 Pedro Alves <palves@redhat.com>
16014 Jan Kratochvil <jan.kratochvil@redhat.com>
16015
16016 * server.c (cont_thread, general_thread): Add describing comments.
16017 (start_inferior): Clear `cont_thread'.
16018 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16019 of a process.
16020
16021 2012-03-15 Yao Qi <yao@codesourcery.com>
16022
16023 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16024 handling to ...
16025 (cmd_qtdp): ... here.
16026
16027 2012-03-15 Yao Qi <yao@codesourcery.com>
16028
16029 * tracepoint.c (struct tracepoint_action_ops): New.
16030 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16031 (m_tracepoint_action_download): New.
16032 (r_tracepoint_action_download): New.
16033 (x_tracepoint_action_download): New.
16034 (l_tracepoint_action_download): New.
16035 (add_tracepoint_action): Install `action->ops' according type.
16036 (download_tracepoint_1): Move code `download' function pointer
16037 of various tracepoint_action_ops.
16038
16039 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16040
16041 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16042 linux_ptrace_attach_warnings.
16043
16044 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16045
16046 * Makefile.in (linux-ptrace.o): New.
16047 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16048 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16049 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16050 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16051 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16052 of these targets.
16053 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16054
16055 2012-03-08 Yao Qi <yao@codesourcery.com>
16056 Pedro Alves <palves@redhat.com>
16057
16058 Fix PR server/13392.
16059 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16060 offset of JMP insn.
16061 * tracepoint.c (remove_tracepoint): New.
16062 (cmd_qtdp): Call remove_tracepoint when failed to install.
16063
16064 2012-03-07 Pedro Alves <palves@redhat.com>
16065
16066 * linux-low.c (get_detach_signal): New.
16067 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16068 Pass on pending signals to PTRACE_DETACH. Check the result of the
16069 ptrace call.
16070 * server.c (program_signals, program_signals_p): New.
16071 (handle_general_set): Handle QProgramSignals.
16072 * server.h (program_signals, program_signals_p): Declare.
16073
16074 2012-03-05 Pedro Alves <palves@redhat.com>
16075 Jan Kratochvil <jan.kratochvil@redhat.com>
16076
16077 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16078 New comment why.
16079
16080 2012-03-03 Yao Qi <yao@codesourcery.com>
16081
16082 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16083 agent_look_up_symbols.
16084
16085 2012-03-03 Yao Qi <yao@codesourcery.com>
16086
16087 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16088 (linux-x86-low.o): Likewise.
16089 * server.h: Remove in_process_agent_loaded.
16090 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16091 common/agent.c.
16092 Update callers.
16093
16094 2012-03-03 Yao Qi <yao@codesourcery.com>
16095
16096 * tracepoint.c (gdb_agent_capability): New global.
16097 (in_process_agent_loaded_ust): Renamed to
16098 `in_process_agent_supports_ust'.
16099 Update callers.
16100 (in_process_agent_supports_ust): Call agent_capability_check.
16101 (clear_installed_tracepoints): Assert that agent supports
16102 agent.
16103
16104 2012-03-03 Yao Qi <yao@codesourcery.com>
16105
16106 * linux-low.c (linux_supports_agent): New.
16107 (linux_target_ops): Initialize field `supports_agent' with
16108 linux_supports_agent.
16109 * target.h (struct target_ops) <supports_agent>: New.
16110 (target_supports_agent): New macro.
16111 * server.c (handle_general_set): Handle packet 'QAgent'.
16112 (handle_query): Send `QAgent+'.
16113 * Makefile.in (server.o): Depends on agent.h.
16114
16115 2012-03-03 Yao Qi <yao@codesourcery.com>
16116
16117 * Makefile.in (OBS): Add agent.o.
16118 Add new rule for agent.o.
16119 Track dependence of tracepoint.c on agent.h.
16120 * tracepoint.c (run_inferior_command_1):
16121 (run_inferior_command): Call agent_run_command.
16122 (gdb_ust_connect_sync_socket): Deleted. Move it to
16123 common/agent.c.
16124 (resume_thread, stop_thread): Likewise.
16125 (gdb_ust_socket_init): Renamed to ...
16126 (gdb_agent_socket_init): ... New.
16127 (gdb_ust_thread): Renamed to ...
16128 (gdb_agent_helper_thread): ... New.
16129 (gdb_ust_init): Move some code to ...
16130 (gdb_agent_init): ... here. New.
16131 [HAVE_UST]: Call gdb_ust_init.
16132 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16133 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16134 * config.in, configure: Regenerated.
16135
16136 2012-03-02 Pedro Alves <palves@redhat.com>
16137
16138 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16139 * linux-low.c (struct simple_pid_list): New.
16140 (stopped_pids): New a struct simple_pid_list pointer.
16141 (add_to_pid_list, pull_pid_from_list): New.
16142 (handle_extended_wait): Don't assume the first signal new children
16143 report is SIGSTOP. Adjust call to pull_pid_from_list.
16144 (linux_wait_for_lwp): Adjust.
16145
16146 2012-03-02 Yao Qi <yao@codesourcery.com>
16147
16148 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16149 debug log.
16150
16151 2012-03-02 Yao Qi <yao@codesourcery.com>
16152
16153 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16154 `stop_pc' and `tpoint'. Update caller.
16155
16156 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16157
16158 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16159 * linux-low.c (use_linux_regsets): New macro.
16160 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16161 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16162 (linux_register_in_regsets): New function.
16163 (usr_fetch_inferior_registers): Skip registers covered by
16164 regsets.
16165 (usr_store_inferior_registers): Likewise.
16166 (usr_fetch_inferior_registers): New macro.
16167 (usr_store_inferior_registers): Likewise.
16168 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16169 (linux_store_registers): Likewise.
16170 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16171 prototype.
16172 (init_registers_mips64_dsp_linux): Likewise.
16173 (init_registers_mips_linux): New macro.
16174 (init_registers_mips_dsp_linux): Likewise.
16175 (mips_dsp_num_regs): Likewise.
16176 (DSP_BASE, DSP_CONTROL): New fallback macros.
16177 (mips_base_regs): New macro.
16178 (mips_regmap): Use it. Fix the size.
16179 (mips_dsp_regmap): New variable.
16180 (mips_dsp_regset_bitmap): Likewise.
16181 (mips_arch_setup): New function.
16182 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16183 than mips_regmap.
16184 (mips_cannot_store_register): Likewise.
16185 (the_low_target): Update .arch_setup, .num_regs and .regmap
16186 initializers. Add .regset_bitmap initializer.
16187 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16188 initializer.
16189 * linux-bfin-low.c (the_low_target): Likewise.
16190 * linux-cris-low.c (the_low_target): Likewise.
16191 * linux-crisv32-low.c (the_low_target): Likewise.
16192 * linux-ia64-low.c (the_low_target): Likewise.
16193 * linux-m32r-low.c (the_low_target): Likewise.
16194 * linux-m68k-low.c (the_low_target): Likewise.
16195 * linux-ppc-low.c (the_low_target): Likewise.
16196 * linux-s390-low.c (the_low_target): Likewise.
16197 * linux-sh-low.c (the_low_target): Likewise.
16198 * linux-sparc-low.c (the_low_target): Likewise.
16199 * linux-tic6x-low.c (the_low_target): Likewise.
16200 * linux-x86-low.c (the_low_target): Likewise.
16201 * linux-xtensa-low.c (the_low_target): Likewise.
16202 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16203 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16204 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16205 srv_xmlfiles.
16206 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16207 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16208
16209 2012-02-29 Yao Qi <yao@codesourcery.com>
16210 Pedro Alves <palves@redhat.com>
16211
16212 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16213 `step_over_finished' is true.
16214
16215 2012-02-27 Pedro Alves <palves@redhat.com>
16216
16217 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16218 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16219
16220 2012-02-27 Pedro Alves <palves@redhat.com>
16221
16222 PR server/9684
16223 * linux-low.c (pid_is_stopped): New.
16224 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16225
16226 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16227
16228 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16229 of conditions.
16230
16231 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16232
16233 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16234
16235 2012-02-24 Luis Machado <lgustavo@codesourcery>
16236
16237 * server.c (handle_query): Advertise support for target-side
16238 breakpoint condition evaluation.
16239 (process_point_options): New function.
16240 (process_serial_event): When inserting a breakpoint, check for
16241 a target-side condition that should be evaluated.
16242
16243 * mem-break.c: Include regcache.h and ax.h.
16244 (point_cond_list_t): New data structure.
16245 (breakpoint) <cond_list>: New field.
16246 (find_gdb_breakpoint_at): Make non-static.
16247 (delete_gdb_breakpoint_at): Clear any target-side
16248 conditions.
16249 (clear_gdb_breakpoint_conditions): New function.
16250 (add_condition_to_breakpoint): Likewise.
16251 (add_breakpoint_condition): Likewise.
16252 (gdb_condition_true_at_breakpoint): Likewise.
16253 (gdb_breakpoint_here): Return result directly instead
16254 of going through a local variable.
16255
16256 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16257 (clear_gdb_breakpoint_conditions): Likewise.
16258 (add_breakpoint_condition): Likewise.
16259 (gdb_condition_true_at_breakpoint): Likewise.
16260
16261 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16262 (need_step_over_p): Take target-side breakpoint condition into
16263 consideration.
16264
16265 2012-02-24 Luis Machado <lgustavo@codesourcery>
16266
16267 * server.h: Include tracepoint.h.
16268 (agent_mem_read, agent_get_trace_state_variable_value,
16269 agent_set_trace_state_variable_value,
16270 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16271 get_set_tsv_func_addr): New prototypes.
16272
16273 * ax.h: New include file.
16274 * ax.c: New source file.
16275
16276 * tracepoint.c: Include ax.h.
16277 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16278 agent_expr, eval_result_type): Move to ax.h.
16279 (parse_agent_expr): Rename to ...
16280 (gdb_parse_agent_expr): ... this, make it non-static and move
16281 to ax.h.
16282 (unparse_agent_expr) Rename to ...
16283 (gdb_unparse_agent_expr): ... this, make it non-static and move
16284 to ax.h.
16285 (eval_agent_expr): Rename to ...
16286 (eval_tracepoint_agent_expr): ... this.
16287 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16288 forward declarations.
16289 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16290 (agent_get_trace_state_variable_value): New function.
16291 (agent_set_trace_state_variable_value): New function.
16292 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16293 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16294 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16295 (condition_true_at_tracepoint): Likewise.
16296 (parse_agent_expr): Rename to ...
16297 (gdb_parse_agent_expr): ... this and move to ax.c.
16298 (unparse_agent_expr): Rename to ...
16299 (gdb_unparse_agent_expr): ... this and move to ax.c.
16300 (gdb_agent_op_name): Move to ax.c.
16301 (eval_agent_expr): Rename to ...
16302 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16303 and move to ax.c.
16304 (eval_tracepoint_agent_expr): New function.
16305 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16306 non-static.
16307 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16308 ax.c.
16309 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16310 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16311 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16312 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16313 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16314 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16315 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16316 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16317 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16318 (compile_bytecodes): Remove forward declaration.
16319 (is_goto_target): Move to ax.c.
16320 (compile_bytecodes): Move to ax.c and call
16321 agent_get_trace_state_variable_value (...) and
16322 agent_set_trace_state_variable_value (...).
16323
16324 * Makefile.in: Update ax.c and IPA dependencies.
16325
16326 2012-02-24 Pedro Alves <palves@redhat.com>
16327
16328 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16329 (cmd_bigqtbuffer_circular): ... this. Only handle
16330 'QTBuffer:circular:'.
16331 (handle_tracepoint_general_set): Adjust.
16332
16333 2012-02-16 Yao Qi <yao@codesourcery.com>
16334
16335 * inferiors.c: Move code to ...
16336 * dll.c: .... here. New.
16337 * server.h: Declare clear_dlls.
16338 * Makefile.in (SFILES): Add dll.c.
16339 (OBS): Add dll.o
16340 (dll.o): New rule.
16341
16342 2012-02-11 Yao Qi <yao@codesourcery.com>
16343
16344 * server.c: (handle_monitor_command): Add a new parameter
16345 `own_buf'.
16346 (handle_query): Update caller.
16347
16348 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16349
16350 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16351 * configure, config.in: Regenerate.
16352 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16353 is not defined.
16354
16355 2012-02-02 Pedro Alves <palves@redhat.com>
16356
16357 Try SIGKILL first, then PTRACE_KILL.
16358 * linux-low.c (linux_kill_one_lwp): New.
16359 (linux_kill_one_lwp): Rename to ...
16360 (kill_one_lwp_callback): ... this. Use the new
16361 linux_kill_one_lwp.
16362
16363 2012-02-02 Pedro Alves <palves@redhat.com>
16364
16365 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16366 inferior.
16367
16368 2012-01-27 Pedro Alves <palves@redhat.com>
16369
16370 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16371 (elf_64_file_p): Make static.
16372 (linux_pid_exe_is_elf_64_file): New.
16373 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16374 Delete declarations.
16375 (linux_pid_exe_is_elf_64_file): Declare.
16376 * linux-x86-low.c (x86_arch_setup): Use
16377 linux_pid_exe_is_elf_64_file.
16378
16379 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16380
16381 * linux-low.c (linux_wait_for_event_1): Rename to ...
16382 (linux_wait_for_event): ... here and merge it with former
16383 linux_wait_for_event - new variable wait_ptid, use it.
16384 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16385
16386 2012-01-23 Pedro Alves <palves@redhat.com>
16387
16388 * server.c (main): Avoid yet another case of infinite loop while
16389 detaching/killing after a longjmp.
16390
16391 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16392
16393 Code cleanup.
16394 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16395
16396 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16397
16398 * hostio.c (handle_readlink): New function.
16399 (handle_vFile): Call it to handle "vFile:readlink" packets.
16400
16401 2012-01-20 Pedro Alves <palves@redhat.com>
16402 Ulrich Weigand <ulrich.weigand@linaro.org>
16403
16404 * server.c (handle_v_requests): Only support vAttach and vRun to
16405 start multiple processes when in extended protocol mode.
16406
16407 2012-01-17 Pedro Alves <palves@redhat.com>
16408
16409 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16410 memalign plus mprotect to allocate the scratch buffer.
16411
16412 2012-01-13 Pedro Alves <palves@redhat.com>
16413
16414 * server.c (attach_inferior): Clear `cont_thread'.
16415
16416 2012-01-13 Pedro Alves <palves@redhat.com>
16417
16418 * server.c (main): Avoid infinite loop while detaching/killing
16419 after a longjmp.
16420
16421 2012-01-09 Doug Evans <dje@google.com>
16422
16423 * server.c (start_inferior): Set last_ptid in --wrapper case.
16424
16425 2012-01-06 Yao Qi <yao@codesourcery.com>
16426
16427 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16428 defined.
16429 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16430
16431 2012-01-04 Yao Qi <yao@codesourcery.com>
16432
16433 * tracepoint.c (cmd_qtdp): Print debug message
16434 for static tracepoint.
16435
16436 2012-01-04 Yao Qi <yao@codesourcery.com>
16437
16438 * tracepoint.c (trace_vdebug): Differentiate debug message
16439 between gdbserver and IPA.
16440
16441 2012-01-03 Yao Qi <yao@codesourcery.com>
16442
16443 * tracepoint.c (tracepoint_was_hit): Don't collect for
16444 static tracepoint.
16445
16446 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16447
16448 * terminal.h: Reformat copyright header.
16449
16450 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16451
16452 * server.c (gdbserver_version): Update copyright year.
16453 * gdbreplay.c (gdbreplay_version): Likewise.
16454
16455 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16456
16457 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16458
16459 Revert:
16460 2011-12-18 Hui Zhu <teawater@gmail.com>
16461 * linux-low.c (linux_create_inferior): Save return value to ret.
16462
16463 2011-12-18 Hui Zhu <teawater@gmail.com>
16464
16465 * linux-low.c (linux_create_inferior): Save return value to ret.
16466
16467 2011-12-16 Doug Evans <dje@google.com>
16468
16469 * linux-low.c (linux_create_inferior): If stdio connection,
16470 redirect stdin from /dev/null, stdout to stderr.
16471 * remote-utils.c (remote_is_stdio): New static global.
16472 (remote_connection_is_stdio): New function.
16473 (remote_prepare): Handle stdio connection.
16474 (remote_open): Ditto.
16475 (remote_close): Don't close stdin for stdio connections.
16476 (read_prim,write_prim): New functions. Replace all calls to
16477 read/write to these.
16478 * server.c (main): Watch for "-" argument. Move call to
16479 remote_prepare before start_inferior.
16480 * server.h (STDIO_CONNECTION_NAME): New macro.
16481 (remote_connection_is_stdio): Declare.
16482
16483 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16484 in debugging output.
16485
16486 2011-12-15 Yao Qi <yao@codesourcery.com>
16487
16488 * tracepoint.c: Include sys/syscall.h.
16489 (gdb_ust_thread): Remove preprocessor conditional.
16490
16491 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16492
16493 * linux-low.c (linux_detach_one_lwp): Call
16494 the_low_target.prepare_to_resume before detaching.
16495
16496 2011-12-14 Yao Qi <yao@codesourcery.com>
16497
16498 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16499 of write.
16500
16501 2011-12-14 Yao Qi <yao@codesourcery.com>
16502
16503 * i386-low.c (i386_low_stopped_data_address): Initialize local
16504 variable `control'.
16505
16506 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16507
16508 PR remote/13492
16509
16510 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16511 DR_CONTROL unless necessary. Extend comments.
16512 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16513 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16514
16515 2011-12-13 Yao Qi <yao@codesourcery.com>
16516
16517 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16518 macros.
16519 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16520
16521 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16522
16523 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16524 Print new debug message for such case.
16525
16526 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16527
16528 Fix overlapping memcpy.
16529 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16530 the read_inferior_memory transfer.
16531 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16532 write_inferior_memory transfer.
16533 (set_fast_tracepoint_jump): New variable buf. Use it for the
16534 read_inferior_memory and write_inferior_memory transfers.
16535 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16536 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16537 Use it for the write_inferior_memory transfer.
16538 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16539 buffers.
16540
16541 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16542
16543 * linux-low.c (fetch_register, store_register): Make code
16544 consistent, fix formatting.
16545
16546 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16547
16548 * linux-low.c (usr_store_inferior_registers): Factor out code
16549 to handle individual registers into...
16550 (store_register): ... this new function.
16551
16552 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16553
16554 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16555 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16556 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16557 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16558 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16559 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16560 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16561 (srv_xmlfiles): Add new XML files.
16562
16563 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16564 and <sys/uio.h>.
16565 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16566 (init_registers_s390_linux32v1): Add prototype.
16567 (init_registers_s390_linux32v2): Likewise.
16568 (init_registers_s390_linux64v1): Likewise.
16569 (init_registers_s390_linux64v2): Likewise.
16570 (init_registers_s390x_linux64v1): Likewise.
16571 (init_registers_s390x_linux64v2): Likewise.
16572 (s390_num_regs): Increment to 52.
16573 (s390_regmap): Add orig_r2 register.
16574 (s390_num_regs_3264): Increment to 68.
16575 (s390_regmap_3264): Add orig_r2 register.
16576 (s390_collect_ptrace_register): Handle orig_r2 register.
16577 (s390_supply_ptrace_register): Likewise.
16578 (s390_fill_last_break): New function.
16579 (s390_store_last_break): Likewise.
16580 (s390_fill_system_call): New function.
16581 (s390_store_system_call): Likewise.
16582 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16583 register sets.
16584 (s390_check_regset): New function.
16585 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16586 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16587 Update target_regsets for available register sets.
16588
16589 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16590 Jan Kratochvil <jan.kratochvil@redhat.com>
16591
16592 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16593 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16594 New.
16595 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16596 * linux-low.h (struct process_info_private): New member r_debug.
16597 * server.c (handle_qxfer_libraries): Call
16598 the_target->qxfer_libraries_svr4.
16599 (handle_qxfer_libraries_svr4): New function.
16600 (qxfer_packets): New entry "libraries-svr4".
16601 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16602 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16603 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16604 PACKET_qXfer_libraries_svr4.
16605
16606 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16607
16608 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16609 PSW address/mask between 8-byte and 16-byte formats.
16610 (s390_supply_ptrace_register): Likewise.
16611 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16612 basic addressing mode bit.
16613
16614 2011-11-24 Stan Shebs <stan@codesourcery.com>
16615
16616 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16617
16618 2011-11-17 Stan Shebs <stan@codesourcery.com>
16619
16620 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16621 (tracing_start_time): New global.
16622 (tracing_stop_time): New global.
16623 (tracing_user_name): New global.
16624 (tracing_notes): New global.
16625 (tracing_stop_note): New global.
16626 (cmd_qtstart): Set traceframe_usage, start_time.
16627 (stop_tracing): Set stop_time.
16628 (cmd_qtstatus): Report additional status.
16629 (cmd_qtp): New function.
16630 (handle_tracepoint_query): Call it.
16631 (cmd_qtnotes): New function.
16632 (handle_tracepoint_general_set): Call it.
16633 (get_timestamp): Rename from tsv_get_timestamp.
16634
16635 2011-11-14 Stan Shebs <stan@codesourcery.com>
16636 Kwok Cheung Yeung <kcy@codesourcery.com>
16637
16638 * linux-x86-low.c (small_jump_insn): New.
16639 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16640 trampoline and error message, build a trampoline and issue a small
16641 jump instruction to it.
16642 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16643 trampoline and error message.
16644 (x86_get_min_fast_tracepoint_insn_len): New.
16645 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16646 * linux-low.h (struct linux_target_ops): Add arguments to
16647 install_fast_tracepoint_jump_pad operation, add new operation.
16648 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16649 arguments.
16650 (linux_get_min_fast_tracepoint_insn_len): New function.
16651 (linux_target_op): Add new operation.
16652 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16653 (gdb_trampoline_buffer_end): Ditto.
16654 (gdb_trampoline_buffer_error): Ditto.
16655 (struct ipa_sym_addresses): Add fields for new IPA variables.
16656 (symbol_list): Add entries for new IPA variables.
16657 (struct tracepoint): Add fields to hold the address range of the
16658 trampoline used by the tracepoint.
16659 (trampoline_buffer_head): New static variable.
16660 (trampoline_buffer_tail): Ditto.
16661 (claim_trampoline_space): New function.
16662 (have_fast_tracepoint_trampoline_buffer): New function.
16663 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16664 structure.
16665 (install_fast_tracepoint): Ditto, also add error buffer argument.
16666 (cmd_qtminftpilen): New function.
16667 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16668 (fast_tracepoint_from_trampoline_address): New function.
16669 (fast_tracepoint_collecting): Handle trampoline as part of jump
16670 pad space.
16671 (set_trampoline_buffer_space): New function.
16672 (initialize_tracepoint): Initialize new IPA variables.
16673 * target.h (struct target_ops): Add arguments to
16674 install_fast_tracepoint_jump_pad operation, add new
16675 get_min_fast_tracepoint_insn_len operation.
16676 (target_get_min_fast_tracepoint_insn_len): New.
16677 (install_fast_tracepoint_jump_pad): Add arguments.
16678 * server.h (IPA_BUFSIZ): Define.
16679 * linux-i386-ipa.c: Include extra header files.
16680 (initialize_fast_tracepoint_trampoline_buffer): New function.
16681 (initialize_low_tracepoint): Call it.
16682 * server.h (set_trampoline_buffer_space): Declare.
16683 (claim_trampoline_space): Ditto.
16684 (have_fast_tracepoint_trampoline_buffer): Ditto.
16685
16686 2011-11-14 Yao Qi <yao@codesourcery.com>
16687
16688 * server.c (handle_query): Handle InstallInTrace for qSupported.
16689 * tracepoint.c (add_tracepoint): Sort list.
16690 (install_tracepoint, download_tracepoint): New.
16691 (cmd_qtdp): Call them to install and download tracepoints.
16692 (sort_tracepoints): Removed.
16693 (cmd_qtstart): Update.
16694
16695 2011-11-14 Yao Qi <yao@codesourcery.com>
16696
16697 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16698 * mem-break.h: Declare.
16699 * tracepoint.c (cmd_qtstart): Move some code to ...
16700 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16701 New.
16702 (download_tracepoints): Move some code to ...
16703 (download_tracepoint_1): ... here. New.
16704
16705 2011-11-08 Yao Qi <yao@codesourcery.com>
16706
16707 * remote-utils.c (relocate_instruction): A comment fix.
16708
16709 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16710
16711 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16712 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16713 dr_status_mirror and dr_control_mirror from debug_reg_state.
16714 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16715 (i386_initial_stuff): Remove use of deleted globals.
16716 (i386_get_thread_context, i386_set_thread_context,
16717 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16718 from debug_reg_state.
16719
16720 2011-11-05 Yao Qi <yao@codesourcery.com>
16721
16722 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16723 address as TPOINT's.
16724
16725 2011-11-02 Stan Shebs <stan@codesourcery.com>
16726
16727 * tracepoint.c (agent_mem_read_string): New function.
16728 (eval_agent_expr): Call it for tracenz.
16729 * server.c (handle_query): Report support for tracenz.
16730
16731 2011-11-02 Yao Qi <yao@codesourcery.com>
16732
16733 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16734
16735 2011-11-02 Yao Qi <yao@codesourcery.com>
16736
16737 * target.h: Fix a typo in comment.
16738
16739 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16740
16741 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16742 clobber the breakpoints' shadows with fast tracepoint jumps.
16743 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16744 * target.c (write_inferior_memory): Also pass MYADDR down to
16745 check_mem_write.
16746
16747 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16748
16749 * configure.ac: Check support for personality routine.
16750 * configure: Regenerate.
16751 * config.in: Likewise.
16752 * linux-low.c: Include <sys/personality.h>.
16753 Define ADDR_NO_RANDOMIZE if necessary.
16754 (linux_create_inferior): Disable address space randomization when
16755 forking inferior, if requested.
16756 (linux_supports_disable_randomization): New function.
16757 (linux_target_ops): Install it.
16758 * server.h (disable_randomization): Declare.
16759 * server.c (disable_randomization): New global variable.
16760 (handle_general_set): Handle QDisableRandomization.
16761 (handle_query): Likewise for qSupported.
16762 (main): Support --disable-randomization and --no-disable-randomization
16763 command line arguments.
16764 * target.h (struct target_ops): Add supports_disable_randomization.
16765 (target_supports_disable_randomization): New macro.
16766
16767 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16768
16769 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16770 ifdef check.
16771 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16772 [!PT_GETDSBT] (target_loadmap): New definition.
16773 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16774 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16775 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16776 and PT_GETDSBT to LINUX_LOADMAP.
16777 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16778 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16779
16780 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16781
16782 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16783 (arm_linux_hwbp_cap): New static variable.
16784 (arm_linux_get_hwbp_cap): Replace by ...
16785 (arm_linux_init_hwbp_cap): ... this new function.
16786 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16787 (arm_linux_get_hw_watchpoint_count): Likewise.
16788 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16789 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16790 (arm_prepare_to_resume): Use perror_with_name instead of error.
16791
16792 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16793
16794 * linux-arm-low.c: Include <signal.h>.
16795 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16796 (struct arm_linux_hwbp_cap): New data type.
16797 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16798 (struct arm_linux_hw_breakpoint): New data type.
16799 (MAX_BPTS, MAX_WPTS): Define.
16800 (struct arch_process_info, struct arch_lwp_info): New data types.
16801 (arm_linux_get_hwbp_cap): New function.
16802 (arm_linux_get_hw_breakpoint_count): Likewise.
16803 (arm_linux_get_hw_watchpoint_count): Likewise.
16804 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16805 (arm_hwbp_control_initialize): Likewise.
16806 (arm_hwbp_control_is_enabled): Likewise.
16807 (arm_hwbp_control_is_initialized): Likewise.
16808 (arm_hwbp_control_disable): Likewise.
16809 (arm_linux_hw_breakpoint_equal): Likewise.
16810 (arm_linux_hw_point_initialize): Likewise.
16811 (struct update_registers_data): New data structure.
16812 (update_registers_callback: New function.
16813 (arm_insert_point): Likewise.
16814 (arm_remove_point): Likewise.
16815 (arm_stopped_by_watchpoint): Likewise.
16816 (arm_stopped_data_address): Likewise.
16817 (arm_new_process): Likewise.
16818 (arm_new_thread): Likewise.
16819 (arm_prepare_to_resume): Likewise.
16820 (the_low_target): Register arm_insert_point, arm_remove_point,
16821 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16822 arm_new_thread, and arm_prepare_to_resume.
16823
16824 2011-09-15 Stan Shebs <stan@codesourcery.com>
16825
16826 * server.h (struct emit_ops): Add compare-goto fields.
16827 * tracepoint.c (gdb_agent_op_sizes): New table.
16828 (emit_eq_goto): New function.
16829 (emit_ne_goto): New function.
16830 (emit_lt_goto): New function.
16831 (emit_le_goto): New function.
16832 (emit_gt_goto): New function.
16833 (emit_ge_goto): New function.
16834 (is_goto_target): New function.
16835 (compile_bytecodes): Recognize special cases of compare-goto
16836 combinations and call specialized emitters for them.
16837 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16838 (amd64_emit_ne_goto): New function.
16839 (amd64_emit_lt_goto): New function.
16840 (amd64_emit_le_goto): New function.
16841 (amd64_emit_gt_goto): New function.
16842 (amd64_emit_ge_goto): New function.
16843 (amd64_emit_ops): Add the new functions.
16844 (i386_emit_eq_goto): New function.
16845 (i386_emit_ne_goto): New function.
16846 (i386_emit_lt_goto): New function.
16847 (i386_emit_le_goto): New function.
16848 (i386_emit_gt_goto): New function.
16849 (i386_emit_ge_goto): New function.
16850 (i386_emit_ops): Add the new functions.
16851
16852 2011-09-08 Stan Shebs <stan@codesourcery.com>
16853
16854 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16855 (i386_emit_epilogue): Restore %ebx.
16856
16857 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16858
16859 * server.c (step_thread): Remove definition.
16860 (process_serial_event): Don't handle Hs.
16861 * server.h (step_thread): Remove declaration.
16862 * target.c (set_desired_inferior): Remove use of step_thread.
16863
16864 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16865
16866 * linux-low.c: Include linux-procfs.h.
16867 (linux_attach_lwp_1): Update comments.
16868 (linux_attach): Scan for existing threads when attaching to a
16869 process that is the tgid.
16870 * Makefile.in: Update dependencies.
16871
16872 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16873
16874 * configure.srv: Add linux-procfs.o dependencies.
16875
16876 2011-08-14 Yao Qi <yao@codesourcery.com>
16877
16878 * target.h (struct target_ops): Fix indent.
16879 * win32-low.c (win32_target_ops): Fix comment.
16880
16881 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16882 Yao Qi <yao@codesourcery.com>
16883
16884 * Makefile.in (clean): Remove tic6x-*.c files.
16885 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16886 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16887 (tic6x-c64xp-linux.c): Likewise.
16888 * configure.srv: Add support for tic6x-*-uclinux.
16889 * linux-tic6x-low.c: New.
16890 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16891
16892 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16893 Yao Qi <yao@codesourcery.com>
16894
16895 * target.h (struct target_ops): Add read_loadmap.
16896 * linux-low.c (struct target_loadseg): New type.
16897 (struct target_loadmap): New type.
16898 (linux_read_loadmap): New function.
16899 (linux_target_ops): Add linux_read_loadmap.
16900 * server.c (handle_query): Support qXfer:fdpic:read packet.
16901 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16902 to NULL.
16903
16904 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16905
16906 * win32-low.c: Include <stdint.h>.
16907
16908 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16909
16910 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16911 to the inferior here.
16912 (i386_remove_aligned_watchpoint): Ditto.
16913 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16914 fit part of the watchpoint in the debug registers.
16915 (i386_update_inferior_debug_regs): New.
16916 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16917 registers, and only update the inferior on success.
16918 (i386_low_remove_watchpoint): Ditto.
16919
16920 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16921
16922 * linux-low.c (compare_ints, unique, list_threads, show_process,
16923 linux_core_of_thread): Delete.
16924 (linux_target_ops): Change linux_core_of_thread to
16925 linux_common_core_of_thread.
16926 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16927 * utils.c (malloc_failure): Change type of argument.
16928 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16929 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16930 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16931 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16932 (IPA_OBJS): Add common-utils-ipa.o.
16933 (ptid_h, linux_osdata_h): New macros.
16934 (server_h): Add common/common-utils.h, common/xml-utils.h,
16935 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16936 common/ptid.h.
16937 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16938 ptid.o, buffer.o): New rules.
16939 (linux-low.o): Add common/linux-osdata.h as a dependency.
16940 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16941 * configure.ac: Add AC_HEADER_DIRENT check.
16942 * config.in: Regenerate.
16943 * configure: Regenerate.
16944 * remote-utils.c (xml_escape_text): Delete.
16945 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16946 buffer_xml_printf): Move to common/buffer.c.
16947 * server.c (main): Remove call to initialize_inferiors.
16948 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16949 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16950 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16951 internal_error, gdb_assert, gdb_assert_fail): Delete.
16952 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16953 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16954 common/buffer.h.
16955 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16956 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16957 initialize_inferiors): Delete.
16958
16959 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16960
16961 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16962 symbol error.
16963
16964 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16965
16966 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16967 assertion.
16968 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16969
16970 2011-05-26 Yao Qi <yao@codesourcery.com>
16971
16972 * Makefile.in (thread-db.o): Track dependence to
16973 common/gdb_thread_db.h.
16974 * thread-db.c: include gdb_thread_db.h from right place.
16975
16976 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16977
16978 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16979 __FILE__ and __LINE__ to internal_error.
16980
16981 2011-05-13 Doug Evans <dje@google.com>
16982
16983 * thread-db.c (try_thread_db_load_from_sdir): New function.
16984 (try_thread_db_load_from_dir): New function.
16985 (thread_db_load_search): Handle $sdir, ignore $pdir.
16986 Remove trying of system directories if search of
16987 libthread-db-search-path fails, that is now done via $sdir.
16988
16989 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16990
16991 * server.c (handle_query): Add EnableDisableTracepoints to the list
16992 of supported features.
16993 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16994 tracepoints.
16995 (cmd_qtenable_disable): New.
16996 (cmd_qtstart): Install tracepoints even if disabled.
16997 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16998 receiving a QTEnable or QTDisable packet.
16999 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17000 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17001 tracepoints.
17002 (gdb_probe): Skip data collection if static tracepoint is disabled.
17003
17004 2011-05-10 Doug Evans <dje@google.com>
17005
17006 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17007
17008 2011-05-04 Doug Evans <dje@google.com>
17009
17010 * linux-low.c (linux_join): Skip process lookup.
17011 * spu-low.c (spu_join): Ditto.
17012 * server.c (join_inferiors_callback): Delete.
17013 (process_serial_event): For 'D' packet (detach) call join_inferior
17014 directly.
17015
17016 2011-05-04 Joseph Myers <joseph@codesourcery.com>
17017
17018 * README: Don't mention xscale*-*-linux*.
17019 * configure.srv (xscale*-*-linux*): Don't handle target.
17020
17021 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17022
17023 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17024 casting pointers.
17025 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17026 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17027 (i386_emit_void_call_2): Likewise.
17028
17029 2011-04-26 Yao Qi <yao@codesourcery.com>
17030
17031 * linux-low.c: Move common macros to linux-ptrace.h.
17032 Include linux-ptrace.h.
17033 * Makefile.in (linux_ptrace_h): New.
17034 (linux-low.o): Depends on linux-ptrace.h.
17035
17036 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17037
17038 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17039 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17040 (remote_prepare): New function with most of the TCP code from ...
17041 (remote_open): ... here. Detect PORT here unconditionally. Move also
17042 setting transport_is_reliable.
17043 * server.c (run_once): New variable.
17044 (gdbserver_usage): Document it.
17045 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17046 the first run if RUN_ONCE.
17047 * server.h (run_once, remote_prepare): New declarations.
17048
17049 2011-04-19 Tom Tromey <tromey@redhat.com>
17050
17051 * win32-low.c (handle_load_dll): Remove duplicate "the".
17052
17053 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17054
17055 Remove support for old Cygwin 1.5 versions.
17056 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17057 function to avoid warning.
17058 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17059 warning.
17060
17061 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17062
17063 * gdbserver/server.h (Macro _): Define it if not available.
17064
17065 2011-03-14 Michael Snyder <msnyder@vmware.com>
17066
17067 * hostio.c (handle_close): Remove unnecessary null test.
17068
17069 2011-03-10 Joel Brobecker <brobecker@adacore.com>
17070
17071 * Makefile.in (maintainer-clean realclean distclean): Remove
17072 "make ... subdir_do" command.
17073
17074 2011-03-10 Michael Snyder <msnyder@vmware.com>
17075
17076 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17077
17078 * server.c (handle_v_run): Free alloced buffer on early return.
17079
17080 2011-03-09 Yao Qi <yao@codesourcery.com>
17081
17082 Revert:
17083 2011-03-04 Yao Qi <yao@codesourcery.com>
17084
17085 * Makefile.in: Remove GNU make feature --directory.
17086
17087 2011-03-05 Yao Qi <yao@codesourcery.com>
17088
17089 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17090 (subdir_do): New make target. Copied from gdb/Makefile.
17091 (maintainer-clean, realclean, distclean, clean): Call corresponding
17092 make targets in common/Makefile.
17093
17094 2011-02-11 Yao Qi <yao@codesourcery.com>
17095
17096 * configure.ac: Call AC_PROG_RANLIB.
17097 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17098 * configure: Regenerate.
17099
17100 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17101
17102 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17103
17104 2011-03-06 Yao Qi <yao@codesourcery.com>
17105
17106 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17107
17108 2011-03-05 Yao Qi <yao@codesourcery.com>
17109
17110 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17111 (subdir_do): New make target. Copied from gdb/Makefile.
17112 (maintainer-clean, realclean, distclean, clean): Call corresponding
17113 make targets in common/Makefile.
17114
17115 2011-03-04 Yao Qi <yao@codesourcery.com>
17116
17117 * Makefile.in: Remove GNU make feature --directory.
17118
17119 2011-03-04 Michael Snyder <msnyder@vmware.com>
17120
17121 * server.c (queue_stop_reply): Call xmalloc not malloc.
17122
17123 2011-03-02 Michael Snyder <msnyder@vmware.com>
17124
17125 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17126
17127 2011-02-28 Michael Snyder <msnyder@vmware.com>
17128
17129 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17130 (cmd_qtframe): Ditto.
17131 (cmd_qtbuffer): Ditto.
17132 (cmd_bigqtbuffer): Ditto.
17133
17134 * utils.c (decimal2str): Initialize 'width' to nine, then
17135 don't mess with it.
17136
17137 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17138
17139 * hostio.c (require_data): Free *data, not data.
17140
17141 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17142
17143 * hostio.c (require_data): Use free, not xfree.
17144
17145 2011-02-27 Michael Snyder <msnyder@vmware.com>
17146
17147 * server.c (handle_query): Discard unused value.
17148
17149 * hostio.c (require_data): Free malloc memory before returning
17150 error.
17151
17152 2011-02-26 Michael Snyder <msnyder@vmware.com>
17153
17154 * linux-low.c (list_threads): Call closedir for dirent.
17155
17156 2011-02-27 Michael Snyder <msnyder@vmware.com>
17157
17158 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17159 a case statement falls through.
17160
17161 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17162
17163 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17164 in comparison.
17165
17166 2011-02-26 Michael Snyder <msnyder@vmware.com>
17167
17168 * utils.c (decimal2str): Eliminate dead code and dead param.
17169 (pulongest): Drop dead param from call to decimal2str.
17170 (plongest): Ditto.
17171
17172 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17173
17174 Revert the following patch (not approved yet):
17175 2011-02-21 Hui Zhu <teawater@gmail.com>
17176 * tracepoint.c (tp_printf): New function.
17177 (eval_agent_expr): Handle gdb_agent_op_printf.
17178
17179 2011-02-21 Hui Zhu <teawater@gmail.com>
17180
17181 * tracepoint.c (tp_printf): New function.
17182 (eval_agent_expr): Handle gdb_agent_op_printf.
17183
17184 2011-02-18 Tom Tromey <tromey@redhat.com>
17185
17186 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17187 (tracepoint.o): Likewise.
17188 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17189 (gdb_agent_op_names): Likewise.
17190
17191 2011-02-18 Tom Tromey <tromey@redhat.com>
17192
17193 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17194 gdb_agent_op_rot>: New constants.
17195 (gdb_agent_op_names): Add pick and roll.
17196 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17197 cases.
17198
17199 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17200
17201 * aclocal.m4: Regenerated with aclocal-1.11.1.
17202
17203 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17204
17205 * server.c (handle_qxfer_traceframe_info): New.
17206 (qxfer_packets): Register "traceframe-info".
17207 (handle_query): Report support for qXfer:traceframe-info:read+.
17208 * tracepoint.c (match_blocktype): New.
17209 (traceframe_find_block_type): Rename to ...
17210 (traceframe_walk_blocks): ... this. Add callback filter argument,
17211 and use it.
17212 (traceframe_find_block_type): New, reimplemented on top of
17213 traceframe_walk_blocks.
17214 (build_traceframe_info_xml): New.
17215 (traceframe_read_info): New.
17216 * server.h (traceframe_read_info): Declare.
17217
17218 2011-02-11 Yao Qi <yao@codesourcery.com>
17219
17220 * configure.ac: Call AC_PROG_RANLIB.
17221 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17222 * configure: Regenerate.
17223
17224 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17225
17226 * server.c (gdb_read_memory): Change return semantics to allow
17227 partial transfers.
17228 (handle_search_memory_1): Adjust.
17229 (process_serial_event) <'m' packet>: Handle partial transfers.
17230 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17231
17232 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17233
17234 * regcache.c (init_register_cache): Initialize
17235 regcache->register_status.
17236 (free_register_cache): Release regcache->register_status.
17237 (regcache_cpy): Copy register_status.
17238 (registers_to_string): Print 'x's for unavailable registers.
17239 (supply_register): Mark the register's status valid or
17240 unavailable, depending on whether a buffer was passed in or not.
17241 (supply_register_zeroed): New.
17242 (supply_regblock): Mark the registers' status valid or
17243 unavailable, depending on whether a buffer was passed in or not.
17244 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17245 (struct regcache): New `register_status' field.
17246 (supply_register_zeroed): Declare.
17247 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17248 supply_register_zeroed, rather than passing a NULL buffer to
17249 supply_register.
17250 * tracepoint.c (fetch_traceframe_registers): Update comment.
17251
17252 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17253
17254 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17255 buffer explicit.
17256
17257 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17258
17259 * server.h (decode_xfer_write): Change prototype.
17260 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17261 and don't extract the annex here.
17262 * server.c (decode_xfer_read): Remove `annex' parameter,
17263 and don't extract the annex here.
17264 (decode_xfer): New.
17265 (struct qxfer): New.
17266 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17267 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17268 (handle_qxfer_statictrace): New functions, abstracted out from
17269 handle_query, and made to use the struct qxfer interface.
17270 (handle_threads_qxfer_proper): Rename to ...
17271 (handle_qxfer_threads_proper): ... this.
17272 (handle_threads_qxfer): Rename to ...
17273 (handle_qxfer_threads): ... this. Adjust.
17274 (qxfer_packets): New array.
17275 (handle_qxfer): New function.
17276 (handle_query): Use handle_qxfer.
17277
17278 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17279
17280 * gdbreplay.c: Shorten lines of >= 80 columns.
17281 * linux-low.c: Ditto.
17282 * linux-ppc-low.c: Ditto.
17283 * linux-s390-low.c: Ditto.
17284 * linux-sparc-low.c: Ditto.
17285 * linux-x86-low.c: Ditto.
17286 * linux-xtensa-low.c: Ditto.
17287 * mem-break.c: Ditto.
17288 * nto-low.c: Ditto.
17289 * regcache.h: Ditto.
17290 * remote-utils.c: Ditto.
17291 * server.c: Ditto.
17292 * server.h: Ditto.
17293 * thread-db.c: Ditto.
17294 * tracepoint.c: Ditto.
17295 * utils.c: Ditto.
17296 * win32-low.h: Ditto.
17297
17298 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17299
17300 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17301 update.
17302
17303 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17304
17305 * server.c (gdbserver_version): Update copyright year in version
17306 output.
17307 * gdbreplay.c (gdbreplay_version): Ditto.
17308
17309 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17310
17311 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17312 * linux-bfin-low.c: New file.
17313 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17314 PT_DATA_ADDR for BFIN targets.
17315 * Makefile.in (SFILES): Add linux-bfin-low.c.
17316 (clean): Remove reg-bfin.c.
17317 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17318 * README: Mention supported Blackfin targets.
17319
17320 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17321
17322 * .gitignore: New file.
17323
17324 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17325
17326 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17327
17328 2010-10-22 Jie Zhang <jie@codesourcery.com>
17329
17330 * Makefile.in: Add FLAGS_TO_PASS variable.
17331 (install): Remove dependency of install-only and recursively
17332 invoke make for install-only.
17333
17334 2010-10-04 Doug Evans <dje@google.com>
17335
17336 * Makefile.in (uninstall): Use $(DESTDIR).
17337
17338 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17339
17340 PR gdb/11842
17341
17342 * linux-x86-low.c (compat_siginfo_from_siginfo)
17343 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17344 si_code is < 0. Check for si_code == SI_TIMER before checking for
17345 si_code < 0.
17346
17347 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17348
17349 * lynx-i386-low.c: New file.
17350 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17351
17352 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17353
17354 * lynx-low.c (ptrace_request_to_str): Remove handling for
17355 request values that have been removed in LynxOS 5.x.
17356
17357 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17358
17359 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17360 <ptrace.h>
17361
17362 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17363
17364 * configure.ac: Add --enable-inprocess-agent option.
17365 * configure: Rebuilt.
17366
17367 2010-09-06 Yao Qi <yao@codesourcery.com>
17368
17369 * linux-low.c (linux_kill): Remove unused variable.
17370 (linux_stabilize_threads): Likewise.
17371 * server.c (start_inferior): Likewise.
17372 (queue_stop_reply_callback): Likewise.
17373 * tracepoint.c (do_action_at_tracepoint): Likewise.
17374
17375 2010-09-06 Yao Qi <yao@codesourcery.com>
17376
17377 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17378 on return.
17379
17380 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17381
17382 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17383
17384 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17385
17386 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17387 "$(IPA_DEPFILES)".
17388
17389 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17390
17391 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17392 gdbserver/lynx-ppc-low.c: New files.
17393 * Makefile.in (lynx_low_h): New variable.
17394 (lynx-low.o, lynx-ppc-low.o): New rules.
17395 * configure.ac: On LynxOS, link with -lnetinet.
17396 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17397 * configure: regenerate.
17398
17399 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17400
17401 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17402 * configure.ac: Add check for vasprintf and vsnprintf.
17403 * configure, config.in: Regenerate.
17404 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17405
17406 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17407
17408 * gdbreplay.c: Move include of alloca.h up, next to include of
17409 malloc.h.
17410 * server.h: Add include of malloc.h.
17411 * mem-break.c: Remove include of malloc.h.
17412 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17413
17414 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17415
17416 * Makefile.in (memmem.o): Build with -Wno-error.
17417
17418 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17419
17420 * utils.c (xsnprintf): Make non-static.
17421 * server.h: Add xsnprintf declaration.
17422 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17423 replace calls to snprintf by calls to xsnprintf throughout.
17424
17425 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17426
17427 * configure.ac: Add configure check for alloca.
17428 * configure, config.in: Regenerate.
17429 * server.h: Include alloca.h if it exists.
17430 * gdbreplay.c: Include alloca.h if it exists.
17431
17432 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17433
17434 * linux-low.c (__SIGRTMIN): Define if not already defined.
17435 (linux_create_inferior): Check for __ANDROID__ rather than
17436 __SIGRTMIN.
17437 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17438 are already deferred.
17439 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17440 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17441 stopped and already has a pending signal to report.
17442 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17443 a pending signal to report or is moving out of a jump pad.
17444 (linux_init_signals): Check for __ANDROID__ rather than
17445 __SIGRTMIN.
17446
17447 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17448
17449 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17450 debug_threads check. Avoid a linear search when not doing debug
17451 output.
17452
17453 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17454
17455 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17456 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17457 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17458 (process_event): Change local fd's type to gdb_fildes_t.
17459 (create_file_handler): Adjust prototype.
17460 (delete_file_handler): Adjust prototype.
17461 (handle_file_event): Adjust prototype. Use pfildes.
17462 (create_file_event): Adjsut prototype.
17463 * remote-utils.c (remote_desc, listen_desc): Change type to
17464 gdb_fildes_t.
17465 * server.h: New gdb_fildes_t typedef.
17466 [USE_WIN32API]: Include winsock2.h.
17467 (delete_file_handler, add_file_handler): Adjust prototypes.
17468 (pfildes): Declare.
17469 * utils.c (pfildes): New.
17470
17471 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17472
17473 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17474 * configure: Regenerate.
17475
17476 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17477
17478 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17479 (linux_done_accessing_memory): ... this.
17480 (linux_target_ops): Adjust.
17481 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17482 * nto-low.c (nto_target_ops): Adjust comment.
17483 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17484 * spu-low.c (spu_target_ops): Adjust comment.
17485 * target.h (target_ops): Rename unprepare_to_access_memory field
17486 to done_accessing_memory.
17487 (unprepare_to_access_memory): Rename to ...
17488 (done_accessing_memory): ... this.
17489
17490 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17491
17492 * linux-low.c (linux_prepare_to_access_memory): New.
17493 (linux_unprepare_to_access_memory): New.
17494 (linux_target_ops): Install them.
17495 * server.c (read_memory): Rename to ...
17496 (gdb_read_memory): ... this. Use
17497 prepare_to_access_memory/prepare_to_access_memory.
17498 (write_memory): Rename to ...
17499 (gdb_write_memory): ... this. Use
17500 prepare_to_access_memory/prepare_to_access_memory.
17501 (handle_search_memory_1): Adjust.
17502 (process_serial_event): Adjust.
17503 * target.h (struct target_ops): New fields
17504 prepare_to_access_memory and unprepare_to_access_memory.
17505 (prepare_to_access_memory, unprepare_to_access_memory): New.
17506 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17507 prepare_to_access_memory/prepare_to_access_memory.
17508 * nto-low.c (nto_target_ops): Adjust.
17509 * spu-low.c (spu_target_ops): Adjust.
17510 * win32-low.c (win32_target_ops): Adjust.
17511
17512 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17513
17514 * Makefile.in (WARN_CFLAGS): Get it from configure.
17515 (WERROR_CFLAGS): New.
17516 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17517 * configure.ac: Introduce --enable-werror, which adds -Werror to
17518 the compiler command line. Enabled by default. Disable with
17519 --disable-werror. Add -Wdeclaration-after-statement
17520 Wpointer-arith and -Wformat-nonliteral to warning flags.
17521 * configure: Regenerate.
17522
17523 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17524
17525 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17526
17527 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17528
17529 * gdbreplay.c (remote_error): New.
17530 (gdbchar): New.
17531 (expect): Use gdbchar. Check for error reading from GDB.
17532 Clarify sync error output.
17533 (play): Check for errors writing to GDB.
17534 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17535 * remote-utils.c (getpkt): Check for errors writing to the remote
17536 descriptor.
17537
17538 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17539
17540 * linux-low.c (linux_wait_1): Move non-debugging code out of
17541 `debug_threads' control.
17542
17543 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17544
17545 * linux-low.c (linux_wait_1): Don't set last_status here.
17546 * server.c (push_event, queue_stop_reply_callback): Assert we're
17547 not pushing a TARGET_WAITKIND_IGNORE event.
17548 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17549 (myresume, handle_target_event): Set the thread's last_resume_kind
17550 and last_status from the target returned status.
17551
17552 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17553
17554 PR threads/10729
17555
17556 * linux-x86-low.c (update_debug_registers_callback): New.
17557 (i386_dr_low_set_addr): Use it.
17558 (i386_dr_low_get_addr): New.
17559 (i386_dr_low_set_control): Use update_debug_registers_callback.
17560 (i386_dr_low_get_control): New.
17561 (i386_dr_low_get_status): Adjust.
17562 * linux-low.c (linux_stop_lwp): New.
17563 * linux-low.h (linux_stop_lwp): Declare.
17564
17565 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17566 argument instead of a i386_debug_reg_state.
17567 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17568 a i386_debug_reg_state.
17569 (i386_insert_aligned_watchpoint): Adjust.
17570 (i386_remove_aligned_watchpoint): Adjust.
17571 (i386_low_stopped_data_address): Read the debug registers from the
17572 inferior instead of from the mirrors.
17573 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17574 (i386_dr_low_get_addr): Declare.
17575 (i386_dr_low_get_control): Declare.
17576 (i386_dr_low_get_status): Change prototype.
17577
17578 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17579 (i386_dr_low_get_addr): New.
17580 (i386_dr_low_get_control): New.
17581 (i386_dr_low_get_status): Adjust prototype. Return
17582 dr_status_mirror.
17583 (i386_initial_stuff): Clear dr_status_mirror and
17584 dr_control_mirror.
17585 (i386_get_thread_context): Adjust.
17586 (i386_set_thread_context): Adjust.
17587 (i386_thread_added): Adjust.
17588
17589 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17590
17591 * linux-low.h (linux_thread_area): Delete declaration.
17592
17593 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17594
17595 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17596 after its termination.
17597
17598 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17599
17600 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17601 (gdb_wants_all_stopped): Delete.
17602 (linux_wait_1): Don't call them.
17603 * server.c (handle_v_cont): Tag all threads as want-stopped.
17604 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17605 stopped as "client-wants-stopped".
17606
17607 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17608
17609 * Makefile.in (signals_h): New.
17610 (server_h): Depend on it.
17611 (server.o): Don't depend on $(signals_def).
17612 (signals.o): Depend on $(signals_def).
17613
17614 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17615
17616 * Makefile.in (signals_def): New.
17617 (server_h): Append include/gdb/signals.h and signals_def.
17618 (server.o): Append signals_def.
17619
17620 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17621
17622 * server.c (handle_target_event): Use target_signal_to_host for
17623 resume_info.sig initialization.
17624 * target.h (struct thread_resume) <sig>: New comment.
17625
17626 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17627
17628 * server.c (handle_query): strcpy() the returned string from paddress()
17629 instead of sprintf().
17630 * utils.c (paddress): Return phex_nz().
17631
17632 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17633
17634 * server.c (handle_v_cont): Call mourn_inferior if process
17635 just exited.
17636 (myresume): Likewise.
17637
17638 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17639
17640 Static tracepoints, and integration with UST.
17641
17642 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17643 * mem-break.c (uninsert_all_breakpoints)
17644 (reinsert_all_breakpoints): New.
17645 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17646 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17647 (gdb_agent_ust_loaded, helper_thread_id)
17648 (gdb_agent_helper_thread_id): New macros.
17649 (struct ipa_sym_addresses): Add addr_ust_loaded,
17650 addr_helper_thread_id, addr_cmd_buf.
17651 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17652 (in_process_agent_loaded_ust): New.
17653 (write_e_ust_not_loaded): New.
17654 (maybe_write_ipa_ust_not_loaded): New.
17655 (struct collect_static_trace_data_action): New.
17656 (enum tracepoint_type) <static_tracepoint>: New.
17657 (struct tracepoint) <handle>: Mention static tracepoints.
17658 (struct static_tracepoint_ctx): New.
17659 (CMD_BUF_SIZE): New.
17660 (add_tracepoint_action): Handle static tracepoint actions.
17661 (unprobe_marker_at): New.
17662 (clear_installed_tracepoints): Handle static tracepoints.
17663 (cmd_qtdp): Handle static tracepoints.
17664 (probe_marker_at): New.
17665 (cmd_qtstart): Handle static tracepoints.
17666 (response_tracepoint): Handle static tracepoints.
17667 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17668 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17669 (get_context_regcache): Handle static tracepoints.
17670 (do_action_at_tracepoint): Handle static tracepoint actions.
17671 (traceframe_find_block_type): Handle static trace data blocks.
17672 (traceframe_read_sdata): New.
17673 (download_tracepoints): Download static tracepoint actions.
17674 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17675 (GDB_PROBE_NAME): New.
17676 (ust_ops): New.
17677 (GET_UST_SYM): New.
17678 (USTF): New.
17679 (dlsym_ust): New.
17680 (ust_marker_to_static_tracepoint): New.
17681 (gdb_probe): New.
17682 (collect_ust_data_at_tracepoint): New.
17683 (gdb_ust_probe): New.
17684 (UNIX_PATH_MAX, SOCK_DIR): New.
17685 (gdb_ust_connect_sync_socket): New.
17686 (resume_thread, stop_thread): New.
17687 (run_inferior_command): New.
17688 (init_named_socket): New.
17689 (gdb_ust_socket_init): New.
17690 (cstr_to_hexstr): New.
17691 (next_st): New.
17692 (first_marker, next_marker): New.
17693 (response_ust_marker): New.
17694 (cmd_qtfstm, cmd_qtsstm): New.
17695 (unprobe_marker_at, probe_marker_at): New.
17696 (cmd_qtstmat, gdb_ust_thread): New.
17697 (gdb_ust_init): New.
17698 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17699 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17700 (ST_REGENTRY): New.
17701 (x86_64_st_collect_regmap): New.
17702 (X86_64_NUM_ST_COLLECT_GREGS): New.
17703 (AMD64_RIP_REGNUM): New.
17704 (supply_static_tracepoint_registers): New.
17705 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17706 (ST_REGENTRY): New.
17707 (i386_st_collect_regmap): New.
17708 (i386_NUM_ST_COLLECT_GREGS): New.
17709 (supply_static_tracepoint_registers): New.
17710 * server.c (handle_query): Handle qXfer:statictrace:read.
17711 <qSupported>: Report support for StaticTracepoints, and
17712 qXfer:statictrace:read features.
17713 * server.h (traceframe_read_sdata)
17714 (supply_static_tracepoint_registers): Declare.
17715 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17716 (unpack_varlen_hex): Include in IPA build.
17717 * Makefile.in (ustlibs, ustinc): New.
17718 (IPA_OBJS): Add remote-utils-ipa.o.
17719 ($(IPA_LIB)): Link -ldl and -lpthread.
17720 (UST_CFLAGS): New.
17721 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17722 * config.in, configure: Regenerate.
17723
17724 2010-06-20 Ian Lance Taylor <iant@google.com>
17725 Pedro Alves <pedro@codesourcery.com>
17726
17727 * linux-x86-low.c (always_true): Delete.
17728 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17729 trying to fool the compiler with always_true.
17730
17731 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17732
17733 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17734 conditions in gdbserver.
17735
17736 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17737
17738 * spu-low.c (spu_read_memory): Wrap around local store limit.
17739 (spu_write_memory): Likewise.
17740
17741 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17742
17743 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17744 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17745 LONGEST uses.
17746 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17747 uses.
17748 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17749 uses with LONGEST uses.
17750
17751 2010-06-14 Stan Shebs <stan@codesourcery.com>
17752 Pedro Alves <pedro@codesourcery.com>
17753
17754 Bytecode compiler.
17755
17756 * linux-x86-low.c: Include limits.h.
17757 (add_insns): New.
17758 (always_true): New.
17759 (EMIT_ASM): New.
17760 (EMIT_ASM32): New.
17761 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17762 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17763 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17764 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17765 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17766 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17767 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17768 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17769 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17770 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17771 (amd64_emit_void_call_2): New.
17772 (amd64_emit_ops): New.
17773 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17774 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17775 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17776 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17777 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17778 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17779 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17780 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17781 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17782 (i386_emit_stack_adjust, i386_emit_int_call_1)
17783 (i386_emit_void_call_2): New.
17784 (i386_emit_ops): New.
17785 (x86_emit_ops): New.
17786 (the_low_target): Install x86_emit_ops.
17787 * server.h (struct emit_ops): New.
17788 (get_raw_reg_func_addr): Declare.
17789 (current_insn_ptr, emit_error): Declare.
17790 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17791 (set_trace_state_variable_value): New defines.
17792 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17793 addr_get_trace_state_variable_value and
17794 addr_set_trace_state_variable_value.
17795 (symbol_list): New fields for get_raw_reg,
17796 get_trace_state_variable_value and set_trace_state_variable_value.
17797 (condfn): New typedef.
17798 (struct tracepoint): New field `compiled_cond'.
17799 (do_action_at_tracepoint): Clear compiled_cond.
17800 (get_trace_state_variable_value, set_trace_state_variable_value):
17801 Export in the IPA.
17802 (condition_true_at_tracepoint): If there's a compiled condition,
17803 run that.
17804 (current_insn_ptr, emit_error): New globals.
17805 (struct bytecode_address): New.
17806 (get_raw_reg_func_addr): New.
17807 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17808 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17809 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17810 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17811 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17812 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17813 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17814 (compile_tracepoint_condition, compile_bytecodes): New.
17815 * target.h (emit_ops): Forward declare.
17816 (struct target_ops): New field emit_ops.
17817 (target_emit_ops): New.
17818 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17819 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17820 * linux-low.c (linux_emit_ops): New.
17821 (linux_target_ops): Install it.
17822 * linux-low.h (struct linux_target_ops): New field emit_ops.
17823
17824 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17825
17826 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17827 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17828
17829 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17830 Stan Shebs <stan@codesourcery.com>
17831
17832 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17833 (all): Depend on $(extra_libraries).
17834 (install-only): Install the IPA.
17835 (IPA_OBJS, IPA_LIB): New.
17836 (clean): Remove the IPA lib.
17837 (IPAGENT_CFLAGS): New.
17838 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17839 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17840 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17841 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17842 * configure.ac: Check for atomic builtins support in the compiler.
17843 (IPA_DEPFILES, extra_libraries): Define.
17844 * configure.srv (ipa_obj): Add description.
17845 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17846 (i[34567]86-*-linux*): Set ipa_obj.
17847 (x86_64-*-linux*): Set ipa_obj.
17848 * linux-low.c (stabilizing_threads): New.
17849 (supports_fast_tracepoints): New.
17850 (linux_detach): Stabilize threads before detaching.
17851 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17852 the lwp is either not stabilizing, or is moving out of a jump pad.
17853 (linux_fast_tracepoint_collecting): New.
17854 (maybe_move_out_of_jump_pad): New.
17855 (enqueue_one_deferred_signal): New.
17856 (dequeue_one_deferred_signal): New.
17857 (linux_wait_for_event_1): If moving out of a jump pad, defer
17858 pending signals to later.
17859 (linux_stabilize_threads): New.
17860 (linux_wait_1): Check if threads need moving out of jump pads, and
17861 do it if so.
17862 (stuck_in_jump_pad_callback): New.
17863 (move_out_of_jump_pad_callback): New.
17864 (lwp_running): New.
17865 (linux_resume_one_lwp): Handle moving out of jump pads.
17866 (linux_set_resume_request): Dequeue deferred signals.
17867 (need_step_over_p): Also step over fast tracepoint jumps.
17868 (start_step_over): Also uninsert fast tracepoint jumps.
17869 (finish_step_over): Also reinsert fast tracepoint jumps.
17870 (linux_install_fast_tracepoint_jump): New.
17871 (linux_target_ops): Install linux_stabilize_threads and
17872 linux_install_fast_tracepoint_jump_pad.
17873 * linux-low.h (linux_target_ops) <get_thread_area,
17874 install_fast_tracepoint_jump_pad>: New fields.
17875 (struct lwp_info) <collecting_fast_tracepoint,
17876 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17877 (linux_get_thread_area): Declare.
17878 * linux-x86-low.c (jump_insn): New.
17879 (x86_get_thread_area): New.
17880 (append_insns): New.
17881 (push_opcode): New.
17882 (amd64_install_fast_tracepoint_jump_pad): New.
17883 (i386_install_fast_tracepoint_jump_pad): New.
17884 (x86_install_fast_tracepoint_jump_pad): New.
17885 (the_low_target): Install x86_get_thread_area and
17886 x86_install_fast_tracepoint_jump_pad.
17887 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17888 (struct fast_tracepoint_jump): New.
17889 (fast_tracepoint_jump_insn): New.
17890 (fast_tracepoint_jump_shadow): New.
17891 (find_fast_tracepoint_jump_at): New.
17892 (fast_tracepoint_jump_here): New.
17893 (delete_fast_tracepoint_jump): New.
17894 (set_fast_tracepoint_jump): New.
17895 (uninsert_fast_tracepoint_jumps_at): New.
17896 (reinsert_fast_tracepoint_jumps_at): New.
17897 (set_breakpoint_at): Use write_inferior_memory.
17898 (uninsert_raw_breakpoint): Use write_inferior_memory.
17899 (check_mem_read): Mask out fast tracepoint jumps.
17900 (check_mem_write): Mask out fast tracepoint jumps.
17901 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17902 (set_fast_tracepoint_jump): Declare.
17903 (delete_fast_tracepoint_jump)
17904 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17905 (reinsert_fast_tracepoint_jumps_at): Declare.
17906 * regcache.c: Don't compile many functions when building the
17907 in-process agent library.
17908 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17909 the register buffer in the heap.
17910 (free_register_cache): If the register buffer isn't owned by the
17911 regcache, don't free it.
17912 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17913 pre-existing register caches.
17914 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17915 type.
17916 (convert_ascii_to_int): : Constify `from' parameter type.
17917 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17918 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17919 the needed buffer in-place.
17920 (relocate_instruction): New.
17921 * server.c (handle_query) <qSymbols>: If the target supports
17922 tracepoints, give it a chance of looking up symbols. Report
17923 support for fast tracepoints.
17924 (handle_status): Stabilize threads.
17925 (process_serial_event): Adjust.
17926 * server.h (struct fast_tracepoint_jump): Forward declare.
17927 (struct process_info) <fast_tracepoint_jumps>: New field.
17928 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17929 (decode_X_packet, decode_M_packet): Adjust.
17930 (relocate_instruction): Declare.
17931 (in_process_agent_loaded): Declare.
17932 (tracepoint_look_up_symbols): Declare.
17933 (struct fast_tpoint_collect_status): Declare.
17934 (fast_tracepoint_collecting): Declare.
17935 (force_unlock_trace_buffer): Declare.
17936 (handle_tracepoint_bkpts): Declare.
17937 (initialize_low_tracepoint)
17938 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17939 * target.h (struct target_ops) <stabilize_threads,
17940 install_fast_tracepoint_jump_pad>: New fields.
17941 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17942 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17943 [HAVE_STDINT_H]: Include stdint.h.
17944 (trace_debug_1): Rename to ...
17945 (trace_vdebug): ... this.
17946 (trace_debug): Rename to ...
17947 (trace_debug_1): ... this. Add `level' parameter.
17948 (trace_debug): New.
17949 (ATTR_USED, ATTR_NOINLINE): New.
17950 (IP_AGENT_EXPORT): New.
17951 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17952 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17953 (about_to_request_buffer_space, trace_buffer_is_full)
17954 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17955 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17956 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17957 (traceframe_write_count, traceframes_created)
17958 (trace_state_variables)
17959 New renaming defines.
17960 (struct ipa_sym_addresses): New.
17961 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17962 (symbol_list): New.
17963 (ipa_sym_addrs): New.
17964 (all_tracepoint_symbols_looked_up): New.
17965 (in_process_agent_loaded): New.
17966 (write_e_ipa_not_loaded): New.
17967 (maybe_write_ipa_not_loaded): New.
17968 (tracepoint_look_up_symbols): New.
17969 (debug_threads) [IN_PROCESS_AGENT]: New.
17970 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17971 (UNKNOWN_SIDE_EFFECTS): New.
17972 (stop_tracing): New.
17973 (flush_trace_buffer): New.
17974 (stop_tracing_bkpt): New.
17975 (flush_trace_buffer_bkpt): New.
17976 (read_inferior_integer): New.
17977 (read_inferior_uinteger): New.
17978 (read_inferior_data_pointer): New.
17979 (write_inferior_data_pointer): New.
17980 (write_inferior_integer): New.
17981 (write_inferior_uinteger): New.
17982 (struct collect_static_trace_data_action): Delete.
17983 (enum tracepoint_type): New.
17984 (struct tracepoint) <type>: New field `type'.
17985 <actions_str, step_actions, step_actions_str>: Only include in
17986 GDBserver.
17987 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17988 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17989 (tracepoints): Use IP_AGENT_EXPORT.
17990 (last_tracepoint): Don't include in the IPA.
17991 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17992 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17993 (alloced_trace_state_variables): New.
17994 (trace_state_variables): Use IP_AGENT_EXPORT.
17995 (traceframe_t): Delete unused variable.
17996 (circular_trace_buffer): Don't include in the IPA.
17997 (trace_buffer_start): Delete.
17998 (struct trace_buffer_control): New.
17999 (trace_buffer_free): Delete.
18000 (struct ipa_trace_buffer_control): New.
18001 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18002 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18003 New.
18004 (trace_buffer_ctrl): New.
18005 (TRACE_BUFFER_CTRL_CURR): New.
18006 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18007 Reimplement as macros.
18008 (trace_buffer_wrap): Delete.
18009 (traceframe_write_count, traceframe_read_count)
18010 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18011 (struct tracepoint_hit_ctx) <type>: New field.
18012 (struct fast_tracepoint_ctx): New.
18013 (memory_barrier): New.
18014 (cmpxchg): New.
18015 (record_tracepoint_error): Update atomically in the IPA.
18016 (clear_inferior_trace_buffer): New.
18017 (about_to_request_buffer_space): New.
18018 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18019 updating the same buffer.
18020 (add_tracepoint): Default the tracepoint's type to trap
18021 tracepoint, and orig_size to -1.
18022 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18023 internal variables.
18024 (create_trace_state_variable): New parameter `gdb'. Handle it.
18025 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18026 (cmd_qtdp): Handle fast tracepoints.
18027 (cmd_qtdv): Adjust.
18028 (max_jump_pad_size): New.
18029 (gdb_jump_pad_head): New.
18030 (get_jump_space_head): New.
18031 (claim_jump_space): New.
18032 (sort_tracepoints): New.
18033 (MAX_JUMP_SIZE): New.
18034 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18035 IPA.
18036 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18037 support. Upload fast traceframes, and delete internal IPA
18038 breakpoints.
18039 (stop_tracing_handler): New.
18040 (flush_trace_buffer_handler): New.
18041 (cmd_qtstop): Upload fast tracepoints.
18042 (response_tracepoint): Handle fast tracepoints.
18043 (tracepoint_finished_step): Upload fast traceframes. Set the
18044 tracepoint hit context's tracepoint type.
18045 (handle_tracepoint_bkpts): New.
18046 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18047 type. Add comment about fast tracepoints.
18048 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18049 non-existing action_str field.
18050 (get_context_regcache): Handle fast tracepoints.
18051 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18052 to the regcache.
18053 (fast_tracepoint_from_jump_pad_address): New.
18054 (fast_tracepoint_from_ipa_tpoint_address): New.
18055 (collecting_t): New.
18056 (force_unlock_trace_buffer): New.
18057 (fast_tracepoint_collecting): New.
18058 (collecting): New.
18059 (gdb_collect): New.
18060 (write_inferior_data_ptr): New.
18061 (target_tp_heap): New.
18062 (target_malloc): New.
18063 (download_agent_expr): New.
18064 (UALIGN): New.
18065 (download_tracepoints): New.
18066 (download_trace_state_variables): New.
18067 (upload_fast_traceframes): New.
18068 (IPA_FIRST_TRACEFRAME): New.
18069 (IPA_NEXT_TRACEFRAME_1): New.
18070 (IPA_NEXT_TRACEFRAME): New.
18071 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18072 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18073 (gdb_jump_pad_buffer_end): New.
18074 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18075 (initialize_tracepoint): Adjust.
18076 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18077 buffer. Initialize the low module.
18078 * utils.c (PREFIX, TOOLNAME): New.
18079 (malloc_failure): Use PREFIX.
18080 (error): In the IPA, an error causes an exit.
18081 (fatal, warning): Use PREFIX.
18082 (internal_error): Use TOOLNAME.
18083 (NUMCELLS): Increase to 10.
18084 * configure, config.in: Regenerate.
18085
18086 2010-06-01 Pedro Alves <pedro@codesourcery.com>
18087
18088 * server.c (handle_query) <qSupported>: Do two passes over the
18089 qSupported string to avoid nesting strtok.
18090
18091 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18092
18093 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18094 (CDEPS): New.
18095 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18096 -Wl,--dynamic-list.
18097 * configure: Regenerate.
18098 * proc-service.list: New.
18099
18100 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18101
18102 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18103 New comment.
18104
18105 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18106
18107 * gdbreplay.c (remote_open): Check error return from socket() call by
18108 its equality to -1 not by it being negative.
18109 * remote-utils.c (remote_open): Likewise.
18110
18111 2010-05-23 Pedro Alves <pedro@codesourcery.com>
18112
18113 * config.h: Regenerate.
18114
18115 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18116
18117 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18118 doesn't provide PTRACE_GET_THREAD_AREA.
18119
18120 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18121
18122 * linux-m68k-low.c: Include <asm/ptrace.h>
18123 (ps_get_thread_area): Implement.
18124
18125 2010-05-03 Doug Evans <dje@google.com>
18126
18127 * event-loop.c (struct callback_event): New struct.
18128 (callback_list): New global.
18129 (append_callback_event, delete_callback_event): New functions.
18130 (process_callback): New function.
18131 (start_event_loop): Call it.
18132 * remote-utils.c (NOT_SCHEDULED): Define.
18133 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18134 moved out of readchar.
18135 (readchar): Rewrite. Call reschedule before returning.
18136 (reset_readchar): New function.
18137 (remote_close): Call it.
18138 (process_remaining, reschedule): New functions.
18139 * server.h (callback_handler_func): New typedef.
18140 (append_callback_event, delete_callback_event): Declare.
18141
18142 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18143
18144 * proc-service.c (ps_pglobal_lookup): Use
18145 thread_db_look_up_one_symbol.
18146 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18147 parameter. Use it instead of all_symbols_looked_up.
18148 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18149 field.
18150 (all_symbols_looked_up): Don't declare.
18151 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18152 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18153 field.
18154 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18155 Set all_symbols_looked_up here.
18156 (thread_db_look_up_one_symbol): New.
18157 (thread_db_get_tls_address): Adjust.
18158 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18159 thread_db object on the heap, and tentatively set it in the
18160 process structure.
18161 (thread_db_init): Don't set all_symbols_looked_up here.
18162 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18163
18164 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18165
18166 * linux-low.c (linux_kill, linux_detach): Adjust.
18167 (status_pending_p_callback): Remove redundant statement. Check
18168 for !TARGET_WAITIKIND_IGNORE, instead of
18169 TARGET_WAITKIND_STOPPED.
18170 (handle_tracepoints): Make sure LWP is locked. Adjust.
18171 (linux_wait_for_event_1): Adjust.
18172 (linux_cancel_breakpoints): New.
18173 (unsuspend_one_lwp): New.
18174 (unsuspend_all_lwps): New.
18175 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18176 (send_sigstop_callback): Change return type to int, add new
18177 `except' parameter and handle it.
18178 (suspend_and_send_sigstop_callback): New.
18179 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18180 pass them down. If SUSPEND, also increment the lwp's suspend
18181 count.
18182 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18183 (need_step_over_p): Don't consider suspended LWPs.
18184 (start_step_over): Adjust.
18185 (proceed_one_lwp): Change return type to int, add new `except'
18186 parameter and handle it.
18187 (unsuspend_and_proceed_one_lwp): New.
18188 (proceed_all_lwps): Use find_inferior instead of
18189 for_each_inferior.
18190 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18191 also decrement the suspend count of LWPs. Pass `except' down,
18192 instead of hacking its suspend count.
18193 (linux_pause_all): Add `freeze' parameter. Adjust.
18194 (linux_unpause_all): New.
18195 (linux_target_ops): Install linux_unpause_all.
18196 * server.c (handle_status): Adjust.
18197 * target.h (struct target_ops): New fields `unpause_all' and
18198 `cancel_breakpoints'. Add new parameter to `pause_all'.
18199 (pause_all): Add new `freeze' parameter.
18200 (unpause_all): New.
18201 (cancel_breakpoints): New.
18202 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18203 cancel breakpoints.
18204 (cmd_qtstart): Pause threads.
18205 (stop_tracing): Pause threads, and cancel breakpoints.
18206 * win32-low.c (win32_target_ops): Adjust.
18207
18208 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18209
18210 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18211 the inferior right away from here...
18212 (linux_wait_1): ... to here, and adjust to check the thread's
18213 last_resume_kind instead of the lwp's step or stop_expected flags.
18214
18215 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18216
18217 * README: Use consistent `GDB' and `GDBserver' spellings.
18218
18219 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18220
18221 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18222 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18223 (linux_detach_one_lwp): Assume the lwp is stopped.
18224 (any_thread_of): Delete.
18225 (linux_detach): Stop all lwps here. Don't blindly delete all
18226 breakpoints.
18227 (delete_lwp_callback): New.
18228 (linux_mourn): Delete all lwps of the process that is gone.
18229 (linux_wait_1): Don't delete the last lwp of the process here.
18230 * mem-break.h (mark_breakpoints_out): Declare.
18231 * mem-break.c (mark_breakpoints_out): New.
18232 (free_all_breakpoints): Use it.
18233 * server.c (handle_target_event): If the process is gone, mark
18234 breakpoints out.
18235 * thread-db.c (struct thread_db) <create_bp>: New field.
18236 (thread_db_enable_reporting): Fix prototype. Store a thread event
18237 breakpoint reference in the thread_db struct.
18238 (thread_db_load_search): Clear the thread_db object.
18239 (try_thread_db_load_1): Ditto.
18240 (switch_to_process): New.
18241 (disable_thread_event_reporting): Use it.
18242 (remove_thread_event_breakpoints): New.
18243 (thread_db_detach, thread_db_mourn): Use it.
18244
18245 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18246
18247 * linux-low.c (linux_enable_event_reporting): New.
18248 (linux_wait_for_event_1, handle_extended_wait): Use it.
18249
18250 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18251
18252 * linux-low.c (linux_kill_one_lwp, linux_kill)
18253 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18254 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18255 SIGSTOP even if the LWP is stopped.
18256 (send_sigstop_callback): New.
18257 (stop_all_lwps): Use send_sigstop_callback instead.
18258 (linux_resume_one_thread): Adjust.
18259 (proceed_one_lwp): Still proceed an LWP that the client has
18260 requested to stop, if we haven't reported it as stopped yet. Make
18261 sure that LWPs the client want stopped, have a pending SIGSTOP.
18262
18263 2010-04-26 Doug Evans <dje@google.com>
18264
18265 * server.c (handle_general_set): Make static.
18266
18267 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18268 Print received char after testing for error/eof instead of before.
18269 (input_interrupt): Tweak comment.
18270
18271 2010-04-23 Doug Evans <dje@google.com>
18272
18273 * server.c (start_inferior): Print inferior argv if --debug.
18274
18275 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18276
18277 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18278 * nto-x86-low.c: Include server.h
18279
18280 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18281
18282 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18283 be consistent with other sources of this directory.
18284 (init_registers_amd64): Correct name of source file of this function
18285 in the comment.
18286
18287 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18288
18289 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18290 64-bit executables.
18291
18292 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18293
18294 * win32-i386-low.c: Add 64-bit support.
18295 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18296 (init_registers_amd64): Declare.
18297 (mappings): Add 64-bit version of array.
18298 (init_windows_x86): New function.
18299 (the_low_target): Change init_arch field to init_windows_x86.
18300
18301 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18302
18303 * win32-low.c: Adapt to support also 64-bit architecture.
18304 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18305 (get_image_name): Use SIZE_T type for local variable `done'.
18306 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18307 (toolhelp_get_dll_name): Idem.
18308 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18309 Use uintptr_t typecast to avoid warning.
18310 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18311 (handle_exception): Use phex_nz to avoid warning.
18312 (win32_wait): Remove unused local variable `process'.
18313
18314 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18315
18316 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18317 `amd64-avx.o'.
18318
18319 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18320
18321 * configure.ac: Use `ws2_32' library for srv_mingw.
18322 * configure: Regenerate.
18323 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18324 * remote-utils.c: Likewise.
18325
18326 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18327
18328 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18329 if __x86_64__ is defined.
18330
18331 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18332
18333 * configure: Regenerate.
18334
18335 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18336
18337 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18338 * target.h (target_ops): New get_tib_address field.
18339 * win32-low.h (win32_thread_info): Add thread_local_base field.
18340 * win32-low.c (child_add_thread): Add tlb argument.
18341 Set thread_local_base field to TLB.
18342 (get_child_debug_event): Adapt to child_add_thread change.
18343 (win32_get_tib_address): New function.
18344 (win32_target_ops): Set get_tib_address field to
18345 win32_get_tib_address.
18346 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18347
18348 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18349
18350 * linux-low.c (linux_mourn): Also remove the process.
18351 * server.c (handle_target_event): Don't remove the process here.
18352 * nto-low.c (nto_mourn): New.
18353 (nto_target_ops): Install it.
18354 * spu-low.c (spu_mourn): New.
18355 (spu_target_ops): Install it.
18356 * win32-low.c (win32_mourn): New.
18357 (win32_target_ops): Install it.
18358
18359 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18360
18361 * server.h (buffer_xml_printf): Remove redundant `;'.
18362
18363 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18364
18365 * regcache.c (set_register_cache): Invalidate regcaches before
18366 changing the register cache layout.
18367 (regcache_invalidate_one): Allow a NULL regcache.
18368 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18369 regcaches before changing the register cache layout or the target
18370 regsets.
18371
18372 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18373
18374 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18375 variable warning on Linux/x86-64.
18376
18377 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18378
18379 GDBserver disconnected tracing support.
18380
18381 * linux-low.c (linux_remove_process): Delete.
18382 (add_lwp): Don't set last_resume_kind here.
18383 (linux_kill): Use `mourn'.
18384 (linux_detach): Use `thread_db_detach', and `mourn'.
18385 (linux_mourn): New.
18386 (linux_attach_lwp_1): Adjust comment.
18387 (linux_attach): last_resume_kind moved the thread_info; adjust.
18388 (status_pending_p_callback): Adjust.
18389 (linux_wait_for_event_1): Adjust.
18390 (count_events_callback, select_singlestep_lwp_callback)
18391 (select_event_lwp_callback, cancel_breakpoints_callback)
18392 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18393 (proceed_one_lwp): Adjust.
18394 (linux_async): Add debug output.
18395 (linux_thread_stopped): New.
18396 (linux_pause_all): New.
18397 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18398 linux_pause_all.
18399 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18400 (thread_db_free): Delete declaration.
18401 (thread_db_detach, thread_db_mourn): Declare.
18402 * thread-db.c (thread_db_init): Use thread_db_mourn.
18403 (thread_db_free): Delete, split in two.
18404 (disable_thread_event_reporting): New.
18405 (thread_db_detach): New.
18406 (thread_db_mourn): New.
18407
18408 * server.h (struct thread_info) <last_resume_kind>: New field.
18409 <attached>: Add comment.
18410 <gdb_detached>: New field.
18411 (handler_func): Change return type to int.
18412 (handle_serial_event, handle_target_event): Ditto.
18413 (gdb_connected): Declare.
18414 (tracing): Delete.
18415 (disconnected_tracing): Declare.
18416 (stop_tracing): Declare.
18417
18418 * server.c (handle_query) <qSupported>: Report support for
18419 disconnected tracing.
18420 (queue_stop_reply_callback): Account for running threads.
18421 (gdb_wants_thread_stopped): New.
18422 (gdb_wants_all_threads_stopped): New.
18423 (gdb_reattached_process): New.
18424 (handle_status): Clear the `gdb_detached' flag of all processes.
18425 In all-stop, stop all threads.
18426 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18427 (process_serial_event): If the remote connection breaks, or if an
18428 exit was forced with "monitor exit", force an event loop exit.
18429 Handle disconnected tracing on detach.
18430 (handle_serial_event): Adjust.
18431 (handle_target_event): If GDB isn't connected, forward events back
18432 to the inferior, unless the last process exited, in which case,
18433 exit gdbserver. Adjust interface.
18434
18435 * remote-utils.c (remote_open): Don't block in accept. Instead
18436 register an event loop source on the listen socket file
18437 descriptor. Refactor bits into ...
18438 (listen_desc): ... this new global.
18439 (gdb_connected): ... this new function.
18440 (enable_async_notification): ... this new function.
18441 (handle_accept_event): ... this new function.
18442 (remote_close): Clear remote_desc.
18443
18444 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18445
18446 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18447 New fields.
18448 (mourn_inferior): Define.
18449 (target_process_qsupported): Avoid the dangling else problem.
18450 (thread_stopped): Define.
18451 (pause_all): Define.
18452 (target_waitstatus_to_string): Declare.
18453 * target.c (target_waitstatus_to_string): New.
18454
18455 * tracepoint.c (tracing): Make extern.
18456 (disconnected_tracing): New.
18457 (stop_tracing): Make extern. Handle tracing stops due to GDB
18458 disconnecting.
18459 (cmd_qtdisconnected): New.
18460 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18461 (handle_tracepoint_general_set): Handle QTDisconnected.
18462
18463 * event-loop.c (event_handler_func): Change return type to int.
18464 (process_event): Bail out if the event handler wants the event
18465 loop to stop.
18466 (handle_file_event): Ditto.
18467 (start_event_loop): Bail out if the event handler wants the event
18468 loop to stop.
18469
18470 * nto-low.c (nto_target_ops): Adjust.
18471 * spu-low.c (spu_wait): Don't remove the process here.
18472 (spu_target_ops): Adjust.
18473 * win32-low.c (win32_wait): Don't remove the process here.
18474 (win32_target_ops): Adjust.
18475
18476 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18477
18478 * regcache.c (realloc_register_cache): Invalidate inferior's
18479 regcache before recreating it.
18480
18481 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18482
18483 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18484
18485 2010-04-09 Stan Shebs <stan@codesourcery.com>
18486 Pedro Alves <pedro@codesourcery.com>
18487
18488 * server.h (LONGEST): New.
18489 (struct thread_info) <while_stepping>: New field.
18490 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18491 Declare.
18492 (initialize_tracepoint, handle_tracepoint_general_set)
18493 (handle_tracepoint_query, tracepoint_finished_step)
18494 (tracepoint_was_hit, release_while_stepping_state_list):
18495 (current_traceframe): Declare.
18496 * server.c (handle_general_set): Handle tracepoint packets.
18497 (read_memory): New.
18498 (write_memory): New.
18499 (handle_search_memory_1): Use read_memory.
18500 (handle_query): Report support for conditional tracepoints, trace
18501 state variables, and tracepoint sources. Handle tracepoint
18502 queries.
18503 (main): Initialize the tracepoints module.
18504 (process_serial_event): Handle traceframe reads/writes.
18505
18506 * linux-low.c (handle_tracepoints): New.
18507 (linux_wait_1): Call it.
18508 (linux_resume_one_lwp): Handle while-stepping.
18509 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18510 (linux_target_ops): Install them.
18511 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18512 New field.
18513 * linux-x86-low.c (x86_supports_tracepoints): New.
18514 (the_low_target). Install it.
18515
18516 * mem-break.h (delete_breakpoint): Declare.
18517 * mem-break.c (delete_breakpoint): Make external.
18518
18519 * target.h (struct target_ops): Add `supports_tracepoints',
18520 `read_pc', and `write_pc' fields.
18521 (target_supports_tracepoints): Define.
18522 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18523 (phex_nz): New.
18524
18525 * regcache.h (struct regcache) <registers_owned>: New field.
18526 (init_register_cache, regcache_cpy): Declare.
18527 (regcache_read_pc, regcache_write_pc): Declare.
18528 (register_cache_size): Declare.
18529 (supply_regblock): Declare.
18530 * regcache.c (init_register_cache): New.
18531 (new_register_cache): Use it.
18532 (regcache_cpy): New.
18533 (register_cache_size): New.
18534 (supply_regblock): New.
18535 (regcache_read_pc, regcache_write_pc): New.
18536
18537 * tracepoint.c: New.
18538
18539 * Makefile.in (OBS): Add tracepoint.o.
18540 (tracepoint.o): New rule.
18541
18542 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18543
18544 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18545 (i386-mmx.o): New.
18546 (i386-mmx.c): Likewise.
18547 (i386-mmx-linux.o): Likewise.
18548 (i386-mmx-linux.c): Likewise.
18549
18550 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18551 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18552 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18553 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18554
18555 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18556 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18557 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18558
18559 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18560
18561 * Makefile.in (clean): Updated.
18562 (i386-avx.o): New.
18563 (i386-avx.c): Likewise.
18564 (i386-avx-linux.o): Likewise.
18565 (i386-avx-linux.c): Likewise.
18566 (amd64-avx.o): Likewise.
18567 (amd64-avx.c): Likewise.
18568 (amd64-avx-linux.o): Likewise.
18569 (amd64-avx-linux.c): Likewise.
18570
18571 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18572 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18573 (srv_amd64_regobj): Add amd64-avx.o.
18574 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18575 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18576 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18577 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18578 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18579 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18580 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18581
18582 * i387-fp.c: Include "i386-xstate.h".
18583 (i387_xsave): New.
18584 (i387_cache_to_xsave): Likewise.
18585 (i387_xsave_to_cache): Likewise.
18586 (x86_xcr0): Likewise.
18587
18588 * i387-fp.h (i387_cache_to_xsave): Likewise.
18589 (i387_xsave_to_cache): Likewise.
18590 (x86_xcr0): Likewise.
18591
18592 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18593 * linux-crisv32-low.c (target_regsets): Likewise.
18594 * linux-m68k-low.c (target_regsets): Likewise.
18595 * linux-mips-low.c (target_regsets): Likewise.
18596 * linux-ppc-low.c (target_regsets): Likewise.
18597 * linux-s390-low.c (target_regsets): Likewise.
18598 * linux-sh-low.c (target_regsets): Likewise.
18599 * linux-sparc-low.c (target_regsets): Likewise.
18600 * linux-xtensa-low.c (target_regsets): Likewise.
18601
18602 * linux-low.c: Include <sys/uio.h>.
18603 (regsets_fetch_inferior_registers): Support nt_type.
18604 (regsets_store_inferior_registers): Likewise.
18605 (linux_process_qsupported): New.
18606 (linux_target_ops): Add linux_process_qsupported.
18607
18608 * linux-low.h (regset_info): Add nt_type.
18609 (linux_target_ops): Add process_qsupported.
18610
18611 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18612 and <sys/uio.h>.
18613 (init_registers_i386_avx_linux): New.
18614 (init_registers_amd64_avx_linux): Likewise.
18615 (xmltarget_i386_linux_no_xml): Likewise.
18616 (xmltarget_amd64_linux_no_xml): Likewise.
18617 (PTRACE_GETREGSET): Likewise.
18618 (PTRACE_SETREGSET): Likewise.
18619 (x86_fill_xstateregset): Likewise.
18620 (x86_store_xstateregset): Likewise.
18621 (use_xml): Likewise.
18622 (x86_linux_update_xmltarget): Likewise.
18623 (x86_linux_process_qsupported): Likewise.
18624 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18625 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18626 init_registers_i386_linux here. Call
18627 x86_linux_update_xmltarget.
18628 (the_low_target): Add x86_linux_process_qsupported.
18629
18630 * server.c (handle_query): Call target_process_qsupported.
18631
18632 * target.h (target_ops): Add process_qsupported.
18633 (target_process_qsupported): New.
18634
18635 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18636
18637 * inferiors.c (add_thread): Set last_status kind to
18638 TARGET_WAITKIND_IGNORE.
18639 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18640 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18641 (linux_wait_1): Move `thread' local definition to block that uses
18642 it. Don't NULL initialize `event_child'.
18643 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18644 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18645 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18646
18647 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18648
18649 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18650 an extended waitstatus, or by a watchpoint.
18651 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18652 thread was stepping or has been stopped by a watchpoint.
18653
18654 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18655
18656 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18657 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18658 of another, then delete the previous, and validate all
18659 breakpoints.
18660 (validate_inserted_breakpoint): New.
18661 (delete_disabled_breakpoints): New.
18662 (validate_breakpoints): New.
18663 (check_mem_read): Validate breakpoints before trusting their
18664 shadow. Delete disabled breakpoints.
18665 (check_mem_write): Validate breakpoints before trusting they
18666 should be inserted. Delete disabled breakpoints.
18667 * mem-break.h (validate_breakpoints):
18668 * server.c (handle_query): Validate breakpoints when we see a
18669 qSymbol query.
18670
18671 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18672
18673 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18674 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18675 if we could tell there's a GDB breakpoint at stop_pc.
18676 (need_step_over_p): Don't do a step over if we find a GDB
18677 breakpoint at the resume PC.
18678
18679 * mem-break.c (struct raw_breakpoint): New.
18680 (enum bkpt_type): New type `gdb_breakpoint'.
18681 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18682 fields. New field `raw'.
18683 (find_raw_breakpoint_at): New.
18684 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18685 breakpoint instead.
18686 (set_breakpoint_at): Adjust.
18687 (delete_raw_breakpoint): New.
18688 (release_breakpoint): New.
18689 (delete_breakpoint): Rename to...
18690 (delete_breakpoint_1): ... this. Add proc parameter. Use
18691 release_breakpoint. Return ENOENT.
18692 (delete_breakpoint): Reimplement.
18693 (find_breakpoint_at): Delete.
18694 (find_gdb_breakpoint_at): New.
18695 (delete_breakpoint_at): Delete.
18696 (set_gdb_breakpoint_at): New.
18697 (delete_gdb_breakpoint_at): New.
18698 (gdb_breakpoint_here): New.
18699 (set_reinsert_breakpoint): Use release_breakpoint.
18700 (uninsert_breakpoint): Rename to ...
18701 (uninsert_raw_breakpoint): ... this.
18702 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18703 (reinsert_raw_breakpoint): Change parameter type to
18704 raw_breakpoint.
18705 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18706 instead.
18707 (check_breakpoints): Adjust. Use release_breakpoint.
18708 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18709 (breakpoint_inserted_here): Ditto.
18710 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18711 Don't trust the breakpoint's shadow if it is not inserted.
18712 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18713 (delete_all_breakpoints): Adjust.
18714 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18715 use delete_breakpoint_1.
18716
18717 * mem-break.h (breakpoints_supported): Delete declaration.
18718 (set_gdb_breakpoint_at): Declare.
18719 (gdb_breakpoint_here): Declare.
18720 (delete_breakpoint_at): Delete.
18721 (delete_gdb_breakpoint_at): Declare.
18722
18723 * server.h (struct raw_breakpoint): Forward declare.
18724 (struct process_info): New field `raw_breakpoints'.
18725
18726 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18727 breakpoints.
18728
18729 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18730
18731 * linux-low.c (status_pending_p_callback): Fix comment.
18732 (linux_wait_for_event_1): Move most of the internal breakpoint
18733 handling from here...
18734 (linux_wait_1): ... to here.
18735 (count_events_callback): New.
18736 (select_singlestep_lwp_callback): New.
18737 (select_event_lwp_callback): New.
18738 (cancel_breakpoints_callback): New.
18739 (select_event_lwp): New.
18740 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18741 priority to all LWPs that have had events that should be reported
18742 to the client. Cancel breakpoints when about to reporting the
18743 event to the client, not while stopping lwps. No longer cancel
18744 finished single-steps here.
18745 (cancel_finished_single_step): Delete.
18746 (cancel_finished_single_steps): Delete.
18747
18748 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18749
18750 * mem-break.c (enum bkpt_type): New.
18751 (struct breakpoint): New field `type'.
18752 (set_breakpoint_at): Change return type to struct breakpoint
18753 pointer. Set type to `other_breakpoint' by default.
18754 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18755 in the breakpoint list.
18756 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18757 (reinsert_breakpoint): Rename to ...
18758 (reinsert_raw_breakpoint): ... this.
18759 (reinsert_breakpoints_at): Adjust.
18760 * mem-break.h (struct breakpoint): Declare.
18761 (set_breakpoint_at): Change return type to struct breakpoint
18762 pointer.
18763
18764 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18765
18766 * server.c (handle_query): Assign, not compare.
18767
18768 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18769
18770 Teach linux gdbserver to step-over-breakpoints.
18771
18772 * linux-low.c (can_hardware_single_step): New.
18773 (supports_breakpoints): New.
18774 (handle_extended_wait): If stopping threads, read the stop pc of
18775 the new cloned LWP.
18776 (get_pc): New.
18777 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18778 low target doesn't support retrieving the PC.
18779 (add_lwp): Set last_resume_kind to resume_continue.
18780 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18781 (linux_attach): Don't clear stop_expected. Set the lwp's
18782 last_resume_kind to resume_stop.
18783 (linux_detach_one_lwp): Don't check for removed breakpoints.
18784 (check_removed_breakpoint): Delete.
18785 (status_pending_p): Rename to ...
18786 (status_pending_p_callback): ... this. Don't check for removed
18787 breakpoints. Don't consider threads that are stopped from GDB's
18788 perspective.
18789 (linux_wait_for_lwp): Always read the stop_pc here.
18790 (cancel_breakpoint): New.
18791 (step_over_bkpt): New global.
18792 (linux_wait_for_event_1): Implement stepping over breakpoints.
18793 (gdb_wants_lwp_stopped): New.
18794 (gdb_wants_all_stopped): New.
18795 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18796 single-step traps here. Store the thread's last reported target
18797 wait status.
18798 (send_sigstop): Don't clear stop_expected. Always set it,
18799 instead.
18800 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18801 (cancel_finished_single_step): New.
18802 (cancel_finished_single_steps): New.
18803 (wait_for_sigstop): Don't cancel finished single-step traps here.
18804 (linux_resume_one_lwp): Don't check for removed breakpoints.
18805 Don't set `step' on non-hardware step archs.
18806 (linux_set_resume_request): Ignore resume_stop requests if already
18807 stopping or stopped. Set the lwp's last_resume_kind.
18808 (resume_status_pending_p): Don't check for removed breakpoints.
18809 (need_step_over_p): New.
18810 (start_step_over): New.
18811 (finish_step_over): New.
18812 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18813 requests. Clear the thread's last reported target waitstatus.
18814 Don't use the `suspended' flag. Don't consider pending breakpoints.
18815 (linux_resume): Start a step-over if necessary.
18816 (proceed_one_lwp): New.
18817 (proceed_all_lwps): New.
18818 (unstop_all_lwps): New.
18819 * linux-low.h (struct lwp_info): Rewrite comment for the
18820 `suspended' flag. Add the `stop_pc' field. Delete the
18821 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18822 Add `'last_resume_kind' and `need_step_over' fields.
18823 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18824 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18825 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18826 (set_raw_breakpoint_at): New.
18827 (set_breakpoint_at): Rewrite to use it.
18828 (reinsert_breakpoint_handler): Delete.
18829 (set_reinsert_breakpoint): New.
18830 (reinsert_breakpoint_by_bp): Delete.
18831 (delete_reinsert_breakpoints): New.
18832 (uninsert_breakpoint): Rewrite.
18833 (uninsert_breakpoints_at): New.
18834 (reinsert_breakpoint): Rewrite.
18835 (reinsert_breakpoints_at): New.
18836 (check_breakpoints): Rewrite.
18837 (breakpoint_here): New.
18838 (breakpoint_inserted_here): New.
18839 (check_mem_read): Adjust.
18840 * mem-break.h (breakpoints_supported, breakpoint_here)
18841 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18842 (reinsert_breakpoint_by_bp): Delete declaration.
18843 (delete_reinsert_breakpoints): Declare.
18844 (reinsert_breakpoint): Delete declaration.
18845 (reinsert_breakpoints_at): Declare.
18846 (uninsert_breakpoint): Delete declaration.
18847 (uninsert_breakpoints_at): Declare.
18848 (check_breakpoints): Adjust prototype.
18849 * server.h: Adjust include order.
18850 (struct thread_info): Declare here. Add a `last_status' field.
18851
18852 2010-03-23 Michael Snyder <msnyder@vmware.com>
18853
18854 * server.c (crc32): New function.
18855 (handle_query): Add handling for 'qCRC:' request.
18856
18857 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18858
18859 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18860 lwp had been stopped by a watchpoint.
18861
18862 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18863
18864 * server.h (internal_error): Declare.
18865 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18866 * utils.c (internal_error): New function.
18867
18868 2010-03-15 Andreas Schwab <schwab@redhat.com>
18869
18870 * configure.srv: Fix typo setting srv_regobj.
18871
18872 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18873
18874 * linux-low.c (fetch_register): Avoid passing a non string literal
18875 format to `error'.
18876 (usr_store_inferior_registers): Ditto.
18877
18878 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18879
18880 * linux-low.c (linux_write_memory): Bail out early if peeking
18881 memory failed.
18882
18883 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18884
18885 * linux-low.h (struct lwp_info): New fields
18886 `stopped_by_watchpoint' and `stopped_data_address'.
18887 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18888 here, and cache them in the lwp object.
18889 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18890 directly.
18891 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18892 field.
18893 (linux_stopped_by_watchpoint): Rewrite.
18894 (linux_stopped_data_address): Rewrite.
18895
18896 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18897
18898 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18899 switching the current inferior, not before.
18900
18901 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18902
18903 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18904 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18905 i386-linux.c and amd64-linux.c.
18906 (reg-i386.o): Removed.
18907 (reg-i386.c): Likewise.
18908 (reg-i386-linux.o): Likewise.
18909 (reg-i386-linux.c): Likewise.
18910 (reg-x86-64.o): Likewise.
18911 (reg-x86-64.c): Likewise.
18912 (reg-x86-64-linux.o): Likewise.
18913 (reg-x86-64-linux.c): Likewise.
18914 (i386.o): New.
18915 (i386.c): Likewise.
18916 (i386-linux.o): Likewise.
18917 (i386-linux.c): Likewise.
18918 (amd64.o): Likewise.
18919 (amd64.c): Likewise.
18920 (amd64-linux.o): Likewise.
18921 (amd64-linux.c): Likewise.
18922
18923 * configure.srv (srv_i386_regobj): New.
18924 (srv_i386_linux_regobj): Likewise.
18925 (srv_amd64_regobj): Likewise.
18926 (srv_amd64_linux_regobj): Likewise.
18927 (srv_i386_32bit_xmlfiles): Likewise.
18928 (srv_i386_64bit_xmlfiles): Likewise.
18929 (srv_i386_xmlfiles): Likewise.
18930 (srv_amd64_xmlfiles): Likewise.
18931 (srv_i386_linux_xmlfiles): Likewise.
18932 (srv_amd64_linux_xmlfiles): Likewise.
18933 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18934 srv_xmlfiles to $srv_i386_xmlfiles.
18935 (i[34567]86-*-mingw32ce*): Likewise.
18936 (i[34567]86-*-mingw*): Likewise.
18937 (i[34567]86-*-nto*): Likewise.
18938 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18939 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18940 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18941 (x86_64-*-linux*): Likewise.
18942
18943 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18944 (init_registers_amd64_linux): New.
18945 (x86_arch_setup): Replace init_registers_x86_64_linux with
18946 init_registers_amd64_linux.
18947
18948 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18949
18950 * configure.ac: Check for libdl. If it is not available link against
18951 static libthread_db.
18952 * configure: Regenerate.
18953
18954 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18955
18956 PR9605
18957
18958 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18959 handing a read watchpoint.
18960 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18961
18962 2010-02-12 Doug Evans <dje@google.com>
18963
18964 * linux-low.c (linux_supports_tracefork_flag): Document.
18965 (linux_look_up_symbols): Add comment.
18966
18967 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18968
18969 * regcache.c (supply_register): Clear regcache if buf is NULL.
18970
18971 2010-02-02 Nicolas Roche <roche@sourceware.org>
18972 Joel Brobecker <brobecker@adacore.com>
18973
18974 * inferiors.c (find_inferior): Add function documentation.
18975 (unloaded_dll): Handle the case where the unloaded dll has not
18976 been previously registered in the dll list.
18977
18978 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18979
18980 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18981 (thumb2_breakpoint): New.
18982 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18983
18984 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18985
18986 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18987 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18988 breakpoints.
18989
18990 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18991
18992 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18993
18994 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18995
18996 * linux-s390-low.c (s390_collect_ptrace_register)
18997 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18998
18999 2010-01-21 Doug Evans <dje@google.com>
19000
19001 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19002 (PTRACE_ARG4_TYPE): New macro.
19003 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19004 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19005 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19006 (usr_store_inferior_registers): Ditto.
19007 (linux_read_memory, linux_write_memory): Ditto.
19008 (linux_test_for_tracefork): Ditto.
19009
19010 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19011 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19012
19013 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19014
19015 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19016 target.
19017
19018 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19019
19020 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19021 prototype to take a regcache. Adjust.
19022
19023 2010-01-20 Pedro Alves <pedro@codesourcery.com>
19024
19025 * regcache.h (struct thread_info): Forward declare.
19026 (struct regcache): New.
19027 (new_register_cache): Adjust prototype.
19028 (get_thread_regcache): Declare.
19029 (free_register_cache): Adjust prototype.
19030 (registers_to_string, registers_from_string): Ditto.
19031 (supply_register, supply_register_by_name, collect_register)
19032 (collect_register_as_string, collect_register_by_name): Ditto.
19033 * regcache.c (struct inferior_regcache_data): Delete.
19034 (get_regcache): Rename to ...
19035 (get_thread_regcache): ... this. Adjust. Switch inferior before
19036 fetching registers.
19037 (regcache_invalidate_one): Adjust.
19038 (regcache_invalidate): Fix prototype.
19039 (new_register_cache): Return the new register cache.
19040 (free_register_cache): Change prototype.
19041 (realloc_register_cache): Adjust.
19042 (registers_to_string): Change prototype to take a regcache. Adjust.
19043 (registers_from_string): Ditto.
19044 (register_data): Ditto.
19045 (supply_register): Ditto.
19046 (supply_register_by_name): Ditto.
19047 (collect_register): Ditto.
19048 (collect_register_as_string): Ditto.
19049 (collect_register_by_name): Ditto.
19050 * server.c (process_serial_event): Adjust.
19051 * linux-low.h (regset_fill_func, regset_store_func): Change
19052 prototype.
19053 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19054 Change prototype.
19055 * linux-low.c (get_stop_pc): Adjust.
19056 (check_removed_breakpoint): Adjust.
19057 (linux_wait_for_event): Adjust.
19058 (linux_resume_one_lwp): Adjust.
19059 (fetch_register): Add regcache parameter. Adjust.
19060 (usr_store_inferior_registers): Ditto.
19061 (regsets_fetch_inferior_registers): Ditto.
19062 (regsets_store_inferior_registers): Ditto.
19063 (linux_fetch_registers, linux_store_registers): Ditto.
19064 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19065 regcache. Adjust.
19066 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19067 Ditto.
19068 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19069 prototype to take a regcache.
19070 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19071 * remote-utils.c (convert_ascii_to_int, outreg)
19072 (prepare_resume_reply): Change prototype to take a regcache.
19073 Adjust.
19074 * target.h (struct target_ops) <fetch_registers, store_registers>:
19075 Change prototype to take a regcache.
19076 (fetch_inferior_registers, store_inferior_registers): Change
19077 prototype to take a regcache. Adjust.
19078 * proc-service.c (ps_lgetregs): Adjust.
19079 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19080 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19081 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19082 take a regcache. Adjust.
19083 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19084 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19085 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19086 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19087 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19088 (cris_cannot_fetch_register):
19089 (cris_breakpoint_at): Change prototype to take a regcache.
19090 Adjust.
19091 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19092 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19093 to take a regcache. Adjust.
19094 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19095 Adjust.
19096 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19097 take a regcache. Adjust.
19098 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19099 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19100 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19101 * linux-mips-low.c (mips_get_pc):
19102 (mips_set_pc): Change prototype to take a regcache. Adjust.
19103 (mips_reinsert_addr): Adjust.
19104 (mips_collect_register): Change prototype to take a regcache.
19105 Adjust.
19106 (mips_supply_register):
19107 (mips_collect_register_32bit, mips_supply_register_32bit)
19108 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19109 (mips_store_fpregset): Ditto.
19110 * linux-ppc-low.c (ppc_supply_ptrace_register)
19111 (ppc_supply_ptrace_register): Ditto.
19112 (parse_spufs_run): Adjust.
19113 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19114 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19115 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19116 take a regcache. Adjust.
19117 * linux-s390-low.c (s390_collect_ptrace_register)
19118 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19119 (s390_set_pc): Change prototype to take a regcache. Adjust.
19120 (s390_arch_setup): Adjust.
19121 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19122 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19123 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19124 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19125 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19126 regcache. Adjust.
19127 (sparc_breakpoint_at): Adjust.
19128 * linux-xtensa-low.c (xtensa_fill_gregset):
19129 (xtensa_store_gregset):
19130 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19131 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19132 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19133 prototype to take a regcache. Adjust.
19134 * win32-arm-low.c (arm_fetch_inferior_register)
19135 (arm_store_inferior_register): Change prototype to take a
19136 regcache. Adjust.
19137 * win32-i386-low.c (i386_fetch_inferior_register)
19138 (i386_store_inferior_register): Change prototype to take a
19139 regcache. Adjust.
19140 * win32-low.c (child_fetch_inferior_registers)
19141 (child_store_inferior_registers): Change prototype to take a
19142 regcache. Adjust.
19143 (win32_wait): Adjust.
19144 (win32_fetch_inferior_registers): Change prototype to take a
19145 regcache. Adjust.
19146 (win32_store_inferior_registers): Adjust.
19147 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19148 store_inferior_register>: Change prototype to take a regcache.
19149
19150 2010-01-20 Doug Evans <dje@google.com>
19151
19152 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19153 #ifdef.
19154 (linux_wait_for_event1, linux_init_signals): Ditto.
19155 (W_STOPCODE): Provide definition if missing.
19156
19157 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19158
19159 * linux-low.c (linux_core_of_thread): New.
19160 (compare_ints, show_process, list_threads): New.
19161 (linux_qxfer_osdata): Report threads and cores.
19162 (linux_target_op): Register linux_core_of_thread.
19163 * remote-utils.c (prepare_resume_reply): Report the core.
19164 (buffer_xml_printf): Support %d specifier.
19165 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19166 New.
19167 (handle_query): Handle qXfer:threads. Announce availability
19168 thereof.
19169 * target.h (struct target_ops): New field core_of_thread.
19170
19171 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19172
19173 * Makefile.in (clean): Remove new generated files.
19174 (reg-s390.o, reg-s390.c): Remove rules.
19175 (reg-s390x.o, reg-s390x.c): Likewise.
19176 (s390-linux32.o, s390-linux32.c): Add rules.
19177 (s390-linux64.o, s390-linux64.c): Likewise.
19178 (s390x-linux64.o, s390x-linux64.c): Likewise.
19179 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19180 * linux-s390-low.c: Include <elf.h>.
19181 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19182 (init_registers_s390): Remove prototype.
19183 (init_registers_s390x): Likewise.
19184 (init_registers_s390_linux32): Add prototype.
19185 (init_registers_s390_linux64): Likewise.
19186 (init_registers_s390x_linux64): Likewise.
19187 (s390_num_regs_3264): New define.
19188 (s390_regmap_3264): New global variable.
19189 (s390_cannot_fetch_register): Remove obsolete check.
19190 (s390_cannot_store_register): Likewise.
19191 (s390_collect_ptrace_register): Handle upper/lower register halves.
19192 (s390_supply_ptrace_register): Likewise.
19193 (s390_fill_gregset): Update to register number changes.
19194 (s390_get_hwcap): New routine.
19195 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19196 Install appropriate regmap and register set.
19197
19198 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19199
19200 * server.c (gdbserver_version): Update copyright year to 2010.
19201 * gdbreplay.c (gdbreplay_version): Likewise.
19202
19203 2009-12-28 Doug Evans <dje@google.com>
19204
19205 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19206 elf/external.h. Include <elf.h> instead but only if necessary.
19207
19208 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19209
19210 * linux-low.c (linux_remove_process): Remove `detaching'
19211 parameter. Don't release/detach from thread_db here.
19212 (linux_kill): Release/detach from thread_db here, ...
19213 (linux_detach): ... and here, before actually detaching.
19214 (linux_wait_1): ... and here, when a process exits.
19215 * thread-db.c (any_thread_of): New.
19216 (thread_db_free): Switch the current inferior to a thread of the
19217 passed in process.
19218
19219 2009-12-21 Doug Evans <dje@google.com>
19220
19221 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19222
19223 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19224 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19225 warning ifndef __NR_tkill. Move setting of errno there too.
19226 Delete unnecessary resetting of errno after syscall.
19227 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19228
19229 * configure.ac: Check for dladdr.
19230 * config.in: Regenerate.
19231 * configure: Regenerate.
19232 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19233 (try_thread_db_load): Update.
19234
19235 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19236
19237 2009-12-18 Doug Evans <dje@google.com>
19238
19239 * event-loop.c: Include unistd.h if it exists.
19240
19241 * linux-low.c (my_waitpid): Move definition away from being in
19242 between linux_tracefork_child/linux_test_for_tracefork.
19243
19244 * gdb_proc_service.h (psaddr_t): Fix type.
19245 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19246 signature to match glibc.
19247
19248 2009-12-16 Doug Evans <dje@google.com>
19249
19250 * linux-low.c (linux_read_memory): Fix argument to read.
19251
19252 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19253
19254 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19255 events, don't leave current_inferior pointing at null.
19256
19257 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19258
19259 * win32-low.c (LOG): Delete.
19260 (OUTMSG): Output to stderr.
19261 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19262 on compile time LOG macro.
19263 (win32_wait): Fix debug output.
19264
19265 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19266
19267 * win32-low.c (win32_add_one_solib): If the dll name is
19268 "ntdll.dll", prepend the system directory to the dll path.
19269
19270 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19271
19272 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19273
19274 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19275 Vladimir Prus <vladimir@codesourcery.com>
19276
19277 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19278 * configure.ac: Check for __mcoldfire__ and set
19279 gdb_cv_m68k_is_coldfire.
19280 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19281 reg-cf.o and reg-m68k.o.
19282 * configure: Regenerated.
19283
19284 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19285
19286 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19287 Pass it to thread_db_free.
19288 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19289 proper `detaching' argument to linux_remove_process.
19290 * linux-low.h (thread_db_free): Add `detaching' parameter.
19291 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19292 to thread_db_free.
19293 (thread_db_free): Add `detaching' parameter. Only
19294 call td_ta_clear_event if detaching from process.
19295
19296 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19297
19298 * thread-db.c (thread_db_free): Fix typo.
19299
19300 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19301
19302 PR gdb/10838
19303 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19304
19305 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19306
19307 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19308 with an i686 compiler.
19309 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19310 needed.
19311 * configure: Rebuilt.
19312
19313 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19314
19315 PR gdb/10783
19316
19317 * server.c (handle_search_memory_1): Correct read_addr initialization
19318 in loop for searching subsequent chunks.
19319
19320 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19321
19322 * configure.ac: New --with-libthread-db option.
19323 * thread-db.c: Allow direct dependence on libthread_db.
19324 (thread_db_free): Adjust.
19325 * config.in: Regenerate.
19326 * configure: Likewise.
19327
19328 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19329
19330 PR gdb/10757
19331 * thread-db.c (attach_thread): New function.
19332 (maybe_attach_thread): Return success/failure.
19333 (find_new_threads_callback): Adjust.
19334 (thread_db_find_new_threads): Loop until no new threads.
19335
19336 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19337
19338 * proc-service.c (ps_lgetregs): Formatting.
19339
19340 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19341
19342 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19343 * configure.ac: Adjust.
19344 * linux-low.h (struct process_info_private): Move members to struct
19345 thread_db.
19346 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19347 * linux-low.c (linux_remove_process): Adjust.
19348 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19349 * server.c (handle_query): Move code ...
19350 (handle_monitor_command): ... here. New function.
19351 * target.h (struct target_ops): New member.
19352 * thread-db.c (struct thread_db): New.
19353 (libthread_db_search_path): New variable.
19354 (thread_db_create_event, thread_db_enable_reporting)
19355 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19356 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19357 (try_thread_db_load_1, dladdr_to_soname): New functions.
19358 (try_thread_db_load, thread_db_load_search): New functions.
19359 (thread_db_init): Search for libthread_db.
19360 (thread_db_free): New function.
19361 (thread_db_handle_monitor_command): Likewise.
19362 * config.in: Regenerate.
19363 * configure: Regenerate.
19364
19365 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19366
19367 * spu-low.c (spu_kill): Wait for inferior to terminate.
19368 Call clear_inferiors.
19369 (spu_detach): Call clear_inferiors.
19370
19371 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19372
19373 * aclocal.m4: Regenerate.
19374 * config.in: Likewise.
19375 * configure: Likewise.
19376
19377 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19378
19379 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19380 (parse_spufs_run): New function.
19381 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19382 (ppc_breakpoint_at): Handle SPU breakpoints.
19383
19384 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19385
19386 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19387 (SPUFS_MAGIC): Define.
19388 (spu_enumerate_spu_ids): New function.
19389 (linux_qxfer_spu): New function.
19390 (linux_target_ops): Install linux_qxfer_spu.
19391
19392 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19393
19394 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19395 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19396 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19397 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19398 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19399 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19400 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19401 (init_registers_powerpc_cell32l): Add prototype.
19402 (init_registers_powerpc_cell64l): Likewise.
19403 (ppc_arch_setup): Detect Cell/B.E. architecture.
19404
19405 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19406
19407 * Makefile.in (datarootdir): New variable.
19408
19409 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19410
19411 * linux-low.c (linux_write_memory): Update debugging output.
19412 * Makefile.in (clean): Add new descriptions.
19413 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19414 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19415 * configure.srv: Add new files for arm*-*-linux*.
19416 * linux-arm-low.c: Add new declarations.
19417 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19418 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19419 (HWCAP_VFPv3D16): New.
19420 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19421 instead of __IWMMXT__.
19422 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19423 (arm_arch_setup): New.
19424 (target_regsets): Remove #ifdef. Add VFP regset.
19425 (the_low_target): Use arm_arch_setup.
19426
19427 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19428
19429 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19430 the main thread again.
19431
19432 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19433
19434 Adding Neutrino gdbserver.
19435 * configure: Regenerated.
19436 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19437 * configure.srv (i[34567]86-*-nto*): New target.
19438 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19439 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19440 (nto_comctrl) [__QNX__]: New function.
19441 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19442
19443 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19444
19445 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19446 srv_tgtobj.
19447
19448 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19449 Pedro Alves <pedro@codesourcery.com>
19450
19451 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19452 don't support CONTEXT_EXTENDED_REGISTERS.
19453 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19454 (the_low_target): Install them.
19455 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19456 failing with ERROR_PIPE_NOT_CONNECTED.
19457
19458 2009-06-30 Doug Evans <dje@google.com>
19459 Pierre Muller <muller@ics.u-strasbg.fr>
19460
19461 Add h/w watchpoint support to x86-linux, win32-i386.
19462 * Makefile.in (SFILES): Add i386-low.c
19463 (i386_low_h): Define.
19464 (i386-low.o): Add dependencies.
19465 (linux-x86-low.o): Add i386-low.h dependency.
19466 (win32-i386-low.o): Ditto.
19467 * i386-low.c: New file.
19468 * i386-low.h: New file.
19469 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19470 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19471 * linux-low.c (linux_add_process): Initialize arch_private.
19472 (linux_remove_process): Free arch_private.
19473 (add_lwp): Initialize arch_private.
19474 (delete_lwp): Free arch_private.
19475 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19476 provided.
19477 * linux-low.h (process_info_private): New member arch_private.
19478 (lwp_info): New member arch_private.
19479 (linux_target_ops): New members new_process, new_thread,
19480 prepare_to_resume.
19481 (ptid_of): New macro.
19482 * linux-x86-low.c: Include stddef.h, i386-low.h.
19483 (arch_process_info): New struct.
19484 (arch_lwp_info): New struct.
19485 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19486 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19487 (i386_dr_low_get_status): New function.
19488 (x86_insert_point, x86_remove_point): New functions.
19489 (x86_stopped_by_watchpoint): New function.
19490 (x86_stopped_data_address): New function.
19491 (x86_linux_new_process, x86_linux_new_thread): New functions.
19492 (x86_linux_prepare_to_resume): New function.
19493 (the_low_target): Add entries for insert_point, remove_point,
19494 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19495 prepare_to_resume.
19496 * server.c (debug_hw_points): New global.
19497 (monitor_show_help): Document set debug-hw-points.
19498 (handle_query): Process "set debug-hw-points".
19499 * server.h (debug_hw_points): Declare.
19500 (paddress): Declare.
19501 * utils.c (NUMCELLS, CELLSIZE): New macros.
19502 (get_sell, xsnprintf, paddress): New functions.
19503 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19504 remove_point, stopped_by_watchpoint, stopped_data_address.
19505 * win32-i386-low.c: Include i386-low.h.
19506 (debug_reg_state): Replaces dr.
19507 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19508 (i386_dr_low_get_status): New function.
19509 (i386_insert_point, i386_remove_point): New functions.
19510 (i386_stopped_by_watchpoint): New function.
19511 (i386_stopped_data_address): New function.
19512 (i386_initial_stuff): Update.
19513 (get_thread_context,set_thread_context,i386_thread_added): Update.
19514 (the_low_target): Add entries for insert_point,
19515 remove_point, stopped_by_watchpoint, stopped_data_address.
19516 * win32-low.c (win32_insert_watchpoint): New function.
19517 (win32_remove_watchpoint): New function.
19518 (win32_stopped_by_watchpoint): New function.
19519 (win32_stopped_data_address): New function.
19520 (win32_target_ops): Add entries for insert_watchpoint,
19521 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19522 * win32-low.h (win32_target_ops): New members insert_point,
19523 remove_point, stopped_by_watchpoint, stopped_data_address.
19524
19525 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19526
19527 * server.c (process_serial_event): Re-return unsupported, not
19528 error, if the type isn't recognized. Re-allow supporting only
19529 insert or remove packets. Also call require_running for
19530 breakpoints. Add missing break statement to default case. Tidy.
19531 * target.h (struct target_ops): Rename insert_watchpoint to
19532 insert_point, and remove_watchpoint to remove_point.
19533
19534 * linux-low.h (struct linux_target_ops): Likewise.
19535 * linux-low.c (linux_insert_watchpoint): Rename to ...
19536 (linux_insert_point): ... this. Adjust.
19537 (linux_remove_watchpoint): Rename to ...
19538 (linux_remove_point): ... this. Adjust.
19539 (linux_target_ops): Adjust.
19540 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19541 (cris_insert_point): ... this.
19542 (cris_remove_watchpoint): Rename to ...
19543 (cris_remove_point): ... this.
19544 (the_low_target): Adjust.
19545
19546 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19547
19548 * server.c (handle_v_kill): Pass signal_pid to
19549 kill_inferior if multi_process is zero.
19550
19551 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19552
19553 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19554 * target.h (target_ops): Comment for *_watchpoint to make it clear
19555 the functions can get types '0' and '1'.
19556
19557 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19558
19559 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19560 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19561 * regcache.c (get_regcache): Likewise.
19562 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19563 * win32-low.c (child_fetch_inferior_registers): Remove check for
19564 regno 0.
19565
19566 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19567 Pedro Alves <pedro@codesourcery.com>
19568
19569 * target.h (struct target_ops) <supports_multi_process>: New
19570 callback.
19571 (target_supports_multi_process): New.
19572 * server.c (handle_query): Even if GDB reports support, only
19573 enable multi-process if the target also supports it. Report
19574 multi-process support only if the target backend supports it.
19575 * linux-low.c (linux_supports_multi_process): New function.
19576 (linux_target_ops): Install it as target_supports_multi_process
19577 callback.
19578
19579 2009-05-24 Doug Evans <dje@google.com>
19580
19581 Global renaming of find_thread_pid to find_thread_ptid.
19582 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19583 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19584 All callers updated.
19585
19586 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19587 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19588 directly.
19589
19590 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19591 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19592 (linux_resume_one_lwp): Ditto.
19593
19594 2009-05-23 Doug Evans <dje@google.com>
19595
19596 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19597 from struct inferior_list_entry * to struct lwp_info *.
19598 All callers updated.
19599
19600 2009-05-13 Doug Evans <dje@google.com>
19601
19602 * linux-x86-low.c: Don't include assert.h.
19603 (x86_siginfo_fixup): Use fatal, not assert.
19604 (x86_arch_setup): Fix comment.
19605
19606 2009-05-12 Doug Evans <dje@google.com>
19607
19608 Biarch support for i386/amd64 gdbserver.
19609 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19610 Add linux-x86-low.c.
19611 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19612 (linux-x86-low.o): Add.
19613 * linux-x86-64-low.c: Delete.
19614 * linux-i386-low.c: Delete.
19615 * linux-x86-low.c: New file.
19616 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19617 linux-x86-low.o.
19618 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19619 linux-x86-low.o.
19620 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19621 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19622 (linux_child_pid_to_exec_file): New function.
19623 (elf_64_header_p, elf_64_file_p): New functions.
19624 (siginfo_fixup): New function.
19625 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19626 give target a chance to convert layout.
19627 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19628 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19629
19630 2009-05-07 Doug Evans <dje@google.com>
19631
19632 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19633 (regsets_store_inferior_registers): Ditto.
19634
19635 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19636
19637 PR server/10048
19638
19639 * linux-low.c (must_set_ptrace_flags): Delete.
19640 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19641 of the global.
19642 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19643 `lwp->must_set_ptrace_flags' instead.
19644 (linux_wait_for_event_1): Set ptrace options here.
19645 (linux_wait_1): ... not here.
19646
19647 2009-04-30 Doug Evans <dje@google.com>
19648
19649 * inferiors.c (started_inferior_callback): New function.
19650 (attached_inferior_callback): New function.
19651 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19652 * server.c (print_started_pid, print_attached_pid): New functions.
19653 (detach_or_kill_for_exit): New function.
19654 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19655 * server.h (have_started_inferiors_p): Declare.
19656 (have_attached_inferiors_p): Declare.
19657
19658 * inferiors.c (remove_process): Fix memory leak, free process.
19659 * linux-low.c (linux_remove_process): New function.
19660 (linux_kill): Call it instead of remove_process.
19661 (linux_detach, linux_wait_1): Ditto.
19662
19663 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19664
19665 * configure.srv: Add x86 Windows CE target.
19666
19667 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19668
19669 * inferiors.c (get_thread_process): Make global.
19670 * server.h (get_thread_process): Add prototype.
19671 * thread-db.c (find_one_thread): Use get_thread_process
19672 instead of current_process.
19673 (thread_db_get_tls_address): Do not crash if called when
19674 thread layer is not yet initialized.
19675
19676 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19677
19678 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19679 * spu-low.c (current_tid): Rename to ...
19680 (current_ptid): ... this.
19681 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19682 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19683 ptid_get_lwp (current_ptid) instead of current_tid.
19684 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19685 instead of current_tid. Use find_process_pid to verify pid
19686 argument is valid. Pass proper argument to remove_process.
19687 (spu_thread_alive): Compare current_ptid instead of current_tid.
19688 (spu_resume): Likewise.
19689
19690 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19691
19692 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19693 variable.
19694
19695 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19696
19697 Implement the multiprocess extensions, and add linux multiprocess
19698 support.
19699
19700 * server.h (ULONGEST): Declare.
19701 (struct ptid, ptid_t): New.
19702 (minus_one_ptid, null_ptid): Declare.
19703 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19704 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19705 (struct inferior_list_entry): Change `id' type from unsigned from
19706 to ptid_t.
19707 (struct sym_cache, struct breakpoint, struct
19708 process_info_private): Forward declare.
19709 (struct process_info): Declare.
19710 (current_process): Declare.
19711 (all_processes): Declare.
19712 (initialize_inferiors): Declare.
19713 (add_thread): Adjust to use ptid_t.
19714 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19715 (add_process, remove_process, find_thread_pid): Declare.
19716 (find_inferior_id): Adjust to use ptid_t.
19717 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19718 (multi_process): Declare.
19719 (push_event): Adjust to use ptid_t.
19720 (read_ptid, write_ptid): Declare.
19721 (prepare_resume_reply): Adjust to use ptid_t.
19722 (clear_symbol_cache): Declare.
19723 * inferiors.c (all_processes): New.
19724 (null_ptid, minus_one_ptid): New.
19725 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19726 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19727 (add_thread): Change unsigned long to ptid. Remove gdb_id
19728 parameter. Adjust.
19729 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19730 (gdb_id_to_thread): Rename to ...
19731 (find_thread_pid): ... this. Change unsigned long to ptid.
19732 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19733 (loaded_dll, pull_pid_from_list): Adjust.
19734 (add_process, remove_process, find_process_pid)
19735 (get_thread_process, current_process, initialize_inferiors): New.
19736 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19737 (struct target_waitstatus) <related_pid>: Ditto.
19738 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19739 return type to int.
19740 (struct target_ops) <join>: Add `pid' argument.
19741 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19742 (struct target_ops) <wait>: Add `ptid' field. Change return type
19743 to ptid.
19744 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19745 (mywait): Add `ptid' argument. Change return type to ptid_t.
19746 (target_pid_to_str): Declare.
19747 * target.c (set_desired_inferior): Adjust to use ptids.
19748 (mywait): Add new `ptid' argument. Adjust.
19749 (target_pid_to_str): New.
19750 * mem-break.h (free_all_breakpoints): Declare.
19751 * mem-break.c (breakpoints): Delelete.
19752 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19753 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19754 to use per-process breakpoint list.
19755 (free_all_breakpoints): New.
19756 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19757 (symbol_cache, all_symbols_looked_up): Delete.
19758 (hexchars): New.
19759 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19760 read_ptid): New.
19761 (prepare_resume_reply): Change ptid argument's type from unsigned
19762 long to ptid_t. Adjust. Implement W;process and X;process.
19763 (free_sym_cache, clear_symbol_cache): New.
19764 (look_up_one_symbol): Adjust to per-process symbol cache. *
19765 * server.c (cont_thread, general_thread, step_thread): Change type
19766 to ptid_t.
19767 (attached): Delete.
19768 (multi_process): New.
19769 (last_ptid): Change type to ptid_t.
19770 (struct vstop_notif) <ptid>: Change type to ptid_t.
19771 (queue_stop_reply, push_event): Change `ptid' argument's type to
19772 ptid_t.
19773 (discard_queued_stop_replies): Add `pid' argument.
19774 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19775 changes. Don't reference the `attached' global.
19776 (attach_inferior): Adjust to mywait interface changes.
19777 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19778 features. Handle and report "multiprocess+". Handle
19779 "qAttached:PID".
19780 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19781 changes.
19782 (handle_v_kill): New.
19783 (handle_v_stopped): Adjust to use target_pid_to_str.
19784 (handle_v_requests): Allow multiple attaches and runs when
19785 multiprocess extensions are in effect. Handle "vKill".
19786 (myresume): Adjust to use ptids.
19787 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19788 (handle_status): Adjust to discard_queued_stop_replies interface
19789 change.
19790 (first_thread_of, kill_inferior_callback)
19791 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19792 (main): Call initialize_inferiors. Adjust to use ptids, killing
19793 and detaching from all inferiors. Handle multiprocess packet
19794 variants.
19795 * linux-low.h: Include gdb_proc_service.h.
19796 (struct process_info_private): New.
19797 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19798 <lwpid_of>: Use ptid_get_lwp.
19799 (get_lwp_thread): Adjust.
19800 (struct lwp_info): Add `dead' member.
19801 (find_lwp_pid): Declare.
19802 * linux-low.c (thread_db_active): Delete.
19803 (new_inferior): Adjust comment.
19804 (inferior_pid): Delete.
19805 (linux_add_process): New.
19806 (handle_extended_wait): Adjust.
19807 (add_lwp): Change unsigned long to ptid.
19808 (linux_create_inferior): Add process to processes table. Adjust
19809 to use ptids. Don't set new_inferior here.
19810 (linux_attach_lwp): Rename to ...
19811 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19812 it. Adjust to use ptids.
19813 (linux_attach_lwp): New.
19814 (linux_attach): Add process to processes table. Don't set
19815 new_inferior here.
19816 (struct counter): New.
19817 (second_thread_of_pid_p, last_thread_of_process_p): New.
19818 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19819 multiple processes.
19820 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19821 processes. Remove process from process table.
19822 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19823 to multiple processes.
19824 (any_thread_of): New.
19825 (linux_detach): Add `pid' argument, and handle it. Remove process
19826 from processes table.
19827 (linux_join): Add `pid' argument. Handle it.
19828 (linux_thread_alive): Change unsighed long argument to ptid_t.
19829 Consider dead lwps as not being alive.
19830 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19831 threads we're not interested in.
19832 (same_lwp, find_lwp_pid): New.
19833 (linux_wait_for_lwp): Change `pid' argument's type from int to
19834 ptid_t. Adjust.
19835 (linux_wait_for_event): Rename to ...
19836 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19837 from int to ptid_t. Adjust.
19838 (linux_wait_for_event): New.
19839 (linux_wait_1): Add `ptid' argument. Change return type to
19840 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19841 that exit from the process table.
19842 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19843 Adjust.
19844 (mark_lwp_dead): New.
19845 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19846 stopping all threads, mark its main lwp as dead.
19847 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19848 ptids.
19849 (fetch_register, usr_store_inferior_registers)
19850 (regsets_fetch_inferior_registers)
19851 (regsets_store_inferior_registers, linux_read_memory)
19852 (linux_write_memory): Inline `inferior_pid'.
19853 (linux_look_up_symbols): Adjust to use per-process
19854 `thread_db_active'.
19855 (linux_request_interrupt): Adjust to use ptids.
19856 (linux_read_auxv): Inline `inferior_pid'.
19857 (initialize_low): Don't reference thread_db_active.
19858 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19859 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19860 (ps_getpid): Return the pid of the current inferior.
19861 * thread-db.c (proc_handle, thread_agent): Delete.
19862 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19863 per-process data.
19864 (find_one_thread): Change argument type to ptid_t. Adjust to
19865 per-process data.
19866 (maybe_attach_thread): Adjust to per-process data and ptids.
19867 (thread_db_find_new_threads): Ditto.
19868 (thread_db_init): Ditto.
19869 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19870 processes table. Adjust to use ptids.
19871 (spu_kill, spu_detach): Adjust interface. Remove process from
19872 processes table.
19873 (spu_join, spu_thread_alive): Adjust interface.
19874 (spu_wait): Adjust interface. Remove process from processes
19875 table. Adjust to use ptids.
19876 * win32-low.c (current_inferior_tid): Delete.
19877 (current_inferior_ptid): New.
19878 (debug_event_ptid): New.
19879 (thread_rec): Take a ptid. Adjust.
19880 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19881 (child_delete_thread): Ditto.
19882 (do_initial_child_stuff): Add `attached' argument. Add process to
19883 processes table.
19884 (child_fetch_inferior_registers, child_store_inferior_registers):
19885 Adjust.
19886 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19887 (win32_attach): Pass 1 to do_initial_child_stuff.
19888 (win32_kill): Adjust interface. Remove process from processes
19889 table.
19890 (win32_detach): Ditto.
19891 (win32_join): Adjust interface.
19892 (win32_thread_alive): Take a ptid.
19893 (win32_resume): Adjust to use ptids.
19894 (get_child_debug_event): Ditto.
19895 (win32_wait): Adjust interface. Remove exiting process from
19896 processes table.
19897
19898 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19899
19900 Non-stop mode support.
19901
19902 * server.h (non_stop): Declare.
19903 (gdb_client_data, handler_func): Declare.
19904 (delete_file_handler, add_file_handler, start_event_loop):
19905 Declare.
19906 (handle_serial_event, handle_target_event, push_event)
19907 (putpkt_notif): Declare.
19908 * target.h (enum resume_kind): New.
19909 (struct thread_resume): Replace `step' field by `kind' field.
19910 (TARGET_WNOHANG): Define.
19911 (struct target_ops) <wait>: Add `options' argument.
19912 <supports_non_stop, async, start_non_stop>: New fields.
19913 (target_supports_non_stop, target_async): New.
19914 (start_non_stop): Declare.
19915 (mywait): Add `options' argument.
19916 * target.c (mywait): Add `options' argument. Print child exit
19917 notifications here.
19918 (start_non_stop): New.
19919 * server.c (non_stop, own_buf, mem_buf): New globals.
19920 (struct vstop_notif): New.
19921 (notif_queue): New global.
19922 (queue_stop_reply, push_event, discard_queued_stop_replies)
19923 (send_next_stop_reply): New.
19924 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19925 interface changes.
19926 (attach_inferior): In non-stop mode, don't wait for the target
19927 here.
19928 (handle_general_set): Handle QNonStop.
19929 (handle_query): When handling qC, return the current general
19930 thread, instead of the first thread of the list.
19931 (handle_query): If the backend supports non-stop mode, include
19932 QNonStop+ in the qSupported query response.
19933 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19934 and non-stop mode.
19935 (handle_v_attach, handle_v_run): Handle non-stop mode.
19936 (handle_v_stopped): New.
19937 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19938 (myresume): Adjust to use resume_kind. Handle non-stop.
19939 (queue_stop_reply_callback): New.
19940 (handle_status): Handle non-stop mode.
19941 (main): Clear non_stop flag on reconnection. Use the event-loop.
19942 Refactor serial protocol handling from here ...
19943 (process_serial_event): ... to this new function. When GDB
19944 selects any thread, select one here. In non-stop mode, wait until
19945 GDB acks all pending events before exiting.
19946 (handle_serial_event, handle_target_event): New.
19947 * remote-utils.c (remote_open): Install remote_desc in the event
19948 loop.
19949 (remote_close): Remove remote_desc from the event loop.
19950 (putpkt_binary): Rename to...
19951 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19952 (putpkt_binary): New as wrapper around putpkt_binary_1.
19953 (putpkt_notif): New.
19954 (prepare_resume_reply): In non-stop mode, don't change the
19955 general_thread.
19956 * event-loop.c: New.
19957 * Makefile.in (OBJ): Add event-loop.o.
19958 (event-loop.o): New rule.
19959
19960 * linux-low.h (pid_of): Moved here.
19961 (lwpid_of): New.
19962 (get_lwp_thread): Use lwpid_of.
19963 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19964 * linux-low.c (pid_of): Delete.
19965 (inferior_pid): Use lwpid_of.
19966 (linux_event_pipe): New.
19967 (target_is_async_p): New.
19968 (delete_lwp): New.
19969 (handle_extended_wait): Use lwpid_of.
19970 (add_lwp): Don't set lwpid field.
19971 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19972 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19973 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19974 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19975 first. Adjust to linux_wait_for_event interface changes. Use
19976 lwpid_of.
19977 (linux_detach): Don't delete the main lwp here.
19978 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19979 (status_pending_p): Don't consider explicitly suspended lwps.
19980 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19981 pointer. Add OPTIONS argument. Change return type to int. Use
19982 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19983 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19984 pointer. Add status pointer argument. Return a pid instead of a
19985 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19986 changes. In non-stop mode, don't switch to a random thread.
19987 (linux_wait): Rename to...
19988 (linux_wait_1): ... this. Add target_options argument, and handle
19989 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19990 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19991 clean exit and signal exit code. Don't stop all threads in
19992 non-stop mode. In all-stop mode, only stop all threads when
19993 reporting a stop to GDB. Handle explicit thread stop requests.
19994 (async_file_flush, async_file_mark): New.
19995 (linux_wait): New.
19996 (send_sigstop): Use lwpid_of.
19997 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19998 interface changes. In non-stop mode, don't switch to a random
19999 thread.
20000 (linux_resume_one_lwp): Use lwpid_of.
20001 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20002 (linux_resume_one_thread): ... this. Handle resume_stop. In
20003 non-stop mode, don't look for pending flag in all threads.
20004 (resume_status_pending_p): Don't consider explicitly suspended
20005 threads.
20006 (my_waitpid): Reimplement. Emulate __WALL.
20007 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20008 Use lwpid_of.
20009 (sigchld_handler, linux_supports_non_stop, linux_async)
20010 (linux_start_non_stop): New.
20011 (linux_target_ops): Register linux_supports_non_stop, linux_async
20012 and linux_start_non_stop.
20013 (initialize_low): Install SIGCHLD handler.
20014 * thread-db.c (thread_db_create_event, find_one_thread)
20015 (thread_db_get_tls_address): Use lwpid_of.
20016 * win32-low.c (win32_detach): Adjust to use resume_kind.
20017 (win32_wait): Add `options' argument.
20018 * spu-low.c (spu_resume): Adjust to use resume_kind.
20019 (spu_wait): Add `options' argument.
20020
20021 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20022
20023 Decouple target code from remote protocol.
20024
20025 * target.h (enum target_waitkind): New.
20026 (struct target_waitstatus): New.
20027 (struct target_ops) <wait>: Return an unsigned long. Take a
20028 target_waitstatus pointer instead of a char pointer.
20029 (mywait): Likewise.
20030 * target.c (mywait): Change prototype to return an unsigned long.
20031 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20032 * server.h (thread_from_wait, old_thread_from_wait): Delete
20033 declarations.
20034 (prepare_resume_reply): Change prototype to take a
20035 target_waitstatus.
20036 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20037 (last_status, last_ptid): New.
20038 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20039 pid instead of a signal.
20040 (attach_inferior): Remove "status" and "signal" parameters.
20041 Adjust.
20042 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20043 not as an address.
20044 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20045 (handle_v_requests, myresume): Remove "status" and "signal"
20046 parameters. Adjust.
20047 (handle_status): New.
20048 (main): Delete local `status'. Adjust.
20049 * remote-utils.c: Include target.h.
20050 (prepare_resume_reply): Change prototype to take a
20051 target_waitstatus. Adjust.
20052
20053 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20054 interface.
20055 * spu-low.c (spu_wait): Adjust.
20056 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20057 Delete.
20058 (win32_wait): Adjust.
20059
20060 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20061
20062 * target.h (struct thread_resume): Delete leave_stopped member.
20063 (struct target_ops): Add a `n' argument to the `resume' callback.
20064 * server.c (start_inferior): Adjust.
20065 (handle_v_cont, myresume): Adjust.
20066 * linux-low.c (check_removed_breakpoint): Adjust to resume
20067 interface change, and to removed leave_stopped field.
20068 (resume_ptr): Delete.
20069 (struct thread_resume_array): New.
20070 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20071 resume interface change.
20072 (linux_continue_one_thread, linux_queue_one_thread)
20073 (resume_status_pending_p): Check if the resume field is NULL
20074 instead of checking the leave_stopped member.
20075 (linux_resume): Adjust to the target resume interface change.
20076 * spu-low.c (spu_resume): Adjust to the target resume interface
20077 change.
20078 * win32-low.c (win32_detach, win32_resume): Ditto.
20079
20080 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20081
20082 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20083 flag.
20084 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20085 pending.
20086 (linux_continue_one_thread): Only preserve the stepping flag if
20087 there's a pending breakpoint.
20088
20089 2009-03-31 Pedro Alves <pedro@codesourcery.com>
20090
20091 * server.c (main): After the inferior having exited, call
20092 remote_close before exiting gdbserver.
20093
20094 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20095
20096 Fix size of FPSCR in Power 7 processors.
20097 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20098 (PPC_FEATURE_HAS_DFP): New #define.
20099 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20100 size of the FPSCR.
20101
20102 2009-03-23 Pedro Alves <pedro@codesourcery.com>
20103
20104 * server.c (handle_query) Whitespace and formatting.
20105
20106 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20107
20108 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20109 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20110 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20111 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20112 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20113 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20114 Makefile.in, configure.ac: Fix whitespace throughout.
20115 * configure: Regenerate.
20116
20117 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20118
20119 * inferiors.c (find_inferior): Make it safe for the callback
20120 function to delete the currently iterated inferior.
20121
20122 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20123
20124 * Makefile.in (linuw_low_h): Move higher.
20125 (thread-db.o): Depend on $(linux_low_h).
20126
20127 2009-03-17 Pedro Alves <pedro@codesourcery.com>
20128
20129 Rename "process" to "lwp" throughout.
20130
20131 * linux-low.c (all_processes): Rename to...
20132 (all_lwps): ... this.
20133 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20134 (add_process): Rename to ...
20135 (add_lwp): ... this. Adjust.
20136 (linux_create_inferior): Adjust.
20137 (linux_attach_lwp): Adjust.
20138 (linux_attach): Adjust.
20139 (linux_kill_one_process): Rename to ...
20140 (linux_kill_one_lwp): ... this. Adjust.
20141 (linux_kill): Adjust.
20142 (linux_detach_one_process): Rename to ...
20143 (linux_detach_one_lwp): ... this. Adjust.
20144 (linux_detach): Adjust.
20145 (check_removed_breakpoint): Adjust.
20146 (status_pending_p): Adjust.
20147 (linux_wait_for_process): Rename to ...
20148 (linux_wait_for_lwp): ... this. Adjust.
20149 (linux_wait_for_event): Adjust.
20150 (send_sigstop): Adjust.
20151 (wait_for_sigstop): Adjust.
20152 (stop_all_processes): Rename to ...
20153 (stop_all_lwps): ... this.
20154 (linux_resume_one_process): Rename to ...
20155 (linux_resume_one_lwp): ... this. Adjust.
20156 (linux_set_resume_request, linux_continue_one_thread)
20157 (linux_queue_one_thread, resume_status_pending_p)
20158 (usr_store_inferior_registers, regsets_store_inferior_registers)
20159 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20160 Adjust.
20161 * linux-low.h (get_process): Rename to ...
20162 (get_lwp): ... this. Adjust.
20163 (get_thread_process): Rename to ...
20164 (get_thread_lwp): ... this. Adjust.
20165 (get_process_thread): Rename to ...
20166 (get_lwp_thread): ... this. Adjust.
20167 (struct process_info): Rename to ...
20168 (struct lwp_info): ... this.
20169 (all_processes): Rename to ...
20170 (all_lwps): ... this.
20171 * proc-service.c (ps_lgetregs): Adjust.
20172 * thread-db.c (thread_db_create_event, find_one_thread)
20173 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20174
20175 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20176
20177 * server.c (handle_query): Handle "qAttached".
20178
20179 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20180
20181 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20182 GPLv3, update license URL.
20183
20184 2009-03-01 Doug Evans <dje@google.com>
20185
20186 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20187 (server_h): Add gdb_signals.h.
20188 (signals.o): Update.
20189 * server.h (target_signal_from_host,target_signal_to_host_p)
20190 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20191
20192 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20193
20194 * remote-utils.c (getpkt): Also generate remote-debug
20195 information if noack_mode is set.
20196
20197 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20198
20199 * server.c (handle_query): Report qXfer:siginfo:read and
20200 qXfer:siginfo:write as supported and handle them.
20201 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20202 * linux-low.c (linux_xfer_siginfo): New.
20203 (linux_target_ops): Set it.
20204
20205 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20206
20207 * server.c (gdbserver_usage): Mention --remote-debug.
20208 (main): Accept '--remote-debug' switch.
20209
20210 2009-01-18 Doug Evans <dje@google.com>
20211
20212 * regcache.c (new_register_cache): No need to check result of xcalloc.
20213 * server.c (handle_search_memory): Back out calls to xmalloc,
20214 result is checked and error is returned to user upon failure.
20215 (handle_query): Ditto. Add more checks for result of malloc.
20216 (handle_v_cont): Check result of malloc, report error back to
20217 user upon failure.
20218 (handle_v_run): Ditto. Call freeargv.
20219 * server.h (freeargv): Declare.
20220 * utils.c (freeargv): New fn.
20221
20222 2009-01-15 Doug Evans <dje@google.com>
20223
20224 * gdbreplay.c (perror_with_name): Make arg const char *.
20225 * server.h (target_signal_to_name): Make return type const char *.
20226 * thread-db.c (thread_db_err_str): Make return type const char *.
20227 * utils.c (perror_with_name): Make arg const char *.
20228
20229 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20230
20231 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20232 when handling a EXIT_PROCESS_DEBUG_EVENT.
20233
20234 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20235
20236 * gdbreplay.c (gdbreplay_version): Update copyright year.
20237 * server.c (gdbserver_version): Likewise.
20238
20239 2009-01-05 Doug Evans <dje@google.com>
20240
20241 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20242 (handle_extended_wait): Improve comment.
20243
20244 2008-12-13 Doug Evans <dje@google.com>
20245
20246 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20247 * server.h (ATTR_MALLOC): New macro.
20248 (xmalloc,xcalloc,xstrdup): Declare.
20249 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20250 * inferiors.c: Ditto.
20251 * linux-low.c: Ditto.
20252 * mem-break.c: Ditto.
20253 * regcache.c: Ditto.
20254 * remote-utils.c: Ditto.
20255 * server.c: Ditto.
20256 * target.c: Ditto.
20257 * win32-low.c: Ditto.
20258
20259 2008-12-12 Doug Evans <dje@google.com>
20260
20261 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20262 in debugging printf.
20263
20264 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20265
20266 2008-12-09 Doug Evans <dje@google.com>
20267
20268 * linux-low.h (struct process_info): Delete member tid, unused.
20269 * thread-db.c (find_one_thread): Update.
20270 (maybe_attach_thread): Update.
20271
20272 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20273
20274 * target.h (struct target_ops): Add qxfer_osdata member.
20275 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20276 and dirent.h.
20277 (linux_qxfer_osdata): New functions.
20278 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20279 callback.
20280 * server.c (handle_query): Handle "qXfer:osdata:read:".
20281 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20282 (buffer_xml_printf): New functions.
20283 * server.h (struct buffer): New.
20284 (buffer_grow_str, buffer_grow_str0): New macros.
20285 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20286 (buffer_xml_printf): Declare.
20287
20288 2008-11-24 Doug Evans <dje@google.com>
20289
20290 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20291
20292 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20293
20294 * server.c (handle_v_run): Always use the supplied argument list.
20295
20296 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20297
20298 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20299 (xtensa_regmap_table): Add entry for scompare1.
20300
20301 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20302
20303 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20304 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20305 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20306 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20307 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20308 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20309 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20310 XML target descriptions.
20311 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20312 when inferior is running on an ISA 2.05 or later processor. Add
20313 special case to return offset for full 64-bit slot of FPSCR when
20314 in 32-bits.
20315
20316 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20317
20318 * Makefile.in (SFILES, clean): Added sparc64 files.
20319 (reg-sparc64.o, reg-sparc64.c): New.
20320 * configure.srv (sparc*-*-linux*): New configuration.
20321 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20322 syscall arguments for SPARC.
20323 (regsets_store_inferior_registers): Likewise.
20324 * linux-sparc-low.c: New file.
20325
20326 2008-10-21 Doug Evans <dje@google.com>
20327
20328 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20329 (READLINE_DIR,READLINE_DEP): Delete.
20330 (INTERNAL_CFLAGS): Update.
20331 (LINTFLAGS): Update.
20332
20333 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20334
20335 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20336 whole argv from the last run, not just argv[0].
20337
20338 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20339
20340 * regcache.c (new_register_cache): Return NULL if the register
20341 cache size isn't known yet.
20342 (free_register_cache): Avoid dereferencing a NULL regcache.
20343
20344 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20345
20346 * configure.srv: Merge MIPS and MIPS64.
20347
20348 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20349
20350 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20351
20352 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20353
20354 * Makefile.in: Add required vsx dependencies.
20355
20356 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20357 Declare init_registers_powerpc_vsx32l.
20358 Declare init_registers_powerpc_vsx64l.
20359 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20360 (ppc_arch_setup): Check for VSX in hwcap.
20361 (ppc_fill_vsxregset): New function.
20362 (ppc_store_vsxregset): New function.
20363 Add new VSX entry in regset_info target_regsets.
20364
20365 * configure.srv: Add new VSX dependencies.
20366
20367 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20368
20369 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20370 (remote_open): Set or clear transport_is_reliable.
20371 (putpkt_binary): Don't expect acks in noack mode.
20372 (getpkt): Don't send ack/nac in noack mode.
20373 * server.c (handle_general_set): Handle QStartNoAckMode.
20374 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20375 qSupported.
20376 (main): Reset noack_mode on every connection.
20377 * server.h (noack_mode): Declare.
20378
20379 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20380
20381 * Makefile.in (GDBREPLAY_OBS): New variable.
20382 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20383
20384 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20385 Daniel Jacobowitz <dan@codesourcery.com>
20386
20387 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20388 (usr_store_inferior_registers): Likewise.
20389 (regsets_store_inferior_registers): Likewise.
20390
20391 2008-07-31 Rolf Jansen <rj@surtec.com>
20392 Pedro Alves <pedro@codesourcery.com>
20393
20394 * configure.ac: Check for memmem declaration.
20395 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20396 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20397 (disable_packet_qfThreadInfo): Unconditionally compile.
20398 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20399 * configure, config.in: Regenerate.
20400
20401 2008-07-28 Doug Kwan <dougkwan@google.com>
20402
20403 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20404 (linux_write_memory): Remove declaration of errno.
20405
20406 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20407
20408 * linux-low.c (handle_extended_wait): Do not use "status"
20409 variable uninitialized.
20410
20411 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20412
20413 * server.c (handle_v_attach): Inhibit reporting dll changes.
20414
20415 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20416
20417 * remote-utils.c (prepare_resume_reply): If requested, don't
20418 output "thread:TID" in the T stop reply.
20419
20420 * server.c (disable_packet_vCont, disable_packet_Tthread)
20421 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20422 (handle_query): If requested, disable support for qC, qfThreadInfo
20423 and qsThreadInfo.
20424 (handle_v_requests): If requested, disable support for vCont.
20425 (gdbserver_show_disableable): New.
20426 (main): Handle --disable-packet and --disable-packet=LIST.
20427
20428 * server.h (disable_packet_vCont, disable_packet_Tthread)
20429 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20430
20431 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20432
20433 * server.c (gdbserver_usage): Mention --version.
20434
20435 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20436
20437 * Makefile.in (gdbreplay.o): New rule.
20438
20439 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20440
20441 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20442 message, not gdbserver.
20443
20444 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20445 Nathan Sidwell <nathan@codesourcery.com>
20446 Joseph Myers <joseph@codesourcery.com>
20447
20448 * acinclude.m4: Include ../../config/acx.m4.
20449 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20450 * configure, config.in: Regenerate.
20451 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20452 * server.c (gdbserver_version): Print PKGVERSION.
20453 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20454 (main): Adjust gdbserver_usage calls.
20455 * gdbreplay.c (version, host_name): Add declarations.
20456 (gdbreplay_version, gdbreplay_usage): New.
20457 (main): Accept --version and --help options.
20458
20459 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20460
20461 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20462 (arm_breakpoint_at): Handle Thumb.
20463 (the_low_target): Add comment.
20464
20465 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20466
20467 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20468
20469 2008-05-09 Doug Evans <dje@google.com>
20470
20471 * server.h (decode_search_memory_packet): Declare.
20472 * remote-utils.c (decode_search_memory_packet): New fn.
20473 * server.c (handle_search_memory_1): New fn.
20474 (handle_search_memory): New fn.
20475 (handle_query): Process qSearch:memory packets.
20476
20477 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20478
20479 * regcache.c (registers_length): Remove.
20480 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20481 full register packet.
20482 * regcache.h (registers_length): Remove prototype.
20483 * server.h (PBUFSIZ): Define to 16384.
20484
20485 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20486
20487 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20488 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20489 powerpc-64l.o, and powerpc-altivec64l.o.
20490 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20491 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20492 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20493 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20494 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20495 to srv_xmlfiles.
20496
20497 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20498 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20499 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20500 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20501 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20502 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20503 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20504 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20505 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20506 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20507 (clean): Update.
20508
20509 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20510 (init_registers_powerpc_32l): ... this new prototype.
20511 (init_registers_powerpc_32): Remove, replace by ...
20512 (init_registers_powerpc_altivec32l): ... this new prototype.
20513 (init_registers_powerpc_e500): Remove, replace by ...
20514 (init_registers_powerpc_e500l): ... this new prototype.
20515 (init_registers_ppc64): Remove, replace by ...
20516 (init_registers_powerpc_64l): ... this new prototype.
20517 (init_registers_powerpc_64): Remove, replace by ...
20518 (init_registers_powerpc_altivec64l): ... this new prototype.
20519 (ppc_num_regs): Set to 73.
20520 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20521 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20522 (ppc_cannot_store_register): Handle orig_r3 and trap.
20523 (ppc_arch_setup): Update init_registers_... calls.
20524 (ppc_fill_gregset): Handle orig_r3 and trap.
20525
20526 * inferiors.c (clear_inferiors): Reset current_inferior.
20527
20528 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20529
20530 * acinclude.m4: Add override.m4.
20531 * configure: Regenerate.
20532
20533 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20534
20535 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20536 initial call to init_register_ppc64.
20537
20538 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20539
20540 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20541 single powerpc*-*-linux* case.
20542 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20543
20544 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20545
20546 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20547 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20548 from reg_xmlfiles.
20549 * linux-ppc-low.c: Include <elf.h>.
20550 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20551 (ppc_hwcap): New global variable.
20552 (ppc_regmap): Remove __SPE__ #ifdef sections.
20553 (ppc_regmap_e500): New global variable.
20554 (ppc_cannot_store_register): Update __SPE__ special case.
20555 (ppc_get_hwcap): New function.
20556 (ppc_arch_setup): Use it to determine whether inferior supports
20557 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20558 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20559 Do not access registers if target does not support AltiVec.
20560 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20561 Do not access registers if target does not support SPE.
20562 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20563
20564 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20565
20566 * linux-low.c (disabled_regsets, num_regsets): New.
20567 (use_regsets_p): Delete.
20568 (linux_wait_for_process): Clear disabled_regsets.
20569 (regsets_fetch_inferior_registers): Check and set it.
20570 (regsets_store_inferior_registers): Likewise.
20571 (linux_fetch_registers, linux_store_registers): Do not use
20572 use_regsets_p.
20573 (initialize_low): Allocate disabled_regsets.
20574
20575 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20576
20577 * Makefile.in (LIBOBJS): New.
20578 (OBS): Use LIBOBJS.
20579 (memmem.o): New rule.
20580 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20581 * configure: Regenerated.
20582
20583 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20584
20585 * server.c (handle_query): Never return "unsupported" for
20586 qXfer:features:read queries.
20587
20588 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20589
20590 * server.c (get_features_xml): Fix inverted condition.
20591 (handle_query): Always support qXfer:feature:read.
20592
20593 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20594
20595 * server.c (wrapper_argv): New.
20596 (start_inferior): Handle wrapper_argv. If set, expect an extra
20597 trap.
20598 (gdbserver_usage): Document --wrapper.
20599 (main): Parse --wrapper.
20600
20601 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20602
20603 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20604 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20605 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20606 (ppc_set_pc): Likewise.
20607 (ppc_arch_setup): New function.
20608 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20609 of collect_register.
20610 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20611
20612 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20613
20614 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20615 instead of linux-ppc64-low.o.
20616 * linux-ppc64-low.c: Remove file.
20617 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20618 (linux-ppc64-low.o): Remove rule.
20619
20620 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20621 (init_registers_powerpc_64): Likewise.
20622 (ppc_regmap): Conditionally define depending on __powerpc64__.
20623 (ppc_cannot_store_register): Do not special-case "fpscr" when
20624 compiled on __powerpc64__.
20625 (ppc_collect_ptrace_register): New function.
20626 (ppc_supply_ptrace_register): New function.
20627 (ppc_breakpoint): Change type to "unsigned int".
20628 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20629 (the_low_target): Conditionally provide initializers for the
20630 arch_setup member depending on __powerpc64__. Install
20631 collect_ptrace_register and supply_ptrace_register members.
20632
20633 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20634
20635 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20636 * server.c (gdbserver_xmltarget): Define.
20637 (get_features_xml): Use it to replace "target.xml" and arch_string.
20638
20639 * configure.srv: Remove srv_xmltarget. Add XML files that were
20640 mentioned there to srv_xmlfiles instead. Remove conditional tests
20641 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20642 srv_xmlfiles and srv_regobj to include all possible choices.
20643 * configure.ac (srv_xmltarget): Remove.
20644 (srv_xmlfiles): Do not add "target.xml".
20645 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20646 checks for supplementary target information.
20647 * configure: Regenerate.
20648 * Makefile.in (XML_TARGET): Remove.
20649 (target.xml): Remove rule.
20650 (clean): Do not clean up target.xml.
20651 (.PRECIOUS): Do not mention target.xml.
20652
20653 * target.h (struct target_ops): Remove arch_string member.
20654 * linux-low.c (linux_arch_string): Remove.
20655 (linux_target_ops): Remove arch_string initializer.
20656 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20657 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20658 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20659 * spu-low.c (spu_arch_string): Remove.
20660 (spu_target_ops): Remove arch_string initializer.
20661 * win32-low.c (win32_arch_string): Remove.
20662 (win32_target_ops): Remove arch_string initializer.
20663 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20664 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20665 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20666
20667 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20668
20669 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20670 by collect_ptrace_register and supply_ptrace_register hooks.
20671 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20672 instead of checking for the_low_target.left_pad_xfer.
20673 (usr_store_inferior_registers): Use collect_ptrace_register callback
20674 instead of checking for the_low_target.left_pad_xfer.
20675
20676 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20677 (s390_supply_ptrace_register): Likewise.
20678 (s390_fill_gregset): Call s390_collect_ptrace_register.
20679 (the_low_target): Update.
20680
20681 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20682 (ppc_supply_ptrace_register): Likewise.
20683 (the_low_target): Update.
20684
20685 * linux-i386-low.c (the_low_target): Update.
20686 * linux-x86-64-low.c (the_low_target): Update.
20687
20688 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20689
20690 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20691 reg-s390.o and reg-s390x.o.
20692
20693 * linux-low.c (new_inferior): New global variable.
20694 (linux_create_inferior, linux_attach): Set it.
20695 (linux_wait_for_process): Call the_low_target.arch_setup after the
20696 target has stopped for the first time.
20697 (initialize_low): Do not call the_low_target.arch_setup.
20698
20699 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20700 (s390_set_pc): Likewise.
20701 (s390_arch_setup): New function.
20702 (the_low_target): Use s390_arch_setup as arch_setup routine.
20703
20704 * regcache.c (realloc_register_cache): New function.
20705 (set_register_cache): Call it for each existing regcache.
20706
20707 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20708
20709 * server.h (init_registers): Remove prototype.
20710
20711 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20712 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20713 instead of init_registers ().
20714 * linux-arm-low.c (init_registers_arm): Add prototype.
20715 (init_registers_arm_with_iwmmxt): Likewise.
20716 (the_low_target): Add initializer for arch_setup field.
20717 * linux-cris-low.c (init_registers_cris): Add prototype.
20718 (the_low_target): Add initializer for arch_setup field.
20719 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20720 (the_low_target): Add initializer for arch_setup field.
20721 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20722 (the_low_target): Add initializer for arch_setup field.
20723 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20724 (the_low_target): Add initializer for arch_setup field.
20725 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20726 (the_low_target): Add initializer for arch_setup field.
20727 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20728 (the_low_target): Add initializer for arch_setup field.
20729 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20730 (init_registers_mips64_linux): Likewise.
20731 (the_low_target): Add initializer for arch_setup field.
20732 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20733 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20734 (the_low_target): Add initializer for arch_setup field.
20735 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20736 (init_registers_powerpc_64): Likewise.
20737 (the_low_target): Add initializer for arch_setup field.
20738 * linux-s390-low.c (init_registers_s390): Add prototype.
20739 (init_registers_s390x): Likewise.
20740 (the_low_target): Add initializer for arch_setup field.
20741 * linux-sh-low.c (init_registers_sh): Add prototype.
20742 (the_low_target): Add initializer for arch_setup field.
20743 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20744 (the_low_target): Add initializer for arch_setup field.
20745 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20746 (the_low_target): Add initializer for arch_setup field.
20747
20748 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20749 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20750 instead of init_registers ().
20751 * win32-arm-low.c (init_registers_arm): Add prototype.
20752 (the_low_target): Add initializer for arch_setup field.
20753 * win32-i386-low.c (init_registers_i386): Add prototype.
20754 (the_low_target): Add initializer for arch_setup field.
20755
20756 * spu-low.c (init_registers_spu): Add prototype.
20757 (initialize_low): Call initialie_registers_spu () instead of
20758 initialize_registers ().
20759
20760 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20761
20762 * server.c (handle_v_requests): When handling the vRun and vAttach
20763 packets, if already debugging a process, don't kill it. Return an
20764 error instead.
20765
20766 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20767
20768 * server.c (handle_query): Correct length check.
20769
20770 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20771
20772 * win32-low.c (do_initial_child_stuff): Add process handle
20773 parameter. Set current_process_handle and current_process_id from the
20774 parameters. Clear globals.
20775 (win32_create_inferior): Don't set current_process_handle and
20776 current_process_id here. Instead pass them on the call to
20777 do_initial_child_stuff.
20778 (win32_attach): Likewise.
20779 (win32_clear_inferiors): New.
20780 (win32_kill): Don't close the current process handle or the
20781 current thread handle here. Instead call win32_clear_inferiors.
20782 (win32_detach): Don't open a new handle to the process. Call
20783 win32_clear_inferiors.
20784 (win32_join): Don't rely on current_process_handle; open a new
20785 handle using the process id.
20786 (win32_wait): Call win32_clear_inferiors when the inferior process
20787 has exited.
20788
20789 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20790
20791 * server.c (monitor_show_help): Add "exit".
20792
20793 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20794
20795 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20796 (clean): Add reg-xtensa.c.
20797 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20798 * configure.srv (xtensa*-*-linux*) New target.
20799 * linux-xtensa-low.c: New.
20800 * xtensa-xtregs.c: New.
20801
20802 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20803
20804 * hostio.c: Don't include errno.h.
20805 (errno_to_fileio_errno): Move to hostio-errno.
20806 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20807 error number outputting to the target->hostio_last_error callback.
20808 (hostio_packet_error): Use FILEIO_EINVAL directly.
20809 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20810 calls to hostio_error.
20811 * hostio-errno.c: New.
20812 * server.h (hostio_last_error_from_errno): Declare.
20813 * target.h (target_ops): Add hostio_last_error member.
20814 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20815 as hostio_last_error handler.
20816 * spu-low.c (spu_target_ops): Likewise.
20817 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20818 (wince_hostio_last_error): New functions.
20819 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20820 as hostio_last_error handler.
20821 (win32_target_ops) [!_WIN32_WCE]: Register
20822 hostio_last_error_from_errno as hostio_last_error handler.
20823 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20824 (hostio-errno.o): New rule.
20825 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20826 * configure.srv (srv_hostio_err_objs): New variable. Default to
20827 hostio-errno.o.
20828 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20829 * configure: Regenerate.
20830
20831 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20832
20833 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20834 (linux_kill, linux_detach): Clean up the process list.
20835 * remote-utils.c (remote_open): Improve port number parsing.
20836 (putpkt_binary, input_interrupt): Only send interrupts if the target
20837 is running.
20838 * server.c (extended_protocol): Make static.
20839 (attached): Define earlier.
20840 (exit_requested, response_needed, program_argv): New variables.
20841 (target_running): New.
20842 (start_inferior): Clear attached here.
20843 (attach_inferior): Set attached here.
20844 (require_running): Define.
20845 (handle_query): Use require_running and target_running. Implement
20846 "monitor exit".
20847 (handle_v_attach, handle_v_run): New.
20848 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20849 (gdbserver_usage): Update.
20850 (main): Redo argument parsing. Handle --debug and --multi. Handle
20851 --attach along with other options or after the port. Save
20852 program_argv. Support no initial program. Resynchronize
20853 communication with GDB after an error. Handle "monitor exit".
20854 Use require_running and target_running. Always allow the extended
20855 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20856 restart in extended mode.
20857 * README: Refer to the GDB manual. Update --attach usage.
20858
20859 2007-12-20 Andreas Schwab <schwab@suse.de>
20860
20861 * linux-low.c (STACK_SIZE): Define.
20862 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20863 (linux_test_for_tracefork): Likewise.
20864
20865 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20866
20867 * linux-low.c (linux_wait_for_event): Update messages. Do not
20868 reinsert auto-delete breakpoints.
20869 * mem-break.c (struct breakpoint): Change return type of handler to
20870 int.
20871 (set_breakpoint_at): Update handler type.
20872 (reinsert_breakpoint_handler): Return 1 instead of calling
20873 delete_breakpoint.
20874 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20875 setting a new one.
20876 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20877 * mem-break.h (set_breakpoint_at): Update handler type.
20878 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20879 * win32-low.c (auto_delete_breakpoint): New.
20880 (get_child_debug_event): Use it.
20881
20882 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20883
20884 * configure.ac: Check for pread and pwrite.
20885 * hostio.c (handle_pread): Fall back to lseek and read.
20886 (handle_pwrite): Fall back to lseek and write.
20887 * config.in, configure: Regenerated.
20888
20889 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20890
20891 * server.c (myresume): Add own_buf argument.
20892 (main): Update calls.
20893
20894 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20895
20896 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20897 * remote-utils.c (remote_open): Do not call disable_async_io.
20898 (block_async_io): Delete.
20899 (unblock_async_io): Make static.
20900 (initialize_async_io): New.
20901 * server.c (handle_v_cont): Handle async I/O here.
20902 (myresume): Likewise. Move other common resume tasks here...
20903 (main): ... from here. Call initialize_async_io. Disable async
20904 I/O before the main loop.
20905 * server.h (initialize_async_io): Declare.
20906 (block_async_io, unblock_async_io): Delete prototypes.
20907 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20908
20909 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20910
20911 * remote-utils.c (readchar): Allow binary data in received messages.
20912
20913 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20914
20915 * win32-low.c (attaching): New global.
20916 (win32_create_inferior): Clear the `attaching' global.
20917 (win32_attach): Set the `attaching' global.
20918 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20919 attaching. Only set a breakpoint at the entry point if not
20920 attaching.
20921
20922 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20923
20924 * server.c (main): Don't report dll events on the initial
20925 connection on attaches.
20926
20927 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20928
20929 * server.c (main): Relax numerical bases supported for the pid of
20930 the --attach command line argument.
20931
20932 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20933
20934 * win32-low.c (win32_attach): Call OpenProcess before
20935 DebugActiveProcess, not after. Add last error output to error
20936 call.
20937
20938 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20939
20940 * win32-low.c (win32_get_thread_context)
20941 (win32_set_thread_context): New functions.
20942 (thread_rec): Use win32_get_thread_context.
20943 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20944 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20945 field.
20946
20947 2007-12-03 Leo Zayas
20948 Pedro Alves <pedro_alves@portugalmail.pt>
20949
20950 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20951 global variables.
20952 (child_add_thread): Minor cleanup.
20953 (child_continue): Resume artificially suspended threads before
20954 calling ContinueDebugEvent.
20955 (suspend_one_thread): New.
20956 (fake_breakpoint_event): New.
20957 (get_child_debug_event): Change return type to int. Check here if
20958 gdb sent an interrupt request. If a soft interrupt was requested,
20959 fake a breakpoint event. Return 0 if there is no event to handle,
20960 and 1 otherwise.
20961 (win32_wait): Don't check here if gdb sent an interrupt request.
20962 Ensure there is a valid event to handle.
20963 (win32_request_interrupt): Add soft interruption method as last
20964 resort.
20965
20966 2007-12-03 Leo Zayas
20967 Pedro Alves <pedro_alves@portugalmail.pt>
20968
20969 * win32-low.h (win32_thread_info): Add descriptions to the
20970 structure members. Replace `suspend_count' counter by a
20971 `suspended' flag.
20972 * win32-low.c (thread_rec): Update condition of when to get the
20973 context from the inferior. Rely on ContextFlags being set if it
20974 has already been retrieved. Only suspend the inferior thread if
20975 we haven't already. Warn if that fails.
20976 (continue_one_thread): s/suspend_count/suspended/. Only call
20977 ResumeThread once. Warn if that fails.
20978
20979 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20980
20981 * win32-low.c (win32_wait): Don't read from the inferior when it
20982 has already exited.
20983
20984 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20985
20986 * Makefile.in (win32_low_h): New variable.
20987 (win32-low.o): Add dependency on $(win32_low_h).
20988 (win32-arm-low.o, win32-i386-low.o): New rules.
20989
20990 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20991
20992 * hostio.c: Correct copyright year.
20993
20994 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20995
20996 * Makefile.in (OBS): Add hostio.o.
20997 (hostio.o): New rule.
20998 * server.h (handle_vFile): Declare.
20999 * hostio.c: New file.
21000 * server.c (handle_v_requests): Take packet_len and new_packet_len
21001 for binary packets. Call handle_vFile.
21002 (main): Update call to handle_v_requests.
21003
21004 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21005
21006 * linux-low.c: Include <sched.h>.
21007
21008 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21009
21010 * linux-low.c (linux_tracefork_grandchild): New.
21011 (linux_tracefork_child): Use clone.
21012 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21013
21014 2007-10-31 Joel Brobecker <brobecker@adacore.com>
21015
21016 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21017
21018 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21019
21020 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21021
21022 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21023
21024 * inferiors.c (change_inferior_id): Delete.
21025 (add_pid_to_list, pull_pid_from_list): New.
21026 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21027 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21028 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21029 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21030 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21031 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21032 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21033 (using_threads): Always set to 1.
21034 (handle_extended_wait): New.
21035 (add_process): Do not set TID.
21036 (linux_create_inferior): Set must_set_ptrace_flags.
21037 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21038 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21039 (linux_thread_alive): Rename TID argument to LWPID.
21040 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21041 (linux_wait_for_event): Do not use TID or check using_threads. Update
21042 call to dead_thread_notify. Call handle_extended_wait.
21043 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21044 (send_sigstop): Delete sigstop_sent.
21045 (wait_for_sigstop): Avoid TID.
21046 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21047 (linux_test_for_tracefork): New.
21048 (linux_lookup_signals): Use thread_db_active and
21049 linux_supports_tracefork_flag.
21050 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21051 * linux-low.h (get_process_thread): Avoid TID.
21052 (struct process_ifo): Move thread_known and tid to the end. Remove
21053 sigstop_sent.
21054 (linux_attach_lwp, thread_db_init): Update prototypes.
21055 * server.h (change_inferior_id): Delete prototype.
21056 (add_pid_to_list, pull_pid_from_list): New prototypes.
21057 * thread-db.c (thread_db_use_events): New.
21058 (find_first_thread): Rename to...
21059 (find_one_thread): ...this. Update callers and messages. Do not
21060 call fatal. Check thread_db_use_events. Do not call
21061 change_inferior_id or new_thread_notify.
21062 (maybe_attach_thread): Update. Do not call new_thread_notify.
21063 (thread_db_init): Set thread_db_use_events. Check use_events.
21064 * utils.c (fatal, warning): Correct message prefix.
21065
21066 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21067
21068 * Makefile.in (clean): Remove new files.
21069 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21070 (powerpc-64.o, powerpc-64.c): New rules.
21071 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21072 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21073 with SPE.
21074 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21075 SPE targets.
21076 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21077 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21078 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21079 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21080 (target_regsets): Add AltiVec and SPE register sets.
21081 * configure.ac: Check for AltiVec and SPE.
21082 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21083 (ppc_fill_vrregset, ppc_store_vrregset): New.
21084 (target_regsets): Add AltiVec register set.
21085 * configure: Regenerated.
21086
21087 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21088
21089 * linux-low.c (O_LARGEFILE): Define.
21090 (linux_read_memory): Use /proc/PID/mem.
21091 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21092 * configure, config.in: Regenerated.
21093
21094 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21095
21096 * linux-low.c (linux_wait_for_event): Do not pass signals while
21097 single-stepping.
21098
21099 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21100
21101 * win32-low.c (create_process): New.
21102 (win32_create_inferior): Use create_process instead of
21103 CreateProcess. If create_process failed retry appending an ".exe"
21104 suffix. Store the GetLastError result immediatelly after
21105 create_process calls and use it on the call to error.
21106
21107 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21108
21109 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21110
21111 2007-08-23 Joel Brobecker <brobecker@adacore.com>
21112
21113 * configure.ac: Switch license to GPLv3.
21114
21115 2007-08-01 Michael Snyder <msnyder@access-company.com>
21116
21117 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21118
21119 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21120
21121 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21122 typedef.
21123 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21124 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21125 CloseToolhelp32Snapshot.
21126 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21127 CloseToolhelp32Snapshot.
21128
21129 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
21130
21131 * server.c (main): Check for inferior exit before main loop.
21132
21133 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21134
21135 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21136 instead of on tmp_desc.
21137
21138 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21139 Daniel Jacobowitz <dan@codesourcery.com>
21140
21141 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21142 (add_thread): Minor cleanups.
21143 (clear_inferiors): Move lower in the file. Clear the DLL
21144 list.
21145 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21146 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21147 (xml_escape_text): New.
21148 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21149 for qSupported.
21150 (handle_v_cont): Report errors.
21151 (gdbserver_version): Update.
21152 (main): Correct size of own_buf. Do not report initial DLL events.
21153 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21154 (unloaded_dll, xml_escape_text): New.
21155 * win32-low.c (enum target_waitkind): Update comments.
21156 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21157 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21158 (win32_EnumProcessModules, win32_GetModuleInformation)
21159 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21160 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21161 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21162 (win32_Module32First, win32_Module32Next, load_toolhelp)
21163 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21164 (get_child_debug_event): Handle DLL events.
21165 (win32_wait): Likewise.
21166
21167 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21168
21169 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21170 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21171
21172 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21173
21174 * win32-low.c (handle_output_debug_string): Ignore event if not
21175 waiting.
21176
21177 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21178
21179 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21180
21181 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21182
21183 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21184
21185 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21186
21187 * inferiors.c (change_inferior_id): Add comment.
21188 * linux-low.c (check_removed_breakpoint): Add an early
21189 prototype. Improve debug output.
21190 (linux_attach): Doc update.
21191 (linux_detach_one_process, linux_detach): Clean up before releasing
21192 each process.
21193 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21194 * linux-low.h (struct process_info): Doc improvement.
21195 * mem-break.c (delete_all_breakpoints): New.
21196 * mem-break.h (delete_all_breakpoints): New prototype.
21197 * thread-db.c (find_first_thread): New.
21198 (thread_db_create_event): Call it instead of
21199 thread_db_find_new_threads. Clean up unused variables.
21200 (maybe_attach_thread): Remove first thread handling.
21201 (thread_db_find_new_threads): Use find_first_thread.
21202 (thread_db_get_tls_address): Likewise.
21203
21204 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21205
21206 * thread-db.c (thread_db_find_new_threads): Add prototype.
21207 (thread_db_create_event): Check for the main thread before adding
21208 a new thread.
21209 (maybe_attach_thread): Only enable event reporting if TID == 0.
21210 (thread_db_get_tls_address): Check for new threads.
21211
21212 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21213
21214 * linux-low.c (linux_create_inferior): Try execv before execvp.
21215 * spu-low.c (spu_create_inferior): Likewise.
21216
21217 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21218
21219 * linux-low.c (linux_create_inferior): Change execv to execvp.
21220 * spu-low.c (spu_create_inferior): Likewies.
21221
21222 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21223
21224 * Makefile.in (clean): Clean new files instead of deleted ones.
21225 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21226 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21227 rules.
21228 * configure.srv: Specify XML files and new regformats for MIPS and
21229 MIPS64 GNU/Linux.
21230 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21231 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21232 an entry for the restart register.
21233 (mips_cannot_fetch_register, mips_cannot_store_register)
21234 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21235 register names to match the XML descriptions.
21236 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21237 restart register instead of $0.
21238
21239 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21240 Markus Deuling <deuling@de.ibm.com>
21241
21242 * remote-utils.c (decode_xfer_write): New function.
21243 * server.h (decode_xfer_write): Add prototype.
21244 * server.c (handle_query): Add PACKET_LEN argument. Support
21245 qXfer:spu:read and qXfer:spu:write packets.
21246 (main): Pass packet_len to handle_query.
21247 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21248 * target.h (target_ops): Add qxfer_spu.
21249
21250 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21251
21252 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21253 accessing non-seekable spufs files.
21254
21255 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21256
21257 * server.c (handle_query): Add reply for qC packet.
21258
21259 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21260 Leo Zayas <lerele@champenstudios@com>
21261
21262 * server.h (check_remote_input_interrupt_request): New function.
21263 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21264 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21265 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21266 (check_remote_input_interrupt_request): New function.
21267 * server.h (check_remote_input_interrupt_request): Declare.
21268 * win32-low.c (winapi_DebugBreakProcess,
21269 winapi_GenerateConsoleCtrlEvent): New typedefs.
21270 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21271 to 250 ms.
21272 (win32_wait): Check for remote interrupt request
21273 with check_remote_input_interrupt_request.
21274 (win32_request_interrupt): New function.
21275 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21276
21277 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21278
21279 * win32-low.c (debug_registers_changed,
21280 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21281 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21282 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21283 (thread_rec): Get context using the low target.
21284 (child_add_thread): Call thread_added on the low target,
21285 which does the same thing.
21286 (regptr): Delete.
21287 (do_initial_child_stuff): Remove debug registers references.
21288 Set context using the low target. Resume threads after
21289 setting the contexts.
21290 (child_continue): Remove dead variable. Remove debug
21291 registers references.
21292 (child_fetch_inferior_registers): Go through the low target.
21293 (do_child_store_inferior_registers): Remove.
21294 (child_store_inferior_registers): Go through the low target.
21295 (win32_resume): Remove debug registers references.
21296 Set context using the low target.
21297 (handle_exception): Change return type to void. Don't record
21298 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21299 first chance exception.
21300 (get_child_debug_event): Change return type to void. Remove
21301 goto loop. Always return after waiting for debug event.
21302 (win32_wait): Convert to switch statement. Handle spurious
21303 events.
21304
21305 * win32-i386-low.c (debug_registers_changed,
21306 debug_registers_used): New.
21307 (initial_stuff): Rename to ...
21308 (i386_initial_stuff): ... this. Clear debug registers
21309 state variables.
21310 (store_debug_registers): Delete.
21311 (i386_get_thread_context): New.
21312 (load_debug_registers): Delete.
21313 (i386_set_thread_context): New.
21314 (i386_thread_added): New.
21315 (single_step): Rename to ...
21316 (i386_single_step): ... this.
21317 (do_fetch_inferior_registers): Rename to ...
21318 (i386_fetch_inferior_register): ... this.
21319 (i386_store_inferior_register): New.
21320 (the_low_target): Adapt to new interface.
21321
21322 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21323 (arm_get_thread_context): New.
21324 (arm_set_thread_context): New.
21325 (regptr): New.
21326 (do_fetch_inferior_registers): Rename to ...
21327 (arm_fetch_inferior_register): ... this.
21328 (arm_store_inferior_register): New.
21329 (arm_wince_breakpoint): Reimplement as unsigned long.
21330 (arm_wince_breakpoint_len): Define.
21331 (the_low_target): Adapt to new interface.
21332
21333 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21334 load_debug_registers. Add get_thread_context, set_thread_context,
21335 thread_added and store_inferior_register. Rename
21336 fetch_inferior_registers to fetch_inferior_register.
21337 (regptr): Remove declaration.
21338
21339 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21340
21341 * linux-low.c (linux_detach): Change return type to int. Return 0.
21342 * spu-low.c (spu_detach): Likewise.
21343
21344 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21345
21346 * target.h (target_ops): Change return type of detach to int.
21347 Add join.
21348 (join_inferior): New.
21349 * server.c (main): Don't skip detach support on mingw32.
21350 If the inferior doesn't support detaching return error.
21351 Call join_inferior instead of using waitpid.
21352 * linux-low.c (linux_join): New.
21353 (linux_target_op): Add linux_join.
21354 * spu-low.c (spu_join): New.
21355 (spu_target_ops): Add spu_join.
21356 * win32-low.c (win32_detach): Adapt to new interface.
21357 Reopen current_process_handle before detaching. Issue a child
21358 resume before detaching.
21359 (win32_join): New.
21360 (win32_target_op): Add win32_join.
21361
21362 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21363
21364 * win32-low.c (win32-attach): Fix return value.
21365 * target.h (target_ops): Describe ATTACH return values.
21366
21367 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21368
21369 * win32-low.c (GETPROCADDRESS): Define.
21370 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21371 (winapi_DebugSetProcessKillOnExit): Likewise.
21372 (win32_create_inferior): Force usage of ansi CreateProcessA.
21373 (win32_attach): Use GETPROCADDRESS.
21374 (win32_detach): Likewise.
21375
21376 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21377
21378 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21379
21380 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21381
21382 * win32-low.c: Commit leftover changes from 2007-03-29.
21383
21384 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21385
21386 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21387 fields short instead of int. Add explicit padding.
21388 (i387_cache_to_fsave): Remove unnecessary casts.
21389 (i387_fsave_to_cache): Doc fix.
21390 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21391
21392 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21393
21394 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21395 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21396
21397 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21398
21399 * configure.srv (arm*-*-mingw32ce*): Move near the other
21400 arm targets.
21401
21402 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21403
21404 * configure.ac: Add errno checking.
21405 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21406 sys/file.h and malloc.h.
21407 (AC_CHECK_DECLS): Add perror.
21408 (srv_mingwce): Handle.
21409 * configure.srv (i[34567]86-*-cygwin*): Add
21410 win32-i386-low.o to srv_tgtobj.
21411 (i[34567]86-*-mingw*): Likewise.
21412 (arm*-*-mingw32ce*): Add case.
21413 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21414 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21415 [__MINGW32CE__] (strerror): New function.
21416 [__MINGW32CE__] (errno): Define to GetLastError.
21417 [__MINGW32CE__] (COUNTOF): New macro.
21418 (remote_open): Remove extra close call.
21419 * mem-break.c (delete_breakpoint_at): New function.
21420 * mem-break.h (delete_breakpoint_at): Declare.
21421 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21422 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21423 [USE_WIN32API] (read, write): Add char* casts.
21424 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21425 * server.h: Include wincecompat.h on Windows CE.
21426 [HAVE_ERRNO_H]: Check.
21427 (perror): Declare if not declared.
21428 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21429 (perror_with_name): Remove errno declaration.
21430 * wincecompat.h: New.
21431 * wincecompat.c: New.
21432 * win32-low.h: New.
21433 * win32-arm-low.c: New.
21434 * win32-i386-low.c: New.
21435 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21436 (OUTMSG2): Make it safe.
21437 (_T): New macro.
21438 (COUNTOF): New macro.
21439 (NUM_REGS): Get it from the low target.
21440 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21441 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21442 (thread_rec): Let low target handle debug registers.
21443 (child_add_thread): Likewise.
21444 (child_init_thread_list): Likewise.
21445 (continue_one_thread): Likewise.
21446 (regptr): New.
21447 (do_child_fetch_inferior_registers): Move to ...
21448 * win32-i386-low.c: ... here, and rename to ...
21449 (do_fetch_inferior_registers): ... this.
21450 * win32-low.c (child_fetch_inferior_registers):
21451 Go through the low target.
21452 (do_child_store_inferior_registers): Use regptr.
21453 (strwinerror): New function.
21454 (win32_create_inferior): Handle Windows CE.
21455 Use strwinerror instead of strerror on Windows error
21456 codes. Add program to the error output.
21457 Don't close the main thread handle on Windows CE.
21458 (win32_attach): Use coredll.dll on Windows CE.
21459 (win32_kill): Close current process and current
21460 thread handles.
21461 (win32_detach): Use coredll.dll on Windows CE.
21462 (win32_resume): Let low target handle debug registers, and
21463 step request.
21464 (handle_exception): Add/Remove initial breakpoint. Avoid
21465 non-existant WSTOPSIG on Windows CE.
21466 (win32_read_inferior_memory): Cast to remove warning.
21467 (win32_arch_string): Go through the low target.
21468 (initialize_low): Call set_breakpoint_data with the low
21469 target's breakpoint.
21470 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21471 FOP_REGNUM, mappings): Move to ...
21472 * win32-i386-low.c: ... here.
21473 * win32-low.c (win32_thread_info): Move to ...
21474 * win32-low.h: ... here.
21475 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21476 win32-arm-low.c and wincecompat.c.
21477 (all:): Add $EXEEXT.
21478 (install-only:): Likewise.
21479 (gdbserver:): Likewise.
21480 (gdbreplay:): Likewise.
21481 * config.in: Regenerate.
21482 * configure: Regenerate.
21483
21484 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21485
21486 * win32-low.c: Rename typedef thread_info to
21487 win32_thread_info throughout.
21488
21489 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21490
21491 * win32-i386-low.c: Rename to ...
21492 * win32-low.c: ... this.
21493 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21494 * Makefile.in: Likewise.
21495
21496 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21497
21498 * remote-utils.c (monitor_output): Constify msg parameter.
21499 * server.h (monitor_output): Likewise.
21500 * win32-i386-low.c (handle_output_debug_string): New.
21501 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21502 handle_output_debug_string.
21503 (get_child_debug_event): Likewise.
21504
21505 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21506
21507 * server.c (main): Correct strtoul check.
21508
21509 2007-03-27 Jon Ringle <jon@ringle.org>
21510
21511 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21512
21513 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21514
21515 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21516
21517 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21518
21519 * terminal.h: Check HAVE_SGTTY_H.
21520
21521 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21522
21523 * remote-utils.c (remote_open): Print out the assigned port number.
21524
21525 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21526
21527 * remote-utils.c (monitor_output): New function.
21528 * server.c (debug_threads): Define here.
21529 (monitor_show_help): New function.
21530 (handle_query): Handle qRcmd.
21531 (main): Do not handle 'd' packet.
21532 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21533 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21534 of debug_threads.
21535
21536 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21537
21538 * Makefile.in (EXEEXT): New.
21539 (clean): Use $(EXEEXT).
21540
21541 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21542
21543 * target.h (target_ops): Rename send_signal to request_interrupt,
21544 and remove enum target_signal parameter.
21545 * linux-low.c (linux_request_interrupt): Rename from
21546 linux_send_signal, and always send SIGINT.
21547 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21548 and always send SIGINT.
21549 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21550 of send_signal.
21551 (input_interrupt): Likewise.
21552
21553 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21554
21555 * server.c (get_features_xml): Check if target implemented
21556 arch_string.
21557 * win32-i386-low.c (win32_arch_string): New.
21558 (win32_target_ops): Add win32_arch_string as arch_string member.
21559
21560 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21561
21562 * spu-low.c (spu_arch_string): New.
21563 (spu_target_ops): Add spu_arch_string.
21564
21565 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21566
21567 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21568 * configure.ac: Do not check for terminal.h.
21569 * configure, config.in: Regenerated.
21570
21571 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21572
21573 * Makefile.in (OBS): Add $(XML_BUILTIN).
21574 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21575 (clean): Update.
21576 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21577 (arm-with-iwmmxt.c): New.
21578 * config.in, configure: Regenerate.
21579 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21580 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21581 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21582 (arm*-*-linux*): Add iWMMXt and regset support.
21583 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21584 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21585 (arm_store_wmmxregset, target_regsets): New.
21586 * server.c (get_features_xml): Take annex argument. Check builtin
21587 XML documents.
21588 (handle_query): Handle multiple annexes.
21589
21590 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21591
21592 * remote-utils.c [USE_WIN32API] (read, write): Define.
21593 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21594 write.
21595
21596 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21597
21598 * linux-i386-low.c (the_low_target): Set arch_string.
21599 * linux-x86-64-low.c (the_low_target): Likewise.
21600 * linux-low.c (linux_arch_string): New.
21601 (linux_target_ops): Add it.
21602 * linux-low.h (struct linux_target_ops): Add arch_string.
21603 * server.c (write_qxfer_response): Use const void * for DATA.
21604 (get_features_xml): New.
21605 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21606 * target.h (struct target_ops): Add arch_string method.
21607
21608 2007-01-03 Denis Pilat <denis.pilat@st.com>
21609 Daniel Jacobowitz <dan@codesourcery.com>
21610
21611 * linux-low.c (linux_kill): Handle being called with no threads.
21612 * win32-i386-low.c (win32_kill): Likewise.
21613 (get_child_debug_event): Clear current_process_handle.
21614
21615 2006-12-30 Denis PILAT <denis.pilat@st.com>
21616 Daniel Jacobowitz <dan@codesourcery.com>
21617
21618 * remote-utils.c (remote_open): Check the type of specified
21619 serial port devices before opening them.
21620 * server.c (main): Kill the inferior if an error occurs during
21621 the first remote_open.
21622
21623 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21624
21625 * README: Update supported targets.
21626
21627 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21628
21629 * Makefile.in (clean): Remove reg-mips64.c.
21630 (reg-mips64.c, reg-mips64.o): New rules.
21631 * configure.srv: Handle mips64. Include regset support for mips.
21632 * linux-mips-low.c (union mips_register): New.
21633 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21634 (mips_breakpoint, mips_breakpoint_at): Use int.
21635 (mips_collect_register, mips_supply_register)
21636 (mips_collect_register_32bit, mips_supply_register_32bit)
21637 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21638 (mips_store_fpregset, target_regsets): New.
21639 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21640
21641 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21642
21643 * configure.srv: Add target "spu*-*-*".
21644 * Makefile.in (clean): Remove reg-spu.c.
21645 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21646 * spu-low.c: New file.
21647
21648 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21649
21650 * configure.ac: Correct td_thr_tls_get_addr test.
21651 * configure: Regenerated.
21652
21653 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21654
21655 * linux-low.c (linux_wait_for_event): Reformat. Use the
21656 pass_signals array.
21657 * remote-utils.c (decode_address_to_semicolon): New.
21658 * server.c (pass_signals, handle_general_set): New.
21659 (handle_query): Mention QPassSignals for qSupported.
21660 (main): Call handle_general_set.
21661 * server.h (pass_signals, decode_address_to_semicolon): New.
21662
21663 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21664
21665 * server.c (handle_query): Correct error handling for read_auxv.
21666
21667 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21668
21669 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21670 and srv_linux_thread_db to yes.
21671 * linux-s390-low.c (s390_fill_gregset): New function.
21672 (target_regsets): Define data structure.
21673
21674 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21675
21676 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21677 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21678 * config.in, configure: Regenerated.
21679 * inferiors.c (gdb_id_to_thread): New function.
21680 (gdb_id_to_thread_id): Use it.
21681 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21682 * linux-low.h (struct process_info): Add th member.
21683 (thread_db_get_tls_address): New prototype.
21684 * remote-utils.c (decode_address): Make non-static.
21685 * server.c (handle_query): Handle qGetTLSAddr.
21686 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21687 * target.h (struct target_ops): Add get_tls_address.
21688 * thread-db.c (maybe_attach_thread): Save the thread handle.
21689 (thread_db_get_tls_address): New.
21690
21691 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21692
21693 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21694 (linux_resume_one_process): Take a siginfo_t *. Update all
21695 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21696 (struct pending_signals): Add a siginfo_t.
21697 (linux_wait_for_process): Always set last_status.
21698 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21699 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21700 * linux-low.h (struct process_info): Add last_status.
21701
21702 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21703
21704 * remote-utils.c (try_rle): New function.
21705 (putpkt_binary): Use it.
21706
21707 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21708
21709 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21710 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21711 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21712 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21713 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21714 point registers.
21715
21716 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21717
21718 * server.c (terminal_fd): New variable.
21719 (old_foreground_pgrp): Likewise.
21720 (restore_old_foreground_pgrp): New function.
21721 (start_inferior): Record the terminal file descriptor in terminal_fd
21722 and its original foreground group in old_foreground_pgrp. Register
21723 restore_old_foreground_pgrp with atexit().
21724
21725 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21726
21727 * server.c (handle_query): Correct qPart to qXfer.
21728
21729 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21730
21731 * configure.ac: Check for more headers which are missing on
21732 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21733 * configure.srv: Add Cygwin and mingw32.
21734 * remote-utils.c: Don't include headers unconditionally which
21735 are missing on mingw32. Include <winsock.h> for mingw32.
21736 (remote_open): Adjust for mingw32 support. Flush
21737 standard error after writing to it.
21738 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21739 (unblock_async_io, enable_async_io, disable_async_io)
21740 (readchar, getpkt): Update for Winsock support.
21741 (prepare_resume_reply): Expect a protocol signal number.
21742 * server.c: Disable <sys/wait.h> on mingw32.
21743 (start_inferior): Adjust for mingw32 support. Flush
21744 standard error after writing to it.
21745 (attach_inferior): Likewise. Use protocol signal
21746 numbers.
21747 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21748 and names.
21749 * win32-i386-low.c: New file.
21750 * Makefile.in (XM_CLIBS): Set.
21751 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21752 (win32-i386-low.o): New dependency rule.
21753 * linux-low.c (linux_wait): Use target signal numbers.
21754 * target.h (struct target_ops): Doc fix.
21755 * server.h (target_signal_to_name): New prototype.
21756 * gdbreplay.c: Don't include headers unconditionally which
21757 are missing on mingw32. Include <winsock.h> for mingw32.
21758 (remote_close, remote_open): Adjust for Winsock support.
21759 * configure, config.in: Regenerated.
21760
21761 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21762
21763 * server.c (decode_xfer_read, write_qxfer_response): New.
21764 (handle_query): Take a packet length argument. Handle
21765 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21766 the qSupported response.
21767 (main): Update call to handle_query.
21768
21769 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21770
21771 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21772 (putpkt_binary): Renamed from putpkt and adjusted for binary
21773 data.
21774 (putpkt): New wrapper for putpkt_binary.
21775 (readchar): Don't mask off the high bit.
21776 (decode_X_packet): New function.
21777 * server.c (main): Call putpkt_binary if a handler sets the packet
21778 length. Save the length of the incoming packet. Handle 'X'.
21779 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21780
21781 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21782
21783 * server.c (handle_query): Handle qSupported.
21784
21785 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21786
21787 * remote-utils.c (all_symbols_looked_up): New variable.
21788 (look_up_one_symbol): Check it.
21789 * server.h (look_up_one_symbol): New declaration.
21790 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21791
21792 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21793
21794 * Makefile.in (linux-arm-low.o): Update dependencies.
21795 * linux-arm-low.c: Include "gdb_proc_service.h".
21796 (PTRACE_GET_THREAD_AREA): Define.
21797 (ps_get_thread_area): New function.
21798
21799 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21800
21801 * configure.srv (m68k*-*-uclinux*): New target.
21802 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21803 (linux_resume_one_process): Remove extraneous cast.
21804 (linux_read_offsets): New.
21805 (linux_target_op): Add linux_read_offsets on mmuless systems.
21806 * server.c (handle_query): Add qOffsets logic.
21807 * target.h (struct target_ops): Add read_offsets.
21808
21809 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21810
21811 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21812 (PTRACE_GET_THREAD_AREA): Define.
21813 (ps_get_thread_area): New function.
21814 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21815 (linux-x86-64-low.o): Update.
21816
21817 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21818
21819 * configure.ac: Remove checks for prfpregset_t.
21820 * gdb_proc_service.h: New file.
21821 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21822 new "gdb_proc_service.h".
21823 * proc-service.c: Likewise.
21824 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21825 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21826 * Makefile.in (gdb_proc_service_h): Updated.
21827 * configure, config.in: Regenerated.
21828
21829 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21830
21831 * remote-utils.c (prepare_resume_reply): Move declaration
21832 of gdb_id_from_wait to the top of the block.
21833
21834 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21835
21836 * linux-low.c (regsets_store_inferior_registers): Read the regset
21837 from the target before filling it.
21838
21839 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21840
21841 * server.c (attach_inferior): Return SIGTRAP for a successful
21842 attach.
21843
21844 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21845
21846 * Makefile.in (OBS): Add version.o.
21847 (STAGESTUFF): Delete.
21848 (version.o): Add dependencies.
21849 (version.c): Replace rule.
21850 (clean): Remove version.c.
21851 * server.c (gdbserver_version): New.
21852 (gdbserver_usage): Use printf.
21853 (main): Handle --version and --help.
21854 * server.h (version, host_name): Add declarations.
21855
21856 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21857
21858 * linux-arm-low.c:
21859 * linux-arm-low.c:
21860 * inferiors.c:
21861 * i387-fp.h:
21862 * i387-fp.c:
21863 * gdbreplay.c:
21864 * regcache.c:
21865 * proc-service.c:
21866 * mem-break.h:
21867 * mem-break.c:
21868 * linux-x86-64-low.c:
21869 * linux-sh-low.c:
21870 * linux-s390-low.c:
21871 * linux-ppc64-low.c:
21872 * linux-ppc-low.c:
21873 * linux-mips-low.c:
21874 * linux-m68k-low.c:
21875 * linux-m32r-low.c:
21876 * linux-low.h:
21877 * linux-low.c:
21878 * linux-ia64-low.c:
21879 * linux-i386-low.c:
21880 * linux-crisv32-low.c:
21881 * thread-db.c:
21882 * terminal.h:
21883 * target.h:
21884 * target.c:
21885 * server.h:
21886 * server.c:
21887 * remote-utils.c:
21888 * regcache.h:
21889 * utils.c:
21890 * Makefile.in:
21891 * configure.ac:
21892 * gdbserver.1: Add (C) after Copyright. Update the FSF
21893 address.
21894
21895 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21896
21897 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21898 (arm_breakpoint_at): Recognize both breakpoints.
21899 (the_low_target): Use the correct breakpoint instruction.
21900
21901 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21902
21903 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21904 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21905 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21906 (the_low_target): Update.
21907
21908 2005-10-25 Andreas Schwab <schwab@suse.de>
21909
21910 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21911
21912 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21913 (ia64_num_regs): Reduce to 462.
21914
21915 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21916
21917 * acinclude.m4: Correct quoting.
21918 * aclocal.m4: Regenerated.
21919
21920 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21921 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21922 (thread_db_init): Call thread_db_err_str.
21923 * configure.ac: Check for TD_VERSION.
21924 * config.in, configure: Regenerated.
21925
21926 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21927
21928 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21929
21930 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21931
21932 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21933 is not available. Define HAVE_PTRACE_GETREGS if it is.
21934 * config.in, configure: Regenerated.
21935 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21936 * linux-i386-low.c, linux-m68k-low.c: Update to use
21937 HAVE_PTRACE_GETREGS.
21938 * linux-low.c (regsets_fetch_inferior_registers)
21939 (regsets_store_inferior_registers): Only return 0 if we processed
21940 GENERAL_REGS.
21941 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21942 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21943
21944 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21945
21946 * inferiors.c (struct thread_info): Add gdb_id.
21947 (add_thread): Add gdb_id argument.
21948 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21949 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21950 calls to add_thread.
21951 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21952 * server.c (handle_query): Use thread_to_gdb_id.
21953 (handle_v_cont, main): Use gdb_id_to_thread_id.
21954 * server.h (add_thread): Update prototype.
21955 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21956 prototypes.
21957
21958 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21959
21960 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21961 left-padded registers.
21962 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21963 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21964
21965 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21966
21967 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21968 * configure: Regenerate.
21969 * config.in: Regenerate.
21970 * server.h (NEED_DECLARATION_STRERROR):
21971 Replace with !HAVE_DECL_STRERROR.
21972
21973 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21974
21975 * linux-low.c (linux_wait, linux_send_signal): Don't test
21976 an unsigned long variable for > 0 if it could be MAX_ULONG.
21977 * server.c (myresume): Likewise.
21978 * target.c (set_desired_inferior): Likewise.
21979
21980 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21981
21982 * configure.ac: Simplify and improve check for socklen_t.
21983 * configure, config.in: Regenerate.
21984
21985 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21986
21987 * acconfig.h: Remove.
21988 * configure.ac: Add a test for socklen_t. Use three-argument
21989 AC_DEFINE throughout.
21990 * config.in: Regenerated using autoheader 2.59.
21991 * configure: Regenerated.
21992
21993 * gdbreplay.c (socklen_t): Provide a default.
21994 (remote_open): Use socklen_t.
21995 * remote-utils.c (socklen_t): Provide a default.
21996 (remote_open): Use socklen_t.
21997 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21998 unsigned char.
21999
22000 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22001 char for buffers.
22002 * linux-low.c (linux_read_memory, linux_write_memory)
22003 (linux_read_auxv): Likewise.
22004 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22005 (check_mem_write): Likewise.
22006 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22007 Likewise.
22008 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22009 (registers_from_string, register_data): Likewise.
22010 * server.c (handle_query, main): Likewise.
22011 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22012 (decode_M_packet): Likewise.
22013 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22014 * target.h (struct target_ops): Update read_memory, write_memory,
22015 and read_auxv.
22016 (read_inferior_memory, write_inferior_memory): Update.
22017 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22018 to unsigned char *.
22019 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22020 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22021 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22022 linux-s390-low.c, linux-sh-low.c: Update for changes in
22023 read_inferior_memory and the_low_target->breakpoint.
22024
22025 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22026
22027 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22028 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22029 * configure.srv: Add powerpc64-*-linux*.
22030 * linux-ppc64-low.c: New file.
22031
22032 2005-05-23 Orjan Friberg <orjanf@axis.com>
22033
22034 * linux-cris-low.c: New file with support for CRIS.
22035 * linux-crisv32-low.c: Ditto for CRISv32.
22036 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22037 (clean): Add reg-cris.c and reg-crisv32.c.
22038 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
22039 reg-crisv32.o, and reg-crisv32.c to make rules.
22040 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22041 recognized targets.
22042
22043 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22044
22045 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22046 of sizeof (PTRACE_XFER_TYPE).
22047 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22048
22049 2005-05-12 Orjan Friberg <orjanf@axis.com>
22050
22051 * target.h (struct target_ops): Add insert_watchpoint,
22052 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22053 pointers for hardware watchpoint support.
22054 * linux-low.h (struct linux_target_ops): Ditto.
22055 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22056 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22057 to linux_target_ops.
22058 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22059 reply packet.
22060 * server.c (main): Recognize 'Z' and 'z' packets.
22061
22062 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22063
22064 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22065 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22066 (the_low_target): Add new members.
22067
22068 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22069
22070 * proc-service.c (ps_lgetregs): Search all_processes instead of
22071 all_threads.
22072
22073 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22074
22075 * server.c (start_inferior): Change return type to int.
22076 (attach_inferior): Change sigptr to int *.
22077 (handle_v_cont, handle_v_requests): Change signal to int *.
22078 (main): Change signal to int.
22079
22080 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
22081
22082 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22083 * configure.srv: Add m32r*-*-linux*.
22084 * linux-m32r-low.c: New file.
22085
22086 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22087
22088 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22089
22090 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22091
22092 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22093 Take unsigned long arguments for PIDs.
22094 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22095 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22096 (wait_for_sigstop, linux_resume_one_process)
22097 (regsets_fetch_inferior_registers, linux_send_signal)
22098 (linux_read_auxv): Likewise. Update the types of variables holding
22099 PIDs. Update format string specifiers.
22100 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22101 * remote-utils.c (prepare_resume_reply): Likewise.
22102 * server.c (cont_thread, general_thread, step_thread)
22103 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22104 unsigned long.
22105 (handle_query): Update format specifiers.
22106 (handle_v_cont, main): Use strtoul for thread IDs.
22107 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22108 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22109 (general_thread, step_thread, thread_from_wait)
22110 (old_thread_from_wait): Update.
22111 * target.h (struct thread_resume): Use unsigned long for THREAD.
22112 (struct target_ops): Use unsigned long for arguments to attach and
22113 thread_alive.
22114
22115 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22116
22117 * acinclude.m4: Include bfd/bfd.m4 directly.
22118 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22119 <agriffis@toolchain.org>.
22120 * aclocal.m4, configure: Regenerated.
22121
22122 2005-01-07 Andrew Cagney <cagney@gnu.org>
22123
22124 * configure.ac: Rename configure.in, require autoconf 2.59.
22125 * configure: Re-generate.
22126
22127 2004-12-08 Daniel Jacobowitz <dan@debian.org>
22128
22129 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22130 LIBS when finished.
22131 * aclocal.m4: Regenerated.
22132 * configure: Regenerated.
22133
22134 2004-11-21 Andreas Schwab <schwab@suse.de>
22135
22136 * linux-m68k-low.c (m68k_num_gregs): Define.
22137 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22138 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22139 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22140 (m68k_breakpoint_at): New. Add to the_low_target.
22141
22142 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22143 srv_linux_thread_db to yes.
22144
22145 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22146
22147 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22148 (ARCH_SET_FS): Likewise.
22149 (ARCH_GET_FS): Likewise.
22150 (ARCH_GET_GS): Likewise.
22151
22152 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22153
22154 * linux-i386-low.c (ps_get_thread_area): New.
22155 * linux-x86-64-low.c (ps_get_thread_area): New.
22156 * linux-low.c: Include <sys/syscall.h>.
22157 (linux_kill_one_process): Don't kill the first thread here.
22158 (linux_kill): Kill the first thread here.
22159 (kill_lwp): New function.
22160 (send_sigstop, linux_send_signal): Use it.
22161 * proc-service.c: Clean up #ifdefs.
22162 (fpregset_info): Delete.
22163 (ps_lgetregs): Update and enable implementation.
22164 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22165 implementations.
22166 * remote-utils.c (struct sym_cache, symbol_cache): New.
22167 (input_interrupt): Print a clearer message.
22168 (async_io_enabled): New variable.
22169 (enable_async_io, disable_async_io): Use it. Update comments.
22170 (look_up_one_symbol): Use the symbol cache.
22171 * thread-db.c (thread_db_look_up_symbols): New function.
22172 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22173
22174 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22175
22176 * configure.in: Test for -rdynamic.
22177 * configure: Regenerated.
22178 * Makefile (INTERNAL_LDFLAGS): New.
22179 (gdbserver, gdbreplay): Use it.
22180
22181 2004-09-02 Andrew Cagney <cagney@gnu.org>
22182
22183 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22184
22185 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22186
22187 * linux-low.c (linux_wait): Clear all_processes list also.
22188
22189 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22190
22191 * linux-low.c: Include <errno.h>. Remove extern declaration of
22192 errno.
22193
22194 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22195
22196 * gdbreplay.c, server.h, utils.c: Update copyright years.
22197
22198 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22199
22200 * server.c (main): Print child status or termination signal from
22201 variable 'signal', not 'sig'.
22202
22203 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22204
22205 * linux-low.c (linux_read_memory): Change return type to
22206 int. Check for and return error from ptrace().
22207 * target.c (read_inferior_memory): Change return type to int. Pass
22208 back return status from the_target->read_memory().
22209 * target.h (struct target_ops): Adapt *read_memory() prototype.
22210 Update comment.
22211 (read_inferior_memory): Adapt prototype.
22212 * server.c (main): Return an error packet if
22213 read_inferior_memory() returns an error.
22214
22215 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22216
22217 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22218 Unify with other clean targets.
22219
22220 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22221
22222 * server.c (handle_v_cont): Call set_desired_inferior.
22223
22224 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22225
22226 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22227
22228 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22229
22230 * linux-low.c (linux_wait): Unblock async I/O.
22231 (linux_resume): Block and enable async I/O.
22232 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22233 * server.h (block_async_io, unblock_async_io): Add prototypes.
22234
22235 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22236
22237 * remote-utils.c (remote_open): Print a status notice after
22238 opening a TCP port.
22239 * server.c (attach_inferior): Print a status notice after
22240 attaching.
22241
22242 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22243
22244 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22245
22246 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22247
22248 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22249 error packet.
22250 * server.c, target.h: Update copyright years.
22251
22252 2004-02-25 Roland McGrath <roland@redhat.com>
22253
22254 * target.h (struct target_ops): New member `read_auxv'.
22255 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22256 * linux-low.c (linux_read_auxv): New function.
22257 (linux_target_ops): Initialize `read_auxv' member to that.
22258
22259 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22260
22261 Committed by Jim Blandy <jimb@redhat.com>.
22262
22263 * linux-s390-low.c (s390_num_regs): Update.
22264 (s390_regmap): Remove control registers. Use __s390x__ predefine
22265 instead of GPR_SIZE to distiguish s390 and s390x targets.
22266
22267 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22268
22269 * linux-low.c: Update copyright year.
22270 (check_removed_breakpoint): Clear pending_is_breakpoint.
22271 (linux_set_resume_request, linux_queue_one_thread)
22272 (resume_status_pending_p): New functions.
22273 (linux_continue_one_thread): Use process->resume.
22274 (linux_resume): Only resume threads if there are no pending events.
22275 * linux-low.h (struct process_info): Add resume request
22276 pointer.
22277
22278 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22279
22280 * regcache.c (new_register_cache): Clear the allocated register
22281 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22282
22283 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22284
22285 * linux-low.c (linux_resume): Take a struct thread_resume *
22286 argument.
22287 (linux_wait): Update call.
22288 (resume_ptr): New static variable.
22289 (linux_continue_one_thread): Renamed from
22290 linux_continue_one_process. Use resume_ptr.
22291 (linux_resume): Use linux_continue_one_thread.
22292 * server.c (handle_v_cont, handle_v_requests): New functions.
22293 (myresume): New function.
22294 (main): Handle 'v' case.
22295 * target.h (struct thread_resume): New type.
22296 (struct target_ops): Change argument of "resume" to struct
22297 thread_resume *.
22298 (myresume): Delete macro.
22299
22300 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22301
22302 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22303 (uninstall): Support DESTDIR.
22304
22305 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22306
22307 * configure.srv: Add xscale*linux copy of arm*linux entry.
22308
22309 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22310
22311 * linux-arm-low.c (arm_reinsert_addr): New function.
22312 (the_low_target): Add arm_reinsert_addr.
22313
22314 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22315
22316 * mem-break.c: Remove whitespace at end of file.
22317
22318 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22319
22320 * configure.in: Check whether we need to prototype strerror.
22321 * server.h: Optionally prototype strerror.
22322 * gdbreplay.c (perror_with_name): Use strerror.
22323 * linux-low.c (linux_attach_lwp): Use strerror.
22324 * utils.c (perror_with_name): Use strerror.
22325 * config.in, configure: Regenerated.
22326
22327 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22328
22329 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22330 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22331
22332 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22333
22334 * Makefile.in (SFILES): Update.
22335 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22336 low-sun3.c: Remove files.
22337
22338 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22339
22340 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22341 (linux_detach_one_process, linux_detach): New functions.
22342 (linux_target_ops): Add linux_detach.
22343 * server.c (main): Handle 'D' packet.
22344 * target.h (struct target_ops): Add "detach" member.
22345 (detach_inferior): Define.
22346
22347 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22348
22349 From Kelley Cook <kelleycook@wideopenwest.com>:
22350 * configure.srv: Accept i[34567]86 variants.
22351
22352 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22353
22354 * linux-low.c (linux_wait_for_event): Correct comment typos.
22355 (linux_resume_one_process): Call check_removed_breakpoint.
22356 (linux_send_signal): New function.
22357 (linux_target_ops): Add linux_send_signal.
22358 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22359 of kill.
22360 * target.h (struct target_ops): Add send_signal.
22361
22362 2003-05-29 Jim Blandy <jimb@redhat.com>
22363
22364 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22365 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22366 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22367 away part of the register's value.
22368
22369 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22370
22371 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22372 (linux_wait_for_event, linux_init_signals): Likewise.
22373
22374 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22375
22376 * configure.in: Check for stdlib.h.
22377 * configure: Regenerated.
22378 * config.in: Regenerated.
22379
22380 2003-01-04 Andreas Schwab <schwab@suse.de>
22381
22382 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22383
22384 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22385
22386 * Makefile.in: Remove obsolete code.
22387
22388 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22389
22390 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22391 defined(PT_FPR0_HI).
22392
22393 2002-11-17 Stuart Hughes <seh@zee2.com>
22394
22395 * linux-arm-low.c (arm_num_regs): Increase.
22396 (arm_regmap): Include status register.
22397
22398 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22399
22400 * linux-low.c (register_addr): Remove incorrect -1 check.
22401
22402 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22403
22404 * linux-low.c (linux_create_inferior): Call setpgid. Return
22405 the new PID.
22406 (unstopped_p, linux_signal_pid): Remove.
22407 (linux_target_ops): Remove linux_signal_pid.
22408 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22409 global instead of target method.
22410 * target.h (struct target_ops): Remove signal_pid. Update comment
22411 for create_inferior.
22412 * server.c (signal_pid): New variable.
22413 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22414 gdbserver. Set the child to be the foreground process group.
22415 (attach_inferior): Set signal_pid.
22416
22417 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22418
22419 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22420
22421 2002-08-20 Jim Blandy <jimb@redhat.com>
22422
22423 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22424 default for this.
22425
22426 2002-08-01 Andrew Cagney <cagney@redhat.com>
22427
22428 * Makefile.in: Make chill references obsolete.
22429
22430 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22431
22432 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22433 * configure: Regenerate.
22434 * config.in: Regenerate.
22435
22436 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22437
22438 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22439 (perror_with_name, remote_close, remote_open, expect, play): Static.
22440
22441 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22442
22443 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22444 byte offsets instead of an array of indexes.
22445 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22446
22447 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22448
22449 * regcache.c: Add comment.
22450
22451 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22452
22453 * thread-db.c: New file.
22454 * proc-service.c: New file.
22455 * acinclude.m4: New file.
22456 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22457 proc-service.o, and thread-db.o.
22458 (linux-low.o): Add USE_THREAD_DB.
22459 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22460 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22461 * aclocal.m4: Regenerated.
22462 * config.in: Regenerated.
22463 * configure: Regenerated.
22464 * configure.in: Check for proc_service.h, sys/procfs.h,
22465 thread_db.h, and linux/elf.h headrs.
22466 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22467 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22468 Check for -lthread_db and thread support.
22469 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22470 PowerPC, and SuperH.
22471 * i387-fp.c: Constify arguments.
22472 * i387-fp.h: Likewise.
22473 * inferiors.c: (struct thread_info): Renamed from
22474 `struct inferior_info'. Remove PID member. Use generic inferior
22475 list header. All uses updated.
22476 (inferiors, signal_pid): Removed.
22477 (all_threads): New variable.
22478 (get_thread): Define.
22479 (add_inferior_to_list): New function.
22480 (for_each_inferior): New function.
22481 (change_inferior_id): New function.
22482 (add_inferior): Removed.
22483 (remove_inferior): New function.
22484 (add_thread): New function.
22485 (free_one_thread): New function.
22486 (remove_thread): New function.
22487 (clear_inferiors): Use for_each_inferior and free_one_thread.
22488 (find_inferior): New function.
22489 (find_inferior_id): New function.
22490 (inferior_target_data): Update argument type.
22491 (set_inferior_target_data): Likewise.
22492 (inferior_regcache_data): Likewise.
22493 (set_inferior_regcache_data): Likewise.
22494 * linux-low.c (linux_bp_reinsert): Remove.
22495 (all_processes, stopping_threads, using_thrads)
22496 (struct pending_signals, debug_threads, pid_of): New.
22497 (inferior_pid): Replace with macro.
22498 (struct inferior_linux_data): Remove.
22499 (get_stop_pc, add_process): New functions.
22500 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22501 Use add_process and add_thread.
22502 (linux_attach_lwp): New function, based on old linux_attach. Use
22503 add_process and add_thread. Set stop_expected for new threads.
22504 (linux_attach): New function.
22505 (linux_kill_one_process): New function.
22506 (linux_kill): Kill all LWPs.
22507 (linux_thread_alive): Use find_inferior_id.
22508 (check_removed_breakpoints, status_pending_p): New functions.
22509 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22510 Update. Use WNOHANG. Wait for cloned processes also. Update process
22511 struct for the found process.
22512 (linux_wait_for_event): New function.
22513 (linux_wait): Use it. Support LWPs.
22514 (send_sigstop, wait_for_sigstop, stop_all_processes)
22515 (linux_resume_one_process, linux_continue_one_process): New functions.
22516 (linux_resume): Support LWPs.
22517 (REGISTER_RAW_SIZE): Remove.
22518 (fetch_register): Use register_size instead. Call supply_register.
22519 (usr_store_inferior_registers): Likewise. Call collect_register.
22520 Fix recursive case.
22521 (regsets_fetch_inferior_registers): Improve error message.
22522 (regsets_store_inferior_registers): Add debugging.
22523 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22524 (unstopped_p, linux_signal_pid): New functions.
22525 (linux_target_ops): Add linux_signal_pid.
22526 (linux_init_signals): New function.
22527 (initialize_low): Call it. Initialize using_threads.
22528 * regcache.c (inferior_regcache_data): Add valid
22529 flag.
22530 (get_regcache): Fetch registers lazily. Add fetch argument
22531 and update all callers.
22532 (regcache_invalidate_one, regcache_invalidate): New
22533 functions.
22534 (new_register_cache): Renamed from create_register_cache.
22535 Return the new regcache.
22536 (free_register_cache): Change argument to a void *.
22537 (registers_to_string, registers_from_string): Call get_regcache
22538 with fetch flag set.
22539 (register_data): Make static. Pass fetch flag to get_regcache.
22540 (supply_register): Call get_regcache with fetch flag clear.
22541 (collect_register): Call get_regcache with fetch flag set.
22542 (collect_register_as_string): New function.
22543 * regcache.h: Update.
22544 * remote-utils.c (putpkt): Flush after debug output and use
22545 stderr.
22546 Handle input interrupts while waiting for an ACK.
22547 (input_interrupt): Use signal_pid method.
22548 (getpkt): Flush after debug output and use stderr.
22549 (outreg): Use collect_register_as_string.
22550 (new_thread_notify, dead_thread_notify): New functions.
22551 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22552 and general_thread.
22553 (look_up_one_symbol): Flush after debug output.
22554 * server.c (step_thread, server_waiting): New variables.
22555 (start_inferior): Don't use signal_pid. Update call to mywait.
22556 (attach_inferior): Update call to mywait.
22557 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22558 (main): Don't fetch/store registers explicitly. Use
22559 set_desired_inferior. Support proposed ``Hs'' packet. Update
22560 calls to mywait.
22561 * server.h: Update.
22562 (struct inferior_list, struct_inferior_list_entry): New.
22563 * target.c (set_desired_inferior): New.
22564 (write_inferior_memory): Constify.
22565 (mywait): New function.
22566 * target.h: Update.
22567 (struct target_ops): New signal_pid method.
22568 (mywait): Removed macro, added prototype.
22569
22570 * linux-low.h (regset_func): Removed.
22571 (regset_fill_func, regset_store_func): New.
22572 (enum regset_type): New.
22573 (struct regset_info): Add type field. Use new operation types.
22574 (struct linux_target_ops): stop_pc renamed to get_pc.
22575 Add decr_pc_after_break and breakpoint_at.
22576 (get_process, get_thread_proess, get_process_thread)
22577 (strut process_info, all_processes, linux_attach_lwp)
22578 (thread_db_init): New.
22579
22580 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22581 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22582 (the_low_target): Add new members.
22583 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22584 (i386_store_fpxregset): Constify.
22585 (target_regsets): Add new kind identifier.
22586 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22587 (i386_set_pc): Add debugging.
22588 (i386_breakpoint_at): New function.
22589 (the_low_target): Add new members.
22590 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22591 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22592 (mips_breakpoint_at): New.
22593 (the_low_target): Add new members.
22594 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22595 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22596 (the_low_target): Add new members.
22597 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22598 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22599 (the_low_target): Add new members.
22600 * linux-x86-64-low.c (target_regsets): Add new kind
22601 identifier.
22602
22603 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22604
22605 From Martin Pool <mbp@samba.org>:
22606 * server.c (gdbserver_usage): New function.
22607 (main): Call it.
22608
22609 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22610
22611 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22612 stop_at -> stop_pc.
22613
22614 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22615
22616 * Makefile.in: Remove obsolete code.
22617
22618 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22619
22620 * linux-low.c (regsets_fetch_inferior_registers),
22621 (regsets_store_inferior_registers): Removed cast to int from
22622 ptrace() calls.
22623 * regcache.h: Added declaration of struct inferior_info.
22624
22625 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22626
22627 * inferiors.c (struct inferior_info): Add regcache_data.
22628 (add_inferior): Call create_register_cache.
22629 (clear_inferiors): Call free_register_cache.
22630 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22631 * regcache.c (struct inferior_regcache_data): New.
22632 (registers): Remove.
22633 (get_regcache): New function.
22634 (create_register_cache, free_register_cache): New functions.
22635 (set_register_cache): Don't initialize the register cache here.
22636 (registers_to_string, registers_from_string, register_data): Call
22637 get_regcache.
22638 * regcache.h: Add prototypes.
22639 * server.h: Likewise.
22640
22641 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22642
22643 * mem-break.c: New file.
22644 * mem-break.h: New file.
22645 * Makefile.in: Add mem-break.o rule; update server.h
22646 dependencies.
22647 * inferiors.c (struct inferior_info): Add target_data
22648 member.
22649 (clear_inferiors): Free target_data member if set.
22650 (inferior_target_data, set_inferior_target_data): New functions.
22651 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22652 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22653 * linux-low.c (linux_bp_reinsert): New variable.
22654 (struct inferior_linux_data): New.
22655 (linux_create_inferior): Use set_inferior_target_data.
22656 (linux_attach): Likewise. Call add_inferior.
22657 (linux_wait_for_one_inferior): New function.
22658 (linux_wait): Call it.
22659 (linux_write_memory): Add const.
22660 (initialize_low): Call set_breakpoint_data.
22661 * linux-low.h (struct linux_target_ops): Add breakpoint
22662 handling members.
22663 * server.c (attach_inferior): Remove extra add_inferior
22664 call.
22665 * server.h: Include mem-break.h. Update inferior.c
22666 prototypes.
22667 * target.c (read_inferior_memory)
22668 (write_inferior_memory): New functions.
22669 * target.h (read_inferior_memory)
22670 (write_inferior_memory): Change macros to prototypes.
22671 (struct target_ops): Update comments. Add const to write_memory
22672 definition.
22673
22674 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22675
22676 * linux-low.c (usr_store_inferior_registers): Support
22677 registers which are allowed to fail to store.
22678 * linux-low.h (linux_target_ops): Likewise.
22679 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22680 (ppc_cannot_store_register): FPSCR may not be storable.
22681
22682 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22683
22684 * server.h: Include <string.h> if HAVE_STRING_H.
22685 * ChangeLog: Correct paths in last ChangeLog entry.
22686
22687 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22688
22689 * linux-low.h: Remove obsolete prototypes.
22690 (struct linux_target_ops): New.
22691 (extern the_low_target): New.
22692 * linux-low.c (num_regs, regmap): Remove declarations.
22693 (register_addr): Use the_low_target explicitly.
22694 (fetch_register): Likewise.
22695 (usr_fetch_inferior_registers): Likewise.
22696 (usr_store_inferior_registers): Likewise.
22697 * linux-arm-low.c (num_regs): Remove.
22698 (arm_num_regs): Define.
22699 (arm_regmap): Renamed from regmap, made static.
22700 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22701 made static.
22702 (arm_cannot_store_register): Renamed from cannot_store_register,
22703 made static.
22704 (the_low_target): New.
22705 * linux-i386-low.c (num_regs): Remove.
22706 (i386_num_regs): Define.
22707 (i386_regmap): Renamed from regmap, made static.
22708 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22709 made static.
22710 (i386_cannot_store_register): Renamed from cannot_store_register,
22711 made static.
22712 (the_low_target): New.
22713 * linux-ia64-low.c (num_regs): Remove.
22714 (ia64_num_regs): Define.
22715 (ia64_regmap): Renamed from regmap, made static.
22716 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22717 made static.
22718 (ia64_cannot_store_register): Renamed from cannot_store_register,
22719 made static.
22720 (the_low_target): New.
22721 * linux-m68k-low.c (num_regs): Remove.
22722 (m68k_num_regs): Define.
22723 (m68k_regmap): Renamed from regmap, made static.
22724 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22725 made static.
22726 (m68k_cannot_store_register): Renamed from cannot_store_register,
22727 made static.
22728 (the_low_target): New.
22729 * linux-mips-low.c (num_regs): Remove.
22730 (mips_num_regs): Define.
22731 (mips_regmap): Renamed from regmap, made static.
22732 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22733 made static.
22734 (mips_cannot_store_register): Renamed from cannot_store_register,
22735 made static.
22736 (the_low_target): New.
22737 * linux-ppc-low.c (num_regs): Remove.
22738 (ppc_num_regs): Define.
22739 (ppc_regmap): Renamed from regmap, made static.
22740 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22741 made static.
22742 (ppc_cannot_store_register): Renamed from cannot_store_register,
22743 made static.
22744 (the_low_target): New.
22745 * linux-s390-low.c (num_regs): Remove.
22746 (s390_num_regs): Define.
22747 (s390_regmap): Renamed from regmap, made static.
22748 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22749 made static.
22750 (s390_cannot_store_register): Renamed from cannot_store_register,
22751 made static.
22752 (the_low_target): New.
22753 * linux-sh-low.c (num_regs): Remove.
22754 (sh_num_regs): Define.
22755 (sh_regmap): Renamed from regmap, made static.
22756 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22757 made static.
22758 (sh_cannot_store_register): Renamed from cannot_store_register,
22759 made static.
22760 (the_low_target): New.
22761 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22762 (the_low_target): New.
22763
22764 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22765
22766 * Makefile.in: Add stamp-h target.
22767 * configure.in: Create stamp-h.
22768 * configure: Regenerated.
22769
22770 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22771
22772 * inferiors.c: New file.
22773 * target.c: New file.
22774 * target.h: New file.
22775 * Makefile.in: Add target.o and inferiors.o. Update
22776 dependencies.
22777 * linux-low.c (inferior_pid): New static variable,
22778 moved from server.c.
22779 (linux_create_inferior): Renamed from create_inferior.
22780 Call add_inferior. Return 0 on success instead of a PID.
22781 (linux_attach): Renamed from myattach.
22782 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22783 (linux_thread_alive): Renamed from mythread_alive.
22784 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22785 child dies.
22786 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22787 (regsets_store_inferior_registers): Correct error message.
22788 Add missing ``return 0''.
22789 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22790 (linux_store_registers): Renamed from store_inferior_registers.
22791 (linux_read_memory): Renamed from read_inferior_memory.
22792 (linux_write_memory): Renamed from write_inferior_memory.
22793 (linux_target_ops): New structure.
22794 (initialize_low): Call set_target_ops ().
22795 * remote-utils.c (unhexify): New function.
22796 (hexify): New function.
22797 (input_interrupt): Send signals to ``signal_pid''.
22798 * server.c (inferior_pid): Remove.
22799 (start_inferior): Update create_inferior call.
22800 (attach_inferior): Call add_inferior.
22801 (handle_query): New function.
22802 (main): Call handle_query for `q' packets.
22803 * server.h: Include "target.h". Remove obsolete prototypes.
22804 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22805
22806 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22807
22808 * Makefile.in: Add WARN_CFLAGS. Update configury
22809 dependencies.
22810 * configure.in: Check for <string.h>
22811 * configure: Regenerate.
22812 * config.in: Regenerate.
22813 * gdbreplay.c: Include needed system headers.
22814 (remote_open): Remove strchr prototype.
22815 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22816 * regcache.c (supply_register): Change buf argument to const void *.
22817 (supply_register_by_name): Likewise.
22818 (collect_register): Change buf argument to void *.
22819 (collect_register_by_name): Likewise.
22820 * regcache.h: Add missing prototypes.
22821 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22822 * server.c (handle_query): New function.
22823 (attached): New static variable, moved out of main.
22824 (main): Quiet longjmp clobber warnings.
22825 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22826 * utils.c (error): Remove NORETURN.
22827 (fatal): Likewise.