Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
507af45f
SM
12021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * config.in, configure: Re-generate.
4
7e3941ac
MF
52021-06-19 Mike Frysinger <vapier@gentoo.org>
6
7 * acinclude.m4: Delete most m4_include's of ../config files.
8 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
9 * aclocal.m4: Regenerate.
10 * configure: Regenerate.
11
483ab96a
MF
122021-06-14 Mike Frysinger <vapier@gentoo.org>
13
14 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
15 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
16
01add95b
SM
172021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
18
19 * Fix some indentation mistakes throughout.
20
c1c0a7e1
AB
212021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
22
23 * .dir-locals.el: Set sentence-end-double-space for all modes, and
24 set brace-list-open to 0 for C and C++ modes.
25
8d06918f
SM
262021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * linux-low.cc (linux_process_target::wait_for_event_filtered):
29 Adjust to status_to_str returning std::string.
30
4655f850
PA
312021-05-08 Pedro Alves <pedro@palves.net>
32
33 * linux-low.cc:
34 (linux_process_target::supports_disable_randomization): Remove
35 reference to HAVE_PERSONALITY.
36 * config.in, configure: Regenerate.
37
e2ea3a38
PA
382021-05-08 Pedro Alves <pedro@palves.net>
39
40 * linux-low.cc: Don't include sys/personality.h or define
41 ADDR_NO_RANDOMIZE.
42
482155e6
TBA
432021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
44
45 * server.cc (handle_v_attach)
46 (handle_v_run)
47 (handle_v_kill): Make void.
48
82288339
TT
492021-05-03 Tom Tromey <tromey@adacore.com>
50
51 PR build/27807:
52 * win32-i386-low.cc (i386_get_thread_context): Call
53 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
54
e228ef97
TT
552021-04-30 Tom Tromey <tromey@adacore.com>
56
57 * win32-low.cc (do_initial_child_stuff): Update.
58 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
59 Change parameter type.
60 (win32_add_dll, win32_add_all_dlls)
61 (windows_nat::handle_load_dll): Remove.
62 (get_child_debug_event): Call dll_loaded_event.
63
de071872
TT
642021-04-30 Tom Tromey <tromey@adacore.com>
65
66 * win32-low.cc (GETPROCADDRESS): Remove.
67 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
68 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
69 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
70 (win32_Wow64SetThreadContext): Remove.
71 (win32_set_thread_context, do_initial_child_stuff)
72 (win32_process_target::attach, win32_process_target::detach):
73 Update.
74 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
75 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
76 Remove.
77 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
78 (win32_GetModuleInformation, win32_GetModuleInformationA):
79 Remove.
80 (load_psapi): Remove.
81 (win32_add_dll, win32_process_target::request_interrupt): Update.
82 (initialize_low): Call initialize_loadable.
83
38ae2915
TT
842021-04-14 Tom Tromey <tromey@adacore.com>
85
86 * win32-low.cc (windows_nat::handle_load_dll): Don't check
87 _WIN32_WCE.
88
6cacd449
PA
892021-04-13 Pedro Alves <pedro@palves.net>
90
91 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
92
1228cb90
TT
932021-04-13 Tom Tromey <tromey@adacore.com>
94
95 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
96 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
97
0256da25
PA
982021-04-13 Pedro Alves <pedro@palves.net>
99
100 * Makefile.in (SFILES): Remove hostio-errno.cc.
101 * configure: Regenerate.
102 * configure.ac (GDBSERVER_DEPFILES): No longer add
103 $srv_hostio_err_objs.
104 * configure.srv (srv_hostio_err_objs): Delete.
105 * hostio-errno.cc: Delete.
106 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
107 here.
108 * hostio.h (hostio_last_error_from_errno): Delete.
109 * target.cc (process_stratum_target::hostio_last_error): Delete.
110 * target.h (class process_stratum_target) <hostio_last_error>:
111 Delete.
112
d4717483
SM
1132021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
114
115 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
116 * win32-low.h: Likewise.
117
04977957
TBA
1182021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
119
120 * target.h (class process_stratum_target) <pid_to_exec_file>:
121 Constify the return type. Update the definition/references below.
122 * target.cc (process_stratum_target::pid_to_exec_file)
123 * linux-low.h (class linux_process_target) <pid_to_exec_file>
124 * linux-low.cc (linux_process_target::pid_to_exec_file)
125 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
126 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
127 * server.cc (handle_qxfer_exec_file)
128
114ee2a4
EZ
1292021-04-11 Eli Zaretskii <eliz@gnu.org>
130
131 * win32-low.cc (win32_add_dll): New function, with body almost
132 identical to what win32_add_all_dlls did. Accepts one argument;
133 if that is non-NULL, returns the file name of the DLL that is
134 loaded at the base address equal to that argument, or NULL if not
135 found. If the argument is NULL, add all the DLLs loaded by the
136 inferior to the list of solibs and return NULL.
137 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
138 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
139 failed to glean the file name of the DLL, call win32_add_dll to
140 try harder using the lpBaseOfDll member of the load-DLL event.
141
782c1ab8
LM
1422021-03-30 Luis Machado <luis.machado@linaro.org>
143
144 * server.cc (handle_general_set, handle_query): Update variable
145 to bool and fix verification logic.
146
41919a58
LM
1472021-03-24 Luis Machado <luis.machado@linaro.org>
148
149 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
150 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
151 nat/aarch64-mte-linux-ptrace.o.
152 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
153 (class aarch64_target) <supports_memory_tagging>
154 <fetch_memtags, store_memtags>: New method overrides.
155 (aarch64_target::supports_memory_tagging)
156 (aarch64_target::fetch_memtags)
157 (aarch64_target::store_memtags): New methods.
158
5e984dbf
LM
1592021-03-24 Luis Machado <luis.machado@linaro.org>
160
161 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
162 (aarch64_store_mteregset): New function.
163 (aarch64_regsets): Add MTE register set entry.
164 (aarch64_sve_regsets): Add MTE register set entry.
165
c1bd443b
LM
1662021-03-24 Luis Machado <luis.machado@linaro.org>
167
168 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
169 aarch64_linux_read_description.
170 (initialize_low_tracepoint): Likewise.
171 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
172 into account.
173 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
174 for MTE.
175 (aarch64_linux_read_description): Add mte_p parameter and update to
176 use it.
177 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
178 parameter.
179
04245125
LM
1802021-03-24 Luis Machado <luis.machado@linaro.org>
181
182 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
183
c2cfa654
LM
1842021-03-24 Luis Machado <luis.machado@linaro.org>
185
186 * server.cc (test_memory_tagging_functions): New function.
187 (captured_main): Register test_memory_tagging_functions.
188
546b77fe
LM
1892021-03-24 Luis Machado <luis.machado@linaro.org>
190
191 * remote-utils.cc (decode_m_packet_params): Renamed from ...
192 (decode_m_packet): ... this, which now calls decode_m_packet_params.
193 Make char * param/return const char *.
194 (decode_M_packet): Use decode_m_packet_params and make char * param
195 const char *.
196 * remote-utils.h (decode_m_packet_params): New prototype.
197 (decode_m_packet): Constify char pointers.
198 (decode_M_packet): Likewise.
199 * server.cc (create_fetch_memtags_reply)
200 (parse_store_memtags_request): New
201 functions.
202 (handle_general_set): Handle the QMemTags packet.
203 (parse_fetch_memtags_request): New function.
204 (handle_query): Handle the qMemTags packet and advertise memory
205 tagging support.
206 (captured_main): Initialize memory tagging flag.
207 * server.h (struct client_state): Initialize memory tagging flag.
208 * target.cc (process_stratum_target::supports_memory_tagging)
209 (process_stratum_target::fetch_memtags)
210 (process_stratum_target::store_memtags): New methods.
211 * target.h: Include gdbsupport/byte-vector.h.
212 (class process_stratum_target) <supports_memory_tagging>
213 <fetch_memtags, store_memtags>: New class virtual methods.
214 (target_supports_memory_tagging): Define.
215
d171632f
TBA
2162021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
217
218 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
219 fields.
220 * dll.h (loaded_dll)
221 (unloaded_dll): Declare an overloaded version that takes a proc
222 parameter.
223 * dll.cc (loaded_dll)
224 (unloaded_dll): Implement the overloaded versions.
225 (clear_dlls): Clear all process' dll lists.
226 (all_dlls, dlls_changed): Remove the global variables.
227 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
228 list per proc.
229 * server.cc (handle_qxfer_libraries): Ditto.
230 (handle_v_attach): Ditto.
231 (captured_main): Ditto.
232
1a48f002
SM
2332021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
234
235 * linux-low.cc (linux_process_target::filter_event): Return
236 void.
237 * linux-low.h (class linux_process_target) <filter_event>:
238 Return void.
239
77fba254
TT
2402021-02-12 Tom Tromey <tromey@adacore.com>
241
242 * gdbreplay.cc (remote_desc): Remove.
243 (remote_desc_in, remote_desc_out): New globals.
244 (remote_close): Update.
245 (remote_open): Handle "-".
246 (remote_open): Update.
247 (logchar): Log to stderr.
248 (expect, play): Update.
249
c054dcd5
TT
2502021-02-12 Tom Tromey <tromey@adacore.com>
251
252 * gdbreplay.cc (remote_open): Constify.
253
9c9d63b1
PM
2542021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
255
256 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
257 gnulib free replacement too.
258 * common-defs.h [USE_WIN32API](read, write): Undefine
259 gnulib versions before defining these macros.
260
7e9cf1fe
PA
2612021-02-03 Pedro Alves <pedro@palves.net>
262
263 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
264 Discard step SIGTRAP, unless GDB wanted the thread to step.
265
b0083dd7
PA
2662021-02-03 Pedro Alves <pedro@palves.net>
267
268 * server.cc (discard_queued_stop_replies): Don't ever discard the
269 notification at the head of the list.
270
6bd434d6
SM
2712021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
272
273 * ax.cc (bytecode_address_table): Make static.
274 * debug.cc (debug_file): Make static.
275 * linux-low.cc (stopping_threads): Make static.
276 (step_over_bkpt): Make static.
277 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
278 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
279 alloced_trace_state_variables, trace_buffer_ctrl,
280 tracing_start_time, tracing_stop_time, tracing_user_name,
281 tracing_notes, tracing_stop_note): Make static.
282
037e8112
TV
2832021-01-20 Tom de Vries <tdevries@suse.de>
284
285 * linux-x86-low.cc (collect_register_i386): New function.
286 (x86_fill_gregset): Remove memset. Use collect_register_i386.
287
78e49486
TV
2882021-01-07 Tom de Vries <tdevries@suse.de>
289
290 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
291 (LIBIBERTY_FOR_SHLIB): New var.
292 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
293 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
294
3ec3145c
SM
2952021-01-04 Simon Marchi <simon.marchi@efficios.com>
296
297 * debug.cc (debug_print_depth): New.
298
2b47c078
JB
2992021-01-01 Joel Brobecker <brobecker@adacore.com>
300
301 * server.cc (gdbserver_version): Update copyright year.
302 * gdbreplay.cc (gdbreplay_version): Likewise.
303
19007d95
LM
3042020-12-16 Luis Machado <luis.machado@linaro.org>
305
306 * linux-aarch64-low.cc (address_significant): New function.
307 (aarch64_target::low_stopped_data_address): Handle the TBI.
308
96648494
AB
3092020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
310
311 * Makefile.in (IPA_LIB): Include libiberty library.
312
81fdd7ac
AB
3132020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
314
315 * server.cc (gdbserver_usage): Add missing option to usage text.
316 (gdbserver_show_disableable): Likewise.
317
dda83cd7
SM
3182020-11-02 Simon Marchi <simon.marchi@efficios.com>
319
320 * ax.cc: Fix indentation.
321 * dll.cc: Fix indentation.
322 * inferiors.h: Fix indentation.
323 * linux-low.cc: Fix indentation.
324 * linux-nios2-low.cc: Fix indentation.
325 * linux-ppc-ipa.cc: Fix indentation.
326 * linux-ppc-low.cc: Fix indentation.
327 * linux-x86-low.cc: Fix indentation.
328 * linux-xtensa-low.cc: Fix indentation.
329 * regcache.cc: Fix indentation.
330 * server.cc: Fix indentation.
331 * tracepoint.cc: Fix indentation.
332
19dd0ae5
SM
3332020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
334
335 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
336 AC_LANG_PROGRAM.
337 * configure: Re-generate.
338
b6fb30ed
SM
3392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * configure: Re-generate.
864ca435
SM
342
3432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
344
345 * configure: Re-generate.
b9442ec1
SM
346
3472020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * configure: Re-generate.
b6fb30ed 350
5164c117
SM
3512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
352
353 * configure: Re-generate.
354
7e8c7130
SM
3552020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
356
357 * configure.ac: Modernize.
358 * configure: Re-generate.
359
91e1a0ed
SM
3602020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
363 AC_CANONICAL_SYSTEM.
364 * configure: Re-generate.
365
d744f0f9
PA
3662020-10-26 Pedro Alves <pedro@palves.net>
367
368 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
369 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
370 explicit type.
371
006811bc
SM
3722020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
373
374 * acinclude.m4: Update ptrace.m4 path.
375
92a048fd
SM
3762020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
377
378 * config.in: Re-generate.
379 * configure: Re-generate.
380
4dbe16c8
SM
3812020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
382
383 * server.cc (handle_general_set): Don't use sprintf with
384 argument overlapping buffer.
385
a9b45cb7
TT
3862020-10-20 Tom Tromey <tromey@adacore.com>
387
388 PR gdb/26742:
389 * inferiors.cc (remove_thread): Clear current_thread before
390 freeing the thread.
391
b07993f6
KR
3922020-10-13 Kamil Rytarowski <n54@gmx.com>x
393
394 * netbsd-low.cc (netbsd_tdesc): Remove.
395 (netbsd_add_process): Likewise.
396 (netbsd_process_target::create_inferior): Update.
397
bbb826f5
AB
3982020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 * linux-arc-low.cc (arc_linux_read_description): Release the
401 unique_ptr returned from arc_create_target_description.
402
361cb219
AB
4032020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
404
405 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
406 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
407
51a948fd
AB
4082020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
409
410 * linux-low.cc (linux_process_target::handle_extended_wait):
411 Release the unique_ptr returned from allocate_target_description.
412 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
413 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
414 (tdesc_i386_linux_no_xml): Change type.
415 (x86_linux_read_description): Borrow pointer from unique_ptr
416 object.
417 (x86_target::get_ipa_tdesc_idx): Likewise.
418 (initialize_low_arch): Likewise.
419 * tdesc.cc (allocate_target_description): Update return type.
420
60b74662
TT
4212020-10-07 Tom Tromey <tromey@adacore.com>
422
423 * server.cc (handle_search_memory): Remove dead code.
424
55b10d89
TT
4252020-10-07 Tom Tromey <tromey@adacore.com>
426
427 * server.cc (handle_search_memory_1): Remove.
428 (handle_search_memory): Use simple_search_memory.
429
a038ffd8
SM
4302020-10-07 Simon Marchi <simon.marchi@efficios.com>
431
432 * Makefile.in (COMPILE): Add CXXFLAGS.
433 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
434 (gdbserver$(EXEEXT)): Add CXXFLAGS.
435 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
436 ($(IPA_LIB)): Add CXXFLAGS.
437 (IPAGENT_COMPILE): Add CXXFLAGS.
438
bbe90b5d 4392020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
440
441 * configure.srv: Support ARC architecture.
442 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
443 * linux-arc-low.cc: New file.
444
48491055
KR
4452020-10-07 Kamil Rytarowski <n54@gmx.com>
446
447 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
448 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
449 (netbsd_process_target::qxfer_libraries_svr4): Update.
450
2be01f63
KR
4512020-10-07 Kamil Rytarowski <n54@gmx.com>
452
453 * netbsd-low.cc: Fix whitespace formatting.
454 * netbsd-amd64-low.cc: Likewise.
455
91e5e8db
KR
4562020-10-07 Kamil Rytarowski <n54@gmx.com>
457
458 * netbsd-low.cc (netbsd_process_target::read_memory)
459 (netbsd_process_target::write_memory): Update.
460
9529c852
KR
4612020-10-07 Kamil Rytarowski <n54@gmx.com>
462
463 * netbsd-aarch64-low.cc: Add.
464 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
465 * configure.srv: Add aarch64*-*-netbsd*.
466
981b570a
SV
4672020-10-06 Shahab Vahedi <shahab@synopsys.com>
468
469 * regcache.cc (register_data): Remove unused "fetch" argument.
470
6b01403b
SM
4712020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
472
473 * server.cc (handle_monitor_command): Handle "set
474 debug-event-loop".
475 (captured_main): Handle "--debug-event-loop".
476 (monitor_show_help): Mention new setting.
477 (gdbserver_usage): Mention new flag.
478
2554f6f5
SM
4792020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
480
481 * linux-low.cc (linux_process_target::async): Pass name to
482 add_file_handler.
483 * remote-utils.cc (handle_accept_event): Likewise.
484 (remote_open): Likewise.
485
8b667fae
KR
4862020-10-01 Kamil Rytarowski <n54@gmx.com>
487
488 * netbsd-i386-low.cc: Add.
489 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
490 * configure.srv: Add i[34567]86-*-netbsd*.
491
15397b0e
KR
4922020-10-01 Kamil Rytarowski <n54@gmx.com>
493
494 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
495 (netbsd_target_regsets): Now const.
496 (the_low_target): Remove.
497 (class netbsd_amd64_target, the_netbsd_amd64_target)
498 (the_netbsd_target): Add.
499 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
500 low_arch_setup ().
501 (netbsd_process_target::fetch_registers)
502 (netbsd_process_target::store_registers, initialize_low): Update.
503 (the_netbsd_target): Remove.
504 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
505 (the_low_target, netbsd_tdesc): Remove.
506 (netbsd_process_target::get_regs_info)
507 (netbsd_process_target::low_arch_setup): Add.
508
99bb393f
HD
5092020-09-23 Hannes Domani <ssbssa@yahoo.de>
510
511 * win32-low.cc: Remove local wow64_process variable.
512 * win32-low.h: Remove local wow64_process variable.
513
b60cea74
TT
5142020-09-18 Tom Tromey <tromey@adacore.com>
515
516 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
517 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
518 (netbsd_process_target::wait): Change type of target_options.
519 * win32-low.h (class win32_process_target) <wait>: Update.
520 * win32-low.cc (win32_process_target::wait): Update.
521 * target.h (class process_stratum_target) <wait>: Update.
522 (mywait): Update.
523 * target.cc (mywait, target_wait): Change type of "options".
524 * linux-low.h (class linux_process_target) <wait, wait_1>:
525 Update.
526 * linux-low.cc (linux_process_target::wait)
527 (linux_process_target::wait_1): Update.
528
db92ac45
TT
5292020-09-15 Tom Tromey <tromey@adacore.com>
530
531 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
532 (xmltarget_amd64_linux_no_xml): Now arrays.
533
27087b7f
TT
5342020-09-14 Tom Tromey <tromey@adacore.com>
535
536 * tracepoint.cc (eval_result_names): Now const.
537 * ax.cc (gdb_agent_op_names): Now const.
538
62ba5048
KR
5392020-09-10 Kamil Rytarowski <n54@gmx.com>
540
541 * netbsd-low.cc: Add.
542 * netbsd-low.h: Likewise.
543 * netbsd-amd64-low.cc: Likewise.
544 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
545 "netbsd-amd64-low.cc".
546 * configure.srv: Add x86_64-*-netbsd*.
547
ece5bc8a
SM
5482020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
549
550 * server.cc (captured_main): Accept multiple `--selftest=`
551 options. Pass all `--selftest=` arguments to run_tests.
552
c8693053
RO
5532020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
554
555 * configure, config.in: Regenerate.
556
05a6b8c2
EZ
5572020-07-26 Eli Zaretskii <eliz@gnu.org>
558
559 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
560 When checking whether socklen_t type is defined, use ws2tcpip.h if
561 it is available and sys/socket.h isn't.
562 * configure: Regenerate.
563 * config.in: Regenerate.
564
028a4603
PA
5652020-07-22 Pedro Alves <pedro@palves.net>
566
567 * inferiors.cc (switch_to_process): New, moved here from
568 thread-db.cc, and made extern.
569 * inferiors.h (switch_to_process): Declare.
570 * server.cc: Include "gdbsupport/scoped_restore.h".
571 (handle_qxfer_threads_proper): Now returns bool. Prepare to
572 access memory around target calls.
573 (handle_qxfer_threads): Handle errors.
574 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
575
05c309a8
SM
5762020-07-21 Simon Marchi <simon.marchi@efficios.com>
577
578 * linux-low.cc (stopped_pids): Make static.
579
0e267416
AB
5802020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
581
582 * tdesc.cc (allocate_target_description): Add header comment.
583 (target_desc_deleter::operator()): New function.
584 * tdesc.h (struct target_desc): Declare as final.
585
b315b67d
SM
5862020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
587
588 * server.cc (handle_query): Use std::vector of
589 std::string for `qsupported` vector. Use separate
590 vector for unknowns.
591 * target.h (class process_stratum_target) <process_qsupported>:
592 Change parameters to array_view of const char *.
593 (target_process_qsupported): Remove `count` parameter.
594 * target.cc (process_stratum_target::process_qsupported): Change
595 parameters to array_view of const char *.
596 * linux-x86-low.cc (class x86_target) <process_qsupported>:
597 Likewise.
598
f638ed73
TV
5992020-06-29 Tom de Vries <tdevries@suse.de>
600
601 * ax.h: Include gdbsupport/debug_agent.h.
602
fbf42f4e
AB
6032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
604
605 * tdesc.cc (struct tdesc_compatible_info): New struct.
606 (tdesc_compatible_info_list): New function.
607 (tdesc_compatible_info_arch_name): New function.
608
013e3554
TBA
6092020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
610
611 Use std::list to stop pending signal instead of manually-created
612 linked list.
613 * linux-low.h: Include <list>.
614 (struct pending_signal): Move here from linux-low.cc.
615 (struct lwp_info) <pending_signals>
616 <pending_signals_to_report>: Update the type.
617 * linux-low.cc (struct pending_signals): Remove.
618 (linux_process_target::delete_lwp)
619 (linux_process_target::add_lwp)
620 (enqueue_one_deferred_signal)
621 (dequeue_one_deferred_signal)
622 (enqueue_pending_signal)
623 (linux_process_target::resume_one_lwp_throw)
624 (linux_process_target::thread_needs_step_over)
625 (linux_process_target::resume_one_thread)
626 (linux_process_target::proceed_one_lwp): Update the use of pending
627 signal list.
628
7d458ea5
SM
6292020-06-17 Simon Marchi <simon.marchi@efficios.com>
630
631 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
632 Remove.
633
84b300de
SM
6342020-06-12 Simon Marchi <simon.marchi@efficios.com>
635
636 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
637 * configure.srv: Remove mingw32ce cases.
638 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
639 * win32-low.h (to_back_slashes): Remove.
640 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
641
96c16e2b
SM
6422020-06-12 Simon Marchi <simon.marchi@efficios.com>
643
644 * Makefile.in (SFILES): linux-tile-low.cc.
645 * configure.srv: Remove tilegx case.
646 * linux-tile-low.cc: Remove.
647
bd1467ae
SM
6482020-06-12 Simon Marchi <simon.marchi@efficios.com>
649
650 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
651 * configure.srv: Remove m32r case.
652 * linux-m32r-low.cc: Remove.
653
7b46bf6f
SM
6542020-06-12 Simon Marchi <simon.marchi@efficios.com>
655
656 * Makefile.in (SFILES): Remove linux-cris-low.c.
657 * configure.srv: Remove cris cases.
658 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
659
1fa29f56
SM
6602020-06-12 Simon Marchi <simon.marchi@efficios.com>
661
662 * Makefile.in (SFILES): Remove linux-bfin-low.c.
663 * configure.srv: Remove bfin case.
664 * linux-bfin-low.cc: Remove.
665 * linux-low.cc: Remove BFIN-conditional code.
666
613f149a
SM
6672020-06-12 Simon Marchi <simon.marchi@efficios.com>
668
669 * configure: Re-generate.
670 * configure.ac: Remove srv_qnx test.
671 * configure.srv: Remove nto case.
672 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
673 * remote-utils.c: Remove __QNX__-guarded code.
674
fdb95bf5
SM
6752020-06-12 Simon Marchi <simon.marchi@efficios.com>
676
677 * configure: Re-generate.
678 * configure.ac: Remove srv_lynxos test.
679 * configure.srv: Remove lynxos cases.
680 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
681 Remove.
682
c00094dc
SM
6832020-06-12 Simon Marchi <simon.marchi@efficios.com>
684
685 * README: Fix a few outdated or incoherent things.
686
6479bf85
HD
6872020-05-27 Hannes Domani <ssbssa@yahoo.de>
688
689 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
690 (win32_clear_inferiors): Use open_process_used.
691 (get_child_debug_event): Likewise.
692
bea571eb
MW
6932020-05-25 Michael Weghorn <m.weghorn@posteo.de>
694
695 PR gdbserver/25893
696 * linux-low.cc (linux_process_target::create_inferior),
697 lynx-low.cc (lynx_process_target::create_inferior),
698 win32-low.cc (win32_process_target::create_inferior): Use
699 construct_inferior_arguments instead of stringify_argv
700 to get string representation which properly escapes
701 special characters.
702 * server.cc (handle_v_run): Just pass empty program arg
703 as such, since any further processing is now handled via
704 construct_inferior_arguments.
705
ace6b919
MW
7062020-05-25 Michael Weghorn <m.weghorn@posteo.de>
707
708 * nto-low.cc (nto_process_target::create_inferior): Pass
709 argv to spawnp function as char **.
710
b69ca137
MW
7112020-05-25 Michael Weghorn <m.weghorn@posteo.de>
712
713 * server.cc (captured_main), (handle_v_run): No longer
714 insert extra NULL element to args vector.
715
51e2cfa2
PA
7162020-05-23 Pedro Alves <palves@redhat.com>
717
718 * gdb-safe-ctype.h: New.
719
8bbf0394
TBA
7202020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
721
722 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
723 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
724 (ia64_target::low_breakpoint_at): Ditto.
725
01370779
HD
7262020-05-15 Hannes Domani <ssbssa@yahoo.de>
727
728 * win32-i386-low.cc (i386_supports_z_point_type): Handle
729 Z_PACKET_HW_BP z_type.
730 (i386_insert_point): Handle raw_bkpt_type type.
731 (i386_remove_point): Likewise.
732
7d186bc0
HD
7332020-04-30 Hannes Domani <ssbssa@yahoo.de>
734
735 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
736 Add arch/i386.o.
737 * win32-arm-low.cc (arm_num_regs): New function.
738 (struct win32_target_ops): Use arm_num_regs.
739 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
740 processes.
741 (i386_get_thread_context): Likewise.
742 (i386_prepare_to_resume): Likewise.
743 (i386_thread_added): Likewise.
744 (i386_single_step): Likewise.
745 (i386_fetch_inferior_register): Likewise.
746 (i386_store_inferior_register): Likewise.
747 (i386_arch_setup): Likewise.
748 (i386_win32_num_regs): New function.
749 (struct win32_target_ops): Use i386_win32_num_regs.
750 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
751 processes.
752 (win32_require_context): Likewise.
753 (child_add_thread): Likewise.
754 (do_initial_child_stuff): Likewise.
755 (continue_one_thread): Likewise.
756 (win32_process_target::resume): Likewise.
757 (load_psapi): Likewise.
758 (win32_add_all_dlls): Likewise.
759 (maybe_adjust_pc): Likewise.
760 (win32_process_target::qxfer_siginfo): Likewise.
761 (initialize_low): Likewise.
762 * win32-low.h (struct win32_target_ops): Change num_regs to
763 callback function.
764
1eb39914
SM
7652020-04-27 Simon Marchi <simon.marchi@efficios.com>
766
767 * configure.ac: Remove check for fs_base/gs_base in
768 user_regs_struct.
769 * configure: Re-generate.
770 * config.in: Re-generate.
771 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
772 x86_store_gregset): Adjust.
773
51ac8e22
HD
7742020-04-22 Hannes Domani <ssbssa@yahoo.de>
775
776 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
777 comparison.
778
a010605f
TT
7792020-04-16 Tom Tromey <tromey@adacore.com>
780
781 * win32-low.cc (windows_nat::handle_access_violation): New
782 function.
783
e2275c6e
SM
7842020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
785
786 * win32-low.cc (get_child_debug_event): Fix format string warning.
787
73944e9f
TT
7882020-04-13 Tom Tromey <tom@tromey.com>
789
790 * server.h (gdb_fildes_t): Remove typedef.
791 * remote-utils.c (remote_desc, list_desc): Now int.
792 (INVALID_DESCRIPTOR): Remove.
793 (gdb_connected, remote_close)
794 (check_remote_input_interrupt_request): Update.
795 * utils.h (pfildes): Don't declare.
796 * utils.c (pfildes): Remove.
797
55d7aec8
TT
7982020-04-13 Tom Tromey <tom@tromey.com>
799
800 * server.h (handle_serial_event, handle_target_event): Update.
801 * server.c: Don't call initialize_event_loop.
802 (keep_processing_events): New global.
803 (handle_serial_event): Return void. Set keep_processing_events.
804 (handle_target_event): Return void.
805 (start_event_loop): Move from event-loop.c. Rewrite.
806 * remote-utils.c (handle_accept_event): Return void.
807 (reset_readchar): Use delete_timer.
808 (process_remaining): Return void.
809 (reschedule): Use create_timer.
810 * event-loop.h: Remove.
811 * event-loop.cc: Remove.
812 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
813
e487f994
TT
8142020-04-13 Tom Tromey <tom@tromey.com>
815
816 * server.c (invoke_async_signal_handlers)
817 (check_async_event_handlers, flush_streams, gdb_select): New
818 functions.
819
8ae8e197
TT
8202020-04-13 Tom Tromey <tom@tromey.com>
821
822 * configure: Rebuild.
823 * config.in: Rebuild.
824
360ad8b3
TT
8252020-04-08 Tom Tromey <tromey@adacore.com>
826
827 PR gdb/22992
828 * win32-low.c (child_continue): Call matching_pending_stop.
829 (get_child_debug_event): Call fetch_pending_stop. Push pending
830 stop when needed.
831
523d4f80
TT
8322020-04-08 Tom Tromey <tromey@adacore.com>
833
834 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
835 (win32_process_target::supports_stopped_by_sw_breakpoint):
836 Declare.
837 * win32-low.c (win32_supports_z_point_type): Always handle
838 Z_PACKET_SW_BP.
839 (win32_insert_point): Call insert_memory_breakpoint when needed.
840 (win32_remove_point): Call remove_memory_breakpoint when needed.
841 (win32_process_target::stopped_by_sw_breakpoint)
842 (win32_process_target::supports_stopped_by_sw_breakpoint): New
843 methods.
844 (win32_target_ops): Update.
845 (maybe_adjust_pc): New function.
846 (win32_wait): Call maybe_adjust_pc.
847
e54e5929
TT
8482020-04-08 Tom Tromey <tromey@adacore.com>
849
850 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
851 field.
852 * win32-i386-low.c (the_low_target): Update.
853 * win32-arm-low.c (the_low_target): Update.
854
d6225aff
TT
8552020-04-08 Tom Tromey <tromey@adacore.com>
856
857 * win32-low.h (win32_process_target::read_pc)
858 (win32_process_target::write_pc): Declare.
859 * win32-low.c (win32_process_target::read_pc)
860 (win32_process_target::write_pc): New methods.
861 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
862 functions.
863 (the_low_target): Update.
864 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
865 functions.
866 (the_low_target): Update.
867
2c1d95e8
TT
8682020-04-08 Tom Tromey <tromey@adacore.com>
869
870 * win32-low.c (win32_kill, get_child_debug_event): Use
871 wait_for_debug_event.
872
e758e19c
TT
8732020-04-08 Tom Tromey <tromey@adacore.com>
874
875 * win32-low.c (child_continue): Call continue_last_debug_event.
876
8d30e395
TT
8772020-04-08 Tom Tromey <tromey@adacore.com>
878
879 * win32-low.c (handle_exception): Remove.
880 (windows_nat::handle_ms_vc_exception): New function.
881 (get_child_debug_event): Add "continue_status" parameter.
882 Update.
883 (win32_wait): Update.
884
a816ba18
TT
8852020-04-08 Tom Tromey <tromey@adacore.com>
886
887 * win32-low.c (windows_nat::handle_load_dll): Rename from
888 handle_load_dll. No longer static.
889 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
890 No longer static.
891
d41b524f
TT
8922020-04-08 Tom Tromey <tromey@adacore.com>
893
894 * win32-low.c (handle_output_debug_string): Add parameter. Change
895 return type.
896 (win32_kill, get_child_debug_event): Update.
897
3c76026d
TT
8982020-04-08 Tom Tromey <tromey@adacore.com>
899
900 * win32-low.c (current_process_handle, current_process_id)
901 (main_thread_id, last_sig, current_event, siginfo_er): Move to
902 nat/windows-nat.c.
903
9d8679cc
TT
9042020-04-08 Tom Tromey <tromey@adacore.com>
905
906 * win32-low.c (get_image_name): Remove.
907 (handle_load_dll): Update.
908
28688adf
TT
9092020-04-08 Tom Tromey <tromey@adacore.com>
910
911 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
912 No longer static. Change parameters.
913 (child_add_thread, child_fetch_inferior_registers)
914 (child_store_inferior_registers, win32_resume)
915 (win32_get_tib_address): Update.
916
4834dad0
TT
9172020-04-08 Tom Tromey <tromey@adacore.com>
918
919 * win32-low.h (struct win32_target_ops): Use qualified names where
920 needed.
921 * win32-i386-low.c: Add "using namespace".
922 * win32-low.c: Add "using namespace".
923 * win32-arm-low.c: Add "using namespace".
924
65bafd5b
TT
9252020-04-08 Tom Tromey <tromey@adacore.com>
926
927 * win32-low.c (delete_thread_info): Don't call CloseHandle.
928
98a03287
TT
9292020-04-08 Tom Tromey <tromey@adacore.com>
930
931 * win32-low.c (win32_require_context, suspend_one_thread): Use
932 windows_thread_info::suspend.
933 (continue_one_thread): Use windows_thread_info::resume.
934 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
935
62fe396b
TT
9362020-04-08 Tom Tromey <tromey@adacore.com>
937
938 * win32-i386-low.c (update_debug_registers)
939 (i386_prepare_to_resume, i386_thread_added): Update.
940
e9534bd2
TT
9412020-04-08 Tom Tromey <tromey@adacore.com>
942
943 * win32-low.c (child_add_thread): Use new.
944 (delete_thread_info): Use delete.
945
ae1f8880
TT
9462020-04-08 Tom Tromey <tromey@adacore.com>
947
948 * win32-low.h (struct windows_thread_info): Remove.
949
e56f8ccb
TT
9502020-04-08 Tom Tromey <tromey@adacore.com>
951
952 * win32-low.h (struct windows_thread_info): Rename from
953 win32_thread_info. Remove typedef.
954 (struct win32_target_ops, win32_require_context): Update.
955 * win32-low.c (win32_get_thread_context)
956 (win32_set_thread_context, win32_prepare_to_resume)
957 (win32_require_context, thread_rec, child_add_thread)
958 (delete_thread_info, continue_one_thread)
959 (child_fetch_inferior_registers, child_store_inferior_registers)
960 (win32_resume, suspend_one_thread, win32_get_tib_address):
961 Update.
962 * win32-i386-low.c (update_debug_registers)
963 (win32_get_current_dr, i386_get_thread_context)
964 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
965 (i386_fetch_inferior_register, i386_store_inferior_register):
966 Update.
967 * win32-arm-low.c (arm_get_thread_context)
968 (arm_fetch_inferior_register, arm_store_inferior_register):
969 Update.
970
0dd7b52e
TBA
9712020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
972
973 * linux-low.h (struct linux_target_ops): Remove.
974 (the_low_target): Remove.
975 * linux-x86-low.cc (the_low_target): Remove.
976 * linux-aarch64-low.cc (the_low_target): Ditto.
977 * linux-arm-low.cc (the_low_target): Ditto.
978 * linux-bfin-low.cc (the_low_target): Ditto.
979 * linux-cris-low.cc (the_low_target): Ditto.
980 * linux-crisv32-low.cc (the_low_target): Ditto.
981 * linux-ia64-low.cc (the_low_target): Ditto.
982 * linux-m32r-low.cc (the_low_target): Ditto.
983 * linux-m68k-low.cc (the_low_target): Ditto.
984 * linux-mips-low.cc (the_low_target): Ditto.
985 * linux-nios2-low.cc (the_low_target): Ditto.
986 * linux-ppc-low.cc (the_low_target): Ditto.
987 * linux-riscv-low.cc (the_low_target): Ditto.
988 * linux-s390-low.cc (the_low_target): Ditto.
989 * linux-sh-low.cc (the_low_target): Ditto.
990 * linux-sparc-low.cc (the_low_target): Ditto.
991 * linux-tic6x-low.cc (the_low_target): Ditto.
992 * linux-tile-low.cc (the_low_target): Ditto.
993 * linux-xtensa-low.cc (the_low_target): Ditto.
994
fc5ecdb6
TBA
9952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
996
997 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
998 linux target define the op by overriding the declaration in
999 process_stratum_target.
1000
1001 * linux-low.h (struct linux_target_ops): Remove the op.
1002 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
1003 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
1004 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
1005 (x86_get_ipa_tdesc_idx): Turn into...
1006 (x86_target::get_ipa_tdesc_idx): ...this.
1007 (the_low_target): Remove the op field.
1008 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
1009 (ppc_get_ipa_tdesc_idx): Turn into...
1010 (ppc_target::get_ipa_tdesc_idx): ...this.
1011 (the_low_target): Remove the op field.
1012 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
1013 (s390_get_ipa_tdesc_idx): Turn into...
1014 (s390_target::get_ipa_tdesc_idx): ...this.
1015 (the_low_target): Remove the op field.
1016
9eedd27d
TBA
10172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1018
1019 Turn the 'get_syscall_trapinfo' linux target op into a method
1020 of process_stratum_target.
1021
1022 * linux-low.h (struct linux_target_ops): Remove the op.
1023 (class linux_process_target) <get_syscall_trapinfo>
1024 <gdb_catch_this_syscall>
1025 <low_supports_catch_syscall>
1026 <low_get_syscall_trapinfo>: Declare.
1027 * linux-low.cc (get_syscall_trapinfo): Turn into...
1028 (linux_process_target::get_syscall_trapinfo): ...this.
1029 (linux_process_target::low_get_syscall_trapinfo): Define.
1030 (gdb_catch_this_syscall_p): Turn into...
1031 (linux_process_target::gdb_catch_this_syscall): ...this.
1032 (linux_process_target::low_supports_catch_syscall): Define.
1033
1034 Update the callers below.
1035
1036 (linux_process_target::wait_1)
1037 (linux_process_target::supports_catch_syscall)
1038
1039 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
1040 <low_get_syscall_trapinfo>: Declare.
1041 (x86_target::low_supports_catch_syscall): Define.
1042 (x86_get_syscall_trapinfo): Turn into...
1043 (x86_target::low_get_syscall_trapinfo): ...this.
1044 (the_low_target): Remove the op field.
1045 * linux-aarch64-low.cc (class aarch64_target)
1046 <low_supports_catch_syscall>
1047 <low_get_syscall_trapinfo>: Declare.
1048 (aarch64_target::low_supports_catch_syscall): Define.
1049 (aarch64_get_syscall_trapinfo): Turn into...
1050 (aarch64_target::low_get_syscall_trapinfo): ...this.
1051 (the_low_target): Remove the op field.
1052 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1053 <low_get_syscall_trapinfo>: Declare.
1054 (arm_target::low_supports_catch_syscall): Define.
1055 (arm_get_syscall_trapinfo): Turn into...
1056 (arm_target::low_get_syscall_trapinfo): ...this.
1057 (the_low_target): Remove the op field.
1058 * linux-ppc-low.cc (the_low_target): Remove the op field.
1059 * linux-s390-low.cc (the_low_target): Remove the op field.
1060
b31cdfa6
TBA
10612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1062
1063 Remove the 'supports_hardware_single_step' linux target op and
1064 override the process_stratum_target's op definition in
1065 linux_process_target to return true.
1066
1067 * linux-low.h (struct linux_target_ops): Remove the op.
1068 (class linux_process_target) <finish_step_over>
1069 <maybe_hw_step>: Declare.
1070 * linux-low.cc (can_hardware_single_step): Remove.
1071 (maybe_hw_step): Turn into...
1072 (linux_process_target::maybe_hw_step): ...this.
1073 (finish_step_over): Turn into...
1074 (linux_process_target::finish_step_over): ...this.
1075 (linux_process_target::supports_hardware_single_step): Update
1076 to return true.
1077
1078 Update the callers below.
1079
1080 (linux_process_target::single_step)
1081 (linux_process_target::resume_one_lwp_throw)
1082
1083 * linux-arm-low.cc (class arm_target)
1084 <supports_hardware_single_step>: Declare.
1085 (arm_supports_hardware_single_step): Turn into...
1086 (arm_target::supports_hardware_single_step): ...this.
1087 (the_low_target): Remove the op field.
1088 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1089 (the_low_target): Remove the op field.
1090 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1091 Remove.
1092 (the_low_target): Remove the op field.
1093 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1094 (the_low_target): Remove the op field.
1095 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1096 (the_low_target): Remove the op field.
1097 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1098 (the_low_target): Remove the op field.
1099 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1100 (the_low_target): Remove the op field.
1101 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1102 (the_low_target): Remove the op field.
1103 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1104 (the_low_target): Remove the op field.
1105 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1106 (the_low_target): Remove the op field.
1107 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1108 (the_low_target): Remove the op field.
1109 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1110 (the_low_target): Remove the op field.
1111 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1112 Remove.
1113 (the_low_target): Remove the op field.
1114
9cfd8715
TBA
11152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1116
1117 Turn the 'supports_range_stepping' linux target op into a method
1118 of linux_process_target.
1119
1120 * linux-low.h (struct linux_target_ops): Remove the op.
1121 (class linux_process_target) <low_supports_range_stepping>: Declare.
1122 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1123 Define.
1124 (linux_process_target::supports_range_stepping): Update the call
1125 site.
1126 * linux-x86-low.cc (class x86_target)
1127 <low_supports_range_stepping>: Declare.
1128 (x86_supports_range_stepping): Turn into...
1129 (x86_target::low_supports_range_stepping): ...this.
1130 (the_low_target): Remove the op field.
1131 * linux-aarch64-low.cc (class aarch64_target)
1132 <low_supports_range_stepping>: Declare.
1133 (aarch64_supports_range_stepping): Turn into...
1134 (aarch64_target::low_supports_range_stepping): ...this.
1135 (the_low_target): Remove the op field.
1136 * linux-arm-low.cc (the_low_target): Remove the op field.
1137 * linux-bfin-low.cc (the_low_target): Ditto.
1138 * linux-crisv32-low.cc (the_low_target): Ditto.
1139 * linux-m32r-low.cc (the_low_target): Ditto.
1140 * linux-m68k-low.cc (the_low_target): Ditto.
1141 * linux-ppc-low.cc (the_low_target): Ditto.
1142 * linux-s390-low.cc (the_low_target): Ditto.
1143 * linux-sh-low.cc (the_low_target): Ditto.
1144 * linux-tic6x-low.cc (the_low_target): Ditto.
1145 * linux-tile-low.cc (the_low_target): Ditto.
1146 * linux-xtensa-low.cc (the_low_target): Ditto.
1147
ab64c999
TBA
11482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1149
1150 Remove the 'emit_ops' linux target ops and let the concrete
1151 linux target define the op by overriding the declaration of
1152 process_stratum_target.
1153
1154 * linux-low.h (struct linux_target_ops): Remove the op.
1155 (class linux_process_target) <emit_ops>: Remove.
1156 * linux-low.cc (linux_process_target::emit_ops): Remove.
1157 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1158 (x86_emit_ops): Turn into...
1159 (x86_target::emit_ops): ...this.
1160 (the_low_target): Remove the op field.
1161 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1162 (aarch64_emit_ops): Turn into...
1163 (aarch64_target::emit_ops): ...this.
1164 (the_low_target): Remove the op field.
1165 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1166 (ppc_emit_ops): Turn into...
1167 (ppc_target::emit_ops): ...this.
1168 (the_low_target): Remove the op field.
1169 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1170 (s390_emit_ops): Turn into...
1171 (s390_target::emit_ops): ...this.
1172 (the_low_target): Remove the op field.
1173 * linux-arm-low.cc (the_low_target): Remove the op field.
1174 * linux-bfin-low.cc (the_low_target): Ditto.
1175 * linux-crisv32-low.cc (the_low_target): Ditto.
1176 * linux-m32r-low.cc (the_low_target): Ditto.
1177 * linux-m68k-low.cc (the_low_target): Ditto.
1178 * linux-sh-low.cc (the_low_target): Ditto.
1179 * linux-tic6x-low.cc (the_low_target): Ditto.
1180 * linux-tile-low.cc (the_low_target): Ditto.
1181 * linux-xtensa-low.cc (the_low_target): Ditto.
1182
809a0c35
TBA
11832020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1184
1185 Remove the 'install_fast_tracepoint_jump_pad' and
1186 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1187 concrete linux target define the ops by overriding the declarations
1188 of process_stratum_target.
1189
1190 * linux-low.h (struct linux_target_ops): Remove the ops.
1191 (class linux_process_target) <supports_fast_tracepoints>
1192 <install_fast_tracepoint_jump_pad>
1193 <get_min_fast_tracepoint_insn_len>: Remove.
1194 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1195 (linux_process_target::install_fast_tracepoint_jump_pad)
1196 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1197 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1198 <install_fast_tracepoint_jump_pad>
1199 <get_min_fast_tracepoint_insn_len>: Declare.
1200 (x86_target::supports_fast_tracepoints): Define.
1201 (x86_install_fast_tracepoint_jump_pad): Turn into...
1202 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1203 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1204 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1205 (the_low_target): Remove the op fields.
1206 * linux-aarch64-low.cc (class aarch64_target)
1207 <supports_fast_tracepoints>
1208 <install_fast_tracepoint_jump_pad>
1209 <get_min_fast_tracepoint_insn_len>: Declare.
1210 (aarch64_target::supports_fast_tracepoints): Define.
1211 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1212 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1213 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1214 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1215 (the_low_target): Remove the op fields.
1216 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1217 <install_fast_tracepoint_jump_pad>
1218 <get_min_fast_tracepoint_insn_len>: Declare.
1219 (ppc_target::supports_fast_tracepoints): Define.
1220 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1221 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1222 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1223 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1224 (the_low_target): Remove the op fields.
1225 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1226 <install_fast_tracepoint_jump_pad>
1227 <get_min_fast_tracepoint_insn_len>: Declare.
1228 (s390_target::supports_fast_tracepoints): Define.
1229 (s390_install_fast_tracepoint_jump_pad): Turn into...
1230 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1231 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1232 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1233 (the_low_target): Remove the op fields.
1234 * linux-arm-low.cc (the_low_target): Remove the op fields.
1235 * linux-bfin-low.cc (the_low_target): Ditto.
1236 * linux-crisv32-low.cc (the_low_target): Ditto.
1237 * linux-m32r-low.cc (the_low_target): Ditto.
1238 * linux-m68k-low.cc (the_low_target): Ditto.
1239 * linux-sh-low.cc (the_low_target): Ditto.
1240 * linux-tic6x-low.cc (the_low_target): Ditto.
1241 * linux-tile-low.cc (the_low_target): Ditto.
1242 * linux-xtensa-low.cc (the_low_target): Ditto.
1243
13e567af
TBA
12442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1245
1246 Turn the 'get_thread_area' linux target op into a method of
1247 process_stratum_target.
1248
1249 * linux-low.h (struct linux_target_ops): Remove the op.
1250 (class linux_process_target) <stuck_in_jump_pad>
1251 <linux_fast_tracepoint_collecting>
1252 <low_get_thread_area>: Declare.
1253 * linux-low.cc (supports_fast_tracepoints): Remove.
1254 (linux_fast_tracepoint_collecting): Turn into...
1255 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1256 (linux_process_target::low_get_thread_area): Define.
1257 (stuck_in_jump_pad_callback): Turn into...
1258 (linux_process_target::stuck_in_jump_pad): ...this.
1259
1260 Update the caller below.
1261
1262 (linux_process_target::stabilize_threads)
1263
1264 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1265 Declare.
1266 (x86_get_thread_area): Turn into...
1267 (x86_target::low_get_thread_area): ...this.
1268 (the_low_target): Remove the op field.
1269 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1270 Declare.
1271 (aarch64_get_thread_area): Turn into...
1272 (aarch64_target::low_get_thread_area): ...this.
1273 (the_low_target): Remove the op field.
1274 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1275 Declare.
1276 (ppc_get_thread_area): Turn into...
1277 (ppc_target::low_get_thread_area): ...this.
1278 (the_low_target): Remove the op field.
1279 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1280 Declare.
1281 (s390_get_thread_area): Turn into...
1282 (s390_target::low_get_thread_area): ...this.
1283 (the_low_target): Remove the op field.
1284 * linux-arm-low.cc (the_low_target): Remove the op field.
1285 * linux-bfin-low.cc (the_low_target): Ditto.
1286 * linux-crisv32-low.cc (the_low_target): Ditto.
1287 * linux-m32r-low.cc (the_low_target): Ditto.
1288 * linux-m68k-low.cc (the_low_target): Ditto.
1289 * linux-sh-low.cc (the_low_target): Ditto.
1290 * linux-tic6x-low.cc (the_low_target): Ditto.
1291 * linux-tile-low.cc (the_low_target): Ditto.
1292 * linux-xtensa-low.cc (the_low_target): Ditto.
1293
47f70aa7
TBA
12942020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1295
1296 Remote the 'supports_tracepoints' linux target op and let the
1297 concrete linux target define it by overriding the op declared in
1298 process_stratum_target.
1299
1300 * linux-low.h (struct linux_target_ops): Remove the op.
1301 (class linux_process_target) <supports_tracepoints>: Remove.
1302 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1303 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1304 Declare.
1305 (x86_supports_tracepoints): Turn into...
1306 (x86_target::supports_tracepoints): ...this.
1307 (the_low_target): Remove the op field.
1308 * linux-aarch64-low.cc (class aarch64_target)
1309 <supports_tracepoints>: Declare.
1310 (aarch64_supports_tracepoints): Turn into...
1311 (aarch64_target::supports_tracepoints): ...this.
1312 (the_low_target): Remove the op field.
1313 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1314 Declare.
1315 (ppc_supports_tracepoints): Turn into...
1316 (ppc_target::supports_tracepoints): ...this.
1317 (the_low_target): Remove the op field.
1318 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1319 Declare.
1320 (s390_supports_tracepoints): Turn into...
1321 (s390_target::supports_tracepoints): ...this.
1322 (the_low_target): Remove the op field.
1323 * linux-arm-low.cc (the_low_target): Remove the op field.
1324 * linux-bfin-low.cc (the_low_target): Ditto.
1325 * linux-crisv32-low.cc (the_low_target): Ditto.
1326 * linux-m32r-low.cc (the_low_target): Ditto.
1327 * linux-m68k-low.cc (the_low_target): Ditto.
1328 * linux-sh-low.cc (the_low_target): Ditto.
1329 * linux-tic6x-low.cc (the_low_target): Ditto.
1330 * linux-tile-low.cc (the_low_target): Ditto.
1331 * linux-xtensa-low.cc (the_low_target): Ditto.
1332
a5b5da92
TBA
13332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1334
1335 Remove the 'process_qsupported' linux target op and let a concrete
1336 linux target define the op by overriding the op declaration in
1337 process_stratum_target.
1338
1339 * linux-low.h (struct linux_target_ops): Remove the op.
1340 (class linux_process_target) <process_qsupported>: Remove.
1341 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1342 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1343 (x86_linux_process_qsupported): Turn into...
1344 (x86_target::process_qsupported): ...this.
1345 (the_low_target): Remove the op field.
1346 * linux-aarch64-low.cc (the_low_target): Remove the op
1347 field.
1348 * linux-arm-low.cc (the_low_target): Ditto.
1349 * linux-bfin-low.cc (the_low_target): Ditto.
1350 * linux-crisv32-low.cc (the_low_target): Ditto.
1351 * linux-m32r-low.cc (the_low_target): Ditto.
1352 * linux-m68k-low.cc (the_low_target): Ditto.
1353 * linux-ppc-low.cc (the_low_target): Ditto.
1354 * linux-s390-low.cc (the_low_target): Ditto.
1355 * linux-sh-low.cc (the_low_target): Ditto.
1356 * linux-tic6x-low.cc (the_low_target): Ditto.
1357 * linux-tile-low.cc (the_low_target): Ditto.
1358 * linux-xtensa-low.cc (the_low_target): Ditto.
1359
d7599cc0
TBA
13602020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1361
1362 Turn the 'prepare_to_resume' linux target op into a method of
1363 linux_process_target.
1364
1365 * linux-low.h (struct linux_target_ops): Remove the op.
1366 (class linux_process_target) <low_prepare_to_resume>: Declare.
1367 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1368 Define.
1369
1370 Update the callers below:
1371
1372 (linux_process_target::resume_one_lwp_throw)
1373 (linux_process_target::low_prepare_to_resume)
1374
1375 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1376 Declare.
1377 (x86_target::low_prepare_to_resume): Define.
1378 (the_low_target): Remove the op field.
1379 * linux-aarch64-low.cc (class aarch64_target)
1380 <low_prepare_to_resume>: Declare.
1381 (aarch64_target::low_prepare_to_resume): Define.
1382 (the_low_target): Remove the op field.
1383 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1384 Declare.
1385 (arm_prepare_to_resume): Turn into...
1386 (arm_target::low_prepare_to_resume): ...this.
1387 (the_low_target): Remove the op field.
1388 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1389 Declare.
1390 (mips_linux_prepare_to_resume): Turn into...
1391 (mips_target::low_prepare_to_resume): ...this.
1392 (the_low_target): Remove the op field.
1393 * linux-bfin-low.cc (the_low_target): Remove the op field.
1394 * linux-crisv32-low.cc (the_low_target): Ditto.
1395 * linux-m32r-low.cc (the_low_target): Ditto.
1396 * linux-m68k-low.cc (the_low_target): Ditto.
1397 * linux-ppc-low.cc (the_low_target): Ditto.
1398 * linux-s390-low.cc (the_low_target): Ditto.
1399 * linux-sh-low.cc (the_low_target): Ditto.
1400 * linux-tic6x-low.cc (the_low_target): Ditto.
1401 * linux-tile-low.cc (the_low_target): Ditto.
1402 * linux-xtensa-low.cc (the_low_target): Ditto.
1403
fd000fb3
TBA
14042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1405
1406 Turn the 'new_process', 'delete_process', 'new_thread',
1407 'delete_thread', and 'new_fork' linux target ops into methods
1408 of linux_process_target.
1409
1410 * linux-low.h (struct linux_target_ops): Remove the ops.
1411 (class linux_process_target) <add_linux_process>
1412 <add_lwp>
1413 <delete_lwp>
1414 <attach_lwp>
1415 <detach_one_lwp>
1416 <check_zombie_leaders>
1417 <filter_exit_event>
1418 <low_new_process>
1419 <low_delete_process>
1420 <low_new_thread>
1421 <low_delete_thread>
1422 <low_new_fork>: Declare.
1423 * linux-low.cc (delete_lwp): Turn into...
1424 (linux_process_target::delete_lwp): ...this.
1425 (linux_process_target::low_delete_thread): Define.
1426 (linux_add_process): Turn into...
1427 (linux_process_target::add_linux_process): ...this.
1428 (linux_process_target::low_new_process): Define.
1429 (linux_process_target::low_delete_process): Define.
1430 (linux_process_target::low_new_fork): Define.
1431 (add_lwp): Turn into...
1432 (linux_process_target::add_lwp): ...this.
1433 (linux_process_target::low_new_thread): Define.
1434 (linux_attach_lwp): Turn into...
1435 (linux_process_target::attach_lwp): ...this.
1436 (linux_detach_one_lwp): Turn into...
1437 (linux_process_target::detach_one_lwp): ...this.
1438 (linux_detach_lwp_callback): Remove and inline...
1439 (linux_process_target::detach): ...here.
1440 (check_zombie_leaders): Turn into...
1441 (linux_process_target::check_zombie_leaders): ...this.
1442 (filter_exit_event): Turn into...
1443 (linux_process_target::filter_exit_event): ...this.
1444
1445 Update the callers below.
1446
1447 (linux_process_target::handle_extended_wait)
1448 (linux_process_target::create_inferior)
1449 (attach_proc_task_lwp_callback)
1450 (linux_process_target::attach)
1451 (linux_process_target::detach)
1452 (linux_process_target::mourn)
1453 * thread-db.cc (attach_thread)
1454
1455 * linux-x86-low.cc (class x86_target) <low_new_process>
1456 <low_delete_process>
1457 <low_new_thread>
1458 <low_delete_thread>
1459 <low_new_fork>: Declare.
1460 (x86_linux_new_process): Turn into...
1461 (x86_target::low_new_process): ...this.
1462 (x86_linux_delete_process): Turn into...
1463 (x86_target::low_delete_process): ...this.
1464 (x86_target::low_new_thread): Define.
1465 (x86_target::low_delete_thread): Define.
1466 (x86_linux_new_fork): Turn into...
1467 (x86_target::low_new_fork): ...this.
1468 (the_low_target): Remove the op fields.
1469 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1470 <low_delete_process>
1471 <low_new_thread>
1472 <low_delete_thread>
1473 <low_new_fork>: Declare.
1474 (aarch64_linux_new_process): Turn into...
1475 (aarch64_target::low_new_process): ...this.
1476 (aarch64_linux_delete_process): Turn into...
1477 (aarch64_target::low_delete_process): ...this.
1478 (aarch64_target::low_new_thread): Define.
1479 (aarch64_target::low_delete_thread): Define.
1480 (aarch64_linux_new_fork): Turn into...
1481 (aarch64_target::low_new_fork): ...this.
1482 (the_low_target): Remove the op fields.
1483 * linux-arm-low.cc (class arm_target) <low_new_process>
1484 <low_delete_process>
1485 <low_new_thread>
1486 <low_delete_thread>
1487 <low_new_fork>: Declare.
1488 (arm_new_process): Turn into...
1489 (arm_target::low_new_process): ...this.
1490 (arm_delete_process): Turn into...
1491 (arm_target::low_delete_process): ...this.
1492 (arm_new_thread): Turn into...
1493 (arm_target::low_new_thread): ...this.
1494 (arm_delete_thread): Turn into...
1495 (arm_target::low_delete_thread): ...this.
1496 (arm_new_fork): Turn into...
1497 (arm_target::low_new_fork): ...this.
1498 (the_low_target): Remove the op fields.
1499 * linux-mips-low.cc (class mips_target) <low_new_process>
1500 <low_delete_process>
1501 <low_new_thread>
1502 <low_delete_thread>
1503 <low_new_fork>: Declare.
1504 (mips_linux_new_process): Turn into...
1505 (mips_target::low_new_process): ...this.
1506 (mips_linux_delete_process): Turn into...
1507 (mips_target::low_delete_process): ...this.
1508 (mips_linux_new_thread): Turn into...
1509 (mips_target::low_new_thread): ...this.
1510 (mips_linux_delete_thread): Turn into...
1511 (mips_target::low_delete_thread): ...this.
1512 (mips_linux_new_fork): Turn into...
1513 (mips_target::low_new_fork): ...this.
1514 (the_low_target): Remove the op fields.
1515 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1516 * linux-crisv32-low.cc (the_low_target): Ditto.
1517 * linux-m32r-low.cc (the_low_target): Ditto.
1518 * linux-m68k-low.cc (the_low_target): Ditto.
1519 * linux-ppc-low.cc (the_low_target): Ditto.
1520 * linux-s390-low.cc (the_low_target): Ditto.
1521 * linux-sh-low.cc (the_low_target): Ditto.
1522 * linux-tic6x-low.cc (the_low_target): Ditto.
1523 * linux-tile-low.cc (the_low_target): Ditto.
1524 * linux-xtensa-low.cc (the_low_target): Ditto.
1525
cb63de7c
TBA
15262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1527
1528 Turn the 'siginfo_fixup' linux target op into a method of
1529 linux_process_target.
1530
1531 * linux-low.h (struct linux_target_ops): Remove the op.
1532 (class linux_process_target) <siginfo_fixup>
1533 <low_siginfo_fixup>: Declare.
1534 * linux-low.cc (siginfo_fixup): Turn into...
1535 (linux_process_target::siginfo_fixup): ...this.
1536 (linux_process_target::low_siginfo_fixup): Define.
1537 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1538 (x86_siginfo_fixup): Turn into...
1539 (x86_target::low_siginfo_fixup): ...this.
1540 (the_low_target): Remove the op field.
1541 * linux-aarch64-low.cc (class aarch64_target):
1542 <low_siginfo_fixup>: Declare.
1543 (aarch64_linux_siginfo_fixup): Turn into...
1544 (aarch64_target::low_siginfo_fixup): ...this.
1545 (the_low_target): Remove the op field.
1546 * linux-arm-low.cc (the_low_target): Remove the op field.
1547 * linux-bfin-low.cc (the_low_target): Ditto.
1548 * linux-crisv32-low.cc (the_low_target): Ditto.
1549 * linux-m32r-low.cc (the_low_target): Ditto.
1550 * linux-m68k-low.cc (the_low_target): Ditto.
1551 * linux-mips-low.cc (the_low_target): Ditto.
1552 * linux-ppc-low.cc (the_low_target): Ditto.
1553 * linux-s390-low.cc (the_low_target): Ditto.
1554 * linux-sh-low.cc (the_low_target): Ditto.
1555 * linux-tic6x-low.cc (the_low_target): Ditto.
1556 * linux-tile-low.cc (the_low_target): Ditto.
1557 * linux-xtensa-low.cc (the_low_target): Ditto.
1558
b35db733
TBA
15592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1560
1561 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1562 linux target ops into methods of linux_process_target.
1563
1564 * linux-low.h (struct linux_target_ops): Remove the ops.
1565 (class linux_process_target) <low_collect_ptrace_register>
1566 <low_store_ptrace_register>: Declare.
1567 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1568 (linux_process_target::low_supply_ptrace_register): Define.
1569
1570 Update the callers below.
1571
1572 (linux_process_target::fetch_register)
1573 (linux_process_target::store_register)
1574
1575 * linux-x86-low.cc (the_low_target): Remove the op fields.
1576 * linux-aarch64-low.cc (the_low_target): Ditto.
1577 * linux-arm-low.cc (the_low_target): Ditto.
1578 * linux-bfin-low.cc (the_low_target): Ditto.
1579 * linux-crisv32-low.cc (the_low_target): Ditto.
1580 * linux-m32r-low.cc (the_low_target): Ditto.
1581 * linux-m68k-low.cc (the_low_target): Ditto.
1582 * linux-sh-low.cc (the_low_target): Ditto.
1583 * linux-sparc-low.cc (the_low_target): Ditto.
1584 * linux-tic6x-low.cc (the_low_target): Ditto.
1585 * linux-tile-low.cc (the_low_target): Ditto.
1586 * linux-xtensa-low.cc (the_low_target): Ditto.
1587 * linux-mips-low.cc (class mips_target)
1588 <low_collect_ptrace_register>
1589 <low_supply_ptrace_register>: Declare.
1590 (mips_collect_ptrace_register): Turn into ...
1591 (mips_target::low_collect_ptrace_register): ...this.
1592 (mips_supply_ptrace_register): Turn into...
1593 (mips_target::low_supply_ptrace_register): ...this.
1594 (the_low_target): Remove the op fields.
1595 * linux-ppc-low.cc (class ppc_target)
1596 <low_collect_ptrace_register>
1597 <low_supply_ptrace_register>: Declare.
1598 (ppc_collect_ptrace_register): Turn into ...
1599 (ppc_target::low_collect_ptrace_register): ...this.
1600 (ppc_supply_ptrace_register): Turn into ...
1601 (ppc_target::low_supply_ptrace_register): ...this.
1602 (ppc_fill_gregset): Update for the calls to
1603 low_collect_ptrace_register.
1604 (the_low_target): Remove the op fields.
1605 * linux-s390-low.cc (class s390_target)
1606 <low_collect_ptrace_register>
1607 <low_supply_ptrace_register>: Declare.
1608 (s390_collect_ptrace_register): Turn into ...
1609 (s390_target::low_collect_ptrace_register): ...this.
1610 (s390_supply_ptrace_register): Turn into ...
1611 (s390_target::low_supply_ptrace_register): ...this.
1612 (s390_fill_gregset): Update for the calls to
1613 low_collect_ptrace_register.
1614 (the_low_target): Remove the op fields.
1615
ac1bbaca
TBA
16162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1617
1618 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1619 target ops into methods of linux_process_target.
1620
1621 * linux-low.h (struct linux_target_ops): Remove the ops.
1622 (class linux_process_target) <check_stopped_by_watchpoint>
1623 <low_stopped_by_watchpoint>
1624 <low_stopped_data_address>: Declare.
1625 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1626 (linux_process_target::check_stopped_by_watchpoint): ...this.
1627 (linux_process_target::low_stopped_by_watchpoint): Define.
1628 (linux_process_target::low_stopped_data_address): Define.
1629 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1630 <low_stopped_data_address>: Declare.
1631 (x86_stopped_by_watchpoint): Turn into...
1632 (x86_target::low_stopped_by_watchpoint): ...this.
1633 (x86_stopped_data_address): Turn into...
1634 (x86_target::low_stopped_data_address): ...this.
1635 (the_low_target): Remove the op fields.
1636 * linux-aarch64-low.cc (class aarch64_target)
1637 <low_stopped_by_watchpoint>
1638 <low_stopped_data_address>: Declare.
1639 (aarch64_stopped_by_watchpoint): Turn into...
1640 (aarch64_target::low_stopped_by_watchpoint): ...this.
1641 (aarch64_stopped_data_address): Turn into...
1642 (aarch64_target::low_stopped_data_address): ...this.
1643 (the_low_target): Remove the op fields.
1644 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1645 <low_stopped_data_address>: Declare.
1646 (arm_stopped_by_watchpoint): Turn into...
1647 (arm_target::low_stopped_by_watchpoint): ...this.
1648 (arm_stopped_data_address): Turn into...
1649 (arm_target::low_stopped_data_address): ...this.
1650 (the_low_target): Remove the op fields.
1651 * linux-crisv32-low.cc (class crisv32_target)
1652 <low_stopped_by_watchpoint>
1653 <low_stopped_data_address>: Declare.
1654 (cris_stopped_by_watchpoint): Turn into...
1655 (crisv32_target::low_stopped_by_watchpoint): ...this.
1656 (cris_stopped_data_address): Turn into...
1657 (crisv32_target::low_stopped_data_address): ...this.
1658 (the_low_target): Remove the op fields.
1659 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1660 <low_stopped_data_address>: Declare.
1661 (mips_stopped_by_watchpoint): Turn into...
1662 (mips_target::low_stopped_by_watchpoint): ...this.
1663 (mips_stopped_data_address): Turn into...
1664 (mips_target::low_stopped_data_address): ...this.
1665 (the_low_target): Remove the op fields.
1666 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1667 * linux-m32r-low.cc (the_low_target): Ditto.
1668 * linux-m68k-low.cc (the_low_target): Ditto.
1669 * linux-ppc-low.cc (the_low_target): Ditto.
1670 * linux-s390-low.cc (the_low_target): Ditto.
1671 * linux-sh-low.cc (the_low_target): Ditto.
1672 * linux-sparc-low.cc (the_low_target): Ditto.
1673 * linux-tic6x-low.cc (the_low_target): Ditto.
1674 * linux-tile-low.cc (the_low_target): Ditto.
1675 * linux-xtensa-low.cc (the_low_target): Ditto.
1676
9db9aa23
TBA
16772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1678
1679 Turn the 'insert_point' and 'remove_point' linux target ops into
1680 methods of linux_process_target.
1681
1682 * linux-low.h (struct linux_target_ops): Remove the ops.
1683 (class linux_process_target) <low_insert_point>
1684 <low_remove_point>: Declare.
1685 * linux-low.cc (linux_process_target::low_insert_point)
1686 (linux_process_target::low_remove_point): Define.
1687 (linux_process_target::insert_point)
1688 (linux_process_target::remove_point): Update for calls to
1689 low_insert_point and low_remove_point.
1690 * linux-x86-low.cc (class x86_target) <low_insert_point>
1691 <low_remove_point>: Declare.
1692 (x86_insert_point): Turn into...
1693 (x86_target::low_insert_point): ...this.
1694 (x86_remove_point): Turn into...
1695 (x86_target::low_remove_point): ...this.
1696 (the_low_target): Remove the op fields.
1697 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1698 <low_remove_point>: Declare.
1699 (aarch64_insert_point): Turn into...
1700 (aarch64_target::low_insert_point): ...this.
1701 (aarch64_remove_point): Turn into...
1702 (aarch64_target::low_remove_point): ...this.
1703 (the_low_target): Remove the op fields.
1704 * linux-arm-low.cc (class arm_target) <low_insert_point>
1705 <low_remove_point>: Declare.
1706 (arm_insert_point): Turn into...
1707 (arm_target::low_insert_point): ...this.
1708 (arm_remove_point): Turn into...
1709 (arm_target::low_remove_point): ...this.
1710 (the_low_target): Remove the op fields.
1711 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1712 <low_remove_point>: Declare.
1713 (crisv32_insert_point): Turn into...
1714 (crisv32_target::low_insert_point): ...this.
1715 (crisv32_remove_point): Turn into...
1716 (crisv32_target::low_remove_point): ...this.
1717 (the_low_target): Remove the op fields.
1718 * linux-mips-low.cc (class mips_target) <low_insert_point>
1719 <low_remove_point>: Declare.
1720 (mips_insert_point): Turn into...
1721 (mips_target::low_insert_point): ...this.
1722 (mips_remove_point): Turn into...
1723 (mips_target::low_remove_point): ...this.
1724 (the_low_target): Remove the op fields.
1725 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1726 <low_remove_point>: Declare.
1727 (ppc_insert_point): Turn into...
1728 (ppc_target::low_insert_point): ...this.
1729 (ppc_remove_point): Turn into...
1730 (ppc_target::low_remove_point): ...this.
1731 (the_low_target): Remove the op fields.
1732 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1733 * linux-m32r-low.cc (the_low_target): Ditto.
1734 * linux-m68k-low.cc (the_low_target): Ditto.
1735 * linux-s390-low.cc (the_low_target): Ditto.
1736 * linux-sh-low.cc (the_low_target): Ditto.
1737 * linux-sparc-low.cc (the_low_target): Ditto.
1738 * linux-tic6x-low.cc (the_low_target): Ditto.
1739 * linux-tile-low.cc (the_low_target): Ditto.
1740 * linux-xtensa-low.cc (the_low_target): Ditto.
1741
007c9b97
TBA
17422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1743
1744 Remove the 'supports_z_point_type' linux target op and let the
1745 concrete linux target define it by overriding the op declared in
1746 process_stratum_target.
1747
1748 * linux-low.cc (linux_process_target::supports_z_point_type):
1749 Remove.
1750 * linux-low.h (struct linux_target_ops): Remove the op.
1751 (class linux_process_target) <supports_z_point_type>: Remove.
1752 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1753 Declare.
1754 (x86_supports_z_point_type): Turn into...
1755 (x86_target::supports_z_point_type): ...this.
1756 (the_low_target): Remove the op field.
1757 * linux-aarch64-low.cc (class aarch64_target)
1758 <supports_z_point_type>: Declare.
1759 (aarch64_supports_z_point_type): Turn into...
1760 (aarch64_target::supports_z_point_type): ...this.
1761 (the_low_target): Remove the op field.
1762 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1763 Declare.
1764 (arm_supports_z_point_type): Turn into...
1765 (arm_target::supports_z_point_type): ...this.
1766 (the_low_target): Remove the op field.
1767 * linux-crisv32-low.cc (class crisv32_target)
1768 <supports_z_point_type>: Declare.
1769 (cris_supports_z_point_type): Turn into...
1770 (crisv32_target::supports_z_point_type): ...this.
1771 (the_low_target): Remove the op field.
1772 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1773 Declare.
1774 (mips_supports_z_point_type): Turn into...
1775 (mips_target::supports_z_point_type): ...this.
1776 (the_low_target): Remove the op field.
1777 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1778 Declare.
1779 (ppc_supports_z_point_type): Turn into...
1780 (ppc_target::supports_z_point_type): ...this.
1781 (the_low_target): Remove the op field.
1782 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1783 Declare.
1784 (s390_supports_z_point_type): Turn into...
1785 (s390_target::supports_z_point_type): ...this.
1786 (the_low_target): Remove the op field.
1787 * linux-bfin-low.cc (the_low_target): Remove the op field.
1788 * linux-m32r-low.cc (the_low_target): Ditto.
1789 * linux-m68k-low.cc (the_low_target): Ditto.
1790 * linux-sh-low.cc (the_low_target): Ditto.
1791 * linux-sparc-low.cc (the_low_target): Ditto.
1792 * linux-tic6x-low.cc (the_low_target): Ditto.
1793 * linux-tile-low.cc (the_low_target): Ditto.
1794 * linux-xtensa-low.cc (the_low_target): Ditto.
1795
d7146cda
TBA
17962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1797
1798 Turn the 'breakpoint_at' linux target op into a method of
1799 linux_process_target.
1800
1801 * linux-low.h (struct linux_target_ops): Remove the op.
1802 (class linux_process_target) <low_breakpoint_at>: Declare.
1803
1804 Update the callers below:
1805
1806 * linux-low.cc (linux_process_target::save_stop_reason)
1807 (linux_process_target::thread_still_has_status_pending)
1808 (linux_process_target::wait_1)
1809
1810 * linux-x86-low.cc (class x86_target)
1811 <low_breakpoint_at>: Declare.
1812 (x86_breakpoint_at): Turn into...
1813 (x86_target::low_breakpoint_at): ...this.
1814 (the_low_target): Remove the op field.
1815 * linux-aarch64-low.cc (class aarch64_target)
1816 <low_breakpoint_at>: Declare.
1817 (aarch64_breakpoint_at): Turn into...
1818 (aarch64_target::low_breakpoint_at): ...this.
1819 (the_low_target): Remove the op field.
1820 * linux-arm-low.cc (class arm_target)
1821 <low_breakpoint_at>: Declare.
1822 (arm_target::low_breakpoint_at): Define.
1823 (the_low_target): Remove the op field.
1824 * linux-bfin-low.cc (class bfin_target)
1825 <low_breakpoint_at>: Declare.
1826 (bfin_breakpoint_at): Turn into...
1827 (bfin_target::low_breakpoint_at): ...this.
1828 (the_low_target): Remove the op field.
1829 * linux-cris-low.cc (class cris_target)
1830 <low_breakpoint_at>: Declare.
1831 (cris_breakpoint_at): Turn into...
1832 (cris_target::low_breakpoint_at): ...this.
1833 (the_low_target): Remove the op field.
1834 * linux-crisv32-low.cc (class crisv32_target)
1835 <low_breakpoint_at>: Declare.
1836 (crisv32_breakpoint_at): Turn into...
1837 (crisv32_target::low_breakpoint_at): ...this.
1838 (the_low_target): Remove the op field.
1839 * linux-ia64-low.cc (class ia64_target)
1840 <low_breakpoint_at>: Declare.
1841 (ia64_target::low_breakpoint_at): Define.
1842 * linux-m32r-low.cc (class m32r_target)
1843 <low_breakpoint_at>: Declare.
1844 (m32r_breakpoint_at): Turn into...
1845 (m32r_target::low_breakpoint_at): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-m68k-low.cc (class m68k_target)
1848 <low_breakpoint_at>: Declare.
1849 (m68k_breakpoint_at): Turn into...
1850 (m68k_target::low_breakpoint_at): ...this.
1851 (the_low_target): Remove the op field.
1852 * linux-mips-low.cc (class mips_target)
1853 <low_breakpoint_at>: Declare.
1854 (mips_breakpoint_at): Turn into...
1855 (mips_target::low_breakpoint_at): ...this.
1856 (the_low_target): Remove the op field.
1857 * linux-nios2-low.cc (class nios2_target)
1858 <low_breakpoint_at>: Declare.
1859 (nios2_breakpoint_at): Turn into...
1860 (nios2_target::low_breakpoint_at): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-ppc-low.cc (class ppc_target)
1863 <low_breakpoint_at>: Declare.
1864 (ppc_breakpoint_at): Turn into...
1865 (ppc_target::low_breakpoint_at): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-riscv-low.cc (class riscv_target)
1868 <low_breakpoint_at>: Declare.
1869 (riscv_breakpoint_at): Turn into...
1870 (riscv_target::low_breakpoint_at): ...this.
1871 (the_low_target): Remove the op field.
1872 * linux-s390-low.cc (class s390_target)
1873 <low_breakpoint_at>: Declare.
1874 (s390_breakpoint_at): Turn into...
1875 (s390_target::low_breakpoint_at): ...this.
1876 (the_low_target): Remove the op field.
1877 * linux-sh-low.cc (class sh_target)
1878 <low_breakpoint_at>: Declare.
1879 (sh_breakpoint_at): Turn into...
1880 (sh_target::low_breakpoint_at): ...this.
1881 (the_low_target): Remove the op field.
1882 * linux-sparc-low.cc (class sparc_target)
1883 <low_breakpoint_at>: Declare.
1884 (sparc_breakpoint_at): Turn into...
1885 (sparc_target::low_breakpoint_at): ...this.
1886 (the_low_target): Remove the op field.
1887 * linux-tic6x-low.cc (class tic6x_target)
1888 <low_breakpoint_at>: Declare.
1889 (tic6x_breakpoint_at): Turn into...
1890 (tic6x_target::low_breakpoint_at): ...this.
1891 (the_low_target): Remove the op field.
1892 * linux-tile-low.cc (class tile_target)
1893 <low_breakpoint_at>: Declare.
1894 (tile_breakpoint_at): Turn into...
1895 (tile_target::low_breakpoint_at): ...this.
1896 (the_low_target): Remove the op field.
1897 * linux-xtensa-low.cc (class xtensa_target)
1898 <low_breakpoint_at>: Declare.
1899 (xtensa_breakpoint_at): Turn into...
1900 (xtensa_target::low_breakpoint_at): ...this.
1901 (the_low_target): Remove the op field.
1902
d4807ea2
TBA
19032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1904
1905 Turn the 'decr_pc_after_break' linux_target_ops field into
1906 a method of linux_process_target.
1907
1908 * linux-low.h (struct linux_target_ops)
1909 <decr_pc_after_break>: Remove.
1910 (class linux_process_target) <low_decr_pc_after_break>: New method
1911 declaration.
1912 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1913 New method implementation.
1914
1915 Update the users below.
1916
1917 (linux_process_target::save_stop_reason)
1918 (linux_process_target::wait_1)
1919 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1920 New declaration.
1921 (x86_target::low_decr_pc_after_break): New method implementation.
1922 (the_low_target): Remove the field.
1923 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1924 New declaration.
1925 (bfin_target::low_decr_pc_after_break): New method implementation.
1926 (the_low_target): Remove the field.
1927 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1928 New declaration.
1929 (m68k_target::low_decr_pc_after_break): New method implementation.
1930 (the_low_target): Remove the field.
1931 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1932 New declaration.
1933 (s390_target::low_decr_pc_after_break): New method implementation.
1934 (the_low_target): Remove the field.
1935 * linux-aarch64-low.cc (the_low_target): Remove the field.
1936 * linux-arm-low.cc (the_low_target): Remove the field.
1937 * linux-cris-low.cc (the_low_target): Remove the field.
1938 * linux-crisv32-low.cc (the_low_target): Remove the field.
1939 * linux-m32r-low.cc (the_low_target): Remove the field.
1940 * linux-mips-low.cc (the_low_target): Remove the field.
1941 * linux-nios2-low.cc (the_low_target): Remove the field.
1942 * linux-ppc-low.cc (the_low_target): Remove the field.
1943 * linux-riscv-low.cc (the_low_target): Remove the field.
1944 * linux-sh-low.cc (the_low_target): Remove the field.
1945 * linux-sparc-low.cc (the_low_target): Remove the field.
1946 * linux-tic6x-low.cc (the_low_target): Remove the field.
1947 * linux-tile-low.cc (the_low_target): Remove the field.
1948 * linux-xtensa-low.cc (the_low_target): Remove the field.
1949
7582c77c
TBA
19502020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1951
1952 Remove the 'supports_software_single_step' linux target op and let
1953 the concrete linux target define it by overriding the op in
1954 process_stratum_target.
1955 Turn the 'get_next_pcs' linux target op into a method of
1956 linux_process_target.
1957
1958 * linux-low.h (struct linux_target_ops): Remove the ops.
1959 (class linux_process_target) <supports_software_single_step>:
1960 Remove.
1961 <low_get_next_pcs>: Declare.
1962 * linux-low.cc (can_software_single_step): Remove.
1963 (linux_process_target::low_get_next_pcs): Define.
1964 (linux_process_target::supports_software_single_step): Remove.
1965
1966 Update the callers below.
1967
1968 (linux_process_target::handle_extended_wait)
1969 (linux_process_target::wait_1)
1970 (linux_process_target::install_software_single_step_breakpoints)
1971 (linux_process_target::single_step)
1972 (linux_process_target::thread_needs_step_over)
1973 (linux_process_target::proceed_one_lwp)
1974 (linux_process_target::supports_range_stepping)
1975
1976 * linux-x86-low.cc (the_low_target): Remove the op field.
1977 * linux-aarch64-low.cc (the_low_target): Ditto.
1978 * linux-bfin-low.cc (the_low_target): Ditto.
1979 * linux-cris-low.cc (the_low_target): Ditto.
1980 * linux-crisv32-low.cc (the_low_target): Ditto.
1981 * linux-m32r-low.cc (the_low_target): Ditto.
1982 * linux-m68k-low.cc (the_low_target): Ditto.
1983 * linux-mips-low.cc (the_low_target): Ditto.
1984 * linux-nios2-low.cc (the_low_target): Ditto.
1985 * linux-ppc-low.cc (the_low_target): Ditto.
1986 * linux-riscv-low.cc (the_low_target): Ditto.
1987 * linux-s390-low.cc (the_low_target): Ditto.
1988 * linux-sh-low.cc (the_low_target): Ditto.
1989 * linux-sparc-low.cc (the_low_target): Ditto.
1990 * linux-tic6x-low.cc (the_low_target): Ditto.
1991 * linux-tile-low.cc (the_low_target): Ditto.
1992 * linux-xtensa-low.cc (the_low_target): Ditto.
1993 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1994 <supports_software_single_step>: Declare.
1995 (arm_target::supports_software_single_step): Define.
1996 (arm_gdbserver_get_next_pcs): Turn into...
1997 (arm_target::low_get_next_pcs): ...this.
1998 (the_low_target): Remove the op field.
1999
3ca4edb6
TBA
20002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2001
2002 Remove the 'sw_breakpoint_from_kind' linux target op, and let
2003 the concrete linux target define it by overriding the op
2004 in process_stratum_target.
2005
2006 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
2007 Remove.
2008 * linux-low.h (struct linux_target_ops): Remove the op.
2009 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
2010 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
2011 Declare.
2012 (x86_sw_breakpoint_from_kind): Turn into...
2013 (x86_target::sw_breakpoint_from_kind): ...this.
2014 (the_low_target): Remove the op field.
2015 * linux-aarch64-low.cc (class aarch64_target)
2016 <sw_breakpoint_from_kind>: Declare.
2017 (aarch64_sw_breakpoint_from_kind): Turn into...
2018 (aarch64_target::sw_breakpoint_from_kind): ...this.
2019 (the_low_target): Remove the op field.
2020 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
2021 Declare.
2022 (arm_target::sw_breakpoint_from_kind): Define.
2023 (the_low_target): Remove the op field.
2024 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
2025 Declare.
2026 (bfin_sw_breakpoint_from_kind): Turn into...
2027 (bfin_target::sw_breakpoint_from_kind): ...this.
2028 (the_low_target): Remove the op field.
2029 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
2030 Declare.
2031 (cris_sw_breakpoint_from_kind): Turn into...
2032 (cris_target::sw_breakpoint_from_kind): ...this.
2033 (the_low_target): Remove the op field.
2034 * linux-crisv32-low.cc (class crisv32_target)
2035 <sw_breakpoint_from_kind>: Declare.
2036 (cris_sw_breakpoint_from_kind): Turn into...
2037 (crisv32_target::sw_breakpoint_from_kind): ...this.
2038 (the_low_target): Remove the op field.
2039 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
2040 Declare.
2041 (ia64_target::sw_breakpoint_from_kind): Define.
2042 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2043 Declare.
2044 (m32r_sw_breakpoint_from_kind): Turn into...
2045 (m32r_target::sw_breakpoint_from_kind): ...this.
2046 (the_low_target): Remove the op field.
2047 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2048 Declare.
2049 (m68k_sw_breakpoint_from_kind): Turn into...
2050 (m68k_target::sw_breakpoint_from_kind): ...this.
2051 (the_low_target): Remove the op field.
2052 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2053 Declare.
2054 (mips_sw_breakpoint_from_kind): Turn into...
2055 (mips_target::sw_breakpoint_from_kind): ...this.
2056 (the_low_target): Remove the op field.
2057 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2058 Declare.
2059 (nios2_sw_breakpoint_from_kind): Turn into...
2060 (nios2_target::sw_breakpoint_from_kind): ...this.
2061 (the_low_target): Remove the op field.
2062 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2063 Declare.
2064 (ppc_sw_breakpoint_from_kind): Turn into...
2065 (ppc_target::sw_breakpoint_from_kind): ...this.
2066 (the_low_target): Remove the op field.
2067 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2068 Declare.
2069 (riscv_sw_breakpoint_from_kind): Turn into...
2070 (riscv_target::sw_breakpoint_from_kind): ...this.
2071 (the_low_target): Remove the op field.
2072 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2073 Declare.
2074 (s390_sw_breakpoint_from_kind): Turn into...
2075 (s390_target::sw_breakpoint_from_kind): ...this.
2076 (the_low_target): Remove the op field.
2077 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2078 Declare.
2079 (sh_sw_breakpoint_from_kind): Turn into...
2080 (sh_target::sw_breakpoint_from_kind): ...this.
2081 (the_low_target): Remove the op field.
2082 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2083 Declare.
2084 (sparc_sw_breakpoint_from_kind): Turn into...
2085 (sparc_target::sw_breakpoint_from_kind): ...this.
2086 (the_low_target): Remove the op field.
2087 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2088 Declare.
2089 (tic6x_sw_breakpoint_from_kind): Turn into...
2090 (tic6x_target::sw_breakpoint_from_kind): ...this.
2091 (the_low_target): Remove the op field.
2092 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2093 Declare.
2094 (tile_sw_breakpoint_from_kind): Turn into...
2095 (tile_target::sw_breakpoint_from_kind): ...this.
2096 (the_low_target): Remove the op field.
2097 * linux-xtensa-low.cc (class xtensa_target)
2098 <sw_breakpoint_from_kind>: Declare.
2099 (xtensa_sw_breakpoint_from_kind): Turn into...
2100 (xtensa_target::sw_breakpoint_from_kind): ...this.
2101 (the_low_target): Remove the op field.
2102
06250e4e
TBA
21032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2104
2105 Remove the 'breakpoint_kind_from_pc' and
2106 'breakpoint_kind_from_current_state' linux target ops, and let the
2107 concrete linux target define them by overriding the ops of
2108 process_stratum_target.
2109
2110 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2111 Remove.
2112 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2113 * linux-low.h (struct linux_target_ops): Remove ops.
2114 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2115 <breakpoint_kind_from_current_state>: Remove.
2116 * linux-x86-low.cc (the_low_target): Remove the op fields.
2117 * linux-bfin-low.cc (the_low_target): Ditto.
2118 * linux-cris-low.cc (the_low_target): Ditto.
2119 * linux-crisv32-low.cc (the_low_target): Ditto.
2120 * linux-m32r-low.cc (the_low_target): Ditto.
2121 * linux-m68k-low.cc (the_low_target): Ditto.
2122 * linux-mips-low.cc (the_low_target): Ditto.
2123 * linux-nios2-low.cc (the_low_target): Ditto.
2124 * linux-ppc-low.cc (the_low_target): Ditto.
2125 * linux-s390-low.cc (the_low_target): Ditto.
2126 * linux-sh-low.cc (the_low_target): Ditto.
2127 * linux-sparc-low.cc (the_low_target): Ditto.
2128 * linux-tic6x-low.cc (the_low_target): Ditto.
2129 * linux-tile-low.cc (the_low_target): Ditto.
2130 * linux-xtensa-low.cc (the_low_target): Ditto.
2131 * linux-aarch64-low.cc (class aarch64_target)
2132 <breakpoint_kind_from_pc>
2133 <breakpoint_kind_from_current_state>: Declare.
2134 (aarch64_breakpoint_kind_from_pc): Turn into...
2135 (aarch64_target::breakpoint_kind_from_pc): ...this.
2136 (aarch64_breakpoint_kind_from_current_state): Turn into...
2137 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2138 (the_low_target): Remove the op fields.
2139 * linux-arm-low.cc (class arm_target):
2140 <breakpoint_kind_from_pc>
2141 <breakpoint_kind_from_current_state>: Declare.
2142 (arm_target::breakpoint_kind_from_pc): Define.
2143 (arm_target::breakpoint_kind_from_current_state): Define.
2144 (the_low_target): Remove the op fields.
2145 * linux-riscv-low.cc (class riscv_target):
2146 <breakpoint_kind_from_pc>: Declare.
2147 (riscv_breakpoint_kind_from_pc): Turn into...
2148 (riscv_target::breakpoint_kind_from_pc): ...this.
2149 (the_low_target): Remove the op fields.
2150
bf9ae9d8
TBA
21512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2152
2153 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2154 of linux_process_target.
2155
2156 * linux-low.h (struct linux_target_ops): Remove the ops.
2157 (class linux_process_target) <low_supports_breakpoints>
2158 <low_get_pc>
2159 <low_set_pc>: Declare.
2160 * linux-low.cc (supports_breakpoints): Turn into...
2161 (linux_process_target::low_supports_breakpoints): ...this.
2162 (linux_process_target::low_get_pc): Define.
2163 (linux_process_target::low_set_pc): Define.
2164
2165 Update the callers below.
2166
2167 (linux_process_target::get_pc)
2168 (linux_process_target::save_stop_reason)
2169 (linux_process_target::maybe_move_out_of_jump_pad)
2170 (linux_process_target::wait_1)
2171 (linux_process_target::resume_one_lwp_throw)
2172 (linux_process_target::resume)
2173 (linux_process_target::proceed_all_lwps)
2174 (linux_process_target::read_pc)
2175 (linux_process_target::write_pc)
2176
2177 * linux-x86-low.cc (class linux_process_target)
2178 <low_supports_breakpoints>
2179 <low_get_pc>
2180 <low_set_pc>: Declare.
2181 (x86_target::low_supports_breakpoints): Define.
2182 (x86_get_pc): Turn into...
2183 (x86_target::low_get_pc): ...this.
2184 (x86_set_pc): Turn into...
2185 (x86_target::low_set_pc): ...this.
2186 (the_low_target): Remove the op fields.
2187 * linux-arm-low.cc (class arm_target)
2188 <low_supports_breakpoints>
2189 <low_get_pc>
2190 <low_set_pc>: Declare.
2191 (arm_target::low_supports_breakpoints)
2192 (arm_target::low_get_pc)
2193 (arm_target::low_set_pc): Define.
2194 (the_low_target): Remove the op fields.
2195 * linux-bfin-low.cc (class bfin_target)
2196 <low_supports_breakpoints>
2197 <low_get_pc>
2198 <low_set_pc>: Declare.
2199 (bfin_target::low_supports_breakpoints)
2200 (bfin_target::low_get_pc)
2201 (bfin_target::low_set_pc): Define.
2202 (the_low_target): Remove the op fields.
2203 * linux-cris-low.cc (class cris_target)
2204 <low_supports_breakpoints>
2205 <low_get_pc>
2206 <low_set_pc>: Declare.
2207 (cris_target::low_supports_breakpoints)
2208 (cris_target::low_get_pc)
2209 (cris_target::low_set_pc): Define.
2210 (the_low_target): Remove the op fields.
2211 * linux-crisv32-low.cc (class crisv32_target)
2212 <low_supports_breakpoints>
2213 <low_get_pc>
2214 <low_set_pc>: Declare.
2215 (crisv32_target::low_supports_breakpoints)
2216 (crisv32_target::low_get_pc)
2217 (crisv32_target::low_set_pc): Define.
2218 (the_low_target): Remove the op fields.
2219 * linux-m32r-low.cc (class m32r_target)
2220 <low_supports_breakpoints>
2221 <low_get_pc>
2222 <low_set_pc>: Declare.
2223 (m32r_target::low_supports_breakpoints)
2224 (m32r_target::low_get_pc)
2225 (m32r_target::low_set_pc): Define.
2226 (the_low_target): Remove the op fields.
2227 * linux-m68k-low.cc (class m68k_target)
2228 <low_supports_breakpoints>
2229 <low_get_pc>
2230 <low_set_pc>: Declare.
2231 (m68k_target::low_supports_breakpoints)
2232 (m68k_target::low_get_pc)
2233 (m68k_target::low_set_pc): Define.
2234 (the_low_target): Remove the op fields.
2235 * linux-nios2-low.cc (class nios2_target)
2236 <low_supports_breakpoints>
2237 <low_get_pc>
2238 <low_set_pc>: Declare.
2239 (nios2_target::low_supports_breakpoints)
2240 (nios2_target::low_get_pc)
2241 (nios2_target::low_set_pc): Define.
2242 (the_low_target): Remove the op fields.
2243 * linux-sh-low.cc (class sh_target)
2244 <low_supports_breakpoints>
2245 <low_get_pc>
2246 <low_set_pc>: Declare.
2247 (sh_target::low_supports_breakpoints)
2248 (sh_target::low_get_pc)
2249 (sh_target::low_set_pc): Define.
2250 (the_low_target): Remove the op fields.
2251 * linux-xtensa-low.cc (class xtensa_target)
2252 <low_supports_breakpoints>
2253 <low_get_pc>
2254 <low_set_pc>: Declare.
2255 (xtensa_target::low_supports_breakpoints)
2256 (xtensa_target::low_get_pc)
2257 (xtensa_target::low_set_pc): Define.
2258 (the_low_target): Remove the op fields.
2259 * linux-sparc-low.cc (class sparc_target)
2260 <low_supports_breakpoints>
2261 <low_get_pc>: Declare.
2262 (sparc_target::low_supports_breakpoints)
2263 (sparc_target::low_get_pc): Define.
2264 (the_low_target): Remove the op fields.
2265 * linux-tile-low.cc (class tile_target)
2266 <low_supports_breakpoints>
2267 <low_get_pc>
2268 <low_set_pc>: Declare.
2269 (tile_target::low_supports_breakpoints)
2270 (tile_target::low_get_pc)
2271 (tile_target::low_set_pc): Define.
2272 (the_low_target): Remove the op fields.
2273 * linux-aarch64-low.cc (class aarch64_target)
2274 <low_supports_breakpoints>
2275 <low_get_pc>
2276 <low_set_pc>: Declare.
2277 (aarch64_target::low_supports_breakpoints): Define.
2278 (aarch64_get_pc): Turn into...
2279 (aarch64_target::low_get_pc): ...this.
2280 (aarch64_set_pc): Turn into...
2281 (aarch64_target::low_set_pc): ...this.
2282 (the_low_target): Remove the op fields.
2283 * linux-mips-low.cc (class mips_target)
2284 <low_supports_breakpoints>
2285 <low_get_pc>
2286 <low_set_pc>: Declare.
2287 (mips_target::low_supports_breakpoints): Define.
2288 (mips_get_pc): Turn into...
2289 (mips_target::low_get_pc): ...this.
2290 (mips_set_pc): Turn into...
2291 (mips_target::low_set_pc): ...this.
2292 (the_low_target): Remove the op fields.
2293 * linux-ppc-low.cc (class ppc_target)
2294 <low_supports_breakpoints>
2295 <low_get_pc>
2296 <low_set_pc>: Declare.
2297 (ppc_target::low_supports_breakpoints): Define.
2298 (ppc_get_pc): Turn into...
2299 (ppc_target::low_get_pc): ...this.
2300 (ppc_set_pc): Turn into...
2301 (ppc_target::low_set_pc): ...this.
2302 (the_low_target): Remove the op fields.
2303 * linux-riscv-low.cc (class riscv_target)
2304 <low_supports_breakpoints>
2305 <low_get_pc>
2306 <low_set_pc>: Declare.
2307 (riscv_target::low_supports_breakpoints): Define.
2308 (riscv_get_pc): Turn into...
2309 (riscv_target::low_get_pc): ...this.
2310 (riscv_set_pc): Turn into...
2311 (riscv_target::low_set_pc): ...this.
2312 (the_low_target): Remove the op fields.
2313 * linux-s390-low.cc (class s390_target)
2314 <low_supports_breakpoints>
2315 <low_get_pc>
2316 <low_set_pc>: Declare.
2317 (s390_target::low_supports_breakpoints): Define.
2318 (s390_get_pc): Turn into...
2319 (s390_target::low_get_pc): ...this.
2320 (s390_set_pc): Turn into...
2321 (s390_target::low_set_pc): ...this.
2322 (the_low_target): Remove the op fields.
2323 * linux-tic6x-low.cc (class tic6x_target)
2324 <low_supports_breakpoints>
2325 <low_get_pc>
2326 <low_set_pc>: Declare.
2327 (tic6x_target::low_supports_breakpoints): Define.
2328 (tic6x_get_pc): Turn into...
2329 (tic6x_target::low_get_pc): ...this.
2330 (tic6x_set_pc): Turn into...
2331 (tic6x_target::low_set_pc): ...this.
2332 (the_low_target): Remove the op fields.
2333
df95181f
TBA
23342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2335
2336 Turn some more static methods in linux-low into private methods
2337 of linux_process_target.
2338
2339 * linux-low.cc (get_pc): Turn into...
2340 (linux_process_target::get_pc): ...this.
2341 (save_stop_reason): Turn into...
2342 (linux_process_target::save_stop_reason): ...this.
2343 (thread_still_has_status_pending_p): Turn into...
2344 (linux_process_target::thread_still_has_status_pending): ...this.
2345 (status_pending_p_callback): Turn into...
2346 (linux_process_target::status_pending_p_callback): ...this.
2347 (resume_stopped_resumed_lwps): Turn into...
2348 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2349 (install_software_single_step_breakpoints): Turn into...
2350 (linux_process_target::install_software_single_step_breakpoints):
2351 ...this.
2352 (single_step): Turn into...
2353 (linux_process_target::single_step): ...this.
2354 (linux_resume_one_lwp_throw): Turn into...
2355 (linux_process_target::resume_one_lwp_throw): ...this.
2356 (linux_resume_one_lwp): Turn into...
2357 (linux_process_target::resume_one_lwp): ...this.
2358 (resume_status_pending_p): Turn into...
2359 (linux_process_target::resume_status_pending): ...this.
2360 (need_step_over_p): Turn into...
2361 (linux_process_target::thread_needs_step_over): ...this.
2362 (linux_resume_one_thread): Turn into...
2363 (linux_process_target::resume_one_thread): ...this.
2364 (proceed_one_lwp): Turn into...
2365 (linux_process_target::proceed_one_lwp): ...this.
2366 (unsuspend_and_proceed_one_lwp): Turn into...
2367 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2368
2369 Update the calls/references to the above functions below.
2370
2371 (linux_process_target::handle_extended_wait)
2372 (linux_process_target::filter_event)
2373 (linux_process_target::wait_for_event_filtered)
2374 (linux_process_target::wait_1)
2375 (linux_process_target::move_out_of_jump_pad)
2376 (linux_process_target::start_step_over)
2377 (linux_process_target::resume)
2378 (linux_process_target::proceed_all_lwps)
2379 (regsets_store_inferior_registers)
2380 (linux_process_target::store_register)
2381
2382 * linux-low.h (class linux_process_target)
2383 <get_pc>
2384 <save_stop_reason>
2385 <thread_still_has_status_pending>
2386 <status_pending_p_callback>
2387 <resume_stopped_resumed_lwps>
2388 <install_software_single_step_breakpoints>
2389 <single_step>
2390 <resume_one_lwp_throw>
2391 <resume_one_lwp>
2392 <resume_status_pending>
2393 <thread_needs_step_over>
2394 <resume_one_thread>
2395 <proceed_one_lwp>
2396 <unsuspend_and_proceed_one_lwp>: Declare.
2397
bd70b1f2
TBA
23982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2399
2400 Turn the 'fetch_register' linux target op into a method of
2401 linux_process_target.
2402
2403 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2404 (class linux_process_target) <low_fetch_register>: Declare.
2405 * linux-x86-low.cc (the_low_target)
2406 * linux-aarch64-low.cc (the_low_target)
2407 * linux-arm-low.cc (the_low_target)
2408 * linux-bfin-low.cc (the_low_target)
2409 * linux-cris-low.cc (the_low_target)
2410 * linux-crisv32-low.cc (the_low_target)
2411 * linux-m32r-low.cc (the_low_target)
2412 * linux-m68k-low.cc (the_low_target)
2413 * linux-nios2-low.cc (the_low_target)
2414 * linux-ppc-low.cc (the_low_target)
2415 * linux-s390-low.cc (the_low_target)
2416 * linux-sh-low.cc (the_low_target)
2417 * linux-sparc-low.cc (the_low_target)
2418 * linux-tic6x-low.cc (the_low_target)
2419 * linux-tile-low.cc (the_low_target)
2420 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2421 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2422 Declare.
2423 (ia64_fetch_register): Turn into...
2424 (ia64_target::low_fetch_register): ...this.
2425 (the_low_target): Remove the op field.
2426 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2427 Declare.
2428 (mips_fetch_register): Turn into...
2429 (mips_target::low_fetch_register): ...this.
2430 (the_low_target): Remove the op field.
2431 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2432 Declare.
2433 (riscv_fetch_register): Turn into...
2434 (riscv_target::low_fetch_register): ...this.
2435 (the_low_target): Remove the op field.
2436
2437 Update the callers below.
2438
2439 * linux-low.cc (linux_process_target::fetch_registers)
2440 (linux_process_target::low_fetch_register)
2441
daca57a7
TBA
24422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2443
2444 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2445 linux target ops into methods of linux_process_target.
2446
2447 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2448 (class linux_process_target) <fetch_register>
2449 <store_register>
2450 <usr_fetch_inferior_registers>
2451 <usr_store_inferior_registers>
2452 <low_cannot_fetch_register>
2453 <low_cannot_fetch_register> Declare.
2454 * linux-low.cc (fetch_register): Turn into...
2455 (linux_process_target::fetch_register): ...this.
2456 (store_register): Turn into ...
2457 (linux_process_target::store_register): ...this.
2458 (usr_fetch_inferior_registers): Turn into...
2459 (linux_process_target::usr_fetch_inferior_registers): ...this.
2460 (usr_store_inferior_registers): Turn into...
2461 (linux_process_target::usr_store_inferior_registers): ...this.
2462 * linux-x86-low.cc (class x86_target)
2463 <low_cannot_fetch_register>
2464 <low_cannot_store_register>: Declare.
2465 (x86_cannot_store_register): Turn into...
2466 (x86_target::low_cannot_store_register): ...this.
2467 (x86_cannot_fetch_register): Turn into...
2468 (x86_target::low_cannot_fetch_register): ...this.
2469 (the_low_target): Remove the target op fields.
2470 * linux-aarch64-low.cc (class aarch64_target)
2471 <low_cannot_fetch_register>
2472 <low_cannot_store_register>: Declare.
2473 (aarch64_target::low_cannot_fetch_register)
2474 (aarch64_target::low_cannot_store_register): Define.
2475 (the_low_target): Remove the op fields.
2476 * linux-arm-low.cc (class arm_target)
2477 <low_cannot_fetch_register>
2478 <low_cannot_store_register>: Declare.
2479 (arm_cannot_fetch_register): Turn into...
2480 (arm_target::low_cannot_fetch_register): ...this.
2481 (arm_cannot_store_register): Turn into...
2482 (arm_target::low_cannot_store_register): ...this.
2483 (the_low_target): Remove the op fields.
2484 * linux-bfin-low.cc (class bfin_target)
2485 <low_cannot_fetch_register>
2486 <low_cannot_store_register>: Declare.
2487 (bfin_cannot_fetch_register): Turn into...
2488 (bfin_target::low_cannot_fetch_register): ...this.
2489 (bfin_cannot_store_register): Turn into...
2490 (bfin_target::low_cannot_store_register): ...this.
2491 (the_low_target): Remove the op fields.
2492 * linux-cris-low.cc (class cris_target)
2493 <low_cannot_fetch_register>
2494 <low_cannot_store_register>: Declare.
2495 (cris_cannot_fetch_register): Turn into...
2496 (cris_target::low_cannot_fetch_register): ...this.
2497 (cris_cannot_store_register): Turn into...
2498 (cris_target::low_cannot_store_register): ...this.
2499 (the_low_target): Remove the op fields.
2500 * linux-crisv32-low.cc (class crisv32_target)
2501 <low_cannot_fetch_register>
2502 <low_cannot_store_register>: Declare.
2503 (crisv32_target::low_cannot_fetch_register)
2504 (crisv32_target::low_cannot_store_register): Define.
2505 (the_low_target): Remove the op fields.
2506 * linux-ia64-low.cc (class ia64_target)
2507 <low_cannot_fetch_register>
2508 <low_cannot_store_register>: Declare.
2509 (ia64_cannot_fetch_register): Turn into...
2510 (ia64_target::low_cannot_fetch_register): ...this.
2511 (ia64_cannot_store_register): Turn into...
2512 (ia64_target::low_cannot_store_register): ...this.
2513 (the_low_target): Remove the op fields.
2514 * linux-m32r-low.cc (class m32r_target)
2515 <low_cannot_fetch_register>
2516 <low_cannot_store_register>: Declare.
2517 (m32r_cannot_fetch_register): Turn into...
2518 (m32r_target::low_cannot_fetch_register): ...this.
2519 (m32r_cannot_store_register): Turn into...
2520 (m32r_target::low_cannot_store_register): ...this.
2521 (the_low_target): Remove the op fields.
2522 * linux-m68k-low.cc (class m68k_target)
2523 <low_cannot_fetch_register>
2524 <low_cannot_store_register>: Declare.
2525 (m68k_cannot_fetch_register): Turn into...
2526 (m68k_target::low_cannot_fetch_register): ...this.
2527 (m68k_cannot_store_register): Turn into...
2528 (m68k_target::low_cannot_store_register): ...this.
2529 (the_low_target): Remove the op fields.
2530 * linux-mips-low.cc (class mips_target)
2531 <low_cannot_fetch_register>
2532 <low_cannot_store_register>: Declare.
2533 (mips_cannot_fetch_register): Turn into...
2534 (mips_target::low_cannot_fetch_register): ...this.
2535 (mips_cannot_store_register): Turn into...
2536 (mips_target::low_cannot_store_register): ...this.
2537 (get_usrregs_info): Inline at the call sites in
2538 low_cannot_fetch_register and low_cannot_store_register,
2539 and remove.
2540 (the_low_target): Remove the op fields.
2541 * linux-nios2-low.cc (class nios2_target)
2542 <low_cannot_fetch_register>
2543 <low_cannot_store_register>: Declare.
2544 (nios2_cannot_fetch_register): Turn into...
2545 (nios2_target::low_cannot_fetch_register): ...this.
2546 (nios2_cannot_store_register): Turn into...
2547 (nios2_target::low_cannot_store_register): ...this.
2548 (the_low_target): Remove the op fields.
2549 * linux-ppc-low.cc (class ppc_target)
2550 <low_cannot_fetch_register>
2551 <low_cannot_store_register>: Declare.
2552 (ppc_cannot_fetch_register): Turn into...
2553 (ppc_target::low_cannot_fetch_register): ...this.
2554 (ppc_cannot_store_register): Turn into...
2555 (ppc_target::low_cannot_store_register): ...this.
2556 (the_low_target): Remove the op fields.
2557 * linux-riscv-low.cc (class riscv_target)
2558 <low_cannot_fetch_register>
2559 <low_cannot_store_register>: Declare.
2560 (riscv_target::low_cannot_fetch_register)
2561 (riscv_target::low_cannot_store_register): Define.
2562 (the_low_target): Remove the op fields.
2563 * linux-s390-low.cc (class s390_target)
2564 <low_cannot_fetch_register>
2565 <low_cannot_store_register>: Declare.
2566 (s390_cannot_fetch_register): Turn into...
2567 (s390_target::low_cannot_fetch_register): ...this.
2568 (s390_cannot_store_register): Turn into...
2569 (s390_target::low_cannot_store_register): ...this.
2570 (the_low_target): Remove the op fields.
2571 * linux-sh-low.cc (class sh_target)
2572 <low_cannot_fetch_register>
2573 <low_cannot_store_register>: Declare.
2574 (sh_cannot_fetch_register): Turn into...
2575 (sh_target::low_cannot_fetch_register): ...this.
2576 (sh_cannot_store_register): Turn into...
2577 (sh_target::low_cannot_store_register): ...this.
2578 (the_low_target): Remove the op fields.
2579 * linux-sparc-low.cc (class sparc_target)
2580 <low_cannot_fetch_register>
2581 <low_cannot_store_register>: Declare.
2582 (sparc_cannot_fetch_register): Turn into...
2583 (sparc_target::low_cannot_fetch_register): ...this.
2584 (sparc_cannot_store_register): Turn into...
2585 (sparc_target::low_cannot_store_register): ...this.
2586 (the_low_target): Remove the op fields.
2587 * linux-tic6x-low.cc (class tic6x_target)
2588 <low_cannot_fetch_register>
2589 <low_cannot_store_register>: Declare.
2590 (tic6x_cannot_fetch_register): Turn into...
2591 (tic6x_target::low_cannot_fetch_register): ...this.
2592 (tic6x_cannot_store_register): Turn into...
2593 (tic6x_target::low_cannot_store_register): ...this.
2594 (the_low_target): Remove the op fields.
2595 * linux-tile-low.cc (class tile_target)
2596 <low_cannot_fetch_register>
2597 <low_cannot_store_register>: Declare.
2598 (tile_cannot_fetch_register): Turn into...
2599 (tile_target::low_cannot_fetch_register): ...this.
2600 (tile_cannot_store_register): Turn into...
2601 (tile_target::low_cannot_store_register): ...this.
2602 (the_low_target): Remove the op fields.
2603 * linux-xtensa-low.cc (class xtensa_target)
2604 <low_cannot_fetch_register>
2605 <low_cannot_store_register>: Declare.
2606 (xtensa_target::low_cannot_fetch_register)
2607 (xtensa_target::low_cannot_store_register): Define.
2608 (the_low_target): Remove the op fields.
2609
aa8d21c9
TBA
26102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2611
2612 Turn the 'regs_info' linux target op into a method of
2613 linux_process_target.
2614
2615 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2616 (class linux_process_target) <get_regs_info>: Define.
2617
2618 Update the callers below.
2619
2620 * linux-low.cc (linux_process_target::fetch_registers)
2621 (linux_process_target::store_registers)
2622 * proc-service.cc (gregset_info)
2623
2624 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2625 (x86_linux_regs_info): Turn into ...
2626 (x86_target::get_regs_info): ...this.
2627 (the_low_target): Remove the op field.
2628 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2629 Declare.
2630 (aarch64_regs_info): Turn into ...
2631 (aarch64_target::get_regs_info): ...this.
2632 (the_low_target): Remove the op field.
2633 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2634 (arm_regs_info): Turn into ...
2635 (arm_target::get_regs_info): ...this.
2636 (the_low_target): Remove the op field.
2637 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2638 (bfin_regs_info): Turn into ...
2639 (bfin_target::get_regs_info): ...this.
2640 (the_low_target): Remove the op field.
2641 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2642 (cris_regs_info): Turn into ...
2643 (cris_target::get_regs_info): ...this.
2644 (the_low_target): Remove the op field.
2645 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2646 Declare.
2647 (crisv32_regs_info): Turn into ...
2648 (crisv32_target::get_regs_info): ...this.
2649 (the_low_target): Remove the op field.
2650 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2651 (ia64_regs_info): Turn into ...
2652 (ia64_target::get_regs_info): ...this.
2653 (the_low_target): Remove the op field.
2654 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2655 (m32r_regs_info): Turn into ...
2656 (m32r_target::get_regs_info): ...this.
2657 (the_low_target): Remove the op field.
2658 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2659 (m68k_regs_info): Turn into ...
2660 (m68k_target::get_regs_info): ...this.
2661 (the_low_target): Remove the op field.
2662 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2663 (mips_regs_info): Turn into ...
2664 (mips_target::get_regs_info): ...this.
2665 (the_low_target): Remove the op field.
2666 (get_usrregs_info): Update the call to the op.
2667 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2668 (nios2_regs_info): Turn into ...
2669 (nios2_target::get_regs_info): ...this.
2670 (the_low_target): Remove the op field.
2671 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2672 (ppc_regs_info): Turn into ...
2673 (ppc_target::get_regs_info): ...this.
2674 (the_low_target): Remove the op field.
2675 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2676 (riscv_regs_info): Turn into ...
2677 (riscv_target::get_regs_info): ...this.
2678 (the_low_target): Remove the op field.
2679 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2680 (s390_regs_info): Turn into ...
2681 (s390_target::get_regs_info): ...this.
2682 (the_low_target): Remove the op field.
2683 (s390_collect_ptrace_register)
2684 (s390_supply_ptrace_register)
2685 (s390_fill_gregset): Update the call to the op.
2686 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2687 (sh_regs_info): Turn into ...
2688 (sh_target::get_regs_info): ...this.
2689 (the_low_target): Remove the op field.
2690 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2691 (sparc_regs_info): Turn into ...
2692 (sparc_target::get_regs_info): ...this.
2693 (the_low_target): Remove the op field.
2694 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2695 (tic6x_regs_info): Turn into ...
2696 (tic6x_target::get_regs_info): ...this.
2697 (the_low_target): Remove the op field.
2698 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2699 (tile_regs_info): Turn into ...
2700 (tile_target::get_regs_info): ...this.
2701 (the_low_target): Remove the op field.
2702 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2703 Declare.
2704 (xtensa_regs_info): Turn into ...
2705 (xtensa_target::get_regs_info): ...this.
2706 (the_low_target): Remove the op field.
2707
797bcff5
TBA
27082020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2709
2710 Turn the 'arch_setup' linux target op into a method of
2711 linux_process_target.
2712
2713 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2714 (class linux_process_target) <arch_setup_thread>
2715 <low_arch_setup>: New declarations.
2716 * linux-low.cc (linux_arch_setup): Delete.
2717 (linux_arch_setup_thread): Turn into...
2718 (linux_process_target::arch_setup_thread): ... this.
2719
2720 Update the callers below.
2721
2722 (linux_process_target::handle_extended_wait)
2723 (linux_process_target::post_create_inferior)
2724 (linux_process_target::filter_event)
2725
2726 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2727 declaration.
2728 (x86_linux_update_xmltarget): Turn into...
2729 (x86_target::update_xmltarget): ...this.
2730 (x86_linux_process_qsupported): Update the call to
2731 x86_linux_update_xmltarget.
2732 (x86_arch_setup): Turn into ...
2733 (x86_target::low_arch_setup): ...this.
2734 (the_low_target): Remove the op field.
2735 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2736 declaration.
2737 (aarch64_arch_setup): Turn into ...
2738 (aarch64_target::low_arch_setup): ...this.
2739 (the_low_target): Remove the op field.
2740 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2741 declaration.
2742 (arm_arch_setup): Turn into ...
2743 (arm_target::low_arch_setup): ...this.
2744 (the_low_target): Remove the op field.
2745 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2746 declaration.
2747 (bfin_arch_setup): Turn into ...
2748 (bfin_target::low_arch_setup): ...this.
2749 (the_low_target): Remove the op field.
2750 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2751 declaration.
2752 (cris_arch_setup): Turn into ...
2753 (cris_target::low_arch_setup): ...this.
2754 (the_low_target): Remove the op field.
2755 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2756 declaration.
2757 (crisv32_arch_setup): Turn into ...
2758 (crisv32_target::low_arch_setup): ...this.
2759 (the_low_target): Remove the op field.
2760 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2761 declaration.
2762 (ia64_arch_setup): Turn into ...
2763 (ia64_target::low_arch_setup): ...this.
2764 (the_low_target): Remove the op field.
2765 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2766 declaration.
2767 (m32r_arch_setup): Turn into ...
2768 (m32r_target::low_arch_setup): ...this.
2769 (the_low_target): Remove the op field.
2770 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2771 declaration.
2772 (m68k_arch_setup): Turn into ...
2773 (m68k_target::low_arch_setup): ...this.
2774 (the_low_target): Remove the op field.
2775 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2776 declaration.
2777 (mips_arch_setup): Turn into ...
2778 (mips_target::low_arch_setup): ...this.
2779 (the_low_target): Remove the op field.
2780 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2781 declaration.
2782 (nios2_arch_setup): Turn into ...
2783 (nios2_target::low_arch_setup): ...this.
2784 (the_low_target): Remove the op field.
2785 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2786 declaration.
2787 (ppc_arch_setup): Turn into ...
2788 (ppc_target::low_arch_setup): ...this.
2789 (the_low_target): Remove the op field.
2790 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2791 declaration.
2792 (riscv_arch_setup): Turn into ...
2793 (riscv_target::low_arch_setup): ...this.
2794 (the_low_target): Remove the op field.
2795 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2796 declaration.
2797 (s390_arch_setup): Turn into ...
2798 (s390_target::low_arch_setup): ...this.
2799 (the_low_target): Remove the op field.
2800 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2801 declaration.
2802 (sh_arch_setup): Turn into ...
2803 (sh_target::low_arch_setup): ...this.
2804 (the_low_target): Remove the op field.
2805 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2806 declaration.
2807 (sparc_arch_setup): Turn into ...
2808 (sparc_target::low_arch_setup): ...this.
2809 (the_low_target): Remove the op field.
2810 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2811 declaration.
2812 (tic6x_arch_setup): Turn into ...
2813 (tic6x_target::low_arch_setup): ...this.
2814 (the_low_target): Remove the op field.
2815 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2816 declaration.
2817 (tile_arch_setup): Turn into ...
2818 (tile_target::low_arch_setup): ...this.
2819 (the_low_target): Remove the op field.
2820 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2821 declaration.
2822 (xtensa_arch_setup): Turn into ...
2823 (xtensa_target::low_arch_setup): ...this.
2824 (the_low_target): Remove the op field.
2825
ef0478f6
TBA
28262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2827
2828 * linux-low.h (the_linux_target): New extern declaration.
2829 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2830 'the_target'.
2831 (the_linux_target): Remove.
2832 * linux-x86-low.cc (class x86_target): New class.
2833 (the_x86_target): New static object.
2834 (the_linux_target): Define as pointer to the_x86_target.
2835 * linux-aarch64-low.cc (class aarch64_target): New class.
2836 (the_aarch64_target): New static object.
2837 (the_linux_target): Define as pointer to the_aarch64_target.
2838 * linux-arm-low.cc (class arm_target): New class.
2839 (the_arm_target): New static object.
2840 (the_linux_target): Define as pointer to the_arm_target.
2841 * linux-bfin-low.cc (class bfin_target): New class.
2842 (the_bfin_target): New static object.
2843 (the_linux_target): Define as pointer to the_bfin_target.
2844 * linux-cris-low.cc (class cris_target): New class.
2845 (the_cris_target): New static object.
2846 (the_linux_target): Define as pointer to the_cris_target.
2847 * linux-crisv32-low.cc (class crisv32_target): New class.
2848 (the_crisv32_target): New static object.
2849 (the_linux_target): Define as pointer to the_crisv32_target.
2850 * linux-ia64-low.cc (class ia64_target): New class.
2851 (the_ia64_target): New static object.
2852 (the_linux_target): Define as pointer to the_ia64_target.
2853 * linux-m32r-low.cc (class m32r_target): New class.
2854 (the_m32r_target): New static object.
2855 (the_linux_target): Define as pointer to the_m32r_target.
2856 * linux-m68k-low.cc (class m68k_target): New class.
2857 (the_m68k_target): New static object.
2858 (the_linux_target): Define as pointer to the_m68k_target.
2859 * linux-mips-low.cc (class mips_target): New class.
2860 (the_mips_target): New static object.
2861 (the_linux_target): Define as pointer to the_mips_target.
2862 * linux-nios2-low.cc (class nios2_target): New class.
2863 (the_nios2_target): New static object.
2864 (the_linux_target): Define as pointer to the_nios2_target.
2865 * linux-ppc-low.cc (class ppc_target): New class.
2866 (the_ppc_target): New static object.
2867 (the_linux_target): Define as pointer to the_ppc_target.
2868 * linux-riscv-low.cc (class riscv_target): New class.
2869 (the_riscv_target): New static object.
2870 (the_linux_target): Define as pointer to the_riscv_target.
2871 * linux-s390-low.cc (class s390_target): New class.
2872 (the_s390_target): New static object.
2873 (the_linux_target): Define as pointer to the_s390_target.
2874 * linux-sh-low.cc (class sh_target): New class.
2875 (the_sh_target): New static object.
2876 (the_linux_target): Define as pointer to the_sh_target.
2877 * linux-sparc-low.cc (class sparc_target): New class.
2878 (the_sparc_target): New static object.
2879 (the_linux_target): Define as pointer to the_sparc_target.
2880 * linux-tic6x-low.cc (class tic6x_target): New class.
2881 (the_tic6x_target): New static object.
2882 (the_linux_target): Define as pointer to the_tic6x_target.
2883 * linux-tile-low.cc (class tile_target): New class.
2884 (the_tile_target): New static object.
2885 (the_linux_target): Define as pointer to the_tile_target.
2886 * linux-xtensa-low.cc (class xtensa_target): New class.
2887 (the_xtensa_target): New static object.
2888 (the_linux_target): Define as pointer to the_xtensa_target.
2889
d16f3f6c
TBA
28902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2891
2892 Turn some static functions in linux-low.cc into private methods of
2893 linux_process_target.
2894
2895 * linux-low.cc (handle_extended_wait): Turn into ...
2896 (linux_process_target::handle_extended_wait): ...this. Call
2897 'mourn' on 'this' object instead of 'the_target'.
2898 (maybe_move_out_of_jump_pad): Turn into...
2899 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2900 (linux_low_filter_event): Turn into...
2901 (linux_process_target::filter_event): ...this.
2902 (linux_wait_for_event_filtered): Turn into...
2903 (linux_process_target::wait_for_event_filtered): ...this.
2904 (linux_wait_for_event): Turn into...
2905 (linux_process_target::wait_for_event): ...this.
2906 (linux_wait_1): Turn into...
2907 (linux_process_target::wait_1): ...this.
2908 (wait_for_sigstop): Turn into...
2909 (linux_process_target::wait_for_sigstop): ...this.
2910 (move_out_of_jump_pad_callback): Turn into...
2911 (linux_process_target::move_out_of_jump_pad): ...this.
2912 (stop_all_lwps): Turn into...
2913 (linux_process_target::stop_all_lwps): ...this.
2914 (start_step_over): Turn into...
2915 (linux_process_target::start_step_over): ...this.
2916 (complete_ongoing_step_over): Turn into...
2917 (linux_process_target::complete_ongoing_step_over): ...this.
2918 (proceed_all_lwps): Turn into...
2919 (linux_process_target::proceed_all_lwps): ...this.
2920 (unstop_all_lwps): Turn into...
2921 (linux_process_target::unstop_all_lwps): ...this.
2922
2923 * linux-low.h (class linux_process_target)
2924 <handle_extended_wait>
2925 <maybe_move_out_of_jump_pad>
2926 filter_event>
2927 <wait_for_event_filtered>
2928 <wait_for_event>
2929 <wait_1>
2930 <wait_for_sigstop>
2931 <move_out_of_jump_pad>
2932 <stop_all_lwps>
2933 <start_step_over>
2934 <complete_ongoing_step_over>
2935 <proceed_all_lwps>
2936 <unstop_all_lwps>: Declare.
2937
2938 Update the callers below.
2939
2940 * linux-low.cc (linux_process_target::attach): Update.
2941 (linux_process_target::stabilize_threads): Ditto.
2942 (linux_process_target::wait): Ditto.
2943
a5863204
TBA
29442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2945
2946 * linux-low.h (struct linux_target_ops): Update the comment for
2947 'cannot_store_register' to return 0 or 1.
2948 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2949 of 2.
2950
c884cc46
SM
29512020-03-20 Simon Marchi <simon.marchi@efficios.com>
2952
2953 * config.in: Re-generate.
2954 * configure: Re-generate.
2955
5a82b8a1
KR
29562020-03-17 Kamil Rytarowski <n54@gmx.com>
2957
2958 * regcache.cc (find_register_by_number): Update.
2959 * tdesc.cc (init_target_desc): Likewise.
2960 * tdesc.h (target_desc::reg_defs): Likewise.
2961
4635ff97
TT
29622020-03-12 Tom Tromey <tom@tromey.com>
2963
2964 * configure: Rebuild.
2965 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2966 (WIN32APILIBS): New subst.
2967 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2968 gdbsupport files.
2969 (gdbsupport/%.o): Remove target.
2970 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2971 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2972 (WIN32APILIBS): New variable.
2973 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2974 (gdbreplay$(EXEEXT)): Likewise.
2975
9a665d62
TT
29762020-03-12 Tom Tromey <tom@tromey.com>
2977
2978 * config.in, configure: Rebuild.
2979 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2980 * acinclude.m4: Include gettext-sister.m4.
2981 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2982 variables.
2983 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2984 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2985
272cd5a3
SM
29862020-03-12 Simon Marchi <simon.marchi@efficios.com>
2987
2988 * acinclude.m4: Update path to selftest.m4.
2989
db6878ac
SM
29902020-03-12 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * configure.ac: Don't source bfd/development.sh, move
2993 GDB_AC_COMMON higher.
2994 * configure: Re-generate.
2995
4d696a5c
SM
29962020-03-12 Simon Marchi <simon.marchi@efficios.com>
2997
2998 * configure: Re-generate.
2999
a0761e34
SM
30002020-03-11 Simon Marchi <simon.marchi@efficios.com>
3001
3002 * configure: Re-generate.
3003
20ea4a60
AB
30042020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * .dir-locals.el: New file.
3007
842806cb
TBA
30082020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3009
3010 * .gitattributes: New file.
3011
442131c1
AB
30122020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3013
3014 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
3015 reply into an S reply.
3016 * server.cc (disable_packet_T): New global.
3017 (captured_main): Set new global when appropriate.
3018 * server.h (disable_packet_T): Declare.
3019
dda42c0b
TT
30202020-02-21 Tom Tromey <tom@tromey.com>
3021
3022 * Makefile.in (mostlyclean): New target.
3023
52405d85
TBA
30242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3025
3026 * target.h (struct process_stratum_target): Remove.
3027 (class process_target): Rename to ...
3028 (class process_stratum_target): ... this.
3029 * linux-low.h (class linux_process_target): Derive from
3030 'process_stratum_target'.
3031 * linux-low.cc (linux_target_ops): Remove.
3032 (initialize_low): Set the_target to the singleton instance of
3033 linux_process_target.
3034 * lynx-low.h (class lynx_process_target): Derive from
3035 'process_stratum_target'.
3036 * lynx-low.cc (lynx_target_ops): Remove.
3037 (initialize_low): Set the_target to the singleton instance of
3038 lynx_process_target.
3039 * nto-low.h (class nto_process_target): Derive from
3040 'process_stratum_target'.
3041 * nto-low.cc (nto_target_ops): Remove.
3042 (initialize_low): Set the_target to the singleton instance of
3043 nto_process_target.
3044 * win32-low.h (class win32_process_target): Derive from
3045 'process_stratum_target'.
3046 * win32-low.cc (win32_target_ops): Remove.
3047 (initialize_low): Set the_target to the singleton instance of
3048 win32_process_target.
3049
3050 Replace 'the_target->pt' with 'the_target' in the uses below.
3051
3052 * hostio.cc (hostio_error)
3053 (handle_setfs)
3054 (handle_open)
3055 (handle_unlink)
3056 (handle_readlink)
3057 * linux-aarch32-low.cc (arm_breakpoint_at)
3058 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3059 * linux-arm-low.cc (arm_sigreturn_next_pc)
3060 (arm_get_hwcap)
3061 (arm_get_syscall_trapinfo)
3062 * linux-cris-low.cc (cris_breakpoint_at)
3063 * linux-crisv32-low.cc (cris_breakpoint_at)
3064 * linux-low.cc (handle_extended_wait)
3065 (linux_wait_1)
3066 (linux_read_memory)
3067 (linux_process_target::breakpoint_kind_from_pc)
3068 (linux_get_auxv)
3069 * linux-m32r-low.cc (m32r_breakpoint_at)
3070 * linux-mips-low.cc (mips_breakpoint_at)
3071 * linux-nios2-low.cc (nios2_breakpoint_at)
3072 * linux-ppc-low.cc (ppc_breakpoint_at)
3073 * linux-s390-low.cc (s390_get_hwcap)
3074 * linux-sh-low.cc (sh_breakpoint_at)
3075 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3076 (sparc_store_gregset_from_stack)
3077 (sparc_breakpoint_at)
3078 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3079 * linux-tile-low.cc (tile_breakpoint_at)
3080 * linux-x86-low.cc (x86_breakpoint_at)
3081 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3082 * mem-break.cc (bp_size)
3083 (bp_opcode)
3084 (insert_memory_breakpoint)
3085 (set_raw_breakpoint_at)
3086 (delete_raw_breakpoint)
3087 (z_type_supported)
3088 (uninsert_raw_breakpoint)
3089 (reinsert_raw_breakpoint)
3090 (validate_inserted_breakpoint)
3091 * regcache.cc (regcache_read_pc)
3092 (regcache_write_pc)
3093 * remote-utils.cc (putpkt_binary_1)
3094 (input_interrupt)
3095 (getpkt)
3096 (prepare_resume_reply)
3097 * server.cc (handle_general_set)
3098 (handle_detach)
3099 (handle_qxfer_auxv)
3100 (handle_qxfer_exec_file)
3101 (handle_qxfer_libraries_svr4)
3102 (handle_qxfer_osdata)
3103 (handle_qxfer_siginfo)
3104 (handle_qxfer_fdpic)
3105 (handle_query)
3106 (resume)
3107 (handle_v_requests)
3108 (queue_stop_reply_callback)
3109 (captured_main)
3110 * target.cc (prepare_to_access_memory)
3111 (done_accessing_memory)
3112 (read_inferior_memory)
3113 (target_write_memory)
3114 (target_stop_and_wait)
3115 (target_wait)
3116 (target_mourn_inferior)
3117 (target_continue_no_signal)
3118 (target_continue)
3119 (target_supports_multi_process)
3120 (kill_inferior)
3121 * target.h
3122 (target_create_inferior)
3123 (target_post_create_inferior)
3124 (myattach)
3125 (target_supports_fork_events)
3126 (target_supports_vfork_events)
3127 (target_supports_exec_events)
3128 (target_handle_new_gdb_connection)
3129 (detach_inferior)
3130 (mythread_alive)
3131 (fetch_inferior_registers)
3132 (store_inferior_registers)
3133 (join_inferior)
3134 (target_supports_non_stop)
3135 (target_async)
3136 (target_process_qsupported)
3137 (target_supports_catch_syscall)
3138 (target_get_ipa_tdesc_idx)
3139 (target_supports_tracepoints)
3140 (target_supports_fast_tracepoints)
3141 (target_get_min_fast_tracepoint_insn_len)
3142 (target_thread_stopped)
3143 (target_pause_all)
3144 (target_unpause_all)
3145 (target_stabilize_threads)
3146 (target_install_fast_tracepoint_jump_pad)
3147 (target_emit_ops)
3148 (target_supports_disable_randomization)
3149 (target_supports_agent)
3150 (target_enable_btrace)
3151 (target_disable_btrace)
3152 (target_read_btrace)
3153 (target_read_btrace_conf)
3154 (target_supports_range_stepping)
3155 (target_supports_stopped_by_sw_breakpoint)
3156 (target_stopped_by_sw_breakpoint)
3157 (target_supports_stopped_by_hw_breakpoint)
3158 (target_supports_hardware_single_step)
3159 (target_stopped_by_hw_breakpoint)
3160 (target_breakpoint_kind_from_pc)
3161 (target_breakpoint_kind_from_current_state)
3162 (target_supports_software_single_step)
3163 (target_core_of_thread)
3164 (target_thread_name)
3165 (target_thread_handle)
3166 * win32-low.cc (do_initial_child_stuff)
3167
3168 Rename target op default definitions listed below.
3169
3170 * target.cc (process_target::post_create_inferior): Rename as ...
3171 (process_stratum_target::post_create_inferior): ... this.
3172 (process_target::prepare_to_access_memory): Rename as ...
3173 (process_stratum_target::prepare_to_access_memory): ... this.
3174 (process_target::done_accessing_memory): Rename as ...
3175 (process_stratum_target::done_accessing_memory): ... this.
3176 (process_target::look_up_symbols): Rename as ...
3177 (process_stratum_target::look_up_symbols): ... this.
3178 (process_target::supports_read_auxv): Rename as ...
3179 (process_stratum_target::supports_read_auxv): ... this.
3180 (process_target::read_auxv): Rename as ...
3181 (process_stratum_target::read_auxv): ... this.
3182 (process_target::supports_z_point_type): Rename as ...
3183 (process_stratum_target::supports_z_point_type): ... this.
3184 (process_target::insert_point): Rename as ...
3185 (process_stratum_target::insert_point): ... this.
3186 (process_target::remove_point): Rename as ...
3187 (process_stratum_target::remove_point): ... this.
3188 (process_target::stopped_by_sw_breakpoint): Rename as ...
3189 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3190 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3191 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3192 (process_target::stopped_by_hw_breakpoint): Rename as ...
3193 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3194 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3195 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3196 (process_target::supports_hardware_single_step): Rename as ...
3197 (process_stratum_target::supports_hardware_single_step): ... this.
3198 (process_target::stopped_by_watchpoint): Rename as ...
3199 (process_stratum_target::stopped_by_watchpoint): ... this.
3200 (process_target::stopped_data_address): Rename as ...
3201 (process_stratum_target::stopped_data_address): ... this.
3202 (process_target::supports_read_offsets): Rename as ...
3203 (process_stratum_target::supports_read_offsets): ... this.
3204 (process_target::read_offsets): Rename as ...
3205 (process_stratum_target::read_offsets): ... this.
3206 (process_target::supports_get_tls_address): Rename as ...
3207 (process_stratum_target::supports_get_tls_address): ... this.
3208 (process_target::get_tls_address): Rename as ...
3209 (process_stratum_target::get_tls_address): ... this.
3210 (process_target::hostio_last_error): Rename as ...
3211 (process_stratum_target::hostio_last_error): ... this.
3212 (process_target::supports_qxfer_osdata): Rename as ...
3213 (process_stratum_target::supports_qxfer_osdata): ... this.
3214 (process_target::qxfer_osdata): Rename as ...
3215 (process_stratum_target::qxfer_osdata): ... this.
3216 (process_target::supports_qxfer_siginfo): Rename as ...
3217 (process_stratum_target::supports_qxfer_siginfo): ... this.
3218 (process_target::qxfer_siginfo): Rename as ...
3219 (process_stratum_target::qxfer_siginfo): ... this.
3220 (process_target::supports_non_stop): Rename as ...
3221 (process_stratum_target::supports_non_stop): ... this.
3222 (process_target::async): Rename as ...
3223 (process_stratum_target::async): ... this.
3224 (process_target::start_non_stop): Rename as ...
3225 (process_stratum_target::start_non_stop): ... this.
3226 (process_target::supports_multi_process): Rename as ...
3227 (process_stratum_target::supports_multi_process): ... this.
3228 (process_target::supports_fork_events): Rename as ...
3229 (process_stratum_target::supports_fork_events): ... this.
3230 (process_target::supports_vfork_events): Rename as ...
3231 (process_stratum_target::supports_vfork_events): ... this.
3232 (process_target::supports_exec_events): Rename as ...
3233 (process_stratum_target::supports_exec_events): ... this.
3234 (process_target::handle_new_gdb_connection): Rename as ...
3235 (process_stratum_target::handle_new_gdb_connection): ... this.
3236 (process_target::handle_monitor_command): Rename as ...
3237 (process_stratum_target::handle_monitor_command): ... this.
3238 (process_target::core_of_thread): Rename as ...
3239 (process_stratum_target::core_of_thread): ... this.
3240 (process_target::supports_read_loadmap): Rename as ...
3241 (process_stratum_target::supports_read_loadmap): ... this.
3242 (process_target::read_loadmap): Rename as ...
3243 (process_stratum_target::read_loadmap): ... this.
3244 (process_target::process_qsupported): Rename as ...
3245 (process_stratum_target::process_qsupported): ... this.
3246 (process_target::supports_tracepoints): Rename as ...
3247 (process_stratum_target::supports_tracepoints): ... this.
3248 (process_target::read_pc): Rename as ...
3249 (process_stratum_target::read_pc): ... this.
3250 (process_target::write_pc): Rename as ...
3251 (process_stratum_target::write_pc): ... this.
3252 (process_target::supports_thread_stopped): Rename as ...
3253 (process_stratum_target::supports_thread_stopped): ... this.
3254 (process_target::thread_stopped): Rename as ...
3255 (process_stratum_target::thread_stopped): ... this.
3256 (process_target::supports_get_tib_address): Rename as ...
3257 (process_stratum_target::supports_get_tib_address): ... this.
3258 (process_target::get_tib_address): Rename as ...
3259 (process_stratum_target::get_tib_address): ... this.
3260 (process_target::pause_all): Rename as ...
3261 (process_stratum_target::pause_all): ... this.
3262 (process_target::unpause_all): Rename as ...
3263 (process_stratum_target::unpause_all): ... this.
3264 (process_target::stabilize_threads): Rename as ...
3265 (process_stratum_target::stabilize_threads): ... this.
3266 (process_target::supports_fast_tracepoints): Rename as ...
3267 (process_stratum_target::supports_fast_tracepoints): ... this.
3268 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3269 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3270 (process_target::emit_ops): Rename as ...
3271 (process_stratum_target::emit_ops): ... this.
3272 (process_target::supports_disable_randomization): Rename as ...
3273 (process_stratum_target::supports_disable_randomization): ... this.
3274 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3275 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3276 (process_target::qxfer_libraries_svr4): Rename as ...
3277 (process_stratum_target::qxfer_libraries_svr4): ... this.
3278 (process_target::supports_agent): Rename as ...
3279 (process_stratum_target::supports_agent): ... this.
3280 (process_target::enable_btrace): Rename as ...
3281 (process_stratum_target::enable_btrace): ... this.
3282 (process_target::disable_btrace): Rename as ...
3283 (process_stratum_target::disable_btrace): ... this.
3284 (process_target::read_btrace): Rename as ...
3285 (process_stratum_target::read_btrace): ... this.
3286 (process_target::read_btrace_conf): Rename as ...
3287 (process_stratum_target::read_btrace_conf): ... this.
3288 (process_target::supports_range_stepping): Rename as ...
3289 (process_stratum_target::supports_range_stepping): ... this.
3290 (process_target::supports_pid_to_exec_file): Rename as ...
3291 (process_stratum_target::supports_pid_to_exec_file): ... this.
3292 (process_target::pid_to_exec_file): Rename as ...
3293 (process_stratum_target::pid_to_exec_file): ... this.
3294 (process_target::supports_multifs): Rename as ...
3295 (process_stratum_target::supports_multifs): ... this.
3296 (process_target::multifs_open): Rename as ...
3297 (process_stratum_target::multifs_open): ... this.
3298 (process_target::multifs_unlink): Rename as ...
3299 (process_stratum_target::multifs_unlink): ... this.
3300 (process_target::multifs_readlink): Rename as ...
3301 (process_stratum_target::multifs_readlink): ... this.
3302 (process_target::breakpoint_kind_from_pc): Rename as ...
3303 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3304 (process_target::breakpoint_kind_from_current_state): Rename as ...
3305 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3306 (process_target::thread_name): Rename as ...
3307 (process_stratum_target::thread_name): ... this.
3308 (process_target::thread_handle): Rename as ...
3309 (process_stratum_target::thread_handle): ... this.
3310 (process_target::supports_software_single_step): Rename as ...
3311 (process_stratum_target::supports_software_single_step): ... this.
3312 (process_target::supports_catch_syscall): Rename as ...
3313 (process_stratum_target::supports_catch_syscall): ... this.
3314 (process_target::get_ipa_tdesc_idx): Rename as ...
3315 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3316
478f9adf
PA
33172020-02-20 Pedro Alves <palves@redhat.com>
3318
3319 * target.cc (set_target_ops): Simply copy the given target pointer
3320 instead of creating a copy of the pointed object.
3321
d633e831
TBA
33222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3323
3324 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3325 of process_target.
3326
3327 * target.h (struct process_stratum_target): Remove the target op.
3328 (class process_target): Add the target op.
3329 (target_get_ipa_tdesc_idx): Update the macro.
3330 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3331
3332 Update the derived classes and callers below.
3333
3334 * linux-low.cc (linux_target_ops): Update.
3335 (linux_get_ipa_tdesc_idx): Turn into ...
3336 (linux_process_target::get_ipa_tdesc_idx): ... this.
3337 * linux-low.h (class linux_process_target): Update.
3338 * lynx-low.cc (lynx_target_ops): Update.
3339 * nto-low.cc (nto_target_ops): Update.
3340 * win32-low.cc (win32_target_ops): Update.
3341
bc8d3ae4
TBA
33422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3343
3344 Turn process_stratum_target's supports_catch_syscall op into a
3345 method of process_target.
3346
3347 * target.h (struct process_stratum_target): Remove the target op.
3348 (class process_target): Add the target op.
3349 (target_supports_catch_syscall): Update the macro.
3350 * target.cc (process_target::supports_catch_syscall): Define.
3351
3352 Update the derived classes and callers below.
3353
3354 * linux-low.cc (linux_target_ops): Update.
3355 (linux_supports_catch_syscall): Turn into ...
3356 (linux_process_target::supports_catch_syscall): ... this.
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
5303a34f
TBA
33622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3363
3364 Turn process_stratum_target's supports_software_single_step op
3365 into a method of process_target.
3366
3367 * target.h (struct process_stratum_target): Remove the target op.
3368 (class process_target): Add the target op.
3369 (target_supports_software_single_step): Update the macro.
3370 * target.cc (process_target::supports_software_single_step): Define.
3371
3372 Update the derived classes and callers below.
3373
3374 * linux-low.cc (linux_target_ops): Update.
3375 (linux_supports_software_single_step): Turn into ...
3376 (linux_process_target::supports_software_single_step): ... this.
3377 * linux-low.h (class linux_process_target): Update.
3378 * lynx-low.cc (lynx_target_ops): Update.
3379 * nto-low.cc (nto_target_ops): Update.
3380 * win32-low.cc (win32_target_ops): Update.
3381
7f63b89b
TBA
33822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3383
3384 Turn process_stratum_target's thread_name and thread_handle ops
3385 into methods of process_target.
3386
3387 * target.h (struct process_stratum_target): Remove the target ops.
3388 (class process_target): Add the target ops.
3389 (target_thread_name): Update the macro.
3390 (target_thread_handle): Update the macro.
3391 * target.cc (process_target::thread_name): Define.
3392 (process_target::thread_handle): Define.
3393
3394 Update the derived classes and callers below.
3395
3396 * linux-low.cc (linux_target_ops): Update.
3397 (linux_process_target::thread_name): Define.
3398 (linux_process_target::thread_handle): Define.
3399 * linux-low.h (class linux_process_target): Update.
3400 * lynx-low.cc (lynx_target_ops): Update.
3401 * nto-low.cc (nto_target_ops): Update.
3402 * win32-low.cc (win32_target_ops): Update.
3403
d367006f
TBA
34042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3405
3406 Turn process_stratum_target's breakpoint_kind_from_pc,
3407 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3408 ops into methods of process_target.
3409
3410 * target.h (struct process_stratum_target): Remove the target op.
3411 (class process_target): Add the target op.
3412 (target_breakpoint_kind_from_pc): Update the macro.
3413 (target_breakpoint_kind_from_current_state): Update the macro.
3414 (default_breakpoint_kind_from_pc): Remove declaration.
3415 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3416 (process_target::breakpoint_kind_from_pc): ... this.
3417 (process_target::breakpoint_kind_from_current_state): Define.
3418
3419 Update the derived classes and callers below.
3420
3421 * mem-break.cc (bp_size): Update.
3422 (bp_opcode): Update.
3423 * linux-low.cc (linux_target_ops): Update.
3424 (linux_wait_1): Update.
3425 (linux_breakpoint_kind_from_pc): Turn into ...
3426 (linux_process_target::breakpoint_kind_from_pc): ... this.
3427 (linux_sw_breakpoint_from_kind): Turn into ...
3428 (linux_process_target::sw_breakpoint_from_kind): ... this.
3429 (linux_breakpoint_kind_from_current_state): Turn into ...
3430 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3431 * linux-low.h (class linux_process_target): Update.
3432 * lynx-low.cc (lynx_target_ops): Update.
3433 (lynx_process_target::sw_breakpoint_from_kind): Define.
3434 * lynx-low.h (class lynx_process_target): Update.
3435 * nto-low.cc (nto_target_ops): Update.
3436 (nto_sw_breakpoint_from_kind): Turn into ...
3437 (nto_process_target::sw_breakpoint_from_kind): ... this.
3438 * nto-low.h (class nto_process_target): Update.
3439 * win32-low.cc (win32_target_ops): Update.
3440 (win32_sw_breakpoint_from_kind): Turn into ...
3441 (win32_process_target::sw_breakpoint_from_kind): ... this.
3442 * win32-low.h (class win32_process_target): Update.
3443
c9b7b804
TBA
34442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3445
3446 Turn process_stratum_target's multifs_open, multifs_readlink,
3447 multifs_unlink ops into methods of process_target.
3448
3449 * target.h (struct process_stratum_target): Remove the target ops.
3450 (class process_target): Add the target ops. Also add
3451 'supports_multifs'.
3452 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3453 "sys/stat.h".
3454 (process_target::supports_multifs): Define.
3455 (process_target::multifs_open): Define.
3456 (process_target::multifs_readlink): Define.
3457 (process_target::multifs_unlink): Define.
3458
3459 Update the derived classes and callers below.
3460
3461 * hostio.cc (handle_setfs): Update.
3462 (handle_open): Update.
3463 (handle_unlink): Update.
3464 (handle_readlink): Update.
3465 * linux-low.cc (linux_target_ops): Update.
3466 (linux_process_target::supports_multifs): Define.
3467 (linux_process_target::multifs_open): Define.
3468 (linux_process_target::multifs_readlink): Define.
3469 (linux_process_target::multifs_unlink): Define.
3470 * linux-low.h (class linux_process_target): Update.
3471 * lynx-low.cc (lynx_target_ops): Update.
3472 * nto-low.cc (nto_target_ops): Update.
3473 * win32-low.cc (win32_target_ops): Update.
3474
8247b823
TBA
34752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3476
3477 Turn process_stratum_target's pid_to_exec_file op into a method
3478 of process_target.
3479
3480 * target.h (struct process_stratum_target): Remove the target op.
3481 (class process_target): Add the target op. Also add
3482 'supports_pid_to_exec_file'.
3483 * target.cc (process_target::pid_to_exec_file): Define.
3484 (process_target::supports_pid_to_exec_file): Define.
3485
3486 Update the derived classes and callers below.
3487
3488 * server.cc (handle_qxfer_exec_file): Update.
3489 (handle_query): Update.
3490 * linux-low.cc (linux_target_ops): Update.
3491 (linux_process_target::supports_pid_to_exec_file): Define.
3492 (linux_process_target::pid_to_exec_file): Define.
3493 * linux-low.h (class linux_process_target): Update.
3494 * lynx-low.cc (lynx_target_ops): Update.
3495 * nto-low.cc (nto_target_ops): Update.
3496 * win32-low.cc (win32_target_ops): Update.
3497
2526e0cd
TBA
34982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3499
3500 Turn process_stratum_target's supports_range_stepping op into a
3501 method of process_target.
3502
3503 * target.h (struct process_stratum_target): Remove the target op.
3504 (class process_target): Add the target op.
3505 (target_supports_range_stepping): Update the macro.
3506 * target.cc (process_target::supports_range_stepping): Define.
3507
3508 Update the derived classes and callers below.
3509
3510 * linux-low.cc (linux_target_ops): Update.
3511 (linux_supports_range_stepping): Turn into ...
3512 (linux_process_target::supports_range_stepping): ... this.
3513 * linux-low.h (class linux_process_target): Update.
3514 * lynx-low.cc (lynx_target_ops): Update.
3515 * nto-low.cc (nto_target_ops): Update.
3516 * win32-low.cc (win32_target_ops): Update.
3517
79597bdd
TBA
35182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3519
3520 Turn process_stratum_target's btrace-related ops (enable_btrace,
3521 disable_btrace, read_btrace, read_btrace_conf) into methods of
3522 process_target.
3523
3524 * target.h (struct process_stratum_target): Remove the target ops.
3525 (class process_target): Add the target ops.
3526 (target_enable_btrace): Update.
3527 (target_disable_btrace): Update.
3528 (target_read_btrace): Update.
3529 (target_read_btrace_conf): Update.
3530 * target.cc (process_target::enable_btrace): Define.
3531 (process_target::disable_btrace): Define.
3532 (process_target::read_btrace): Define.
3533 (process_target::read_btrace_conf): Define.
3534
3535 Update the derived classes and callers below.
3536
3537 * linux-low.cc (linux_target_ops): Update.
3538 (linux_process_target:enable_btrace): Define as a wrapper around
3539 linux_enable_btrace.
3540 (linux_low_disable_btrace): Turn into ...
3541 (linux_process_target::disable_btrace): ... this.
3542 (linux_low_read_btrace): Turn into ...
3543 (linux_process_target::read_btrace): ... this.
3544 (linux_low_btrace_conf): Turn into ...
3545 (linux_process_target::read_btrace_conf): ... this.
3546 * linux-low.h (class linux_process_target): Update.
3547 * lynx-low.cc (lynx_target_ops): Update.
3548 * nto-low.cc (nto_target_ops): Update.
3549 * win32-low.cc (win32_target_ops): Update.
3550
c0245cb9
TBA
35512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3552
3553 Turn process_stratum_target's supports_agent op into a method of
3554 process_target.
3555
3556 * target.h (struct process_stratum_target): Remove the target op.
3557 (class process_target): Add the target op.
3558 (target_supports_agent): Update the macro.
3559 * target.cc (process_target::supports_agent): Define.
3560
3561 Update the derived classes and callers below.
3562
3563 * linux-low.cc (linux_target_ops): Update.
3564 (linux_supports_agent): Turn into ...
3565 (linux_process_target::supports_agent): ... this.
3566 * linux-low.h (class linux_process_target): Update.
3567 * lynx-low.cc (lynx_target_ops): Update.
3568 * nto-low.cc (nto_target_ops): Update.
3569 * win32-low.cc (win32_target_ops): Update.
3570
974387bb
TBA
35712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3572
3573 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3574 method of process_target.
3575
3576 * target.h (struct process_stratum_target): Remove the target op.
3577 (class process_target): Add the target op. Also add
3578 'supports_qxfer_libraries_svr4'.
3579 * target.cc (process_target::qxfer_libraries_svr4): Define.
3580 (process_target::supports_qxfer_libraries_svr4): Define.
3581
3582 Update the derived classes and callers below.
3583
3584 * server.cc (handle_qxfer_libraries_svr4): Update.
3585 (handle_query): Update.
3586 * linux-low.cc (linux_target_ops): Update.
3587 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3588 (linux_qxfer_libraries_svr4): Turn into ...
3589 (linux_process_target::qxfer_libraries_svr4): ... this.
3590 * linux-low.h (class linux_process_target): Update.
3591 * lynx-low.cc (lynx_target_ops): Update.
3592 * nto-low.cc (nto_target_ops): Update.
3593 * win32-low.cc (win32_target_ops): Update.
3594
c756403b
TBA
35952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3596
3597 Turn process_stratum_target's supports_disable_randomization op
3598 into a method of process_target.
3599
3600 * target.h (struct process_stratum_target): Remove the target op.
3601 (class process_target): Add the target op.
3602 (target_supports_disable_randomization): Update the macro.
3603 * target.cc (process_target::supports_disable_randomization): Define.
3604
3605 Update the derived classes and callers below.
3606
3607 * linux-low.cc (linux_target_ops): Update.
3608 (linux_supports_disable_randomization): Turn into ...
3609 (linux_process_target::supports_disable_randomization): ... this.
3610 * linux-low.h (class linux_process_target): Update.
3611 * lynx-low.cc (lynx_target_ops): Update.
3612 * nto-low.cc (nto_target_ops): Update.
3613 * win32-low.cc (win32_target_ops): Update.
3614
345dafad
TBA
36152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3616
3617 Turn process_stratum_target's emit_ops op into a method of
3618 process_target.
3619
3620 * target.h (struct process_stratum_target): Remove the target op.
3621 (class process_target): Add the target op.
3622 (target_emit_ops): Update the macro.
3623 * target.cc (process_target::emit_ops): Define.
3624
3625 Update the derived classes and callers below.
3626
3627 * linux-low.cc (linux_target_ops): Update.
3628 (linux_emit_ops): Turn into ...
3629 (linux_process_target::emit_ops): ... this.
3630 * linux-low.h (class linux_process_target): Update.
3631 * lynx-low.cc (lynx_target_ops): Update.
3632 * nto-low.cc (nto_target_ops): Update.
3633 * win32-low.cc (win32_target_ops): Update.
3634
c23c9391
TBA
36352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3636
3637 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3638 and get_min_fast_tracepoint_insn_len ops into methods of
3639 process_target.
3640
3641 * target.h (struct process_stratum_target): Remove the target ops.
3642 (class process_target): Add the target ops. Also add
3643 'supports_fast_tracepoints'.
3644 (target_supports_fast_tracepoints): Update the macro.
3645 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3646 (install_fast_tracepoint_jump_pad): Update and rename the macro
3647 to ...
3648 (target_install_fast_tracepoint_jump_pad): ... this.
3649 * target.cc (process_target::supports_fast_tracepoints): Define.
3650 (process_target::install_fast_tracepoint_jump_pad): Define.
3651 (process_target::get_min_fast_tracepoint_insn_len): Define.
3652
3653 Update the derived classes and callers below.
3654
3655 * tracepoint.cc (install_fast_tracepoint): Update.
3656 * linux-low.cc (linux_target_ops): Update.
3657 (linux_process_target::supports_fast_tracepoints): Define.
3658 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3659 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3660 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3661 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3662 * linux-low.h (class linux_process_target): Update.
3663 * lynx-low.cc (lynx_target_ops): Update.
3664 * nto-low.cc (nto_target_ops): Update.
3665 * win32-low.cc (win32_target_ops): Update.
3666
5c9eb2f2
TBA
36672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3668
3669 Turn process_stratum_target's stabilize_threads op into a
3670 method of process_target.
3671
3672 * target.h (struct process_stratum_target): Remove the target op.
3673 (class process_target): Add the target op.
3674 (target_stabilize_threads): Update the macro.
3675 * target.cc (process_target::stabilize_threads): Define.
3676
3677 Update the derived classes and callers below.
3678
3679 * server.cc (handle_status): Update.
3680 * tracepoint.cc (cmd_qtdp): Update.
3681 (cmd_qtstart): Update.
3682 * linux-low.cc (linux_target_ops): Update.
3683 (linux_stabilize_threads): Turn into ...
3684 (linux_process_target::stabilize_threads): ... this.
3685 (linux_wait_1): Update.
3686 * linux-low.h (class linux_process_target): Update.
3687 * lynx-low.cc (lynx_target_ops): Update.
3688 * nto-low.cc (nto_target_ops): Update.
3689 * win32-low.cc (win32_target_ops): Update.
3690
29e8dc09
TBA
36912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3692
3693 Turn process_stratum_target's pause_all and unpause_all ops
3694 into methods of process_target.
3695
3696 * target.h (struct process_stratum_target): Remove the target ops.
3697 (class process_target): Add the target ops.
3698 (pause_all): Update the macro and rename to...
3699 (target_pause_all): ... this.
3700 (unpause_all): Update the macro and rename to...
3701 (target_unpause_all): ... this.
3702 * target.cc (process_target::pause_all): Define.
3703 (process_target::unpause_all): Define.
3704
3705 Update the derived classes and callers below.
3706
3707 * server.cc (handle_status): Update.
3708 * tracepoint.cc (clear_installed_tracepoints): Update.
3709 (cmd_qtdp): Update.
3710 (cmd_qtstart): Update.
3711 (stop_tracing): Update.
3712 (cmd_qtstatus): Update.
3713 (upload_fast_traceframes): Update.
3714 (run_inferior_command): Update.
3715 * linux-low.cc (linux_target_ops): Update.
3716 (linux_pause_all): Turn into ...
3717 (linux_process_target::pause_all): ... this.
3718 (linux_unpause_all): Turn into ...
3719 (linux_process_target::unpause_all): ... this.
3720 (linux_process_target::prepare_to_access_memory): Update.
3721 (linux_process_target::done_accessing_memory): Update.
3722 * linux-low.h (class linux_process_target): Update.
3723 * lynx-low.cc (lynx_target_ops): Update.
3724 * nto-low.cc (nto_target_ops): Update.
3725 * win32-low.cc (win32_target_ops): Update.
3726
4e2e869c
TBA
37272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3728
3729 Turn process_stratum_target's get_tib_address op into a method of
3730 process_target.
3731
3732 * target.h (struct process_stratum_target): Remove the target op.
3733 (class process_target): Add the target op. Also add
3734 'supports_get_tib_address'.
3735 * target.cc (process_target::get_tib_address): Define.
3736 (process_target::supports_get_tib_address): Define.
3737
3738 Update the derived classes and callers below.
3739
3740 * server.cc (handle_query): Update.
3741 * linux-low.cc (win32_target_ops): Update.
3742 * lynx-low.cc (lynx_target_ops): Update.
3743 * nto-low.cc (nto_target_ops): Update.
3744 * win32-low.cc (win32_target_ops): Update.
3745 (win32_process_target::supports_get_tib_address): Define.
3746 (win32_get_tib_address): Turn into ...
3747 (win32_process_target::get_tib_address): ... this.
3748 * win32-low.h (class win32_process_target): Update.
3749
68119632
TBA
37502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3751
3752 Turn process_stratum_target's thread_stopped op into a method of
3753 process_target.
3754
3755 * target.h (struct process_stratum_target): Remove the target op.
3756 (class process_target): Add the target op. Also add
3757 'supports_thread_stopped'.
3758 (target_thread_stopped): Update the macro.
3759 * target.cc (process_target::thread_stopped): Define.
3760 (process_target::supports_thread_stopped): Define.
3761 (prepare_to_access_memory): Update.
3762
3763 Update the derived classes and callers below.
3764
3765 * server.cc (queue_stop_reply_callback): Update.
3766 * linux-low.cc (linux_target_ops): Update.
3767 (linux_process_target::supports_thread_stopped): Define.
3768 (linux_thread_stopped): Turn into ...
3769 (linux_process_target::thread_stopped): ... this.
3770 * linux-low.h (class linux_process_target): Update.
3771 * lynx-low.cc (lynx_target_ops): Update.
3772 * nto-low.cc (nto_target_ops): Update.
3773 * win32-low.cc (win32_target_ops): Update.
3774
770d8f6a
TBA
37752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3776
3777 Turn process_stratum_target's read_pc and write_pc ops into
3778 methods of process_target.
3779
3780 * target.h (struct process_stratum_target): Remove the target ops.
3781 (class process_target): Add the target ops.
3782 * target.cc (process_target::read_pc): Define.
3783 (process_target::write_pc): Define.
3784
3785 Update the derived classes and callers below.
3786
3787 * regcache.cc (regcache_read_pc): Update.
3788 (regcache_write_pc): Update.
3789 * linux-low.cc (linux_target_ops): Update.
3790 (linux_read_pc): Turn into ...
3791 (linux_process_target::read_pc): ... this.
3792 (linux_write_pc): Turn into ...
3793 (linux_process_target::write_pc): ... this.
3794 * linux-low.h (class linux_process_target): Update.
3795 * lynx-low.cc (lynx_target_ops): Update.
3796 * nto-low.cc (nto_target_ops): Update.
3797 * win32-low.cc (win32_target_ops): Update.
3798
290732bf
TBA
37992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3800
3801 Turn process_stratum_target's supports_tracepoints op into a
3802 method of process_target.
3803
3804 * target.h (struct process_stratum_target): Remove the target op.
3805 (class process_target): Add the target op.
3806 (target_supports_tracepoints): Update the macro.
3807 * target.cc (process_target::supports_tracepoints): Define.
3808
3809 Update the derived classes and callers below.
3810
3811 * linux-low.cc (linux_target_ops): Update.
3812 (linux_supports_tracepoints): Turn into ...
3813 (linux_process_target::supports_tracepoints): ... this.
3814 * linux-low.h (class linux_process_target): Update.
3815 * lynx-low.cc (lynx_target_ops): Update.
3816 * nto-low.cc (nto_target_ops): Update.
3817 * win32-low.cc (win32_target_ops): Update.
3818
0df28b1b
TBA
38192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3820
3821 Turn process_stratum_target's process_qsupported op into a method
3822 of process_target.
3823
3824 * target.h (struct process_stratum_target): Remove the target op.
3825 (class process_target): Add the target op.
3826 (target_process_qsupported): Update the macro.
3827 * target.cc (process_target::process_qsupported): Define.
3828
3829 Update the derived classes and callers below.
3830
3831 * linux-low.cc (linux_target_ops): Update.
3832 (linux_process_qsupported): Turn into ...
3833 (linux_process_target::process_qsupported): ... this.
3834 * linux-low.h (class linux_process_target): Update.
3835 * lynx-low.cc (lynx_target_ops): Update.
3836 * nto-low.cc (nto_target_ops): Update.
3837 * win32-low.cc (win32_target_ops): Update.
3838
9da41fda
TBA
38392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3840
3841 Turn process_stratum_target's read_loadmap op into a method of
3842 process_target.
3843
3844 * target.h (struct process_stratum_target): Remove the target op.
3845 (class process_target): Add the target op. Also add
3846 'supports_read_loadmap'.
3847 * target.cc (process_target::read_loadmap): Define.
3848 (process_target::supports_read_loadmap): Define.
3849
3850 Update the derived classes and callers below.
3851
3852 * server.cc (handle_qxfer_fdpic): Update.
3853 (handle_query): Update.
3854 * linux-low.cc (linux_target_ops): Update.
3855 (linux_process_target::supports_read_loadmap): Define.
3856 (linux_read_loadmap): Turn into ...
3857 (linux_process_target::read_loadmap): ... this.
3858 * linux-low.h (class linux_process_target): Update.
3859 * lynx-low.cc (lynx_target_ops): Update.
3860 * nto-low.cc (nto_target_ops): Update.
3861 * win32-low.cc (win32_target_ops): Update.
3862
95a45fc1
TBA
38632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3864
3865 Turn process_stratum_target's core_of_thread op into a method of
3866 process_target.
3867
3868 * target.h (struct process_stratum_target): Remove the target op.
3869 (class process_target): Add the target op.
3870 (target_core_of_thread): Update the macro.
3871 * target.cc (process_target::core_of_thread): Define.
3872
3873 Update the derived classes and callers below.
3874
3875 * linux-low.cc (linux_target_ops): Update.
3876 (linux_process_target::core_of_thread): Define.
3877 * linux-low.h (class linux_process_target): Update.
3878 * lynx-low.cc (lynx_target_ops): Update.
3879 * nto-low.cc (nto_target_ops): Update.
3880 * win32-low.cc (win32_target_ops): Update.
3881
55cf3021
TBA
38822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3883
3884 Turn process_stratum_target's handle_monitor_command op into a
3885 method of process_target.
3886
3887 * target.h (struct process_stratum_target): Remove the target op.
3888 (class process_target): Add the target op.
3889 (target_handle_monitor_command): Update the macro.
3890 * target.cc (process_target::handle_monitor_command): Define.
3891
3892 Update the derived classes and callers below.
3893
3894 * server.cc (handle_query): Update.
3895 * linux-low.cc (linux_target_ops): Update.
3896 (linux_process_target::handle_monitor_command): Define.
3897 * linux-low.h (class linux_process_target): Update.
3898 * lynx-low.cc (lynx_target_ops): Update.
3899 * nto-low.cc (nto_target_ops): Update.
3900 * win32-low.cc (win32_target_ops): Update.
3901
fb00dfce
TBA
39022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3903
3904 Turn process_stratum_target's handle_new_gdb_connection op into a
3905 method of process_target.
3906
3907 * target.h (struct process_stratum_target): Remove the target op.
3908 (class process_target): Add the target op.
3909 (target_handle_new_gdb_connection): Update the macro.
3910 * target.cc (process_target::handle_new_gdb_connection): Define.
3911
3912 Update the derived classes and callers below.
3913
3914 * linux-low.cc (linux_target_ops): Update.
3915 (linux_handle_new_gdb_connection): Turn into ...
3916 (linux_process_target::handle_new_gdb_connection): ... this.
3917 * linux-low.h (class linux_process_target): Update.
3918 * lynx-low.cc (lynx_target_ops): Update.
3919 * nto-low.cc (nto_target_ops): Update.
3920 * win32-low.cc (win32_target_ops): Update.
3921
9690a72a
TBA
39222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3923
3924 Turn process_stratum_target's supports_fork_events,
3925 supports_vfork_events, and supports_exec_events ops into methods
3926 of process_target.
3927
3928 * target.h (struct process_stratum_target): Remove the target ops.
3929 (class process_target): Add the target ops.
3930 (target_supports_fork_events): Update the macro.
3931 (target_supports_vfork_events): Update the macro.
3932 (target_supports_exec_events): Update the macro.
3933 * target.cc (process_target::supports_fork_events): Define.
3934 (process_target::supports_vfork_events): Define.
3935 (process_target::supports_exec_events): Define.
3936
3937 Update the derived classes and callers below.
3938
3939 * linux-low.cc (linux_target_ops): Update.
3940 (linux_supports_fork_events): Turn into ...
3941 (linux_process_target::supports_fork_events): ... this.
3942 (linux_supports_vfork_events): Turn into ...
3943 (linux_process_target::supports_vfork_events): ... this.
3944 (linux_supports_exec_events): Turn into ...
3945 (linux_process_target::supports_exec_events): ... this.
3946 * linux-low.h (class linux_process_target): Update.
3947 * lynx-low.cc (lynx_target_ops): Update.
3948 * nto-low.cc (nto_target_ops): Update.
3949 * win32-low.cc (win32_target_ops): Update.
3950
652aef77
TBA
39512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3952
3953 Turn process_stratum_target's supports_multi_process op into a
3954 method of process_target.
3955
3956 * target.h (struct process_stratum_target): Remove the target op.
3957 (class process_target): Add the target op.
3958 * target.cc (process_target::supports_multi_process): Define.
3959 (target_supports_multi_process): Update.
3960
3961 Update the derived classes and callers below.
3962
3963 * linux-low.cc (linux_target_ops): Update.
3964 (linux_supports_multi_process): Turn into ...
3965 (linux_process_target::supports_multi_process): ... this.
3966 * linux-low.h (class linux_process_target): Update.
3967 * lynx-low.cc (lynx_target_ops): Update.
3968 * nto-low.cc (nto_target_ops): Update.
3969 * win32-low.cc (win32_target_ops): Update.
3970
0dc587d4
TBA
39712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3972
3973 Turn process_stratum_target's supports_non_stop, async, and
3974 start_non_stop ops into methods of process_target.
3975
3976 * target.h (struct process_stratum_target): Remove the target ops.
3977 (class process_target): Add the target ops.
3978 (target_supports_non_stop): Update the macro.
3979 (target_async): Update the macro.
3980 (start_non_stop): Remove declaration.
3981 * target.cc (process_target::supports_non_stop): Define.
3982 (process_target::async): Define.
3983 (process_target::start_non_stop): Define.
3984 (start_non_stop): Remove.
3985
3986 Update the derived classes and callers below.
3987
3988 * server.cc (handle_qxfer_siginfo): Update.
3989 (handle_query): Update.
3990 * linux-low.cc (linux_target_ops): Update.
3991 (linux_supports_non_stop): Turn into ...
3992 (linux_process_target::supports_non_stop): ... this.
3993 (linux_async): Turn into ...
3994 (linux_process_target::async): ... this.
3995 (linux_start_non_stop): Turn into ...
3996 (linux_process_target::start_non_stop): ... this.
3997 * linux-low.h (class linux_process_target): Update.
3998 * lynx-low.cc (lynx_target_ops): Update.
3999 * nto-low.cc (nto_target_ops): Update.
4000 (nto_supports_non_stop): Remove; rely on the default behavior
4001 instead.
4002 * win32-low.cc (win32_target_ops): Update.
4003
d7abedf7
TBA
40042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4005
4006 Turn process_stratum_target's qxfer_siginfo op into a method of
4007 process_target.
4008
4009 * target.h (struct process_stratum_target): Remove the target op.
4010 (class process_target): Add the target op. Also add
4011 'supports_qxfer_siginfo'.
4012 * target.cc (process_target::qxfer_siginfo): Define.
4013 (process_target::supports_qxfer_siginfo): Define.
4014
4015 Update the derived classes and callers below.
4016
4017 * server.cc (handle_qxfer_siginfo): Update.
4018 (handle_query): Update.
4019 * linux-low.cc (linux_target_ops): Update.
4020 (linux_process_target::supports_qxfer_siginfo): Define.
4021 (linux_xfer_siginfo): Turn into ...
4022 (linux_process_target::qxfer_siginfo): ... this.
4023 * linux-low.h (class linux_process_target): Update.
4024 * lynx-low.cc (lynx_target_ops): Update.
4025 * nto-low.cc (nto_target_ops): Update.
4026 * win32-low.cc (win32_target_ops): Update.
4027
2d0795ee
TBA
40282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4029
4030 Turn process_stratum_target's qxfer_osdata op into a method of
4031 process_target.
4032
4033 * target.h (struct process_stratum_target): Remove the target op.
4034 (class process_target): Add the target op. Also add
4035 'supports_qxfer_osdata'.
4036 * target.cc (process_target::qxfer_osdata): Define.
4037 (process_target::supports_qxfer_osdata): Define.
4038
4039 Update the derived classes and callers below.
4040
4041 * server.cc (handle_qxfer_osdata): Update.
4042 (handle_query): Update.
4043 * linux-low.cc (linux_target_ops): Update.
4044 (linux_process_target::supports_qxfer_osdata): Define.
4045 (linux_qxfer_osdata): Turn into ...
4046 (linux_process_target::qxfer_osdata): ... this.
4047 * linux-low.h (class linux_process_target): Update.
4048 * lynx-low.cc (lynx_target_ops): Update.
4049 * nto-low.cc (nto_target_ops): Update.
4050 * win32-low.cc (win32_target_ops): Update.
4051
ea06bbaa
TBA
40522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4053
4054 Turn process_stratum_target's hostio_last_error op into a
4055 method of process_target.
4056
4057 * target.h (struct process_stratum_target): Remove the target op.
4058 (class process_target): Add the target op.
4059 * target.cc: Add "hostio.h" to includes.
4060 (process_target::hostio_last_error): Define.
4061
4062 Update the derived classes and callers below.
4063
4064 * hostio.cc (hostio_error): Update.
4065 * linux-low.cc: Remove "hostio.h" from includes.
4066 (linux_target_ops): Update.
4067 * lynx-low.cc (lynx_target_ops): Update.
4068 * nto-low.cc (nto_target_ops): Update.
4069 * win32-low.h (class win32_process_target): Update.
4070 * win32-low.cc (win32_target_ops): Update.
4071 (wince_hostio_last_error): Turn into ...
4072 (win32_process_target::hostio_last_error): ... this.
4073
6e3fd7e9
TBA
40742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4075
4076 Turn process_stratum_target's get_tls_address op into a method of
4077 process_target.
4078
4079 * target.h (struct process_stratum_target): Remove the target op.
4080 (class process_target): Add the target op. Also add
4081 'supports_get_tls_address'.
4082 * target.cc (process_target::get_tls_address): Define.
4083 (process_target::supports_get_tls_address): Define.
4084
4085 Update the derived classes and callers below.
4086
4087 * server.cc (handle_query): Update.
4088 * linux-low.cc (linux_target_ops): Update.
4089 (linux_process_target::supports_get_tls_address): Define.
4090 (linux_process_target::get_tls_address): Define.
4091 * linux-low.h (class linux_process_target): Update.
4092 * lynx-low.cc (lynx_target_ops): Update.
4093 * nto-low.cc (nto_target_ops): Update.
4094 * win32-low.cc (win32_target_ops): Update.
4095
5203ae1e
TBA
40962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4097
4098 Turn process_stratum_target's read_offsets op into a method of
4099 process_target.
4100
4101 * target.h (struct process_stratum_target): Remove the target op.
4102 (class process_target): Add the target op. Also add
4103 'supports_read_offsets'.
4104 * target.cc (process_target::read_offsets): Define.
4105 (process_target::supports_read_offsets): Define.
4106
4107 Update the derived classes and callers below.
4108
4109 * server.cc (handle_query): Update.
4110 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4111 (linux_target_ops): Update.
4112 (linux_process_target::supports_read_offsets): Define.
4113 (linux_read_offsets): Turn into ...
4114 (linux_process_target::read_offsets): ... this.
4115 * linux-low.h (class linux_process_target): Update.
4116 * lynx-low.cc (lynx_target_ops): Update.
4117 * nto-low.cc (nto_target_ops): Update.
4118 * win32-low.cc (win32_target_ops): Update.
4119
6eeb5c55
TBA
41202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4121
4122 Turn process_stratum_target's stopped_by_watchpoint and
4123 stopped_data_address ops into methods of process_target.
4124
4125 * target.h (struct process_stratum_target): Remove the target ops.
4126 (class process_target): Add the target ops.
4127 * target.cc (process_target::stopped_by_watchpoint): Define.
4128 (process_target::stopped_data_address): Define.
4129
4130 Update the derived classes and callers below.
4131
4132 * remote-utils.cc (prepare_resume_reply): Update.
4133 * linux-low.cc (linux_target_ops): Update.
4134 (linux_stopped_by_watchpoint): Turn into ...
4135 (linux_process_target::stopped_by_watchpoint): ... this.
4136 (linux_stopped_data_address): Turn into ...
4137 (linux_process_target::stopped_data_address): ... this.
4138 * linux-low.h (class linux_process_target): Update.
4139 * lynx-low.cc (lynx_target_ops): Update.
4140 * nto-low.cc (nto_target_ops): Update.
4141 (nto_stopped_by_watchpoint): Turn into ...
4142 (nto_process_target::stopped_by_watchpoint): ... this.
4143 (nto_stopped_data_address): Turn into ...
4144 (nto_process_target::stopped_data_address): ... this.
4145 * nto-low.h (class nto_process_target): Update.
4146 * win32-low.cc (win32_target_ops): Update.
4147 (win32_stopped_by_watchpoint): Turn into ...
4148 (win32_process_target::stopped_by_watchpoint): ... this.
4149 (win32_stopped_data_address): Turn into ...
4150 (win32_process_target::stopped_data_address): ... this.
4151 * win32-low.h (class win32_process_target): Update.
4152
22aa6223
TBA
41532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4154
4155 Turn process_stratum_target's supports_hardware_single_step op into
4156 a method of process_target.
4157
4158 * target.h (struct process_stratum_target): Remove the target op.
4159 (class process_target): Add the target op.
4160 (target_supports_hardware_single_step): Update the macro.
4161 (target_can_do_hardware_single_step): Remove declaration.
4162 * target.cc (process_target::supports_hardware_single_step): Define.
4163 (target_can_do_hardware_single_step): Remove.
4164
4165 Update the derived classes and callers below.
4166
4167 * linux-low.h (class linux_process_target): Update.
4168 * linux-low.cc (linux_target_ops): Update.
4169 (linux_supports_hardware_single_step): Turn into ...
4170 (linux_process_target::supports_hardware_single_step): ... this.
4171 * lynx-low.h (class lynx_process_target): Update.
4172 * lynx-low.cc (lynx_target_ops): Update.
4173 (lynx_process_target::supports_hardware_single_step): Define.
4174 * nto-low.h (class nto_process_target): Update.
4175 * nto-low.cc (nto_target_ops): Update.
4176 (nto_process_target::supports_hardware_single_step): Define.
4177 * win32-low.h (class win32_process_target): Update.
4178 * win32-low.cc (win32_target_ops): Update.
4179 (win32_process_target::supports_hardware_single_step): Define.
4180
93fe88b2
TBA
41812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4182
4183 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4184 ops into methods of process_target.
4185
4186 * target.h (struct process_stratum_target): Remove the target ops.
4187 (class process_target): Add the target ops.
4188 (target_stopped_by_hw_breakpoint): Update the macro.
4189 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4190 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4191 (process_target::supports_stopped_by_hw_breakpoint): Define.
4192
4193 Update the derived classes and callers below.
4194
4195 * linux-low.cc (linux_target_ops): Update.
4196 (linux_stopped_by_hw_breakpoint): Turn into ...
4197 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4198 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4199 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4200 * linux-low.h (class linux_process_target): Update.
4201 * lynx-low.cc (lynx_target_ops): Update.
4202 * nto-low.cc (nto_target_ops): Update.
4203 * win32-low.cc (win32_target_ops): Update.
4204
84320c4e
TBA
42052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4206
4207 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4208 ops into methods of process_target.
4209
4210 * target.h (struct process_stratum_target): Remove the target ops.
4211 (class process_target): Add the target ops.
4212 (target_stopped_by_sw_breakpoint): Update the macro.
4213 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4214 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4215 (process_target::supports_stopped_by_sw_breakpoint): Define.
4216
4217 Update the derived classes and callers below.
4218
4219 * linux-low.cc (linux_target_ops): Update.
4220 (linux_stopped_by_sw_breakpoint): Turn into ...
4221 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4222 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4223 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4224 * linux-low.h (class linux_process_target): Update.
4225 * lynx-low.cc (lynx_target_ops): Update.
4226 * nto-low.cc (nto_target_ops): Update.
4227 * win32-low.cc (win32_target_ops): Update.
4228
7e0bde70
TBA
42292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4230
4231 Turn process_stratum_target's insert_point and remove_point ops
4232 into methods of process_target.
4233
4234 * target.h (struct process_stratum_target): Remove the target ops.
4235 (class process_target): Add the target ops.
4236 * target.cc (process_target::insert_point): Define.
4237 (process_target::remove_point): Define.
4238
4239 Update the derived classes and callers below.
4240
4241 * mem-break.cc (set_raw_breakpoint_at): Update.
4242 (delete_raw_breakpoint): Update.
4243 (uninsert_raw_breakpoint): Update.
4244 (reinsert_raw_breakpoint): Update.
4245 * linux-low.cc (linux_target_ops): Update.
4246 (linux_insert_point): Turn into ...
4247 (linux_process_target::insert_point): ... this.
4248 (linux_remove_point): Turn into ...
4249 (linux_process_target::remove_point): ... this.
4250 * linux-low.h (class linux_process_target): Update.
4251 * lynx-low.cc (lynx_target_ops): Update.
4252 * nto-low.cc (nto_target_ops): Update.
4253 (nto_insert_point): Turn into ...
4254 (nto_process_target::insert_point): ... this.
4255 (nto_remove_point): Turn into ...
4256 (nto_process_target::remove_point): ... this.
4257 * nto-low.h (class nto_process_target): Update.
4258 * win32-low.cc (win32_target_ops): Update.
4259 (win32_insert_point): Turn into ...
4260 (win32_process_target::insert_point): ... this.
4261 (win32_remove_point): Turn into ...
4262 (win32_process_target::remove_point): ... this.
4263 * win32-low.h (class win32_process_target): Update.
4264
a2b2297a
TBA
42652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4266
4267 Turn process_stratum_target's supports_z_point_type op into a
4268 method of process_target.
4269
4270 * target.h (struct process_stratum_target): Remove the target op.
4271 (class process_target): Add the target op.
4272 * target.cc (process_target::supports_z_point_type): Define.
4273
4274 Update the derived classes and callers below.
4275
4276 * mem-break.cc (z_type_supported): Update.
4277 * linux-low.cc (linux_target_ops): Update.
4278 (linux_supports_z_point_type): Turn into ...
4279 (linux_process_target::supports_z_point_type): ... this.
4280 * linux-low.h (class linux_process_target): Update.
4281 * lynx-low.cc (lynx_target_ops): Update.
4282 * nto-low.cc (nto_target_ops): Update.
4283 (nto_supports_z_point_type): Turn into ...
4284 (nto_process_target::supports_z_point_type): ... this.
4285 * nto-low.h (class nto_process_target): Update.
4286 * win32-low.cc (win32_target_ops): Update.
4287 (win32_supports_z_point_type): Turn into ...
4288 (win32_process_target::supports_z_point_type): ... this.
4289 * win32-low.h (class win32_process_target): Update.
4290
eac215cc
TBA
42912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4292
4293 Turn process_stratum_target's read_auxv op into a method of
4294 process_target.
4295
4296 * target.h (class process_stratum_target): Remove the target op.
4297 (struct process_target): Add the target op. Also add
4298 'supports_read_auxv'.
4299 * target.cc (process_target::read_auxv): Define.
4300 (process_target::supports_read_auxv): Define.
4301
4302 Update the derived classes and callers below.
4303
4304 * server.cc (handle_qxfer_auxv): Update.
4305 (handle_query): Update.
4306 * linux-low.cc (linux_target_ops): Update.
4307 (linux_process_target::supports_read_auxv): Define.
4308 (linux_read_auxv): Turn into ...
4309 (linux_process_target::read_auxv): ... this.
4310 * linux-low.h (class linux_process_target): Update.
4311 * lynx-low.cc (lynx_target_ops): Update.
4312 * nto-low.cc (nto_target_ops): Update.
4313 (nto_process_target::supports_read_auxv): Define.
4314 (nto_read_auxv): Turn into ...
4315 (nto_process_target::read_auxv): ... this.
4316 * nto-low.h (class nto_process_target): Update.
4317 * win32-low.cc (win32_target_ops): Update.
4318
eb497a2a
TBA
43192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4320
4321 Turn process_stratum_target's request_interrupt op into a method of
4322 process_target.
4323
4324 * target.h (struct process_stratum_target): Remove the target op.
4325 (class process_target): Add the target op.
4326
4327 Update the derived classes and callers below.
4328
4329 * remote-utils.cc (putpkt_binary_1): Update.
4330 (input_interrupt): Update.
4331 (getpkt): Update.
4332 * server.cc (handle_v_requests): Update.
4333 * linux-low.cc (linux_target_ops): Update.
4334 (linux_request_interrupt): Turn into ...
4335 (linux_process_target::request_interrupt): ... this.
4336 * linux-low.h (class linux_process_target): Update.
4337 * lynx-low.cc (lynx_target_ops): Update.
4338 (lynx_request_interrupt): Turn into ...
4339 (lynx_process_target::request_interrupt): ... this.
4340 * lynx-low.h (class lynx_process_target): Update.
4341 * nto-low.cc (nto_target_ops): Update.
4342 (nto_request_interrupt): Turn into ...
4343 (nto_process_target::request_interrupt): ... this.
4344 * nto-low.h (class nto_process_target): Update.
4345 * win32-low.cc (win32_target_ops): Update.
4346 (win32_request_interrupt): Turn into ...
4347 (win32_process_target::request_interrupt): ... this.
4348 * win32-low.h (class win32_process_target): Update.
4349
2a31c7aa
TBA
43502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4351
4352 Turn process_stratum_target's look_up_symbols op into a method of
4353 process_target.
4354
4355 * target.h (struct process_stratum_target): Remove the target op.
4356 (class process_target): Add the target op.
4357 * target.cc (process_target::look_up_symbols): Define.
4358
4359 Update the derived classes and callers below.
4360
4361 * server.cc (handle_query): Update.
4362 * linux-low.cc (linux_target_ops): Update.
4363 (linux_look_up_symbols): Turn into ...
4364 (linux_process_target::look_up_symbols): ... this.
4365 * linux-low.h (class linux_process_target): Update.
4366 * lynx-low.cc (lynx_target_ops): Update.
4367 * nto-low.cc (nto_target_ops): Update.
4368 * win32-low.cc (win32_target_ops): Update.
4369
e2558df3
TBA
43702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4371
4372 Turn process_stratum_target's read_memory and write_memory
4373 ops into methods of process_target.
4374
4375 * target.h (struct process_stratum_target): Remove the target ops.
4376 (class process_target): Add the target ops.
4377
4378 Update the derived classes and callers below.
4379
4380 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4381 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4382 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4383 (arm_get_syscall_trapinfo): Update.
4384 * linux-cris-low.cc (cris_breakpoint_at): Update.
4385 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4386 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4387 * linux-mips-low.cc (mips_breakpoint_at): Update.
4388 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4389 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4390 * linux-sh-low.cc (sh_breakpoint_at): Update.
4391 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4392 (sparc_store_gregset_from_stack): Update.
4393 (sparc_breakpoint_at): Update.
4394 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4395 * linux-tile-low.cc (tile_breakpoint_at): Update.
4396 * linux-x86-low.cc (x86_breakpoint_at): Update.
4397 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4398 * mem-brea.cc (insert_memory_breakpoint): Update.
4399 (validate_inserted_breakpoint): Update.
4400 * target.cc (read_inferior_memory): Update.
4401 (target_write_memory): Update.
4402 * linux-low.cc (linux_target_ops): Update.
4403 (linux_read_memory): Make a wrapper around the read_memory target
4404 op call.
4405 (linux_process_target::read_memory): Rename from linux_read_memory.
4406 (linux_write_memory): Turn into ...
4407 (linux_process_target::write_memory): ... this.
4408 * linux-low.h (class linux_process_target): Update.
4409 * lynx-low.cc (lynx_target_ops): Update.
4410 (lynx_read_memory): Turn into ...
4411 (lynx_process_target::read_memory): ... this.
4412 (lynx_write_memory): Turn into ...
4413 (lynx_process_target::write_memory): ... this.
4414 * lynx-low.h (class lynx_process_target): Update.
4415 * nto-low.cc (nto_target_ops): Update.
4416 (nto_read_memory): Turn into ...
4417 (nto_process_target::read_memory): ... this.
4418 (nto_write_memory): Turn into ...
4419 (nto_process_target::write_memory): ... this.
4420 * nto-low.h (class nto_process_target): Update.
4421 * win32-low.cc (win32_target_ops): Update.
4422 (win32_read_inferior_memory): Turn into ...
4423 (win32_process_target::read_memory): ... this.
4424 (win32_write_inferior_memory): Turn into ...
4425 (win32_process_target::write_memory): ... this.
4426 * win32-low.h (class win32_process_target): Update.
4427
79b44087
TBA
44282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4429
4430 Turn process_stratum_target's prepare_to_access_memory and
4431 done_accessing_memory ops into methods of process_target.
4432
4433 * target.h (struct process_stratum_target): Remove the target ops.
4434 (class process_target): Add the target ops.
4435 * target.cc (process_target::prepare_to_access_memory): Define.
4436 (process_target::done_accessing_memory): Define.
4437 (prepare_to_access_memory): Update.
4438 (done_accessing_memory): Update.
4439
4440 Update the derived classes and callers below.
4441
4442 * linux-low.cc (linux_target_ops): Update.
4443 (linux_prepare_to_access_memory): Turn into ...
4444 (linux_process_target::prepare_to_access_memory): ... this.
4445 (linux_done_accessing_memory): Turn into ...
4446 (linux_process_target::done_accessing_memory): ... this.
4447 * linux-low.h (class linux_process_target): Update.
4448 * lynx-low.cc (lynx_target_ops): Update.
4449 * nto-low.cc (nto_target_ops): Update.
4450 * win32-low.cc (win32_target_ops): Update.
4451
a5a4d4cd
TBA
44522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4453
4454 Turn process_stratum_target's fetch_registers and store_registers
4455 ops into methods of process_target.
4456
4457 * target.h (struct process_stratum_target): Remove the target ops.
4458 (class process_target): Add the target ops.
4459 (fetch_inferior_registers): Update the macro.
4460 (store_inferior_registers): Update the macro.
4461
4462 Update the derived classes and callers below.
4463
4464 * linux-low.cc (linux_target_ops): Update.
4465 (linux_fetch_registers): Turn into ...
4466 (linux_process_target::fetch_registers): ... this.
4467 (linux_store_registers): Turn into ...
4468 (linux_process_target::store_registers): ... this.
4469 * linux-low.h (class linux_process_target): Update.
4470 * lynx-low.cc (lynx_target_ops): Update.
4471 (lynx_fetch_registers): Turn into ...
4472 (lynx_process_target::fetch_registers): ... this.
4473 (lynx_store_registers): Turn into ...
4474 (lynx_process_target::store_registers): ... this.
4475 * lynx-low.h (class lynx_process_target): Update.
4476 * nto-low.cc (nto_target_ops): Update.
4477 (nto_fetch_registers): Turn into ...
4478 (nto_process_target::fetch_registers): ... this.
4479 (nto_store_registers): Turn into ...
4480 (nto_process_target::store_registers): ... this.
4481 * nto-low.h (class nto_process_target): Update.
4482 * win32-low.cc (win32_target_ops): Update.
4483 (win32_fetch_inferior_registers): Turn into ...
4484 (win32_process_target::fetch_registers): ... this.
4485 (win32_store_inferior_registers): Turn into ...
4486 (win32_process_target::store_registers): ... this.
4487 * win32-low.h (class win32_process_target): Update.
4488
6532e7e3
TBA
44892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4490
4491 Turn process_stratum_target's wait op into a method of
4492 process_target.
4493
4494 * target.h (struct process_stratum_target): Remove the target op.
4495 (class process_target): Add the target op.
4496
4497 Update the derived classes and callers below.
4498
4499 * target.cc (target_wait): Update.
4500 * linux-low.cc (linux_target_ops): Update.
4501 (linux_wait): Turn into ...
4502 (linux_process_target::wait): ... this.
4503 * linux-low.h (class linux_process_target): Update.
4504 * lynx-low.cc (lynx_target_ops): Update.
4505 (lynx_wait): Turn into ...
4506 (lynx_process_target::wait): ... this.
4507 * lynx-low.h (class lynx_process_target): Update.
4508 * nto-low.cc (nto_target_ops): Update.
4509 (nto_wait): Turn into ...
4510 (nto_process_target::wait): ... this.
4511 * nto-low.h (class nto_process_target): Update.
4512 * win32-low.cc (win32_target_ops): Update.
4513 (win32_wait): Turn into ...
4514 (win32_process_target::wait): ... this.
4515 (do_initial_child_stuff): Update.
4516 * win32-low.h (class win32_process_target): Update.
4517
0e4d7e35
TBA
45182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4519
4520 Turn process_stratum_target's resume op into a method of
4521 process_target.
4522
4523 * target.h (struct process_stratum_target): Remove the target op.
4524 (class process_target): Add the target op.
4525
4526 Update the derived classes and callers below.
4527
4528 * server.cc (resume): Update.
4529 * target.cc (target_stop_and_wait): Update.
4530 (target_continue_no_signal): Update.
4531 (target_continue): Update.
4532 * linux-low.cc (linux_target_ops): Update.
4533 (linux_resume): Turn into ...
4534 (linux_process_target::resume): ... this.
4535 * linux-low.h (class linux_process_target): Update.
4536 * lynx-low.cc (lynx_target_ops): Update.
4537 (lynx_resume): Turn into ...
4538 (lynx_process_target::resume): ... this.
4539 * lynx-low.h (class lynx_process_target): Update.
4540 * nto-low.cc (nto_target_ops): Update.
4541 (nto_resume): Turn into ...
4542 (nto_process_target::resume): ... this.
4543 * nto-low.h (class nto_process_target): Update.
4544 * win32-low.cc (win32_target_ops): Update.
4545 (win32_resume): Turn into ...
4546 (win32_process_target::resume): ... this.
4547 (win32_process_target::detach): Update.
4548 (do_initial_child_stuff): Update.
4549 * win32-low.h (class win32_process_target): Update.
4550
13d3d99b
TBA
45512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4552
4553 Turn process_stratum_target's thread_alive op into a method of
4554 process_target.
4555
4556 * target.h (struct process_stratum_target): Remove the target op.
4557 (class process_target): Add the target op.
4558 (mythread_alive): Update the macro.
4559
4560 Update the derived classes and callers below.
4561
4562 * linux-low.cc (linux_target_ops): Update.
4563 (linux_thread_alive): Turn into ...
4564 (linux_process_target::thread_alive): ... this.
4565 (wait_for_sigstop): Update.
4566 * linux-low.h (class linux_process_target): Update.
4567 * lynx-low.cc (lynx_target_ops): Update.
4568 (lynx_thread_alive): Turn into ...
4569 (lynx_process_target::thread_alive): ... this.
4570 * lynx-low.h (class lynx_process_target): Update.
4571 * nto-low.cc (nto_target_ops): Update.
4572 (nto_thread_alive): Turn into ...
4573 (nto_process_target::thread_alive): ... this.
4574 * nto-low.h (class nto_process_target): Update.
4575 * win32-low.cc (win32_target_ops): Update.
4576 (win32_thread_alive): Turn into ...
4577 (win32_process_target::thread_alive): ... this.
4578 * win32-low.h (class win32_process_target): Update.
4579
95a49a39
TBA
45802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4581
4582 Turn process_stratum_target's join op into a method of
4583 process_target.
4584
4585 * target.h (struct process_stratum_target): Remove the target op.
4586 (class process_target): Add the target op.
4587 (join_inferior): Update the macro.
4588
4589 Update the derived classes and callers below.
4590
4591 * linux-low.cc (linux_target_ops): Update.
4592 (linux_join): Turn into ...
4593 (linux_process_target::join): ... this.
4594 * linux-low.h (class linux_process_target): Update.
4595 * lynx-low.cc (lynx_target_ops): Update.
4596 (lynx_join): Turn into ...
4597 (lynx_process_target::join): ... this.
4598 * lynx-low.h (class lynx_process_target): Update.
4599 * nto-low.cc (nto_target_ops): Update.
4600 (nto_process_target::join): Define.
4601 * nto-low.h (class nto_process_target): Update.
4602 * win32-low.cc (win32_target_ops): Update.
4603 (win32_join): Turn into ...
4604 (win32_process_target::join): ... this.
4605 * win32-low.h (class win32_process_target): Update.
4606
8adb37b9
TBA
46072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4608
4609 Turn process_stratum_target's mourn op into a method of
4610 process_target.
4611
4612 * target.h (struct process_stratum_target): Remove the target op.
4613 (class process_target): Add the target op.
4614
4615 Update the derived classes and callers below.
4616
4617 * target.cc (target_mourn_inferior): Update.
4618 * linux-low.cc (linux_target_ops): Update.
4619 (linux_mourn): Turn into ...
4620 (linux_process_target::mourn): ... this.
4621 (handle_extended_wait): Update.
4622 (linux_process_target::kill): Update.
4623 (linux_process_target::detach): Update.
4624 * linux-low.h (class linux_process_target): Update.
4625 * lynx-low.cc (lynx_target_ops): Update.
4626 (lynx_mourn): Turn into ...
4627 (lynx_process_target::mourn): ... this.
4628 * lynx-low.h (class lynx_process_target): Update.
4629 * nto-low.cc (nto_target_ops): Update.
4630 (nto_mourn): Turn into ...
4631 (nto_process_target::mourn): ... this.
4632 * nto-low.h (class nto_process_target): Update.
4633 * win32-low.cc (win32_target_ops): Update.
4634 (win32_mourn): Turn into ...
4635 (win32_process_target::mourn): ... this.
4636 * win32-low.h (class win32_process_target): Update.
4637
9061c9cf
TBA
46382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4639
4640 Turn process_stratum_target's detach op into a method of
4641 process_target.
4642
4643 * target.h (struct process_stratum_target): Remove the target op.
4644 (class process_target): Add the target op.
4645 (detach_inferior): Update the macro.
4646
4647 Update the derived classes and callers below.
4648
4649 * linux-low.cc (linux_target_ops): Update.
4650 (linux_detach): Turn into ...
4651 (linux_process_target::detach): ... this.
4652 * linux-low.h (class linux_process_target): Update.
4653 * lynx-low.cc (lynx_target_ops): Update.
4654 (lynx_detach): Turn into ...
4655 (lynx_process_target::detach): ... this.
4656 * lynx-low.h (class lynx_process_target): Update.
4657 * nto-low.cc (nto_target_ops): Update.
4658 (nto_detach): Turn into ...
4659 (nto_process_target::detach): ... this.
4660 * nto-low.h (class nto_process_target): Update.
4661 * win32-low.cc (win32_target_ops): Update.
4662 (win32_detach): Turn into ...
4663 (win32_process_target::detach): ... this.
4664 * win32-low.h (class win32_process_target): Update.
4665
c6885a57
TBA
46662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4667
4668 Turn process_stratum_target's kill op into a method of
4669 process_target.
4670
4671 * target.h (struct process_stratum_target): Remove the target op.
4672 (class process_target): Add the target op.
4673
4674 Update the derived classes and callers below.
4675
4676 * target.cc (kill_inferior): Update.
4677 * linux-low.cc (linux_target_ops): Update.
4678 (linux_kill): Turn into ...
4679 (linux_process_target::kill): ... this.
4680 * linux-low.h (class linux_process_target): Update.
4681 * lynx-low.cc (lynx_target_ops): Update.
4682 (lynx_kill): Turn into ...
4683 (lynx_process_target::kill): ... this.
4684 * lynx-low.h (class lynx_process_target): Update.
4685 * nto-low.cc (nto_target_ops): Update.
4686 (nto_kill): Turn into ...
4687 (nto_process_target::kill): ... this.
4688 * nto-low.h (class nto_process_target): Update.
4689 * win32-low.cc (win32_target_ops): Update.
4690 (win32_kill): Turn into ...
4691 (win32_process_target::kill): ... this.
4692 * win32-low.h (class win32_process_target): Update.
4693
ef03dad8
TBA
46942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4695
4696 Turn process_stratum_target's attach op into a method of
4697 process_target.
4698
4699 * target.h (struct process_stratum_target): Remove the target op.
4700 (class process_target): Add the target op.
4701 (myattach): Update the macro.
4702
4703 Update the derived classes and callers below.
4704
4705 * linux-low.cc (linux_target_ops): Update.
4706 (linux_attach): Turn into ...
4707 (linux_process_target::attach): ... this.
4708 * linux-low.h (class linux_process_target): Update.
4709 * lynx-low.cc (lynx_target_ops): Update.
4710 (lynx_attach): Turn into ...
4711 (lynx_process_target::attach): ... this.
4712 * lynx-low.h (class lynx_process_target): Update.
4713 * nto-low.cc (nto_target_ops): Update.
4714 (nto_attach): Turn into ...
4715 (nto_process_target::attach): ... this.
4716 * nto-low.h (class nto_process_target): Update.
4717 * win32-low.cc (win32_target_ops): Update.
4718 (win32_attach): Turn into ...
4719 (win32_process_target::attach): ... this.
4720 * win32-low.h (class win32_process_target): Update.
4721
6dee9afb
TBA
47222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4723
4724 Turn process_stratum_target's post_create_inferior op into a method
4725 of process_target.
4726
4727 * target.h (struct process_stratum_target): Remove the target op.
4728 (class process_target): Add the target op.
4729 (target_post_create_inferior): Update the macro.
4730 * target.cc (process_target::post_create_inferior): Define.
4731
4732 Update the derived classes and callers below.
4733
4734 * linux-low.cc (linux_target_ops): Update.
4735 (linux_post_create_inferior): Turn into ...
4736 (linux_process_target::post_create_inferior): ... this.
4737 * linux-low.h (class linux_process_target): Update.
4738 * lynx-low.cc (lynx_target_ops): Update.
4739 * nto-low.cc (nto_target_ops): Update.
4740 * win32-low.cc (win32_target_ops): Update.
4741
15295543
TBA
47422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4743
4744 Turn process_stratum_target's create_inferior op into a method of
4745 process_target.
4746
4747 * target.h (struct process_stratum_target): Remove the target op.
4748 (class process_target): Add the target op.
4749 (create_inferior): Rename the macro to ...
4750 (target_create_inferior): ... this.
4751
4752 Update the derived classes and callers below.
4753
4754 * server.cc (handle_v_run): Update.
4755 (captured_main): Update.
4756 (process_serial_event): Update.
4757 * linux-low.cc (linux_target_ops): Update.
4758 (linux_create_inferior): Turn into ...
4759 (linux_process_target::create_inferior): ... this.
4760 * linux-low.h (class linux_process_target): Update.
4761 * lynx-low.cc (lynx_target_ops): Update.
4762 (lynx_create_inferior): Turn into ...
4763 (lynx_process_target::create_inferior): ... this.
4764 * lynx-low.h (class lynx_process_target): Update.
4765 * nto-low.cc (nto_target_ops): Update.
4766 (nto_create_inferior): Turn into ...
4767 (nto_process_target::create_inferior): ... this.
4768 * nto-low.h (class nto_process_target): Update.
4769 * win32-low.cc (win32_target_ops): Update.
4770 (win32_create_inferior): Turn into ...
4771 (win32_process_target::create_inferior): ... this.
4772 * win32-low.h (class win32_process_target): Update.
4773
5ef9273d
TBA
47742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4775
4776 * target.h (class process_target): New class definition.
4777 (struct process_stratum_target) <pt>: New field with type
4778 'process_target*'.
4779 * linux-low.h (class linux_process_target): Define as a derived
4780 class of 'process_target'.
4781 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4782 as the 'pt' field.
4783 * lynx-low.h (class lynx_process_target): Define as a derived
4784 class of 'process_target'.
4785 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4786 as the 'pt' field.
4787 * nto-low.h (class nto_process_target): Define as a derived
4788 class of 'process_target'.
4789 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4790 as the 'pt' field.
4791 * win32-low.h (class win32_process_target): Define as a derived
4792 class of 'process_target'.
4793 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4794 as the 'pt' field.
4795
9f1528a1
AB
47962020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4797
4798 * configure: Regenerate.
4799
bf84f706
MR
48002020-02-19 Maciej W. Rozycki <macro@wdc.com>
4801 Andrew Burgess <andrew.burgess@embecosm.com>
4802
4803 * linux-riscv-low.cc: New file.
4804 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4805 and nat/riscv-linux-tdesc.c.
4806 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4807 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4808 Define.
4809
1a627e7e
TT
48102020-02-14 Tom Tromey <tom@tromey.com>
4811
4812 * acinclude.m4: Don't include acx_configure_dir.m4.
4813 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4814 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4815 (all, install-only, uninstall, clean-info, clean)
4816 (maintainer-clean): Don't recurse.
4817 (subdir_do, all-lib): Remove.
4818 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4819 (GNULIB_H): Remove.
4820 (generated_files): Update.
4821 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4822 * configure: Rebuild.
4823 * configure.ac: Don't configure gnulib or libiberty.
4824 (GNULIB): Update.
4825
a9b34532
EZ
48262020-02-14 Eli Zaretskii <eliz@gnu.org>
4827
4828 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4829 preparing the command line for CreateProcess.
4830 (win32_create_inferior): Reflect the program name in debugging
4831 output that shows the process and its command line.
4832
feacfcac
SM
48332020-02-13 Simon Marchi <simon.marchi@efficios.com>
4834
4835 * Makefile.in: Rename source files from .c to .cc.
4836 * %.c: Rename to %.cc.
4837 * configure.ac: Rename server.c to server.cc.
4838 * configure: Re-generate.
4839
06b3c5bd
SM
48402020-02-13 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4843
052793ad
HD
48442020-02-12 Hannes Domani <ssbssa@yahoo.de>
4845
4846 * win32-low.c (win32_create_inferior): Set signal_pid.
4847
f20e3e82
MR
48482020-02-12 Maciej W. Rozycki <macro@wdc.com>
4849 Pedro Alves <palves@redhat.com>
4850
4851 Skip building gdbserver in a cross-configuration.
4852 * configure.srv: Set $gdbserver_host depending on whether $target
4853 is $host. Use $gdbserver_host instead of $host.
4854
8ddd8e0e
SM
48552020-02-11 Simon Marchi <simon.marchi@efficios.com>
4856
4857 * configure: Re-generate.
4858
898e7f60
SM
48592020-02-11 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * configure: Re-generate.
4862
58df732b
SM
48632020-02-11 Simon Marchi <simon.marchi@efficios.com>
4864
4865 * acinclude.m4: Update warning.m4 path.
4866
7928d571
HD
48672020-02-09 Hannes Domani <ssbssa@yahoo.de>
4868
4869 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4870 (handle_exception): Set siginfo_er.
4871 (win32_xfer_siginfo): New function.
4872
919adfe8
TT
48732020-02-07 Tom Tromey <tom@tromey.com>
4874 Pedro Alves <palves@redhat.com>
4875
4876 * README: Update build documentation.
4877 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4878 host, not target.
4879 * configure.ac: Update paths.
4880 * configure: Rebuild.
4881 * acinclude.m4: Update paths.
4882 * Makefile.in: Update include paths.
4883 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4884 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4885 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4886 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4887 (%-generated.c): Update paths.
4888 * Move entire directory from ../gdb/gdbserver.
4889
287c844a
MR
48902020-01-29 Maciej W. Rozycki <macro@wdc.com>
4891
4892 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4893
548a204f
PFC
48942020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4895
4896 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4897 assignment instead of srv_linux_obj.
4898
a2236a08
HD
48992020-01-28 Hannes Domani <ssbssa@yahoo.de>
4900
4901 * server.c (handle_qxfer_libraries): Write segment-address with
4902 paddress.
4903
bdaed379
HD
49042020-01-24 Hannes Domani <ssbssa@yahoo.de>
4905
4906 * Makefile.in (install-strip): New target.
4907 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4908 * aclocal.m4: Regenerate.
4909 * configure: Regenerate.
4910 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4911
42cd72aa
MR
49122020-01-24 Maciej W. Rozycki <macro@wdc.com>
4913
4914 * Makefile.in (SFILES): Adjust paths to point to real files.
4915 (OBS): Move waitstatus.o to target/waitstatus.o.
4916 (TAGS): Transform paths appropriately.
4917 (%.o): Rename to...
4918 (nat/%.o): ... this pattern rule.
4919 (%.o): Rename to...
4920 (target/%.o): ... this pattern rule.
4921 * configure.srv: Adjust paths throughout to include nat/ prefix
4922 with the revant files.
4923 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4924 * configure: Regenerate.
4925
42ba50ec
MR
49262020-01-24 Maciej W. Rozycki <macro@wdc.com>
4927
4928 * Makefile.in (TAGS): Remove config files from the recipe.
4929
05ea2a05
TT
49302020-01-14 Tom Tromey <tom@tromey.com>
4931
4932 * configure: Rebuild.
4933 * configure.ac: Remove any checks that were added to common.m4.
4934 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4935 lib-link.m4.
4936
01027315
TT
49372020-01-14 Tom Tromey <tom@tromey.com>
4938
4939 * server.h: Include config.h.
4940 * gdbreplay.c: Include config.h.
4941 * configure: Rebuild.
4942 * configure.ac: Don't source common.host.
4943 * acinclude.m4: Update path.
4944 * Makefile.in (INCSUPPORT): New variable.
4945 (INCLUDE_CFLAGS): Add INCSUPPORT.
4946 (SFILES): Update paths.
4947 (version-generated.c): Update path to create-version.sh.
4948 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4949
b2ceabe8
TT
49502020-01-14 Tom Tromey <tom@tromey.com>
4951
4952 * configure.ac (LIBS): Use WIN32APILIBS.
4953 (USE_WIN32API): Don't define.
4954 * configure: Rebuild.
4955
25c51f71
TT
49562020-01-14 Tom Tromey <tom@tromey.com>
4957
4958 * configure: Rebuild.
4959
c0bd321d
SM
49602020-01-13 Simon Marchi <simon.marchi@efficios.com>
4961
4962 * Makefile.in (%-generated.c): Remove rule for files from
4963 regformats/i386.
4964
bb564c58
SM
49652020-01-13 Simon Marchi <simon.marchi@efficios.com>
4966
4967 * configure: Re-generate.
4968
6e37c371
SM
49692020-01-13 Simon Marchi <simon.marchi@efficios.com>
4970
4971 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4972 Define to static.
4973 * tracepoint.c (stop_tracing, flush_trace_buffer,
4974 about_to_request_buffer_space, get_trace_state_variable_value,
4975 set_trace_state_variable_value, gdb_collect): Add declaration.
4976
df4a0200
SM
49772020-01-13 Simon Marchi <simon.marchi@efficios.com>
4978
4979 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4980 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4981 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4982 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4983 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4984 static.
4985
89e94ec9
SM
49862020-01-13 Simon Marchi <simon.marchi@efficios.com>
4987
4988 * inferiors.c: Include gdbsupport/common-inferior.h.
4989
2552728a
SM
49902020-01-13 Simon Marchi <simon.marchi@efficios.com>
4991
4992 * hostio-errno.c: Include hostio.h.
4993
4025fa09
SM
49942020-01-13 Simon Marchi <simon.marchi@efficios.com>
4995
4996 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4997 prerequisite.
4998
c0b0a142
SM
49992020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5000
5001 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
5002 * linux-arm-tdesc.h: Include arch/arm.h.
5003
bb1183e2
SM
50042020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5005
5006 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
5007
f5df0b5f
SM
50082020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5009
5010 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
5011 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
5012
5b6d1e4f
PA
50132020-01-10 Pedro Alves <palves@redhat.com>
5014
5015 * fork-child.c (post_fork_inferior): Pass target down to
5016 startup_inferior.
5017 * inferiors.c (switch_to_thread): Add process_stratum_target
5018 parameter.
5019 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
5020 * nto-low.c (nto_target_ops): Now a process_stratum_target.
5021 * linux-low.c (linux_target_ops): Now a process_stratum_target.
5022 * remote-utils.c (prepare_resume_reply): Pass the target to
5023 switch_to_thread.
5024 * target.c (the_target): Now a process_stratum_target.
5025 (done_accessing_memory): Pass the target to switch_to_thread.
5026 (set_target_ops): Ajust to use process_stratum_target.
5027 * target.h (struct target_ops): Rename to ...
5028 (struct process_stratum_target): ... this.
5029 (the_target, set_target_ops): Adjust.
5030 (prepare_to_access_memory): Adjust comment.
5031 * win32-low.c (child_xfer_memory): Adjust to use
5032 process_stratum_target.
5033 (win32_target_ops): Now a process_stratum_target.
5034
559e7e50
EZ
50352020-01-06 Eli Zaretskii <eliz@gnu.org>
5036 Pedro Alves <palves@redhat.com>
5037
5038 * win32-low.c (get_child_debug_event): Extract the fatal exception
5039 from the exit status and convert to the equivalent Posix signal
5040 number.
5041 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5042 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5043
48189bec
HD
50442020-01-01 Hannes Domani <ssbssa@yahoo.de>
5045
5046 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5047
5dd8bf88
JB
50482020-01-01 Joel Brobecker <brobecker@adacore.com>
5049
5050 * server.c (gdbserver_version): Change copyright year to 2020.
5051 * gdbreplay.c (gdbreplay_version): Likewise.
5052
0ad6b8ee
CB
50532019-12-19 Christian Biesinger <cbiesinger@google.com>
5054
5055 * configure: Regenerate.
5056 * configure.ac: Quote variable arguments of test.
5057
1ee7b812
BE
50582019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5059
5060 * Makefile.in: Fix build with GNU Make 3.81
5061
d9fa87f4
TT
50622019-12-16 Tom Tromey <tromey@adacore.com>
5063
5064 * server.c (get_exec_file): Constify result.
5065
ab7d13f0
CB
50662019-12-10 Christian Biesinger <cbiesinger@google.com>
5067
5068 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5069 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5070 * config.in: Regenerate.
5071 * configure: Regenerate.
5072 * configure.ac: Don't check for strerror.
5073 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5074 Call safe_strerror instead of strerror.
5075 * server.h (strerror): Remove this now-unnecessary declaration.
5076 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5077 strerror.
5078 (gdb_agent_helper_thread): Likewise.
5079 * utils.c (perror_with_name): Likewise.
5080
4da8c3a8
TT
50812019-11-26 Tom Tromey <tom@tromey.com>
5082
5083 * configure, config.in: Rebuild.
5084
21987b9c
TT
50852019-11-26 Tom Tromey <tom@tromey.com>
5086
5087 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5088 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5089 gdb_sigmask.
5090 * configure, config.in: Rebuild.
5091
5e030278
TT
50922019-11-26 Tom Tromey <tom@tromey.com>
5093
5094 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5095 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5096 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5097 * acinclude.m4: Include ax_pthread.m4.
5098 * config.in, configure: Rebuild.
5099
6d91ce9a
CB
51002019-11-26 Christian Biesinger <cbiesinger@google.com>
5101
5102 * debug.c (debug_set_output): Call safe_strerror instead of
5103 strerror.
5104 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5105 (linux_kill_one_lwp): Likewise.
5106 (linux_detach_one_lwp): Likewise.
5107 (linux_wait_for_event_filtered): Likewise.
5108 (store_register): Likewise.
5109 * lynx-low.c (lynx_attach): Likewise.
5110 * mem-break.c (insert_memory_breakpoint): Likewise.
5111 (remove_memory_breakpoint): Likewise.
5112 (delete_fast_tracepoint_jump): Likewise.
5113 (set_fast_tracepoint_jump): Likewise.
5114 (uninsert_fast_tracepoint_jumps_at): Likewise.
5115 (reinsert_fast_tracepoint_jumps_at): Likewise.
5116 * nto-low.c (nto_xfer_memory): Likewise.
5117 (nto_resume): Likewise.
5118
6cdd651f
LM
51192019-11-20 Luis Machado <luis.machado@linaro.org>
5120
5121 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5122 instead of register count.
5123 * tdesc.c (tdesc_contains_feature): New function.
5124 * tdesc.h (tdesc_contains_feature): New prototype.
5125
cd850b40
CB
51262019-11-15 Christian Biesinger <cbiesinger@google.com>
5127
5128 * Makefile.in: Add safe-strerror.c.
5129 * configure: Regenerate.
5130 * configure.ac: Don't source common.host.
5131
5abebf3c
CB
51322019-11-15 Christian Biesinger <cbiesinger@google.com>
5133
5134 * config.in: Regenerate.
5135 * configure: Regenerate.
5136
e06f3d6e
AB
51372019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 * ax.c (ax_printf): Handle size_t_arg.
5140
ca3a04f6
CB
51412019-11-06 Christian Biesinger <cbiesinger@google.com>
5142
5143 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5144 * mi/mi-main.c (output_cores): Likewise.
5145 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5146 (linux_xfer_osdata_modules): Likewise.
5147 * remote.c (register_remote_support_xml): Likewise.
5148 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5149 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5150
e48f6033
CB
51512019-11-01 Christian Biesinger <cbiesinger@google.com>
5152
5153 * configure: Regenerate.
5154 * configure.ac: Remove check for strerror_r.
5155
e7e97a2e
CB
51562019-10-31 Christian Biesinger <cbiesinger@google.com>
5157
5158 * config.in: Regenerate.
5159 * configure: Regenerate.
5160 * configure.ac: Also check for strerror_r.
5161
75cafaa6
CB
51622019-10-31 Christian Biesinger <cbiesinger@google.com>
5163
5164 * ax.h (debug_agent): Remove duplicate declaration.
5165
30baf67b
TV
51662019-10-26 Tom de Vries <tdevries@suse.de>
5167
5168 * linux-aarch64-low.c: Fix typos in comments.
5169 * linux-arm-low.c: Same.
5170 * linux-low.c: Same.
5171 * linux-ppc-low.c: Same.
5172 * proc-service.c: Same.
5173 * regcache.h: Same.
5174 * server.c: Same.
5175 * tracepoint.c: Same.
5176 * win32-low.c: Same.
5177
52c64cf7
TT
51782019-10-25 Tom Tromey <tromey@adacore.com>
5179
5180 * utils.c (xstrdup): Remove.
5181
c12d372d
TT
51822019-10-23 Tom Tromey <tom@tromey.com>
5183
5184 * configure, config.in: Rebuild.
5185
4d0b984b
TT
51862019-10-23 Tom Tromey <tom@tromey.com>
5187
5188 * configure: Rebuild.
5189 * acinclude.m4: Use m4_include, not sinclude.
5190
c5adaa19
TT
51912019-10-17 Tom Tromey <tromey@adacore.com>
5192
5193 * configure: Rebuild.
5194 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5195 in AC_CONFIG_FILES invocation.
5196 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5197 invocation.
5198
fec4e896
CB
51992019-10-16 Christian Biesinger <cbiesinger@google.com>
5200
5201 * server.c: Include xml-builtin.h.
5202 (get_xml_features): Don't declare xml_builtins here.
5203
00975ff6
AB
52042019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5205
5206 * Makefile.in: Remove references to vec-ipa.o.
5207
0dc32745
AB
52082019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5209
5210 * Makefile.in: Remove references to vec.c.
5211
3e6ec53a
CB
52122019-10-02 Christian Biesinger <cbiesinger@google.com>
5213
5214 * server.c (server_waiting): Change to bool.
5215 (extended_protocol): Likewise.
5216 (response_needed): Likewise.
5217 (exit_requested): Likewise.
5218 (run_once): Likewise.
5219 (report_no_resumed): Likewise.
5220 (non_stop): Likewise.
5221 (disable_packet_vCont): Likewise.
5222 (disable_packet_Tthread): Likewise.
5223 (disable_packet_qC): Likewise.
5224 (disable_packet_qfThreadInfo): Likewise.
5225 (handle_general_set): Update.
5226 (handle_detach): Update.
5227 (handle_monitor_command): Update.
5228 (handle_query): Update.
5229 (captured_main): Update.
5230 (process_serial_event): Update.
5231 * server.h (server_waiting): Change to bool.
5232 (disable_packet_vCont): Likewise.
5233 (disable_packet_Tthread): Likewise.
5234 (disable_packet_qC): Likewise.
5235 (disable_packet_qfThreadInfo): Likewise.
5236 (run_once): Likewise.
5237 (non_stop): Likewise.
5238 * target.c (target_stop_and_wait): Update.
5239
80fd2826
TT
52402019-10-02 Tom Tromey <tromey@adacore.com>
5241
5242 * Makefile.in (SFILES): Add common-inferior.c.
5243 (OBS): Add common-inferior.o.
5244 * server.c (startup_with_shell): Don't define.
5245
46f29a9a
AB
52462019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5247
5248 * linux-low.c (linux_low_read_btrace): Update for change to
5249 std::vector.
5250
f9d949fb
CB
52512019-09-20 Christian Biesinger <cbiesinger@google.com>
5252
5253 * debug.c (debug_threads): Remove comment in favor of the header.
5254 * debug.h (using_threads): Add declaration.
5255 (debug_threads): Add comment.
5256 * linux-aarch64-low.c: Include debug.h and remove declaration of
5257 debug_threads.
5258 * nto-low.c: Likewise.
5259 * remote-utils.c: Likewise.
5260 * thread-db.c: Likewise.
5261
abf516c6
UW
52622019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5263
5264 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5265 and powerpc-cell64l-ipa.o.
5266 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5267 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5268 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5269 (spu*-*-*): Remove.
5270
5271 * spu-low.c: Remove file.
5272
5273 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5274 (parse_spufs_run): Remove.
5275 (ppc_get_pc): Remove Cell/B.E. support.
5276 (ppc_set_pc): Likewise.
5277 (ppc_breakpoint_at): Likewise.
5278 (ppc_arch_setup): Likewise.
5279 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5280 tdesc_powerpc_cell32l.
5281 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5282 or init_registers_powerpc_cell32l.
5283 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5284 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5285 or init_registers_powerpc_cell32l.
5286 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5287 (init_registers_powerpc_cell32l): Remove prototype.
5288 (init_registers_powerpc_cell64l): Likewise.
5289
5290 * target.h (struct target_ops): Remove qxfer_spu member.
5291 * server.c (handle_qxfer_spu): Remove.
5292 (qxfer_packets): Remove entry for "spu".
5293 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5294 * linux-low.c (SPUFS_MAGIC): Remove.
5295 (spu_enumerate_spu_ids): Remove.
5296 (linux_qxfer_spu): Remove.
5297 (linux_target_ops): Remove qxfer_spu member.
5298 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5299 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5300 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5301
2d41fa11
SDJ
53022019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5303
5304 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5305 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5306 * config.in: Regenerate.
5307 * configure: Regenerate.
5308
d59b55f0
TT
53092019-08-15 Tom Tromey <tromey@adacore.com>
5310
5311 * target.c (target_write_memory): Use gdb::byte_vector.
5312
4196ab2a
TT
53132019-08-15 Tom Tromey <tromey@adacore.com>
5314
5315 * tracepoint.c (write_inferior_data_pointer)
5316 (write_inferior_integer, write_inferior_int8)
5317 (write_inferior_uinteger, m_tracepoint_action_download)
5318 (r_tracepoint_action_download, x_tracepoint_action_download)
5319 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5320 (download_agent_expr, download_tracepoint_1)
5321 (download_trace_state_variables, upload_fast_traceframes): Update.
5322 * server.c (gdb_write_memory): Update.
5323 * remote-utils.c (relocate_instruction): Update.
5324 * proc-service.c (ps_pdwrite): Update.
5325 * mem-break.c (remove_memory_breakpoint)
5326 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5327 (uninsert_fast_tracepoint_jumps_at)
5328 (reinsert_fast_tracepoint_jumps_at): Update.
5329 * linux-x86-low.c (append_insns)
5330 (i386_install_fast_tracepoint_jump_pad)
5331 (amd64_write_goto_address, i386_write_goto_address): Update.
5332 * linux-s390-low.c (append_insns, s390_write_goto_address):
5333 Update.
5334 * linux-ppc-low.c (ppc_relocate_instruction)
5335 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5336 (ppc_write_goto_address): Update.
5337 * linux-aarch64-low.c (append_insns): Update.
5338 * target.h (struct target_ops): Update.
5339 (write_inferior_memory): Don't declare.
5340 * target.c (target_write_memory): Rename from
5341 write_inferior_memory. Remove old target_write_memory.
5342
c6778d00
TT
53432019-08-15 Tom Tromey <tromey@adacore.com>
5344
5345 * target.c (write_inferior_memory): Use std::vector.
5346
404f2902
FCE
53472019-08-06 Frank Ch. Eigler <fche@redhat.com>
5348
5349 PR build/24886
5350 * configure.ac: Drop enable-libmcheck support.
5351 * configure, config.in: Rebuild.
5352 * acinclude.m4: Don't include it.
5353
4c5aa8e0
AH
53542019-07-19 Alan Hayward <alan.hayward@arm.com>
5355
5356 * configure.srv: Remove Arm xml files.
5357
7cc17433
AH
53582019-07-19 Alan Hayward <alan.hayward@arm.com>
5359
5360 * configure.srv: Add new files. Remove xml generated files.
5361 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5362 registers.
5363 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5364 * linux-aarch32-tdesc.c: New file.
5365 * linux-aarch32-tdesc.h: New file.
5366 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5367 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5368 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5369 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5370 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5371 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5372 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5373 (arm_read_description): Call arm_linux_read_description.
5374 (initialize_low_arch): Don't init registers.
5375 * linux-arm-tdesc.c: New file.
5376 * linux-arm-tdesc.h: New file.
5377
166a82be
AH
53782019-07-10 Alan Hayward <alan.hayward@arm.com>
5379
5380 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5381 Move counter inside for.
5382 (arm_read_description): Check ptrace earlier.
5383 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5384
268a13a5
TT
53852019-07-09 Tom Tromey <tom@tromey.com>
5386
5387 * configure: Rebuild.
5388 * configure.ac: Change common to gdbsupport.
5389 * acinclude.m4: Change common to gdbsupport.
5390 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5391 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5392 common to gdbsupport.
5393 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5394 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5395 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5396 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5397 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5398 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5399 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5400 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5401 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5402 common to gdbsupport.
5403
350fab54
AH
54042019-07-04 Alan Hayward <alan.hayward@arm.com>
5405
5406 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5407 defines.
5408 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5409
2b40fda7
AH
54102019-07-04 Alan Hayward <alan.hayward@arm.com>
5411
5412 * configure.srv: Remove legacy xml.
5413 * linux-aarch64-low.c (initialize_low_arch): Remove
5414 initialize_low_tdesc call.
5415 * linux-aarch64-tdesc-selftest.c: Remove file.
5416 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5417 * linux-x86-low.c (initialize_low_arch): Remove
5418 initialize_low_tdesc call.
5419 * linux-x86-tdesc-selftest.c: Remove file.
5420 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5421
7d10623d
TV
54222019-06-20 Tom de Vries <tdevries@suse.de>
5423
5424 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5425 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5426
8d6a48df
TV
54272019-06-19 Tom de Vries <tdevries@suse.de>
5428
5429 * debug.h (debug_write): Change return type to ssize_t.
5430 * debug.c (debug_write): Same.
5431
73cc7272
TT
54322019-06-14 Tom Tromey <tom@tromey.com>
5433
5434 * configure.ac: Use new path to gnulib.
5435 * configure: Rebuild.
5436 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5437 to gnulib.
5438
08f10e02
TT
54392019-06-11 Tom Tromey <tom@tromey.com>
5440
5441 * Makefile.in (SFILES): Add alloc.c.
5442 (OBS): Add alloc.o.
5443 (IPA_OBJS): Add alloc-ipa.o.
5444 (alloc-ipa.o): New target.
5445 (%.o: ../%.c): New pattern rule.
5446
422186a9
TT
54472019-06-10 Tom Tromey <tromey@adacore.com>
5448
5449 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5450 end warning with a newline.
5451 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5452 newline.
5453 * thread-db.c (attach_thread): Don't end warning with a newline.
5454 (thread_db_notice_clone): Likewise.
5455 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5456 newline.
5457 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5458 end warning with a newline.
5459
b02f78f9
PA
54602019-06-04 Pedro Alves <palves@redhat.com>
5461
5462 * server.c (captured_main): Use make_unique_xstrdup.
5463
88ed7edb
TT
54642019-06-02 Tom Tromey <tom@tromey.com>
5465
5466 * gdbreplay.c (fromhex): Remove.
5467 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5468
33a6bc35
TT
54692019-05-29 Tom Tromey <tromey@adacore.com>
5470
5471 * configure: Rebuild.
5472
e90a813d
KB
54732019-05-06 Kevin Buettner <kevinb@redhat.com>
5474
5475 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5476 sign extension code on 32-bit builds.
5477
353ea2d1
EZ
54782019-05-03 Eli Zaretskii <eliz@gnu.org>
5479
5480 * remote-utils.c:
5481 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5482
b494cdff
TT
54832019-04-19 Tom Tromey <tom@tromey.com>
5484
5485 * server.c (struct vstop_notif): Derive from notif_event.
5486 <base>: Remove.
5487 (queue_stop_reply): Update.
5488 (remove_all_on_match_ptid): Change type. Rewrite.
5489 (discard_queued_stop_replies): Rewrite.
5490 (in_queued_stop_replies_ptid): Change type.
5491 (in_queued_stop_replies): Rewrite.
5492 (notif_stop): Update.
5493 (queue_stop_reply_callback): Update.
5494 (captured_main): Don't call initialize_notif.
5495 (push_stop_notification): Update.
5496 * notif.c (notif_write_event, handle_notif_ack)
5497 (notif_event_enque, notif_push): Update.
5498 (notif_event_xfree, initialize_notif): Remove.
5499 * notif.h (struct notif_event): Include <list>, not
5500 "common/queue.h".
5501 (struct notif_server) <queue>: Now a std::list.
5502 (notif_event_p): Remove typedef.
5503 (initialize_notif): Don't declare.
5504 (struct notif_event): Add virtual destructor.
5505
a7e559cc
AH
55062019-04-17 Alan Hayward <alan.hayward@arm.com>
5507
5508 * ax.c (ax_vdebug): Call debug_printf.
5509 * debug.c (debug_write): New function.
5510 * debug.h (debug_write): New declaration.
5511 * linux-low.c (sigchld_handler): Call debug_write.
5512
aeb2e706
AH
55132019-04-17 Alan Hayward <alan.hayward@arm.com>
5514
5515 * debug.c (debug_set_output): New function.
5516 (debug_vprintf): Send output to debug_file.
5517 (debug_flush): Likewise.
5518 * debug.h (debug_set_output): New declaration.
5519 * server.c (handle_monitor_command): Add debug-file option.
5520 (captured_main): Likewise.
5521
c1bc0935
AH
55222019-04-17 Alan Hayward <alan.hayward@arm.com>
5523
5524 * debug.c (remote_debug): Add definition.
5525 * debug.h (remote_debug): Add declaration.
5526 * hostio.c (remote_debug): Remove declaration.
5527 * remote-utils.c (struct ui_file): Likewise.
5528 (remote_debug): Likewise.
5529 * remote-utils.h (remote_debug): Likewise,
5530 * server.c (remote_debug): Remove definition.
5531
3f52fdbc
KB
55322019-04-10 Kevin Buettner <kevinb@redhat.com>
5533
5534 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5535 when using a 64-bit gdbserver.
5536
b0319eaa
TT
55372019-04-09 Tom Tromey <tromey@adacore.com>
5538
5539 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5540
eedc3f4f
TT
55412019-04-08 Tom Tromey <tom@tromey.com>
5542
5543 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5544 throw.
5545 (linux_resume_one_lwp): Likewise.
5546
230d2906
TT
55472019-04-08 Tom Tromey <tom@tromey.com>
5548
5549 * gdbreplay.c: Update.
5550 * linux-low.c: Update.
5551 * server.c: Update.
5552
a70b8144
TT
55532019-04-08 Tom Tromey <tom@tromey.com>
5554
5555 * server.c: Use C++ exception handling.
5556 * linux-low.c: Use C++ exception handling.
5557 * gdbreplay.c: Use C++ exception handling.
5558
3d6e9d23
TT
55592019-04-08 Tom Tromey <tom@tromey.com>
5560
5561 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5562 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5563 (captured_main, main): Update.
5564 * gdbreplay.c (main): Update.
5565
0570503d
PFC
55662019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5567
5568 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5569 value in argument pointer, return 1 if the entry is found and 0
5570 otherwise. Move comment.
5571 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5572 * linux-low.h (linux_get_auxv): Declare.
5573 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5574
227a9e65
TT
55752019-04-05 Tom Tromey <tromey@adacore.com>
5576
5577 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5578 variables.
5579
69f4c9cc
AH
55802019-03-28 Alan Hayward <alan.hayward@arm.com>
5581
5582 * linux-low.c (AT_HWCAP2): Add define if not already included.
5583
974c89e0
AH
55842019-03-26 Alan Hayward <alan.hayward@arm.com>
5585
5586 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5587 (aarch64_arch_setup): Call linux_get_hwcap.
5588 * linux-arm-low.c (arm_get_hwcap): Remove function.
5589 (arm_read_description): Call linux_get_hwcap.
5590 * linux-low.c (linux_get_auxv): New function.
5591 (linux_get_hwcap): Likewise.
5592 (linux_get_hwcap2): Likewise.
5593 * linux-low.h (linux_get_hwcap): New declaration.
5594 (linux_get_hwcap2): Likewise.
5595 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5596 (ppc_arch_setup): Call linux_get_hwcap.
5597 * linux-s390-low.c (s390_get_hwcap): Remove function.
5598 (s390_arch_setup): Call linux_get_hwcap.
5599
1ef53e6b
AH
56002019-03-22 Alan Hayward <alan.hayward@arm.com>
5601 Jiong Wang <jiong.wang@arm.com>
5602
5603 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5604 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5605 to fail.
5606 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5607
ee4fbcfa
AH
56082019-03-22 Alan Hayward <alan.hayward@arm.com>
5609 Jiong Wang <jiong.wang@arm.com>
5610
5611 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5612 (aarch64_get_hwcap): New function.
5613 (aarch64_arch_setup): Read APIA hwcap.
5614
6dc0ebde
AH
56152019-03-22 Alan Hayward <alan.hayward@arm.com>
5616 Jiong Wang <jiong.wang@arm.com>
5617
5618 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5619 (initialize_low_tracepoint): Likewise.
5620 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5621 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5622 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5623 (aarch64_linux_read_description): Likewise.
5624 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5625
1163a4b7
JB
56262019-03-12 John Baldwin <jhb@FreeBSD.org>
5627
5628 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5629 i386_create_target_description for 'segments' parameter.
5630 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5631 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5632 * win32-i386-low.c (i386_arch_setup): Likewise.
5633
d3a70e03
TT
56342019-03-12 Tom Tromey <tromey@adacore.com>
5635
5636 * linux-low.c (iterate_over_lwps): Update.
5637
37991b4f
TT
56382019-03-06 Tom Tromey <tom@tromey.com>
5639
5640 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5641 (captured_main): Use SCOPE_EXIT.
5642
45950eb6
SDJ
56432019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5644
5645 * configure.srv: Use '$enable_unittest' instead of '$development'
5646 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5647 case.
5648
43ac54fc
TT
56492019-02-27 Tom Tromey <tromey@adacore.com>
5650
5651 * gdbreplay.c (logchar): Handle \r\n.
5652
df0da8a2
AH
56532019-02-07 Alan Hayward <alan.hayward@arm.com>
5654
5655 * linux-low.c (linux_attach): Add process before lwp.
5656 * server.c (attach_inferior): Check if already attached.
5657
1a5c2598
TT
56582019-02-07 Tom Tromey <tom@tromey.com>
5659
5660 * x86-tdesc.h: Rename include guard.
5661 * x86-low.h: Add include guard.
5662 * wincecompat.h: Rename include guard.
5663 * win32-low.h: Add include guard.
5664 * utils.h: Rename include guard.
5665 * tracepoint.h: Rename include guard.
5666 * tdesc.h: Rename include guard.
5667 * target.h: Rename include guard.
5668 * server.h: Rename include guard.
5669 * remote-utils.h: Rename include guard.
5670 * regcache.h: Rename include guard.
5671 * nto-low.h: Rename include guard.
5672 * notif.h: Add include guard.
5673 * mem-break.h: Rename include guard.
5674 * lynx-low.h: Add include guard.
5675 * linux-x86-tdesc.h: Add include guard.
5676 * linux-s390-tdesc.h: Add include guard.
5677 * linux-ppc-tdesc-init.h: Add include guard.
5678 * linux-low.h: Add include guard.
5679 * linux-aarch64-tdesc.h: Add include guard.
5680 * linux-aarch32-low.h: Add include guard.
5681 * inferiors.h: Rename include guard.
5682 * i387-fp.h: Rename include guard.
5683 * hostio.h: Rename include guard.
5684 * gdbthread.h: Rename include guard.
5685 * gdb_proc_service.h: Rename include guard.
5686 * event-loop.h: Rename include guard.
5687 * dll.h: Rename include guard.
5688 * debug.h: Rename include guard.
5689 * ax.h: Rename include guard.
5690
956cc47c
SN
56912018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5692
5693 PR gdb/23985
5694 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5695 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5696
a0707f3c
TT
56972019-01-25 Tom Tromey <tom@tromey.com>
5698
5699 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5700
0747795c
TT
57012019-01-25 Tom Tromey <tom@tromey.com>
5702
5703 * win32-low.c: Fix common/ includes.
5704 * win32-i386-low.c: Fix common/ includes.
5705 * tracepoint.c: Fix common/ includes.
5706 * thread-db.c: Fix common/ includes.
5707 * target.h: Fix common/ includes.
5708 * symbol.c: Fix common/ includes.
5709 * spu-low.c: Fix common/ includes.
5710 * server.h: Fix common/ includes.
5711 * server.c: Fix common/ includes.
5712 * remote-utils.c: Fix common/ includes.
5713 * regcache.h: Fix common/ includes.
5714 * regcache.c: Fix common/ includes.
5715 * nto-x86-low.c: Fix common/ includes.
5716 * notif.h: Fix common/ includes.
5717 * mem-break.h: Fix common/ includes.
5718 * lynx-low.c: Fix common/ includes.
5719 * lynx-i386-low.c: Fix common/ includes.
5720 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5721 * linux-x86-low.c: Fix common/ includes.
5722 * linux-low.c: Fix common/ includes.
5723 * inferiors.h: Fix common/ includes.
5724 * i387-fp.c: Fix common/ includes.
5725 * hostio.c: Fix common/ includes.
5726 * hostio-errno.c: Fix common/ includes.
5727 * gdbthread.h: Fix common/ includes.
5728 * gdbreplay.c: Fix common/ includes.
5729 * fork-child.c: Fix common/ includes.
5730 * event-loop.c: Fix common/ includes.
483ab96a 5731 * ax.c (enum gdb_agent_op): Fix common/ includes.
0747795c 5732
be6d4f74
TT
57332019-01-21 Tom Tromey <tom@tromey.com>
5734
5735 * tracepoint.c: Fix includes.
5736 * remote-utils.c: Fix includes.
5737 * linux-x86-low.c: Fix includes.
5738
66d91b39
JB
57392019-01-01 Joel Brobecker <brobecker@adacore.com>
5740
5741 * gdbreplay.c (gdbreplay_version): Update copyright year in
5742 version message.
5743 * server.c (gdbserver_version): Likewise.
5744
754e3168
AH
57452018-12-05 Alan Hayward <alan.hayward@arm.com>
5746
5747 * linux-low.c (add_lwp): Switch ordering.
5748
d105de22
TT
57492018-11-29 Tom Tromey <tom@tromey.com>
5750
5751 * win32-low.c (win32_join): Take pid, not process.
5752 * target.h (struct target_ops) <join>: Change argument type.
5753 (join_inferior): Change argument name.
5754 * spu-low.c (spu_join): Take pid, not process.
5755 * server.c (handle_detach): Preserve pid before destroying
5756 process.
5757 * lynx-low.c (lynx_join): Take pid, not process.
5758 * linux-low.c (linux_join): Take pid, not process.
5759
50138245
AH
57602018-11-23 Alan Hayward <alan.hayward@arm.com>
5761
5762 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5763 (aarch64_cannot_fetch_register): Likewise.
5764 (struct linux_target_ops): Update references.
5765
64f57f3d
PFC
57662018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5767
5768 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5769
8d619c01
EBM
57702018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5771
5772 * configure.srv (ipa_ppc_linux_regobj): Add
5773 powerpc-isa207-htm-vsx32l-ipa.o and
5774 powerpc-isa207-htm-vsx64l-ipa.o.
5775 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5776 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5777 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5778 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5779 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5780 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5781 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5782 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5783 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5784 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5785 (init_registers_powerpc_isa207_htm_vsx32l)
5786 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5787 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5788 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5789 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5790 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5791 (ppc_store_tm_ctarregset): New functions.
5792 (ppc_regsets): Add entries for HTM regsets.
5793 (ppc_arch_setup): Set htm in features struct when needed. Set
5794 sizes for the HTM regsets.
5795 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5796 (initialize_low_arch): Call
5797 init_registers_powerpc_isa207_htm_vsx32l and
5798 init_registers_powerpc_isa207_htm_vsx64l.
5799 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5800 PPC_TDESC_ISA207_HTM_VSX.
5801 (initialize_low_tracepoint): Call
5802 init_registers_powerpc_isa207_htm_vsx32l and
5803 init_registers_powerpc_isa207_htm_vsx64l.
5804
232bfb86
EBM
58052018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5806
5807 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5808 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5809 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5810 (ppc_store_pmuregset): New functions.
5811 (ppc_regsets): Add entries for ebb and pmu regsets.
5812 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5813 pmu regsets are available. Set sizes for these regsets.
5814
f2cf6173
EBM
58152018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5816
5817 * configure.srv (ipa_ppc_linux_regobj): Add
5818 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5819 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5820 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5821 rs6000/powerpc-isa207-vsx32l.xml, and
5822 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5823 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5824 <PPC_TDESC_ISA207_VSX>: New enum value.
5825 (init_registers_powerpc_isa207_vsx32l): Declare.
5826 (init_registers_powerpc_isa207_vsx64l): Declare.
5827 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5828 (ppc_store_tarregset): New function.
5829 (ppc_regsets): Add entry for the TAR regset.
5830 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5831 size for the TAR regsets.
5832 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5833 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5834 and init_registers_powerpc_isa207_vsx64l.
5835 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5836 (initialize_low_tracepoint): Call
5837 init_registers_powerpc_isa207_vsx32l and
5838 init_registers_powerpc_isa207_vsx64l.
5839
7ca18ed6
EBM
58402018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5841 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5842
5843 * configure.srv (ipa_ppc_linux_regobj): Add
5844 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5845 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5846 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5847 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5848 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5849 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5850 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5851 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5852 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5853 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5854 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5855 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5856 (ppc_hwcap): Add comment.
5857 (ppc_hwcap2): New global.
5858 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5859 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5860 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5861 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5862 when needed. Set sizes for the the DSCR and PPR regsets.
5863 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5864 (initialize_low_arch): Call
5865 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5866 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5867 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5868 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5869 (initialize_low_tracepoint): Call
5870 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5871 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5872
5c849b22
PFC
58732018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5874
5875 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5876
8ecfd7bd
SDJ
58772018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5878 Simon Marchi <simark@simark.ca>
5879
5880 * acinclude.m4: Include "../selftest.m4".
5881 * configure: Regenerate.
5882 * configure.ac: Use "GDB_AC_SELFTEST".
5883 * configure.srv: Use "$enable_unittests" instead of
5884 "$development" when checking whether unit tests have been
5885 enabled.
5886 * server.c (captured_main): Update message informing that
5887 selftests have been disabled.
5888
96643e35
TT
58892018-10-04 Tom Tromey <tom@tromey.com>
5890
5891 * configure: Rebuild.
5892
da4ae14a
TT
58932018-10-04 Tom Tromey <tom@tromey.com>
5894
5895 * server.c (handle_status): Rename inner "thread".
5896 (process_serial_event): Declare "res" in 'm' case.
5897 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5898 (iterate_over_lwps): Rename inner "thread".
5899 (linux_qxfer_libraries_svr4): Rename inner "len".
5900 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5901
7c619dbd
GB
59022018-10-01 Gary Benson <gbenson@redhat.com>
5903
5904 * gdb_proc_service.h: Moved common code to
5905 common/gdb_proc_service.h.
5906
3795e814
GB
59072018-10-01 Gary Benson <gbenson@redhat.com>
5908
5909 * gdb_proc_service.h: Synchronize comments and whitespace with
5910 GDB's version of this file.
5911
49b036f1
TT
59122018-09-25 Tom Tromey <tom@tromey.com>
5913
5914 * configure: Rebuild.
5915 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5916
8ff03f0b
SM
59172018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5918
5919 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5920 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5921 ($(IPA_LIB)): Sort IPA_OBJS.
5922
a1cd91dc
SM
59232018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5924
5925 * Makefile.in: Remove references to $(ADD_DEPS).
5926
752312ba
TT
59272018-09-16 Tom Tromey <tom@tromey.com>
5928
5929 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5930 variables.
5931 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5932 variables.
5933
f1628857
TT
59342018-09-05 Tom Tromey <tom@tromey.com>
5935
5936 * configure: Rebuild.
5937
ad202fcc
SM
59382018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 PR build/23399
5941 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5942
d3d8724a
TT
59432018-08-27 Tom Tromey <tom@tromey.com>
5944
5945 PR build/23087:
5946 * configure: Rebuild.
5947
b4f183d2
TT
59482018-08-27 Tom Tromey <tom@tromey.com>
5949
5950 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5951 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5952 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5953 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5954 (s390x_emit_stack_adjust): Add casts to unsigned char.
5955
4e2aa472
SM
59562018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5957
5958 PR gdb/23374
5959 PR gdb/23375
5960 * server.h (struct client_state) <disable_randomization>:
5961 Initialize to 1.
5962
cf4088a9
SM
59632018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5964
5965 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5966 variable.
5967 (mips_supply_ptrace_register): Likewise.
5968
a0de763e
TT
59692018-07-22 Tom Tromey <tom@tromey.com>
5970
5971 * configure: Rebuild.
5972
b0a7723d
TT
59732018-07-22 Tom Tromey <tom@tromey.com>
5974
5975 * win32-low.c (win32_create_inferior): Remove unused variables.
5976 * gdbreplay.c (remote_open): Remove unused variable.
5977 * remote-utils.c (remote_prepare): Remove unused variable.
5978 * x86-tdesc.h (X86_TDESC_H): Define.
5979 (amd64_expedite_regs): Define conditionally.
5980 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5981 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5982 * remote-utils.c (readchar): Remove unused variable.
5983
a780ef4f
PA
59842018-07-13 Pedro Alves <palves@redhat.com>
5985
5986 * linux-low.c (linux_kill): Change parameter to process_info
5987 pointer instead of pid. Adjust.
5988 * lynx-low.c (lynx_kill): Likewise.
5989 * nto-low.c (nto_kill): Likewise.
5990 * spu-low.c (spu_kill): Likewise.
5991 * win32-low.c (win32_kill): Likewise.
5992 * server.c (handle_v_kill, kill_inferior_callback)
5993 (detach_or_kill_for_exit): Adjust.
5994 * target.c (kill_inferior): Change parameter to process_info
5995 pointer instead of pid. Adjust.
5996 * target.h (struct target_ops) <kill>: Change parameter to
5997 process_info pointer instead of pid. Adjust all implementations
5998 and callers.
5999 (kill_inferior): Likewise.
6000
ef2ddb33
PA
60012018-07-13 Pedro Alves <palves@redhat.com>
6002
6003 * linux-low.c (linux_detach, linux_join): Change parameter to
6004 process_info pointer instead of pid. Adjust.
6005 * lynx-low.c (lynx_detach, lynx_join): Likewise.
6006 * nto-low.c (nto_detach): Likewise.
6007 * spu-low.c (spu_detach, spu_join): Likewise.
6008 * win32-low.c (win32_detach, win32_join): Likewise.
6009 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
6010 * target.h (struct target_ops) <detach, join>: Change parameter to
6011 process_info pointer instead of pid. Adjust all implementations
6012 and callers.
6013 (detach_inferior, join_inferior): Rename 'pid' parameter to
6014 'proc'.
6015
c7ab0aef
SDJ
60162018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6017 Jan Kratochvil <jan.kratochvil@redhat.com>
6018 Paul Fertser <fercerpav@gmail.com>
6019 Tsutomu Seki <sekiriki@gmail.com>
6020
6021 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
6022 (OBS): Add 'common/netstuff.o'.
6023 (GDBREPLAY_OBS): Likewise.
6024 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
6025 (remote_open): Implement support for IPv6
6026 connections.
6027 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
6028 and 'wspiapi.h'.
6029 (handle_accept_event): Accept connections from IPv6 sources.
6030 (remote_prepare): Handle IPv6-style hostnames; implement
6031 support for IPv6 connections.
6032 (remote_open): Implement support for printing connections from
6033 IPv6 sources.
6034
31445d10
PA
60352018-07-11 Pedro Alves <palves@redhat.com>
6036
6037 PR gdb/23377
6038 * mem-break.c (any_persistent_commands): Add process_info
6039 parameter and use it instead of relying on the current process.
6040 Change return type to bool.
6041 * mem-break.h (any_persistent_commands): Add process_info
6042 parameter and change return type to bool.
6043 * server.c (handle_detach): Remove require_running_or_return call.
6044 Look up the process_info for the process we're about to detach.
6045 If not found, return back error to GDB. Adjust
6046 any_persistent_commands call to pass down a process pointer.
6047
cb197132
PA
60482018-07-11 Pedro Alves <palves@redhat.com>
6049
6050 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6051 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6052 instead of collect_register_by_name.
6053 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6054 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6055
1b919490
VB
60562018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6057 Pedro Alves <palves@redhat.com>
6058
6059 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6060
d7e15655
TT
60612018-07-03 Tom Tromey <tom@tromey.com>
6062
6063 * linux-low.c: Update.
6064 * lynx-low.c: Update.
6065 * mem-break.c: Update.
6066 * nto-low.c: Update.
6067 * remote-utils.c: Update.
6068 * server.c: Update.
6069 * spu-low.c: Update.
6070 * target.c: Update.
6071 * win32-low.c: Update.
6072
26a57c92
TT
60732018-07-03 Tom Tromey <tom@tromey.com>
6074
6075 * server.c: Update.
6076
0e998d96
TT
60772018-07-03 Tom Tromey <tom@tromey.com>
6078
6079 * linux-low.c: Update.
6080
cc6bcb54
TT
60812018-07-03 Tom Tromey <tom@tromey.com>
6082
6083 * target.c: Update.
6084
e38504b3
TT
60852018-07-03 Tom Tromey <tom@tromey.com>
6086
6087 * linux-low.c: Update.
6088 * linux-mips-low.c: Update.
6089 * lynx-low.c: Update.
6090 * nto-low.c: Update.
6091 * remote-utils.c: Update.
6092 * server.c: Update.
6093 * spu-low.c: Update.
6094 * target.c: Update.
6095 * thread-db.c: Update.
6096
e99b03dc
TT
60972018-07-03 Tom Tromey <tom@tromey.com>
6098
6099 * linux-low.c: Update.
6100 * linux-mips-low.c: Update.
6101 * lynx-low.c: Update.
6102 * mem-break.c: Update.
6103 * nto-low.c: Update.
6104 * remote-utils.c: Update.
6105 * server.c: Update.
6106 * spu-low.c: Update.
6107 * target.c: Update.
6108 * tracepoint.c: Update.
6109
f2907e49
TT
61102018-07-03 Tom Tromey <tom@tromey.com>
6111
6112 * linux-low.c: Update.
6113 * linux-ppc-low.c: Update.
6114 * linux-x86-low.c: Update.
6115 * proc-service.c: Update.
6116 * server.c: Update.
6117 * spu-low.c: Update.
6118 * thread-db.c: Update.
6119 * win32-low.c: Update.
6120
fd79271b
TT
61212018-07-03 Tom Tromey <tom@tromey.com>
6122
6123 * linux-low.c: Update.
6124 * lynx-low.c: Update.
6125 * nto-low.c: Update.
6126 * remote-utils.c: Update.
6127 * spu-low.c: Update.
6128 * thread-db.c: Update.
6129 * win32-low.c: Update.
6130
c0867626
SDJ
61312018-06-29 Joel Brobecker <brobecker@adacore.com>
6132
6133 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6134 parameter in call to 'amd64_create_target_description'.
6135
2512d7ef
JK
61362018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6137
6138 * x86-tdesc.h: Remove executable permission flag.
6139
d0ac1c44
SM
61402018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6141
6142 * configure.ac: Remove AC_PREREQ, add missing quoting.
6143 * configure: Re-generate.
6144 * config.in: Re-generate.
6145 * aclocal.m4: Re-generate.
6146
c4eb05ff
SM
61472018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6148
6149 * tracepoint.h (current_traceframe): Remove declaration.
6150
02895270
AH
61512018-06-18 Alan Hayward <alan.hayward@arm.com>
6152
6153 * linux-aarch64-low.c (is_sve_tdesc): New function.
6154 (aarch64_sve_regs_copy_to_regcache): Likewise.
6155 (aarch64_sve_regs_copy_from_regcache): Likewise.
6156 (aarch64_regs_info): Add SVE checks.
6157 (initialize_low_arch): Initialize SVE.
6158
e9902bfc
AH
61592018-06-18 Alan Hayward <alan.hayward@arm.com>
6160
6161 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6162
fefa175e
AH
61632018-06-11 Alan Hayward <alan.hayward@arm.com>
6164
6165 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6166 (initialize_low_tracepoint): Likewise
6167 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6168 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6169 param.
6170 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6171 checks.
6172 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6173
b91ad3ff
AH
61742018-06-11 Alan Hayward <alan.hayward@arm.com>
6175
6176 * server.h (PBUFSIZ): Increase size
6177
f868386e
AH
61782018-06-11 Alan Hayward <alan.hayward@arm.com>
6179
6180 * regcache.c (regcache::raw_compare): New function.
6181 * regcache.h (regcache::raw_compare): New declaration.
6182
9c861883
AH
61832018-06-11 Alan Hayward <alan.hayward@arm.com>
6184
6185 * regcache.c (new_register_cache): Use new.
6186 (free_register_cache): Use delete.
6187 (register_data): Use const.
6188 (supply_register): Move body inside regcache.
6189 (regcache::raw_supply): New override function.
6190 (collect_register): Move body inside regcache.
6191 (regcache::raw_collect): New override function.
6192 (regcache::get_register_status): New override function.
6193 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6194
40591844
TT
61952018-06-09 Tom Tromey <tom@tromey.com>
6196
6197 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6198 declare queue.
6199 (event_queue): Use std::queue.
6200 (gdb_event_xfree): Remove.
6201 (initialize_event_loop, process_event, wait_for_event): Update.
6202
6341380d
SC
62032018-06-08 Stan Cox <scox@redhat.com>
6204
6205 * win32-low.c (win32_create_inferior): last_ptid and last_status
6206 moved to client_state.
6207
03349c93
PA
62082018-06-08 Pedro Alves <palves@redhat.com>
6209
6210 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6211 common/common-exceptions.o, common/common-utils.o,
6212 common/errors.o, common/print-utils.o and utils.o.
6213 * gdbreplay.c: Include "common-defs.h" instead of the two
6214 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6215 string.h or alloca.h.
6216 (perror_with_name): Delete.
6217 (remote_open): Use xstrdup instead of strdup.
6218 (main): Rename to ...
6219 (captured_main): ... this.
6220 (main): New.
6221
8dcc53b3
TT
62222018-06-08 Tom Tromey <tom@tromey.com>
6223
6224 * linux-low.c (linux_low_read_btrace): Update.
6225
c12a5089
SC
62262018-06-04 Stan Cox <scox@redhat.com>
6227
6228 * server.h (struct client_state): New.
6229 * server.c (cont_thread, general_thread, multi_process)
6230 (report_fork_events, report_vfork_events, report_exec_events)
6231 (report_thread_events, swbreak_feature, hwbreak_feature)
6232 (vCont_supported, disable_randomization, pass_signals)
6233 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6234 Moved to client_state.
6235 * remote-utils.c (remote_debug, noack_mode)
6236 (transport_is_reliable): Moved to client_state.
6237 * tracepoint.c (current_traceframe): Moved to client_state.
6238
6239 Update all callers.
6240 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6241 linux-low.c, remote-utils.h, target.c: Use client_state.
6242
122394f1
AH
62432018-05-31 Alan Hayward <alan.hayward@arm.com>
6244
6245 * configure.srv: Add new c/h file.
6246
95228a0d
AH
62472018-05-31 Alan Hayward <alan.hayward@arm.com>
6248
6249 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6250 null VQ.
6251
d8dab6c3
MR
62522018-05-25 Maciej W. Rozycki <macro@mips.com>
6253
6254 * gdb.arch/mips-fpregset-core.exp: New test.
6255 * gdb.arch/mips-fpregset-core.c: New test source.
6256
81e25b7c
EK
62572018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6258
6259 PR server/23198
6260 * hostio.c (require_int): Do not report overflow for integers
6261 between 0xfffffff and 0x7fffffff.
6262
7e947ad3
MR
62632018-05-22 Maciej W. Rozycki <macro@mips.com>
6264
6265 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6266 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6267 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6268 functions.
6269 (the_low_target): Wire them.
6270
1d75a658
PFC
62712018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6272
6273 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6274 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6275 mode. Call collect_register_by_name with vscr using
6276 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6277 (ppc_store_vrregset): Add and set vscr_offset variable as in
6278 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6279 vscr_offset.
6280
d078308a
PFC
62812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6282
6283 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6284 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6285 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6286
7273b5fc
PFC
62872018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6288
6289 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6290 (ppc_store_vsxregset): Likewise.
6291 (ppc_fill_vrregset): Likewise.
6292 (ppc_store_vrregset): Likewise.
6293 (ppc_fill_evrregset): Likewise.
6294 (ppc_store_evrregset): Likewise.
6295 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6296 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6297 needed.
6298
2e077f5e
PFC
62992018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6300
6301 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6302 wordsize of the inferior. Call ppc_linux_target_wordsize.
6303
bd64614e
PFC
63042018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6305
6306 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6307 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6308 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6309 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6310 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6311 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6312 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6313 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6314 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6315 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6316 (tdesc_powerpc_e500l): Remove.
6317 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6318 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6319 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6320 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6321 linux-ppc-tdesc.h.
6322 (ppc_arch_setup): Remove target description matching code. Fill a
6323 ppc_linux_features struct and call ppc_linux_match_description
6324 with it.
6325
75d74cca
MR
63262018-05-22 Maciej W. Rozycki <macro@mips.com>
6327
6328 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6329 width of the requested register exceeds the width of the
6330 `ptrace' data type.
6331 (mips_cannot_store_register): Likewise.
6332
e4439e43
MR
63332018-05-21 Maciej W. Rozycki <macro@mips.com>
6334
6335 * linux-mips-low.c (mips_fetch_register): New function. Update
6336 preceding comment.
6337 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6338 (the_low_target): Wire `mips_fetch_register'.
6339
55271bf9
JB
63402018-05-10 Joel Brobecker <brobecker@adacore.com>
6341
6342 * lynx-i386-low.c (LYNXOS_178): New macro.
6343 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6344 the layout on LynxOS-178.
6345 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6346 handle floating point registers that are not supported by
6347 LynxOS-178.
6348
1a34f210
TT
63492018-05-10 Tom Tromey <tom@tromey.com>
6350
6351 * configure: Rebuild.
6352
190852c8
JB
63532018-05-10 Joel Brobecker <brobecker@adacore.com>
6354
6355 PR server/23158:
6356 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6357 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6358 Use it to set the expedite_regs field in the given tdesc.
6359 * x86-tdesc.h: New file.
6360 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6361 Adjust following the addition of the new expedite_regs parameter
6362 to init_target_desc.
6363 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6364 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6365 (i386_linux_read_description, amd64_linux_read_description):
6366 Adjust following the addition of the new expedite_regs parameter
6367 to init_target_desc.
6368 * lynx-i386-low.c: #include "x86-tdesc.h".
6369 (lynx_i386_arch_setup): Adjust following the addition of the new
6370 expedite_regs parameter to init_target_desc.
6371 * nto-x86-low.c: #include "x86-tdesc.h".
6372 (nto_x86_arch_setup): Adjust following the addition of the new
6373 expedite_regs parameter to init_target_desc.
6374 * win32-i386-low.c: #include "x86-tdesc.h".
6375 (i386_arch_setup): Adjust following the addition of the new
6376 expedite_regs parameter to init_target_desc.
6377
7dbac825
JB
63782018-05-10 Joel Brobecker <brobecker@adacore.com>
6379
6380 PR server/23158:
6381 * win32-low.c (win32_create_inferior): Add call to my_wait
6382 setting last_status global.
6383
906994d9
JB
63842018-05-10 Joel Brobecker <brobecker@adacore.com>
6385
6386 PR server/23158:
6387 * win32-low.c (create_process): Only call gdb_tilde_expand if
6388 inferior_cwd is not NULL.
6389
8ee22052
AB
63902018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6391
6392 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6393 registers to the cache if their values have changed.
6394 (i387_xsave_to_cache): Provide default values for x87 control
6395 registers when these features are available, but disabled.
6396 * regcache.c (supply_register_by_name_zeroed): New function.
6397 * regcache.h (supply_register_by_name_zeroed): Declare new
6398 function.
6399
aff689d3
TT
64002018-05-07 Tom Tromey <tom@tromey.com>
6401
6402 * configure: Rebuild.
6403
85e26832
TT
64042018-05-04 Tom Tromey <tom@tromey.com>
6405
6406 * configure: Rebuild.
6407
a3b60e45
JK
64082018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6409 Pedro Alves <palves@redhat.com>
6410
6411 * linux-aarch64-low.c (aarch64_stopped_data_address):
6412 Likewise.
6413
632e107b
TT
64142018-04-27 Tom Tromey <tom@tromey.com>
6415
6416 * configure: Rebuild.
6417
458412c3
TT
64182018-04-23 Tom Tromey <tom@tromey.com>
6419
6420 * configure: Rebuild.
6421
f31c089e
SM
64222018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6423
6424 * Makefile.in (depcomp): Add "..".
6425 (all_deps_files): New and use it.
6426
b319b098
AH
64272018-04-18 Alan Hayward <alan.hayward@arm.com>
6428
6429 * configure.srv (aarch64*-*-linux*): Don't include xml.
6430 (i[34567]86-*-cygwin*): Likewise.
6431 (i[34567]86-*-linux*): Likewise.
6432 (i[34567]86-*-lynxos*): Likewise.
6433 (i[34567]86-*-mingw32ce*): Likewise.
6434 (i[34567]86-*-mingw*): Likewise.
6435 (i[34567]86-*-nto*): Likewise.
6436 (tic6x-*-uclinux): Likewise.
6437 (x86_64-*-linux*): Likewise.
6438 (x86_64-*-mingw*): Likewise.
6439 (x86_64-*-cygwin*): Likewise.
6440
3b74854b
AH
64412018-04-18 Alan Hayward <alan.hayward@arm.com>
6442
6443 * tdesc.c: Remove xml parameter.
6444
e98577a9
AH
64452018-04-18 Alan Hayward <alan.hayward@arm.com>
6446
6447 * server.c (get_features_xml): Remove cast.
6448 * tdesc.c (void target_desc::accept): Fill in function.
6449 (tdesc_get_features_xml): Remove old xml creation.
6450 (print_xml_feature::visit_pre): Add xml vistor.
6451 * tdesc.h (struct target_desc): Make xmltarget mutable.
6452 (tdesc_get_features_xml): Remove declaration.
6453
d278f585
AH
64542018-04-18 Alan Hayward <alan.hayward@arm.com>
6455
6456 * tdesc.c (tdesc_architecture_name): Add new function.
6457 (tdesc_osabi_name): Likewise.
6458 (tdesc_get_features_xml): Use new functions.
6459
eee8a18d
AH
64602018-04-18 Alan Hayward <alan.hayward@arm.com>
6461
6462 * tdesc.c (tdesc_create_flags): Remove.
6463 (tdesc_add_flag): Likewise.
6464 (tdesc_named_type): Likewise.
6465 (tdesc_create_union): Likewise.
6466 (tdesc_create_struct): Likewise.
6467 (tdesc_create_vector): Likewise.
6468 (tdesc_add_bitfield): Likewise.
6469 (tdesc_add_field): Likewise.
6470 (tdesc_set_struct_size): Likewise.
6471
82ec9bc7
AH
64722018-04-18 Alan Hayward <alan.hayward@arm.com>
6473
6474 * tdesc.c (~target_desc): Remove implictly deleted items.
6475 (init_target_desc): Iterate all features.
6476 (tdesc_get_features_xml): Use vector.
6477 (tdesc_create_feature): Create feature.
6478 * tdesc.h (tdesc_feature) Remove
6479 (target_desc): Add features.
6480
ea3e7d71
AH
64812018-04-18 Alan Hayward <alan.hayward@arm.com>
6482
6483 * Makefile.in: Add common/tdesc.c
6484 * tdesc.c (init_target_desc): init all reg_defs from register
6485 vector.
6486 (tdesc_create_reg): Create tdesc_reg.
6487 * tdesc.h (tdesc_feature): Add register vector.
6488
17d08cd4
SM
64892018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6490
6491 * tdesc.h (struct target_desc) <features>: Change type to
6492 std::vector<std::string>.
6493 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6494 changes.
6495 (tdesc_get_features_xml): Likewise.
6496 (tdesc_create_feature): Likewise.
6497
5cd3e386
AH
64982018-03-26 Alan Hayward <alan.hayward@arm.com>
6499
6500 * regcache.c (find_register_by_number): Return a ref.
6501 (find_regno): Use references.
6502 (register_size): Likewise.
6503 (register_data): Likewise.
6504 * tdesc.c (target_desc::~target_desc): Remove free calls.
6505 (target_desc::operator==): Use std::vector compare.
6506 (init_target_desc): Use reference.
6507 (tdesc_create_reg): Use reg constructors.
6508 * tdesc.h (struct target_desc): Replace pointer with object.
6509
dff7492c
AH
65102018-03-23 Alan Hayward <alan.hayward@arm.com>
6511
6512 * regcache.c (find_register_by_number): Make static.
6513 (find_regno): Use find_register_by_number
6514 * regcache.h (struct reg): Remove declaration.
6515
d80e5242
AH
65162018-03-23 Alan Hayward <alan.hayward@arm.com>
6517
6518 * tdesc.c (target_desc::~target_desc): Move to here.
6519 (target_desc::operator==): Likewise.
6520 * tdesc.h (target_desc::~target_desc): Move from here.
6521 (target_desc::operator==): Likewise.
6522
f69c5afb
AA
65232018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6524
6525 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6526
ce29f843
AA
65272018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6528
6529 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6530 S390_TDESC_GS.
6531 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6532 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6533 and init_registers_s390_gs_linux64.
6534
c49bd90b
AA
65352018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6536
6537 * linux-s390-low.c (s390_fill_gs): Remove function.
6538 (s390_fill_gsbc): Remove function.
6539 (s390_regsets): Set fill functions for the guarded storage regsets
6540 to NULL.
6541
7edb9bd3
AA
65422018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6543
6544 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6545 the word size. Add comment.
6546 (s390_get_wordsize): New function.
6547 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6548 pswm with it. Instead, use s390_get_wordsize to determine the
6549 word size first and derive the correct tdesc from that directly.
6550
39be3c7e
SM
65512018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6552
6553 * Makefile.in: Include silent-rules.mk.
6554 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6555 (COMPILE): Add ECHO_CXX.
6556 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6557 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6558 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6559 (version-generated.c): Add ECHO_GEN.
6560 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6561 (IPAGENT_COMPILE): Add ECHO_CXX.
6562 (%-generated.c): Add ECHO_REGDAT.
6563
3ae9ce5d
TT
65642018-03-14 Tom Tromey <tom@tromey.com>
6565
6566 PR cli/14977:
6567 * ax.c (ax_printf): Special case for NULL.
6568
e6a58aa8
SM
65692018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6570
6571 * linux-low.c (linux_qxfer_libraries_svr4): Use
6572 xml_escape_text_append.
6573
f6e8a41e
SM
65742018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6575
6576 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6577
b9671caf
SM
65782018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6579
6580 * server.c (handle_general_set): Remove unnecessary xstrdup.
6581
e80aaf61
SM
65822018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6583
6584 * server.c (parse_debug_format_options): Adjust to
6585 delim_string_to_char_ptr_vec changes.
6586 * thread-db.c (thread_db_load_search): Adjust to
6587 dirnames_to_char_ptr_vec changes.
6588
b1223e78
MM
65892018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6590
6591 * target.h (target_enable_btrace, target_disable_btrace)
6592 (target_read_btrace, target_read_btrace_conf): Turn macro into
6593 inline function. Throw error if target method is not defined.
6594 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6595 check for btrace target method. Be prepared to handle exceptions
6596 from btrace target methods.
6597
81561546
SDJ
65982018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6599
6600 * server.c (captured_main): Change order of error message printed
6601 when the current working directory cannot be found.
6602
25e3c82c
SDJ
66032018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6604
6605 * server.c: Include "filenames.h" and "pathstuff.h".
6606 (program_name): Delete variable.
6607 (program_path): New anonymous class.
6608 (get_exec_wrapper): Use "program_path" instead of
6609 "program_name".
6610 (handle_v_run): Likewise.
6611 (captured_main): Likewise.
6612 (process_serial_event): Likewise.
6613
b4987c95
SDJ
66142018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6615
6616 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6617 (OBJS): Add "pathstuff.o".
6618 * server.c (current_directory): New global variable.
6619 (captured_main): Initialize "current_directory".
6620
f46cd62a
AH
66212018-02-26 Alan Hayward <alan.hayward@arm.com>
6622
6623 * tdesc.c: Use common/tdesc.h.
6624 * tdesc.h: Likewise.
6625
a543c5ca
AH
66262018-02-20 Alan Hayward <alan.hayward@arm.com>
6627 Simon Marchi <simon.marchi@ericsson.com>
6628
6629 * Makefile.in: Switch order of make rules.
6630
b5884fa7
AH
66312018-02-19 Alan Hayward <alan.hayward@arm.com>
6632
6633 * Makefile.in: Add common directory in build.
6634 * configure.ac: Add common reference.
6635 * configure: Regenerate.
6636
de6242d3
MM
66372018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6638
6639 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6640 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6641 * spu-low.c (spu_target_ops): Likewise.
6642 * win32-low.c (win32_target_ops): Likewise.
6643 * server.c (supported_btrace_packets): Report packets unconditionally.
6644 * target.h (target_ops) <supports_btrace>: Remove.
6645 (target_supports_btrace): Remove.
6646
9ee23a85
MM
66472018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6648
6649 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6650 (handle_btrace_disable): Change return type to void. Use exceptions
6651 to report errors.
6652 (handle_btrace_general_set): Catch exception and copy message to
6653 return message.
6654
8ce47547
TT
66552018-02-08 Tom Tromey <tom@tromey.com>
6656
6657 * linux-low.c (install_software_single_step_breakpoints): Use
6658 make_scoped_restore.
6659 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6660 (do_restore_current_thread_cleanup): Remove.
6661 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6662 declare.
6663
45dd3607
TT
66642018-02-08 Tom Tromey <tom@tromey.com>
6665
6666 * mem-break.c (set_raw_breakpoint_at): Use
6667 gdb::unique_xmalloc_ptr.
6668
e671cd59
PA
66692018-01-30 Pedro Alves <palves@redhat.com>
6670
6671 PR gdb/13211
6672 * target.c (target_terminal::terminal_state): Rename to ...
6673 (target_terminal::m_terminal_state): ... this.
6674
a0aad537
JC
66752018-01-19 James Clarke <jrtc27@jrtc27.com>
6676
6677 * linux-low.c (handle_extended_wait): Surround call to
6678 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6679
4d9b86e1
SM
66802018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6681
6682 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6683 linux_ptrace_attach_fail_reason_string now returning an
6684 std::string.
6685 (linux_attach): Likewise.
6686 * thread-db.c (attach_thread): Likewise.
6687
f517c180
EA
66882018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6689
6690 PR gdb/21559
6691 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6692 checking for fs_base/gs_base fields in struct user_regs_struct.
6693 * configure: Regenerate.
6694
9a70f35c
YQ
66952018-01-16 Yao Qi <yao.qi@linaro.org>
6696
6697 PR gdb/18749
6698 * linux-low.c (fetch_register): Call supply_register instead of
6699 error.
6700
605fd3c6
YQ
67012018-01-08 Yao Qi <yao.qi@linaro.org>
6702 Simon Marchi <simon.marchi@ericsson.com>
6703
6704 * Makefile.in (OBS): Remove selftest.o.
6705 * configure.ac: Set srv_selftest_objs if $development is true.
6706 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6707 * configure: Re-generated.
6708 * server.c (captured_main): Wrap variable selftest_filter with
6709 GDB_SELF_TEST.
6710
2cc05030
SM
67112018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6712
6713 * server.c (parse_debug_format_options): Return std::string.
6714 (handle_monitor_command, captured_main): Adjust.
6715
e379cee6
PA
67162018-01-05 Pedro Alves <palves@redhat.com>
6717
6718 PR gdb/18653
6719 * server.c (captured_main): Pass quiet=false to
6720 save_original_signals_state.
6721
82e1e79a
JB
67222018-01-01 Joel Brobecker <brobecker@adacore.com>
6723
6724 * gdbreplay.c (gdbreplay_version): Update copyright year in
6725 version message.
6726 * server.c (gdbserver_version): Likewise.
6727
8e481c3b
TT
67282017-12-08 Tom Tromey <tom@tromey.com>
6729
6730 * ax.c (ax_printf): Update.
6731
a8806230
YQ
67322017-12-07 Yao Qi <yao.qi@linaro.org>
6733
6734 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6735 aarch64_linux_read_description.
6736 * linux-amd64-ipa.c (idx2mask): New array.
6737 (get_ipa_tdesc): Move idx2mask out.
6738 (initialize_low_tracepoint): Initialize target descriptions.
6739 * linux-i386-ipa.c (idx2mask): New array.
6740 (get_ipa_tdesc): Move idx2mask out.
6741 (initialize_low_tracepoint): Initialize target descriptions.
6742
d4a0e8b5
SM
67432017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6744
6745 * tdesc.c (struct tdesc_type): Change return type.
6746 (tdesc_add_flag): Change parameter type.
6747 (tdesc_add_bitfield): Likewise.
6748 (tdesc_add_field): Likewise.
6749 (tdesc_set_struct_size): Likewise.
6750
798a7429
SM
67512017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6752
6753 * regcache.c (registers_to_string): Remove unused variable.
6754
c0e15c9b
SM
67552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6756
6757 * inferiors.c (for_each_inferior_with_data): Remove.
6758 * inferiors.h (for_each_inferior_with_data): Remove.
6759 * server.c (handle_qxfer_threads_worker): Change parameter type.
6760 (handle_qxfer_threads_proper): Use for_each_thread.
6761
f0045347
SM
67622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6763
6764 * inferiors.c (for_each_inferior): Remove.
6765 (clear_inferiors): Use for_each_thread.
6766 * inferiors.h (for_each_inferior): Remove.
6767 * linux-low.c (linux_wait_for_event_filtered): Use
6768 for_each_thread.
6769 (linux_stabilize_threads): Likewise.
6770 * regcache.c (regcache_release): Likewise.
6771 * server.c (gdb_wants_all_threads_stopped): Likewise.
6772 (clear_pending_status_callback): Remove.
6773 (handle_status): Use for_each_thread.
6774 (captured_main): Likewise.
6775 * win32-low.c (child_init_thread_list): Likewise.
6776 (win32_clear_inferiors): Likewise.
6777 (fake_breakpoint_event): Likewise.
6778
9521758b
SM
67792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6780
6781 * inferiors.h (find_inferior): Remove.
6782 * inferiors.c (find_inferior): Remove.
6783
8f86d7aa
SM
67842017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6785
6786 * linux-low.c (resume_status_pending_p): Update comment.
6787 (need_step_over_p): Update comment.
6788
e2b44075
SM
67892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6790
6791 * linux-low.c (proceed_one_lwp): Return void, change parameter
6792 type.
6793 (unsuspend_and_proceed_one_lwp): Likewise.
6794 (proceed_all_lwps): Use for_each_thread.
6795 (unstop_all_lwps): Likewise.
6796
c80825ff
SM
67972017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * linux-low.c (linux_resume_one_thread): Return void, take
6800 parameter directly.
6801 (linux_resume): Use for_each_thread.
6802
df3e4dbe
SM
68032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6804
6805 * linux-low.c (send_sigstop_callback): Return void, change
6806 parameter type. Rename to...
6807 (send_sigstop): ... this.
6808 (suspend_and_send_sigstop_callback): Return void, change parameter
6809 type. Rename to...
6810 (suspend_and_send_sigstop): ... this.
6811 (stop_all_lwps): Use for_each_thread.
6812
5a6b0a41
SM
68132017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6814
6815 * linux-low.c (lwp_running): Return bool, remove unused
6816 argument.
6817 (linux_stabilize_threads): Use find_thread.
6818
39a64da5
SM
68192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6820
6821 * linux-low.c (select_singlestep_lwp_callback): Remove.
6822 (count_events_callback): Remove.
6823 (select_event_lwp_callback): Remove.
6824 (select_event_lwp): Use find_thread/for_each_thread.
6825
a1385b7b
SM
68262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6827
6828 * linux-low.c (not_stopped_callback): Return bool, take filter
6829 argument directly.
6830 (linux_wait_for_event_filtered): Use find_thread.
6831 (linux_wait_1): Likewise.
6832
454296a2
SM
68332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6834
6835 * linux-low.c (same_lwp): Remove.
6836 (find_lwp_pid): Use find_thread.
6837
6b2a85da
SM
68382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6839
6840 * linux-low.c (delete_lwp_callback): Remove.
6841 (linux_mourn): Use for_each_thread.
6842
798a38e8
SM
68432017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6844
6845 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6846 args parameter, don't check for pid.
6847 (linux_detach): Use for_each_thread.
6848
e4eb0dec
SM
68492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6850
6851 * linux-low.c (struct counter): Remove.
6852 (second_thread_of_pid_p): Remove.
6853 (last_thread_of_process_p): Use find_thread.
6854
83e1b6c1
SM
68552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6856
6857 * inferiors.c (find_inferior_in_random): Remove.
6858 * inferiors.h (find_inferior_in_random): Remove.
6859 * linux-low.c (status_pending_p_callback): Return bool, accept
6860 parameter ptid directly.
6861 (linux_wait_for_event_filtered): Use find_thread_in_random.
6862 (linux_wait_1): Likewise.
6863
8dc7b443
SM
68642017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6865
6866 * inferiors.c (find_inferior_id): Remove.
6867 (find_thread_ptid): Move implemention from find_inferior_id to
6868 here.
6869 * inferiors.h (find_inferior_id): Remove.
6870 * server.c (handle_status): Use find_thread_ptid.
6871 (process_serial_event): Likewise.
6872 * thread-db.c (find_one_thread): Likewise.
6873 (thread_db_thread_handle): Likewise.
6874 * win32-low.c (thread_rec): Likewise.
6875 (child_delete_thread): Likewise.
6876 (win32_thread_alive): Likewise.
6877 (get_child_debug_event): Likewise.
6878
da25033c
SM
68792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6880
6881 * linux-mips-low.c (update_watch_registers_callback): Return
6882 void, remove pid_p parameter, don't check for pid.
6883 (mips_insert_point, mips_remove_point): Use for_each_thread.
6884
c91bb56b
SM
68852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6886
6887 * lynx.low (lynx_delete_thread_callback): Remove.
6888 (lynx_mourn): Use for_each_thread.
6889
634a3254
SM
68902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6891
6892 * regcache.c (regcache_invalidate_one): Remove.
6893 (regcache_invalidate_pid): use for_each_thread.
6894
41272101
TT
68952017-11-26 Tom Tromey <tom@tromey.com>
6896
6897 * linux-low.c (linux_create_inferior): Update.
6898
f5291a6f
UW
68992017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6900
6901 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6902
6654d750
AH
69032017-11-24 Alan Hayward <alan.hayward@arm.com>
6904
6905 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6906 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6907 * linux-aarch64-tdesc-selftest.c: New file.
6908 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6909
69102017-11-24 Alan Hayward <alan.hayward@arm.com>
6911
6912 * configure.srv: Add new file.
6913 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6914 * linux-aarch64-tdesc-selftest.c: New file.
6915 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6916
49bdb7ee
AH
69172017-11-24 Alan Hayward <alan.hayward@arm.com>
6918
6919 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6920 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6921 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6922
d6d7ce56
AH
69232017-11-24 Alan Hayward <alan.hayward@arm.com>
6924
6925 * configure.srv: Add new files.
6926 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6927 aarch64_linux_read_description.
6928 * linux-aarch64-low.c (aarch64_linux_read_description):
6929 Merge with aarch64_arch_setup.
6930 (aarch64_arch_setup): Call aarch64_linux_read_description.
6931 * linux-aarch64-tdesc.c: New file.
6932 * linux-aarch64-tdesc.h: New file.
6933
506fe5f4
YQ
69342017-11-24 Yao Qi <yao.qi@linaro.org>
6935
6936 * configure.srv: Set $srv_regobj for tic6x-linux.
6937 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6938 (tic6x_read_description): Move some code to tic6x_arch_setup.
6939 (tic6x_tdesc_test): New function.
6940 (initialize_low_arch): Call selftests::register_test.
6941
29f9a567
YQ
69422017-11-22 Yao Qi <yao.qi@linaro.org>
6943
6944 * remote-utils.c (prepare_resume_reply): Use memcpy.
6945
578290ec
SM
69462017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6947
6948 * linux-low.c (kill_one_lwp_callback): Return void, take
6949 argument directly, don't filter on pid.
6950 (linux_kill): Use for_each_thread.
6951
eca55aec
SM
69522017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6953
6954 * linux-low.c (need_step_over_p): Return bool, remove dummy
6955 argument.
6956 (linux_resume, proceed_all_lwps): Use find_thread.
6957
25c28b4d
SM
69582017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6959
6960 * linux-low.c (resume_status_pending_p): Return bool, remove
6961 flag_p argument.
6962 (linux_resume): Use find_thread.
6963
5fdda392
SM
69642017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6965
6966 * linux-low.c (struct thread_resume_array): Remove.
6967 (linux_set_resume_request): Return void, take arguments
6968 directly.
6969 (linux_resume): Use for_each_thread.
6970
fcb056a5
SM
69712017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6972
6973 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6974 return bool, remove data argument.
6975 (linux_stabilize_threads): Use find_thread.
6976
139720c5
SM
69772017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6978
6979 * linux-low.c (unsuspend_one_lwp): Remove.
6980 (unsuspend_all_lwps): Use for_each_thread, inline code from
6981 unsuspend_one_lwp.
6982
6d1e5673
SM
69832017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6984
6985 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6986 * linux-low.c (struct iterate_over_lwps_args): Remove.
6987 (iterate_over_lwps_filter): Remove.
6988 (iterate_over_lwps): Use find_thread.
6989
bbf550d5
SM
69902017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6991
6992 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6993 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6994 code from reset_lwp_ptrace_options_callback.
6995
00192f77
SM
69962017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6997
6998 * linux-arm-low.c (struct update_registers_data): Remove.
6999 (update_registers_callback): Return void, take arguments
7000 directly, don't check thread's pid.
7001 (arm_insert_point, arm_remove_point): Use for_each_thread.
7002
2bee2b6c
SM
70032017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7004
7005 * win32-low.c (continue_one_thread): Return void, take argument
7006 directly.
7007 (child_continue): Use for_each_thread.
7008
0b360f19
SM
70092017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7010
7011 * win32-i386-low.c (update_debug_registers_callback): Rename
7012 to ...
7013 (update_debug_registers): ... this, return void, remove pid_p arg.
7014 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
7015
f27866ba
SM
70162017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7017
7018 * inferiors.h (struct process_info): Add constructor, initialize
7019 fields..
7020 <syscalls_to_catch>: Change type to std::vector<int>.
7021 * inferiors.c (add_process): Allocate process_info with new.
7022 (remove_process): Free process_info with delete.
7023 * linux-low.c (handle_extended_wait): Adjust.
7024 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
7025 * server.c (handle_general_set): Adjust.
7026
e849ea89
PA
70272017-11-16 Pedro Alves <palves@redhat.com>
7028
7029 * remote-utils.c (remote_close): Block SIGIO signals instead of
7030 uninstalling the SIGIO handler.
7031
1d0aa65c
AH
70322017-11-16 Alan Hayward <alan.hayward@arm.com>
7033
7034 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
7035
3491a34c
YQ
70362017-11-16 Yao Qi <yao.qi@linaro.org>
7037
7038 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
7039 (tic6x_store_gregset): Likewise.
7040 (tic6x_usrregs_info): Move it up.
7041
a602f924
AH
70422017-11-15 Alan Hayward <alan.hayward@arm.com>
7043
7044 * Makefile.in: Update arch rules.
7045 * configure.srv: Explicitly mark arch/ files.
7046
5616b6c3
AS
70472017-11-13 Andreas Schwab <schwab@suse.de>
7048
7049 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7050 function.
7051 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7052
d1928160
PA
70532017-11-06 Pedro Alves <palves@redhat.com>
7054
7055 * config.in, configure: Regenerate.
7056
bac608e7
SM
70572017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7058
7059 * target.c (struct thread_search): Remove.
7060 (thread_search_callback): Remove.
7061 (prepare_to_access_memory): Use for_each_thread instead of
7062 find_inferior. Inline code from thread_search_callback.
7063
eaddb425
SM
70642017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7065
7066 * server.c (struct visit_actioned_threads_data): Remove.
7067 (visit_actioned_threads): Change prototype to take arguments
7068 directly.
7069 (resume): Use find_thread instead of find_inferior.
7070
99078d34
SM
70712017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7072
7073 * server.c (queue_stop_reply_callback): Change prototype, return
7074 void.
7075 (find_status_pending_thread_callback): Remove.
7076 (handle_status): Replace find_inferior with find_thread and
7077 for_each_thread.
7078
cc628f3d
AH
70792017-10-25 Alan Hayward <alan.hayward@arm.com>
7080
7081 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7082 with REGNO.
7083 (aarch64_store_gregset): Likewise.
7084 (aarch64_fill_fpregset): Likewise.
7085 (aarch64_store_fpregset): Likewise.
7086
4d3bb80e
SM
70872017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7088
7089 * gdbthread.h (find_thread, for_each_thread): New functions.
7090 * inferiors.c (thread_of_pid): Remove.
7091 (find_any_thread_of_pid): Use find_thread.
7092 * linux-low.c (num_lwps): Use for_each_thread.
7093
7a7cdfa0
YQ
70942017-10-17 Yao Qi <yao.qi@linaro.org>
7095
7096 * Makefile.in: Remove one rule.
7097 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7098
e675d170
YQ
70992017-10-17 Yao Qi <yao.qi@linaro.org>
7100
7101 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7102 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7103
7eb4e0f9
YQ
71042017-10-17 Yao Qi <yao.qi@linaro.org>
7105
7106 * configure.srv: Rename arm.o with arch/arm.o.
7107
60d6cfc9
YQ
71082017-10-17 Yao Qi <yao.qi@linaro.org>
7109
7110 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7111 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7112 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7113 (arch-i386.o, arch-amd64.o): Remove rules.
7114 (arch/%.o): New rule.
7115 Update POSTCOMPILE and COMPILE.pre.
7116 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7117 * configure: Re-generated.
7118 * configure.srv: Replace arch-i386.o with arch/i386.o.
7119 Replace arch-amd64.o with arch/amd64.o.
7120
5bfda255
YQ
71212017-10-16 Yao Qi <yao.qi@linaro.org>
7122
7123 * configure: Regenerated.
7124
9c80ecd6
SM
71252017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7126
7127 * inferiors.h: (struct inferior_list): Remove.
7128 (struct inferior_list_entry); Remove.
7129 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7130 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7131 get_first_inferior): Remove.
7132 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7133 find_inferior_id, find_inferior_in_random): Change signature.
7134 * inferiors.c (all_threads): Change type to
7135 std::list<thread_info *>.
7136 (get_thread): Remove macro.
7137 (find_inferior, find_inferior_id): Change signature, implement
7138 using find_thread.
7139 (find_inferior_in_random): Change signature, implement using
7140 find_thread_in_random.
7141 (for_each_inferior, for_each_inferior_with_data): Change
7142 signature, implement using for_each_thread.
7143 (add_inferior_to_list, remove_inferior): Remove.
7144 (add_thread, get_first_thread, thread_of_pid,
7145 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7146 (get_first_inferior, one_inferior_p, clear_inferior_list):
7147 Remove.
7148 (clear_inferiors, get_thread_process): Update.
7149 * gdbthread.h: Include <list>.
7150 (struct thread_info) <entry>: Remove field.
7151 <id>: New field.
7152 (all_threads): Change type to std::list<thread_info *>.
7153 (get_first_inferior): Add doc.
7154 (find_thread, for_each_thread, find_thread_in_random): New
7155 functions.
7156 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7157 * linux-arm-low.c (update_registers_callback): Update.
7158 * linux-low.c (second_thread_of_pid_p): Update.
7159 (kill_one_lwp_callback, linux_detach_lwp_callback,
7160 delete_lwp_callback, status_pending_p_callback, same_lwp,
7161 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7162 iterate_over_lwps, not_stopped_callback,
7163 resume_stopped_resumed_lwps, count_events_callback,
7164 select_singlestep_lwp_callback, select_event_lwp_callback,
7165 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7166 suspend_and_send_sigstop_callback, wait_for_sigstop,
7167 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7168 lwp_running, linux_set_resume_request, resume_status_pending_p,
7169 need_step_over_p, start_step_over, linux_resume_one_thread,
7170 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7171 reset_lwp_ptrace_options_callback): Update.
7172 * linux-mips-low.c (update_watch_registers_callback): Update.
7173 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7174 Update.
7175 (free_register_cache_thread_one): Remove.
7176 (regcache_release): Update.
7177 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7178 handle_qxfer_threads_worker): Update.
7179 (handle_query): Update, use list iterator.
7180 (visit_actioned_threads, handle_pending_status,
7181 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7182 clear_pending_status_callback, set_pending_status_callback,
7183 find_status_pending_thread_callback, handle_status,
7184 process_serial_event): Update.
7185 * target.c (thread_search_callback): Update.
7186 * thread-db.c (thread_db_get_tls_address): Update.
7187 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7188 Update.
7189 * win32-i386-low.c (update_debug_registers_callback): Update.
7190 * win32-low.c (delete_thread_info, child_delete_thread,
7191 continue_one_thread, suspend_one_thread,
7192 get_child_debug_event): Adjust.
7193
9179355e
SM
71942017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7195
7196 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7197 * inferiors.h: Include <list>.
7198 (struct process_info) <entry>: Remove field.
7199 <pid>: New field.
7200 (pid_of): Change macro to function.
7201 (ptid_of, lwpid_of): Remove macro.
7202 (all_processes): Change type to std::list<process_info *>.
7203 (ALL_PROCESSES): Remove macro.
7204 (for_each_process, find_process): New function.
7205 * inferiors.c (all_processes): Change type to
7206 std::list<process_info *>.
7207 (find_thread_process): Adjust.
7208 (add_process): Likewise.
7209 (remove_process): Likewise.
7210 (find_process_pid): Likewise.
7211 (get_first_process): Likewise.
7212 (started_inferior_callback): Remove.
7213 (have_started_inferiors_p): Adjust.
7214 (attached_inferior_callback): Remove.
7215 (have_attached_inferiors_p): Adjust.
7216 * linux-low.c (check_zombie_leaders): Likewise.
7217 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7218 (x86_linux_update_xmltarget): Adjust.
7219 * server.c (handle_query): Likewise.
7220 (gdb_reattached_process): Remove.
7221 (handle_status): Adjust.
7222 (kill_inferior_callback): Likewise.
7223 (detach_or_kill_inferior): Remove.
7224 (print_started_pid): Likewise.
7225 (print_attached_pid): Likewise.
7226 (detach_or_kill_for_exit): Update.
7227 (process_serial_event): Likewise.
7228 * linux-arm-low.c (arm_new_fork): Likewise.
7229
c9cb8905
SM
72302017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7231
7232 * dll.h: Include <list>.
7233 (struct dll_info): Add constructor.
7234 <entry>: Remove field.
7235 (all_dlls): Change type to std::list<dll_info>.
7236 * dll.c: Include <algorithm>.
7237 (get_dll): Remove macro.
7238 (all_dlls): Change type to std::list<dll_info *>.
7239 (free_one_dll): Remove.
7240 (match_dll): Likewise.
7241 (loaded_dll): Adjust.
7242 (unloaded_dll): Adjust to all_dlls type change, use
7243 std::find_if. Inline code from match_dll.
7244 (clear_dlls): Adjust to all_dlls type change.
7245 * server.c (emit_dll_description): Remove.
7246 (handle_qxfer_libraries): Adjust to all_dlls type change,
7247 integrate emit_dll_description's functionality.
7248
04ec7890
SM
72492017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7250
7251 * linux-low.h (struct linux_target_ops) <delete_process>: New
7252 field.
7253 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7254 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7255 (struct linux_target_ops): Add delete_process callback.
7256 * linux-arm-low.c (arm_delete_process): New.
7257 (struct linux_target_ops): Add delete_process callback.
7258 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7259 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7260 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7261 * linux-mips-low.c (mips_linux_delete_process): New.
7262 (struct linux_target_ops): Add delete_process callback.
7263 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7264 * linux-s390-low.c (struct linux_target_ops): Likewise.
7265 * linux-sh-low.c (struct linux_target_ops): Likewise.
7266 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7267 * linux-tile-low.c (struct linux_target_ops): Likewise.
7268 * linux-x86-low.c (x86_linux_delete_process): New.
7269 (struct linux_target_ops): Add delete_process callback.
7270 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7271
466eecee
SM
72722017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7273
7274 * linux-aarch64-low.c (the_low_target): Add thread delete
7275 callback.
7276 * linux-arm-low.c (arm_delete_thread): New function.
7277 (the_low_target): Add thread delete callback.
7278 * linux-bfin-low.c (the_low_target): Likewise.
7279 * linux-crisv32-low.c (the_low_target): Likewise.
7280 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7281 set.
7282 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7283 field.
7284 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7285 * linux-mips-low.c (mips_linux_delete_thread): New function.
7286 (the_low_target): Add thread delete callback.
7287 * linux-ppc-low.c (the_low_target): Likewise.
7288 * linux-s390-low.c (the_low_target): Likewise.
7289 * linux-sh-low.c (the_low_target): Likewise.
7290 * linux-tic6x-low.c (the_low_target): Likewise.
7291 * linux-tile-low.c (the_low_target): Likewise.
7292 * linux-x86-low.c (the_low_target): Likewise.
7293 * linux-xtensa-low.c (the_low_target): Likewise.
7294
b79f7801
YZ
72952017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7296
7297 * win32-low.c: Include "common-inferior.h".
7298
bc3b087d
SDJ
72992017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7300
7301 * inferiors.c (set_inferior_cwd): New function.
7302 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7303 (handle_query): Inform that QSetWorkingDir is supported.
7304 * win32-low.c (create_process): Pass the inferior's cwd to
7305 CreateProcess.
7306
d092c5a2
SDJ
73072017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7308
7309 * inferiors.c (current_inferior_cwd): New global variable.
7310 (get_inferior_cwd): New function.
7311 * inferiors.h (struct process_info) <cwd>: New field.
7312
7da0a886
SDJ
73132017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7314
7315 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7316 (OBS): Add gdb_tilde_expand.o.
7317
289a6840
SM
73182017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7319
7320 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7321 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7322
256642e8
PA
73232017-09-29 Pedro Alves <palves@redhat.com>
7324
7325 * ax.c (gdb_parse_agent_expr): Constify.
7326 * ax.h (gdb_parse_agent_expr): Constify.
7327 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7328 Constify.
7329 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7330 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7331 * remote-utils.h (read_ptid): Constify.
7332 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7333 (process_point_options, process_serial_event): Constify.
7334 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7335 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7336 (cmd_qtbuffer): Constify.
7337
5b9ca4d4
PA
73382017-09-29 Pedro Alves <palves@redhat.com>
7339
7340 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7341 fails.
7342
94c207e0
PA
73432017-09-29 Pedro Alves <palves@redhat.com>
7344
7345 * linux-low.c (handle_extended_wait): Pass parent thread instead
7346 of process to thread_db_notice_clone.
7347 * linux-low.h (thread_db_notice_clone): Replace parent process
7348 parameter with parent thread parameter.
7349 * thread-db.c (find_one_thread): Add comment.
7350 (thread_db_notice_clone): Replace parent process parameter with
7351 parent thread parameter. Temporarily switch to the parent thread.
7352
75352e28
SDJ
73532017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7354
7355 * gdbthread.h: Include "common-gdbthread.h".
7356 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7357 "if" when validating the ptid.
7358 * remote-utils.c: Include "gdbthread.h".
7359 (prepare_resume_reply): Use "switch_to_thread".
7360 * target.c (done_accessing_memory): Likewise.
7361
ad339634
AA
73622017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7363
7364 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7365 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7366 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7367 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7368 s390x-gs-linux64-ipa.o to ipa_obj.
7369 * linux-s390-low.c (HWCAP_S390_GS): New define.
7370 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7371 New functions.
7372 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7373 (s390_arch_setup): Check for guarded-storage support and choose
7374 appropriate tdesc.
7375 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7376 init_registers_s390x_gs_linux64.
7377 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7378 enum value.
7379 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7380 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7381
cc4d742f
SM
73822017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7383
7384 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7385
f6327dcb
KB
73862017-09-21 Kevin Buettner <kevinb@redhat.com>
7387
7388 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7389 (thread_db_thread_handle): Declare.
7390 * linux-low.c (linux_target_ops): Initialize thread_handle.
7391 * server.c (handle_qxfer_threads_worker): Add support for
7392 "handle" attribute.
7393 * target.h (struct target_ops): Add new function pointer,
7394 thread_handle.
7395 (target_thread_handle): Define.
7396 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7397 field in lwp.
7398 (thread_db_thread_handle): New function.
7399
86299109
KB
74002017-09-21 Kevin Buettner <kevinb@redhat.com>
7401
7402 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7403 * linux-low.h (thread_db_notice_clone): Declare.
7404 * thread-db.c (thread_db_notice_clone): New function.
7405
f557a88a
PA
74062017-09-21 Pedro Alves <palves@redhat.com>
7407
7408 * server.c (gdb_read_memory, handle_status, process_serial_event)
7409 (handle_serial_event, handle_target_event): Adjust to
7410 set_desired_thread prototype change.
7411 * target.c (set_desired_thread): Remove 'use_general' parameter
7412 and adjust.
7413 * target.h (set_desired_thread): Remove 'use_general' parameter.
7414
223ffa71
TT
74152017-09-20 Tom Tromey <tom@tromey.com>
7416
7417 * target.c (target_terminal::terminal_state): Define.
7418 (target_terminal::init): Rename from target_terminal_init.
7419 (target_terminal::inferior): Rename from
7420 target_terminal_inferior.
7421 (target_terminal::ours): Rename from target_terminal_ours.
7422 (target_terminal::ours_for_output, target_terminal::info): New.
7423
04fd3ba9
SM
74242017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7425
7426 * server.c (accumulate_file_name_length): Remove.
7427 (emit_dll_description): Adjust to std::string change.
7428 (handle_qxfer_libraries): Use std::string to hold document.
7429
5e187554
SM
74302017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7431
7432 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7433 return type of xml_escape_text.
7434 * server.c (emit_dll_description): Likewise.
7435
1526853e
SM
74362017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7437
7438 * server.c (captured_main): Accept argument for --selftest.
7439 Update run_tests call.
7440 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7441 when registering selftests.
7442
c4dfafab
SDJ
74432017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7444
7445 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7446 instead of "VEC" for "target_desc.reg_defs".
7447 (regcache_cpy): Likewise.
7448 (registers_to_string): Likewise.
7449 (registers_from_string): Likewise.
7450 (find_regno): Likewise.
7451 (supply_regblock): Likewise.
7452 (regcache_raw_read_unsigned): Likewise.
7453 * tdesc.c (init_target_desc): Likewise.
7454 (tdesc_create_reg): Likewise.
7455 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7456 (struct target_desc) <reg_defs>: Convert to "std::vector".
7457 (target_desc): Do not initialize "reg_defs".
7458 (~target_desc): Update code to use "std::vector" instead of "VEC"
7459 for "target_desc.reg_defs".
7460 (operator==): Likewise.
7461
124aceb4
SM
74622017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7463
7464 * inferiors.h (thread_to_gdb_id): Remove.
7465 * inferiors.c (thread_to_gdb_id): Remove.
7466 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7467 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7468 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7469 Likewise.
7470 * nto-low.c (nto_fetch_registers, nto_store_registers,
7471 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7472
96cde54f
SM
74732017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7474
7475 * inferiors.h (gdb_id_to_thread_id): Remove.
7476 * inferiors.c (gdb_id_to_thread_id): Remove.
7477 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7478 removal. Move pid declaration closer to where it's used.
7479
e8ca139e
SM
74802017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7481
7482 * server.c (handle_detach): New function.
7483 (process_serial_event): Move code out, call handle_detach.
7484
f8a4e119
SM
74852017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7486
7487 * server.c (require_running): Rename to ...
7488 (require_running_or_return): ... this ...
7489 (require_running_or_break): ... and this.
7490 (handle_query, process_serial_event): Adjust.
7491
0eb0a407
SM
74922017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7493
7494 * linux-low.c (linux_set_resume_request): Remove unused
7495 variables.
7496
785922a5
SM
74972017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7498
7499 * server.c (first_thread_of): Remove.
7500 (process_serial_event): Replace usage of first_thread_of with
7501 find_any_thread_of_pid.
7502 * tracepoint.c (same_process_p): Remove.
7503 (gdb_agent_about_to_close): Replace usage of same_process_p with
7504 find_any_thread_of_pid.
7505 * linux-x86-low.c (same_process_callback): Remove.
7506 (x86_arch_setup_process_callback): Replace usage of
7507 same_process_callback with find_any_thread_of_pid.
7508 * thread-db.c (any_thread_of): Remove.
7509 (switch_to_process): Replace usage of any_thread_of with
7510 find_any_thread_of_pid.
7511 * inferiors.c (thread_pid_matches_callback): Remove.
7512 (find_thread_process): Adjust to use find_any_thread_of_pid.
7513
a059f00c
SDJ
75142017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7515
7516 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7517 with "!VEC_empty".
a059f00c 7518
cc397f3a
SDJ
75192017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7520
7521 * linux-low.c (handle_extended_wait): Use
7522 "allocate_target_description" instead of "XNEW".
7523 * linux-x86-low.c (initialize_low_arch): Likewise.
7524
22916b07
YQ
75252017-09-05 Yao Qi <yao.qi@linaro.org>
7526
7527 * configure.srv (srv_i386_regobj): Remove.
7528 (srv_amd64_regobj): Remove.
7529 (srv_regobj): Set it to "" for x86 non-linux targets.
7530 * linux-x86-tdesc.c (i386_linux_read_description):
7531 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7532 (init_registers_i386): Remove the declaration.
7533 (tdesc_i386): Remove the declaration.
7534 (lynx_i386_arch_setup): Call i386_create_target_description.
7535 * nto-x86-low.c: Likewise.
7536 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7537 [!__x86_64__]: include arch/i386.h.
7538 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7539
38602d55
YQ
75402017-09-05 Yao Qi <yao.qi@linaro.org>
7541
7542 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7543 i386/amd64-XXX-linux from it.
7544
44b886ff
YQ
75452017-09-05 Yao Qi <yao.qi@linaro.org>
7546
7547 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7548 false.
7549 (ipa_amd64_linux_regobj): Remove.
7550 (ipa_x32_linux_regobj): Remove.
7551
b4570e4b
YQ
75522017-09-05 Yao Qi <yao.qi@linaro.org>
7553
7554 * Makefile.in (arch-amd64.o): New rule.
7555 * configure.srv: Append arch-amd64.o.
7556 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7557 (get_ipa_tdesc): Call amd64_linux_read_description.
7558 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7559 and init_registers_amd64_XXX.
7560 * linux-x86-low.c (x86_linux_read_description): Call
7561 amd64_linux_read_description.
7562 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7563 (initialize_low_arch): Don't call init_registers_x32_XXX and
7564 init_registers_amd64_XXX.
7565 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7566 and tdesc_amd64_XXX.
7567 [__x86_64__] (amd64_tdesc_test): New function.
7568 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7569 and init_registers_amd64_XXX.
7570 * linux-x86-tdesc.c: Include arch/amd64.h.
7571 (xcr0_to_tdesc_idx): New function.
7572 (i386_linux_read_description): New function.
7573 (amd64_get_ipa_tdesc_idx): New function.
7574 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7575 (amd64_get_ipa_tdesc): Declare.
7576
d1f28ea2
YQ
75772017-09-05 Yao Qi <yao.qi@linaro.org>
7578
7579 * configure.srv (srv_i386_linux_xmlfiles): Remove
7580 i386/i386-XXX-linux.xml from it.
7581
25a93583
YQ
75822017-09-05 Yao Qi <yao.qi@linaro.org>
7583
7584 * configure.srv: Set srv_i386_linux_regobj empty if $development
7585 is false.
7586 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7587 initialize_low_tdesc.
7588 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7589 with #if initialize_low_tdesc.
7590 * linux-x86-tdesc-selftest.c: New file.
7591 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7592
5f035c07
YQ
75932017-09-05 Yao Qi <yao.qi@linaro.org>
7594
7595 * Makefile.in (arch-i386.o): New rule.
7596 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7597 (x86_64-*-linux*): Likewise.
7598 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7599 include arch/i386.h.
7600 (i386_linux_read_description): Remove code and call
7601 i386_create_target_description.
7602 * tdesc.c (allocate_target_description): New function.
7603 * tdesc.h (set_tdesc_architecture): Remove declaration.
7604 (set_tdesc_osabi): Likewise.
7605
0abe8a89
YQ
76062017-09-05 Yao Qi <yao.qi@linaro.org>
7607
7608 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7609 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7610 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7611 .xmltarget.
7612 * server.c (get_features_xml): Call tdesc_get_features_xml.
7613 * tdesc.c (set_tdesc_architecture): New function.
7614 (set_tdesc_osabi): New function.
7615 (tdesc_get_features_xml): New function.
7616 (tdesc_create_feature): Add an argument.
7617 * tdesc.h (struct target_desc) <features>: New field.
7618 <arch, osabi>: New field.
7619 (~target_desc): xfree features, arch, and osabi.
7620 (target_desc::oerator==): Don't compare .xmltarget.
7621 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7622 (set_tdesc_osabi): Likewise.
7623 (tdesc_get_features_xml): Likewise.
7624
0a188386
YQ
76252017-09-05 Yao Qi <yao.qi@linaro.org>
7626
7627 * linux-x86-tdesc.c: Include selftest.h.
7628 (i386_tdesc_test): New function.
7629 (initialize_low_tdesc): Call selftests::register_test.
7630 * tdesc.h: Include regdef.h.
7631 (target_desc): Override operator == and !=.
7632
f49ff000
YQ
76332017-09-05 Yao Qi <yao.qi@linaro.org>
7634
7635 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7636 (ipa_obj): Likewise.
7637 * linux-i386-ipa.c: Include common/x86-xstate.h
7638 (get_ipa_tdesc): Call i386_linux_read_description.
7639 (initialize_low_tracepoint): Don't call init_registers_XXX
7640 functions, call initialize_low_tdesc instead.
7641 * linux-x86-low.c (x86_linux_read_description): Call
7642 i386_linux_read_description.
7643 (initialize_low_arch): Don't call init_registers_i386_XXX
7644 functions, call initialize_low_tdesc.
7645 * linux-x86-tdesc.c: New file.
7646 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7647 (i386_get_ipa_tdesc_idx): Declare.
7648 (i386_get_ipa_tdesc): Declare.
7649 (initialize_low_tdesc): Declare.
7650
2b68ef2f
YQ
76512017-09-05 Yao Qi <yao.qi@linaro.org>
7652
7653 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7654 instead of 0.
7655
f7000548
YQ
76562017-09-05 Yao Qi <yao.qi@linaro.org>
7657
7658 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7659 * regcache.c (get_thread_regcache): Use VEC_length.
7660 (init_register_cache): Likewise.
7661 (regcache_cpy): Likewise.
7662 (registers_to_string): Iterate reg_defs via VEC_iterate.
7663 (find_regno): Likewise.
7664 (find_register_by_number): Use VEC_index.
7665 (register_size): Call find_register_by_number.
7666 (register_data): Call find_register_by_number.
7667 (supply_regblock): Use VEC_length.
7668 (regcache_raw_read_unsigned): Likewise.
7669 * tdesc.c (init_target_desc): Iterate reg_defs via
7670 VEC_iterate.
7671 (default_description): Update initializer.
7672 (copy_target_description): Don't update field num_registers.
7673 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7674 <num_registers>: Remove.
7675
50a421ac
SM
76762017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7677
7678 * Makefile.in (.SECONDARY): Define target.
7679
23fdd69e
SM
76802017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7681
7682 * linux-low.c (linux_wait_1): Adjust.
7683 * server.c (queue_stop_reply_callback): Adjust.
7684
0a2dde4a
SDJ
76852017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7686
7687 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7688 QEnvironmentUnset and QEnvironmentReset packets.
7689 (handle_query): Inform remote that QEnvironmentHexEncoded,
7690 QEnvironmentUnset and QEnvironmentReset are supported.
7691
6afd337d
SM
76922017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7693
7694 * inferiors.h (inferior_target_data): Rename to ...
7695 (thread_target_data): ... this.
7696 (inferior_regcache_data): Rename to ...
7697 (thread_regcache_data): ... this.
7698 (set_inferior_regcache_data): Rename to ...
7699 (set_thread_regcache_data): ... this.
7700 * inferiors.c (inferior_target_data): Rename to ...
7701 (thread_target_data): ... this.
7702 (inferior_regcache_data): Rename to ...
7703 (thread_regcache_data): ... this.
7704 (set_inferior_regcache_data): Rename to ...
7705 (set_thread_regcache_data): ... this.
7706 (free_one_thread): Update.
7707 * linux-low.h (get_thread_lwp): Update.
7708 * regcache.c (get_thread_regcache): Update.
7709 (regcache_invalidate_thread): Update.
7710 (free_register_cache_thread): Update.
7711 * win32-i386-low.c (update_debug_registers_callback): Update.
7712 (win32_get_current_dr): Update.
7713 * win32-low.c (thread_rec): Update.
7714 (delete_thread_info): Update.
7715 (continue_one_thread): Update.
7716 (suspend_one_thread): Update.
7717
a160cc46
SM
77182017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7719
7720 * inferiors.c (set_inferior_target_data): Remove.
7721 * inferiors.h (set_inferior_target_data): Remove.
7722
6d580b63
YQ
77232017-08-18 Yao Qi <yao.qi@linaro.org>
7724
7725 * Makefile.in (OBS): Add selftest.o.
7726 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7727 * configure, config.in: Re-generated.
7728 * server.c: Include common/sefltest.h.
7729 (captured_main): Handle option --selftest.
7730
f5a29eb0
YQ
77312017-08-09 Yao Qi <yao.qi@linaro.org>
7732
7733 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7734 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7735 i386-avx-mpx.o and i386-mmx.o.
7736 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7737 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7738 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7739 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7740 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7741 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7742 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7743 i386/amd64-avx-mpx.xml.
7744
57757c2f
YQ
77452017-08-09 Yao Qi <yao.qi@linaro.org>
7746
7747 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7748 and x32-avx-avx512.o.
7749 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7750 i386/x32-avx-avx512.xml.
7751
229d26fc
SM
77522017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7753
7754 * tracepoint.h (enum class fast_tpoint_collect_result): New
7755 enumeration.
7756 (fast_tracepoint_collecting): Change return type to
7757 fast_tpoint_collect_result.
7758 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7759 * linux-low.h: Include tracepoint.h.
7760 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7761 fast_tpoint_collect_result.
7762 * linux-low.c (handle_tracepoints): Adjust.
7763 (linux_fast_tracepoint_collecting): Change return type to
7764 fast_tpoint_collect_result.
7765 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7766 linux_wait_1, stuck_in_jump_pad_callback,
7767 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7768 proceed_one_lwp): Adjust to type change.
7769
2e1e43e1
YQ
77702017-07-10 Yao Qi <yao.qi@linaro.org>
7771
7772 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7773
adc764e7
YQ
77742017-06-29 Yao Qi <yao.qi@linaro.org>
7775
7776 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7777 Remove.
7778 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7779
a206891a
SM
77802017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7781
7782 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7783
9a6c7d9c
SDJ
77842017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7785
7786 * linux-low.c (linux_create_inferior): Adjust code to access the
7787 environment information via 'gdb_environ' class.
7788 * lynx-low.c (lynx_create_inferior): Likewise.
7789 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7790 (get_environ): Return a pointer to 'our_environ'.
7791 (captured_main): Initialize 'our_environ'.
7792 * server.h (get_environ): Adjust prototype.
7793 * spu-low.c (spu_create_inferior): Adjust code to access the
7794 environment information via 'gdb_environ' class.
7795
ae3e2ccf
SM
77962017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7797
7798 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7799 usage of "register" keyword.
7800
3e019bdc
SM
78012017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7802
7803 * configure: Re-generate.
7804
8465943a
SM
78052017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7806
7807 * configure: Re-generate.
7808
cf0dd6f0
SM
78092017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7810
7811 * Makefile.in (COMPILE.pre): Add "-x c++".
7812
9845682b
SDJ
78132017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7814
7815 * fork-child.c: Conditionally include <signal.h>.
7816
aefd8b33
SDJ
78172017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7818
7819 * server.c (handle_general_set): Handle new packet
7820 "QStartupWithShell".
7821 (handle_query): Add "QStartupWithShell" to the list of supported
7822 packets.
7823 (gdbserver_usage): Add help text explaining the
7824 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7825 options.
7826 (captured_main): Recognize and act upon the presence of the new
7827 CLI options.
7828
2090129c
SDJ
78292017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7830 Pedro Alves <palves@redhat.com>
7831
7832 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7833 * configure: Regenerate.
7834 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7835 "fork-inferior.o".
7836 (i[34567]86-*-lynxos*): Likewise.
7837 (spu*-*-*): Likewise.
7838 * fork-child.c: New file.
7839 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7840 and "environ.h".
7841 (linux_ptrace_fun): New function.
7842 (linux_create_inferior): Adjust function prototype to reflect
7843 change on "target.h". Adjust function code to use
7844 "fork_inferior".
7845 (linux_request_interrupt): Delete "signal_pid".
7846 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7847 (lynx_ptrace_fun): New function.
7848 (lynx_create_inferior): Adjust function prototype to reflect
7849 change on "target.h". Adjust function code to use
7850 "fork_inferior".
7851 * nto-low.c (nto_create_inferior): Adjust function prototype and
7852 code to reflect change on "target.h". Update comments.
7853 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7854 "common-terminal.h" and "environ.h".
7855 (terminal_fd): Moved to fork-child.c.
7856 (old_foreground_pgrp): Likewise.
7857 (restore_old_foreground_pgrp): Likewise.
7858 (last_status): Make it global.
7859 (last_ptid): Likewise.
7860 (our_environ): New variable.
7861 (startup_with_shell): Likewise.
7862 (program_name): Likewise.
7863 (program_argv): Rename to...
7864 (program_args): ...this.
7865 (wrapper_argv): New variable.
7866 (start_inferior): Delete function.
7867 (get_exec_wrapper): New function.
7868 (get_exec_file): Likewise.
7869 (get_environ): Likewise.
7870 (prefork_hook): Likewise.
7871 (post_fork_inferior): Likewise.
7872 (postfork_hook): Likewise.
7873 (postfork_child_hook): Likewise.
7874 (handle_v_run): Update code to deal with arguments coming from the
7875 remote host. Update calls from "start_inferior" to
7876 "create_inferior".
7877 (captured_main): Likewise. Initialize environment variable. Call
7878 "have_job_control".
7879 * server.h (post_fork_inferior): New prototype.
7880 (get_environ): Likewise.
7881 (last_status): Declare.
7882 (last_ptid): Likewise.
7883 (signal_pid): Likewise.
7884 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7885 (spu_ptrace_fun): New function.
7886 (spu_create_inferior): Adjust function prototype to reflect change
7887 on "target.h". Adjust function code to use "fork_inferior".
7888 * target.c (target_terminal_init): New function.
7889 (target_terminal_inferior): Likewise.
7890 (target_terminal_ours): Likewise.
7891 * target.h: Include <vector>.
7892 (struct target_ops) <create_inferior>: Update prototype.
7893 (create_inferior): Update macro.
7894 * utils.c (gdb_flush_out_err): New function.
7895 * win32-low.c (win32_create_inferior): Adjust function prototype
7896 and code to reflect change on "target.h".
7897
043a4934
SDJ
78982017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7899
7900 * inferiors.c (switch_to_thread): New function.
7901
15652511
SDJ
79022017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7903
7904 * Makefile.in (SFILE): Add "common/job-control.c".
7905 (OBS): Add "job-control.o".
7906
21ea5acd
SDJ
79072017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7908
7909 * Makefile: Remove "@host_makefile_frag@".
7910
e13cb306
PA
79112017-05-05 Pedro Alves <palves@redhat.com>
7912
7913 * configure: Regenerate.
7914
c94fee56
SDJ
79152017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7916
7917 * configure: Regenerate.
7918
a0ff9e1a
SM
79192017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7920
7921 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7922 software_single_step change of return type to
7923 std::vector<CORE_ADDR>.
7924 * linux-low.c (install_software_single_step_breakpoints):
7925 Likewise.
7926 * linux-low.h (install_software_single_step_breakpoints):
7927 Likewise.
7928
be628ab8
SDJ
79292017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7930
7931 * remote-utils.c: Include "gdb_termios.h" instead of
7932 "terminal.h".
7933 * terminal.h: Delete file.
7934
7c5ded6a
SDJ
79352017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7936
7937 * server.c: Include <vector>.
7938 <program_argv, wrapper_argv>: Convert to std::vector.
7939 (start_inferior): Rewrite function to use C++.
7940 (handle_v_run): Likewise. Update code that calculates the argv
7941 based on the vRun packet; use C++.
7942 (captured_main): Likewise.
7943
436252de
SM
79442017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7945
7946 * server.c (handle_v_cont): Initialize thread_resume::thread
7947 with null_ptid.
7948
9bf2a700
PA
79492017-04-05 Pedro Alves <palves@redhat.com>
7950
7951 * configure: Regenerate.
7952
a121b7c1
PA
79532017-04-05 Pedro Alves <palves@redhat.com>
7954
7955 * gdbreplay.c (sync_error): Constify.
7956 * linux-x86-low.c (push_opcode): Constify.
7957
21c8a587
PA
79582017-04-05 Pedro Alves <palves@redhat.com>
7959
7960 * win32-low.c (get_child_debug_event)
7961 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7962 Report TARGET_WAITKIND_SPURIOUS instead.
7963
fb32b4f7
PA
79642017-04-05 Pedro Alves <palves@redhat.com>
7965
e79be6e5
SM
7966 * remote-utils.c (remote_prepare, remote_open): Constify.
7967 * remote-utils.h (remote_prepare, remote_open): Constify.
7968 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7969
65dd1e59
SM
79702017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7971
7972 * Makefile.in (clean): Clear .deps.
7973
8fa5b777
SM
79742017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7975
7976 * .gitignore: Remove generated files, replace with wildcard.
7977 * (clean): Replace removal of generated files with wildcard.
7978 (version.c): Replace with...
7979 (version-generated.c): ...this.
7980 (xml-builtin.c): Replace with...
7981 (xml-builtin-generated.c): ...this.
7982 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7983 (%.c: *regformats*): Replace with...
7984 (%-generated.c: *regformats*): ...this.
7985
a12e714b
MF
79862017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7987
7988 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7989 (xtensa_fill_gregset): Call collect_register_by_name for
7990 threadptr register.
7991 (xtensa_store_gregset): Call supply_register_by_name for
7992 threadptr register.
7993
1a09b50a
MF
79942017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7995
7996 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7997 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7998 (xtensa_store_gregset): Call supply_register for all registers in
7999 a0_regnum..a0_regnum + C0_NREGS range.
8000
1a01e7c6
SM
80012017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8002
8003 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
8004 (ax-ipa.o: ax.c): Remove.
8005 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
8006 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
8007 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
8008 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
8009 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
8010
36bc18a8
SM
80112017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8012
8013 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
8014 (print-utils-ipa.o: ../common/print-utils.c): Remove.
8015 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
8016 (errors-ipa.o: ../common/errors.c): Remove.
8017 (format-ipa.o: ../common/format.c): Remove.
8018 (common-utils-ipa.o: ../common/common-utils.c): Remove.
8019
a8ebe3d5
SM
80202017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8021
8022 * Makefile.in (%-ipa.o: %.c): New rule.
8023 (tracepoint-ipa.o: tracepoint.c): Remove.
8024 (utils-ipa.o: utils.c): Remove.
8025 (remote-utils-ipa.o: remote-utils.c): Remove.
8026 (regcache-ipa.o: regcache.c): Remove.
8027 (i386-linux-ipa.o: i386-linux.c): Remove.
8028 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
8029 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
8030 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
8031 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
8032 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
8033 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
8034 (amd64-linux-ipa.o: amd64-linux.c): Remove.
8035 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
8036 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
8037 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
8038 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
8039 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
8040 (aarch64-ipa.o: aarch64.c): Remove.
8041 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8042 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8043 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8044 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8045 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8046 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8047 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8048 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8049 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8050 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8051 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8052 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8053 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8054 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8055 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8056 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8057 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8058 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8059 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8060 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8061 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8062 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8063 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8064 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8065 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8066 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8067 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8068 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8069 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8070 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8071 (tdesc-ipa.o: tdesc.c): Remove.
8072 (x32-linux-ipa.o: x32-linux.c): Remove.
8073 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8074 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8075
50cfacb7
SM
80762017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8077
8078 * Makefile.in (%.o: ../arch/%.c): New rule.
8079 (arm.o: ../arch/arm.c): Remove.
8080 (arm-linux.o: ../arch/arm-linux.c): Remove.
8081 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8082 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8083
c5a22423
SM
80842017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8085
8086 * Makefile.in (%.o: ../nat/%.c): New rule.
8087 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8088 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8089 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8090 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8091 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8092 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8093 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8094 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8095 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8096 (linux-personality.o: ../nat/linux-personality.c): Remove.
8097 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8098 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8099 (x86-linux.o: ../nat/x86-linux.c): Remove.
8100 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8101 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8102
6bda016b
SM
81032017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8104
8105 * Makefile.in (%.o: ../common/%.c): New rule.
8106 (signals.o: ../common/signals.c): Remove.
8107 (print-utils.o: ../common/print-utils.c): Remove.
8108 (rsp-low.o: ../common/rsp-low.c): Remove.
8109 (common-utils.o: ../common/common-utils.c): Remove.
8110 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8111 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8112 (vec.o: ../common/vec.c): Remove.
8113 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8114 (xml-utils.o: ../common/xml-utils.c): Remove.
8115 (ptid.o: ../common/ptid.c): Remove.
8116 (buffer.o: ../common/buffer.c): Remove.
8117 (format.o: ../common/format.c): Remove.
8118 (filestuff.o: ../common/filestuff.c): Remove.
8119 (agent.o: ../common/agent.c): Remove.
8120 (errors.o: ../common/errors.c): Remove.
8121 (environ.o: ../common/environ.c): Remove.
8122 (common-debug.o: ../common/common-debug.c): Remove.
8123 (cleanups.o: ../common/cleanups.c): Remove.
8124 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8125 (fileio.o: ../common/fileio.c): Remove.
8126 (common-regcache.o: ../common/common-regcache.c): Remove.
8127 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8128 (new-op.o: ../common/new-op.c): Remove.
8129 (btrace-common.o: ../common/btrace-common.c): Remove.
8130
21122961
SM
81312017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8132
8133 * Makefile.in (%.o: ../target/%.c): New rule.
8134 (waitstatus.o: ../target/waitstatus.c): Remove.
8135
c362e621
SM
81362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8137
8138 * Makefile.in
8139 (%.c: ../regformats/%.dat,
8140 (%.c: ../regformats/arm/%.dat,
8141 (%.c: ../regformats/i386/%.dat,
8142 (%.c: ../regformats/rs6000/%.dat): New rules.
8143 (aarch64.c): Remove.
8144 (reg-arm.c): Remove.
8145 (arm-with-iwmmxt.c): Remove.
8146 (arm-with-vfpv2.c): Remove.
8147 (arm-with-vfpv3.c): Remove.
8148 (arm-with-neon.c): Remove.
8149 (reg-bfin.c): Remove.
8150 (reg-cris.c): Remove.
8151 (reg-crisv32.c): Remove.
8152 (i386.c): Remove.
8153 (i386-linux.c): Remove.
8154 (i386-avx.c): Remove.
8155 (i386-avx-linux.c): Remove.
8156 (i386-avx-avx512.c): Remove.
8157 (i386-avx-avx512-linux.c): Remove.
8158 (i386-mpx.c): Remove.
8159 (i386-mpx-linux.c): Remove.
8160 (i386-avx-mpx-avx512-pku.c): Remove.
8161 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8162 (i386-avx-mpx.c): Remove.
8163 (i386-avx-mpx-linux.c): Remove.
8164 (i386-mmx.c): Remove.
8165 (i386-mmx-linux.c): Remove.
8166 (reg-ia64.c): Remove.
8167 (reg-m32r.c): Remove.
8168 (reg-m68k.c): Remove.
8169 (reg-cf.c): Remove.
8170 (mips-linux.c): Remove.
8171 (mips-dsp-linux.c): Remove.
8172 (mips64-linux.c): Remove.
8173 (mips64-dsp-linux.c): Remove.
8174 (nios2-linux.c): Remove.
8175 (powerpc-32.c): Remove.
8176 (powerpc-32l.c): Remove.
8177 (powerpc-altivec32l.c): Remove.
8178 (powerpc-cell32l.c): Remove.
8179 (powerpc-vsx32l.c): Remove.
8180 (powerpc-isa205-32l.c): Remove.
8181 (powerpc-isa205-altivec32l.c): Remove.
8182 (powerpc-isa205-vsx32l.c): Remove.
8183 (powerpc-e500l.c): Remove.
8184 (powerpc-64l.c): Remove.
8185 (powerpc-altivec64l.c): Remove.
8186 (powerpc-cell64l.c): Remove.
8187 (powerpc-vsx64l.c): Remove.
8188 (powerpc-isa205-64l.c): Remove.
8189 (powerpc-isa205-altivec64l.c): Remove.
8190 (powerpc-isa205-vsx64l.c): Remove.
8191 (s390-linux32.c): Remove.
8192 (s390-linux32v1.c): Remove.
8193 (s390-linux32v2.c): Remove.
8194 (s390-linux64.c): Remove.
8195 (s390-linux64v1.c): Remove.
8196 (s390-linux64v2.c): Remove.
8197 (s390-te-linux64.c): Remove.
8198 (s390-vx-linux64.c): Remove.
8199 (s390-tevx-linux64.c): Remove.
8200 (s390x-linux64.c): Remove.
8201 (s390x-linux64v1.c): Remove.
8202 (s390x-linux64v2.c): Remove.
8203 (s390x-te-linux64.c): Remove.
8204 (s390x-vx-linux64.c): Remove.
8205 (s390x-tevx-linux64.c): Remove.
8206 (tic6x-c64xp-linux.c): Remove.
8207 (tic6x-c64x-linux.c): Remove.
8208 (tic6x-c62x-linux.c): Remove.
8209 (reg-sh.c): Remove.
8210 (reg-sparc64.c): Remove.
8211 (reg-spu.c): Remove.
8212 (amd64.c): Remove.
8213 (amd64-linux.c): Remove.
8214 (amd64-avx.c): Remove.
8215 (amd64-avx-linux.c): Remove.
8216 (amd64-avx-avx512.c): Remove.
8217 (amd64-avx-avx512-linux.c): Remove.
8218 (amd64-mpx.c): Remove.
8219 (amd64-mpx-linux.c): Remove.
8220 (amd64-avx-mpx-avx512-pku.c): Remove.
8221 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8222 (amd64-avx-mpx.c): Remove.
8223 (amd64-avx-mpx-linux.c): Remove.
8224 (x32.c): Remove.
8225 (x32-linux.c): Remove.
8226 (x32-avx.c): Remove.
8227 (x32-avx-linux.c): Remove.
8228 (x32-avx-avx512.c): Remove.
8229 (x32-avx-avx512-linux.c): Remove.
8230 (reg-xtensa.c): Remove.
8231 (reg-tilegx.c): Remove.
8232 (reg-tilegx32.c): Remove.
8233
1672e0d9
SDJ
82342017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8235
8236 * Makefile.in (SFILES): Add "common/environ.c".
8237 (OBJS): Add "common/environ.h".
8238
239b6d10
WT
82392017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8240
8241 * configure.ac: Check if the fs_base and gs_base members of
8242 `struct user_regs_struct' exist.
8243 * config.in: Regenerated.
8244 * configure: Likewise.
8245
694b382c
AT
82462017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8247
8248 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8249 target_read_memory.
8250 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8251 (get_next_pcs_syscall_next_pc): Likewise.
8252
7dc53023
LM
82532016-12-23 Luis Machado <lgustavo@codesourcery.com>
8254
8255 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8256 * nto-x86-low.c: Likewise.
8257
ad02e4fe
SM
82582016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8259
8260 * Makefile.in: Include disable-implicit-rules.mk.
8261
dcb07cfa
PA
82622016-11-23 Pedro Alves <palves@redhat.com>
8263
8264 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8265 (debug_vprintf): Use std::chrono::steady_clock instead of
8266 gettimeofday. Use '.' instead of ':'.
8267 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8268 (get_timestamp): Use std::chrono::steady_clock instead of
8269 gettimeofday.
8270
8629c02c
SM
82712016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8272
8273 * Makefile.in: Fix whitespace formatting.
8274
b593ecca
SM
82752016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8276
8277 * Makefile.in (SFILES, OBS): Flatten list and order
8278 alphabetically.
8279
9986ba08
PA
82802016-11-23 Pedro Alves <palves@redhat.com>
8281
8282 * event-loop.c (handle_file_event): Use warning.
8283 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8284 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8285 Use warning.
8286
4eefa7bc
PA
82872016-11-23 Pedro Alves <palves@redhat.com>
8288
8289 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8290 output.
8291 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8292 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8293 debug_printf and debug_flush for debug output.
8294 * server.c (handle_general_set): Likewise.
8295 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8296 output.
8297
5443506e
SM
82982016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8299
8300 * Makefile.in (.c.o): Replace rule with ...
8301 (%.o: %.c): ... this one.
8302
3b165252
SM
83032016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8304
8305 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8306 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8307 make.
8308 * configure.ac: Remove checks for the make program.
8309 * configure: Re-generate.
8310
0bcda685
PA
83112016-10-28 Pedro Alves <palves@redhat.com>
8312
8313 * Makefile.in (CXX_DIALECT): Get from configure.
8314 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8315 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8316 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8317 * config.in: Regenerate.
8318 * configure: Regenerate.
8319
c3805894
YQ
83202016-10-27 Yao Qi <yao.qi@linaro.org>
8321
8322 * linux-low.c (linux_supports_range_stepping): Return true if
8323 can_software_single_step return true.
8324
89342618
YQ
83252016-10-27 Yao Qi <yao.qi@linaro.org>
8326
8327 * inferiors.c (find_inferior_in_random): New function.
8328 * inferiors.h (find_inferior_in_random): Declare.
8329 * linux-low.c (linux_wait_for_event_filtered): Call
8330 find_inferior_in_random instead of find_inferior.
8331
e3652c84
YQ
83322016-10-27 Yao Qi <yao.qi@linaro.org>
8333
8334 * linux-low.c (linux_wait_1): If single-step breakpoints are
8335 inserted, remove them.
8336
5a04c4cf
PA
83372016-10-26 Pedro Alves <palves@redhat.com>
8338
8339 * linux-low.c (handle_extended_wait): Link parent/child fork
8340 threads.
8341 (linux_wait_1): Unlink them.
8342 (linux_set_resume_request): Ignore resume requests for
8343 already-resumed and unhandled fork child threads.
8344 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8345 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8346 New functions.
8347 (handle_v_requests) <vCont>: Don't call require_running.
8348 * server.h (in_queued_stop_replies): New declaration.
8349
cb93dc7f
YQ
83502016-10-24 Yao Qi <yao.qi@linaro.org>
8351
8352 PR server/20733
8353 * linux-aarch64-low.c (append_insns): Cast the return value to
8354 'uint32_t *'.
8355
a1078bea
YQ
83562016-10-10 Yao Qi <yao.qi@linaro.org>
8357
8358 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8359
1fb77080
SDJ
83602016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8361
8362 * target.c (target_supports_multi_process): New function, moved
8363 from...
8364 * target.h (target_supports_multi_process): ... here. Remove
8365 macro.
8366
39b5a3b9
TT
83672016-10-05 Tom Tromey <tom@tromey.com>
8368
8369 PR remote/20655:
8370 * tracepoint.c (handle_tracepoint_bkpts): Check
8371 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8372
c1d0b70a
YQ
83732016-10-05 Yao Qi <yao.qi@linaro.org>
8374
8375 * configure.srv: Update the path of arm-*.xml files.
8376
0a69eedb
YQ
83772016-10-05 Terry Guo <terry.guo@arm.com>
8378 Yao Qi <yao.qi@linaro.org>
8379
8380 * Makefile.in: Adjust the path of rules.
8381 * configure.srv: Update the path of xml files.
8382 * regformats/arm-with-iwmmxt.dat: Regenerated.
8383 * regformats/arm-with-neon.dat: Likewise.
8384 * regformats/arm-with-vfpv2.dat: Likewise.
8385 * regformats/arm-with-vfpv3.dat Likewise.
8386
17e16485
YQ
83872016-09-30 Yao Qi <yao.qi@linaro.org>
8388
8389 PR gdbserver/20627
8390 * target.c (target_stop_and_wait): Don't call
8391 target_continue_no_signal, use resume_stop instead.
8392
edeeb602
YQ
83932016-09-26 Yao Qi <yao.qi@linaro.org>
8394
8395 * linux-low.c (linux_wait_1): Call debug_exit.
8396
503b1c39
PA
83972016-09-23 Pedro Alves <palves@redhat.com>
8398
8399 * Makefile.in (SFILES): Add common/new-op.c.
8400 (OBS): Add common/new-op.o.
8401 (new-op.o): New rule.
8402
74172ecf
SM
84032016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8404
8405 * .gitinore: Ignore more files.
8406
fc6cda2e
YQ
84072016-09-21 Yao Qi <yao.qi@linaro.org>
8408
8409 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8410 23.
8411
bc1e6c81
SDJ
84122016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8413
8414 * server.c (start_inferior): Call target_mourn_inferior instead of
8415 mourn_inferior; pass ptid_t argument to it.
8416 (resume): Likewise.
8417 (handle_target_event): Likewise.
8418 * target.c (target_mourn_inferior): New function.
8419 * target.h (mourn_inferior): Delete macro.
8420
0e00e962
AA
84212016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8422
8423 * linux-low.c (lwp_is_stepping): New function.
8424
1d8cb77d
CL
84252016-09-06 Carl Love <cel@us.ibm.com>
8426
8427 * server.c (start_inferior): Fixed comment, requested comment change
8428 didn't get updated correctly. Removed reference to ptrace () call as
8429 it is only true on Linux systems.
8430
7313bced
CL
84312016-09-06 Carl Love <cel@us.ibm.com>
8432
8433 * server.c (start_inferior): Do not call
8434 function target_post_create_inferior () if the
8435 inferior process has already exited.
8436
cf6de44d
PA
84372016-09-05 Pedro Alves <palves@redhat.com>
8438
8439 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8440 (COMPILE.pre, CC_LD): Use CXX directly.
8441 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8442 * acinclude.m4: Don't include build-with-cxx.m4.
8443 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8444 * configure: Regenerate.
8445
c1da6748
AT
84462016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8447
8448 PR gdb/19495
8449 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8450 call writing data to own_buf.
8451
f2b9e3df
SDJ
84522016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8453
8454 * target.c (mywait): Call target_wait instead of
8455 the_target->wait.
8456 (target_wait): New function.
8457
049a8570
SDJ
84582016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8459
8460 * server.c (start_inferior): New variable 'ptid'. Replace calls
8461 to the_target->resume by target_continue{,_no_signal}, depending
8462 on the case.
8463 * target.c (target_stop_and_wait): Call target_continue_no_signal
8464 instead of the_target->resume.
8465 (target_continue): New function.
8466
3aa5cfa0
AT
84672016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8468
8469 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8470
754653a7
AZ
84712016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8472
8473 PR server/20491
8474 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8475 ps_prochandle.
8476 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8477 * linux-arm-low.c (ps_get_thread_area): Likewise.
8478 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8479 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8480 * linux-mips-low.c (ps_get_thread_area): Likewise.
8481 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8482 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8483 * linux-x86-low.c (ps_get_thread_area): Likewise.
8484 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8485
ed036b40
PA
84862016-08-19 Pedro Alves <palves@redhat.com>
8487
8488 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8489
c8ef42ee
PA
84902016-08-19 Pedro Alves <palves@redhat.com>
8491
8492 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8493 comment. Use memcpy instead of casting through unsigned long.
8494
9c235a72
PA
84952016-08-19 Pedro Alves <palves@redhat.com>
8496
8497 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8498 allocating around 0x80000000.
8499
201506da
PA
85002016-08-19 Pedro Alves <palves@redhat.com>
8501
8502 PR gdb/20415
8503 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8504 (x32-avx512-linux-ipa.o): New rules.
8505 * configure.ac (x86_64-*-linux*): New x32 check.
8506 * configure.srv (ipa_x32_linux_regobj): New.
8507 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8508 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8509 descriptions.
8510 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8511 descriptions.
8512 * configure: Regenerate.
8513
f348d89a
PA
85142016-08-09 Pedro Alves <palves@redhat.com>
8515
8516 PR gdb/18653
8517 * Makefile.in (OBS): Add signals-state-save-restore.o.
8518 (signals-state-save-restore.o): New rule.
8519 * config.in: Regenerate.
8520 * configure: Regenerate.
8521 * linux-low.c: Include "signals-state-save-restore.h".
8522 (linux_create_inferior): Call
8523 restore_original_signals_state.
8524 * server.c: Include "dispositions-save-restore.h".
8525 (captured_main): Call save_original_signals_state.
8526
1baf5149
PA
85272016-08-05 Pedro Alves <palves@redhat.com>
8528
8529 * configure: Regenerate.
8530
fcd4a73d
YQ
85312016-08-04 Yao Qi <yao.qi@linaro.org>
8532
8533 * linux-low.c (regsets_fetch_inferior_registers): Check
8534 errno is ESRCH or not.
8535
979659d0
YQ
85362016-08-02 Yao Qi <yao.qi@linaro.org>
8537
8538 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8539 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8540 (thread_db_load_search): Update.
8541 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8542 td_ta_set_event and td_ta_event_getmsg.
8543
6598661d
PA
85442016-07-26 Pedro Alves <palves@redhat.com>
8545
8546 PR server/20414
8547 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8548 of unsigned long for 64-bit registers and use uint32_t instead of
8549 unsigned int for 32-bit registers.
8550
9cf12d57
PA
85512016-07-26 Pedro Alves <palves@redhat.com>
8552
8553 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8554 to 'ptrace'.
8555
305450ed
TT
85562016-07-21 Tom Tromey <tom@tromey.com>
8557
8558 * configure: Rebuild.
8559
2583da7c
YQ
85602016-07-21 Yao Qi <yao.qi@linaro.org>
8561
8562 * mem-break.c (find_gdb_breakpoint): Cast bp to
8563 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8564
21536b36
YQ
85652016-07-21 Yao Qi <yao.qi@linaro.org>
8566
8567 * server.c (handle_v_requests): Support s and S actions
8568 if target_supports_software_single_step return true.
8569
8901d193
YQ
85702016-07-21 Yao Qi <yao.qi@linaro.org>
8571
8572 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8573 is resume_step, call maybe_hw_step.
8574 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8575 and unstop them.
8576 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8577 breakpoints or not.
8578 (proceed_one_lwp): If resume request is resume_step, install
8579 reinsert breakpoints and call maybe_hw_step.
8580
0e9a339e
YQ
85812016-07-21 Yao Qi <yao.qi@linaro.org>
8582
8583 * linux-low.c (proceed_one_lwp): Declare.
8584 (linux_resume_one_thread): Remove local variable 'step'.
8585 Lift code enqueue signal. Call proceed_one_lwp instead of
8586 linux_resume_one_lwp.
8587
4281b351
YQ
85882016-07-21 Yao Qi <yao.qi@linaro.org>
8589
8590 * linux-low.c (linux_resume_one_thread): Call
8591 enqueue_pending_signal.
8592
984a2c04
YQ
85932016-07-21 Yao Qi <yao.qi@linaro.org>
8594
8595 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8596 * inferiors.c (do_restore_current_thread_cleanup): New function.
8597 (make_cleanup_restore_current_thread): Likewise.
8598 * linux-low.c (install_software_single_step_breakpoints): Call
8599 make_cleanup_restore_current_thread. Switch current_thread to
8600 thread.
8601
bec903c9
YQ
86022016-07-21 Yao Qi <yao.qi@linaro.org>
8603
8604 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8605 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8606 (clone_one_breakpoint): Likewise.
8607 (delete_reinsert_breakpoints): Change parameter to thread.
8608 Callers updated.
8609 (has_reinsert_breakpoints): Likewise.
8610 (uninsert_reinsert_breakpoints): Likewise.
8611 (reinsert_reinsert_breakpoints): Likewise.
8612 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8613 (delete_reinsert_breakpoints): Likewise.
8614 (reinsert_reinsert_breakpoints): Likewise.
8615 (uninsert_reinsert_breakpoints): Likewise.
8616 (has_reinsert_breakpoints): Likewise.
8617
63c40ec7
YQ
86182016-07-21 Yao Qi <yao.qi@linaro.org>
8619
8620 * inferiors.c (get_thread_process): Make parameter const.
8621 * inferiors.h (get_thread_process): Update declaration.
8622 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8623 Add new parameters child_thread and parent_thread. Callers
8624 updated.
8625 * mem-break.h (clone_all_breakpoints): Update declaration.
8626
9aa76cd0
YQ
86272016-07-21 Yao Qi <yao.qi@linaro.org>
8628
8629 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8630 <command_list, handler>: Remove.
8631 (struct gdb_breakpoint): New.
8632 (struct other_breakpoint): New.
8633 (struct reinsert_breakpoint): New.
8634 (is_gdb_breakpoint): New function.
8635 (any_persistent_commands): Update command_list if
8636 is_gdb_breakpoint returns true.
8637 (set_breakpoint): Create breakpoints according to their types.
8638 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8639 (set_gdb_breakpoint_1): Likewise.
8640 (set_gdb_breakpoint): Likewise.
8641 (clear_breakpoint_conditions): Change parameter type to
8642 'struct gdb_breakpoint *'.
8643 (clear_breakpoint_commands): Likewise.
8644 (clear_breakpoint_conditions_and_commands): Likewise.
8645 (add_condition_to_breakpoint): Likewise.
8646 (add_breakpoint_condition): Likewise.
8647 (add_commands_to_breakpoint): Likewise.
8648 (check_breakpoints): Check other_breakpoint.
8649 (clone_one_breakpoint): Clone breakpopint according to its type.
8650 * mem-break.h (struct gdb_breakpoint): Declare.
8651 (set_gdb_breakpoint): Update declaration.
8652 (clear_breakpoint_conditions_and_commands): Likewise.
8653 (add_breakpoint_condition): Likewise.
8654 (add_breakpoint_commands): Likewise.
8655 * server.c (process_point_options): Change parameter type to
8656 'struct gdb_breakpoint *'.
8657
811f8301
YQ
86582016-07-21 Yao Qi <yao.qi@linaro.org>
8659
8660 * mem-break.c (set_breakpoint_at): Rename it to ...
8661 (set_breakpoint_type_at): ... it.
8662 (set_breakpoint_at): Call set_breakpoint_type_at.
8663 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8664 * mem-break.h (set_breakpoint_at): Update comments.
8665
b1c51e36
CLT
86662016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8667
8668 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8669 to buf parameter.
8670 (nios2_store_gregset): Likewise.
8671
ced2dffb
PA
86722016-07-01 Pedro Alves <palves@redhat.com>
8673 Antoine Tremblay <antoine.tremblay@ericsson.com>
8674
8675 * linux-low.c: Change interface to take the target lwp_info
8676 pointer directly and return void. Handle detaching from a zombie
8677 thread.
8678 (linux_detach_lwp_callback): New function.
8679 (linux_detach): Detach from the leader thread after detaching from
8680 the clone threads.
8681
2ac09a5b
YQ
86822016-06-28 Yao Qi <yao.qi@linaro.org>
8683
8684 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8685 for variable new_offset.
8686 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8687 (aarch64_ftrace_insn_reloc_cb): Likewise.
8688 (aarch64_ftrace_insn_reloc_tb): Likewise.
8689 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8690 PRIx64 instead of PRIx32.
8691
79e7fd4f
YQ
86922016-06-28 Yao Qi <yao.qi@linaro.org>
8693
8694 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8695 (the_low_target): Install arm_get_syscall_trapinfo.
8696
061fc021
YQ
86972016-06-28 Yao Qi <yao.qi@linaro.org>
8698
8699 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8700 function.
8701 (the_low_target): Install aarch64_get_syscall_trapinfo.
8702
4cc32bec
YQ
87032016-06-28 Yao Qi <yao.qi@linaro.org>
8704
8705 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8706 Callers updated.
8707 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8708 Remove parameter sysno.
8709 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8710 sysret.
8711
782c1122
AA
87122016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8713
8714 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8715 (s390_emit_ne_goto): Likewise.
8716 (s390_emit_lt_goto): Likewise.
8717 (s390_emit_le_goto): Likewise.
8718 (s390_emit_gt_goto): Likewise.
8719 (s390_emit_ge_goto): Likewise.
8720 (s390x_emit_eq_goto): Likewise.
8721 (s390x_emit_ne_goto): Likewise.
8722 (s390x_emit_lt_goto): Likewise.
8723 (s390x_emit_le_goto): Likewise.
8724 (s390x_emit_gt_goto): Likewise.
8725 (s390x_emit_ge_goto): Likewise.
8726 (s390_emit_ops_impl): Mark variable static.
8727 (s390x_emit_ops): Likewise.
8728
2e7b624b
YQ
87292016-06-17 Yao Qi <yao.qi@linaro.org>
8730
8731 * linux-low.c (handle_extended_wait): Call
8732 uninsert_reinsert_breakpoints for the parent process. Remove
8733 reinsert breakpoints from the child process. Reinsert them to
8734 the parent process when vfork is done.
8735 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8736 (reinsert_reinsert_breakpoints): New function.
8737 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8738 (reinsert_reinsert_breakpoints): Declare.
8739
8a81c5d7
YQ
87402016-06-17 Yao Qi <yao.qi@linaro.org>
8741
8742 * linux-low.c (handle_extended_wait): If the parent is doing
8743 step-over, remove the reinsert breakpoints from the forked child.
8744
f50bf8e5
YQ
87452016-06-17 Yao Qi <yao.qi@linaro.org>
8746
8747 * linux-low.c (unsuspend_all_lwps): Declare.
8748 (linux_low_filter_event): If thread exited, call finish_step_over.
8749 If step-over is finished, unsuspend other threads.
8750
8376a3cb
YQ
87512016-06-17 Yao Qi <yao.qi@linaro.org>
8752
8753 * linux-low.c (linux_resume_one_lwp_throw): Assert
8754 has_reinsert_breakpoints returns false.
8755 * mem-break.c (delete_disabled_breakpoints): Assert
8756 bp type isn't reinsert_breakpoint.
8757
f79b145d
YQ
87582016-06-17 Yao Qi <yao.qi@linaro.org>
8759
8760 * linux-low.c (maybe_hw_step): New function.
8761 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8762 (finish_step_over): Switch current_thread to lwp temporarily,
8763 and assert has_reinsert_breakpoints returns true.
8764 (proceed_one_lwp): Call maybe_hw_step.
8765 * mem-break.c (has_reinsert_breakpoints): New function.
8766 * mem-break.h (has_reinsert_breakpoints): Declare.
8767
0ae534d2
JT
87682016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8769
8770 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8771
fcdad592
YQ
87722016-05-17 Yao Qi <yao.qi@linaro.org>
8773
8774 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8775 instead of find_inferior.
8776
9e784964
YQ
87772016-05-05 Yao Qi <yao.qi@linaro.org>
8778
8779 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8780 Initialize res to zero.
8781
cf2ebb6e
YQ
87822016-05-05 Yao Qi <yao.qi@linaro.org>
8783
8784 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8785 to uint32_t.
8786
c1aebf87
UW
87872016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8788
8789 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8790 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8791 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8792
35fd2deb 87932016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8794 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8795
8796 * tracepoint.c (write_inferior_int8): New function.
8797 (cmd_qtenable_disable): Write enable flag using
8798 write_inferior_int8.
8799
484b3c32
YQ
88002016-04-25 Yao Qi <yao.qi@linaro.org>
8801
8802 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8803 (need_step_over_p): Return zero if the LWP has pending signals
8804 can be delivered on software single step target.
8805
85ba7d86
YQ
88062016-04-25 Yao Qi <yao.qi@linaro.org>
8807
8808 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8809 return instead of error.
8810
3539aa13
YQ
88112016-04-22 Yao Qi <yao.qi@linaro.org>
8812
8813 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8814 to 23.
8815
5b061e98
YQ
88162016-04-22 Yao Qi <yao.qi@linaro.org>
8817
8818 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8819 signal when stepping over breakpoint with software single
8820 step.
8821
3451269c
PA
88222016-04-21 Pedro Alves <palves@redhat.com>
8823
8824 * linux-s390-low.c (s390_collect_ptrace_register)
8825 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8826 add casts.
8827 (s390_check_regset): Use void * instead of gdb_byte *.
8828
a2358508
PA
88292016-04-20 Pedro Alves <palves@redhat.com>
8830
8831 * configure: Renegerate.
8832
6885166d
YQ
88332016-04-20 Yao Qi <yao.qi@linaro.org>
8834
8835 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8836 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8837 number 16.
8838 (arm_store_gregset): Likewise.
8839
2b863f51
WT
88402016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8841
8842 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8843 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8844 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8845 (amd64-avx-mpx-linux.c): New rules.
8846 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8847 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8848 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8849 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8850 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8851 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8852 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8853 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8854 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8855 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8856 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8857 * linux-x86-low.c (x86_linux_read_description): Add case for
8858 X86_XSTATE_AVX_MPX_MASK.
8859 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8860 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8861 init_registers_i386_avx_mpx_linux.
8862 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8863 (initialize_low_tracepoint): Call
8864 init_registers_i386_avx_mpx_linux.
8865 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8866 (initialize_low_tracepoint): Call
8867 init_registers_amd64_avx_mpx_linux.
8868 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8869 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8870 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8871 declarations.
8872
9b30624b
PA
88732016-04-18 Pedro Alves <palves@redhat.com>
8874
8875 * configure: Regenerate.
8876
45e3745e
AT
88772016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8878
8879 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8880 (aarch64_emit_sub): Likewise.
8881
2afc13ff
PA
88822016-04-12 Pedro Alves <palves@redhat.com>
8883
8884 * utils.c (prepare_to_throw_exception): Delete.
8885
6e774b13
SM
88862016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8887
8888 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8889
4dca19f8
MK
88902016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8891
8892 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8893
d0a9981f
MK
88942016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8895
8896 * linux-aarch64-ipa.c: Add <elf.h> include.
8897 * linux-ppc-ipa.c: Add <elf.h> include.
8898 * linux-s390-ipa.c: Add <elf.h> include.
8899
252db07e
MK
89002016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8901
8902 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8903 (get_raw_reg_ptr): Likewise.
8904 (get_trace_state_variable_value_ptr): Likewise.
8905 (set_trace_state_variable_value_ptr): Likewise.
8906 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8907 char *.
8908
14e2b6d9
MK
89092016-03-31 Wei-cheng Wang <cole945@gmail.com>
8910 Marcin Kościelnicki <koriakin@0x04.net>
8911
8912 PR/17221
8913 * linux-ppc-low.c (emit_insns): New function.
8914 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8915 (ppc_emit_prologue): New function.
8916 (ppc_emit_epilogue): New function.
8917 (ppc_emit_add): New function.
8918 (ppc_emit_sub): New function.
8919 (ppc_emit_mul): New function.
8920 (ppc_emit_lsh): New function.
8921 (ppc_emit_rsh_signed): New function.
8922 (ppc_emit_rsh_unsigned): New function.
8923 (ppc_emit_ext): New function.
8924 (ppc_emit_zero_ext): New function.
8925 (ppc_emit_log_not): New function.
8926 (ppc_emit_bit_and): New function.
8927 (ppc_emit_bit_or): New function.
8928 (ppc_emit_bit_xor): New function.
8929 (ppc_emit_bit_not): New function.
8930 (ppc_emit_equal): New function.
8931 (ppc_emit_less_signed): New function.
8932 (ppc_emit_less_unsigned): New function.
8933 (ppc_emit_ref): New function.
8934 (ppc_emit_const): New function.
8935 (ppc_emit_reg): New function.
8936 (ppc_emit_pop): New function.
8937 (ppc_emit_stack_flush): New function.
8938 (ppc_emit_swap): New function.
8939 (ppc_emit_stack_adjust): New function.
8940 (ppc_emit_call): New function.
8941 (ppc_emit_int_call_1): New function.
8942 (ppc_emit_void_call_2): New function.
8943 (ppc_emit_if_goto): New function.
8944 (ppc_emit_goto): New function.
8945 (ppc_emit_eq_goto): New function.
8946 (ppc_emit_ne_goto): New function.
8947 (ppc_emit_lt_goto): New function.
8948 (ppc_emit_le_goto): New function.
8949 (ppc_emit_gt_goto): New function.
8950 (ppc_emit_ge_goto): New function.
8951 (ppc_write_goto_address): New function.
8952 (ppc_emit_ops_impl): New static variable.
8953 (ppc64v1_emit_prologue): New function.
8954 (ppc64v2_emit_prologue): New function.
8955 (ppc64_emit_epilogue): New function.
8956 (ppc64_emit_add): New function.
8957 (ppc64_emit_sub): New function.
8958 (ppc64_emit_mul): New function.
8959 (ppc64_emit_lsh): New function.
8960 (ppc64_emit_rsh_signed): New function.
8961 (ppc64_emit_rsh_unsigned): New function.
8962 (ppc64_emit_ext): New function.
8963 (ppc64_emit_zero_ext): New function.
8964 (ppc64_emit_log_not): New function.
8965 (ppc64_emit_bit_and): New function.
8966 (ppc64_emit_bit_or): New function.
8967 (ppc64_emit_bit_xor): New function.
8968 (ppc64_emit_bit_not): New function.
8969 (ppc64_emit_equal): New function.
8970 (ppc64_emit_less_signed): New function.
8971 (ppc64_emit_less_unsigned): New function.
8972 (ppc64_emit_ref): New function.
8973 (ppc64_emit_const): New function.
8974 (ppc64v1_emit_reg): New function.
8975 (ppc64v2_emit_reg): New function.
8976 (ppc64_emit_pop): New function.
8977 (ppc64_emit_stack_flush): New function.
8978 (ppc64_emit_swap): New function.
8979 (ppc64v1_emit_call): New function.
8980 (ppc64v2_emit_call): New function.
8981 (ppc64v1_emit_int_call_1): New function.
8982 (ppc64v2_emit_int_call_1): New function.
8983 (ppc64v1_emit_void_call_2): New function.
8984 (ppc64v2_emit_void_call_2): New function.
8985 (ppc64_emit_if_goto): New function.
8986 (ppc64_emit_eq_goto): New function.
8987 (ppc64_emit_ne_goto): New function.
8988 (ppc64_emit_lt_goto): New function.
8989 (ppc64_emit_le_goto): New function.
8990 (ppc64_emit_gt_goto): New function.
8991 (ppc64_emit_ge_goto): New function.
8992 (ppc64v1_emit_ops_impl): New static variable.
8993 (ppc64v2_emit_ops_impl): New static variable.
8994 (ppc_emit_ops): New function.
8995 (linux_low_target): Wire in ppc_emit_ops.
8996
a2174ba4
MK
89972016-03-31 Wei-cheng Wang <cole945@gmail.com>
8998 Marcin Kościelnicki <koriakin@0x04.net>
8999
9000 PR/17221
9001 * Makefile.in: Add powerpc-*-ipa.o
9002 * configure.srv: Add ipa_obj for powerpc*-linux.
9003 * linux-ppc-ipa.c: New file.
9004 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
9005 includes.
9006 (PPC_FIELD): New macro.
9007 (PPC_SEXT): New macro.
9008 (PPC_OP6): New macro.
9009 (PPC_BO): New macro.
9010 (PPC_LI): New macro.
9011 (PPC_BD): New macro.
9012 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
9013 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
9014 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
9015 (ppc_get_thread_area): New function.
9016 (is_elfv2_inferior): New function.
9017 (gen_ds_form): New function.
9018 (GEN_STD): New macro.
9019 (GEN_STDU): New macro.
9020 (GEN_LD): New macro.
9021 (GEN_LDU): New macro.
9022 (gen_d_form): New function.
9023 (GEN_ADDI): New macro.
9024 (GEN_ADDIS): New macro.
9025 (GEN_LI): New macro.
9026 (GEN_LIS): New macro.
9027 (GEN_ORI): New macro.
9028 (GEN_ORIS): New macro.
9029 (GEN_LWZ): New macro.
9030 (GEN_STW): New macro.
9031 (GEN_STWU): New macro.
9032 (gen_xfx_form): New function.
9033 (GEN_MFSPR): New macro.
9034 (GEN_MTSPR): New macro.
9035 (GEN_MFCR): New macro.
9036 (GEN_MTCR): New macro.
9037 (GEN_SYNC): New macro.
9038 (GEN_LWSYNC): New macro.
9039 (gen_x_form): New function.
9040 (GEN_OR): New macro.
9041 (GEN_MR): New macro.
9042 (GEN_LWARX): New macro.
9043 (GEN_STWCX): New macro.
9044 (GEN_CMPW): New macro.
9045 (gen_md_form): New function.
9046 (GEN_RLDICL): New macro.
9047 (GEN_RLDICR): New macro.
9048 (gen_i_form): New function.
9049 (GEN_B): New macro.
9050 (GEN_BL): New macro.
9051 (gen_b_form): New function.
9052 (GEN_BNE): New macro.
9053 (GEN_LOAD): New macro.
9054 (GEN_STORE): New macro.
9055 (gen_limm): New function.
9056 (gen_atomic_xchg): New function.
9057 (gen_call): New function.
9058 (ppc_relocate_instruction): New function.
9059 (ppc_install_fast_tracepoint_jump_pad): New function.
9060 (ppc_get_min_fast_tracepoint_insn_len): New function.
9061 (ppc_get_ipa_tdesc_idx): New function.
9062 (the_low_target): Wire in the new functions.
9063 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9064 tdescs.
9065 * linux-ppc-tdesc.h: New file.
9066
a13c4696
MK
90672016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9068
9069 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9070 (alloc_jump_pad_buffer): New function.
9071 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9072 (alloc_jump_pad_buffer): New function.
9073 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9074 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9075 (alloc_jump_pad_buffer): New function.
9076 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9077 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9078 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9079 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9080
1cda1512
MK
90812016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9082
9083 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9084 * linux-amd64-ipa.c: Likewise.
9085 * linux-i386-ipa.c: Likewise.
9086 * linux-s390-ipa.c: Likewise.
9087 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9088 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9089 set_trace_state_variable_value_ptr.
9090 (struct ipa_sym_addresses): Likewise.
9091 (symbol_list): Likewise.
9092 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9093 accessing gdb_collect directly.
9094 (gdb_collect_ptr_type): New typedef.
9095 (get_raw_reg_ptr_type): New typedef.
9096 (get_trace_state_variable_value_ptr_type): New typedef.
9097 (set_trace_state_variable_value_ptr_type): New typedef.
9098 (gdb_collect_ptr): New global.
9099 (get_raw_reg_ptr): New global.
9100 (get_trace_state_variable_value_ptr): New global.
9101 (set_trace_state_variable_value_ptr): New global.
9102 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9103 accessing get_raw_reg directly.
9104 (get_get_tsv_func_addr): Likewise for
9105 get_trace_state_variable_value_ptr.
9106 (get_set_tsv_func_addr): Likewise for
9107 set_trace_state_variable_value_ptr.
9108 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9109
72fb5488
SM
91102016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9111
9112 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9113
28170b88
MK
91142016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9115
9116 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9117 packets.
9118 (relocate_instruction): Remove own_buf.
9119 * server.c (own_buf): Make global.
9120 (handle_v_requests): Make global.
9121 * server.h (own_buf): New declaration.
9122 (handle_v_requests): New prototype.
9123
f39e8743
MK
91242016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9125
9126 PR 18377
9127 * linux-s390-low.c (add_insns): New function.
9128 (s390_emit_prologue): New function.
9129 (s390_emit_epilogue): New function.
9130 (s390_emit_add): New function.
9131 (s390_emit_sub): New function.
9132 (s390_emit_mul): New function.
9133 (s390_emit_lsh): New function.
9134 (s390_emit_rsh_signed): New function.
9135 (s390_emit_rsh_unsigned): New function.
9136 (s390_emit_ext): New function.
9137 (s390_emit_log_not): New function.
9138 (s390_emit_bit_and): New function.
9139 (s390_emit_bit_or): New function.
9140 (s390_emit_bit_xor): New function.
9141 (s390_emit_bit_not): New function.
9142 (s390_emit_equal): New function.
9143 (s390_emit_less_signed): New function.
9144 (s390_emit_less_unsigned): New function.
9145 (s390_emit_ref): New function.
9146 (s390_emit_if_goto): New function.
9147 (s390_emit_goto): New function.
9148 (s390_write_goto_address): New function.
9149 (s390_emit_litpool): New function.
9150 (s390_emit_const): New function.
9151 (s390_emit_call): New function.
9152 (s390_emit_reg): New function.
9153 (s390_emit_pop): New function.
9154 (s390_emit_stack_flush): New function.
9155 (s390_emit_zero_ext): New function.
9156 (s390_emit_swap): New function.
9157 (s390_emit_stack_adjust): New function.
9158 (s390_emit_set_r2): New function.
9159 (s390_emit_int_call_1): New function.
9160 (s390_emit_void_call_2): New function.
9161 (s390_emit_eq_goto): New function.
9162 (s390_emit_ne_goto): New function.
9163 (s390_emit_lt_goto): New function.
9164 (s390_emit_le_goto): New function.
9165 (s390_emit_gt_goto): New function.
9166 (s390_emit_ge_goto): New function.
9167 (s390x_emit_prologue): New function.
9168 (s390x_emit_epilogue): New function.
9169 (s390x_emit_add): New function.
9170 (s390x_emit_sub): New function.
9171 (s390x_emit_mul): New function.
9172 (s390x_emit_lsh): New function.
9173 (s390x_emit_rsh_signed): New function.
9174 (s390x_emit_rsh_unsigned): New function.
9175 (s390x_emit_ext): New function.
9176 (s390x_emit_log_not): New function.
9177 (s390x_emit_bit_and): New function.
9178 (s390x_emit_bit_or): New function.
9179 (s390x_emit_bit_xor): New function.
9180 (s390x_emit_bit_not): New function.
9181 (s390x_emit_equal): New function.
9182 (s390x_emit_less_signed): New function.
9183 (s390x_emit_less_unsigned): New function.
9184 (s390x_emit_ref): New function.
9185 (s390x_emit_if_goto): New function.
9186 (s390x_emit_const): New function.
9187 (s390x_emit_call): New function.
9188 (s390x_emit_reg): New function.
9189 (s390x_emit_pop): New function.
9190 (s390x_emit_stack_flush): New function.
9191 (s390x_emit_zero_ext): New function.
9192 (s390x_emit_swap): New function.
9193 (s390x_emit_stack_adjust): New function.
9194 (s390x_emit_int_call_1): New function.
9195 (s390x_emit_void_call_2): New function.
9196 (s390x_emit_eq_goto): New function.
9197 (s390x_emit_ne_goto): New function.
9198 (s390x_emit_lt_goto): New function.
9199 (s390x_emit_le_goto): New function.
9200 (s390x_emit_gt_goto): New function.
9201 (s390x_emit_ge_goto): New function.
9202 (s390_emit_ops): New function.
9203 (struct linux_target_ops): Fill in emit_ops hook.
9204
abd9baf9
MK
92052016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9206
9207 PR 18377
9208 * Makefile.in: Add s390 IPA files.
9209 * configure.srv: Build IPA for s390.
9210 * linux-s390-ipa.c: New file.
9211 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9212 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9213 (tdesc_s390_linux32): Likewise.
9214 (init_registers_s390_linux32v1): Likewise.
9215 (tdesc_s390_linux32v1): Likewise.
9216 (init_registers_s390_linux32v2): Likewise.
9217 (tdesc_s390_linux32v2): Likewise.
9218 (init_registers_s390_linux64): Likewise.
9219 (tdesc_s390_linux64): Likewise.
9220 (init_registers_s390_linux64v1): Likewise.
9221 (tdesc_s390_linux64v1): Likewise.
9222 (init_registers_s390_linux64v2): Likewise.
9223 (tdesc_s390_linux64v2): Likewise.
9224 (init_registers_s390_te_linux64): Likewise.
9225 (tdesc_s390_te_linux64): Likewise.
9226 (init_registers_s390_vx_linux64): Likewise.
9227 (tdesc_s390_vx_linux64): Likewise.
9228 (init_registers_s390_tevx_linux64): Likewise.
9229 (tdesc_s390_tevx_linux64): Likewise.
9230 (init_registers_s390x_linux64): Likewise.
9231 (tdesc_s390x_linux64): Likewise.
9232 (init_registers_s390x_linux64v1): Likewise.
9233 (tdesc_s390x_linux64v1): Likewise.
9234 (init_registers_s390x_linux64v2): Likewise.
9235 (tdesc_s390x_linux64v2): Likewise.
9236 (init_registers_s390x_te_linux64): Likewise.
9237 (tdesc_s390x_te_linux64): Likewise.
9238 (init_registers_s390x_vx_linux64): Likewise.
9239 (tdesc_s390x_vx_linux64): Likewise.
9240 (init_registers_s390x_tevx_linux64): Likewise.
9241 (tdesc_s390x_tevx_linux64): Likewise.
9242 (have_hwcap_s390_vx): New static variable.
9243 (s390_arch_setup): Fill have_hwcap_s390_vx.
9244 (s390_get_thread_area): New function.
9245 (s390_ft_entry_gpr_esa): New const.
9246 (s390_ft_entry_gpr_zarch): New const.
9247 (s390_ft_entry_misc): New const.
9248 (s390_ft_entry_fr): New const.
9249 (s390_ft_entry_vr): New const.
9250 (s390_ft_main_31): New const.
9251 (s390_ft_main_64): New const.
9252 (s390_ft_exit_fr): New const.
9253 (s390_ft_exit_vr): New const.
9254 (s390_ft_exit_misc): New const.
9255 (s390_ft_exit_gpr_esa): New const.
9256 (s390_ft_exit_gpr_zarch): New const.
9257 (append_insns): New function.
9258 (s390_relocate_instruction): New function.
9259 (s390_install_fast_tracepoint_jump_pad): New function.
9260 (s390_get_min_fast_tracepoint_insn_len): New function.
9261 (s390_get_ipa_tdesc_idx): New function.
9262 (struct linux_target_ops): Wire in the above functions.
9263 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9264 * linux-s390-tdesc.h: New file.
9265
a4105d04
MK
92662016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9267
9268 * linux-s390-low.c (s390_supports_tracepoints): New function.
9269 (struct linux_target_ops): Fill supports_tracepoints hook.
9270
35ac8b3e
YQ
92712016-03-18 Yao Qi <yao.qi@linaro.org>
9272
9273 * linux-low.c (lwp_signal_can_be_delivered): New function.
9274 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9275
94610ec4
YQ
92762016-03-18 Yao Qi <yao.qi@linaro.org>
9277
9278 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9279 0 if signal is enqueued. Remove 'signal' from one debugging
9280 message. Move one debugging message to some lines below.
9281 Remove code setting 'signal' to 0.
9282
80aea927
YQ
92832016-03-18 Yao Qi <yao.qi@linaro.org>
9284
9285 * linux-low.c (linux_low_filter_event): Remove redundant
9286 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9287
b04fd3be
MK
92882016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9289
9290 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9291 (struct linux_target_ops): Wire in the above.
9292
c40c8d4b
YQ
92932016-03-03 Yao Qi <yao.qi@linaro.org>
9294
9295 * linux-low.c: Update comments to start_step_over.
9296
0f8288ae
YQ
92972016-03-03 Yao Qi <yao.qi@linaro.org>
9298
9299 PR server/19736
9300 * linux-low.c (handle_extended_wait): Set child suspended
9301 if event_lwp->bp_reinsert isn't zero.
9302
fdbd04a8
YQ
93032016-03-02 Yao Qi <yao.qi@linaro.org>
9304
9305 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9306 enqueue_pending_signal.
9307
6896a8fa
MK
93082016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9309
9310 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9311 is actually loaded.
9312
ab503087
MK
93132016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9314
9315 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9316 (s390_regmap_3264) [!__s390x__]: New global.
9317 (s390_collect_ptrace_register): Skip map entries containing -1.
9318 (s390_supply_ptrace_register): Ditto.
9319 (s390_fill_gprs_high): New function.
9320 (s390_store_gprs_high): New function.
9321 (s390_regsets): Add NT_S390_HIGH_GPRS.
9322 (s390_get_hwcap): Enable on 31-bit.
9323 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9324 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9325 Detect NT_S390_HIGH_GPRS.
9326 (s390_usrregs_info_3264): Enable on 31-bit.
9327 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9328 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9329
ae91f625
MK
93302016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9331
9332 PR gdb/13808
9333 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9334 * configure.srv: Ditto.
9335 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9336 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9337 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9338 (init_registers_amd64_linux): Remove prototype.
9339 (tdesc_amd64_linux): Remove declaration.
9340 (get_ipa_tdesc): New function.
9341 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9342 initialize remaining tdescs.
9343 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9344 (init_registers_i386_linux): Remove prototype.
9345 (tdesc_i386_linux): Remove declaration.
9346 (get_ipa_tdesc): New function.
9347 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9348 initialize remaining tdescs.
9349 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9350 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9351 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9352 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9353 (x86_get_ipa_tdesc_idx): New function.
9354 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9355 * linux-x86-tdesc.h: New file.
9356 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9357 (target_get_ipa_tdesc_idx): New macro.
9358 * tracepoint.c (ipa_tdesc_idx): New macro.
9359 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9360 (symbol_list): Add ipa_tdesc_idx.
9361 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9362 (ipa_tdesc): Remove.
9363 (ipa_tdesc_idx): New variable.
9364 (get_context_regcache): Use get_ipa_tdesc.
9365 (gdb_collect): Ditto.
9366 (gdb_probe): Ditto.
9367 * tracepoint.h (get_ipa_tdesc): New prototype.
9368 (ipa_tdesc): Remove.
9369
e7ad2f14
PA
93702016-02-24 Pedro Alves <palves@redhat.com>
9371
9372 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9373 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9374 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9375 Factor out common code between the USE_SIGTRAP_SIGINFO and
9376 !USE_SIGTRAP_SIGINFO blocks.
9377 (linux_low_filter_event): Call save_stop_reason instead of
9378 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9379 Update comments.
9380 (linux_wait_1): Update comments.
9381
657f9cde
WW
93822016-02-24 Wei-cheng Wang <cole945@gmail.com>
9383
9384 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9385 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9386 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9387 ppc_insert_point, ppc_remove_point.
9388
b00b61e1
MK
93892016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9390
9391 * linux-s390-low.c (s390_supports_z_point_type): New function.
9392 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9393
553cb527
YQ
93942016-02-16 Yao Qi <yao.qi@linaro.org>
9395
9396 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9397 PC. Get pc from regcache_read_pc.
9398
a5652c21
YQ
93992016-02-12 Yao Qi <yao.qi@linaro.org>
9400
9401 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9402 or linux_get_pc_32bit.
9403 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9404
ed443b61
YQ
94052016-02-12 Yao Qi <yao.qi@linaro.org>
9406
9407 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9408 arm_linux_get_next_pcs_fixup.
9409
020ecd38
MK
94102016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9411
9412 * tracepoint.c (x_tracepoint_action_download): Change
9413 write_inferior_data_ptr to write_inferior_data_pointer.
9414 (cmd_qtstart): Likewise.
9415 (write_inferior_data_ptr): Remove.
9416 (download_agent_expr): Change write_inferior_data_ptr to
9417 write_inferior_data_pointer.
9418 (download_tracepoint_1): Likewise.
9419 (download_tracepoint): Likewise.
9420 (download_trace_state_variables): Likewise.
9421
7cae9051
WW
94222016-02-11 Wei-cheng Wang <cole945@gmail.com>
9423 Marcin Kościelnicki <koriakin@0x04.net>
9424
9425 * tracepoint.c (struct tracepoint_action_ops): Remove.
9426 (struct tracepoint_action): Remove ops.
9427 (m_tracepoint_action_download, r_tracepoint_action_download)
9428 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9429 size and offset accordingly.
9430 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9431 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9432 (tracepoint_action_send, tracepoint_action_download): New functions.
9433 Helpers for trace action handlers.
9434 (add_tracepoint_action): Remove setup actions ops.
9435 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9436
9f6a71b4
YQ
94372016-02-10 Yao Qi <yao.qi@linaro.org>
9438
9439 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9440
1e94266c
SM
94412016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9442
9443 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9444 to AC_OUTPUT.
9445 * configure: Regenerate.
9446
8adce034
SM
94472016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9448
9449 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9450 void * to gdb_byte *.
9451 * linux-low.c (siginfo_fixup): Likewise.
9452 (linux_xfer_siginfo): Likewise.
9453 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9454 Likewise.
9455 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9456
93813b37
WT
94572016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9458
9459 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9460 to srv_tgtobj.
9461 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9462 to srv_tgtobj.
9463 * linux-x86-low.c [__x86_64__]: Include
9464 "nat/amd64-linux-siginfo.h".
9465 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9466 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9467 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9468 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9469 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9470 (cpt_si_fd, si_timerid, si_overrun): Move from
9471 nat/amd64-linux-siginfo.c.
9472 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9473
8424cc97
SM
94742016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9475
9476 * server.c (skip_to_semicolon): Remove.
9477 (process_point_options): Use strchrnul instead of
9478 skip_to_semicolon.
9479
4d18591b
YQ
94802016-01-26 Yao Qi <yao.qi@linaro.org>
9481
9482 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9483 * linux-low.c (install_software_single_step_breakpoints): Don't
9484 call regcache_read_pc.
9485 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9486 argument pc.
9487
d8020970
YQ
94882016-01-26 Yao Qi <yao.qi@linaro.org>
9489
9490 * linux-low.c (install_software_single_step_breakpoints): Call
9491 regcache_read_pc instead of get_pc.
9492
8b207339
YQ
94932016-01-26 Yao Qi <yao.qi@linaro.org>
9494
9495 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9496 (unblock_async_io): Rename to ...
9497 (block_unblock_async_io): ... it. New function.
9498 (enable_async_io): Don't install SIGIO handler. Unblock it
9499 instead.
9500 (disable_async_io): Don't ignore SIGIO. Block it instead.
9501 (initialize_async_io): Install SIGIO handler. Don't call
9502 unblock_async_io.
9503
18879fef
YQ
95042016-01-26 Yao Qi <yao.qi@linaro.org>
9505
9506 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9507 first character is '\003', call *the_target->request_interrupt.
9508
a0f8e08a
YQ
95092016-01-25 Yao Qi <yao.qi@linaro.org>
9510
9511 * remote-utils.c (new_thread_notify): Remove.
9512 (dead_thread_notify): Likewise.
9513 * remote-utils.h (new_thread_notify): Remove declaration.
9514 (dead_thread_notify): Likewise.
9515
cc5fd9ab
MK
95162016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9517
9518 * gdb.trace/pending.exp: Fix expected message on continue.
9519
99e8eb11
MK
95202016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9521
9522 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9523 it works properly on big-endian machines where sizeof (CORE_ADDR)
9524 != sizeof (void *).
9525
a994041d
PA
95262016-01-21 Pedro Alves <palves@redhat.com>
9527
9528 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9529 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9530 * configure: Regenerate.
9531
f7a6a40d
YQ
95322016-01-21 Yao Qi <yao.qi@linaro.org>
9533
9534 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9535 is_thumb and set it according to CPSR saved on the stack.
9536 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9537 arm_sigreturn_next_pc.
9538
6f69e520
YQ
95392016-01-18 Yao Qi <yao.qi@linaro.org>
9540
9541 * linux-low.c (linux_set_pc_64bit): New function.
9542 (linux_get_pc_64bit): New function.
9543 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9544 Declare.
9545 * linux-sparc-low.c (debug_threads): Remove declaration.
9546 (sparc_get_pc): Remove.
9547 (the_low_target): Use linux_get_pc_64bit instead of
9548 sparc_get_pc.
9549 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9550 (the_low_target): Use linux_get_pc_64bit and
9551 linux_set_pc_64bit.
9552
276d4552
YQ
95532016-01-18 Yao Qi <yao.qi@linaro.org>
9554
9555 * linux-arm-low.c (debug_threads): Remove declaration.
9556 (arm_get_pc, arm_set_pc): Remove.
9557 (the_low_target): Use linux_get_pc_32bit and
9558 linux_set_pc_32bit.
9559 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9560 (the_low_target): Use linux_get_pc_32bit and
9561 linux_set_pc_32bit.
9562 * linux-cris-low.c (debug_threads): Remove declaration.
9563 (cris_get_pc, cris_set_pc,): Remove.
9564 (the_low_target): Use linux_get_pc_32bit and
9565 linux_set_pc_32bit.
9566 * linux-crisv32-low.c (debug_threads): Remove declaration.
9567 (cris_get_pc, cris_set_pc): Remove.
9568 (the_low_target): Use linux_get_pc_32bit and
9569 linux_set_pc_32bit.
9570 * linux-low.c: Include inttypes.h.
9571 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9572 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9573 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9574 (the_low_target): Use linux_get_pc_32bit and
9575 linux_set_pc_32bit.
9576 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9577 (the_low_target): Use linux_get_pc_32bit and
9578 linux_set_pc_32bit.
9579 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9580 (the_low_target): Use linux_get_pc_32bit and
9581 linux_set_pc_32bit.
9582 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9583 (the_low_target): Use linux_get_pc_32bit and
9584 linux_set_pc_32bit.
9585 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9586 (the_low_target): Use linux_get_pc_32bit and
9587 linux_set_pc_32bit.
9588
eb0edac8
GB
95892016-01-18 Gary Benson <gbenson@redhat.com>
9590
9591 * configure.ac (AC_FUNC_FORK): New check.
9592 * config.in: Regenerate.
9593 * configure: Likewise.
9594
1b451dda
YQ
95952016-01-14 Yao Qi <yao.qi@linaro.org>
9596
9597 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9598 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9599 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9600 arm_get_next_pcs_ctor.
9601
82075af2
JS
96022016-01-12 Josh Stone <jistone@redhat.com>
9603 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9604
9605 * inferiors.h: Include "gdb_vecs.h".
9606 (struct process_info): Add syscalls_to_catch.
9607 * inferiors.c (remove_process): Free syscalls_to_catch.
9608 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9609 syscall_return stops.
9610 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9611 * server.c (handle_general_set): Handle QCatchSyscalls.
9612 (handle_query): Report support for QCatchSyscalls.
9613 * target.h (struct target_ops): Add supports_catch_syscall.
9614 (target_supports_catch_syscall): New macro.
9615 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9616 (struct lwp_info): Add syscall_state.
9617 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9618 Maintain syscall_state and syscalls_to_catch across exec.
9619 (get_syscall_trapinfo): New function, proxy to the_low_target.
9620 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9621 (linux_low_filter_event): Toggle syscall_state entry/return for
9622 syscall traps, and set it ignored for all others.
9623 (gdb_catching_syscalls_p): New function.
9624 (gdb_catch_this_syscall_p): New function.
9625 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9626 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9627 (linux_supports_catch_syscall): New function.
9628 (linux_target_ops): Install it.
9629 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9630 (the_low_target): Install it.
9631
8f13a3ce
MF
96322016-01-12 Mike Frysinger <vapier@gentoo.org>
9633
9634 * acinclude.m4: Include new ../warning.m4 file.
9635 * configure: Regenerated.
9636 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9637
5b3da067
MF
96382016-01-12 Mike Frysinger <vapier@gentoo.org>
9639
9640 * ax.c (is_goto_target): Mark static.
9641 * linux-low.c (register_addr): Likewise.
9642 (linux_fetch_registers, linux_store_registers): Likewise.
9643 * mem-break.c (any_persistent_commands): Fix old prototype.
9644 (add_commands_to_breakpoint): Mark static.
9645 * regcache.c (find_register_by_name): Delete unused func.
9646 * remote-utils.c (hex_or_minus_one): Mark static.
9647 * server.c (monitor_show_help): Mark static.
9648 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9649 handle_v_requests): Likewise.
9650
bc504a31
PA
96512016-01-12 Pedro Alves <palves@redhat.com>
9652
9653 Remove use of the registered trademark symbol throughout.
9654
5a0dd67a
YQ
96552016-01-08 Yao Qi <yao.qi@linaro.org>
9656
9657 * remote-utils.c (getpkt): If c is '\003', call target hook
9658 request_interrupt.
9659
b2ca446f
YQ
96602016-01-06 Yao Qi <yao.qi@linaro.org>
9661
9662 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9663 linux-aarch32-low.c.
9664 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9665 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9666 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9667 (thumb2_breakpoint): Declare.
9668 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9669 linux-aarch32-low.h.
9670 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9671 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9672 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9673
edd88788
JB
96742016-01-01 Joel Brobecker <brobecker@adacore.com>
9675
9676 * gdbreplay.c (gdbreplay_version): Change copyright year in
9677 version message.
9678 * server.c (gdbserver_version): Likewise.
9679
65da7f14
PP
96802015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9681
9682 * server.c (crc32_table): Delete.
9683 (crc32): Use libiberty's xcrc32 function.
9684
4abd5ed2
JB
96852015-12-22 Joel Brobecker <brobecker@adacore.com>
9686
9687 * lynx-low.c (lynx_delete_thread_callback): New function.
9688 (lynx_mourn): Properly delete our process and all of its
9689 threads. Remove call to clear_inferiors.
9690
0e50fe5c
JB
96912015-12-22 Joel Brobecker <brobecker@adacore.com>
9692
9693 * target.c (thread_search_callback): Add check that
9694 the thread_stopped target callback is not NULL before
9695 calling it.
9696
35adc03f
YQ
96972015-12-21 Yao Qi <yao.qi@linaro.org>
9698
9699 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9700 arm breakpoint.
9701
bd2b2909
AT
97022015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9703
9704 * server.c (handle_query): Call target_supports_software_single_step.
9705
7fe5e27e
AT
97062015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9707
9708 * linux-low.c (single_step): New function.
9709 (linux_resume_one_lwp_throw): Call single_step.
9710 (start_step_over): Likewise.
9711
d9311bfa
AT
97122015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9713
9714 * Makefile.in (SFILES): Append arch/arm-linux.c,
9715 arch/arm-get-next-pcs.c.
9716 (arm-linux.o): New rule.
9717 (arm-get-next-pcs.o): New rule.
9718 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9719 arm-linux.o.
9720 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9721 to linux-aarch32-low.c.
9722 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9723 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9724 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9725 (thumb2_breakpoint_len): Likewise.
9726 (arm_is_thumb_mode): Make non-static.
9727 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9728 from linux-aarch32-low.c.
9729 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9730 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9731 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9732 (thumb2_breakpoint_len): Likewise.
9733 (arm_is_thumb_mode): New declaration.
9734 * linux-arm-low.c: Include arch/arm-linux.h
9735 aarch/arm-get-next-pcs.h, sys/syscall.h.
9736 (get_next_pcs_ops): New struct.
9737 (get_next_pcs_addr_bits_remove): New function.
9738 (get_next_pcs_is_thumb): New function.
9739 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9740 (arm_sigreturn_next_pc): Likewise.
9741 (get_next_pcs_syscall_next_pc): Likewise.
9742 (arm_gdbserver_get_next_pcs): Likewise.
9743 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9744 Initialize.
9745 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9746 * server.h: Include gdb_vecs.h.
9747
68ce2059
AT
97482015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9749
9750 * Makefile.in (SFILES): Append common/common-regcache.c.
9751 (OBS): Append common-regcache.o.
9752 (common-regcache.o): New rule.
9753 * regcache.c (init_register_cache): Initialize cache to
9754 REG_UNAVAILABLE.
9755 (regcache_raw_read_unsigned): New function.
9756 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9757 register_status enum.
9758
fa5308bd
AT
97592015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9760
9761 * linux-aarch64-low.c (the_low_targets): Rename
9762 breakpoint_reinsert_addr to get_next_pcs.
9763 * linux-arm-low.c (the_low_targets): Likewise.
9764 * linux-bfin-low.c (the_low_targets): Likewise.
9765 * linux-cris-low.c (the_low_targets): Likewise.
9766 * linux-crisv32-low.c (the_low_targets): Likewise.
9767 * linux-low.c (can_software_single_step): Likewise.
9768 (install_software_single_step_breakpoints): New function.
9769 (start_step_over): Use install_software_single_step_breakpoints.
9770 * linux-low.h: New CORE_ADDR vector.
9771 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9772 get_next_pcs.
9773 * linux-mips-low.c (the_low_targets): Likewise.
9774 * linux-nios2-low.c (the_low_targets): Likewise.
9775 * linux-sparc-low.c (the_low_targets): Likewise.
9776
4a6ed09b
PA
97772015-12-17 Pedro Alves <palves@redhat.com>
9778
9779 * linux-low.c (linux_kill_one_lwp): Remove references to
9780 LinuxThreads.
9781 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9782 to 'kill'.
9783 (linux_init_signals): Delete.
9784 (initialize_low): Adjust.
9785 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9786
7544db95
PA
97872015-12-16 Pedro Alves <palves@redhat.com>
9788
9789 * configure.ac (compiler warning flags): When testing a
9790 -Wno-foo option, check whether -Wfoo works instead.
9791 * configure: Regenerate.
9792
8020350c
DB
97932015-12-11 Don Breazeal <donb@codesourcery.com>
9794
9795 * server.c (process_serial_event): Don't exit from gdbserver
9796 in remote mode if there are still active inferiors.
9797
db91f502
YQ
97982015-12-11 Yao Qi <yao.qi@linaro.org>
9799
9800 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9801 arm_breakpoint_at if the process is 32-bit.
9802
b37a6290
YQ
98032015-12-11 Yao Qi <yao.qi@linaro.org>
9804
9805 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9806 arm breakpoint.
9807
17b1509a
YQ
98082015-12-07 Yao Qi <yao.qi@linaro.org>
9809
9810 * configure.srv: Append arm.o to srv_tgtobj for
9811 aarch64*-*-linux* target.
9812 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9813 from linux-arm-low.c.
9814 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9815 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9816 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9817 (thumb2_breakpoint_len): Likewise.
9818 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9819 (arm_breakpoint_kinds): Likewise.
9820 (arm_breakpoint_kind_from_pc): Likewise.
9821 (arm_sw_breakpoint_from_kind): Likewise.
9822 (arm_breakpoint_kind_from_current_state): Likewise.
9823 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9824 (arm_sw_breakpoint_from_kind): Declare.
9825 (arm_breakpoint_kind_from_current_state): Declare.
9826 (arm_breakpoint_at): Declare.
9827 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9828 arm_sw_breakpoint_from_kind if process is 32-bit.
9829 (aarch64_breakpoint_kind_from_pc): New function.
9830 (aarch64_breakpoint_kind_from_current_state): New function.
9831 (the_low_target): Initialize fields breakpoint_kind_from_pc
9832 and breakpoint_kind_from_current_state.
9833 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9834 linux-aarch32-low.c.
9835 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9836 (arm_breakpoint, arm_breakpoint_len): Likewise.
9837 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9838 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9839 (arm_is_thumb_mode): Likewise.
9840 (arm_breakpoint_at): Likewise.
9841 (arm_breakpoint_kind_from_pc): Likewise.
9842 (arm_sw_breakpoint_from_kind): Likewise.
9843 (arm_breakpoint_kind_from_current_state): Likewise.
9844
9845 Revert:
9846 2015-08-04 Yao Qi <yao.qi@linaro.org>
9847
9848 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9849 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9850 * server.c (extended_protocol): Remove "static".
9851 * server.h (extended_protocol): Declare it.
9852
ece66d65
JS
98532015-12-04 Josh Stone <jistone@redhat.com>
9854
9855 * target.h (struct target_ops) <arch_setup>: Rename to ...
9856 (struct target_ops) <post_create_inferior>: ... this.
9857 (target_arch_setup): Rename to ...
9858 (target_post_create_inferior): ... this, calling post_create_inferior.
9859 * server.c (start_inferior): Update target_arch_setup calls to
9860 target_post_create_inferior.
9861 * linux-low.c (linux_low_ptrace_options): Forward declare.
9862 (linux_arch_setup): Update its comment for general use.
9863 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9864 (struct linux_target_ops): Use linux_post_create_inferior.
9865 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9866 to post_create_inferior.
9867 * nto-low.c (struct nto_target_ops): Likewise.
9868 * spu-low.c (struct spu_target_ops): Likewise.
9869 * win32-low.c (struct win32_target_ops): Likewise.
9870
e58c48b4
AT
98712015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9872
9873 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9874
fbec8956
AT
98752015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9876
9877 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9878 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9879 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9880 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9881 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9882 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9883 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9884 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9885 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9886 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9887 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9888 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9889
9b4c5f87
AT
98902015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9891
9892 * linux-low.c (linux_look_up_symbols): Don't call
9893 linux_supports_traceclone.
9894 * linux-low.h (thread_db_init): Remove use_events argument.
9895 * thread-db.c (thread_db_use_event): Remove global variable.
9896 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9897 (struct thread_db) <td_create_bp>: Remove field.
9898 (thread_db_create_event): Remove function.
9899 (thread_db_enable_reporting): Likewise.
9900 (find_one_thread): Don't check for thread_db_use_events.
9901 (attach_thread): Likewise.
9902 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9903 (try_thread_db_load_1): Don't check for thread_db_use_events.
9904 (thread_db_init): Remove use_events argument and thread events
9905 handling.
9906 (remove_thread_event_breakpoints): Remove function.
9907 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9908
7d00775e
AT
99092015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9910
9911 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9912 New function.
9913 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9914 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9915 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9916 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9917 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9918 Initialize.
9919 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9920 New function.
9921 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9922 * linux-low.c (can_hardware_single_step): Use
9923 supports_hardware_single_step.
9924 (can_software_single_step): New function.
9925 (start_step_over): Call can_software_single_step.
9926 (linux_supports_hardware_single_step): New function.
9927 (struct target_ops) <supports_software_single_step>: Initialize.
9928 * linux-low.h (struct linux_target_ops)
9929 <supports_hardware_single_step>: Initialize.
9930 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9931 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9932 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9933 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9934 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9935 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9936 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9937 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9938 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9939 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9940 Initialize.
9941 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9942 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9943 Initialize.
9944 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9945 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9946 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9947 New function.
9948 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9949 * target.h (struct target_ops): <supports_software_single_step>:
9950 New field.
9951 (target_supports_software_single_step): New macro.
9952
2d97cd35
AT
99532015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9954
9955 * linux-low.c (linux_wait_1): Fix pc advance condition.
9956 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9957 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9958
769ef81f
AT
99592015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9960
9961 * linux-arm-low.c (arm_is_thumb_mode): New function.
9962 (arm_breakpoint_at): Use arm_is_thumb_mode.
9963 (arm_breakpoint_kind_from_current_state): New function.
9964 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9965 Initialize.
9966 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9967 (linux_breakpoint_kind_from_current_state): New function.
9968 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9969 * linux-low.h (struct linux_target_ops)
9970 <breakpoint_kind_from_current_state>: New field.
9971 * target.h (struct target_ops): Likewise.
9972 (target_breakpoint_kind_from_current_state): New macro.
9973
1bebeeca
PA
99742015-11-30 Pedro Alves <palves@redhat.com>
9975
9976 * linux-low.c (linux_resume): Wake up the event loop before
9977 returning.
9978
a67a9fae
PA
99792015-11-30 Pedro Alves <palves@redhat.com>
9980
9981 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9982 check.
9983 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9984 to -1.
9985 * target.c (struct thread_search): New structure.
9986 (thread_search_callback): New function.
9987 (prev_general_thread): New global.
9988 (prepare_to_access_memory, done_accessing_memory): New functions.
9989 * target.h (prepare_to_access_memory, done_accessing_memory):
9990 Replace macros with function declarations.
9991
f2faf941
PA
99922015-11-30 Pedro Alves <palves@redhat.com>
9993
9994 PR 14618
9995 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9996 report TARGET_WAITKIND_NO_RESUMED.
9997 * remote-utils.c (prepare_resume_reply): Handle
9998 TARGET_WAITKIND_NO_RESUMED.
9999 * server.c (report_no_resumed): New global.
10000 (handle_query) <qSupported>: Handle "no-resumed+". Report
10001 "no-resumed+" support.
10002 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
10003 return error if the client doesn't support no-resumed events.
10004 (push_stop_notification): New function.
10005 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
10006 events if the client supports them.
10007
a681f9c9
PA
100082015-11-30 Pedro Alves <palves@redhat.com>
10009
10010 * linux-low.c (thread_still_has_status_pending_p): Don't check
10011 vCont;t here.
10012 (lwp_resumed): New function.
10013 (status_pending_p_callback): Return early if the LWP is not
10014 supposed to be resumed.
10015
65706a29
PA
100162015-11-30 Pedro Alves <palves@redhat.com>
10017
10018 * linux-low.c (handle_extended_wait): Assert that the LWP's
10019 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
10020 thread create events, leave the new child's status pending.
10021 (linux_low_filter_event): If GDB wants to hear about thread exit
10022 events, leave the LWP marked dead and don't delete it.
10023 (linux_wait_for_event_filtered): Don't check for thread exit.
10024 (filter_exit_event): New function.
10025 (linux_wait_1): Use it, when returning an exit event.
10026 (linux_resume_one_lwp_throw): Assert that the LWP's
10027 waitstatus is TARGET_WAITKIND_IGNORE.
10028 * remote-utils.c (prepare_resume_reply): Handle
10029 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
10030 * server.c (report_thread_events): New global.
10031 (handle_general_set): Handle QThreadEvents.
10032 (handle_query) <qSupported>: Handle and report QThreadEvents+;
10033 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
10034 TARGET_WAITKIND_THREAD_EXITED.
10035 * server.h (report_thread_events): Declare.
10036
56cf4bed
PA
100372015-11-30 Pedro Alves <palves@redhat.com>
10038
10039 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
10040 the thread's last_resume_kind was resume_stop.
10041
500c1d85
PA
100422015-11-30 Pedro Alves <palves@redhat.com>
10043
10044 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10045 before returning.
10046
de979965
PA
100472015-11-30 Pedro Alves <palves@redhat.com>
10048
10049 * server.c (handle_v_requests): Handle vCtrlC.
10050
34c65914
PA
100512015-11-30 Pedro Alves <palves@redhat.com>
10052
10053 * gdbthread.h (find_any_thread_of_pid): Declare.
10054 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10055 functions.
10056 * server.c (handle_query): If current_thread is NULL, look for
10057 another thread of the selected process.
10058
79efa585 100592015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 10060 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
10061
10062 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10063 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10064 name in reply.
10065 * target.h (struct target_ops) <thread_name>: New field.
10066 (target_thread_name): New macro.
10067
80d82c19
JB
100682015-11-23 Joel Brobecker <brobecker@adacore.com>
10069
10070 * regcache.h (regcache_invalidate_pid): Add declaration.
10071 * regcache.c (regcache_invalidate_pid): New function, extracted
10072 from regcache_invalidate.
10073 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10074 Add trivial documentation comment.
10075 * lynx-low.c: Use regcache_invalidate_pid instead of
10076 regcache_invalidate.
10077
64da5dd5
JB
100782015-11-23 Joel Brobecker <brobecker@adacore.com>
10079
10080 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10081 and Elf64_auxv_t if the target is Android.
10082
37ce4055
DE
100832015-11-22 Doug Evans <xdje42@gmail.com>
10084
10085 * target.h: #include <sys/types.h>.
10086
06e03fff
PA
100872015-11-19 Pedro Alves <palves@redhat.com>
10088
10089 * linux-low.c (linux_process_qsupported): Change prototype.
10090 Adjust.
10091 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10092 Change prototype.
10093 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10094 and adjust to loop over all features.
10095 * server.c (handle_query) <qSupported>: Adjust to call
10096 target_process_qsupported once, passing it a vector of unprocessed
10097 features.
10098 * target.h (struct target_ops) <process_qsupported>: Change
10099 prototype.
10100 (target_process_qsupported): Adjust.
10101
9a084706
PA
101022015-11-19 Pedro Alves <palves@redhat.com>
10103
10104 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10105 mode.
10106 * configure: Regenerate.
10107
dad44a1f
PA
101082015-11-19 Pedro Alves <palves@redhat.com>
10109
10110 * configure: Regenerate.
10111
231c0592
YQ
101122015-11-19 Yao Qi <yao.qi@linaro.org>
10113
10114 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10115 type to uint32_t.
10116
6c1c9a8b
YQ
101172015-11-19 Yao Qi <yao.qi@linaro.org>
10118
10119 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10120 (struct aarch64_operand): Move enum out.
10121
9caa3311
YQ
101222015-11-19 Yao Qi <yao.qi@linaro.org>
10123
10124 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10125 struct user_fpsimd_state *.
10126 (aarch64_store_fpregset): Likewise.
10127
6a69a054
YQ
101282015-11-19 Yao Qi <yao.qi@linaro.org>
10129
10130 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10131 struct user_pt_regs *.
10132 (aarch64_store_gregset): Likewise.
10133
1798301e
PA
101342015-11-18 Pedro Alves <palves@redhat.com>
10135
10136 * Makefile.in (all_object_files): Add $IPA_OBJS.
10137
ce7715e2
PA
101382015-11-17 Pedro Alves <palves@redhat.com>
10139
10140 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10141 GDB_SIGNAL_0 and gdb_signal_to_string.
10142
c0879059
PA
101432015-11-17 Pedro Alves <palves@redhat.com>
10144
10145 * win32-low.c (handle_output_debug_string): Remove parameter.
10146 (win32_kill): Remove our_status local and adjust call to
10147 handle_output_debug_string.
10148 (get_child_debug_event): Adjust call to
10149 handle_output_debug_string.
10150
1996e237
SM
101512015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10152
10153 * linux-mips-low.c (mips_fill_gregset): Add cast.
10154 (mips_store_gregset): Likewise.
10155 (mips_fill_fpregset): Likewise.
10156 (mips_store_fpregset): Likewise.
10157
cbec665b
SM
101582015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10159
10160 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10161 priv.
10162
eb3e3c67
SM
101632015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10164
10165 * linux-mips-low.c (mips_linux_new_thread): Change type of
10166 watch_type to enum target_hw_bp_type.
10167
171de4b8
SM
101682015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10169
10170 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10171 Change return type to arm_hwbp_type.
10172
04248ead
SM
101732015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10174
10175 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10176 (arm_store_gregset): Likewise.
10177 * linux-arm-low.c (arm_get_hwcap): Likewise.
10178 (arm_read_description): Likewise.
10179
04b3479c
SM
101802015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10181
10182 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10183
2bc84e8a
SM
101842015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10185
10186 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10187 (ppc_fill_vsxregset): Likewise.
10188 (ppc_store_vsxregset): Likewise.
10189 (ppc_fill_vrregset): Likewise.
10190 (ppc_store_vrregset): Likewise.
10191 (ppc_fill_evrregset): Likewise.
10192 (ppc_store_evrregset): Likewise.
10193
e6c5bb05
SM
101942015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10195
10196 * linux-ppc-low.c (ppc_usrregs_info): Remove
10197 forward-declaration.
10198 (ppc_arch_setup): Move lower in file.
10199
7ea45d72
SM
102002015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10201
10202 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10203 (ps_pdwrite): Likewise.
10204
69291610
HW
102052015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10206
10207 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10208 to after assert checks.
10209
b42945fd
SM
102102015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10211
10212 * proc-service.c (ps_pdread): Add/adjust casts.
10213 (ps_pdwrite): Add/adjust casts.
10214
d6f85c84
SM
102152015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10216
10217 * server.c (handle_search_memory_1): Cast return value of
10218 memmem.
10219
f98cd059
SM
102202015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10221
10222 * server.c (write_qxfer_response): Change type of data to
10223 gdb_byte *.
10224
d2412fa5
PA
102252015-10-29 Pedro Alves <palves@redhat.com>
10226
10227 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10228
c17414a2
PA
102292015-10-29 Pedro Alves <palves@redhat.com>
10230
10231 * tracepoint.c (clear_installed_tracepoints): Add casts.
10232
e053fbc4
PA
102332015-10-29 Pedro Alves <palves@redhat.com>
10234
10235 * server.c (handle_v_cont, process_serial_event): Add enum
10236 gdb_signal casts to signal parsing code.
10237
add67df8
PA
102382015-10-29 Pedro Alves <palves@redhat.com>
10239
10240 * linux-low.h (NULL_REGSET): Define.
10241 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10242 * linux-arm-low.c (arm_regsets): Likewise.
10243 * linux-crisv32-low.c (cris_regsets): Likewise.
10244 * linux-m68k-low.c (m68k_regsets): Likewise.
10245 * linux-mips-low.c (mips_regsets): Likewise.
10246 * linux-nios2-low.c (nios2_regsets): Likewise.
10247 * linux-ppc-low.c (ppc_regsets): Likewise.
10248 * linux-s390-low.c (s390_regsets): Likewise.
10249 * linux-sh-low.c (sh_regsets): Likewise.
10250 * linux-sparc-low.c (sparc_regsets): Likewise.
10251 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10252 * linux-tile-low.c (tile_regsets): Likewise.
10253 * linux-x86-low.c (x86_regsets): Likewise.
10254 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10255
50bc912a
PA
102562015-10-29 Pedro Alves <palves@redhat.com>
10257
10258 * linux-low.h (NULL_REGSET): Define.
10259 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10260 * linux-arm-low.c (arm_regsets): Likewise.
10261 * linux-crisv32-low.c (cris_regsets): Likewise.
10262 * linux-m68k-low.c (m68k_regsets): Likewise.
10263 * linux-mips-low.c (mips_regsets): Likewise.
10264 * linux-nios2-low.c (nios2_regsets): Likewise.
10265 * linux-ppc-low.c (ppc_regsets): Likewise.
10266 * linux-s390-low.c (s390_regsets): Likewise.
10267 * linux-sh-low.c (sh_regsets): Likewise.
10268 * linux-sparc-low.c (sparc_regsets): Likewise.
10269 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10270 * linux-tile-low.c (tile_regsets): Likewise.
10271 * linux-x86-low.c (x86_regsets): Likewise.
10272 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10273
682b2546
DE
102742015-10-26 Doug Evans <dje@google.com>
10275
10276 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10277
963843d4
DE
102782015-10-26 Doug Evans <dje@google.com>
10279
10280 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10281
d41401ac
DE
102822015-10-26 Doug Evans <dje@google.com>
10283
10284 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10285 for debug_printf.
10286 (attach_thread, find_new_threads_callback): Ditto.
10287
3db28855
AT
102882015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10289
10290 * mem-break.h (set_breakpoint_data): Remove.
10291
fb78e89c
AT
102922015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10293
10294 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10295 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10296 (initialize_low): Remove set_breakpoint_data call.
10297 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10298 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10299 (initialize_low): Remove set_breakpoint_data call.
10300 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10301 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10302 (initialize_low): Remove set_breakpoint_data call.
10303
2e6ee069
AT
103042015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10305
10306 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10307 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10308 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10309 * target.h (target_breakpoint_kind_from_pc): New macro.
10310
1652a986
AT
103112015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10312
10313 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10314 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10315 the default breakpoint kind.
10316
abeead09
AT
103172015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10318
10319 * linux-arm-low.c (arm_supports_z_point_type): Add software
10320 breakpoint support.
10321
b0b4b501
AT
103222015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10323
10324 * linux-arm-low.c: Refactor breakpoint definitions.
10325 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10326 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10327
8689682c
AT
103282015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10329
10330 * Makefile.in: Add arm.c/o.
10331 * configure.srv: Likewise.
10332 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10333 (arm_breakpoint_kind_from_pc): New function.
10334 (arm_sw_breakpoint_from_kind): Return proper kind.
10335 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10336
27165294
AT
103372015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10338
10339 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10340 removal.
10341 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10342 (struct raw_breakpoint) <size>: Remove.
10343 (struct raw_breakpoint) <kind>: Add.
10344 (bp_size): New function.
10345 (bp_opcode): Likewise.
10346 (find_raw_breakpoint_at): Adjust for kind.
10347 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10348 (remove_memory_breakpoint): Adjust for kind call bp_size.
10349 (set_raw_breakpoint_at): Adjust for kind.
10350 (set_breakpoint): Likewise.
10351 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10352 (delete_raw_breakpoint): Adjust for kind.
10353 (delete_breakpoint): Likewise.
10354 (find_gdb_breakpoint): Likewise.
10355 (set_gdb_breakpoint_1): Likewise.
10356 (set_gdb_breakpoint): Likewise.
10357 (delete_gdb_breakpoint_1): Likewise.
10358 (delete_gdb_breakpoint): Likewise.
10359 (uninsert_raw_breakpoint): Likewise.
10360 (reinsert_raw_breakpoint): Likewise.
10361 (set_breakpoint_data): Remove.
10362 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10363 (check_mem_read): Adjust for kind call bp_size.
10364 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10365 (clone_one_breakpoint): Adjust for kind.
10366 * mem-break.h (set_gdb_breakpoint): Likewise.
10367 (delete_gdb_breakpoint): Likewise.
10368 * server.c (process_serial_event): Likewise.
10369
dd373349
AT
103702015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10371
10372 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10373 (struct linux_target_ops) <breakpoint>: Remove.
10374 (struct linux_target_ops) <breakpoint_len>: Remove.
10375 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10376 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10377 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10378 (arm_sw_breakpoint_from_kind): New function.
10379 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10380 (struct linux_target_ops) <breakpoint>: Remove.
10381 (struct linux_target_ops) <breakpoint_len>: Remove.
10382 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10383 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10384 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10385 (struct linux_target_ops) <breakpoint>: Remove.
10386 (struct linux_target_ops) <breakpoint_len>: Remove.
10387 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10388 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10389 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10390 (struct linux_target_ops) <breakpoint>: Remove.
10391 (struct linux_target_ops) <breakpoint_len>: Remove.
10392 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10393 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10394 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10395 and sw_breakpoint_from_kind to increment the pc.
10396 (linux_breakpoint_kind_from_pc): New function.
10397 (linux_sw_breakpoint_from_kind): New function.
10398 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10399 (initialize_low): Call breakpoint_kind_from_pc and
10400 sw_breakpoint_from_kind to replace breakpoint_data/len.
10401 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10402 New field.
10403 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10404 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10405 (struct linux_target_ops) <breakpoint>: Remove.
10406 (struct linux_target_ops) <breakpoint_len>: Remove.
10407 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10408 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10409 * linux-m68k-low.c (m68k_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-mips-low.c (mips_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 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10420 (struct linux_target_ops) <breakpoint>: Remove.
10421 (struct linux_target_ops) <breakpoint_len>: Remove.
10422 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10423 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10424 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10425 (struct linux_target_ops) <breakpoint>: Remove.
10426 (struct linux_target_ops) <breakpoint_len>: Remove.
10427 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10428 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10429 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10430 (struct linux_target_ops) <breakpoint>: Remove.
10431 (struct linux_target_ops) <breakpoint_len>: Remove.
10432 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10433 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10434 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10435 (struct linux_target_ops) <breakpoint>: Remove.
10436 (struct linux_target_ops) <breakpoint_len>: Remove.
10437 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10438 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10439 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10440 (struct linux_target_ops) <breakpoint>: Remove.
10441 (struct linux_target_ops) <breakpoint_len>: Remove.
10442 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10443 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10444 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10445 (struct linux_target_ops) <breakpoint>: Remove.
10446 (struct linux_target_ops) <breakpoint_len>: Remove.
10447 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10448 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10449 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10450 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10451 (struct linux_target_ops) <breakpoint>: Remove.
10452 (struct linux_target_ops) <breakpoint_len>: Remove.
10453 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10454 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10455 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10456 (struct linux_target_ops) <breakpoint>: Remove.
10457 (struct linux_target_ops) <breakpoint_len>: Remove.
10458 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10459 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10460
4cd98a19
AT
104612015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10462
10463 * linux-cris-low.c (cris_get_pc): Remove void arg.
10464
774ee6d2
AR
104652015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10466
10467 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10468 variable name.
10469
833dcd29
AR
104702015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10471
10472 * inferiors.c (thread_pid_matches_callback): New function.
10473 (find_thread_process): New function.
10474 (remove_thread): Reset current_thread.
10475 (remove_process): Assert threads have been removed first.
10476
8d689ee5
YQ
104772015-10-15 Yao Qi <yao.qi@linaro.org>
10478
10479 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10480 if it is 3.
10481 (aarch64_remove_point): Likewise.
10482 * regcache.c (regcache_register_size): New function.
10483
1c2e1515
YQ
104842015-10-12 Yao Qi <yao.qi@linaro.org>
10485
10486 * linux-aarch64-low.c: Update all callers as emit_load_store
10487 is renamed to aarch64_emit_load_store.
10488
e1c587c3
YQ
104892015-10-12 Yao Qi <yao.qi@linaro.org>
10490
10491 * linux-aarch64-low.c: Update all callers of function renaming
10492 from emit_insn to aarch64_emit_insn.
10493
b6542f81
YQ
104942015-10-12 Yao Qi <yao.qi@linaro.org>
10495
10496 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10497 arch/aarch64-insn.h.
10498 (struct aarch64_memory_operand): Likewise.
10499 (ENCODE): Likewise.
10500 (emit_insn): Move to arch/aarch64-insn.c.
10501 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10502 (emit_load_store): Move to arch/aarch64-insn.c.
10503 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10504 (can_encode_int32): Remove.
10505
246994ce
YQ
105062015-10-12 Yao Qi <yao.qi@linaro.org>
10507
10508 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10509 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10510 (aarch64_relocate_instruction): Likewise.
10511 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10512 (struct aarch64_insn_visitor): Likewise.
10513
0badd99f
YQ
105142015-10-12 Yao Qi <yao.qi@linaro.org>
10515
10516 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10517 (struct aarch64_insn_visitor): New.
10518 (struct aarch64_insn_relocation_data): New.
10519 (aarch64_ftrace_insn_reloc_b): New function.
10520 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10521 (aarch64_ftrace_insn_reloc_cb): Likewise.
10522 (aarch64_ftrace_insn_reloc_tb): Likewise.
10523 (aarch64_ftrace_insn_reloc_adr): Likewise.
10524 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10525 (aarch64_ftrace_insn_reloc_others): Likewise.
10526 (visitor): New.
10527 (aarch64_relocate_instruction): Use visitor.
10528
dfaffe9d
YQ
105292015-10-12 Yao Qi <yao.qi@linaro.org>
10530
10531 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10532 int. Add argument buf.
10533 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10534 aarch64_relocate_instruction.
10535
70b439f0
YQ
105362015-10-12 Yao Qi <yao.qi@linaro.org>
10537
10538 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10539 argument insn. Remove local variable insn. Don't call
10540 target_read_uint32.
10541 (aarch64_install_fast_tracepoint_jump_pad): Call
10542 target_read_uint32.
10543
7781c06f
YQ
105442015-09-30 Yao Qi <yao.qi@linaro.org>
10545
10546 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10547 (emit_load_store_pair): Likewise.
10548
9a3c8263
SM
105492015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10550
10551 * dll.c (match_dll): Add cast(s).
10552 (unloaded_dll): Likewise.
10553 * linux-low.c (second_thread_of_pid_p): Likewise.
10554 (delete_lwp_callback): Likewise.
10555 (count_events_callback): Likewise.
10556 (select_event_lwp_callback): Likewise.
10557 (linux_set_resume_request): Likewise.
10558 * server.c (accumulate_file_name_length): Likewise.
10559 (emit_dll_description): Likewise.
10560 (handle_qxfer_threads_worker): Likewise.
10561 (visit_actioned_threads): Likewise.
10562 * thread-db.c (any_thread_of): Likewise.
10563 * tracepoint.c (same_process_p): Likewise.
10564 (match_blocktype): Likewise.
10565 (build_traceframe_info_xml): Likewise.
10566
224c3ddb
SM
105672015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10568
10569 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10570 assignment.
10571 (gdb_unparse_agent_expr): Likewise.
10572 * hostio.c (require_data): Likewise.
10573 (handle_pread): Likewise.
10574 * linux-low.c (disable_regset): Likewise.
10575 (fetch_register): Likewise.
10576 (store_register): Likewise.
10577 (get_dynamic): Likewise.
10578 (linux_qxfer_libraries_svr4): Likewise.
10579 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10580 (set_fast_tracepoint_jump): Likewise.
10581 (uninsert_fast_tracepoint_jumps_at): Likewise.
10582 (reinsert_fast_tracepoint_jumps_at): Likewise.
10583 (validate_inserted_breakpoint): Likewise.
10584 (clone_agent_expr): Likewise.
10585 * regcache.c (init_register_cache): Likewise.
10586 * remote-utils.c (putpkt_binary_1): Likewise.
10587 (decode_M_packet): Likewise.
10588 (decode_X_packet): Likewise.
10589 (look_up_one_symbol): Likewise.
10590 (relocate_instruction): Likewise.
10591 (monitor_output): Likewise.
10592 * server.c (handle_search_memory): Likewise.
10593 (handle_qxfer_exec_file): Likewise.
10594 (handle_qxfer_libraries): Likewise.
10595 (handle_qxfer): Likewise.
10596 (handle_query): Likewise.
10597 (handle_v_cont): Likewise.
10598 (handle_v_run): Likewise.
10599 (captured_main): Likewise.
10600 * target.c (write_inferior_memory): Likewise.
10601 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10602 * tracepoint.c (init_trace_buffer): Likewise.
10603 (add_tracepoint_action): Likewise.
10604 (add_traceframe): Likewise.
10605 (add_traceframe_block): Likewise.
10606 (cmd_qtdpsrc): Likewise.
10607 (cmd_qtdv): Likewise.
10608 (cmd_qtstatus): Likewise.
10609 (response_source): Likewise.
10610 (response_tsv): Likewise.
10611 (cmd_qtnotes): Likewise.
10612 (gdb_collect): Likewise.
10613 (initialize_tracepoint): Likewise.
10614
afbe19f8
PL
106152015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10616
10617 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10618 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10619 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10620 <NOP>: New.
10621 (enum aarch64_condition_codes): New enum.
10622 (w0): New static global.
10623 (fp): Likewise.
10624 (lr): Likewise.
10625 (struct aarch64_memory_operand) <type>: New
10626 MEMORY_OPERAND_POSTINDEX type.
10627 (postindex_memory_operand): New helper function.
10628 (emit_ret): New function.
10629 (emit_load_store_pair): New function, factored out of emit_stp
10630 with support for MEMORY_OPERAND_POSTINDEX.
10631 (emit_stp): Rewrite using emit_load_store_pair.
10632 (emit_ldp): New function.
10633 (emit_load_store): Likewise.
10634 (emit_ldr): Mention post-index instruction in comment.
10635 (emit_ldrh): New function.
10636 (emit_ldrb): New function.
10637 (emit_ldrsw): Mention post-index instruction in comment.
10638 (emit_str): Likewise.
10639 (emit_subs): New function.
10640 (emit_cmp): Likewise.
10641 (emit_and): Likewise.
10642 (emit_orr): Likewise.
10643 (emit_orn): Likewise.
10644 (emit_eor): Likewise.
10645 (emit_mvn): Likewise.
10646 (emit_lslv): Likewise.
10647 (emit_lsrv): Likewise.
10648 (emit_asrv): Likewise.
10649 (emit_mul): Likewise.
10650 (emit_sbfm): Likewise.
10651 (emit_sbfx): Likewise.
10652 (emit_ubfm): Likewise.
10653 (emit_ubfx): Likewise.
10654 (emit_csinc): Likewise.
10655 (emit_cset): Likewise.
10656 (emit_nop): Likewise.
10657 (emit_ops_insns): New helper function.
10658 (emit_pop): Likewise.
10659 (emit_push): Likewise.
10660 (aarch64_emit_prologue): New function.
10661 (aarch64_emit_epilogue): Likewise.
10662 (aarch64_emit_add): Likewise.
10663 (aarch64_emit_sub): Likewise.
10664 (aarch64_emit_mul): Likewise.
10665 (aarch64_emit_lsh): Likewise.
10666 (aarch64_emit_rsh_signed): Likewise.
10667 (aarch64_emit_rsh_unsigned): Likewise.
10668 (aarch64_emit_ext): Likewise.
10669 (aarch64_emit_log_not): Likewise.
10670 (aarch64_emit_bit_and): Likewise.
10671 (aarch64_emit_bit_or): Likewise.
10672 (aarch64_emit_bit_xor): Likewise.
10673 (aarch64_emit_bit_not): Likewise.
10674 (aarch64_emit_equal): Likewise.
10675 (aarch64_emit_less_signed): Likewise.
10676 (aarch64_emit_less_unsigned): Likewise.
10677 (aarch64_emit_ref): Likewise.
10678 (aarch64_emit_if_goto): Likewise.
10679 (aarch64_emit_goto): Likewise.
10680 (aarch64_write_goto_address): Likewise.
10681 (aarch64_emit_const): Likewise.
10682 (aarch64_emit_call): Likewise.
10683 (aarch64_emit_reg): Likewise.
10684 (aarch64_emit_pop): Likewise.
10685 (aarch64_emit_stack_flush): Likewise.
10686 (aarch64_emit_zero_ext): Likewise.
10687 (aarch64_emit_swap): Likewise.
10688 (aarch64_emit_stack_adjust): Likewise.
10689 (aarch64_emit_int_call_1): Likewise.
10690 (aarch64_emit_void_call_2): Likewise.
10691 (aarch64_emit_eq_goto): Likewise.
10692 (aarch64_emit_ne_goto): Likewise.
10693 (aarch64_emit_lt_goto): Likewise.
10694 (aarch64_emit_le_goto): Likewise.
10695 (aarch64_emit_gt_goto): Likewise.
10696 (aarch64_emit_ge_got): Likewise.
10697 (aarch64_emit_ops_impl): New static global variable.
10698 (aarch64_emit_ops): New target function, return
10699 &aarch64_emit_ops_impl.
10700 (struct linux_target_ops): Install it.
10701
bb903df0
PL
107022015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10703
10704 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10705 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10706 aarch64-ipa.o.
10707 * linux-aarch64-ipa.c: New file.
10708 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10709 and endian.h.
10710 (aarch64_get_thread_area): New target method.
10711 (extract_signed_bitfield): New helper function.
10712 (aarch64_decode_ldr_literal): New function.
10713 (enum aarch64_opcodes): New enum.
10714 (struct aarch64_register): New struct.
10715 (struct aarch64_operand): New struct.
10716 (x0): New static global.
10717 (x1): Likewise.
10718 (x2): Likewise.
10719 (x3): Likewise.
10720 (x4): Likewise.
10721 (w2): Likewise.
10722 (ip0): Likewise.
10723 (sp): Likewise.
10724 (xzr): Likewise.
10725 (aarch64_register): New helper function.
10726 (register_operand): Likewise.
10727 (immediate_operand): Likewise.
10728 (struct aarch64_memory_operand): New struct.
10729 (offset_memory_operand): New helper function.
10730 (preindex_memory_operand): Likewise.
10731 (enum aarch64_system_control_registers): New enum.
10732 (ENCODE): New macro.
10733 (emit_insn): New helper function.
10734 (emit_b): New function.
10735 (emit_bcond): Likewise.
10736 (emit_cb): Likewise.
10737 (emit_tb): Likewise.
10738 (emit_blr): Likewise.
10739 (emit_stp): Likewise.
10740 (emit_ldp_q_offset): Likewise.
10741 (emit_stp_q_offset): Likewise.
10742 (emit_load_store): Likewise.
10743 (emit_ldr): Likewise.
10744 (emit_ldrsw): Likewise.
10745 (emit_str): Likewise.
10746 (emit_ldaxr): Likewise.
10747 (emit_stxr): Likewise.
10748 (emit_stlr): Likewise.
10749 (emit_data_processing_reg): Likewise.
10750 (emit_data_processing): Likewise.
10751 (emit_add): Likewise.
10752 (emit_sub): Likewise.
10753 (emit_mov): Likewise.
10754 (emit_movk): Likewise.
10755 (emit_mov_addr): Likewise.
10756 (emit_mrs): Likewise.
10757 (emit_msr): Likewise.
10758 (emit_sevl): Likewise.
10759 (emit_wfe): Likewise.
10760 (append_insns): Likewise.
10761 (can_encode_int32_in): New helper function.
10762 (aarch64_relocate_instruction): New function.
10763 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10764 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10765 (struct linux_target_ops): Install aarch64_get_thread_area,
10766 aarch64_install_fast_tracepoint_jump_pad and
10767 aarch64_get_min_fast_tracepoint_insn_len.
10768
787749ea
PL
107692015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10770
10771 * Makefile.in (aarch64-insn.o): New rule.
10772 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10773
9812b2e6
YQ
107742015-09-21 Yao Qi <yao.qi@linaro.org>
10775
10776 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10777
18fe412b
YQ
107782015-09-21 Yao Qi <yao.qi@linaro.org>
10779
10780 * tracepoint.c (max_jump_pad_size): Remove.
10781
a0cc84cd
YQ
107822015-09-18 Yao Qi <yao.qi@linaro.org>
10783
10784 * linux-aarch64-low.c: Don't include sys/uio.h.
10785 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10786
d78908cf
WW
107872015-09-16 Wei-cheng Wang <cole945@gmail.com>
10788
10789 * tracepoint.c (eval_result_type): Change prototype.
10790 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10791
d57e0d50
PA
107922015-09-15 Pedro Alves <palves@redhat.com>
10793
10794 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10795 Check whether to report exec events instead of checking whether
10796 multiprocess is enabled.
10797
5a676acc
PA
107982015-09-15 Pedro Alves <palves@redhat.com>
10799
10800 PR remote/18965
10801 * remote-utils.c (prepare_resume_reply): Merge
10802 TARGET_WAITKIND_VFORK_DONE switch case with the
10803 TARGET_WAITKIND_FORKED case.
10804
7c5d0fad
YQ
108052015-09-15 Yao Qi <yao.qi@linaro.org>
10806
10807 * server.c (handle_query): Check string comparison using
10808 "else if" instead of "if".
10809
750ce8d1
YQ
108102015-09-15 Yao Qi <yao.qi@linaro.org>
10811
10812 * server.c (vCont_supported): New global variable.
10813 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10814 matches. Append ";vContSupported+" to own_buf.
10815 (handle_v_requests): Append ";s;S" to own_buf if target supports
10816 hardware single step or vCont_supported is false.
10817 (capture_main): Set vCont_supported to zero.
10818
70b90b91
YQ
108192015-09-15 Yao Qi <yao.qi@linaro.org>
10820
10821 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10822 it to ...
10823 (linux_supports_hardware_single_step): ... New function.
10824 (linux_target_ops): Update.
10825 * lynx-low.c (lynx_target_ops): Set field
10826 supports_hardware_single_step to target_can_do_hardware_single_step.
10827 * nto-low.c (nto_target_ops): Likewise.
10828 * spu-low.c (spu_target_ops): Likewise.
10829 * win32-low.c (win32_target_ops): Likewise.
10830 * target.c (target_can_do_hardware_single_step): New function.
10831 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10832 Remove. <supports_hardware_single_step>: New field.
10833 (target_supports_conditional_breakpoints): Remove.
10834 (target_supports_hardware_single_step): New macro.
10835 (target_can_do_hardware_single_step): Declare.
10836 * server.c (handle_query): Use target_supports_hardware_single_step
10837 instead of target_supports_conditional_breakpoints.
10838
ade90bde
YQ
108392015-09-15 Yao Qi <yao.qi@linaro.org>
10840
10841 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10842 function.
10843 (struct linux_target_ops the_low_target): Install
10844 aarch64_linux_siginfo_fixup.
10845
94585166
DB
108462015-09-11 Don Breazeal <donb@codesourcery.com>
10847 Luis Machado <lgustavo@codesourcery.com>
10848
10849 * linux-low.c (linux_mourn): Static declaration.
10850 (linux_arch_setup): Move in front of
10851 handle_extended_wait.
10852 (linux_arch_setup_thread): New function.
10853 (handle_extended_wait): Handle exec events. Call
10854 linux_arch_setup_thread. Make event_lwp argument a
10855 pointer-to-a-pointer.
10856 (check_zombie_leaders): Do not check stopped threads.
10857 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10858 (linux_low_filter_event): Add lwp and thread for exec'ing
10859 non-leader thread if leader thread has been deleted.
10860 Refactor code into linux_arch_setup_thread and call it.
10861 Pass child lwp pointer by reference to handle_extended_wait.
10862 (linux_wait_for_event_filtered): Update comment.
10863 (linux_wait_1): Prevent clobbering exec event status.
10864 (linux_supports_exec_events): New function.
10865 (linux_target_ops) <supports_exec_events>: Initialize new member.
10866 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10867 new member.
10868 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10869 * server.c (report_exec_events): New global variable.
10870 (handle_query): Handle qSupported query for exec-events feature.
10871 (captured_main): Initialize report_exec_events.
10872 * server.h (report_exec_events): Declare new global variable.
10873 * target.h (struct target_ops) <supports_exec_events>: New
10874 member.
10875 (target_supports_exec_events): New macro.
10876 * win32-low.c (win32_target_ops) <supports_exec_events>:
10877 Initialize new member.
10878
0568462b
MM
108792015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10880
10881 * linux-low.c (linux_low_enable_btrace): Remove.
10882 (linux_target_ops): Replace linux_low_enable_btrace with
10883 linux_enable_btrace.
10884
39edd165
YQ
108852015-09-03 Yao Qi <yao.qi@linaro.org>
10886
10887 * linux-aarch64-low.c (aarch64_insert_point): Call
10888 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10889 returns true.
10890
1db33b5a
UW
108912015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10892
10893 * linux-low.c (check_stopped_by_breakpoint): Use
10894 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10895
ab290430
PA
108962015-08-27 Pedro Alves <palves@redhat.com>
10897
10898 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10899
8d749320
SM
109002015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10901
6711b7f8
SM
10902 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10903 the XNEW-family equivalent.
8d749320
SM
10904 (compile_bytecodes): Likewise.
10905 * dll.c (loaded_dll): Likewise.
10906 * event-loop.c (append_callback_event): Likewise.
10907 (create_file_handler): Likewise.
10908 (create_file_event): Likewise.
10909 * hostio.c (handle_open): Likewise.
10910 * inferiors.c (add_thread): Likewise.
10911 (add_process): Likewise.
10912 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10913 * linux-arm-low.c (arm_new_process): Likewise.
10914 (arm_new_thread): Likewise.
10915 * linux-low.c (add_to_pid_list): Likewise.
10916 (linux_add_process): Likewise.
10917 (handle_extended_wait): Likewise.
10918 (add_lwp): Likewise.
10919 (enqueue_one_deferred_signal): Likewise.
10920 (enqueue_pending_signal): Likewise.
10921 (linux_resume_one_lwp_throw): Likewise.
10922 (linux_resume_one_thread): Likewise.
10923 (linux_read_memory): Likewise.
10924 (linux_write_memory): Likewise.
10925 * linux-mips-low.c (mips_linux_new_process): Likewise.
10926 (mips_linux_new_thread): Likewise.
10927 (mips_add_watchpoint): Likewise.
10928 * linux-x86-low.c (initialize_low_arch): Likewise.
10929 * lynx-low.c (lynx_add_process): Likewise.
10930 * mem-break.c (set_raw_breakpoint_at): Likewise.
10931 (set_breakpoint): Likewise.
10932 (add_condition_to_breakpoint): Likewise.
10933 (add_commands_to_breakpoint): Likewise.
10934 (clone_agent_expr): Likewise.
10935 (clone_one_breakpoint): Likewise.
10936 * regcache.c (new_register_cache): Likewise.
10937 * remote-utils.c (look_up_one_symbol): Likewise.
10938 * server.c (queue_stop_reply): Likewise.
10939 (start_inferior): Likewise.
10940 (queue_stop_reply_callback): Likewise.
10941 (handle_target_event): Likewise.
10942 * spu-low.c (fetch_ppc_memory): Likewise.
10943 (store_ppc_memory): Likewise.
10944 * target.c (set_target_ops): Likewise.
10945 * thread-db.c (thread_db_load_search): Likewise.
10946 (try_thread_db_load_1): Likewise.
10947 * tracepoint.c (add_tracepoint): Likewise.
10948 (add_tracepoint_action): Likewise.
10949 (create_trace_state_variable): Likewise.
10950 (cmd_qtdpsrc): Likewise.
10951 (cmd_qtro): Likewise.
10952 (add_while_stepping_state): Likewise.
10953 * win32-low.c (child_add_thread): Likewise.
10954 (get_image_name): Likewise.
10955
ed8b7b42
YQ
109562015-08-25 Yao Qi <yao.qi@linaro.org>
10957
10958 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10959
db3cb7cb
YQ
109602015-08-25 Yao Qi <yao.qi@linaro.org>
10961
10962 * Makefile.in (aarch64-linux.o): New rule.
10963 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10964 srv_tgtobj.
10965 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10966 (aarch64_init_debug_reg_state): Make it extern.
10967 (aarch64_linux_prepare_to_resume): Remove.
10968
f6011a1c
YQ
109692015-08-25 Yao Qi <yao.qi@linaro.org>
10970
10971 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10972 lwp_arch_private_info and ptid_of_lwp.
10973
88e2cf7e
YQ
109742015-08-25 Yao Qi <yao.qi@linaro.org>
10975
10976 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10977 Find proc_info by find_process_pid. All callers updated.
10978
5e35436e
YQ
109792015-08-25 Yao Qi <yao.qi@linaro.org>
10980
10981 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10982 Remove.
10983 (debug_reg_change_callback): Remove.
10984 (aarch64_notify_debug_reg_change): Remove.
10985
4a8a7965
YQ
109862015-08-25 Yao Qi <yao.qi@linaro.org>
10987
10988 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10989 Call current_lwp_ptid.
10990
32a271ee
YQ
109912015-08-25 Yao Qi <yao.qi@linaro.org>
10992
10993 * linux-aarch64-low.c (debug_reg_change_callback): Use
10994 debug_printf.
10995
0d51c8d7
YQ
109962015-08-25 Yao Qi <yao.qi@linaro.org>
10997
10998 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10999
31a43dd5
YQ
110002015-08-25 Yao Qi <yao.qi@linaro.org>
11001
11002 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
11003
8ee52567
YQ
110042015-08-25 Yao Qi <yao.qi@linaro.org>
11005
11006 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
11007 the code.
11008
ff3f0f45
YQ
110092015-08-25 Yao Qi <yao.qi@linaro.org>
11010
11011 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
11012 Remove.
11013 (debug_reg_change_callback): Remove argument entry and add argument
11014 lwp. Remove local variable thread. Don't print thread id in the
11015 debugging output. Don't check whether pid of thread equals to pid.
11016 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
11017 iterate_over_lwps instead find_inferior.
11018
3d40fbb5
PA
110192015-08-24 Pedro Alves <palves@redhat.com>
11020
11021 * inferiors.c (get_first_process): New function.
11022 * inferiors.h (get_first_process): New declaration.
11023 * remote-utils.c (read_ptid): Default to the first process in the
11024 list, instead of to the current thread's process.
11025
438e1e42
PA
110262015-08-24 Pedro Alves <palves@redhat.com>
11027
11028 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
11029 * event-loop.c: Likewise.
11030 * remote-utils.c: Likewise.
11031 * tracepoint.c: Likewise.
11032
a8c6d4fc
PA
110332015-08-24 Pedro Alves <palves@redhat.com>
11034
11035 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
11036 ptid_get_lwp.
11037
99b0bb12
PA
110382015-08-21 Pedro Alves <palves@redhat.com>
11039
11040 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11041 instead of literal 1.
11042
f8904751
PA
110432015-08-21 Pedro Alves <palves@redhat.com>
11044
11045 * tdesc.c (default_description): Explicitly zero-initialize.
11046
465a859e
PA
110472015-08-21 Pedro Alves <palves@redhat.com>
11048
11049 PR gdb/18749
11050 * inferiors.c (remove_thread): Discard any pending stop reply for
11051 this thread.
11052 * server.c (remove_all_on_match_pid): Rename to ...
11053 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11054 instead of a pid.
11055 (discard_queued_stop_replies): Change parameter to a ptid. Now
11056 extern.
11057 (handle_v_kill, kill_inferior_callback, captured_main)
11058 (process_serial_event): Adjust.
11059 * server.h (discard_queued_stop_replies): Declare.
11060
f0db101d
PA
110612015-08-21 Pedro Alves <palves@redhat.com>
11062
11063 * linux-low.c (wait_for_sigstop): Always switch to no thread
11064 selected if the previously current thread dies.
11065 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11066 process instead of the current thread's.
11067 * remote-utils.c (input_interrupt): Don't check if there's no
11068 current thread.
11069 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11070 current thread to the general thread fails, error out.
11071 (handle_qxfer_auxv, handle_qxfer_libraries)
11072 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11073 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11074 (handle_query): Check if there's a thread selected instead of
11075 checking whether there's any thread in the thread list.
11076 (handle_qxfer_threads, handle_qxfer_btrace)
11077 (handle_qxfer_btrace_conf): Don't error out early if there's no
11078 thread in the thread list.
11079 (handle_v_cont, myresume): Don't set the current thread to the
11080 continue thread.
11081 (process_serial_event) <Hg handling>: Also set thread_id if the
11082 previous general thread is still alive.
11083 (process_serial_event) <g/G handling>: If setting the current
11084 thread to the general thread fails, error out.
11085 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11086 thread's lwp instead of the current thread's.
11087 * target.c (set_desired_thread): If the desired thread was not
11088 found, leave the current thread pointing to NULL. Return an int
11089 (boolean) indicating success.
11090 * target.h (set_desired_thread): Change return type to int.
11091
40045d91
MF
110922015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11093
11094 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11095 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11096 #includes.
11097 (ps_get_thread_area): New function.
11098
45face3b
GB
110992015-08-19 Gary Benson <gbenson@redhat.com>
11100
11101 * hostio.c (handle_pread): Do not attempt to read more data
11102 than hostio_reply_with_data can fit in a packet.
11103
16d5f642
JB
111042015-08-18 Joel Brobecker <brobecker@adacore.com>
11105
11106 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11107
a738da3a
MF
111082015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11109
11110 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11111
33ebda9d
PA
111122015-08-06 Pedro Alves <palves@redhat.com>
11113
11114 * tracepoint.c (expr_eval_result): Now an int.
11115
a44892be
PA
111162015-08-06 Pedro Alves <palves@redhat.com>
11117
11118 * gdbthread.h (struct regcache): Forward declare.
11119 (struct thread_info) <regcache_data>: Now a struct regcache
11120 pointer.
11121 * inferiors.c (inferior_regcache_data)
11122 (set_inferior_regcache_data): Now work with struct regcache
11123 pointers.
11124 * inferiors.h (struct regcache): Forward declare.
11125 (inferior_regcache_data, set_inferior_regcache_data): Now work
11126 with struct regcache pointers.
11127 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11128 (free_register_cache_thread): Remove struct regcache pointer
11129 casts.
11130
608a1e46
PA
111312015-08-06 Pedro Alves <palves@redhat.com>
11132
11133 * server.c (captured_main): On error, print the exception message
11134 to stderr, and if run_once is set, throw a quit.
11135
f0ce0d3a
PA
111362015-08-06 Pedro Alves <palves@redhat.com>
11137
11138 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11139 the current thread.
11140
bf47e248
PA
111412015-08-06 Pedro Alves <palves@redhat.com>
11142
11143 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11144 reading beyond the passed in buffer length.
11145
b6b9ffcc
PL
111462015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11147
11148 * tracepoint.c (symbol_list) <required>: Remove.
11149
863d01bd
PA
111502015-08-06 Pedro Alves <palves@redhat.com>
11151
11152 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11153 count if stopping and suspending threads.
11154 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11155 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11156 (linux_detach): Complete an ongoing step-over.
11157 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11158 throughout.
11159 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11160 (linux_wait_1): If passing a signal to the inferior after
11161 finishing a step-over, unsuspend and re-resume all lwps. If we
11162 see a single-step event but the thread should be continuing, don't
11163 pass the trap to gdb.
11164 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11165 internal_error instead of gdb_assert.
11166 (enqueue_pending_signal): New function.
11167 (check_ptrace_stopped_lwp_gone): Add debug output.
11168 (start_step_over): Use internal_error instead of gdb_assert.
11169 (complete_ongoing_step_over): New function.
11170 (linux_resume_one_thread): Don't resume a suspended thread.
11171 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11172 it stepping.
11173
00db26fa
PA
111742015-08-06 Pedro Alves <palves@redhat.com>
11175
11176 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11177 (linux_thread_alive): Use lwp_is_marked_dead.
11178 (extended_event_reported): Delete.
11179 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11180 instead of extended_event_reported.
11181 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11182 as well.
11183 (lwp_is_marked_dead): New function.
11184 (lwp_running): Use lwp_is_marked_dead.
11185 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11186 comment.
11187
ad071a30
PA
111882015-08-06 Pedro Alves <palves@redhat.com>
11189
11190 * linux-low.c (linux_wait_1): Move fork event output out of the
11191 !report_to_gdb check. Pass event_child->waitstatus to
11192 target_waitstatus_to_string instead of ourstatus.
11193
524b57e6
YQ
111942015-08-04 Yao Qi <yao.qi@linaro.org>
11195
11196 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11197 if current_thread is 32 bit.
11198
6085d6f6
YQ
111992015-08-04 Yao Qi <yao.qi@linaro.org>
11200
11201 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11202 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11203 * server.c (extended_protocol): Remove "static".
11204 * server.h (extended_protocol): Declare it.
11205
8a7e4587
YQ
112062015-08-04 Yao Qi <yao.qi@linaro.org>
11207
11208 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11209 both aarch64 and aarch32.
11210 (aarch64_set_pc): Likewise.
11211
3b53ae99
YQ
112122015-08-04 Yao Qi <yao.qi@linaro.org>
11213
11214 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11215 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11216 arm-with-neon.xml to srv_xmlfiles.
11217 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11218 (is_64bit_tdesc): New function.
11219 (aarch64_linux_read_description): New function.
11220 (aarch64_arch_setup): Call aarch64_linux_read_description.
11221 (regs_info): Rename to regs_info_aarch64.
11222 (aarch64_regs_info): Return right regs_info.
11223 (initialize_low_arch): Call initialize_low_arch_aarch32.
11224
bd9e6534
YQ
112252015-08-04 Yao Qi <yao.qi@linaro.org>
11226
11227 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11228 * linux-aarch32-low.c: New file.
11229 * linux-aarch32-low.h: New file.
11230 * linux-arm-low.c (arm_fill_gregset): Move it to
11231 linux-aarch32-low.c.
11232 (arm_store_gregset): Likewise.
11233 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11234 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11235 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11236 (regs_info): Rename to regs_info_arm.
11237 (arm_regs_info): Return regs_info_aarch32 if
11238 have_ptrace_getregset is 1 and target description is
11239 arm_with_neon or arm_with_vfpv3.
11240 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11241 Call initialize_low_arch_aarch32 instead.
11242
ded48a5e
YQ
112432015-08-04 Yao Qi <yao.qi@linaro.org>
11244
11245 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11246 * linux-low.c: ... here.
11247 * linux-low.h (have_ptrace_getregset): Declare it.
11248
96e9210f
PA
112492015-08-04 Pedro Alves <palves@redhat.com>
11250
11251 * thread-db.c (struct thread_db): Use new typedefs.
11252 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11253 CHK calls.
11254 (disable_thread_event_reporting): Cast result of dlsym to
11255 destination function pointer type.
11256 (thread_db_mourn): Use td_ta_delete_ftype.
11257
af60a1ef
SL
112582015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11259
11260 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11261 arch variant.
11262 (CDX_BREAKPOINT): Define for R2.
11263 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11264 (the_low_target): Add comments.
11265
e8b41681
YQ
112662015-07-30 Yao Qi <yao.qi@linaro.org>
11267
11268 * linux-arm-low.c (arm_hwcap): Remove it.
11269 (arm_read_description): New local variable arm_hwcap. Don't
11270 set arm_hwcap to zero.
11271
89abb039
YQ
112722015-07-30 Yao Qi <yao.qi@linaro.org>
11273
11274 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11275 Use regcache->tdesc instead.
11276 (arm_store_wmmxregset): Likewise.
11277 (arm_fill_vfpregset): Likewise.
11278 (arm_store_vfpregset): Likewise.
11279
deca266c
YQ
112802015-07-30 Yao Qi <yao.qi@linaro.org>
11281
11282 * linux-arm-low.c: Include arch/arm.h.
11283 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11284 (arm_store_gregset): Likewise.
11285
aa58a496
SM
112862015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11287
11288 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11289 ptrace's 4th parameter.
11290
50904b25
YQ
112912015-07-27 Yao Qi <yao.qi@linaro.org>
11292
11293 * configure.srv (case aarch64*-*-linux*): Don't set
11294 srv_linux_usrregs.
11295
5826e159
PA
112962015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11297
11298 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11299 sys/ptrace.h.
11300 * linux-arm-low.c: Likewise.
11301 * linux-cris-low.c: Likewise.
11302 * linux-crisv32-low.c: Likewise.
11303 * linux-low.c: Likewise.
11304 * linux-m68k-low.c: Likewise.
11305 * linux-mips-low.c: Likewise.
11306 * linux-nios2-low.c: Likewise.
11307 * linux-s390-low.c: Likewise.
11308 * linux-sparc-low.c: Likewise.
11309 * linux-tic6x-low.c: Likewise.
11310 * linux-tile-low.c: Likewise.
11311 * linux-x86-low.c: Likewise.
11312
54019719
PA
113132015-07-24 Pedro Alves <palves@redhat.com>
11314
11315 * config.in: Regenerate.
11316 * configure: Regenerate.
11317
eb7aa561
PA
113182015-07-24 Pedro Alves <palves@redhat.com>
11319
11320 * acinclude.m4: Include ../ptrace.m4.
11321 * configure.ac: Call GDB_AC_PTRACE.
11322 * config.in, configure: Regenerate.
11323
55d7b841
YQ
113242015-07-24 Yao Qi <yao.qi@linaro.org>
11325
11326 * linux-low.c (linux_create_inferior): Remove setting to
11327 proc->priv->new_inferior.
11328 (linux_attach): Likewise.
11329 (linux_low_filter_event): Likewise.
11330 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11331
c06cbd92
YQ
113322015-07-24 Yao Qi <yao.qi@linaro.org>
11333
11334 * linux-low.c (linux_arch_setup): New function.
11335 (linux_low_filter_event): If proc->tdesc is NULL and
11336 proc->attached is true, call the_low_target.arch_setup.
11337 Otherwise, keep status pending, and return.
11338 (linux_resume_one_lwp_throw): Don't call get_pc if
11339 thread->while_stepping isn't NULL. Don't call
11340 get_thread_regcache if proc->tdesc is NULL.
11341 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11342 (linux_target_ops): Install arch_setup.
11343 * server.c (start_inferior): Call the_target->arch_setup.
11344 * target.h (struct target_ops) <arch_setup>: New field.
11345 (target_arch_setup): New marco.
11346 * lynx-low.c (lynx_target_ops): Update.
11347 * nto-low.c (nto_target_ops): Update.
11348 * spu-low.c (spu_target_ops): Update.
11349 * win32-low.c (win32_target_ops): Update.
11350
5ae3ebba
YQ
113512015-07-24 Yao Qi <yao.qi@linaro.org>
11352
11353 * linux-low.c (linux_add_process): Don't set
11354 proc->priv->new_inferior.
11355 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11356 (linux_attach): Likewise.
11357
eb97750b
YQ
113582015-07-24 Yao Qi <yao.qi@linaro.org>
11359
11360 * server.c (start_inferior): Code refactor.
11361
51aee833
YQ
113622015-07-24 Yao Qi <yao.qi@linaro.org>
11363
11364 * server.c (process_serial_event): Set general_thread.
11365
af1b22f3
YQ
113662015-07-21 Yao Qi <yao.qi@linaro.org>
11367
11368 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11369 aarch64_linux_get_debug_reg_capacity.
11370
554717a3
YQ
113712015-07-17 Yao Qi <yao.qi@linaro.org>
11372
11373 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11374 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11375 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11376 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11377 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11378 (AARCH64_HWP_ALIGNMENT): Likewise.
11379 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11380 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11381 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11382 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11383 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11384 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11385 (struct aarch64_debug_reg_state): Likewise.
11386 (struct arch_lwp_info): Likewise.
11387 (aarch64_align_watchpoint): Likewise.
11388 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11389 (aarch64_watchpoint_length): Likewise.
11390 (aarch64_point_encode_ctrl_reg): Likewise
11391 (aarch64_point_is_aligned): Likewise.
11392 (aarch64_align_watchpoint): Likewise.
11393 (aarch64_linux_set_debug_regs):
11394 (aarch64_dr_state_insert_one_point): Likewise.
11395 (aarch64_dr_state_remove_one_point): Likewise.
11396 (aarch64_handle_breakpoint): Likewise.
11397 (aarch64_handle_aligned_watchpoint): Likewise.
11398 (aarch64_handle_unaligned_watchpoint): Likewise.
11399 (aarch64_handle_watchpoint): Likewise.
11400
c67ca4de
YQ
114012015-07-17 Yao Qi <yao.qi@linaro.org>
11402
11403 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11404 and don't aarch64_get_debug_reg_state. All callers update.
11405 (aarch64_handle_aligned_watchpoint): Likewise.
11406 (aarch64_handle_unaligned_watchpoint): Likewise.
11407 (aarch64_handle_watchpoint): Likewise.
11408 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11409 (aarch64_remove_point): Likewise.
11410
25abf979
YQ
114112015-07-17 Yao Qi <yao.qi@linaro.org>
11412
11413 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11414 debug_printf.
11415 (aarch64_handle_unaligned_watchpoint): Likewise.
11416
db1ff28b
JK
114172015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11418
11419 Revert the previous 3 commits:
11420 Move gdb_regex* to common/
11421 Move linux_find_memory_regions_full & co.
11422 gdbserver build-id attribute generator
11423
700ca40f
JK
114242015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11425 Jan Kratochvil <jan.kratochvil@redhat.com>
11426
11427 gdbserver build-id attribute generator.
11428 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11429 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11430 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11431 (find_phdr): New.
11432 (get_dynamic): Use find_pdhr to traverse program headers.
11433 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11434 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11435 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11436 (get_hex_build_id): New.
11437 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11438 to reply XML document.
11439
9904185c
JK
114402015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11441 Jan Kratochvil <jan.kratochvil@redhat.com>
11442
11443 * target.c: Include target/target-utils.h and fcntl.h.
11444 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11445 (target_fileio_read_stralloc): New functions.
11446
6e5b4429
JK
114472015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11448
11449 * Makefile.in (OBS): Add gdb_regex.o.
11450 (gdb_regex.o): New.
11451 * config.in: Rebuilt.
11452 * configure: Rebuilt.
11453
ddc98fbf
JK
114542015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11455 Jan Kratochvil <jan.kratochvil@redhat.com>
11456
11457 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11458 * Makefile.in (OBS): Add target-utils.o.
11459 (linux-maps.o, target-utils.o): New.
11460 * configure.srv (srv_linux_obj): Add linux-maps.o.
11461
e57bb7a0
PL
114622015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11463
11464 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11465 function, return 1.
11466 (the_low_target): Install it.
11467
586b02a9
PA
114682015-07-14 Pedro Alves <palves@redhat.com>
11469
11470 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11471 Instead, ignore ECHILD, and throw an error for other errnos.
11472
58c1b36c
PA
114732015-07-10 Pedro Alves <palves@redhat.com>
11474
11475 * event-loop.c (struct callback_event) <data>: Change type to
11476 gdb_client_data instance instead of gdb_client_data pointer.
11477 (append_callback_event): Adjust.
11478
421530db
PL
114792015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11480
11481 * linux-aarch64-low.c: Add comments for each linux_target_ops
11482 method. Remove comments already covered in target_ops and
11483 linux_target_ops definitions.
11484 (the_low_target): Add comments for each unimplemented method.
11485
c2d65f38
YQ
114862015-07-09 Yao Qi <yao.qi@linaro.org>
11487
11488 * linux-aarch64-low.c (aarch64_regmap): Remove.
11489 (aarch64_usrregs_info): Remove.
11490 (regs_info): Set field usrregs to NULL.
11491
b20a6524
MM
114922015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11493
11494 * linux-low.c: Include "rsp-low.h"
11495 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11496 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11497 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11498 (handle_btrace_enable_pt): New.
11499 (handle_btrace_general_set): Support "pt".
11500 (handle_btrace_conf_general_set): Support "pt:size".
11501
96c97461
PL
115022015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11503
11504 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11505 Z_PACKET_SW_BP.
11506
37d66942
PL
115072015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11508
11509 * linux-aarch64-low.c: Remove comment about endianness.
11510 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11511 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11512 memcmp.
11513
dc06243f
GB
115142015-06-24 Gary Benson <gbenson@redhat.com>
11515
11516 * linux-i386-ipa.c (stdint.h): Do not include.
11517 * lynx-i386-low.c (stdint.h): Likewise.
11518 * lynx-ppc-low.c (stdint.h): Likewise.
11519 * mem-break.c (stdint.h): Likewise.
11520 * thread-db.c (stdint.h): Likewise.
11521 * tracepoint.c (stdint.h): Likewise.
11522 * win32-low.c (stdint.h): Likewise.
11523
124e13d9
SM
115242015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11525
11526 * server.c (write_qxfer_response): Update call to
11527 remote_escape_output.
11528
909c2cda
JK
115292015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11530 Jan Kratochvil <jan.kratochvil@redhat.com>
11531
11532 Merge multiple hex conversions.
11533 * gdbreplay.c (tohex): Rename to 'fromhex'.
11534 (logchar): Use fromhex.
11535
24c05f46
JK
115362015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11537
11538 * server.c (handle_qxfer_libraries): Set `version' attribute for
11539 <library-list>.
11540
14d2069a
GB
115412015-06-10 Gary Benson <gbenson@redhat.com>
11542
11543 * target.h (struct target_ops) <multifs_open>: New field.
11544 <multifs_unlink>: Likewise.
11545 <multifs_readlink>: Likewise.
11546 * linux-low.c (nat/linux-namespaces.h): New include.
11547 (linux_target_ops): Initialize the_target->multifs_open,
11548 the_target->multifs_unlink and the_target->multifs_readlink.
11549 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11550 * hostio.c (hostio_fs_pid): New static variable.
11551 (hostio_handle_new_gdb_connection): New function.
11552 (handle_setfs): Likewise.
11553 (handle_open): Use the_target->multifs_open as appropriate.
11554 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11555 (handle_readlink): Use the_target->multifs_readlink as
11556 appropriate.
11557 (handle_vFile): Handle vFile:setfs packets.
11558 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11559 after target_handle_new_gdb_connection.
11560
4b8b5e72
GB
115612015-06-10 Gary Benson <gbenson@redhat.com>
11562
11563 * configure.ac (AC_CHECK_FUNCS): Add setns.
11564 * config.in: Regenerate.
11565 * configure: Likewise.
11566 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11567 (linux-namespaces.o): New rule.
11568 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11569
3ac2e371
GB
115702015-06-09 Gary Benson <gbenson@redhat.com>
11571
11572 * hostio.c (handle_open): Process mode argument with
11573 fileio_to_host_mode.
11574
ca9b78ce
YQ
115752015-06-01 Yao Qi <yao.qi@linaro.org>
11576
11577 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11578 * linux-x86-low.c: Likewise.
11579
bfacd19d
DB
115802015-05-28 Don Breazeal <donb@codesourcery.com>
11581
11582 * linux-low.c (handle_extended_wait): Initialize
11583 thread_info.last_resume_kind for new fork children.
11584
452003ef
PA
115852015-05-15 Pedro Alves <palves@redhat.com>
11586
11587 * target.h (target_handle_new_gdb_connection): Rewrite using if
11588 wrapped in do/while.
11589
1041a03c
JB
115902015-05-14 Joel Brobecker <brobecker@adacore.com>
11591
11592 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11593 * configure, config.in: Regenerate.
11594 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11595 Declare typedef.
11596
c269dbdb
DB
115972015-05-12 Don Breazeal <donb@codesourcery.com>
11598
11599 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11600 PTRACE_EVENT_VFORK_DONE.
11601 (linux_low_ptrace_options, extended_event_reported): Add vfork
11602 events.
11603 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11604 and "vforkdone" for RSP 'T' Stop Reply Packet.
11605 * server.h (report_vfork_events): Declare
11606 global variable.
11607
3a8a0396
DB
116082015-05-12 Don Breazeal <donb@codesourcery.com>
11609
11610 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11611 (the_low_target) <new_fork>: Initialize new member.
11612 * linux-arm-low.c (arm_new_fork): New function.
11613 (the_low_target) <new_fork>: Initialize new member.
11614 * linux-low.c (handle_extended_wait): Call new target function
11615 new_fork.
11616 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11617 * linux-mips-low.c (mips_add_watchpoint): New function
11618 extracted from mips_insert_point.
11619 (the_low_target) <new_fork>: Initialize new member.
11620 (mips_linux_new_fork): New function.
11621 (mips_insert_point): Call mips_add_watchpoint.
11622 * linux-x86-low.c (x86_linux_new_fork): New function.
11623 (the_low_target) <new_fork>: Initialize new member.
11624
de0d863e
DB
116252015-05-12 Don Breazeal <donb@codesourcery.com>
11626
11627 * linux-low.c (handle_extended_wait): Implement return value,
11628 rename argument 'event_child' to 'event_lwp', handle
11629 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11630 (linux_low_ptrace_options): New function.
11631 (linux_low_filter_event): Call linux_low_ptrace_options,
11632 use different argument fo linux_enable_event_reporting,
11633 use return value from handle_extended_wait.
11634 (extended_event_reported): New function.
11635 (linux_wait_1): Call extended_event_reported and set
11636 status to report fork events.
11637 (linux_write_memory): Add pid to debug message.
11638 (reset_lwp_ptrace_options_callback): New function.
11639 (linux_handle_new_gdb_connection): New function.
11640 (linux_target_ops): Initialize new structure member.
11641 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11642 * lynx-low.c: Initialize new structure member.
11643 * remote-utils.c (prepare_resume_reply): Implement stop reason
11644 "fork" for "T" stop message.
11645 * server.c (handle_query): Call handle_new_gdb_connection.
11646 * server.h (report_fork_events): Declare global flag.
11647 * target.h (struct target_ops) <handle_new_gdb_connection>:
11648 New member.
11649 (target_handle_new_gdb_connection): New macro.
11650 * win32-low.c: Initialize new structure member.
11651
ddcbc397
DB
116522015-05-12 Don Breazeal <donb@codesourcery.com>
11653
11654 * mem-break.c (APPEND_TO_LIST): Define macro.
11655 (clone_agent_expr): New function.
11656 (clone_one_breakpoint): New function.
11657 (clone_all_breakpoints): New function.
11658 * mem-break.h: Declare new functions.
11659
89245bc0
DB
116602015-05-12 Don Breazeal <donb@codesourcery.com>
11661
11662 * linux-low.c (linux_supports_fork_events): New function.
11663 (linux_supports_vfork_events): New function.
11664 (linux_target_ops): Initialize new structure members.
11665 (initialize_low): Call linux_check_ptrace_features.
11666 * lynx-low.c (lynx_target_ops): Initialize new structure
11667 members.
11668 * server.c (report_fork_events, report_vfork_events):
11669 New global flags.
11670 (handle_query): Add new features to qSupported packet and
11671 response.
11672 (captured_main): Initialize new global variables.
11673 * target.h (struct target_ops) <supports_fork_events>:
11674 New member.
11675 <supports_vfork_events>: New member.
11676 (target_supports_fork_events): New macro.
11677 (target_supports_vfork_events): New macro.
11678 * win32-low.c (win32_target_ops): Initialize new structure
11679 members.
11680
835205d0
GB
116812015-05-12 Gary Benson <gbenson@redhat.com>
11682
11683 * server.c (handle_qxfer_exec_file): Use current process
11684 if annex is empty.
11685
21e94bd9
SL
116862015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11687
11688 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11689 Remove HAVE_PTRACE_GETREGS conditionals.
11690 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11691 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11692
45614f15
YQ
116932015-05-08 Yao Qi <yao.qi@linaro.org>
11694
11695 * linux-low.c (linux_supports_conditional_breakpoints): New
11696 function.
11697 (linux_target_ops): Install new target method.
11698 * lynx-low.c (lynx_target_ops): Install NULL hook for
11699 supports_conditional_breakpoints.
11700 * nto-low.c (nto_target_ops): Likewise.
11701 * spu-low.c (spu_target_ops): Likewise.
11702 * win32-low.c (win32_target_ops): Likewise.
11703 * server.c (handle_query): Check
11704 target_supports_conditional_breakpoints.
11705 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11706 New field.
11707 (target_supports_conditional_breakpoints): New macro.
11708
80ad801e
PA
117092015-05-06 Pedro Alves <palves@redhat.com>
11710
11711 PR server/18081
11712 * server.c (start_inferior): If the process exits, mourn it.
11713
819843c7
GB
117142015-04-21 Gary Benson <gbenson@redhat.com>
11715
11716 * hostio.c (fileio_open_flags_to_host): Factored out to
11717 fileio_to_host_openflags in common/fileio.c. Single use
11718 updated.
11719
a2d5a9d7
MF
117202015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11721
11722 * linux-xtensa-low.c (xtensa_fill_gregset)
11723 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11724 XCHAL_HAVE_LOOP.
11725
deb44829
MF
117262015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11727
11728 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11729 (regs_info): Replace usrregs pointer with NULL.
11730
e57f1de3
GB
117312015-04-17 Gary Benson <gbenson@redhat.com>
11732
11733 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11734 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11735 * server.c (handle_qxfer_exec_file): New function.
11736 (qxfer_packets): Add exec-file entry.
11737 (handle_query): Report qXfer:exec-file:read as supported packet.
11738
62828379
RN
117392015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11740
11741 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11742
b88bb450
GB
117432015-04-09 Gary Benson <gbenson@redhat.com>
11744
11745 * hostio-errno.c (errno_to_fileio_error): Remove function.
11746 Update caller to use remote_fileio_to_fio_error.
11747
c8f4bfdd
YQ
117482015-04-09 Yao Qi <yao.qi@linaro.org>
11749
11750 * linux-low.c (linux_insert_point): Call
11751 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11752 (linux_remove_point): Call remove_memory_breakpoint if type is
11753 raw_bkpt_type_sw.
11754 * linux-x86-low.c (x86_insert_point): Don't call
11755 insert_memory_breakpoint.
11756 (x86_remove_point): Don't call remove_memory_breakpoint.
11757
41f98f02
PA
117582015-04-01 Pedro Alves <palves@redhat.com>
11759 Cleber Rosa <crosa@redhat.com>
11760
11761 * server.c (gdbserver_usage): Reorganize and extend the usage
11762 message.
11763
2bf6fb9d
PA
117642015-03-24 Pedro Alves <palves@redhat.com>
11765
11766 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11767 output. Also dump TRAP_TRACE.
11768 (linux_low_filter_event): In debug output, distinguish a
11769 resume_stop SIGSTOP from a delayed SIGSTOP.
11770
369f6daa
GB
117712015-03-24 Gary Benson <gbenson@redhat.com>
11772
11773 * linux-x86-low.c (x86_linux_new_thread): Moved to
11774 nat/x86-linux.c.
11775 (x86_linux_prepare_to_resume): Likewise.
11776
8e5d4070
GB
117772015-03-24 Gary Benson <gbenson@redhat.com>
11778
11779 * Makefile.in (x86-linux-dregs.o): New rule.
11780 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11781 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11782 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11783 (x86_linux_dr_get): Likewise.
11784 (x86_linux_dr_set): Likewise.
11785 (update_debug_registers_callback): Likewise.
11786 (x86_linux_dr_set_addr): Likewise.
11787 (x86_linux_dr_get_addr): Likewise.
11788 (x86_linux_dr_set_control): Likewise.
11789 (x86_linux_dr_get_control): Likewise.
11790 (x86_linux_dr_get_status): Likewise.
11791 (x86_linux_update_debug_registers): Likewise.
11792
2b95d440
GB
117932015-03-24 Gary Benson <gbenson@redhat.com>
11794
11795 * linux-x86-low.c (x86_linux_update_debug_registers):
11796 New function, factored out from...
11797 (x86_linux_prepare_to_resume): ...this.
11798
14b0bc68
GB
117992015-03-24 Gary Benson <gbenson@redhat.com>
11800
11801 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11802 (x86_linux_dr_set): Likewise.
11803 (update_debug_registers_callback): Likewise.
11804 (x86_linux_dr_set_addr): Likewise.
11805 (x86_linux_dr_get_addr): Likewise.
11806 (x86_linux_dr_set_control): Likewise.
11807 (x86_linux_dr_get_control): Likewise.
11808 (x86_linux_dr_get_status): Likewise.
11809 (x86_linux_prepare_to_resume): Likewise.
11810
5dfe6ca8
GB
118112015-03-24 Gary Benson <gbenson@redhat.com>
11812
11813 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11814 Use perror_with_name. Pass string through gettext.
11815 (x86_linux_dr_set): Likewise.
11816
d33472ad
GB
118172015-03-24 Gary Benson <gbenson@redhat.com>
11818
11819 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11820 (x86_linux_dr_set_addr): ...this.
11821 (x86_dr_low_get_addr): Rename to...
11822 (x86_linux_dr_get_addr): ...this.
11823 (x86_dr_low_set_control): Rename to...
11824 (x86_linux_dr_set_control): ...this.
11825 (x86_dr_low_get_control): Rename to...
11826 (x86_linux_dr_get_control): ...this.
11827 (x86_dr_low_get_status): Rename to...
11828 (x86_linux_dr_get_status): ...this.
11829 (x86_dr_low): Update with new function names.
11830
4b134ca1
GB
118312015-03-24 Gary Benson <gbenson@redhat.com>
11832
11833 * Makefile.in (x86-linux.o): New rule.
11834 * configure.srv: Add x86-linux.o to relevant targets.
11835 * linux-low.c (lwp_set_arch_private_info): New function.
11836 (lwp_arch_private_info): Likewise.
11837 * linux-x86-low.c: Include nat/x86-linux.h.
11838 (arch_lwp_info): Removed structure.
11839 (update_debug_registers_callback):
11840 Use lwp_set_debug_registers_changed.
11841 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11842 and lwp_set_debug_registers_changed.
11843 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11844
34c703da
GB
118452015-03-24 Gary Benson <gbenson@redhat.com>
11846
11847 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11848 * linux-arm-low.c (arm_new_thread): Likewise.
11849 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11850 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11851 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11852 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11853
cff068da
GB
118542015-03-24 Gary Benson <gbenson@redhat.com>
11855
11856 * linux-low.c (ptid_of_lwp): New function.
11857 (lwp_is_stopped): Likewise.
11858 (lwp_stop_reason): Likewise.
11859 * linux-x86-low.c (update_debug_registers_callback):
11860 Use lwp_is_stopped.
11861 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11862 lwp_stop_reason.
11863
b2f7c7e8
GB
118642015-03-24 Gary Benson <gbenson@redhat.com>
11865
11866 * linux-low.h (linux_stop_lwp): Remove declaration.
11867
6d4ee8c6
GB
118682015-03-24 Gary Benson <gbenson@redhat.com>
11869
11870 * linux-low.h: Include nat/linux-nat.h.
11871 * linux-low.c (iterate_over_lwps_args): New structure.
11872 (iterate_over_lwps_filter): New function.
11873 (iterate_over_lwps): Likewise.
11874 * linux-x86-low.c (update_debug_registers_callback):
11875 Update signature to what iterate_over_lwps expects.
11876 Remove PID check that iterate_over_lwps now performs.
11877 (x86_dr_low_set_addr): Use iterate_over_lwps.
11878 (x86_dr_low_set_control): Likewise.
11879
70a0bb6b
GB
118802015-03-24 Gary Benson <gbenson@redhat.com>
11881
11882 * linux-x86-low.c (x86_debug_reg_state): New function.
11883 (x86_linux_prepare_to_resume): Use the above.
11884
7b669087
GB
118852015-03-24 Gary Benson <gbenson@redhat.com>
11886
11887 * linux-low.c (current_lwp_ptid): New function.
11888 * linux-x86-low.c: Include nat/linux-nat.h.
11889 (x86_dr_low_get_addr): Use current_lwp_ptid.
11890 (x86_dr_low_get_control): Likewise.
11891 (x86_dr_low_get_status): Likewise.
11892
eef49a3d
PA
118932015-03-20 Pedro Alves <palves@redhat.com>
11894
11895 * tracepoint.c (cmd_qtstatus): Make "str" const.
11896
b2333d22
PA
118972015-03-20 Pedro Alves <palves@redhat.com>
11898
11899 * server.c (handle_general_set): Make "req_str" const.
11900
23f238d3
PA
119012015-03-19 Pedro Alves <palves@redhat.com>
11902
11903 * linux-low.c (linux_resume_one_lwp): Rename to ...
11904 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11905 instead call perror_with_name.
11906 (check_ptrace_stopped_lwp_gone): New function.
11907 (linux_resume_one_lwp): Reimplement as wrapper around
11908 linux_resume_one_lwp_throw that swallows errors if the LWP is
11909 gone.
11910
91baf43f
PA
119112015-03-19 Pedro Alves <palves@redhat.com>
11912
11913 * linux-low.c (count_events_callback, select_event_lwp_callback):
11914 No longer check whether the thread has resume_stop as last resume
11915 kind.
11916
8bf3b159
PA
119172015-03-19 Pedro Alves <palves@redhat.com>
11918
11919 * linux-low.c (count_events_callback, select_event_lwp_callback):
11920 Use the lwp's status_pending_p field, not the thread's.
11921
b90fc188
PA
119222015-03-19 Pedro Alves <palves@redhat.com>
11923
11924 * linux-low.c (select_event_lwp_callback): Update comments to
11925 no longer mention SIGTRAP.
11926
464b0089
GB
119272015-03-18 Gary Benson <gbenson@redhat.com>
11928
11929 * server.c (handle_query): Do not report vFile:fstat as supported.
11930
aa9e327f
GB
119312015-03-11 Gary Benson <gbenson@redhat.com>
11932
11933 * hostio.c (sys/types.h): New include.
11934 (sys/stat.h): Likewise.
11935 (common-remote-fileio.h): Likewise.
11936 (handle_fstat): New function.
11937 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11938
791c0056
GB
119392015-03-11 Gary Benson <gbenson@redhat.com>
11940
11941 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11942 struct stat.st_blocks and struct stat.st_blksize.
11943 * configure: Regenerate.
11944 * config.in: Likewise.
11945 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11946 (OBS): Add common-remote-fileio.o.
11947 (common-remote-fileio.o): New rule.
11948
9a9df970
PA
119492015-03-09 Pedro Alves <palves@redhat.com>
11950
11951 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11952 'struct sockaddr' pointer in 'accept' call.
11953
9eb1356e
PA
119542015-03-09 Pedro Alves <palves@redhat.com>
11955
11956 Revert:
11957 2015-03-07 Pedro Alves <palves@redhat.com>
11958 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11959 or <winsock2.h> here. Instead include "gdb_socket.h".
11960 (remote_open): Use union gdb_sockaddr_u.
11961 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11962 or <winsock2.h> here. Instead include "gdb_socket.h".
11963 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11964 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11965 or <sys/un.h>.
11966 (init_named_socket, gdb_agent_helper_thread): Use union
11967 gdb_sockaddr_u.
11968
aac331e4
PA
119692015-03-07 Pedro Alves <palves@redhat.com>
11970
11971 * configure.ac (build_warnings): Move
11972 -Wdeclaration-after-statement to the C-specific set.
11973 * configure: Regenerate.
11974
366c75fc
PA
119752015-03-07 Pedro Alves <palves@redhat.com>
11976
11977 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11978 or <winsock2.h> here. Instead include "gdb_socket.h".
11979 (remote_open): Use union gdb_sockaddr_u.
11980 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11981 or <winsock2.h> here. Instead include "gdb_socket.h".
11982 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11983 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11984 or <sys/un.h>.
11985 (init_named_socket, gdb_agent_helper_thread): Use union
11986 gdb_sockaddr_u.
11987
492d29ea
PA
119882015-03-07 Pedro Alves <palves@redhat.com>
11989
11990 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11991 instead.
11992
60a191ed
YQ
119932015-03-06 Yao Qi <yao.qi@linaro.org>
11994
11995 * linux-aarch64-low.c (aarch64_insert_point): Use
11996 show_debug_regs as a boolean.
11997 (aarch64_remove_point): Likewise.
11998
f5771b1d
PA
119992015-03-05 Pedro Alves <palves@redhat.com>
12000
12001 * lynx-low.c (lynx_target_ops): Install NULL hooks for
12002 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
12003 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
12004 * nto-low.c (nto_target_ops): Likewise.
12005 * spu-low.c (spu_target_ops): Likewise.
12006 * win32-low.c (win32_target_ops): Likewise.
12007
3e572f71
PA
120082015-03-04 Pedro Alves <palves@redhat.com>
12009
72f4393d 12010 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
12011 Decide whether a breakpoint triggered based on the SIGTRAP's
12012 siginfo.si_code.
72f4393d
L
12013 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
12014 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
12015 (linux_low_filter_event): Check for breakpoints before checking
12016 watchpoints.
12017 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
12018 siginfo.si_code.
72f4393d
L
12019 (linux_stopped_by_sw_breakpoint)
12020 (linux_supports_stopped_by_sw_breakpoint)
12021 (linux_stopped_by_hw_breakpoint)
12022 (linux_supports_stopped_by_hw_breakpoint): New functions.
12023 (linux_target_ops): Install new target methods.
3e572f71 12024
1ec68e26
PA
120252015-03-04 Pedro Alves <palves@redhat.com>
12026
12027 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
12028 * server.c (swbreak_feature, hwbreak_feature): New globals.
12029 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
12030 (captured_main): Clear swbreak_feature and hwbreak_feature.
12031 * server.h (swbreak_feature, hwbreak_feature): Declare.
12032 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
12033 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
12034 supports_stopped_by_hw_breakpoint>: New fields.
12035 (target_supports_stopped_by_sw_breakpoint)
12036 (target_stopped_by_sw_breakpoint)
12037 (target_supports_stopped_by_hw_breakpoint)
12038 (target_stopped_by_hw_breakpoint): Declare.
12039
15c66dd6
PA
120402015-03-04 Pedro Alves <palves@redhat.com>
12041
12042 enum lwp_stop_reason -> enum target_stop_reason
12043 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12044 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12045 (linux_wait_1, stuck_in_jump_pad_callback)
12046 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12047 (linux_stopped_by_watchpoint):
12048 * linux-low.h (enum lwp_stop_reason): Delete.
12049 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12050 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12051
98fc70d6
YQ
120522015-03-04 Yao Qi <yao.qi@linaro.org>
12053
12054 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12055
dd2ac174
GB
120562015-03-03 Gary Benson <gbenson@redhat.com>
12057
12058 * hostio.c (handle_vFile): Fix prefix lengths.
12059
d68e53f4
MM
120602015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12061
12062 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12063 ptr_bits.
12064
bf2d68ab
AA
120652015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12066
12067 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12068 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12069 (clean): Add "rm -f" for above C files.
12070 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12071 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12072 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12073 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12074 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12075 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12076 (init_registers_s390x_vx_linux64)
12077 (init_registers_s390x_tevx_linux64)
12078 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12079 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12080 declarations.
12081 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12082 (s390_store_vxrs_high): New functions.
12083 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12084 NT_S390_VXRS_HIGH.
12085 (s390_arch_setup): Add logic for selecting one of the new target
12086 descriptions. Activate the new vector regsets if applicable.
12087 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12088 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12089 and init_registers_s390x_tevx_linux64.
12090
c966a859
PA
120912015-03-01 Pedro Alves <palves@redhat.com>
12092
12093 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12094 parameter.
12095
4180215b
PA
120962015-02-27 Pedro Alves <palves@redhat.com>
12097
12098 * linux-x86-low.c (u_debugreg_offset): New function.
12099 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12100
749bab01
PA
121012015-02-27 Pedro Alves <palves@redhat.com>
12102
12103 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12104 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12105 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12106 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12107 (ps_lsetfpregs, ps_getpid)
12108 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12109 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12110 (ps_lsetxregs, ps_plog): Declare.
12111
3c14e5a3
PA
121122015-02-27 Pedro Alves <palves@redhat.com>
12113
12114 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12115 IP_AGENT_EXPORT_FUNC.
12116 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12117 IP_AGENT_EXPORT_FUNC.
12118 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12119 (IP_AGENT_EXPORT): Delete.
12120 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12121 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12122 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12123 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12124 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12125 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12126 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12127 (traceframe_read_count, traceframe_write_count)
12128 (traceframes_created, trace_state_variables, get_raw_reg)
12129 (get_trace_state_variable_value, set_trace_state_variable_value)
12130 (ust_loaded, helper_thread_id, cmd_buf): Use
12131 IPA_SYM_EXPORTED_NAME.
12132 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12133 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12134 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12135 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12136 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12137 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12138 EXTERN_C_PUSH/EXTERN_C_POP.
12139 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12140 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12141 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12142 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12143 (traceframe_write_count, traceframe_read_count)
12144 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12145 (about_to_request_buffer_space, get_trace_state_variable_value)
12146 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12147 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12148 EXTERN_C_PUSH/EXTERN_C_POP.
12149 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12150 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12151 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12152 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12153 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12154 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12155 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12156 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12157 Define.
12158 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12159 (IP_AGENT_EXPORT_VAR_DECL): Define.
12160 (tracing): Declare.
12161 (gdb_agent_get_raw_reg): Declare.
12162
fe978cb0
PA
121632015-02-27 Tom Tromey <tromey@redhat.com>
12164 Pedro Alves <palves@redhat.com>
12165
12166 Rename symbols whose names are reserved C++ keywords throughout.
12167
3bc3d82a
PA
121682015-02-27 Pedro Alves <palves@redhat.com>
12169
12170 * Makefile.in (COMPILER): New, get it from autoconf.
12171 (CXX): Get from autoconf instead.
12172 (COMPILE.pre): Use COMPILER.
12173 (CC-LD): Rename to ...
12174 (CC_LD): ... this. Use COMPILER.
12175 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12176 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12177 * acinclude.m4: Include build-with-cxx.m4.
12178 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12179 Disable -Werror by default if building in C++ mode.
12180 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12181 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12182 the C++ compiler. Save/restore CXXFLAGS too.
12183 * configure: Regenerate.
12184
07697489
PA
121852015-02-27 Pedro Alves <palves@redhat.com>
12186
12187 * acinclude.m4: Include libiberty.m4.
12188 * configure.ac: Call libiberty_INIT.
12189 * config.in, configure: Regenerate.
12190
9beb7c4e
PA
121912015-02-26 Pedro Alves <palves@redhat.com>
12192
12193 * linux-low.c (linux_wait_1): When incrementing the PC past a
12194 program breakpoint always use the_low_target.breakpoint_len as
12195 increment, rather than the maximum between that and
12196 the_low_target.decr_pc_after_break.
12197
8090aef2
PA
121982015-02-23 Pedro Alves <palves@redhat.com>
12199
12200 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12201 thread was doing a step-over; always adjust the PC if
12202 we stepped over a permanent breakpoint.
12203 (linux_wait_1): If we stepped over breakpoint that was on top of a
12204 permanent breakpoint, manually advance the PC past it.
12205
bc9540e8
PA
122062015-02-23 Pedro Alves <palves@redhat.com>
12207
12208 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12209 modes.
12210 (x86_fill_gregset, x86_store_gregset): Use it when handling
12211 $orig_eax.
12212
2db9a427
PA
122132015-02-20 Pedro Alves <palves@redhat.com>
12214
12215 * thread-db.c: Include "nat/linux-procfs.h".
12216 (thread_db_init): Skip listing new threads if the kernel supports
12217 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12218
afa8d396
PA
122192015-02-20 Pedro Alves <palves@redhat.com>
12220
12221 * linux-low.c (status_pending_p_callback): Use ptid_match.
12222
c9587f88
AT
122232015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12224
12225 PR breakpoints/16812
12226 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12227 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12228 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12229
b05ec7a5
AT
122302015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12231
12232 PR breakpoints/15956
12233 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12234
d33501a5
MM
122352015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12236
12237 * linux-low.c (linux_low_btrace_conf): Print size.
12238 * server.c (handle_btrace_conf_general_set): New.
12239 (hanle_general_set): Call handle_btrace_conf_general_set.
12240 (handle_query): Report Qbtrace-conf:bts:size as supported.
12241
f4abbc16
MM
122422015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12243
12244 * linux-low.c (linux_low_enable_btrace): Update parameters.
12245 (linux_low_btrace_conf): New.
12246 (linux_target_ops)<to_btrace_conf>: Initialize.
12247 * server.c (current_btrace_conf): New.
12248 (handle_btrace_enable): Rename to ...
12249 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
12250 to target_enable_btrace. Update comment. Update users.
12251 (handle_qxfer_btrace_conf): New.
12252 (qxfer_packets): Add btrace-conf entry.
12253 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12254 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12255 (target_ops)<read_btrace_conf>: New.
12256 (target_enable_btrace): Update parameters.
12257 (target_read_btrace_conf): New.
12258
043c3577
MM
122592015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12260
12261 * server.c (handle_btrace_general_set): Remove call to
12262 target_supports_btrace.
12263 (supported_btrace_packets): New.
12264 (handle_query): Call supported_btrace_packets.
12265 * target.h: include btrace-common.h.
12266 (btrace_target_info): Removed.
12267 (supports_btrace, target_supports_btrace): Update parameters.
12268
734b0e4b
MM
122692015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12270
12271 * Makefile.in (SFILES): Add common/btrace-common.c.
12272 (OBS): Add common/btrace-common.o.
12273 (btrace-common.o): Add build rules.
12274 * linux-low: Include btrace-common.h.
12275 (linux_low_read_btrace): Use struct btrace_data. Call
12276 btrace_data_init and btrace_data_fini.
12277
d6c146e9
PA
122782015-02-06 Pedro Alves <palves@redhat.com>
12279
12280 * thread-db.c (find_new_threads_callback): Add debug output.
12281
20ba1ce6
PA
122822015-02-04 Pedro Alves <palves@redhat.com>
12283
12284 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12285 (resume_stopped_resumed_lwps): New function.
12286 (linux_wait_for_event_filtered): Use it.
12287
8cc73a39
SDJ
122882015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12289
12290 * Makefile.in (SFILES): Add linux-personality.c.
12291 (linux-personality.o): New rule.
12292 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12293 list of objects to be built.
12294 * linux-low.c: Include nat/linux-personality.h.
12295 (linux_create_inferior): Remove code to disable address space
12296 randomization (moved to ../nat/linux-personality.c). Create
12297 cleanup to disable address space randomization.
12298
fb23d554
SDJ
122992015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12300
12301 * Makefile.in (posix-strerror.o): New rule.
12302 (mingw-strerror.o): Likewise.
12303 * configure: Regenerated.
12304 * configure.ac: Source file ../common/common.host. Initialize new
12305 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12306
cdf43629
YQ
123072015-01-14 Yao Qi <yao@codesourcery.com>
12308
12309 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12310 (ppc-linux.o): New rule.
12311 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12312 * configure.ac: AC_CHECK_FUNCS(getauxval).
12313 * config.in: Re-generated.
12314 * configure: Re-generated.
12315 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12316 ppc64_64bit_inferior_p
12317
514c5338
YQ
123182015-01-14 Yao Qi <yao@codesourcery.com>
12319
12320 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12321 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12322 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12323 (PT_ORIG_R3, PT_TRAP): Likewise.
12324 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12325 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12326 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12327
3368c1e5
JB
123282015-01-10 Joel Brobecker <brobecker@adacore.com>
12329
12330 * i387-fp.c (i387_cache_to_xsave): In look over
12331 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12332 zmmh_low_space field by use of zmmh_high_space.
12333
582511be
PA
123342015-01-09 Pedro Alves <palves@redhat.com>
12335
12336 * linux-low.c (step_over_bkpt): Move higher up in the file.
12337 (handle_extended_wait): Don't store the stop_pc here.
12338 (get_stop_pc): Adjust comments and rename to ...
12339 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12340 stopped for a software breakpoint or hardware breakpoint.
12341 (thread_still_has_status_pending_p): New function.
12342 (status_pending_p_callback): Use
12343 thread_still_has_status_pending_p. If the event is no longer
12344 interesting, resume the LWP.
12345 (handle_tracepoints): Add assert.
12346 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12347 (wstatus_maybe_breakpoint): New function.
12348 (cancel_breakpoint): Delete function.
12349 (check_stopped_by_watchpoint): New function, factored out from
12350 linux_low_filter_event.
12351 (lp_status_maybe_breakpoint): Delete function.
12352 (linux_low_filter_event): Remove filter_ptid argument.
12353 Leave thread group exits pending here. Store the LWP's stop PC.
12354 Always leave events pending.
12355 (linux_wait_for_event_filtered): Pull all events out of the
12356 kernel, and leave them all pending.
12357 (count_events_callback, select_event_lwp_callback): Consider all
12358 events.
12359 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12360 (select_event_lwp): Only give preference to the stepping LWP in
12361 all-stop mode. Adjust comments.
12362 (ignore_event): New function.
12363 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12364 references to cancel_breakpoints. Adjust to renames. Also give
12365 equal priority to all LWPs that have had events in non-stop mode.
12366 If reporting a software breakpoint event, unadjust the LWP's PC.
12367 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12368 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12369 Adjust.
12370 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12371 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12372 (linux_stopped_by_watchpoint): Adjust.
12373 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12374 * linux-low.h (enum lwp_stop_reason): New.
12375 (struct lwp_info) <stop_pc>: Adjust comment.
12376 <stopped_by_watchpoint>: Delete field.
12377 <stop_reason>: New field.
12378 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12379 * mem-break.c (software_breakpoint_inserted_here)
12380 (hardware_breakpoint_inserted_here): New function.
12381 * mem-break.h (software_breakpoint_inserted_here)
12382 (hardware_breakpoint_inserted_here): Declare.
12383 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12384 (cancel_breakpoints): Delete.
12385 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12386 (upload_fast_traceframes): Remove references to
12387 cancel_breakpoints.
12388
a33e3959
PA
123892015-01-09 Pedro Alves <palves@redhat.com>
12390
12391 * thread-db.c (find_new_threads_callback): Ignore thread if the
12392 kernel thread ID is -1.
12393
8784d563
PA
123942015-01-09 Pedro Alves <palves@redhat.com>
12395
12396 * linux-low.c (linux_attach_fail_reason_string): Move to
12397 nat/linux-ptrace.c, and rename.
12398 (linux_attach_lwp): Update comment.
12399 (attach_proc_task_lwp_callback): New function.
12400 (linux_attach): Adjust to rename and use
12401 linux_proc_attach_tgid_threads.
12402 (linux_attach_fail_reason_string): Delete declaration.
12403
76f2b779
JB
124042015-01-01 Joel Brobecker <brobecker@adacore.com>
12405
12406 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12407 * server.c (gdbserver_version): Likewise.
12408
fafcc06a
SDJ
124092014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12410
12411 * remote-utils.c: Include ctype.h.
12412 (input_interrupt): Explicitly handle the case when the char
12413 received is the NUL byte. Improve the printing of non-ASCII
12414 characters.
12415
beed38b8
JB
124162014-12-16 Joel Brobecker <brobecker@adacore.com>
12417
12418 * linux-low.c (linux_low_filter_event): Update call to
12419 linux_enable_event_reporting following the addition of
12420 a new parameter to that function.
12421
bf330350
CU
124222014-12-16 Catalin Udma <catalin.udma@freescale.com>
12423
12424 PR server/17457
12425 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12426 (AARCH64_FPCR_REGNO): Likewise.
12427 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12428 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12429 (aarch64_store_fpregset): Likewise.
12430
5227d625
JB
124312014-12-15 Joel Brobecker <brobecker@adacore.com>
12432
12433 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12434 Remove FIXME comment about assumption about N.
12435
f93b65a0
JB
124362014-12-13 Joel Brobecker <brobecker@adacore.com>
12437
12438 * configure.ac: If large-file support is disabled in GDBserver,
12439 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12440 * configure: Regenerate.
12441
e5a9158d
AA
124422014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12443
12444 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12445 warning upon ENODATA from ptrace.
12446 * linux-s390-low.c (s390_store_tdb): New.
12447 (s390_regsets): Add regset for NT_S390_TDB.
12448
feea5f36
AA
124492014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12450
12451 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12452 without a fill_function.
12453 * linux-s390-low.c (s390_fill_last_break): Remove.
12454 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12455 (s390_arch_setup): Use regset's size instead of fill_function for
12456 loop end condition.
12457
098dbe61
AA
124582014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12459
12460 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12461 the regset's store function when ptrace returned an error.
12462 * regcache.c (get_thread_regcache): Invalidate register cache
12463 before fetching inferior's registers.
12464
28eef672
AA
124652014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12466
12467 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12468 while-loop as for-loop.
12469 (regsets_store_inferior_registers): Likewise.
12470
bdca27a2
YQ
124712014-11-28 Yao Qi <yao@codesourcery.com>
12472
12473 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12474 * config.in, configure: Re-generate.
12475 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12476 is defined.
12477
9c232dda
YQ
124782014-11-21 Yao Qi <yao@codesourcery.com>
12479
12480 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12481 (AC_CHECK_HEADERS): Remove malloc.h.
12482 * configure: Re-generated.
12483 * config.in: Re-generated.
12484 * server.h: Don't include alloca.h and malloc.h.
12485 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12486 Don't include malloc.h.
12487
43968415
JB
124882014-11-17 Joel Brobecker <brobecker@adacore.com>
12489
12490 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12491 corresponding ERRNO check in same block.
12492
40e91bc7
PA
124932014-11-12 Pedro Alves <palves@redhat.com>
12494
12495 * server.c (cont_thread): Update comment.
12496 (start_inferior, attach_inferior): No longer clear cont_thread.
12497 (handle_v_cont): No longer set cont_thread.
12498 (captured_main): Clear cont_thread each time a GDB connects.
12499
c2c118cf
PA
125002014-11-12 Pedro Alves <palves@redhat.com>
12501
12502 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12503 thread, and don't resume all threads if the Hc thread has exited.
12504
78708b7c
PA
125052014-11-12 Pedro Alves <palves@redhat.com>
12506
12507 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12508 the process group instead of to a specific LWP.
12509
a2abc7de
PA
125102014-10-15 Pedro Alves <palves@redhat.com>
12511
12512 PR server/17487
12513 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12514 parameter.
12515 (arm_set_thread_context): Delete.
12516 (the_low_target): Adjust.
12517 * win32-i386-low.c (debug_registers_changed)
12518 (debug_registers_used): Delete.
12519 (update_debug_registers_callback): New function.
12520 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12521 needing to update their debug registers.
12522 (win32_get_current_dr): New function.
12523 (x86_dr_low_get_addr, x86_dr_low_get_control)
12524 (x86_dr_low_get_status): Fetch the debug register from the thread
12525 record's context.
12526 (i386_initial_stuff): Adjust.
12527 (i386_get_thread_context): Remove current_event parameter. Don't
12528 clear debug_registers_changed nor copy DR values to
12529 debug_reg_state.
12530 (i386_set_thread_context): Delete.
12531 (i386_prepare_to_resume): New function.
12532 (i386_thread_added): Mark the thread as needing to update irs
12533 debug registers.
12534 (the_low_target): Remove i386_set_thread_context and install
12535 i386_prepare_to_resume.
12536 * win32-low.c (win32_get_thread_context): Adjust.
12537 (win32_set_thread_context): Use SetThreadContext
12538 directly.
12539 (win32_prepare_to_resume): New function.
12540 (win32_require_context): New function, factored out from ...
12541 (thread_rec): ... this.
12542 (continue_one_thread): Call win32_prepare_to_resume on each thread
12543 we're about to continue.
12544 (win32_resume): Call win32_prepare_to_resume on the event thread.
12545 * win32-low.h (struct win32_thread_info)
12546 <debug_registers_changed>: New field.
12547 (struct win32_target_ops): Change prototype of set_thread_context,
12548 delete set_thread_context and add prepare_to_resume.
12549 (win32_require_context): New declaration.
12550
a442d071
GB
125512014-10-08 Gary Benson <gbenson@redhat.com>
12552
12553 * server.h: Do not include common-exceptions.h.
12554
6f1947e8
GB
125552014-10-08 Gary Benson <gbenson@redhat.com>
12556
12557 * server.h: Do not include cleanups.h.
12558
63b434a4
JH
125592014-09-30 James Hogan <james.hogan@imgtec.com>
12560
12561 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12562 mips64-dsp-linux.c.
12563
c4d9ceb6
YQ
125642014-09-23 Yao Qi <yao@codesourcery.com>
12565
12566 * linux-low.c (lp_status_maybe_breakpoint): New function.
12567 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12568 (count_events_callback): Likewise.
12569 (select_event_lwp_callback): Likewise.
12570 (cancel_breakpoints_callback): Likewise.
12571
89a5711c
DB
125722014-09-19 Don Breazeal <donb@codesourcery.com>
12573
12574 * linux-low.c (handle_extended_wait): Call
12575 linux_ptrace_get_extended_event.
12576 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12577 linux_is_extended_waitstatus.
12578
bffc0964
JB
125792014-09-16 Joel Brobecker <brobecker@adacore.com>
12580
12581 * Makefile.in (CPPFLAGS): Define.
12582 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12583 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12584
0bfdf32f
GB
125852014-09-16 Gary Benson <gbenson@redhat.com>
12586
12587 * inferiors.h (current_inferior): Renamed as...
12588 (current_thread): New variable. All uses updated.
12589 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12590 (maybe_move_out_of_jump_pad): Likewise.
12591 (cancel_breakpoint): Likewise.
12592 (linux_low_filter_event): Likewise.
12593 (wait_for_sigstop): Likewise.
12594 (linux_resume_one_lwp): Likewise.
12595 (need_step_over_p): Likewise.
12596 (start_step_over): Likewise.
12597 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12598 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12599 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12600 and save_inferior as saved_thread.
12601 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12602 saved_thread.
12603 (regcache_invalidate_thread): Likewise.
12604 * remote-utils.c (prepare_resume_reply): Likewise.
12605 * thread-db.c (thread_db_get_tls_address): Likewise.
12606 (disable_thread_event_reporting): Likewise.
12607 (remove_thread_event_breakpoints): Likewise.
12608 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12609 as saved_thread.
12610 * target.h (set_desired_inferior): Renamed as...
12611 (set_desired_thread): New declaration. All uses updated.
12612 * server.c (myresume): Updated comment to reference thread instead
12613 of inferior.
12614 (handle_serial_event): Likewise.
12615 (handle_target_event): Likewise.
12616
361c8ade
GB
126172014-09-12 Tom Tromey <tromey@redhat.com>
12618 Gary Benson <gbenson@redhat.com>
12619
12620 * regcache.h: Include common-regcache.h.
12621 (regcache_read_pc): Don't declare.
12622 * regcache.c (get_thread_regcache_for_ptid): New function.
12623
bd9269f7
GB
126242014-09-11 Tom Tromey <tromey@redhat.com>
12625 Gary Benson <gbenson@redhat.com>
12626
12627 * symbol.c: New file.
12628 * Makefile.in (SFILES): Add symbol.c.
12629 (OBS): Add symbol.o.
12630
f8c1d06b
GB
126312014-09-11 Gary Benson <gbenson@redhat.com>
12632
12633 * target.c (target_stop_ptid, target_continue_ptid): New
12634 functions.
12635
721ec300
GB
126362014-09-11 Tom Tromey <tromey@redhat.com>
12637 Gary Benson <gbenson@redhat.com>
12638
12639 * target.h: Include target/target.h.
12640 * target.c (target_read_memory, target_read_uint32)
12641 (target_write_memory): New functions.
12642
c5e92cca
GB
126432014-09-11 Gary Benson <gbenson@redhat.com>
12644
12645 * server.h (debug_hw_points): Don't declare.
12646 * server.c (debug_hw_points): Don't define. Replace all uses
12647 with show_debug_regs.
12648 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12649 all uses with show_debug_regs.
12650
2e4bb98a
EBM
126512014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12652
12653 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12654 endianness into account.
12655 (ppc_supply_ptrace_register): Likewise.
12656
ac740bc7
JH
126572014-09-03 James Hogan <james.hogan@imgtec.com>
12658
12659 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12660 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12661
97ea6506
GB
126622014-09-03 Gary Benson <gbenson@redhat.com>
12663
12664 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12665 ALL_DEBUG_ADDRESS_REGISTERS.
12666
df7e5265
GB
126672014-09-02 Gary Benson <gbenson@redhat.com>
12668
12669 * i386-low.h: Renamed as...
12670 * x86-low.h: New file. All type, function and variable name
12671 prefixes changed from "i386_" to "x86_". All references updated.
12672 * i386-low.c: Renamed as...
12673 * x86-low.c: New file. All type, function and variable name
12674 prefixes changed from "i386_" to "x86_". All references updated.
12675
ed859da7
GB
126762014-09-02 Gary Benson <gbenson@redhat.com>
12677
12678 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12679 (x86_linux_new_thread): Likewise.
12680
860789c7
GB
126812014-08-29 Gary Benson <gbenson@redhat.com>
12682
12683 * server.h (setjmp.h): Do not include.
12684 (toplevel): Do not declare.
12685 (common-exceptions.h): Include.
12686 (cleanups.h): Likewise.
12687 * server.c (toplevel): Do not define.
12688 (exit_code): New static global.
12689 (detach_or_kill_for_exit_cleanup): New function.
12690 (main): New function. Original main renamed to...
12691 (captured_main): New function.
12692 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12693
ff55e1b5
GB
126942014-08-29 Gary Benson <gbenson@redhat.com>
12695
12696 * Makefile.in (SFILES): Add common/common-exceptions.c.
12697 (OBS): Add common-exceptions.o.
12698 (common-exceptions.o): New rule.
12699 * utils.c (prepare_to_throw_exception): New function.
12700
e9bcb658
GB
127012014-08-29 Gary Benson <gbenson@redhat.com>
12702
12703 * config.in: Regenerate.
12704 * configure: Likewise.
12705
e3180625
GB
127062014-08-29 Gary Benson <gbenson@redhat.com>
12707
12708 * Makefile.in (SFILES): Add common/cleanups.c.
12709 (OBS): cleanups.o.
12710 (cleanups.o): New rule.
12711
e3d6ba5d
GB
127122014-08-29 Gary Benson <gbenson@redhat.com>
12713
12714 * utils.c (internal_vwarning): New function.
12715
7096e886
GB
127162014-08-28 Gary Benson <gbenson@redhat.com>
12717
12718 * utils.h (fatal): Remove declaration.
12719 * utils.c (fatal): Remove function.
12720
14ce3192
GB
127212014-08-28 Gary Benson <gbenson@redhat.com>
12722
12723 * tracepoint.c (gdb_agent_init): Replace fatal with
12724 perror_with_name.
12725 (initialize_tracepoint): Likewise.
12726
50278d59
GB
127272014-08-28 Gary Benson <gbenson@redhat.com>
12728
12729 * remote-utils.c (remote_prepare): Replace fatal with error.
12730
aa96c426
GB
127312014-08-28 Gary Benson <gbenson@redhat.com>
12732
12733 * linux-low.c (linux_async): Replace fatal with warning.
12734 Tidy up and return.
12735 (linux_start_non_stop): Return -1 if linux_async failed.
12736
f7160e97
GB
127372014-08-28 Gary Benson <gbenson@redhat.com>
12738
12739 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12740 gdb_assert.
12741 (i386_dr_low_get_addr): Remove vague comment.
12742 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12743 gdb_assert.
12744
38e08fca
GB
127452014-08-28 Gary Benson <gbenson@redhat.com>
12746
12747 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12748 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12749 internal_error.
12750 (linux_resume_one_lwp): Likewise.
12751 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12752 gdb_assert.
12753 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12754 with internal_error.
12755 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12756 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12757 (find_register_by_name): Replace fatal with internal_error.
12758 (find_regno): Likewise.
12759 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12760 * thread-db.c (thread_db_create_event): Likewise.
12761 (thread_db_load_search): Likewise.
12762 (try_thread_db_load_1): Likewise.
12763 * tracepoint.c (get_jump_space_head): Replace fatal with
12764 internal_error.
12765 (claim_trampoline_space): Likewise.
12766 (have_fast_tracepoint_trampoline_buffer): Likewise.
12767 (cmd_qtstart): Likewise.
12768 (stop_tracing): Likewise.
12769 (fast_tracepoint_collecting): Likewise.
12770 (target_malloc): Likewise.
12771 (download_tracepoint): Likewise.
12772 (download_trace_state_variables): Replace check with gdb_assert.
12773 (upload_fast_traceframes): Replace fatal with internal_error.
12774
34abf635
GB
127752014-08-19 Tom Tromey <tromey@redhat.com>
12776 Gary Benson <gbenson@redhat.com>
12777
12778 * Makefile.in (SFILES): Add common/common-debug.c.
12779 (OBS): Add common-debug.o.
12780 (common-debug.o): New rule.
12781 * debug.h (debug_printf): Don't declare.
12782 * debug.c (debug_printf): Renamed and rewritten as...
12783 (debug_vprintf): New function.
12784
f6e94d78
GB
127852014-08-19 Gary Benson <gbenson@redhat.com>
12786
12787 * utils.h: Do not include print-utils.h.
12788
9239eeab
GB
127892014-08-19 Tom Tromey <tromey@redhat.com>
12790 Gary Benson <gbenson@redhat.com>
12791
12792 * server.h: Add static assertion.
12793 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12794
ef87c8bb
GB
127952014-08-19 Tom Tromey <tromey@redhat.com>
12796 Gary Benson <gbenson@redhat.com>
12797
12798 * Makefile.in (SFILES): Add common/errors.c.
12799 (OBS): Add errors.o.
12800 (IPA_OBS): Add errors-ipa.o.
12801 (errors.o): New rule.
12802 (errors-ipa.o): Likewise.
12803 * utils.h (perror_with_name, error, warning): Don't declare.
12804 * utils.c (warning): Renamed and rewritten as...
12805 (vwarning): New function.
12806 (error): Renamed and rewritten as...
12807 (verror): New function.
12808 (internal_error): Renamed and rewritten as...
12809 (internal_verror): New function.
12810
bb974a24
GB
128112014-08-07 Gary Benson <gbenson@redhat.com>
12812
12813 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12814 * configure: Regenerate.
12815 * config.in: Likewise.
12816 * server.h: Do not include errno.h.
12817 * event-loop.c: Likewise.
12818 * hostio-errno.c: Likewise.
12819 * linux-low.c: Likewise.
12820 * remote-utils.c: Likewise.
12821 * spu-low.c: Likewise.
12822 * utils.c: Likewise.
12823 * gdbreplay.c: Unconditionally include errno.h.
12824
6d3d12eb
GB
128252014-08-07 Gary Benson <gbenson@redhat.com>
12826
12827 * server.h: Do not include string.h.
12828 * event-loop.c: Likewise.
12829 * linux-low.c: Likewise.
12830 * regcache.c: Likewise.
12831 * remote-utils.c: Likewise.
12832 * spu-low.c: Likewise.
12833 * utils.c: Likewise.
12834
dccbb609
GB
128352014-08-07 Gary Benson <gbenson@redhat.com>
12836
12837 * server.h: Do not include gdb_assert.h.
12838
e76df0d0
GB
128392014-08-07 Gary Benson <gbenson@redhat.com>
12840
12841 * server.h: Do not include common-utils.h.
12842
4cb9c816
GB
128432014-08-07 Gary Benson <gbenson@redhat.com>
12844
12845 * server.h: Do not include ptid.h.
12846 * notif.h: Likewise.
12847
3995eeee
GB
128482014-08-07 Gary Benson <gbenson@redhat.com>
12849
12850 * server.h: Do not include gdb_locale.h.
12851
cb9f1a9b
GB
128522014-08-07 Gary Benson <gbenson@redhat.com>
12853
12854 * server.h: Do not include gdb/signals.h.
12855 * win32-low.c: Likewise.
12856
a5fceff8
GB
128572014-08-07 Gary Benson <gbenson@redhat.com>
12858
12859 * server.h: Do not include pathmax.h.
12860
b9391142
GB
128612014-08-07 Gary Benson <gbenson@redhat.com>
12862
12863 * server.h: Do not include libiberty.h.
12864 * linux-bfin-low.c: Likewise.
12865
0e443c87
GB
128662014-08-07 Gary Benson <gbenson@redhat.com>
12867
12868 * server.h: Do not include ansidecl.h.
12869
8ebb3f56
GB
128702014-08-07 Gary Benson <gbenson@redhat.com>
12871
12872 * linux-x86-low.c: Do not include stddef.h.
12873 * lynx-ppc-low.c: Likewise.
12874 * tracepoint.c: Likewise.
12875
8980bdf6
GB
128762014-08-07 Gary Benson <gbenson@redhat.com>
12877
12878 * server.h: Do not include stdarg.h.
12879 * nto-low.c: Likewise.
12880
d7096f71
GB
128812014-08-07 Gary Benson <gbenson@redhat.com>
12882
12883 * server.h: Do not include stdlib.h.
12884 * inferiors.c: Likewise.
12885 * linux-low.c: Likewise.
12886 * regcache.c: Likewise.
12887 * spu-low.c: Likewise.
12888 * tracepoint.c: Likewise.
12889 * utils.c: Likewise.
12890
d02f550d
GB
128912014-08-07 Gary Benson <gbenson@redhat.com>
12892
12893 * server.h: Do not include stdio.h.
12894 * linux-low.c: Likewise.
12895 * remote-utils.c: Likewise.
12896 * spu-low.c: Likewise.
12897 * utils.c: Likewise.
12898 * wincecompat.c: Likewise.
12899
87f6c4e3
GB
129002014-08-06 Gary Benson <gbenson@redhat.com>
12901
12902 * regcache.c (init_register_cache): Move conditionals inside if.
12903
7089dca4
GB
129042014-08-06 Gary Benson <gbenson@redhat.com>
12905
12906 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12907
462f517e
GB
129082014-07-31 Gary Benson <gbenson@redhat.com>
12909
12910 * ax.h: Do not include server.h.
12911 * gdbthread.h: Likewise.
12912 * lynx-low.h: Likewise.
12913 * notif.h: Likewise.
12914
976411d6
GB
129152014-07-30 Gary Benson <gbenson@redhat.com>
12916
12917 * server.h: Include common-defs.h.
12918 Do not include config.h or build-gnulib-gdbserver/config.h.
12919
d41f6d8e
GB
129202014-07-30 Gary Benson <gbenson@redhat.com>
12921
12922 * hostio-errno.c: Move server.h to top of includes list.
12923 * inferiors.c: Likewise.
12924 * linux-x86-low.c: Likewise.
12925 * notif.c: Include server.h.
12926
314c6a35
TT
129272014-07-24 Tom Tromey <tromey@redhat.com>
12928 Gary Benson <gbenson@redhat.com>
12929
12930 * server.h (CORE_ADDR): Now unsigned.
12931
69ff6be5
PA
129322014-07-16 Pedro Alves <palves@redhat.com>
12933
12934 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12935
ce9e3fe7
PA
129362014-07-15 Pedro Alves <palves@redhat.com>
12937
12938 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12939 copy.
12940
e76126e8
PA
129412014-07-11 Pedro Alves <palves@redhat.com>
12942
12943 * linux-low.c (kill_wait_lwp): New function, based on
12944 kill_one_lwp_callback, but use my_waitpid directly.
12945 (kill_one_lwp_callback, linux_kill): Use it.
12946
8e9db26e
PA
129472014-06-23 Pedro Alves <palves@redhat.com>
12948
12949 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12950 before setting DR0..DR3.
12951
698b3e08
GB
129522014-06-20 Gary Benson <gbenson@redhat.com>
12953
12954 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12955 * configure: Regenerated.
12956 * config.in: Likewise.
12957
125f8a3d
GB
129582014-06-20 Gary Benson <gbenson@redhat.com>
12959
12960 * Makefile.in (SFILES): Update locations for files moved
12961 from common to nat.
12962 (object file files): Reordered.
12963
42995dbd
GB
129642014-06-20 Gary Benson <gbenson@redhat.com>
12965
12966 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12967 (i386_dr_low_set_addr): Likewise.
12968 (i386_dr_low_get_addr): Likewise.
12969 (i386_dr_low_can_set_control): Likewise.
12970 (i386_dr_low_set_control): Likewise.
12971 (i386_dr_low_get_control): Likewise.
12972 (i386_dr_low_get_status): Likewise.
12973 (i386_get_debug_register_length): Likewise.
12974 * linux-x86-low.c (i386_dr_low_set_addr):
12975 Changed signature. Made static.
12976 (i386_dr_low_get_addr): Likewise.
12977 (i386_dr_low_set_control): Likewise.
12978 (i386_dr_low_get_control): Likewise.
12979 (i386_dr_low_get_status): Likewise.
12980 (i386_dr_low): New global variable.
12981 * win32-i386-low.c (i386_dr_low_set_addr):
12982 Changed signature. Made static.
12983 (i386_dr_low_get_addr): Likewise.
12984 (i386_dr_low_set_control): Likewise.
12985 (i386_dr_low_get_control): Likewise.
12986 (i386_dr_low_get_status): Likewise.
12987 (i386_dr_low): New global variable.
12988
e1d2394b
MS
129892014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12990
12991 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12992 * Makefile.in (AR, AR_FLAGS): Define.
12993 * configure: Regenerate.
12994
3a8ee006
GB
129952014-06-19 Gary Benson <gbenson@redhat.com>
12996
12997 * Makefile.in (i386-dregs.o): New rule.
12998 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12999 * i386-low.c (target.h): Remove include.
13000 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
13001 (DR_CONTROL_SHIFT): Likewise.
13002 (DR_CONTROL_SIZE): Likewise.
13003 (DR_RW_EXECUTE): Likewise.
13004 (DR_RW_WRITE): Likewise.
13005 (DR_RW_READ): Likewise.
13006 (DR_RW_IORW): Likewise.
13007 (DR_LEN_1): Likewise.
13008 (DR_LEN_2): Likewise.
13009 (DR_LEN_4): Likewise.
13010 (DR_LEN_8): Likewise.
13011 (DR_LOCAL_ENABLE_SHIFT): Likewise.
13012 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
13013 (DR_ENABLE_SIZE): Likewise.
13014 (DR_LOCAL_SLOWDOWN): Likewise.
13015 (DR_GLOBAL_SLOWDOWN): Likewise.
13016 (DR_CONTROL_RESERVED): Likewise.
13017 (I386_DR_CONTROL_MASK): Likewise.
13018 (I386_DR_VACANT): Likewise.
13019 (I386_DR_LOCAL_ENABLE): Likewise.
13020 (I386_DR_GLOBAL_ENABLE): Likewise.
13021 (I386_DR_DISABLE): Likewise.
13022 (I386_DR_SET_RW_LEN): Likewise.
13023 (I386_DR_GET_RW_LEN): Likewise.
13024 (I386_DR_WATCH_HIT): Likewise.
13025 (i386_wp_op_t): Likewise.
13026 (i386_show_dr): Likewise.
13027 (i386_length_and_rw_bits): Likewise.
13028 (i386_insert_aligned_watchpoint): Likewise.
13029 (i386_remove_aligned_watchpoint): Likewise.
13030 (i386_handle_nonaligned_watchpoint): Likewise.
13031 i386_update_inferior_debug_regs(): 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
8f26655c
GB
130382014-06-19 Gary Benson <gbenson@redhat.com>
13039
13040 * i386-low.c (i386_dr_show): Renamed to
13041 i386_show_dr and made static. All uses updated.
13042 (i386_dr_length_and_rw_bits): Renamed to
13043 i386_length_and_rw_bits and made static.
13044 All uses updated.
13045 (i386_dr_insert_aligned_watchpoint): Renamed to
13046 i386_insert_aligned_watchpoint and made static.
13047 All uses updated.
13048 (i386_dr_remove_aligned_watchpoint): Renamed to
13049 i386_remove_aligned_watchpoint and made static.
13050 All uses updated.
13051 (i386_dr_update_inferior_debug_regs): Renamed to
13052 i386_update_inferior_debug_regs and made static.
13053 All uses updated.
13054
b9228891
GB
130552014-06-18 Gary Benson <gbenson@redhat.com>
13056
5171def3
GB
13057 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13058 (i386_dr_low_can_set_control): Likewise.
13059 (i386_get_debug_register_length): Likewise.
13060 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13061 (i386_dr_low_can_set_control): Likewise.
13062 (i386_get_debug_register_length): Likewise.
13063
130642014-06-17 Gary Benson <gbenson@redhat.com>
13065
b9228891
GB
13066 * i386-low.h (i386-dregs.h): New include.
13067 (DR_FIRSTADDR): Now in i386-dregs.h.
13068 (DR_LASTADDR): Likewise.
13069 (DR_NADDR): Likewise.
13070 (DR_STATUS): Likewise.
13071 (DR_CONTROL): Likewise.
13072 (i386_debug_reg_state): Likewise.
13073 (i386_dr_insert_watchpoint): Likewise.
13074 (i386_dr_remove_watchpoint): Likewise.
13075 (i386_dr_region_ok_for_watchpoint): Likewise.
13076 (i386_dr_stopped_data_address): Likewise.
13077 (i386_dr_stopped_by_watchpoint): Likewise.
13078 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13079
4be83cc2
GB
130802014-06-18 Gary Benson <gbenson@redhat.com>
13081
13082 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13083 i386_dr_insert_watchpoint.
13084 (i386_low_remove_watchpoint): Renamed to
13085 i386_dr_remove_watchpoint.
13086 (i386_low_region_ok_for_watchpoint): Renamed to
13087 i386_dr_region_ok_for_watchpoint.
13088 (i386_low_stopped_data_address): Renamed to
13089 i386_dr_stopped_data_address.
13090 (i386_low_stopped_by_watchpoint): Renamed to
13091 i386_dr_stopped_by_watchpoint.
13092 * i386-low.c (i386_show_dr): Renamed to
13093 i386_dr_show and made nonstatic. All uses updated.
13094 (i386_length_and_rw_bits): Renamed to
13095 i386_dr_length_and_rw_bits and made nonstatic.
13096 All uses updated.
13097 (i386_insert_aligned_watchpoint): Renamed to
13098 i386_dr_insert_aligned_watchpoint and made nonstatic.
13099 All uses updated.
13100 (i386_remove_aligned_watchpoint): Renamed to
13101 i386_dr_remove_aligned_watchpoint and made nonstatic.
13102 All uses updated.
13103 (i386_update_inferior_debug_regs): Renamed to
13104 i386_dr_update_inferior_debug_regs and made nonstatic.
13105 All uses updated.
13106 (i386_low_insert_watchpoint): Renamed to
13107 i386_dr_insert_watchpoint. All uses updated.
13108 (i386_low_remove_watchpoint): Renamed to
13109 i386_dr_remove_watchpoint. All uses updated.
13110 (i386_low_region_ok_for_watchpoint): Renamed to
13111 i386_dr_region_ok_for_watchpoint. All uses updated.
13112 (i386_low_stopped_data_address): Renamed to
13113 i386_dr_stopped_data_address. All uses updated.
13114 (i386_low_stopped_by_watchpoint): Renamed to
13115 i386_dr_stopped_by_watchpoint. All uses updated.
13116
131aa0d4
GB
131172014-06-18 Gary Benson <gbenson@redhat.com>
13118
13119 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13120 (i386_dr_low_can_set_control): Likewise.
13121 (i386_insert_aligned_watchpoint): New check.
13122
d9305f7f
GB
131232014-06-18 Gary Benson <gbenson@redhat.com>
13124
13125 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13126 Renamed to state.
13127
e927c9fc
GB
131282014-06-18 Gary Benson <gbenson@redhat.com>
13129
13130 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13131 instead of fatal and error.
13132 (i386_handle_nonaligned_watchpoint): Likewise.
13133
1b6d4134
GB
131342014-06-18 Gary Benson <gbenson@redhat.com>
13135
13136 * i386-low.c (i386_get_debug_register_length): New macro.
13137 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13138 (i386_show_dr): Use debug_printf instead of fprintf. Use
13139 phex to format values.
13140
6e62758f
GB
131412014-06-18 Gary Benson <gbenson@redhat.com>
13142
13143 * i386-low.h: Comment changes.
13144 * i386-low.c: Likewise.
13145
fc6e2f03
GB
131462014-06-18 Gary Benson <gbenson@redhat.com>
13147
13148 * i386-low.c: Whitespace changes.
13149
f9d1eeed
TT
131502014-06-12 Tom Tromey <tromey@redhat.com>
13151
13152 * utils.c (freeargv): Remove.
13153
0b04e523
TT
131542014-06-12 Tom Tromey <tromey@redhat.com>
13155
13156 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13157 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13158 (parse_debug_format_options): Likewise.
13159 (gdbserver_usage): Likewise.
13160 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13161 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13162 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13163 against libiberty.
13164 ($(LIBGNU)): Depend on libiberty.
13165 (all-lib): Recurse into all subdirs.
13166 (install-only): Invoke "install" target in subdirs.
13167 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13168 targets.
13169 * configure: Rebuild.
13170 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13171 for vasprintf, vsnprintf, or gettimeofday.
13172 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13173 srv_tgtobj.
13174
270c9937
JB
131752014-06-05 Joel Brobecker <brobecker@adacore.com>
13176
13177 * development.sh: Delete.
13178 * Makefile.in (config.status): Adjust dependency on development.sh.
13179 * configure.ac: Adjust development.sh source call.
13180 * configure: Regenerate.
13181
0a261ed8
PA
131822014-06-02 Pedro Alves <palves@redhat.com>
13183
13184 * ax.c (gdb_free_agent_expr): New function.
13185 * ax.h (gdb_free_agent_expr): New declaration.
13186 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13187 list.
13188 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13189 static.
13190 (clear_breakpoint_conditions_and_commands): New function.
13191 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13192 (clear_breakpoint_conditions_and_commands): New declaration.
13193
e9dae05e
RR
131942014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13195
13196 * linux-aarch64-low.c (asm/ptrace.h): Include.
13197
5876f503
JK
131982014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13199
13200 Fix TLS access for -static -pthread.
13201 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13202 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13203 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13204
802e8e6d
PA
132052014-05-20 Pedro Alves <palves@redhat.com>
13206
13207 * linux-aarch64-low.c (aarch64_insert_point)
13208 (aarch64_remove_point): No longer check whether the type is
13209 supported here. Adjust to new interface.
13210 (the_low_target): Install aarch64_supports_z_point_type as
13211 supports_z_point_type method.
13212 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13213 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13214 instead of a Z packet char. Adjust.
13215 (arm_supports_z_point_type): New function.
13216 (arm_insert_point, arm_remove_point): Adjust to new interface.
13217 (the_low_target): Install arm_supports_z_point_type.
13218 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13219 (cris_insert_point, cris_remove_point): Adjust to new interface.
13220 Don't check whether the type is supported here.
13221 (the_low_target): Install cris_supports_z_point_type.
13222 * linux-low.c (linux_supports_z_point_type): New function.
13223 (linux_insert_point, linux_remove_point): Adjust to new interface.
13224 * linux-low.h (struct linux_target_ops) <insert_point,
13225 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13226 raw_breakpoint pointer parameter.
13227 <supports_z_point_type>: New method.
13228 * linux-mips-low.c (mips_supports_z_point_type): New function.
13229 (mips_insert_point, mips_remove_point): Adjust to new interface.
13230 Use mips_supports_z_point_type.
13231 (the_low_target): Install mips_supports_z_point_type.
13232 * linux-ppc-low.c (the_low_target): Install NULL as
13233 supports_z_point_type method.
13234 * linux-s390-low.c (the_low_target): Install NULL as
13235 supports_z_point_type method.
13236 * linux-sparc-low.c (the_low_target): Install NULL as
13237 supports_z_point_type method.
13238 * linux-x86-low.c (x86_supports_z_point_type): New function.
13239 (x86_insert_point): Adjust to new insert_point interface. Use
13240 insert_memory_breakpoint. Adjust to new
13241 i386_low_insert_watchpoint interface.
13242 (x86_remove_point): Adjust to remove_point interface. Use
13243 remove_memory_breakpoint. Adjust to new
13244 i386_low_remove_watchpoint interface.
13245 (the_low_target): Install x86_supports_z_point_type.
13246 * lynx-low.c (lynx_target_ops): Install NULL as
13247 supports_z_point_type callback.
13248 * nto-low.c (nto_supports_z_point_type): New.
13249 (nto_insert_point, nto_remove_point): Adjust to new interface.
13250 (nto_target_ops): Install nto_supports_z_point_type.
13251 * mem-break.c: Adjust intro comment.
13252 (struct raw_breakpoint) <raw_type, size>: New fields.
13253 <inserted>: Update comment.
13254 <shlib_disabled>: Delete field.
13255 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13256 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13257 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13258 (raw_bkpt_type_to_target_hw_bp_type): New function.
13259 (find_enabled_raw_code_breakpoint_at): New function.
13260 (find_raw_breakpoint_at): New type and size parameters. Use them.
13261 (insert_memory_breakpoint): New function, based off
13262 set_raw_breakpoint_at.
13263 (remove_memory_breakpoint): New function.
13264 (set_raw_breakpoint_at): Reimplement.
13265 (set_breakpoint): New, based on set_breakpoint_at.
13266 (set_breakpoint_at): Reimplement.
13267 (delete_raw_breakpoint): Go through the_target->remove_point
13268 instead of assuming memory breakpoints.
13269 (find_gdb_breakpoint_at): Delete.
13270 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13271 (find_gdb_breakpoint): New function.
13272 (set_gdb_breakpoint_at): Delete.
13273 (z_type_supported): New function.
13274 (set_gdb_breakpoint_1): New function, loosely based off
13275 set_gdb_breakpoint_at.
13276 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13277 (delete_gdb_breakpoint_at): Delete.
13278 (delete_gdb_breakpoint_1): New function, loosely based off
13279 delete_gdb_breakpoint_at.
13280 (delete_gdb_breakpoint): New function.
13281 (clear_gdb_breakpoint_conditions): Rename to ...
13282 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13283 breakpoint.
13284 (add_condition_to_breakpoint): Make static.
13285 (add_breakpoint_condition): Take a struct breakpoint pointer
13286 instead of an address. Adjust.
13287 (gdb_condition_true_at_breakpoint): Rename to ...
13288 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13289 z_type parameter.
13290 (gdb_condition_true_at_breakpoint): Reimplement.
13291 (add_breakpoint_commands): Take a struct breakpoint pointer
13292 instead of an address. Adjust.
13293 (gdb_no_commands_at_breakpoint): Rename to ...
13294 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13295 parameter. Return true if no breakpoint was found. Change debug
13296 output.
13297 (gdb_no_commands_at_breakpoint): Reimplement.
13298 (run_breakpoint_commands): Rename to ...
13299 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13300 and change return type to boolean.
13301 (run_breakpoint_commands): New function.
13302 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13303 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13304 breakpoint. Go through the_target->remove_point instead of
13305 assuming memory breakpoint.
13306 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13307 software and hardware breakpoints.
13308 (reinsert_raw_breakpoint): Go through the_target->insert_point
13309 instead of assuming memory breakpoint.
13310 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13311 software and hardware breakpoints.
13312 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13313 Check both software and hardware breakpoints.
13314 (validate_inserted_breakpoint): Assert the breakpoint is a
13315 software breakpoint. Set the inserted flag to -1 instead of
13316 setting shlib_disabled.
13317 (delete_disabled_breakpoints): Adjust.
13318 (validate_breakpoints): Only validate software breakpoints.
13319 Adjust to inserted flag change.
13320 (check_mem_read, check_mem_write): Skip breakpoint types other
13321 than software breakpoints. Adjust to inserted flag change.
13322 * mem-break.h (enum raw_bkpt_type): New enum.
13323 (raw_breakpoint, struct process_info): Forward declare.
13324 (Z_packet_to_target_hw_bp_type): Delete declaration.
13325 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13326 (set_gdb_breakpoint, delete_gdb_breakpoint)
13327 (clear_breakpoint_conditions): New declarations.
13328 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13329 (breakpoint_inserted_here): Update comment.
13330 (add_breakpoint_condition, add_breakpoint_commands): Replace
13331 address parameter with a breakpoint pointer parameter.
13332 (gdb_breakpoint_here): Update comment.
13333 (delete_gdb_breakpoint_at): Delete.
13334 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13335 * server.c (process_point_options): Take a struct breakpoint
13336 pointer instead of an address. Adjust.
13337 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13338 delete_gdb_breakpoint.
13339 * spu-low.c (spu_target_ops): Install NULL as
13340 supports_z_point_type method.
13341 * target.h: Include mem-break.h.
13342 (struct target_ops) <prepare_to_access_memory>: Update comment.
13343 <supports_z_point_type>: New field.
13344 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13345 instead of a char. Also take a raw breakpoint pointer.
13346 * win32-arm-low.c (the_low_target): Install NULL as
13347 supports_z_point_type.
13348 * win32-i386-low.c (i386_supports_z_point_type): New function.
13349 (i386_insert_point, i386_remove_point): Adjust to new interface.
13350 (the_low_target): Install i386_supports_z_point_type.
13351 * win32-low.c (win32_supports_z_point_type): New function.
13352 (win32_insert_point, win32_remove_point): Adjust to new interface.
13353 (win32_target_ops): Install win32_supports_z_point_type.
13354 * win32-low.h (struct win32_target_ops):
13355 <supports_z_point_type>: New method.
13356 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13357 instead of a char. Also take a raw breakpoint pointer.
13358
932539e3
PA
133592014-05-20 Pedro Alves <palves@redhat.com>
13360
13361 * mem-break.h: Include break-common.h.
13362 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13363 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13364 (Z_packet_to_target_hw_bp_type): New declaration.
13365 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13366 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13367 (Z_PACKET_ACCESS_WP): Delete macros.
13368 (Z_packet_to_hw_type): Delete function.
13369 * i386-low.h: Don't include break-common.h here.
13370 (Z_packet_to_hw_type): Delete declaration.
13371 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13372 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13373 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13374 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13375 * linux-aarch64-low.c: Don't include break-common.h here.
13376 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13377 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13378 (Z_packet_to_target_hw_bp_type): Delete function.
13379 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13380 function.
13381 (mips_insert_point, mips_remove_point): Use
13382 Z_packet_to_target_hw_bp_type.
13383
4ff0d3d8
PA
133842014-05-20 Pedro Alves <palves@redhat.com>
13385
13386 * linux-aarch64-low.c: Include break-common.h.
13387 (enum target_point_type): Delete.
13388 (Z_packet_to_point_type): Rename to ...
13389 (Z_packet_to_target_hw_bp_type): ... this, and return a
13390 target_hw_bp_type instead.
13391 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13392 instead of an enum target_point_type.
13393 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13394 breakpoint type.
13395 (aarch64_dr_state_insert_one_point)
13396 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13397 (aarch64_handle_aligned_watchpoint)
13398 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13399 Take an enum target_hw_bp_type instead of an enum
13400 target_point_type.
13401 (aarch64_supports_z_point_type): New function.
13402 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13403 use Z_packet_to_target_hw_bp_type.
13404
786dc519
JB
134052014-05-20 Joel Brobecker <brobecker@adacore.com>
13406
13407 * configure.ac: Only use -Werror by default when DEVELOPMENT
13408 is true.
13409 * configure: Regenerate.
13410
9e0aa64f
JK
134112014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13412
13413 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13414 * linux-x86-low.c (X86_64_USER_REGS): New.
13415 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13416
2b577b92
YQ
134172014-04-28 Yao Qi <yao@codesourcery.com>
13418
13419 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13420 name.
13421
94611da2
PA
134222014-04-25 Pedro Alves <palves@redhat.com>
13423
13424 PR server/16255
13425 * linux-low.c (linux_attach_fail_reason_string): New function.
13426 (linux_attach_lwp): Delete.
13427 (linux_attach_lwp_1): Rename to ...
13428 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13429 argument. Remove "initial" parameter. Return int instead of
13430 void. Don't error or warn here.
13431 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13432 failure to attach to the tgid. Call warning when failing to
13433 attach to an lwp.
13434 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13435 argument. Remove "initial" parameter. Return int instead of
13436 void. Don't error or warn here.
13437 (linux_attach_fail_reason_string): New declaration.
13438 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13439 interface change. Use linux_attach_fail_reason_string.
13440
01f9f808
MS
134412014-04-24 Michael Sturm <michael.sturm@mintel.com>
13442 Walfred Tedeschi <walfred.tedeschi@intel.com>
13443
13444 * Makefile.in: Added rules to handle new files
13445 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13446 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13447 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13448 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13449 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13450 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13451 x32-avx512-linux.o.
13452 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13453 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13454 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13455 i386/x32-avx512.xml.
13456 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13457 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13458 i386/x32-avx512-linux.xml.
13459 * i387-fp.c (num_avx512_k_registers): New constant for number
13460 of K registers.
13461 (num_avx512_zmmh_low_registers): New constant for number of
13462 lower ZMM registers (0-15).
13463 (num_avx512_zmmh_high_registers): New constant for number of
13464 higher ZMM registers (16-31).
13465 (num_avx512_ymmh_registers): New contant for number of higher
13466 YMM registers (ymm16-31 added by avx521 on x86_64).
13467 (num_avx512_xmm_registers): New constant for number of higher
13468 XMM registers (xmm16-31 added by AVX512 on x86_64).
13469 (struct i387_xsave): Add space for AVX512 registers.
13470 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13471 Add code to handle AVX512 registers.
13472 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13473 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13474 prototypei from generated file.
13475 (tdesc_amd64_avx512_linux): Likewise.
13476 (init_registers_x32_avx512_linux): Likewise.
13477 (tdesc_x32_avx512_linux): Likewise.
13478 (init_registers_i386_avx512_linux): Likewise.
13479 (tdesc_i386_avx512_linux): Likewise.
13480 (x86_64_regmap): Add AVX512 registers.
13481 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13482 mask.
13483 (initialize_low_arch): Add code to initialize AVX512 registers.
13484
51aa91f9
PA
134852014-04-23 Pedro Alves <palves@redhat.com>
13486
13487 * mem-break.c (find_gdb_breakpoint_at): Make static.
13488 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13489
a4165e94
PA
134902014-04-23 Pedro Alves <palves@redhat.com>
13491
13492 * i386-low.c: Don't include break-common.h here.
13493 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13494 prototype to take target_hw_bp_type as argument instead of a Z
13495 packet char.
13496 * i386-low.h: Include break-common.h here.
13497 (Z_packet_to_hw_type): Declare.
13498 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13499 prototypes.
13500 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13501 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13502 (x86_remove_point): Convert the packet number to a
13503 target_hw_bp_type before calling i386_low_remove_watchpoint.
13504 * win32-i386-low.c (i386_insert_point): Convert the packet number
13505 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13506 (i386_remove_point): Convert the packet number to a
13507 target_hw_bp_type before calling i386_low_remove_watchpoint.
13508
b8acf843
PA
135092014-04-23 Pedro Alves <palves@redhat.com>
13510
13511 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13512
d708bcd1
PA
135132014-04-10 Pedro Alves <palves@redhat.com>
13514
13515 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13516 Check if the condition or command is NULL before checking if the
13517 breakpoint is known. On success, return true.
13518 * mem-break.h (add_breakpoint_condition): Document return.
13519 (add_breakpoint_commands): Add describing comment.
13520 * server.c (skip_to_semicolon): New function.
13521 (process_point_options): Use it.
13522
2eec7d5b
PA
135232014-04-09 Pedro Alves <palves@redhat.com>
13524
13525 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13526 to lwpid_of.
13527
fa96cb38
PA
135282014-02-27 Pedro Alves <palves@redhat.com>
13529
13530 PR 12702
13531 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13532 macros.
13533 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13534 output.
13535 (last_thread_of_process_p): Take a PID argument instead of a
13536 thread pointer.
13537 (linux_wait_for_lwp): Delete.
13538 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13539 functions.
13540 (linux_low_filter_event): New function, party factored out from
13541 linux_wait_for_event.
13542 (linux_wait_for_event): Rename to ...
13543 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13544 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13545 sigsuspend. Check for zombie leaders.
13546 (linux_wait_for_event): Reimplement as wrapper around
13547 linux_wait_for_event_filtered.
13548 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13549 a normal or signal exit is seen, it's the whole process exiting.
13550 (wait_for_sigstop): No longer a for_each_inferior callback.
13551 Rewrite on top of linux_wait_for_event_filtered.
13552 (stop_all_lwps): Call wait_for_sigstop directly.
13553 * server.c (resume, handle_target_event): Handle
13554 TARGET_WAITKIND_NO_RESUMED.
13555
d763de10
JB
135562014-02-26 Joel Brobecker <brobecker@adacore.com>
13557
13558 * win32-low.c (psapi_get_dll_name,
13559 * win32_CreateToolhelp32Snapshot): Delete.
13560 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13561 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13562 Delete.
13563 (handle_load_dll): Add function description.
13564 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13565
850a0f76
JB
135662014-02-26 Joel Brobecker <brobecker@adacore.com>
13567
13568 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13569 Add comment.
13570 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13571 base address when calling win32_add_one_solib.
13572 (handle_load_dll): Delete local variable load_addr.
13573 Remove 0x1000 offset applied to DLL base address when calling
13574 win32_add_one_solib.
13575 (handle_unload_dll): Add comment.
13576
f25b3fc3
JB
135772014-02-26 Joel Brobecker <brobecker@adacore.com>
13578
13579 * win32-low.c (win32_add_all_dlls): Renames
13580 win32_ensure_ntdll_loaded. Rewrite function documentation.
13581 Adjust implementation to always load all DLLs.
13582 Add 0x1000 offset to DLL base address when calling
13583 win32_add_one_solib.
13584 (child_initialization_done): New static global.
13585 (do_initial_child_stuff): Set child_initialization_done to
13586 zero during child initialization, and 1 after. Replace call
13587 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13588 Add comment.
13589 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13590 (handle_unload_dll): Add function documentation.
13591 (get_child_debug_event): Ignore load and unload DLL events
13592 during child initialization.
13593
d86d4aaf
DE
135942014-02-20 Doug Evans <dje@google.com>
13595
3bc32da3 13596 Remove global all_lwps.
d86d4aaf
DE
13597 * inferiors.h (ptid_of): Move here from linux-low.h.
13598 (pid_of, lwpid_of): Ditto.
13599 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13600 parameter is a struct thread_info * now.
13601 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13602 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13603 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13604 directly.
13605 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13606 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13607 * linux-arm-low.c (update_registers_callback): Update, "entry"
13608 parameter is a struct thread_info * now.
13609 Fetch lwpid from current_inferior directly.
13610 (arm_insert_point): Pass &all_threads to find_inferior instead of
13611 &all_lwps.
13612 (arm_remove_point): Ditto.
13613 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13614 (arm_prepare_to_resume): Fetch pid from thread.
13615 (arm_read_description): Fetch lwpid from current_inferior directly.
13616 * linux-low.c (all_lwps): Delete.
13617 (delete_lwp): Delete call to remove_inferior.
13618 (handle_extended_wait): Fetch lwpid from thread.
13619 (add_lwp): Don't set lwp->entry.id. Remove call to
13620 add_inferior_to_list.
13621 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13622 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13623 (kill_one_lwp_callback): Ditto.
13624 (linux_kill): Don't dereference NULL pointer.
13625 Fetch ptid,lwpid from thread.
13626 (get_detach_signal): Fetch ptid from thread.
13627 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13628 Simplify call to regcache_invalidate_thread.
13629 (delete_lwp_callback): Update, "entry" parameter is a
13630 struct thread_info * now. Fetch pid from thread.
13631 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13632 (status_pending_p_callback): Update, "entry" parameter is a
13633 struct thread_info * now. Fetch ptid from thread.
13634 (find_lwp_pid): Update, "entry" parameter is a
13635 struct thread_info * now.
13636 (linux_wait_for_lwp): Fetch pid from thread.
13637 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13638 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13639 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13640 (dequeue_one_deferred_signal): Ditto.
13641 (cancel_breakpoint): Fetch ptid from current_inferior.
13642 (linux_wait_for_event): Pass &all_threads to find_inferior,
13643 not &all_lwps. Fetch ptid, lwpid from thread.
13644 (count_events_callback): Update, "entry" parameter is a
13645 struct thread_info * now.
13646 (select_singlestep_lwp_callback): Ditto.
13647 (select_event_lwp_callback): Ditto.
13648 (cancel_breakpoints_callback): Ditto.
13649 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13650 not &all_lwps.
13651 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13652 (unsuspend_one_lwp): Update, "entry" parameter is a
13653 struct thread_info * now.
13654 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13655 not &all_lwps.
13656 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13657 Fetch lwpid from thread, not lwp.
13658 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13659 Pass &all_threads to find_inferior, not &all_lwps.
13660 (send_sigstop): Fetch lwpid from thread, not lwp.
13661 (send_sigstop_callback): Update, "entry" parameter is a
13662 struct thread_info * now.
13663 (suspend_and_send_sigstop_callback): Ditto.
13664 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13665 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13666 struct thread_info * now.
13667 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13668 from thread, lwp.
13669 (lwp_running): Update, "entry" parameter is a
13670 struct thread_info * now.
13671 (stop_all_lwps): Fetch ptid from thread.
13672 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13673 (linux_resume_one_lwp): Fetch lwpid from thread.
13674 (linux_set_resume_request): Update, "entry" parameter is a
13675 struct thread_info * now. Fetch pid, lwpid from thread.
13676 (resume_status_pending_p): Update, "entry" parameter is a
13677 struct thread_info * now.
13678 (need_step_over_p): Ditto. Fetch lwpid from thread.
13679 (start_step_over): Fetch lwpid from thread.
13680 (linux_resume_one_thread): Update, "entry" parameter is a
13681 struct thread_info * now. Fetch lwpid from thread.
13682 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13683 (proceed_one_lwp): Update, "entry" parameter is a
13684 struct thread_info * now. Fetch lwpid from thread.
13685 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13686 struct thread_info * now.
13687 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13688 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13689 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13690 directly.
13691 (regsets_store_inferior_registers): Ditto.
13692 (fetch_register, store_register): Ditto.
13693 (linux_read_memory, linux_write_memory): Ditto.
13694 (linux_request_interrupt): Ditto.
13695 (linux_read_auxv): Ditto.
13696 (linux_xfer_siginfo): Ditto.
13697 (linux_qxfer_spu): Ditto.
13698 (linux_qxfer_libraries_svr4): Ditto.
13699 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13700 moved to inferiors.h.
13701 (get_lwp): Delete.
13702 (get_thread_lwp): Update.
13703 (struct lwp_info): Delete member "entry". Simplify comment for
13704 member "thread".
13705 (all_lwps): Delete.
13706 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13707 current_inferior directly.
13708 (update_watch_registers_callback): Update, "entry" parameter is a
13709 struct thread_info * now. Fetch pid from thread.
13710 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13711 (mips_insert_point): Fetch lwpid from current_inferior.
13712 Pass &all_threads to find_inferior, not &all_lwps.
13713 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13714 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13715 directly.
13716 (mips_stopped_data_address): Ditto.
13717 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13718 directly.
13719 * linux-tile-low.c (tile_arch_setup): Ditto.
13720 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13721 (update_debug_registers_callback): Update, "entry" parameter is a
13722 struct thread_info * now. Fetch pid from thread.
13723 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13724 Pass &all_threads to find_inferior, not &all_lwps.
13725 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13726 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13727 Pass &all_threads to find_inferior, not &all_lwps.
13728 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13729 (i386_dr_low_get_status): Ditto.
13730 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13731 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13732 (x86_linux_read_description): Ditto.
13733 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13734
3b8361aa
DE
137352014-02-20 Doug Evans <dje@google.com>
13736
13737 * inferiors.c (get_first_inferior): Fix buglet.
13738
f7667f0d
DE
137392014-02-19 Doug Evans <dje@google.com>
13740
13741 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13742 * inferiors.c (add_thread): Change result type to struct thread_info *.
13743 All callers updated.
13744 (add_lwp): Call add_thread here instead of in callers.
13745 All callers updated.
13746 * linux-low.h (get_lwp_thread): Rewrite.
13747 (struct lwp_info): New member "thread".
13748
b3312d80
DE
137492014-02-19 Doug Evans <dje@google.com>
13750
13751 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13752 All callers updated.
13753
ecc6f45c
DE
137542014-02-19 Doug Evans <dje@google.com>
13755
13756 * inferiors.c (add_thread): Fix whitespace.
13757
649ebbca
DE
137582014-02-19 Doug Evans <dje@google.com>
13759
13760 * dll.c (clear_dlls): Replace accessing list implemention details
13761 with API function.
13762 * gdbthread.h (get_first_thread): Declare.
13763 * inferiors.c (for_each_inferior_with_data): New function.
13764 (get_first_thread): New function.
13765 (find_thread_ptid): Simplify.
13766 (get_first_inferior): New function.
13767 (clear_list): Delete.
13768 (one_inferior_p): New function.
13769 (clear_inferior_list): New function.
13770 (clear_inferiors): Update.
13771 * inferiors.h (for_each_inferior_with_data): Declare.
13772 (clear_inferior_list): Declare.
13773 (one_inferior_p): Declare.
13774 (get_first_inferior): Declare.
13775 * linux-low.c (linux_wait_for_event): Replace accessing list
13776 implemention details with API function.
13777 * server.c (target_running): Ditto.
13778 (accumulate_file_name_length): New function.
13779 (emit_dll_description): New function.
13780 (handle_qxfer_libraries): Replace accessing list implemention
13781 details with API function.
13782 (handle_qxfer_threads_worker): New function.
13783 (handle_qxfer_threads_proper): Replace accessing list implemention
13784 details with API function.
13785 (handle_query): Ditto.
13786 (visit_actioned_threads_callback_ftype): New typedef.
13787 (visit_actioned_threads_data): New struct.
13788 (visit_actioned_threads): Rewrite to be find_inferior callback.
13789 (resume): Call find_inferior.
13790 (handle_status): Replace accessing list implemention
13791 details with API function.
13792 (process_serial_event): Replace accessing list implemention details
13793 with API function.
13794 * target.c (set_desired_inferior): Replace accessing list implemention
13795 details with API function.
13796 * tracepoint.c (same_process_p): New function.
13797 (gdb_agent_about_to_close): Replace accessing list implemention
13798 details with API function.
13799 * win32-low.c (child_delete_thread): Replace accessing list
13800 implemention details with API function.
13801 (match_dll_by_basename): New function.
13802 (dll_is_loaded_by_basename): New function.
13803 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13804 details call to dll_is_loaded_by_basename.
13805
80894984
DE
138062014-02-19 Doug Evans <dje@google.com>
13807
13808 * dll.h (struct dll_info): Add comment.
13809 * gdbthread.h (struct thread_info): Add comment.
13810 (current_ptid): Simplify.
13811 * inferiors.c (add_process): Update.
13812 (remove_process): Update.
13813 * inferiors.h (struct process_info): Rename member "head" to "entry".
13814 * linux-low.c (delete_lwp): Update.
13815 (add_lwp): Update.
13816 (last_thread_of_process_p): Update.
13817 (kill_one_lwp_callback, linux_kill): Update.
13818 (status_pending_p_callback): Update.
13819 (wait_for_sigstop): Update. Simplify read of ptid.
13820 (start_step_over): Update.
13821 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13822 (get_lwp_thread): Update.
13823 (struct lwp_info): Rename member "head" to "entry".
13824 * regcache.h (inferior_list_entry): Delete.
13825 * server.c (kill_inferior_callback): Update.
13826 (detach_or_kill_inferior_callback): Update.
13827 (print_started_pid): Update.
13828 (print_attached_pid): Update.
13829 (process_serial_event): Simplify read of ptid.
13830 * thread-db.c (thread_db_create_event): Update.
13831 (thread_db_get_tls_address): Update.
13832 * win32-low.c (current_inferior_ptid): Simplify.
13833
46917d26
TT
138342014-02-19 Tom Tromey <tromey@redhat.com>
13835
13836 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13837 argument.
13838 (target_supports_btrace): Update.
13839
0759a81e
YQ
138402014-02-14 Yao Qi <yao@codesourcery.com>
13841
13842 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13843 (rsp-low-ipa.o): New target.
13844
a7191e8b
TT
138452014-02-12 Tom Tromey <tromey@redhat.com>
13846
13847 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13848 convert_ascii_to_int.
13849 * regcache.c (registers_to_string): Likewise.
13850 * remote-utils.c (decode_M_packet): Likewise.
13851 * server.c (process_serial_event): Likewise.
13852
ff0e980e
TT
138532014-02-12 Tom Tromey <tromey@redhat.com>
13854
13855 * server.c (handle_query, handle_v_run): Use hex2bin, not
13856 unhexify.
13857 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13858
e9371aff
TT
138592014-02-12 Tom Tromey <tromey@redhat.com>
13860
13861 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13862 convert_int_to_ascii.
13863 * regcache.c (registers_to_string, collect_register_as_string):
13864 Likewise.
13865 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13866 Likewise.
13867 * server.c (process_serial_event): Likewise.
13868 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13869 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13870
971dc0b8
TT
138712014-02-12 Tom Tromey <tromey@redhat.com>
13872
13873 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13874 bin2hex, not hexify.
13875 * tracepoint.c (cmd_qtstatus): Likewise.
13876
0a822afb
TT
138772014-02-12 Tom Tromey <tromey@redhat.com>
13878
13879 * remote-utils.c (monitor_output): Pass explicit length to
13880 hexify.
13881
9c3d6531
TT
138822014-02-12 Tom Tromey <tromey@redhat.com>
13883
13884 * tracepoint.c: Include rsp-low.h.
13885 * server.c: Include rsp-low.h.
13886 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13887 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13888 declare.
13889 * remote-utils.c: Include rsp-low.h.
13890 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13891 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13892 (convert_int_to_ascii, convert_ascii_to_int): Move to
13893 common/rsp-low.c.
13894 * regcache.c: Include rsp-low.h.
13895 * ax.c: Include rsp-low.h.
13896 * Makefile.in (SFILES): Add common/rsp-low.c.
13897 (OBS): Add rsp-low.o.
13898 (rsp-low.o): New target.
13899
01fd3ea5
TT
139002014-02-12 Tom Tromey <tromey@redhat.com>
13901
13902 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13903 Include print-utils.h.
13904 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13905 (plongest, thirty_two, phex_nz): Remove.
13906 * Makefile.in (SFILES): Add common/print-utils.c.
13907 (OBS): Add print-utils.o.
13908 (print-utils-ipa.o): New target.
13909 (print-utils.o): New target.
13910 (IPA_OBJS): Add print-utils-ipa.o.
13911
e99dc820
TT
139122014-02-06 Tom Tromey <tromey@redhat.com>
13913
13914 * Makefile.in (SFILES): Fix indentation.
13915
ee1e2d4f
DE
139162014-02-05 Doug Evans <dje@google.com>
13917
13918 * linux-low.c (linux_wait_for_event): Improve comment.
13919 (linux_wait_1): Keep current_inferior in sync with event_child.
13920
f5a02773
DE
139212014-01-22 Doug Evans <dje@google.com>
13922
13923 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13924
87ce2a04
DE
139252014-01-22 Doug Evans <dje@google.com>
13926
13927 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13928 * configure: Regenerate.
13929 * config.in: Regenerate.
13930 * Makefile.in (SFILES): Add debug.c.
13931 (OBS): Add debug.o.
13932 * debug.c: New file.
13933 * debug.h: New file.
13934 * linux-aarch64-low.c (*): Update all debugging printfs to use
13935 debug_printf instead of fprintf.
13936 * linux-arm-low.c (*): Ditto.
13937 * linux-cris-low.c (*): Ditto.
13938 * linux-crisv32-low.c (*): Ditto.
13939 * linux-m32r-low.c (*): Ditto.
13940 * linux-sparc-low.c (*): Ditto.
13941 * linux-x86.c (*): Ditto.
13942 * linux-low.c (*): Ditto.
13943 (linux_wait_1): Add calls to debug_enter, debug_exit.
13944 (linux_wait): Remove redundant debugging printf.
13945 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13946 (linux_resume, unstop_all_lwps): Ditto.
13947 * mem-break.c (*): Update all debugging printfs to use
13948 debug_printf instead of fprintf.
13949 * remote-utils.c (*): Ditto.
13950 * thread-db.c (*): Ditto.
13951 * server.c #include <ctype.h>, "gdb_vecs.h".
13952 (debug_threads): Moved to debug.c.
13953 (*): Update all debugging printfs to use debug_printf instead of
13954 fprintf.
13955 (start_inferior): Replace call to fflush with call to debug_flush.
13956 (monitor_show_help): Mention set debug-format.
13957 (parse_debug_format_options): New function.
13958 (handle_monitor_command): Handle "monitor set debug-format".
13959 (gdbserver_usage): Mention --debug-format.
13960 (main): Parse --debug-format.
13961 * server.h (debug_threads): Declaration moved to debug.h.
13962 #include "debug.h".
13963 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13964 trace_debug_1 that uses debug_printf.
13965 (tracepoint_look_up_symbols): Update all debugging printfs to use
13966 debug_printf instead of fprintf.
13967
e671835b
BS
139682014-01-20 Baruch Siach <baruch@tkos.co.il>
13969
13970 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13971 sys/ptrace.h.
13972
b5737fa9
PA
139732014-01-17 Pedro Alves <palves@redhat.com>
13974
ea38d2a9 13975 PR build/16445
c7faa97a
PA
13976 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13977 defined after including gdb_proc_service.h.
b5737fa9 13978
40ed484e
DE
139792014-01-16 Doug Evans <dje@google.com>
13980
13981 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13982 (match_dll): Use it.
13983
969c39fb
MM
139842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13985
13986 * target.h (target_ops) <read_btrace>: Change parameters and
13987 return type to allow error reporting.
13988 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13989 trace reading errors on.
13990 * linux-low.c (linux_low_read_btrace): Pass trace reading
13991 errors on.
13992 (linux_low_disable_btrace): New.
13993
ab7f45ba
DE
139942014-01-15 Doug Evans <dje@google.com>
13995
13996 * inferiors.c (thread_id_to_gdb_id): Delete.
13997 * inferiors.h (thread_id_to_gdb_id): Delete.
13998
66af0f44
EZ
139992014-01-13 Eli Zaretskii <eliz@gnu.org>
14000
14001 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
14002 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
14003 versions.
14004
9939e131
PA
140052014-01-08 Pedro Alves <palves@redhat.com>
14006
14007 * server.c (handle_status): Don't discard previous queued stop
14008 replies or thread's pending status here.
14009 (main) <disconnection>: Do it here instead.
14010
b7ea362b
PA
140112014-01-08 Pedro Alves <palves@redhat.com>
14012
14013 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
14014 * server.c (visit_actioned_threads, handle_pending_status): New
14015 function.
14016 (handle_v_cont): Factor out parts to ...
14017 (resume): ... this new function. If in all-stop, and a thread
14018 being resumed has a pending status, report it without actually
14019 resuming.
14020 (myresume): Adjust to use the new 'resume' function.
14021 (clear_pending_status_callback, set_pending_status_callback)
14022 (find_status_pending_thread_callback): New functions.
14023 (handle_status): Handle the case of multiple threads having
14024 interesting statuses to report. Report threads' real last signal
14025 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
14026 with an interesting thread to report the status for, instead of
14027 always reporting the status of the first thread.
14028
28498c42
JB
140292014-01-01 Joel Brobecker <brobecker@adacore.com>
14030
14031 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
14032 * gdbreplay.c (gdbreplay_version): Likewise.
14033
f45c82da
YZ
140342013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
14035
14036 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
14037 iov.iov_len with the real length in use.
14038
379a5e2d
JB
140392013-12-13 Joel Brobecker <brobecker@adacore.com>
14040
14041 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14042 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14043 for all targets that use win32-low.c.
14044 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14045 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14046
4210d83e
PA
140472013-12-13 Pedro Alves <palves@redhat.com>
14048
14049 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14050 if equal to TARGET_WAITKIND_LOADED.
14051 * win32-low.c (cached_status): New static global.
14052 (win32_wait): Add declaration.
14053 (do_initial_child_stuff): Flush all initial pending debug events
14054 up to the initial breakpoint.
14055 (win32_wait): If CACHED_STATUS was set, return that instead
14056 of doing a real wait. Remove the code resuming the execution
14057 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14058 during the initial phase. Also remove the code changing
14059 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14060 TARGET_WAITKIND_STOPPED.
14061
e7f0d979
YQ
140622013-12-11 Yao Qi <yao@codesourcery.com>
14063
14064 * notif.c (handle_notif_ack): Return 0 if no notification
14065 matches.
14066
ebcf782c
DE
140672013-11-20 Doug Evans <dje@google.com>
14068
14069 * linux-low.c (linux_set_resume_request): Fix comment.
14070
20ad9378
DE
140712013-11-20 Doug Evans <dje@google.com>
14072
14073 * linux-low.c (resume_status_pending_p): Tweak comment.
14074
a196ebeb
WT
140752013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14076
14077 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14078 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14079 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14080 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14081 (srv_amd64_regobj): Add amd64-mpx.o.
14082 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14083 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14084 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14085 * i387-fp.c (num_pl_bnd_register) Added constant.
14086 (num_pl_bnd_cfg_registers) Added constant.
14087 (struct i387_xsave) Added reserved area and MPX fields.
14088 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14089 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14090 function.
14091 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14092 (init_registers_amd64_mpx_linux): Declare new function.
14093 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14094 (x86_64_regmap): Add MPX registers.
14095 (x86_linux_read_description): Add MPX case.
14096 (initialize_low_arch): Initialize MPX targets.
14097
0080a2f6
TT
140982013-11-18 Tom Tromey <tromey@redhat.com>
14099
14100 * configure: Rebuild.
14101 * configure.ac: Don't check for stdlib.h.
14102 * gdbreplay.c: Unconditionally include stdlib.h.
14103
2978b111
TT
141042013-11-18 Tom Tromey <tromey@redhat.com>
14105
14106 * config.in: Rebuild.
14107 * configure: Rebuild.
14108 * configure.ac: Don't use AC_HEADER_DIRENT.
14109
a3d08894
TT
141102013-11-18 Tom Tromey <tromey@redhat.com>
14111
14112 * server.h: Don't check HAVE_STRING_H.
14113 * gdbreplay.c: Don't check HAVE_STRING_H.
14114 * configure: Rebuild.
14115
0a5dd17d
TT
141162013-11-18 Tom Tromey <tromey@redhat.com>
14117
14118 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14119 LIBGNU.
14120
1bd2f0ba
TT
141212013-11-08 Tom Tromey <tromey@redhat.com>
14122
14123 * configure, config.in: Rebuild.
14124 * configure.ac: Remove unused configury.
14125
3266f10b
TT
141262013-11-08 Tom Tromey <tromey@redhat.com>
14127
14128 * acinclude.m4: Include common.m4, codeset.m4.
14129 * configure, config.in: Rebuild.
14130 * configure.ac: Use GDB_AC_COMMON.
14131
6682d959
AA
141322013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14133
14134 * linux-s390-low.c (HWCAP_S390_TE): New define.
14135 (s390_arch_setup): Consider the TE field in the HWCAP for
14136 determining 'have_regset_tdb'.
14137
fd0a4d76
SDJ
141382013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14139
14140 PR gdb/16014
14141 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14142 call to sizeof.
14143
1a3d890b
PA
141442013-10-02 Pedro Alves <palves@redhat.com>
14145
14146 * server.c (process_serial_event): Don't output "GDBserver
14147 exiting" if GDB is connected through stdio.
14148 * target.c (mywait): Likewise, be silent if GDB is connected
14149 through stdio.
14150
97ad4581
JB
141512013-10-01 Joel Brobecker <brobecker@adacore.com>
14152
14153 * lynx-low.c (lynx_add_threads_after_attach): New function.
14154 (lynx_attach): Remove call to add_thread. Add call to
14155 lynx_add_threads_after_attach instead.
14156
5b4e221c
MF
141572013-09-28 Mike Frysinger <vapier@gentoo.org>
14158
14159 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14160 * config.in, configure: Regenerated.
14161
ee47b2f8
YQ
141622013-09-18 Yao Qi <yao@codesourcery.com>
14163
14164 PR server/15959
14165 * server.c (start_inferior): Clear 'resume_info'.
14166
d6707650 141672013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14168
d6707650
JW
14169 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14170 for each register.
14171
9243dd0e 141722013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 14173
9243dd0e
JW
14174 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14175 linux-tile-low.o to srv_tgtobj.
14176
c623a6ef
WN
141772013-09-16 Will Newton <will.newton@linaro.org>
14178
14179 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14180 out regs.
14181
fb71d39e
PA
141822013-09-06 Pedro Alves <palves@redhat.com>
14183
14184 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14185 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14186 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14187 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14188 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14189 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14190
8e7e9910
PA
141912013-09-06 Pedro Alves <palves@redhat.com>
14192
14193 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14194 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14195
7c3a12ca
PA
141962013-09-06 Pedro Alves <palves@redhat.com>
14197
14198 * linux-amd64-ipa.c: Include tracepoint.h.
14199 * linux-i386-ipa.c: Include tracepoint.h.
14200
8eb3d7b6
RW
142012013-09-06 Ricard Wanderlof <ricardw@axis.com>
14202
14203 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14204 (ps_get_thread_area): New function.
14205
eddddb9d
RW
142062013-09-06 Ricard Wanderlof <ricardw@axis.com>
14207
14208 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14209 (initialize_low_arch): Call init_registers_crisv32 rather than
14210 init_register_crisv32.
14211
533b0600
PA
142122013-09-05 Pedro Alves <palves@redhat.com>
14213
14214 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14215 to ...
14216 * hostio.h: ... this new file.
14217 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14218 win32-low.c: Include hostio.h.
14219
0ce3d3b5
PA
142202013-09-05 Pedro Alves <palves@redhat.com>
14221
14222 * server.h (gdb_client_data, handler_func, callback_handler_func)
14223 (delete_file_handler, add_file_handler, append_callback_event)
14224 (delete_callback_event, start_event_loop, initialize_event_loop):
14225 Move to event-loop.h and include it.
14226 * event-loop.h: New file.
14227
799cdc37
PA
142282013-09-05 Pedro Alves <palves@redhat.com>
14229
14230 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14231 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14232 (loaded_dll, unloaded_dll): Move to ...
14233 * dll.h: ... this new file.
14234 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14235
6a6bbd9d
PA
142362013-09-05 Pedro Alves <palves@redhat.com>
14237
14238 * server.h (current_process, get_thread_process, all_processes)
14239 (add_inferior_to_list, for_each_inferior, current_inferior)
14240 (remove_inferior, add_process, remove_process, find_process_pid)
14241 (have_started_inferiors_p, have_attached_inferiors_p)
14242 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14243 (clear_inferiors, find_inferior, find_inferior_id)
14244 (inferior_target_data, set_inferior_target_data)
14245 (inferior_regcache_data, set_inferior_regcache_data): Move to
14246 inferiors.h, and include it.
14247 * inferiors.h: New file.
14248
f699aaba
PA
142492013-09-05 Pedro Alves <palves@redhat.com>
14250
14251 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14252 Move ...
72f4393d 14253 * ax.h: ... here.
f699aaba 14254
c144c7a0
PA
142552013-09-05 Pedro Alves <palves@redhat.com>
14256
14257 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14258 tracepoint.h.
14259 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14260 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14261 (handle_tracepoint_general_set, handle_tracepoint_query)
14262 (tracepoint_finished_step, tracepoint_was_hit)
14263 (release_while_stepping_state_list, current_traceframe)
14264 (in_readonly_region, traceframe_read_mem)
14265 (fetch_traceframe_registers, traceframe_read_sdata)
14266 (traceframe_read_info, struct fast_tpoint_collect_status)
14267 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14268 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14269 (supply_fast_tracepoint_registers)
14270 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14271 (ipa_tdesc, claim_trampoline_space)
14272 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14273 (agent_mem_read, agent_get_trace_state_variable_value)
14274 (agent_set_trace_state_variable_value, agent_tsv_read)
14275 (agent_mem_read_string, get_raw_reg_func_addr)
14276 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14277 * tracepoint.h: ... this new file.
14278
ff42e6ab
PA
142792013-09-05 Pedro Alves <palves@redhat.com>
14280
14281 * server.h (perror_with_name, error, fatal, warning, paddress)
14282 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14283 include it.
14284 * utils.h: New file.
14285
541af0f4
PA
142862013-09-05 Pedro Alves <palves@redhat.com>
14287
14288 * server.h (remote_debug, noack_mode, transport_is_reliable)
14289 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14290 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14291 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14292 (write_enn, initialize_async_io, enable_async_io)
14293 (disable_async_io, check_remote_input_interrupt_request)
14294 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14295 (dead_thread_notify, prepare_resume_reply)
14296 (decode_address_to_semicolon, decode_address, decode_m_packet)
14297 (decode_M_packet, decode_X_packet, decode_xfer_write)
14298 (decode_search_memory_packet, unhexify, hexify)
14299 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14300 (look_up_one_symbol, relocate_instruction)
14301 (monitor_output): Move to remote-utils.h, and include it.
14302 * remote-utils.h: New file.
14303
eebdf26b
PA
143042013-09-05 Pedro Alves <palves@redhat.com>
14305
14306 * server.h (_): Delete.
14307
3aafd2ff
PA
143082013-09-02 Pedro Alves <palves@redhat.com>
14309
14310 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14311 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14312 allocated.
14313 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14314
cee83bcb
PM
143152013-09-02 Pierre Muller <muller@sourceware.org>
14316
14317 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14318 or WriteProcessMemory complete successfully and handle
14319 ERROR_PARTIAL_COPY error.
14320
9a13b2fa
PA
143212013-09-02 Pedro Alves <palves@redhat.com>
14322
14323 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14324 error instead of EIO.
14325
602e3198
JK
143262013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14327
14328 PR server/15604
14329 * linux-low.c: Include filestuff.h.
14330 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14331 * lynx-low.c: Include filestuff.h.
14332 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14333 * server.c: Include filestuff.h.
14334 (main): Call notice_open_fds.
14335 * spu-low.c: Include filestuff.h.
14336 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14337
96d7229d
LM
143382013-08-22 Luis Machado <lgustavo@codesourcery.com>
14339
14340 * Makefile.in: Explain why ../target and ../nat are not
14341 listed as include file search paths.
14342 (linux-waitpid.o): New object file rule.
14343 * configure.srv (srv_native_linux_obj): New variable.
14344 Replace all occurrences of linux native object files with
14345 $srv_native_linux_obj.
14346 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14347 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14348 (linux_enable_event_reporting): Remove declaration.
14349 (my_waitpid): Moved to common/linux-waitpid.c.
14350 (linux_wait_for_event): Pass ptid when calling
14351 linux_enable_event_reporting.
14352 (linux_supports_tracefork_flag): Remove.
14353 (linux_enable_event_reporting): Likewise.
14354 (linux_tracefork_grandchild): Remove.
14355 (STACK_SIZE): Moved to common/linux-ptrace.c.
14356 (linux_tracefork_child): Remove.
14357 (linux_test_for_tracefork): Remove.
14358 (linux_look_up_symbols): Call linux_supports_traceclone.
14359 (initialize_low): Remove call to linux_test_for_tracefork.
14360 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14361 common/linux-ptrace.h.
14362 (PTRACE_TYPE_ARG4): Likewise.
14363 Include linux-ptrace.h.
14364
32940073
PA
143652013-08-21 Pedro Alves <palves@redhat.com>
14366
14367 * config.in: Renegerate.
14368
33b60d58 143692013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14370
33b60d58
LM
14371 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14372 (SFILES): Remove $(srcdir)/common/target-common.c and
14373 add $(srcdir)/target/waitstatus.c.
14374 (OBS): Remove target-common.o and add waitstatus.o.
14375 (server_h): Remove $(srcdir)/../common/target-common.h and
14376 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14377 and $(srcdir)/../target/waitstatus.h.
14378 (target-common.o): Remove.
14379 (waitstatus.o): New target object file.
14380 * target.h: Do not include target-common.h and
14381 include target/resume.h, target/wait.h and
14382 target/waitstatus.h.
14383
b8e1b30e
LM
143842013-08-13 Luis Machado <lgustavo@codesourcery.com>
14385
14386 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14387 to PTRACE_TYPE_ARG3.
14388 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14389 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14390 PTRACE_TYPE_ARG4.
14391 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14392 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14393
7a60ad40
YQ
143942013-07-27 Jie Zhang <jie@codesourcery.com>
14395 Daniel Jacobowitz <dan@codesourcery.com>
14396 Yao Qi <yao@codesourcery.com>
14397
14398 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14399 (mips-linux-watch.o): New rule.
14400 (mips_linux_watch_h): New variable.
14401 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14402 srv_tgtobj.
14403 * linux-mips-low.c: Include mips-linux-watch.h.
14404 (struct arch_process_info, struct arch_lwp_info): New.
14405 (update_watch_registers_callback): New function.
14406 (mips_linux_new_process, mips_linux_new_thread) New functions.
14407 (mips_linux_prepare_to_resume, mips_insert_point): New
14408 functions.
14409 (mips_remove_point, mips_stopped_by_watchpoint): New
14410 functions.
14411 (rsp_bp_type_to_target_hw_bp_type): New function.
14412 (mips_stopped_data_address): New function.
14413 (the_low_target): Add watchpoint support functions.
14414
de6f69ad
YQ
144152013-07-27 Yao Qi <yao@codesourcery.com>
14416
14417 * i386-low.c: Include break-common.h.
14418 (enum target_hw_bp_type): Remove.
14419
3360c0bf
LM
144202013-07-24 Luis Machado <lgustavo@codesourcery.com>
14421
14422 * Makefile.in (SFILES): /common/target-common.c.
14423 (OBS): Add target-common.o.
14424 (server_h): Add $(srcdir)/../common/target-common.h.
14425 (target-common.o): New target.
14426 * server.c (queue_stop_reply_callback): Free
14427 status string after use.
14428 * target.c (target_waitstatus_to_string): Remove.
14429 * target.h: Include target-common.h.
14430 (resume_kind): Likewise.
14431 (target_waitkind): Likewise.
14432 (target_waitstatus): Likewise.
14433 (TARGET_WNOHANG): Likewise.
14434
bd885420
YQ
144352013-07-04 Yao Qi <yao@codesourcery.com>
14436
14437 * Makefile.in (host_alias): Use @host_noncanonical@.
14438 (target_alias): Use @target_noncanonical@.
14439 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14440 ACX_NONCANONICAL_HOST.
14441 * configure: Regenerated.
14442
14443 Revert:
14444 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14445
14446 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14447 * configure: Rebuild.
14448 * Makefile.in (version_host, version_target): Get from configure.
14449 (version.c): Use $(version_host) and $(version_target).
14450
17ef446e
PA
144512013-07-03 Pedro Alves <palves@redhat.com>
14452
14453 * Makefile.in (config.status): Depend on development.sh.
14454 * acinclude.m4: Include libmcheck.m4.
14455 * configure: Regenerate.
14456
7a9a7487
MG
144572013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14458
14459 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14460 attribute inside the parentheses.
14461 (winapi_DebugSetProcessKillOnExit): Ditto.
14462 (winapi_DebugBreakProcess): Ditto.
14463 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14464
49b64de6
MG
144652013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14466
14467 * notif.h (notif_event): Add a dummy member to avoid compiler
14468 errors.
14469
d5749ee7
PA
144702013-07-01 Pedro Alves <palves@redhat.com>
14471
14472 * hostio.c (HOSTIO_PATH_MAX): Define.
14473 (require_filename, handle_open, handle_unlink, handle_readlink):
14474 Use it.
14475
d8d2a3ee
PA
144762013-07-01 Pedro Alves <palves@redhat.com>
14477
14478 * server.h: Include "pathmax.h".
14479 * linux-low.c: Don't include sys/param.h.
14480 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14481 MAXPATHLEN.
14482 * win32-low.c: Don't include sys/param.h.
14483 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14484
bc7dea8d
PA
144852013-07-01 Pedro Alves <palves@redhat.com>
14486
14487 * event-loop.c: Don't check HAVE_UNISTD_H before including
14488 <unistd.h>.
14489 * gdbreplay.c: Likewise.
14490 * remote-utils.c: Likewise.
14491 * server.c: Likewise.
14492 * configure.ac: Don't check for unistd.h.
14493 * configure: Regenerate.
14494
d6c2da54
TT
144952013-06-28 Tom Tromey <tromey@redhat.com>
14496
14497 * Makefile.in (version.c): Use version.in, not
14498 common/version.in.
14499
257b6bec
MG
145002013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14501
14502 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14503 * configure: Rebuild.
14504 * Makefile.in (version_host, version_target): Get from configure.
14505 (version.c): Use $(version_host) and $(version_target).
14506
86ebe149
DK
145072013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14508
14509 Fix trace-status to output user name without trailing colon.
14510 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14511
f30aa5af
DK
145122013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14513
14514 Fix trace-status to output proper start-time and stop-time.
14515 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14516 output start time and stop time in hex as gdb expects.
14517
28a93511
YQ
145182013-06-26 Pedro Alves <pedro@codesourcery.com>
14519
14520 * tracepoint.c (build_traceframe_info_xml): Output trace state
14521 variables present in the trace buffer.
14522
01208463
TT
145232013-06-24 Tom Tromey <tromey@redhat.com>
14524
14525 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14526 create-version.sh.
14527 (version.o): Remove.
14528 * gdbreplay.c: Include version.h.
14529 (version, host_name): Don't declare.
14530 * server.h: Include version.h.
14531 (version, host_name): Don't declare.
14532
760256f9
PA
145332013-06-12 Pedro Alves <palves@redhat.com>
14534
14535 * linux-x86-low.c (linux_is_elf64): Delete global.
14536 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14537 with local linux_pid_exe_is_elf_64_file use.
14538
030031ee
PA
145392013-06-11 Pedro Alves <palves@redhat.com>
14540
14541 * linux-low.c (regset_disabled, disable_regset): New functions.
14542 (regsets_fetch_inferior_registers)
14543 (regsets_store_inferior_registers): Use them.
14544 (initialize_regsets_info); Don't allocate the disabled_regsets
14545 array here.
14546 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14547 comment.
14548
5da6eb0a
PA
145492013-06-11 Pedro Alves <palves@redhat.com>
14550
14551 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14552 xmalloc.
14553
7e5aaa09
PA
145542013-06-11 Pedro Alves <palves@redhat.com>
14555
14556 * linux-x86-low.c (initialize_low_arch): Call
14557 init_registers_x32_avx_linux.
14558
d878444c
JK
145592013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14560
14561 Fix compatibility with Android Bionic.
14562 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14563 it is not empty.
14564
3aee8918
PA
145652013-06-07 Pedro Alves <palves@redhat.com>
14566
5f2b57b5 14567 PR server/14823
3aee8918
PA
14568 * Makefile.in (OBS): Add tdesc.o.
14569 (IPA_OBJS): Add tdesc-ipa.o.
14570 (tdesc-ipa.o): New rule.
14571 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14572 interface.
14573 * linux-low.c (new_inferior): Delete.
14574 (disabled_regsets, num_regsets): Delete.
14575 (linux_add_process): Adjust to set the new per-process
14576 new_inferior flag.
14577 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14578 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14579 was a stop. When calling arch_setup, switch the current inferior
14580 to the thread that got an event.
14581 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14582 (regsets_fetch_inferior_registers)
14583 (regsets_store_inferior_registers): New regsets_info parameter.
14584 Adjust to use it.
14585 (linux_register_in_regsets): New regs_info parameter. Adjust to
14586 use it.
14587 (register_addr, fetch_register, store_register): New usrregs_info
14588 parameter. Adjust to use it.
14589 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14590 parameter regs_info. Adjust to use it.
14591 (linux_fetch_registers): Get the current inferior's regs_info, and
14592 adjust to use it.
14593 (linux_store_registers): Ditto.
14594 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14595 (initialize_low): Don't initialize the target_regsets here. Call
14596 initialize_low_arch.
14597 * linux-low.h (target_regsets): Delete declaration.
14598 (struct regsets_info): New.
14599 (struct usrregs_info): New.
14600 (struct regs_info): New.
14601 (struct process_info_private) <new_inferior>: New field.
14602 (struct linux_target_ops): Delete the num_regs, regmap, and
14603 regset_bitmap fields. New field regs_info.
14604 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14605 * i387-fp.c (num_xmm_registers): Delete.
14606 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14607 calls to new interface.
14608 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14609 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14610 Infer the number of xmm registers from the regcache's target
14611 description.
14612 * i387-fp.h (num_xmm_registers): Delete.
14613 * inferiors.c (add_thread): Don't install the thread's regcache
14614 here.
14615 * proc-service.c (gregset_info): Fetch the current inferior's
14616 regs_info. Adjust to use it.
14617 * regcache.c: Include tdesc.h.
14618 (register_bytes, reg_defs, num_registers)
14619 (gdbserver_expedite_regs): Delete.
14620 (get_thread_regcache): If the thread doesn't have a regcache yet,
14621 create one, instead of aborting gdbserver.
14622 (regcache_invalidate_one): Rename to ...
14623 (regcache_invalidate_thread): ... this.
14624 (regcache_invalidate_one): New.
14625 (regcache_invalidate): Only invalidate registers of the current
14626 process.
14627 (init_register_cache): Add target_desc parameter, and use it.
14628 (new_register_cache): Ditto. Assert the target description has a
14629 non zero registers_size.
14630 (regcache_cpy): Add assertions. Adjust.
14631 (realloc_register_cache, set_register_cache): Delete.
14632 (registers_to_string, registers_from_string): Adjust.
14633 (find_register_by_name, find_regno, find_register_by_number)
14634 (register_cache_size): Add target_desc parameter, and use it.
14635 (free_register_cache_thread, free_register_cache_thread_one)
14636 (regcache_release, register_cache_size): New.
14637 (register_size): Add target_desc parameter, and use it.
14638 (register_data, supply_register, supply_register_zeroed)
14639 (supply_regblock, supply_register_by_name, collect_register)
14640 (collect_register_as_string, collect_register_by_name): Adjust.
14641 * regcache.h (struct target_desc): Forward declare.
14642 (struct regcache) <tdesc>: New field.
14643 (init_register_cache, new_register_cache): Add target_desc
14644 parameter.
14645 (regcache_invalidate_thread): Declare.
14646 (regcache_invalidate_one): Delete declaration.
14647 (regcache_release): Declare.
14648 (find_register_by_number, register_cache_size, register_size)
14649 (find_regno): Add target_desc parameter.
14650 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14651 declarations.
14652 * remote-utils.c: Include tdesc.h.
14653 (outreg, prepare_resume_reply): Adjust.
14654 * server.c: Include tdesc.h.
14655 (gdbserver_xmltarget): Delete declaration.
14656 (get_features_xml, process_serial_event): Adjust.
14657 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14658 declare.
14659 (struct process_info) <tdesc>: New field.
14660 (ipa_tdesc): Declare.
14661 * tdesc.c: New file.
14662 * tdesc.h: New file.
14663 * tracepoint.c: Include tdesc.h.
14664 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14665 (get_context_regcache): Adjust to pass ipa_tdesc down.
14666 (do_action_at_tracepoint): Adjust to get the register cache size
14667 from the context regcache's description.
14668 (traceframe_walk_blocks): Adjust to get the register cache size
14669 from the current trace frame's description.
14670 (traceframe_get_pc): Adjust to get current trace frame's
14671 description and pass it down.
14672 (gdb_collect): Adjust to get the register cache size from the
14673 IPA's description.
14674 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14675 (gdbserver_xmltarget): Delete.
14676 (initialize_low_tracepoint): Set the ipa's target description.
14677 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14678 (initialize_low_tracepoint): Set the ipa's target description.
14679 * linux-x86-low.c: Include tdesc.h.
14680 [__x86_64__] (is_64bit_tdesc): New.
14681 (ps_get_thread_area, x86_get_thread_area): Use it.
14682 (i386_cannot_store_register): Rename to ...
14683 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14684 (i386_cannot_fetch_register): Rename to ...
14685 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14686 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14687 to new interface.
14688 (target_regsets): Rename to ...
14689 (x86_regsets): ... this.
14690 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14691 interface.
14692 (x86_siginfo_fixup): Use is_64bit_tdesc.
14693 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14694 (tdesc_x32_avx_linux, tdesc_x32_linux)
14695 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14696 Declare.
14697 (x86_linux_update_xmltarget): Delete.
14698 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14699 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14700 (AMD64_LINUX_USER64_CS): New.
14701 (x86_linux_read_description): New, based on
14702 x86_linux_update_xmltarget.
14703 (same_process_callback): New.
14704 (x86_arch_setup_process_callback): New.
14705 (x86_linux_update_xmltarget): New.
14706 (x86_regsets_info): New.
14707 (amd64_linux_regs_info): New.
14708 (i386_linux_usrregs_info): New.
14709 (i386_linux_regs_info): New.
14710 (x86_linux_regs_info): New.
14711 (x86_arch_setup): Reimplement.
14712 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14713 (x86_emit_ops): Ditto.
14714 (the_low_target): Adjust. Install x86_linux_regs_info,
14715 x86_cannot_fetch_register, and x86_cannot_store_register.
14716 (initialize_low_arch): New.
14717 * linux-ia64-low.c (tdesc_ia64): Declare.
14718 (ia64_fetch_register): Adjust.
14719 (ia64_usrregs_info, regs_info): New globals.
14720 (ia64_regs_info): New function.
14721 (the_low_target): Adjust.
14722 (initialize_low_arch): New function.
14723 * linux-sparc-low.c (tdesc_sparc64): Declare.
14724 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14725 Adjust.
14726 (sparc_arch_setup): New function.
14727 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14728 (the_low_target): Adjust.
14729 (initialize_low_arch): New function.
14730 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14731 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14732 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14733 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14734 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14735 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14736 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14737 (tdesc_powerpc_isa205_vsx64l): Declare.
14738 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14739 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14740 (ppc_set_pc, ppc_get_hwcap): Adjust.
14741 (ppc_usrregs_info): Forward declare.
14742 (!__powerpc64__) ppc_regmap_adjusted: New global.
14743 (ppc_arch_setup): Adjust to the current process'es target
14744 description.
14745 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14746 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14747 (ppc_store_evrregset): Adjust.
14748 (target_regsets): Rename to ...
14749 (ppc_regsets): ... this, and make static.
14750 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14751 (ppc_regs_info): New function.
14752 (the_low_target): Adjust.
14753 (initialize_low_arch): New function.
14754 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14755 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14756 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14757 (tdesc_s390x_linux64v2): Declare.
14758 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14759 (s390_fill_gregset, s390_store_last_break): Adjust.
14760 (target_regsets): Rename to ...
14761 (s390_regsets): ... this, and make static.
14762 (s390_get_pc, s390_set_pc): Adjust.
14763 (s390_get_hwcap): New target_desc parameter, and use it.
14764 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14765 (s390_arch_setup): Adjust to set the current process'es target
14766 description. Don't adjust the regmap.
14767 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14768 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14769 (regs_info_3264): New globals.
14770 (s390_regs_info): New function.
14771 (the_low_target): Adjust.
14772 (initialize_low_arch): New function.
14773 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14774 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14775 [__mips64] (init_registers_mips_linux)
14776 (init_registers_mips_dsp_linux): Delete defines.
14777 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14778 (have_dsp): New global.
14779 (mips_read_description): New, based on mips_arch_setup.
14780 (mips_arch_setup): Reimplement.
14781 (get_usrregs_info): New function.
14782 (mips_cannot_fetch_register, mips_cannot_store_register)
14783 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14784 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14785 (target_regsets): Rename to ...
14786 (mips_regsets): ... this, and make static.
14787 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14788 (dsp_regs_info, regs_info): New globals.
14789 (mips_regs_info): New function.
14790 (the_low_target): Adjust.
14791 (initialize_low_arch): New function.
14792 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14793 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14794 Declare.
14795 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14796 (arm_read_description): New, with bits factored from
14797 arm_arch_setup.
14798 (arm_arch_setup): Reimplement.
14799 (target_regsets): Rename to ...
14800 (arm_regsets): ... this, and make static.
14801 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14802 (arm_regs_info): New function.
14803 (the_low_target): Adjust.
14804 (initialize_low_arch): New function.
14805 * linux-m68k-low.c (tdesc_m68k): Declare.
14806 (target_regsets): Rename to ...
14807 (m68k_regsets): ... this, and make static.
14808 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14809 (m68k_regs_info): New function.
14810 (m68k_arch_setup): New function.
14811 (the_low_target): Adjust.
14812 (initialize_low_arch): New function.
14813 * linux-sh-low.c (tdesc_sharch): Declare.
14814 (target_regsets): Rename to ...
14815 (sh_regsets): ... this, and make static.
14816 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14817 (sh_regs_info, sh_arch_setup): New functions.
14818 (the_low_target): Adjust.
14819 (initialize_low_arch): New function.
14820 * linux-bfin-low.c (tdesc_bfin): Declare.
14821 (bfin_arch_setup): New function.
14822 (bfin_usrregs_info, regs_info): New globals.
14823 (bfin_regs_info): New function.
14824 (the_low_target): Adjust.
14825 (initialize_low_arch): New function.
14826 * linux-cris-low.c (tdesc_cris): Declare.
14827 (cris_arch_setup): New function.
14828 (cris_usrregs_info, regs_info): New globals.
14829 (cris_regs_info): New function.
14830 (the_low_target): Adjust.
14831 (initialize_low_arch): New function.
14832 * linux-cris-low.c (tdesc_crisv32): Declare.
14833 (cris_arch_setup): New function.
14834 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14835 (cris_regs_info): New function.
14836 (the_low_target): Adjust.
14837 (initialize_low_arch): New function.
14838 * linux-m32r-low.c (tdesc_m32r): Declare.
14839 (m32r_arch_setup): New function.
14840 (m32r_usrregs_info, regs_info): New globals.
14841 (m32r_regs_info): Adjust.
14842 (initialize_low_arch): New function.
14843 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14844 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14845 (tic6x_usrregs_info): Forward declare.
14846 (tic6x_read_description): New function, based on ...
14847 (tic6x_arch_setup): ... this. Reimplement.
14848 (target_regsets): Rename to ...
14849 (tic6x_regsets): ... this, and make static.
14850 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14851 (tic6x_regs_info): New function.
14852 (the_low_target): Adjust.
14853 (initialize_low_arch): New function.
14854 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14855 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14856 (target_regsets): Rename to ...
14857 (xtensa_regsets): ... this, and make static.
14858 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14859 globals.
14860 (xtensa_arch_setup, xtensa_regs_info): New functions.
14861 (the_low_target): Adjust.
14862 (initialize_low_arch): New function.
14863 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14864 (nios2_arch_setup): Set the current process'es tdesc.
14865 (target_regsets): Rename to ...
14866 (nios2_regsets): ... this.
14867 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14868 (nios2_regs_info): New function.
14869 (the_low_target): Adjust.
14870 (initialize_low_arch): New function.
a261b8f5
PA
14871 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14872 (aarch64_arch_setup): Set the current process'es tdesc.
14873 (target_regsets): Rename to ...
14874 (aarch64_regsets): ... this.
14875 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14876 (aarch64_regs_info): New function.
14877 (the_low_target): Adjust.
14878 (initialize_low_arch): New function.
3aee8918
PA
14879 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14880 globals.
14881 (target_regsets): Rename to ...
14882 (tile_regsets): ... this.
14883 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14884 (tile_regs_info): New function.
14885 (tile_arch_setup): Set the current process'es tdesc.
14886 (the_low_target): Adjust.
14887 (initialize_low_arch): New function.
14888 * spu-low.c (tdesc_spu): Declare.
14889 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14890 * win32-arm-low.c (tdesc_arm): Declare.
14891 (arm_arch_setup): New function.
14892 (the_low_target): Install arm_arch_setup instead of
14893 init_registers_arm.
14894 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14895 (init_windows_x86): Rename to ...
14896 (i386_arch_setup): ... this. Set `win32_tdesc'.
14897 (the_low_target): Adjust.
14898 * win32-low.c (win32_tdesc): New global.
14899 (child_add_thread): Don't create the thread cache here.
14900 (do_initial_child_stuff): Set the new process'es tdesc.
14901 * win32-low.h (struct target_desc): Forward declare.
14902 (win32_tdesc): Declare.
14903 * lynx-i386-low.c (tdesc_i386): Declare global.
14904 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14905 * lynx-low.c (lynx_tdesc): New global.
14906 (lynx_add_process): Set the new process'es tdesc.
14907 * lynx-low.h (struct target_desc): Forward declare.
14908 (lynx_tdesc): Declare global.
14909 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14910 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14911 * nto-low.c (nto_tdesc): New global.
14912 (do_attach): Set the new process'es tdesc.
14913 * nto-low.h (struct target_desc): Forward declare.
14914 (nto_tdesc): Declare.
14915 * nto-x86-low.c (tdesc_i386): Declare.
14916 (nto_x86_arch_setup): Set `nto_tdesc'.
14917
b1fbec62
GB
149182013-06-04 Gary Benson <gbenson@redhat.com>
14919
14920 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14921 to qSupported response when appropriate.
14922 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14923 with nonzero-length annex.
14924 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14925 arguments supplied in annex.
14926
d1ec4ce7
DE
149272013-05-31 Doug Evans <dje@google.com>
14928
ac44adcb 14929 PR server/15594
d1ec4ce7
DE
14930 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14931 64 bits in 64-cross-32 environment.
14932
9b25f2d3
PA
149332013-05-28 Pedro Alves <palves@redhat.com>
14934
14935 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14936 (aarch64-without-fpu.c): Delete rule.
14937 * configure.srv (aarch64*-*-linux*): Remove references to
14938 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14939 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14940 declaration.
14941
6740dc9c
PA
149422013-05-24 Pedro Alves <palves@redhat.com>
14943
14944 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14945 instead of strchr/decode_address. Error if the range isn't split
14946 with a ','. Don't assume there's be a ':' in the action.
14947
c2d6af84
PA
149482013-05-23 Yao Qi <yao@codesourcery.com>
14949 Pedro Alves <palves@redhat.com>
14950
14951 * linux-low.c (lwp_in_step_range): New function.
14952 (linux_wait_1): If the thread was range stepping and stopped
14953 outside the stepping range, report the stop to GDB. Otherwise,
14954 continue stepping. Add range stepping debug output.
14955 (linux_set_resume_request): Copy the step range from the resume
14956 request to the lwp.
14957 (linux_supports_range_stepping): New.
14958 (linux_target_ops) <supports_range_stepping>: Set to
14959 linux_supports_range_stepping.
14960 * linux-low.h (struct linux_target_ops)
14961 <supports_range_stepping>: New field.
14962 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14963 * linux-x86-low.c (x86_supports_range_stepping): New.
14964 (the_low_target) <supports_range_stepping>: Set to
14965 x86_supports_range_stepping.
14966 * server.c (handle_v_cont): Handle 'r' action.
14967 (handle_v_requests): Append ";r" if the target supports range
14968 stepping.
14969 * target.h (struct thread_resume) <step_range_start,
14970 step_range_end>: New fields.
14971 (struct target_ops) <supports_range_stepping>:
14972 New field.
14973 (target_supports_range_stepping): New macro.
14974
58794e1a
JB
149752013-05-17 Joel Brobecker <brobecker@adacore.com>
14976
14977 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14978 confusion in comment.
14979
d631c5a7
JB
149802013-05-17 Joel Brobecker <brobecker@adacore.com>
14981
14982 * lynx-low.c (struct process_info_private): New type.
14983 (lynx_add_process): New function.
14984 (lynx_create_inferior, lynx_attach): Replace calls to
14985 add_process by calls to lynx_add_process.
14986 (lynx_resume): If PTID is null, then try using
14987 current_process()->private->last_wait_event_ptid.
14988 Add comments.
14989 (lynx_clear_inferiors): Delete. The contents of that function
14990 has been inlined in lynx_mourn;
14991 (lynx_wait_1): Save the ptid in the process's private data.
14992 (lynx_mourn): Free the process' private data. Replace call
14993 to lynx_clear_inferiors by call to clear_inferiors.
14994
96f7a20f
YQ
149952013-05-17 Yao Qi <yao@codesourcery.com>
14996
14997 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14998 the right place.
14999
db0dfaa0
LM
150002013-05-16 Luis Machado <lgustavo@codesourcery.com>
15001
15002 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
15003 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
15004 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
15005 PT_TEXT_END_ADDR guards. Update comments.
15006 (linux_target_op) <read_offsets>: Conditionally define to
15007 linux_read_offsets if the target is UCLIBC and if it defines
15008 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
15009
68f5f838
SL
150102013-05-06 Sandra Loosemore <sandra@codesourcery.com>
15011 Andrew Jenner <andrew@codesourcery.com>
15012
15013 * Makefile.in (SFILES): Add linux-nios2-low.c.
15014 (clean): Add action to delete nios2-linux.c.
15015 (nios2-linux.c): New rule.
15016 * configure.srv: Add nios2*-*-linux*.
15017 * linux-nios2-low.c: New.
15018
1ebff1fd
HAQ
150192013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
15020
15021 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
15022
f6150862
HZ
150232013-04-25 Hui Zhu <hui@codesourcery.com>
15024
15025 PR gdb/15186
f6150862
HZ
15026 * ax.c (ax_printf): Add fflush.
15027
614c279d
TT
150282013-04-22 Tom Tromey <tromey@redhat.com>
15029
15030 * Makefile.in (SFILES): Add filestuff.c.
15031 (OBS): Add filestuff.o.
15032 (filestuff.o): New target.
15033 * config.in, configure: Rebuild.
15034 * configure.ac: Check for fdwalk, pipe2.
15035
7d4e5717
PA
150362013-04-17 Pedro Alves <palves@redhat.com>
15037
15038 * configure.ac (USE_THREAD_DB): Delete variable.
15039 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
15040 Don't AC_SUBST USE_THREAD_DB.
15041 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15042 * config.in, configure: Regenerate.
15043
d5c93e41
PA
150442013-04-16 Pedro Alves <palves@redhat.com>
15045
15046 * linux-low.h (struct lwp_info) <thread_known>: Move under
15047 the USE_THREAD_DB #ifdef.
15048
04f5fe89
PA
150492013-04-16 Pedro Alves <palves@redhat.com>
15050
15051 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15052 (linux-low.o): Delete rule.
15053 * linux-low.h: Always include "gdb_thread_db.h" instead of
15054 conditionally including thread_db.h.
15055 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15056 HAVE_THREAD_DB_H.
15057
480b27bf
JK
150582013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15059
15060 * Makefile.in (install-only): Fix make install regression.
15061
43662968
JK
150622013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15063
15064 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15065 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15066 installation.
15067 * gdbserver.1: Remove.
15068
3e74e146
PA
150692013-03-22 Pedro Alves <palves@redhat.com>
15070
15071 * linux-low.c (handle_extended_wait): Don't call
15072 linux_enable_event_reporting.
15073
a8347a2a
TT
150742013-03-15 Tony Theodore <tonyt@logyst.com>
15075
15076 PR build/9098:
15077 * Makefile.in (SHELL): Use @SHELL@.
15078
eeb56fa7
SDJ
150792013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15080
15081 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15082 compiler warning.
15083
4fa7e2ff
JB
150842013-03-13 Joel Brobecker <brobecker@adacore.com>
15085
15086 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15087 Remove extraneous NULL element.
15088
8ddb1965
YQ
150892013-03-13 Yao Qi <yao@codesourcery.com>
15090
15091 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15092 'V' block in trace frame.
15093
9accd112
MM
150942013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15095
15096 * target.h (struct target_ops): Add btrace ops.
15097 (target_supports_btrace): New macro.
15098 (target_enable_btrace): New macro.
15099 (target_disable_btrace): New macro.
15100 (target_read_btrace): New macro.
15101 * gdbthread.h (struct thread_info): Add btrace field.
15102 * server.c: Include btrace-common.h.
15103 (handle_btrace_general_set): New function.
15104 (handle_btrace_enable): New function.
15105 (handle_btrace_disable): New function.
15106 (handle_general_set): Call handle_btrace_general_set.
15107 (handle_qxfer_btrace): New function.
15108 (struct qxfer qxfer_packets[]): Add btrace entry.
15109 * inferiors.c (remove_thread): Disable btrace.
15110 * linux-low: Include linux-btrace.h.
15111 (linux_low_enable_btrace): New function.
15112 (linux_low_read_btrace): New function.
15113 (linux_target_ops): Add btrace ops.
15114 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15115 Add srv_linux_btrace=yes.
15116 (x86_64-*-linux*): Add linux-btrace.o.
15117 Add srv_linux_btrace=yes.
15118 * configure.ac: Define HAVE_LINUX_BTRACE.
15119 * config.in: Regenerated.
15120 * configure: Regenerated.
15121
5cc22e4c
MM
151222013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15123
15124 * server.c (handle_qxfer): Preserve error message if -3 is
15125 returned.
15126 (qxfer): Document the -3 return value.
15127
7c97f91e
MM
151282013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15129
15130 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15131 (linux_btrace_h): New variable.
15132 (linux-btrace.o): New rule.
15133
be9a119c 151342013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
15135 Hafiz Abid Qadeer <abidh@codesourcery.com>
15136
15137 * tracepoint.c (trace_buffer_size): New global.
15138 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15139 (init_trace_buffer): Change to one-argument function. Allocate
15140 trace buffer memory.
15141 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15142 handle QTBuffer:size packet.
15143 (cmd_bigqtbuffer_size): New function.
15144 (initialize_tracepoint): Call init_trace_buffer with
15145 DEFAULT_TRACE_BUFFER_SIZE.
15146 * server.c (handle_query): Add QTBuffer:size in the
15147 supported packets.
15148
e64f7499
YQ
151492013-03-07 Yao Qi <yao@codesourcery.com>
15150
15151 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15152 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15153 of -1.
15154 (cmd_qtsp): Adjust condition. Do post increment.
15155 Set cur_action and cur_step_action back to 0.
15156
f0ae6fc3
PA
151572013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15158
15159 PR server/15236
15160 * linux-low.c (linux_write_memory): Return early success if LEN is
15161 zero.
15162
b5b0b0af
CV
151632013-03-05 Corinna Vinschen <vinschen@redhat.de>
15164
334ad4a8 15165 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 15166
589bc927
TT
151672013-02-28 Tom Tromey <tromey@redhat.com>
15168
15169 * configure.ac: Invoke AC_SYS_LARGEFILE.
15170 * configure, config.in: Rebuild.
15171
dfe07582
CV
151722013-02-28 Corinna Vinschen <vinschen@redhat.com>
15173
15174 * win32-low.c: Throughout, fix format strings and casts of
15175 printf-like functions to avoid type related warnings on all
15176 platforms.
15177 (get_child_debug_event): Print dwDebugEventCode as hex since
15178 that's how it's usually documented.
15179
736cd585
YQ
151802013-02-28 Yao Qi <yao@codesourcery.com>
15181
15182 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15183 pulongest.
15184
e1f58301
JW
151852013-02-27 Jiong Wang <jiwang@tilera.com>
15186
15187 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15188 (reg-tilegx32.c): New rule.
15189 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15190 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15191 different register info initializer according to elf class.
15192 (init_registers_tilgx32): New function. The tilegx32 register info
15193 initializer.
15194 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15195 (tile_store_gregset): Likewise.
15196
d171ca78
YQ
151972013-02-27 Yao Qi <yao@codesourcery.com>
15198
15199 * server.c (process_point_options): Print debug message when
15200 debug_threads is true.
15201
282bbdf3
YQ
152022013-02-26 Yao Qi <yao@codesourcery.com>
15203
15204 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15205
aca22551
PA
152062013-02-19 Pedro Alves <palves@redhat.com>
15207 Kai Tietz <ktietz@redhat.com>
15208
15209 PR gdb/15161
15210
15211 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15212 instead of strtoul to extract address from packet.
15213 (process_serial_event) <'z'>: Likewise.
15214
4f3cee1c
YQ
152152013-02-18 Yao Qi <yao@codesourcery.com>
15216
15217 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15218
8e1d55a3
PA
152192013-02-14 Pedro Alves <palves@redhat.com>
15220
15221 Plug memory leak.
15222
15223 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15224 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15225
458820da
PA
152262013-02-14 Pedro Alves <palves@redhat.com>
15227
15228 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15229
baea0dae
PA
152302013-02-14 Pedro Alves <palves@redhat.com>
15231
15232 * tracepoint.c (save_string): Delete.
15233 (add_tracepoint_action): Use savestring instead of save_string.
15234
0b1afbb3
PA
152352013-02-12 Pedro Alves <palves@redhat.com>
15236
15237 * linux-xtensa-low.c: Ditto.
15238 * xtensa-xtregs.c: Ditto.
15239
8a4ac37e
PA
152402013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15241
15242 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15243 thread_db.
15244
148de6bb
MS
152452013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15246
15247 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15248 aarch64_num_wp_regs and aarch64_num_bp_regs to
15249 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15250
55fac6e0
MS
152512013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15252
15253 * linux-aarch64-low.c (ps_get_thread_area): Replace
15254 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15255
176eb98c
MS
152562013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15257 Marcus Shawcroft <marcus.shawcroft@arm.com>
15258 Nigel Stephens <nigel.stephens@arm.com>
15259 Yufeng Zhang <yufeng.zhang@arm.com>
15260
15261 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15262 (aarch64.c, aarch64-without-fpu.c): New targets.
15263 * configure.srv (aarch64*-*-linux*): New.
15264 * linux-aarch64-low.c: New file.
15265
56f7af9c
MS
152662013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15267
43aaf8b6 15268 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
15269 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15270 (dequeue_one_deferred_signal, linux_resume_one_thread)
15271 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15272 (linux_tracefork_grandchild, linux_test_for_tracefork)
15273 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15274 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15275 where the argument is 0.
15276
60f662b0
YQ
152772013-01-25 Yao Qi <yao@codesourcery.com>
15278
15279 * event-loop.c: Include "queue.h".
15280 (gdb_event_p): New typedef.
15281 (struct gdb_event) <next_event>: Remove.
15282 (event_queue): Change to QUEUE(gdb_event_p).
15283 (async_queue_event): Remove.
15284 (gdb_event_xfree): New.
15285 (initialize_event_loop): New.
15286 (process_event): Use API from QUEUE.
15287 (wait_for_event): Likewise.
15288 * server.c (main): Call initialize_event_loop.
15289 * server.h (initialize_event_loop): Declare.
15290
5ae4861a
YQ
152912013-01-18 Yao Qi <yao@codesourcery.com>
15292
15293 * ax.h (struct eval_agent_expr_context): New.
15294 (gdb_eval_agent_expr): Update declaration.
15295 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15296 TFRAME. Add new argument CTX.
15297 * server.h (struct eval_agent_expr_context): Declare.
15298 (agent_mem_read, agent_tsv_read): Update declaration.
15299 (agent_mem_read_string): Likewise.
15300 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15301 (add_traceframe_block): Add new argument TPOINT.
15302 Increase TPOINT->traceframe_usage.
15303 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15304 eval_tracepoint_agent_expr.
15305 (condition_true_at_tracepoint): Likewise.
15306 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15307 (agent_mem_read_string, agent_tsv_read): Likewise.
15308
85e00e85
YQ
153092013-01-16 Yao Qi <yao@codesourcery.com>
15310
15311 * linux-low.c (linux_resume_one_lwp): Don't check
15312 'lwp->bp_reinsert != 0'.
15313
4039cf45
JB
153142013-01-07 Joel Brobecker <brobecker@adacore.com>
15315 Pedro Alves <palves@redhat.com>
15316
15317 * lynx-low.c (ptrace_request_to_str): Define a temporary
15318 macro and use it to simplify this function's implementation.
15319
9044dee2
JB
153202013-01-07 Joel Brobecker <brobecker@adacore.com>
15321
15322 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15323 sets errno.
15324
e6352c8f
JB
153252013-01-07 Joel Brobecker <brobecker@adacore.com>
15326
15327 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15328
50681a27
JB
153292013-01-07 Joel Brobecker <brobecker@adacore.com>
15330
15331 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15332
3f6e77ef
JB
153332013-01-07 Joel Brobecker <brobecker@adacore.com>
15334
15335 * lynx-low.c (lynx_resume): Use the resume_info parameter
15336 to determine the ptid for the lynx_ptrace call, unless
15337 it is equal to minus_one_ptid, in which case we use the
15338 ptid of the current_inferior.
15339 (lynx_wait_1): After having received a thread create/exit
15340 event, resume the inferior's execution using the signaling
15341 thread's ptid, rather than the old ptid.
15342
7fda33ae
JB
153432013-01-07 Joel Brobecker <brobecker@adacore.com>
15344
15345 * lynx-low.c (lynx_resume): Delete variable ret.
15346
b9786c74
JB
153472013-01-01 Joel Brobecker <brobecker@adacore.com>
15348
15349 * gdbreplay.c (gdbreplay_version): Update copyright year.
15350 * server.c (gdbserver_version): Likewise.
15351
8b93d60f
JB
153522012-12-17 Joel Brobecker <brobecker@adacore.com>
15353
15354 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15355 new thread.
15356
037335a7
JB
153572012-12-17 Joel Brobecker <brobecker@adacore.com>
15358
15359 * lynx-low.c (ptrace_request_to_str): Add handling for
15360 PTRACE_GETTRACESIG.
15361
52d4cbd8
JB
153622012-12-17 Joel Brobecker <brobecker@adacore.com>
15363
15364 * lynx-low.c (lynx_attach): Delete variable new_process.
15365
ab8f6ca9
JB
153662012-12-17 Joel Brobecker <brobecker@adacore.com>
15367
15368 * lynx-low.c (lynx_create_inferior): Delete variable
15369 new_process.
15370
78cbc024
JB
153712012-12-17 Joel Brobecker <brobecker@adacore.com>
15372
15373 * lynx-low.c (ptrace_request_to_str): Do not handle
15374 PTRACE_GETTHREADLIST if this macro does not exist.
15375
14a00470
YQ
153762012-12-15 Yao Qi <yao@codesourcery.com>
15377
15378 * Makefile.in (OBS): Add notif.o.
15379 * notif.c, notif.h: New.
15380 * server.c: Include "notif.h".
15381 (struct vstop_notif) <next>: Remove.
15382 <base>: New field.
15383 (queue_stop_reply): Update.
15384 (push_event, send_next_stop_reply): Remove.
15385 (discard_queued_stop_replies): Update.
15386 (notif_stop): New variable.
15387 (handle_v_stopped): Remove.
15388 (handle_v_requests): Don't call handle_v_stopped. Call
15389 handle_ack_notif instead.
15390 (queue_stop_reply_callback): Call notif_event_enque instead
15391 of queue_stop_reply.
15392 (handle_status): Don't call send_next_stop_reply, call
15393 notif_write_event instead.
15394 (kill_inferior_callback): Likewise.
15395 (detach_or_kill_inferior_callback): Likewise.
15396 (main): Call initialize_notif.
15397 (process_serial_event): Call QUEUE_is_empty.
15398 (handle_target_event): Call notif_push instead of push event.
15399 * server.h (push_event): Remove declaration.
15400
61c125b9
TT
154012012-12-10 Tom Tromey <tromey@redhat.com>
15402
15403 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15404 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15405 macros.
15406 (.c.o): Rewrite.
15407 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15408 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15409 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15410 (amd64-linux-ipa.o, ax.o): Rewrite.
15411 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15412 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15413 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15414 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15415 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15416 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15417 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15418 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15419 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15420 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15421 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15422 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15423 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15424 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15425 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15426 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15427 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15428 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15429 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15430 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15431 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15432 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15433 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15434 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15435 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15436 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15437 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15438 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15439 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15440 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15441 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15442 (reg-tilegx.o): Remove.
15443 (all_object_files): New macro.
15444 Include .deps files.
15445 * aclocal.m4, configure: Rebuild.
15446 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15447 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15448 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15449
e90e9ad9
TT
154502012-12-05 Tom Tromey <tromey@redhat.com>
15451
15452 PR gdb/14917:
15453 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15454
02d403bf 154552012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15456
15457 * configure.ac: Check for linux/perf_event.h.
15458 * config.in: Regenerated.
15459 * configure: Regenerated.
15460
0270a750
PA
154612012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15462
15463 * hostio.c (handle_readlink): Decrease buffer size
15464 parameter passed to readlink by one byte.
15465
8c29b58e
YQ
154662012-11-26 Yao Qi <yao@codesourcery.com>
15467
15468 * configure.ac (build_warnings): Append '-Wempty-body'.
15469 * configure: Regenerated.
15470 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15471 body.
15472
8bdce1ff
PM
154732012-11-15 Pierre Muller <muller@sourceware.org>
15474
15475 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15476 * config.in: Regenerate.
15477 * configure: Regenerate.
15478 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15479 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15480 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15481 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15482 header.
15483 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15484 instead of <sys/wait.h> header.
15485 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15486
02d403bf 154872012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15488
15489 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15490 (various make rules): Remove -DGDBSERVER
15491
fbd5db48
YQ
154922012-11-09 Yao Qi <yao@codesourcery.com>
15493
15494 * spu-low.c (current_ptid): Move it to ..
15495 * gdbthread.h: ... here. New.
15496 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15497 * server.c (myresume, process_serial_event): Likewise.
15498 * thread-db.c (thread_db_find_new_threads): Likewise.
15499 * tracepoint.c (run_inferior_command): Likewise.
15500
b3dc46ff
AB
155012012-10-01 Andrew Burgess <aburgess@broadcom.com>
15502
15503 * server.c (handle_search_memory_1): Include access length in
15504 warning message.
15505
07c04788
HPN
155062012-09-05 Michael Brandt <michael.brandt@axis.com>
15507
15508 * linux-crisv32-low.c: Fix compile errors.
15509
918d227b
YQ
155102012-09-04 Yao Qi <yao@codesourcery.com>
15511
15512 * tracepoint.c (cmd_qtsv): Adjust debug message.
15513 Don't check CUR_TPOINT.
15514
18c1b81a
YQ
155152012-08-28 Yao Qi <yao@codesourcery.com>
15516
15517 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15518 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15519 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15520 Remove declarations of xmalloc, xreallloc, xstrdup and
15521 freeargv.
15522 * Makefile.in (libiberty_h): New.
15523 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15524 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15525
dc82f37b
YQ
155262012-08-23 Yao Qi <yao@codesourcery.com>
15527
15528 * server.h: Remove declaration of 'xsnprintf'.
15529
406b1477
KS
155302012-08-22 Keith Seitz <keiths@redhat.com>
15531
15532 * server.h: Include build-gnulib-gbserver/config.h.
15533 * gdbreplay.c: Likewise.
15534
e6712ff1
DE
155352012-08-08 Doug Evans <dje@google.com>
15536
15537 * Makefile.in (SFILES): Add gdb_vecs.c.
15538 (OBS): Add gdb_vecs.o.
15539 (gdb_vecs_h, host_defs_h): New variables.
15540 (thread-db.o): Add $(gdb_vecs_h) dependency.
15541 (gdb_vecs.o): New rule.
15542 * thread-db.c: #include "gdb_vecs.h".
15543 (thread_db_load_search): Use a vector to iterate over path elements.
15544 Handle text appearing after "$pdir".
15545
15546 * configure.ac: Add check for strstr.
15547 * config.in: Regenerate.
15548 * configure: Regenerate.
15549
7c3270ae
UW
155502012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15551
15552 * hostio.c (handle_pread): If pread fails, fall back to attempting
15553 lseek/read.
15554 (handle_pwrite): Likewise for pwrite.
15555
b62e2b27
UW
155562012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15557
15558 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15559 between unsupported TYPE and unimplementable ADDR/LEN combination.
15560 (arm_insert_point): Act on new return value.
15561
78a99e91
PA
155622012-07-31 Pedro Alves <palves@redhat.com>
15563
15564 * server.c (process_point_options): Only skip tokens if we find
15565 one that is unrecognized. Don't treat 'X' specially while
15566 skipping unrecognized tokens.
15567
fcf303ab
UW
155682012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15569
15570 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15571 to 4-byte-align HW breakpoint addresses for Thumb.
15572
7255706c
YQ
155732012-07-27 Yao Qi <yao@codesourcery.com>
15574
15575 PR remote/14161.
15576
15577 * server.h: Declare gdb_agent_about_to_close.
15578 * target.c (kill_inferior): Include "agent.h".
15579 New. Send command 'kill'.
15580 * target.h (kill_inferior): Removed macro.
15581 * tracepoint.c (gdb_agent_about_to_close): New.
15582 (gdb_agent_helper_thread): Handle command 'close'.
15583 Wait endlessly until the inferior stops.
15584 Install gdb_agent_remove_socket to atexit hook.
15585 (agent_socket_name): New static variable.
15586 (gdb_agent_socket_init): Replace local variable 'name' with
15587 'agent_socket_name'.
15588 (gdb_agent_remove_socket): New.
15589
5a3f286f
YQ
155902012-07-27 Yao Qi <yao@codesourcery.com>
15591
15592 * server.c (process_point_options): Stop at 'X' when parsing.
15593
961bd387
ME
155942012-07-19 Michael Eager <eager@eagercon.com>
15595
a261b8f5 15596 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15597 to hw_execute.
15598 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15599 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15600 hardware breakpoint.
15601
aa7c7447
JK
156022012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15603
15604 * gdbserver/linux-low.c (initialize_low): Call
15605 linux_ptrace_init_warnings.
15606
7f216e7c
DE
156072012-07-02 Doug Evans <dje@google.com>
15608
15609 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15610 pointer to int.
15611
d3ce09f5
SS
156122012-07-02 Stan Shebs <stan@codesourcery.com>
15613
15614 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15615 (ax.o): Add it to build rule.
15616 (ax-ipa.o): Ditto.
15617 (OBS): Add format.o.
15618 (IPA_OBS): Add format.o.
15619 * server.c (handle_query): Claim support for breakpoint commands.
15620 (process_point_options): Add command case.
15621 (process_serial_event): Leave running if there are printfs in
15622 effect.
15623 * mem-break.h (any_persistent_commands): Declare.
15624 (add_breakpoint_commands): Declare.
15625 (gdb_no_commands_at_breakpoint): Declare.
15626 (run_breakpoint_commands): Declare.
15627 * mem-break.c (struct point_command_list): New struct.
15628 (struct breakpoint): New field command_list.
15629 (any_persistent_commands): New function.
15630 (add_commands_to_breakpoint): New function.
15631 (add_breakpoint_commands): New function.
15632 (gdb_no_commands_at_breakpoint): New function.
15633 (run_breakpoint_commands): New function.
15634 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15635 locally.
15636 * ax.c: Include format.h.
15637 (ax_printf): New function.
15638 (gdb_eval_agent_expr): Add printf opcode.
15639
2f8f6aed
YQ
156402012-06-13 Yao Qi <yao@codesourcery.com>
15641
15642 * server.c (start_inferior): Remove duplicated writes to fields
15643 'last_resume_kind' and 'last_status' of 'current_inferior'.
15644
0c9070b3
YQ
156452012-06-12 Yao Qi <yao@codesourcery.com>
15646 Pedro Alves <palves@redhat.com>
15647
15648 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15649 comment.
15650 * server.c (handle_v_cont): Extend comment.
15651
c52daf70
YQ
156522012-06-11 Yao Qi <yao@codesourcery.com>
15653
15654 * linux-low.c (linux_attach): Add 'static'.
15655
d38bbb0a
YQ
156562012-06-06 Yao Qi <yao@codesourcery.com>
15657
15658 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15659
89dc0afd
JK
156602012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15661
15662 Fix gcc -flto compilation warning.
15663 * server.c (main): Make variable multi_mode and attach volatile.
15664
75f62ce7
TJB
156652012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15666
15667 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15668 if the platform doesn't know about it.
15669
65f479b6
PA
156702012-05-30 Jeff Kenton <jkenton@tilera.com>
15671
15672 * Makefile.in (SFILES): Add linux-tile-low.c.
15673 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15674 * configure.srv: Handle tilegx-*-linux*.
15675 * linux-tile-low.c: New file.
15676
0c5bf5a9
JK
156772012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15678
15679 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15680
a493e3e2
PA
156812012-05-24 Pedro Alves <palves@redhat.com>
15682
15683 PR gdb/7205
15684
43aaf8b6 15685 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15686
2ea28649
PA
156872012-05-24 Pedro Alves <palves@redhat.com>
15688
15689 PR gdb/7205
15690
15691 Replace target_signal with gdb_signal throughout.
15692
8d409d16
MR
156932012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15694
15695 * linux-low.c (linux_store_registers): Avoid the copying sequence
15696 when no data has been retrieved by ptrace.
15697
23512c01
MGD
156982012-05-22 Will Deacon <will.deacon@arm.com>
15699
15700 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15701 Include asm/ptrace.h.
15702 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15703 already defined.
15704
4934b29e
MR
157052012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15706
15707 * linux-low.c (linux_store_registers): Don't re-retrieve data
15708 with ptrace that has already been obtained from /proc. Always
15709 copy any data retrieved with ptrace to the buffer supplied.
15710
bde24c0a
PA
157112012-05-11 Yao Qi <yao@codesourcery.com>
15712 Pedro Alves <palves@redhat.com>
15713
15714 * linux-low.c (enum stopping_threads_kind): New.
15715 (stopping_threads): Change type to `enum stopping_threads_kind'.
15716 (handle_extended_wait): If stopping and suspending threads, leave
15717 the new_lwp suspended too.
15718 (linux_wait_for_event): Adjust.
15719 (stop_all_lwps): Set `stopping_threads' to
15720 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15721 whether we're suspending threads or just stopping them. Assert no
15722 recursion happens.
15723
623b6bdf
YQ
157242012-04-29 Yao Qi <yao@codesourcery.com>
15725
15726 * server.h: Move some code to ...
15727 * gdbthread.h: ... here. New.
15728 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15729 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15730 (nto-low.o, win32-low.o): Likewise.
15731 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15732 * regcache.c, remote-utils.c, server.c: Likewise.
15733 * target.c, tracepoint.c, win32-low.c: Likewise.
15734
f15f9948
TJB
157352012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15736
15737 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15738 (PTRACE_ARG4_TYPE): Likewise.
15739 (PTRACE_XFER_TYPE): Likewise.
15740 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15741 ptrace to PTRACE_ARG3_TYPE.
15742 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15743 (PTRACE_ARG4_TYPE): Likewise.
15744 (PTRACE_XFER_TYPE): Likewise.
15745 (linux_detach_one_lwp): Cast fourth argument of
15746 ptrace to long then PTRACE_ARG4_TYPE.
15747 (regsets_fetch_inferior_registers): Cast third argument of
15748 ptrace to long then PTRACE_ARG3_TYPE.
15749 (regsets_store_inferior_registers): Likewise.
15750
38ea300a
PA
157512012-04-20 Pedro Alves <palves@redhat.com>
15752
15753 * configure: Regenerate.
15754
c971b7fa
PA
157552012-04-19 Pedro Alves <palves@redhat.com>
15756
43aaf8b6 15757 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15758 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15759 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15760 (all, install-only, uninstall, clean-info, all-lib, clean): No
15761 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15762 (maintainer-clean realclean distclean): Use subdir_do.
15763 (subdir_do): New.
15764 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15765 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15766 * acinclude.m4: Include acx_configure_dir.m4.
15767 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15768 calls. Call AC_PROG_RANLIB. Configure gnulib using
15769 ACX_CONFIGURE_DIR.
15770 (GNULIB): New.
15771 (GNULIB_STDINT_H): Adjust.
15772 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15773 * gdbreplay.c: Include build-gnulib/config.h.
15774 * server.h: Likewise.
15775 * aclocal.m4: Regenerate.
15776 * config.in: Regenerate.
15777 * configure: Regenerate.
c971b7fa 15778
809277f8
PA
157792012-04-19 Pedro Alves <palves@redhat.com>
15780
15781 * Makefile.in (LIBGNU, INCGNU): Adjust.
15782 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15783 (all, install-only, uninstall, clean-info, all-lib, clean)
15784 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15785 * configure.ac: Adjust AC_OUTPUT output.
15786 * aclocal.m4: Regenerate.
15787 * configure: Regenerate.
15788
fd9bb8b8
PA
157892012-04-19 Pedro Alves <palves@redhat.com>
15790
15791 * Makefile.in (generated_files): New.
15792 (server_h): Remove the explicit dependency on config.h, and depend
15793 on $generated_files.
15794
1c298c66
PA
157952012-04-19 Pedro Alves <palves@redhat.com>
15796
15797 * Makefile.in (INCGNU): Add -Ignulib.
15798
57c4b50b
PA
157992012-04-19 Pedro Alves <palves@redhat.com>
15800
15801 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15802 (INCGNU): ... this, and spell out -I here.
15803 (GNULIB_LIB): Rename to ...
15804 (LIBGNU): ... this.
15805 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15806
1030e047
PA
158072012-04-19 Pedro Alves <palves@redhat.com>
15808
15809 * config.in: Regenerate.
15810
447d4319
PA
158112012-04-19 Pedro Alves <palves@redhat.com>
15812
15813 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15814 * server.h (memmem): Remove declaration.
15815 * config.in: Regenerate.
15816 * configure: Regenerate.
15817
aad9eab9
YQ
158182012-04-19 Yao Qi <yao@codesourcery.com>
15819
15820 * Makefile.in (SFILES): Add common/vec.c.
15821 (OBS): Add vec.o.
15822 (vec.o): New rule.
15823
3e10640f
YQ
158242012-04-19 Yao Qi <yao@codesourcery.com>
15825
15826 * remote-utils.c (prepare_resume_reply): Replace with macro
15827 target_core_of_thread.
15828 * server.c (handle_qxfer_threads_proper): Likewise.
15829 * target.h (traget_core_of_thread): New macro.
15830
71622373
PA
158312012-04-18 Pedro Alves <palves@redhat.com>
15832
15833 * aclocal.m4: Regenerate.
15834 * configure: Regenerate.
15835
80d26939
YQ
158362012-04-16 Yao Qi <yao@codesourcery.com>
15837
15838 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15839 duplicated on address.
15840
42476b70
YQ
158412012-04-16 Yao Qi <yao@codesourcery.com>
15842
15843 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15844 (struct tracepoint_action_ops) <send>: New field.
15845 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15846 (agent_expr_send, x_tracepoint_action_send): New.
15847 (l_tracepoint_action_send): New.
15848 (cmd_qtdp): Download and install tracepoint
15849 according to `use_agent'.
15850 (run_inferior_command): Add one more parameter `len'.
15851 Update callers.
15852 (tracepoint_send_agent): New.
15853 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15854
7bc83639
YQ
158552012-04-16 Yao Qi <yao@codesourcery.com>
15856
15857 * tracepoint.c (download_tracepoints): Moved to ...
15858 (cmd_qtstart): ... here.
15859
5f18041e
YQ
158602012-04-14 Yao Qi <yao@codesourcery.com>
15861
15862 * tracepoint.c: Include inttypes.h.
15863 (struct collect_memory_action): Use sized types.
15864 (struct tracepoint): Likewise.
15865 (cmd_qtdp, stop_tracing): Update print specifiers.
15866 (cmd_qtp, response_tracepoint): Likewise.
15867 (collect_data_at_tracepoint): Likewise.
15868 (collect_data_at_step): Likewise.
15869
55a8c076
YQ
158702012-04-14 Yao Qi <yao@codesourcery.com>
15871
15872 Import gnulib module inttypes.
15873 * aclocal.m4, config.in, configure: Regenerated.
15874
dc750257
YQ
158752012-04-14 Yao Qi <yao@codesourcery.com>
15876
15877 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15878 Makefile and config.status at last.
15879
0ab5faf9
YQ
158802012-04-13 Yao Qi <yao@codesourcery.com>
15881
15882 * tracepoint.c: Include stdint.h unconditionally.
15883
18f5fd81
TJB
158842012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15885
15886 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15887 on BFD_HAVE_SYS_PROCFS_TYPE.
15888 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15889 * configure: Regenerate.
15890 * config.in: Likewise.
15891
4d47af5c
L
158922012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15893
15894 * Makefile.in (clean): Also remove x32.c x32-linux.c
15895 x32-avx.c x32-avx-linux.c.
15896 (x32.o): New target.
15897 (x32.c): Likewise.
15898 (x32-linux.o): Likewise.
15899 (x32-linux.c): Likewise.
15900 (x32-avx.o): Likewise.
15901 (x32-avx.c): Likewise.
15902 (x32-avx-linux.o): Likewise.
15903 (x32-avx-linux.c): Likewise.
15904
15905 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15906 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15907 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15908 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15909 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15910 i386/x32-avx-linux.xml.
15911
15912 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15913 (init_registers_x32_avx_linux): Likwise.
15914 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15915 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15916
ecedbe58
PA
159172012-04-13 Pedro Alves <palves@redhat.com>
15918
15919 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15920 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15921 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15922 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15923 the sub-make.
15924
c92b5177
L
159252012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15926
15927 * linux-x86-low.c (compat_x32_clock_t): New.
15928 (compat_x32_siginfo_t): Likewise.
15929 (compat_x32_siginfo_from_siginfo): Likewise.
15930 (siginfo_from_compat_x32_siginfo): Likewise.
15931 (linux_is_elf64): Likewise.
15932 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15933 and siginfo_from_compat_x32_siginfo for x32.
15934 (x86_arch_setup): Set linux_is_elf64.
15935
214d508e
L
159362012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15937
15938 PR gdb/13969
15939 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15940 e_machine field.
15941 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15942 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15943 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15944 compatible with process.
15945
c9a1864a
YQ
159462012-04-12 Yao Qi <yao@codesourcery.com>
15947
15948 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15949 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15950 (install-only, install-info, clean): Handle sub dir gnulib.
15951 (all-lib, am--refresh): New targets.
15952 (memmem.o): Remove target.
15953 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15954 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15955 (AC_REPLACE_FUNCS): Remove memmem.
15956 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15957 (AC_OUTPUT): Generate Makefile in gnulib/.
15958 * aclocal.m4, config.in, configure: Regenerated.
15959
367ba2c2
MR
159602012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15961
15962 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15963
9d236627
PA
159642012-04-05 Pedro Alves <palves@redhat.com>
15965
15966 -Werror=strict-aliasing
15967
15968 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15969 pointer.
15970
111217b3
PA
159712012-04-04 Pedro Alves <palves@redhat.com>
15972
15973 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15974 (sparc_store_gregset_from_stack, sparc_store_gregset)
15975 (sparc_breakpoint_at): Fix formatting.
15976
8365dcf5
TJB
159772012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15978
15979 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15980 are available.
15981 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15982 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15983 * config.in: Regenerate.
15984 * configure: Likewise.
15985
689cc2ae
PA
159862012-03-29 Pedro Alves <palves@redhat.com>
15987
15988 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15989 Correct ptrace arguments.
15990
c14dfd32
PA
159912012-03-28 Pedro Alves <palves@redhat.com>
15992
15993 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15994 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15995 (IA64_FR1_REGNUM): New defines.
15996 (ia64_fetch_register): New.
15997 (the_low_target): Install it.
15998 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15999 field.
16000 * linux-low.c (linux_fetch_registers): Try the
16001 the_low_target.fetch_register hook first.
16002
16003 * linux-arm-low.c (the_low_target): Adjust.
16004 * linux-bfin-low.c (the_low_target): Adjust.
16005 * linux-cris-low.c (the_low_target): Adjust.
16006 * linux-crisv32-low.c (the_low_target): Adjust.
16007 * linux-m32r-low.c (the_low_target): Adjust.
16008 * linux-m68k-low.c (the_low_target): Adjust.
16009 * linux-mips-low.c (the_low_target): Adjust.
16010 * linux-ppc-low.c (the_low_target): Adjust.
16011 * linux-s390-low.c (the_low_target): Adjust.
16012 * linux-sh-low.c (the_low_target): Adjust.
16013 * linux-sparc-low.c (the_low_target): Adjust.
16014 * linux-tic6x-low.c (the_low_target): Adjust.
16015 * linux-x86-low.c (the_low_target): Adjust.
16016 * linux-xtensa-low.c (the_low_target): Adjust.
16017
63c88e13
PA
160182012-03-26 Pedro Alves <palves@redhat.com>
16019
16020 * server.c (handle_qxfer_libraries): Don't bail early if
16021 the_target->qxfer_libraries_svr4 is not NULL.
16022
fb723180
PA
160232012-03-26 Pedro Alves <palves@redhat.com>
16024
16025 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
16026
0afae3cf
PA
160272012-03-23 Pedro Alves <palves@redhat.com>
16028
16029 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
16030 "library-list-svr4" element's start tag when the the DSO list is
16031 empty.
16032
485f1ee4
PA
160332012-03-23 Pedro Alves <palves@redhat.com>
16034
16035 * linux-low.c (read_one_ptr): Read the inferior's pointer through
16036 a variable whose type size is the same as the inferior's pointer
16037 size.
16038
a5362b9a
TS
160392012-03-21 Thomas Schwinge <thomas@codesourcery.com>
16040
16041 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16042 struct siginfo.
16043 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16044 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16045 * linux-low.h: Include <signal.h>.
16046 (struct siginfo): Remove forward declaration.
16047 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16048 struct siginfo.
16049
d226c142
MF
160502012-03-21 Mike Frysinger <vapier@gentoo.org>
16051
16052 * .gitignore: Ignore more files.
16053
122f36ef
PA
160542012-03-19 Pedro Alves <palves@redhat.com>
16055 Jan Kratochvil <jan.kratochvil@redhat.com>
16056
16057 * server.c (cont_thread, general_thread): Add describing comments.
16058 (start_inferior): Clear `cont_thread'.
16059 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16060 of a process.
16061
fc3e5175
YQ
160622012-03-15 Yao Qi <yao@codesourcery.com>
16063
16064 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16065 handling to ...
16066 (cmd_qtdp): ... here.
16067
8d0d92cd
YQ
160682012-03-15 Yao Qi <yao@codesourcery.com>
16069
16070 * tracepoint.c (struct tracepoint_action_ops): New.
16071 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16072 (m_tracepoint_action_download): New.
16073 (r_tracepoint_action_download): New.
16074 (x_tracepoint_action_download): New.
16075 (l_tracepoint_action_download): New.
16076 (add_tracepoint_action): Install `action->ops' according type.
16077 (download_tracepoint_1): Move code `download' function pointer
16078 of various tracepoint_action_ops.
16079
87b0bb13
JK
160802012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16081
16082 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16083 linux_ptrace_attach_warnings.
16084
5f572dec
JK
160852012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16086
16087 * Makefile.in (linux-ptrace.o): New.
16088 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16089 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16090 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16091 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16092 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16093 of these targets.
16094 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16095
f4647387
YQ
160962012-03-08 Yao Qi <yao@codesourcery.com>
16097 Pedro Alves <palves@redhat.com>
16098
16099 Fix PR server/13392.
16100 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16101 offset of JMP insn.
16102 * tracepoint.c (remove_tracepoint): New.
16103 (cmd_qtdp): Call remove_tracepoint when failed to install.
16104
9b224c5e
PA
161052012-03-07 Pedro Alves <palves@redhat.com>
16106
16107 * linux-low.c (get_detach_signal): New.
16108 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16109 Pass on pending signals to PTRACE_DETACH. Check the result of the
16110 ptrace call.
16111 * server.c (program_signals, program_signals_p): New.
16112 (handle_general_set): Handle QProgramSignals.
16113 * server.h (program_signals, program_signals_p): Declare.
16114
e237a7e2
JK
161152012-03-05 Pedro Alves <palves@redhat.com>
16116 Jan Kratochvil <jan.kratochvil@redhat.com>
16117
16118 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16119 New comment why.
16120
5808517f
YQ
161212012-03-03 Yao Qi <yao@codesourcery.com>
16122
16123 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16124 agent_look_up_symbols.
16125
58b4daa5
YQ
161262012-03-03 Yao Qi <yao@codesourcery.com>
16127
16128 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16129 (linux-x86-low.o): Likewise.
16130 * server.h: Remove in_process_agent_loaded.
16131 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16132 common/agent.c.
16133 Update callers.
16134
8ffcbaaf
YQ
161352012-03-03 Yao Qi <yao@codesourcery.com>
16136
16137 * tracepoint.c (gdb_agent_capability): New global.
16138 (in_process_agent_loaded_ust): Renamed to
16139 `in_process_agent_supports_ust'.
16140 Update callers.
16141 (in_process_agent_supports_ust): Call agent_capability_check.
16142 (clear_installed_tracepoints): Assert that agent supports
16143 agent.
16144
d1feda86
YQ
161452012-03-03 Yao Qi <yao@codesourcery.com>
16146
16147 * linux-low.c (linux_supports_agent): New.
16148 (linux_target_ops): Initialize field `supports_agent' with
16149 linux_supports_agent.
16150 * target.h (struct target_ops) <supports_agent>: New.
16151 (target_supports_agent): New macro.
16152 * server.c (handle_general_set): Handle packet 'QAgent'.
16153 (handle_query): Send `QAgent+'.
16154 * Makefile.in (server.o): Depends on agent.h.
16155
2fa291ac
YQ
161562012-03-03 Yao Qi <yao@codesourcery.com>
16157
16158 * Makefile.in (OBS): Add agent.o.
16159 Add new rule for agent.o.
16160 Track dependence of tracepoint.c on agent.h.
16161 * tracepoint.c (run_inferior_command_1):
16162 (run_inferior_command): Call agent_run_command.
16163 (gdb_ust_connect_sync_socket): Deleted. Move it to
16164 common/agent.c.
16165 (resume_thread, stop_thread): Likewise.
16166 (gdb_ust_socket_init): Renamed to ...
16167 (gdb_agent_socket_init): ... New.
16168 (gdb_ust_thread): Renamed to ...
16169 (gdb_agent_helper_thread): ... New.
16170 (gdb_ust_init): Move some code to ...
16171 (gdb_agent_init): ... here. New.
16172 [HAVE_UST]: Call gdb_ust_init.
16173 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16174 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16175 * config.in, configure: Regenerated.
16176
05044653
PA
161772012-03-02 Pedro Alves <palves@redhat.com>
16178
16179 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16180 * linux-low.c (struct simple_pid_list): New.
16181 (stopped_pids): New a struct simple_pid_list pointer.
16182 (add_to_pid_list, pull_pid_from_list): New.
16183 (handle_extended_wait): Don't assume the first signal new children
16184 report is SIGSTOP. Adjust call to pull_pid_from_list.
16185 (linux_wait_for_lwp): Adjust.
16186
8d00225b
YQ
161872012-03-02 Yao Qi <yao@codesourcery.com>
16188
16189 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16190 debug log.
16191
19560ba5
YQ
161922012-03-02 Yao Qi <yao@codesourcery.com>
16193
16194 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16195 `stop_pc' and `tpoint'. Update caller.
16196
1faeff08
MR
161972012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16198
16199 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16200 * linux-low.c (use_linux_regsets): New macro.
16201 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16202 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16203 (linux_register_in_regsets): New function.
16204 (usr_fetch_inferior_registers): Skip registers covered by
16205 regsets.
16206 (usr_store_inferior_registers): Likewise.
16207 (usr_fetch_inferior_registers): New macro.
16208 (usr_store_inferior_registers): Likewise.
16209 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16210 (linux_store_registers): Likewise.
16211 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16212 prototype.
16213 (init_registers_mips64_dsp_linux): Likewise.
16214 (init_registers_mips_linux): New macro.
16215 (init_registers_mips_dsp_linux): Likewise.
16216 (mips_dsp_num_regs): Likewise.
16217 (DSP_BASE, DSP_CONTROL): New fallback macros.
16218 (mips_base_regs): New macro.
16219 (mips_regmap): Use it. Fix the size.
16220 (mips_dsp_regmap): New variable.
16221 (mips_dsp_regset_bitmap): Likewise.
16222 (mips_arch_setup): New function.
16223 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16224 than mips_regmap.
16225 (mips_cannot_store_register): Likewise.
16226 (the_low_target): Update .arch_setup, .num_regs and .regmap
16227 initializers. Add .regset_bitmap initializer.
16228 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16229 initializer.
16230 * linux-bfin-low.c (the_low_target): Likewise.
16231 * linux-cris-low.c (the_low_target): Likewise.
16232 * linux-crisv32-low.c (the_low_target): Likewise.
16233 * linux-ia64-low.c (the_low_target): Likewise.
16234 * linux-m32r-low.c (the_low_target): Likewise.
16235 * linux-m68k-low.c (the_low_target): Likewise.
16236 * linux-ppc-low.c (the_low_target): Likewise.
16237 * linux-s390-low.c (the_low_target): Likewise.
16238 * linux-sh-low.c (the_low_target): Likewise.
16239 * linux-sparc-low.c (the_low_target): Likewise.
16240 * linux-tic6x-low.c (the_low_target): Likewise.
16241 * linux-x86-low.c (the_low_target): Likewise.
16242 * linux-xtensa-low.c (the_low_target): Likewise.
16243 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16244 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16245 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16246 srv_xmlfiles.
16247 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16248 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16249
c03e6ccc
YQ
162502012-02-29 Yao Qi <yao@codesourcery.com>
16251 Pedro Alves <palves@redhat.com>
16252
16253 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16254 `step_over_finished' is true.
16255
644cebc9
PA
162562012-02-27 Pedro Alves <palves@redhat.com>
16257
16258 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16259 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16260
c14d7ab2
PA
162612012-02-27 Pedro Alves <palves@redhat.com>
16262
16263 PR server/9684
16264 * linux-low.c (pid_is_stopped): New.
16265 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16266
412c89dd
LM
162672012-02-25 Luis Machado <lgustavo@codesourcery.com>
16268
16269 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16270 of conditions.
16271
b745defe
MR
162722012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16273
16274 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16275
9f3a5c85
LM
162762012-02-24 Luis Machado <lgustavo@codesourcery>
16277
16278 * server.c (handle_query): Advertise support for target-side
16279 breakpoint condition evaluation.
16280 (process_point_options): New function.
16281 (process_serial_event): When inserting a breakpoint, check for
16282 a target-side condition that should be evaluated.
16283
16284 * mem-break.c: Include regcache.h and ax.h.
16285 (point_cond_list_t): New data structure.
16286 (breakpoint) <cond_list>: New field.
16287 (find_gdb_breakpoint_at): Make non-static.
16288 (delete_gdb_breakpoint_at): Clear any target-side
16289 conditions.
16290 (clear_gdb_breakpoint_conditions): New function.
16291 (add_condition_to_breakpoint): Likewise.
16292 (add_breakpoint_condition): Likewise.
16293 (gdb_condition_true_at_breakpoint): Likewise.
16294 (gdb_breakpoint_here): Return result directly instead
16295 of going through a local variable.
16296
16297 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16298 (clear_gdb_breakpoint_conditions): Likewise.
16299 (add_breakpoint_condition): Likewise.
16300 (gdb_condition_true_at_breakpoint): Likewise.
16301
16302 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16303 (need_step_over_p): Take target-side breakpoint condition into
16304 consideration.
16305
5e1dc496
LM
163062012-02-24 Luis Machado <lgustavo@codesourcery>
16307
16308 * server.h: Include tracepoint.h.
16309 (agent_mem_read, agent_get_trace_state_variable_value,
16310 agent_set_trace_state_variable_value,
16311 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16312 get_set_tsv_func_addr): New prototypes.
16313
16314 * ax.h: New include file.
16315 * ax.c: New source file.
16316
16317 * tracepoint.c: Include ax.h.
16318 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16319 agent_expr, eval_result_type): Move to ax.h.
16320 (parse_agent_expr): Rename to ...
16321 (gdb_parse_agent_expr): ... this, make it non-static and move
16322 to ax.h.
16323 (unparse_agent_expr) Rename to ...
16324 (gdb_unparse_agent_expr): ... this, make it non-static and move
16325 to ax.h.
16326 (eval_agent_expr): Rename to ...
16327 (eval_tracepoint_agent_expr): ... this.
16328 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16329 forward declarations.
16330 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16331 (agent_get_trace_state_variable_value): New function.
16332 (agent_set_trace_state_variable_value): New function.
16333 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16334 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16335 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16336 (condition_true_at_tracepoint): Likewise.
16337 (parse_agent_expr): Rename to ...
16338 (gdb_parse_agent_expr): ... this and move to ax.c.
16339 (unparse_agent_expr): Rename to ...
16340 (gdb_unparse_agent_expr): ... this and move to ax.c.
16341 (gdb_agent_op_name): Move to ax.c.
16342 (eval_agent_expr): Rename to ...
16343 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16344 and move to ax.c.
16345 (eval_tracepoint_agent_expr): New function.
16346 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16347 non-static.
5e1dc496
LM
16348 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16349 ax.c.
16350 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16351 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16352 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16353 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16354 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16355 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16356 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16357 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16358 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16359 (compile_bytecodes): Remove forward declaration.
16360 (is_goto_target): Move to ax.c.
16361 (compile_bytecodes): Move to ax.c and call
16362 agent_get_trace_state_variable_value (...) and
16363 agent_set_trace_state_variable_value (...).
16364
16365 * Makefile.in: Update ax.c and IPA dependencies.
16366
277e4e52
PA
163672012-02-24 Pedro Alves <palves@redhat.com>
16368
16369 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16370 (cmd_bigqtbuffer_circular): ... this. Only handle
16371 'QTBuffer:circular:'.
16372 (handle_tracepoint_general_set): Adjust.
16373
bf4c19f7
YQ
163742012-02-16 Yao Qi <yao@codesourcery.com>
16375
16376 * inferiors.c: Move code to ...
16377 * dll.c: .... here. New.
16378 * server.h: Declare clear_dlls.
16379 * Makefile.in (SFILES): Add dll.c.
16380 (OBS): Add dll.o
16381 (dll.o): New rule.
16382
d73f2619
YQ
163832012-02-11 Yao Qi <yao@codesourcery.com>
16384
16385 * server.c: (handle_monitor_command): Add a new parameter
16386 `own_buf'.
16387 (handle_query): Update caller.
16388
f8255c2a
JB
163892012-02-09 Joel Brobecker <brobecker@adacore.com>
16390
16391 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16392 * configure, config.in: Regenerate.
16393 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16394 is not defined.
16395
da84f473
PA
163962012-02-02 Pedro Alves <palves@redhat.com>
16397
16398 Try SIGKILL first, then PTRACE_KILL.
16399 * linux-low.c (linux_kill_one_lwp): New.
16400 (linux_kill_one_lwp): Rename to ...
16401 (kill_one_lwp_callback): ... this. Use the new
16402 linux_kill_one_lwp.
16403
e886a173
PA
164042012-02-02 Pedro Alves <palves@redhat.com>
16405
16406 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16407 inferior.
16408
be07f1a2
PA
164092012-01-27 Pedro Alves <palves@redhat.com>
16410
16411 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16412 (elf_64_file_p): Make static.
16413 (linux_pid_exe_is_elf_64_file): New.
16414 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16415 Delete declarations.
16416 (linux_pid_exe_is_elf_64_file): Declare.
16417 * linux-x86-low.c (x86_arch_setup): Use
16418 linux_pid_exe_is_elf_64_file.
16419
d8301ad1
JK
164202012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16421
16422 * linux-low.c (linux_wait_for_event_1): Rename to ...
16423 (linux_wait_for_event): ... here and merge it with former
16424 linux_wait_for_event - new variable wait_ptid, use it.
16425 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16426
01b17894
PA
164272012-01-23 Pedro Alves <palves@redhat.com>
16428
16429 * server.c (main): Avoid yet another case of infinite loop while
16430 detaching/killing after a longjmp.
16431
e825046f
JK
164322012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16433
16434 Code cleanup.
16435 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16436
b9e7b9c3
UW
164372012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16438
16439 * hostio.c (handle_readlink): New function.
16440 (handle_vFile): Call it to handle "vFile:readlink" packets.
16441
901f9912
UW
164422012-01-20 Pedro Alves <palves@redhat.com>
16443 Ulrich Weigand <ulrich.weigand@linaro.org>
16444
16445 * server.c (handle_v_requests): Only support vAttach and vRun to
16446 start multiple processes when in extended protocol mode.
16447
fc1ab1a0
PA
164482012-01-17 Pedro Alves <palves@redhat.com>
16449
16450 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16451 memalign plus mprotect to allocate the scratch buffer.
16452
7d5d4e98
PA
164532012-01-13 Pedro Alves <palves@redhat.com>
16454
16455 * server.c (attach_inferior): Clear `cont_thread'.
16456
f128d5e9
PA
164572012-01-13 Pedro Alves <palves@redhat.com>
16458
16459 * server.c (main): Avoid infinite loop while detaching/killing
16460 after a longjmp.
16461
06db92f0
DE
164622012-01-09 Doug Evans <dje@google.com>
16463
16464 * server.c (start_inferior): Set last_ptid in --wrapper case.
16465
32d92999
YQ
164662012-01-06 Yao Qi <yao@codesourcery.com>
16467
16468 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16469 defined.
16470 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16471
5e0a92a9
YQ
164722012-01-04 Yao Qi <yao@codesourcery.com>
16473
16474 * tracepoint.c (cmd_qtdp): Print debug message
16475 for static tracepoint.
16476
ae639e8c
YQ
164772012-01-04 Yao Qi <yao@codesourcery.com>
16478
16479 * tracepoint.c (trace_vdebug): Differentiate debug message
16480 between gdbserver and IPA.
16481
f72429c5
YQ
164822012-01-03 Yao Qi <yao@codesourcery.com>
16483
16484 * tracepoint.c (tracepoint_was_hit): Don't collect for
16485 static tracepoint.
16486
12c3e59c
JB
164872012-01-02 Joel Brobecker <brobecker@adacore.com>
16488
16489 * terminal.h: Reformat copyright header.
16490
67827812
JB
164912012-01-02 Joel Brobecker <brobecker@adacore.com>
16492
16493 * server.c (gdbserver_version): Update copyright year.
16494 * gdbreplay.c (gdbreplay_version): Likewise.
16495
3e52c33d
JK
164962011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16497
16498 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16499
16500 Revert:
16501 2011-12-18 Hui Zhu <teawater@gmail.com>
16502 * linux-low.c (linux_create_inferior): Save return value to ret.
16503
66f1260e
HZ
165042011-12-18 Hui Zhu <teawater@gmail.com>
16505
16506 * linux-low.c (linux_create_inferior): Save return value to ret.
16507
e77616d7
DE
165082011-12-16 Doug Evans <dje@google.com>
16509
e7b06c57
DE
16510 * linux-low.c (linux_create_inferior): If stdio connection,
16511 redirect stdin from /dev/null, stdout to stderr.
16512 * remote-utils.c (remote_is_stdio): New static global.
16513 (remote_connection_is_stdio): New function.
16514 (remote_prepare): Handle stdio connection.
16515 (remote_open): Ditto.
16516 (remote_close): Don't close stdin for stdio connections.
16517 (read_prim,write_prim): New functions. Replace all calls to
16518 read/write to these.
16519 * server.c (main): Watch for "-" argument. Move call to
16520 remote_prepare before start_inferior.
16521 * server.h (STDIO_CONNECTION_NAME): New macro.
16522 (remote_connection_is_stdio): Declare.
16523
e77616d7
DE
16524 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16525 in debugging output.
16526
82067193
YQ
165272011-12-15 Yao Qi <yao@codesourcery.com>
16528
16529 * tracepoint.c: Include sys/syscall.h.
16530 (gdb_ust_thread): Remove preprocessor conditional.
16531
82bfbe7e
PA
165322011-12-14 Pedro Alves <pedro@codesourcery.com>
16533
16534 * linux-low.c (linux_detach_one_lwp): Call
16535 the_low_target.prepare_to_resume before detaching.
16536
712c6575
YQ
165372011-12-14 Yao Qi <yao@codesourcery.com>
16538
16539 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16540 of write.
16541
d54d1edf
YQ
165422011-12-14 Yao Qi <yao@codesourcery.com>
16543
16544 * i386-low.c (i386_low_stopped_data_address): Initialize local
16545 variable `control'.
16546
6210a125
PA
165472011-12-13 Pedro Alves <pedro@codesourcery.com>
16548
16549 PR remote/13492
16550
16551 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16552 DR_CONTROL unless necessary. Extend comments.
16553 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16554 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16555
2ece8244
YQ
165562011-12-13 Yao Qi <yao@codesourcery.com>
16557
16558 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16559 macros.
16560 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16561
784867a5
JK
165622011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16563
16564 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16565 Print new debug message for such case.
16566
6bf36717
JK
165672011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16568
16569 Fix overlapping memcpy.
16570 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16571 the read_inferior_memory transfer.
16572 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16573 write_inferior_memory transfer.
16574 (set_fast_tracepoint_jump): New variable buf. Use it for the
16575 read_inferior_memory and write_inferior_memory transfers.
16576 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16577 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16578 Use it for the write_inferior_memory transfer.
16579 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16580 buffers.
16581
50275556
MR
165822011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16583
16584 * linux-low.c (fetch_register, store_register): Make code
16585 consistent, fix formatting.
16586
7325beb4
MR
165872011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16588
16589 * linux-low.c (usr_store_inferior_registers): Factor out code
16590 to handle individual registers into...
16591 (store_register): ... this new function.
16592
c642a434
UW
165932011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16594
16595 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16596 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16597 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16598 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16599 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16600 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16601 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16602 (srv_xmlfiles): Add new XML files.
16603
16604 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16605 and <sys/uio.h>.
16606 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16607 (init_registers_s390_linux32v1): Add prototype.
16608 (init_registers_s390_linux32v2): Likewise.
16609 (init_registers_s390_linux64v1): Likewise.
16610 (init_registers_s390_linux64v2): Likewise.
16611 (init_registers_s390x_linux64v1): Likewise.
16612 (init_registers_s390x_linux64v2): Likewise.
16613 (s390_num_regs): Increment to 52.
16614 (s390_regmap): Add orig_r2 register.
16615 (s390_num_regs_3264): Increment to 68.
16616 (s390_regmap_3264): Add orig_r2 register.
16617 (s390_collect_ptrace_register): Handle orig_r2 register.
16618 (s390_supply_ptrace_register): Likewise.
16619 (s390_fill_last_break): New function.
16620 (s390_store_last_break): Likewise.
16621 (s390_fill_system_call): New function.
16622 (s390_store_system_call): Likewise.
16623 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16624 register sets.
16625 (s390_check_regset): New function.
16626 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16627 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16628 Update target_regsets for available register sets.
16629
2268b414
JK
166302011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16631 Jan Kratochvil <jan.kratochvil@redhat.com>
16632
16633 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16634 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16635 New.
16636 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16637 * linux-low.h (struct process_info_private): New member r_debug.
16638 * server.c (handle_qxfer_libraries): Call
16639 the_target->qxfer_libraries_svr4.
16640 (handle_qxfer_libraries_svr4): New function.
16641 (qxfer_packets): New entry "libraries-svr4".
16642 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16643 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16644 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16645 PACKET_qXfer_libraries_svr4.
16646
d6db1fab
UW
166472011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16648
16649 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16650 PSW address/mask between 8-byte and 16-byte formats.
16651 (s390_supply_ptrace_register): Likewise.
16652 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16653 basic addressing mode bit.
16654
242f5f1c
SS
166552011-11-24 Stan Shebs <stan@codesourcery.com>
16656
16657 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16658
f196051f
SS
166592011-11-17 Stan Shebs <stan@codesourcery.com>
16660
16661 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16662 (tracing_start_time): New global.
16663 (tracing_stop_time): New global.
16664 (tracing_user_name): New global.
16665 (tracing_notes): New global.
16666 (tracing_stop_note): New global.
16667 (cmd_qtstart): Set traceframe_usage, start_time.
16668 (stop_tracing): Set stop_time.
16669 (cmd_qtstatus): Report additional status.
16670 (cmd_qtp): New function.
16671 (handle_tracepoint_query): Call it.
16672 (cmd_qtnotes): New function.
16673 (handle_tracepoint_general_set): Call it.
16674 (get_timestamp): Rename from tsv_get_timestamp.
16675
405f8e94
SS
166762011-11-14 Stan Shebs <stan@codesourcery.com>
16677 Kwok Cheung Yeung <kcy@codesourcery.com>
16678
16679 * linux-x86-low.c (small_jump_insn): New.
16680 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16681 trampoline and error message, build a trampoline and issue a small
16682 jump instruction to it.
16683 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16684 trampoline and error message.
16685 (x86_get_min_fast_tracepoint_insn_len): New.
16686 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16687 * linux-low.h (struct linux_target_ops): Add arguments to
16688 install_fast_tracepoint_jump_pad operation, add new operation.
16689 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16690 arguments.
16691 (linux_get_min_fast_tracepoint_insn_len): New function.
16692 (linux_target_op): Add new operation.
16693 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16694 (gdb_trampoline_buffer_end): Ditto.
16695 (gdb_trampoline_buffer_error): Ditto.
16696 (struct ipa_sym_addresses): Add fields for new IPA variables.
16697 (symbol_list): Add entries for new IPA variables.
16698 (struct tracepoint): Add fields to hold the address range of the
16699 trampoline used by the tracepoint.
16700 (trampoline_buffer_head): New static variable.
16701 (trampoline_buffer_tail): Ditto.
16702 (claim_trampoline_space): New function.
16703 (have_fast_tracepoint_trampoline_buffer): New function.
16704 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16705 structure.
16706 (install_fast_tracepoint): Ditto, also add error buffer argument.
16707 (cmd_qtminftpilen): New function.
16708 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16709 (fast_tracepoint_from_trampoline_address): New function.
16710 (fast_tracepoint_collecting): Handle trampoline as part of jump
16711 pad space.
16712 (set_trampoline_buffer_space): New function.
16713 (initialize_tracepoint): Initialize new IPA variables.
16714 * target.h (struct target_ops): Add arguments to
16715 install_fast_tracepoint_jump_pad operation, add new
16716 get_min_fast_tracepoint_insn_len operation.
16717 (target_get_min_fast_tracepoint_insn_len): New.
16718 (install_fast_tracepoint_jump_pad): Add arguments.
16719 * server.h (IPA_BUFSIZ): Define.
16720 * linux-i386-ipa.c: Include extra header files.
16721 (initialize_fast_tracepoint_trampoline_buffer): New function.
16722 (initialize_low_tracepoint): Call it.
16723 * server.h (set_trampoline_buffer_space): Declare.
16724 (claim_trampoline_space): Ditto.
16725 (have_fast_tracepoint_trampoline_buffer): Ditto.
16726
1e4d1764
YQ
167272011-11-14 Yao Qi <yao@codesourcery.com>
16728
16729 * server.c (handle_query): Handle InstallInTrace for qSupported.
16730 * tracepoint.c (add_tracepoint): Sort list.
16731 (install_tracepoint, download_tracepoint): New.
16732 (cmd_qtdp): Call them to install and download tracepoints.
16733 (sort_tracepoints): Removed.
16734 (cmd_qtstart): Update.
16735
5c73ff4e
YQ
167362011-11-14 Yao Qi <yao@codesourcery.com>
16737
16738 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16739 * mem-break.h: Declare.
16740 * tracepoint.c (cmd_qtstart): Move some code to ...
16741 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16742 New.
16743 (download_tracepoints): Move some code to ...
16744 (download_tracepoint_1): ... here. New.
16745
86a30030
YQ
167462011-11-08 Yao Qi <yao@codesourcery.com>
16747
16748 * remote-utils.c (relocate_instruction): A comment fix.
16749
8d26e50c
JB
167502011-11-07 Joel Brobecker <brobecker@adacore.com>
16751
16752 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16753 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16754 dr_status_mirror and dr_control_mirror from debug_reg_state.
16755 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16756 (i386_initial_stuff): Remove use of deleted globals.
16757 (i386_get_thread_context, i386_set_thread_context,
16758 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16759 from debug_reg_state.
16760
a59306a3
YQ
167612011-11-05 Yao Qi <yao@codesourcery.com>
16762
16763 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16764 address as TPOINT's.
16765
3065dfb6
SS
167662011-11-02 Stan Shebs <stan@codesourcery.com>
16767
16768 * tracepoint.c (agent_mem_read_string): New function.
16769 (eval_agent_expr): Call it for tracenz.
16770 * server.c (handle_query): Report support for tracenz.
16771
fd0d8c7c
YQ
167722011-11-02 Yao Qi <yao@codesourcery.com>
16773
16774 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16775
609086b1
YQ
167762011-11-02 Yao Qi <yao@codesourcery.com>
16777
16778 * target.h: Fix a typo in comment.
16779
b9fd1791
PA
167802011-10-31 Pedro Alves <pedro@codesourcery.com>
16781
16782 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16783 clobber the breakpoints' shadows with fast tracepoint jumps.
16784 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16785 * target.c (write_inferior_memory): Also pass MYADDR down to
16786 check_mem_write.
16787
03583c20
UW
167882011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16789
16790 * configure.ac: Check support for personality routine.
16791 * configure: Regenerate.
16792 * config.in: Likewise.
16793 * linux-low.c: Include <sys/personality.h>.
16794 Define ADDR_NO_RANDOMIZE if necessary.
16795 (linux_create_inferior): Disable address space randomization when
16796 forking inferior, if requested.
16797 (linux_supports_disable_randomization): New function.
16798 (linux_target_ops): Install it.
16799 * server.h (disable_randomization): Declare.
16800 * server.c (disable_randomization): New global variable.
16801 (handle_general_set): Handle QDisableRandomization.
16802 (handle_query): Likewise for qSupported.
16803 (main): Support --disable-randomization and --no-disable-randomization
16804 command line arguments.
16805 * target.h (struct target_ops): Add supports_disable_randomization.
16806 (target_supports_disable_randomization): New macro.
16807
723b724b
MF
168082011-09-29 Mike Frysinger <vapier@gentoo.org>
16809
16810 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16811 ifdef check.
16812 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16813 [!PT_GETDSBT] (target_loadmap): New definition.
16814 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16815 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16816 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16817 and PT_GETDSBT to LINUX_LOADMAP.
16818 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16819 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16820
55329a5c 168212011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16822
16823 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16824 (arm_linux_hwbp_cap): New static variable.
16825 (arm_linux_get_hwbp_cap): Replace by ...
16826 (arm_linux_init_hwbp_cap): ... this new function.
16827 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16828 (arm_linux_get_hw_watchpoint_count): Likewise.
16829 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16830 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16831 (arm_prepare_to_resume): Use perror_with_name instead of error.
16832
55329a5c 168332011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16834
16835 * linux-arm-low.c: Include <signal.h>.
16836 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16837 (struct arm_linux_hwbp_cap): New data type.
16838 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16839 (struct arm_linux_hw_breakpoint): New data type.
16840 (MAX_BPTS, MAX_WPTS): Define.
16841 (struct arch_process_info, struct arch_lwp_info): New data types.
16842 (arm_linux_get_hwbp_cap): New function.
16843 (arm_linux_get_hw_breakpoint_count): Likewise.
16844 (arm_linux_get_hw_watchpoint_count): Likewise.
16845 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16846 (arm_hwbp_control_initialize): Likewise.
16847 (arm_hwbp_control_is_enabled): Likewise.
16848 (arm_hwbp_control_is_initialized): Likewise.
16849 (arm_hwbp_control_disable): Likewise.
16850 (arm_linux_hw_breakpoint_equal): Likewise.
16851 (arm_linux_hw_point_initialize): Likewise.
16852 (struct update_registers_data): New data structure.
16853 (update_registers_callback: New function.
16854 (arm_insert_point): Likewise.
16855 (arm_remove_point): Likewise.
16856 (arm_stopped_by_watchpoint): Likewise.
16857 (arm_stopped_data_address): Likewise.
16858 (arm_new_process): Likewise.
16859 (arm_new_thread): Likewise.
16860 (arm_prepare_to_resume): Likewise.
16861 (the_low_target): Register arm_insert_point, arm_remove_point,
16862 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16863 arm_new_thread, and arm_prepare_to_resume.
16864
6b9801d4
SS
168652011-09-15 Stan Shebs <stan@codesourcery.com>
16866
16867 * server.h (struct emit_ops): Add compare-goto fields.
16868 * tracepoint.c (gdb_agent_op_sizes): New table.
16869 (emit_eq_goto): New function.
16870 (emit_ne_goto): New function.
16871 (emit_lt_goto): New function.
16872 (emit_le_goto): New function.
16873 (emit_gt_goto): New function.
16874 (emit_ge_goto): New function.
16875 (is_goto_target): New function.
16876 (compile_bytecodes): Recognize special cases of compare-goto
16877 combinations and call specialized emitters for them.
16878 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16879 (amd64_emit_ne_goto): New function.
16880 (amd64_emit_lt_goto): New function.
16881 (amd64_emit_le_goto): New function.
16882 (amd64_emit_gt_goto): New function.
16883 (amd64_emit_ge_goto): New function.
16884 (amd64_emit_ops): Add the new functions.
16885 (i386_emit_eq_goto): New function.
16886 (i386_emit_ne_goto): New function.
16887 (i386_emit_lt_goto): New function.
16888 (i386_emit_le_goto): New function.
16889 (i386_emit_gt_goto): New function.
16890 (i386_emit_ge_goto): New function.
16891 (i386_emit_ops): Add the new functions.
16892
bf15cbda
SS
168932011-09-08 Stan Shebs <stan@codesourcery.com>
16894
16895 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16896 (i386_emit_epilogue): Restore %ebx.
16897
943ca1dd
JZ
168982011-08-31 Jie Zhang <jzhang918@gmail.com>
16899
16900 * server.c (step_thread): Remove definition.
16901 (process_serial_event): Don't handle Hs.
16902 * server.h (step_thread): Remove declaration.
16903 * target.c (set_desired_inferior): Remove use of step_thread.
16904
e3deef73
LM
169052011-08-24 Luis Machado <lgustavo@codesourcery.com>
16906
16907 * linux-low.c: Include linux-procfs.h.
16908 (linux_attach_lwp_1): Update comments.
16909 (linux_attach): Scan for existing threads when attaching to a
16910 process that is the tgid.
16911 * Makefile.in: Update dependencies.
16912
13da1c97
LM
169132011-08-24 Luis Machado <lgustavo@codesourcery.com>
16914
16915 * configure.srv: Add linux-procfs.o dependencies.
16916
881127c9
YQ
169172011-08-14 Yao Qi <yao@codesourcery.com>
16918
16919 * target.h (struct target_ops): Fix indent.
16920 * win32-low.c (win32_target_ops): Fix comment.
16921
58dbd541
YQ
169222011-08-14 Andrew Jenner <andrew@codesourcery.com>
16923 Yao Qi <yao@codesourcery.com>
16924
16925 * Makefile.in (clean): Remove tic6x-*.c files.
16926 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16927 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16928 (tic6x-c64xp-linux.c): Likewise.
16929 * configure.srv: Add support for tic6x-*-uclinux.
16930 * linux-tic6x-low.c: New.
16931 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16932
78d85199
YQ
169332011-08-14 Andrew Stubbs <ams@codesourcery.com>
16934 Yao Qi <yao@codesourcery.com>
16935
16936 * target.h (struct target_ops): Add read_loadmap.
16937 * linux-low.c (struct target_loadseg): New type.
16938 (struct target_loadmap): New type.
16939 (linux_read_loadmap): New function.
16940 (linux_target_ops): Add linux_read_loadmap.
16941 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16942 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16943 to NULL.
78d85199 16944
a959a88d
EZ
169452011-08-05 Eli Zaretskii <eliz@gnu.org>
16946
16947 * win32-low.c: Include <stdint.h>.
16948
1ced966e
PA
169492011-07-22 Pedro Alves <pedro@codesourcery.com>
16950
16951 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16952 to the inferior here.
16953 (i386_remove_aligned_watchpoint): Ditto.
16954 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16955 fit part of the watchpoint in the debug registers.
16956 (i386_update_inferior_debug_regs): New.
16957 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16958 registers, and only update the inferior on success.
16959 (i386_low_remove_watchpoint): Ditto.
16960
d26e3629
KY
169612011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16962
16963 * linux-low.c (compare_ints, unique, list_threads, show_process,
16964 linux_core_of_thread): Delete.
16965 (linux_target_ops): Change linux_core_of_thread to
16966 linux_common_core_of_thread.
16967 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16968 * utils.c (malloc_failure): Change type of argument.
16969 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16970 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16971 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16972 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16973 (IPA_OBJS): Add common-utils-ipa.o.
16974 (ptid_h, linux_osdata_h): New macros.
16975 (server_h): Add common/common-utils.h, common/xml-utils.h,
16976 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16977 common/ptid.h.
16978 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16979 ptid.o, buffer.o): New rules.
16980 (linux-low.o): Add common/linux-osdata.h as a dependency.
16981 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16982 * configure.ac: Add AC_HEADER_DIRENT check.
16983 * config.in: Regenerate.
16984 * configure: Regenerate.
16985 * remote-utils.c (xml_escape_text): Delete.
16986 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16987 buffer_xml_printf): Move to common/buffer.c.
16988 * server.c (main): Remove call to initialize_inferiors.
16989 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16990 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16991 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16992 internal_error, gdb_assert, gdb_assert_fail): Delete.
16993 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16994 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16995 common/buffer.h.
16996 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16997 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16998 initialize_inferiors): Delete.
16999
2275a1a7
PA
170002011-07-20 Pedro Alves <pedro@codesourcery.com>
17001
17002 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
17003 symbol error.
17004
0a5b1e09
PA
170052011-05-31 Pedro Alves <pedro@codesourcery.com>
17006
17007 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
17008 assertion.
17009 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
17010
6938fd34
YQ
170112011-05-26 Yao Qi <yao@codesourcery.com>
17012
17013 * Makefile.in (thread-db.o): Track dependence to
17014 common/gdb_thread_db.h.
17015 * thread-db.c: include gdb_thread_db.h from right place.
17016
b481f9e0
TT
170172011-05-16 Adrian Cornish <gnu@bluedreamer.com>
17018
17019 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
17020 __FILE__ and __LINE__ to internal_error.
17021
98a5dd13
DE
170222011-05-13 Doug Evans <dje@google.com>
17023
17024 * thread-db.c (try_thread_db_load_from_sdir): New function.
17025 (try_thread_db_load_from_dir): New function.
17026 (thread_db_load_search): Handle $sdir, ignore $pdir.
17027 Remove trying of system directories if search of
17028 libthread-db-search-path fails, that is now done via $sdir.
17029
d248b706
KY
170302011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
17031
17032 * server.c (handle_query): Add EnableDisableTracepoints to the list
17033 of supported features.
43aaf8b6 17034 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 17035 tracepoints.
43aaf8b6
PA
17036 (cmd_qtenable_disable): New.
17037 (cmd_qtstart): Install tracepoints even if disabled.
17038 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
17039 receiving a QTEnable or QTDisable packet.
17040 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17041 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17042 tracepoints.
17043 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 17044
84e578fb
DE
170452011-05-10 Doug Evans <dje@google.com>
17046
17047 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17048
71f55dd8
DE
170492011-05-04 Doug Evans <dje@google.com>
17050
17051 * linux-low.c (linux_join): Skip process lookup.
17052 * spu-low.c (spu_join): Ditto.
17053 * server.c (join_inferiors_callback): Delete.
17054 (process_serial_event): For 'D' packet (detach) call join_inferior
17055 directly.
17056
4d393d60
JM
170572011-05-04 Joseph Myers <joseph@codesourcery.com>
17058
17059 * README: Don't mention xscale*-*-linux*.
17060 * configure.srv (xscale*-*-linux*): Don't handle target.
17061
b00ad6ff
NF
170622011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17063
17064 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17065 casting pointers.
17066 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17067 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17068 (i386_emit_void_call_2): Likewise.
17069
af96c192
YQ
170702011-04-26 Yao Qi <yao@codesourcery.com>
17071
43aaf8b6
PA
17072 * linux-low.c: Move common macros to linux-ptrace.h.
17073 Include linux-ptrace.h.
af96c192
YQ
17074 * Makefile.in (linux_ptrace_h): New.
17075 (linux-low.o): Depends on linux-ptrace.h.
17076
03f2bd59
JK
170772011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17078
17079 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17080 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17081 (remote_prepare): New function with most of the TCP code from ...
17082 (remote_open): ... here. Detect PORT here unconditionally. Move also
17083 setting transport_is_reliable.
17084 * server.c (run_once): New variable.
17085 (gdbserver_usage): Document it.
17086 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17087 the first run if RUN_ONCE.
17088 * server.h (run_once, remote_prepare): New declarations.
17089
7a9dd1b2
TT
170902011-04-19 Tom Tromey <tromey@redhat.com>
17091
17092 * win32-low.c (handle_load_dll): Remove duplicate "the".
17093
81239425
PM
170942011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17095
17096 Remove support for old Cygwin 1.5 versions.
17097 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17098 function to avoid warning.
17099 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17100 warning.
17101
9e0627f1
PM
171022011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17103
17104 * gdbserver/server.h (Macro _): Define it if not available.
17105
588eebee
MS
171062011-03-14 Michael Snyder <msnyder@vmware.com>
17107
348af9f7 17108 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 17109
43f70d4c
JB
171102011-03-10 Joel Brobecker <brobecker@adacore.com>
17111
17112 * Makefile.in (maintainer-clean realclean distclean): Remove
17113 "make ... subdir_do" command.
17114
348af9f7
MS
171152011-03-10 Michael Snyder <msnyder@vmware.com>
17116
17117 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17118
17119 * server.c (handle_v_run): Free alloced buffer on early return.
17120
e637a4f5
YQ
171212011-03-09 Yao Qi <yao@codesourcery.com>
17122
17123 Revert:
17124 2011-03-04 Yao Qi <yao@codesourcery.com>
17125
17126 * Makefile.in: Remove GNU make feature --directory.
17127
17128 2011-03-05 Yao Qi <yao@codesourcery.com>
17129
17130 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17131 (subdir_do): New make target. Copied from gdb/Makefile.
17132 (maintainer-clean, realclean, distclean, clean): Call corresponding
17133 make targets in common/Makefile.
17134
17135 2011-02-11 Yao Qi <yao@codesourcery.com>
17136
17137 * configure.ac: Call AC_PROG_RANLIB.
17138 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17139 * configure: Regenerate.
17140
e6edda56
JK
171412011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17142
17143 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17144
e5141119
JB
171452011-03-06 Yao Qi <yao@codesourcery.com>
17146
17147 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17148
64794aa4
JB
171492011-03-05 Yao Qi <yao@codesourcery.com>
17150
17151 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17152 (subdir_do): New make target. Copied from gdb/Makefile.
17153 (maintainer-clean, realclean, distclean, clean): Call corresponding
17154 make targets in common/Makefile.
17155
7a762829
YQ
171562011-03-04 Yao Qi <yao@codesourcery.com>
17157
17158 * Makefile.in: Remove GNU make feature --directory.
17159
348af9f7
MS
171602011-03-04 Michael Snyder <msnyder@vmware.com>
17161
17162 * server.c (queue_stop_reply): Call xmalloc not malloc.
17163
171642011-03-02 Michael Snyder <msnyder@vmware.com>
17165
17166 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17167
9f72fee2
MS
171682011-02-28 Michael Snyder <msnyder@vmware.com>
17169
588eebee
MS
17170 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17171 (cmd_qtframe): Ditto.
17172 (cmd_qtbuffer): Ditto.
17173 (cmd_bigqtbuffer): Ditto.
17174
9f72fee2
MS
17175 * utils.c (decimal2str): Initialize 'width' to nine, then
17176 don't mess with it.
17177
8040bd49
UW
171782011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17179
17180 * hostio.c (require_data): Free *data, not data.
17181
7e52cbd0
JK
171822011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17183
17184 * hostio.c (require_data): Use free, not xfree.
17185
9130f83e
MS
171862011-02-27 Michael Snyder <msnyder@vmware.com>
17187
4b812f4e
MS
17188 * server.c (handle_query): Discard unused value.
17189
9130f83e
MS
17190 * hostio.c (require_data): Free malloc memory before returning
17191 error.
17192
69d37113
MS
171932011-02-26 Michael Snyder <msnyder@vmware.com>
17194
17195 * linux-low.c (list_threads): Call closedir for dirent.
17196
35f5825a
MS
171972011-02-27 Michael Snyder <msnyder@vmware.com>
17198
2a589cef
MS
17199 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17200 a case statement falls through.
17201
0adea5f7
MS
17202 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17203
35f5825a
MS
17204 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17205 in comparison.
17206
238f1c74
MS
172072011-02-26 Michael Snyder <msnyder@vmware.com>
17208
17209 * utils.c (decimal2str): Eliminate dead code and dead param.
17210 (pulongest): Drop dead param from call to decimal2str.
17211 (plongest): Ditto.
17212
633ff500
JB
172132011-02-24 Joel Brobecker <brobecker@adacore.com>
17214
17215 Revert the following patch (not approved yet):
17216 2011-02-21 Hui Zhu <teawater@gmail.com>
17217 * tracepoint.c (tp_printf): New function.
17218 (eval_agent_expr): Handle gdb_agent_op_printf.
17219
f9c6ff72
HZ
172202011-02-21 Hui Zhu <teawater@gmail.com>
17221
17222 * tracepoint.c (tp_printf): New function.
17223 (eval_agent_expr): Handle gdb_agent_op_printf.
17224
94d5e490
TT
172252011-02-18 Tom Tromey <tromey@redhat.com>
17226
17227 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17228 (tracepoint.o): Likewise.
17229 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17230 (gdb_agent_op_names): Likewise.
17231
c7f96d2b
TT
172322011-02-18 Tom Tromey <tromey@redhat.com>
17233
17234 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17235 gdb_agent_op_rot>: New constants.
17236 (gdb_agent_op_names): Add pick and roll.
17237 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17238 cases.
17239
0feedb2c
JK
172402011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17241
17242 * aclocal.m4: Regenerated with aclocal-1.11.1.
17243
b3b9301e
PA
172442011-02-14 Pedro Alves <pedro@codesourcery.com>
17245
17246 * server.c (handle_qxfer_traceframe_info): New.
17247 (qxfer_packets): Register "traceframe-info".
17248 (handle_query): Report support for qXfer:traceframe-info:read+.
17249 * tracepoint.c (match_blocktype): New.
17250 (traceframe_find_block_type): Rename to ...
17251 (traceframe_walk_blocks): ... this. Add callback filter argument,
17252 and use it.
17253 (traceframe_find_block_type): New, reimplemented on top of
17254 traceframe_walk_blocks.
17255 (build_traceframe_info_xml): New.
17256 (traceframe_read_info): New.
17257 * server.h (traceframe_read_info): Declare.
17258
4f3e6fb7
YQ
172592011-02-11 Yao Qi <yao@codesourcery.com>
17260
17261 * configure.ac: Call AC_PROG_RANLIB.
17262 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17263 * configure: Regenerate.
17264
764880b7
PA
172652011-02-07 Pedro Alves <pedro@codesourcery.com>
17266
17267 * server.c (gdb_read_memory): Change return semantics to allow
17268 partial transfers.
17269 (handle_search_memory_1): Adjust.
17270 (process_serial_event) <'m' packet>: Handle partial transfers.
17271 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17272
1c79eb8a
PA
172732011-01-28 Pedro Alves <pedro@codesourcery.com>
17274
17275 * regcache.c (init_register_cache): Initialize
17276 regcache->register_status.
17277 (free_register_cache): Release regcache->register_status.
17278 (regcache_cpy): Copy register_status.
17279 (registers_to_string): Print 'x's for unavailable registers.
17280 (supply_register): Mark the register's status valid or
17281 unavailable, depending on whether a buffer was passed in or not.
17282 (supply_register_zeroed): New.
17283 (supply_regblock): Mark the registers' status valid or
17284 unavailable, depending on whether a buffer was passed in or not.
17285 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17286 (struct regcache): New `register_status' field.
17287 (supply_register_zeroed): Declare.
17288 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17289 supply_register_zeroed, rather than passing a NULL buffer to
17290 supply_register.
17291 * tracepoint.c (fetch_traceframe_registers): Update comment.
17292
85724a0e
PA
172932011-01-28 Pedro Alves <pedro@codesourcery.com>
17294
17295 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17296 buffer explicit.
17297
d08aafef
PA
172982011-01-25 Pedro Alves <pedro@codesourcery.com>
17299
17300 * server.h (decode_xfer_write): Change prototype.
17301 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17302 and don't extract the annex here.
17303 * server.c (decode_xfer_read): Remove `annex' parameter,
17304 and don't extract the annex here.
17305 (decode_xfer): New.
17306 (struct qxfer): New.
17307 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17308 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17309 (handle_qxfer_statictrace): New functions, abstracted out from
17310 handle_query, and made to use the struct qxfer interface.
17311 (handle_threads_qxfer_proper): Rename to ...
17312 (handle_qxfer_threads_proper): ... this.
17313 (handle_threads_qxfer): Rename to ...
17314 (handle_qxfer_threads): ... this. Adjust.
17315 (qxfer_packets): New array.
17316 (handle_qxfer): New function.
17317 (handle_query): Use handle_qxfer.
17318
493e2a69
MS
173192011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17320
17321 * gdbreplay.c: Shorten lines of >= 80 columns.
17322 * linux-low.c: Ditto.
17323 * linux-ppc-low.c: Ditto.
17324 * linux-s390-low.c: Ditto.
17325 * linux-sparc-low.c: Ditto.
17326 * linux-x86-low.c: Ditto.
17327 * linux-xtensa-low.c: Ditto.
17328 * mem-break.c: Ditto.
17329 * nto-low.c: Ditto.
17330 * regcache.h: Ditto.
17331 * remote-utils.c: Ditto.
17332 * server.c: Ditto.
17333 * server.h: Ditto.
17334 * thread-db.c: Ditto.
17335 * tracepoint.c: Ditto.
17336 * utils.c: Ditto.
17337 * win32-low.h: Ditto.
17338
44944448
JB
173392011-01-05 Joel Brobecker <brobecker@adacore.com>
17340
17341 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17342 update.
17343
71ce852c
JB
173442011-01-01 Joel Brobecker <brobecker@adacore.com>
17345
17346 * server.c (gdbserver_version): Update copyright year in version
17347 output.
17348 * gdbreplay.c (gdbreplay_version): Ditto.
17349
eb826dc6
MF
173502010-12-29 Jie Zhang <jie.zhang@analog.com>
17351
17352 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17353 * linux-bfin-low.c: New file.
17354 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17355 PT_DATA_ADDR for BFIN targets.
17356 * Makefile.in (SFILES): Add linux-bfin-low.c.
17357 (clean): Remove reg-bfin.c.
17358 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17359 * README: Mention supported Blackfin targets.
17360
39ab222a
MF
173612010-12-23 Mike Frysinger <vapier@gentoo.org>
17362
17363 * .gitignore: New file.
17364
a1f2ce7d
MF
173652010-11-16 Mike Frysinger <vapier@gentoo.org>
17366
17367 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17368
f474844c
JZ
173692010-10-22 Jie Zhang <jie@codesourcery.com>
17370
17371 * Makefile.in: Add FLAGS_TO_PASS variable.
17372 (install): Remove dependency of install-only and recursively
17373 invoke make for install-only.
17374
f1048712
DE
173752010-10-04 Doug Evans <dje@google.com>
17376
17377 * Makefile.in (uninstall): Use $(DESTDIR).
17378
b53a1623
PA
173792010-09-24 Pedro Alves <pedro@codesourcery.com>
17380
e6ee044d
PA
17381 PR gdb/11842
17382
b53a1623
PA
17383 * linux-x86-low.c (compat_siginfo_from_siginfo)
17384 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17385 si_code is < 0. Check for si_code == SI_TIMER before checking for
17386 si_code < 0.
17387
fa1bd1e4
JB
173882010-09-13 Joel Brobecker <brobecker@adacore.com>
17389
17390 * lynx-i386-low.c: New file.
17391 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17392
47fac8f8
JB
173932010-09-13 Joel Brobecker <brobecker@adacore.com>
17394
17395 * lynx-low.c (ptrace_request_to_str): Remove handling for
17396 request values that have been removed in LynxOS 5.x.
17397
1adfc54d
JB
173982010-09-13 Joel Brobecker <brobecker@adacore.com>
17399
17400 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17401 <ptrace.h>
17402
c2a66c29
NS
174032010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17404
17405 * configure.ac: Add --enable-inprocess-agent option.
17406 * configure: Rebuilt.
17407
32fcada3
YQ
174082010-09-06 Yao Qi <yao@codesourcery.com>
17409
17410 * linux-low.c (linux_kill): Remove unused variable.
17411 (linux_stabilize_threads): Likewise.
17412 * server.c (start_inferior): Likewise.
17413 (queue_stop_reply_callback): Likewise.
17414 * tracepoint.c (do_action_at_tracepoint): Likewise.
17415
0cccb683
YQ
174162010-09-06 Yao Qi <yao@codesourcery.com>
17417
17418 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17419 on return.
17420
423ec54c
JK
174212010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17422
17423 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17424
12ac6819
PA
174252010-09-06 Pedro Alves <pedro@codesourcery.com>
17426
17427 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17428 "$(IPA_DEPFILES)".
17429
8ed54b31
JB
174302010-09-01 Joel Brobecker <brobecker@adacore.com>
17431
17432 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17433 gdbserver/lynx-ppc-low.c: New files.
17434 * Makefile.in (lynx_low_h): New variable.
17435 (lynx-low.o, lynx-ppc-low.o): New rules.
17436 * configure.ac: On LynxOS, link with -lnetinet.
17437 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17438 * configure: regenerate.
17439
bb0116a4
JB
174402010-09-01 Joel Brobecker <brobecker@adacore.com>
17441
17442 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17443 * configure.ac: Add check for vasprintf and vsnprintf.
17444 * configure, config.in: Regenerate.
17445 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17446
a778ab81 174472010-09-01 Joel Brobecker <brobecker@adacore.com>
17448
17449 * gdbreplay.c: Move include of alloca.h up, next to include of
17450 malloc.h.
17451 * server.h: Add include of malloc.h.
17452 * mem-break.c: Remove include of malloc.h.
17453 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17454
8b034a19 174552010-09-01 Joel Brobecker <brobecker@adacore.com>
17456
17457 * Makefile.in (memmem.o): Build with -Wno-error.
17458
174592010-09-01 Joel Brobecker <brobecker@adacore.com>
17460
17461 * utils.c (xsnprintf): Make non-static.
17462 * server.h: Add xsnprintf declaration.
17463 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17464 replace calls to snprintf by calls to xsnprintf throughout.
17465
174662010-09-01 Joel Brobecker <brobecker@adacore.com>
17467
17468 * configure.ac: Add configure check for alloca.
17469 * configure, config.in: Regenerate.
17470 * server.h: Include alloca.h if it exists.
17471 * gdbreplay.c: Include alloca.h if it exists.
17472
1a981360
PA
174732010-08-28 Pedro Alves <pedro@codesourcery.com>
17474
17475 * linux-low.c (__SIGRTMIN): Define if not already defined.
17476 (linux_create_inferior): Check for __ANDROID__ rather than
17477 __SIGRTMIN.
17478 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17479 are already deferred.
17480 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17481 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17482 stopped and already has a pending signal to report.
17483 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17484 a pending signal to report or is moving out of a jump pad.
17485 (linux_init_signals): Check for __ANDROID__ rather than
17486 __SIGRTMIN.
17487
b4d51a55
PA
174882010-08-28 Pedro Alves <pedro@codesourcery.com>
17489
17490 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17491 debug_threads check. Avoid a linear search when not doing debug
17492 output.
17493
ec48365d
PA
174942010-08-27 Pedro Alves <pedro@codesourcery.com>
17495
17496 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17497 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17498 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17499 (process_event): Change local fd's type to gdb_fildes_t.
17500 (create_file_handler): Adjust prototype.
17501 (delete_file_handler): Adjust prototype.
17502 (handle_file_event): Adjust prototype. Use pfildes.
17503 (create_file_event): Adjsut prototype.
17504 * remote-utils.c (remote_desc, listen_desc): Change type to
17505 gdb_fildes_t.
17506 * server.h: New gdb_fildes_t typedef.
17507 [USE_WIN32API]: Include winsock2.h.
17508 (delete_file_handler, add_file_handler): Adjust prototypes.
17509 (pfildes): Declare.
17510 * utils.c (pfildes): New.
17511
854d88f0
PA
175122010-08-27 Pedro Alves <pedro@codesourcery.com>
17513
17514 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17515 * configure: Regenerate.
17516
0146f85b
PA
175172010-08-27 Pedro Alves <pedro@codesourcery.com>
17518
17519 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17520 (linux_done_accessing_memory): ... this.
17521 (linux_target_ops): Adjust.
17522 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17523 * nto-low.c (nto_target_ops): Adjust comment.
17524 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17525 * spu-low.c (spu_target_ops): Adjust comment.
17526 * target.h (target_ops): Rename unprepare_to_access_memory field
17527 to done_accessing_memory.
17528 (unprepare_to_access_memory): Rename to ...
17529 (done_accessing_memory): ... this.
17530
90d74c30
PA
175312010-08-26 Pedro Alves <pedro@codesourcery.com>
17532
17533 * linux-low.c (linux_prepare_to_access_memory): New.
17534 (linux_unprepare_to_access_memory): New.
17535 (linux_target_ops): Install them.
17536 * server.c (read_memory): Rename to ...
17537 (gdb_read_memory): ... this. Use
17538 prepare_to_access_memory/prepare_to_access_memory.
17539 (write_memory): Rename to ...
17540 (gdb_write_memory): ... this. Use
17541 prepare_to_access_memory/prepare_to_access_memory.
17542 (handle_search_memory_1): Adjust.
17543 (process_serial_event): Adjust.
17544 * target.h (struct target_ops): New fields
17545 prepare_to_access_memory and unprepare_to_access_memory.
17546 (prepare_to_access_memory, unprepare_to_access_memory): New.
17547 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17548 prepare_to_access_memory/prepare_to_access_memory.
17549 * nto-low.c (nto_target_ops): Adjust.
17550 * spu-low.c (spu_target_ops): Adjust.
17551 * win32-low.c (win32_target_ops): Adjust.
17552
fd467969
PA
175532010-08-26 Pedro Alves <pedro@codesourcery.com>
17554
17555 * Makefile.in (WARN_CFLAGS): Get it from configure.
17556 (WERROR_CFLAGS): New.
17557 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17558 * configure.ac: Introduce --enable-werror, which adds -Werror to
17559 the compiler command line. Enabled by default. Disable with
17560 --disable-werror. Add -Wdeclaration-after-statement
17561 Wpointer-arith and -Wformat-nonliteral to warning flags.
17562 * configure: Regenerate.
17563
331e2f5f
PA
175642010-08-26 Pedro Alves <pedro@codesourcery.com>
17565
17566 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17567
e581f2b4
PA
175682010-08-26 Pedro Alves <pedro@codesourcery.com>
17569
17570 * gdbreplay.c (remote_error): New.
17571 (gdbchar): New.
17572 (expect): Use gdbchar. Check for error reading from GDB.
17573 Clarify sync error output.
17574 (play): Check for errors writing to GDB.
17575 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17576 * remote-utils.c (getpkt): Check for errors writing to the remote
17577 descriptor.
17578
3c11dd79
PA
175792010-08-25 Pedro Alves <pedro@codesourcery.com>
17580
17581 * linux-low.c (linux_wait_1): Move non-debugging code out of
17582 `debug_threads' control.
17583
d20a8ad9
PA
175842010-08-25 Pedro Alves <pedro@codesourcery.com>
17585
17586 * linux-low.c (linux_wait_1): Don't set last_status here.
17587 * server.c (push_event, queue_stop_reply_callback): Assert we're
17588 not pushing a TARGET_WAITKIND_IGNORE event.
17589 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17590 (myresume, handle_target_event): Set the thread's last_resume_kind
17591 and last_status from the target returned status.
17592
964e4306
PA
175932010-08-25 Pedro Alves <pedro@codesourcery.com>
17594
17595 PR threads/10729
17596
17597 * linux-x86-low.c (update_debug_registers_callback): New.
17598 (i386_dr_low_set_addr): Use it.
17599 (i386_dr_low_get_addr): New.
17600 (i386_dr_low_set_control): Use update_debug_registers_callback.
17601 (i386_dr_low_get_control): New.
17602 (i386_dr_low_get_status): Adjust.
17603 * linux-low.c (linux_stop_lwp): New.
17604 * linux-low.h (linux_stop_lwp): Declare.
17605
17606 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17607 argument instead of a i386_debug_reg_state.
17608 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17609 a i386_debug_reg_state.
17610 (i386_insert_aligned_watchpoint): Adjust.
17611 (i386_remove_aligned_watchpoint): Adjust.
17612 (i386_low_stopped_data_address): Read the debug registers from the
17613 inferior instead of from the mirrors.
17614 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17615 (i386_dr_low_get_addr): Declare.
17616 (i386_dr_low_get_control): Declare.
17617 (i386_dr_low_get_status): Change prototype.
17618
17619 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17620 (i386_dr_low_get_addr): New.
17621 (i386_dr_low_get_control): New.
17622 (i386_dr_low_get_status): Adjust prototype. Return
17623 dr_status_mirror.
17624 (i386_initial_stuff): Clear dr_status_mirror and
17625 dr_control_mirror.
17626 (i386_get_thread_context): Adjust.
17627 (i386_set_thread_context): Adjust.
17628 (i386_thread_added): Adjust.
17629
5f21a75b
PA
176302010-08-24 Pedro Alves <pedro@codesourcery.com>
17631
17632 * linux-low.h (linux_thread_area): Delete declaration.
17633
3e4c1235
TS
176342010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17635
17636 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17637 after its termination.
17638
1971b033
PA
176392010-08-09 Pedro Alves <pedro@codesourcery.com>
17640
17641 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17642 (gdb_wants_all_stopped): Delete.
17643 (linux_wait_1): Don't call them.
17644 * server.c (handle_v_cont): Tag all threads as want-stopped.
17645 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17646 stopped as "client-wants-stopped".
17647
310444ac
PA
176482010-07-31 Pedro Alves <pedro@codesourcery.com>
17649
17650 * Makefile.in (signals_h): New.
17651 (server_h): Depend on it.
17652 (server.o): Don't depend on $(signals_def).
17653 (signals.o): Depend on $(signals_def).
17654
a19cae16
JK
176552010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17656
17657 * Makefile.in (signals_def): New.
17658 (server_h): Append include/gdb/signals.h and signals_def.
17659 (server.o): Append signals_def.
17660
30d50328
JK
176612010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17662
17663 * server.c (handle_target_event): Use target_signal_to_host for
17664 resume_info.sig initialization.
17665 * target.h (struct thread_resume) <sig>: New comment.
17666
5c3216e2
OS
176672010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17668
c6f46ca0
OS
17669 * server.c (handle_query): strcpy() the returned string from paddress()
17670 instead of sprintf().
5c3216e2
OS
17671 * utils.c (paddress): Return phex_nz().
17672
6bd31874
JB
176732010-07-07 Joel Brobecker <brobecker@adacore.com>
17674
17675 * server.c (handle_v_cont): Call mourn_inferior if process
17676 just exited.
17677 (myresume): Likewise.
17678
0fb4aa4b
PA
176792010-07-01 Pedro Alves <pedro@codesourcery.com>
17680
17681 Static tracepoints, and integration with UST.
17682
17683 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17684 * mem-break.c (uninsert_all_breakpoints)
17685 (reinsert_all_breakpoints): New.
17686 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17687 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17688 (gdb_agent_ust_loaded, helper_thread_id)
17689 (gdb_agent_helper_thread_id): New macros.
17690 (struct ipa_sym_addresses): Add addr_ust_loaded,
17691 addr_helper_thread_id, addr_cmd_buf.
17692 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17693 (in_process_agent_loaded_ust): New.
17694 (write_e_ust_not_loaded): New.
17695 (maybe_write_ipa_ust_not_loaded): New.
17696 (struct collect_static_trace_data_action): New.
17697 (enum tracepoint_type) <static_tracepoint>: New.
17698 (struct tracepoint) <handle>: Mention static tracepoints.
17699 (struct static_tracepoint_ctx): New.
17700 (CMD_BUF_SIZE): New.
17701 (add_tracepoint_action): Handle static tracepoint actions.
17702 (unprobe_marker_at): New.
17703 (clear_installed_tracepoints): Handle static tracepoints.
17704 (cmd_qtdp): Handle static tracepoints.
17705 (probe_marker_at): New.
17706 (cmd_qtstart): Handle static tracepoints.
17707 (response_tracepoint): Handle static tracepoints.
17708 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17709 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17710 (get_context_regcache): Handle static tracepoints.
17711 (do_action_at_tracepoint): Handle static tracepoint actions.
17712 (traceframe_find_block_type): Handle static trace data blocks.
17713 (traceframe_read_sdata): New.
17714 (download_tracepoints): Download static tracepoint actions.
17715 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17716 (GDB_PROBE_NAME): New.
17717 (ust_ops): New.
17718 (GET_UST_SYM): New.
17719 (USTF): New.
17720 (dlsym_ust): New.
17721 (ust_marker_to_static_tracepoint): New.
17722 (gdb_probe): New.
17723 (collect_ust_data_at_tracepoint): New.
17724 (gdb_ust_probe): New.
17725 (UNIX_PATH_MAX, SOCK_DIR): New.
17726 (gdb_ust_connect_sync_socket): New.
17727 (resume_thread, stop_thread): New.
17728 (run_inferior_command): New.
17729 (init_named_socket): New.
17730 (gdb_ust_socket_init): New.
17731 (cstr_to_hexstr): New.
17732 (next_st): New.
17733 (first_marker, next_marker): New.
17734 (response_ust_marker): New.
17735 (cmd_qtfstm, cmd_qtsstm): New.
17736 (unprobe_marker_at, probe_marker_at): New.
17737 (cmd_qtstmat, gdb_ust_thread): New.
17738 (gdb_ust_init): New.
17739 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17740 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17741 (ST_REGENTRY): New.
17742 (x86_64_st_collect_regmap): New.
17743 (X86_64_NUM_ST_COLLECT_GREGS): New.
17744 (AMD64_RIP_REGNUM): New.
17745 (supply_static_tracepoint_registers): New.
17746 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17747 (ST_REGENTRY): New.
17748 (i386_st_collect_regmap): New.
17749 (i386_NUM_ST_COLLECT_GREGS): New.
17750 (supply_static_tracepoint_registers): New.
17751 * server.c (handle_query): Handle qXfer:statictrace:read.
17752 <qSupported>: Report support for StaticTracepoints, and
17753 qXfer:statictrace:read features.
17754 * server.h (traceframe_read_sdata)
17755 (supply_static_tracepoint_registers): Declare.
17756 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17757 (unpack_varlen_hex): Include in IPA build.
17758 * Makefile.in (ustlibs, ustinc): New.
17759 (IPA_OBJS): Add remote-utils-ipa.o.
17760 ($(IPA_LIB)): Link -ldl and -lpthread.
17761 (UST_CFLAGS): New.
17762 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17763 * config.in, configure: Regenerate.
17764
9e4344e5
PA
177652010-06-20 Ian Lance Taylor <iant@google.com>
17766 Pedro Alves <pedro@codesourcery.com>
17767
17768 * linux-x86-low.c (always_true): Delete.
17769 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17770 trying to fool the compiler with always_true.
17771
c6beb2cb
PA
177722010-06-20 Pedro Alves <pedro@codesourcery.com>
17773
17774 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17775 conditions in gdbserver.
17776
d2ed6730
UW
177772010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17778
17779 * spu-low.c (spu_read_memory): Wrap around local store limit.
17780 (spu_write_memory): Likewise.
17781
4e29fb54
PA
177822010-06-15 Pedro Alves <pedro@codesourcery.com>
17783
17784 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17785 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17786 LONGEST uses.
17787 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17788 uses.
17789 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17790 uses with LONGEST uses.
17791
6a271cae
PA
177922010-06-14 Stan Shebs <stan@codesourcery.com>
17793 Pedro Alves <pedro@codesourcery.com>
17794
17795 Bytecode compiler.
17796
17797 * linux-x86-low.c: Include limits.h.
17798 (add_insns): New.
17799 (always_true): New.
17800 (EMIT_ASM): New.
17801 (EMIT_ASM32): New.
17802 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17803 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17804 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17805 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17806 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17807 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17808 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17809 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17810 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17811 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17812 (amd64_emit_void_call_2): New.
17813 (amd64_emit_ops): New.
17814 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17815 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17816 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17817 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17818 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17819 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17820 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17821 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17822 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17823 (i386_emit_stack_adjust, i386_emit_int_call_1)
17824 (i386_emit_void_call_2): New.
17825 (i386_emit_ops): New.
17826 (x86_emit_ops): New.
17827 (the_low_target): Install x86_emit_ops.
17828 * server.h (struct emit_ops): New.
17829 (get_raw_reg_func_addr): Declare.
17830 (current_insn_ptr, emit_error): Declare.
17831 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17832 (set_trace_state_variable_value): New defines.
17833 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17834 addr_get_trace_state_variable_value and
17835 addr_set_trace_state_variable_value.
17836 (symbol_list): New fields for get_raw_reg,
17837 get_trace_state_variable_value and set_trace_state_variable_value.
17838 (condfn): New typedef.
17839 (struct tracepoint): New field `compiled_cond'.
17840 (do_action_at_tracepoint): Clear compiled_cond.
17841 (get_trace_state_variable_value, set_trace_state_variable_value):
17842 Export in the IPA.
17843 (condition_true_at_tracepoint): If there's a compiled condition,
17844 run that.
17845 (current_insn_ptr, emit_error): New globals.
17846 (struct bytecode_address): New.
17847 (get_raw_reg_func_addr): New.
17848 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17849 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17850 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17851 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17852 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17853 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17854 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17855 (compile_tracepoint_condition, compile_bytecodes): New.
17856 * target.h (emit_ops): Forward declare.
17857 (struct target_ops): New field emit_ops.
17858 (target_emit_ops): New.
17859 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17860 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17861 * linux-low.c (linux_emit_ops): New.
17862 (linux_target_ops): Install it.
17863 * linux-low.h (struct linux_target_ops): New field emit_ops.
17864
92b72907
UW
178652010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17866
17867 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17868 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17869
fa593d66
PA
178702010-06-01 Pedro Alves <pedro@codesourcery.com>
17871 Stan Shebs <stan@codesourcery.com>
17872
17873 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17874 (all): Depend on $(extra_libraries).
17875 (install-only): Install the IPA.
17876 (IPA_OBJS, IPA_LIB): New.
17877 (clean): Remove the IPA lib.
17878 (IPAGENT_CFLAGS): New.
17879 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17880 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17881 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17882 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17883 * configure.ac: Check for atomic builtins support in the compiler.
17884 (IPA_DEPFILES, extra_libraries): Define.
17885 * configure.srv (ipa_obj): Add description.
17886 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17887 (i[34567]86-*-linux*): Set ipa_obj.
17888 (x86_64-*-linux*): Set ipa_obj.
17889 * linux-low.c (stabilizing_threads): New.
17890 (supports_fast_tracepoints): New.
17891 (linux_detach): Stabilize threads before detaching.
17892 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17893 the lwp is either not stabilizing, or is moving out of a jump pad.
17894 (linux_fast_tracepoint_collecting): New.
17895 (maybe_move_out_of_jump_pad): New.
17896 (enqueue_one_deferred_signal): New.
17897 (dequeue_one_deferred_signal): New.
17898 (linux_wait_for_event_1): If moving out of a jump pad, defer
17899 pending signals to later.
17900 (linux_stabilize_threads): New.
17901 (linux_wait_1): Check if threads need moving out of jump pads, and
17902 do it if so.
17903 (stuck_in_jump_pad_callback): New.
17904 (move_out_of_jump_pad_callback): New.
17905 (lwp_running): New.
17906 (linux_resume_one_lwp): Handle moving out of jump pads.
17907 (linux_set_resume_request): Dequeue deferred signals.
17908 (need_step_over_p): Also step over fast tracepoint jumps.
17909 (start_step_over): Also uninsert fast tracepoint jumps.
17910 (finish_step_over): Also reinsert fast tracepoint jumps.
17911 (linux_install_fast_tracepoint_jump): New.
17912 (linux_target_ops): Install linux_stabilize_threads and
17913 linux_install_fast_tracepoint_jump_pad.
17914 * linux-low.h (linux_target_ops) <get_thread_area,
17915 install_fast_tracepoint_jump_pad>: New fields.
17916 (struct lwp_info) <collecting_fast_tracepoint,
17917 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17918 (linux_get_thread_area): Declare.
17919 * linux-x86-low.c (jump_insn): New.
17920 (x86_get_thread_area): New.
17921 (append_insns): New.
17922 (push_opcode): New.
17923 (amd64_install_fast_tracepoint_jump_pad): New.
17924 (i386_install_fast_tracepoint_jump_pad): New.
17925 (x86_install_fast_tracepoint_jump_pad): New.
17926 (the_low_target): Install x86_get_thread_area and
17927 x86_install_fast_tracepoint_jump_pad.
17928 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17929 (struct fast_tracepoint_jump): New.
17930 (fast_tracepoint_jump_insn): New.
17931 (fast_tracepoint_jump_shadow): New.
17932 (find_fast_tracepoint_jump_at): New.
17933 (fast_tracepoint_jump_here): New.
17934 (delete_fast_tracepoint_jump): New.
17935 (set_fast_tracepoint_jump): New.
17936 (uninsert_fast_tracepoint_jumps_at): New.
17937 (reinsert_fast_tracepoint_jumps_at): New.
17938 (set_breakpoint_at): Use write_inferior_memory.
17939 (uninsert_raw_breakpoint): Use write_inferior_memory.
17940 (check_mem_read): Mask out fast tracepoint jumps.
17941 (check_mem_write): Mask out fast tracepoint jumps.
17942 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17943 (set_fast_tracepoint_jump): Declare.
17944 (delete_fast_tracepoint_jump)
17945 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17946 (reinsert_fast_tracepoint_jumps_at): Declare.
17947 * regcache.c: Don't compile many functions when building the
17948 in-process agent library.
17949 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17950 the register buffer in the heap.
17951 (free_register_cache): If the register buffer isn't owned by the
17952 regcache, don't free it.
17953 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17954 pre-existing register caches.
17955 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17956 type.
17957 (convert_ascii_to_int): : Constify `from' parameter type.
17958 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17959 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17960 the needed buffer in-place.
17961 (relocate_instruction): New.
17962 * server.c (handle_query) <qSymbols>: If the target supports
17963 tracepoints, give it a chance of looking up symbols. Report
17964 support for fast tracepoints.
17965 (handle_status): Stabilize threads.
17966 (process_serial_event): Adjust.
17967 * server.h (struct fast_tracepoint_jump): Forward declare.
17968 (struct process_info) <fast_tracepoint_jumps>: New field.
17969 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17970 (decode_X_packet, decode_M_packet): Adjust.
17971 (relocate_instruction): Declare.
17972 (in_process_agent_loaded): Declare.
17973 (tracepoint_look_up_symbols): Declare.
17974 (struct fast_tpoint_collect_status): Declare.
17975 (fast_tracepoint_collecting): Declare.
17976 (force_unlock_trace_buffer): Declare.
17977 (handle_tracepoint_bkpts): Declare.
17978 (initialize_low_tracepoint)
17979 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17980 * target.h (struct target_ops) <stabilize_threads,
17981 install_fast_tracepoint_jump_pad>: New fields.
17982 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17983 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17984 [HAVE_STDINT_H]: Include stdint.h.
17985 (trace_debug_1): Rename to ...
17986 (trace_vdebug): ... this.
17987 (trace_debug): Rename to ...
17988 (trace_debug_1): ... this. Add `level' parameter.
17989 (trace_debug): New.
17990 (ATTR_USED, ATTR_NOINLINE): New.
17991 (IP_AGENT_EXPORT): New.
17992 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17993 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17994 (about_to_request_buffer_space, trace_buffer_is_full)
17995 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17996 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17997 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17998 (traceframe_write_count, traceframes_created)
17999 (trace_state_variables)
18000 New renaming defines.
18001 (struct ipa_sym_addresses): New.
18002 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
18003 (symbol_list): New.
18004 (ipa_sym_addrs): New.
18005 (all_tracepoint_symbols_looked_up): New.
18006 (in_process_agent_loaded): New.
18007 (write_e_ipa_not_loaded): New.
18008 (maybe_write_ipa_not_loaded): New.
18009 (tracepoint_look_up_symbols): New.
18010 (debug_threads) [IN_PROCESS_AGENT]: New.
18011 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
18012 (UNKNOWN_SIDE_EFFECTS): New.
18013 (stop_tracing): New.
18014 (flush_trace_buffer): New.
18015 (stop_tracing_bkpt): New.
18016 (flush_trace_buffer_bkpt): New.
18017 (read_inferior_integer): New.
18018 (read_inferior_uinteger): New.
18019 (read_inferior_data_pointer): New.
18020 (write_inferior_data_pointer): New.
18021 (write_inferior_integer): New.
18022 (write_inferior_uinteger): New.
18023 (struct collect_static_trace_data_action): Delete.
18024 (enum tracepoint_type): New.
18025 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
18026 <actions_str, step_actions, step_actions_str>: Only include in
18027 GDBserver.
fa593d66
PA
18028 <orig_size, obj_addr_on_target, adjusted_insn_addr>
18029 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
18030 (tracepoints): Use IP_AGENT_EXPORT.
18031 (last_tracepoint): Don't include in the IPA.
18032 (stopping_tracepoint): Use IP_AGENT_EXPORT.
18033 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
18034 (alloced_trace_state_variables): New.
18035 (trace_state_variables): Use IP_AGENT_EXPORT.
18036 (traceframe_t): Delete unused variable.
18037 (circular_trace_buffer): Don't include in the IPA.
18038 (trace_buffer_start): Delete.
18039 (struct trace_buffer_control): New.
18040 (trace_buffer_free): Delete.
18041 (struct ipa_trace_buffer_control): New.
18042 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18043 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18044 New.
18045 (trace_buffer_ctrl): New.
18046 (TRACE_BUFFER_CTRL_CURR): New.
18047 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18048 Reimplement as macros.
18049 (trace_buffer_wrap): Delete.
18050 (traceframe_write_count, traceframe_read_count)
18051 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18052 (struct tracepoint_hit_ctx) <type>: New field.
18053 (struct fast_tracepoint_ctx): New.
18054 (memory_barrier): New.
18055 (cmpxchg): New.
18056 (record_tracepoint_error): Update atomically in the IPA.
18057 (clear_inferior_trace_buffer): New.
18058 (about_to_request_buffer_space): New.
18059 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18060 updating the same buffer.
18061 (add_tracepoint): Default the tracepoint's type to trap
18062 tracepoint, and orig_size to -1.
18063 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18064 internal variables.
18065 (create_trace_state_variable): New parameter `gdb'. Handle it.
18066 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18067 (cmd_qtdp): Handle fast tracepoints.
18068 (cmd_qtdv): Adjust.
18069 (max_jump_pad_size): New.
18070 (gdb_jump_pad_head): New.
18071 (get_jump_space_head): New.
18072 (claim_jump_space): New.
18073 (sort_tracepoints): New.
18074 (MAX_JUMP_SIZE): New.
18075 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18076 IPA.
18077 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18078 support. Upload fast traceframes, and delete internal IPA
18079 breakpoints.
18080 (stop_tracing_handler): New.
18081 (flush_trace_buffer_handler): New.
18082 (cmd_qtstop): Upload fast tracepoints.
18083 (response_tracepoint): Handle fast tracepoints.
18084 (tracepoint_finished_step): Upload fast traceframes. Set the
18085 tracepoint hit context's tracepoint type.
18086 (handle_tracepoint_bkpts): New.
18087 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18088 type. Add comment about fast tracepoints.
18089 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18090 non-existing action_str field.
18091 (get_context_regcache): Handle fast tracepoints.
18092 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18093 to the regcache.
18094 (fast_tracepoint_from_jump_pad_address): New.
18095 (fast_tracepoint_from_ipa_tpoint_address): New.
18096 (collecting_t): New.
18097 (force_unlock_trace_buffer): New.
18098 (fast_tracepoint_collecting): New.
18099 (collecting): New.
18100 (gdb_collect): New.
18101 (write_inferior_data_ptr): New.
18102 (target_tp_heap): New.
18103 (target_malloc): New.
18104 (download_agent_expr): New.
18105 (UALIGN): New.
18106 (download_tracepoints): New.
18107 (download_trace_state_variables): New.
18108 (upload_fast_traceframes): New.
18109 (IPA_FIRST_TRACEFRAME): New.
18110 (IPA_NEXT_TRACEFRAME_1): New.
18111 (IPA_NEXT_TRACEFRAME): New.
18112 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18113 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18114 (gdb_jump_pad_buffer_end): New.
18115 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18116 (initialize_tracepoint): Adjust.
18117 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18118 buffer. Initialize the low module.
18119 * utils.c (PREFIX, TOOLNAME): New.
18120 (malloc_failure): Use PREFIX.
18121 (error): In the IPA, an error causes an exit.
18122 (fatal, warning): Use PREFIX.
18123 (internal_error): Use TOOLNAME.
18124 (NUMCELLS): Increase to 10.
18125 * configure, config.in: Regenerate.
18126
d149dd1d
PA
181272010-06-01 Pedro Alves <pedro@codesourcery.com>
18128
18129 * server.c (handle_query) <qSupported>: Do two passes over the
18130 qSupported string to avoid nesting strtok.
18131
f6528abd
JK
181322010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18133
18134 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18135 (CDEPS): New.
18136 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18137 -Wl,--dynamic-list.
18138 * configure: Regenerate.
18139 * proc-service.list: New.
18140
ca2a87a0
JK
181412010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18142
18143 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18144 New comment.
18145
363a6e9f
OS
181462010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18147
18148 * gdbreplay.c (remote_open): Check error return from socket() call by
18149 its equality to -1 not by it being negative.
18150 * remote-utils.c (remote_open): Likewise.
18151
d23b6cb1
PA
181522010-05-23 Pedro Alves <pedro@codesourcery.com>
18153
18154 * config.h: Regenerate.
18155
28d3cf85
MK
181562010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18157
18158 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18159 doesn't provide PTRACE_GET_THREAD_AREA.
18160
fea36a59
MK
181612010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18162
18163 * linux-m68k-low.c: Include <asm/ptrace.h>
18164 (ps_get_thread_area): Implement.
18165
24b066ba
DE
181662010-05-03 Doug Evans <dje@google.com>
18167
18168 * event-loop.c (struct callback_event): New struct.
18169 (callback_list): New global.
18170 (append_callback_event, delete_callback_event): New functions.
18171 (process_callback): New function.
18172 (start_event_loop): Call it.
18173 * remote-utils.c (NOT_SCHEDULED): Define.
18174 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18175 moved out of readchar.
18176 (readchar): Rewrite. Call reschedule before returning.
18177 (reset_readchar): New function.
18178 (remote_close): Call it.
18179 (process_remaining, reschedule): New functions.
18180 * server.h (callback_handler_func): New typedef.
18181 (append_callback_event, delete_callback_event): Declare.
18182
9836d6ea
PA
181832010-05-03 Pedro Alves <pedro@codesourcery.com>
18184
18185 * proc-service.c (ps_pglobal_lookup): Use
18186 thread_db_look_up_one_symbol.
18187 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18188 parameter. Use it instead of all_symbols_looked_up.
18189 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18190 field.
18191 (all_symbols_looked_up): Don't declare.
18192 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18193 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18194 field.
18195 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18196 Set all_symbols_looked_up here.
18197 (thread_db_look_up_one_symbol): New.
18198 (thread_db_get_tls_address): Adjust.
18199 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18200 thread_db object on the heap, and tentatively set it in the
18201 process structure.
18202 (thread_db_init): Don't set all_symbols_looked_up here.
18203 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18204
7984d532
PA
182052010-05-03 Pedro Alves <pedro@codesourcery.com>
18206
18207 * linux-low.c (linux_kill, linux_detach): Adjust.
18208 (status_pending_p_callback): Remove redundant statement. Check
18209 for !TARGET_WAITIKIND_IGNORE, instead of
18210 TARGET_WAITKIND_STOPPED.
18211 (handle_tracepoints): Make sure LWP is locked. Adjust.
18212 (linux_wait_for_event_1): Adjust.
18213 (linux_cancel_breakpoints): New.
18214 (unsuspend_one_lwp): New.
18215 (unsuspend_all_lwps): New.
18216 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18217 (send_sigstop_callback): Change return type to int, add new
18218 `except' parameter and handle it.
18219 (suspend_and_send_sigstop_callback): New.
18220 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18221 pass them down. If SUSPEND, also increment the lwp's suspend
18222 count.
18223 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18224 (need_step_over_p): Don't consider suspended LWPs.
18225 (start_step_over): Adjust.
18226 (proceed_one_lwp): Change return type to int, add new `except'
18227 parameter and handle it.
18228 (unsuspend_and_proceed_one_lwp): New.
18229 (proceed_all_lwps): Use find_inferior instead of
18230 for_each_inferior.
18231 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18232 also decrement the suspend count of LWPs. Pass `except' down,
18233 instead of hacking its suspend count.
18234 (linux_pause_all): Add `freeze' parameter. Adjust.
18235 (linux_unpause_all): New.
18236 (linux_target_ops): Install linux_unpause_all.
18237 * server.c (handle_status): Adjust.
18238 * target.h (struct target_ops): New fields `unpause_all' and
18239 `cancel_breakpoints'. Add new parameter to `pause_all'.
18240 (pause_all): Add new `freeze' parameter.
18241 (unpause_all): New.
18242 (cancel_breakpoints): New.
18243 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18244 cancel breakpoints.
18245 (cmd_qtstart): Pause threads.
18246 (stop_tracing): Pause threads, and cancel breakpoints.
18247 * win32-low.c (win32_target_ops): Adjust.
18248
e471f25b
PA
182492010-05-03 Pedro Alves <pedro@codesourcery.com>
18250
18251 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18252 the inferior right away from here...
18253 (linux_wait_1): ... to here, and adjust to check the thread's
18254 last_resume_kind instead of the lwp's step or stop_expected flags.
18255
1915ef4f
PA
182562010-05-02 Pedro Alves <pedro@codesourcery.com>
18257
18258 * README: Use consistent `GDB' and `GDBserver' spellings.
18259
f9e39928
PA
182602010-05-02 Pedro Alves <pedro@codesourcery.com>
18261
18262 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18263 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18264 (linux_detach_one_lwp): Assume the lwp is stopped.
18265 (any_thread_of): Delete.
18266 (linux_detach): Stop all lwps here. Don't blindly delete all
18267 breakpoints.
18268 (delete_lwp_callback): New.
18269 (linux_mourn): Delete all lwps of the process that is gone.
18270 (linux_wait_1): Don't delete the last lwp of the process here.
18271 * mem-break.h (mark_breakpoints_out): Declare.
18272 * mem-break.c (mark_breakpoints_out): New.
18273 (free_all_breakpoints): Use it.
18274 * server.c (handle_target_event): If the process is gone, mark
18275 breakpoints out.
18276 * thread-db.c (struct thread_db) <create_bp>: New field.
18277 (thread_db_enable_reporting): Fix prototype. Store a thread event
18278 breakpoint reference in the thread_db struct.
18279 (thread_db_load_search): Clear the thread_db object.
18280 (try_thread_db_load_1): Ditto.
18281 (switch_to_process): New.
18282 (disable_thread_event_reporting): Use it.
18283 (remove_thread_event_breakpoints): New.
18284 (thread_db_detach, thread_db_mourn): Use it.
18285
1e7fc18c
PA
182862010-05-01 Pedro Alves <pedro@codesourcery.com>
18287
18288 * linux-low.c (linux_enable_event_reporting): New.
18289 (linux_wait_for_event_1, handle_extended_wait): Use it.
18290
02fc4de7
PA
182912010-04-30 Pedro Alves <pedro@codesourcery.com>
18292
18293 * linux-low.c (linux_kill_one_lwp, linux_kill)
18294 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18295 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18296 SIGSTOP even if the LWP is stopped.
18297 (send_sigstop_callback): New.
18298 (stop_all_lwps): Use send_sigstop_callback instead.
18299 (linux_resume_one_thread): Adjust.
18300 (proceed_one_lwp): Still proceed an LWP that the client has
18301 requested to stop, if we haven't reported it as stopped yet. Make
18302 sure that LWPs the client want stopped, have a pending SIGSTOP.
18303
bc3b5632
DE
183042010-04-26 Doug Evans <dje@google.com>
18305
ae1ada35
DE
18306 * server.c (handle_general_set): Make static.
18307
bc3b5632
DE
18308 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18309 Print received char after testing for error/eof instead of before.
18310 (input_interrupt): Tweak comment.
18311
65730243
DE
183122010-04-23 Doug Evans <dje@google.com>
18313
18314 * server.c (start_inferior): Print inferior argv if --debug.
18315
a8ae7dc0
AR
183162010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18317
18318 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18319 * nto-x86-low.c: Include server.h
18320
1c07cc19
PM
183212010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18322
18323 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18324 be consistent with other sources of this directory.
18325 (init_registers_amd64): Correct name of source file of this function
18326 in the comment.
18327
e0a61e09
PM
183282010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18329
18330 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18331 64-bit executables.
18332
54709339
PM
183332010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18334
18335 * win32-i386-low.c: Add 64-bit support.
18336 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18337 (init_registers_amd64): Declare.
18338 (mappings): Add 64-bit version of array.
18339 (init_windows_x86): New function.
18340 (the_low_target): Change init_arch field to init_windows_x86.
18341
e8f0053d
PM
183422010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18343
18344 * win32-low.c: Adapt to support also 64-bit architecture.
18345 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18346 (get_image_name): Use SIZE_T type for local variable `done'.
18347 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18348 (toolhelp_get_dll_name): Idem.
18349 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18350 Use uintptr_t typecast to avoid warning.
18351 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18352 (handle_exception): Use phex_nz to avoid warning.
18353 (win32_wait): Remove unused local variable `process'.
18354
c481e77e
PM
183552010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18356
18357 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18358 `amd64-avx.o'.
18359
12ea4b69
PM
183602010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18361
18362 * configure.ac: Use `ws2_32' library for srv_mingw.
18363 * configure: Regenerate.
18364 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18365 * remote-utils.c: Likewise.
18366
f6d1620c
L
183672010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18368
18369 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18370 if __x86_64__ is defined.
18371
8e642873
PM
183722010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18373
18374 * configure: Regenerate.
18375
711e434b
PM
183762010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18377
18378 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18379 * target.h (target_ops): New get_tib_address field.
18380 * win32-low.h (win32_thread_info): Add thread_local_base field.
18381 * win32-low.c (child_add_thread): Add tlb argument.
18382 Set thread_local_base field to TLB.
18383 (get_child_debug_event): Adapt to child_add_thread change.
18384 (win32_get_tib_address): New function.
18385 (win32_target_ops): Set get_tib_address field to
18386 win32_get_tib_address.
18387 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18388
505106cd
PA
183892010-04-12 Pedro Alves <pedro@codesourcery.com>
18390
505106cd
PA
18391 * linux-low.c (linux_mourn): Also remove the process.
18392 * server.c (handle_target_event): Don't remove the process here.
18393 * nto-low.c (nto_mourn): New.
18394 (nto_target_ops): Install it.
18395 * spu-low.c (spu_mourn): New.
18396 (spu_target_ops): Install it.
18397 * win32-low.c (win32_mourn): New.
18398 (win32_target_ops): Install it.
18399
e8470a06
PA
184002010-04-12 Pedro Alves <pedro@codesourcery.com>
18401
18402 * server.h (buffer_xml_printf): Remove redundant `;'.
18403
45ba0d02
PA
184042010-04-12 Pedro Alves <pedro@codesourcery.com>
18405
18406 * regcache.c (set_register_cache): Invalidate regcaches before
18407 changing the register cache layout.
18408 (regcache_invalidate_one): Allow a NULL regcache.
18409 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18410 regcaches before changing the register cache layout or the target
18411 regsets.
18412
59e04013
L
184132010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18414
18415 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18416 variable warning on Linux/x86-64.
18417
8336d594
PA
184182010-04-11 Pedro Alves <pedro@codesourcery.com>
18419
18420 GDBserver disconnected tracing support.
18421
18422 * linux-low.c (linux_remove_process): Delete.
18423 (add_lwp): Don't set last_resume_kind here.
18424 (linux_kill): Use `mourn'.
18425 (linux_detach): Use `thread_db_detach', and `mourn'.
18426 (linux_mourn): New.
18427 (linux_attach_lwp_1): Adjust comment.
18428 (linux_attach): last_resume_kind moved the thread_info; adjust.
18429 (status_pending_p_callback): Adjust.
18430 (linux_wait_for_event_1): Adjust.
18431 (count_events_callback, select_singlestep_lwp_callback)
18432 (select_event_lwp_callback, cancel_breakpoints_callback)
18433 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18434 (proceed_one_lwp): Adjust.
18435 (linux_async): Add debug output.
18436 (linux_thread_stopped): New.
18437 (linux_pause_all): New.
18438 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18439 linux_pause_all.
18440 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18441 (thread_db_free): Delete declaration.
18442 (thread_db_detach, thread_db_mourn): Declare.
18443 * thread-db.c (thread_db_init): Use thread_db_mourn.
18444 (thread_db_free): Delete, split in two.
18445 (disable_thread_event_reporting): New.
18446 (thread_db_detach): New.
18447 (thread_db_mourn): New.
18448
18449 * server.h (struct thread_info) <last_resume_kind>: New field.
18450 <attached>: Add comment.
18451 <gdb_detached>: New field.
18452 (handler_func): Change return type to int.
18453 (handle_serial_event, handle_target_event): Ditto.
18454 (gdb_connected): Declare.
18455 (tracing): Delete.
18456 (disconnected_tracing): Declare.
18457 (stop_tracing): Declare.
18458
18459 * server.c (handle_query) <qSupported>: Report support for
18460 disconnected tracing.
18461 (queue_stop_reply_callback): Account for running threads.
18462 (gdb_wants_thread_stopped): New.
18463 (gdb_wants_all_threads_stopped): New.
18464 (gdb_reattached_process): New.
18465 (handle_status): Clear the `gdb_detached' flag of all processes.
18466 In all-stop, stop all threads.
18467 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18468 (process_serial_event): If the remote connection breaks, or if an
18469 exit was forced with "monitor exit", force an event loop exit.
18470 Handle disconnected tracing on detach.
18471 (handle_serial_event): Adjust.
18472 (handle_target_event): If GDB isn't connected, forward events back
18473 to the inferior, unless the last process exited, in which case,
18474 exit gdbserver. Adjust interface.
18475
18476 * remote-utils.c (remote_open): Don't block in accept. Instead
18477 register an event loop source on the listen socket file
18478 descriptor. Refactor bits into ...
18479 (listen_desc): ... this new global.
18480 (gdb_connected): ... this new function.
18481 (enable_async_notification): ... this new function.
18482 (handle_accept_event): ... this new function.
18483 (remote_close): Clear remote_desc.
18484
18485 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18486
18487 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18488 New fields.
18489 (mourn_inferior): Define.
18490 (target_process_qsupported): Avoid the dangling else problem.
18491 (thread_stopped): Define.
18492 (pause_all): Define.
18493 (target_waitstatus_to_string): Declare.
18494 * target.c (target_waitstatus_to_string): New.
18495
18496 * tracepoint.c (tracing): Make extern.
18497 (disconnected_tracing): New.
18498 (stop_tracing): Make extern. Handle tracing stops due to GDB
18499 disconnecting.
18500 (cmd_qtdisconnected): New.
18501 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18502 (handle_tracepoint_general_set): Handle QTDisconnected.
18503
18504 * event-loop.c (event_handler_func): Change return type to int.
18505 (process_event): Bail out if the event handler wants the event
18506 loop to stop.
18507 (handle_file_event): Ditto.
18508 (start_event_loop): Bail out if the event handler wants the event
18509 loop to stop.
18510
18511 * nto-low.c (nto_target_ops): Adjust.
18512 * spu-low.c (spu_wait): Don't remove the process here.
18513 (spu_target_ops): Adjust.
18514 * win32-low.c (win32_wait): Don't remove the process here.
18515 (win32_target_ops): Adjust.
18516
5d267c4c
PA
185172010-04-11 Pedro Alves <pedro@codesourcery.com>
18518
18519 * regcache.c (realloc_register_cache): Invalidate inferior's
18520 regcache before recreating it.
18521
623ccd72
PA
185222010-04-09 Pedro Alves <pedro@codesourcery.com>
18523
18524 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18525
219f2f23
PA
185262010-04-09 Stan Shebs <stan@codesourcery.com>
18527 Pedro Alves <pedro@codesourcery.com>
18528
18529 * server.h (LONGEST): New.
18530 (struct thread_info) <while_stepping>: New field.
18531 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18532 Declare.
18533 (initialize_tracepoint, handle_tracepoint_general_set)
18534 (handle_tracepoint_query, tracepoint_finished_step)
18535 (tracepoint_was_hit, release_while_stepping_state_list):
18536 (current_traceframe): Declare.
18537 * server.c (handle_general_set): Handle tracepoint packets.
18538 (read_memory): New.
18539 (write_memory): New.
18540 (handle_search_memory_1): Use read_memory.
18541 (handle_query): Report support for conditional tracepoints, trace
18542 state variables, and tracepoint sources. Handle tracepoint
18543 queries.
18544 (main): Initialize the tracepoints module.
18545 (process_serial_event): Handle traceframe reads/writes.
18546
18547 * linux-low.c (handle_tracepoints): New.
18548 (linux_wait_1): Call it.
18549 (linux_resume_one_lwp): Handle while-stepping.
18550 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18551 (linux_target_ops): Install them.
18552 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18553 New field.
18554 * linux-x86-low.c (x86_supports_tracepoints): New.
18555 (the_low_target). Install it.
18556
18557 * mem-break.h (delete_breakpoint): Declare.
18558 * mem-break.c (delete_breakpoint): Make external.
18559
18560 * target.h (struct target_ops): Add `supports_tracepoints',
18561 `read_pc', and `write_pc' fields.
18562 (target_supports_tracepoints): Define.
18563 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18564 (phex_nz): New.
18565
18566 * regcache.h (struct regcache) <registers_owned>: New field.
18567 (init_register_cache, regcache_cpy): Declare.
18568 (regcache_read_pc, regcache_write_pc): Declare.
18569 (register_cache_size): Declare.
18570 (supply_regblock): Declare.
18571 * regcache.c (init_register_cache): New.
18572 (new_register_cache): Use it.
18573 (regcache_cpy): New.
18574 (register_cache_size): New.
18575 (supply_regblock): New.
18576 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18577
219f2f23
PA
18578 * tracepoint.c: New.
18579
18580 * Makefile.in (OBS): Add tracepoint.o.
18581 (tracepoint.o): New rule.
18582
3a13a53b
L
185832010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18584
18585 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18586 (i386-mmx.o): New.
18587 (i386-mmx.c): Likewise.
18588 (i386-mmx-linux.o): Likewise.
18589 (i386-mmx-linux.c): Likewise.
18590
18591 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18592 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18593 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18594 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18595
18596 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18597 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18598 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18599
1570b33e
L
186002010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18601
18602 * Makefile.in (clean): Updated.
18603 (i386-avx.o): New.
18604 (i386-avx.c): Likewise.
18605 (i386-avx-linux.o): Likewise.
18606 (i386-avx-linux.c): Likewise.
18607 (amd64-avx.o): Likewise.
18608 (amd64-avx.c): Likewise.
18609 (amd64-avx-linux.o): Likewise.
18610 (amd64-avx-linux.c): Likewise.
18611
18612 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18613 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18614 (srv_amd64_regobj): Add amd64-avx.o.
18615 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18616 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18617 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18618 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18619 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18620 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18621 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18622
18623 * i387-fp.c: Include "i386-xstate.h".
18624 (i387_xsave): New.
18625 (i387_cache_to_xsave): Likewise.
18626 (i387_xsave_to_cache): Likewise.
18627 (x86_xcr0): Likewise.
18628
18629 * i387-fp.h (i387_cache_to_xsave): Likewise.
18630 (i387_xsave_to_cache): Likewise.
18631 (x86_xcr0): Likewise.
18632
18633 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18634 * linux-crisv32-low.c (target_regsets): Likewise.
18635 * linux-m68k-low.c (target_regsets): Likewise.
18636 * linux-mips-low.c (target_regsets): Likewise.
18637 * linux-ppc-low.c (target_regsets): Likewise.
18638 * linux-s390-low.c (target_regsets): Likewise.
18639 * linux-sh-low.c (target_regsets): Likewise.
18640 * linux-sparc-low.c (target_regsets): Likewise.
18641 * linux-xtensa-low.c (target_regsets): Likewise.
18642
18643 * linux-low.c: Include <sys/uio.h>.
18644 (regsets_fetch_inferior_registers): Support nt_type.
18645 (regsets_store_inferior_registers): Likewise.
18646 (linux_process_qsupported): New.
18647 (linux_target_ops): Add linux_process_qsupported.
18648
18649 * linux-low.h (regset_info): Add nt_type.
18650 (linux_target_ops): Add process_qsupported.
18651
18652 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18653 and <sys/uio.h>.
18654 (init_registers_i386_avx_linux): New.
18655 (init_registers_amd64_avx_linux): Likewise.
18656 (xmltarget_i386_linux_no_xml): Likewise.
18657 (xmltarget_amd64_linux_no_xml): Likewise.
18658 (PTRACE_GETREGSET): Likewise.
18659 (PTRACE_SETREGSET): Likewise.
18660 (x86_fill_xstateregset): Likewise.
18661 (x86_store_xstateregset): Likewise.
18662 (use_xml): Likewise.
18663 (x86_linux_update_xmltarget): Likewise.
18664 (x86_linux_process_qsupported): Likewise.
18665 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18666 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18667 init_registers_i386_linux here. Call
18668 x86_linux_update_xmltarget.
18669 (the_low_target): Add x86_linux_process_qsupported.
18670
18671 * server.c (handle_query): Call target_process_qsupported.
18672
18673 * target.h (target_ops): Add process_qsupported.
18674 (target_process_qsupported): New.
18675
fc7238bb
PA
186762010-04-03 Pedro Alves <pedro@codesourcery.com>
18677
18678 * inferiors.c (add_thread): Set last_status kind to
18679 TARGET_WAITKIND_IGNORE.
18680 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18681 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18682 (linux_wait_1): Move `thread' local definition to block that uses
18683 it. Don't NULL initialize `event_child'.
18684 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18685 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18686 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18687
bdabb078
PA
186882010-04-01 Pedro Alves <pedro@codesourcery.com>
18689
18690 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18691 an extended waitstatus, or by a watchpoint.
18692 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18693 thread was stepping or has been stopped by a watchpoint.
18694
d3bbe7a0
PA
186952010-04-01 Pedro Alves <pedro@codesourcery.com>
18696
18697 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18698 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18699 of another, then delete the previous, and validate all
18700 breakpoints.
18701 (validate_inserted_breakpoint): New.
18702 (delete_disabled_breakpoints): New.
18703 (validate_breakpoints): New.
18704 (check_mem_read): Validate breakpoints before trusting their
18705 shadow. Delete disabled breakpoints.
18706 (check_mem_write): Validate breakpoints before trusting they
18707 should be inserted. Delete disabled breakpoints.
18708 * mem-break.h (validate_breakpoints):
18709 * server.c (handle_query): Validate breakpoints when we see a
18710 qSymbol query.
18711
8b07ae33
PA
187122010-04-01 Pedro Alves <pedro@codesourcery.com>
18713
18714 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18715 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18716 if we could tell there's a GDB breakpoint at stop_pc.
18717 (need_step_over_p): Don't do a step over if we find a GDB
18718 breakpoint at the resume PC.
18719
18720 * mem-break.c (struct raw_breakpoint): New.
18721 (enum bkpt_type): New type `gdb_breakpoint'.
18722 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18723 fields. New field `raw'.
18724 (find_raw_breakpoint_at): New.
18725 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18726 breakpoint instead.
18727 (set_breakpoint_at): Adjust.
18728 (delete_raw_breakpoint): New.
18729 (release_breakpoint): New.
18730 (delete_breakpoint): Rename to...
18731 (delete_breakpoint_1): ... this. Add proc parameter. Use
18732 release_breakpoint. Return ENOENT.
18733 (delete_breakpoint): Reimplement.
18734 (find_breakpoint_at): Delete.
18735 (find_gdb_breakpoint_at): New.
18736 (delete_breakpoint_at): Delete.
18737 (set_gdb_breakpoint_at): New.
18738 (delete_gdb_breakpoint_at): New.
18739 (gdb_breakpoint_here): New.
18740 (set_reinsert_breakpoint): Use release_breakpoint.
18741 (uninsert_breakpoint): Rename to ...
18742 (uninsert_raw_breakpoint): ... this.
18743 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18744 (reinsert_raw_breakpoint): Change parameter type to
18745 raw_breakpoint.
18746 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18747 instead.
18748 (check_breakpoints): Adjust. Use release_breakpoint.
18749 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18750 (breakpoint_inserted_here): Ditto.
18751 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18752 Don't trust the breakpoint's shadow if it is not inserted.
18753 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18754 (delete_all_breakpoints): Adjust.
18755 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18756 use delete_breakpoint_1.
18757
18758 * mem-break.h (breakpoints_supported): Delete declaration.
18759 (set_gdb_breakpoint_at): Declare.
18760 (gdb_breakpoint_here): Declare.
18761 (delete_breakpoint_at): Delete.
18762 (delete_gdb_breakpoint_at): Declare.
18763
18764 * server.h (struct raw_breakpoint): Forward declare.
18765 (struct process_info): New field `raw_breakpoints'.
18766
18767 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18768 breakpoints.
18769
6bf5e0ba
PA
187702010-03-24 Pedro Alves <pedro@codesourcery.com>
18771
18772 * linux-low.c (status_pending_p_callback): Fix comment.
18773 (linux_wait_for_event_1): Move most of the internal breakpoint
18774 handling from here...
18775 (linux_wait_1): ... to here.
18776 (count_events_callback): New.
18777 (select_singlestep_lwp_callback): New.
18778 (select_event_lwp_callback): New.
18779 (cancel_breakpoints_callback): New.
18780 (select_event_lwp): New.
18781 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18782 priority to all LWPs that have had events that should be reported
18783 to the client. Cancel breakpoints when about to reporting the
18784 event to the client, not while stopping lwps. No longer cancel
18785 finished single-steps here.
18786 (cancel_finished_single_step): Delete.
18787 (cancel_finished_single_steps): Delete.
18788
414a389f
PA
187892010-03-24 Pedro Alves <pedro@codesourcery.com>
18790
18791 * mem-break.c (enum bkpt_type): New.
18792 (struct breakpoint): New field `type'.
18793 (set_breakpoint_at): Change return type to struct breakpoint
18794 pointer. Set type to `other_breakpoint' by default.
18795 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18796 in the breakpoint list.
18797 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18798 (reinsert_breakpoint): Rename to ...
18799 (reinsert_raw_breakpoint): ... this.
18800 (reinsert_breakpoints_at): Adjust.
18801 * mem-break.h (struct breakpoint): Declare.
18802 (set_breakpoint_at): Change return type to struct breakpoint
18803 pointer.
18804
2280c721
PA
188052010-03-24 Pedro Alves <pedro@codesourcery.com>
18806
18807 * server.c (handle_query): Assign, not compare.
18808
d50171e4
PA
188092010-03-24 Pedro Alves <pedro@codesourcery.com>
18810
18811 Teach linux gdbserver to step-over-breakpoints.
18812
18813 * linux-low.c (can_hardware_single_step): New.
18814 (supports_breakpoints): New.
18815 (handle_extended_wait): If stopping threads, read the stop pc of
18816 the new cloned LWP.
18817 (get_pc): New.
18818 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18819 low target doesn't support retrieving the PC.
18820 (add_lwp): Set last_resume_kind to resume_continue.
18821 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18822 (linux_attach): Don't clear stop_expected. Set the lwp's
18823 last_resume_kind to resume_stop.
18824 (linux_detach_one_lwp): Don't check for removed breakpoints.
18825 (check_removed_breakpoint): Delete.
18826 (status_pending_p): Rename to ...
18827 (status_pending_p_callback): ... this. Don't check for removed
18828 breakpoints. Don't consider threads that are stopped from GDB's
18829 perspective.
18830 (linux_wait_for_lwp): Always read the stop_pc here.
18831 (cancel_breakpoint): New.
18832 (step_over_bkpt): New global.
18833 (linux_wait_for_event_1): Implement stepping over breakpoints.
18834 (gdb_wants_lwp_stopped): New.
18835 (gdb_wants_all_stopped): New.
18836 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18837 single-step traps here. Store the thread's last reported target
18838 wait status.
18839 (send_sigstop): Don't clear stop_expected. Always set it,
18840 instead.
18841 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18842 (cancel_finished_single_step): New.
18843 (cancel_finished_single_steps): New.
18844 (wait_for_sigstop): Don't cancel finished single-step traps here.
18845 (linux_resume_one_lwp): Don't check for removed breakpoints.
18846 Don't set `step' on non-hardware step archs.
18847 (linux_set_resume_request): Ignore resume_stop requests if already
18848 stopping or stopped. Set the lwp's last_resume_kind.
18849 (resume_status_pending_p): Don't check for removed breakpoints.
18850 (need_step_over_p): New.
18851 (start_step_over): New.
18852 (finish_step_over): New.
18853 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18854 requests. Clear the thread's last reported target waitstatus.
18855 Don't use the `suspended' flag. Don't consider pending breakpoints.
18856 (linux_resume): Start a step-over if necessary.
18857 (proceed_one_lwp): New.
18858 (proceed_all_lwps): New.
18859 (unstop_all_lwps): New.
18860 * linux-low.h (struct lwp_info): Rewrite comment for the
18861 `suspended' flag. Add the `stop_pc' field. Delete the
18862 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18863 Add `'last_resume_kind' and `need_step_over' fields.
18864 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18865 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18866 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18867 (set_raw_breakpoint_at): New.
18868 (set_breakpoint_at): Rewrite to use it.
18869 (reinsert_breakpoint_handler): Delete.
18870 (set_reinsert_breakpoint): New.
18871 (reinsert_breakpoint_by_bp): Delete.
18872 (delete_reinsert_breakpoints): New.
18873 (uninsert_breakpoint): Rewrite.
18874 (uninsert_breakpoints_at): New.
18875 (reinsert_breakpoint): Rewrite.
18876 (reinsert_breakpoints_at): New.
18877 (check_breakpoints): Rewrite.
18878 (breakpoint_here): New.
18879 (breakpoint_inserted_here): New.
18880 (check_mem_read): Adjust.
18881 * mem-break.h (breakpoints_supported, breakpoint_here)
18882 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18883 (reinsert_breakpoint_by_bp): Delete declaration.
18884 (delete_reinsert_breakpoints): Declare.
18885 (reinsert_breakpoint): Delete declaration.
18886 (reinsert_breakpoints_at): Declare.
18887 (uninsert_breakpoint): Delete declaration.
18888 (uninsert_breakpoints_at): Declare.
18889 (check_breakpoints): Adjust prototype.
18890 * server.h: Adjust include order.
18891 (struct thread_info): Declare here. Add a `last_status' field.
18892
30ba68cb
MS
188932010-03-23 Michael Snyder <msnyder@vmware.com>
18894
18895 * server.c (crc32): New function.
18896 (handle_query): Add handling for 'qCRC:' request.
18897
b9a881c2
PA
188982010-03-23 Pedro Alves <pedro@codesourcery.com>
18899
18900 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18901 lwp had been stopped by a watchpoint.
18902
e92d13d5
PA
189032010-03-16 Pedro Alves <pedro@codesourcery.com>
18904
18905 * server.h (internal_error): Declare.
18906 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18907 * utils.c (internal_error): New function.
18908
64daa791
AS
189092010-03-15 Andreas Schwab <schwab@redhat.com>
18910
18911 * configure.srv: Fix typo setting srv_regobj.
18912
f52cd8cd
PA
189132010-03-15 Pedro Alves <pedro@codesourcery.com>
18914
18915 * linux-low.c (fetch_register): Avoid passing a non string literal
18916 format to `error'.
18917 (usr_store_inferior_registers): Ditto.
18918
93ae6fdc
PA
189192010-03-14 Pedro Alves <pedro@codesourcery.com>
18920
18921 * linux-low.c (linux_write_memory): Bail out early if peeking
18922 memory failed.
18923
c3adc08c
PA
189242010-03-14 Pedro Alves <pedro@codesourcery.com>
18925
18926 * linux-low.h (struct lwp_info): New fields
18927 `stopped_by_watchpoint' and `stopped_data_address'.
18928 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18929 here, and cache them in the lwp object.
18930 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18931 directly.
18932 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18933 field.
18934 (linux_stopped_by_watchpoint): Rewrite.
18935 (linux_stopped_data_address): Rewrite.
18936
bce522a2
PA
189372010-03-06 Simo Melenius <simo.melenius@iki.fi>
18938
18939 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18940 switching the current inferior, not before.
18941
90884b2b
L
189422010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18943
18944 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18945 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18946 i386-linux.c and amd64-linux.c.
18947 (reg-i386.o): Removed.
18948 (reg-i386.c): Likewise.
18949 (reg-i386-linux.o): Likewise.
18950 (reg-i386-linux.c): Likewise.
18951 (reg-x86-64.o): Likewise.
18952 (reg-x86-64.c): Likewise.
18953 (reg-x86-64-linux.o): Likewise.
18954 (reg-x86-64-linux.c): Likewise.
18955 (i386.o): New.
18956 (i386.c): Likewise.
18957 (i386-linux.o): Likewise.
18958 (i386-linux.c): Likewise.
18959 (amd64.o): Likewise.
18960 (amd64.c): Likewise.
18961 (amd64-linux.o): Likewise.
18962 (amd64-linux.c): Likewise.
18963
18964 * configure.srv (srv_i386_regobj): New.
18965 (srv_i386_linux_regobj): Likewise.
18966 (srv_amd64_regobj): Likewise.
18967 (srv_amd64_linux_regobj): Likewise.
18968 (srv_i386_32bit_xmlfiles): Likewise.
18969 (srv_i386_64bit_xmlfiles): Likewise.
18970 (srv_i386_xmlfiles): Likewise.
18971 (srv_amd64_xmlfiles): Likewise.
18972 (srv_i386_linux_xmlfiles): Likewise.
18973 (srv_amd64_linux_xmlfiles): Likewise.
18974 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18975 srv_xmlfiles to $srv_i386_xmlfiles.
18976 (i[34567]86-*-mingw32ce*): Likewise.
18977 (i[34567]86-*-mingw*): Likewise.
18978 (i[34567]86-*-nto*): Likewise.
18979 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18980 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18981 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18982 (x86_64-*-linux*): Likewise.
18983
18984 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18985 (init_registers_amd64_linux): New.
18986 (x86_arch_setup): Replace init_registers_x86_64_linux with
18987 init_registers_amd64_linux.
18988
193f13e6
MK
189892010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18990
18991 * configure.ac: Check for libdl. If it is not available link against
18992 static libthread_db.
18993 * configure: Regenerate.
18994
85d721b8
PA
189952010-02-22 Pedro Alves <pedro@codesourcery.com>
18996
18997 PR9605
18998
18999 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
19000 handing a read watchpoint.
19001 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
19002
6076632b
DE
190032010-02-12 Doug Evans <dje@google.com>
19004
19005 * linux-low.c (linux_supports_tracefork_flag): Document.
19006 (linux_look_up_symbols): Add comment.
19007
3327ccf7
L
190082010-02-03 H.J. Lu <hongjiu.lu@intel.com>
19009
19010 * regcache.c (supply_register): Clear regcache if buf is NULL.
19011
0718675c 190122010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 19013 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
19014
19015 * inferiors.c (find_inferior): Add function documentation.
19016 (unloaded_dll): Handle the case where the unloaded dll has not
19017 been previously registered in the dll list.
19018
177321bd
DJ
190192010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19020
19021 * linux-arm-low.c (thumb_breakpoint_len): Delete.
19022 (thumb2_breakpoint): New.
19023 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
19024
2b009048
DJ
190252010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19026
19027 * linux-low.c (get_stop_pc): Check for SIGTRAP.
19028 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
19029 breakpoints.
19030
3be029c7
PA
190312010-01-21 Pedro Alves <pedro@codesourcery.com>
19032
19033 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
19034
18f5de3b
JK
190352010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19036
19037 * linux-s390-low.c (s390_collect_ptrace_register)
19038 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
19039
3743bb4f
DE
190402010-01-21 Doug Evans <dje@google.com>
19041
14ce3065
DE
19042 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19043 (PTRACE_ARG4_TYPE): New macro.
19044 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19045 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19046 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19047 (usr_store_inferior_registers): Ditto.
19048 (linux_read_memory, linux_write_memory): Ditto.
19049 (linux_test_for_tracefork): Ditto.
19050
3743bb4f
DE
19051 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19052 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19053
8b315be5
PA
190542010-01-21 Pedro Alves <pedro@codesourcery.com>
19055
19056 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19057 target.
19058
85492558
PA
190592010-01-21 Pedro Alves <pedro@codesourcery.com>
19060
19061 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19062 prototype to take a regcache. Adjust.
19063
442ea881
PA
190642010-01-20 Pedro Alves <pedro@codesourcery.com>
19065
19066 * regcache.h (struct thread_info): Forward declare.
19067 (struct regcache): New.
19068 (new_register_cache): Adjust prototype.
19069 (get_thread_regcache): Declare.
19070 (free_register_cache): Adjust prototype.
19071 (registers_to_string, registers_from_string): Ditto.
19072 (supply_register, supply_register_by_name, collect_register)
19073 (collect_register_as_string, collect_register_by_name): Ditto.
19074 * regcache.c (struct inferior_regcache_data): Delete.
19075 (get_regcache): Rename to ...
19076 (get_thread_regcache): ... this. Adjust. Switch inferior before
19077 fetching registers.
19078 (regcache_invalidate_one): Adjust.
19079 (regcache_invalidate): Fix prototype.
19080 (new_register_cache): Return the new register cache.
19081 (free_register_cache): Change prototype.
19082 (realloc_register_cache): Adjust.
19083 (registers_to_string): Change prototype to take a regcache. Adjust.
19084 (registers_from_string): Ditto.
19085 (register_data): Ditto.
19086 (supply_register): Ditto.
19087 (supply_register_by_name): Ditto.
19088 (collect_register): Ditto.
19089 (collect_register_as_string): Ditto.
19090 (collect_register_by_name): Ditto.
19091 * server.c (process_serial_event): Adjust.
19092 * linux-low.h (regset_fill_func, regset_store_func): Change
19093 prototype.
19094 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19095 Change prototype.
19096 * linux-low.c (get_stop_pc): Adjust.
19097 (check_removed_breakpoint): Adjust.
19098 (linux_wait_for_event): Adjust.
19099 (linux_resume_one_lwp): Adjust.
19100 (fetch_register): Add regcache parameter. Adjust.
19101 (usr_store_inferior_registers): Ditto.
19102 (regsets_fetch_inferior_registers): Ditto.
19103 (regsets_store_inferior_registers): Ditto.
19104 (linux_fetch_registers, linux_store_registers): Ditto.
19105 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19106 regcache. Adjust.
43aaf8b6
PA
19107 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19108 Ditto.
442ea881
PA
19109 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19110 prototype to take a regcache.
19111 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19112 * remote-utils.c (convert_ascii_to_int, outreg)
19113 (prepare_resume_reply): Change prototype to take a regcache.
19114 Adjust.
19115 * target.h (struct target_ops) <fetch_registers, store_registers>:
19116 Change prototype to take a regcache.
19117 (fetch_inferior_registers, store_inferior_registers): Change
19118 prototype to take a regcache. Adjust.
19119 * proc-service.c (ps_lgetregs): Adjust.
19120 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19121 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19122 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19123 take a regcache. Adjust.
19124 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19125 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19126 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19127 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19128 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19129 (cris_cannot_fetch_register):
19130 (cris_breakpoint_at): Change prototype to take a regcache.
19131 Adjust.
19132 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19133 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19134 to take a regcache. Adjust.
19135 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19136 Adjust.
19137 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19138 take a regcache. Adjust.
19139 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19140 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19141 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19142 * linux-mips-low.c (mips_get_pc):
19143 (mips_set_pc): Change prototype to take a regcache. Adjust.
19144 (mips_reinsert_addr): Adjust.
19145 (mips_collect_register): Change prototype to take a regcache.
19146 Adjust.
19147 (mips_supply_register):
19148 (mips_collect_register_32bit, mips_supply_register_32bit)
19149 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19150 (mips_store_fpregset): Ditto.
43aaf8b6
PA
19151 * linux-ppc-low.c (ppc_supply_ptrace_register)
19152 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
19153 (parse_spufs_run): Adjust.
19154 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19155 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19156 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19157 take a regcache. Adjust.
19158 * linux-s390-low.c (s390_collect_ptrace_register)
19159 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19160 (s390_set_pc): Change prototype to take a regcache. Adjust.
19161 (s390_arch_setup): Adjust.
19162 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19163 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19164 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19165 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19166 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19167 regcache. Adjust.
19168 (sparc_breakpoint_at): Adjust.
19169 * linux-xtensa-low.c (xtensa_fill_gregset):
19170 (xtensa_store_gregset):
19171 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19172 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19173 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19174 prototype to take a regcache. Adjust.
19175 * win32-arm-low.c (arm_fetch_inferior_register)
19176 (arm_store_inferior_register): Change prototype to take a
19177 regcache. Adjust.
19178 * win32-i386-low.c (i386_fetch_inferior_register)
19179 (i386_store_inferior_register): Change prototype to take a
19180 regcache. Adjust.
19181 * win32-low.c (child_fetch_inferior_registers)
19182 (child_store_inferior_registers): Change prototype to take a
19183 regcache. Adjust.
19184 (win32_wait): Adjust.
19185 (win32_fetch_inferior_registers): Change prototype to take a
19186 regcache. Adjust.
19187 (win32_store_inferior_registers): Adjust.
19188 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19189 store_inferior_register>: Change prototype to take a regcache.
19190
60c3d7b0
DE
191912010-01-20 Doug Evans <dje@google.com>
19192
19193 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19194 #ifdef.
19195 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 19196 (W_STOPCODE): Provide definition if missing.
60c3d7b0 19197
dc146f7c
VP
191982010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19199
19200 * linux-low.c (linux_core_of_thread): New.
19201 (compare_ints, show_process, list_threads): New.
19202 (linux_qxfer_osdata): Report threads and cores.
19203 (linux_target_op): Register linux_core_of_thread.
19204 * remote-utils.c (prepare_resume_reply): Report the core.
19205 (buffer_xml_printf): Support %d specifier.
19206 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19207 New.
19208 (handle_query): Handle qXfer:threads. Announce availability
19209 thereof.
19210 * target.h (struct target_ops): New field core_of_thread.
19211
7803799a
UW
192122010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19213
19214 * Makefile.in (clean): Remove new generated files.
19215 (reg-s390.o, reg-s390.c): Remove rules.
19216 (reg-s390x.o, reg-s390x.c): Likewise.
19217 (s390-linux32.o, s390-linux32.c): Add rules.
19218 (s390-linux64.o, s390-linux64.c): Likewise.
19219 (s390x-linux64.o, s390x-linux64.c): Likewise.
19220 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19221 * linux-s390-low.c: Include <elf.h>.
19222 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19223 (init_registers_s390): Remove prototype.
19224 (init_registers_s390x): Likewise.
19225 (init_registers_s390_linux32): Add prototype.
19226 (init_registers_s390_linux64): Likewise.
19227 (init_registers_s390x_linux64): Likewise.
19228 (s390_num_regs_3264): New define.
19229 (s390_regmap_3264): New global variable.
19230 (s390_cannot_fetch_register): Remove obsolete check.
19231 (s390_cannot_store_register): Likewise.
19232 (s390_collect_ptrace_register): Handle upper/lower register halves.
19233 (s390_supply_ptrace_register): Likewise.
19234 (s390_fill_gregset): Update to register number changes.
19235 (s390_get_hwcap): New routine.
19236 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19237 Install appropriate regmap and register set.
19238
6e7ffa39
JB
192392010-01-01 Joel Brobecker <brobecker@adacore.com>
19240
19241 * server.c (gdbserver_version): Update copyright year to 2010.
19242 * gdbreplay.c (gdbreplay_version): Likewise.
19243
957f3f49
DE
192442009-12-28 Doug Evans <dje@google.com>
19245
19246 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19247 elf/external.h. Include <elf.h> instead but only if necessary.
19248
ca5c370d
PA
192492009-12-28 Pedro Alves <pedro@codesourcery.com>
19250
19251 * linux-low.c (linux_remove_process): Remove `detaching'
19252 parameter. Don't release/detach from thread_db here.
19253 (linux_kill): Release/detach from thread_db here, ...
19254 (linux_detach): ... and here, before actually detaching.
19255 (linux_wait_1): ... and here, when a process exits.
19256 * thread-db.c (any_thread_of): New.
19257 (thread_db_free): Switch the current inferior to a thread of the
19258 passed in process.
19259
4ee62156
DE
192602009-12-21 Doug Evans <dje@google.com>
19261
d90e6a88
DE
19262 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19263
c5f62d5f
DE
19264 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19265 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19266 warning ifndef __NR_tkill. Move setting of errno there too.
19267 Delete unnecessary resetting of errno after syscall.
19268 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19269
10e86dd7
DE
19270 * configure.ac: Check for dladdr.
19271 * config.in: Regenerate.
19272 * configure: Regenerate.
19273 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19274 (try_thread_db_load): Update.
19275
4ee62156
DE
19276 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19277
00f515da
DE
192782009-12-18 Doug Evans <dje@google.com>
19279
e9464885
DE
19280 * event-loop.c: Include unistd.h if it exists.
19281
07d4f67e
DE
19282 * linux-low.c (my_waitpid): Move definition away from being in
19283 between linux_tracefork_child/linux_test_for_tracefork.
19284
00f515da
DE
19285 * gdb_proc_service.h (psaddr_t): Fix type.
19286 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19287 signature to match glibc.
19288
1de1badb
DE
192892009-12-16 Doug Evans <dje@google.com>
19290
19291 * linux-low.c (linux_read_memory): Fix argument to read.
19292
aeeb81d1
PA
192932009-11-26 Pedro Alves <pedro@codesourcery.com>
19294
19295 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19296 events, don't leave current_inferior pointing at null.
19297
10357975
PA
192982009-11-26 Pedro Alves <pedro@codesourcery.com>
19299
19300 * win32-low.c (LOG): Delete.
19301 (OUTMSG): Output to stderr.
19302 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19303 on compile time LOG macro.
19304 (win32_wait): Fix debug output.
19305
cf6e3471
PA
193062009-11-26 Pedro Alves <pedro@codesourcery.com>
19307
19308 * win32-low.c (win32_add_one_solib): If the dll name is
19309 "ntdll.dll", prepend the system directory to the dll path.
19310
0c85e18e
MK
193112009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19312
19313 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19314
9ac544ce 193152009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 19316 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
19317
19318 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19319 * configure.ac: Check for __mcoldfire__ and set
19320 gdb_cv_m68k_is_coldfire.
19321 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19322 reg-cf.o and reg-m68k.o.
19323 * configure: Regenerated.
19324
fd7dd3e6
PA
193252009-11-16 Pedro Alves <pedro@codesourcery.com>
19326
19327 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19328 Pass it to thread_db_free.
19329 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19330 proper `detaching' argument to linux_remove_process.
19331 * linux-low.h (thread_db_free): Add `detaching' parameter.
19332 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19333 to thread_db_free.
19334 (thread_db_free): Add `detaching' parameter. Only
19335 call td_ta_clear_event if detaching from process.
19336
75aa492e
MK
193372009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19338
19339 * thread-db.c (thread_db_free): Fix typo.
19340
21e1bee4
PP
193412009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19342
19343 PR gdb/10838
19344 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19345
8838b45e
NS
193462009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19347
19348 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19349 with an i686 compiler.
19350 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19351 needed.
19352 * configure: Rebuilt.
19353
8a35fb51
SL
193542009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19355
19356 PR gdb/10783
19357
19358 * server.c (handle_search_memory_1): Correct read_addr initialization
19359 in loop for searching subsequent chunks.
19360
96f15937
PP
193612009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19362
19363 * configure.ac: New --with-libthread-db option.
19364 * thread-db.c: Allow direct dependence on libthread_db.
19365 (thread_db_free): Adjust.
19366 * config.in: Regenerate.
19367 * configure: Likewise.
889bf7c5 19368
5f7d1694
PP
193692009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19370
19371 PR gdb/10757
19372 * thread-db.c (attach_thread): New function.
19373 (maybe_attach_thread): Return success/failure.
19374 (find_new_threads_callback): Adjust.
889bf7c5
PA
19375 (thread_db_find_new_threads): Loop until no new threads.
19376
88e3b899
PA
193772009-10-13 Pedro Alves <pedro@codesourcery.com>
19378
19379 * proc-service.c (ps_lgetregs): Formatting.
19380
cdbfd419
PP
193812009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19382
19383 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19384 * configure.ac: Adjust.
19385 * linux-low.h (struct process_info_private): Move members to struct
19386 thread_db.
19387 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19388 * linux-low.c (linux_remove_process): Adjust.
19389 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19390 * server.c (handle_query): Move code ...
19391 (handle_monitor_command): ... here. New function.
19392 * target.h (struct target_ops): New member.
19393 * thread-db.c (struct thread_db): New.
19394 (libthread_db_search_path): New variable.
19395 (thread_db_create_event, thread_db_enable_reporting)
19396 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19397 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19398 (try_thread_db_load_1, dladdr_to_soname): New functions.
19399 (try_thread_db_load, thread_db_load_search): New functions.
19400 (thread_db_init): Search for libthread_db.
19401 (thread_db_free): New function.
19402 (thread_db_handle_monitor_command): Likewise.
19403 * config.in: Regenerate.
19404 * configure: Regenerate.
889bf7c5 19405
4168d2d6
UW
194062009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19407
19408 * spu-low.c (spu_kill): Wait for inferior to terminate.
19409 Call clear_inferiors.
19410 (spu_detach): Call clear_inferiors.
19411
81ecdfbb
RW
194122009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19413
19414 * aclocal.m4: Regenerate.
19415 * config.in: Likewise.
19416 * configure: Likewise.
19417
0b9ff2c0
UW
194182009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19419
19420 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19421 (parse_spufs_run): New function.
19422 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19423 (ppc_breakpoint_at): Handle SPU breakpoints.
19424
efcbbd14
UW
194252009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19426
19427 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19428 (SPUFS_MAGIC): Define.
19429 (spu_enumerate_spu_ids): New function.
19430 (linux_qxfer_spu): New function.
19431 (linux_target_ops): Install linux_qxfer_spu.
19432
f4d9bade
UW
194332009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19434
19435 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19436 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19437 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19438 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19439 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19440 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19441 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19442 (init_registers_powerpc_cell32l): Add prototype.
19443 (init_registers_powerpc_cell64l): Likewise.
19444 (ppc_arch_setup): Detect Cell/B.E. architecture.
19445
96e946ca
RW
194462009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19447
19448 * Makefile.in (datarootdir): New variable.
19449
58d6951d
DJ
194502009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19451
19452 * linux-low.c (linux_write_memory): Update debugging output.
19453 * Makefile.in (clean): Add new descriptions.
19454 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19455 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19456 * configure.srv: Add new files for arm*-*-linux*.
19457 * linux-arm-low.c: Add new declarations.
19458 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19459 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19460 (HWCAP_VFPv3D16): New.
19461 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19462 instead of __IWMMXT__.
19463 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19464 (arm_arch_setup): New.
19465 (target_regsets): Remove #ifdef. Add VFP regset.
19466 (the_low_target): Use arm_arch_setup.
19467
12b42a12
DJ
194682009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19469
19470 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19471 the main thread again.
19472
ac8c974e
AR
194732009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19474
19475 Adding Neutrino gdbserver.
19476 * configure: Regenerated.
19477 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19478 * configure.srv (i[34567]86-*-nto*): New target.
19479 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19480 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19481 (nto_comctrl) [__QNX__]: New function.
19482 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19483
4424e0c3 194842009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19485
19486 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19487 srv_tgtobj.
19488
912cf4ba
PA
194892009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19490 Pedro Alves <pedro@codesourcery.com>
19491
19492 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19493 don't support CONTEXT_EXTENDED_REGISTERS.
19494 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19495 (the_low_target): Install them.
19496 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19497 failing with ERROR_PIPE_NOT_CONNECTED.
19498
aa5ca48f
DE
194992009-06-30 Doug Evans <dje@google.com>
19500 Pierre Muller <muller@ics.u-strasbg.fr>
19501
19502 Add h/w watchpoint support to x86-linux, win32-i386.
19503 * Makefile.in (SFILES): Add i386-low.c
19504 (i386_low_h): Define.
19505 (i386-low.o): Add dependencies.
19506 (linux-x86-low.o): Add i386-low.h dependency.
19507 (win32-i386-low.o): Ditto.
19508 * i386-low.c: New file.
19509 * i386-low.h: New file.
19510 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19511 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19512 * linux-low.c (linux_add_process): Initialize arch_private.
19513 (linux_remove_process): Free arch_private.
19514 (add_lwp): Initialize arch_private.
19515 (delete_lwp): Free arch_private.
19516 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19517 provided.
19518 * linux-low.h (process_info_private): New member arch_private.
19519 (lwp_info): New member arch_private.
19520 (linux_target_ops): New members new_process, new_thread,
19521 prepare_to_resume.
19522 (ptid_of): New macro.
19523 * linux-x86-low.c: Include stddef.h, i386-low.h.
19524 (arch_process_info): New struct.
19525 (arch_lwp_info): New struct.
19526 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19527 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19528 (i386_dr_low_get_status): New function.
19529 (x86_insert_point, x86_remove_point): New functions.
19530 (x86_stopped_by_watchpoint): New function.
19531 (x86_stopped_data_address): New function.
19532 (x86_linux_new_process, x86_linux_new_thread): New functions.
19533 (x86_linux_prepare_to_resume): New function.
19534 (the_low_target): Add entries for insert_point, remove_point,
19535 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19536 prepare_to_resume.
19537 * server.c (debug_hw_points): New global.
19538 (monitor_show_help): Document set debug-hw-points.
19539 (handle_query): Process "set debug-hw-points".
19540 * server.h (debug_hw_points): Declare.
19541 (paddress): Declare.
19542 * utils.c (NUMCELLS, CELLSIZE): New macros.
19543 (get_sell, xsnprintf, paddress): New functions.
19544 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19545 remove_point, stopped_by_watchpoint, stopped_data_address.
19546 * win32-i386-low.c: Include i386-low.h.
19547 (debug_reg_state): Replaces dr.
19548 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19549 (i386_dr_low_get_status): New function.
19550 (i386_insert_point, i386_remove_point): New functions.
19551 (i386_stopped_by_watchpoint): New function.
19552 (i386_stopped_data_address): New function.
19553 (i386_initial_stuff): Update.
19554 (get_thread_context,set_thread_context,i386_thread_added): Update.
19555 (the_low_target): Add entries for insert_point,
19556 remove_point, stopped_by_watchpoint, stopped_data_address.
19557 * win32-low.c (win32_insert_watchpoint): New function.
19558 (win32_remove_watchpoint): New function.
19559 (win32_stopped_by_watchpoint): New function.
19560 (win32_stopped_data_address): New function.
19561 (win32_target_ops): Add entries for insert_watchpoint,
19562 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19563 * win32-low.h (win32_target_ops): New members insert_point,
19564 remove_point, stopped_by_watchpoint, stopped_data_address.
19565
d993e290
PA
195662009-06-25 Pedro Alves <pedro@codesourcery.com>
19567
19568 * server.c (process_serial_event): Re-return unsupported, not
19569 error, if the type isn't recognized. Re-allow supporting only
19570 insert or remove packets. Also call require_running for
19571 breakpoints. Add missing break statement to default case. Tidy.
19572 * target.h (struct target_ops): Rename insert_watchpoint to
19573 insert_point, and remove_watchpoint to remove_point.
19574
19575 * linux-low.h (struct linux_target_ops): Likewise.
19576 * linux-low.c (linux_insert_watchpoint): Rename to ...
19577 (linux_insert_point): ... this. Adjust.
19578 (linux_remove_watchpoint): Rename to ...
19579 (linux_remove_point): ... this. Adjust.
19580 (linux_target_ops): Adjust.
19581 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19582 (cris_insert_point): ... this.
19583 (cris_remove_watchpoint): Rename to ...
19584 (cris_remove_point): ... this.
19585 (the_low_target): Adjust.
19586
0f54c268
PM
195872009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19588
19589 * server.c (handle_v_kill): Pass signal_pid to
19590 kill_inferior if multi_process is zero.
19591
c6314022
AR
195922009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19593
19594 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19595 * target.h (target_ops): Comment for *_watchpoint to make it clear
19596 the functions can get types '0' and '1'.
19597
4463ce24
AR
195982009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19599
19600 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19601 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19602 * regcache.c (get_regcache): Likewise.
19603 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19604 * win32-low.c (child_fetch_inferior_registers): Remove check for
19605 regno 0.
19606
cf8fd78b
PA
196072009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19608 Pedro Alves <pedro@codesourcery.com>
19609
19610 * target.h (struct target_ops) <supports_multi_process>: New
19611 callback.
19612 (target_supports_multi_process): New.
19613 * server.c (handle_query): Even if GDB reports support, only
19614 enable multi-process if the target also supports it. Report
19615 multi-process support only if the target backend supports it.
19616 * linux-low.c (linux_supports_multi_process): New function.
19617 (linux_target_ops): Install it as target_supports_multi_process
19618 callback.
19619
47c0c975
DE
196202009-05-24 Doug Evans <dje@google.com>
19621
e09875d4
DE
19622 Global renaming of find_thread_pid to find_thread_ptid.
19623 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19624 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19625 All callers updated.
19626
e27d73f6
DE
19627 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19628 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19629 directly.
19630
47c0c975
DE
19631 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19632 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19633 (linux_resume_one_lwp): Ditto.
19634
2acc282a
DE
196352009-05-23 Doug Evans <dje@google.com>
19636
19637 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19638 from struct inferior_list_entry * to struct lwp_info *.
19639 All callers updated.
19640
9f1036c1
DE
196412009-05-13 Doug Evans <dje@google.com>
19642
19643 * linux-x86-low.c: Don't include assert.h.
19644 (x86_siginfo_fixup): Use fatal, not assert.
19645 (x86_arch_setup): Fix comment.
19646
d0722149
DE
196472009-05-12 Doug Evans <dje@google.com>
19648
19649 Biarch support for i386/amd64 gdbserver.
19650 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19651 Add linux-x86-low.c.
19652 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19653 (linux-x86-low.o): Add.
19654 * linux-x86-64-low.c: Delete.
19655 * linux-i386-low.c: Delete.
19656 * linux-x86-low.c: New file.
19657 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19658 linux-x86-low.o.
19659 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19660 linux-x86-low.o.
19661 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19662 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19663 (linux_child_pid_to_exec_file): New function.
19664 (elf_64_header_p, elf_64_file_p): New functions.
19665 (siginfo_fixup): New function.
19666 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19667 give target a chance to convert layout.
19668 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19669 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19670
fdeb2a12
DE
196712009-05-07 Doug Evans <dje@google.com>
19672
19673 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19674 (regsets_store_inferior_registers): Ditto.
19675
a6dbe5df
PA
196762009-05-06 Pedro Alves <pedro@codesourcery.com>
19677
19678 PR server/10048
19679
19680 * linux-low.c (must_set_ptrace_flags): Delete.
19681 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19682 of the global.
19683 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19684 `lwp->must_set_ptrace_flags' instead.
ba42693b 19685 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19686 (linux_wait_1): ... not here.
19687
5091eb23
DE
196882009-04-30 Doug Evans <dje@google.com>
19689
9f767825
DE
19690 * inferiors.c (started_inferior_callback): New function.
19691 (attached_inferior_callback): New function.
19692 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19693 * server.c (print_started_pid, print_attached_pid): New functions.
19694 (detach_or_kill_for_exit): New function.
19695 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19696 * server.h (have_started_inferiors_p): Declare.
19697 (have_attached_inferiors_p): Declare.
19698
5091eb23
DE
19699 * inferiors.c (remove_process): Fix memory leak, free process.
19700 * linux-low.c (linux_remove_process): New function.
19701 (linux_kill): Call it instead of remove_process.
19702 (linux_detach, linux_wait_1): Ditto.
19703
155c8968
PA
197042009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19705
19706 * configure.srv: Add x86 Windows CE target.
19707
7fe519cb
UW
197082009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19709
19710 * inferiors.c (get_thread_process): Make global.
19711 * server.h (get_thread_process): Add prototype.
19712 * thread-db.c (find_one_thread): Use get_thread_process
19713 instead of current_process.
19714 (thread_db_get_tls_address): Do not crash if called when
19715 thread layer is not yet initialized.
19716
5472f405
UW
197172009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19718
19719 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19720 * spu-low.c (current_tid): Rename to ...
19721 (current_ptid): ... this.
19722 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19723 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19724 ptid_get_lwp (current_ptid) instead of current_tid.
19725 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19726 instead of current_tid. Use find_process_pid to verify pid
19727 argument is valid. Pass proper argument to remove_process.
19728 (spu_thread_alive): Compare current_ptid instead of current_tid.
19729 (spu_resume): Likewise.
19730
55ac2b99
PA
197312009-04-02 Pedro Alves <pedro@codesourcery.com>
19732
19733 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19734 variable.
19735
95954743
PA
197362009-04-01 Pedro Alves <pedro@codesourcery.com>
19737
19738 Implement the multiprocess extensions, and add linux multiprocess
19739 support.
19740
19741 * server.h (ULONGEST): Declare.
19742 (struct ptid, ptid_t): New.
19743 (minus_one_ptid, null_ptid): Declare.
19744 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19745 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19746 (struct inferior_list_entry): Change `id' type from unsigned from
19747 to ptid_t.
19748 (struct sym_cache, struct breakpoint, struct
19749 process_info_private): Forward declare.
19750 (struct process_info): Declare.
19751 (current_process): Declare.
19752 (all_processes): Declare.
19753 (initialize_inferiors): Declare.
19754 (add_thread): Adjust to use ptid_t.
19755 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19756 (add_process, remove_process, find_thread_pid): Declare.
19757 (find_inferior_id): Adjust to use ptid_t.
19758 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19759 (multi_process): Declare.
19760 (push_event): Adjust to use ptid_t.
19761 (read_ptid, write_ptid): Declare.
19762 (prepare_resume_reply): Adjust to use ptid_t.
19763 (clear_symbol_cache): Declare.
19764 * inferiors.c (all_processes): New.
19765 (null_ptid, minus_one_ptid): New.
19766 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19767 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19768 (add_thread): Change unsigned long to ptid. Remove gdb_id
19769 parameter. Adjust.
19770 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19771 (gdb_id_to_thread): Rename to ...
19772 (find_thread_pid): ... this. Change unsigned long to ptid.
19773 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19774 (loaded_dll, pull_pid_from_list): Adjust.
19775 (add_process, remove_process, find_process_pid)
19776 (get_thread_process, current_process, initialize_inferiors): New.
19777 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19778 (struct target_waitstatus) <related_pid>: Ditto.
19779 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19780 return type to int.
19781 (struct target_ops) <join>: Add `pid' argument.
19782 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19783 (struct target_ops) <wait>: Add `ptid' field. Change return type
19784 to ptid.
19785 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19786 (mywait): Add `ptid' argument. Change return type to ptid_t.
19787 (target_pid_to_str): Declare.
19788 * target.c (set_desired_inferior): Adjust to use ptids.
19789 (mywait): Add new `ptid' argument. Adjust.
19790 (target_pid_to_str): New.
19791 * mem-break.h (free_all_breakpoints): Declare.
19792 * mem-break.c (breakpoints): Delelete.
19793 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19794 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19795 to use per-process breakpoint list.
19796 (free_all_breakpoints): New.
19797 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19798 (symbol_cache, all_symbols_looked_up): Delete.
19799 (hexchars): New.
19800 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19801 read_ptid): New.
19802 (prepare_resume_reply): Change ptid argument's type from unsigned
19803 long to ptid_t. Adjust. Implement W;process and X;process.
19804 (free_sym_cache, clear_symbol_cache): New.
19805 (look_up_one_symbol): Adjust to per-process symbol cache. *
19806 * server.c (cont_thread, general_thread, step_thread): Change type
19807 to ptid_t.
19808 (attached): Delete.
19809 (multi_process): New.
19810 (last_ptid): Change type to ptid_t.
19811 (struct vstop_notif) <ptid>: Change type to ptid_t.
19812 (queue_stop_reply, push_event): Change `ptid' argument's type to
19813 ptid_t.
19814 (discard_queued_stop_replies): Add `pid' argument.
19815 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19816 changes. Don't reference the `attached' global.
19817 (attach_inferior): Adjust to mywait interface changes.
19818 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19819 features. Handle and report "multiprocess+". Handle
19820 "qAttached:PID".
19821 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19822 changes.
19823 (handle_v_kill): New.
19824 (handle_v_stopped): Adjust to use target_pid_to_str.
19825 (handle_v_requests): Allow multiple attaches and runs when
19826 multiprocess extensions are in effect. Handle "vKill".
19827 (myresume): Adjust to use ptids.
19828 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19829 (handle_status): Adjust to discard_queued_stop_replies interface
19830 change.
19831 (first_thread_of, kill_inferior_callback)
19832 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19833 (main): Call initialize_inferiors. Adjust to use ptids, killing
19834 and detaching from all inferiors. Handle multiprocess packet
19835 variants.
19836 * linux-low.h: Include gdb_proc_service.h.
19837 (struct process_info_private): New.
19838 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19839 <lwpid_of>: Use ptid_get_lwp.
19840 (get_lwp_thread): Adjust.
19841 (struct lwp_info): Add `dead' member.
19842 (find_lwp_pid): Declare.
19843 * linux-low.c (thread_db_active): Delete.
19844 (new_inferior): Adjust comment.
19845 (inferior_pid): Delete.
19846 (linux_add_process): New.
19847 (handle_extended_wait): Adjust.
19848 (add_lwp): Change unsigned long to ptid.
19849 (linux_create_inferior): Add process to processes table. Adjust
19850 to use ptids. Don't set new_inferior here.
19851 (linux_attach_lwp): Rename to ...
19852 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19853 it. Adjust to use ptids.
19854 (linux_attach_lwp): New.
19855 (linux_attach): Add process to processes table. Don't set
19856 new_inferior here.
19857 (struct counter): New.
19858 (second_thread_of_pid_p, last_thread_of_process_p): New.
19859 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19860 multiple processes.
19861 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19862 processes. Remove process from process table.
19863 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19864 to multiple processes.
19865 (any_thread_of): New.
19866 (linux_detach): Add `pid' argument, and handle it. Remove process
19867 from processes table.
19868 (linux_join): Add `pid' argument. Handle it.
19869 (linux_thread_alive): Change unsighed long argument to ptid_t.
19870 Consider dead lwps as not being alive.
19871 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19872 threads we're not interested in.
19873 (same_lwp, find_lwp_pid): New.
19874 (linux_wait_for_lwp): Change `pid' argument's type from int to
19875 ptid_t. Adjust.
19876 (linux_wait_for_event): Rename to ...
19877 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19878 from int to ptid_t. Adjust.
19879 (linux_wait_for_event): New.
19880 (linux_wait_1): Add `ptid' argument. Change return type to
19881 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19882 that exit from the process table.
19883 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19884 Adjust.
19885 (mark_lwp_dead): New.
19886 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19887 stopping all threads, mark its main lwp as dead.
19888 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19889 ptids.
19890 (fetch_register, usr_store_inferior_registers)
19891 (regsets_fetch_inferior_registers)
19892 (regsets_store_inferior_registers, linux_read_memory)
19893 (linux_write_memory): Inline `inferior_pid'.
19894 (linux_look_up_symbols): Adjust to use per-process
19895 `thread_db_active'.
19896 (linux_request_interrupt): Adjust to use ptids.
19897 (linux_read_auxv): Inline `inferior_pid'.
19898 (initialize_low): Don't reference thread_db_active.
19899 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19900 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19901 (ps_getpid): Return the pid of the current inferior.
19902 * thread-db.c (proc_handle, thread_agent): Delete.
19903 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19904 per-process data.
19905 (find_one_thread): Change argument type to ptid_t. Adjust to
19906 per-process data.
19907 (maybe_attach_thread): Adjust to per-process data and ptids.
19908 (thread_db_find_new_threads): Ditto.
19909 (thread_db_init): Ditto.
19910 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19911 processes table. Adjust to use ptids.
19912 (spu_kill, spu_detach): Adjust interface. Remove process from
19913 processes table.
19914 (spu_join, spu_thread_alive): Adjust interface.
19915 (spu_wait): Adjust interface. Remove process from processes
19916 table. Adjust to use ptids.
19917 * win32-low.c (current_inferior_tid): Delete.
19918 (current_inferior_ptid): New.
19919 (debug_event_ptid): New.
19920 (thread_rec): Take a ptid. Adjust.
19921 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19922 (child_delete_thread): Ditto.
19923 (do_initial_child_stuff): Add `attached' argument. Add process to
19924 processes table.
19925 (child_fetch_inferior_registers, child_store_inferior_registers):
19926 Adjust.
19927 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19928 (win32_attach): Pass 1 to do_initial_child_stuff.
19929 (win32_kill): Adjust interface. Remove process from processes
19930 table.
19931 (win32_detach): Ditto.
19932 (win32_join): Adjust interface.
19933 (win32_thread_alive): Take a ptid.
19934 (win32_resume): Adjust to use ptids.
19935 (get_child_debug_event): Ditto.
19936 (win32_wait): Adjust interface. Remove exiting process from
19937 processes table.
19938
bd99dc85
PA
199392009-04-01 Pedro Alves <pedro@codesourcery.com>
19940
19941 Non-stop mode support.
19942
19943 * server.h (non_stop): Declare.
19944 (gdb_client_data, handler_func): Declare.
19945 (delete_file_handler, add_file_handler, start_event_loop):
19946 Declare.
19947 (handle_serial_event, handle_target_event, push_event)
19948 (putpkt_notif): Declare.
19949 * target.h (enum resume_kind): New.
19950 (struct thread_resume): Replace `step' field by `kind' field.
19951 (TARGET_WNOHANG): Define.
19952 (struct target_ops) <wait>: Add `options' argument.
19953 <supports_non_stop, async, start_non_stop>: New fields.
19954 (target_supports_non_stop, target_async): New.
19955 (start_non_stop): Declare.
19956 (mywait): Add `options' argument.
19957 * target.c (mywait): Add `options' argument. Print child exit
19958 notifications here.
19959 (start_non_stop): New.
19960 * server.c (non_stop, own_buf, mem_buf): New globals.
19961 (struct vstop_notif): New.
19962 (notif_queue): New global.
19963 (queue_stop_reply, push_event, discard_queued_stop_replies)
19964 (send_next_stop_reply): New.
19965 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19966 interface changes.
19967 (attach_inferior): In non-stop mode, don't wait for the target
19968 here.
19969 (handle_general_set): Handle QNonStop.
19970 (handle_query): When handling qC, return the current general
19971 thread, instead of the first thread of the list.
19972 (handle_query): If the backend supports non-stop mode, include
19973 QNonStop+ in the qSupported query response.
19974 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19975 and non-stop mode.
19976 (handle_v_attach, handle_v_run): Handle non-stop mode.
19977 (handle_v_stopped): New.
19978 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19979 (myresume): Adjust to use resume_kind. Handle non-stop.
19980 (queue_stop_reply_callback): New.
19981 (handle_status): Handle non-stop mode.
19982 (main): Clear non_stop flag on reconnection. Use the event-loop.
19983 Refactor serial protocol handling from here ...
19984 (process_serial_event): ... to this new function. When GDB
19985 selects any thread, select one here. In non-stop mode, wait until
19986 GDB acks all pending events before exiting.
19987 (handle_serial_event, handle_target_event): New.
19988 * remote-utils.c (remote_open): Install remote_desc in the event
19989 loop.
19990 (remote_close): Remove remote_desc from the event loop.
19991 (putpkt_binary): Rename to...
19992 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19993 (putpkt_binary): New as wrapper around putpkt_binary_1.
19994 (putpkt_notif): New.
19995 (prepare_resume_reply): In non-stop mode, don't change the
19996 general_thread.
19997 * event-loop.c: New.
19998 * Makefile.in (OBJ): Add event-loop.o.
19999 (event-loop.o): New rule.
20000
20001 * linux-low.h (pid_of): Moved here.
20002 (lwpid_of): New.
20003 (get_lwp_thread): Use lwpid_of.
20004 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
20005 * linux-low.c (pid_of): Delete.
20006 (inferior_pid): Use lwpid_of.
20007 (linux_event_pipe): New.
20008 (target_is_async_p): New.
20009 (delete_lwp): New.
20010 (handle_extended_wait): Use lwpid_of.
20011 (add_lwp): Don't set lwpid field.
20012 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
20013 (linux_kill_one_lwp): If killing a running lwp, stop it first.
20014 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
20015 (linux_detach_one_lwp): If detaching from a running lwp, stop it
20016 first. Adjust to linux_wait_for_event interface changes. Use
20017 lwpid_of.
20018 (linux_detach): Don't delete the main lwp here.
20019 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
20020 (status_pending_p): Don't consider explicitly suspended lwps.
20021 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
20022 pointer. Add OPTIONS argument. Change return type to int. Use
20023 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
20024 (linux_wait_for_event): Take an integer pid instead of a lwp_info
20025 pointer. Add status pointer argument. Return a pid instead of a
20026 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
20027 changes. In non-stop mode, don't switch to a random thread.
20028 (linux_wait): Rename to...
20029 (linux_wait_1): ... this. Add target_options argument, and handle
20030 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
20031 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
20032 clean exit and signal exit code. Don't stop all threads in
20033 non-stop mode. In all-stop mode, only stop all threads when
20034 reporting a stop to GDB. Handle explicit thread stop requests.
20035 (async_file_flush, async_file_mark): New.
20036 (linux_wait): New.
20037 (send_sigstop): Use lwpid_of.
20038 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
20039 interface changes. In non-stop mode, don't switch to a random
20040 thread.
20041 (linux_resume_one_lwp): Use lwpid_of.
20042 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20043 (linux_resume_one_thread): ... this. Handle resume_stop. In
20044 non-stop mode, don't look for pending flag in all threads.
20045 (resume_status_pending_p): Don't consider explicitly suspended
20046 threads.
20047 (my_waitpid): Reimplement. Emulate __WALL.
20048 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20049 Use lwpid_of.
20050 (sigchld_handler, linux_supports_non_stop, linux_async)
20051 (linux_start_non_stop): New.
20052 (linux_target_ops): Register linux_supports_non_stop, linux_async
20053 and linux_start_non_stop.
20054 (initialize_low): Install SIGCHLD handler.
20055 * thread-db.c (thread_db_create_event, find_one_thread)
20056 (thread_db_get_tls_address): Use lwpid_of.
20057 * win32-low.c (win32_detach): Adjust to use resume_kind.
20058 (win32_wait): Add `options' argument.
20059 * spu-low.c (spu_resume): Adjust to use resume_kind.
20060 (spu_wait): Add `options' argument.
20061
5b1c542e
PA
200622009-04-01 Pedro Alves <pedro@codesourcery.com>
20063
20064 Decouple target code from remote protocol.
20065
20066 * target.h (enum target_waitkind): New.
20067 (struct target_waitstatus): New.
20068 (struct target_ops) <wait>: Return an unsigned long. Take a
20069 target_waitstatus pointer instead of a char pointer.
20070 (mywait): Likewise.
20071 * target.c (mywait): Change prototype to return an unsigned long.
20072 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20073 * server.h (thread_from_wait, old_thread_from_wait): Delete
20074 declarations.
20075 (prepare_resume_reply): Change prototype to take a
20076 target_waitstatus.
20077 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20078 (last_status, last_ptid): New.
20079 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20080 pid instead of a signal.
20081 (attach_inferior): Remove "status" and "signal" parameters.
20082 Adjust.
20083 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20084 not as an address.
20085 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20086 (handle_v_requests, myresume): Remove "status" and "signal"
20087 parameters. Adjust.
20088 (handle_status): New.
20089 (main): Delete local `status'. Adjust.
20090 * remote-utils.c: Include target.h.
20091 (prepare_resume_reply): Change prototype to take a
20092 target_waitstatus. Adjust.
20093
20094 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20095 interface.
20096 * spu-low.c (spu_wait): Adjust.
20097 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20098 Delete.
20099 (win32_wait): Adjust.
20100
2bd7c093
PA
201012009-04-01 Pedro Alves <pedro@codesourcery.com>
20102
20103 * target.h (struct thread_resume): Delete leave_stopped member.
20104 (struct target_ops): Add a `n' argument to the `resume' callback.
20105 * server.c (start_inferior): Adjust.
20106 (handle_v_cont, myresume): Adjust.
20107 * linux-low.c (check_removed_breakpoint): Adjust to resume
20108 interface change, and to removed leave_stopped field.
20109 (resume_ptr): Delete.
20110 (struct thread_resume_array): New.
20111 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20112 resume interface change.
20113 (linux_continue_one_thread, linux_queue_one_thread)
20114 (resume_status_pending_p): Check if the resume field is NULL
20115 instead of checking the leave_stopped member.
20116 (linux_resume): Adjust to the target resume interface change.
20117 * spu-low.c (spu_resume): Adjust to the target resume interface
20118 change.
20119 * win32-low.c (win32_detach, win32_resume): Ditto.
20120
c35fafde
PA
201212009-04-01 Pedro Alves <pedro@codesourcery.com>
20122
20123 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20124 flag.
20125 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20126 pending.
20127 (linux_continue_one_thread): Only preserve the stepping flag if
20128 there's a pending breakpoint.
20129
0a59d50b
PA
201302009-03-31 Pedro Alves <pedro@codesourcery.com>
20131
20132 * server.c (main): After the inferior having exited, call
20133 remote_close before exiting gdbserver.
20134
f04c6d38
TJB
201352009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20136
20137 Fix size of FPSCR in Power 7 processors.
20138 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20139 (PPC_FEATURE_HAS_DFP): New #define.
20140 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20141 size of the FPSCR.
20142
78e5cee6
PA
201432009-03-23 Pedro Alves <pedro@codesourcery.com>
20144
20145 * server.c (handle_query) Whitespace and formatting.
20146
1b3f6016
PA
201472009-03-22 Pedro Alves <pedro@codesourcery.com>
20148
20149 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20150 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20151 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20152 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20153 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20154 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20155 Makefile.in, configure.ac: Fix whitespace throughout.
20156 * configure: Regenerate.
20157
a07b2135
PA
201582009-03-22 Pedro Alves <pedro@codesourcery.com>
20159
20160 * inferiors.c (find_inferior): Make it safe for the callback
20161 function to delete the currently iterated inferior.
20162
67cc2626
PA
201632009-03-22 Pedro Alves <pedro@codesourcery.com>
20164
20165 * Makefile.in (linuw_low_h): Move higher.
20166 (thread-db.o): Depend on $(linux_low_h).
20167
54a0b537
PA
201682009-03-17 Pedro Alves <pedro@codesourcery.com>
20169
20170 Rename "process" to "lwp" throughout.
20171
20172 * linux-low.c (all_processes): Rename to...
20173 (all_lwps): ... this.
20174 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20175 (add_process): Rename to ...
20176 (add_lwp): ... this. Adjust.
20177 (linux_create_inferior): Adjust.
20178 (linux_attach_lwp): Adjust.
20179 (linux_attach): Adjust.
20180 (linux_kill_one_process): Rename to ...
20181 (linux_kill_one_lwp): ... this. Adjust.
20182 (linux_kill): Adjust.
20183 (linux_detach_one_process): Rename to ...
20184 (linux_detach_one_lwp): ... this. Adjust.
20185 (linux_detach): Adjust.
20186 (check_removed_breakpoint): Adjust.
20187 (status_pending_p): Adjust.
20188 (linux_wait_for_process): Rename to ...
20189 (linux_wait_for_lwp): ... this. Adjust.
20190 (linux_wait_for_event): Adjust.
20191 (send_sigstop): Adjust.
20192 (wait_for_sigstop): Adjust.
20193 (stop_all_processes): Rename to ...
20194 (stop_all_lwps): ... this.
20195 (linux_resume_one_process): Rename to ...
20196 (linux_resume_one_lwp): ... this. Adjust.
20197 (linux_set_resume_request, linux_continue_one_thread)
20198 (linux_queue_one_thread, resume_status_pending_p)
20199 (usr_store_inferior_registers, regsets_store_inferior_registers)
20200 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20201 Adjust.
20202 * linux-low.h (get_process): Rename to ...
20203 (get_lwp): ... this. Adjust.
20204 (get_thread_process): Rename to ...
20205 (get_thread_lwp): ... this. Adjust.
20206 (get_process_thread): Rename to ...
20207 (get_lwp_thread): ... this. Adjust.
20208 (struct process_info): Rename to ...
20209 (struct lwp_info): ... this.
20210 (all_processes): Rename to ...
20211 (all_lwps): ... this.
20212 * proc-service.c (ps_lgetregs): Adjust.
20213 * thread-db.c (thread_db_create_event, find_one_thread)
20214 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20215
0b16c5cf
PA
202162009-03-14 Pedro Alves <pedro@codesourcery.com>
20217
20218 * server.c (handle_query): Handle "qAttached".
20219
32de4b9d
NS
202202009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20221
20222 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20223 GPLv3, update license URL.
20224
2aecd87f
DE
202252009-03-01 Doug Evans <dje@google.com>
20226
93efd302 20227 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
20228 (server_h): Add gdb_signals.h.
20229 (signals.o): Update.
20230 * server.h (target_signal_from_host,target_signal_to_host_p)
20231 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20232
86b1f9c5
PM
202332009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20234
20235 * remote-utils.c (getpkt): Also generate remote-debug
20236 information if noack_mode is set.
20237
4aa995e1
PA
202382009-02-06 Pedro Alves <pedro@codesourcery.com>
20239
20240 * server.c (handle_query): Report qXfer:siginfo:read and
20241 qXfer:siginfo:write as supported and handle them.
20242 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20243 * linux-low.c (linux_xfer_siginfo): New.
20244 (linux_target_ops): Set it.
20245
62709adf
PA
202462009-01-26 Pedro Alves <pedro@codesourcery.com>
20247
20248 * server.c (gdbserver_usage): Mention --remote-debug.
20249 (main): Accept '--remote-debug' switch.
20250
aef93bd7
DE
202512009-01-18 Doug Evans <dje@google.com>
20252
20253 * regcache.c (new_register_cache): No need to check result of xcalloc.
20254 * server.c (handle_search_memory): Back out calls to xmalloc,
20255 result is checked and error is returned to user upon failure.
20256 (handle_query): Ditto. Add more checks for result of malloc.
20257 (handle_v_cont): Check result of malloc, report error back to
20258 user upon failure.
20259 (handle_v_run): Ditto. Call freeargv.
20260 * server.h (freeargv): Declare.
20261 * utils.c (freeargv): New fn.
20262
54363045
DE
202632009-01-15 Doug Evans <dje@google.com>
20264
f626972c
DE
20265 * gdbreplay.c (perror_with_name): Make arg const char *.
20266 * server.h (target_signal_to_name): Make return type const char *.
0842e787 20267 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 20268 * utils.c (perror_with_name): Make arg const char *.
54363045 20269
18aae699
PA
202702009-01-14 Pedro Alves <pedro@codesourcery.com>
20271
20272 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20273 when handling a EXIT_PROCESS_DEBUG_EVENT.
20274
ff703abe
JB
202752009-01-06 Joel Brobecker <brobecker@adacore.com>
20276
20277 * gdbreplay.c (gdbreplay_version): Update copyright year.
20278 * server.c (gdbserver_version): Likewise.
20279
f21cc1a2 202802009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
20281
20282 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 20283 (handle_extended_wait): Improve comment.
0e21c1ec 20284
bca929d3
DE
202852008-12-13 Doug Evans <dje@google.com>
20286
20287 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20288 * server.h (ATTR_MALLOC): New macro.
20289 (xmalloc,xcalloc,xstrdup): Declare.
20290 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20291 * inferiors.c: Ditto.
20292 * linux-low.c: Ditto.
20293 * mem-break.c: Ditto.
20294 * regcache.c: Ditto.
20295 * remote-utils.c: Ditto.
20296 * server.c: Ditto.
20297 * target.c: Ditto.
20298 * win32-low.c: Ditto.
20299
97438e3f
DE
203002008-12-12 Doug Evans <dje@google.com>
20301
896c7fbb
DE
20302 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20303 in debugging printf.
20304
97438e3f
DE
20305 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20306
e3b886f8
DE
203072008-12-09 Doug Evans <dje@google.com>
20308
20309 * linux-low.h (struct process_info): Delete member tid, unused.
20310 * thread-db.c (find_one_thread): Update.
20311 (maybe_attach_thread): Update.
20312
07e059b5
VP
203132008-12-02 Pedro Alves <pedro@codesourcery.com>
20314
889bf7c5
PA
20315 * target.h (struct target_ops): Add qxfer_osdata member.
20316 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20317 and dirent.h.
20318 (linux_qxfer_osdata): New functions.
20319 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20320 callback.
20321 * server.c (handle_query): Handle "qXfer:osdata:read:".
20322 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20323 (buffer_xml_printf): New functions.
20324 * server.h (struct buffer): New.
20325 (buffer_grow_str, buffer_grow_str0): New macros.
20326 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20327 (buffer_xml_printf): Declare.
07e059b5 20328
4cab47ab
DE
203292008-11-24 Doug Evans <dje@google.com>
20330
20331 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20332
f142445f
DJ
203332008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20334
20335 * server.c (handle_v_run): Always use the supplied argument list.
20336
d0107bb6 203372008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20338
d0107bb6
BW
20339 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20340 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20341
2c4ad781
TJB
203422008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20343
20344 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20345 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20346 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20347 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20348 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20349 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20350 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20351 XML target descriptions.
20352 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20353 when inferior is running on an ISA 2.05 or later processor. Add
20354 special case to return offset for full 64-bit slot of FPSCR when
20355 in 32-bits.
20356
dfb64f85
DJ
203572008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20358
20359 * Makefile.in (SFILES, clean): Added sparc64 files.
20360 (reg-sparc64.o, reg-sparc64.c): New.
20361 * configure.srv (sparc*-*-linux*): New configuration.
20362 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20363 syscall arguments for SPARC.
20364 (regsets_store_inferior_registers): Likewise.
20365 * linux-sparc-low.c: New file.
20366
66b6e1dd
DE
203672008-10-21 Doug Evans <dje@google.com>
20368
20369 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20370 (READLINE_DIR,READLINE_DEP): Delete.
20371 (INTERNAL_CFLAGS): Update.
20372 (LINTFLAGS): Update.
20373
9b710a42
PA
203742008-10-10 Pedro Alves <pedro@codesourcery.com>
20375
20376 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20377 whole argv from the last run, not just argv[0].
20378
5822d809
PA
203792008-09-08 Pedro Alves <pedro@codesourcery.com>
20380
20381 * regcache.c (new_register_cache): Return NULL if the register
20382 cache size isn't known yet.
20383 (free_register_cache): Avoid dereferencing a NULL regcache.
20384
74aac56f
DJ
203852008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20386
20387 * configure.srv: Merge MIPS and MIPS64.
20388
400b20f5
MR
203892008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20390
20391 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20392
677c5bb1
LM
203932008-08-18 Luis Machado <luisgpm@br.ibm.com>
20394
20395 * Makefile.in: Add required vsx dependencies.
20396
20397 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20398 Declare init_registers_powerpc_vsx32l.
20399 Declare init_registers_powerpc_vsx64l.
20400 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20401 (ppc_arch_setup): Check for VSX in hwcap.
20402 (ppc_fill_vsxregset): New function.
20403 (ppc_store_vsxregset): New function.
20404 Add new VSX entry in regset_info target_regsets.
20405
20406 * configure.srv: Add new VSX dependencies.
20407
a6f3e723
SL
204082008-08-12 Pedro Alves <pedro@codesourcery.com>
20409
20410 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20411 (remote_open): Set or clear transport_is_reliable.
20412 (putpkt_binary): Don't expect acks in noack mode.
20413 (getpkt): Don't send ack/nac in noack mode.
20414 * server.c (handle_general_set): Handle QStartNoAckMode.
20415 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20416 qSupported.
20417 (main): Reset noack_mode on every connection.
20418 * server.h (noack_mode): Declare.
20419
a417dc56
RW
204202008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20421
20422 * Makefile.in (GDBREPLAY_OBS): New variable.
20423 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20424
3221518c
UW
204252008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20426 Daniel Jacobowitz <dan@codesourcery.com>
20427
20428 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20429 (usr_store_inferior_registers): Likewise.
20430 (regsets_store_inferior_registers): Likewise.
20431
ec56be1b
PA
204322008-07-31 Rolf Jansen <rj@surtec.com>
20433 Pedro Alves <pedro@codesourcery.com>
20434
20435 * configure.ac: Check for memmem declaration.
20436 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20437 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20438 (disable_packet_qfThreadInfo): Unconditionally compile.
20439 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20440 * configure, config.in: Regenerate.
20441
2fe5e3ff
DE
204422008-07-28 Doug Kwan <dougkwan@google.com>
20443
20444 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20445 (linux_write_memory): Remove declaration of errno.
20446
836acd6d
UW
204472008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20448
20449 * linux-low.c (handle_extended_wait): Do not use "status"
20450 variable uninitialized.
20451
aeba519e
PA
204522008-07-07 Pedro Alves <pedro@codesourcery.com>
20453
20454 * server.c (handle_v_attach): Inhibit reporting dll changes.
20455
db42f210
PA
204562008-06-27 Pedro Alves <pedro@codesourcery.com>
20457
20458 * remote-utils.c (prepare_resume_reply): If requested, don't
20459 output "thread:TID" in the T stop reply.
20460
20461 * server.c (disable_packet_vCont, disable_packet_Tthread)
20462 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20463 (handle_query): If requested, disable support for qC, qfThreadInfo
20464 and qsThreadInfo.
20465 (handle_v_requests): If requested, disable support for vCont.
20466 (gdbserver_show_disableable): New.
20467 (main): Handle --disable-packet and --disable-packet=LIST.
20468
20469 * server.h (disable_packet_vCont, disable_packet_Tthread)
20470 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20471
8e4c5421
CD
204722008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20473
20474 * server.c (gdbserver_usage): Mention --version.
20475
6e23a804
DJ
204762008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20477
20478 * Makefile.in (gdbreplay.o): New rule.
20479
90aa6a40
JM
204802008-06-06 Joseph Myers <joseph@codesourcery.com>
20481
20482 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20483 message, not gdbserver.
20484
c16158bc 204852008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20486 Nathan Sidwell <nathan@codesourcery.com>
20487 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20488
20489 * acinclude.m4: Include ../../config/acx.m4.
20490 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20491 * configure, config.in: Regenerate.
20492 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20493 * server.c (gdbserver_version): Print PKGVERSION.
20494 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20495 (main): Adjust gdbserver_usage calls.
20496 * gdbreplay.c (version, host_name): Add declarations.
20497 (gdbreplay_version, gdbreplay_usage): New.
20498 (main): Accept --version and --help options.
20499
aeb75bf5
DJ
205002008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20501
20502 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20503 (arm_breakpoint_at): Handle Thumb.
20504 (the_low_target): Add comment.
20505
76b233dd
UW
205062008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20507
20508 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20509
08388c79
DE
205102008-05-09 Doug Evans <dje@google.com>
20511
a3c83fae
DE
20512 * server.h (decode_search_memory_packet): Declare.
20513 * remote-utils.c (decode_search_memory_packet): New fn.
20514 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20515 (handle_search_memory): New fn.
20516 (handle_query): Process qSearch:memory packets.
20517
bb9c3d36
UW
205182008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20519
20520 * regcache.c (registers_length): Remove.
20521 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20522 full register packet.
20523 * regcache.h (registers_length): Remove prototype.
20524 * server.h (PBUFSIZ): Define to 16384.
20525
7284e1be
UW
205262008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20527
20528 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20529 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20530 powerpc-64l.o, and powerpc-altivec64l.o.
20531 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20532 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20533 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20534 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20535 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20536 to srv_xmlfiles.
20537
20538 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20539 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20540 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20541 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20542 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20543 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20544 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20545 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20546 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20547 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20548 (clean): Update.
20549
20550 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20551 (init_registers_powerpc_32l): ... this new prototype.
20552 (init_registers_powerpc_32): Remove, replace by ...
20553 (init_registers_powerpc_altivec32l): ... this new prototype.
20554 (init_registers_powerpc_e500): Remove, replace by ...
20555 (init_registers_powerpc_e500l): ... this new prototype.
20556 (init_registers_ppc64): Remove, replace by ...
20557 (init_registers_powerpc_64l): ... this new prototype.
20558 (init_registers_powerpc_64): Remove, replace by ...
20559 (init_registers_powerpc_altivec64l): ... this new prototype.
20560 (ppc_num_regs): Set to 73.
20561 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20562 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20563 (ppc_cannot_store_register): Handle orig_r3 and trap.
20564 (ppc_arch_setup): Update init_registers_... calls.
20565 (ppc_fill_gregset): Handle orig_r3 and trap.
20566
20567 * inferiors.c (clear_inferiors): Reset current_inferior.
20568
fdc59709
PB
205692008-04-23 Paolo Bonzini <bonzini@gnu.org>
20570
889bf7c5
PA
20571 * acinclude.m4: Add override.m4.
20572 * configure: Regenerate.
fdc59709 20573
c9b2f845
UW
205742008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20575
20576 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20577 initial call to init_register_ppc64.
20578
550512b8
UW
205792008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20580
43aaf8b6
PA
20581 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20582 single powerpc*-*-linux* case.
550512b8
UW
20583 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20584
b6430ec3
UW
205852008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20586
20587 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20588 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20589 from reg_xmlfiles.
20590 * linux-ppc-low.c: Include <elf.h>.
20591 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20592 (ppc_hwcap): New global variable.
20593 (ppc_regmap): Remove __SPE__ #ifdef sections.
20594 (ppc_regmap_e500): New global variable.
20595 (ppc_cannot_store_register): Update __SPE__ special case.
20596 (ppc_get_hwcap): New function.
20597 (ppc_arch_setup): Use it to determine whether inferior supports
20598 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20599 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20600 Do not access registers if target does not support AltiVec.
20601 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20602 Do not access registers if target does not support SPE.
20603 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20604
52fa2412
UW
206052008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20606
20607 * linux-low.c (disabled_regsets, num_regsets): New.
20608 (use_regsets_p): Delete.
20609 (linux_wait_for_process): Clear disabled_regsets.
20610 (regsets_fetch_inferior_registers): Check and set it.
20611 (regsets_store_inferior_registers): Likewise.
20612 (linux_fetch_registers, linux_store_registers): Do not use
20613 use_regsets_p.
20614 (initialize_low): Allocate disabled_regsets.
20615
e28b3332
DJ
206162008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20617
20618 * Makefile.in (LIBOBJS): New.
20619 (OBS): Use LIBOBJS.
20620 (memmem.o): New rule.
20621 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20622 * configure: Regenerated.
20623
4536995d
UW
206242008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20625
20626 * server.c (handle_query): Never return "unsupported" for
20627 qXfer:features:read queries.
20628
221c031f
UW
206292008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20630
20631 * server.c (get_features_xml): Fix inverted condition.
20632 (handle_query): Always support qXfer:feature:read.
20633
ccd213ac
DJ
206342008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20635
20636 * server.c (wrapper_argv): New.
20637 (start_inferior): Handle wrapper_argv. If set, expect an extra
20638 trap.
20639 (gdbserver_usage): Document --wrapper.
20640 (main): Parse --wrapper.
20641
6fe305f7
UW
206422008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20643
20644 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20645 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20646 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20647 (ppc_set_pc): Likewise.
20648 (ppc_arch_setup): New function.
20649 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20650 of collect_register.
889bf7c5 20651 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20652
5b0a002e
UW
206532008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20654
20655 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20656 instead of linux-ppc64-low.o.
20657 * linux-ppc64-low.c: Remove file.
20658 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20659 (linux-ppc64-low.o): Remove rule.
20660
20661 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20662 (init_registers_powerpc_64): Likewise.
20663 (ppc_regmap): Conditionally define depending on __powerpc64__.
20664 (ppc_cannot_store_register): Do not special-case "fpscr" when
20665 compiled on __powerpc64__.
20666 (ppc_collect_ptrace_register): New function.
20667 (ppc_supply_ptrace_register): New function.
20668 (ppc_breakpoint): Change type to "unsigned int".
20669 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20670 (the_low_target): Conditionally provide initializers for the
889bf7c5 20671 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20672 collect_ptrace_register and supply_ptrace_register members.
20673
9b4b61c8
UW
206742008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20675
20676 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20677 * server.c (gdbserver_xmltarget): Define.
20678 (get_features_xml): Use it to replace "target.xml" and arch_string.
20679
20680 * configure.srv: Remove srv_xmltarget. Add XML files that were
20681 mentioned there to srv_xmlfiles instead. Remove conditional tests
20682 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20683 srv_xmlfiles and srv_regobj to include all possible choices.
20684 * configure.ac (srv_xmltarget): Remove.
20685 (srv_xmlfiles): Do not add "target.xml".
20686 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20687 checks for supplementary target information.
20688 * configure: Regenerate.
20689 * Makefile.in (XML_TARGET): Remove.
20690 (target.xml): Remove rule.
20691 (clean): Do not clean up target.xml.
20692 (.PRECIOUS): Do not mention target.xml.
20693
20694 * target.h (struct target_ops): Remove arch_string member.
20695 * linux-low.c (linux_arch_string): Remove.
20696 (linux_target_ops): Remove arch_string initializer.
20697 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20698 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20699 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20700 * spu-low.c (spu_arch_string): Remove.
20701 (spu_target_ops): Remove arch_string initializer.
20702 * win32-low.c (win32_arch_string): Remove.
20703 (win32_target_ops): Remove arch_string initializer.
20704 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20705 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20706 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20707
ee1a7ae4
UW
207082008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20709
20710 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20711 by collect_ptrace_register and supply_ptrace_register hooks.
20712 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20713 instead of checking for the_low_target.left_pad_xfer.
20714 (usr_store_inferior_registers): Use collect_ptrace_register callback
20715 instead of checking for the_low_target.left_pad_xfer.
20716
20717 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20718 (s390_supply_ptrace_register): Likewise.
20719 (s390_fill_gregset): Call s390_collect_ptrace_register.
20720 (the_low_target): Update.
20721
20722 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20723 (ppc_supply_ptrace_register): Likewise.
20724 (the_low_target): Update.
20725
20726 * linux-i386-low.c (the_low_target): Update.
20727 * linux-x86-64-low.c (the_low_target): Update.
20728
d61ddec4
UW
207292008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20730
20731 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20732 reg-s390.o and reg-s390x.o.
20733
20734 * linux-low.c (new_inferior): New global variable.
20735 (linux_create_inferior, linux_attach): Set it.
20736 (linux_wait_for_process): Call the_low_target.arch_setup after the
20737 target has stopped for the first time.
20738 (initialize_low): Do not call the_low_target.arch_setup.
20739
20740 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20741 (s390_set_pc): Likewise.
20742 (s390_arch_setup): New function.
20743 (the_low_target): Use s390_arch_setup as arch_setup routine.
20744
20745 * regcache.c (realloc_register_cache): New function.
20746 (set_register_cache): Call it for each existing regcache.
20747
d05b4ac3
UW
207482008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20749
20750 * server.h (init_registers): Remove prototype.
20751
20752 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20753 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20754 instead of init_registers ().
20755 * linux-arm-low.c (init_registers_arm): Add prototype.
20756 (init_registers_arm_with_iwmmxt): Likewise.
20757 (the_low_target): Add initializer for arch_setup field.
20758 * linux-cris-low.c (init_registers_cris): Add prototype.
20759 (the_low_target): Add initializer for arch_setup field.
20760 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20761 (the_low_target): Add initializer for arch_setup field.
20762 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20763 (the_low_target): Add initializer for arch_setup field.
20764 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20765 (the_low_target): Add initializer for arch_setup field.
20766 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20767 (the_low_target): Add initializer for arch_setup field.
20768 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20769 (the_low_target): Add initializer for arch_setup field.
20770 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20771 (init_registers_mips64_linux): Likewise.
20772 (the_low_target): Add initializer for arch_setup field.
20773 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20774 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20775 (the_low_target): Add initializer for arch_setup field.
20776 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20777 (init_registers_powerpc_64): Likewise.
20778 (the_low_target): Add initializer for arch_setup field.
20779 * linux-s390-low.c (init_registers_s390): Add prototype.
20780 (init_registers_s390x): Likewise.
20781 (the_low_target): Add initializer for arch_setup field.
20782 * linux-sh-low.c (init_registers_sh): Add prototype.
20783 (the_low_target): Add initializer for arch_setup field.
20784 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20785 (the_low_target): Add initializer for arch_setup field.
20786 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20787 (the_low_target): Add initializer for arch_setup field.
20788
20789 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20790 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20791 instead of init_registers ().
20792 * win32-arm-low.c (init_registers_arm): Add prototype.
20793 (the_low_target): Add initializer for arch_setup field.
20794 * win32-i386-low.c (init_registers_i386): Add prototype.
20795 (the_low_target): Add initializer for arch_setup field.
20796
20797 * spu-low.c (init_registers_spu): Add prototype.
20798 (initialize_low): Call initialie_registers_spu () instead of
20799 initialize_registers ().
20800
fd96d250
PA
208012008-02-19 Pedro Alves <pedro@codesourcery.com>
20802
20803 * server.c (handle_v_requests): When handling the vRun and vAttach
20804 packets, if already debugging a process, don't kill it. Return an
20805 error instead.
20806
d41b6bb4
DJ
208072008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20808
20809 * server.c (handle_query): Correct length check.
20810
5ac588cf
PA
208112008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20812
20813 * win32-low.c (do_initial_child_stuff): Add process handle
20814 parameter. Set current_process_handle and current_process_id from the
20815 parameters. Clear globals.
20816 (win32_create_inferior): Don't set current_process_handle and
20817 current_process_id here. Instead pass them on the call to
20818 do_initial_child_stuff.
20819 (win32_attach): Likewise.
20820 (win32_clear_inferiors): New.
20821 (win32_kill): Don't close the current process handle or the
20822 current thread handle here. Instead call win32_clear_inferiors.
20823 (win32_detach): Don't open a new handle to the process. Call
20824 win32_clear_inferiors.
20825 (win32_join): Don't rely on current_process_handle; open a new
20826 handle using the process id.
20827 (win32_wait): Call win32_clear_inferiors when the inferior process
20828 has exited.
20829
ecd7ecbc
DJ
208302008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20831
20832 * server.c (monitor_show_help): Add "exit".
20833
1525d545
MG
208342008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20835
ecd7ecbc 20836 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20837 (clean): Add reg-xtensa.c.
20838 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20839 * configure.srv (xtensa*-*-linux*) New target.
20840 * linux-xtensa-low.c: New.
20841 * xtensa-xtregs.c: New.
1525d545 20842
59a016f0
PA
208432008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20844
20845 * hostio.c: Don't include errno.h.
20846 (errno_to_fileio_errno): Move to hostio-errno.
20847 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20848 error number outputting to the target->hostio_last_error callback.
20849 (hostio_packet_error): Use FILEIO_EINVAL directly.
20850 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20851 calls to hostio_error.
20852 * hostio-errno.c: New.
20853 * server.h (hostio_last_error_from_errno): Declare.
20854 * target.h (target_ops): Add hostio_last_error member.
20855 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20856 as hostio_last_error handler.
889bf7c5 20857 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20858 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20859 (wince_hostio_last_error): New functions.
20860 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20861 as hostio_last_error handler.
20862 (win32_target_ops) [!_WIN32_WCE]: Register
20863 hostio_last_error_from_errno as hostio_last_error handler.
20864 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20865 (hostio-errno.o): New rule.
20866 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20867 * configure.srv (srv_hostio_err_objs): New variable. Default to
20868 hostio-errno.o.
20869 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20870 * configure: Regenerate.
20871
2d717e4f
DJ
208722008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20873
20874 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20875 (linux_kill, linux_detach): Clean up the process list.
20876 * remote-utils.c (remote_open): Improve port number parsing.
20877 (putpkt_binary, input_interrupt): Only send interrupts if the target
20878 is running.
20879 * server.c (extended_protocol): Make static.
20880 (attached): Define earlier.
20881 (exit_requested, response_needed, program_argv): New variables.
20882 (target_running): New.
20883 (start_inferior): Clear attached here.
20884 (attach_inferior): Set attached here.
20885 (require_running): Define.
20886 (handle_query): Use require_running and target_running. Implement
20887 "monitor exit".
20888 (handle_v_attach, handle_v_run): New.
20889 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20890 (gdbserver_usage): Update.
20891 (main): Redo argument parsing. Handle --debug and --multi. Handle
20892 --attach along with other options or after the port. Save
20893 program_argv. Support no initial program. Resynchronize
20894 communication with GDB after an error. Handle "monitor exit".
20895 Use require_running and target_running. Always allow the extended
20896 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20897 restart in extended mode.
20898 * README: Refer to the GDB manual. Update --attach usage.
20899
7407e2de
AS
209002007-12-20 Andreas Schwab <schwab@suse.de>
20901
20902 * linux-low.c (STACK_SIZE): Define.
20903 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20904 (linux_test_for_tracefork): Likewise.
20905
b65d95c5
DJ
209062007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20907
20908 * linux-low.c (linux_wait_for_event): Update messages. Do not
20909 reinsert auto-delete breakpoints.
20910 * mem-break.c (struct breakpoint): Change return type of handler to
20911 int.
20912 (set_breakpoint_at): Update handler type.
20913 (reinsert_breakpoint_handler): Return 1 instead of calling
20914 delete_breakpoint.
20915 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20916 setting a new one.
20917 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20918 * mem-break.h (set_breakpoint_at): Update handler type.
20919 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20920 * win32-low.c (auto_delete_breakpoint): New.
20921 (get_child_debug_event): Use it.
20922
4e799345
DJ
209232007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20924
20925 * configure.ac: Check for pread and pwrite.
20926 * hostio.c (handle_pread): Fall back to lseek and read.
20927 (handle_pwrite): Fall back to lseek and write.
20928 * config.in, configure: Regenerated.
20929
27524b67
DJ
209302007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20931
20932 * server.c (myresume): Add own_buf argument.
20933 (main): Update calls.
20934
a20d5e98
DJ
209352007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20936
20937 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20938 * remote-utils.c (remote_open): Do not call disable_async_io.
20939 (block_async_io): Delete.
20940 (unblock_async_io): Make static.
20941 (initialize_async_io): New.
20942 * server.c (handle_v_cont): Handle async I/O here.
20943 (myresume): Likewise. Move other common resume tasks here...
20944 (main): ... from here. Call initialize_async_io. Disable async
20945 I/O before the main loop.
20946 * server.h (initialize_async_io): Declare.
20947 (block_async_io, unblock_async_io): Delete prototypes.
20948 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20949
b79d787e
DJ
209502007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20951
20952 * remote-utils.c (readchar): Allow binary data in received messages.
20953
d97903b2
PA
209542007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20955
20956 * win32-low.c (attaching): New global.
20957 (win32_create_inferior): Clear the `attaching' global.
20958 (win32_attach): Set the `attaching' global.
20959 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20960 attaching. Only set a breakpoint at the entry point if not
20961 attaching.
20962
311de423
PA
209632007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20964
20965 * server.c (main): Don't report dll events on the initial
20966 connection on attaches.
20967
6c2d16d2
PA
209682007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20969
20970 * server.c (main): Relax numerical bases supported for the pid of
20971 the --attach command line argument.
20972
5ca906e6
PA
209732007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20974
20975 * win32-low.c (win32_attach): Call OpenProcess before
20976 DebugActiveProcess, not after. Add last error output to error
20977 call.
20978
9c6c8194
PA
209792007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20980
20981 * win32-low.c (win32_get_thread_context)
20982 (win32_set_thread_context): New functions.
20983 (thread_rec): Use win32_get_thread_context.
20984 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20985 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20986 field.
20987
4d5d1aaa
PA
209882007-12-03 Leo Zayas
20989 Pedro Alves <pedro_alves@portugalmail.pt>
20990
20991 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20992 global variables.
20993 (child_add_thread): Minor cleanup.
20994 (child_continue): Resume artificially suspended threads before
20995 calling ContinueDebugEvent.
20996 (suspend_one_thread): New.
20997 (fake_breakpoint_event): New.
20998 (get_child_debug_event): Change return type to int. Check here if
20999 gdb sent an interrupt request. If a soft interrupt was requested,
21000 fake a breakpoint event. Return 0 if there is no event to handle,
21001 and 1 otherwise.
21002 (win32_wait): Don't check here if gdb sent an interrupt request.
21003 Ensure there is a valid event to handle.
21004 (win32_request_interrupt): Add soft interruption method as last
21005 resort.
21006
c436e841
PA
210072007-12-03 Leo Zayas
21008 Pedro Alves <pedro_alves@portugalmail.pt>
21009
21010 * win32-low.h (win32_thread_info): Add descriptions to the
21011 structure members. Replace `suspend_count' counter by a
21012 `suspended' flag.
21013 * win32-low.c (thread_rec): Update condition of when to get the
21014 context from the inferior. Rely on ContextFlags being set if it
21015 has already been retrieved. Only suspend the inferior thread if
21016 we haven't already. Warn if that fails.
21017 (continue_one_thread): s/suspend_count/suspended/. Only call
21018 ResumeThread once. Warn if that fails.
21019
e7b5fa67
PA
210202007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21021
21022 * win32-low.c (win32_wait): Don't read from the inferior when it
21023 has already exited.
21024
a385171d
PA
210252007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21026
21027 * Makefile.in (win32_low_h): New variable.
21028 (win32-low.o): Add dependency on $(win32_low_h).
21029 (win32-arm-low.o, win32-i386-low.o): New rules.
21030
f80c84b3
DJ
210312007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21032
21033 * hostio.c: Correct copyright year.
21034
a6b151f1
DJ
210352007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21036
21037 * Makefile.in (OBS): Add hostio.o.
21038 (hostio.o): New rule.
21039 * server.h (handle_vFile): Declare.
21040 * hostio.c: New file.
21041 * server.c (handle_v_requests): Take packet_len and new_packet_len
21042 for binary packets. Call handle_vFile.
21043 (main): Update call to handle_v_requests.
21044
f9387fc3
DJ
210452007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21046
21047 * linux-low.c: Include <sched.h>.
21048
51c2684e
DJ
210492007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21050
21051 * linux-low.c (linux_tracefork_grandchild): New.
21052 (linux_tracefork_child): Use clone.
21053 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21054
75f83163
JB
210552007-10-31 Joel Brobecker <brobecker@adacore.com>
21056
21057 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21058
da5898ce
DJ
210592007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21060
21061 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21062
24a09b5f
DJ
210632007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21064
21065 * inferiors.c (change_inferior_id): Delete.
21066 (add_pid_to_list, pull_pid_from_list): New.
21067 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21068 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21069 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21070 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21071 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21072 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21073 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21074 (using_threads): Always set to 1.
21075 (handle_extended_wait): New.
21076 (add_process): Do not set TID.
21077 (linux_create_inferior): Set must_set_ptrace_flags.
21078 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21079 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21080 (linux_thread_alive): Rename TID argument to LWPID.
21081 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21082 (linux_wait_for_event): Do not use TID or check using_threads. Update
21083 call to dead_thread_notify. Call handle_extended_wait.
21084 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21085 (send_sigstop): Delete sigstop_sent.
21086 (wait_for_sigstop): Avoid TID.
21087 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21088 (linux_test_for_tracefork): New.
21089 (linux_lookup_signals): Use thread_db_active and
21090 linux_supports_tracefork_flag.
21091 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21092 * linux-low.h (get_process_thread): Avoid TID.
21093 (struct process_ifo): Move thread_known and tid to the end. Remove
21094 sigstop_sent.
21095 (linux_attach_lwp, thread_db_init): Update prototypes.
21096 * server.h (change_inferior_id): Delete prototype.
21097 (add_pid_to_list, pull_pid_from_list): New prototypes.
21098 * thread-db.c (thread_db_use_events): New.
21099 (find_first_thread): Rename to...
21100 (find_one_thread): ...this. Update callers and messages. Do not
21101 call fatal. Check thread_db_use_events. Do not call
21102 change_inferior_id or new_thread_notify.
21103 (maybe_attach_thread): Update. Do not call new_thread_notify.
21104 (thread_db_init): Set thread_db_use_events. Check use_events.
21105 * utils.c (fatal, warning): Correct message prefix.
21106
30ed0a8f
DJ
211072007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21108
21109 * Makefile.in (clean): Remove new files.
21110 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21111 (powerpc-64.o, powerpc-64.c): New rules.
21112 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21113 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21114 with SPE.
21115 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21116 SPE targets.
21117 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21118 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21119 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21120 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21121 (target_regsets): Add AltiVec and SPE register sets.
21122 * configure.ac: Check for AltiVec and SPE.
21123 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21124 (ppc_fill_vrregset, ppc_store_vrregset): New.
21125 (target_regsets): Add AltiVec register set.
21126 * configure: Regenerated.
21127
fd462a61
DJ
211282007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21129
21130 * linux-low.c (O_LARGEFILE): Define.
21131 (linux_read_memory): Use /proc/PID/mem.
21132 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21133 * configure, config.in: Regenerated.
21134
69f223ed
DJ
211352007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21136
21137 * linux-low.c (linux_wait_for_event): Do not pass signals while
21138 single-stepping.
21139
aec18585
PA
211402007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21141
21142 * win32-low.c (create_process): New.
21143 (win32_create_inferior): Use create_process instead of
21144 CreateProcess. If create_process failed retry appending an ".exe"
21145 suffix. Store the GetLastError result immediatelly after
21146 create_process calls and use it on the call to error.
21147
34d86ddd
PA
211482007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21149
21150 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21151
5a0e3bd0
JB
211522007-08-23 Joel Brobecker <brobecker@adacore.com>
21153
21154 * configure.ac: Switch license to GPLv3.
21155
f88c79e6
MS
211562007-08-01 Michael Snyder <msnyder@access-company.com>
21157
21158 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21159
6b3d9b83
PA
211602007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21161
21162 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21163 typedef.
21164 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21165 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21166 CloseToolhelp32Snapshot.
21167 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21168 CloseToolhelp32Snapshot.
21169
c588c53c
MS
211702007-07-27 Michael Snyder <michael.snyder@access-company.com>
21171
21172 * server.c (main): Check for inferior exit before main loop.
21173
aa0403d9
PA
211742007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21175
21176 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21177 instead of on tmp_desc.
21178
255e7678
DJ
211792007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21180 Daniel Jacobowitz <dan@codesourcery.com>
21181
21182 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21183 (add_thread): Minor cleanups.
21184 (clear_inferiors): Move lower in the file. Clear the DLL
21185 list.
21186 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21187 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21188 (xml_escape_text): New.
21189 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21190 for qSupported.
21191 (handle_v_cont): Report errors.
21192 (gdbserver_version): Update.
21193 (main): Correct size of own_buf. Do not report initial DLL events.
21194 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21195 (unloaded_dll, xml_escape_text): New.
21196 * win32-low.c (enum target_waitkind): Update comments.
21197 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21198 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21199 (win32_EnumProcessModules, win32_GetModuleInformation)
21200 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21201 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21202 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21203 (win32_Module32First, win32_Module32Next, load_toolhelp)
21204 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21205 (get_child_debug_event): Handle DLL events.
21206 (win32_wait): Likewise.
21207
0d37add9
DJ
212082007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21209
21210 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21211 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21212
45e2715e
PA
212132007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21214
21215 * win32-low.c (handle_output_debug_string): Ignore event if not
21216 waiting.
21217
c5674cf1
PA
212182007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21219
21220 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21221
2bbe3cc1
DJ
212222007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21223
21224 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21225
ae13219e
DJ
212262007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21227
21228 * inferiors.c (change_inferior_id): Add comment.
21229 * linux-low.c (check_removed_breakpoint): Add an early
21230 prototype. Improve debug output.
21231 (linux_attach): Doc update.
21232 (linux_detach_one_process, linux_detach): Clean up before releasing
21233 each process.
21234 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21235 * linux-low.h (struct process_info): Doc improvement.
21236 * mem-break.c (delete_all_breakpoints): New.
21237 * mem-break.h (delete_all_breakpoints): New prototype.
21238 * thread-db.c (find_first_thread): New.
21239 (thread_db_create_event): Call it instead of
21240 thread_db_find_new_threads. Clean up unused variables.
21241 (maybe_attach_thread): Remove first thread handling.
21242 (thread_db_find_new_threads): Use find_first_thread.
21243 (thread_db_get_tls_address): Likewise.
21244
4105de34
DJ
212452007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21246
21247 * thread-db.c (thread_db_find_new_threads): Add prototype.
21248 (thread_db_create_event): Check for the main thread before adding
21249 a new thread.
21250 (maybe_attach_thread): Only enable event reporting if TID == 0.
21251 (thread_db_get_tls_address): Check for new threads.
21252
2b876972
DJ
212532007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21254
21255 * linux-low.c (linux_create_inferior): Try execv before execvp.
21256 * spu-low.c (spu_create_inferior): Likewise.
21257
7a245884
DJ
212582007-06-13 Mike Frysinger <vapier@gentoo.org>
21259
21260 * linux-low.c (linux_create_inferior): Change execv to execvp.
21261 * spu-low.c (spu_create_inferior): Likewies.
21262
117ce543
DJ
212632007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21264
21265 * Makefile.in (clean): Clean new files instead of deleted ones.
21266 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21267 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21268 rules.
21269 * configure.srv: Specify XML files and new regformats for MIPS and
21270 MIPS64 GNU/Linux.
21271 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21272 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21273 an entry for the restart register.
21274 (mips_cannot_fetch_register, mips_cannot_store_register)
21275 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21276 register names to match the XML descriptions.
21277 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21278 restart register instead of $0.
21279
0e7f50da
UW
212802007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21281 Markus Deuling <deuling@de.ibm.com>
21282
21283 * remote-utils.c (decode_xfer_write): New function.
21284 * server.h (decode_xfer_write): Add prototype.
21285 * server.c (handle_query): Add PACKET_LEN argument. Support
21286 qXfer:spu:read and qXfer:spu:write packets.
21287 (main): Pass packet_len to handle_query.
21288 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21289 * target.h (target_ops): Add qxfer_spu.
21290
374c1d38
UW
212912007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21292
21293 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21294 accessing non-seekable spufs files.
21295
bb63802a
UW
212962007-05-16 Markus Deuling <deuling@de.ibm.com>
21297
889bf7c5 21298 * server.c (handle_query): Add reply for qC packet.
bb63802a 21299
7390519e
PA
213002007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21301 Leo Zayas <lerele@champenstudios@com>
21302
21303 * server.h (check_remote_input_interrupt_request): New function.
21304 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21305 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21306 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21307 (check_remote_input_interrupt_request): New function.
21308 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 21309 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
21310 winapi_GenerateConsoleCtrlEvent): New typedefs.
21311 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21312 to 250 ms.
21313 (win32_wait): Check for remote interrupt request
21314 with check_remote_input_interrupt_request.
21315 (win32_request_interrupt): New function.
21316 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21317
34b34921
PA
213182007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21319
21320 * win32-low.c (debug_registers_changed,
21321 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21322 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21323 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21324 (thread_rec): Get context using the low target.
21325 (child_add_thread): Call thread_added on the low target,
21326 which does the same thing.
21327 (regptr): Delete.
21328 (do_initial_child_stuff): Remove debug registers references.
21329 Set context using the low target. Resume threads after
21330 setting the contexts.
21331 (child_continue): Remove dead variable. Remove debug
21332 registers references.
21333 (child_fetch_inferior_registers): Go through the low target.
21334 (do_child_store_inferior_registers): Remove.
21335 (child_store_inferior_registers): Go through the low target.
21336 (win32_resume): Remove debug registers references.
21337 Set context using the low target.
21338 (handle_exception): Change return type to void. Don't record
21339 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21340 first chance exception.
889bf7c5 21341 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21342 goto loop. Always return after waiting for debug event.
21343 (win32_wait): Convert to switch statement. Handle spurious
21344 events.
21345
21346 * win32-i386-low.c (debug_registers_changed,
21347 debug_registers_used): New.
21348 (initial_stuff): Rename to ...
21349 (i386_initial_stuff): ... this. Clear debug registers
21350 state variables.
21351 (store_debug_registers): Delete.
21352 (i386_get_thread_context): New.
21353 (load_debug_registers): Delete.
21354 (i386_set_thread_context): New.
21355 (i386_thread_added): New.
21356 (single_step): Rename to ...
21357 (i386_single_step): ... this.
21358 (do_fetch_inferior_registers): Rename to ...
21359 (i386_fetch_inferior_register): ... this.
21360 (i386_store_inferior_register): New.
21361 (the_low_target): Adapt to new interface.
21362
21363 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21364 (arm_get_thread_context): New.
21365 (arm_set_thread_context): New.
21366 (regptr): New.
21367 (do_fetch_inferior_registers): Rename to ...
21368 (arm_fetch_inferior_register): ... this.
21369 (arm_store_inferior_register): New.
21370 (arm_wince_breakpoint): Reimplement as unsigned long.
21371 (arm_wince_breakpoint_len): Define.
21372 (the_low_target): Adapt to new interface.
21373
21374 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21375 load_debug_registers. Add get_thread_context, set_thread_context,
21376 thread_added and store_inferior_register. Rename
21377 fetch_inferior_registers to fetch_inferior_register.
21378 (regptr): Remove declaration.
21379
dd6953e1
PA
213802007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21381
21382 * linux-low.c (linux_detach): Change return type to int. Return 0.
21383 * spu-low.c (spu_detach): Likewise.
21384
444d6139
PA
213852007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21386
21387 * target.h (target_ops): Change return type of detach to int.
21388 Add join.
21389 (join_inferior): New.
21390 * server.c (main): Don't skip detach support on mingw32.
21391 If the inferior doesn't support detaching return error.
21392 Call join_inferior instead of using waitpid.
21393 * linux-low.c (linux_join): New.
21394 (linux_target_op): Add linux_join.
21395 * spu-low.c (spu_join): New.
21396 (spu_target_ops): Add spu_join.
21397 * win32-low.c (win32_detach): Adapt to new interface.
21398 Reopen current_process_handle before detaching. Issue a child
21399 resume before detaching.
21400 (win32_join): New.
21401 (win32_target_op): Add win32_join.
21402
1d5315fe
PA
214032007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21404
21405 * win32-low.c (win32-attach): Fix return value.
21406 * target.h (target_ops): Describe ATTACH return values.
21407
bf914831
PA
214082007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21409
21410 * win32-low.c (GETPROCADDRESS): Define.
21411 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21412 (winapi_DebugSetProcessKillOnExit): Likewise.
21413 (win32_create_inferior): Force usage of ansi CreateProcessA.
21414 (win32_attach): Use GETPROCADDRESS.
21415 (win32_detach): Likewise.
21416
f72f3e60
PA
214172007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21418
21419 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21420
ed50f18f
PA
214212007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21422
21423 * win32-low.c: Commit leftover changes from 2007-03-29.
21424
0c2ead7e
DJ
214252007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21426
21427 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21428 fields short instead of int. Add explicit padding.
21429 (i387_cache_to_fsave): Remove unnecessary casts.
21430 (i387_fsave_to_cache): Doc fix.
21431 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21432
73725ff3
DJ
214332007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21434
21435 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21436 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21437
d99f33d8
PA
214382007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21439
21440 * configure.srv (arm*-*-mingw32ce*): Move near the other
21441 arm targets.
21442
68070c10
PA
214432007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21444
2482afc6 21445 * configure.ac: Add errno checking.
68070c10
PA
21446 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21447 sys/file.h and malloc.h.
21448 (AC_CHECK_DECLS): Add perror.
21449 (srv_mingwce): Handle.
2482afc6 21450 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21451 win32-i386-low.o to srv_tgtobj.
21452 (i[34567]86-*-mingw*): Likewise.
21453 (arm*-*-mingw32ce*): Add case.
21454 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21455 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21456 [__MINGW32CE__] (strerror): New function.
21457 [__MINGW32CE__] (errno): Define to GetLastError.
21458 [__MINGW32CE__] (COUNTOF): New macro.
21459 (remote_open): Remove extra close call.
21460 * mem-break.c (delete_breakpoint_at): New function.
21461 * mem-break.h (delete_breakpoint_at): Declare.
21462 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21463 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21464 [USE_WIN32API] (read, write): Add char* casts.
21465 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21466 * server.h: Include wincecompat.h on Windows CE.
21467 [HAVE_ERRNO_H]: Check.
21468 (perror): Declare if not declared.
21469 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21470 (perror_with_name): Remove errno declaration.
21471 * wincecompat.h: New.
21472 * wincecompat.c: New.
21473 * win32-low.h: New.
21474 * win32-arm-low.c: New.
21475 * win32-i386-low.c: New.
21476 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21477 (OUTMSG2): Make it safe.
21478 (_T): New macro.
21479 (COUNTOF): New macro.
21480 (NUM_REGS): Get it from the low target.
21481 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21482 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21483 (thread_rec): Let low target handle debug registers.
21484 (child_add_thread): Likewise.
21485 (child_init_thread_list): Likewise.
21486 (continue_one_thread): Likewise.
21487 (regptr): New.
21488 (do_child_fetch_inferior_registers): Move to ...
21489 * win32-i386-low.c: ... here, and rename to ...
21490 (do_fetch_inferior_registers): ... this.
889bf7c5 21491 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21492 Go through the low target.
21493 (do_child_store_inferior_registers): Use regptr.
21494 (strwinerror): New function.
21495 (win32_create_inferior): Handle Windows CE.
21496 Use strwinerror instead of strerror on Windows error
21497 codes. Add program to the error output.
21498 Don't close the main thread handle on Windows CE.
21499 (win32_attach): Use coredll.dll on Windows CE.
21500 (win32_kill): Close current process and current
21501 thread handles.
21502 (win32_detach): Use coredll.dll on Windows CE.
21503 (win32_resume): Let low target handle debug registers, and
21504 step request.
21505 (handle_exception): Add/Remove initial breakpoint. Avoid
21506 non-existant WSTOPSIG on Windows CE.
21507 (win32_read_inferior_memory): Cast to remove warning.
21508 (win32_arch_string): Go through the low target.
21509 (initialize_low): Call set_breakpoint_data with the low
21510 target's breakpoint.
21511 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21512 FOP_REGNUM, mappings): Move to ...
21513 * win32-i386-low.c: ... here.
21514 * win32-low.c (win32_thread_info): Move to ...
21515 * win32-low.h: ... here.
21516 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21517 win32-arm-low.c and wincecompat.c.
21518 (all:): Add $EXEEXT.
21519 (install-only:): Likewise.
21520 (gdbserver:): Likewise.
21521 (gdbreplay:): Likewise.
21522 * config.in: Regenerate.
21523 * configure: Regenerate.
21524
41093d81
PA
215252007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21526
21527 * win32-low.c: Rename typedef thread_info to
21528 win32_thread_info throughout.
21529
544afa54
PA
215302007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21531
21532 * win32-i386-low.c: Rename to ...
21533 * win32-low.c: ... this.
21534 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21535 * Makefile.in: Likewise.
21536
bce7165d
PA
215372007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21538
21539 * remote-utils.c (monitor_output): Constify msg parameter.
21540 * server.h (monitor_output): Likewise.
21541 * win32-i386-low.c (handle_output_debug_string): New.
21542 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21543 handle_output_debug_string.
21544 (get_child_debug_event): Likewise.
21545
506c7aa0
DJ
215462007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21547
21548 * server.c (main): Correct strtoul check.
21549
42c81e2a
DJ
215502007-03-27 Jon Ringle <jon@ringle.org>
21551
21552 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21553
9453113a
DJ
215542007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21555
21556 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21557
64a69107
DJ
215582007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21559
21560 * terminal.h: Check HAVE_SGTTY_H.
21561
215622007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21563
21564 * remote-utils.c (remote_open): Print out the assigned port number.
21565
c74d0ad8
DJ
215662007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21567
21568 * remote-utils.c (monitor_output): New function.
21569 * server.c (debug_threads): Define here.
21570 (monitor_show_help): New function.
21571 (handle_query): Handle qRcmd.
21572 (main): Do not handle 'd' packet.
21573 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21574 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21575 of debug_threads.
21576
de7c3b4a
PA
215772007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21578
21579 * Makefile.in (EXEEXT): New.
21580 (clean): Use $(EXEEXT).
21581
ef57601b
PA
215822007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21583
21584 * target.h (target_ops): Rename send_signal to request_interrupt,
21585 and remove enum target_signal parameter.
21586 * linux-low.c (linux_request_interrupt): Rename from
21587 linux_send_signal, and always send SIGINT.
21588 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21589 and always send SIGINT.
21590 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21591 of send_signal.
21592 (input_interrupt): Likewise.
21593
820f2bda
PA
215942007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21595
21596 * server.c (get_features_xml): Check if target implemented
21597 arch_string.
21598 * win32-i386-low.c (win32_arch_string): New.
21599 (win32_target_ops): Add win32_arch_string as arch_string member.
21600
ab39bf24
UW
216012007-02-22 Markus Deuling <deuling@de.ibm.com>
21602
21603 * spu-low.c (spu_arch_string): New.
21604 (spu_target_ops): Add spu_arch_string.
21605
61ff6e04
DJ
216062007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21607
21608 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21609 * configure.ac: Do not check for terminal.h.
21610 * configure, config.in: Regenerated.
21611
fb1e4ffc
DJ
216122007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21613
21614 * Makefile.in (OBS): Add $(XML_BUILTIN).
21615 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21616 (clean): Update.
21617 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21618 (arm-with-iwmmxt.c): New.
21619 * config.in, configure: Regenerate.
21620 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21621 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21622 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21623 (arm*-*-linux*): Add iWMMXt and regset support.
21624 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21625 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21626 (arm_store_wmmxregset, target_regsets): New.
21627 * server.c (get_features_xml): Take annex argument. Check builtin
21628 XML documents.
21629 (handle_query): Handle multiple annexes.
21630
0f48aa01
DJ
216312007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21632
21633 * remote-utils.c [USE_WIN32API] (read, write): Define.
21634 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21635 write.
21636
23181151
DJ
216372007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21638
21639 * linux-i386-low.c (the_low_target): Set arch_string.
21640 * linux-x86-64-low.c (the_low_target): Likewise.
21641 * linux-low.c (linux_arch_string): New.
21642 (linux_target_ops): Add it.
21643 * linux-low.h (struct linux_target_ops): Add arch_string.
21644 * server.c (write_qxfer_response): Use const void * for DATA.
21645 (get_features_xml): New.
21646 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21647 * target.h (struct target_ops): Add arch_string method.
21648
9d606399
DJ
216492007-01-03 Denis Pilat <denis.pilat@st.com>
21650 Daniel Jacobowitz <dan@codesourcery.com>
21651
21652 * linux-low.c (linux_kill): Handle being called with no threads.
21653 * win32-i386-low.c (win32_kill): Likewise.
21654 (get_child_debug_event): Clear current_process_handle.
21655
216562006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21657 Daniel Jacobowitz <dan@codesourcery.com>
21658
21659 * remote-utils.c (remote_open): Check the type of specified
21660 serial port devices before opening them.
21661 * server.c (main): Kill the inferior if an error occurs during
21662 the first remote_open.
21663
a5e13d24
DJ
216642006-12-05 Markus Deuling <deuling@de.ibm.com>
21665
21666 * README: Update supported targets.
21667
186947f7
DJ
216682006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21669
21670 * Makefile.in (clean): Remove reg-mips64.c.
21671 (reg-mips64.c, reg-mips64.o): New rules.
21672 * configure.srv: Handle mips64. Include regset support for mips.
21673 * linux-mips-low.c (union mips_register): New.
21674 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21675 (mips_breakpoint, mips_breakpoint_at): Use int.
21676 (mips_collect_register, mips_supply_register)
21677 (mips_collect_register_32bit, mips_supply_register_32bit)
21678 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21679 (mips_store_fpregset, target_regsets): New.
21680 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21681
a13e2c95
UW
216822006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21683
21684 * configure.srv: Add target "spu*-*-*".
21685 * Makefile.in (clean): Remove reg-spu.c.
21686 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21687 * spu-low.c: New file.
21688
cb7283db
DJ
216892006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21690
21691 * configure.ac: Correct td_thr_tls_get_addr test.
21692 * configure: Regenerated.
21693
89be2091
DJ
216942006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21695
21696 * linux-low.c (linux_wait_for_event): Reformat. Use the
21697 pass_signals array.
21698 * remote-utils.c (decode_address_to_semicolon): New.
21699 * server.c (pass_signals, handle_general_set): New.
21700 (handle_query): Mention QPassSignals for qSupported.
21701 (main): Call handle_general_set.
21702 * server.h (pass_signals, decode_address_to_semicolon): New.
21703
000ef4f0
DJ
217042006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21705
21706 * server.c (handle_query): Correct error handling for read_auxv.
21707
b7149293
UW
217082005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21709
21710 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21711 and srv_linux_thread_db to yes.
21712 * linux-s390-low.c (s390_fill_gregset): New function.
21713 (target_regsets): Define data structure.
21714
dae5f5cf
DJ
217152006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21716
21717 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21718 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21719 * config.in, configure: Regenerated.
21720 * inferiors.c (gdb_id_to_thread): New function.
21721 (gdb_id_to_thread_id): Use it.
21722 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21723 * linux-low.h (struct process_info): Add th member.
21724 (thread_db_get_tls_address): New prototype.
21725 * remote-utils.c (decode_address): Make non-static.
21726 * server.c (handle_query): Handle qGetTLSAddr.
21727 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21728 * target.h (struct target_ops): Add get_tls_address.
21729 * thread-db.c (maybe_attach_thread): Save the thread handle.
21730 (thread_db_get_tls_address): New.
21731
32ca6d61
DJ
217322006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21733
21734 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21735 (linux_resume_one_process): Take a siginfo_t *. Update all
21736 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21737 (struct pending_signals): Add a siginfo_t.
21738 (linux_wait_for_process): Always set last_status.
21739 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21740 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21741 * linux-low.h (struct process_info): Add last_status.
21742
5ffff7c1
DJ
217432006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21744
21745 * remote-utils.c (try_rle): New function.
21746 (putpkt_binary): Use it.
21747
8695c747
DJ
217482006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21749
21750 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21751 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21752 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21753 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21754 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21755 point registers.
21756
290fadea
RS
217572006-08-08 Richard Sandiford <richard@codesourcery.com>
21758
21759 * server.c (terminal_fd): New variable.
21760 (old_foreground_pgrp): Likewise.
21761 (restore_old_foreground_pgrp): New function.
21762 (start_inferior): Record the terminal file descriptor in terminal_fd
21763 and its original foreground group in old_foreground_pgrp. Register
21764 restore_old_foreground_pgrp with atexit().
21765
9f2e1e63
DJ
217662006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21767
21768 * server.c (handle_query): Correct qPart to qXfer.
21769
b80864fb
DJ
217702006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21771
21772 * configure.ac: Check for more headers which are missing on
21773 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21774 * configure.srv: Add Cygwin and mingw32.
21775 * remote-utils.c: Don't include headers unconditionally which
21776 are missing on mingw32. Include <winsock.h> for mingw32.
21777 (remote_open): Adjust for mingw32 support. Flush
21778 standard error after writing to it.
21779 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21780 (unblock_async_io, enable_async_io, disable_async_io)
21781 (readchar, getpkt): Update for Winsock support.
21782 (prepare_resume_reply): Expect a protocol signal number.
21783 * server.c: Disable <sys/wait.h> on mingw32.
21784 (start_inferior): Adjust for mingw32 support. Flush
21785 standard error after writing to it.
21786 (attach_inferior): Likewise. Use protocol signal
21787 numbers.
21788 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21789 and names.
21790 * win32-i386-low.c: New file.
21791 * Makefile.in (XM_CLIBS): Set.
21792 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21793 (win32-i386-low.o): New dependency rule.
21794 * linux-low.c (linux_wait): Use target signal numbers.
21795 * target.h (struct target_ops): Doc fix.
21796 * server.h (target_signal_to_name): New prototype.
21797 * gdbreplay.c: Don't include headers unconditionally which
21798 are missing on mingw32. Include <winsock.h> for mingw32.
21799 (remote_close, remote_open): Adjust for Winsock support.
21800 * configure, config.in: Regenerated.
21801
0876f84a
DJ
218022006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21803
21804 * server.c (decode_xfer_read, write_qxfer_response): New.
21805 (handle_query): Take a packet length argument. Handle
21806 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21807 the qSupported response.
21808 (main): Update call to handle_query.
21809
01f9e8fa
DJ
218102006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21811
21812 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21813 (putpkt_binary): Renamed from putpkt and adjusted for binary
21814 data.
21815 (putpkt): New wrapper for putpkt_binary.
21816 (readchar): Don't mask off the high bit.
21817 (decode_X_packet): New function.
21818 * server.c (main): Call putpkt_binary if a handler sets the packet
21819 length. Save the length of the incoming packet. Handle 'X'.
21820 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21821
be2a5f71
DJ
218222006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21823
21824 * server.c (handle_query): Handle qSupported.
21825
ea025f5f
DJ
218262006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21827
21828 * remote-utils.c (all_symbols_looked_up): New variable.
21829 (look_up_one_symbol): Check it.
21830 * server.h (look_up_one_symbol): New declaration.
21831 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21832
9308fc88
DJ
218332006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21834
21835 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21836 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21837 (PTRACE_GET_THREAD_AREA): Define.
21838 (ps_get_thread_area): New function.
21839
52fb6437
NS
218402006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21841
21842 * configure.srv (m68k*-*-uclinux*): New target.
21843 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21844 (linux_resume_one_process): Remove extraneous cast.
21845 (linux_read_offsets): New.
21846 (linux_target_op): Add linux_read_offsets on mmuless systems.
21847 * server.c (handle_query): Add qOffsets logic.
21848 * target.h (struct target_ops): Add read_offsets.
21849
21b0f40c
DJ
218502006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21851
21852 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21853 (PTRACE_GET_THREAD_AREA): Define.
21854 (ps_get_thread_area): New function.
21855 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21856 (linux-x86-64-low.o): Update.
21857
0050a760
DJ
218582006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21859
21860 * configure.ac: Remove checks for prfpregset_t.
21861 * gdb_proc_service.h: New file.
21862 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21863 new "gdb_proc_service.h".
21864 * proc-service.c: Likewise.
21865 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21866 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21867 * Makefile.in (gdb_proc_service_h): Updated.
21868 * configure, config.in: Regenerated.
21869
b92a518e
DJ
218702006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21871
21872 * remote-utils.c (prepare_resume_reply): Move declaration
21873 of gdb_id_from_wait to the top of the block.
21874
545587ee
DJ
218752006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21876
21877 * linux-low.c (regsets_store_inferior_registers): Read the regset
21878 from the target before filling it.
21879
9db87ebd
DJ
218802006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21881
21882 * server.c (attach_inferior): Return SIGTRAP for a successful
21883 attach.
21884
dd24457d
DJ
218852006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21886
21887 * Makefile.in (OBS): Add version.o.
21888 (STAGESTUFF): Delete.
21889 (version.o): Add dependencies.
21890 (version.c): Replace rule.
21891 (clean): Remove version.c.
21892 * server.c (gdbserver_version): New.
21893 (gdbserver_usage): Use printf.
21894 (main): Handle --version and --help.
21895 * server.h (version, host_name): Add declarations.
21896
6f0f660e
EZ
218972005-12-23 Eli Zaretskii <eliz@gnu.org>
21898
889bf7c5
PA
21899 * linux-arm-low.c:
21900 * linux-arm-low.c:
21901 * inferiors.c:
21902 * i387-fp.h:
21903 * i387-fp.c:
21904 * gdbreplay.c:
21905 * regcache.c:
21906 * proc-service.c:
21907 * mem-break.h:
21908 * mem-break.c:
21909 * linux-x86-64-low.c:
21910 * linux-sh-low.c:
21911 * linux-s390-low.c:
21912 * linux-ppc64-low.c:
21913 * linux-ppc-low.c:
21914 * linux-mips-low.c:
21915 * linux-m68k-low.c:
21916 * linux-m32r-low.c:
21917 * linux-low.h:
21918 * linux-low.c:
21919 * linux-ia64-low.c:
21920 * linux-i386-low.c:
21921 * linux-crisv32-low.c:
21922 * thread-db.c:
21923 * terminal.h:
21924 * target.h:
21925 * target.c:
21926 * server.h:
21927 * server.c:
21928 * remote-utils.c:
21929 * regcache.h:
21930 * utils.c:
21931 * Makefile.in:
21932 * configure.ac:
6f0f660e
EZ
21933 * gdbserver.1: Add (C) after Copyright. Update the FSF
21934 address.
21935
9d1fb177
DJ
219362005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21937
21938 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21939 (arm_breakpoint_at): Recognize both breakpoints.
21940 (the_low_target): Use the correct breakpoint instruction.
21941
011a70c2
DJ
219422005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21943
21944 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21945 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21946 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21947 (the_low_target): Update.
21948
7fb85e41
AS
219492005-10-25 Andreas Schwab <schwab@suse.de>
21950
21951 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21952
21953 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21954 (ia64_num_regs): Reduce to 462.
21955
3db0444b
DJ
219562005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21957
21958 * acinclude.m4: Correct quoting.
21959 * aclocal.m4: Regenerated.
21960
21961 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21962 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21963 (thread_db_init): Call thread_db_err_str.
21964 * configure.ac: Check for TD_VERSION.
21965 * config.in, configure: Regenerated.
21966
bee0189a
DJ
219672005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21968
21969 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21970
e9d25b98
DJ
219712005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21972
21973 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21974 is not available. Define HAVE_PTRACE_GETREGS if it is.
21975 * config.in, configure: Regenerated.
21976 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21977 * linux-i386-low.c, linux-m68k-low.c: Update to use
21978 HAVE_PTRACE_GETREGS.
21979 * linux-low.c (regsets_fetch_inferior_registers)
21980 (regsets_store_inferior_registers): Only return 0 if we processed
21981 GENERAL_REGS.
21982 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21983 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21984
a06660f7
DJ
219852005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21986
21987 * inferiors.c (struct thread_info): Add gdb_id.
21988 (add_thread): Add gdb_id argument.
21989 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21990 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21991 calls to add_thread.
21992 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21993 * server.c (handle_query): Use thread_to_gdb_id.
21994 (handle_v_cont, main): Use gdb_id_to_thread_id.
21995 * server.h (add_thread): Update prototype.
21996 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21997 prototypes.
21998
5a1f5858
DJ
219992005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
22000
22001 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
22002 left-padded registers.
22003 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
22004 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
22005
e122f1f5
SE
220062005-07-01 Steve Ellcey <sje@cup.hp.com>
22007
22008 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
22009 * configure: Regenerate.
22010 * config.in: Regenerate.
22011 * server.h (NEED_DECLARATION_STRERROR):
22012 Replace with !HAVE_DECL_STRERROR.
22013
d592fa2f
DJ
220142005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
22015
22016 * linux-low.c (linux_wait, linux_send_signal): Don't test
22017 an unsigned long variable for > 0 if it could be MAX_ULONG.
22018 * server.c (myresume): Likewise.
22019 * target.c (set_desired_inferior): Likewise.
22020
ccbd4912
MK
220212005-06-13 Mark Kettenis <kettenis@gnu.org>
22022
22023 * configure.ac: Simplify and improve check for socklen_t.
22024 * configure, config.in: Regenerate.
22025
f450004a
DJ
220262005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
22027
22028 * acconfig.h: Remove.
22029 * configure.ac: Add a test for socklen_t. Use three-argument
22030 AC_DEFINE throughout.
22031 * config.in: Regenerated using autoheader 2.59.
22032 * configure: Regenerated.
22033
22034 * gdbreplay.c (socklen_t): Provide a default.
22035 (remote_open): Use socklen_t.
22036 * remote-utils.c (socklen_t): Provide a default.
22037 (remote_open): Use socklen_t.
22038 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
22039 unsigned char.
22040
22041 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22042 char for buffers.
22043 * linux-low.c (linux_read_memory, linux_write_memory)
22044 (linux_read_auxv): Likewise.
22045 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22046 (check_mem_write): Likewise.
22047 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22048 Likewise.
22049 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22050 (registers_from_string, register_data): Likewise.
22051 * server.c (handle_query, main): Likewise.
22052 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22053 (decode_M_packet): Likewise.
22054 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22055 * target.h (struct target_ops): Update read_memory, write_memory,
22056 and read_auxv.
22057 (read_inferior_memory, write_inferior_memory): Update.
22058 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22059 to unsigned char *.
22060 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22061 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22062 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22063 linux-s390-low.c, linux-sh-low.c: Update for changes in
22064 read_inferior_memory and the_low_target->breakpoint.
22065
eee84df1
DJ
220662005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22067
22068 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22069 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22070 * configure.srv: Add powerpc64-*-linux*.
22071 * linux-ppc64-low.c: New file.
22072
45b134e5
OF
220732005-05-23 Orjan Friberg <orjanf@axis.com>
22074
22075 * linux-cris-low.c: New file with support for CRIS.
22076 * linux-crisv32-low.c: Ditto for CRISv32.
22077 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22078 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 22079 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
22080 reg-crisv32.o, and reg-crisv32.c to make rules.
22081 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22082 recognized targets.
22083
48d93c75
UW
220842005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22085
22086 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22087 of sizeof (PTRACE_XFER_TYPE).
22088 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22089
e013ee27
OF
220902005-05-12 Orjan Friberg <orjanf@axis.com>
22091
889bf7c5 22092 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
22093 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22094 pointers for hardware watchpoint support.
22095 * linux-low.h (struct linux_target_ops): Ditto.
22096 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22097 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22098 to linux_target_ops.
22099 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22100 reply packet.
22101 * server.c (main): Recognize 'Z' and 'z' packets.
22102
b0ded00b
UW
221032005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22104
22105 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22106 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22107 (the_low_target): Add new members.
22108
8643e2ad
DJ
221092005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22110
22111 * proc-service.c (ps_lgetregs): Search all_processes instead of
22112 all_threads.
22113
fc620387
DJ
221142005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22115
22116 * server.c (start_inferior): Change return type to int.
22117 (attach_inferior): Change sigptr to int *.
22118 (handle_v_cont, handle_v_requests): Change signal to int *.
22119 (main): Change signal to int.
22120
221212005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
22122
22123 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22124 * configure.srv: Add m32r*-*-linux*.
22125 * linux-m32r-low.c: New file.
22126
e0e76420
DJ
221272005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22128
22129 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22130
a1928bad
DJ
221312005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22132
22133 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22134 Take unsigned long arguments for PIDs.
22135 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22136 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22137 (wait_for_sigstop, linux_resume_one_process)
22138 (regsets_fetch_inferior_registers, linux_send_signal)
22139 (linux_read_auxv): Likewise. Update the types of variables holding
22140 PIDs. Update format string specifiers.
22141 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22142 * remote-utils.c (prepare_resume_reply): Likewise.
22143 * server.c (cont_thread, general_thread, step_thread)
22144 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22145 unsigned long.
22146 (handle_query): Update format specifiers.
22147 (handle_v_cont, main): Use strtoul for thread IDs.
22148 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22149 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22150 (general_thread, step_thread, thread_from_wait)
22151 (old_thread_from_wait): Update.
22152 * target.h (struct thread_resume): Use unsigned long for THREAD.
22153 (struct target_ops): Use unsigned long for arguments to attach and
22154 thread_alive.
22155
dcdb98d2
DJ
221562005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22157
22158 * acinclude.m4: Include bfd/bfd.m4 directly.
22159 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22160 <agriffis@toolchain.org>.
22161 * aclocal.m4, configure: Regenerated.
22162
bec39cab
AC
221632005-01-07 Andrew Cagney <cagney@gnu.org>
22164
22165 * configure.ac: Rename configure.in, require autoconf 2.59.
22166 * configure: Re-generate.
22167
434c4c77
DJ
221682004-12-08 Daniel Jacobowitz <dan@debian.org>
22169
22170 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22171 LIBS when finished.
22172 * aclocal.m4: Regenerated.
22173 * configure: Regenerated.
22174
db1d3e1b
AS
221752004-11-21 Andreas Schwab <schwab@suse.de>
22176
22177 * linux-m68k-low.c (m68k_num_gregs): Define.
22178 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22179 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22180 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22181 (m68k_breakpoint_at): New. Add to the_low_target.
22182
22183 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22184 srv_linux_thread_db to yes.
22185
43360365
JB
221862004-10-20 Joel Brobecker <brobecker@gnat.com>
22187
22188 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22189 (ARCH_SET_FS): Likewise.
22190 (ARCH_GET_FS): Likewise.
22191 (ARCH_GET_GS): Likewise.
22192
fd500816
DJ
221932004-10-16 Daniel Jacobowitz <dan@debian.org>
22194
22195 * linux-i386-low.c (ps_get_thread_area): New.
22196 * linux-x86-64-low.c (ps_get_thread_area): New.
22197 * linux-low.c: Include <sys/syscall.h>.
22198 (linux_kill_one_process): Don't kill the first thread here.
22199 (linux_kill): Kill the first thread here.
22200 (kill_lwp): New function.
22201 (send_sigstop, linux_send_signal): Use it.
22202 * proc-service.c: Clean up #ifdefs.
22203 (fpregset_info): Delete.
22204 (ps_lgetregs): Update and enable implementation.
22205 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22206 implementations.
22207 * remote-utils.c (struct sym_cache, symbol_cache): New.
22208 (input_interrupt): Print a clearer message.
22209 (async_io_enabled): New variable.
22210 (enable_async_io, disable_async_io): Use it. Update comments.
22211 (look_up_one_symbol): Use the symbol cache.
22212 * thread-db.c (thread_db_look_up_symbols): New function.
22213 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22214
f6de3c42
DJ
222152004-10-16 Daniel Jacobowitz <dan@debian.org>
22216
22217 * configure.in: Test for -rdynamic.
22218 * configure: Regenerated.
22219 * Makefile (INTERNAL_LDFLAGS): New.
22220 (gdbserver, gdbreplay): Use it.
22221
2c0fc042
AC
222222004-09-02 Andrew Cagney <cagney@gnu.org>
22223
22224 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22225
075b3282
DJ
222262004-03-23 Daniel Jacobowitz <drow@mvista.com>
22227
22228 * linux-low.c (linux_wait): Clear all_processes list also.
22229
fa6a77dc
DJ
222302004-03-12 Daniel Jacobowitz <drow@mvista.com>
22231
22232 * linux-low.c: Include <errno.h>. Remove extern declaration of
22233 errno.
22234
6d782a97
DJ
222352004-03-12 Daniel Jacobowitz <drow@mvista.com>
22236
22237 * gdbreplay.c, server.h, utils.c: Update copyright years.
22238
3a7fb99b
DJ
222392004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22240
22241 * server.c (main): Print child status or termination signal from
22242 variable 'signal', not 'sig'.
22243
c3e735a6
DJ
222442004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22245
22246 * linux-low.c (linux_read_memory): Change return type to
22247 int. Check for and return error from ptrace().
22248 * target.c (read_inferior_memory): Change return type to int. Pass
22249 back return status from the_target->read_memory().
22250 * target.h (struct target_ops): Adapt *read_memory() prototype.
22251 Update comment.
22252 (read_inferior_memory): Adapt prototype.
22253 * server.c (main): Return an error packet if
22254 read_inferior_memory() returns an error.
22255
a59d1c82
DJ
222562004-03-04 Daniel Jacobowitz <drow@mvista.com>
22257
22258 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22259 Unify with other clean targets.
22260
dc3f8883
DJ
222612004-02-29 Daniel Jacobowitz <drow@mvista.com>
22262
22263 * server.c (handle_v_cont): Call set_desired_inferior.
22264
89a208da
DJ
222652004-02-29 Daniel Jacobowitz <drow@mvista.com>
22266
22267 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22268
62ea82f5
DJ
222692004-02-29 Daniel Jacobowitz <drow@mvista.com>
22270
22271 * linux-low.c (linux_wait): Unblock async I/O.
22272 (linux_resume): Block and enable async I/O.
22273 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22274 * server.h (block_async_io, unblock_async_io): Add prototypes.
22275
6910d122
DJ
222762004-02-29 Daniel Jacobowitz <drow@mvista.com>
22277
22278 * remote-utils.c (remote_open): Print a status notice after
22279 opening a TCP port.
22280 * server.c (attach_inferior): Print a status notice after
22281 attaching.
22282
222832004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
22284
22285 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22286
c89dc5d4
DJ
222872004-02-26 Daniel Jacobowitz <drow@mvista.com>
22288
22289 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22290 error packet.
22291 * server.c, target.h: Update copyright years.
22292
4b8dad4a
RM
222932004-02-25 Roland McGrath <roland@redhat.com>
22294
22295 * target.h (struct target_ops): New member `read_auxv'.
22296 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22297 * linux-low.c (linux_read_auxv): New function.
22298 (linux_target_ops): Initialize `read_auxv' member to that.
22299
d7446758
JB
223002004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22301
22302 Committed by Jim Blandy <jimb@redhat.com>.
22303
22304 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 22305 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
22306 instead of GPR_SIZE to distiguish s390 and s390x targets.
22307
5544ad89
DJ
223082004-01-31 Daniel Jacobowitz <drow@mvista.com>
22309
22310 * linux-low.c: Update copyright year.
22311 (check_removed_breakpoint): Clear pending_is_breakpoint.
22312 (linux_set_resume_request, linux_queue_one_thread)
22313 (resume_status_pending_p): New functions.
22314 (linux_continue_one_thread): Use process->resume.
22315 (linux_resume): Only resume threads if there are no pending events.
22316 * linux-low.h (struct process_info): Add resume request
22317 pointer.
22318
2a68b70e
DJ
223192004-01-30 Daniel Jacobowitz <drow@mvista.com>
22320
22321 * regcache.c (new_register_cache): Clear the allocated register
22322 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22323
64386c31
DJ
223242003-10-13 Daniel Jacobowitz <drow@mvista.com>
22325
22326 * linux-low.c (linux_resume): Take a struct thread_resume *
22327 argument.
22328 (linux_wait): Update call.
22329 (resume_ptr): New static variable.
22330 (linux_continue_one_thread): Renamed from
22331 linux_continue_one_process. Use resume_ptr.
22332 (linux_resume): Use linux_continue_one_thread.
22333 * server.c (handle_v_cont, handle_v_requests): New functions.
22334 (myresume): New function.
22335 (main): Handle 'v' case.
22336 * target.h (struct thread_resume): New type.
22337 (struct target_ops): Change argument of "resume" to struct
22338 thread_resume *.
22339 (myresume): Delete macro.
22340
c938e9b0
L
223412003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22342
22343 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22344 (uninstall): Support DESTDIR.
22345
7f313d07
BC
22346Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22347
22348 * configure.srv: Add xscale*linux copy of arm*linux entry.
22349
3b2fc2ea
DJ
223502003-07-24 Daniel Jacobowitz <drow@mvista.com>
22351
22352 * linux-arm-low.c (arm_reinsert_addr): New function.
22353 (the_low_target): Add arm_reinsert_addr.
22354
1c0a559e
MK
223552003-07-08 Mark Kettenis <kettenis@gnu.org>
22356
22357 * mem-break.c: Remove whitespace at end of file.
22358
43d5792c
DJ
223592003-06-28 Daniel Jacobowitz <drow@mvista.com>
22360
22361 * configure.in: Check whether we need to prototype strerror.
22362 * server.h: Optionally prototype strerror.
22363 * gdbreplay.c (perror_with_name): Use strerror.
22364 * linux-low.c (linux_attach_lwp): Use strerror.
22365 * utils.c (perror_with_name): Use strerror.
22366 * config.in, configure: Regenerated.
22367
c8a86edf
DJ
223682003-06-28 Daniel Jacobowitz <drow@mvista.com>
22369
22370 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22371 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22372
73d37363
DJ
223732003-06-20 Daniel Jacobowitz <drow@mvista.com>
22374
22375 * Makefile.in (SFILES): Update.
22376 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22377 low-sun3.c: Remove files.
22378
6ad8ae5c
DJ
223792003-06-17 Daniel Jacobowitz <drow@mvista.com>
22380
22381 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22382 (linux_detach_one_process, linux_detach): New functions.
22383 (linux_target_ops): Add linux_detach.
22384 * server.c (main): Handle 'D' packet.
22385 * target.h (struct target_ops): Add "detach" member.
22386 (detach_inferior): Define.
22387
1581182a
MK
223882003-06-13 Mark Kettenis <kettenis@gnu.org>
22389
22390 From Kelley Cook <kelleycook@wideopenwest.com>:
22391 * configure.srv: Accept i[34567]86 variants.
22392
e5379b03
DJ
223932003-06-05 Daniel Jacobowitz <drow@mvista.com>
22394
22395 * linux-low.c (linux_wait_for_event): Correct comment typos.
22396 (linux_resume_one_process): Call check_removed_breakpoint.
22397 (linux_send_signal): New function.
22398 (linux_target_ops): Add linux_send_signal.
22399 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22400 of kill.
22401 * target.h (struct target_ops): Add send_signal.
22402
2ff29de4
JB
224032003-05-29 Jim Blandy <jimb@redhat.com>
22404
22405 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22406 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22407 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22408 away part of the register's value.
22409
254787d4
DJ
224102003-03-26 Daniel Jacobowitz <drow@mvista.com>
22411
22412 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22413 (linux_wait_for_event, linux_init_signals): Likewise.
22414
94e10508
DJ
224152003-03-17 Daniel Jacobowitz <drow@mvista.com>
22416
22417 * configure.in: Check for stdlib.h.
22418 * configure: Regenerated.
22419 * config.in: Regenerated.
22420
4c0711e0
DJ
224212003-01-04 Andreas Schwab <schwab@suse.de>
22422
22423 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22424
ef66e766
AC
224252003-01-02 Andrew Cagney <ac131313@redhat.com>
22426
22427 * Makefile.in: Remove obsolete code.
22428
a1358604
DJ
224292002-11-20 Daniel Jacobowitz <drow@mvista.com>
22430
22431 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22432 defined(PT_FPR0_HI).
22433
23ce3b1c
DJ
224342002-11-17 Stuart Hughes <seh@zee2.com>
22435
22436 * linux-arm-low.c (arm_num_regs): Increase.
22437 (arm_regmap): Include status register.
22438
224392002-11-17 Daniel Jacobowitz <drow@mvista.com>
22440
22441 * linux-low.c (register_addr): Remove incorrect -1 check.
22442
a9fa9f7d
DJ
224432002-08-29 Daniel Jacobowitz <drow@mvista.com>
22444
22445 * linux-low.c (linux_create_inferior): Call setpgid. Return
22446 the new PID.
22447 (unstopped_p, linux_signal_pid): Remove.
22448 (linux_target_ops): Remove linux_signal_pid.
22449 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22450 global instead of target method.
22451 * target.h (struct target_ops): Remove signal_pid. Update comment
22452 for create_inferior.
22453 * server.c (signal_pid): New variable.
22454 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22455 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22456 (attach_inferior): Set signal_pid.
22457
17574093
DJ
224582002-08-23 Daniel Jacobowitz <drow@mvista.com>
22459
22460 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22461
224622002-08-20 Jim Blandy <jimb@redhat.com>
22463
22464 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22465 default for this.
22466
224672002-08-01 Andrew Cagney <cagney@redhat.com>
22468
22469 * Makefile.in: Make chill references obsolete.
22470
224712002-07-24 Kevin Buettner <kevinb@redhat.com>
22472
22473 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22474 * configure: Regenerate.
22475 * config.in: Regenerate.
22476
224772002-07-09 David O'Brien <obrien@FreeBSD.org>
22478
22479 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22480 (perror_with_name, remote_close, remote_open, expect, play): Static.
22481
224822002-07-04 Michal Ludvig <mludvig@suse.cz>
22483
4b8dad4a 22484 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22485 byte offsets instead of an array of indexes.
22486 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22487
224882002-06-13 Daniel Jacobowitz <drow@mvista.com>
22489
22490 * regcache.c: Add comment.
22491
224922002-06-11 Daniel Jacobowitz <drow@mvista.com>
22493
22494 * thread-db.c: New file.
22495 * proc-service.c: New file.
22496 * acinclude.m4: New file.
22497 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22498 proc-service.o, and thread-db.o.
22499 (linux-low.o): Add USE_THREAD_DB.
22500 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22501 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22502 * aclocal.m4: Regenerated.
22503 * config.in: Regenerated.
22504 * configure: Regenerated.
22505 * configure.in: Check for proc_service.h, sys/procfs.h,
22506 thread_db.h, and linux/elf.h headrs.
22507 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22508 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22509 Check for -lthread_db and thread support.
22510 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22511 PowerPC, and SuperH.
22512 * i387-fp.c: Constify arguments.
22513 * i387-fp.h: Likewise.
22514 * inferiors.c: (struct thread_info): Renamed from
22515 `struct inferior_info'. Remove PID member. Use generic inferior
22516 list header. All uses updated.
22517 (inferiors, signal_pid): Removed.
22518 (all_threads): New variable.
22519 (get_thread): Define.
22520 (add_inferior_to_list): New function.
22521 (for_each_inferior): New function.
22522 (change_inferior_id): New function.
22523 (add_inferior): Removed.
22524 (remove_inferior): New function.
22525 (add_thread): New function.
22526 (free_one_thread): New function.
22527 (remove_thread): New function.
22528 (clear_inferiors): Use for_each_inferior and free_one_thread.
22529 (find_inferior): New function.
22530 (find_inferior_id): New function.
22531 (inferior_target_data): Update argument type.
22532 (set_inferior_target_data): Likewise.
22533 (inferior_regcache_data): Likewise.
22534 (set_inferior_regcache_data): Likewise.
22535 * linux-low.c (linux_bp_reinsert): Remove.
22536 (all_processes, stopping_threads, using_thrads)
22537 (struct pending_signals, debug_threads, pid_of): New.
22538 (inferior_pid): Replace with macro.
22539 (struct inferior_linux_data): Remove.
22540 (get_stop_pc, add_process): New functions.
22541 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22542 Use add_process and add_thread.
22543 (linux_attach_lwp): New function, based on old linux_attach. Use
22544 add_process and add_thread. Set stop_expected for new threads.
22545 (linux_attach): New function.
22546 (linux_kill_one_process): New function.
22547 (linux_kill): Kill all LWPs.
22548 (linux_thread_alive): Use find_inferior_id.
22549 (check_removed_breakpoints, status_pending_p): New functions.
22550 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22551 Update. Use WNOHANG. Wait for cloned processes also. Update process
22552 struct for the found process.
22553 (linux_wait_for_event): New function.
22554 (linux_wait): Use it. Support LWPs.
22555 (send_sigstop, wait_for_sigstop, stop_all_processes)
22556 (linux_resume_one_process, linux_continue_one_process): New functions.
22557 (linux_resume): Support LWPs.
22558 (REGISTER_RAW_SIZE): Remove.
22559 (fetch_register): Use register_size instead. Call supply_register.
22560 (usr_store_inferior_registers): Likewise. Call collect_register.
22561 Fix recursive case.
22562 (regsets_fetch_inferior_registers): Improve error message.
22563 (regsets_store_inferior_registers): Add debugging.
22564 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22565 (unstopped_p, linux_signal_pid): New functions.
22566 (linux_target_ops): Add linux_signal_pid.
22567 (linux_init_signals): New function.
22568 (initialize_low): Call it. Initialize using_threads.
22569 * regcache.c (inferior_regcache_data): Add valid
22570 flag.
22571 (get_regcache): Fetch registers lazily. Add fetch argument
22572 and update all callers.
22573 (regcache_invalidate_one, regcache_invalidate): New
22574 functions.
22575 (new_register_cache): Renamed from create_register_cache.
22576 Return the new regcache.
22577 (free_register_cache): Change argument to a void *.
22578 (registers_to_string, registers_from_string): Call get_regcache
22579 with fetch flag set.
22580 (register_data): Make static. Pass fetch flag to get_regcache.
22581 (supply_register): Call get_regcache with fetch flag clear.
22582 (collect_register): Call get_regcache with fetch flag set.
22583 (collect_register_as_string): New function.
22584 * regcache.h: Update.
22585 * remote-utils.c (putpkt): Flush after debug output and use
22586 stderr.
22587 Handle input interrupts while waiting for an ACK.
22588 (input_interrupt): Use signal_pid method.
22589 (getpkt): Flush after debug output and use stderr.
22590 (outreg): Use collect_register_as_string.
22591 (new_thread_notify, dead_thread_notify): New functions.
22592 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22593 and general_thread.
22594 (look_up_one_symbol): Flush after debug output.
22595 * server.c (step_thread, server_waiting): New variables.
22596 (start_inferior): Don't use signal_pid. Update call to mywait.
22597 (attach_inferior): Update call to mywait.
22598 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22599 (main): Don't fetch/store registers explicitly. Use
22600 set_desired_inferior. Support proposed ``Hs'' packet. Update
22601 calls to mywait.
22602 * server.h: Update.
22603 (struct inferior_list, struct_inferior_list_entry): New.
22604 * target.c (set_desired_inferior): New.
22605 (write_inferior_memory): Constify.
22606 (mywait): New function.
22607 * target.h: Update.
22608 (struct target_ops): New signal_pid method.
22609 (mywait): Removed macro, added prototype.
22610
22611 * linux-low.h (regset_func): Removed.
22612 (regset_fill_func, regset_store_func): New.
22613 (enum regset_type): New.
22614 (struct regset_info): Add type field. Use new operation types.
22615 (struct linux_target_ops): stop_pc renamed to get_pc.
22616 Add decr_pc_after_break and breakpoint_at.
22617 (get_process, get_thread_proess, get_process_thread)
22618 (strut process_info, all_processes, linux_attach_lwp)
22619 (thread_db_init): New.
22620
22621 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22622 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22623 (the_low_target): Add new members.
22624 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22625 (i386_store_fpxregset): Constify.
22626 (target_regsets): Add new kind identifier.
22627 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22628 (i386_set_pc): Add debugging.
22629 (i386_breakpoint_at): New function.
22630 (the_low_target): Add new members.
22631 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22632 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22633 (mips_breakpoint_at): New.
22634 (the_low_target): Add new members.
22635 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22636 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22637 (the_low_target): Add new members.
22638 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22639 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22640 (the_low_target): Add new members.
22641 * linux-x86-64-low.c (target_regsets): Add new kind
22642 identifier.
22643
226442002-05-15 Daniel Jacobowitz <drow@mvista.com>
22645
22646 From Martin Pool <mbp@samba.org>:
22647 * server.c (gdbserver_usage): New function.
22648 (main): Call it.
22649
226502002-05-14 Daniel Jacobowitz <drow@mvista.com>
22651
22652 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22653 stop_at -> stop_pc.
22654
226552002-05-04 Andrew Cagney <ac131313@redhat.com>
22656
22657 * Makefile.in: Remove obsolete code.
22658
226592002-04-24 Michal Ludvig <mludvig@suse.cz>
22660
22661 * linux-low.c (regsets_fetch_inferior_registers),
22662 (regsets_store_inferior_registers): Removed cast to int from
22663 ptrace() calls.
22664 * regcache.h: Added declaration of struct inferior_info.
22665
226662002-04-20 Daniel Jacobowitz <drow@mvista.com>
22667
22668 * inferiors.c (struct inferior_info): Add regcache_data.
22669 (add_inferior): Call create_register_cache.
22670 (clear_inferiors): Call free_register_cache.
22671 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22672 * regcache.c (struct inferior_regcache_data): New.
22673 (registers): Remove.
22674 (get_regcache): New function.
22675 (create_register_cache, free_register_cache): New functions.
22676 (set_register_cache): Don't initialize the register cache here.
22677 (registers_to_string, registers_from_string, register_data): Call
22678 get_regcache.
22679 * regcache.h: Add prototypes.
22680 * server.h: Likewise.
22681
226822002-04-20 Daniel Jacobowitz <drow@mvista.com>
22683
22684 * mem-break.c: New file.
22685 * mem-break.h: New file.
22686 * Makefile.in: Add mem-break.o rule; update server.h
22687 dependencies.
22688 * inferiors.c (struct inferior_info): Add target_data
22689 member.
22690 (clear_inferiors): Free target_data member if set.
22691 (inferior_target_data, set_inferior_target_data): New functions.
22692 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22693 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22694 * linux-low.c (linux_bp_reinsert): New variable.
22695 (struct inferior_linux_data): New.
22696 (linux_create_inferior): Use set_inferior_target_data.
22697 (linux_attach): Likewise. Call add_inferior.
22698 (linux_wait_for_one_inferior): New function.
22699 (linux_wait): Call it.
22700 (linux_write_memory): Add const.
22701 (initialize_low): Call set_breakpoint_data.
22702 * linux-low.h (struct linux_target_ops): Add breakpoint
22703 handling members.
22704 * server.c (attach_inferior): Remove extra add_inferior
22705 call.
22706 * server.h: Include mem-break.h. Update inferior.c
22707 prototypes.
22708 * target.c (read_inferior_memory)
22709 (write_inferior_memory): New functions.
22710 * target.h (read_inferior_memory)
22711 (write_inferior_memory): Change macros to prototypes.
22712 (struct target_ops): Update comments. Add const to write_memory
22713 definition.
22714
227152002-04-11 Daniel Jacobowitz <drow@mvista.com>
22716
22717 * linux-low.c (usr_store_inferior_registers): Support
22718 registers which are allowed to fail to store.
22719 * linux-low.h (linux_target_ops): Likewise.
22720 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22721 (ppc_cannot_store_register): FPSCR may not be storable.
22722
227232002-04-09 Daniel Jacobowitz <drow@mvista.com>
22724
22725 * server.h: Include <string.h> if HAVE_STRING_H.
22726 * ChangeLog: Correct paths in last ChangeLog entry.
22727
227282002-04-09 Daniel Jacobowitz <drow@mvista.com>
22729
22730 * linux-low.h: Remove obsolete prototypes.
22731 (struct linux_target_ops): New.
22732 (extern the_low_target): New.
22733 * linux-low.c (num_regs, regmap): Remove declarations.
22734 (register_addr): Use the_low_target explicitly.
22735 (fetch_register): Likewise.
22736 (usr_fetch_inferior_registers): Likewise.
22737 (usr_store_inferior_registers): Likewise.
22738 * linux-arm-low.c (num_regs): Remove.
22739 (arm_num_regs): Define.
22740 (arm_regmap): Renamed from regmap, made static.
22741 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22742 made static.
22743 (arm_cannot_store_register): Renamed from cannot_store_register,
22744 made static.
22745 (the_low_target): New.
22746 * linux-i386-low.c (num_regs): Remove.
22747 (i386_num_regs): Define.
22748 (i386_regmap): Renamed from regmap, made static.
22749 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22750 made static.
22751 (i386_cannot_store_register): Renamed from cannot_store_register,
22752 made static.
22753 (the_low_target): New.
22754 * linux-ia64-low.c (num_regs): Remove.
22755 (ia64_num_regs): Define.
22756 (ia64_regmap): Renamed from regmap, made static.
22757 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22758 made static.
22759 (ia64_cannot_store_register): Renamed from cannot_store_register,
22760 made static.
22761 (the_low_target): New.
22762 * linux-m68k-low.c (num_regs): Remove.
22763 (m68k_num_regs): Define.
22764 (m68k_regmap): Renamed from regmap, made static.
22765 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22766 made static.
22767 (m68k_cannot_store_register): Renamed from cannot_store_register,
22768 made static.
22769 (the_low_target): New.
22770 * linux-mips-low.c (num_regs): Remove.
22771 (mips_num_regs): Define.
22772 (mips_regmap): Renamed from regmap, made static.
22773 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22774 made static.
22775 (mips_cannot_store_register): Renamed from cannot_store_register,
22776 made static.
22777 (the_low_target): New.
22778 * linux-ppc-low.c (num_regs): Remove.
22779 (ppc_num_regs): Define.
22780 (ppc_regmap): Renamed from regmap, made static.
22781 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22782 made static.
22783 (ppc_cannot_store_register): Renamed from cannot_store_register,
22784 made static.
22785 (the_low_target): New.
22786 * linux-s390-low.c (num_regs): Remove.
22787 (s390_num_regs): Define.
22788 (s390_regmap): Renamed from regmap, made static.
22789 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22790 made static.
22791 (s390_cannot_store_register): Renamed from cannot_store_register,
22792 made static.
22793 (the_low_target): New.
22794 * linux-sh-low.c (num_regs): Remove.
22795 (sh_num_regs): Define.
22796 (sh_regmap): Renamed from regmap, made static.
22797 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22798 made static.
22799 (sh_cannot_store_register): Renamed from cannot_store_register,
22800 made static.
22801 (the_low_target): New.
22802 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22803 (the_low_target): New.
22804
228052002-04-09 Daniel Jacobowitz <drow@mvista.com>
22806
22807 * Makefile.in: Add stamp-h target.
22808 * configure.in: Create stamp-h.
22809 * configure: Regenerated.
22810
228112002-04-09 Daniel Jacobowitz <drow@mvista.com>
22812
22813 * inferiors.c: New file.
22814 * target.c: New file.
22815 * target.h: New file.
22816 * Makefile.in: Add target.o and inferiors.o. Update
22817 dependencies.
22818 * linux-low.c (inferior_pid): New static variable,
22819 moved from server.c.
22820 (linux_create_inferior): Renamed from create_inferior.
22821 Call add_inferior. Return 0 on success instead of a PID.
22822 (linux_attach): Renamed from myattach.
22823 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22824 (linux_thread_alive): Renamed from mythread_alive.
22825 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22826 child dies.
22827 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22828 (regsets_store_inferior_registers): Correct error message.
22829 Add missing ``return 0''.
22830 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22831 (linux_store_registers): Renamed from store_inferior_registers.
22832 (linux_read_memory): Renamed from read_inferior_memory.
22833 (linux_write_memory): Renamed from write_inferior_memory.
22834 (linux_target_ops): New structure.
22835 (initialize_low): Call set_target_ops ().
22836 * remote-utils.c (unhexify): New function.
22837 (hexify): New function.
22838 (input_interrupt): Send signals to ``signal_pid''.
22839 * server.c (inferior_pid): Remove.
22840 (start_inferior): Update create_inferior call.
22841 (attach_inferior): Call add_inferior.
22842 (handle_query): New function.
22843 (main): Call handle_query for `q' packets.
22844 * server.h: Include "target.h". Remove obsolete prototypes.
22845 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22846
228472002-04-09 Daniel Jacobowitz <drow@mvista.com>
22848
22849 * Makefile.in: Add WARN_CFLAGS. Update configury
22850 dependencies.
22851 * configure.in: Check for <string.h>
22852 * configure: Regenerate.
22853 * config.in: Regenerate.
22854 * gdbreplay.c: Include needed system headers.
22855 (remote_open): Remove strchr prototype.
22856 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22857 * regcache.c (supply_register): Change buf argument to const void *.
22858 (supply_register_by_name): Likewise.
22859 (collect_register): Change buf argument to void *.
22860 (collect_register_by_name): Likewise.
22861 * regcache.h: Add missing prototypes.
22862 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22863 * server.c (handle_query): New function.
22864 (attached): New static variable, moved out of main.
22865 (main): Quiet longjmp clobber warnings.
22866 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22867 * utils.c (error): Remove NORETURN.
22868 (fatal): Likewise.
This page took 2.644817 seconds and 4 git commands to generate.